You are on page 1of 8619

### Harmony id=dani.TinctoriaSimplified, version=2.2.2.

0, location=C:\Program Files
(x86)\Steam\steamapps\common\data-000002130553D010, env/clr=4.0.30319.42000,
platform=Win32NT, ptrsize:runtime/env=8/Bits64, Windows
### Started from static System.Void TinctoriaSimplified.MainStartup::.cctor(),
location C:\Program Files (x86)\Steam\steamapps\common\data-000002130604AC90
### At 2023-02-17 06.57.02
### Patch: static System.Boolean
RimWorld.JobGiver_OptimizeApparel::TryCreateRecolorJob(Verse.Pawn pawn,
Verse.AI.Job& job, System.Boolean dryRun)
### Replacement: static System.Boolean
RimWorld.JobGiver_OptimizeApparel::RimWorld.JobGiver_OptimizeApparel.TryCreateRecol
orJob_Patch1(Verse.Pawn pawn, Verse.AI.Job& job, System.Boolean dryRun)
IL_0000: Local var 0: RimWorld.JobGiver_OptimizeApparel/<>c__DisplayClass14_0
IL_0000: Local var 1: Verse.Thing
IL_0000: Local var 2: System.Collections.Generic.List`1<Verse.Thing>
IL_0000: Local var 3:
System.Collections.Generic.List`1/Enumerator<RimWorld.Apparel>
IL_0000: Local var 4: RimWorld.Apparel
IL_0000: Local var 5: System.Nullable`1<UnityEngine.Color>
IL_0000: Local var 6: System.Collections.Generic.List`1/Enumerator<Verse.Thing>
IL_0000: Local var 7: Verse.Thing
IL_0000: Local var 8: System.Int32
IL_0000: Local var 9: System.Collections.Generic.List`1<Verse.LocalTargetInfo>
IL_0000: Local var 10: System.Boolean
IL_0000: Local var 11: System.Boolean
IL_0000: Local var 12: System.Boolean
IL_0000: ldc.i4 0
IL_0005: stloc 11 (System.Boolean)
IL_0009: ldc.i4 0
IL_000E: stloc 12 (System.Boolean)
IL_0012: ldc.i4.1
IL_0013: stloc 12 (System.Boolean)
IL_0017: ldloc 12 (System.Boolean)
IL_001B: brfalse => Label1
IL_0020: ldloca 11 (System.Boolean)
IL_0024: ldarg 0
IL_0028: ldarg 1
IL_002C: ldarg 2
IL_0030: call static System.Boolean
TinctoriaSimplified.JobDriver_RecolorApparelNoDye::TryCreateRecolorJobPatch(System.
Boolean& __result, Verse.Pawn pawn, Verse.AI.Job& job, System.Boolean dryRun)
IL_0035: stloc 12 (System.Boolean)
IL_0039: Label1
IL_0039: nop
IL_003A: ldloc 12 (System.Boolean)
IL_003E: brfalse => Label0
IL_0043: // start original
IL_0043: newobj System.Void RimWorld.<>c__DisplayClass14_0::.ctor()
IL_0048: stloc.0
IL_0049: ldloc.0
IL_004A: ldarg.0
IL_004B: stfld Verse.Pawn RimWorld.<>c__DisplayClass14_0::pawn
IL_0050: ldstr "Apparel recoloring"
IL_0055: call static System.Boolean
Verse.ModLister::CheckIdeology(System.String featureNameSingular)
IL_005A: brtrue => Label2
IL_005F: ldarg.1
IL_0060: ldnull
IL_0061: stind.ref
IL_0062: ldc.i4.0
IL_0063: br => Label27
IL_0068: Label2
IL_0068: ldloc.0
IL_0069: ldfld Verse.Pawn RimWorld.<>c__DisplayClass14_0::pawn
IL_006E: ldfld RimWorld.Pawn_ApparelTracker Verse.Pawn::apparel
IL_0073: callvirt System.Boolean
RimWorld.Pawn_ApparelTracker::get_AnyApparelNeedsRecoloring()
IL_0078: brfalse => Label3
IL_007D: ldloc.0
IL_007E: ldfld Verse.Pawn RimWorld.<>c__DisplayClass14_0::pawn
IL_0083: callvirt virtual Verse.IntVec3 Verse.Thing::get_Position()
IL_0088: ldloc.0
IL_0089: ldfld Verse.Pawn RimWorld.<>c__DisplayClass14_0::pawn
IL_008E: callvirt virtual Verse.Map Verse.Thing::get_Map()
IL_0093: ldsfld Verse.ThingDef RimWorld.ThingDefOf::StylingStation
IL_0098: call static Verse.ThingRequest
Verse.ThingRequest::ForDef(Verse.ThingDef singleDef)
IL_009D: ldc.i4.2
IL_009E: ldloc.0
IL_009F: ldfld Verse.Pawn RimWorld.<>c__DisplayClass14_0::pawn
IL_00A4: ldc.i4.3
IL_00A5: ldc.i4.0
IL_00A6: ldc.i4.0
IL_00A7: ldc.i4.0
IL_00A8: ldc.i4.0
IL_00A9: call static Verse.TraverseParms Verse.TraverseParms::For(Verse.Pawn
pawn, Verse.Danger maxDanger, Verse.TraverseMode mode, System.Boolean canBashDoors,
System.Boolean alwaysUseAvoidGrid, System.Boolean canBashFences)
IL_00AE: ldc.r4 9999
IL_00B3: ldloc.0
IL_00B4: ldftn System.Boolean
RimWorld.<>c__DisplayClass14_0::<TryCreateRecolorJob>b__0(Verse.Thing t)
IL_00BA: newobj System.Void
System.Predicate`1<Verse.Thing>::.ctor(System.Object object, System.IntPtr method)
IL_00BF: ldnull
IL_00C0: ldc.i4.0
IL_00C1: ldc.i4.m1
IL_00C2: ldc.i4.0
IL_00C3: ldc.i4.s 14
IL_00C5: ldc.i4.0
IL_00C6: call static Verse.Thing
Verse.GenClosest::ClosestThingReachable(Verse.IntVec3 root, Verse.Map map,
Verse.ThingRequest thingReq, Verse.AI.PathEndMode peMode, Verse.TraverseParms
traverseParams, System.Single maxDistance, System.Predicate`1<Verse.Thing>
validator, System.Collections.Generic.IEnumerable`1<Verse.Thing>
customGlobalSearchSet, System.Int32 searchRegionsMin, System.Int32
searchRegionsMax, System.Boolean forceAllowGlobalSearch, Verse.RegionType
traversableRegionTypes, System.Boolean ignoreEntirelyForbiddenRegions)
IL_00CB: stloc.1
IL_00CC: ldloc.1
IL_00CD: brfalse => Label4
.try
{
IL_00D2: ldloc.0
IL_00D3: ldfld Verse.Pawn RimWorld.<>c__DisplayClass14_0::pawn
IL_00D8: ldfld RimWorld.Pawn_ApparelTracker Verse.Pawn::apparel
IL_00DD: callvirt System.Collections.Generic.List`1<RimWorld.Apparel>
RimWorld.Pawn_ApparelTracker::get_WornApparel()
IL_00E2: callvirt System.Collections.Generic.Enumerator<RimWorld.Apparel>
System.Collections.Generic.List`1<RimWorld.Apparel>::GetEnumerator()
IL_00E7: stloc.3
.try
{
IL_00E8: br => Label5
IL_00ED: Label7
IL_00ED: ldloca.s 3
(System.Collections.Generic.List`1+Enumerator[RimWorld.Apparel])
IL_00EF: call virtual RimWorld.Apparel
System.Collections.Generic.Enumerator<RimWorld.Apparel>::get_Current()
IL_00F4: stloc.s 4 (RimWorld.Apparel)
IL_00F6: ldloc.s 4 (RimWorld.Apparel)
IL_00F8: callvirt System.Nullable`1<UnityEngine.Color>
RimWorld.Apparel::get_DesiredColor()
IL_00FD: stloc.s 5 (System.Nullable`1[UnityEngine.Color])
IL_00FF: ldloca.s 5 (System.Nullable`1[UnityEngine.Color])
IL_0101: call System.Boolean
System.Nullable`1<UnityEngine.Color>::get_HasValue()
IL_0106: brfalse => Label6
IL_010B: ldsfld System.Collections.Generic.List`1<RimWorld.Apparel>
RimWorld.JobGiver_OptimizeApparel::tmpApparelToRecolor
IL_0110: ldloc.s 4 (RimWorld.Apparel)
IL_0112: callvirt virtual System.Void
System.Collections.Generic.List`1<RimWorld.Apparel>::Add(RimWorld.Apparel item)
IL_0117: Label5
IL_0117: Label6
IL_0117: ldloca.s 3
(System.Collections.Generic.List`1+Enumerator[RimWorld.Apparel])
IL_0119: call virtual System.Boolean
System.Collections.Generic.Enumerator<RimWorld.Apparel>::MoveNext()
IL_011E: brtrue => Label7
IL_0123: leave => Label8
IL_0128: leave => (autogenerated)
} // end try
.finally
{
IL_012D: ldloca.s 3
(System.Collections.Generic.List`1+Enumerator[RimWorld.Apparel])
IL_012F: constrained.
System.Collections.Generic.List`1+Enumerator[RimWorld.Apparel]
IL_0135: callvirt abstract virtual System.Void
System.IDisposable::Dispose()
IL_013A: endfinally
IL_013B: leave => (autogenerated)
} // end handler
IL_013C: Label8
IL_013C: ldloc.0
IL_013D: ldfld Verse.Pawn RimWorld.<>c__DisplayClass14_0::pawn
IL_0142: callvirt virtual Verse.Map Verse.Thing::get_Map()
IL_0147: ldfld Verse.ListerThings Verse.Map::listerThings
IL_014C: ldsfld Verse.ThingDef RimWorld.ThingDefOf::Dye
IL_0151: callvirt System.Collections.Generic.List`1<Verse.Thing>
Verse.ListerThings::ThingsOfDef(Verse.ThingDef def)
IL_0156: stloc.2
IL_0157: ldsfld System.Collections.Generic.List`1<RimWorld.Apparel>
RimWorld.JobGiver_OptimizeApparel::tmpApparelToRecolor
IL_015C: callvirt virtual System.Int32
System.Collections.Generic.List`1<RimWorld.Apparel>::get_Count()
IL_0161: ldc.i4.0
IL_0162: ble => Label9
IL_0167: ldloc.2
IL_0168: ldloc.0
IL_0169: ldftn System.Int32
RimWorld.<>c__DisplayClass14_0::<TryCreateRecolorJob>b__1(Verse.Thing t)
IL_016F: newobj System.Void System.Func`2<Verse.Thing,
System.Int32>::.ctor(System.Object object, System.IntPtr method)
IL_0174: call static System.Void
Verse.GenCollection::SortBy(System.Collections.Generic.List`1<Verse.Thing> list,
System.Func`2<Verse.Thing, System.Int32> selector)
IL_0179: ldloc.2
IL_017A: callvirt System.Collections.Generic.Enumerator<Verse.Thing>
System.Collections.Generic.List`1<Verse.Thing>::GetEnumerator()
IL_017F: stloc.s 6
(System.Collections.Generic.List`1+Enumerator[Verse.Thing])
.try
{
IL_0181: br => Label10
IL_0186: Label20
IL_0186: ldloca.s 6
(System.Collections.Generic.List`1+Enumerator[Verse.Thing])
IL_0188: call virtual Verse.Thing
System.Collections.Generic.Enumerator<Verse.Thing>::get_Current()
IL_018D: stloc.s 7 (Verse.Thing)
IL_018F: ldloc.0
IL_0190: ldfld Verse.Pawn RimWorld.<>c__DisplayClass14_0::pawn
IL_0195: ldloc.s 7 (Verse.Thing)
IL_0197: call static Verse.LocalTargetInfo
Verse.LocalTargetInfo::op_Implicit(Verse.Thing t)
IL_019C: ldc.i4.2
IL_019D: ldc.i4.2
IL_019E: ldc.i4.0
IL_019F: ldc.i4.0
IL_01A0: ldc.i4.0
IL_01A1: call static System.Boolean
Verse.ReachabilityUtility::CanReach(Verse.Pawn pawn, Verse.LocalTargetInfo dest,
Verse.AI.PathEndMode peMode, Verse.Danger maxDanger, System.Boolean canBashDoors,
System.Boolean canBashFences, Verse.TraverseMode mode)
IL_01A6: brfalse => Label11
IL_01AB: ldloc.s 7 (Verse.Thing)
IL_01AD: ldloc.0
IL_01AE: ldfld Verse.Pawn RimWorld.<>c__DisplayClass14_0::pawn
IL_01B3: call static System.Boolean
RimWorld.ForbidUtility::IsForbidden(Verse.Thing t, Verse.Pawn pawn)
IL_01B8: brtrue => Label12
IL_01BD: ldc.i4.0
IL_01BE: stloc.s 8 (System.Int32)
IL_01C0: br => Label13
IL_01C5: Label17
IL_01C5: ldloc.0
IL_01C6: ldfld Verse.Pawn RimWorld.<>c__DisplayClass14_0::pawn
IL_01CB: ldloc.s 7 (Verse.Thing)
IL_01CD: call static Verse.LocalTargetInfo
Verse.LocalTargetInfo::op_Implicit(Verse.Thing t)
IL_01D2: ldc.i4.1
IL_01D3: ldloc.s 8 (System.Int32)
IL_01D5: ldc.i4.1
IL_01D6: add
IL_01D7: ldnull
IL_01D8: ldc.i4.0
IL_01D9: call static System.Boolean
Verse.AI.ReservationUtility::CanReserve(Verse.Pawn p, Verse.LocalTargetInfo target,
System.Int32 maxPawns, System.Int32 stackCount, Verse.ReservationLayerDef layer,
System.Boolean ignoreOtherReservations)
IL_01DE: brfalse => Label14
IL_01E3: ldsfld
System.Collections.Generic.List`1<Verse.LocalTargetInfo>
RimWorld.JobGiver_OptimizeApparel::tmpQueueApparel
IL_01E8: ldsfld System.Collections.Generic.List`1<RimWorld.Apparel>
RimWorld.JobGiver_OptimizeApparel::tmpApparelToRecolor
IL_01ED: ldsfld System.Collections.Generic.List`1<RimWorld.Apparel>
RimWorld.JobGiver_OptimizeApparel::tmpApparelToRecolor
IL_01F2: callvirt virtual System.Int32
System.Collections.Generic.List`1<RimWorld.Apparel>::get_Count()
IL_01F7: ldc.i4.1
IL_01F8: sub
IL_01F9: callvirt virtual RimWorld.Apparel
System.Collections.Generic.List`1<RimWorld.Apparel>::get_Item(System.Int32 index)
IL_01FE: call static Verse.LocalTargetInfo
Verse.LocalTargetInfo::op_Implicit(Verse.Thing t)
IL_0203: callvirt virtual System.Void
System.Collections.Generic.List`1<Verse.LocalTargetInfo>::Add(Verse.LocalTargetInfo
item)
IL_0208: ldsfld
System.Collections.Generic.List`1<Verse.LocalTargetInfo>
RimWorld.JobGiver_OptimizeApparel::tmpQueueDye
IL_020D: ldloc.s 7 (Verse.Thing)
IL_020F: call static Verse.LocalTargetInfo
Verse.LocalTargetInfo::op_Implicit(Verse.Thing t)
IL_0214: callvirt virtual System.Boolean
System.Collections.Generic.List`1<Verse.LocalTargetInfo>::Contains(Verse.LocalTarge
tInfo item)
IL_0219: brtrue => Label15
IL_021E: ldsfld
System.Collections.Generic.List`1<Verse.LocalTargetInfo>
RimWorld.JobGiver_OptimizeApparel::tmpQueueDye
IL_0223: ldloc.s 7 (Verse.Thing)
IL_0225: call static Verse.LocalTargetInfo
Verse.LocalTargetInfo::op_Implicit(Verse.Thing t)
IL_022A: callvirt virtual System.Void
System.Collections.Generic.List`1<Verse.LocalTargetInfo>::Add(Verse.LocalTargetInfo
item)
IL_022F: Label15
IL_022F: ldsfld System.Collections.Generic.List`1<RimWorld.Apparel>
RimWorld.JobGiver_OptimizeApparel::tmpApparelToRecolor
IL_0234: ldsfld System.Collections.Generic.List`1<RimWorld.Apparel>
RimWorld.JobGiver_OptimizeApparel::tmpApparelToRecolor
IL_0239: callvirt virtual System.Int32
System.Collections.Generic.List`1<RimWorld.Apparel>::get_Count()
IL_023E: ldc.i4.1
IL_023F: sub
IL_0240: callvirt virtual System.Void
System.Collections.Generic.List`1<RimWorld.Apparel>::RemoveAt(System.Int32 index)
IL_0245: ldsfld System.Collections.Generic.List`1<RimWorld.Apparel>
RimWorld.JobGiver_OptimizeApparel::tmpApparelToRecolor
IL_024A: callvirt virtual System.Int32
System.Collections.Generic.List`1<RimWorld.Apparel>::get_Count()
IL_024F: brfalse => Label16
IL_0254: ldloc.s 8 (System.Int32)
IL_0256: ldc.i4.1
IL_0257: add
IL_0258: stloc.s 8 (System.Int32)
IL_025A: Label13
IL_025A: ldloc.s 8 (System.Int32)
IL_025C: ldloc.s 7 (Verse.Thing)
IL_025E: ldfld System.Int32 Verse.Thing::stackCount
IL_0263: blt => Label17
IL_0268: Label14
IL_0268: Label16
IL_0268: ldsfld System.Collections.Generic.List`1<RimWorld.Apparel>
RimWorld.JobGiver_OptimizeApparel::tmpApparelToRecolor
IL_026D: callvirt virtual System.Int32
System.Collections.Generic.List`1<RimWorld.Apparel>::get_Count()
IL_0272: brtrue => Label18
IL_0277: leave => Label19
IL_027C: Label10
IL_027C: Label11
IL_027C: Label12
IL_027C: Label18
IL_027C: ldloca.s 6
(System.Collections.Generic.List`1+Enumerator[Verse.Thing])
IL_027E: call virtual System.Boolean
System.Collections.Generic.Enumerator<Verse.Thing>::MoveNext()
IL_0283: brtrue => Label20
IL_0288: leave => Label21
IL_028D: leave => (autogenerated)
} // end try
.finally
{
IL_0292: ldloca.s 6
(System.Collections.Generic.List`1+Enumerator[Verse.Thing])
IL_0294: constrained.
System.Collections.Generic.List`1+Enumerator[Verse.Thing]
IL_029A: callvirt abstract virtual System.Void
System.IDisposable::Dispose()
IL_029F: endfinally
IL_02A0: leave => (autogenerated)
} // end handler
IL_02A1: Label19
IL_02A1: Label21
IL_02A1: ldsfld System.Collections.Generic.List`1<Verse.LocalTargetInfo>
RimWorld.JobGiver_OptimizeApparel::tmpQueueApparel
IL_02A6: callvirt virtual System.Int32
System.Collections.Generic.List`1<Verse.LocalTargetInfo>::get_Count()
IL_02AB: ldc.i4.0
IL_02AC: ble => Label22
IL_02B1: ldarg.2
IL_02B2: brfalse => Label23
IL_02B7: ldarg.1
IL_02B8: ldnull
IL_02B9: stind.ref
IL_02BA: br => Label24
IL_02BF: Label23
IL_02BF: ldarg.1
IL_02C0: ldsfld Verse.JobDef RimWorld.JobDefOf::RecolorApparel
IL_02C5: call static Verse.AI.Job Verse.JobMaker::MakeJob(Verse.JobDef
def)
IL_02CA: stind.ref
IL_02CB: ldarg.1
IL_02CC: ldind.ref
IL_02CD: ldc.i4.1
IL_02CE: callvirt System.Collections.Generic.List`1<Verse.LocalTargetInfo>
Verse.AI.Job::GetTargetQueue(Verse.AI.TargetIndex ind)
IL_02D3: ldarg.1
IL_02D4: ldind.ref
IL_02D5: ldc.i4.2
IL_02D6: callvirt System.Collections.Generic.List`1<Verse.LocalTargetInfo>
Verse.AI.Job::GetTargetQueue(Verse.AI.TargetIndex ind)
IL_02DB: stloc.s 9
(System.Collections.Generic.List`1[Verse.LocalTargetInfo])
IL_02DD: ldsfld System.Collections.Generic.List`1<Verse.LocalTargetInfo>
RimWorld.JobGiver_OptimizeApparel::tmpQueueDye
IL_02E2: callvirt System.Void
System.Collections.Generic.List`1<Verse.LocalTargetInfo>::AddRange(System.Collectio
ns.Generic.IEnumerable`1<Verse.LocalTargetInfo> collection)
IL_02E7: ldloc.s 9
(System.Collections.Generic.List`1[Verse.LocalTargetInfo])
IL_02E9: ldsfld System.Collections.Generic.List`1<Verse.LocalTargetInfo>
RimWorld.JobGiver_OptimizeApparel::tmpQueueApparel
IL_02EE: callvirt System.Void
System.Collections.Generic.List`1<Verse.LocalTargetInfo>::AddRange(System.Collectio
ns.Generic.IEnumerable`1<Verse.LocalTargetInfo> collection)
IL_02F3: ldarg.1
IL_02F4: ldind.ref
IL_02F5: ldc.i4.3
IL_02F6: ldloc.1
IL_02F7: call static Verse.LocalTargetInfo
Verse.LocalTargetInfo::op_Implicit(Verse.Thing t)
IL_02FC: callvirt System.Void Verse.AI.Job::SetTarget(Verse.AI.TargetIndex
ind, Verse.LocalTargetInfo pack)
IL_0301: ldarg.1
IL_0302: ldind.ref
IL_0303: ldsfld System.Collections.Generic.List`1<Verse.LocalTargetInfo>
RimWorld.JobGiver_OptimizeApparel::tmpQueueApparel
IL_0308: callvirt virtual System.Int32
System.Collections.Generic.List`1<Verse.LocalTargetInfo>::get_Count()
IL_030D: stfld System.Int32 Verse.AI.Job::count
IL_0312: Label24
IL_0312: ldc.i4.1
IL_0313: stloc.s 10 (System.Boolean)
IL_0315: leave => Label25
IL_031A: Label9
IL_031A: Label22
IL_031A: leave => Label26
IL_031F: leave => (autogenerated)
} // end try
.finally
{
IL_0324: ldsfld System.Collections.Generic.List`1<RimWorld.Apparel>
RimWorld.JobGiver_OptimizeApparel::tmpApparelToRecolor
IL_0329: callvirt virtual System.Void
System.Collections.Generic.List`1<RimWorld.Apparel>::Clear()
IL_032E: ldsfld System.Collections.Generic.List`1<Verse.LocalTargetInfo>
RimWorld.JobGiver_OptimizeApparel::tmpQueueApparel
IL_0333: callvirt virtual System.Void
System.Collections.Generic.List`1<Verse.LocalTargetInfo>::Clear()
IL_0338: ldsfld System.Collections.Generic.List`1<Verse.LocalTargetInfo>
RimWorld.JobGiver_OptimizeApparel::tmpQueueDye
IL_033D: callvirt virtual System.Void
System.Collections.Generic.List`1<Verse.LocalTargetInfo>::Clear()
IL_0342: endfinally
IL_0343: leave => (autogenerated)
} // end handler
IL_0344: Label3
IL_0344: Label4
IL_0344: Label26
IL_0344: ldarg.1
IL_0345: ldnull
IL_0346: stind.ref
IL_0347: ldc.i4.0
IL_0348: br => Label40
IL_034D: Label25
IL_034D: ldloc.s 10 (System.Boolean)
IL_034F: // end original
IL_034F: Label27
IL_034F: Label40
IL_034F: stloc 11 (System.Boolean)
IL_0353: Label0
IL_0353: ldloc 11 (System.Boolean)
IL_0357: ret
DONE

### Patch: virtual Verse.AI.Job RimWorld.JobGiver_DyeHair::TryGiveJob(Verse.Pawn


pawn)
### Replacement: static Verse.AI.Job
RimWorld.JobGiver_DyeHair::RimWorld.JobGiver_DyeHair.TryGiveJob_Patch1(RimWorld.Job
Giver_DyeHair this, Verse.Pawn pawn)
IL_0000: Local var 0: RimWorld.JobGiver_DyeHair/<>c__DisplayClass0_0
IL_0000: Local var 1: Verse.Thing
IL_0000: Local var 2: Verse.Thing
IL_0000: Local var 3: System.Nullable`1<UnityEngine.Color>
IL_0000: Local var 4: UnityEngine.Color
IL_0000: Local var 5: Verse.AI.Job
IL_0000: Local var 6: System.Boolean
IL_0000: ldnull
IL_0001: stloc 5 (Verse.AI.Job)
IL_0005: ldc.i4 0
IL_000A: stloc 6 (System.Boolean)
IL_000E: ldc.i4.1
IL_000F: stloc 6 (System.Boolean)
IL_0013: ldloc 6 (System.Boolean)
IL_0017: brfalse => Label1
IL_001C: ldloca 5 (Verse.AI.Job)
IL_0020: ldarg 1
IL_0024: call static System.Boolean
TinctoriaSimplified.JobDriver_DyeHairNoDye::TryGiveJobPatch(Verse.AI.Job& __result,
Verse.Pawn pawn)
IL_0029: stloc 6 (System.Boolean)
IL_002D: Label1
IL_002D: nop
IL_002E: ldloc 6 (System.Boolean)
IL_0032: brfalse => Label0
IL_0037: // start original
IL_0037: newobj System.Void RimWorld.<>c__DisplayClass0_0::.ctor()
IL_003C: stloc.0
IL_003D: ldloc.0
IL_003E: ldarg.1
IL_003F: stfld Verse.Pawn RimWorld.<>c__DisplayClass0_0::pawn
IL_0044: call static System.Boolean Verse.ModsConfig::get_IdeologyActive()
IL_0049: brtrue => Label2
IL_004E: ldnull
IL_004F: br => Label11
IL_0054: Label2
IL_0054: ldloc.0
IL_0055: ldfld Verse.Pawn RimWorld.<>c__DisplayClass0_0::pawn
IL_005A: ldfld RimWorld.Pawn_StyleTracker Verse.Pawn::style
IL_005F: ldflda System.Nullable`1<UnityEngine.Color>
RimWorld.Pawn_StyleTracker::nextHairColor
IL_0064: call System.Boolean
System.Nullable`1<UnityEngine.Color>::get_HasValue()
IL_0069: brfalse => Label3
IL_006E: ldloc.0
IL_006F: ldfld Verse.Pawn RimWorld.<>c__DisplayClass0_0::pawn
IL_0074: ldfld RimWorld.Pawn_StyleTracker Verse.Pawn::style
IL_0079: ldfld System.Nullable`1<UnityEngine.Color>
RimWorld.Pawn_StyleTracker::nextHairColor
IL_007E: stloc.3
IL_007F: ldloc.0
IL_0080: ldfld Verse.Pawn RimWorld.<>c__DisplayClass0_0::pawn
IL_0085: ldfld RimWorld.Pawn_StoryTracker Verse.Pawn::story
IL_008A: callvirt UnityEngine.Color RimWorld.Pawn_StoryTracker::get_HairColor()
IL_008F: stloc.s 4 (UnityEngine.Color)
IL_0091: ldloca.s 3 (System.Nullable`1[UnityEngine.Color])
IL_0093: call System.Boolean
System.Nullable`1<UnityEngine.Color>::get_HasValue()
IL_0098: brtrue => Label4
IL_009D: ldc.i4.0
IL_009E: br => Label5
IL_00A3: Label4
IL_00A3: ldloca.s 3 (System.Nullable`1[UnityEngine.Color])
IL_00A5: call System.Boolean
System.Nullable`1<UnityEngine.Color>::get_HasValue()
IL_00AA: brtrue => Label6
IL_00AF: ldc.i4.1
IL_00B0: br => Label7
IL_00B5: Label6
IL_00B5: ldloca.s 3 (System.Nullable`1[UnityEngine.Color])
IL_00B7: call UnityEngine.Color
System.Nullable`1<UnityEngine.Color>::GetValueOrDefault()
IL_00BC: ldloc.s 4 (UnityEngine.Color)
IL_00BE: call static System.Boolean
UnityEngine.Color::op_Equality(UnityEngine.Color lhs, UnityEngine.Color rhs)
IL_00C3: Label5
IL_00C3: Label7
IL_00C3: brfalse => Label8
IL_00C8: Label3
IL_00C8: ldnull
IL_00C9: br => Label12
IL_00CE: Label8
IL_00CE: ldloc.0
IL_00CF: ldfld Verse.Pawn RimWorld.<>c__DisplayClass0_0::pawn
IL_00D4: callvirt virtual Verse.IntVec3 Verse.Thing::get_Position()
IL_00D9: ldloc.0
IL_00DA: ldfld Verse.Pawn RimWorld.<>c__DisplayClass0_0::pawn
IL_00DF: callvirt virtual Verse.Map Verse.Thing::get_Map()
IL_00E4: ldloc.0
IL_00E5: ldfld Verse.Pawn RimWorld.<>c__DisplayClass0_0::pawn
IL_00EA: callvirt virtual Verse.Map Verse.Thing::get_Map()
IL_00EF: ldfld Verse.ListerBuildings Verse.Map::listerBuildings
IL_00F4: ldsfld Verse.ThingDef RimWorld.ThingDefOf::StylingStation
IL_00F9: callvirt System.Collections.Generic.IEnumerable`1<Verse.Building>
Verse.ListerBuildings::AllBuildingsColonistOfDef(Verse.ThingDef def)
IL_00FE: ldc.i4.4
IL_00FF: ldloc.0
IL_0100: ldfld Verse.Pawn RimWorld.<>c__DisplayClass0_0::pawn
IL_0105: ldc.i4.3
IL_0106: ldc.i4.0
IL_0107: ldc.i4.0
IL_0108: ldc.i4.0
IL_0109: ldc.i4.0
IL_010A: call static Verse.TraverseParms Verse.TraverseParms::For(Verse.Pawn
pawn, Verse.Danger maxDanger, Verse.TraverseMode mode, System.Boolean canBashDoors,
System.Boolean alwaysUseAvoidGrid, System.Boolean canBashFences)
IL_010F: ldc.r4 9999
IL_0114: ldloc.0
IL_0115: ldftn System.Boolean
RimWorld.<>c__DisplayClass0_0::<TryGiveJob>b__0(Verse.Thing x)
IL_011B: newobj System.Void
System.Predicate`1<Verse.Thing>::.ctor(System.Object object, System.IntPtr method)
IL_0120: ldnull
IL_0121: call static Verse.Thing
Verse.GenClosest::ClosestThing_Global_Reachable(Verse.IntVec3 center, Verse.Map
map, System.Collections.Generic.IEnumerable`1<Verse.Thing> searchSet,
Verse.AI.PathEndMode peMode, Verse.TraverseParms traverseParams, System.Single
maxDistance, System.Predicate`1<Verse.Thing> validator, System.Func`2<Verse.Thing,
System.Single> priorityGetter)
IL_0126: stloc.1
IL_0127: ldloc.1
IL_0128: brtrue => Label9
IL_012D: ldnull
IL_012E: br => Label13
IL_0133: Label9
IL_0133: ldloc.0
IL_0134: ldfld Verse.Pawn RimWorld.<>c__DisplayClass0_0::pawn
IL_0139: callvirt virtual Verse.IntVec3 Verse.Thing::get_Position()
IL_013E: ldloc.0
IL_013F: ldfld Verse.Pawn RimWorld.<>c__DisplayClass0_0::pawn
IL_0144: callvirt virtual Verse.Map Verse.Thing::get_Map()
IL_0149: ldloc.0
IL_014A: ldfld Verse.Pawn RimWorld.<>c__DisplayClass0_0::pawn
IL_014F: callvirt virtual Verse.Map Verse.Thing::get_Map()
IL_0154: ldfld Verse.ListerThings Verse.Map::listerThings
IL_0159: ldsfld Verse.ThingDef RimWorld.ThingDefOf::Dye
IL_015E: callvirt System.Collections.Generic.List`1<Verse.Thing>
Verse.ListerThings::ThingsOfDef(Verse.ThingDef def)
IL_0163: ldc.i4.3
IL_0164: ldloc.0
IL_0165: ldfld Verse.Pawn RimWorld.<>c__DisplayClass0_0::pawn
IL_016A: ldc.i4.3
IL_016B: ldc.i4.0
IL_016C: ldc.i4.0
IL_016D: ldc.i4.0
IL_016E: ldc.i4.0
IL_016F: call static Verse.TraverseParms Verse.TraverseParms::For(Verse.Pawn
pawn, Verse.Danger maxDanger, Verse.TraverseMode mode, System.Boolean canBashDoors,
System.Boolean alwaysUseAvoidGrid, System.Boolean canBashFences)
IL_0174: ldc.r4 9999
IL_0179: ldloc.0
IL_017A: ldftn System.Boolean
RimWorld.<>c__DisplayClass0_0::<TryGiveJob>b__1(Verse.Thing x)
IL_0180: newobj System.Void
System.Predicate`1<Verse.Thing>::.ctor(System.Object object, System.IntPtr method)
IL_0185: ldnull
IL_0186: call static Verse.Thing
Verse.GenClosest::ClosestThing_Global_Reachable(Verse.IntVec3 center, Verse.Map
map, System.Collections.Generic.IEnumerable`1<Verse.Thing> searchSet,
Verse.AI.PathEndMode peMode, Verse.TraverseParms traverseParams, System.Single
maxDistance, System.Predicate`1<Verse.Thing> validator, System.Func`2<Verse.Thing,
System.Single> priorityGetter)
IL_018B: stloc.2
IL_018C: ldloc.2
IL_018D: brtrue => Label10
IL_0192: ldnull
IL_0193: br => Label14
IL_0198: Label10
IL_0198: ldsfld Verse.JobDef RimWorld.JobDefOf::DyeHair
IL_019D: ldloc.1
IL_019E: call static Verse.LocalTargetInfo
Verse.LocalTargetInfo::op_Implicit(Verse.Thing t)
IL_01A3: ldloc.2
IL_01A4: call static Verse.LocalTargetInfo
Verse.LocalTargetInfo::op_Implicit(Verse.Thing t)
IL_01A9: call static Verse.AI.Job Verse.JobMaker::MakeJob(Verse.JobDef def,
Verse.LocalTargetInfo targetA, Verse.LocalTargetInfo targetB)
IL_01AE: dup
IL_01AF: ldc.i4.1
IL_01B0: stfld System.Int32 Verse.AI.Job::count
IL_01B5: // end original
IL_01B5: Label11
IL_01B5: Label12
IL_01B5: Label13
IL_01B5: Label14
IL_01B5: stloc 5 (Verse.AI.Job)
IL_01B9: Label0
IL_01B9: ldloc 5 (Verse.AI.Job)
IL_01BD: ret
DONE

### Patch: System.Void


RimWorld.Dialog_StylingStation::DrawApparelColor(UnityEngine.Rect rect)
### Replacement: static System.Void
RimWorld.Dialog_StylingStation::RimWorld.Dialog_StylingStation.DrawApparelColor_Pat
ch0(RimWorld.Dialog_StylingStation this, UnityEngine.Rect rect)
IL_0000: Local var 0: System.Boolean
IL_0000: Local var 1: UnityEngine.Rect
IL_0000: Local var 2: System.Int32
IL_0000: Local var 3: System.Single
IL_0000: Local var 4:
System.Collections.Generic.List`1/Enumerator<RimWorld.Apparel>
IL_0000: Local var 5: RimWorld.Apparel
IL_0000: Local var 6: UnityEngine.Rect
IL_0000: Local var 7: UnityEngine.Color
IL_0000: Local var 8: System.Single
IL_0000: Local var 9: System.Single
IL_0000: Local var 10: System.Nullable`1<UnityEngine.TextAnchor>
IL_0000: Local var 11: UnityEngine.Rect
IL_0000: Local var 12: UnityEngine.Rect
IL_0000: // start original
IL_0000: ldc.i4.0
IL_0001: stloc.0
IL_0002: ldloca.s 1 (UnityEngine.Rect)
IL_0004: ldarga.s 1
IL_0006: call System.Single UnityEngine.Rect::get_x()
IL_000B: ldarga.s 1
IL_000D: call System.Single UnityEngine.Rect::get_y()
IL_0012: ldarga.s 1
IL_0014: call System.Single UnityEngine.Rect::get_width()
IL_0019: ldc.r4 16
IL_001E: sub
IL_001F: ldarg.0
IL_0020: ldfld System.Single RimWorld.Dialog_StylingStation::viewRectHeight
IL_0025: call System.Void UnityEngine.Rect::.ctor(System.Single x,
System.Single y, System.Single width, System.Single height)
IL_002A: ldarg.1
IL_002B: ldarg.0
IL_002C: ldflda UnityEngine.Vector2
RimWorld.Dialog_StylingStation::apparelColorScrollPosition
IL_0031: ldloc.1
IL_0032: ldc.i4.1
IL_0033: call static System.Void
Verse.Widgets::BeginScrollView(UnityEngine.Rect outRect, UnityEngine.Vector2&
scrollPosition, UnityEngine.Rect viewRect, System.Boolean showScrollbars)
IL_0038: ldc.i4.0
IL_0039: stloc.2
IL_003A: ldarga.s 1
IL_003C: call System.Single UnityEngine.Rect::get_y()
IL_0041: stloc.3
IL_0042: ldarg.0
IL_0043: ldfld Verse.Pawn RimWorld.Dialog_StylingStation::pawn
IL_0048: ldfld RimWorld.Pawn_ApparelTracker Verse.Pawn::apparel
IL_004D: callvirt System.Collections.Generic.List`1<RimWorld.Apparel>
RimWorld.Pawn_ApparelTracker::get_WornApparel()
IL_0052: callvirt System.Collections.Generic.Enumerator<RimWorld.Apparel>
System.Collections.Generic.List`1<RimWorld.Apparel>::GetEnumerator()
IL_0057: stloc.s 4
(System.Collections.Generic.List`1+Enumerator[RimWorld.Apparel])
.try
{
IL_0059: br => Label0
IL_005E: Label11
IL_005E: ldloca.s 4
(System.Collections.Generic.List`1+Enumerator[RimWorld.Apparel])
IL_0060: call virtual RimWorld.Apparel
System.Collections.Generic.Enumerator<RimWorld.Apparel>::get_Current()
IL_0065: stloc.s 5 (RimWorld.Apparel)
IL_0067: ldloca.s 6 (UnityEngine.Rect)
IL_0069: ldarga.s 1
IL_006B: call System.Single UnityEngine.Rect::get_x()
IL_0070: ldloc.3
IL_0071: ldloca.s 1 (UnityEngine.Rect)
IL_0073: call System.Single UnityEngine.Rect::get_width()
IL_0078: ldc.r4 92
IL_007D: call System.Void UnityEngine.Rect::.ctor(System.Single x,
System.Single y, System.Single width, System.Single height)
IL_0082: ldarg.0
IL_0083: ldfld System.Collections.Generic.Dictionary`2<RimWorld.Apparel,
UnityEngine.Color> RimWorld.Dialog_StylingStation::apparelColors
IL_0088: ldloc.s 5 (RimWorld.Apparel)
IL_008A: callvirt virtual UnityEngine.Color
System.Collections.Generic.Dictionary`2<RimWorld.Apparel,
UnityEngine.Color>::get_Item(RimWorld.Apparel key)
IL_008F: stloc.s 7 (UnityEngine.Color)
IL_0091: ldloc.3
IL_0092: ldloca.s 6 (UnityEngine.Rect)
IL_0094: call System.Single UnityEngine.Rect::get_height()
IL_0099: ldc.r4 10
IL_009E: add
IL_009F: add
IL_00A0: stloc.3
IL_00A1: ldarg.0
IL_00A2: ldfld Verse.Pawn RimWorld.Dialog_StylingStation::pawn
IL_00A7: ldfld RimWorld.Pawn_ApparelTracker Verse.Pawn::apparel
IL_00AC: ldloc.s 5 (RimWorld.Apparel)
IL_00AE: callvirt System.Boolean
RimWorld.Pawn_ApparelTracker::IsLocked(RimWorld.Apparel apparel)
IL_00B3: brtrue => Label1
IL_00B8: ldloc.0
IL_00B9: ldloc.s 6 (UnityEngine.Rect)
IL_00BB: ldloca.s 7 (UnityEngine.Color)
IL_00BD: ldarg.0
IL_00BE: call System.Collections.Generic.List`1<UnityEngine.Color>
RimWorld.Dialog_StylingStation::get_AllColors()
IL_00C3: ldloca.s 9 (System.Single)
IL_00C5: ldloc.s 5 (RimWorld.Apparel)
IL_00C7: ldfld Verse.ThingDef Verse.Thing::def
IL_00CC: ldfld UnityEngine.Texture2D Verse.BuildableDef::uiIcon
IL_00D1: ldc.i4.s 22
IL_00D3: ldc.i4.2
IL_00D4: call static System.Boolean
Verse.Widgets::ColorSelector(UnityEngine.Rect rect, UnityEngine.Color& color,
System.Collections.Generic.List`1<UnityEngine.Color> colors, System.Single& height,
UnityEngine.Texture icon, System.Int32 colorSize, System.Int32 colorPadding)
IL_00D9: or
IL_00DA: stloc.0
IL_00DB: ldloca.s 6 (UnityEngine.Rect)
IL_00DD: call System.Single UnityEngine.Rect::get_x()
IL_00E2: stloc.s 8 (System.Single)
IL_00E4: ldarg.0
IL_00E5: ldfld Verse.Pawn RimWorld.Dialog_StylingStation::pawn
IL_00EA: callvirt RimWorld.Ideo Verse.Pawn::get_Ideo()
IL_00EF: brfalse => Label2
IL_00F4: call static RimWorld.IdeoManager Verse.Find::get_IdeoManager()
IL_00F9: ldfld System.Boolean RimWorld.IdeoManager::classicMode
IL_00FE: brtrue => Label3
IL_0103: ldloca.s 6 (UnityEngine.Rect)
IL_0105: ldloc.s 8 (System.Single)
IL_0107: ldloc.3
IL_0108: ldc.r4 200
IL_010D: ldc.r4 24
IL_0112: call System.Void UnityEngine.Rect::.ctor(System.Single x,
System.Single y, System.Single width, System.Single height)
IL_0117: ldloc.s 6 (UnityEngine.Rect)
IL_0119: ldstr "SetIdeoColor"
IL_011E: call static Verse.TaggedString
Verse.Translator::Translate(System.String key)
IL_0123: call static System.String
Verse.TaggedString::op_Implicit(Verse.TaggedString taggedString)
IL_0128: ldc.i4.1
IL_0129: ldc.i4.1
IL_012A: ldc.i4.1
IL_012B: ldloca.s 10 (System.Nullable`1[UnityEngine.TextAnchor])
IL_012D: initobj System.Nullable`1[UnityEngine.TextAnchor]
IL_0133: ldloc.s 10 (System.Nullable`1[UnityEngine.TextAnchor])
IL_0135: call static System.Boolean
Verse.Widgets::ButtonText(UnityEngine.Rect rect, System.String label,
System.Boolean drawBackground, System.Boolean doMouseoverSound, System.Boolean
active, System.Nullable`1<UnityEngine.TextAnchor> overrideTextAnchor)
IL_013A: brfalse => Label4
IL_013F: ldc.i4.1
IL_0140: stloc.0
IL_0141: ldarg.0
IL_0142: ldfld Verse.Pawn RimWorld.Dialog_StylingStation::pawn
IL_0147: callvirt RimWorld.Ideo Verse.Pawn::get_Ideo()
IL_014C: callvirt UnityEngine.Color RimWorld.Ideo::get_ApparelColor()
IL_0151: stloc.s 7 (UnityEngine.Color)
IL_0153: ldsfld Verse.SoundDef RimWorld.SoundDefOf::Tick_Low
IL_0158: ldnull
IL_0159: call static System.Void
Verse.Sound.SoundStarter::PlayOneShotOnCamera(Verse.SoundDef soundDef, Verse.Map
onlyThisMap)
IL_015E: Label4
IL_015E: ldloc.s 8 (System.Single)
IL_0160: ldc.r4 210
IL_0165: add
IL_0166: stloc.s 8 (System.Single)
IL_0168: Label2
IL_0168: Label3
IL_0168: ldarg.0
IL_0169: ldfld Verse.Pawn RimWorld.Dialog_StylingStation::pawn
IL_016E: ldfld RimWorld.Pawn_StoryTracker Verse.Pawn::story
IL_0173: dup
IL_0174: brtrue => Label5
IL_0179: pop
IL_017A: ldc.i4.0
IL_017B: br => Label6
IL_0180: Label5
IL_0180: ldflda System.Nullable`1<UnityEngine.Color>
RimWorld.Pawn_StoryTracker::favoriteColor
IL_0185: call System.Boolean
System.Nullable`1<UnityEngine.Color>::get_HasValue()
IL_018A: Label6
IL_018A: brfalse => Label7
IL_018F: ldloca.s 6 (UnityEngine.Rect)
IL_0191: ldloc.s 8 (System.Single)
IL_0193: ldloc.3
IL_0194: ldc.r4 200
IL_0199: ldc.r4 24
IL_019E: call System.Void UnityEngine.Rect::.ctor(System.Single x,
System.Single y, System.Single width, System.Single height)
IL_01A3: ldloc.s 6 (UnityEngine.Rect)
IL_01A5: ldstr "SetFavoriteColor"
IL_01AA: call static Verse.TaggedString
Verse.Translator::Translate(System.String key)
IL_01AF: call static System.String
Verse.TaggedString::op_Implicit(Verse.TaggedString taggedString)
IL_01B4: ldc.i4.1
IL_01B5: ldc.i4.1
IL_01B6: ldc.i4.1
IL_01B7: ldloca.s 10 (System.Nullable`1[UnityEngine.TextAnchor])
IL_01B9: initobj System.Nullable`1[UnityEngine.TextAnchor]
IL_01BF: ldloc.s 10 (System.Nullable`1[UnityEngine.TextAnchor])
IL_01C1: call static System.Boolean
Verse.Widgets::ButtonText(UnityEngine.Rect rect, System.String label,
System.Boolean drawBackground, System.Boolean doMouseoverSound, System.Boolean
active, System.Nullable`1<UnityEngine.TextAnchor> overrideTextAnchor)
IL_01C6: brfalse => Label8
IL_01CB: ldc.i4.1
IL_01CC: stloc.0
IL_01CD: ldarg.0
IL_01CE: ldfld Verse.Pawn RimWorld.Dialog_StylingStation::pawn
IL_01D3: ldfld RimWorld.Pawn_StoryTracker Verse.Pawn::story
IL_01D8: ldflda System.Nullable`1<UnityEngine.Color>
RimWorld.Pawn_StoryTracker::favoriteColor
IL_01DD: call UnityEngine.Color
System.Nullable`1<UnityEngine.Color>::get_Value()
IL_01E2: stloc.s 7 (UnityEngine.Color)
IL_01E4: ldsfld Verse.SoundDef RimWorld.SoundDefOf::Tick_Low
IL_01E9: ldnull
IL_01EA: call static System.Void
Verse.Sound.SoundStarter::PlayOneShotOnCamera(Verse.SoundDef soundDef, Verse.Map
onlyThisMap)
IL_01EF: Label7
IL_01EF: Label8
IL_01EF: ldloc.s 7 (UnityEngine.Color)
IL_01F1: ldloc.s 5 (RimWorld.Apparel)
IL_01F3: callvirt virtual UnityEngine.Color Verse.Thing::get_DrawColor()
IL_01F8: call static System.Boolean
Verse.GenColor::IndistinguishableFrom(UnityEngine.Color colA, UnityEngine.Color
colB)
IL_01FD: brtrue => Label9
IL_0202: ldloc.2
IL_0203: ldc.i4.1
IL_0204: add
IL_0205: stloc.2
IL_0206: Label9
IL_0206: ldarg.0
IL_0207: ldfld System.Collections.Generic.Dictionary`2<RimWorld.Apparel,
UnityEngine.Color> RimWorld.Dialog_StylingStation::apparelColors
IL_020C: ldloc.s 5 (RimWorld.Apparel)
IL_020E: ldloc.s 7 (UnityEngine.Color)
IL_0210: callvirt virtual System.Void
System.Collections.Generic.Dictionary`2<RimWorld.Apparel,
UnityEngine.Color>::set_Item(RimWorld.Apparel key, UnityEngine.Color value)
IL_0215: br => Label10
IL_021A: Label1
IL_021A: ldloca.s 6 (UnityEngine.Rect)
IL_021C: call System.Single UnityEngine.Rect::get_x()
IL_0221: ldloca.s 6 (UnityEngine.Rect)
IL_0223: call System.Single UnityEngine.Rect::get_y()
IL_0228: ldc.r4 88
IL_022D: ldc.r4 88
IL_0232: newobj System.Void UnityEngine.Rect::.ctor(System.Single x,
System.Single y, System.Single width, System.Single height)
IL_0237: ldloc.s 5 (RimWorld.Apparel)
IL_0239: ldfld Verse.ThingDef Verse.Thing::def
IL_023E: ldfld UnityEngine.Texture2D Verse.BuildableDef::uiIcon
IL_0243: ldloc.s 7 (UnityEngine.Color)
IL_0245: ldc.i4.0
IL_0246: call static System.Void
Verse.Widgets::ColorSelectorIcon(UnityEngine.Rect rect, UnityEngine.Texture icon,
UnityEngine.Color color, System.Boolean drawColor)
IL_024B: ldc.i4.3
IL_024C: call static System.Void
Verse.Text::set_Anchor(UnityEngine.TextAnchor value)
IL_0251: ldloc.s 6 (UnityEngine.Rect)
IL_0253: stloc.s 11 (UnityEngine.Rect)
IL_0255: ldloca.s 11 (UnityEngine.Rect)
IL_0257: dup
IL_0258: call System.Single UnityEngine.Rect::get_x()
IL_025D: ldc.r4 100
IL_0262: add
IL_0263: call System.Void UnityEngine.Rect::set_x(System.Single value)
IL_0268: ldloc.s 11 (UnityEngine.Rect)
IL_026A: ldstr "ApparelLockedCannotRecolor"
IL_026F: ldarg.0
IL_0270: ldfld Verse.Pawn RimWorld.Dialog_StylingStation::pawn
IL_0275: ldstr "PAWN"
IL_027A: call static Verse.NamedArgument
Verse.NamedArgumentUtility::Named(System.Object arg, System.String label)
IL_027F: ldloc.s 5 (RimWorld.Apparel)
IL_0281: ldstr "APPAREL"
IL_0286: call static Verse.NamedArgument
Verse.NamedArgumentUtility::Named(System.Object arg, System.String label)
IL_028B: call static Verse.TaggedString
Verse.TranslatorFormattedStringExtensions::Translate(System.String key,
Verse.NamedArgument arg1, Verse.NamedArgument arg2)
IL_0290: call static System.String
Verse.TaggedString::op_Implicit(Verse.TaggedString taggedString)
IL_0295: ldsfld UnityEngine.Color Verse.ColorLibrary::RedReadable
IL_029A: call static System.String
Verse.ColoredText::Colorize(System.String s, UnityEngine.Color color)
IL_029F: call static System.Void Verse.Widgets::Label(UnityEngine.Rect
rect, System.String label)
IL_02A4: ldc.i4.0
IL_02A5: call static System.Void
Verse.Text::set_Anchor(UnityEngine.TextAnchor value)
IL_02AA: Label10
IL_02AA: ldloc.3
IL_02AB: ldc.r4 34
IL_02B0: add
IL_02B1: stloc.3
IL_02B2: Label0
IL_02B2: ldloca.s 4
(System.Collections.Generic.List`1+Enumerator[RimWorld.Apparel])
IL_02B4: call virtual System.Boolean
System.Collections.Generic.Enumerator<RimWorld.Apparel>::MoveNext()
IL_02B9: brtrue => Label11
IL_02BE: leave => Label12
IL_02C3: leave => (autogenerated)
} // end try
.finally
{
IL_02C8: ldloca.s 4
(System.Collections.Generic.List`1+Enumerator[RimWorld.Apparel])
IL_02CA: constrained.
System.Collections.Generic.List`1+Enumerator[RimWorld.Apparel]
IL_02D0: callvirt abstract virtual System.Void
System.IDisposable::Dispose()
IL_02D5: endfinally
IL_02D6: leave => (autogenerated)
} // end handler
IL_02D7: Label12
IL_02D7: Label13
IL_02D7: Label14
IL_02D7: Label15
IL_02D7: call static System.Void Verse.Widgets::EndScrollView()
IL_02DC: // end original
IL_02DC: ret
DONE

### Patch: System.Void


RimWorld.Dialog_StylingStation::DrawHairColors(UnityEngine.Rect rect)
### Replacement: static System.Void
RimWorld.Dialog_StylingStation::RimWorld.Dialog_StylingStation.DrawHairColors_Patch
0(RimWorld.Dialog_StylingStation this, UnityEngine.Rect rect)
IL_0000: Local var 0: System.Single
IL_0000: Local var 1: UnityEngine.Color
IL_0000: Local var 2: System.Nullable`1<UnityEngine.Color>
IL_0000: Local var 3: UnityEngine.Rect
IL_0000: // start original
IL_0000: ldarga.s 1
IL_0002: call System.Single UnityEngine.Rect::get_y()
IL_0007: stloc.0
IL_0008: ldarga.s 1
IL_000A: call System.Single UnityEngine.Rect::get_x()
IL_000F: ldloc.0
IL_0010: ldarga.s 1
IL_0012: call System.Single UnityEngine.Rect::get_width()
IL_0017: ldarg.0
IL_0018: ldfld System.Single RimWorld.Dialog_StylingStation::colorsHeight
IL_001D: newobj System.Void UnityEngine.Rect::.ctor(System.Single x,
System.Single y, System.Single width, System.Single height)
IL_0022: ldarg.0
IL_0023: ldflda UnityEngine.Color
RimWorld.Dialog_StylingStation::desiredHairColor
IL_0028: ldarg.0
IL_0029: call System.Collections.Generic.List`1<UnityEngine.Color>
RimWorld.Dialog_StylingStation::get_AllHairColors()
IL_002E: ldarg.0
IL_002F: ldflda System.Single RimWorld.Dialog_StylingStation::colorsHeight
IL_0034: ldnull
IL_0035: ldc.i4.s 22
IL_0037: ldc.i4.2
IL_0038: call static System.Boolean
Verse.Widgets::ColorSelector(UnityEngine.Rect rect, UnityEngine.Color& color,
System.Collections.Generic.List`1<UnityEngine.Color> colors, System.Single& height,
UnityEngine.Texture icon, System.Int32 colorSize, System.Int32 colorPadding)
IL_003D: pop
IL_003E: // end original
IL_003E: Label1
IL_003E: Label2
IL_003E: Label0
IL_003E: Label3
IL_003E: Label4
IL_003E: ret
DONE

### Harmony id=MoreDryads.Mod, version=2.2.2.0, location=C:\Program Files (x86)\


Steam\steamapps\common\data-000002130553D010, env/clr=4.0.30319.42000,
platform=Win32NT, ptrsize:runtime/env=8/Bits64, Windows
### Started from static System.Void MoreDryads.Startup::.cctor(), location C:\
Program Files (x86)\Steam\steamapps\common\data-0000021306067AC0
### At 2023-02-17 06.57.03
### Patch: virtual System.Collections.Generic.IEnumerable`1<Verse.Gizmo>
Verse.Pawn::GetGizmos()
### Replacement: static System.Collections.Generic.IEnumerable`1<Verse.Gizmo>
Verse.Pawn::Verse.Pawn.GetGizmos_Patch9(Verse.Pawn this)
IL_0000: Local var 0: System.Collections.Generic.IEnumerable`1<Verse.Gizmo>
IL_0000: ldnull
IL_0001: stloc 0 (System.Collections.Generic.IEnumerable`1[Verse.Gizmo])
IL_0005: // start original
IL_0005: ldc.i4.s -2
IL_0007: newobj System.Void Verse.<GetGizmos>d__274::.ctor(System.Int32
<>1__state)
IL_000C: dup
IL_000D: ldarg.0
IL_000E: stfld Verse.Pawn Verse.<GetGizmos>d__274::<>4__this
IL_0013: // end original
IL_0013: stloc 0 (System.Collections.Generic.IEnumerable`1[Verse.Gizmo])
IL_0017: ldarg.0
IL_0018: ldloca 0 (System.Collections.Generic.IEnumerable`1[Verse.Gizmo])
IL_001C: call static System.Void
AllowTool.Patches.Pawn_GetGizmos_Patch::InsertPartyHuntGizmo(Verse.Pawn __instance,
System.Collections.Generic.IEnumerable`1& __result)
IL_0021: ldloca 0 (System.Collections.Generic.IEnumerable`1[Verse.Gizmo])
IL_0025: ldarg.0
IL_0026: call static System.Void
TD_Enhancement_Pack.StopGizmo::Postfix(System.Collections.Generic.IEnumerable`1&
__result, Verse.Pawn __instance)
IL_002B: ldloca 0 (System.Collections.Generic.IEnumerable`1[Verse.Gizmo])
IL_002F: ldarg.0
IL_0030: call static System.Void
UseBedrolls.PickBackUpBedGizmo::Postfix(System.Collections.Generic.IEnumerable`1&
__result, Verse.Pawn __instance)
IL_0035: ldloc 0 (System.Collections.Generic.IEnumerable`1[Verse.Gizmo])
IL_0039: ldarg.0
IL_003A: call static System.Collections.Generic.IEnumerable`1<Verse.Gizmo>
AnimalTab.Patch_InjectTrainerSettingsGizmo::Postfix(System.Collections.Generic.IEnu
merable`1<Verse.Gizmo> __result, Verse.Pawn __instance)
IL_003F: ldarg.0
IL_0040: call static System.Collections.Generic.IEnumerable`1<Verse.Gizmo>
PeteTimesSix.SimpleSidearms.Intercepts.Pawn_GetGizmos_Postfix::Postfix(System.Colle
ctions.Generic.IEnumerable`1<Verse.Gizmo> __result, Verse.Pawn __instance)
IL_0045: ldarg.0
IL_0046: call static System.Collections.Generic.IEnumerable`1<Verse.Gizmo>
AnimalBehaviours.Pawn_GetGizmos_Patch::Postfix(System.Collections.Generic.IEnumerab
le`1<Verse.Gizmo> __result, Verse.Pawn __instance)
IL_004B: ldarg.0
IL_004C: call static System.Collections.Generic.IEnumerable`1<Verse.Gizmo>
VFEAncients.HarmonyPatches.AbilityPatches::AddGizmos(System.Collections.Generic.IEn
umerable`1<Verse.Gizmo> gizmos, Verse.Pawn __instance)
IL_0051: ldarg.0
IL_0052: call static System.Collections.Generic.IEnumerable`1<Verse.Gizmo>
CONN.Pawn_GetGizmos::Postfix(System.Collections.Generic.IEnumerable`1<Verse.Gizmo>
list, Verse.Pawn __instance)
IL_0057: ldarg.0
IL_0058: call static System.Collections.Generic.IEnumerable`1<Verse.Gizmo>
MoreDryads.Pawn_GetGizmos_Patch::Postfix(System.Collections.Generic.IEnumerable`1<V
erse.Gizmo> __result, Verse.Pawn __instance)
IL_005D: ret
DONE

### Patch: System.Boolean RimWorld.CompSpawner::TryDoSpawn()


### Replacement: static System.Boolean
RimWorld.CompSpawner::RimWorld.CompSpawner.TryDoSpawn_Patch1(RimWorld.CompSpawner
this)
IL_0000: Local var 0: Verse.IntVec3
IL_0000: Local var 1: System.Int32
IL_0000: Local var 2: System.Int32
IL_0000: Local var 3: Verse.IntVec3
IL_0000: Local var 4: System.Collections.Generic.List`1<Verse.Thing>
IL_0000: Local var 5: System.Int32
IL_0000: Local var 6: Verse.Thing
IL_0000: Local var 7: Verse.Thing
IL_0000: Local var 8: Verse.Rot4
IL_0000: Local var 9: System.Boolean
IL_0000: Local var 10: System.Boolean
IL_0000: ldc.i4 0
IL_0005: stloc 9 (System.Boolean)
IL_0009: ldc.i4 0
IL_000E: stloc 10 (System.Boolean)
IL_0012: ldc.i4.1
IL_0013: stloc 10 (System.Boolean)
IL_0017: ldloc 10 (System.Boolean)
IL_001B: brfalse => Label1
IL_0020: ldarg.0
IL_0021: call static System.Boolean
MoreDryads.TryDoSpawn_Patch::Prefix(RimWorld.CompSpawner __instance)
IL_0026: stloc 10 (System.Boolean)
IL_002A: Label1
IL_002A: nop
IL_002B: ldloc 10 (System.Boolean)
IL_002F: brfalse => Label0
IL_0034: // start original
IL_0034: ldarg.0
IL_0035: ldfld Verse.ThingWithComps Verse.ThingComp::parent
IL_003A: callvirt System.Boolean Verse.Thing::get_Spawned()
IL_003F: brtrue => Label2
IL_0044: ldc.i4.0
IL_0045: br => Label18
IL_004A: Label2
IL_004A: ldarg.0
IL_004B: call RimWorld.CompProperties_Spawner
RimWorld.CompSpawner::get_PropsSpawner()
IL_0050: ldfld System.Int32 RimWorld.CompProperties_Spawner::spawnMaxAdjacent
IL_0055: ldc.i4.0
IL_0056: blt => Label3
IL_005B: ldc.i4.0
IL_005C: stloc.1
IL_005D: ldc.i4.0
IL_005E: stloc.2
IL_005F: br => Label4
IL_0064: Label10
IL_0064: ldarg.0
IL_0065: ldfld Verse.ThingWithComps Verse.ThingComp::parent
IL_006A: callvirt virtual Verse.IntVec3 Verse.Thing::get_Position()
IL_006F: ldsfld Verse.IntVec3[] Verse.GenAdj::AdjacentCellsAndInside
IL_0074: ldloc.2
IL_0075: ldelem Verse.IntVec3
IL_007A: call static Verse.IntVec3 Verse.IntVec3::op_Addition(Verse.IntVec3
a, Verse.IntVec3 b)
IL_007F: stloc.3
IL_0080: ldloc.3
IL_0081: ldarg.0
IL_0082: ldfld Verse.ThingWithComps Verse.ThingComp::parent
IL_0087: callvirt virtual Verse.Map Verse.Thing::get_Map()
IL_008C: call static System.Boolean Verse.GenGrid::InBounds(Verse.IntVec3 c,
Verse.Map map)
IL_0091: brfalse => Label5
IL_0096: ldloc.3
IL_0097: ldarg.0
IL_0098: ldfld Verse.ThingWithComps Verse.ThingComp::parent
IL_009D: callvirt virtual Verse.Map Verse.Thing::get_Map()
IL_00A2: call static System.Collections.Generic.List`1<Verse.Thing>
Verse.GridsUtility::GetThingList(Verse.IntVec3 c, Verse.Map map)
IL_00A7: stloc.s 4 (System.Collections.Generic.List`1[Verse.Thing])
IL_00A9: ldc.i4.0
IL_00AA: stloc.s 5 (System.Int32)
IL_00AC: br => Label6
IL_00B1: Label9
IL_00B1: ldloc.s 4 (System.Collections.Generic.List`1[Verse.Thing])
IL_00B3: ldloc.s 5 (System.Int32)
IL_00B5: callvirt virtual Verse.Thing
System.Collections.Generic.List`1<Verse.Thing>::get_Item(System.Int32 index)
IL_00BA: ldfld Verse.ThingDef Verse.Thing::def
IL_00BF: ldarg.0
IL_00C0: call RimWorld.CompProperties_Spawner
RimWorld.CompSpawner::get_PropsSpawner()
IL_00C5: ldfld Verse.ThingDef RimWorld.CompProperties_Spawner::thingToSpawn
IL_00CA: bne.un => Label7
IL_00CF: ldloc.1
IL_00D0: ldloc.s 4 (System.Collections.Generic.List`1[Verse.Thing])
IL_00D2: ldloc.s 5 (System.Int32)
IL_00D4: callvirt virtual Verse.Thing
System.Collections.Generic.List`1<Verse.Thing>::get_Item(System.Int32 index)
IL_00D9: ldfld System.Int32 Verse.Thing::stackCount
IL_00DE: add
IL_00DF: stloc.1
IL_00E0: ldloc.1
IL_00E1: ldarg.0
IL_00E2: call RimWorld.CompProperties_Spawner
RimWorld.CompSpawner::get_PropsSpawner()
IL_00E7: ldfld System.Int32 RimWorld.CompProperties_Spawner::spawnMaxAdjacent
IL_00EC: blt => Label8
IL_00F1: ldc.i4.0
IL_00F2: br => Label19
IL_00F7: Label7
IL_00F7: Label8
IL_00F7: ldloc.s 5 (System.Int32)
IL_00F9: ldc.i4.1
IL_00FA: add
IL_00FB: stloc.s 5 (System.Int32)
IL_00FD: Label6
IL_00FD: ldloc.s 5 (System.Int32)
IL_00FF: ldloc.s 4 (System.Collections.Generic.List`1[Verse.Thing])
IL_0101: callvirt virtual System.Int32
System.Collections.Generic.List`1<Verse.Thing>::get_Count()
IL_0106: blt => Label9
IL_010B: Label5
IL_010B: ldloc.2
IL_010C: ldc.i4.1
IL_010D: add
IL_010E: stloc.2
IL_010F: Label4
IL_010F: ldloc.2
IL_0110: ldc.i4.s 9
IL_0112: blt => Label10
IL_0117: Label3
IL_0117: ldarg.0
IL_0118: ldfld Verse.ThingWithComps Verse.ThingComp::parent
IL_011D: ldarg.0
IL_011E: call RimWorld.CompProperties_Spawner
RimWorld.CompSpawner::get_PropsSpawner()
IL_0123: ldfld Verse.ThingDef RimWorld.CompProperties_Spawner::thingToSpawn
IL_0128: ldarg.0
IL_0129: call RimWorld.CompProperties_Spawner
RimWorld.CompSpawner::get_PropsSpawner()
IL_012E: ldfld System.Int32 RimWorld.CompProperties_Spawner::spawnCount
IL_0133: ldloca.s 0 (Verse.IntVec3)
IL_0135: call static System.Boolean
RimWorld.CompSpawner::TryFindSpawnCell(Verse.Thing parent, Verse.ThingDef
thingToSpawn, System.Int32 spawnCount, Verse.IntVec3& result)
IL_013A: brfalse => Label11
IL_013F: ldarg.0
IL_0140: call RimWorld.CompProperties_Spawner
RimWorld.CompSpawner::get_PropsSpawner()
IL_0145: ldfld Verse.ThingDef RimWorld.CompProperties_Spawner::thingToSpawn
IL_014A: ldnull
IL_014B: call static Verse.Thing Verse.ThingMaker::MakeThing(Verse.ThingDef
def, Verse.ThingDef stuff)
IL_0150: stloc.s 6 (Verse.Thing)
IL_0152: ldloc.s 6 (Verse.Thing)
IL_0154: ldarg.0
IL_0155: call RimWorld.CompProperties_Spawner
RimWorld.CompSpawner::get_PropsSpawner()
IL_015A: ldfld System.Int32 RimWorld.CompProperties_Spawner::spawnCount
IL_015F: stfld System.Int32 Verse.Thing::stackCount
IL_0164: ldloc.s 6 (Verse.Thing)
IL_0166: brtrue => Label12
IL_016B: ldstr "Could not spawn anything for "
IL_0170: ldarg.0
IL_0171: ldfld Verse.ThingWithComps Verse.ThingComp::parent
IL_0176: call static System.String System.String::Concat(System.Object arg0,
System.Object arg1)
IL_017B: call static System.Void Verse.Log::Error(System.String text)
IL_0180: Label12
IL_0180: ldarg.0
IL_0181: call RimWorld.CompProperties_Spawner
RimWorld.CompSpawner::get_PropsSpawner()
IL_0186: ldfld System.Boolean RimWorld.CompProperties_Spawner::inheritFaction
IL_018B: brfalse => Label13
IL_0190: ldloc.s 6 (Verse.Thing)
IL_0192: callvirt virtual RimWorld.Faction Verse.Thing::get_Faction()
IL_0197: ldarg.0
IL_0198: ldfld Verse.ThingWithComps Verse.ThingComp::parent
IL_019D: callvirt virtual RimWorld.Faction Verse.Thing::get_Faction()
IL_01A2: beq => Label14
IL_01A7: ldloc.s 6 (Verse.Thing)
IL_01A9: ldarg.0
IL_01AA: ldfld Verse.ThingWithComps Verse.ThingComp::parent
IL_01AF: callvirt virtual RimWorld.Faction Verse.Thing::get_Faction()
IL_01B4: ldnull
IL_01B5: callvirt virtual System.Void Verse.Thing::SetFaction(RimWorld.Faction
newFaction, Verse.Pawn recruiter)
IL_01BA: Label13
IL_01BA: Label14
IL_01BA: ldloc.s 6 (Verse.Thing)
IL_01BC: ldloc.0
IL_01BD: ldarg.0
IL_01BE: ldfld Verse.ThingWithComps Verse.ThingComp::parent
IL_01C3: callvirt virtual Verse.Map Verse.Thing::get_Map()
IL_01C8: ldc.i4.0
IL_01C9: ldloca.s 7 (Verse.Thing)
IL_01CB: ldnull
IL_01CC: ldnull
IL_01CD: ldloca.s 8 (Verse.Rot4)
IL_01CF: initobj Verse.Rot4
IL_01D5: ldloc.s 8 (Verse.Rot4)
IL_01D7: call static System.Boolean Verse.GenPlace::TryPlaceThing(Verse.Thing
thing, Verse.IntVec3 center, Verse.Map map, Verse.ThingPlaceMode mode, Verse.Thing&
lastResultingThing, System.Action`2<Verse.Thing, System.Int32> placedAction,
System.Predicate`1<Verse.IntVec3> nearPlaceValidator, Verse.Rot4 rot)
IL_01DC: pop
IL_01DD: ldarg.0
IL_01DE: call RimWorld.CompProperties_Spawner
RimWorld.CompSpawner::get_PropsSpawner()
IL_01E3: ldfld System.Boolean RimWorld.CompProperties_Spawner::spawnForbidden
IL_01E8: brfalse => Label15
IL_01ED: ldloc.s 7 (Verse.Thing)
IL_01EF: ldc.i4.1
IL_01F0: ldc.i4.1
IL_01F1: call static System.Void
RimWorld.ForbidUtility::SetForbidden(Verse.Thing t, System.Boolean value,
System.Boolean warnOnFail)
IL_01F6: Label15
IL_01F6: ldarg.0
IL_01F7: call RimWorld.CompProperties_Spawner
RimWorld.CompSpawner::get_PropsSpawner()
IL_01FC: ldfld System.Boolean
RimWorld.CompProperties_Spawner::showMessageIfOwned
IL_0201: brfalse => Label16
IL_0206: ldarg.0
IL_0207: ldfld Verse.ThingWithComps Verse.ThingComp::parent
IL_020C: callvirt virtual RimWorld.Faction Verse.Thing::get_Faction()
IL_0211: call static RimWorld.Faction RimWorld.Faction::get_OfPlayer()
IL_0216: bne.un => Label17
IL_021B: ldstr "MessageCompSpawnerSpawnedItem"
IL_0220: ldarg.0
IL_0221: call RimWorld.CompProperties_Spawner
RimWorld.CompSpawner::get_PropsSpawner()
IL_0226: ldfld Verse.ThingDef RimWorld.CompProperties_Spawner::thingToSpawn
IL_022B: callvirt virtual Verse.TaggedString Verse.Def::get_LabelCap()
IL_0230: call static Verse.NamedArgument
Verse.NamedArgument::op_Implicit(Verse.TaggedString value)
IL_0235: call static Verse.TaggedString
Verse.TranslatorFormattedStringExtensions::Translate(System.String key,
Verse.NamedArgument arg1)
IL_023A: call static System.String
Verse.TaggedString::op_Implicit(Verse.TaggedString taggedString)
IL_023F: ldloc.s 6 (Verse.Thing)
IL_0241: call static Verse.LookTargets
Verse.LookTargets::op_Implicit(Verse.Thing t)
IL_0246: ldsfld Verse.MessageTypeDef RimWorld.MessageTypeDefOf::PositiveEvent
IL_024B: ldc.i4.1
IL_024C: call static System.Void Verse.Messages::Message(System.String text,
Verse.LookTargets lookTargets, Verse.MessageTypeDef def, System.Boolean historical)
IL_0251: Label16
IL_0251: Label17
IL_0251: ldc.i4.1
IL_0252: br => Label20
IL_0257: Label11
IL_0257: ldc.i4.0
IL_0258: // end original
IL_0258: Label18
IL_0258: Label19
IL_0258: Label20
IL_0258: stloc 9 (System.Boolean)
IL_025C: Label0
IL_025C: ldloc 9 (System.Boolean)
IL_0260: ret
DONE

### Harmony id=rimworld.carnysenpai.enableoversizedweapons, version=2.2.2.0,


location=C:\Program Files (x86)\Steam\steamapps\common\data-000002130553D010,
env/clr=4.0.30319.42000, platform=Win32NT, ptrsize:runtime/env=8/Bits64, Windows
### Started from static System.Void EnableOversizedWeapons.HarmonyPatch::.cctor(),
location C:\Program Files (x86)\Steam\steamapps\common\data-000002130606BED0
### At 2023-02-17 06.57.03
### Patch: System.Void Verse.PawnRenderer::DrawEquipmentAiming(Verse.Thing eq,
UnityEngine.Vector3 drawLoc, System.Single aimAngle)
### Replacement: static System.Void
Verse.PawnRenderer::Verse.PawnRenderer.DrawEquipmentAiming_Patch4(Verse.PawnRendere
r this, Verse.Thing eq, UnityEngine.Vector3 drawLoc, System.Single aimAngle)
IL_0000: Local var 0: UnityEngine.Mesh
IL_0000: Local var 1: System.Single
IL_0000: Local var 2: Verse.CompEquippable
IL_0000: Local var 3: UnityEngine.Material
IL_0000: Local var 4: Verse.Graphic_StackCount
IL_0000: Local var 5: UnityEngine.Vector3
IL_0000: Local var 6: UnityEngine.Matrix4x4
IL_0000: Local var 7: UnityEngine.Vector3
IL_0000: Local var 8: System.Single
IL_0000: Local var 9: System.Boolean
IL_0000: ldc.i4 0
IL_0005: stloc 9 (System.Boolean)
IL_0009: ldc.i4.1
IL_000A: stloc 9 (System.Boolean)
IL_000E: ldloc 9 (System.Boolean)
IL_0012: brfalse => Label1
IL_0017: ldarg.0
IL_0018: ldarg.0
IL_0019: ldfld Verse.Pawn Verse.PawnRenderer::pawn
IL_001E: ldarg 1
IL_0022: ldarga 2
IL_0026: ldarga 3
IL_002A: ldarg.0
IL_002B: dup
IL_002C: ldvirtftn System.Boolean Verse.PawnRenderer::CarryWeaponOpenly()
IL_0032: newobj System.Void VFECore.CarryWeaponOpenly::.ctor(System.Object
object, System.IntPtr method)
IL_0037: call static System.Void
VFECore.PawnRenderer_DrawEquipmentAiming_Patch::Prefix(Verse.PawnRenderer
__instance, Verse.Pawn ___pawn, Verse.Thing eq, UnityEngine.Vector3& drawLoc,
System.Single& aimAngle, VFECore.CarryWeaponOpenly carryWeaponOpenly)
IL_003C: Label1
IL_003C: nop
IL_003D: ldloc 9 (System.Boolean)
IL_0041: brfalse => Label2
IL_0046: ldarg.0
IL_0047: call static System.Boolean
VFE.Mechanoids.HarmonyPatches.RenderTurretCentered::Prefix(Verse.PawnRenderer
__instance)
IL_004C: stloc 9 (System.Boolean)
IL_0050: Label2
IL_0050: nop
IL_0051: ldloc 9 (System.Boolean)
IL_0055: brfalse => Label3
IL_005A: ldarg 1
IL_005E: ldarga 2
IL_0062: ldarg.0
IL_0063: ldfld Verse.Pawn Verse.PawnRenderer::pawn
IL_0068: call static System.Boolean
EnableOversizedWeapons.HarmonyPatch::Prefix_Drawloc(Verse.Thing eq,
UnityEngine.Vector3& drawLoc, Verse.Pawn ___pawn)
IL_006D: stloc 9 (System.Boolean)
IL_0071: Label3
IL_0071: nop
IL_0072: ldloc 9 (System.Boolean)
IL_0076: brfalse => Label0
IL_007B: // start original
IL_007B: ldnull
IL_007C: stloc.0
IL_007D: ldarg.3
IL_007E: ldc.r4 90
IL_0083: sub
IL_0084: stloc.1
IL_0085: ldarg.3
IL_0086: ldc.r4 20
IL_008B: ble.un => Label4
IL_0090: ldarg.3
IL_0091: ldc.r4 160
IL_0096: bge.un => Label5
IL_009B: ldsfld UnityEngine.Mesh Verse.MeshPool::plane10
IL_00A0: stloc.0
IL_00A1: ldloc.1
IL_00A2: ldarg.1
IL_00A3: ldfld Verse.ThingDef Verse.Thing::def
IL_00A8: ldfld System.Single Verse.ThingDef::equippedAngleOffset
IL_00AD: add
IL_00AE: stloc.1
IL_00AF: br => Label6
IL_00B4: Label4
IL_00B4: Label5
IL_00B4: ldarg.3
IL_00B5: ldc.r4 200
IL_00BA: ble.un => Label7
IL_00BF: ldarg.3
IL_00C0: ldc.r4 340
IL_00C5: bge.un => Label8
IL_00CA: ldsfld UnityEngine.Mesh Verse.MeshPool::plane10Flip
IL_00CF: stloc.0
IL_00D0: ldloc.1
IL_00D1: ldc.r4 180
IL_00D6: sub
IL_00D7: stloc.1
IL_00D8: ldloc.1
IL_00D9: ldarg.1
IL_00DA: ldfld Verse.ThingDef Verse.Thing::def
IL_00DF: ldfld System.Single Verse.ThingDef::equippedAngleOffset
IL_00E4: sub
IL_00E5: stloc.1
IL_00E6: br => Label9
IL_00EB: Label7
IL_00EB: Label8
IL_00EB: ldsfld UnityEngine.Mesh Verse.MeshPool::plane10
IL_00F0: stloc.0
IL_00F1: ldloc.1
IL_00F2: ldarg.1
IL_00F3: ldfld Verse.ThingDef Verse.Thing::def
IL_00F8: ldfld System.Single Verse.ThingDef::equippedAngleOffset
IL_00FD: add
IL_00FE: stloc.1
IL_00FF: Label6
IL_00FF: Label9
IL_00FF: ldloc.1
IL_0100: ldc.r4 360
IL_0105: rem
IL_0106: stloc.1
IL_0107: ldarg.1
IL_0108: call static Verse.CompEquippable
Verse.ThingCompUtility::TryGetComp(Verse.Thing thing)
IL_010D: stloc.2
IL_010E: ldloc.2
IL_010F: brfalse => Label10
IL_0114: ldarg.1
IL_0115: ldfld Verse.ThingDef Verse.Thing::def
IL_011A: ldloc.2
IL_011B: callvirt System.Collections.Generic.List`1<Verse.Verb>
Verse.CompEquippable::get_AllVerbs()
IL_0120: call static Verse.Verb_LaunchProjectile
RimWorld.EquipmentUtility::GetRecoilVerb(System.Collections.Generic.List`1<Verse.Ve
rb> allWeaponVerbs)
IL_0125: ldloca.s 7 (UnityEngine.Vector3)
IL_0127: ldloca.s 8 (System.Single)
IL_0129: ldarg.3
IL_012A: call static System.Void
RimWorld.EquipmentUtility::Recoil(Verse.ThingDef weaponDef,
Verse.Verb_LaunchProjectile shootVerb, UnityEngine.Vector3& drawOffset,
System.Single& angleOffset, System.Single aimAngle)
IL_012F: ldarg.2
IL_0130: ldloc.s 7 (UnityEngine.Vector3)
IL_0132: call static UnityEngine.Vector3
UnityEngine.Vector3::op_Addition(UnityEngine.Vector3 a, UnityEngine.Vector3 b)
IL_0137: starg.s 2
IL_0139: ldloc.1
IL_013A: ldloc.s 8 (System.Single)
IL_013C: add
IL_013D: stloc.1
IL_013E: Label10
IL_013E: ldnull
IL_013F: stloc.3
IL_0140: ldarg.1
IL_0141: callvirt virtual Verse.Graphic Verse.Thing::get_Graphic()
IL_0146: isinst Verse.Graphic_StackCount
IL_014B: stloc.s 4 (Verse.Graphic_StackCount)
IL_014D: ldloc.s 4 (Verse.Graphic_StackCount)
IL_014F: brfalse => Label11
IL_0154: ldloc.s 4 (Verse.Graphic_StackCount)
IL_0156: ldc.i4.1
IL_0157: ldarg.1
IL_0158: ldfld Verse.ThingDef Verse.Thing::def
IL_015D: callvirt Verse.Graphic
Verse.Graphic_StackCount::SubGraphicForStackCount(System.Int32 stackCount,
Verse.ThingDef def)
IL_0162: ldarg.1
IL_0163: callvirt virtual UnityEngine.Material
Verse.Graphic::MatSingleFor(Verse.Thing thing)
IL_0168: stloc.3
IL_0169: br => Label12
IL_016E: Label11
IL_016E: ldarg.1
IL_016F: callvirt virtual Verse.Graphic Verse.Thing::get_Graphic()
IL_0174: ldarg.1
IL_0175: callvirt virtual UnityEngine.Material
Verse.Graphic::MatSingleFor(Verse.Thing thing)
IL_017A: stloc.3
IL_017B: Label12
IL_017B: ldloca.s 5 (UnityEngine.Vector3)
IL_017D: ldarg.1
IL_017E: callvirt virtual Verse.Graphic Verse.Thing::get_Graphic()
IL_0183: ldflda UnityEngine.Vector2 Verse.Graphic::drawSize
IL_0188: ldfld System.Single UnityEngine.Vector2::x
IL_018D: ldc.r4 0
IL_0192: ldarg.1
IL_0193: callvirt virtual Verse.Graphic Verse.Thing::get_Graphic()
IL_0198: ldflda UnityEngine.Vector2 Verse.Graphic::drawSize
IL_019D: ldfld System.Single UnityEngine.Vector2::y
IL_01A2: call System.Void UnityEngine.Vector3::.ctor(System.Single x,
System.Single y, System.Single z)
IL_01A7: ldarg.2
IL_01A8: ldloc.1
IL_01A9: call static UnityEngine.Vector3 UnityEngine.Vector3::get_up()
IL_01AE: call static UnityEngine.Quaternion
UnityEngine.Quaternion::AngleAxis(System.Single angle, UnityEngine.Vector3 axis)
IL_01B3: ldloc.s 5 (UnityEngine.Vector3)
IL_01B5: call static UnityEngine.Matrix4x4
UnityEngine.Matrix4x4::TRS(UnityEngine.Vector3 pos, UnityEngine.Quaternion q,
UnityEngine.Vector3 s)
IL_01BA: stloc.s 6 (UnityEngine.Matrix4x4)
IL_01BC: ldloc.0
IL_01BD: ldloc.s 6 (UnityEngine.Matrix4x4)
IL_01BF: ldloc.3
IL_01C0: ldc.i4.0
IL_01C1: call static System.Void
UnityEngine.Graphics::DrawMesh(UnityEngine.Mesh mesh, UnityEngine.Matrix4x4 matrix,
UnityEngine.Material material, System.Int32 layer)
IL_01C6: // end original
IL_01C6: Label0
IL_01C6: ldarg.0
IL_01C7: ldarg 1
IL_01CB: ldarg 2
IL_01CF: ldarg 3
IL_01D3: call static System.Void
VFE.Mechanoids.HarmonyPatches.RenderTurretCentered::Postfix(Verse.PawnRenderer
__instance, Verse.Thing eq, UnityEngine.Vector3 drawLoc, System.Single aimAngle)
IL_01D8: ret
DONE

### Patch: virtual System.Void Verse.Graphic::Print(Verse.SectionLayer layer,


Verse.Thing thing, System.Single extraRotation)
### Replacement: static System.Void
Verse.Graphic::Verse.Graphic.Print_Patch0(Verse.Graphic this, Verse.SectionLayer
layer, Verse.Thing thing, System.Single extraRotation)
IL_0000: Local var 0: System.Boolean
IL_0000: Local var 1: UnityEngine.Vector2
IL_0000: Local var 2: System.Single
IL_0000: Local var 3: UnityEngine.Vector3
IL_0000: Local var 4: UnityEngine.Material
IL_0000: Local var 5: UnityEngine.Vector2[]
IL_0000: Local var 6: UnityEngine.Color32
IL_0000: Local var 7: Verse.Rot4
IL_0000: // start original
IL_0000: ldarg.0
IL_0001: callvirt virtual System.Boolean Verse.Graphic::get_ShouldDrawRotated()
IL_0006: brfalse => Label0
IL_000B: ldarg.0
IL_000C: ldfld UnityEngine.Vector2 Verse.Graphic::drawSize
IL_0011: stloc.1
IL_0012: ldc.i4.0
IL_0013: stloc.0
IL_0014: br => Label1
IL_0019: Label0
IL_0019: ldarg.2
IL_001A: callvirt Verse.Rot4 Verse.Thing::get_Rotation()
IL_001F: stloc.s 7 (Verse.Rot4)
IL_0021: ldloca.s 7 (Verse.Rot4)
IL_0023: call System.Boolean Verse.Rot4::get_IsHorizontal()
IL_0028: brtrue => Label2
IL_002D: ldarg.0
IL_002E: ldfld UnityEngine.Vector2 Verse.Graphic::drawSize
IL_0033: stloc.1
IL_0034: br => Label3
IL_0039: Label2
IL_0039: ldarg.0
IL_003A: ldfld UnityEngine.Vector2 Verse.Graphic::drawSize
IL_003F: call static UnityEngine.Vector2
Verse.Vector2Utility::Rotated(UnityEngine.Vector2 v)
IL_0044: stloc.1
IL_0045: Label3
IL_0045: ldarg.2
IL_0046: callvirt Verse.Rot4 Verse.Thing::get_Rotation()
IL_004B: ldsfld Verse.Rot4 Verse.Rot4::West
IL_0050: call static System.Boolean Verse.Rot4::op_Equality(Verse.Rot4 a,
Verse.Rot4 b)
IL_0055: brfalse => Label4
IL_005A: ldarg.0
IL_005B: callvirt virtual System.Boolean Verse.Graphic::get_WestFlipped()
IL_0060: brtrue => Label5
IL_0065: Label4
IL_0065: ldarg.2
IL_0066: callvirt Verse.Rot4 Verse.Thing::get_Rotation()
IL_006B: ldsfld Verse.Rot4 Verse.Rot4::East
IL_0070: call static System.Boolean Verse.Rot4::op_Equality(Verse.Rot4 a,
Verse.Rot4 b)
IL_0075: brfalse => Label6
IL_007A: ldarg.0
IL_007B: callvirt virtual System.Boolean Verse.Graphic::get_EastFlipped()
IL_0080: br => Label7
IL_0085: Label6
IL_0085: ldc.i4.0
IL_0086: br => Label8
IL_008B: Label5
IL_008B: ldc.i4.1
IL_008C: Label7
IL_008C: Label8
IL_008C: stloc.0
IL_008D: Label1
IL_008D: ldarg.2
IL_008E: call static System.Boolean
RimWorld.GenLabel::MultipleItemsPerCellDrawn(Verse.Thing t)
IL_0093: brfalse => Label9
IL_0098: ldloc.1
IL_0099: ldc.r4 0.8
IL_009E: call static UnityEngine.Vector2
UnityEngine.Vector2::op_Multiply(UnityEngine.Vector2 a, System.Single d)
IL_00A3: stloc.1
IL_00A4: Label9
IL_00A4: ldarg.0
IL_00A5: ldarg.2
IL_00A6: callvirt Verse.Rot4 Verse.Thing::get_Rotation()
IL_00AB: call System.Single Verse.Graphic::AngleFromRot(Verse.Rot4 rot)
IL_00B0: ldarg.3
IL_00B1: add
IL_00B2: stloc.2
IL_00B3: ldloc.0
IL_00B4: brfalse => Label10
IL_00B9: ldarg.0
IL_00BA: ldfld Verse.GraphicData Verse.Graphic::data
IL_00BF: brfalse => Label11
IL_00C4: ldloc.2
IL_00C5: ldarg.0
IL_00C6: ldfld Verse.GraphicData Verse.Graphic::data
IL_00CB: ldfld System.Single Verse.GraphicData::flipExtraRotation
IL_00D0: add
IL_00D1: stloc.2
IL_00D2: Label10
IL_00D2: Label11
IL_00D2: ldarg.2
IL_00D3: call static UnityEngine.Vector3
RimWorld.GenThing::TrueCenter(Verse.Thing t)
IL_00D8: ldarg.0
IL_00D9: ldarg.2
IL_00DA: callvirt Verse.Rot4 Verse.Thing::get_Rotation()
IL_00DF: call UnityEngine.Vector3 Verse.Graphic::DrawOffset(Verse.Rot4 rot)
IL_00E4: call static UnityEngine.Vector3
UnityEngine.Vector3::op_Addition(UnityEngine.Vector3 a, UnityEngine.Vector3 b)
IL_00E9: stloc.3
IL_00EA: ldloc.3
IL_00EB: ldarg.2
IL_00EC: ldarg.0
IL_00ED: call static UnityEngine.Vector3
EnableOversizedWeapons.PatchUtility::RemoveNorthDrawOffsetFromEquipment(UnityEngine
.Vector3 drawLoc, Verse.Thing thing, Verse.Graphic graphic)
IL_00F2: stloc.3
IL_00F3: ldarg.0
IL_00F4: ldarg.2
IL_00F5: callvirt Verse.Rot4 Verse.Thing::get_Rotation()
IL_00FA: ldarg.2
IL_00FB: callvirt virtual UnityEngine.Material Verse.Graphic::MatAt(Verse.Rot4
rot, Verse.Thing thing)
IL_0100: stloc.s 4 (UnityEngine.Material)
IL_0102: ldloc.s 4 (UnityEngine.Material)
IL_0104: ldarg.2
IL_0105: ldfld Verse.ThingDef Verse.Thing::def
IL_010A: ldfld Verse.ThingCategory Verse.ThingDef::category
IL_010F: call static Verse.TextureAtlasGroup
Verse.TextureAtlasHelper::ToAtlasGroup(Verse.ThingCategory category)
IL_0114: ldloc.0
IL_0115: ldc.i4.1
IL_0116: ldloca.s 4 (UnityEngine.Material)
IL_0118: ldloca.s 5 (UnityEngine.Vector2[])
IL_011A: ldloca.s 6 (UnityEngine.Color32)
IL_011C: call static System.Boolean
Verse.Graphic::TryGetTextureAtlasReplacementInfo(UnityEngine.Material mat,
Verse.TextureAtlasGroup group, System.Boolean flipUv, System.Boolean vertexColors,
UnityEngine.Material& material, UnityEngine.Vector2[]& uvs, UnityEngine.Color32&
vertexColor)
IL_0121: pop
IL_0122: ldarg.1
IL_0123: ldloc.3
IL_0124: ldloc.1
IL_0125: ldloc.s 4 (UnityEngine.Material)
IL_0127: ldloc.2
IL_0128: ldloc.0
IL_0129: ldloc.s 5 (UnityEngine.Vector2[])
IL_012B: ldc.i4.4
IL_012C: newarr UnityEngine.Color32
IL_0131: dup
IL_0132: ldc.i4.0
IL_0133: ldloc.s 6 (UnityEngine.Color32)
IL_0135: stelem UnityEngine.Color32
IL_013A: dup
IL_013B: ldc.i4.1
IL_013C: ldloc.s 6 (UnityEngine.Color32)
IL_013E: stelem UnityEngine.Color32
IL_0143: dup
IL_0144: ldc.i4.2
IL_0145: ldloc.s 6 (UnityEngine.Color32)
IL_0147: stelem UnityEngine.Color32
IL_014C: dup
IL_014D: ldc.i4.3
IL_014E: ldloc.s 6 (UnityEngine.Color32)
IL_0150: stelem UnityEngine.Color32
IL_0155: ldc.r4 0.01
IL_015A: ldc.r4 0
IL_015F: call static System.Void
Verse.Printer_Plane::PrintPlane(Verse.SectionLayer layer, UnityEngine.Vector3
center, UnityEngine.Vector2 size, UnityEngine.Material mat, System.Single rot,
System.Boolean flipUv, UnityEngine.Vector2[] uvs, UnityEngine.Color32[] colors,
System.Single topVerticesAltitudeBias, System.Single uvzPayload)
IL_0164: ldarg.0
IL_0165: call Verse.Graphic_Shadow Verse.Graphic::get_ShadowGraphic()
IL_016A: brfalse => Label12
IL_016F: ldarg.2
IL_0170: brfalse => Label13
IL_0175: ldarg.0
IL_0176: call Verse.Graphic_Shadow Verse.Graphic::get_ShadowGraphic()
IL_017B: ldarg.1
IL_017C: ldarg.2
IL_017D: ldc.r4 0
IL_0182: callvirt virtual System.Void Verse.Graphic::Print(Verse.SectionLayer
layer, Verse.Thing thing, System.Single extraRotation)
IL_0187: // end original
IL_0187: Label12
IL_0187: Label13
IL_0187: ret
DONE

### Harmony id=Argon.ExpandedMaterials.Stones, version=2.2.2.0, location=C:\Program


Files (x86)\Steam\steamapps\common\data-000002130553D010, env/clr=4.0.30319.42000,
platform=Win32NT, ptrsize:runtime/env=8/Bits64, Windows
### Started from static System.Void ExpandedMaterialsStones.Patcher::.cctor(),
location C:\Program Files (x86)\Steam\steamapps\common\data-000002130866AC40
### At 2023-02-17 06.57.03
### Patch: virtual System.Boolean
RimWorld.WorkGiver_Repair::HasJobOnThing(Verse.Pawn pawn, Verse.Thing t,
System.Boolean forced)
### Replacement: static System.Boolean
RimWorld.WorkGiver_Repair::RimWorld.WorkGiver_Repair.HasJobOnThing_Patch1(RimWorld.
WorkGiver_Repair this, Verse.Pawn pawn, Verse.Thing t, System.Boolean forced)
IL_0000: Local var 0: Verse.Building
IL_0000: Local var 1: System.Boolean
IL_0000: ldc.i4 0
IL_0005: stloc 1 (System.Boolean)
IL_0009: // start original
IL_0009: ldarg.1
IL_000A: ldarg.2
IL_000B: call static System.Boolean
RimWorld.RepairUtility::PawnCanRepairNow(Verse.Pawn pawn, Verse.Thing t)
IL_0010: brtrue => Label0
IL_0015: ldc.i4.0
IL_0016: br => Label8
IL_001B: Label0
IL_001B: ldarg.2
IL_001C: isinst Verse.Building
IL_0021: stloc.0
IL_0022: ldarg.1
IL_0023: callvirt virtual RimWorld.Faction Verse.Thing::get_Faction()
IL_0028: call static RimWorld.Faction RimWorld.Faction::get_OfPlayer()
IL_002D: bne.un => Label1
IL_0032: ldarg.1
IL_0033: callvirt virtual Verse.Map Verse.Thing::get_Map()
IL_0038: ldfld Verse.AreaManager Verse.Map::areaManager
IL_003D: callvirt RimWorld.Area_Home Verse.AreaManager::get_Home()
IL_0042: ldarg.2
IL_0043: callvirt virtual Verse.IntVec3 Verse.Thing::get_Position()
IL_0048: callvirt System.Boolean Verse.Area::get_Item(Verse.IntVec3 c)
IL_004D: brtrue => Label2
IL_0052: ldsfld System.String
RimWorld.WorkGiver_FixBrokenDownBuilding::NotInHomeAreaTrans
IL_0057: ldnull
IL_0058: call static System.Void Verse.AI.JobFailReason::Is(System.String
reason, System.String customJobString)
IL_005D: ldc.i4.0
IL_005E: br => Label9
IL_0063: Label1
IL_0063: Label2
IL_0063: ldarg.1
IL_0064: ldloc.0
IL_0065: call static Verse.LocalTargetInfo
Verse.LocalTargetInfo::op_Implicit(Verse.Thing t)
IL_006A: ldc.i4.1
IL_006B: ldc.i4.m1
IL_006C: ldnull
IL_006D: ldarg.3
IL_006E: call static System.Boolean
Verse.AI.ReservationUtility::CanReserve(Verse.Pawn p, Verse.LocalTargetInfo target,
System.Int32 maxPawns, System.Int32 stackCount, Verse.ReservationLayerDef layer,
System.Boolean ignoreOtherReservations)
IL_0073: brtrue => Label3
IL_0078: ldc.i4.0
IL_0079: br => Label10
IL_007E: Label3
IL_007E: ldloc.0
IL_007F: callvirt virtual Verse.Map Verse.Thing::get_Map()
IL_0084: ldfld Verse.DesignationManager Verse.Map::designationManager
IL_0089: ldloc.0
IL_008A: ldsfld Verse.DesignationDef RimWorld.DesignationDefOf::Deconstruct
IL_008F: callvirt Verse.Designation
Verse.DesignationManager::DesignationOn(Verse.Thing t, Verse.DesignationDef def)
IL_0094: brfalse => Label4
IL_0099: ldc.i4.0
IL_009A: br => Label11
IL_009F: Label4
IL_009F: ldloc.0
IL_00A0: ldfld Verse.ThingDef Verse.Thing::def
IL_00A5: ldfld System.Boolean Verse.ThingDef::mineable
IL_00AA: brfalse => Label5
IL_00AF: ldloc.0
IL_00B0: callvirt virtual Verse.Map Verse.Thing::get_Map()
IL_00B5: ldfld Verse.DesignationManager Verse.Map::designationManager
IL_00BA: ldloc.0
IL_00BB: callvirt virtual Verse.IntVec3 Verse.Thing::get_Position()
IL_00C0: ldsfld Verse.DesignationDef RimWorld.DesignationDefOf::Mine
IL_00C5: callvirt Verse.Designation
Verse.DesignationManager::DesignationAt(Verse.IntVec3 c, Verse.DesignationDef def)
IL_00CA: brfalse => Label6
IL_00CF: ldc.i4.0
IL_00D0: br => Label12
IL_00D5: Label5
IL_00D5: Label6
IL_00D5: ldloc.0
IL_00D6: call static System.Boolean
RimWorld.FireUtility::IsBurning(Verse.Thing t)
IL_00DB: brfalse => Label7
IL_00E0: ldc.i4.0
IL_00E1: br => Label13
IL_00E6: Label7
IL_00E6: ldc.i4.1
IL_00E7: // end original
IL_00E7: Label8
IL_00E7: Label9
IL_00E7: Label10
IL_00E7: Label11
IL_00E7: Label12
IL_00E7: Label13
IL_00E7: stloc 1 (System.Boolean)
IL_00EB: ldarg 1
IL_00EF: ldarg 2
IL_00F3: ldarg 3
IL_00F7: ldloca 1 (System.Boolean)
IL_00FB: call static System.Void
ExpandedMaterialsStones.Patch_RepairingWalls::Postfix(Verse.Pawn pawn, Verse.Thing
t, System.Boolean forced, System.Boolean& __result)
IL_0100: ldloc 1 (System.Boolean)
IL_0104: ret
DONE

### Patch: static System.Collections.Generic.IEnumerable`1<Verse.Thing>


Verse.GenRecipe::MakeRecipeProducts(Verse.RecipeDef recipeDef, Verse.Pawn worker,
System.Collections.Generic.List`1<Verse.Thing> ingredients, Verse.Thing
dominantIngredient, RimWorld.IBillGiver billGiver, RimWorld.Precept_ThingStyle
precept, Verse.ThingStyleDef style, System.Nullable`1<System.Int32>
overrideGraphicIndex)
### Replacement: static System.Collections.Generic.IEnumerable`1<Verse.Thing>
Verse.GenRecipe::Verse.GenRecipe.MakeRecipeProducts_Patch5(Verse.RecipeDef
recipeDef, Verse.Pawn worker, System.Collections.Generic.List`1<Verse.Thing>
ingredients, Verse.Thing dominantIngredient, RimWorld.IBillGiver billGiver,
RimWorld.Precept_ThingStyle precept, Verse.ThingStyleDef style,
System.Nullable`1<System.Int32> overrideGraphicIndex)
IL_0000: Local var 0: System.Collections.Generic.IEnumerable`1<Verse.Thing>
IL_0000: Local var 1: System.Boolean
IL_0000: ldnull
IL_0001: stloc 0 (System.Collections.Generic.IEnumerable`1[Verse.Thing])
IL_0005: ldc.i4 0
IL_000A: stloc 1 (System.Boolean)
IL_000E: ldc.i4.1
IL_000F: stloc 1 (System.Boolean)
IL_0013: ldloc 1 (System.Boolean)
IL_0017: brfalse => Label1
IL_001C: ldarg 0
IL_0020: ldarg 1
IL_0024: ldarg 2
IL_0028: ldarg 4
IL_002C: ldarg 5
IL_0030: ldarg 6
IL_0034: ldarg 7
IL_0038: call static System.Void
CF.MakeRecipeProducts::Prefix(Verse.RecipeDef recipeDef, Verse.Pawn worker,
System.Collections.Generic.List`1<Verse.Thing> ingredients, RimWorld.IBillGiver
billGiver, RimWorld.Precept_ThingStyle precept, Verse.ThingStyleDef style,
System.Nullable`1<System.Int32> overrideGraphicIndex)
IL_003D: Label1
IL_003D: nop
IL_003E: ldloc 1 (System.Boolean)
IL_0042: brfalse => Label2
IL_0047: ldarg 0
IL_004B: ldarg 2
IL_004F: ldloca 0 (System.Collections.Generic.IEnumerable`1[Verse.Thing])
IL_0053: call static System.Boolean
VFEAncients.HarmonyPatches.MendingPatches::RepairItem(Verse.RecipeDef recipeDef,
System.Collections.Generic.List`1<Verse.Thing> ingredients,
System.Collections.Generic.IEnumerable`1& __result)
IL_0058: stloc 1 (System.Boolean)
IL_005C: Label2
IL_005C: nop
IL_005D: ldloc 1 (System.Boolean)
IL_0061: brfalse => Label0
IL_0066: // start original
IL_0066: ldc.i4.s -2
IL_0068: newobj System.Void Verse.<MakeRecipeProducts>d__0::.ctor(System.Int32
<>1__state)
IL_006D: dup
IL_006E: ldarg.0
IL_006F: stfld Verse.RecipeDef Verse.<MakeRecipeProducts>d__0::<>3__recipeDef
IL_0074: dup
IL_0075: ldarg.1
IL_0076: stfld Verse.Pawn Verse.<MakeRecipeProducts>d__0::<>3__worker
IL_007B: dup
IL_007C: ldarg.2
IL_007D: stfld System.Collections.Generic.List`1<Verse.Thing>
Verse.<MakeRecipeProducts>d__0::<>3__ingredients
IL_0082: dup
IL_0083: ldarg.3
IL_0084: stfld Verse.Thing
Verse.<MakeRecipeProducts>d__0::<>3__dominantIngredient
IL_0089: dup
IL_008A: ldarg.s 4
IL_008C: stfld RimWorld.IBillGiver
Verse.<MakeRecipeProducts>d__0::<>3__billGiver
IL_0091: dup
IL_0092: ldarg.s 5
IL_0094: stfld RimWorld.Precept_ThingStyle
Verse.<MakeRecipeProducts>d__0::<>3__precept
IL_0099: dup
IL_009A: ldarg.s 6
IL_009C: stfld Verse.ThingStyleDef Verse.<MakeRecipeProducts>d__0::<>3__style
IL_00A1: dup
IL_00A2: ldarg.s 7
IL_00A4: stfld System.Nullable`1<System.Int32>
Verse.<MakeRecipeProducts>d__0::<>3__overrideGraphicIndex
IL_00A9: // end original
IL_00A9: stloc 0 (System.Collections.Generic.IEnumerable`1[Verse.Thing])
IL_00AD: Label0
IL_00AD: ldloca 0 (System.Collections.Generic.IEnumerable`1[Verse.Thing])
IL_00B1: ldarg 0
IL_00B5: ldarg 1
IL_00B9: ldarg 2
IL_00BD: ldarg 4
IL_00C1: ldarg 5
IL_00C5: ldarg 6
IL_00C9: ldarg 7
IL_00CD: call static System.Void
CF.MakeRecipeProducts::Postfix(System.Collections.Generic.IEnumerable`1& __result,
Verse.RecipeDef recipeDef, Verse.Pawn worker,
System.Collections.Generic.List`1<Verse.Thing> ingredients, RimWorld.IBillGiver
billGiver, RimWorld.Precept_ThingStyle precept, Verse.ThingStyleDef style,
System.Nullable`1<System.Int32> overrideGraphicIndex)
IL_00D2: ldloc 0 (System.Collections.Generic.IEnumerable`1[Verse.Thing])
IL_00D6: ldarg 0
IL_00DA: ldarg 1
IL_00DE: ldarg 2
IL_00E2: ldarg 3
IL_00E6: ldarg 4
IL_00EA: ldarg 5
IL_00EE: call static System.Collections.Generic.IEnumerable`1<Verse.Thing>
MechanoidFoundry.GenRecipe_MakeRecipeProducts_Patch::Postfix(System.Collections.Gen
eric.IEnumerable`1<Verse.Thing> __result, Verse.RecipeDef recipeDef, Verse.Pawn
worker, System.Collections.Generic.List`1<Verse.Thing> ingredients, Verse.Thing
dominantIngredient, RimWorld.IBillGiver billGiver, RimWorld.Precept_ThingStyle
precept)
IL_00F3: ldarg 0
IL_00F7: ldarg 1
IL_00FB: ldarg 2
IL_00FF: ldarg 5
IL_0103: ldarg 6
IL_0107: ldarg 7
IL_010B: call static System.Collections.Generic.IEnumerable`1<Verse.Thing>
ExpandedMaterialsStones.Patch_YieldingProducts::Postfix(System.Collections.Generic.
IEnumerable`1<Verse.Thing> __result, Verse.RecipeDef recipeDef, Verse.Pawn worker,
System.Collections.Generic.List`1<Verse.Thing> ingredients,
RimWorld.Precept_ThingStyle precept, Verse.ThingStyleDef style,
System.Nullable`1<System.Int32> overrideGraphicIndex)
IL_0110: ret
DONE

### Harmony id=rimworld.Nals.FacialAnimation, version=2.2.2.0, location=C:\Program


Files (x86)\Steam\steamapps\common\data-000002130553D010, env/clr=4.0.30319.42000,
platform=Win32NT, ptrsize:runtime/env=8/Bits64, Windows
### Started from static System.Void FacialAnimation.HarmonyPatches::.cctor(),
location C:\Program Files (x86)\Steam\steamapps\common\data-000002130867C480
### At 2023-02-17 06.57.03
### Patch: System.Void Verse.PawnRenderer::RenderPawnInternal(UnityEngine.Vector3
rootLoc, System.Single angle, System.Boolean renderBody, Verse.Rot4 bodyFacing,
Verse.RotDrawMode bodyDrawType, Verse.PawnRenderFlags flags)
### Replacement: static System.Void
Verse.PawnRenderer::Verse.PawnRenderer.RenderPawnInternal_Patch2(Verse.PawnRenderer
this, UnityEngine.Vector3 rootLoc, System.Single angle, System.Boolean renderBody,
Verse.Rot4 bodyFacing, Verse.RotDrawMode bodyDrawType, Verse.PawnRenderFlags flags)
IL_0000: Local var 0: UnityEngine.Quaternion
IL_0000: Local var 1: UnityEngine.Vector3
IL_0000: Local var 2: UnityEngine.Vector3
IL_0000: Local var 3: UnityEngine.Vector3
IL_0000: Local var 4: UnityEngine.Vector3
IL_0000: Local var 5: UnityEngine.Mesh
IL_0000: Local var 6: UnityEngine.Vector3
IL_0000: Local var 7: UnityEngine.Vector3
IL_0000: Local var 8: UnityEngine.Vector3
IL_0000: Local var 9: Verse.Rot4
IL_0000: Local var 10: UnityEngine.Mesh
IL_0000: Local var 11: UnityEngine.Material
IL_0000: Local var 12: System.Nullable`1<System.Boolean>
IL_0000: Local var 13: UnityEngine.Vector3
IL_0000: Local var 14: System.Boolean
IL_0000: ldc.i4 0
IL_0005: stloc 14 (System.Boolean)
IL_0009: ldc.i4.1
IL_000A: stloc 14 (System.Boolean)
IL_000E: ldloc 14 (System.Boolean)
IL_0012: brfalse => Label1
IL_0017: ldarg 4
IL_001B: ldarg 5
IL_001F: ldarga 6
IL_0023: ldarg.0
IL_0024: ldflda Verse.Pawn Verse.PawnRenderer::pawn
IL_0029: call static System.Boolean
FacialAnimation.HarmonyPatches::PrefixRenderPawnInternal(Verse.Rot4 bodyFacing,
Verse.RotDrawMode bodyDrawType, Verse.PawnRenderFlags& flags, Verse.Pawn& ___pawn)
IL_002E: stloc 14 (System.Boolean)
IL_0032: Label1
IL_0032: nop
IL_0033: ldloc 14 (System.Boolean)
IL_0037: brfalse => Label0
IL_003C: // start original
IL_003C: ldarg.0
IL_003D: ldfld Verse.PawnGraphicSet Verse.PawnRenderer::graphics
IL_0042: callvirt System.Boolean Verse.PawnGraphicSet::get_AllResolved()
IL_0047: brtrue => Label2
IL_004C: ldarg.0
IL_004D: ldfld Verse.PawnGraphicSet Verse.PawnRenderer::graphics
IL_0052: callvirt System.Void Verse.PawnGraphicSet::ResolveAllGraphics()
IL_0057: Label2
IL_0057: ldarg.2
IL_0058: call static UnityEngine.Vector3 UnityEngine.Vector3::get_up()
IL_005D: call static UnityEngine.Quaternion
UnityEngine.Quaternion::AngleAxis(System.Single angle, UnityEngine.Vector3 axis)
IL_0062: stloc.0
IL_0063: ldarg.1
IL_0064: stloc.1
IL_0065: ldarg.0
IL_0066: ldfld Verse.Pawn Verse.PawnRenderer::pawn
IL_006B: ldfld Verse.Pawn_AgeTracker Verse.Pawn::ageTracker
IL_0070: callvirt RimWorld.LifeStageDef Verse.Pawn_AgeTracker::get_CurLifeStage()
IL_0075: ldflda System.Nullable`1<UnityEngine.Vector3>
RimWorld.LifeStageDef::bodyDrawOffset
IL_007A: call System.Boolean
System.Nullable`1<UnityEngine.Vector3>::get_HasValue()
IL_007F: brfalse => Label3
IL_0084: ldloc.1
IL_0085: ldarg.0
IL_0086: ldfld Verse.Pawn Verse.PawnRenderer::pawn
IL_008B: ldfld Verse.Pawn_AgeTracker Verse.Pawn::ageTracker
IL_0090: callvirt RimWorld.LifeStageDef Verse.Pawn_AgeTracker::get_CurLifeStage()
IL_0095: ldflda System.Nullable`1<UnityEngine.Vector3>
RimWorld.LifeStageDef::bodyDrawOffset
IL_009A: call UnityEngine.Vector3
System.Nullable`1<UnityEngine.Vector3>::get_Value()
IL_009F: call static UnityEngine.Vector3
UnityEngine.Vector3::op_Addition(UnityEngine.Vector3 a, UnityEngine.Vector3 b)
IL_00A4: stloc.1
IL_00A5: Label3
IL_00A5: ldloc.1
IL_00A6: stloc.2
IL_00A7: ldloc.1
IL_00A8: stloc.3
IL_00A9: ldarg.s 4
IL_00AB: ldsfld Verse.Rot4 Verse.Rot4::North
IL_00B0: call static System.Boolean Verse.Rot4::op_Inequality(Verse.Rot4 a,
Verse.Rot4 b)
IL_00B5: brfalse => Label4
IL_00BA: ldloca.s 3 (UnityEngine.Vector3)
IL_00BC: ldflda System.Single UnityEngine.Vector3::y
IL_00C1: dup
IL_00C2: ldind.r4
IL_00C3: ldc.r4 0.02316602
IL_00C8: add
IL_00C9: stind.r4
IL_00CA: ldloca.s 2 (UnityEngine.Vector3)
IL_00CC: ldflda System.Single UnityEngine.Vector3::y
IL_00D1: dup
IL_00D2: ldind.r4
IL_00D3: ldc.r4 0.02027027
IL_00D8: add
IL_00D9: stind.r4
IL_00DA: br => Label5
IL_00DF: Label4
IL_00DF: ldloca.s 3 (UnityEngine.Vector3)
IL_00E1: ldflda System.Single UnityEngine.Vector3::y
IL_00E6: dup
IL_00E7: ldind.r4
IL_00E8: ldc.r4 0.02027027
IL_00ED: add
IL_00EE: stind.r4
IL_00EF: ldloca.s 2 (UnityEngine.Vector3)
IL_00F1: ldflda System.Single UnityEngine.Vector3::y
IL_00F6: dup
IL_00F7: ldind.r4
IL_00F8: ldc.r4 0.02316602
IL_00FD: add
IL_00FE: stind.r4
IL_00FF: Label5
IL_00FF: ldloc.1
IL_0100: stloc.s 4 (UnityEngine.Vector3)
IL_0102: ldloca.s 4 (UnityEngine.Vector3)
IL_0104: ldflda System.Single UnityEngine.Vector3::y
IL_0109: dup
IL_010A: ldind.r4
IL_010B: ldarg.s 4
IL_010D: ldsfld Verse.Rot4 Verse.Rot4::South
IL_0112: call static System.Boolean Verse.Rot4::op_Equality(Verse.Rot4 a,
Verse.Rot4 b)
IL_0117: brtrue => Label6
IL_011C: ldc.r4 0.02895753
IL_0121: br => Label7
IL_0126: Label6
IL_0126: ldc.r4 0.005791505
IL_012B: Label7
IL_012B: add
IL_012C: stind.r4
IL_012D: ldnull
IL_012E: stloc.s 5 (UnityEngine.Mesh)
IL_0130: ldarg.3
IL_0131: brfalse => Label8
IL_0136: ldarg.0
IL_0137: ldloc.1
IL_0138: ldarg.2
IL_0139: ldarg.s 4
IL_013B: ldarg.s 5
IL_013D: ldarg.s 6
IL_013F: ldloca.s 5 (UnityEngine.Mesh)
IL_0141: call System.Void
Verse.PawnRenderer::DrawPawnBody(UnityEngine.Vector3 rootLoc, System.Single angle,
Verse.Rot4 facing, Verse.RotDrawMode bodyDrawType, Verse.PawnRenderFlags flags,
UnityEngine.Mesh& bodyMesh)
IL_0146: ldarg.s 5
IL_0148: brtrue => Label9
IL_014D: ldarg.0
IL_014E: ldfld Verse.PawnGraphicSet Verse.PawnRenderer::graphics
IL_0153: ldfld Verse.Graphic Verse.PawnGraphicSet::furCoveredGraphic
IL_0158: brfalse => Label10
IL_015D: ldloc.1
IL_015E: stloc.s 7 (UnityEngine.Vector3)
IL_0160: ldloca.s 7 (UnityEngine.Vector3)
IL_0162: ldflda System.Single UnityEngine.Vector3::y
IL_0167: dup
IL_0168: ldind.r4
IL_0169: ldc.r4 0.009187258
IL_016E: add
IL_016F: stind.r4
IL_0170: ldarg.0
IL_0171: ldloc.s 7 (UnityEngine.Vector3)
IL_0173: ldarg.s 4
IL_0175: ldloc.0
IL_0176: ldarg.s 6
IL_0178: call System.Void Verse.PawnRenderer::DrawPawnFur(UnityEngine.Vector3
shellLoc, Verse.Rot4 facing, UnityEngine.Quaternion quat, Verse.PawnRenderFlags
flags)
IL_017D: Label9
IL_017D: Label10
IL_017D: ldloc.1
IL_017E: stloc.s 6 (UnityEngine.Vector3)
IL_0180: ldloca.s 6 (UnityEngine.Vector3)
IL_0182: ldflda System.Single UnityEngine.Vector3::y
IL_0187: dup
IL_0188: ldind.r4
IL_0189: ldc.r4 0.009687258
IL_018E: add
IL_018F: stind.r4
IL_0190: ldarg.s 5
IL_0192: brtrue => Label11
IL_0197: ldarg.0
IL_0198: ldfld RimWorld.PawnWoundDrawer Verse.PawnRenderer::woundOverlays
IL_019D: ldloc.s 6 (UnityEngine.Vector3)
IL_019F: ldloc.s 5 (UnityEngine.Mesh)
IL_01A1: ldloc.0
IL_01A2: ldarg.s 6
IL_01A4: ldc.i4.8
IL_01A5: call static System.Boolean
Verse.PawnRenderFlagsExtension::FlagSet(Verse.PawnRenderFlags flags,
Verse.PawnRenderFlags flag)
IL_01AA: ldc.i4.0
IL_01AB: ldarg.s 4
IL_01AD: ldc.i4.0
IL_01AE: newobj System.Void
System.Nullable`1<System.Boolean>::.ctor(System.Boolean value)
IL_01B3: callvirt System.Void
RimWorld.PawnOverlayDrawer::RenderPawnOverlay(UnityEngine.Vector3 drawLoc,
UnityEngine.Mesh bodyMesh, UnityEngine.Quaternion quat, System.Boolean drawNow,
RimWorld.OverlayLayer layer, Verse.Rot4 pawnRot, System.Nullable`1<System.Boolean>
overApparel)
IL_01B8: Label11
IL_01B8: ldarg.s 6
IL_01BA: ldc.i4.s 64
IL_01BC: call static System.Boolean
Verse.PawnRenderFlagsExtension::FlagSet(Verse.PawnRenderFlags flags,
Verse.PawnRenderFlags flag)
IL_01C1: brfalse => Label12
IL_01C6: ldarg.0
IL_01C7: ldloc.2
IL_01C8: ldloc.s 4 (UnityEngine.Vector3)
IL_01CA: ldloc.s 5 (UnityEngine.Mesh)
IL_01CC: ldarg.2
IL_01CD: ldarg.s 4
IL_01CF: ldarg.s 6
IL_01D1: call System.Void
Verse.PawnRenderer::DrawBodyApparel(UnityEngine.Vector3 shellLoc,
UnityEngine.Vector3 utilityLoc, UnityEngine.Mesh bodyMesh, System.Single angle,
Verse.Rot4 bodyFacing, Verse.PawnRenderFlags flags)
IL_01D6: Label12
IL_01D6: ldarg.0
IL_01D7: ldfld Verse.Pawn Verse.PawnRenderer::pawn
IL_01DC: call static System.Boolean
RimWorld.ChildcareUtility::SwaddleBaby(Verse.Pawn baby)
IL_01E1: brfalse => Label13
IL_01E6: ldarg.0
IL_01E7: ldloc.2
IL_01E8: ldarg.s 4
IL_01EA: ldloc.0
IL_01EB: ldarg.s 6
IL_01ED: call System.Void Verse.PawnRenderer::SwaddleBaby(UnityEngine.Vector3
shellLoc, Verse.Rot4 facing, UnityEngine.Quaternion quat, Verse.PawnRenderFlags
flags)
IL_01F2: Label13
IL_01F2: call static System.Boolean Verse.ModLister::get_BiotechInstalled()
IL_01F7: brfalse => Label14
IL_01FC: ldarg.0
IL_01FD: ldfld Verse.Pawn Verse.PawnRenderer::pawn
IL_0202: ldfld RimWorld.Pawn_GeneTracker Verse.Pawn::genes
IL_0207: brfalse => Label15
IL_020C: ldarg.0
IL_020D: ldloc.1
IL_020E: ldloc.0
IL_020F: ldarg.2
IL_0210: ldarg.s 4
IL_0212: ldarg.s 5
IL_0214: ldarg.s 6
IL_0216: call System.Void
Verse.PawnRenderer::DrawBodyGenes(UnityEngine.Vector3 rootLoc,
UnityEngine.Quaternion quat, System.Single angle, Verse.Rot4 bodyFacing,
Verse.RotDrawMode bodyDrawType, Verse.PawnRenderFlags flags)
IL_021B: Label14
IL_021B: Label15
IL_021B: ldloc.1
IL_021C: stloc.s 6 (UnityEngine.Vector3)
IL_021E: ldloca.s 6 (UnityEngine.Vector3)
IL_0220: ldflda System.Single UnityEngine.Vector3::y
IL_0225: dup
IL_0226: ldind.r4
IL_0227: ldc.r4 0.02216602
IL_022C: add
IL_022D: stind.r4
IL_022E: ldarg.s 5
IL_0230: brtrue => Label16
IL_0235: ldarg.0
IL_0236: ldfld RimWorld.PawnWoundDrawer Verse.PawnRenderer::woundOverlays
IL_023B: ldloc.s 6 (UnityEngine.Vector3)
IL_023D: ldloc.s 5 (UnityEngine.Mesh)
IL_023F: ldloc.0
IL_0240: ldarg.s 6
IL_0242: ldc.i4.8
IL_0243: call static System.Boolean
Verse.PawnRenderFlagsExtension::FlagSet(Verse.PawnRenderFlags flags,
Verse.PawnRenderFlags flag)
IL_0248: ldc.i4.0
IL_0249: ldarg.s 4
IL_024B: ldc.i4.1
IL_024C: newobj System.Void
System.Nullable`1<System.Boolean>::.ctor(System.Boolean value)
IL_0251: callvirt System.Void
RimWorld.PawnOverlayDrawer::RenderPawnOverlay(UnityEngine.Vector3 drawLoc,
UnityEngine.Mesh bodyMesh, UnityEngine.Quaternion quat, System.Boolean drawNow,
RimWorld.OverlayLayer layer, Verse.Rot4 pawnRot, System.Nullable`1<System.Boolean>
overApparel)
IL_0256: Label8
IL_0256: Label16
IL_0256: call static UnityEngine.Vector3 UnityEngine.Vector3::get_zero()
IL_025B: stloc.s 8 (UnityEngine.Vector3)
IL_025D: ldloc.1
IL_025E: stloc.s 6 (UnityEngine.Vector3)
IL_0260: ldloca.s 6 (UnityEngine.Vector3)
IL_0262: ldflda System.Single UnityEngine.Vector3::y
IL_0267: dup
IL_0268: ldind.r4
IL_0269: ldc.r4 0.02895753
IL_026E: add
IL_026F: stind.r4
IL_0270: ldarg.s 4
IL_0272: stloc.s 9 (Verse.Rot4)
IL_0274: ldnull
IL_0275: stloc.s 10 (UnityEngine.Mesh)
IL_0277: ldarg.0
IL_0278: ldfld Verse.PawnGraphicSet Verse.PawnRenderer::graphics
IL_027D: ldfld Verse.Graphic Verse.PawnGraphicSet::headGraphic
IL_0282: brfalse => Label17
IL_0287: ldloc.0
IL_0288: ldarg.0
IL_0289: ldloc.s 9 (Verse.Rot4)
IL_028B: call UnityEngine.Vector3
Verse.PawnRenderer::BaseHeadOffsetAt(Verse.Rot4 rotation)
IL_0290: call static UnityEngine.Vector3
UnityEngine.Quaternion::op_Multiply(UnityEngine.Quaternion rotation,
UnityEngine.Vector3 point)
IL_0295: stloc.s 8 (UnityEngine.Vector3)
IL_0297: ldarg.0
IL_0298: ldfld Verse.PawnGraphicSet Verse.PawnRenderer::graphics
IL_029D: ldloc.s 9 (Verse.Rot4)
IL_029F: ldarg.s 5
IL_02A1: ldarg.s 6
IL_02A3: ldc.i4.2
IL_02A4: call static System.Boolean
Verse.PawnRenderFlagsExtension::FlagSet(Verse.PawnRenderFlags flags,
Verse.PawnRenderFlags flag)
IL_02A9: ldarg.s 6
IL_02AB: ldc.i4.1
IL_02AC: call static System.Boolean
Verse.PawnRenderFlagsExtension::FlagSet(Verse.PawnRenderFlags flags,
Verse.PawnRenderFlags flag)
IL_02B1: ldarg.s 6
IL_02B3: ldc.i4.s 16
IL_02B5: call static System.Boolean
Verse.PawnRenderFlagsExtension::FlagSet(Verse.PawnRenderFlags flags,
Verse.PawnRenderFlags flag)
IL_02BA: ldc.i4.0
IL_02BB: ceq
IL_02BD: callvirt UnityEngine.Material Verse.PawnGraphicSet::HeadMatAt(Verse.Rot4
facing, Verse.RotDrawMode bodyCondition, System.Boolean stump, System.Boolean
portrait, System.Boolean allowOverride)
IL_02C2: stloc.s 11 (UnityEngine.Material)
IL_02C4: ldloc.s 11 (UnityEngine.Material)
IL_02C6: ldnull
IL_02C7: call static System.Boolean
UnityEngine.Object::op_Inequality(UnityEngine.Object x, UnityEngine.Object y)
IL_02CC: brfalse => Label18
IL_02D1: ldarg.0
IL_02D2: ldfld Verse.Pawn Verse.PawnRenderer::pawn
IL_02D7: call static Verse.GraphicMeshSet
Verse.HumanlikeMeshPoolUtility::GetHumanlikeHeadSetForPawn(Verse.Pawn pawn)
IL_02DC: ldloc.s 9 (Verse.Rot4)
IL_02DE: callvirt UnityEngine.Mesh Verse.GraphicMeshSet::MeshAt(Verse.Rot4 rot)
IL_02E3: stloc.s 10 (UnityEngine.Mesh)
IL_02E5: ldloc.s 10 (UnityEngine.Mesh)
IL_02E7: ldloc.3
IL_02E8: ldloc.s 8 (UnityEngine.Vector3)
IL_02EA: call static UnityEngine.Vector3
UnityEngine.Vector3::op_Addition(UnityEngine.Vector3 a, UnityEngine.Vector3 b)
IL_02EF: ldloc.0
IL_02F0: ldloc.s 11 (UnityEngine.Material)
IL_02F2: ldarg.s 6
IL_02F4: ldc.i4.8
IL_02F5: call static System.Boolean
Verse.PawnRenderFlagsExtension::FlagSet(Verse.PawnRenderFlags flags,
Verse.PawnRenderFlags flag)
IL_02FA: call static System.Void
FacialAnimation.HarmonyPatches::DrawFace(UnityEngine.Mesh mesh, UnityEngine.Vector3
pos, UnityEngine.Quaternion quaternion, UnityEngine.Material mat, System.Boolean
portrait)
IL_02FF: Label17
IL_02FF: Label18
IL_02FF: ldarg.s 5
IL_0301: brtrue => Label19
IL_0306: ldarg.0
IL_0307: ldfld RimWorld.PawnWoundDrawer Verse.PawnRenderer::woundOverlays
IL_030C: ldloc.s 6 (UnityEngine.Vector3)
IL_030E: ldloc.s 5 (UnityEngine.Mesh)
IL_0310: ldloc.0
IL_0311: ldarg.s 6
IL_0313: ldc.i4.8
IL_0314: call static System.Boolean
Verse.PawnRenderFlagsExtension::FlagSet(Verse.PawnRenderFlags flags,
Verse.PawnRenderFlags flag)
IL_0319: ldc.i4.1
IL_031A: ldloc.s 9 (Verse.Rot4)
IL_031C: ldloca.s 12 (System.Nullable`1[System.Boolean])
IL_031E: initobj System.Nullable`1[System.Boolean]
IL_0324: ldloc.s 12 (System.Nullable`1[System.Boolean])
IL_0326: callvirt System.Void
RimWorld.PawnOverlayDrawer::RenderPawnOverlay(UnityEngine.Vector3 drawLoc,
UnityEngine.Mesh bodyMesh, UnityEngine.Quaternion quat, System.Boolean drawNow,
RimWorld.OverlayLayer layer, Verse.Rot4 pawnRot, System.Nullable`1<System.Boolean>
overApparel)
IL_032B: Label19
IL_032B: ldarg.0
IL_032C: ldfld Verse.PawnGraphicSet Verse.PawnRenderer::graphics
IL_0331: ldfld Verse.Graphic Verse.PawnGraphicSet::headGraphic
IL_0336: brfalse => Label20
IL_033B: ldarg.0
IL_033C: ldloc.1
IL_033D: ldloc.s 8 (UnityEngine.Vector3)
IL_033F: ldarg.2
IL_0340: ldarg.s 4
IL_0342: ldloc.s 9 (Verse.Rot4)
IL_0344: ldarg.s 5
IL_0346: ldarg.s 6
IL_0348: ldarg.3
IL_0349: call System.Void
Verse.PawnRenderer::DrawHeadHair(UnityEngine.Vector3 rootLoc, UnityEngine.Vector3
headOffset, System.Single angle, Verse.Rot4 bodyFacing, Verse.Rot4 headFacing,
Verse.RotDrawMode bodyDrawType, Verse.PawnRenderFlags flags, System.Boolean
bodyDrawn)
IL_034E: Label20
IL_034E: ldarg.s 6
IL_0350: ldc.i4.1
IL_0351: call static System.Boolean
Verse.PawnRenderFlagsExtension::FlagSet(Verse.PawnRenderFlags flags,
Verse.PawnRenderFlags flag)
IL_0356: brtrue => Label21
IL_035B: ldarg.0
IL_035C: ldfld Verse.Pawn Verse.PawnRenderer::pawn
IL_0361: callvirt Verse.RaceProperties Verse.Pawn::get_RaceProps()
IL_0366: callvirt System.Boolean Verse.RaceProperties::get_Animal()
IL_036B: brfalse => Label22
IL_0370: ldarg.0
IL_0371: ldfld Verse.Pawn Verse.PawnRenderer::pawn
IL_0376: ldfld Verse.Pawn_InventoryTracker Verse.Pawn::inventory
IL_037B: brfalse => Label23
IL_0380: ldarg.0
IL_0381: ldfld Verse.Pawn Verse.PawnRenderer::pawn
IL_0386: ldfld Verse.Pawn_InventoryTracker Verse.Pawn::inventory
IL_038B: ldfld Verse.ThingOwner`1<Verse.Thing>
Verse.Pawn_InventoryTracker::innerContainer
IL_0390: callvirt abstract virtual System.Int32 Verse.ThingOwner::get_Count()
IL_0395: ldc.i4.0
IL_0396: ble => Label24
IL_039B: ldarg.0
IL_039C: ldfld Verse.PawnGraphicSet Verse.PawnRenderer::graphics
IL_03A1: ldfld Verse.Graphic Verse.PawnGraphicSet::packGraphic
IL_03A6: brfalse => Label25
IL_03AB: ldloc.s 5 (UnityEngine.Mesh)
IL_03AD: ldloc.2
IL_03AE: ldloc.0
IL_03AF: call static UnityEngine.Vector3 UnityEngine.Vector3::get_one()
IL_03B4: call static UnityEngine.Matrix4x4
UnityEngine.Matrix4x4::TRS(UnityEngine.Vector3 pos, UnityEngine.Quaternion q,
UnityEngine.Vector3 s)
IL_03B9: ldarg.0
IL_03BA: ldfld Verse.PawnGraphicSet Verse.PawnRenderer::graphics
IL_03BF: ldfld Verse.Graphic Verse.PawnGraphicSet::packGraphic
IL_03C4: ldarg.s 4
IL_03C6: ldnull
IL_03C7: callvirt virtual UnityEngine.Material Verse.Graphic::MatAt(Verse.Rot4
rot, Verse.Thing thing)
IL_03CC: ldarg.s 6
IL_03CE: ldc.i4.8
IL_03CF: call static System.Boolean
Verse.PawnRenderFlagsExtension::FlagSet(Verse.PawnRenderFlags flags,
Verse.PawnRenderFlags flag)
IL_03D4: call static System.Void
Verse.GenDraw::DrawMeshNowOrLater(UnityEngine.Mesh mesh, UnityEngine.Matrix4x4
matrix, UnityEngine.Material mat, System.Boolean drawNow)
IL_03D9: Label21
IL_03D9: Label22
IL_03D9: Label23
IL_03D9: Label24
IL_03D9: Label25
IL_03D9: ldarg.s 5
IL_03DB: brtrue => Label26
IL_03E0: ldarg.0
IL_03E1: ldfld RimWorld.PawnFirefoamDrawer
Verse.PawnRenderer::firefoamOverlays
IL_03E6: ldfld System.Boolean RimWorld.PawnFirefoamDrawer::IsCoveredInFoam
IL_03EB: brfalse => Label27
IL_03F0: ldloc.1
IL_03F1: stloc.s 13 (UnityEngine.Vector3)
IL_03F3: ldloca.s 13 (UnityEngine.Vector3)
IL_03F5: ldflda System.Single UnityEngine.Vector3::y
IL_03FA: dup
IL_03FB: ldind.r4
IL_03FC: ldc.r4 0.03330116
IL_0401: add
IL_0402: stind.r4
IL_0403: ldarg.3
IL_0404: brfalse => Label28
IL_0409: ldarg.0
IL_040A: ldfld RimWorld.PawnFirefoamDrawer
Verse.PawnRenderer::firefoamOverlays
IL_040F: ldloc.s 13 (UnityEngine.Vector3)
IL_0411: ldloc.s 5 (UnityEngine.Mesh)
IL_0413: ldloc.0
IL_0414: ldarg.s 6
IL_0416: ldc.i4.8
IL_0417: call static System.Boolean
Verse.PawnRenderFlagsExtension::FlagSet(Verse.PawnRenderFlags flags,
Verse.PawnRenderFlags flag)
IL_041C: ldc.i4.0
IL_041D: ldarg.s 4
IL_041F: ldloca.s 12 (System.Nullable`1[System.Boolean])
IL_0421: initobj System.Nullable`1[System.Boolean]
IL_0427: ldloc.s 12 (System.Nullable`1[System.Boolean])
IL_0429: callvirt System.Void
RimWorld.PawnOverlayDrawer::RenderPawnOverlay(UnityEngine.Vector3 drawLoc,
UnityEngine.Mesh bodyMesh, UnityEngine.Quaternion quat, System.Boolean drawNow,
RimWorld.OverlayLayer layer, Verse.Rot4 pawnRot, System.Nullable`1<System.Boolean>
overApparel)
IL_042E: Label28
IL_042E: ldloc.s 10 (UnityEngine.Mesh)
IL_0430: ldnull
IL_0431: call static System.Boolean
UnityEngine.Object::op_Inequality(UnityEngine.Object x, UnityEngine.Object y)
IL_0436: brfalse => Label29
IL_043B: ldloc.3
IL_043C: ldloc.s 8 (UnityEngine.Vector3)
IL_043E: call static UnityEngine.Vector3
UnityEngine.Vector3::op_Addition(UnityEngine.Vector3 a, UnityEngine.Vector3 b)
IL_0443: stloc.s 13 (UnityEngine.Vector3)
IL_0445: ldloca.s 13 (UnityEngine.Vector3)
IL_0447: ldflda System.Single UnityEngine.Vector3::y
IL_044C: dup
IL_044D: ldind.r4
IL_044E: ldc.r4 0.03330116
IL_0453: add
IL_0454: stind.r4
IL_0455: ldarg.0
IL_0456: ldfld RimWorld.PawnFirefoamDrawer
Verse.PawnRenderer::firefoamOverlays
IL_045B: ldloc.s 13 (UnityEngine.Vector3)
IL_045D: ldloc.s 10 (UnityEngine.Mesh)
IL_045F: ldloc.0
IL_0460: ldarg.s 6
IL_0462: ldc.i4.8
IL_0463: call static System.Boolean
Verse.PawnRenderFlagsExtension::FlagSet(Verse.PawnRenderFlags flags,
Verse.PawnRenderFlags flag)
IL_0468: ldc.i4.1
IL_0469: ldarg.s 4
IL_046B: ldloca.s 12 (System.Nullable`1[System.Boolean])
IL_046D: initobj System.Nullable`1[System.Boolean]
IL_0473: ldloc.s 12 (System.Nullable`1[System.Boolean])
IL_0475: callvirt System.Void
RimWorld.PawnOverlayDrawer::RenderPawnOverlay(UnityEngine.Vector3 drawLoc,
UnityEngine.Mesh bodyMesh, UnityEngine.Quaternion quat, System.Boolean drawNow,
RimWorld.OverlayLayer layer, Verse.Rot4 pawnRot, System.Nullable`1<System.Boolean>
overApparel)
IL_047A: Label26
IL_047A: Label27
IL_047A: Label29
IL_047A: ldarg.s 6
IL_047C: ldc.i4.1
IL_047D: call static System.Boolean
Verse.PawnRenderFlagsExtension::FlagSet(Verse.PawnRenderFlags flags,
Verse.PawnRenderFlags flag)
IL_0482: brtrue => Label30
IL_0487: ldarg.s 6
IL_0489: ldc.i4.s 16
IL_048B: call static System.Boolean
Verse.PawnRenderFlagsExtension::FlagSet(Verse.PawnRenderFlags flags,
Verse.PawnRenderFlags flag)
IL_0490: brtrue => Label31
IL_0495: ldarg.0
IL_0496: ldloc.1
IL_0497: ldarg.2
IL_0498: ldarg.s 4
IL_049A: ldarg.s 6
IL_049C: call System.Void
Verse.PawnRenderer::DrawDynamicParts(UnityEngine.Vector3 rootLoc, System.Single
angle, Verse.Rot4 pawnRotation, Verse.PawnRenderFlags flags)
IL_04A1: // end original
IL_04A1: Label30
IL_04A1: Label31
IL_04A1: Label0
IL_04A1: call static System.Void
FacialAnimation.HarmonyPatches::PostfixRenderPawnInternal()
IL_04A6: ret
DONE

### Patch: UnityEngine.Vector3 Verse.PawnRenderer::BaseHeadOffsetAt(Verse.Rot4


rotation)
### Replacement: static UnityEngine.Vector3
Verse.PawnRenderer::Verse.PawnRenderer.BaseHeadOffsetAt_Patch1(Verse.PawnRenderer
this, Verse.Rot4 rotation)
IL_0000: Local var 0: UnityEngine.Vector2
IL_0000: Local var 1: System.Int32
IL_0000: Local var 2: UnityEngine.Vector3
IL_0000: ldloca 2 (UnityEngine.Vector3)
IL_0004: initobj UnityEngine.Vector3
IL_000A: // start original
IL_000A: ldarg.0
IL_000B: ldfld Verse.Pawn Verse.PawnRenderer::pawn
IL_0010: ldfld RimWorld.Pawn_StoryTracker Verse.Pawn::story
IL_0015: ldfld RimWorld.BodyTypeDef RimWorld.Pawn_StoryTracker::bodyType
IL_001A: ldfld UnityEngine.Vector2 RimWorld.BodyTypeDef::headOffset
IL_001F: ldarg.0
IL_0020: ldfld Verse.Pawn Verse.PawnRenderer::pawn
IL_0025: call static UnityEngine.Vector2
VanillaGenesExpanded.PawnRenderer_BaseHeadOffsetAt_Patch::LifeStageFactorUpdated(Un
ityEngine.Vector2 offset, Verse.Pawn pawn)
IL_002A: stloc.0
IL_002B: ldarga.s 1
IL_002D: call System.Int32 Verse.Rot4::get_AsInt()
IL_0032: stloc.1
IL_0033: ldloc.1
IL_0034: switch => Labels0,1,2,3
IL_0049: br => Label4
IL_004E: Label0
IL_004E: ldc.r4 0
IL_0053: ldc.r4 0
IL_0058: ldloc.0
IL_0059: ldfld System.Single UnityEngine.Vector2::y
IL_005E: newobj System.Void UnityEngine.Vector3::.ctor(System.Single x,
System.Single y, System.Single z)
IL_0063: br => Label5
IL_0068: Label1
IL_0068: ldloc.0
IL_0069: ldfld System.Single UnityEngine.Vector2::x
IL_006E: ldc.r4 0
IL_0073: ldloc.0
IL_0074: ldfld System.Single UnityEngine.Vector2::y
IL_0079: newobj System.Void UnityEngine.Vector3::.ctor(System.Single x,
System.Single y, System.Single z)
IL_007E: br => Label6
IL_0083: Label2
IL_0083: ldc.r4 0
IL_0088: ldc.r4 0
IL_008D: ldloc.0
IL_008E: ldfld System.Single UnityEngine.Vector2::y
IL_0093: newobj System.Void UnityEngine.Vector3::.ctor(System.Single x,
System.Single y, System.Single z)
IL_0098: br => Label7
IL_009D: Label3
IL_009D: ldloc.0
IL_009E: ldfld System.Single UnityEngine.Vector2::x
IL_00A3: neg
IL_00A4: ldc.r4 0
IL_00A9: ldloc.0
IL_00AA: ldfld System.Single UnityEngine.Vector2::y
IL_00AF: newobj System.Void UnityEngine.Vector3::.ctor(System.Single x,
System.Single y, System.Single z)
IL_00B4: br => Label8
IL_00B9: Label4
IL_00B9: ldstr "BaseHeadOffsetAt error in "
IL_00BE: ldarg.0
IL_00BF: ldfld Verse.Pawn Verse.PawnRenderer::pawn
IL_00C4: call static System.String System.String::Concat(System.Object arg0,
System.Object arg1)
IL_00C9: call static System.Void Verse.Log::Error(System.String text)
IL_00CE: call static UnityEngine.Vector3 UnityEngine.Vector3::get_zero()
IL_00D3: // end original
IL_00D3: Label5
IL_00D3: Label6
IL_00D3: Label7
IL_00D3: Label8
IL_00D3: stloc 2 (UnityEngine.Vector3)
IL_00D7: ldloca 2 (UnityEngine.Vector3)
IL_00DB: call static System.Void
FacialAnimation.HarmonyPatches::PostfixBaseHeadOffsetAt(UnityEngine.Vector3&
__result)
IL_00E0: ldloc 2 (UnityEngine.Vector3)
IL_00E4: ret
DONE

### Patch: System.Void Verse.PawnRenderer::RenderPawnAt(UnityEngine.Vector3


drawLoc, System.Nullable`1<Verse.Rot4> rotOverride, System.Boolean neverAimWeapon)
### Replacement: static System.Void
Verse.PawnRenderer::Verse.PawnRenderer.RenderPawnAt_Patch2(Verse.PawnRenderer this,
UnityEngine.Vector3 drawLoc, System.Nullable`1<Verse.Rot4> rotOverride,
System.Boolean neverAimWeapon)
IL_0000: Local var 0: Verse.Rot4
IL_0000: Local var 1: Verse.PawnRenderFlags
IL_0000: Local var 2: Verse.RotDrawMode
IL_0000: Local var 3: System.Boolean
IL_0000: Local var 4: Verse.PawnTextureAtlasFrameSet
IL_0000: Local var 5: System.Nullable`1<Verse.Rot4>
IL_0000: Local var 6: System.Boolean
IL_0000: Local var 7: UnityEngine.Material
IL_0000: Local var 8: UnityEngine.Vector3
IL_0000: Local var 9: System.Boolean
IL_0000: Local var 10: System.Single
IL_0000: Local var 11: Verse.Rot4
IL_0000: Local var 12: UnityEngine.Material
IL_0000: Local var 13: System.Boolean
IL_0000: ldc.i4 0
IL_0005: stloc 13 (System.Boolean)
IL_0009: ldc.i4.1
IL_000A: stloc 13 (System.Boolean)
IL_000E: ldloc 13 (System.Boolean)
IL_0012: brfalse => Label1
IL_0017: ldarg.0
IL_0018: ldfld Verse.Pawn Verse.PawnRenderer::pawn
IL_001D: call static System.Boolean
CameraPlus.PawnRenderer_RenderPawnAt_Patch::Prefix(Verse.Pawn ___pawn)
IL_0022: stloc 13 (System.Boolean)
IL_0026: Label1
IL_0026: nop
IL_0027: ldloc 13 (System.Boolean)
IL_002B: brfalse => Label0
IL_0030: // start original
IL_0030: ldarg.0
IL_0031: ldfld Verse.PawnGraphicSet Verse.PawnRenderer::graphics
IL_0036: callvirt System.Boolean Verse.PawnGraphicSet::get_AllResolved()
IL_003B: brtrue => Label2
IL_0040: ldarg.0
IL_0041: ldfld Verse.PawnGraphicSet Verse.PawnRenderer::graphics
IL_0046: callvirt System.Void Verse.PawnGraphicSet::ResolveAllGraphics()
IL_004B: Label2
IL_004B: ldarg.2
IL_004C: stloc.s 5 (System.Nullable`1[Verse.Rot4])
IL_004E: ldloca.s 5 (System.Nullable`1[Verse.Rot4])
IL_0050: call System.Boolean System.Nullable`1<Verse.Rot4>::get_HasValue()
IL_0055: brtrue => Label3
IL_005A: ldarg.0
IL_005B: ldfld Verse.Pawn Verse.PawnRenderer::pawn
IL_0060: callvirt Verse.Rot4 Verse.Thing::get_Rotation()
IL_0065: br => Label4
IL_006A: Label3
IL_006A: ldloca.s 5 (System.Nullable`1[Verse.Rot4])
IL_006C: call Verse.Rot4 System.Nullable`1<Verse.Rot4>::GetValueOrDefault()
IL_0071: Label4
IL_0071: stloc.0
IL_0072: ldarg.0
IL_0073: ldarg.0
IL_0074: ldfld Verse.Pawn Verse.PawnRenderer::pawn
IL_0079: call Verse.PawnRenderFlags
Verse.PawnRenderer::GetDefaultRenderFlags(Verse.Pawn pawn)
IL_007E: stloc.1
IL_007F: ldloc.1
IL_0080: ldc.i4.s 64
IL_0082: or
IL_0083: stloc.1
IL_0084: ldloc.1
IL_0085: ldc.i4.s 32
IL_0087: or
IL_0088: stloc.1
IL_0089: ldarg.3
IL_008A: brfalse => Label5
IL_008F: ldloc.1
IL_0090: ldc.i4 128
IL_0095: or
IL_0096: stloc.1
IL_0097: Label5
IL_0097: ldarg.0
IL_0098: call Verse.RotDrawMode Verse.PawnRenderer::get_CurRotDrawMode()
IL_009D: stloc.2
IL_009E: ldarg.0
IL_009F: ldfld Verse.Pawn Verse.PawnRenderer::pawn
IL_00A4: callvirt Verse.RaceProperties Verse.Pawn::get_RaceProps()
IL_00A9: callvirt System.Boolean Verse.RaceProperties::get_Humanlike()
IL_00AE: ldarg.0
IL_00AF: ldfld Verse.Pawn Verse.PawnRenderer::pawn
IL_00B4: call static System.Boolean
VFECore.Patch_RenderPawnAt::ShouldDisableCaching(Verse.Pawn pawn)
IL_00B9: ldc.i4.0
IL_00BA: ceq
IL_00BC: and
IL_00BD: ldloc.1
IL_00BE: call static Verse.PawnRenderFlags
VFECore.Patch_RenderPawnAt::ChangeFlags(Verse.PawnRenderFlags pawnRenderFlags)
IL_00C3: stloc.1
IL_00C4: brfalse => Label6
IL_00C9: call static Verse.CameraDriver Verse.Find::get_CameraDriver()
IL_00CE: callvirt System.Single Verse.CameraDriver::get_ZoomRootSize()
IL_00D3: pop
IL_00D4: ldc.r4 Infinity
IL_00D9: ldc.r4 18
IL_00DE: ble.un => Label7
IL_00E3: ldloc.2
IL_00E4: ldc.i4.2
IL_00E5: beq => Label8
IL_00EA: ldarg.0
IL_00EB: ldfld Verse.Pawn Verse.PawnRenderer::pawn
IL_00F0: call static System.Boolean
RimWorld.PawnUtility::IsInvisible(Verse.Pawn pawn)
IL_00F5: brtrue => Label9
IL_00FA: ldloc.1
IL_00FB: ldc.i4.1
IL_00FC: call static System.Boolean
Verse.PawnRenderFlagsExtension::FlagSet(Verse.PawnRenderFlags flags,
Verse.PawnRenderFlags flag)
IL_0101: ldc.i4.0
IL_0102: ceq
IL_0104: br => Label10
IL_0109: Label6
IL_0109: Label7
IL_0109: Label8
IL_0109: Label9
IL_0109: ldc.i4.0
IL_010A: Label10
IL_010A: stloc.3
IL_010B: ldarg.0
IL_010C: ldfld Verse.Pawn Verse.PawnRenderer::pawn
IL_0111: ldloca 3
IL_0115: ldloca 1
IL_0119: call static System.Void
VFEAncients.HarmonyPatches.MetaMorphPatches::CheckMetaMorphForDraw(Verse.Pawn pawn,
System.Boolean& useCache, Verse.PawnRenderFlags& pawnRenderFlags)
IL_011E: ldnull
IL_011F: stloc.s 4 (Verse.PawnTextureAtlasFrameSet)
IL_0121: ldloc.3
IL_0122: brfalse => Label11
IL_0127: ldarg.0
IL_0128: ldfld Verse.Pawn Verse.PawnRenderer::pawn
IL_012D: ldloca.s 4 (Verse.PawnTextureAtlasFrameSet)
IL_012F: ldloca.s 6 (System.Boolean)
IL_0131: ldc.i4.1
IL_0132: call static System.Boolean
Verse.GlobalTextureAtlasManager::TryGetPawnFrameSet(Verse.Pawn pawn,
Verse.PawnTextureAtlasFrameSet& frameSet, System.Boolean& createdNew,
System.Boolean allowCreatingNew)
IL_0137: brtrue => Label12
IL_013C: ldc.i4.0
IL_013D: stloc.3
IL_013E: Label11
IL_013E: Label12
IL_013E: ldarg.0
IL_013F: ldfld Verse.Pawn Verse.PawnRenderer::pawn
IL_0144: ldloc.3
IL_0145: call static System.Boolean
FacialAnimation.HarmonyPatches::HasDrawFaceGraphicsComp(Verse.Pawn pawn,
System.Boolean original)
IL_014A: stloc.3
IL_014B: ldarg.0
IL_014C: ldfld Verse.Pawn Verse.PawnRenderer::pawn
IL_0151: call static RimWorld.PawnPosture
RimWorld.PawnUtility::GetPosture(Verse.Pawn p)
IL_0156: brtrue => Label13
IL_015B: ldloc.3
IL_015C: brfalse => Label14
IL_0161: ldloc.s 4 (Verse.PawnTextureAtlasFrameSet)
IL_0163: ldfld UnityEngine.RenderTexture Verse.PawnTextureAtlasFrameSet::atlas
IL_0168: ldsfld UnityEngine.Shader Verse.ShaderDatabase::Cutout
IL_016D: newobj System.Void Verse.MaterialRequest::.ctor(UnityEngine.Texture
tex, UnityEngine.Shader shader)
IL_0172: call static UnityEngine.Material
Verse.MaterialPool::MatFrom(Verse.MaterialRequest req)
IL_0177: stloc.s 7 (UnityEngine.Material)
IL_0179: ldarg.0
IL_017A: ldloc.s 7 (UnityEngine.Material)
IL_017C: ldarg.0
IL_017D: ldfld Verse.Pawn Verse.PawnRenderer::pawn
IL_0182: ldc.i4.0
IL_0183: call UnityEngine.Material
Verse.PawnRenderer::OverrideMaterialIfNeeded(UnityEngine.Material original,
Verse.Pawn pawn, System.Boolean portrait)
IL_0188: stloc.s 7 (UnityEngine.Material)
IL_018A: ldarg.0
IL_018B: ldloc.s 4 (Verse.PawnTextureAtlasFrameSet)
IL_018D: ldloc.0
IL_018E: ldc.i4.0
IL_018F: call UnityEngine.Mesh
Verse.PawnRenderer::GetBlitMeshUpdatedFrame(Verse.PawnTextureAtlasFrameSet
frameSet, Verse.Rot4 rotation, Verse.PawnDrawMode drawMode)
IL_0194: ldarg.1
IL_0195: ldc.r4 0
IL_019A: call static UnityEngine.Vector3 UnityEngine.Vector3::get_up()
IL_019F: call static UnityEngine.Quaternion
UnityEngine.Quaternion::AngleAxis(System.Single angle, UnityEngine.Vector3 axis)
IL_01A4: ldloc.s 7 (UnityEngine.Material)
IL_01A6: ldc.i4.0
IL_01A7: call static System.Void
Verse.GenDraw::DrawMeshNowOrLater(UnityEngine.Mesh mesh, UnityEngine.Vector3 loc,
UnityEngine.Quaternion quat, UnityEngine.Material mat, System.Boolean drawNow)
IL_01AC: ldarg.0
IL_01AD: ldarg.1
IL_01AE: ldc.r4 0
IL_01B3: ldloc.0
IL_01B4: ldloc.1
IL_01B5: call System.Void
Verse.PawnRenderer::DrawDynamicParts(UnityEngine.Vector3 rootLoc, System.Single
angle, Verse.Rot4 pawnRotation, Verse.PawnRenderFlags flags)
IL_01BA: br => Label15
IL_01BF: Label14
IL_01BF: ldarg.0
IL_01C0: ldarg.1
IL_01C1: ldc.r4 0
IL_01C6: ldc.i4.1
IL_01C7: ldloc.0
IL_01C8: ldloc.2
IL_01C9: ldloc.1
IL_01CA: call System.Void
Verse.PawnRenderer::RenderPawnInternal(UnityEngine.Vector3 rootLoc, System.Single
angle, System.Boolean renderBody, Verse.Rot4 bodyFacing, Verse.RotDrawMode
bodyDrawType, Verse.PawnRenderFlags flags)
IL_01CF: Label15
IL_01CF: ldarg.0
IL_01D0: ldarg.1
IL_01D1: call System.Void
Verse.PawnRenderer::DrawCarriedThing(UnityEngine.Vector3 drawLoc)
IL_01D6: ldloc.1
IL_01D7: ldc.i4.4
IL_01D8: call static System.Boolean
Verse.PawnRenderFlagsExtension::FlagSet(Verse.PawnRenderFlags flags,
Verse.PawnRenderFlags flag)
IL_01DD: brtrue => Label16
IL_01E2: ldarg.0
IL_01E3: ldarg.1
IL_01E4: call System.Void
Verse.PawnRenderer::DrawInvisibleShadow(UnityEngine.Vector3 drawLoc)
IL_01E9: br => Label17
IL_01EE: Label13
IL_01EE: ldarg.0
IL_01EF: ldarg.1
IL_01F0: ldloca.s 9 (System.Boolean)
IL_01F2: call UnityEngine.Vector3
Verse.PawnRenderer::GetBodyPos(UnityEngine.Vector3 drawLoc, System.Boolean&
showBody)
IL_01F7: stloc.s 8 (UnityEngine.Vector3)
IL_01F9: ldarg.0
IL_01FA: call System.Single Verse.PawnRenderer::BodyAngle()
IL_01FF: stloc.s 10 (System.Single)
IL_0201: ldarg.0
IL_0202: call Verse.Rot4 Verse.PawnRenderer::LayingFacing()
IL_0207: stloc.s 11 (Verse.Rot4)
IL_0209: ldloc.3
IL_020A: brfalse => Label18
IL_020F: ldloc.s 4 (Verse.PawnTextureAtlasFrameSet)
IL_0211: ldfld UnityEngine.RenderTexture Verse.PawnTextureAtlasFrameSet::atlas
IL_0216: ldsfld UnityEngine.Shader Verse.ShaderDatabase::Cutout
IL_021B: newobj System.Void Verse.MaterialRequest::.ctor(UnityEngine.Texture
tex, UnityEngine.Shader shader)
IL_0220: call static UnityEngine.Material
Verse.MaterialPool::MatFrom(Verse.MaterialRequest req)
IL_0225: stloc.s 12 (UnityEngine.Material)
IL_0227: ldarg.0
IL_0228: ldloc.s 12 (UnityEngine.Material)
IL_022A: ldarg.0
IL_022B: ldfld Verse.Pawn Verse.PawnRenderer::pawn
IL_0230: ldc.i4.0
IL_0231: call UnityEngine.Material
Verse.PawnRenderer::OverrideMaterialIfNeeded(UnityEngine.Material original,
Verse.Pawn pawn, System.Boolean portrait)
IL_0236: stloc.s 12 (UnityEngine.Material)
IL_0238: ldarg.0
IL_0239: ldloc.s 4 (Verse.PawnTextureAtlasFrameSet)
IL_023B: ldloc.s 11 (Verse.Rot4)
IL_023D: ldloc.s 9 (System.Boolean)
IL_023F: brtrue => Label19
IL_0244: ldc.i4.1
IL_0245: br => Label20
IL_024A: Label19
IL_024A: ldc.i4.0
IL_024B: Label20
IL_024B: call UnityEngine.Mesh
Verse.PawnRenderer::GetBlitMeshUpdatedFrame(Verse.PawnTextureAtlasFrameSet
frameSet, Verse.Rot4 rotation, Verse.PawnDrawMode drawMode)
IL_0250: ldloc.s 8 (UnityEngine.Vector3)
IL_0252: ldloc.s 10 (System.Single)
IL_0254: call static UnityEngine.Vector3 UnityEngine.Vector3::get_up()
IL_0259: call static UnityEngine.Quaternion
UnityEngine.Quaternion::AngleAxis(System.Single angle, UnityEngine.Vector3 axis)
IL_025E: ldloc.s 12 (UnityEngine.Material)
IL_0260: ldc.i4.0
IL_0261: call static System.Void
Verse.GenDraw::DrawMeshNowOrLater(UnityEngine.Mesh mesh, UnityEngine.Vector3 loc,
UnityEngine.Quaternion quat, UnityEngine.Material mat, System.Boolean drawNow)
IL_0266: ldarg.0
IL_0267: ldloc.s 8 (UnityEngine.Vector3)
IL_0269: ldloc.s 10 (System.Single)
IL_026B: ldloc.0
IL_026C: ldloc.1
IL_026D: call System.Void
Verse.PawnRenderer::DrawDynamicParts(UnityEngine.Vector3 rootLoc, System.Single
angle, Verse.Rot4 pawnRotation, Verse.PawnRenderFlags flags)
IL_0272: br => Label21
IL_0277: Label18
IL_0277: ldarg.0
IL_0278: ldloc.s 8 (UnityEngine.Vector3)
IL_027A: ldloc.s 10 (System.Single)
IL_027C: ldloc.s 9 (System.Boolean)
IL_027E: ldloc.s 11 (Verse.Rot4)
IL_0280: ldloc.2
IL_0281: ldloc.1
IL_0282: call System.Void
Verse.PawnRenderer::RenderPawnInternal(UnityEngine.Vector3 rootLoc, System.Single
angle, System.Boolean renderBody, Verse.Rot4 bodyFacing, Verse.RotDrawMode
bodyDrawType, Verse.PawnRenderFlags flags)
IL_0287: Label21
IL_0287: ldarg.0
IL_0288: ldloc.s 8 (UnityEngine.Vector3)
IL_028A: call System.Void
Verse.PawnRenderer::DrawCarriedThing(UnityEngine.Vector3 drawLoc)
IL_028F: Label16
IL_028F: Label17
IL_028F: ldarg.0
IL_0290: ldfld Verse.Pawn Verse.PawnRenderer::pawn
IL_0295: callvirt System.Boolean Verse.Thing::get_Spawned()
IL_029A: brfalse => Label22
IL_029F: ldarg.0
IL_02A0: ldfld Verse.Pawn Verse.PawnRenderer::pawn
IL_02A5: callvirt System.Boolean Verse.Pawn::get_Dead()
IL_02AA: brtrue => Label23
IL_02AF: ldarg.0
IL_02B0: ldfld Verse.Pawn Verse.PawnRenderer::pawn
IL_02B5: ldfld Verse.Pawn_StanceTracker Verse.Pawn::stances
IL_02BA: callvirt System.Void Verse.Pawn_StanceTracker::StanceTrackerDraw()
IL_02BF: ldarg.0
IL_02C0: ldfld Verse.Pawn Verse.PawnRenderer::pawn
IL_02C5: ldfld Verse.AI.Pawn_PathFollower Verse.Pawn::pather
IL_02CA: callvirt System.Void Verse.AI.Pawn_PathFollower::PatherDraw()
IL_02CF: ldarg.0
IL_02D0: ldfld Verse.Pawn Verse.PawnRenderer::pawn
IL_02D5: ldfld RimWorld.Pawn_RopeTracker Verse.Pawn::roping
IL_02DA: callvirt System.Void RimWorld.Pawn_RopeTracker::RopingDraw()
IL_02DF: Label22
IL_02DF: Label23
IL_02DF: ldarg.0
IL_02E0: call System.Void Verse.PawnRenderer::DrawDebug()
IL_02E5: // end original
IL_02E5: Label0
IL_02E5: ldarg.0
IL_02E6: ldfld Verse.Pawn Verse.PawnRenderer::pawn
IL_02EB: call static System.Void
CameraPlus.PawnRenderer_RenderPawnAt_Patch::Postfix(Verse.Pawn ___pawn)
IL_02F0: ret
DONE

### Patch: System.Void Verse.PawnGraphicSet::ResolveAllGraphics()


### Replacement: static System.Void
Verse.PawnGraphicSet::Verse.PawnGraphicSet.ResolveAllGraphics_Patch4(Verse.PawnGrap
hicSet this)
IL_0000: Local var 0: UnityEngine.Color
IL_0000: Local var 1: UnityEngine.Color
IL_0000: Local var 2: Verse.PawnKindLifeStage
IL_0000: Local var 3: UnityEngine.Shader
IL_0000: Local var 4: System.Boolean
IL_0000: ldc.i4 0
IL_0005: stloc 4 (System.Boolean)
IL_0009: ldc.i4.1
IL_000A: stloc 4 (System.Boolean)
IL_000E: ldloc 4 (System.Boolean)
IL_0012: brfalse => Label1
IL_0017: ldarg.0
IL_0018: call static System.Boolean
VFEAncients.HarmonyPatches.MetaMorphPatches::MetamorphedGraphics(Verse.PawnGraphicS
et __instance)
IL_001D: stloc 4 (System.Boolean)
IL_0021: Label1
IL_0021: nop
IL_0022: ldloc 4 (System.Boolean)
IL_0026: brfalse => Label0
IL_002B: // start original
IL_002B: ldarg.0
IL_002C: call System.Void Verse.PawnGraphicSet::ClearCache()
IL_0031: ldarg.0
IL_0032: ldfld Verse.Pawn Verse.PawnGraphicSet::pawn
IL_0037: callvirt Verse.RaceProperties Verse.Pawn::get_RaceProps()
IL_003C: callvirt System.Boolean Verse.RaceProperties::get_Humanlike()
IL_0041: brfalse => Label2
IL_0046: ldarg.0
IL_0047: ldfld Verse.Pawn Verse.PawnGraphicSet::pawn
IL_004C: ldfld RimWorld.Pawn_StoryTracker Verse.Pawn::story
IL_0051: callvirt System.Boolean
RimWorld.Pawn_StoryTracker::get_SkinColorOverriden()
IL_0056: brtrue => Label3
IL_005B: ldsfld UnityEngine.Color Verse.PawnGraphicSet::RottingColorDefault
IL_0060: br => Label4
IL_0065: Label3
IL_0065: ldsfld UnityEngine.Color Verse.PawnGraphicSet::RottingColorDefault
IL_006A: ldarg.0
IL_006B: ldfld Verse.Pawn Verse.PawnGraphicSet::pawn
IL_0070: ldfld RimWorld.Pawn_StoryTracker Verse.Pawn::story
IL_0075: callvirt UnityEngine.Color RimWorld.Pawn_StoryTracker::get_SkinColor()
IL_007A: call static UnityEngine.Color
UnityEngine.Color::op_Multiply(UnityEngine.Color a, UnityEngine.Color b)
IL_007F: Label4
IL_007F: stloc.0
IL_0080: ldarg.0
IL_0081: ldarg.0
IL_0082: ldfld Verse.Pawn Verse.PawnGraphicSet::pawn
IL_0087: ldfld RimWorld.Pawn_StoryTracker Verse.Pawn::story
IL_008C: ldfld RimWorld.BodyTypeDef RimWorld.Pawn_StoryTracker::bodyType
IL_0091: ldfld System.String RimWorld.BodyTypeDef::bodyNakedGraphicPath
IL_0096: ldarg.0
IL_0097: ldfld Verse.Pawn Verse.PawnGraphicSet::pawn
IL_009C: ldfld RimWorld.Pawn_StoryTracker Verse.Pawn::story
IL_00A1: callvirt System.Boolean
RimWorld.Pawn_StoryTracker::get_SkinColorOverriden()
IL_00A6: call static UnityEngine.Shader
Verse.ShaderUtility::GetSkinShader(System.Boolean skinColorOverriden)
IL_00AB: call static UnityEngine.Vector2 UnityEngine.Vector2::get_one()
IL_00B0: ldarg.0
IL_00B1: ldfld Verse.Pawn Verse.PawnGraphicSet::pawn
IL_00B6: ldfld RimWorld.Pawn_StoryTracker Verse.Pawn::story
IL_00BB: callvirt UnityEngine.Color RimWorld.Pawn_StoryTracker::get_SkinColor()
IL_00C0: call static Verse.Graphic Verse.GraphicDatabase::Get(System.String
path, UnityEngine.Shader shader, UnityEngine.Vector2 drawSize, UnityEngine.Color
color)
IL_00C5: stfld Verse.Graphic Verse.PawnGraphicSet::nakedGraphic
IL_00CA: ldarg.0
IL_00CB: ldarg.0
IL_00CC: ldfld Verse.Pawn Verse.PawnGraphicSet::pawn
IL_00D1: ldfld RimWorld.Pawn_StoryTracker Verse.Pawn::story
IL_00D6: ldfld RimWorld.BodyTypeDef RimWorld.Pawn_StoryTracker::bodyType
IL_00DB: ldfld System.String RimWorld.BodyTypeDef::bodyNakedGraphicPath
IL_00E0: ldarg.0
IL_00E1: ldfld Verse.Pawn Verse.PawnGraphicSet::pawn
IL_00E6: ldfld RimWorld.Pawn_StoryTracker Verse.Pawn::story
IL_00EB: callvirt System.Boolean
RimWorld.Pawn_StoryTracker::get_SkinColorOverriden()
IL_00F0: call static UnityEngine.Shader
Verse.ShaderUtility::GetSkinShader(System.Boolean skinColorOverriden)
IL_00F5: call static UnityEngine.Vector2 UnityEngine.Vector2::get_one()
IL_00FA: ldloc.0
IL_00FB: call static Verse.Graphic Verse.GraphicDatabase::Get(System.String
path, UnityEngine.Shader shader, UnityEngine.Vector2 drawSize, UnityEngine.Color
color)
IL_0100: stfld Verse.Graphic Verse.PawnGraphicSet::rottingGraphic
IL_0105: ldarg.0
IL_0106: ldarg.0
IL_0107: ldfld Verse.Pawn Verse.PawnGraphicSet::pawn
IL_010C: ldfld RimWorld.Pawn_StoryTracker Verse.Pawn::story
IL_0111: ldfld RimWorld.BodyTypeDef RimWorld.Pawn_StoryTracker::bodyType
IL_0116: ldfld System.String RimWorld.BodyTypeDef::bodyDessicatedGraphicPath
IL_011B: ldsfld UnityEngine.Shader Verse.ShaderDatabase::Cutout
IL_0120: call static Verse.Graphic Verse.GraphicDatabase::Get(System.String
path, UnityEngine.Shader shader)
IL_0125: stfld Verse.Graphic Verse.PawnGraphicSet::dessicatedGraphic
IL_012A: call static System.Boolean Verse.ModLister::get_BiotechInstalled()
IL_012F: brfalse => Label5
IL_0134: ldarg.0
IL_0135: ldfld Verse.Pawn Verse.PawnGraphicSet::pawn
IL_013A: ldfld RimWorld.Pawn_StoryTracker Verse.Pawn::story
IL_013F: ldfld RimWorld.FurDef RimWorld.Pawn_StoryTracker::furDef
IL_0144: brfalse => Label6
IL_0149: ldarg.0
IL_014A: ldarg.0
IL_014B: ldfld Verse.Pawn Verse.PawnGraphicSet::pawn
IL_0150: ldfld RimWorld.Pawn_StoryTracker Verse.Pawn::story
IL_0155: ldfld RimWorld.FurDef RimWorld.Pawn_StoryTracker::furDef
IL_015A: ldarg.0
IL_015B: ldfld Verse.Pawn Verse.PawnGraphicSet::pawn
IL_0160: callvirt System.String RimWorld.FurDef::GetFurBodyGraphicPath(Verse.Pawn
pawn)
IL_0165: ldsfld UnityEngine.Shader Verse.ShaderDatabase::CutoutSkinOverlay
IL_016A: call static UnityEngine.Vector2 UnityEngine.Vector2::get_one()
IL_016F: ldarg.0
IL_0170: ldfld Verse.Pawn Verse.PawnGraphicSet::pawn
IL_0175: ldfld RimWorld.Pawn_StoryTracker Verse.Pawn::story
IL_017A: callvirt UnityEngine.Color RimWorld.Pawn_StoryTracker::get_HairColor()
IL_017F: call static Verse.Graphic Verse.GraphicDatabase::Get(System.String
path, UnityEngine.Shader shader, UnityEngine.Vector2 drawSize, UnityEngine.Color
color)
IL_0184: stfld Verse.Graphic Verse.PawnGraphicSet::furCoveredGraphic
IL_0189: br => Label7
IL_018E: Label6
IL_018E: ldarg.0
IL_018F: ldnull
IL_0190: stfld Verse.Graphic Verse.PawnGraphicSet::furCoveredGraphic
IL_0195: Label5
IL_0195: Label7
IL_0195: call static System.Boolean Verse.ModsConfig::get_BiotechActive()
IL_019A: brfalse => Label8
IL_019F: ldarg.0
IL_01A0: ldstr "Things/Pawn/Humanlike/Apparel/SwaddledBaby/Swaddled_Child"
IL_01A5: ldsfld UnityEngine.Shader Verse.ShaderDatabase::Cutout
IL_01AA: call static UnityEngine.Vector2 UnityEngine.Vector2::get_one()
IL_01AF: ldarg.0
IL_01B0: call UnityEngine.Color Verse.PawnGraphicSet::SwaddleColor()
IL_01B5: call static Verse.Graphic Verse.GraphicDatabase::Get(System.String
path, UnityEngine.Shader shader, UnityEngine.Vector2 drawSize, UnityEngine.Color
color)
IL_01BA: stfld Verse.Graphic Verse.PawnGraphicSet::swaddledBabyGraphic
IL_01BF: Label8
IL_01BF: ldarg.0
IL_01C0: ldfld Verse.Pawn Verse.PawnGraphicSet::pawn
IL_01C5: ldfld RimWorld.Pawn_StyleTracker Verse.Pawn::style
IL_01CA: brfalse => Label9
IL_01CF: call static System.Boolean Verse.ModsConfig::get_IdeologyActive()
IL_01D4: brfalse => Label10
IL_01D9: call static System.Boolean Verse.ModLister::get_BiotechInstalled()
IL_01DE: brfalse => Label11
IL_01E3: ldarg.0
IL_01E4: ldfld Verse.Pawn Verse.PawnGraphicSet::pawn
IL_01E9: ldfld RimWorld.Pawn_GeneTracker Verse.Pawn::genes
IL_01EE: brfalse => Label12
IL_01F3: ldarg.0
IL_01F4: ldfld Verse.Pawn Verse.PawnGraphicSet::pawn
IL_01F9: ldfld RimWorld.Pawn_GeneTracker Verse.Pawn::genes
IL_01FE: callvirt System.Collections.Generic.List`1<Verse.Gene>
RimWorld.Pawn_GeneTracker::get_GenesListForReading()
IL_0203: ldsfld System.Predicate`1<Verse.Gene> Verse.<>c::<>9__42_0
IL_0208: dup
IL_0209: brtrue => Label13
IL_020E: pop
IL_020F: ldsfld Verse.<>c Verse.<>c::<>9
IL_0214: ldftn System.Boolean
Verse.<>c::<ResolveAllGraphics>b__42_0(Verse.Gene x)
IL_021A: newobj System.Void System.Predicate`1<Verse.Gene>::.ctor(System.Object
object, System.IntPtr method)
IL_021F: dup
IL_0220: stsfld System.Predicate`1<Verse.Gene> Verse.<>c::<>9__42_0
IL_0225: Label13
IL_0225: call static System.Boolean
Verse.GenCollection::Any(System.Collections.Generic.List`1<Verse.Gene> list,
System.Predicate`1<Verse.Gene> predicate)
IL_022A: brtrue => Label14
IL_022F: Label11
IL_022F: Label12
IL_022F: ldarg.0
IL_0230: ldfld Verse.Pawn Verse.PawnGraphicSet::pawn
IL_0235: ldfld RimWorld.Pawn_StoryTracker Verse.Pawn::story
IL_023A: callvirt UnityEngine.Color RimWorld.Pawn_StoryTracker::get_SkinColor()
IL_023F: stloc.1
IL_0240: ldloca.s 1 (UnityEngine.Color)
IL_0242: ldflda System.Single UnityEngine.Color::a
IL_0247: dup
IL_0248: ldind.r4
IL_0249: ldc.r4 0.8
IL_024E: mul
IL_024F: stind.r4
IL_0250: ldarg.0
IL_0251: ldfld Verse.Pawn Verse.PawnGraphicSet::pawn
IL_0256: ldfld RimWorld.Pawn_StyleTracker Verse.Pawn::style
IL_025B: callvirt RimWorld.TattooDef RimWorld.Pawn_StyleTracker::get_FaceTattoo()
IL_0260: brfalse => Label15
IL_0265: ldarg.0
IL_0266: ldfld Verse.Pawn Verse.PawnGraphicSet::pawn
IL_026B: ldfld RimWorld.Pawn_StyleTracker Verse.Pawn::style
IL_0270: callvirt RimWorld.TattooDef RimWorld.Pawn_StyleTracker::get_FaceTattoo()
IL_0275: ldsfld RimWorld.TattooDef RimWorld.TattooDefOf::NoTattoo_Face
IL_027A: beq => Label16
IL_027F: ldarg.0
IL_0280: ldarg.0
IL_0281: ldfld Verse.Pawn Verse.PawnGraphicSet::pawn
IL_0286: ldfld RimWorld.Pawn_StyleTracker Verse.Pawn::style
IL_028B: callvirt RimWorld.TattooDef RimWorld.Pawn_StyleTracker::get_FaceTattoo()
IL_0290: ldfld System.String RimWorld.StyleItemDef::texPath
IL_0295: ldsfld UnityEngine.Shader Verse.ShaderDatabase::CutoutSkinOverlay
IL_029A: call static UnityEngine.Vector2 UnityEngine.Vector2::get_one()
IL_029F: ldloc.1
IL_02A0: call static UnityEngine.Color UnityEngine.Color::get_white()
IL_02A5: ldnull
IL_02A6: ldarg.0
IL_02A7: ldfld Verse.Pawn Verse.PawnGraphicSet::pawn
IL_02AC: ldfld RimWorld.Pawn_StoryTracker Verse.Pawn::story
IL_02B1: ldfld Verse.HeadTypeDef RimWorld.Pawn_StoryTracker::headType
IL_02B6: ldfld System.String Verse.HeadTypeDef::graphicPath
IL_02BB: call static Verse.Graphic Verse.GraphicDatabase::Get(System.String
path, UnityEngine.Shader shader, UnityEngine.Vector2 drawSize, UnityEngine.Color
color, UnityEngine.Color colorTwo, Verse.GraphicData data, System.String maskPath)
IL_02C0: stfld Verse.Graphic Verse.PawnGraphicSet::faceTattooGraphic
IL_02C5: br => Label17
IL_02CA: Label15
IL_02CA: Label16
IL_02CA: ldarg.0
IL_02CB: ldnull
IL_02CC: stfld Verse.Graphic Verse.PawnGraphicSet::faceTattooGraphic
IL_02D1: Label17
IL_02D1: ldarg.0
IL_02D2: ldfld Verse.Pawn Verse.PawnGraphicSet::pawn
IL_02D7: ldfld RimWorld.Pawn_StyleTracker Verse.Pawn::style
IL_02DC: callvirt RimWorld.TattooDef RimWorld.Pawn_StyleTracker::get_BodyTattoo()
IL_02E1: brfalse => Label18
IL_02E6: ldarg.0
IL_02E7: ldfld Verse.Pawn Verse.PawnGraphicSet::pawn
IL_02EC: ldfld RimWorld.Pawn_StyleTracker Verse.Pawn::style
IL_02F1: callvirt RimWorld.TattooDef RimWorld.Pawn_StyleTracker::get_BodyTattoo()
IL_02F6: ldsfld RimWorld.TattooDef RimWorld.TattooDefOf::NoTattoo_Body
IL_02FB: beq => Label19
IL_0300: ldarg.0
IL_0301: ldarg.0
IL_0302: ldfld Verse.Pawn Verse.PawnGraphicSet::pawn
IL_0307: ldfld RimWorld.Pawn_StyleTracker Verse.Pawn::style
IL_030C: callvirt RimWorld.TattooDef RimWorld.Pawn_StyleTracker::get_BodyTattoo()
IL_0311: ldfld System.String RimWorld.StyleItemDef::texPath
IL_0316: ldsfld UnityEngine.Shader Verse.ShaderDatabase::CutoutSkinOverlay
IL_031B: call static UnityEngine.Vector2 UnityEngine.Vector2::get_one()
IL_0320: ldloc.1
IL_0321: call static UnityEngine.Color UnityEngine.Color::get_white()
IL_0326: ldnull
IL_0327: ldarg.0
IL_0328: ldfld Verse.Pawn Verse.PawnGraphicSet::pawn
IL_032D: ldfld RimWorld.Pawn_StoryTracker Verse.Pawn::story
IL_0332: ldfld RimWorld.BodyTypeDef RimWorld.Pawn_StoryTracker::bodyType
IL_0337: ldfld System.String RimWorld.BodyTypeDef::bodyNakedGraphicPath
IL_033C: call static Verse.Graphic Verse.GraphicDatabase::Get(System.String
path, UnityEngine.Shader shader, UnityEngine.Vector2 drawSize, UnityEngine.Color
color, UnityEngine.Color colorTwo, Verse.GraphicData data, System.String maskPath)
IL_0341: stfld Verse.Graphic Verse.PawnGraphicSet::bodyTattooGraphic
IL_0346: br => Label20
IL_034B: Label18
IL_034B: Label19
IL_034B: ldarg.0
IL_034C: ldnull
IL_034D: stfld Verse.Graphic Verse.PawnGraphicSet::bodyTattooGraphic
IL_0352: Label9
IL_0352: Label10
IL_0352: Label14
IL_0352: Label20
IL_0352: ldarg.0
IL_0353: ldarg.0
IL_0354: ldfld Verse.Pawn Verse.PawnGraphicSet::pawn
IL_0359: ldfld RimWorld.Pawn_StoryTracker Verse.Pawn::story
IL_035E: ldfld Verse.HeadTypeDef RimWorld.Pawn_StoryTracker::headType
IL_0363: ldarg.0
IL_0364: ldfld Verse.Pawn Verse.PawnGraphicSet::pawn
IL_0369: ldfld RimWorld.Pawn_StoryTracker Verse.Pawn::story
IL_036E: callvirt UnityEngine.Color RimWorld.Pawn_StoryTracker::get_SkinColor()
IL_0373: ldc.i4.0
IL_0374: ldarg.0
IL_0375: ldfld Verse.Pawn Verse.PawnGraphicSet::pawn
IL_037A: ldfld RimWorld.Pawn_StoryTracker Verse.Pawn::story
IL_037F: callvirt System.Boolean
RimWorld.Pawn_StoryTracker::get_SkinColorOverriden()
IL_0384: callvirt Verse.Graphic_Multi
Verse.HeadTypeDef::GetGraphic(UnityEngine.Color color, System.Boolean dessicated,
System.Boolean skinColorOverriden)
IL_0389: stfld Verse.Graphic Verse.PawnGraphicSet::headGraphic
IL_038E: ldarg.0
IL_038F: ldarg.0
IL_0390: ldfld Verse.Pawn Verse.PawnGraphicSet::pawn
IL_0395: ldfld RimWorld.Pawn_StoryTracker Verse.Pawn::story
IL_039A: ldfld Verse.HeadTypeDef RimWorld.Pawn_StoryTracker::headType
IL_039F: ldloc.0
IL_03A0: ldc.i4.1
IL_03A1: ldarg.0
IL_03A2: ldfld Verse.Pawn Verse.PawnGraphicSet::pawn
IL_03A7: ldfld RimWorld.Pawn_StoryTracker Verse.Pawn::story
IL_03AC: callvirt System.Boolean
RimWorld.Pawn_StoryTracker::get_SkinColorOverriden()
IL_03B1: callvirt Verse.Graphic_Multi
Verse.HeadTypeDef::GetGraphic(UnityEngine.Color color, System.Boolean dessicated,
System.Boolean skinColorOverriden)
IL_03B6: stfld Verse.Graphic Verse.PawnGraphicSet::desiccatedHeadGraphic
IL_03BB: ldarg.0
IL_03BC: ldsfld Verse.HeadTypeDef RimWorld.HeadTypeDefOf::Skull
IL_03C1: call static UnityEngine.Color UnityEngine.Color::get_white()
IL_03C6: ldc.i4.1
IL_03C7: ldc.i4.0
IL_03C8: callvirt Verse.Graphic_Multi
Verse.HeadTypeDef::GetGraphic(UnityEngine.Color color, System.Boolean dessicated,
System.Boolean skinColorOverriden)
IL_03CD: stfld Verse.Graphic Verse.PawnGraphicSet::skullGraphic
IL_03D2: ldarg.0
IL_03D3: ldsfld Verse.HeadTypeDef RimWorld.HeadTypeDefOf::Stump
IL_03D8: ldarg.0
IL_03D9: ldfld Verse.Pawn Verse.PawnGraphicSet::pawn
IL_03DE: ldfld RimWorld.Pawn_StoryTracker Verse.Pawn::story
IL_03E3: callvirt UnityEngine.Color RimWorld.Pawn_StoryTracker::get_SkinColor()
IL_03E8: ldc.i4.0
IL_03E9: ldarg.0
IL_03EA: ldfld Verse.Pawn Verse.PawnGraphicSet::pawn
IL_03EF: ldfld RimWorld.Pawn_StoryTracker Verse.Pawn::story
IL_03F4: callvirt System.Boolean
RimWorld.Pawn_StoryTracker::get_SkinColorOverriden()
IL_03F9: callvirt Verse.Graphic_Multi
Verse.HeadTypeDef::GetGraphic(UnityEngine.Color color, System.Boolean dessicated,
System.Boolean skinColorOverriden)
IL_03FE: stfld Verse.Graphic Verse.PawnGraphicSet::headStumpGraphic
IL_0403: ldarg.0
IL_0404: ldsfld Verse.HeadTypeDef RimWorld.HeadTypeDefOf::Stump
IL_0409: ldloc.0
IL_040A: ldc.i4.1
IL_040B: ldarg.0
IL_040C: ldfld Verse.Pawn Verse.PawnGraphicSet::pawn
IL_0411: ldfld RimWorld.Pawn_StoryTracker Verse.Pawn::story
IL_0416: callvirt System.Boolean
RimWorld.Pawn_StoryTracker::get_SkinColorOverriden()
IL_041B: callvirt Verse.Graphic_Multi
Verse.HeadTypeDef::GetGraphic(UnityEngine.Color color, System.Boolean dessicated,
System.Boolean skinColorOverriden)
IL_0420: stfld Verse.Graphic Verse.PawnGraphicSet::desiccatedHeadStumpGraphic
IL_0425: ldarg.0
IL_0426: call System.Void Verse.PawnGraphicSet::CalculateHairMats()
IL_042B: ldarg.0
IL_042C: call System.Void Verse.PawnGraphicSet::ResolveApparelGraphics()
IL_0431: ldarg.0
IL_0432: call System.Void Verse.PawnGraphicSet::ResolveGeneGraphics()
IL_0437: br => Label44
IL_043C: Label2
IL_043C: ldarg.0
IL_043D: ldfld Verse.Pawn Verse.PawnGraphicSet::pawn
IL_0442: ldfld Verse.Pawn_AgeTracker Verse.Pawn::ageTracker
IL_0447: callvirt Verse.PawnKindLifeStage
Verse.Pawn_AgeTracker::get_CurKindLifeStage()
IL_044C: stloc.2
IL_044D: ldarg.0
IL_044E: ldfld Verse.Pawn Verse.PawnGraphicSet::pawn
IL_0453: ldfld Verse.Gender Verse.Pawn::gender
IL_0458: ldc.i4.2
IL_0459: bne.un => Label21
IL_045E: ldloc.2
IL_045F: ldfld Verse.GraphicData Verse.PawnKindLifeStage::femaleGraphicData
IL_0464: brtrue => Label22
IL_0469: Label21
IL_0469: ldarg.0
IL_046A: ldloc.2
IL_046B: ldfld Verse.GraphicData Verse.PawnKindLifeStage::bodyGraphicData
IL_0470: callvirt Verse.Graphic Verse.GraphicData::get_Graphic()
IL_0475: stfld Verse.Graphic Verse.PawnGraphicSet::nakedGraphic
IL_047A: br => Label23
IL_047F: Label22
IL_047F: ldarg.0
IL_0480: ldloc.2
IL_0481: ldfld Verse.GraphicData Verse.PawnKindLifeStage::femaleGraphicData
IL_0486: callvirt Verse.Graphic Verse.GraphicData::get_Graphic()
IL_048B: stfld Verse.Graphic Verse.PawnGraphicSet::nakedGraphic
IL_0490: Label23
IL_0490: ldarg.0
IL_0491: ldfld Verse.Pawn Verse.PawnGraphicSet::pawn
IL_0496: callvirt Verse.RaceProperties Verse.Pawn::get_RaceProps()
IL_049B: ldfld System.Boolean Verse.RaceProperties::packAnimal
IL_04A0: brfalse => Label24
IL_04A5: ldarg.0
IL_04A6: ldarg.0
IL_04A7: ldfld Verse.Graphic Verse.PawnGraphicSet::nakedGraphic
IL_04AC: ldfld System.String Verse.Graphic::path
IL_04B1: ldstr "Pack"
IL_04B6: call static System.String System.String::Concat(System.String str0,
System.String str1)
IL_04BB: ldsfld UnityEngine.Shader Verse.ShaderDatabase::Cutout
IL_04C0: ldarg.0
IL_04C1: ldfld Verse.Graphic Verse.PawnGraphicSet::nakedGraphic
IL_04C6: ldfld UnityEngine.Vector2 Verse.Graphic::drawSize
IL_04CB: call static UnityEngine.Color UnityEngine.Color::get_white()
IL_04D0: call static Verse.Graphic Verse.GraphicDatabase::Get(System.String
path, UnityEngine.Shader shader, UnityEngine.Vector2 drawSize, UnityEngine.Color
color)
IL_04D5: stfld Verse.Graphic Verse.PawnGraphicSet::packGraphic
IL_04DA: Label24
IL_04DA: ldarg.0
IL_04DB: ldfld Verse.Pawn Verse.PawnGraphicSet::pawn
IL_04E0: ldfld RimWorld.Pawn_StoryTracker Verse.Pawn::story
IL_04E5: brfalse => Label25
IL_04EA: ldarg.0
IL_04EB: ldfld Verse.Pawn Verse.PawnGraphicSet::pawn
IL_04F0: ldfld RimWorld.Pawn_StoryTracker Verse.Pawn::story
IL_04F5: callvirt System.Boolean
RimWorld.Pawn_StoryTracker::get_SkinColorOverriden()
IL_04FA: call static UnityEngine.Shader
Verse.ShaderUtility::GetSkinShader(System.Boolean skinColorOverriden)
IL_04FF: br => Label26
IL_0504: Label25
IL_0504: ldsfld UnityEngine.Shader Verse.ShaderDatabase::CutoutSkin
IL_0509: Label26
IL_0509: stloc.3
IL_050A: ldloc.2
IL_050B: ldfld Verse.GraphicData Verse.PawnKindLifeStage::corpseGraphicData
IL_0510: brfalse => Label27
IL_0515: ldarg.0
IL_0516: ldfld Verse.Pawn Verse.PawnGraphicSet::pawn
IL_051B: ldfld Verse.Gender Verse.Pawn::gender
IL_0520: ldc.i4.2
IL_0521: bne.un => Label28
IL_0526: ldloc.2
IL_0527: ldfld Verse.GraphicData
Verse.PawnKindLifeStage::femaleCorpseGraphicData
IL_052C: brtrue => Label29
IL_0531: Label28
IL_0531: ldarg.0
IL_0532: ldloc.2
IL_0533: ldfld Verse.GraphicData Verse.PawnKindLifeStage::corpseGraphicData
IL_0538: callvirt Verse.Graphic Verse.GraphicData::get_Graphic()
IL_053D: ldloc.2
IL_053E: ldfld Verse.GraphicData Verse.PawnKindLifeStage::corpseGraphicData
IL_0543: callvirt Verse.Graphic Verse.GraphicData::get_Graphic()
IL_0548: callvirt UnityEngine.Shader Verse.Graphic::get_Shader()
IL_054D: ldarg.0
IL_054E: ldfld Verse.Graphic Verse.PawnGraphicSet::nakedGraphic
IL_0553: callvirt UnityEngine.Color Verse.Graphic::get_Color()
IL_0558: ldarg.0
IL_0559: ldfld Verse.Graphic Verse.PawnGraphicSet::nakedGraphic
IL_055E: callvirt UnityEngine.Color Verse.Graphic::get_ColorTwo()
IL_0563: callvirt virtual Verse.Graphic
Verse.Graphic::GetColoredVersion(UnityEngine.Shader newShader, UnityEngine.Color
newColor, UnityEngine.Color newColorTwo)
IL_0568: stfld Verse.Graphic Verse.PawnGraphicSet::corpseGraphic
IL_056D: ldarg.0
IL_056E: ldloc.2
IL_056F: ldfld Verse.GraphicData Verse.PawnKindLifeStage::corpseGraphicData
IL_0574: callvirt Verse.Graphic Verse.GraphicData::get_Graphic()
IL_0579: ldloc.3
IL_057A: ldsfld UnityEngine.Color Verse.PawnGraphicSet::RottingColorDefault
IL_057F: ldsfld UnityEngine.Color Verse.PawnGraphicSet::RottingColorDefault
IL_0584: callvirt virtual Verse.Graphic
Verse.Graphic::GetColoredVersion(UnityEngine.Shader newShader, UnityEngine.Color
newColor, UnityEngine.Color newColorTwo)
IL_0589: stfld Verse.Graphic Verse.PawnGraphicSet::rottingGraphic
IL_058E: br => Label30
IL_0593: Label29
IL_0593: ldarg.0
IL_0594: ldloc.2
IL_0595: ldfld Verse.GraphicData
Verse.PawnKindLifeStage::femaleCorpseGraphicData
IL_059A: callvirt Verse.Graphic Verse.GraphicData::get_Graphic()
IL_059F: ldloc.2
IL_05A0: ldfld Verse.GraphicData
Verse.PawnKindLifeStage::femaleCorpseGraphicData
IL_05A5: callvirt Verse.Graphic Verse.GraphicData::get_Graphic()
IL_05AA: callvirt UnityEngine.Shader Verse.Graphic::get_Shader()
IL_05AF: ldarg.0
IL_05B0: ldfld Verse.Graphic Verse.PawnGraphicSet::nakedGraphic
IL_05B5: callvirt UnityEngine.Color Verse.Graphic::get_Color()
IL_05BA: ldarg.0
IL_05BB: ldfld Verse.Graphic Verse.PawnGraphicSet::nakedGraphic
IL_05C0: callvirt UnityEngine.Color Verse.Graphic::get_ColorTwo()
IL_05C5: callvirt virtual Verse.Graphic
Verse.Graphic::GetColoredVersion(UnityEngine.Shader newShader, UnityEngine.Color
newColor, UnityEngine.Color newColorTwo)
IL_05CA: stfld Verse.Graphic Verse.PawnGraphicSet::corpseGraphic
IL_05CF: ldarg.0
IL_05D0: ldloc.2
IL_05D1: ldfld Verse.GraphicData
Verse.PawnKindLifeStage::femaleCorpseGraphicData
IL_05D6: callvirt Verse.Graphic Verse.GraphicData::get_Graphic()
IL_05DB: ldloc.3
IL_05DC: ldsfld UnityEngine.Color Verse.PawnGraphicSet::RottingColorDefault
IL_05E1: ldsfld UnityEngine.Color Verse.PawnGraphicSet::RottingColorDefault
IL_05E6: callvirt virtual Verse.Graphic
Verse.Graphic::GetColoredVersion(UnityEngine.Shader newShader, UnityEngine.Color
newColor, UnityEngine.Color newColorTwo)
IL_05EB: stfld Verse.Graphic Verse.PawnGraphicSet::rottingGraphic
IL_05F0: br => Label31
IL_05F5: Label27
IL_05F5: ldarg.0
IL_05F6: ldnull
IL_05F7: stfld Verse.Graphic Verse.PawnGraphicSet::corpseGraphic
IL_05FC: ldarg.0
IL_05FD: ldarg.0
IL_05FE: ldfld Verse.Graphic Verse.PawnGraphicSet::nakedGraphic
IL_0603: ldloc.3
IL_0604: ldsfld UnityEngine.Color Verse.PawnGraphicSet::RottingColorDefault
IL_0609: ldsfld UnityEngine.Color Verse.PawnGraphicSet::RottingColorDefault
IL_060E: callvirt virtual Verse.Graphic
Verse.Graphic::GetColoredVersion(UnityEngine.Shader newShader, UnityEngine.Color
newColor, UnityEngine.Color newColorTwo)
IL_0613: stfld Verse.Graphic Verse.PawnGraphicSet::rottingGraphic
IL_0618: Label30
IL_0618: Label31
IL_0618: ldloc.2
IL_0619: ldfld Verse.GraphicData
Verse.PawnKindLifeStage::dessicatedBodyGraphicData
IL_061E: brfalse => Label32
IL_0623: ldarg.0
IL_0624: ldfld Verse.Pawn Verse.PawnGraphicSet::pawn
IL_0629: callvirt Verse.RaceProperties Verse.Pawn::get_RaceProps()
IL_062E: callvirt RimWorld.FleshTypeDef Verse.RaceProperties::get_FleshType()
IL_0633: ldsfld RimWorld.FleshTypeDef RimWorld.FleshTypeDefOf::Insectoid
IL_0638: bne.un => Label33
IL_063D: ldarg.0
IL_063E: ldfld Verse.Pawn Verse.PawnGraphicSet::pawn
IL_0643: ldfld Verse.Gender Verse.Pawn::gender
IL_0648: ldc.i4.2
IL_0649: bne.un => Label34
IL_064E: ldloc.2
IL_064F: ldfld Verse.GraphicData
Verse.PawnKindLifeStage::femaleDessicatedBodyGraphicData
IL_0654: brtrue => Label35
IL_0659: Label34
IL_0659: ldarg.0
IL_065A: ldloc.2
IL_065B: ldfld Verse.GraphicData
Verse.PawnKindLifeStage::dessicatedBodyGraphicData
IL_0660: callvirt Verse.Graphic Verse.GraphicData::get_Graphic()
IL_0665: ldsfld UnityEngine.Shader Verse.ShaderDatabase::Cutout
IL_066A: ldsfld UnityEngine.Color Verse.PawnGraphicSet::DessicatedColorInsect
IL_066F: ldsfld UnityEngine.Color Verse.PawnGraphicSet::DessicatedColorInsect
IL_0674: callvirt virtual Verse.Graphic
Verse.Graphic::GetColoredVersion(UnityEngine.Shader newShader, UnityEngine.Color
newColor, UnityEngine.Color newColorTwo)
IL_0679: stfld Verse.Graphic Verse.PawnGraphicSet::dessicatedGraphic
IL_067E: br => Label36
IL_0683: Label35
IL_0683: ldarg.0
IL_0684: ldloc.2
IL_0685: ldfld Verse.GraphicData
Verse.PawnKindLifeStage::femaleDessicatedBodyGraphicData
IL_068A: callvirt Verse.Graphic Verse.GraphicData::get_Graphic()
IL_068F: ldsfld UnityEngine.Shader Verse.ShaderDatabase::Cutout
IL_0694: ldsfld UnityEngine.Color Verse.PawnGraphicSet::DessicatedColorInsect
IL_0699: ldsfld UnityEngine.Color Verse.PawnGraphicSet::DessicatedColorInsect
IL_069E: callvirt virtual Verse.Graphic
Verse.Graphic::GetColoredVersion(UnityEngine.Shader newShader, UnityEngine.Color
newColor, UnityEngine.Color newColorTwo)
IL_06A3: stfld Verse.Graphic Verse.PawnGraphicSet::dessicatedGraphic
IL_06A8: br => Label37
IL_06AD: Label33
IL_06AD: ldarg.0
IL_06AE: ldfld Verse.Pawn Verse.PawnGraphicSet::pawn
IL_06B3: ldfld Verse.Gender Verse.Pawn::gender
IL_06B8: ldc.i4.2
IL_06B9: bne.un => Label38
IL_06BE: ldloc.2
IL_06BF: ldfld Verse.GraphicData
Verse.PawnKindLifeStage::femaleDessicatedBodyGraphicData
IL_06C4: brtrue => Label39
IL_06C9: Label38
IL_06C9: ldarg.0
IL_06CA: ldloc.2
IL_06CB: ldfld Verse.GraphicData
Verse.PawnKindLifeStage::dessicatedBodyGraphicData
IL_06D0: ldarg.0
IL_06D1: ldfld Verse.Pawn Verse.PawnGraphicSet::pawn
IL_06D6: callvirt Verse.Graphic Verse.GraphicData::GraphicColoredFor(Verse.Thing
t)
IL_06DB: stfld Verse.Graphic Verse.PawnGraphicSet::dessicatedGraphic
IL_06E0: br => Label40
IL_06E5: Label39
IL_06E5: ldarg.0
IL_06E6: ldloc.2
IL_06E7: ldfld Verse.GraphicData
Verse.PawnKindLifeStage::femaleDessicatedBodyGraphicData
IL_06EC: ldarg.0
IL_06ED: ldfld Verse.Pawn Verse.PawnGraphicSet::pawn
IL_06F2: callvirt Verse.Graphic Verse.GraphicData::GraphicColoredFor(Verse.Thing
t)
IL_06F7: stfld Verse.Graphic Verse.PawnGraphicSet::dessicatedGraphic
IL_06FC: Label32
IL_06FC: Label36
IL_06FC: Label37
IL_06FC: Label40
IL_06FC: ldarg.0
IL_06FD: ldfld Verse.Pawn Verse.PawnGraphicSet::pawn
IL_0702: ldfld Verse.PawnKindDef Verse.Pawn::kindDef
IL_0707: ldfld System.Collections.Generic.List`1<Verse.AlternateGraphic>
Verse.PawnKindDef::alternateGraphics
IL_070C: call static System.Boolean
Verse.GenList::NullOrEmpty(System.Collections.Generic.IList`1<Verse.AlternateGraphi
c> list)
IL_0711: brtrue => Label41
IL_0716: ldarg.0
IL_0717: ldfld Verse.Pawn Verse.PawnGraphicSet::pawn
IL_071C: ldfld System.Int32 Verse.Thing::thingIDNumber
IL_0721: ldc.i4 46101
IL_0726: xor
IL_0727: call static System.Void Verse.Rand::PushState(System.Int32
replacementSeed)
IL_072C: call static System.Single Verse.Rand::get_Value()
IL_0731: ldarg.0
IL_0732: ldfld Verse.Pawn Verse.PawnGraphicSet::pawn
IL_0737: ldfld Verse.PawnKindDef Verse.Pawn::kindDef
IL_073C: ldfld System.Single Verse.PawnKindDef::alternateGraphicChance
IL_0741: bgt.un => Label42
IL_0746: ldarg.0
IL_0747: ldarg.0
IL_0748: ldfld Verse.Pawn Verse.PawnGraphicSet::pawn
IL_074D: ldfld Verse.PawnKindDef Verse.Pawn::kindDef
IL_0752: ldfld System.Collections.Generic.List`1<Verse.AlternateGraphic>
Verse.PawnKindDef::alternateGraphics
IL_0757: ldsfld System.Func`2<Verse.AlternateGraphic, System.Single>
Verse.<>c::<>9__42_1
IL_075C: dup
IL_075D: brtrue => Label43
IL_0762: pop
IL_0763: ldsfld Verse.<>c Verse.<>c::<>9
IL_0768: ldftn System.Single
Verse.<>c::<ResolveAllGraphics>b__42_1(Verse.AlternateGraphic x)
IL_076E: newobj System.Void System.Func`2<Verse.AlternateGraphic,
System.Single>::.ctor(System.Object object, System.IntPtr method)
IL_0773: dup
IL_0774: stsfld System.Func`2<Verse.AlternateGraphic, System.Single>
Verse.<>c::<>9__42_1
IL_0779: Label43
IL_0779: call static Verse.AlternateGraphic
Verse.GenCollection::RandomElementByWeight(System.Collections.Generic.IEnumerable`1
<Verse.AlternateGraphic> source, System.Func`2<Verse.AlternateGraphic,
System.Single> weightSelector)
IL_077E: ldarg.0
IL_077F: ldfld Verse.Graphic Verse.PawnGraphicSet::nakedGraphic
IL_0784: callvirt Verse.Graphic Verse.AlternateGraphic::GetGraphic(Verse.Graphic
other)
IL_0789: stfld Verse.Graphic Verse.PawnGraphicSet::nakedGraphic
IL_078E: Label42
IL_078E: call static System.Void Verse.Rand::PopState()
IL_0793: // end original
IL_0793: Label41
IL_0793: Label44
IL_0793: Label0
IL_0793: ldarg.0
IL_0794: call static System.Void
VanillaGenesExpanded.VanillaGenesExpanded_PawnGraphicSet_ResolveAllGraphics_Patch::
PostFix(Verse.PawnGraphicSet __instance)
IL_0799: ldarg.0
IL_079A: call static System.Void
VFECore.PawnGraphicSet_ResolveAllGraphics_Patch::Postfix(Verse.PawnGraphicSet
__instance)
IL_079F: ldarg.0
IL_07A0: ldarg.0
IL_07A1: ldfld Verse.Pawn Verse.PawnGraphicSet::pawn
IL_07A6: call static System.Void
FacialAnimation.HarmonyPatches::PostfixResolveAllGraphics(Verse.PawnGraphicSet
__instance, Verse.Pawn ___pawn)
IL_07AB: ret
DONE

### Patch: System.Void Verse.PawnGraphicSet::ResolveGeneGraphics()


### Replacement: static System.Void
Verse.PawnGraphicSet::Verse.PawnGraphicSet.ResolveGeneGraphics_Patch1(Verse.PawnGra
phicSet this)
IL_0000: Local var 0: UnityEngine.Color
IL_0000: Local var 1: UnityEngine.Shader
IL_0000: Local var 2: System.Collections.Generic.List`1/Enumerator<Verse.Gene>
IL_0000: Local var 3: Verse.Gene
IL_0000: Local var 4: System.ValueTuple`2<Verse.Graphic,Verse.Graphic>
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 Verse.PawnGraphicSet::pawn
IL_0010: ldfld RimWorld.Pawn_GeneTracker Verse.Pawn::genes
IL_0015: brtrue => Label1
IL_001A: Label0
IL_001A: br => Label9
IL_001F: Label1
IL_001F: ldarg.0
IL_0020: ldfld Verse.Pawn Verse.PawnGraphicSet::pawn
IL_0025: ldfld RimWorld.Pawn_StoryTracker Verse.Pawn::story
IL_002A: callvirt System.Boolean
RimWorld.Pawn_StoryTracker::get_SkinColorOverriden()
IL_002F: brtrue => Label2
IL_0034: ldsfld UnityEngine.Color Verse.PawnGraphicSet::RottingColorDefault
IL_0039: br => Label3
IL_003E: Label2
IL_003E: ldsfld UnityEngine.Color Verse.PawnGraphicSet::RottingColorDefault
IL_0043: ldarg.0
IL_0044: ldfld Verse.Pawn Verse.PawnGraphicSet::pawn
IL_0049: ldfld RimWorld.Pawn_StoryTracker Verse.Pawn::story
IL_004E: callvirt UnityEngine.Color RimWorld.Pawn_StoryTracker::get_SkinColor()
IL_0053: call static UnityEngine.Color
UnityEngine.Color::op_Multiply(UnityEngine.Color a, UnityEngine.Color b)
IL_0058: Label3
IL_0058: stloc.0
IL_0059: ldarg.0
IL_005A: ldfld Verse.Pawn Verse.PawnGraphicSet::pawn
IL_005F: ldfld RimWorld.Pawn_StoryTracker Verse.Pawn::story
IL_0064: callvirt System.Boolean
RimWorld.Pawn_StoryTracker::get_SkinColorOverriden()
IL_0069: call static UnityEngine.Shader
Verse.ShaderUtility::GetSkinShader(System.Boolean skinColorOverriden)
IL_006E: stloc.1
IL_006F: ldarg.0
IL_0070: ldfld System.Collections.Generic.List`1<Verse.GeneGraphicRecord>
Verse.PawnGraphicSet::geneGraphics
IL_0075: callvirt virtual System.Void
System.Collections.Generic.List`1<Verse.GeneGraphicRecord>::Clear()
IL_007A: ldarg.0
IL_007B: ldfld Verse.Pawn Verse.PawnGraphicSet::pawn
IL_0080: ldfld RimWorld.Pawn_GeneTracker Verse.Pawn::genes
IL_0085: callvirt System.Collections.Generic.List`1<Verse.Gene>
RimWorld.Pawn_GeneTracker::get_GenesListForReading()
IL_008A: callvirt System.Collections.Generic.Enumerator<Verse.Gene>
System.Collections.Generic.List`1<Verse.Gene>::GetEnumerator()
IL_008F: stloc.2
.try
{
IL_0090: br => Label4
IL_0095: Label7
IL_0095: ldloca.s 2
(System.Collections.Generic.List`1+Enumerator[Verse.Gene])
IL_0097: call virtual Verse.Gene
System.Collections.Generic.Enumerator<Verse.Gene>::get_Current()
IL_009C: stloc.3
IL_009D: ldloc.3
IL_009E: ldfld Verse.GeneDef Verse.Gene::def
IL_00A3: callvirt System.Boolean Verse.GeneDef::get_HasGraphic()
IL_00A8: brfalse => Label5
IL_00AD: ldloc.3
IL_00AE: callvirt virtual System.Boolean Verse.Gene::get_Active()
IL_00B3: brfalse => Label6
IL_00B8: ldloc.3
IL_00B9: ldfld Verse.GeneDef Verse.Gene::def
IL_00BE: ldfld Verse.GeneGraphicData Verse.GeneDef::graphicData
IL_00C3: ldarg.0
IL_00C4: ldfld Verse.Pawn Verse.PawnGraphicSet::pawn
IL_00C9: ldloc.1
IL_00CA: ldloc.0
IL_00CB: callvirt System.ValueTuple`2<Verse.Graphic, Verse.Graphic>
Verse.GeneGraphicData::GetGraphics(Verse.Pawn pawn, UnityEngine.Shader skinShader,
UnityEngine.Color rottingColor)
IL_00D0: stloc.s 4 (System.ValueTuple`2[Verse.Graphic,Verse.Graphic])
IL_00D2: ldarg.0
IL_00D3: ldfld
System.Collections.Generic.List`1<Verse.GeneGraphicRecord>
Verse.PawnGraphicSet::geneGraphics
IL_00D8: ldloc.s 4 (System.ValueTuple`2[Verse.Graphic,Verse.Graphic])
IL_00DA: ldfld Verse.Graphic System.ValueTuple`2<Verse.Graphic,
Verse.Graphic>::Item1
IL_00DF: ldloc.s 4 (System.ValueTuple`2[Verse.Graphic,Verse.Graphic])
IL_00E1: ldfld Verse.Graphic System.ValueTuple`2<Verse.Graphic,
Verse.Graphic>::Item2
IL_00E6: ldloc.3
IL_00E7: newobj System.Void Verse.GeneGraphicRecord::.ctor(Verse.Graphic
graphic, Verse.Graphic rottingGraphic, Verse.Gene sourceGene)
IL_00EC: callvirt virtual System.Void
System.Collections.Generic.List`1<Verse.GeneGraphicRecord>::Add(Verse.GeneGraphicRe
cord item)
IL_00F1: Label4
IL_00F1: Label5
IL_00F1: Label6
IL_00F1: ldloca.s 2
(System.Collections.Generic.List`1+Enumerator[Verse.Gene])
IL_00F3: call virtual System.Boolean
System.Collections.Generic.Enumerator<Verse.Gene>::MoveNext()
IL_00F8: brtrue => Label7
IL_00FD: leave => Label8
IL_0102: leave => (autogenerated)
} // end try
.finally
{
IL_0107: ldloca.s 2
(System.Collections.Generic.List`1+Enumerator[Verse.Gene])
IL_0109: constrained.
System.Collections.Generic.List`1+Enumerator[Verse.Gene]
IL_010F: callvirt abstract virtual System.Void
System.IDisposable::Dispose()
IL_0114: endfinally
IL_0115: leave => (autogenerated)
} // end handler
IL_0116: // end original
IL_0116: Label8
IL_0116: Label9
IL_0116: ldarg.0
IL_0117: ldarg.0
IL_0118: ldfld Verse.Pawn Verse.PawnGraphicSet::pawn
IL_011D: call static System.Void
FacialAnimation.HarmonyPatches::PostfixResolveGeneGraphics(Verse.PawnGraphicSet
__instance, Verse.Pawn ___pawn)
IL_0122: ret
DONE
### Patch: System.Void Verse.Pawn_HealthTracker::Notify_HediffChanged(Verse.Hediff
hediff)
### Replacement: static System.Void
Verse.Pawn_HealthTracker::Verse.Pawn_HealthTracker.Notify_HediffChanged_Patch1(Vers
e.Pawn_HealthTracker this, Verse.Hediff hediff)
IL_0000: Local var 0: System.Nullable`1<Verse.DamageInfo>
IL_0000: // start original
IL_0000: ldarg.0
IL_0001: ldfld Verse.HediffSet Verse.Pawn_HealthTracker::hediffSet
IL_0006: callvirt System.Void Verse.HediffSet::DirtyCache()
IL_000B: ldarg.0
IL_000C: ldloca.s 0 (System.Nullable`1[Verse.DamageInfo])
IL_000E: initobj System.Nullable`1[Verse.DamageInfo]
IL_0014: ldloc.0
IL_0015: ldarg.1
IL_0016: call System.Void
Verse.Pawn_HealthTracker::CheckForStateChange(System.Nullable`1<Verse.DamageInfo>
dinfo, Verse.Hediff hediff)
IL_001B: // end original
IL_001B: ldarg.0
IL_001C: ldfld Verse.Pawn Verse.Pawn_HealthTracker::pawn
IL_0021: call static System.Void
FacialAnimation.HarmonyPatches::PostfixNotify_HediffChanged(Verse.Pawn ___pawn)
IL_0026: ret
DONE

### Patch: static Verse.GraphicMeshSet


Verse.HumanlikeMeshPoolUtility::GetHumanlikeBeardSetForPawn(Verse.Pawn pawn)
### Replacement: static Verse.GraphicMeshSet
Verse.HumanlikeMeshPoolUtility::Verse.HumanlikeMeshPoolUtility.GetHumanlikeBeardSet
ForPawn_Patch1(Verse.Pawn pawn)
IL_0000: Local var 0: UnityEngine.Vector2
IL_0000: Local var 1: Verse.GraphicMeshSet
IL_0000: Local var 2: System.Boolean
IL_0000: ldnull
IL_0001: stloc 1 (Verse.GraphicMeshSet)
IL_0005: ldc.i4 0
IL_000A: stloc 2 (System.Boolean)
IL_000E: ldc.i4.1
IL_000F: stloc 2 (System.Boolean)
IL_0013: ldloc 2 (System.Boolean)
IL_0017: brfalse => Label1
IL_001C: ldarg 0
IL_0020: ldloca 1 (Verse.GraphicMeshSet)
IL_0024: call static System.Boolean
FacialAnimation.HarmonyPatches::PrefixGetHumanlikeBeardSetForPawn(Verse.Pawn pawn,
Verse.GraphicMeshSet& __result)
IL_0029: stloc 2 (System.Boolean)
IL_002D: Label1
IL_002D: nop
IL_002E: ldloc 2 (System.Boolean)
IL_0032: brfalse => Label0
IL_0037: // start original
IL_0037: ldarg.0
IL_0038: ldfld RimWorld.Pawn_StoryTracker Verse.Pawn::story
IL_003D: ldfld Verse.HeadTypeDef RimWorld.Pawn_StoryTracker::headType
IL_0042: ldfld UnityEngine.Vector2 Verse.HeadTypeDef::beardMeshSize
IL_0047: stloc.0
IL_0048: call static System.Boolean Verse.ModsConfig::get_BiotechActive()
IL_004D: brfalse => Label2
IL_0052: ldarg.0
IL_0053: ldfld Verse.Pawn_AgeTracker Verse.Pawn::ageTracker
IL_0058: callvirt RimWorld.LifeStageDef Verse.Pawn_AgeTracker::get_CurLifeStage()
IL_005D: ldflda System.Nullable`1<System.Single>
RimWorld.LifeStageDef::headSizeFactor
IL_0062: call System.Boolean System.Nullable`1<System.Single>::get_HasValue()
IL_0067: brfalse => Label3
IL_006C: ldloc.0
IL_006D: ldarg.0
IL_006E: ldfld Verse.Pawn_AgeTracker Verse.Pawn::ageTracker
IL_0073: callvirt RimWorld.LifeStageDef Verse.Pawn_AgeTracker::get_CurLifeStage()
IL_0078: ldflda System.Nullable`1<System.Single>
RimWorld.LifeStageDef::headSizeFactor
IL_007D: call System.Single System.Nullable`1<System.Single>::get_Value()
IL_0082: call static UnityEngine.Vector2
UnityEngine.Vector2::op_Multiply(UnityEngine.Vector2 a, System.Single d)
IL_0087: stloc.0
IL_0088: Label2
IL_0088: Label3
IL_0088: ldloc.0
IL_0089: ldfld System.Single UnityEngine.Vector2::x
IL_008E: ldloc.0
IL_008F: ldfld System.Single UnityEngine.Vector2::y
IL_0094: call static Verse.GraphicMeshSet
Verse.MeshPool::GetMeshSetForWidth(System.Single width, System.Single height)
IL_0099: // end original
IL_0099: stloc 1 (Verse.GraphicMeshSet)
IL_009D: Label0
IL_009D: ldloc 1 (Verse.GraphicMeshSet)
IL_00A1: ret
DONE

### Patch: UnityEngine.Vector3


Verse.PawnRenderer::OffsetBeardLocationForHead(RimWorld.BeardDef beardDef,
Verse.HeadTypeDef head, Verse.Rot4 headFacing, UnityEngine.Vector3 beardLoc)
### Replacement: static UnityEngine.Vector3
Verse.PawnRenderer::Verse.PawnRenderer.OffsetBeardLocationForHead_Patch1(Verse.Pawn
Renderer this, RimWorld.BeardDef beardDef, Verse.HeadTypeDef head, Verse.Rot4
headFacing, UnityEngine.Vector3 beardLoc)
IL_0000: Local var 0: UnityEngine.Vector3
IL_0000: Local var 1: System.Boolean
IL_0000: ldloca 0 (UnityEngine.Vector3)
IL_0004: initobj UnityEngine.Vector3
IL_000A: ldc.i4 0
IL_000F: stloc 1 (System.Boolean)
IL_0013: ldc.i4.1
IL_0014: stloc 1 (System.Boolean)
IL_0018: ldloc 1 (System.Boolean)
IL_001C: brfalse => Label1
IL_0021: ldarg 1
IL_0025: ldarg 2
IL_0029: ldarg 3
IL_002D: ldarg 4
IL_0031: ldarg.0
IL_0032: ldfld Verse.Pawn Verse.PawnRenderer::pawn
IL_0037: ldloca 0 (UnityEngine.Vector3)
IL_003B: call static System.Boolean
FacialAnimation.HarmonyPatches::PrefixOffsetBeardLocationForHead(RimWorld.BeardDef
beardDef, Verse.HeadTypeDef head, Verse.Rot4 headFacing, UnityEngine.Vector3
beardLoc, Verse.Pawn ___pawn, UnityEngine.Vector3& __result)
IL_0040: stloc 1 (System.Boolean)
IL_0044: Label1
IL_0044: nop
IL_0045: ldloc 1 (System.Boolean)
IL_0049: brfalse => Label0
IL_004E: // start original
IL_004E: ldarg.3
IL_004F: ldsfld Verse.Rot4 Verse.Rot4::East
IL_0054: call static System.Boolean Verse.Rot4::op_Equality(Verse.Rot4 a,
Verse.Rot4 b)
IL_0059: brfalse => Label2
IL_005E: ldarg.s 4
IL_0060: call static UnityEngine.Vector3 UnityEngine.Vector3::get_right()
IL_0065: ldarg.2
IL_0066: ldfld System.Single Verse.HeadTypeDef::beardOffsetXEast
IL_006B: call static UnityEngine.Vector3
UnityEngine.Vector3::op_Multiply(UnityEngine.Vector3 a, System.Single d)
IL_0070: call static UnityEngine.Vector3
UnityEngine.Vector3::op_Addition(UnityEngine.Vector3 a, UnityEngine.Vector3 b)
IL_0075: starg.s 4
IL_0077: br => Label3
IL_007C: Label2
IL_007C: ldarg.3
IL_007D: ldsfld Verse.Rot4 Verse.Rot4::West
IL_0082: call static System.Boolean Verse.Rot4::op_Equality(Verse.Rot4 a,
Verse.Rot4 b)
IL_0087: brfalse => Label4
IL_008C: ldarg.s 4
IL_008E: call static UnityEngine.Vector3 UnityEngine.Vector3::get_left()
IL_0093: ldarg.2
IL_0094: ldfld System.Single Verse.HeadTypeDef::beardOffsetXEast
IL_0099: call static UnityEngine.Vector3
UnityEngine.Vector3::op_Multiply(UnityEngine.Vector3 a, System.Single d)
IL_009E: call static UnityEngine.Vector3
UnityEngine.Vector3::op_Addition(UnityEngine.Vector3 a, UnityEngine.Vector3 b)
IL_00A3: starg.s 4
IL_00A5: Label3
IL_00A5: Label4
IL_00A5: ldarga.s 4
IL_00A7: ldflda System.Single UnityEngine.Vector3::y
IL_00AC: dup
IL_00AD: ldind.r4
IL_00AE: ldc.r4 0.02606177
IL_00B3: add
IL_00B4: stind.r4
IL_00B5: ldarg.s 4
IL_00B7: ldarg.2
IL_00B8: ldfld UnityEngine.Vector3 Verse.HeadTypeDef::beardOffset
IL_00BD: call static UnityEngine.Vector3
UnityEngine.Vector3::op_Addition(UnityEngine.Vector3 a, UnityEngine.Vector3 b)
IL_00C2: starg.s 4
IL_00C4: ldarg.s 4
IL_00C6: ldarg.0
IL_00C7: ldfld Verse.Pawn Verse.PawnRenderer::pawn
IL_00CC: ldfld RimWorld.Pawn_StyleTracker Verse.Pawn::style
IL_00D1: ldfld RimWorld.BeardDef RimWorld.Pawn_StyleTracker::beardDef
IL_00D6: ldarg.0
IL_00D7: ldfld Verse.Pawn Verse.PawnRenderer::pawn
IL_00DC: ldfld RimWorld.Pawn_StoryTracker Verse.Pawn::story
IL_00E1: ldfld Verse.HeadTypeDef RimWorld.Pawn_StoryTracker::headType
IL_00E6: ldarg.3
IL_00E7: callvirt UnityEngine.Vector3
RimWorld.BeardDef::GetOffset(Verse.HeadTypeDef headType, Verse.Rot4 rot)
IL_00EC: call static UnityEngine.Vector3
UnityEngine.Vector3::op_Addition(UnityEngine.Vector3 a, UnityEngine.Vector3 b)
IL_00F1: starg.s 4
IL_00F3: ldarg.s 4
IL_00F5: // end original
IL_00F5: stloc 0 (UnityEngine.Vector3)
IL_00F9: Label0
IL_00F9: ldloc 0 (UnityEngine.Vector3)
IL_00FD: ret
DONE

### Patch: static Verse.GraphicMeshSet


Verse.HumanlikeMeshPoolUtility::GetHumanlikeHairSetForPawn(Verse.Pawn pawn)
### Replacement: static Verse.GraphicMeshSet
Verse.HumanlikeMeshPoolUtility::Verse.HumanlikeMeshPoolUtility.GetHumanlikeHairSetF
orPawn_Patch1(Verse.Pawn pawn)
IL_0000: Local var 0: UnityEngine.Vector2
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 RimWorld.Pawn_StoryTracker Verse.Pawn::story
IL_000B: ldfld Verse.HeadTypeDef RimWorld.Pawn_StoryTracker::headType
IL_0010: ldfld UnityEngine.Vector2 Verse.HeadTypeDef::hairMeshSize
IL_0015: stloc.0
IL_0016: call static System.Boolean Verse.ModsConfig::get_BiotechActive()
IL_001B: brfalse => Label0
IL_0020: ldarg.0
IL_0021: ldfld Verse.Pawn_AgeTracker Verse.Pawn::ageTracker
IL_0026: callvirt RimWorld.LifeStageDef Verse.Pawn_AgeTracker::get_CurLifeStage()
IL_002B: ldflda System.Nullable`1<System.Single>
RimWorld.LifeStageDef::headSizeFactor
IL_0030: call System.Boolean System.Nullable`1<System.Single>::get_HasValue()
IL_0035: brfalse => Label1
IL_003A: ldloc.0
IL_003B: ldarg.0
IL_003C: ldfld Verse.Pawn_AgeTracker Verse.Pawn::ageTracker
IL_0041: callvirt RimWorld.LifeStageDef Verse.Pawn_AgeTracker::get_CurLifeStage()
IL_0046: ldflda System.Nullable`1<System.Single>
RimWorld.LifeStageDef::headSizeFactor
IL_004B: call System.Single System.Nullable`1<System.Single>::get_Value()
IL_0050: call static UnityEngine.Vector2
UnityEngine.Vector2::op_Multiply(UnityEngine.Vector2 a, System.Single d)
IL_0055: stloc.0
IL_0056: Label0
IL_0056: Label1
IL_0056: ldloc.0
IL_0057: ldfld System.Single UnityEngine.Vector2::x
IL_005C: ldloc.0
IL_005D: ldfld System.Single UnityEngine.Vector2::y
IL_0062: call static Verse.GraphicMeshSet
Verse.MeshPool::GetMeshSetForWidth(System.Single width, System.Single height)
IL_0067: // end original
IL_0067: stloc 1 (Verse.GraphicMeshSet)
IL_006B: ldarg 0
IL_006F: ldloca 1 (Verse.GraphicMeshSet)
IL_0073: call static System.Void
FacialAnimation.HarmonyPatches::PostfixGetHumanlikeHairSetForPawn(Verse.Pawn pawn,
Verse.GraphicMeshSet& __result)
IL_0078: ldloc 1 (Verse.GraphicMeshSet)
IL_007C: ret
DONE

### Patch: System.Void


RimWorld.PlaySettings::DoPlaySettingsGlobalControls(Verse.WidgetRow row,
System.Boolean worldView)
### Replacement: static System.Void
RimWorld.PlaySettings::RimWorld.PlaySettings.DoPlaySettingsGlobalControls_Patch7(Ri
mWorld.PlaySettings this, Verse.WidgetRow row, System.Boolean worldView)
IL_0000: Local var 0: System.Boolean
IL_0000: Local var 1: System.Boolean
IL_0000: // start original
IL_0000: ldarg.0
IL_0001: ldfld System.Boolean RimWorld.PlaySettings::showColonistBar
IL_0006: ldarg.2
IL_0007: brfalse => Label0
IL_000C: call static Verse.ProgramState Verse.Current::get_ProgramState()
IL_0011: ldc.i4.2
IL_0012: bne.un => Label1
IL_0017: ldarg.1
IL_0018: ldarg.0
IL_0019: ldflda System.Boolean RimWorld.PlaySettings::showColonistBar
IL_001E: ldsfld UnityEngine.Texture2D Verse.TexButton::ShowColonistBar
IL_0023: call static System.Boolean
Verse.Steam.SteamDeck::get_IsSteamDeckInNonKeyboardMode()
IL_0028: brtrue => Label2
IL_002D: ldstr "ShowColonistBarToggleButton"
IL_0032: call static Verse.TaggedString
Verse.Translator::Translate(System.String key)
IL_0037: br => Label3
IL_003C: Label2
IL_003C: ldstr "ShowColonistBarToggleButtonController"
IL_0041: call static Verse.TaggedString
Verse.Translator::Translate(System.String key)
IL_0046: Label3
IL_0046: call static System.String
Verse.TaggedString::op_Implicit(Verse.TaggedString taggedString)
IL_004B: ldsfld Verse.SoundDef RimWorld.SoundDefOf::Mouseover_ButtonToggle
IL_0050: ldnull
IL_0051: call static System.Void
TD_Enhancement_Pack.RemoveUnusedToggles::ToggleableIconFiltered(Verse.WidgetRow
row, System.Boolean& toggleable, UnityEngine.Texture2D tex, System.String tooltip,
Verse.SoundDef mouseoverSound, System.String tutorTag)
IL_0056: Label1
IL_0056: ldarg.0
IL_0057: ldfld System.Boolean RimWorld.PlaySettings::lockNorthUp
IL_005C: ldarg.1
IL_005D: ldarg.0
IL_005E: ldflda System.Boolean RimWorld.PlaySettings::lockNorthUp
IL_0063: ldsfld UnityEngine.Texture2D Verse.TexButton::LockNorthUp
IL_0068: ldstr "LockNorthUpToggleButton"
IL_006D: call static Verse.TaggedString
Verse.Translator::Translate(System.String key)
IL_0072: call static System.String
Verse.TaggedString::op_Implicit(Verse.TaggedString taggedString)
IL_0077: ldsfld Verse.SoundDef RimWorld.SoundDefOf::Mouseover_ButtonToggle
IL_007C: ldnull
IL_007D: call static System.Void
TD_Enhancement_Pack.RemoveUnusedToggles::ToggleableIconFiltered(Verse.WidgetRow
row, System.Boolean& toggleable, UnityEngine.Texture2D tex, System.String tooltip,
Verse.SoundDef mouseoverSound, System.String tutorTag)
IL_0082: ldarg.0
IL_0083: ldfld System.Boolean RimWorld.PlaySettings::lockNorthUp
IL_0088: beq => Label4
IL_008D: ldarg.0
IL_008E: ldfld System.Boolean RimWorld.PlaySettings::lockNorthUp
IL_0093: brfalse => Label5
IL_0098: call static RimWorld.Planet.WorldCameraDriver
Verse.Find::get_WorldCameraDriver()
IL_009D: ldc.i4.1
IL_009E: callvirt System.Void
RimWorld.Planet.WorldCameraDriver::RotateSoNorthIsUp(System.Boolean interpolate)
IL_00A3: Label4
IL_00A3: Label5
IL_00A3: ldarg.1
IL_00A4: ldarg.0
IL_00A5: ldflda System.Boolean RimWorld.PlaySettings::usePlanetDayNightSystem
IL_00AA: ldsfld UnityEngine.Texture2D Verse.TexButton::UsePlanetDayNightSystem
IL_00AF: ldstr "UsePlanetDayNightSystemToggleButton"
IL_00B4: call static Verse.TaggedString
Verse.Translator::Translate(System.String key)
IL_00B9: call static System.String
Verse.TaggedString::op_Implicit(Verse.TaggedString taggedString)
IL_00BE: ldsfld Verse.SoundDef RimWorld.SoundDefOf::Mouseover_ButtonToggle
IL_00C3: ldnull
IL_00C4: call static System.Void
TD_Enhancement_Pack.RemoveUnusedToggles::ToggleableIconFiltered(Verse.WidgetRow
row, System.Boolean& toggleable, UnityEngine.Texture2D tex, System.String tooltip,
Verse.SoundDef mouseoverSound, System.String tutorTag)
IL_00C9: ldarg.1
IL_00CA: ldarg.0
IL_00CB: ldflda System.Boolean RimWorld.PlaySettings::showExpandingIcons
IL_00D0: ldsfld UnityEngine.Texture2D Verse.TexButton::ShowExpandingIcons
IL_00D5: ldstr "ShowExpandingIconsToggleButton"
IL_00DA: call static Verse.TaggedString
Verse.Translator::Translate(System.String key)
IL_00DF: call static System.String
Verse.TaggedString::op_Implicit(Verse.TaggedString taggedString)
IL_00E4: ldsfld Verse.SoundDef RimWorld.SoundDefOf::Mouseover_ButtonToggle
IL_00E9: ldnull
IL_00EA: call static System.Void
TD_Enhancement_Pack.RemoveUnusedToggles::ToggleableIconFiltered(Verse.WidgetRow
row, System.Boolean& toggleable, UnityEngine.Texture2D tex, System.String tooltip,
Verse.SoundDef mouseoverSound, System.String tutorTag)
IL_00EF: ldarg.1
IL_00F0: ldarg.0
IL_00F1: ldflda System.Boolean RimWorld.PlaySettings::showWorldFeatures
IL_00F6: ldsfld UnityEngine.Texture2D Verse.TexButton::ShowWorldFeatures
IL_00FB: ldstr "ShowWorldFeaturesToggleButton"
IL_0100: call static Verse.TaggedString
Verse.Translator::Translate(System.String key)
IL_0105: call static System.String
Verse.TaggedString::op_Implicit(Verse.TaggedString taggedString)
IL_010A: ldsfld Verse.SoundDef RimWorld.SoundDefOf::Mouseover_ButtonToggle
IL_010F: ldnull
IL_0110: call static System.Void
TD_Enhancement_Pack.RemoveUnusedToggles::ToggleableIconFiltered(Verse.WidgetRow
row, System.Boolean& toggleable, UnityEngine.Texture2D tex, System.String tooltip,
Verse.SoundDef mouseoverSound, System.String tutorTag)
IL_0115: br => Label6
IL_011A: Label0
IL_011A: ldarg.1
IL_011B: ldarg.0
IL_011C: ldflda System.Boolean RimWorld.PlaySettings::showLearningHelper
IL_0121: ldsfld UnityEngine.Texture2D Verse.TexButton::ShowLearningHelper
IL_0126: ldstr "ShowLearningHelperWhenEmptyToggleButton"
IL_012B: call static Verse.TaggedString
Verse.Translator::Translate(System.String key)
IL_0130: call static System.String
Verse.TaggedString::op_Implicit(Verse.TaggedString taggedString)
IL_0135: ldsfld Verse.SoundDef RimWorld.SoundDefOf::Mouseover_ButtonToggle
IL_013A: ldnull
IL_013B: call static System.Void
TD_Enhancement_Pack.RemoveUnusedToggles::ToggleableIconFiltered(Verse.WidgetRow
row, System.Boolean& toggleable, UnityEngine.Texture2D tex, System.String tooltip,
Verse.SoundDef mouseoverSound, System.String tutorTag)
IL_0140: ldarg.1
IL_0141: ldarg.0
IL_0142: ldflda System.Boolean RimWorld.PlaySettings::showZones
IL_0147: ldsfld UnityEngine.Texture2D Verse.TexButton::ShowZones
IL_014C: ldstr "ZoneVisibilityToggleButton"
IL_0151: call static Verse.TaggedString
Verse.Translator::Translate(System.String key)
IL_0156: call static System.String
Verse.TaggedString::op_Implicit(Verse.TaggedString taggedString)
IL_015B: ldsfld Verse.SoundDef RimWorld.SoundDefOf::Mouseover_ButtonToggle
IL_0160: ldnull
IL_0161: call static System.Void
TD_Enhancement_Pack.RemoveUnusedToggles::ToggleableIconFiltered(Verse.WidgetRow
row, System.Boolean& toggleable, UnityEngine.Texture2D tex, System.String tooltip,
Verse.SoundDef mouseoverSound, System.String tutorTag)
IL_0166: ldarg.1
IL_0167: ldarg.0
IL_0168: ldflda System.Boolean RimWorld.PlaySettings::showBeauty
IL_016D: ldsfld UnityEngine.Texture2D Verse.TexButton::ShowBeauty
IL_0172: ldstr "ShowBeautyToggleButton"
IL_0177: call static Verse.TaggedString
Verse.Translator::Translate(System.String key)
IL_017C: call static System.String
Verse.TaggedString::op_Implicit(Verse.TaggedString taggedString)
IL_0181: ldsfld Verse.SoundDef RimWorld.SoundDefOf::Mouseover_ButtonToggle
IL_0186: ldnull
IL_0187: call static System.Void
TD_Enhancement_Pack.RemoveUnusedToggles::ToggleableIconFiltered(Verse.WidgetRow
row, System.Boolean& toggleable, UnityEngine.Texture2D tex, System.String tooltip,
Verse.SoundDef mouseoverSound, System.String tutorTag)
IL_018C: ldarg.0
IL_018D: ldsfld Verse.KeyBindingDef
RimWorld.KeyBindingDefOf::ToggleBeautyDisplay
IL_0192: ldarg.0
IL_0193: ldflda System.Boolean RimWorld.PlaySettings::showBeauty
IL_0198: call System.Void
RimWorld.PlaySettings::CheckKeyBindingToggle(Verse.KeyBindingDef keyBinding,
System.Boolean& value)
IL_019D: ldarg.1
IL_019E: ldarg.0
IL_019F: ldflda System.Boolean RimWorld.PlaySettings::showRoomStats
IL_01A4: ldsfld UnityEngine.Texture2D Verse.TexButton::ShowRoomStats
IL_01A9: ldstr "ShowRoomStatsToggleButton"
IL_01AE: call static Verse.TaggedString
Verse.Translator::Translate(System.String key)
IL_01B3: call static System.String
Verse.TaggedString::op_Implicit(Verse.TaggedString taggedString)
IL_01B8: ldsfld Verse.SoundDef RimWorld.SoundDefOf::Mouseover_ButtonToggle
IL_01BD: ldnull
IL_01BE: call static System.Void
TD_Enhancement_Pack.RemoveUnusedToggles::ToggleableIconFiltered(Verse.WidgetRow
row, System.Boolean& toggleable, UnityEngine.Texture2D tex, System.String tooltip,
Verse.SoundDef mouseoverSound, System.String tutorTag)
IL_01C3: ldarg.0
IL_01C4: ldsfld Verse.KeyBindingDef
RimWorld.KeyBindingDefOf::ToggleRoomStatsDisplay
IL_01C9: ldarg.0
IL_01CA: ldflda System.Boolean RimWorld.PlaySettings::showRoomStats
IL_01CF: call System.Void
RimWorld.PlaySettings::CheckKeyBindingToggle(Verse.KeyBindingDef keyBinding,
System.Boolean& value)
IL_01D4: ldarg.1
IL_01D5: ldarg.0
IL_01D6: ldflda System.Boolean RimWorld.PlaySettings::showColonistBar
IL_01DB: ldsfld UnityEngine.Texture2D Verse.TexButton::ShowColonistBar
IL_01E0: call static System.Boolean
Verse.Steam.SteamDeck::get_IsSteamDeckInNonKeyboardMode()
IL_01E5: brtrue => Label7
IL_01EA: ldstr "ShowColonistBarToggleButton"
IL_01EF: call static Verse.TaggedString
Verse.Translator::Translate(System.String key)
IL_01F4: br => Label8
IL_01F9: Label7
IL_01F9: ldstr "ShowColonistBarToggleButtonController"
IL_01FE: call static Verse.TaggedString
Verse.Translator::Translate(System.String key)
IL_0203: Label8
IL_0203: call static System.String
Verse.TaggedString::op_Implicit(Verse.TaggedString taggedString)
IL_0208: ldsfld Verse.SoundDef RimWorld.SoundDefOf::Mouseover_ButtonToggle
IL_020D: ldnull
IL_020E: call static System.Void
TD_Enhancement_Pack.RemoveUnusedToggles::ToggleableIconFiltered(Verse.WidgetRow
row, System.Boolean& toggleable, UnityEngine.Texture2D tex, System.String tooltip,
Verse.SoundDef mouseoverSound, System.String tutorTag)
IL_0213: ldarg.1
IL_0214: ldarg.0
IL_0215: ldflda System.Boolean RimWorld.PlaySettings::showRoofOverlay
IL_021A: ldsfld UnityEngine.Texture2D Verse.TexButton::ShowRoofOverlay
IL_021F: ldstr "ShowRoofOverlayToggleButton"
IL_0224: call static Verse.TaggedString
Verse.Translator::Translate(System.String key)
IL_0229: call static System.String
Verse.TaggedString::op_Implicit(Verse.TaggedString taggedString)
IL_022E: ldsfld Verse.SoundDef RimWorld.SoundDefOf::Mouseover_ButtonToggle
IL_0233: ldnull
IL_0234: call static System.Void
TD_Enhancement_Pack.RemoveUnusedToggles::ToggleableIconFiltered(Verse.WidgetRow
row, System.Boolean& toggleable, UnityEngine.Texture2D tex, System.String tooltip,
Verse.SoundDef mouseoverSound, System.String tutorTag)
IL_0239: ldarg.1
IL_023A: ldarg.0
IL_023B: ldflda System.Boolean RimWorld.PlaySettings::showFertilityOverlay
IL_0240: ldsfld UnityEngine.Texture2D Verse.TexButton::ShowFertilityOverlay
IL_0245: ldstr "ShowFertilityOverlayToggleButton"
IL_024A: call static Verse.TaggedString
Verse.Translator::Translate(System.String key)
IL_024F: call static System.String
Verse.TaggedString::op_Implicit(Verse.TaggedString taggedString)
IL_0254: ldsfld Verse.SoundDef RimWorld.SoundDefOf::Mouseover_ButtonToggle
IL_0259: ldnull
IL_025A: call static System.Void
TD_Enhancement_Pack.RemoveUnusedToggles::ToggleableIconFiltered(Verse.WidgetRow
row, System.Boolean& toggleable, UnityEngine.Texture2D tex, System.String tooltip,
Verse.SoundDef mouseoverSound, System.String tutorTag)
IL_025F: ldarg.1
IL_0260: ldarg.0
IL_0261: ldflda System.Boolean
RimWorld.PlaySettings::showTerrainAffordanceOverlay
IL_0266: ldsfld UnityEngine.Texture2D
Verse.TexButton::ShowTerrainAffordanceOverlay
IL_026B: ldstr "ShowTerrainAffordanceOverlayToggleButton"
IL_0270: call static Verse.TaggedString
Verse.Translator::Translate(System.String key)
IL_0275: call static System.String
Verse.TaggedString::op_Implicit(Verse.TaggedString taggedString)
IL_027A: ldsfld Verse.SoundDef RimWorld.SoundDefOf::Mouseover_ButtonToggle
IL_027F: ldnull
IL_0280: call static System.Void
TD_Enhancement_Pack.RemoveUnusedToggles::ToggleableIconFiltered(Verse.WidgetRow
row, System.Boolean& toggleable, UnityEngine.Texture2D tex, System.String tooltip,
Verse.SoundDef mouseoverSound, System.String tutorTag)
IL_0285: ldarg.1
IL_0286: ldarg.0
IL_0287: ldflda System.Boolean RimWorld.PlaySettings::autoHomeArea
IL_028C: ldsfld UnityEngine.Texture2D Verse.TexButton::AutoHomeArea
IL_0291: ldstr "AutoHomeAreaToggleButton"
IL_0296: call static Verse.TaggedString
Verse.Translator::Translate(System.String key)
IL_029B: call static System.String
Verse.TaggedString::op_Implicit(Verse.TaggedString taggedString)
IL_02A0: ldsfld Verse.SoundDef RimWorld.SoundDefOf::Mouseover_ButtonToggle
IL_02A5: ldnull
IL_02A6: call static System.Void
TD_Enhancement_Pack.RemoveUnusedToggles::ToggleableIconFiltered(Verse.WidgetRow
row, System.Boolean& toggleable, UnityEngine.Texture2D tex, System.String tooltip,
Verse.SoundDef mouseoverSound, System.String tutorTag)
IL_02AB: ldarg.1
IL_02AC: ldarg.0
IL_02AD: ldflda System.Boolean RimWorld.PlaySettings::autoRebuild
IL_02B2: ldsfld UnityEngine.Texture2D Verse.TexButton::AutoRebuild
IL_02B7: ldstr "AutoRebuildButton"
IL_02BC: call static Verse.TaggedString
Verse.Translator::Translate(System.String key)
IL_02C1: call static System.String
Verse.TaggedString::op_Implicit(Verse.TaggedString taggedString)
IL_02C6: ldsfld Verse.SoundDef RimWorld.SoundDefOf::Mouseover_ButtonToggle
IL_02CB: ldnull
IL_02CC: call static System.Void
TD_Enhancement_Pack.RemoveUnusedToggles::ToggleableIconFiltered(Verse.WidgetRow
row, System.Boolean& toggleable, UnityEngine.Texture2D tex, System.String tooltip,
Verse.SoundDef mouseoverSound, System.String tutorTag)
IL_02D1: ldarg.1
IL_02D2: ldarg.0
IL_02D3: ldflda System.Boolean RimWorld.PlaySettings::showTemperatureOverlay
IL_02D8: ldsfld UnityEngine.Texture2D Verse.TexButton::ShowTemperatureOverlay
IL_02DD: ldstr "ShowTemperatureOverlayToggleButton"
IL_02E2: call static Verse.TaggedString
Verse.Translator::Translate(System.String key)
IL_02E7: call static System.String
Verse.TaggedString::op_Implicit(Verse.TaggedString taggedString)
IL_02EC: ldsfld Verse.SoundDef RimWorld.SoundDefOf::Mouseover_ButtonToggle
IL_02F1: ldnull
IL_02F2: call static System.Void
TD_Enhancement_Pack.RemoveUnusedToggles::ToggleableIconFiltered(Verse.WidgetRow
row, System.Boolean& toggleable, UnityEngine.Texture2D tex, System.String tooltip,
Verse.SoundDef mouseoverSound, System.String tutorTag)
IL_02F7: call static System.Boolean
Verse.Prefs::get_ResourceReadoutCategorized()
IL_02FC: stloc.0
IL_02FD: ldloc.0
IL_02FE: stloc.1
IL_02FF: ldarg.1
IL_0300: ldloca.s 0 (System.Boolean)
IL_0302: ldsfld UnityEngine.Texture2D
Verse.TexButton::CategorizedResourceReadout
IL_0307: ldstr "CategorizedResourceReadoutToggleButton"
IL_030C: call static Verse.TaggedString
Verse.Translator::Translate(System.String key)
IL_0311: call static System.String
Verse.TaggedString::op_Implicit(Verse.TaggedString taggedString)
IL_0316: ldsfld Verse.SoundDef RimWorld.SoundDefOf::Mouseover_ButtonToggle
IL_031B: ldnull
IL_031C: call static System.Void
TD_Enhancement_Pack.RemoveUnusedToggles::ToggleableIconFiltered(Verse.WidgetRow
row, System.Boolean& toggleable, UnityEngine.Texture2D tex, System.String tooltip,
Verse.SoundDef mouseoverSound, System.String tutorTag)
IL_0321: ldloc.0
IL_0322: ldloc.1
IL_0323: beq => Label9
IL_0328: ldloc.0
IL_0329: call static System.Void
Verse.Prefs::set_ResourceReadoutCategorized(System.Boolean value)
IL_032E: Label9
IL_032E: call static System.Boolean Verse.ModsConfig::get_BiotechActive()
IL_0333: brfalse => Label10
IL_0338: ldarg.1
IL_0339: ldarg.0
IL_033A: ldflda System.Boolean RimWorld.PlaySettings::showPollutionOverlay
IL_033F: ldsfld UnityEngine.Texture2D Verse.TexButton::ShowPollutionOverlay
IL_0344: ldstr "ShowPollutionOverlayToggleButton"
IL_0349: call static Verse.TaggedString
Verse.Translator::Translate(System.String key)
IL_034E: call static System.String
Verse.TaggedString::op_Implicit(Verse.TaggedString taggedString)
IL_0353: ldsfld Verse.SoundDef RimWorld.SoundDefOf::Mouseover_ButtonToggle
IL_0358: ldnull
IL_0359: call static System.Void
TD_Enhancement_Pack.RemoveUnusedToggles::ToggleableIconFiltered(Verse.WidgetRow
row, System.Boolean& toggleable, UnityEngine.Texture2D tex, System.String tooltip,
Verse.SoundDef mouseoverSound, System.String tutorTag)
IL_035E: Label6
IL_035E: Label10
IL_035E: ldarg.0
IL_035F: ldfld System.Boolean RimWorld.PlaySettings::showColonistBar
IL_0364: beq => Label11
IL_0369: call static RimWorld.ColonistBar Verse.Find::get_ColonistBar()
IL_036E: callvirt System.Void RimWorld.ColonistBar::MarkColonistsDirty()
IL_0373: // end original
IL_0373: Label11
IL_0373: ldarg.0
IL_0374: ldarg 1
IL_0378: ldarg 2
IL_037C: call static System.Void
DubsMintMinimap.H_DoPlaySettingsGlobalControls::Postfix(RimWorld.PlaySettings
__instance, Verse.WidgetRow row, System.Boolean worldView)
IL_0381: ldarg 1
IL_0385: ldarg 2
IL_0389: call static System.Void
Replace_Stuff.OverMineable.PlaySettings_BlueprintOverRockToggle::AddButton(Verse.Wi
dgetRow row, System.Boolean worldView)
IL_038E: ldarg 1
IL_0392: ldarg 2
IL_0396: call static System.Void
TD_Enhancement_Pack.PlaySettings_Patch::AddButton(Verse.WidgetRow row,
System.Boolean worldView)
IL_039B: ldarg 1
IL_039F: ldarg 2
IL_03A3: call static System.Void
TD_Enhancement_Pack.ShowPowerNetToggle::Postfix(Verse.WidgetRow row, System.Boolean
worldView)
IL_03A8: ldarg 1
IL_03AC: ldarg 2
IL_03B0: call static System.Void
RimHUD.Patch.RimWorld_PlaySettings_DoPlaySettingsGlobalControls::Postfix(Verse.Widg
etRow row, System.Boolean worldView)
IL_03B5: ldarg 1
IL_03B9: ldarg 2
IL_03BD: call static System.Void
CleaningArea.PlaySettingsPatch::Postfix(Verse.WidgetRow row, System.Boolean
worldView)
IL_03C2: ldarg.0
IL_03C3: ldarg 1
IL_03C7: ldarg 2
IL_03CB: call static System.Void
FacialAnimation.HarmonyPatches::PostfixDoPlaySettingsGlobalControls(RimWorld.PlaySe
ttings __instance, Verse.WidgetRow row, System.Boolean worldView)
IL_03D0: ret
DONE
### Harmony id=rimworld.erdelf.alien_race.main, version=2.2.2.0, location=C:\
Program Files (x86)\Steam\steamapps\common\data-000002130553D010,
env/clr=4.0.30319.42000, platform=Win32NT, ptrsize:runtime/env=8/Bits64, Windows
### Started from static System.Void AlienRace.HarmonyPatches::.cctor(), location
C:\Program Files (x86)\Steam\steamapps\common\data-0000021308D4B350
### At 2023-02-17 06.57.03
### Patch: virtual System.Single
RimWorld.PawnRelationWorker_Child::GenerationChance(Verse.Pawn generated,
Verse.Pawn other, Verse.PawnGenerationRequest request)
### Replacement: static System.Single
RimWorld.PawnRelationWorker_Child::RimWorld.PawnRelationWorker_Child.GenerationChan
ce_Patch1(RimWorld.PawnRelationWorker_Child this, Verse.Pawn generated, Verse.Pawn
other, Verse.PawnGenerationRequest request)
IL_0000: Local var 0: System.Single
IL_0000: Local var 1: System.Nullable`1<Verse.PawnGenerationRequest>
IL_0000: Local var 2: System.Single
IL_0000: ldc.r4 0
IL_0005: stloc 2 (System.Single)
IL_0009: // start original
IL_0009: ldc.r4 0
IL_000E: stloc.0
IL_000F: ldarg.1
IL_0010: ldarg.2
IL_0011: call static System.Boolean
RimWorld.ChildRelationUtility::XenotypesCompatible(Verse.Pawn first, Verse.Pawn
second)
IL_0016: brtrue => Label0
IL_001B: ldc.r4 0
IL_0020: br => Label7
IL_0025: Label0
IL_0025: ldarg.1
IL_0026: ldfld Verse.Gender Verse.Pawn::gender
IL_002B: ldc.i4.1
IL_002C: bne.un => Label1
IL_0031: ldarg.2
IL_0032: ldarg.1
IL_0033: ldarg.2
IL_0034: call static Verse.Pawn
RimWorld.ParentRelationUtility::GetMother(Verse.Pawn pawn)
IL_0039: ldloca.s 1 (System.Nullable`1[Verse.PawnGenerationRequest])
IL_003B: initobj System.Nullable`1[Verse.PawnGenerationRequest]
IL_0041: ldloc.1
IL_0042: ldarg.3
IL_0043: newobj System.Void
System.Nullable`1<Verse.PawnGenerationRequest>::.ctor(Verse.PawnGenerationRequest
value)
IL_0048: ldloca.s 1 (System.Nullable`1[Verse.PawnGenerationRequest])
IL_004A: initobj System.Nullable`1[Verse.PawnGenerationRequest]
IL_0050: ldloc.1
IL_0051: call static System.Single
RimWorld.ChildRelationUtility::ChanceOfBecomingChildOf(Verse.Pawn child, Verse.Pawn
father, Verse.Pawn mother, System.Nullable`1<Verse.PawnGenerationRequest>
childGenerationRequest, System.Nullable`1<Verse.PawnGenerationRequest>
fatherGenerationRequest, System.Nullable`1<Verse.PawnGenerationRequest>
motherGenerationRequest)
IL_0056: stloc.0
IL_0057: br => Label2
IL_005C: Label1
IL_005C: ldarg.1
IL_005D: ldfld Verse.Gender Verse.Pawn::gender
IL_0062: ldc.i4.2
IL_0063: bne.un => Label3
IL_0068: ldarg.2
IL_0069: ldarg.2
IL_006A: call static Verse.Pawn
RimWorld.ParentRelationUtility::GetFather(Verse.Pawn pawn)
IL_006F: ldarg.1
IL_0070: ldloca.s 1 (System.Nullable`1[Verse.PawnGenerationRequest])
IL_0072: initobj System.Nullable`1[Verse.PawnGenerationRequest]
IL_0078: ldloc.1
IL_0079: ldloca.s 1 (System.Nullable`1[Verse.PawnGenerationRequest])
IL_007B: initobj System.Nullable`1[Verse.PawnGenerationRequest]
IL_0081: ldloc.1
IL_0082: ldarg.3
IL_0083: newobj System.Void
System.Nullable`1<Verse.PawnGenerationRequest>::.ctor(Verse.PawnGenerationRequest
value)
IL_0088: call static System.Single
RimWorld.ChildRelationUtility::ChanceOfBecomingChildOf(Verse.Pawn child, Verse.Pawn
father, Verse.Pawn mother, System.Nullable`1<Verse.PawnGenerationRequest>
childGenerationRequest, System.Nullable`1<Verse.PawnGenerationRequest>
fatherGenerationRequest, System.Nullable`1<Verse.PawnGenerationRequest>
motherGenerationRequest)
IL_008D: stloc.0
IL_008E: Label2
IL_008E: Label3
IL_008E: call static System.Boolean Verse.ModsConfig::get_BiotechActive()
IL_0093: brfalse => Label4
IL_0098: ldarga.s 3
IL_009A: call RimWorld.PawnGenerationContext
Verse.PawnGenerationRequest::get_Context()
IL_009F: ldc.i4.1
IL_00A0: bne.un => Label5
IL_00A5: ldarg.2
IL_00A6: callvirt Verse.DevelopmentalStage Verse.Pawn::get_DevelopmentalStage()
IL_00AB: call static System.Boolean
Verse.DevelopmentalStageExtensions::Juvenile(Verse.DevelopmentalStage
developmentalStage)
IL_00B0: brfalse => Label6
IL_00B5: ldloc.0
IL_00B6: ldc.r4 10
IL_00BB: mul
IL_00BC: stloc.0
IL_00BD: Label4
IL_00BD: Label5
IL_00BD: Label6
IL_00BD: ldloc.0
IL_00BE: ldarg.0
IL_00BF: ldarg.1
IL_00C0: ldarg.2
IL_00C1: ldarg.3
IL_00C2: call System.Single
RimWorld.PawnRelationWorker::BaseGenerationChanceFactor(Verse.Pawn generated,
Verse.Pawn other, Verse.PawnGenerationRequest request)
IL_00C7: mul
IL_00C8: // end original
IL_00C8: Label7
IL_00C8: stloc 2 (System.Single)
IL_00CC: ldloca 2 (System.Single)
IL_00D0: ldarg 1
IL_00D4: ldarg 2
IL_00D8: call static System.Void
AlienRace.HarmonyPatches::GenerationChanceChildPostfix(System.Single& __result,
Verse.Pawn generated, Verse.Pawn other)
IL_00DD: ldloc 2 (System.Single)
IL_00E1: ret
DONE

### Patch: virtual System.Single


RimWorld.PawnRelationWorker_ExLover::GenerationChance(Verse.Pawn generated,
Verse.Pawn other, Verse.PawnGenerationRequest request)
### Replacement: static System.Single
RimWorld.PawnRelationWorker_ExLover::RimWorld.PawnRelationWorker_ExLover.Generation
Chance_Patch1(RimWorld.PawnRelationWorker_ExLover this, Verse.Pawn generated,
Verse.Pawn other, Verse.PawnGenerationRequest request)
IL_0000: Local var 0: System.Single
IL_0000: ldc.r4 0
IL_0005: stloc 0 (System.Single)
IL_0009: // start original
IL_0009: ldarg.1
IL_000A: ldarg.2
IL_000B: ldarg.3
IL_000C: ldc.i4.1
IL_000D: call static System.Single
RimWorld.LovePartnerRelationUtility::LovePartnerRelationGenerationChance(Verse.Pawn
generated, Verse.Pawn other, Verse.PawnGenerationRequest request, System.Boolean
ex)
IL_0012: ldarg.0
IL_0013: ldarg.1
IL_0014: ldarg.2
IL_0015: ldarg.3
IL_0016: call System.Single
RimWorld.PawnRelationWorker::BaseGenerationChanceFactor(Verse.Pawn generated,
Verse.Pawn other, Verse.PawnGenerationRequest request)
IL_001B: mul
IL_001C: // end original
IL_001C: stloc 0 (System.Single)
IL_0020: ldloca 0 (System.Single)
IL_0024: ldarg 1
IL_0028: ldarg 2
IL_002C: call static System.Void
AlienRace.HarmonyPatches::GenerationChanceExLoverPostfix(System.Single& __result,
Verse.Pawn generated, Verse.Pawn other)
IL_0031: ldloc 0 (System.Single)
IL_0035: ret
DONE

### Patch: virtual System.Single


RimWorld.PawnRelationWorker_ExSpouse::GenerationChance(Verse.Pawn generated,
Verse.Pawn other, Verse.PawnGenerationRequest request)
### Replacement: static System.Single
RimWorld.PawnRelationWorker_ExSpouse::RimWorld.PawnRelationWorker_ExSpouse.Generati
onChance_Patch1(RimWorld.PawnRelationWorker_ExSpouse this, Verse.Pawn generated,
Verse.Pawn other, Verse.PawnGenerationRequest request)
IL_0000: Local var 0: System.Single
IL_0000: ldc.r4 0
IL_0005: stloc 0 (System.Single)
IL_0009: // start original
IL_0009: ldarg.1
IL_000A: ldarg.2
IL_000B: ldarg.3
IL_000C: ldc.i4.1
IL_000D: call static System.Single
RimWorld.LovePartnerRelationUtility::LovePartnerRelationGenerationChance(Verse.Pawn
generated, Verse.Pawn other, Verse.PawnGenerationRequest request, System.Boolean
ex)
IL_0012: ldarg.0
IL_0013: ldarg.1
IL_0014: ldarg.2
IL_0015: ldarg.3
IL_0016: call System.Single
RimWorld.PawnRelationWorker::BaseGenerationChanceFactor(Verse.Pawn generated,
Verse.Pawn other, Verse.PawnGenerationRequest request)
IL_001B: mul
IL_001C: // end original
IL_001C: stloc 0 (System.Single)
IL_0020: ldloca 0 (System.Single)
IL_0024: ldarg 1
IL_0028: ldarg 2
IL_002C: call static System.Void
AlienRace.HarmonyPatches::GenerationChanceExSpousePostfix(System.Single& __result,
Verse.Pawn generated, Verse.Pawn other)
IL_0031: ldloc 0 (System.Single)
IL_0035: ret
DONE

### Patch: virtual System.Single


RimWorld.PawnRelationWorker_Fiance::GenerationChance(Verse.Pawn generated,
Verse.Pawn other, Verse.PawnGenerationRequest request)
### Replacement: static System.Single
RimWorld.PawnRelationWorker_Fiance::RimWorld.PawnRelationWorker_Fiance.GenerationCh
ance_Patch1(RimWorld.PawnRelationWorker_Fiance this, Verse.Pawn generated,
Verse.Pawn other, Verse.PawnGenerationRequest request)
IL_0000: Local var 0: System.Single
IL_0000: Local var 1: System.Single
IL_0000: ldc.r4 0
IL_0005: stloc 1 (System.Single)
IL_0009: // start original
IL_0009: ldc.r4 1
IL_000E: stloc.0
IL_000F: ldloc.0
IL_0010: ldarg.0
IL_0011: ldarg.1
IL_0012: call System.Single
RimWorld.PawnRelationWorker_Fiance::GetOldAgeFactor(Verse.Pawn pawn)
IL_0017: mul
IL_0018: stloc.0
IL_0019: ldloc.0
IL_001A: ldarg.0
IL_001B: ldarg.2
IL_001C: call System.Single
RimWorld.PawnRelationWorker_Fiance::GetOldAgeFactor(Verse.Pawn pawn)
IL_0021: mul
IL_0022: stloc.0
IL_0023: ldarg.1
IL_0024: ldarg.2
IL_0025: ldarg.3
IL_0026: ldc.i4.0
IL_0027: call static System.Single
RimWorld.LovePartnerRelationUtility::LovePartnerRelationGenerationChance(Verse.Pawn
generated, Verse.Pawn other, Verse.PawnGenerationRequest request, System.Boolean
ex)
IL_002C: ldarg.0
IL_002D: ldarg.1
IL_002E: ldarg.2
IL_002F: ldarg.3
IL_0030: call System.Single
RimWorld.PawnRelationWorker::BaseGenerationChanceFactor(Verse.Pawn generated,
Verse.Pawn other, Verse.PawnGenerationRequest request)
IL_0035: mul
IL_0036: ldloc.0
IL_0037: mul
IL_0038: // end original
IL_0038: stloc 1 (System.Single)
IL_003C: ldloca 1 (System.Single)
IL_0040: ldarg 1
IL_0044: ldarg 2
IL_0048: call static System.Void
AlienRace.HarmonyPatches::GenerationChanceFiancePostfix(System.Single& __result,
Verse.Pawn generated, Verse.Pawn other)
IL_004D: ldloc 1 (System.Single)
IL_0051: ret
DONE

### Patch: virtual System.Single


RimWorld.PawnRelationWorker_Lover::GenerationChance(Verse.Pawn generated,
Verse.Pawn other, Verse.PawnGenerationRequest request)
### Replacement: static System.Single
RimWorld.PawnRelationWorker_Lover::RimWorld.PawnRelationWorker_Lover.GenerationChan
ce_Patch1(RimWorld.PawnRelationWorker_Lover this, Verse.Pawn generated, Verse.Pawn
other, Verse.PawnGenerationRequest request)
IL_0000: Local var 0: System.Single
IL_0000: ldc.r4 0
IL_0005: stloc 0 (System.Single)
IL_0009: // start original
IL_0009: ldarg.1
IL_000A: ldarg.2
IL_000B: ldarg.3
IL_000C: ldc.i4.0
IL_000D: call static System.Single
RimWorld.LovePartnerRelationUtility::LovePartnerRelationGenerationChance(Verse.Pawn
generated, Verse.Pawn other, Verse.PawnGenerationRequest request, System.Boolean
ex)
IL_0012: ldarg.0
IL_0013: ldarg.1
IL_0014: ldarg.2
IL_0015: ldarg.3
IL_0016: call System.Single
RimWorld.PawnRelationWorker::BaseGenerationChanceFactor(Verse.Pawn generated,
Verse.Pawn other, Verse.PawnGenerationRequest request)
IL_001B: mul
IL_001C: // end original
IL_001C: stloc 0 (System.Single)
IL_0020: ldloca 0 (System.Single)
IL_0024: ldarg 1
IL_0028: ldarg 2
IL_002C: call static System.Void
AlienRace.HarmonyPatches::GenerationChanceLoverPostfix(System.Single& __result,
Verse.Pawn generated, Verse.Pawn other)
IL_0031: ldloc 0 (System.Single)
IL_0035: ret
DONE

### Patch: virtual System.Single


RimWorld.PawnRelationWorker_Parent::GenerationChance(Verse.Pawn generated,
Verse.Pawn other, Verse.PawnGenerationRequest request)
### Replacement: static System.Single
RimWorld.PawnRelationWorker_Parent::RimWorld.PawnRelationWorker_Parent.GenerationCh
ance_Patch1(RimWorld.PawnRelationWorker_Parent this, Verse.Pawn generated,
Verse.Pawn other, Verse.PawnGenerationRequest request)
IL_0000: Local var 0: System.Single
IL_0000: Local var 1: System.Nullable`1<Verse.PawnGenerationRequest>
IL_0000: Local var 2: System.Single
IL_0000: ldc.r4 0
IL_0005: stloc 2 (System.Single)
IL_0009: // start original
IL_0009: ldc.r4 0
IL_000E: stloc.0
IL_000F: ldarg.1
IL_0010: ldarg.2
IL_0011: call static System.Boolean
RimWorld.ChildRelationUtility::XenotypesCompatible(Verse.Pawn first, Verse.Pawn
second)
IL_0016: brtrue => Label0
IL_001B: ldc.r4 0
IL_0020: br => Label7
IL_0025: Label0
IL_0025: ldarg.2
IL_0026: ldfld Verse.Gender Verse.Pawn::gender
IL_002B: ldc.i4.1
IL_002C: bne.un => Label1
IL_0031: ldarg.1
IL_0032: ldarg.2
IL_0033: ldarg.2
IL_0034: call static Verse.Pawn
RimWorld.SpouseRelationUtility::GetFirstSpouseOfOppositeGender(Verse.Pawn pawn)
IL_0039: ldarg.3
IL_003A: newobj System.Void
System.Nullable`1<Verse.PawnGenerationRequest>::.ctor(Verse.PawnGenerationRequest
value)
IL_003F: ldloca.s 1 (System.Nullable`1[Verse.PawnGenerationRequest])
IL_0041: initobj System.Nullable`1[Verse.PawnGenerationRequest]
IL_0047: ldloc.1
IL_0048: ldloca.s 1 (System.Nullable`1[Verse.PawnGenerationRequest])
IL_004A: initobj System.Nullable`1[Verse.PawnGenerationRequest]
IL_0050: ldloc.1
IL_0051: call static System.Single
RimWorld.ChildRelationUtility::ChanceOfBecomingChildOf(Verse.Pawn child, Verse.Pawn
father, Verse.Pawn mother, System.Nullable`1<Verse.PawnGenerationRequest>
childGenerationRequest, System.Nullable`1<Verse.PawnGenerationRequest>
fatherGenerationRequest, System.Nullable`1<Verse.PawnGenerationRequest>
motherGenerationRequest)
IL_0056: stloc.0
IL_0057: br => Label2
IL_005C: Label1
IL_005C: ldarg.2
IL_005D: ldfld Verse.Gender Verse.Pawn::gender
IL_0062: ldc.i4.2
IL_0063: bne.un => Label3
IL_0068: ldarg.1
IL_0069: ldarg.2
IL_006A: call static Verse.Pawn
RimWorld.SpouseRelationUtility::GetFirstSpouseOfOppositeGender(Verse.Pawn pawn)
IL_006F: ldarg.2
IL_0070: ldarg.3
IL_0071: newobj System.Void
System.Nullable`1<Verse.PawnGenerationRequest>::.ctor(Verse.PawnGenerationRequest
value)
IL_0076: ldloca.s 1 (System.Nullable`1[Verse.PawnGenerationRequest])
IL_0078: initobj System.Nullable`1[Verse.PawnGenerationRequest]
IL_007E: ldloc.1
IL_007F: ldloca.s 1 (System.Nullable`1[Verse.PawnGenerationRequest])
IL_0081: initobj System.Nullable`1[Verse.PawnGenerationRequest]
IL_0087: ldloc.1
IL_0088: call static System.Single
RimWorld.ChildRelationUtility::ChanceOfBecomingChildOf(Verse.Pawn child, Verse.Pawn
father, Verse.Pawn mother, System.Nullable`1<Verse.PawnGenerationRequest>
childGenerationRequest, System.Nullable`1<Verse.PawnGenerationRequest>
fatherGenerationRequest, System.Nullable`1<Verse.PawnGenerationRequest>
motherGenerationRequest)
IL_008D: stloc.0
IL_008E: Label2
IL_008E: Label3
IL_008E: call static System.Boolean Verse.ModsConfig::get_BiotechActive()
IL_0093: brfalse => Label4
IL_0098: ldarga.s 3
IL_009A: call RimWorld.PawnGenerationContext
Verse.PawnGenerationRequest::get_Context()
IL_009F: ldc.i4.1
IL_00A0: bne.un => Label5
IL_00A5: ldarg.1
IL_00A6: callvirt Verse.DevelopmentalStage Verse.Pawn::get_DevelopmentalStage()
IL_00AB: call static System.Boolean
Verse.DevelopmentalStageExtensions::Juvenile(Verse.DevelopmentalStage
developmentalStage)
IL_00B0: brfalse => Label6
IL_00B5: ldloc.0
IL_00B6: ldc.r4 10
IL_00BB: mul
IL_00BC: stloc.0
IL_00BD: Label4
IL_00BD: Label5
IL_00BD: Label6
IL_00BD: ldloc.0
IL_00BE: ldarg.0
IL_00BF: ldarg.1
IL_00C0: ldarg.2
IL_00C1: ldarg.3
IL_00C2: call System.Single
RimWorld.PawnRelationWorker::BaseGenerationChanceFactor(Verse.Pawn generated,
Verse.Pawn other, Verse.PawnGenerationRequest request)
IL_00C7: mul
IL_00C8: // end original
IL_00C8: Label7
IL_00C8: stloc 2 (System.Single)
IL_00CC: ldloca 2 (System.Single)
IL_00D0: ldarg 1
IL_00D4: ldarg 2
IL_00D8: call static System.Void
AlienRace.HarmonyPatches::GenerationChanceParentPostfix(System.Single& __result,
Verse.Pawn generated, Verse.Pawn other)
IL_00DD: ldloc 2 (System.Single)
IL_00E1: ret
DONE

### Patch: virtual System.Single


RimWorld.PawnRelationWorker_Sibling::GenerationChance(Verse.Pawn generated,
Verse.Pawn other, Verse.PawnGenerationRequest request)
### Replacement: static System.Single
RimWorld.PawnRelationWorker_Sibling::RimWorld.PawnRelationWorker_Sibling.Generation
Chance_Patch1(RimWorld.PawnRelationWorker_Sibling this, Verse.Pawn generated,
Verse.Pawn other, Verse.PawnGenerationRequest request)
IL_0000: Local var 0: System.Single
IL_0000: Local var 1: System.Single
IL_0000: Local var 2: System.Single
IL_0000: Local var 3: System.Nullable`1<Verse.PawnGenerationRequest>
IL_0000: Local var 4: System.Single
IL_0000: ldc.r4 0
IL_0005: stloc 4 (System.Single)
IL_0009: // start original
IL_0009: ldc.r4 1
IL_000E: stloc.0
IL_000F: ldarg.2
IL_0010: call static Verse.Pawn
RimWorld.ParentRelationUtility::GetFather(Verse.Pawn pawn)
IL_0015: brtrue => Label0
IL_001A: ldarg.2
IL_001B: call static Verse.Pawn
RimWorld.ParentRelationUtility::GetMother(Verse.Pawn pawn)
IL_0020: brfalse => Label1
IL_0025: Label0
IL_0025: ldarg.1
IL_0026: ldarg.2
IL_0027: call static Verse.Pawn
RimWorld.ParentRelationUtility::GetFather(Verse.Pawn pawn)
IL_002C: ldarg.2
IL_002D: call static Verse.Pawn
RimWorld.ParentRelationUtility::GetMother(Verse.Pawn pawn)
IL_0032: ldarg.3
IL_0033: newobj System.Void
System.Nullable`1<Verse.PawnGenerationRequest>::.ctor(Verse.PawnGenerationRequest
value)
IL_0038: ldloca.s 3 (System.Nullable`1[Verse.PawnGenerationRequest])
IL_003A: initobj System.Nullable`1[Verse.PawnGenerationRequest]
IL_0040: ldloc.3
IL_0041: ldloca.s 3 (System.Nullable`1[Verse.PawnGenerationRequest])
IL_0043: initobj System.Nullable`1[Verse.PawnGenerationRequest]
IL_0049: ldloc.3
IL_004A: call static System.Single
RimWorld.ChildRelationUtility::ChanceOfBecomingChildOf(Verse.Pawn child, Verse.Pawn
father, Verse.Pawn mother, System.Nullable`1<Verse.PawnGenerationRequest>
childGenerationRequest, System.Nullable`1<Verse.PawnGenerationRequest>
fatherGenerationRequest, System.Nullable`1<Verse.PawnGenerationRequest>
motherGenerationRequest)
IL_004F: stloc.0
IL_0050: Label1
IL_0050: ldarg.1
IL_0051: ldarg.2
IL_0052: call static System.Boolean
RimWorld.ChildRelationUtility::XenotypesCompatible(Verse.Pawn first, Verse.Pawn
second)
IL_0057: brtrue => Label2
IL_005C: ldc.r4 0
IL_0061: br => Label6
IL_0066: Label2
IL_0066: ldarg.1
IL_0067: ldfld Verse.Pawn_AgeTracker Verse.Pawn::ageTracker
IL_006C: callvirt System.Single
Verse.Pawn_AgeTracker::get_AgeChronologicalYearsFloat()
IL_0071: ldarg.2
IL_0072: ldfld Verse.Pawn_AgeTracker Verse.Pawn::ageTracker
IL_0077: callvirt System.Single
Verse.Pawn_AgeTracker::get_AgeChronologicalYearsFloat()
IL_007C: sub
IL_007D: call static System.Single UnityEngine.Mathf::Abs(System.Single f)
IL_0082: stloc.1
IL_0083: ldc.r4 1
IL_0088: stloc.2
IL_0089: ldloc.1
IL_008A: ldc.r4 40
IL_008F: ble.un => Label3
IL_0094: ldc.r4 0.2
IL_0099: stloc.2
IL_009A: br => Label4
IL_009F: Label3
IL_009F: ldloc.1
IL_00A0: ldc.r4 10
IL_00A5: ble.un => Label5
IL_00AA: ldc.r4 0.65
IL_00AF: stloc.2
IL_00B0: Label4
IL_00B0: Label5
IL_00B0: ldloc.0
IL_00B1: ldloc.2
IL_00B2: mul
IL_00B3: ldarg.0
IL_00B4: ldarg.1
IL_00B5: ldarg.2
IL_00B6: ldarg.3
IL_00B7: call System.Single
RimWorld.PawnRelationWorker::BaseGenerationChanceFactor(Verse.Pawn generated,
Verse.Pawn other, Verse.PawnGenerationRequest request)
IL_00BC: mul
IL_00BD: // end original
IL_00BD: Label6
IL_00BD: stloc 4 (System.Single)
IL_00C1: ldloca 4 (System.Single)
IL_00C5: ldarg 1
IL_00C9: ldarg 2
IL_00CD: call static System.Void
AlienRace.HarmonyPatches::GenerationChanceSiblingPostfix(System.Single& __result,
Verse.Pawn generated, Verse.Pawn other)
IL_00D2: ldloc 4 (System.Single)
IL_00D6: ret
DONE

### Patch: virtual System.Single


RimWorld.PawnRelationWorker_Spouse::GenerationChance(Verse.Pawn generated,
Verse.Pawn other, Verse.PawnGenerationRequest request)
### Replacement: static System.Single
RimWorld.PawnRelationWorker_Spouse::RimWorld.PawnRelationWorker_Spouse.GenerationCh
ance_Patch1(RimWorld.PawnRelationWorker_Spouse this, Verse.Pawn generated,
Verse.Pawn other, Verse.PawnGenerationRequest request)
IL_0000: Local var 0: System.Single
IL_0000: ldc.r4 0
IL_0005: stloc 0 (System.Single)
IL_0009: // start original
IL_0009: ldarg.1
IL_000A: ldarg.2
IL_000B: ldarg.3
IL_000C: ldc.i4.0
IL_000D: call static System.Single
RimWorld.LovePartnerRelationUtility::LovePartnerRelationGenerationChance(Verse.Pawn
generated, Verse.Pawn other, Verse.PawnGenerationRequest request, System.Boolean
ex)
IL_0012: ldarg.0
IL_0013: ldarg.1
IL_0014: ldarg.2
IL_0015: ldarg.3
IL_0016: call System.Single
RimWorld.PawnRelationWorker::BaseGenerationChanceFactor(Verse.Pawn generated,
Verse.Pawn other, Verse.PawnGenerationRequest request)
IL_001B: mul
IL_001C: // end original
IL_001C: stloc 0 (System.Single)
IL_0020: ldloca 0 (System.Single)
IL_0024: ldarg 1
IL_0028: ldarg 2
IL_002C: call static System.Void
AlienRace.HarmonyPatches::GenerationChanceSpousePostfix(System.Single& __result,
Verse.Pawn generated, Verse.Pawn other)
IL_0031: ldloc 0 (System.Single)
IL_0035: ret
DONE

### Patch: static System.Void Verse.PawnGenerator::GeneratePawnRelations(Verse.Pawn


pawn, Verse.PawnGenerationRequest& request)
### Replacement: static System.Void
Verse.PawnGenerator::Verse.PawnGenerator.GeneratePawnRelations_Patch1(Verse.Pawn
pawn, Verse.PawnGenerationRequest& request)
IL_0000: Local var 0: Verse.PawnGenerator/<>c__DisplayClass62_0
IL_0000: Local var 1: Verse.Pawn[]
IL_0000: Local var 2: System.Int32
IL_0000: Local var 3: System.Single
IL_0000: Local var 4: Verse.Pair`2<Verse.Pawn,RimWorld.PawnRelationDef>
IL_0000: Local var 5: Verse.Pawn[]
IL_0000: Local var 6: System.Int32
IL_0000: Local var 7: Verse.Pawn
IL_0000: Local var 8: Verse.Pair`2<Verse.Pawn,RimWorld.PawnRelationDef>
IL_0000: Local var 9: System.Boolean
IL_0000: ldc.i4 0
IL_0005: stloc 9 (System.Boolean)
IL_0009: ldc.i4.1
IL_000A: stloc 9 (System.Boolean)
IL_000E: ldloc 9 (System.Boolean)
IL_0012: brfalse => Label1
IL_0017: ldarg 0
IL_001B: ldarg 1
IL_001F: call static System.Boolean
AlienRace.HarmonyPatches::GeneratePawnRelationsPrefix(Verse.Pawn pawn,
Verse.PawnGenerationRequest& request)
IL_0024: stloc 9 (System.Boolean)
IL_0028: Label1
IL_0028: nop
IL_0029: ldloc 9 (System.Boolean)
IL_002D: brfalse => Label0
IL_0032: // start original
IL_0032: newobj System.Void Verse.<>c__DisplayClass62_0::.ctor()
IL_0037: stloc.0
IL_0038: ldloc.0
IL_0039: ldarg.0
IL_003A: stfld Verse.Pawn Verse.<>c__DisplayClass62_0::pawn
IL_003F: ldloc.0
IL_0040: ldfld Verse.Pawn Verse.<>c__DisplayClass62_0::pawn
IL_0045: callvirt Verse.RaceProperties Verse.Pawn::get_RaceProps()
IL_004A: callvirt System.Boolean Verse.RaceProperties::get_Humanlike()
IL_004F: brtrue => Label2
IL_0054: br => Label13
IL_0059: Label2
IL_0059: call static System.Collections.Generic.List`1<Verse.Pawn>
RimWorld.PawnsFinder::get_AllMapsWorldAndTemporary_AliveOrDead()
IL_005E: ldloc.0
IL_005F: ldftn System.Boolean
Verse.<>c__DisplayClass62_0::<GeneratePawnRelations>b__0(Verse.Pawn x)
IL_0065: newobj System.Void System.Func`2<Verse.Pawn,
System.Boolean>::.ctor(System.Object object, System.IntPtr method)
IL_006A: call static System.Collections.Generic.IEnumerable`1<Verse.Pawn>
System.Linq.Enumerable::Where(System.Collections.Generic.IEnumerable`1<Verse.Pawn>
source, System.Func`2<Verse.Pawn, System.Boolean> predicate)
IL_006F: call static Verse.Pawn[]
System.Linq.Enumerable::ToArray(System.Collections.Generic.IEnumerable`1<Verse.Pawn
> source)
IL_0074: stloc.1
IL_0075: ldloc.1
IL_0076: ldlen
IL_0077: brtrue => Label3
IL_007C: br => Label14
IL_0081: Label3
IL_0081: ldc.i4.0
IL_0082: stloc.2
IL_0083: ldloc.1
IL_0084: stloc.s 5 (Verse.Pawn[])
IL_0086: ldc.i4.0
IL_0087: stloc.s 6 (System.Int32)
IL_0089: br => Label4
IL_008E: Label9
IL_008E: ldloc.s 5 (Verse.Pawn[])
IL_0090: ldloc.s 6 (System.Int32)
IL_0092: ldelem.ref
IL_0093: stloc.s 7 (Verse.Pawn)
IL_0095: ldloc.s 7 (Verse.Pawn)
IL_0097: callvirt System.Boolean Verse.Thing::get_Discarded()
IL_009C: brfalse => Label5
IL_00A1: ldc.i4.5
IL_00A2: newarr System.Object
IL_00A7: dup
IL_00A8: ldc.i4.0
IL_00A9: ldstr "Warning during generating pawn relations for "
IL_00AE: stelem.ref
IL_00AF: dup
IL_00B0: ldc.i4.1
IL_00B1: ldloc.0
IL_00B2: ldfld Verse.Pawn Verse.<>c__DisplayClass62_0::pawn
IL_00B7: stelem.ref
IL_00B8: dup
IL_00B9: ldc.i4.2
IL_00BA: ldstr ": Pawn "
IL_00BF: stelem.ref
IL_00C0: dup
IL_00C1: ldc.i4.3
IL_00C2: ldloc.s 7 (Verse.Pawn)
IL_00C4: stelem.ref
IL_00C5: dup
IL_00C6: ldc.i4.4
IL_00C7: ldstr " is discarded, yet he was yielded by PawnUtility. Discarding a
pawn means that he is no longer managed by anything."
IL_00CC: stelem.ref
IL_00CD: call static System.String System.String::Concat(System.Object[]
args)
IL_00D2: call static System.Void Verse.Log::Warning(System.String text)
IL_00D7: br => Label6
IL_00DC: Label5
IL_00DC: ldloc.s 7 (Verse.Pawn)
IL_00DE: callvirt virtual RimWorld.Faction Verse.Thing::get_Faction()
IL_00E3: brfalse => Label7
IL_00E8: ldloc.s 7 (Verse.Pawn)
IL_00EA: callvirt virtual RimWorld.Faction Verse.Thing::get_Faction()
IL_00EF: callvirt System.Boolean RimWorld.Faction::get_IsPlayer()
IL_00F4: brfalse => Label8
IL_00F9: ldloc.2
IL_00FA: ldc.i4.1
IL_00FB: add
IL_00FC: stloc.2
IL_00FD: Label6
IL_00FD: Label7
IL_00FD: Label8
IL_00FD: ldloc.s 6 (System.Int32)
IL_00FF: ldc.i4.1
IL_0100: add
IL_0101: stloc.s 6 (System.Int32)
IL_0103: Label4
IL_0103: ldloc.s 6 (System.Int32)
IL_0105: ldloc.s 5 (Verse.Pawn[])
IL_0107: ldlen
IL_0108: conv.i4
IL_0109: blt => Label9
IL_010E: ldc.r4 45
IL_0113: stloc.3
IL_0114: ldloc.3
IL_0115: ldloc.2
IL_0116: conv.r4
IL_0117: ldc.r4 2.7
IL_011C: mul
IL_011D: add
IL_011E: stloc.3
IL_011F: ldloc.0
IL_0120: ldarg.1
IL_0121: ldobj Verse.PawnGenerationRequest
IL_0126: stfld Verse.PawnGenerationRequest
Verse.<>c__DisplayClass62_0::localReq
IL_012B: ldloc.1
IL_012C: ldsfld RimWorld.PawnRelationDef[]
Verse.PawnGenerator::relationsGeneratableBlood
IL_0131: ldc.i4.s 40
IL_0133: call static Verse.Pair`2[]
Verse.PawnGenerator::GenerateSamples(Verse.Pawn[] pawns, RimWorld.PawnRelationDef[]
relations, System.Int32 count)
IL_0138: ldloc.0
IL_0139: ldftn System.Single
Verse.<>c__DisplayClass62_0::<GeneratePawnRelations>b__1(Verse.Pair`2<Verse.Pawn,
RimWorld.PawnRelationDef> x)
IL_013F: newobj System.Void System.Func`2<Verse.Pair`2<Verse.Pawn,
RimWorld.PawnRelationDef>, System.Single>::.ctor(System.Object object,
System.IntPtr method)
IL_0144: ldloc.3
IL_0145: ldc.r4 40
IL_014A: mul
IL_014B: ldloc.1
IL_014C: ldlen
IL_014D: conv.i4
IL_014E: ldsfld RimWorld.PawnRelationDef[]
Verse.PawnGenerator::relationsGeneratableBlood
IL_0153: ldlen
IL_0154: conv.i4
IL_0155: mul
IL_0156: conv.r4
IL_0157: div
IL_0158: call static Verse.Pair`2<Verse.Pawn, RimWorld.PawnRelationDef>
Verse.GenCollection::RandomElementByWeightWithDefault(System.Collections.Generic.IE
numerable`1<Verse.Pair`2<Verse.Pawn, RimWorld.PawnRelationDef>> source,
System.Func`2<Verse.Pair`2<Verse.Pawn, RimWorld.PawnRelationDef>, System.Single>
weightSelector, System.Single defaultValueWeight)
IL_015D: stloc.s 4 (Verse.Pair`2[Verse.Pawn,RimWorld.PawnRelationDef])
IL_015F: ldloca.s 4 (Verse.Pair`2[Verse.Pawn,RimWorld.PawnRelationDef])
IL_0161: call Verse.Pawn Verse.Pair`2<Verse.Pawn,
RimWorld.PawnRelationDef>::get_First()
IL_0166: brfalse => Label10
IL_016B: ldloca.s 4 (Verse.Pair`2[Verse.Pawn,RimWorld.PawnRelationDef])
IL_016D: call RimWorld.PawnRelationDef Verse.Pair`2<Verse.Pawn,
RimWorld.PawnRelationDef>::get_Second()
IL_0172: callvirt RimWorld.PawnRelationWorker
RimWorld.PawnRelationDef::get_Worker()
IL_0177: ldloc.0
IL_0178: ldfld Verse.Pawn Verse.<>c__DisplayClass62_0::pawn
IL_017D: ldloca.s 4 (Verse.Pair`2[Verse.Pawn,RimWorld.PawnRelationDef])
IL_017F: call Verse.Pawn Verse.Pair`2<Verse.Pawn,
RimWorld.PawnRelationDef>::get_First()
IL_0184: ldarg.1
IL_0185: callvirt virtual System.Void
RimWorld.PawnRelationWorker::CreateRelation(Verse.Pawn generated, Verse.Pawn other,
Verse.PawnGenerationRequest& request)
IL_018A: Label10
IL_018A: ldloc.0
IL_018B: ldfld Verse.Pawn Verse.<>c__DisplayClass62_0::pawn
IL_0190: ldfld Verse.PawnKindDef Verse.Pawn::kindDef
IL_0195: ldfld System.Boolean
Verse.PawnKindDef::generateInitialNonFamilyRelations
IL_019A: brfalse => Label11
IL_019F: ldloc.1
IL_01A0: ldsfld RimWorld.PawnRelationDef[]
Verse.PawnGenerator::relationsGeneratableNonblood
IL_01A5: ldc.i4.s 40
IL_01A7: call static Verse.Pair`2[]
Verse.PawnGenerator::GenerateSamples(Verse.Pawn[] pawns, RimWorld.PawnRelationDef[]
relations, System.Int32 count)
IL_01AC: ldloc.0
IL_01AD: ldftn System.Single
Verse.<>c__DisplayClass62_0::<GeneratePawnRelations>b__2(Verse.Pair`2<Verse.Pawn,
RimWorld.PawnRelationDef> x)
IL_01B3: newobj System.Void System.Func`2<Verse.Pair`2<Verse.Pawn,
RimWorld.PawnRelationDef>, System.Single>::.ctor(System.Object object,
System.IntPtr method)
IL_01B8: ldloc.3
IL_01B9: ldc.r4 40
IL_01BE: mul
IL_01BF: ldloc.1
IL_01C0: ldlen
IL_01C1: conv.i4
IL_01C2: ldsfld RimWorld.PawnRelationDef[]
Verse.PawnGenerator::relationsGeneratableNonblood
IL_01C7: ldlen
IL_01C8: conv.i4
IL_01C9: mul
IL_01CA: conv.r4
IL_01CB: div
IL_01CC: call static Verse.Pair`2<Verse.Pawn, RimWorld.PawnRelationDef>
Verse.GenCollection::RandomElementByWeightWithDefault(System.Collections.Generic.IE
numerable`1<Verse.Pair`2<Verse.Pawn, RimWorld.PawnRelationDef>> source,
System.Func`2<Verse.Pair`2<Verse.Pawn, RimWorld.PawnRelationDef>, System.Single>
weightSelector, System.Single defaultValueWeight)
IL_01D1: stloc.s 8 (Verse.Pair`2[Verse.Pawn,RimWorld.PawnRelationDef])
IL_01D3: ldloca.s 8 (Verse.Pair`2[Verse.Pawn,RimWorld.PawnRelationDef])
IL_01D5: call Verse.Pawn Verse.Pair`2<Verse.Pawn,
RimWorld.PawnRelationDef>::get_First()
IL_01DA: brfalse => Label12
IL_01DF: ldloca.s 8 (Verse.Pair`2[Verse.Pawn,RimWorld.PawnRelationDef])
IL_01E1: call RimWorld.PawnRelationDef Verse.Pair`2<Verse.Pawn,
RimWorld.PawnRelationDef>::get_Second()
IL_01E6: callvirt RimWorld.PawnRelationWorker
RimWorld.PawnRelationDef::get_Worker()
IL_01EB: ldloc.0
IL_01EC: ldfld Verse.Pawn Verse.<>c__DisplayClass62_0::pawn
IL_01F1: ldloca.s 8 (Verse.Pair`2[Verse.Pawn,RimWorld.PawnRelationDef])
IL_01F3: call Verse.Pawn Verse.Pair`2<Verse.Pawn,
RimWorld.PawnRelationDef>::get_First()
IL_01F8: ldarg.1
IL_01F9: callvirt virtual System.Void
RimWorld.PawnRelationWorker::CreateRelation(Verse.Pawn generated, Verse.Pawn other,
Verse.PawnGenerationRequest& request)
IL_01FE: // end original
IL_01FE: Label11
IL_01FE: Label12
IL_01FE: Label13
IL_01FE: Label14
IL_01FE: Label0
IL_01FE: ret
DONE

### Patch: System.String


RimWorld.PawnRelationDef::GetGenderSpecificLabel(Verse.Pawn pawn)
### Replacement: static System.String
RimWorld.PawnRelationDef::RimWorld.PawnRelationDef.GetGenderSpecificLabel_Patch1(Ri
mWorld.PawnRelationDef this, Verse.Pawn pawn)
IL_0000: Local var 0: System.String
IL_0000: Local var 1: System.Boolean
IL_0000: ldnull
IL_0001: stloc 0 (System.String)
IL_0005: ldc.i4 0
IL_000A: stloc 1 (System.Boolean)
IL_000E: ldc.i4.1
IL_000F: stloc 1 (System.Boolean)
IL_0013: ldloc 1 (System.Boolean)
IL_0017: brfalse => Label1
IL_001C: ldarg 1
IL_0020: ldloca 0 (System.String)
IL_0024: ldarg.0
IL_0025: call static System.Boolean
AlienRace.HarmonyPatches::GetGenderSpecificLabelPrefix(Verse.Pawn pawn,
System.String& __result, RimWorld.PawnRelationDef __instance)
IL_002A: stloc 1 (System.Boolean)
IL_002E: Label1
IL_002E: nop
IL_002F: ldloc 1 (System.Boolean)
IL_0033: brfalse => Label0
IL_0038: // start original
IL_0038: ldarg.1
IL_0039: ldfld Verse.Gender Verse.Pawn::gender
IL_003E: ldc.i4.2
IL_003F: bne.un => Label2
IL_0044: ldarg.0
IL_0045: ldfld System.String RimWorld.PawnRelationDef::labelFemale
IL_004A: call static System.Boolean Verse.GenText::NullOrEmpty(System.String
str)
IL_004F: brtrue => Label3
IL_0054: ldarg.0
IL_0055: ldfld System.String RimWorld.PawnRelationDef::labelFemale
IL_005A: br => Label4
IL_005F: Label2
IL_005F: Label3
IL_005F: ldarg.0
IL_0060: ldfld System.String Verse.Def::label
IL_0065: // end original
IL_0065: Label4
IL_0065: stloc 0 (System.String)
IL_0069: Label0
IL_0069: ldloc 0 (System.String)
IL_006D: ret
DONE

### Patch: static System.Boolean


RimWorld.PawnBioAndNameGenerator::TryGetRandomUnusedSolidBioFor(System.Collections.
Generic.List`1<RimWorld.BackstoryCategoryFilter> backstoryCategories,
Verse.PawnKindDef kind, Verse.Gender gender, System.String requiredLastName,
RimWorld.PawnBio& result)
### Replacement: static System.Boolean
RimWorld.PawnBioAndNameGenerator::RimWorld.PawnBioAndNameGenerator.TryGetRandomUnus
edSolidBioFor_Patch1(System.Collections.Generic.List`1<RimWorld.BackstoryCategoryFi
lter> backstoryCategories, Verse.PawnKindDef kind, Verse.Gender gender,
System.String requiredLastName, RimWorld.PawnBio& result)
IL_0000: Local var 0: RimWorld.PawnBioAndNameGenerator/<>c__DisplayClass18_0
IL_0000: Local var 1: System.Collections.Generic.List`1/Enumerator<System.String>
IL_0000: Local var 2: System.String
IL_0000: Local var 3:
System.Collections.Generic.List`1/Enumerator<RimWorld.PawnBio>
IL_0000: Local var 4: RimWorld.PawnBio
IL_0000: Local var 5: System.Boolean
IL_0000: Local var 6: System.Boolean
IL_0000: ldc.i4 0
IL_0005: stloc 6 (System.Boolean)
IL_0009: // start original
IL_0009: newobj System.Void RimWorld.<>c__DisplayClass18_0::.ctor()
IL_000E: stloc.0
IL_000F: ldloc.0
IL_0010: ldarg.1
IL_0011: stfld Verse.PawnKindDef RimWorld.<>c__DisplayClass18_0::kind
IL_0016: ldloc.0
IL_0017: ldarg.2
IL_0018: stfld Verse.Gender RimWorld.<>c__DisplayClass18_0::gender
IL_001D: ldloc.0
IL_001E: ldarg.3
IL_001F: stfld System.String RimWorld.<>c__DisplayClass18_0::requiredLastName
IL_0024: ldloc.0
IL_0025: ldarg.0
IL_0026: ldsfld System.Func`2<RimWorld.BackstoryCategoryFilter, System.Single>
RimWorld.<>c::<>9__18_0
IL_002B: dup
IL_002C: brtrue => Label0
IL_0031: pop
IL_0032: ldsfld RimWorld.<>c RimWorld.<>c::<>9
IL_0037: ldftn System.Single
RimWorld.<>c::<TryGetRandomUnusedSolidBioFor>b__18_0(RimWorld.BackstoryCategoryFilt
er c)
IL_003D: newobj System.Void System.Func`2<RimWorld.BackstoryCategoryFilter,
System.Single>::.ctor(System.Object object, System.IntPtr method)
IL_0042: dup
IL_0043: stsfld System.Func`2<RimWorld.BackstoryCategoryFilter, System.Single>
RimWorld.<>c::<>9__18_0
IL_0048: Label0
IL_0048: call static RimWorld.BackstoryCategoryFilter
Verse.GenCollection::RandomElementByWeight(System.Collections.Generic.IEnumerable`1
<RimWorld.BackstoryCategoryFilter> source,
System.Func`2<RimWorld.BackstoryCategoryFilter, System.Single> weightSelector)
IL_004D: stfld RimWorld.BackstoryCategoryFilter
RimWorld.<>c__DisplayClass18_0::categoryFilter
IL_0052: ldloc.0
IL_0053: ldfld RimWorld.BackstoryCategoryFilter
RimWorld.<>c__DisplayClass18_0::categoryFilter
IL_0058: brtrue => Label1
IL_005D: ldloc.0
IL_005E: ldsfld RimWorld.BackstoryCategoryFilter
RimWorld.PawnBioAndNameGenerator::FallbackCategoryGroup
IL_0063: stfld RimWorld.BackstoryCategoryFilter
RimWorld.<>c__DisplayClass18_0::categoryFilter
IL_0068: Label1
IL_0068: call static System.Single Verse.Rand::get_Value()
IL_006D: ldc.r4 0.5
IL_0072: bge.un => Label2
IL_0077: ldsfld System.Collections.Generic.List`1<System.String>
RimWorld.PawnBioAndNameGenerator::tmpNames
IL_007C: callvirt virtual System.Void
System.Collections.Generic.List`1<System.String>::Clear()
IL_0081: ldsfld System.Collections.Generic.List`1<System.String>
RimWorld.PawnBioAndNameGenerator::tmpNames
IL_0086: call static System.Collections.Generic.List`1<System.String>
Verse.Prefs::get_PreferredNames()
IL_008B: callvirt System.Void
System.Collections.Generic.List`1<System.String>::AddRange(System.Collections.Gener
ic.IEnumerable`1<System.String> collection)
IL_0090: ldsfld System.Collections.Generic.List`1<System.String>
RimWorld.PawnBioAndNameGenerator::tmpNames
IL_0095: call static System.Void
Verse.GenList::Shuffle(System.Collections.Generic.IList`1<System.String> list)
IL_009A: ldsfld System.Collections.Generic.List`1<System.String>
RimWorld.PawnBioAndNameGenerator::tmpNames
IL_009F: callvirt System.Collections.Generic.Enumerator<System.String>
System.Collections.Generic.List`1<System.String>::GetEnumerator()
IL_00A4: stloc.1
.try
{
IL_00A5: br => Label3
IL_00AA: Label10
IL_00AA: ldloca.s 1
(System.Collections.Generic.List`1+Enumerator[System.String])
IL_00AC: call virtual System.String
System.Collections.Generic.Enumerator<System.String>::get_Current()
IL_00B1: stloc.2
IL_00B2: ldsfld System.Collections.Generic.List`1<RimWorld.PawnBio>
RimWorld.SolidBioDatabase::allBios
IL_00B7: callvirt System.Collections.Generic.Enumerator<RimWorld.PawnBio>
System.Collections.Generic.List`1<RimWorld.PawnBio>::GetEnumerator()
IL_00BC: stloc.3
.try
{
IL_00BD: br => Label4
IL_00C2: Label8
IL_00C2: ldloca.s 3
(System.Collections.Generic.List`1+Enumerator[RimWorld.PawnBio])
IL_00C4: call virtual RimWorld.PawnBio
System.Collections.Generic.Enumerator<RimWorld.PawnBio>::get_Current()
IL_00C9: stloc.s 4 (RimWorld.PawnBio)
IL_00CB: ldloc.2
IL_00CC: ldloc.s 4 (RimWorld.PawnBio)
IL_00CE: ldfld Verse.NameTriple RimWorld.PawnBio::name
IL_00D3: callvirt virtual System.String System.Object::ToString()
IL_00D8: call static System.Boolean
System.String::op_Equality(System.String a, System.String b)
IL_00DD: brfalse => Label5
IL_00E2: ldloc.s 4 (RimWorld.PawnBio)
IL_00E4: ldloc.0
IL_00E5: ldfld RimWorld.BackstoryCategoryFilter
RimWorld.<>c__DisplayClass18_0::categoryFilter
IL_00EA: ldloc.0
IL_00EB: ldfld Verse.PawnKindDef
RimWorld.<>c__DisplayClass18_0::kind
IL_00F0: ldloc.0
IL_00F1: ldfld Verse.Gender RimWorld.<>c__DisplayClass18_0::gender
IL_00F6: ldloc.0
IL_00F7: ldfld System.String
RimWorld.<>c__DisplayClass18_0::requiredLastName
IL_00FC: call static System.Boolean
RimWorld.PawnBioAndNameGenerator::IsBioUseable(RimWorld.PawnBio bio,
RimWorld.BackstoryCategoryFilter categoryFilter, Verse.PawnKindDef kind,
Verse.Gender gender, System.String requiredLastName)
IL_0101: brfalse => Label6
IL_0106: ldarg.s 4
IL_0108: ldloc.s 4 (RimWorld.PawnBio)
IL_010A: stind.ref
IL_010B: ldc.i4.1
IL_010C: stloc.s 5 (System.Boolean)
IL_010E: leave => Label7
IL_0113: Label4
IL_0113: Label5
IL_0113: Label6
IL_0113: ldloca.s 3
(System.Collections.Generic.List`1+Enumerator[RimWorld.PawnBio])
IL_0115: call virtual System.Boolean
System.Collections.Generic.Enumerator<RimWorld.PawnBio>::MoveNext()
IL_011A: brtrue => Label8
IL_011F: leave => Label9
IL_0124: leave => (autogenerated)
} // end try
.finally
{
IL_0129: ldloca.s 3
(System.Collections.Generic.List`1+Enumerator[RimWorld.PawnBio])
IL_012B: constrained.
System.Collections.Generic.List`1+Enumerator[RimWorld.PawnBio]
IL_0131: callvirt abstract virtual System.Void
System.IDisposable::Dispose()
IL_0136: endfinally
IL_0137: leave => (autogenerated)
} // end handler
IL_0138: Label3
IL_0138: Label9
IL_0138: ldloca.s 1
(System.Collections.Generic.List`1+Enumerator[System.String])
IL_013A: call virtual System.Boolean
System.Collections.Generic.Enumerator<System.String>::MoveNext()
IL_013F: brtrue => Label10
IL_0144: leave => Label11
IL_0149: leave => (autogenerated)
} // end try
.finally
{
IL_014E: ldloca.s 1
(System.Collections.Generic.List`1+Enumerator[System.String])
IL_0150: constrained.
System.Collections.Generic.List`1+Enumerator[System.String]
IL_0156: callvirt abstract virtual System.Void
System.IDisposable::Dispose()
IL_015B: endfinally
IL_015C: leave => (autogenerated)
} // end handler
IL_015D: Label2
IL_015D: Label11
IL_015D: ldsfld System.Collections.Generic.List`1<RimWorld.PawnBio>
RimWorld.SolidBioDatabase::allBios
IL_0162: ldc.i4.s 20
IL_0164: call static
System.Collections.Generic.IEnumerable`1<RimWorld.PawnBio>
Verse.GenCollection::TakeRandom(System.Collections.Generic.List`1<RimWorld.PawnBio>
list, System.Int32 count)
IL_0169: ldloc.0
IL_016A: ldftn System.Boolean
RimWorld.<>c__DisplayClass18_0::<TryGetRandomUnusedSolidBioFor>b__1(RimWorld.PawnBi
o bio)
IL_0170: newobj System.Void System.Func`2<RimWorld.PawnBio,
System.Boolean>::.ctor(System.Object object, System.IntPtr method)
IL_0175: call static
System.Collections.Generic.IEnumerable`1<RimWorld.PawnBio>
System.Linq.Enumerable::Where(System.Collections.Generic.IEnumerable`1<RimWorld.Paw
nBio> source, System.Func`2<RimWorld.PawnBio, System.Boolean> predicate)
IL_017A: ldnull
IL_017B: ldftn static System.Single
RimWorld.PawnBioAndNameGenerator::BioSelectionWeight(RimWorld.PawnBio bio)
IL_0181: newobj System.Void System.Func`2<RimWorld.PawnBio,
System.Single>::.ctor(System.Object object, System.IntPtr method)
IL_0186: ldarg.s 4
IL_0188: call static System.Boolean
Verse.GenCollection::TryRandomElementByWeight(System.Collections.Generic.IEnumerabl
e`1<RimWorld.PawnBio> source, System.Func`2<RimWorld.PawnBio, System.Single>
weightSelector, RimWorld.PawnBio& result)
IL_018D: br => Label20
IL_0192: Label7
IL_0192: ldloc.s 5 (System.Boolean)
IL_0194: // end original
IL_0194: Label20
IL_0194: stloc 6 (System.Boolean)
IL_0198: ldarg 0
IL_019C: ldloca 6 (System.Boolean)
IL_01A0: ldarg 4
IL_01A4: ldarg 1
IL_01A8: ldarg 2
IL_01AC: ldarg 3
IL_01B0: call static System.Void
AlienRace.HarmonyPatches::TryGetRandomUnusedSolidBioForPostfix(System.Collections.G
eneric.List`1<System.String> backstoryCategories, System.Boolean& __result,
RimWorld.PawnBio& result, Verse.PawnKindDef kind, Verse.Gender gender,
System.String requiredLastName)
IL_01B5: ldloc 6 (System.Boolean)
IL_01B9: ret
DONE

### Patch: static System.Void


RimWorld.PawnBioAndNameGenerator::FillBackstorySlotShuffled(Verse.Pawn pawn,
RimWorld.BackstorySlot slot,
System.Collections.Generic.List`1<RimWorld.BackstoryCategoryFilter>
backstoryCategories, RimWorld.FactionDef factionType,
System.Nullable`1<RimWorld.BackstorySlot> mustBeCompatibleTo)
### Replacement: static System.Void
RimWorld.PawnBioAndNameGenerator::RimWorld.PawnBioAndNameGenerator.FillBackstorySlo
tShuffled_Patch2(Verse.Pawn pawn, RimWorld.BackstorySlot slot,
System.Collections.Generic.List`1<RimWorld.BackstoryCategoryFilter>
backstoryCategories, RimWorld.FactionDef factionType,
System.Nullable`1<RimWorld.BackstorySlot> mustBeCompatibleTo)
IL_0000: Local var 0: RimWorld.PawnBioAndNameGenerator/<>c__DisplayClass14_0
IL_0000: Local var 1:
System.Collections.Generic.IEnumerable`1<RimWorld.BackstoryDef>
IL_0000: Local var 2: RimWorld.BackstoryDef
IL_0000: Local var 3: RimWorld.PawnBioAndNameGenerator/<>c__DisplayClass14_1
IL_0000: Local var 4: System.Boolean
IL_0000: ldc.i4 0
IL_0005: stloc 4 (System.Boolean)
IL_0009: ldc.i4.1
IL_000A: stloc 4 (System.Boolean)
IL_000E: ldloc 4 (System.Boolean)
IL_0012: brfalse => Label1
IL_0017: ldarg 0
IL_001B: ldarg 1
IL_001F: call static System.Boolean
VFECore.PawnBioAndNameGenerator_FillBackstorySlotShuffled::Prefix(Verse.Pawn pawn,
RimWorld.BackstorySlot slot)
IL_0024: stloc 4 (System.Boolean)
IL_0028: Label1
IL_0028: nop
IL_0029: ldloc 4 (System.Boolean)
IL_002D: brfalse => Label2
IL_0032: ldarg 0
IL_0036: ldarg 1
IL_003A: call static System.Boolean
AlienRace.HarmonyPatches::FillBackstoryInSlotShuffledPrefix(Verse.Pawn pawn,
RimWorld.BackstorySlot slot)
IL_003F: stloc 4 (System.Boolean)
IL_0043: Label2
IL_0043: nop
IL_0044: ldloc 4 (System.Boolean)
IL_0048: brfalse => Label0
IL_004D: // start original
IL_004D: newobj System.Void RimWorld.<>c__DisplayClass14_0::.ctor()
IL_0052: stloc.0
IL_0053: ldloc.0
IL_0054: ldarg.1
IL_0055: stfld RimWorld.BackstorySlot RimWorld.<>c__DisplayClass14_0::slot
IL_005A: ldloc.0
IL_005B: ldarg.s 4
IL_005D: stfld System.Nullable`1<RimWorld.BackstorySlot>
RimWorld.<>c__DisplayClass14_0::mustBeCompatibleTo
IL_0062: ldloc.0
IL_0063: ldarg.0
IL_0064: stfld Verse.Pawn RimWorld.<>c__DisplayClass14_0::pawn
IL_0069: ldloc.0
IL_006A: ldarg.2
IL_006B: ldsfld System.Func`2<RimWorld.BackstoryCategoryFilter, System.Single>
RimWorld.<>c::<>9__14_0
IL_0070: dup
IL_0071: brtrue => Label3
IL_0076: pop
IL_0077: ldsfld RimWorld.<>c RimWorld.<>c::<>9
IL_007C: ldftn System.Single
RimWorld.<>c::<FillBackstorySlotShuffled>b__14_0(RimWorld.BackstoryCategoryFilter
c)
IL_0082: newobj System.Void System.Func`2<RimWorld.BackstoryCategoryFilter,
System.Single>::.ctor(System.Object object, System.IntPtr method)
IL_0087: dup
IL_0088: stsfld System.Func`2<RimWorld.BackstoryCategoryFilter, System.Single>
RimWorld.<>c::<>9__14_0
IL_008D: Label3
IL_008D: call static RimWorld.BackstoryCategoryFilter
Verse.GenCollection::RandomElementByWeight(System.Collections.Generic.IEnumerable`1
<RimWorld.BackstoryCategoryFilter> source,
System.Func`2<RimWorld.BackstoryCategoryFilter, System.Single> weightSelector)
IL_0092: stfld RimWorld.BackstoryCategoryFilter
RimWorld.<>c__DisplayClass14_0::categoryFilter
IL_0097: ldloc.0
IL_0098: ldfld RimWorld.BackstoryCategoryFilter
RimWorld.<>c__DisplayClass14_0::categoryFilter
IL_009D: brtrue => Label4
IL_00A2: ldloc.0
IL_00A3: ldsfld RimWorld.BackstoryCategoryFilter
RimWorld.PawnBioAndNameGenerator::FallbackCategoryGroup
IL_00A8: stfld RimWorld.BackstoryCategoryFilter
RimWorld.<>c__DisplayClass14_0::categoryFilter
IL_00AD: Label4
IL_00AD: call static
System.Collections.Generic.IEnumerable`1<RimWorld.BackstoryDef>
Verse.DefDatabase`1<RimWorld.BackstoryDef>::get_AllDefs()
IL_00B2: ldarg.0
IL_00B3: ldarg.1
IL_00B4: call static System.Collections.Generic.List`1<RimWorld.BackstoryDef>
AlienRace.HarmonyPatches::FilterBackstories(System.Collections.Generic.IEnumerable`
1<RimWorld.BackstoryDef> backstories, Verse.Pawn pawn, RimWorld.BackstorySlot slot)
IL_00B9: ldarg.0
IL_00BA: ldarg.1
IL_00BB: call static System.Collections.Generic.List`1<RimWorld.BackstoryDef>
VFECore.PawnBioAndNameGenerator_FillBackstorySlotShuffled::Backstories(System.Colle
ctions.Generic.List`1<RimWorld.BackstoryDef> backstories, Verse.Pawn pawn,
RimWorld.BackstorySlot slot)
IL_00C0: ldloc.0
IL_00C1: ldftn System.Boolean
RimWorld.<>c__DisplayClass14_0::<FillBackstorySlotShuffled>b__1(RimWorld.BackstoryD
ef bs)
IL_00C7: newobj System.Void System.Func`2<RimWorld.BackstoryDef,
System.Boolean>::.ctor(System.Object object, System.IntPtr method)
IL_00CC: call static
System.Collections.Generic.IEnumerable`1<RimWorld.BackstoryDef>
System.Linq.Enumerable::Where(System.Collections.Generic.IEnumerable`1<RimWorld.Bac
kstoryDef> source, System.Func`2<RimWorld.BackstoryDef, System.Boolean> predicate)
IL_00D1: stloc.1
IL_00D2: ldsfld System.Collections.Generic.List`1<RimWorld.BackstoryDef>
RimWorld.PawnBioAndNameGenerator::tmpBackstories
IL_00D7: callvirt virtual System.Void
System.Collections.Generic.List`1<RimWorld.BackstoryDef>::Clear()
IL_00DC: ldloc.0
IL_00DD: ldflda System.Nullable`1<RimWorld.BackstorySlot>
RimWorld.<>c__DisplayClass14_0::mustBeCompatibleTo
IL_00E2: call System.Boolean
System.Nullable`1<RimWorld.BackstorySlot>::get_HasValue()
IL_00E7: brtrue => Label5
IL_00EC: ldsfld System.Collections.Generic.List`1<RimWorld.BackstoryDef>
RimWorld.PawnBioAndNameGenerator::tmpBackstories
IL_00F1: ldloc.1
IL_00F2: ldloc.0
IL_00F3: ldftn System.Boolean
RimWorld.<>c__DisplayClass14_0::<FillBackstorySlotShuffled>b__2(RimWorld.BackstoryD
ef bs)
IL_00F9: newobj System.Void System.Func`2<RimWorld.BackstoryDef,
System.Boolean>::.ctor(System.Object object, System.IntPtr method)
IL_00FE: call static
System.Collections.Generic.IEnumerable`1<RimWorld.BackstoryDef>
System.Linq.Enumerable::Where(System.Collections.Generic.IEnumerable`1<RimWorld.Bac
kstoryDef> source, System.Func`2<RimWorld.BackstoryDef, System.Boolean> predicate)
IL_0103: callvirt System.Void
System.Collections.Generic.List`1<RimWorld.BackstoryDef>::AddRange(System.Collectio
ns.Generic.IEnumerable`1<RimWorld.BackstoryDef> collection)
IL_0108: br => Label6
IL_010D: Label5
IL_010D: newobj System.Void RimWorld.<>c__DisplayClass14_1::.ctor()
IL_0112: stloc.3
IL_0113: ldloc.3
IL_0114: ldloc.0
IL_0115: stfld RimWorld.<>c__DisplayClass14_0
RimWorld.<>c__DisplayClass14_1::CS$<>8__locals1
IL_011A: ldloc.3
IL_011B: ldloc.1
IL_011C: ldloc.3
IL_011D: ldfld RimWorld.<>c__DisplayClass14_0
RimWorld.<>c__DisplayClass14_1::CS$<>8__locals1
IL_0122: ldftn System.Boolean
RimWorld.<>c__DisplayClass14_0::<FillBackstorySlotShuffled>b__5(RimWorld.BackstoryD
ef bs)
IL_0128: newobj System.Void System.Func`2<RimWorld.BackstoryDef,
System.Boolean>::.ctor(System.Object object, System.IntPtr method)
IL_012D: call static
System.Collections.Generic.IEnumerable`1<RimWorld.BackstoryDef>
System.Linq.Enumerable::Where(System.Collections.Generic.IEnumerable`1<RimWorld.Bac
kstoryDef> source, System.Func`2<RimWorld.BackstoryDef, System.Boolean> predicate)
IL_0132: stfld System.Collections.Generic.IEnumerable`1<RimWorld.BackstoryDef>
RimWorld.<>c__DisplayClass14_1::compatibleBackstories
IL_0137: ldsfld System.Collections.Generic.List`1<RimWorld.BackstoryDef>
RimWorld.PawnBioAndNameGenerator::tmpBackstories
IL_013C: ldloc.1
IL_013D: ldloc.3
IL_013E: ldftn System.Boolean
RimWorld.<>c__DisplayClass14_1::<FillBackstorySlotShuffled>b__6(RimWorld.BackstoryD
ef bs)
IL_0144: newobj System.Void System.Func`2<RimWorld.BackstoryDef,
System.Boolean>::.ctor(System.Object object, System.IntPtr method)
IL_0149: call static
System.Collections.Generic.IEnumerable`1<RimWorld.BackstoryDef>
System.Linq.Enumerable::Where(System.Collections.Generic.IEnumerable`1<RimWorld.Bac
kstoryDef> source, System.Func`2<RimWorld.BackstoryDef, System.Boolean> predicate)
IL_014E: callvirt System.Void
System.Collections.Generic.List`1<RimWorld.BackstoryDef>::AddRange(System.Collectio
ns.Generic.IEnumerable`1<RimWorld.BackstoryDef> collection)
IL_0153: Label6
IL_0153: ldsfld System.Collections.Generic.List`1<RimWorld.BackstoryDef>
RimWorld.PawnBioAndNameGenerator::tmpBackstories
IL_0158: ldc.i4.s 20
IL_015A: call static
System.Collections.Generic.IEnumerable`1<RimWorld.BackstoryDef>
Verse.GenCollection::TakeRandom(System.Collections.Generic.List`1<RimWorld.Backstor
yDef> list, System.Int32 count)
IL_015F: ldloc.0
IL_0160: ldftn System.Boolean
RimWorld.<>c__DisplayClass14_0::<FillBackstorySlotShuffled>b__3(RimWorld.BackstoryD
ef bs)
IL_0166: newobj System.Void System.Func`2<RimWorld.BackstoryDef,
System.Boolean>::.ctor(System.Object object, System.IntPtr method)
IL_016B: call static
System.Collections.Generic.IEnumerable`1<RimWorld.BackstoryDef>
System.Linq.Enumerable::Where(System.Collections.Generic.IEnumerable`1<RimWorld.Bac
kstoryDef> source, System.Func`2<RimWorld.BackstoryDef, System.Boolean> predicate)
IL_0170: ldnull
IL_0171: ldftn static System.Single
RimWorld.PawnBioAndNameGenerator::BackstorySelectionWeight(RimWorld.BackstoryDef
bs)
IL_0177: newobj System.Void System.Func`2<RimWorld.BackstoryDef,
System.Single>::.ctor(System.Object object, System.IntPtr method)
IL_017C: ldloca.s 2 (RimWorld.BackstoryDef)
IL_017E: call static System.Boolean
Verse.GenCollection::TryRandomElementByWeight(System.Collections.Generic.IEnumerabl
e`1<RimWorld.BackstoryDef> source, System.Func`2<RimWorld.BackstoryDef,
System.Single> weightSelector, RimWorld.BackstoryDef& result)
IL_0183: brtrue => Label7
IL_0188: ldc.i4.7
IL_0189: newarr System.Object
IL_018E: dup
IL_018F: ldc.i4.0
IL_0190: ldstr "No shuffled "
IL_0195: stelem.ref
IL_0196: dup
IL_0197: ldc.i4.1
IL_0198: ldloc.0
IL_0199: ldfld RimWorld.BackstorySlot RimWorld.<>c__DisplayClass14_0::slot
IL_019E: box RimWorld.BackstorySlot
IL_01A3: stelem.ref
IL_01A4: dup
IL_01A5: ldc.i4.2
IL_01A6: ldstr " found for "
IL_01AB: stelem.ref
IL_01AC: dup
IL_01AD: ldc.i4.3
IL_01AE: ldloc.0
IL_01AF: ldfld Verse.Pawn RimWorld.<>c__DisplayClass14_0::pawn
IL_01B4: call static System.String Verse.Gen::ToStringSafe(Verse.Pawn obj)
IL_01B9: stelem.ref
IL_01BA: dup
IL_01BB: ldc.i4.4
IL_01BC: ldstr " of "
IL_01C1: stelem.ref
IL_01C2: dup
IL_01C3: ldc.i4.5
IL_01C4: ldarg.3
IL_01C5: call static System.String
Verse.Gen::ToStringSafe(RimWorld.FactionDef obj)
IL_01CA: stelem.ref
IL_01CB: dup
IL_01CC: ldc.i4.6
IL_01CD: ldstr ". Choosing random."
IL_01D2: stelem.ref
IL_01D3: call static System.String System.String::Concat(System.Object[]
args)
IL_01D8: call static System.Void Verse.Log::Error(System.String text)
IL_01DD: call static
System.Collections.Generic.IEnumerable`1<RimWorld.BackstoryDef>
Verse.DefDatabase`1<RimWorld.BackstoryDef>::get_AllDefs()
IL_01E2: ldloc.0
IL_01E3: ldftn System.Boolean
RimWorld.<>c__DisplayClass14_0::<FillBackstorySlotShuffled>b__4(RimWorld.BackstoryD
ef bs)
IL_01E9: newobj System.Void System.Func`2<RimWorld.BackstoryDef,
System.Boolean>::.ctor(System.Object object, System.IntPtr method)
IL_01EE: call static
System.Collections.Generic.IEnumerable`1<RimWorld.BackstoryDef>
System.Linq.Enumerable::Where(System.Collections.Generic.IEnumerable`1<RimWorld.Bac
kstoryDef> source, System.Func`2<RimWorld.BackstoryDef, System.Boolean> predicate)
IL_01F3: call static RimWorld.BackstoryDef
Verse.GenCollection::RandomElement(System.Collections.Generic.IEnumerable`1<RimWorl
d.BackstoryDef> source)
IL_01F8: stloc.2
IL_01F9: Label7
IL_01F9: ldloc.0
IL_01FA: ldfld RimWorld.BackstorySlot RimWorld.<>c__DisplayClass14_0::slot
IL_01FF: ldc.i4.1
IL_0200: bne.un => Label8
IL_0205: ldloc.0
IL_0206: ldfld Verse.Pawn RimWorld.<>c__DisplayClass14_0::pawn
IL_020B: ldfld RimWorld.Pawn_StoryTracker Verse.Pawn::story
IL_0210: ldloc.2
IL_0211: callvirt System.Void
RimWorld.Pawn_StoryTracker::set_Adulthood(RimWorld.BackstoryDef value)
IL_0216: br => Label9
IL_021B: Label8
IL_021B: ldloc.0
IL_021C: ldfld Verse.Pawn RimWorld.<>c__DisplayClass14_0::pawn
IL_0221: ldfld RimWorld.Pawn_StoryTracker Verse.Pawn::story
IL_0226: ldloc.2
IL_0227: callvirt System.Void
RimWorld.Pawn_StoryTracker::set_Childhood(RimWorld.BackstoryDef value)
IL_022C: Label9
IL_022C: ldsfld System.Collections.Generic.List`1<RimWorld.BackstoryDef>
RimWorld.PawnBioAndNameGenerator::tmpBackstories
IL_0231: callvirt virtual System.Void
System.Collections.Generic.List`1<RimWorld.BackstoryDef>::Clear()
IL_0236: // end original
IL_0236: Label0
IL_0236: ret
DONE

### Patch: virtual System.Boolean


RimWorld.WorkGiver_Researcher::ShouldSkip(Verse.Pawn pawn, System.Boolean forced)
### Replacement: static System.Boolean
RimWorld.WorkGiver_Researcher::RimWorld.WorkGiver_Researcher.ShouldSkip_Patch2(RimW
orld.WorkGiver_Researcher this, Verse.Pawn pawn, System.Boolean forced)
IL_0000: Local var 0: System.Boolean
IL_0000: Local var 1: System.Boolean
IL_0000: ldc.i4 0
IL_0005: stloc 0 (System.Boolean)
IL_0009: ldc.i4 0
IL_000E: stloc 1 (System.Boolean)
IL_0012: ldc.i4.1
IL_0013: stloc 1 (System.Boolean)
IL_0017: ldloc 1 (System.Boolean)
IL_001B: brfalse => Label1
IL_0020: ldloca 0 (System.Boolean)
IL_0024: call static System.Boolean
PeteTimesSix.ResearchReinvented.HarmonyPatches.WorkGiver_Researcher_Patches::Prefix
(System.Boolean& __result)
IL_0029: stloc 1 (System.Boolean)
IL_002D: Label1
IL_002D: nop
IL_002E: ldloc 1 (System.Boolean)
IL_0032: brfalse => Label0
IL_0037: // start original
IL_0037: call static RimWorld.ResearchManager
Verse.Find::get_ResearchManager()
IL_003C: ldfld Verse.ResearchProjectDef RimWorld.ResearchManager::currentProj
IL_0041: brtrue => Label2
IL_0046: ldc.i4.1
IL_0047: br => Label3
IL_004C: Label2
IL_004C: ldc.i4.0
IL_004D: // end original
IL_004D: Label3
IL_004D: stloc 0 (System.Boolean)
IL_0051: Label0
IL_0051: ldarg 1
IL_0055: ldloca 0 (System.Boolean)
IL_0059: call static System.Void
AlienRace.HarmonyPatches::ShouldSkipResearchPostfix(Verse.Pawn pawn,
System.Boolean& __result)
IL_005E: ldloc 0 (System.Boolean)
IL_0062: ret
DONE

### Patch: UnityEngine.Vector2


RimWorld.MainTabWindow_Research::ViewSize(RimWorld.ResearchTabDef tab)
### Replacement: static UnityEngine.Vector2
RimWorld.MainTabWindow_Research::RimWorld.MainTabWindow_Research.ViewSize_Patch0(Ri
mWorld.MainTabWindow_Research this, RimWorld.ResearchTabDef tab)
IL_0000: Local var 0: System.Collections.Generic.List`1<Verse.ResearchProjectDef>
IL_0000: Local var 1: System.Single
IL_0000: Local var 2: System.Single
IL_0000: Local var 3: System.Int32
IL_0000: Local var 4: Verse.ResearchProjectDef
IL_0000: Local var 5: UnityEngine.Rect
IL_0000: // start original
IL_0000: ldarg.0
IL_0001: call System.Collections.Generic.List`1<Verse.ResearchProjectDef>
RimWorld.MainTabWindow_Research::get_VisibleResearchProjects()
IL_0006: stloc.0
IL_0007: ldc.r4 0
IL_000C: stloc.1
IL_000D: ldc.r4 0
IL_0012: stloc.2
IL_0013: ldc.i4.1
IL_0014: call static System.Void Verse.Text::set_Font(Verse.GameFont value)
IL_0019: ldc.i4.0
IL_001A: stloc.3
IL_001B: br => Label0
IL_0020: Label2
IL_0020: ldloc.0
IL_0021: ldloc.3
IL_0022: callvirt virtual Verse.ResearchProjectDef
System.Collections.Generic.List`1<Verse.ResearchProjectDef>::get_Item(System.Int32
index)
IL_0027: stloc.s 4 (Verse.ResearchProjectDef)
IL_0029: ldloc.s 4 (Verse.ResearchProjectDef)
IL_002B: ldfld RimWorld.ResearchTabDef Verse.ResearchProjectDef::tab
IL_0030: ldarg.1
IL_0031: bne.un => Label1
IL_0036: ldloca.s 5 (UnityEngine.Rect)
IL_0038: ldc.r4 0
IL_003D: ldc.r4 0
IL_0042: ldc.r4 140
IL_0047: ldc.r4 0
IL_004C: call System.Void UnityEngine.Rect::.ctor(System.Single x,
System.Single y, System.Single width, System.Single height)
IL_0051: ldloca.s 5 (UnityEngine.Rect)
IL_0053: ldarg.0
IL_0054: ldarg.0
IL_0055: ldloc.s 4 (Verse.ResearchProjectDef)
IL_0057: call System.String
RimWorld.MainTabWindow_Research::GetLabel(Verse.ResearchProjectDef r)
IL_005C: call System.String
RimWorld.MainTabWindow_Research::GetLabelWithNewlineCached(System.String label)
IL_0061: ldc.i4.0
IL_0062: ldc.i4.0
IL_0063: call static System.Void
Verse.Widgets::LabelCacheHeight(UnityEngine.Rect& rect, System.String label,
System.Boolean renderLabel, System.Boolean forceInvalidation)
IL_0068: ldloc.1
IL_0069: ldarg.0
IL_006A: ldloc.s 4 (Verse.ResearchProjectDef)
IL_006C: call System.Single
RimWorld.MainTabWindow_Research::PosX(Verse.ResearchProjectDef d)
IL_0071: ldc.r4 140
IL_0076: add
IL_0077: call static System.Single UnityEngine.Mathf::Max(System.Single a,
System.Single b)
IL_007C: stloc.1
IL_007D: ldloc.2
IL_007E: ldarg.0
IL_007F: ldloc.s 4 (Verse.ResearchProjectDef)
IL_0081: call System.Single
RimWorld.MainTabWindow_Research::PosY(Verse.ResearchProjectDef d)
IL_0086: ldloca.s 5 (UnityEngine.Rect)
IL_0088: call System.Single UnityEngine.Rect::get_height()
IL_008D: add
IL_008E: call static System.Single UnityEngine.Mathf::Max(System.Single a,
System.Single b)
IL_0093: stloc.2
IL_0094: Label1
IL_0094: ldloc.3
IL_0095: ldc.i4.1
IL_0096: add
IL_0097: stloc.3
IL_0098: Label0
IL_0098: ldloc.3
IL_0099: ldloc.0
IL_009A: callvirt virtual System.Int32
System.Collections.Generic.List`1<Verse.ResearchProjectDef>::get_Count()
IL_009F: blt => Label2
IL_00A4: ldloc.1
IL_00A5: ldc.r4 20
IL_00AA: add
IL_00AB: ldc.r4 12
IL_00B0: add
IL_00B1: ldloc.2
IL_00B2: ldc.r4 20
IL_00B7: add
IL_00B8: ldc.r4 12
IL_00BD: add
IL_00BE: newobj System.Void UnityEngine.Vector2::.ctor(System.Single x,
System.Single y)
IL_00C3: // end original
IL_00C3: ret
DONE

### Patch: System.Void


RimWorld.MainTabWindow_Research::DrawRightRect(UnityEngine.Rect rightOutRect)
### Replacement: static System.Void
RimWorld.MainTabWindow_Research::RimWorld.MainTabWindow_Research.DrawRightRect_Patc
h0(RimWorld.MainTabWindow_Research this, UnityEngine.Rect rightOutRect)
IL_0000: Local var 0: System.Boolean
IL_0000: Local var 1: UnityEngine.Rect
IL_0000: Local var 2: UnityEngine.Rect
IL_0000: Local var 3: UnityEngine.Vector2
IL_0000: Local var 4: UnityEngine.Vector2
IL_0000: Local var 5: UnityEngine.Rect
IL_0000: Local var 6: System.Text.StringBuilder
IL_0000: Local var 7:
System.Collections.Generic.IEnumerator`1<Verse.ResearchProjectDef>
IL_0000: Local var 8: Verse.ResearchProjectDef
IL_0000: Local var 9: System.Single
IL_0000: Local var 10: System.Collections.Generic.List`1<Verse.ResearchProjectDef>
IL_0000: Local var 11: UnityEngine.Rect
IL_0000: Local var 12: System.Int32
IL_0000: Local var 13: System.Int32
IL_0000: Local var 14: Verse.ResearchProjectDef
IL_0000: Local var 15: System.Int32
IL_0000: Local var 16: Verse.ResearchProjectDef
IL_0000: Local var 17: System.Int32
IL_0000: Local var 18: Verse.ResearchProjectDef
IL_0000: Local var 19: UnityEngine.Rect
IL_0000: Local var 20: UnityEngine.Rect
IL_0000: Local var 21: System.Boolean
IL_0000: Local var 22: System.Boolean
IL_0000: Local var 23: System.String
IL_0000: Local var 24: UnityEngine.Color
IL_0000: Local var 25: UnityEngine.Color
IL_0000: Local var 26: UnityEngine.Color
IL_0000: Local var 27: System.Boolean
IL_0000: Local var 28: UnityEngine.Color
IL_0000: Local var 29: UnityEngine.Color
IL_0000: Local var 30: UnityEngine.Rect
IL_0000: Local var 31: UnityEngine.Rect
IL_0000: Local var 32: UnityEngine.Color
IL_0000: Local var 33: System.Single
IL_0000: Local var 34: System.Int32
IL_0000: Local var 35: Verse.ResearchProjectDef
IL_0000: Local var 36: System.Nullable`1<UnityEngine.Color>
IL_0000: Local var 37: System.String
IL_0000: Local var 38: UnityEngine.Vector2
IL_0000: Local var 39: System.String
IL_0000: Local var 40: UnityEngine.Vector2
IL_0000: Local var 41: System.Int32
IL_0000: Local var 42: System.Int32
IL_0000: // start original
IL_0000: ldarga.s 1
IL_0002: dup
IL_0003: call System.Single UnityEngine.Rect::get_yMin()
IL_0008: ldc.r4 32
IL_000D: add
IL_000E: call System.Void UnityEngine.Rect::set_yMin(System.Single value)
IL_0013: ldarg.1
IL_0014: call static System.Void
Verse.Widgets::DrawMenuSection(UnityEngine.Rect rect)
IL_0019: ldarg.1
IL_001A: ldarg.0
IL_001B: ldfld System.Collections.Generic.List`1<RimWorld.ResearchTabRecord>
RimWorld.MainTabWindow_Research::tabs
IL_0020: ldc.r4 200
IL_0025: call static RimWorld.ResearchTabRecord
Verse.TabDrawer::DrawTabs(UnityEngine.Rect baseRect,
System.Collections.Generic.List`1<RimWorld.ResearchTabRecord> tabs, System.Single
maxTabWidth)
IL_002A: pop
IL_002B: call static System.Boolean Verse.Prefs::get_DevMode()
IL_0030: brfalse => Label0
IL_0035: ldarg.1
IL_0036: stloc.s 5 (UnityEngine.Rect)
IL_0038: ldloca.s 5 (UnityEngine.Rect)
IL_003A: ldloca.s 5 (UnityEngine.Rect)
IL_003C: call System.Single UnityEngine.Rect::get_yMin()
IL_0041: ldc.r4 20
IL_0046: add
IL_0047: call System.Void UnityEngine.Rect::set_yMax(System.Single value)
IL_004C: ldloca.s 5 (UnityEngine.Rect)
IL_004E: ldloca.s 5 (UnityEngine.Rect)
IL_0050: call System.Single UnityEngine.Rect::get_xMax()
IL_0055: ldc.r4 80
IL_005A: sub
IL_005B: call System.Void UnityEngine.Rect::set_xMin(System.Single value)
IL_0060: ldloc.s 5 (UnityEngine.Rect)
IL_0062: ldc.r4 30
IL_0067: call static UnityEngine.Rect
Verse.GenUI::RightPartPixels(UnityEngine.Rect rect, System.Single width)
IL_006C: ldloc.s 5 (UnityEngine.Rect)
IL_006E: ldloca.s 5 (UnityEngine.Rect)
IL_0070: call System.Single UnityEngine.Rect::get_width()
IL_0075: ldc.r4 30
IL_007A: sub
IL_007B: call static UnityEngine.Rect
Verse.GenUI::LeftPartPixels(UnityEngine.Rect rect, System.Single width)
IL_0080: stloc.s 5 (UnityEngine.Rect)
IL_0082: ldloc.s 5 (UnityEngine.Rect)
IL_0084: ldstr "Edit"
IL_0089: ldarg.0
IL_008A: ldflda System.Boolean RimWorld.MainTabWindow_Research::editMode
IL_008F: ldc.i4.0
IL_0090: ldnull
IL_0091: ldnull
IL_0092: ldc.i4.0
IL_0093: call static System.Void
Verse.Widgets::CheckboxLabeled(UnityEngine.Rect rect, System.String label,
System.Boolean& checkOn, System.Boolean disabled, UnityEngine.Texture2D texChecked,
UnityEngine.Texture2D texUnchecked, System.Boolean placeCheckboxNearText)
IL_0098: ldsfld UnityEngine.Texture2D Verse.TexButton::Copy
IL_009D: call static System.Boolean
Verse.Widgets::ButtonImageFitted(UnityEngine.Rect butRect, UnityEngine.Texture2D
tex)
IL_00A2: brfalse => Label1
IL_00A7: newobj System.Void System.Text.StringBuilder::.ctor()
IL_00AC: stloc.s 6 (System.Text.StringBuilder)
IL_00AE: ldarg.0
IL_00AF: call System.Collections.Generic.List`1<Verse.ResearchProjectDef>
RimWorld.MainTabWindow_Research::get_VisibleResearchProjects()
IL_00B4: ldsfld System.Func`2<Verse.ResearchProjectDef, System.Boolean>
RimWorld.<>c::<>9__78_0
IL_00B9: dup
IL_00BA: brtrue => Label2
IL_00BF: pop
IL_00C0: ldsfld RimWorld.<>c RimWorld.<>c::<>9
IL_00C5: ldftn System.Boolean
RimWorld.<>c::<DrawRightRect>b__78_0(Verse.ResearchProjectDef def)
IL_00CB: newobj System.Void System.Func`2<Verse.ResearchProjectDef,
System.Boolean>::.ctor(System.Object object, System.IntPtr method)
IL_00D0: dup
IL_00D1: stsfld System.Func`2<Verse.ResearchProjectDef, System.Boolean>
RimWorld.<>c::<>9__78_0
IL_00D6: Label2
IL_00D6: call static
System.Collections.Generic.IEnumerable`1<Verse.ResearchProjectDef>
System.Linq.Enumerable::Where(System.Collections.Generic.IEnumerable`1<Verse.Resear
chProjectDef> source, System.Func`2<Verse.ResearchProjectDef, System.Boolean>
predicate)
IL_00DB: callvirt abstract virtual
System.Collections.Generic.IEnumerator`1<Verse.ResearchProjectDef>
System.Collections.Generic.IEnumerable`1<Verse.ResearchProjectDef>::GetEnumerator()
IL_00E0: stloc.s 7
(System.Collections.Generic.IEnumerator`1[Verse.ResearchProjectDef])
.try
{
IL_00E2: br => Label3
IL_00E7: Label4
IL_00E7: ldloc.s 7
(System.Collections.Generic.IEnumerator`1[Verse.ResearchProjectDef])
IL_00E9: callvirt abstract virtual Verse.ResearchProjectDef
System.Collections.Generic.IEnumerator`1<Verse.ResearchProjectDef>::get_Current()
IL_00EE: stloc.s 8 (Verse.ResearchProjectDef)
IL_00F0: ldloc.s 6 (System.Text.StringBuilder)
IL_00F2: ldloc.s 8 (Verse.ResearchProjectDef)
IL_00F4: ldfld System.String Verse.Def::defName
IL_00F9: callvirt System.Text.StringBuilder
System.Text.StringBuilder::AppendLine(System.String value)
IL_00FE: pop
IL_00FF: ldloc.s 6 (System.Text.StringBuilder)
IL_0101: ldstr " <researchViewX>{0}</researchViewX>"
IL_0106: ldloc.s 8 (Verse.ResearchProjectDef)
IL_0108: callvirt System.Single
Verse.ResearchProjectDef::get_ResearchViewX()
IL_010D: stloc.s 9 (System.Single)
IL_010F: ldloca.s 9 (System.Single)
IL_0111: ldstr "F2"
IL_0116: call System.String System.Single::ToString(System.String
format)
IL_011B: call static System.String System.String::Format(System.String
format, System.Object arg0)
IL_0120: callvirt System.Text.StringBuilder
System.Text.StringBuilder::AppendLine(System.String value)
IL_0125: pop
IL_0126: ldloc.s 6 (System.Text.StringBuilder)
IL_0128: ldstr " <researchViewY>{0}</researchViewY>"
IL_012D: ldloc.s 8 (Verse.ResearchProjectDef)
IL_012F: callvirt System.Single
Verse.ResearchProjectDef::get_ResearchViewY()
IL_0134: stloc.s 9 (System.Single)
IL_0136: ldloca.s 9 (System.Single)
IL_0138: ldstr "F2"
IL_013D: call System.String System.Single::ToString(System.String
format)
IL_0142: call static System.String System.String::Format(System.String
format, System.Object arg0)
IL_0147: callvirt System.Text.StringBuilder
System.Text.StringBuilder::AppendLine(System.String value)
IL_014C: pop
IL_014D: ldloc.s 6 (System.Text.StringBuilder)
IL_014F: callvirt System.Text.StringBuilder
System.Text.StringBuilder::AppendLine()
IL_0154: pop
IL_0155: Label3
IL_0155: ldloc.s 7
(System.Collections.Generic.IEnumerator`1[Verse.ResearchProjectDef])
IL_0157: callvirt abstract virtual System.Boolean
System.Collections.IEnumerator::MoveNext()
IL_015C: brtrue => Label4
IL_0161: leave => Label5
IL_0166: leave => (autogenerated)
} // end try
.finally
{
IL_016B: ldloc.s 7
(System.Collections.Generic.IEnumerator`1[Verse.ResearchProjectDef])
IL_016D: brfalse => Label6
IL_0172: ldloc.s 7
(System.Collections.Generic.IEnumerator`1[Verse.ResearchProjectDef])
IL_0174: callvirt abstract virtual System.Void
System.IDisposable::Dispose()
IL_0179: Label6
IL_0179: endfinally
IL_017A: leave => (autogenerated)
} // end handler
IL_017B: Label5
IL_017B: ldloc.s 6 (System.Text.StringBuilder)
IL_017D: callvirt virtual System.String System.Object::ToString()
IL_0182: call static System.Void
UnityEngine.GUIUtility::set_systemCopyBuffer(System.String value)
IL_0187: ldstr "Modified data copied to clipboard."
IL_018C: ldsfld Verse.MessageTypeDef
RimWorld.MessageTypeDefOf::SituationResolved
IL_0191: ldc.i4.0
IL_0192: call static System.Void Verse.Messages::Message(System.String text,
Verse.MessageTypeDef def, System.Boolean historical)
IL_0197: br => Label7
IL_019C: Label0
IL_019C: ldarg.0
IL_019D: ldc.i4.0
IL_019E: stfld System.Boolean RimWorld.MainTabWindow_Research::editMode
IL_01A3: Label1
IL_01A3: Label7
IL_01A3: ldc.i4.0
IL_01A4: stloc.0
IL_01A5: ldarg.1
IL_01A6: ldc.r4 10
IL_01AB: call static UnityEngine.Rect
Verse.GenUI::ContractedBy(UnityEngine.Rect rect, System.Single margin)
IL_01B0: stloc.1
IL_01B1: ldloca.s 2 (UnityEngine.Rect)
IL_01B3: ldc.r4 0
IL_01B8: ldc.r4 0
IL_01BD: ldarg.0
IL_01BE: ldfld System.Single RimWorld.MainTabWindow_Research::rightViewWidth
IL_01C3: ldarg.0
IL_01C4: ldfld System.Single RimWorld.MainTabWindow_Research::rightViewHeight
IL_01C9: call System.Void UnityEngine.Rect::.ctor(System.Single x,
System.Single y, System.Single width, System.Single height)
IL_01CE: ldloc.2
IL_01CF: ldc.r4 10
IL_01D4: call static UnityEngine.Rect
Verse.GenUI::ContractedBy(UnityEngine.Rect rect, System.Single margin)
IL_01D9: pop
IL_01DA: ldloca.s 2 (UnityEngine.Rect)
IL_01DC: ldarg.0
IL_01DD: ldfld System.Single RimWorld.MainTabWindow_Research::rightViewWidth
IL_01E2: call System.Void UnityEngine.Rect::set_width(System.Single value)
IL_01E7: ldloc.2
IL_01E8: ldc.r4 10
IL_01ED: call static UnityEngine.Rect
Verse.GenUI::ContractedBy(UnityEngine.Rect rect, System.Single margin)
IL_01F2: ldloca.s 3 (UnityEngine.Vector2)
IL_01F4: initobj UnityEngine.Vector2
IL_01FA: ldloca.s 4 (UnityEngine.Vector2)
IL_01FC: initobj UnityEngine.Vector2
IL_0202: ldarg.0
IL_0203: ldfld Verse.ScrollPositioner
RimWorld.MainTabWindow_Research::scrollPositioner
IL_0208: callvirt System.Void Verse.ScrollPositioner::ClearInterestRects()
IL_020D: ldloc.1
IL_020E: ldarg.0
IL_020F: ldflda UnityEngine.Vector2
RimWorld.MainTabWindow_Research::rightScrollPosition
IL_0214: ldloc.2
IL_0215: ldc.r4 20
IL_021A: call static System.Void
Verse.Widgets::ScrollHorizontal(UnityEngine.Rect outRect, UnityEngine.Vector2&
scrollPosition, UnityEngine.Rect viewRect, System.Single ScrollWheelSpeed)
IL_021F: ldloc.1
IL_0220: ldarg.0
IL_0221: ldflda UnityEngine.Vector2
RimWorld.MainTabWindow_Research::rightScrollPosition
IL_0226: ldloc.2
IL_0227: ldc.i4.1
IL_0228: call static System.Void
Verse.Widgets::BeginScrollView(UnityEngine.Rect outRect, UnityEngine.Vector2&
scrollPosition, UnityEngine.Rect viewRect, System.Boolean showScrollbars)
IL_022D: call static System.Void Verse.Widgets::BeginGroup(UnityEngine.Rect
rect)
IL_0232: ldarg.0
IL_0233: call System.Collections.Generic.List`1<Verse.ResearchProjectDef>
RimWorld.MainTabWindow_Research::get_VisibleResearchProjects()
IL_0238: stloc.s 10
(System.Collections.Generic.List`1[Verse.ResearchProjectDef])
IL_023A: ldc.i4.0
IL_023B: stloc.s 12 (System.Int32)
IL_023D: br => Label8
IL_0242: Label21
IL_0242: ldc.i4.0
IL_0243: stloc.s 13 (System.Int32)
IL_0245: br => Label9
IL_024A: Label20
IL_024A: ldloc.s 10
(System.Collections.Generic.List`1[Verse.ResearchProjectDef])
IL_024C: ldloc.s 13 (System.Int32)
IL_024E: callvirt virtual Verse.ResearchProjectDef
System.Collections.Generic.List`1<Verse.ResearchProjectDef>::get_Item(System.Int32
index)
IL_0253: stloc.s 14 (Verse.ResearchProjectDef)
IL_0255: ldloc.s 14 (Verse.ResearchProjectDef)
IL_0257: ldfld RimWorld.ResearchTabDef Verse.ResearchProjectDef::tab
IL_025C: ldarg.0
IL_025D: call RimWorld.ResearchTabDef
RimWorld.MainTabWindow_Research::get_CurTab()
IL_0262: bne.un => Label10
IL_0267: ldloca.s 3 (UnityEngine.Vector2)
IL_0269: ldarg.0
IL_026A: ldloc.s 14 (Verse.ResearchProjectDef)
IL_026C: call System.Single
RimWorld.MainTabWindow_Research::PosX(Verse.ResearchProjectDef d)
IL_0271: stfld System.Single UnityEngine.Vector2::x
IL_0276: ldloca.s 3 (UnityEngine.Vector2)
IL_0278: ldarg.0
IL_0279: ldloc.s 14 (Verse.ResearchProjectDef)
IL_027B: call System.Single
RimWorld.MainTabWindow_Research::PosY(Verse.ResearchProjectDef d)
IL_0280: ldc.r4 25
IL_0285: add
IL_0286: stfld System.Single UnityEngine.Vector2::y
IL_028B: ldc.i4.0
IL_028C: stloc.s 15 (System.Int32)
IL_028E: br => Label11
IL_0293: Label19
IL_0293: ldloc.s 14 (Verse.ResearchProjectDef)
IL_0295: ldfld System.Collections.Generic.List`1<Verse.ResearchProjectDef>
Verse.ResearchProjectDef::prerequisites
IL_029A: ldloc.s 15 (System.Int32)
IL_029C: callvirt virtual Verse.ResearchProjectDef
System.Collections.Generic.List`1<Verse.ResearchProjectDef>::get_Item(System.Int32
index)
IL_02A1: stloc.s 16 (Verse.ResearchProjectDef)
IL_02A3: ldloc.s 16 (Verse.ResearchProjectDef)
IL_02A5: brfalse => Label12
IL_02AA: ldloc.s 16 (Verse.ResearchProjectDef)
IL_02AC: ldfld RimWorld.ResearchTabDef Verse.ResearchProjectDef::tab
IL_02B1: ldarg.0
IL_02B2: call RimWorld.ResearchTabDef
RimWorld.MainTabWindow_Research::get_CurTab()
IL_02B7: bne.un => Label13
IL_02BC: ldloca.s 4 (UnityEngine.Vector2)
IL_02BE: ldarg.0
IL_02BF: ldloc.s 16 (Verse.ResearchProjectDef)
IL_02C1: call System.Single
RimWorld.MainTabWindow_Research::PosX(Verse.ResearchProjectDef d)
IL_02C6: ldc.r4 140
IL_02CB: add
IL_02CC: stfld System.Single UnityEngine.Vector2::x
IL_02D1: ldloca.s 4 (UnityEngine.Vector2)
IL_02D3: ldarg.0
IL_02D4: ldloc.s 16 (Verse.ResearchProjectDef)
IL_02D6: call System.Single
RimWorld.MainTabWindow_Research::PosY(Verse.ResearchProjectDef d)
IL_02DB: ldc.r4 25
IL_02E0: add
IL_02E1: stfld System.Single UnityEngine.Vector2::y
IL_02E6: ldarg.0
IL_02E7: ldfld Verse.ResearchProjectDef
RimWorld.MainTabWindow_Research::selectedProject
IL_02EC: ldloc.s 14 (Verse.ResearchProjectDef)
IL_02EE: beq => Label14
IL_02F3: ldarg.0
IL_02F4: ldfld Verse.ResearchProjectDef
RimWorld.MainTabWindow_Research::selectedProject
IL_02F9: ldloc.s 16 (Verse.ResearchProjectDef)
IL_02FB: bne.un => Label15
IL_0300: Label14
IL_0300: ldloc.s 12 (System.Int32)
IL_0302: ldc.i4.1
IL_0303: bne.un => Label16
IL_0308: ldloc.3
IL_0309: ldloc.s 4 (UnityEngine.Vector2)
IL_030B: ldsfld UnityEngine.Color Verse.TexUI::HighlightLineResearchColor
IL_0310: ldc.r4 4
IL_0315: call static System.Void Verse.Widgets::DrawLine(UnityEngine.Vector2
start, UnityEngine.Vector2 end, UnityEngine.Color color, System.Single width)
IL_031A: br => Label17
IL_031F: Label15
IL_031F: ldloc.s 12 (System.Int32)
IL_0321: brtrue => Label18
IL_0326: ldloc.3
IL_0327: ldloc.s 4 (UnityEngine.Vector2)
IL_0329: ldsfld UnityEngine.Color Verse.TexUI::DefaultLineResearchColor
IL_032E: ldc.r4 2
IL_0333: call static System.Void Verse.Widgets::DrawLine(UnityEngine.Vector2
start, UnityEngine.Vector2 end, UnityEngine.Color color, System.Single width)
IL_0338: Label12
IL_0338: Label13
IL_0338: Label16
IL_0338: Label17
IL_0338: Label18
IL_0338: ldloc.s 15 (System.Int32)
IL_033A: ldc.i4.1
IL_033B: add
IL_033C: stloc.s 15 (System.Int32)
IL_033E: Label11
IL_033E: ldloc.s 15 (System.Int32)
IL_0340: ldloc.s 14 (Verse.ResearchProjectDef)
IL_0342: ldfld System.Collections.Generic.List`1<Verse.ResearchProjectDef>
Verse.ResearchProjectDef::prerequisites
IL_0347: call static System.Int32
Verse.GenList::CountAllowNull(System.Collections.Generic.IList`1<Verse.ResearchProj
ectDef> list)
IL_034C: blt => Label19
IL_0351: Label10
IL_0351: ldloc.s 13 (System.Int32)
IL_0353: ldc.i4.1
IL_0354: add
IL_0355: stloc.s 13 (System.Int32)
IL_0357: Label9
IL_0357: ldloc.s 13 (System.Int32)
IL_0359: ldloc.s 10
(System.Collections.Generic.List`1[Verse.ResearchProjectDef])
IL_035B: callvirt virtual System.Int32
System.Collections.Generic.List`1<Verse.ResearchProjectDef>::get_Count()
IL_0360: blt => Label20
IL_0365: ldloc.s 12 (System.Int32)
IL_0367: ldc.i4.1
IL_0368: add
IL_0369: stloc.s 12 (System.Int32)
IL_036B: Label8
IL_036B: ldloc.s 12 (System.Int32)
IL_036D: ldc.i4.2
IL_036E: blt => Label21
IL_0373: ldarg.0
IL_0374: ldflda UnityEngine.Vector2
RimWorld.MainTabWindow_Research::rightScrollPosition
IL_0379: ldfld System.Single UnityEngine.Vector2::x
IL_037E: ldarg.0
IL_037F: ldflda UnityEngine.Vector2
RimWorld.MainTabWindow_Research::rightScrollPosition
IL_0384: ldfld System.Single UnityEngine.Vector2::y
IL_0389: ldloca.s 1 (UnityEngine.Rect)
IL_038B: call System.Single UnityEngine.Rect::get_width()
IL_0390: ldloca.s 1 (UnityEngine.Rect)
IL_0392: call System.Single UnityEngine.Rect::get_height()
IL_0397: newobj System.Void UnityEngine.Rect::.ctor(System.Single x,
System.Single y, System.Single width, System.Single height)
IL_039C: ldc.r4 10
IL_03A1: call static UnityEngine.Rect
Verse.GenUI::ExpandedBy(UnityEngine.Rect rect, System.Single margin)
IL_03A6: stloc.s 11 (UnityEngine.Rect)
IL_03A8: ldc.i4.0
IL_03A9: stloc.s 17 (System.Int32)
IL_03AB: br => Label22
IL_03B0: Label81
IL_03B0: ldloc.s 10
(System.Collections.Generic.List`1[Verse.ResearchProjectDef])
IL_03B2: ldloc.s 17 (System.Int32)
IL_03B4: callvirt virtual Verse.ResearchProjectDef
System.Collections.Generic.List`1<Verse.ResearchProjectDef>::get_Item(System.Int32
index)
IL_03B9: stloc.s 18 (Verse.ResearchProjectDef)
IL_03BB: ldloc.s 18 (Verse.ResearchProjectDef)
IL_03BD: ldfld RimWorld.ResearchTabDef Verse.ResearchProjectDef::tab
IL_03C2: ldarg.0
IL_03C3: call RimWorld.ResearchTabDef
RimWorld.MainTabWindow_Research::get_CurTab()
IL_03C8: bne.un => Label23
IL_03CD: ldloca.s 19 (UnityEngine.Rect)
IL_03CF: ldarg.0
IL_03D0: ldloc.s 18 (Verse.ResearchProjectDef)
IL_03D2: call System.Single
RimWorld.MainTabWindow_Research::PosX(Verse.ResearchProjectDef d)
IL_03D7: ldarg.0
IL_03D8: ldloc.s 18 (Verse.ResearchProjectDef)
IL_03DA: call System.Single
RimWorld.MainTabWindow_Research::PosY(Verse.ResearchProjectDef d)
IL_03DF: ldc.r4 140
IL_03E4: ldc.r4 50
IL_03E9: call System.Void UnityEngine.Rect::.ctor(System.Single x,
System.Single y, System.Single width, System.Single height)
IL_03EE: ldloca.s 20 (UnityEngine.Rect)
IL_03F0: ldloc.s 19 (UnityEngine.Rect)
IL_03F2: call System.Void UnityEngine.Rect::.ctor(UnityEngine.Rect source)
IL_03F7: ldarg.0
IL_03F8: ldfld RimWorld.QuickSearchWidget
RimWorld.MainTabWindow_Research::quickSearchWidget
IL_03FD: ldfld RimWorld.QuickSearchFilter RimWorld.QuickSearchWidget::filter
IL_0402: callvirt System.Boolean RimWorld.QuickSearchFilter::get_Active()
IL_0407: brfalse => Label24
IL_040C: ldarg.0
IL_040D: ldfld System.Collections.Generic.HashSet`1<Verse.ResearchProjectDef>
RimWorld.MainTabWindow_Research::matchingProjects
IL_0412: ldloc.s 18 (Verse.ResearchProjectDef)
IL_0414: callvirt virtual System.Boolean
System.Collections.Generic.HashSet`1<Verse.ResearchProjectDef>::Contains(Verse.Rese
archProjectDef item)
IL_0419: ldc.i4.0
IL_041A: ceq
IL_041C: br => Label25
IL_0421: Label24
IL_0421: ldc.i4.0
IL_0422: Label25
IL_0422: stloc.s 21 (System.Boolean)
IL_0424: ldarg.0
IL_0425: ldfld RimWorld.QuickSearchWidget
RimWorld.MainTabWindow_Research::quickSearchWidget
IL_042A: ldfld RimWorld.QuickSearchFilter RimWorld.QuickSearchWidget::filter
IL_042F: callvirt System.Boolean RimWorld.QuickSearchFilter::get_Active()
IL_0434: brfalse => Label26
IL_0439: ldarg.0
IL_043A: ldfld System.Collections.Generic.HashSet`1<Verse.ResearchProjectDef>
RimWorld.MainTabWindow_Research::matchingProjects
IL_043F: ldloc.s 18 (Verse.ResearchProjectDef)
IL_0441: callvirt virtual System.Boolean
System.Collections.Generic.HashSet`1<Verse.ResearchProjectDef>::Contains(Verse.Rese
archProjectDef item)
IL_0446: br => Label27
IL_044B: Label26
IL_044B: ldc.i4.0
IL_044C: Label27
IL_044C: stloc.s 22 (System.Boolean)
IL_044E: ldloc.s 22 (System.Boolean)
IL_0450: brtrue => Label28
IL_0455: ldarg.0
IL_0456: ldfld Verse.ResearchProjectDef
RimWorld.MainTabWindow_Research::selectedProject
IL_045B: ldloc.s 18 (Verse.ResearchProjectDef)
IL_045D: bne.un => Label29
IL_0462: Label28
IL_0462: ldarg.0
IL_0463: ldfld Verse.ScrollPositioner
RimWorld.MainTabWindow_Research::scrollPositioner
IL_0468: ldloc.s 19 (UnityEngine.Rect)
IL_046A: callvirt System.Void
Verse.ScrollPositioner::RegisterInterestRect(UnityEngine.Rect rect)
IL_046F: Label29
IL_046F: ldarg.0
IL_0470: ldloc.s 18 (Verse.ResearchProjectDef)
IL_0472: call System.String
RimWorld.MainTabWindow_Research::GetLabel(Verse.ResearchProjectDef r)
IL_0477: stloc.s 23 (System.String)
IL_0479: ldloca.s 20 (UnityEngine.Rect)
IL_047B: ldarg.0
IL_047C: ldloc.s 23 (System.String)
IL_047E: call System.String
RimWorld.MainTabWindow_Research::GetLabelWithNewlineCached(System.String label)
IL_0483: ldc.i4.1
IL_0484: ldc.i4.0
IL_0485: call static System.Void
Verse.Widgets::LabelCacheHeight(UnityEngine.Rect& rect, System.String label,
System.Boolean renderLabel, System.Boolean forceInvalidation)
IL_048A: ldloca.s 20 (UnityEngine.Rect)
IL_048C: ldloc.s 11 (UnityEngine.Rect)
IL_048E: call System.Boolean UnityEngine.Rect::Overlaps(UnityEngine.Rect
other)
IL_0493: brfalse => Label30
IL_0498: ldsfld UnityEngine.Color Verse.Widgets::NormalOptionColor
IL_049D: stloc.s 24 (UnityEngine.Color)
IL_049F: ldloca.s 25 (UnityEngine.Color)
IL_04A1: initobj UnityEngine.Color
IL_04A7: ldloca.s 26 (UnityEngine.Color)
IL_04A9: initobj UnityEngine.Color
IL_04AF: ldloc.s 18 (Verse.ResearchProjectDef)
IL_04B1: callvirt System.Boolean Verse.ResearchProjectDef::get_IsFinished()
IL_04B6: brtrue => Label31
IL_04BB: ldloc.s 18 (Verse.ResearchProjectDef)
IL_04BD: callvirt System.Boolean Verse.ResearchProjectDef::get_CanStartNow()
IL_04C2: ldc.i4.0
IL_04C3: ceq
IL_04C5: br => Label32
IL_04CA: Label31
IL_04CA: ldc.i4.0
IL_04CB: Label32
IL_04CB: stloc.s 27 (System.Boolean)
IL_04CD: ldloc.s 18 (Verse.ResearchProjectDef)
IL_04CF: call static RimWorld.ResearchManager
Verse.Find::get_ResearchManager()
IL_04D4: ldfld Verse.ResearchProjectDef RimWorld.ResearchManager::currentProj
IL_04D9: bne.un => Label33
IL_04DE: ldsfld UnityEngine.Color Verse.TexUI::ActiveResearchColor
IL_04E3: stloc.s 25 (UnityEngine.Color)
IL_04E5: br => Label34
IL_04EA: Label33
IL_04EA: ldloc.s 18 (Verse.ResearchProjectDef)
IL_04EC: callvirt System.Boolean Verse.ResearchProjectDef::get_IsFinished()
IL_04F1: brfalse => Label35
IL_04F6: ldsfld UnityEngine.Color Verse.TexUI::FinishedResearchColor
IL_04FB: stloc.s 25 (UnityEngine.Color)
IL_04FD: br => Label36
IL_0502: Label35
IL_0502: ldloc.s 27 (System.Boolean)
IL_0504: brfalse => Label37
IL_0509: ldsfld UnityEngine.Color Verse.TexUI::LockedResearchColor
IL_050E: stloc.s 25 (UnityEngine.Color)
IL_0510: br => Label38
IL_0515: Label37
IL_0515: ldloc.s 18 (Verse.ResearchProjectDef)
IL_0517: callvirt System.Boolean Verse.ResearchProjectDef::get_CanStartNow()
IL_051C: brfalse => Label39
IL_0521: ldsfld UnityEngine.Color Verse.TexUI::AvailResearchColor
IL_0526: stloc.s 25 (UnityEngine.Color)
IL_0528: Label34
IL_0528: Label36
IL_0528: Label38
IL_0528: Label39
IL_0528: ldarg.0
IL_0529: ldfld System.Boolean RimWorld.MainTabWindow_Research::editMode
IL_052E: brfalse => Label40
IL_0533: ldarg.0
IL_0534: ldfld System.Collections.Generic.List`1<Verse.ResearchProjectDef>
RimWorld.MainTabWindow_Research::draggingTabs
IL_0539: ldloc.s 18 (Verse.ResearchProjectDef)
IL_053B: callvirt virtual System.Boolean
System.Collections.Generic.List`1<Verse.ResearchProjectDef>::Contains(Verse.Researc
hProjectDef item)
IL_0540: brfalse => Label41
IL_0545: call static UnityEngine.Color UnityEngine.Color::get_yellow()
IL_054A: stloc.s 26 (UnityEngine.Color)
IL_054C: br => Label42
IL_0551: Label40
IL_0551: Label41
IL_0551: ldarg.0
IL_0552: ldfld Verse.ResearchProjectDef
RimWorld.MainTabWindow_Research::selectedProject
IL_0557: ldloc.s 18 (Verse.ResearchProjectDef)
IL_0559: bne.un => Label43
IL_055E: ldloc.s 25 (UnityEngine.Color)
IL_0560: ldsfld UnityEngine.Color Verse.TexUI::HighlightBgResearchColor
IL_0565: call static UnityEngine.Color
UnityEngine.Color::op_Addition(UnityEngine.Color a, UnityEngine.Color b)
IL_056A: stloc.s 25 (UnityEngine.Color)
IL_056C: ldsfld UnityEngine.Color Verse.TexUI::HighlightBorderResearchColor
IL_0571: stloc.s 26 (UnityEngine.Color)
IL_0573: br => Label44
IL_0578: Label43
IL_0578: ldsfld UnityEngine.Color Verse.TexUI::DefaultBorderResearchColor
IL_057D: stloc.s 26 (UnityEngine.Color)
IL_057F: Label42
IL_057F: Label44
IL_057F: ldloc.s 27 (System.Boolean)
IL_0581: brfalse => Label45
IL_0586: ldsfld UnityEngine.Color
RimWorld.MainTabWindow_Research::ProjectWithMissingPrerequisiteLabelColor
IL_058B: stloc.s 24 (UnityEngine.Color)
IL_058D: Label45
IL_058D: ldarg.0
IL_058E: ldfld Verse.ResearchProjectDef
RimWorld.MainTabWindow_Research::selectedProject
IL_0593: brfalse => Label46
IL_0598: ldloc.s 18 (Verse.ResearchProjectDef)
IL_059A: ldfld System.Collections.Generic.List`1<Verse.ResearchProjectDef>
Verse.ResearchProjectDef::prerequisites
IL_059F: brfalse => Label47
IL_05A4: ldloc.s 18 (Verse.ResearchProjectDef)
IL_05A6: ldfld System.Collections.Generic.List`1<Verse.ResearchProjectDef>
Verse.ResearchProjectDef::prerequisites
IL_05AB: ldarg.0
IL_05AC: ldfld Verse.ResearchProjectDef
RimWorld.MainTabWindow_Research::selectedProject
IL_05B1: callvirt virtual System.Boolean
System.Collections.Generic.List`1<Verse.ResearchProjectDef>::Contains(Verse.Researc
hProjectDef item)
IL_05B6: brtrue => Label48
IL_05BB: Label47
IL_05BB: ldloc.s 18 (Verse.ResearchProjectDef)
IL_05BD: ldfld System.Collections.Generic.List`1<Verse.ResearchProjectDef>
Verse.ResearchProjectDef::hiddenPrerequisites
IL_05C2: brfalse => Label49
IL_05C7: ldloc.s 18 (Verse.ResearchProjectDef)
IL_05C9: ldfld System.Collections.Generic.List`1<Verse.ResearchProjectDef>
Verse.ResearchProjectDef::hiddenPrerequisites
IL_05CE: ldarg.0
IL_05CF: ldfld Verse.ResearchProjectDef
RimWorld.MainTabWindow_Research::selectedProject
IL_05D4: callvirt virtual System.Boolean
System.Collections.Generic.List`1<Verse.ResearchProjectDef>::Contains(Verse.Researc
hProjectDef item)
IL_05D9: brfalse => Label50
IL_05DE: Label48
IL_05DE: ldsfld UnityEngine.Color Verse.TexUI::HighlightLineResearchColor
IL_05E3: stloc.s 26 (UnityEngine.Color)
IL_05E5: Label49
IL_05E5: Label50
IL_05E5: ldloc.s 18 (Verse.ResearchProjectDef)
IL_05E7: callvirt System.Boolean Verse.ResearchProjectDef::get_IsFinished()
IL_05EC: brtrue => Label51
IL_05F1: ldarg.0
IL_05F2: ldfld Verse.ResearchProjectDef
RimWorld.MainTabWindow_Research::selectedProject
IL_05F7: ldfld System.Collections.Generic.List`1<Verse.ResearchProjectDef>
Verse.ResearchProjectDef::prerequisites
IL_05FC: brfalse => Label52
IL_0601: ldarg.0
IL_0602: ldfld Verse.ResearchProjectDef
RimWorld.MainTabWindow_Research::selectedProject
IL_0607: ldfld System.Collections.Generic.List`1<Verse.ResearchProjectDef>
Verse.ResearchProjectDef::prerequisites
IL_060C: ldloc.s 18 (Verse.ResearchProjectDef)
IL_060E: callvirt virtual System.Boolean
System.Collections.Generic.List`1<Verse.ResearchProjectDef>::Contains(Verse.Researc
hProjectDef item)
IL_0613: brtrue => Label53
IL_0618: Label52
IL_0618: ldarg.0
IL_0619: ldfld Verse.ResearchProjectDef
RimWorld.MainTabWindow_Research::selectedProject
IL_061E: ldfld System.Collections.Generic.List`1<Verse.ResearchProjectDef>
Verse.ResearchProjectDef::hiddenPrerequisites
IL_0623: brfalse => Label54
IL_0628: ldarg.0
IL_0629: ldfld Verse.ResearchProjectDef
RimWorld.MainTabWindow_Research::selectedProject
IL_062E: ldfld System.Collections.Generic.List`1<Verse.ResearchProjectDef>
Verse.ResearchProjectDef::hiddenPrerequisites
IL_0633: ldloc.s 18 (Verse.ResearchProjectDef)
IL_0635: callvirt virtual System.Boolean
System.Collections.Generic.List`1<Verse.ResearchProjectDef>::Contains(Verse.Researc
hProjectDef item)
IL_063A: brfalse => Label55
IL_063F: Label53
IL_063F: ldsfld UnityEngine.Color Verse.TexUI::DependencyOutlineResearchColor
IL_0644: stloc.s 26 (UnityEngine.Color)
IL_0646: Label46
IL_0646: Label51
IL_0646: Label54
IL_0646: Label55
IL_0646: ldarg.0
IL_0647: ldfld System.Boolean
RimWorld.MainTabWindow_Research::requiredByThisFound
IL_064C: brfalse => Label56
IL_0651: ldc.i4.0
IL_0652: stloc.s 34 (System.Int32)
IL_0654: br => Label57
IL_0659: Label59
IL_0659: ldloc.s 18 (Verse.ResearchProjectDef)
IL_065B: ldfld System.Collections.Generic.List`1<Verse.ResearchProjectDef>
Verse.ResearchProjectDef::requiredByThis
IL_0660: ldloc.s 34 (System.Int32)
IL_0662: callvirt virtual Verse.ResearchProjectDef
System.Collections.Generic.List`1<Verse.ResearchProjectDef>::get_Item(System.Int32
index)
IL_0667: stloc.s 35 (Verse.ResearchProjectDef)
IL_0669: ldarg.0
IL_066A: ldfld Verse.ResearchProjectDef
RimWorld.MainTabWindow_Research::selectedProject
IL_066F: ldloc.s 35 (Verse.ResearchProjectDef)
IL_0671: bne.un => Label58
IL_0676: ldsfld UnityEngine.Color Verse.TexUI::HighlightLineResearchColor
IL_067B: stloc.s 26 (UnityEngine.Color)
IL_067D: Label58
IL_067D: ldloc.s 34 (System.Int32)
IL_067F: ldc.i4.1
IL_0680: add
IL_0681: stloc.s 34 (System.Int32)
IL_0683: Label57
IL_0683: ldloc.s 34 (System.Int32)
IL_0685: ldloc.s 18 (Verse.ResearchProjectDef)
IL_0687: ldfld System.Collections.Generic.List`1<Verse.ResearchProjectDef>
Verse.ResearchProjectDef::requiredByThis
IL_068C: call static System.Int32
Verse.GenList::CountAllowNull(System.Collections.Generic.IList`1<Verse.ResearchProj
ectDef> list)
IL_0691: blt => Label59
IL_0696: Label56
IL_0696: ldloc.s 18 (Verse.ResearchProjectDef)
IL_0698: callvirt System.Boolean
Verse.ResearchProjectDef::get_TechprintRequirementMet()
IL_069D: brtrue => Label60
IL_06A2: ldsfld UnityEngine.Color
RimWorld.MainTabWindow_Research::MissingPrerequisiteColor
IL_06A7: br => Label61
IL_06AC: Label60
IL_06AC: ldsfld UnityEngine.Color
RimWorld.MainTabWindow_Research::FulfilledPrerequisiteColor
IL_06B1: Label61
IL_06B1: stloc.s 28 (UnityEngine.Color)
IL_06B3: ldloc.s 18 (Verse.ResearchProjectDef)
IL_06B5: callvirt System.Boolean
Verse.ResearchProjectDef::get_StudiedThingsRequirementsMet()
IL_06BA: brtrue => Label62
IL_06BF: ldsfld UnityEngine.Color
RimWorld.MainTabWindow_Research::MissingPrerequisiteColor
IL_06C4: br => Label63
IL_06C9: Label62
IL_06C9: ldsfld UnityEngine.Color
RimWorld.MainTabWindow_Research::FulfilledPrerequisiteColor
IL_06CE: Label63
IL_06CE: stloc.s 29 (UnityEngine.Color)
IL_06D0: ldloc.s 21 (System.Boolean)
IL_06D2: brfalse => Label64
IL_06D7: ldarg.0
IL_06D8: ldloc.s 24 (UnityEngine.Color)
IL_06DA: call UnityEngine.Color
RimWorld.MainTabWindow_Research::NoMatchTint(UnityEngine.Color color)
IL_06DF: stloc.s 24 (UnityEngine.Color)
IL_06E1: ldarg.0
IL_06E2: ldloc.s 25 (UnityEngine.Color)
IL_06E4: call UnityEngine.Color
RimWorld.MainTabWindow_Research::NoMatchTint(UnityEngine.Color color)
IL_06E9: stloc.s 25 (UnityEngine.Color)
IL_06EB: ldarg.0
IL_06EC: ldloc.s 26 (UnityEngine.Color)
IL_06EE: call UnityEngine.Color
RimWorld.MainTabWindow_Research::NoMatchTint(UnityEngine.Color color)
IL_06F3: stloc.s 26 (UnityEngine.Color)
IL_06F5: ldarg.0
IL_06F6: ldloc.s 28 (UnityEngine.Color)
IL_06F8: call UnityEngine.Color
RimWorld.MainTabWindow_Research::NoMatchTint(UnityEngine.Color color)
IL_06FD: stloc.s 28 (UnityEngine.Color)
IL_06FF: ldarg.0
IL_0700: ldloc.s 29 (UnityEngine.Color)
IL_0702: call UnityEngine.Color
RimWorld.MainTabWindow_Research::NoMatchTint(UnityEngine.Color color)
IL_0707: stloc.s 29 (UnityEngine.Color)
IL_0709: Label64
IL_0709: ldloc.s 20 (UnityEngine.Rect)
IL_070B: stloc.s 30 (UnityEngine.Rect)
IL_070D: ldloca.s 30 (UnityEngine.Rect)
IL_070F: ldstr " "
IL_0714: ldc.i4.1
IL_0715: ldc.i4.0
IL_0716: call static System.Void
Verse.Widgets::LabelCacheHeight(UnityEngine.Rect& rect, System.String label,
System.Boolean renderLabel, System.Boolean forceInvalidation)
IL_071B: ldloc.s 22 (System.Boolean)
IL_071D: brfalse => Label65
IL_0722: ldloc.s 20 (UnityEngine.Rect)
IL_0724: ldc.r4 12
IL_0729: call static UnityEngine.Rect
Verse.GenUI::ExpandedBy(UnityEngine.Rect rect, System.Single margin)
IL_072E: ldloca.s 36 (System.Nullable`1[UnityEngine.Color])
IL_0730: initobj System.Nullable`1[UnityEngine.Color]
IL_0736: ldloc.s 36 (System.Nullable`1[UnityEngine.Color])
IL_0738: call static System.Void
Verse.Widgets::DrawStrongHighlight(UnityEngine.Rect rect,
System.Nullable`1<UnityEngine.Color> color)
IL_073D: Label65
IL_073D: ldloca.s 20 (UnityEngine.Rect)
IL_073F: ldstr ""
IL_0744: ldloc.s 25 (UnityEngine.Color)
IL_0746: ldloc.s 24 (UnityEngine.Color)
IL_0748: ldloc.s 26 (UnityEngine.Color)
IL_074A: ldc.i4.0
IL_074B: ldc.i4.1
IL_074C: ldc.i4.1
IL_074D: ldc.i4.1
IL_074E: call static System.Boolean
Verse.Widgets::CustomButtonText(UnityEngine.Rect& rect, System.String label,
UnityEngine.Color bgColor, UnityEngine.Color textColor, UnityEngine.Color
borderColor, System.Boolean cacheHeight, System.Int32 borderSize, System.Boolean
doMouseoverSound, System.Boolean active)
IL_0753: brfalse => Label66
IL_0758: ldsfld Verse.SoundDef RimWorld.SoundDefOf::Click
IL_075D: ldnull
IL_075E: call static System.Void
Verse.Sound.SoundStarter::PlayOneShotOnCamera(Verse.SoundDef soundDef, Verse.Map
onlyThisMap)
IL_0763: ldarg.0
IL_0764: ldloc.s 18 (Verse.ResearchProjectDef)
IL_0766: stfld Verse.ResearchProjectDef
RimWorld.MainTabWindow_Research::selectedProject
IL_076B: Label66
IL_076B: ldloca.s 30 (UnityEngine.Rect)
IL_076D: ldloca.s 20 (UnityEngine.Rect)
IL_076F: call System.Single UnityEngine.Rect::get_y()
IL_0774: ldloca.s 20 (UnityEngine.Rect)
IL_0776: call System.Single UnityEngine.Rect::get_height()
IL_077B: add
IL_077C: ldloca.s 30 (UnityEngine.Rect)
IL_077E: call System.Single UnityEngine.Rect::get_height()
IL_0783: sub
IL_0784: call System.Void UnityEngine.Rect::set_y(System.Single value)
IL_0789: ldloc.s 30 (UnityEngine.Rect)
IL_078B: stloc.s 31 (UnityEngine.Rect)
IL_078D: ldloca.s 31 (UnityEngine.Rect)
IL_078F: dup
IL_0790: call System.Single UnityEngine.Rect::get_x()
IL_0795: ldc.r4 10
IL_079A: add
IL_079B: call System.Void UnityEngine.Rect::set_x(System.Single value)
IL_07A0: ldloca.s 31 (UnityEngine.Rect)
IL_07A2: ldloca.s 31 (UnityEngine.Rect)
IL_07A4: call System.Single UnityEngine.Rect::get_width()
IL_07A9: ldc.r4 2
IL_07AE: div
IL_07AF: ldc.r4 10
IL_07B4: sub
IL_07B5: call System.Void UnityEngine.Rect::set_width(System.Single value)
IL_07BA: call static UnityEngine.Color UnityEngine.GUI::get_color()
IL_07BF: stloc.s 32 (UnityEngine.Color)
IL_07C1: call static UnityEngine.TextAnchor Verse.Text::get_Anchor()
IL_07C6: ldloc.s 24 (UnityEngine.Color)
IL_07C8: call static System.Void UnityEngine.GUI::set_color(UnityEngine.Color
value)
IL_07CD: ldc.i4.1
IL_07CE: call static System.Void
Verse.Text::set_Anchor(UnityEngine.TextAnchor value)
IL_07D3: ldloc.s 20 (UnityEngine.Rect)
IL_07D5: ldloc.s 23 (System.String)
IL_07D7: call static System.Void Verse.Widgets::Label(UnityEngine.Rect rect,
System.String label)
IL_07DC: ldloc.s 24 (UnityEngine.Color)
IL_07DE: call static System.Void UnityEngine.GUI::set_color(UnityEngine.Color
value)
IL_07E3: ldc.i4.3
IL_07E4: call static System.Void
Verse.Text::set_Anchor(UnityEngine.TextAnchor value)
IL_07E9: ldloc.s 31 (UnityEngine.Rect)
IL_07EB: ldloc.s 18 (Verse.ResearchProjectDef)
IL_07ED: callvirt System.Single Verse.ResearchProjectDef::get_CostApparent()
IL_07F2: stloc.s 9 (System.Single)
IL_07F4: ldloca.s 9 (System.Single)
IL_07F6: call virtual System.String System.Single::ToString()
IL_07FB: call static System.Void Verse.Widgets::Label(UnityEngine.Rect rect,
System.String label)
IL_0800: ldloca.s 19 (UnityEngine.Rect)
IL_0802: call System.Single UnityEngine.Rect::get_xMax()
IL_0807: stloc.s 33 (System.Single)
IL_0809: ldloc.s 18 (Verse.ResearchProjectDef)
IL_080B: callvirt System.Int32 Verse.ResearchProjectDef::get_TechprintCount()
IL_0810: ldc.i4.0
IL_0811: ble => Label67
IL_0816: ldarg.0
IL_0817: ldloc.s 18 (Verse.ResearchProjectDef)
IL_0819: callvirt System.Int32 Verse.ResearchProjectDef::get_TechprintsApplied()
IL_081E: ldloc.s 18 (Verse.ResearchProjectDef)
IL_0820: callvirt System.Int32 Verse.ResearchProjectDef::get_TechprintCount()
IL_0825: call System.String
RimWorld.MainTabWindow_Research::GetTechprintsInfoCached(System.Int32 applied,
System.Int32 total)
IL_082A: stloc.s 37 (System.String)
IL_082C: ldloc.s 37 (System.String)
IL_082E: call static UnityEngine.Vector2 Verse.Text::CalcSize(System.String
text)
IL_0833: stloc.s 38 (UnityEngine.Vector2)
IL_0835: ldloc.s 33 (System.Single)
IL_0837: ldloc.s 38 (UnityEngine.Vector2)
IL_0839: ldfld System.Single UnityEngine.Vector2::x
IL_083E: ldc.r4 10
IL_0843: add
IL_0844: sub
IL_0845: stloc.s 33 (System.Single)
IL_0847: ldloc.s 33 (System.Single)
IL_0849: ldloca.s 31 (UnityEngine.Rect)
IL_084B: call System.Single UnityEngine.Rect::get_y()
IL_0850: ldloc.s 38 (UnityEngine.Vector2)
IL_0852: ldfld System.Single UnityEngine.Vector2::x
IL_0857: ldloca.s 31 (UnityEngine.Rect)
IL_0859: call System.Single UnityEngine.Rect::get_height()
IL_085E: newobj System.Void UnityEngine.Rect::.ctor(System.Single x,
System.Single y, System.Single width, System.Single height)
IL_0863: ldloc.s 28 (UnityEngine.Color)
IL_0865: call static System.Void UnityEngine.GUI::set_color(UnityEngine.Color
value)
IL_086A: ldc.i4.5
IL_086B: call static System.Void
Verse.Text::set_Anchor(UnityEngine.TextAnchor value)
IL_0870: ldloc.s 37 (System.String)
IL_0872: call static System.Void Verse.Widgets::Label(UnityEngine.Rect rect,
System.String label)
IL_0877: ldloc.s 33 (System.Single)
IL_0879: ldloca.s 31 (UnityEngine.Rect)
IL_087B: call System.Single UnityEngine.Rect::get_height()
IL_0880: sub
IL_0881: stloc.s 33 (System.Single)
IL_0883: call static UnityEngine.Color UnityEngine.Color::get_white()
IL_0888: call static System.Void UnityEngine.GUI::set_color(UnityEngine.Color
value)
IL_088D: ldloc.s 33 (System.Single)
IL_088F: ldloca.s 31 (UnityEngine.Rect)
IL_0891: call System.Single UnityEngine.Rect::get_y()
IL_0896: ldloca.s 31 (UnityEngine.Rect)
IL_0898: call System.Single UnityEngine.Rect::get_height()
IL_089D: ldloca.s 31 (UnityEngine.Rect)
IL_089F: call System.Single UnityEngine.Rect::get_height()
IL_08A4: newobj System.Void UnityEngine.Rect::.ctor(System.Single x,
System.Single y, System.Single width, System.Single height)
IL_08A9: ldc.r4 4
IL_08AE: call static UnityEngine.Rect
Verse.GenUI::ContractedBy(UnityEngine.Rect rect, System.Single margin)
IL_08B3: ldsfld Verse.CachedTexture
RimWorld.MainTabWindow_Research::TechprintRequirementTex
IL_08B8: callvirt UnityEngine.Texture2D Verse.CachedTexture::get_Texture()
IL_08BD: call static System.Void
UnityEngine.GUI::DrawTexture(UnityEngine.Rect position, UnityEngine.Texture image)
IL_08C2: ldloc.s 32 (UnityEngine.Color)
IL_08C4: call static System.Void UnityEngine.GUI::set_color(UnityEngine.Color
value)
IL_08C9: Label67
IL_08C9: ldloc.s 18 (Verse.ResearchProjectDef)
IL_08CB: callvirt System.Int32
Verse.ResearchProjectDef::get_RequiredStudiedThingCount()
IL_08D0: ldc.i4.0
IL_08D1: ble => Label68
IL_08D6: ldarg.0
IL_08D7: ldloc.s 18 (Verse.ResearchProjectDef)
IL_08D9: callvirt System.Int32
Verse.ResearchProjectDef::get_StudiedThingsCompleted()
IL_08DE: ldloc.s 18 (Verse.ResearchProjectDef)
IL_08E0: callvirt System.Int32
Verse.ResearchProjectDef::get_RequiredStudiedThingCount()
IL_08E5: call System.String
RimWorld.MainTabWindow_Research::GetTechprintsInfoCached(System.Int32 applied,
System.Int32 total)
IL_08EA: stloc.s 39 (System.String)
IL_08EC: ldloc.s 39 (System.String)
IL_08EE: call static UnityEngine.Vector2 Verse.Text::CalcSize(System.String
text)
IL_08F3: stloc.s 40 (UnityEngine.Vector2)
IL_08F5: ldloc.s 33 (System.Single)
IL_08F7: ldloc.s 40 (UnityEngine.Vector2)
IL_08F9: ldfld System.Single UnityEngine.Vector2::x
IL_08FE: ldc.r4 10
IL_0903: add
IL_0904: sub
IL_0905: stloc.s 33 (System.Single)
IL_0907: ldloc.s 33 (System.Single)
IL_0909: ldloca.s 31 (UnityEngine.Rect)
IL_090B: call System.Single UnityEngine.Rect::get_y()
IL_0910: ldloc.s 40 (UnityEngine.Vector2)
IL_0912: ldfld System.Single UnityEngine.Vector2::x
IL_0917: ldloca.s 31 (UnityEngine.Rect)
IL_0919: call System.Single UnityEngine.Rect::get_height()
IL_091E: newobj System.Void UnityEngine.Rect::.ctor(System.Single x,
System.Single y, System.Single width, System.Single height)
IL_0923: ldloc.s 29 (UnityEngine.Color)
IL_0925: call static System.Void UnityEngine.GUI::set_color(UnityEngine.Color
value)
IL_092A: ldc.i4.5
IL_092B: call static System.Void
Verse.Text::set_Anchor(UnityEngine.TextAnchor value)
IL_0930: ldloc.s 39 (System.String)
IL_0932: call static System.Void Verse.Widgets::Label(UnityEngine.Rect rect,
System.String label)
IL_0937: ldloc.s 33 (System.Single)
IL_0939: ldloca.s 31 (UnityEngine.Rect)
IL_093B: call System.Single UnityEngine.Rect::get_height()
IL_0940: sub
IL_0941: stloc.s 33 (System.Single)
IL_0943: call static UnityEngine.Color UnityEngine.Color::get_white()
IL_0948: call static System.Void UnityEngine.GUI::set_color(UnityEngine.Color
value)
IL_094D: ldloc.s 33 (System.Single)
IL_094F: ldloca.s 31 (UnityEngine.Rect)
IL_0951: call System.Single UnityEngine.Rect::get_y()
IL_0956: ldloca.s 31 (UnityEngine.Rect)
IL_0958: call System.Single UnityEngine.Rect::get_height()
IL_095D: ldloca.s 31 (UnityEngine.Rect)
IL_095F: call System.Single UnityEngine.Rect::get_height()
IL_0964: newobj System.Void UnityEngine.Rect::.ctor(System.Single x,
System.Single y, System.Single width, System.Single height)
IL_0969: ldc.r4 4
IL_096E: call static UnityEngine.Rect
Verse.GenUI::ContractedBy(UnityEngine.Rect rect, System.Single margin)
IL_0973: ldsfld Verse.CachedTexture
RimWorld.MainTabWindow_Research::StudyRequirementTex
IL_0978: callvirt UnityEngine.Texture2D Verse.CachedTexture::get_Texture()
IL_097D: call static System.Void
UnityEngine.GUI::DrawTexture(UnityEngine.Rect position, UnityEngine.Texture image)
IL_0982: ldloc.s 32 (UnityEngine.Color)
IL_0984: call static System.Void UnityEngine.GUI::set_color(UnityEngine.Color
value)
IL_0989: Label68
IL_0989: ldarg.0
IL_098A: ldloc.s 18 (Verse.ResearchProjectDef)
IL_098C: call UnityEngine.Color
RimWorld.MainTabWindow_Research::GetSourceColor(Verse.ResearchProjectDef project)
IL_0991: call static System.Void UnityEngine.GUI::set_color(UnityEngine.Color
value)
IL_0996: ldloca.s 20 (UnityEngine.Rect)
IL_0998: call System.Single UnityEngine.Rect::get_xMax()
IL_099D: ldc.r4 7
IL_09A2: sub
IL_09A3: ldloca.s 20 (UnityEngine.Rect)
IL_09A5: call System.Single UnityEngine.Rect::get_y()
IL_09AA: ldc.r4 7
IL_09AF: ldc.r4 7
IL_09B4: newobj System.Void UnityEngine.Rect::.ctor(System.Single x,
System.Single y, System.Single width, System.Single height)
IL_09B9: ldsfld UnityEngine.Texture2D
RimWorld.MainTabWindow_Research::TopCornerTex
IL_09BE: call static System.Void
UnityEngine.GUI::DrawTexture(UnityEngine.Rect position, UnityEngine.Texture image)
IL_09C3: ldloc.s 32 (UnityEngine.Color)
IL_09C5: call static System.Void UnityEngine.GUI::set_color(UnityEngine.Color
value)
IL_09CA: call static System.Void
Verse.Text::set_Anchor(UnityEngine.TextAnchor value)
IL_09CF: ldloc.s 20 (UnityEngine.Rect)
IL_09D1: call static System.Boolean Verse.Mouse::IsOver(UnityEngine.Rect
rect)
IL_09D6: brfalse => Label69
IL_09DB: ldarg.0
IL_09DC: ldfld System.Boolean RimWorld.MainTabWindow_Research::editMode
IL_09E1: brtrue => Label70
IL_09E6: ldloc.s 20 (UnityEngine.Rect)
IL_09E8: call static System.Void
Verse.Widgets::DrawLightHighlight(UnityEngine.Rect rect)
IL_09ED: ldloc.s 20 (UnityEngine.Rect)
IL_09EF: ldloc.s 18 (Verse.ResearchProjectDef)
IL_09F1: callvirt System.String Verse.ResearchProjectDef::GetTip()
IL_09F6: call static Verse.TipSignal
Verse.TipSignal::op_Implicit(System.String str)
IL_09FB: call static System.Void
Verse.TooltipHandler::TipRegion(UnityEngine.Rect rect, Verse.TipSignal tip)
IL_0A00: Label69
IL_0A00: Label70
IL_0A00: ldarg.0
IL_0A01: ldfld System.Boolean RimWorld.MainTabWindow_Research::editMode
IL_0A06: brfalse => Label71
IL_0A0B: ldloc.s 20 (UnityEngine.Rect)
IL_0A0D: call static System.Boolean Verse.Mouse::IsOver(UnityEngine.Rect
rect)
IL_0A12: brfalse => Label72
IL_0A17: ldc.i4.0
IL_0A18: call static System.Boolean
UnityEngine.Input::GetMouseButtonDown(System.Int32 button)
IL_0A1D: brfalse => Label73
IL_0A22: ldc.i4.1
IL_0A23: stloc.0
IL_0A24: ldc.i4 304
IL_0A29: call static System.Boolean
UnityEngine.Input::GetKey(UnityEngine.KeyCode key)
IL_0A2E: brfalse => Label74
IL_0A33: ldarg.0
IL_0A34: ldfld System.Collections.Generic.List`1<Verse.ResearchProjectDef>
RimWorld.MainTabWindow_Research::draggingTabs
IL_0A39: ldloc.s 18 (Verse.ResearchProjectDef)
IL_0A3B: callvirt virtual System.Boolean
System.Collections.Generic.List`1<Verse.ResearchProjectDef>::Contains(Verse.Researc
hProjectDef item)
IL_0A40: brtrue => Label75
IL_0A45: ldarg.0
IL_0A46: ldfld System.Collections.Generic.List`1<Verse.ResearchProjectDef>
RimWorld.MainTabWindow_Research::draggingTabs
IL_0A4B: ldloc.s 18 (Verse.ResearchProjectDef)
IL_0A4D: callvirt virtual System.Void
System.Collections.Generic.List`1<Verse.ResearchProjectDef>::Add(Verse.ResearchProj
ectDef item)
IL_0A52: br => Label76
IL_0A57: Label74
IL_0A57: ldc.i4 306
IL_0A5C: call static System.Boolean
UnityEngine.Input::GetKey(UnityEngine.KeyCode key)
IL_0A61: brtrue => Label77
IL_0A66: ldarg.0
IL_0A67: ldfld System.Collections.Generic.List`1<Verse.ResearchProjectDef>
RimWorld.MainTabWindow_Research::draggingTabs
IL_0A6C: ldloc.s 18 (Verse.ResearchProjectDef)
IL_0A6E: callvirt virtual System.Boolean
System.Collections.Generic.List`1<Verse.ResearchProjectDef>::Contains(Verse.Researc
hProjectDef item)
IL_0A73: brtrue => Label78
IL_0A78: ldarg.0
IL_0A79: ldfld System.Collections.Generic.List`1<Verse.ResearchProjectDef>
RimWorld.MainTabWindow_Research::draggingTabs
IL_0A7E: callvirt virtual System.Void
System.Collections.Generic.List`1<Verse.ResearchProjectDef>::Clear()
IL_0A83: ldarg.0
IL_0A84: ldfld System.Collections.Generic.List`1<Verse.ResearchProjectDef>
RimWorld.MainTabWindow_Research::draggingTabs
IL_0A89: ldloc.s 18 (Verse.ResearchProjectDef)
IL_0A8B: callvirt virtual System.Void
System.Collections.Generic.List`1<Verse.ResearchProjectDef>::Add(Verse.ResearchProj
ectDef item)
IL_0A90: Label75
IL_0A90: Label76
IL_0A90: Label77
IL_0A90: Label78
IL_0A90: ldc.i4 306
IL_0A95: call static System.Boolean
UnityEngine.Input::GetKey(UnityEngine.KeyCode key)
IL_0A9A: brfalse => Label79
IL_0A9F: ldarg.0
IL_0AA0: ldfld System.Collections.Generic.List`1<Verse.ResearchProjectDef>
RimWorld.MainTabWindow_Research::draggingTabs
IL_0AA5: ldloc.s 18 (Verse.ResearchProjectDef)
IL_0AA7: callvirt virtual System.Boolean
System.Collections.Generic.List`1<Verse.ResearchProjectDef>::Contains(Verse.Researc
hProjectDef item)
IL_0AAC: brfalse => Label80
IL_0AB1: ldarg.0
IL_0AB2: ldfld System.Collections.Generic.List`1<Verse.ResearchProjectDef>
RimWorld.MainTabWindow_Research::draggingTabs
IL_0AB7: ldloc.s 18 (Verse.ResearchProjectDef)
IL_0AB9: callvirt virtual System.Boolean
System.Collections.Generic.List`1<Verse.ResearchProjectDef>::Remove(Verse.ResearchP
rojectDef item)
IL_0ABE: pop
IL_0ABF: Label23
IL_0ABF: Label30
IL_0ABF: Label71
IL_0ABF: Label72
IL_0ABF: Label73
IL_0ABF: Label79
IL_0ABF: Label80
IL_0ABF: ldloc.s 17 (System.Int32)
IL_0AC1: ldc.i4.1
IL_0AC2: add
IL_0AC3: stloc.s 17 (System.Int32)
IL_0AC5: Label22
IL_0AC5: ldloc.s 17 (System.Int32)
IL_0AC7: ldloc.s 10
(System.Collections.Generic.List`1[Verse.ResearchProjectDef])
IL_0AC9: callvirt virtual System.Int32
System.Collections.Generic.List`1<Verse.ResearchProjectDef>::get_Count()
IL_0ACE: blt => Label81
IL_0AD3: call static System.Void Verse.Widgets::EndGroup()
IL_0AD8: call static System.Void Verse.Widgets::EndScrollView()
IL_0ADD: ldarg.0
IL_0ADE: ldfld Verse.ScrollPositioner
RimWorld.MainTabWindow_Research::scrollPositioner
IL_0AE3: ldarg.0
IL_0AE4: ldflda UnityEngine.Vector2
RimWorld.MainTabWindow_Research::rightScrollPosition
IL_0AE9: ldloca.s 1 (UnityEngine.Rect)
IL_0AEB: call UnityEngine.Vector2 UnityEngine.Rect::get_size()
IL_0AF0: callvirt System.Void
Verse.ScrollPositioner::ScrollHorizontally(UnityEngine.Vector2& scrollPos,
UnityEngine.Vector2 outRectSize)
IL_0AF5: ldarg.0
IL_0AF6: ldfld System.Boolean RimWorld.MainTabWindow_Research::editMode
IL_0AFB: brfalse => Label82
IL_0B00: ldloc.0
IL_0B01: brtrue => Label83
IL_0B06: ldc.i4.0
IL_0B07: call static System.Boolean
UnityEngine.Input::GetMouseButtonDown(System.Int32 button)
IL_0B0C: brfalse => Label84
IL_0B11: ldarg.0
IL_0B12: ldfld System.Collections.Generic.List`1<Verse.ResearchProjectDef>
RimWorld.MainTabWindow_Research::draggingTabs
IL_0B17: callvirt virtual System.Void
System.Collections.Generic.List`1<Verse.ResearchProjectDef>::Clear()
IL_0B1C: Label83
IL_0B1C: Label84
IL_0B1C: ldarg.0
IL_0B1D: ldfld System.Collections.Generic.List`1<Verse.ResearchProjectDef>
RimWorld.MainTabWindow_Research::draggingTabs
IL_0B22: call static System.Boolean
Verse.GenList::NullOrEmpty(System.Collections.Generic.IList`1<Verse.ResearchProject
Def> list)
IL_0B27: brtrue => Label85
IL_0B2C: ldc.i4.0
IL_0B2D: call static System.Boolean
UnityEngine.Input::GetMouseButtonUp(System.Int32 button)
IL_0B32: brfalse => Label86
IL_0B37: ldc.i4.0
IL_0B38: stloc.s 41 (System.Int32)
IL_0B3A: br => Label87
IL_0B3F: Label88
IL_0B3F: ldarg.0
IL_0B40: ldfld System.Collections.Generic.List`1<Verse.ResearchProjectDef>
RimWorld.MainTabWindow_Research::draggingTabs
IL_0B45: ldloc.s 41 (System.Int32)
IL_0B47: callvirt virtual Verse.ResearchProjectDef
System.Collections.Generic.List`1<Verse.ResearchProjectDef>::get_Item(System.Int32
index)
IL_0B4C: callvirt System.Void Verse.ResearchProjectDef::Debug_SnapPositionData()
IL_0B51: ldloc.s 41 (System.Int32)
IL_0B53: ldc.i4.1
IL_0B54: add
IL_0B55: stloc.s 41 (System.Int32)
IL_0B57: Label87
IL_0B57: ldloc.s 41 (System.Int32)
IL_0B59: ldarg.0
IL_0B5A: ldfld System.Collections.Generic.List`1<Verse.ResearchProjectDef>
RimWorld.MainTabWindow_Research::draggingTabs
IL_0B5F: callvirt virtual System.Int32
System.Collections.Generic.List`1<Verse.ResearchProjectDef>::get_Count()
IL_0B64: blt => Label88
IL_0B69: br => Label98
IL_0B6E: Label86
IL_0B6E: ldc.i4.0
IL_0B6F: call static System.Boolean
UnityEngine.Input::GetMouseButton(System.Int32 button)
IL_0B74: brfalse => Label89
IL_0B79: ldc.i4.0
IL_0B7A: call static System.Boolean
UnityEngine.Input::GetMouseButtonDown(System.Int32 button)
IL_0B7F: brtrue => Label90
IL_0B84: call static UnityEngine.Event UnityEngine.Event::get_current()
IL_0B89: callvirt UnityEngine.EventType UnityEngine.Event::get_type()
IL_0B8E: ldc.i4.8
IL_0B8F: bne.un => Label91
IL_0B94: ldc.i4.0
IL_0B95: stloc.s 42 (System.Int32)
IL_0B97: br => Label92
IL_0B9C: Label93
IL_0B9C: ldarg.0
IL_0B9D: ldfld System.Collections.Generic.List`1<Verse.ResearchProjectDef>
RimWorld.MainTabWindow_Research::draggingTabs
IL_0BA2: ldloc.s 42 (System.Int32)
IL_0BA4: callvirt virtual Verse.ResearchProjectDef
System.Collections.Generic.List`1<Verse.ResearchProjectDef>::get_Item(System.Int32
index)
IL_0BA9: ldarg.0
IL_0BAA: call static UnityEngine.Event UnityEngine.Event::get_current()
IL_0BAF: callvirt UnityEngine.Vector2 UnityEngine.Event::get_delta()
IL_0BB4: ldfld System.Single UnityEngine.Vector2::x
IL_0BB9: call System.Single
RimWorld.MainTabWindow_Research::PixelsToCoordX(System.Single x)
IL_0BBE: ldarg.0
IL_0BBF: call static UnityEngine.Event UnityEngine.Event::get_current()
IL_0BC4: callvirt UnityEngine.Vector2 UnityEngine.Event::get_delta()
IL_0BC9: ldfld System.Single UnityEngine.Vector2::y
IL_0BCE: call System.Single
RimWorld.MainTabWindow_Research::PixelsToCoordY(System.Single y)
IL_0BD3: newobj System.Void UnityEngine.Vector2::.ctor(System.Single x,
System.Single y)
IL_0BD8: callvirt System.Void
Verse.ResearchProjectDef::Debug_ApplyPositionDelta(UnityEngine.Vector2 delta)
IL_0BDD: ldloc.s 42 (System.Int32)
IL_0BDF: ldc.i4.1
IL_0BE0: add
IL_0BE1: stloc.s 42 (System.Int32)
IL_0BE3: Label92
IL_0BE3: ldloc.s 42 (System.Int32)
IL_0BE5: ldarg.0
IL_0BE6: ldfld System.Collections.Generic.List`1<Verse.ResearchProjectDef>
RimWorld.MainTabWindow_Research::draggingTabs
IL_0BEB: callvirt virtual System.Int32
System.Collections.Generic.List`1<Verse.ResearchProjectDef>::get_Count()
IL_0BF0: blt => Label93
IL_0BF5: // end original
IL_0BF5: Label82
IL_0BF5: Label85
IL_0BF5: Label89
IL_0BF5: Label90
IL_0BF5: Label91
IL_0BF5: Label98
IL_0BF5: ret
DONE

### Patch: static System.Boolean RimWorld.GenConstruct::CanConstruct(Verse.Thing t,


Verse.Pawn p, System.Boolean checkSkills, System.Boolean forced)
### Replacement: static System.Boolean
RimWorld.GenConstruct::RimWorld.GenConstruct.CanConstruct_Patch2(Verse.Thing t,
Verse.Pawn p, System.Boolean checkSkills, System.Boolean forced)
IL_0000: Local var 0: System.Boolean
IL_0000: Local var 1: Verse.ThingDef
IL_0000: Local var 2: System.Collections.Generic.List`1/Enumerator<RimWorld.Ideo>
IL_0000: Local var 3: RimWorld.Ideo
IL_0000: Local var 4: Verse.NamedArgument
IL_0000: Local var 5: System.Boolean
IL_0000: ldc.i4 0
IL_0005: stloc 5 (System.Boolean)
IL_0009: // start original
IL_0009: ldsfld System.Collections.Generic.List`1<System.String>
RimWorld.GenConstruct::tmpIdeoMemberNames
IL_000E: callvirt virtual System.Void
System.Collections.Generic.List`1<System.String>::Clear()
IL_0013: ldarg.0
IL_0014: ldarg.1
IL_0015: call static Verse.Thing
RimWorld.GenConstruct::FirstBlockingThing(Verse.Thing constructible, Verse.Pawn
pawnToIgnore)
IL_001A: brfalse => Label0
IL_001F: ldc.i4.0
IL_0020: br => Label28
IL_0025: Label0
IL_0025: ldarg.1
IL_0026: ldarg.0
IL_0027: call static Verse.LocalTargetInfo
Verse.LocalTargetInfo::op_Implicit(Verse.Thing t)
IL_002C: ldc.i4.2
IL_002D: ldarg.3
IL_002E: brtrue => Label1
IL_0033: ldarg.1
IL_0034: call static Verse.Danger
Verse.DangerUtility::NormalMaxDanger(Verse.Pawn p)
IL_0039: br => Label2
IL_003E: Label1
IL_003E: ldc.i4.3
IL_003F: Label2
IL_003F: ldc.i4.1
IL_0040: ldc.i4.m1
IL_0041: ldnull
IL_0042: ldarg.3
IL_0043: call static System.Boolean
Verse.AI.ReservationUtility::CanReserveAndReach(Verse.Pawn p, Verse.LocalTargetInfo
target, Verse.AI.PathEndMode peMode, Verse.Danger maxDanger, System.Int32 maxPawns,
System.Int32 stackCount, Verse.ReservationLayerDef layer, System.Boolean
ignoreOtherReservations)
IL_0048: brtrue => Label3
IL_004D: ldc.i4.0
IL_004E: br => Label29
IL_0053: Label3
IL_0053: ldarg.0
IL_0054: call static System.Boolean
RimWorld.FireUtility::IsBurning(Verse.Thing t)
IL_0059: brfalse => Label4
IL_005E: ldc.i4.0
IL_005F: br => Label30
IL_0064: Label4
IL_0064: ldarg.2
IL_0065: brfalse => Label5
IL_006A: ldarg.1
IL_006B: ldfld RimWorld.Pawn_SkillTracker Verse.Pawn::skills
IL_0070: brfalse => Label6
IL_0075: ldarg.1
IL_0076: ldfld RimWorld.Pawn_SkillTracker Verse.Pawn::skills
IL_007B: ldsfld RimWorld.SkillDef RimWorld.SkillDefOf::Construction
IL_0080: callvirt RimWorld.SkillRecord
RimWorld.Pawn_SkillTracker::GetSkill(RimWorld.SkillDef skillDef)
IL_0085: callvirt System.Int32 RimWorld.SkillRecord::get_Level()
IL_008A: ldarg.0
IL_008B: ldfld Verse.ThingDef Verse.Thing::def
IL_0090: ldfld System.Int32 Verse.BuildableDef::constructionSkillPrerequisite
IL_0095: bge => Label7
IL_009A: ldsfld System.String RimWorld.GenConstruct::SkillTooLowTrans
IL_009F: ldsfld RimWorld.SkillDef RimWorld.SkillDefOf::Construction
IL_00A4: callvirt virtual Verse.TaggedString Verse.Def::get_LabelCap()
IL_00A9: call static Verse.NamedArgument
Verse.NamedArgument::op_Implicit(Verse.TaggedString value)
IL_00AE: call static Verse.TaggedString
Verse.GrammarResolverSimpleStringExtensions::Formatted(System.String str,
Verse.NamedArgument arg1)
IL_00B3: call static System.String
Verse.TaggedString::op_Implicit(Verse.TaggedString taggedString)
IL_00B8: ldnull
IL_00B9: call static System.Void Verse.AI.JobFailReason::Is(System.String
reason, System.String customJobString)
IL_00BE: ldc.i4.0
IL_00BF: br => Label31
IL_00C4: Label7
IL_00C4: ldarg.1
IL_00C5: ldfld RimWorld.Pawn_SkillTracker Verse.Pawn::skills
IL_00CA: ldsfld RimWorld.SkillDef RimWorld.SkillDefOf::Artistic
IL_00CF: callvirt RimWorld.SkillRecord
RimWorld.Pawn_SkillTracker::GetSkill(RimWorld.SkillDef skillDef)
IL_00D4: callvirt System.Int32 RimWorld.SkillRecord::get_Level()
IL_00D9: ldarg.0
IL_00DA: ldfld Verse.ThingDef Verse.Thing::def
IL_00DF: ldfld System.Int32 Verse.BuildableDef::artisticSkillPrerequisite
IL_00E4: bge => Label8
IL_00E9: ldsfld System.String RimWorld.GenConstruct::SkillTooLowTrans
IL_00EE: ldsfld RimWorld.SkillDef RimWorld.SkillDefOf::Artistic
IL_00F3: callvirt virtual Verse.TaggedString Verse.Def::get_LabelCap()
IL_00F8: call static Verse.NamedArgument
Verse.NamedArgument::op_Implicit(Verse.TaggedString value)
IL_00FD: call static Verse.TaggedString
Verse.GrammarResolverSimpleStringExtensions::Formatted(System.String str,
Verse.NamedArgument arg1)
IL_0102: call static System.String
Verse.TaggedString::op_Implicit(Verse.TaggedString taggedString)
IL_0107: ldnull
IL_0108: call static System.Void Verse.AI.JobFailReason::Is(System.String
reason, System.String customJobString)
IL_010D: ldc.i4.0
IL_010E: br => Label32
IL_0113: Label6
IL_0113: Label8
IL_0113: ldarg.1
IL_0114: callvirt System.Boolean Verse.Pawn::get_IsColonyMech()
IL_0119: brfalse => Label9
IL_011E: ldarg.1
IL_011F: callvirt Verse.RaceProperties Verse.Pawn::get_RaceProps()
IL_0124: ldfld System.Int32 Verse.RaceProperties::mechFixedSkillLevel
IL_0129: ldarg.0
IL_012A: ldfld Verse.ThingDef Verse.Thing::def
IL_012F: ldfld System.Int32 Verse.BuildableDef::constructionSkillPrerequisite
IL_0134: bge => Label10
IL_0139: ldsfld System.String RimWorld.GenConstruct::SkillTooLowTrans
IL_013E: ldsfld RimWorld.SkillDef RimWorld.SkillDefOf::Construction
IL_0143: callvirt virtual Verse.TaggedString Verse.Def::get_LabelCap()
IL_0148: call static Verse.NamedArgument
Verse.NamedArgument::op_Implicit(Verse.TaggedString value)
IL_014D: call static Verse.TaggedString
Verse.GrammarResolverSimpleStringExtensions::Formatted(System.String str,
Verse.NamedArgument arg1)
IL_0152: call static System.String
Verse.TaggedString::op_Implicit(Verse.TaggedString taggedString)
IL_0157: ldnull
IL_0158: call static System.Void Verse.AI.JobFailReason::Is(System.String
reason, System.String customJobString)
IL_015D: ldc.i4.0
IL_015E: br => Label33
IL_0163: Label10
IL_0163: ldarg.1
IL_0164: callvirt Verse.RaceProperties Verse.Pawn::get_RaceProps()
IL_0169: ldfld System.Int32 Verse.RaceProperties::mechFixedSkillLevel
IL_016E: ldarg.0
IL_016F: ldfld Verse.ThingDef Verse.Thing::def
IL_0174: ldfld System.Int32 Verse.BuildableDef::artisticSkillPrerequisite
IL_0179: bge => Label11
IL_017E: ldsfld System.String RimWorld.GenConstruct::SkillTooLowTrans
IL_0183: ldsfld RimWorld.SkillDef RimWorld.SkillDefOf::Artistic
IL_0188: callvirt virtual Verse.TaggedString Verse.Def::get_LabelCap()
IL_018D: call static Verse.NamedArgument
Verse.NamedArgument::op_Implicit(Verse.TaggedString value)
IL_0192: call static Verse.TaggedString
Verse.GrammarResolverSimpleStringExtensions::Formatted(System.String str,
Verse.NamedArgument arg1)
IL_0197: call static System.String
Verse.TaggedString::op_Implicit(Verse.TaggedString taggedString)
IL_019C: ldnull
IL_019D: call static System.Void Verse.AI.JobFailReason::Is(System.String
reason, System.String customJobString)
IL_01A2: ldc.i4.0
IL_01A3: br => Label34
IL_01A8: Label5
IL_01A8: Label9
IL_01A8: Label11
IL_01A8: ldarg.0
IL_01A9: isinst RimWorld.Blueprint_Install
IL_01AE: ldnull
IL_01AF: cgt.un
IL_01B1: stloc.0
IL_01B2: ldarg.1
IL_01B3: callvirt RimWorld.Ideo Verse.Pawn::get_Ideo()
IL_01B8: brfalse => Label12
IL_01BD: ldarg.1
IL_01BE: callvirt RimWorld.Ideo Verse.Pawn::get_Ideo()
IL_01C3: ldarg.0
IL_01C4: callvirt System.Boolean RimWorld.Ideo::MembersCanBuild(Verse.Thing
thing)
IL_01C9: brtrue => Label13
IL_01CE: ldloc.0
IL_01CF: brtrue => Label14
IL_01D4: call static RimWorld.IdeoManager Verse.Find::get_IdeoManager()
IL_01D9: callvirt System.Collections.Generic.List`1<RimWorld.Ideo>
RimWorld.IdeoManager::get_IdeosListForReading()
IL_01DE: callvirt System.Collections.Generic.Enumerator<RimWorld.Ideo>
System.Collections.Generic.List`1<RimWorld.Ideo>::GetEnumerator()
IL_01E3: stloc.2
.try
{
IL_01E4: br => Label15
IL_01E9: Label17
IL_01E9: ldloca.s 2
(System.Collections.Generic.List`1+Enumerator[RimWorld.Ideo])
IL_01EB: call virtual RimWorld.Ideo
System.Collections.Generic.Enumerator<RimWorld.Ideo>::get_Current()
IL_01F0: stloc.3
IL_01F1: ldloc.3
IL_01F2: ldarg.0
IL_01F3: callvirt System.Boolean RimWorld.Ideo::MembersCanBuild(Verse.Thing
thing)
IL_01F8: brfalse => Label16
IL_01FD: ldsfld System.Collections.Generic.List`1<System.String>
RimWorld.GenConstruct::tmpIdeoMemberNames
IL_0202: ldloc.3
IL_0203: ldfld System.String RimWorld.Ideo::memberName
IL_0208: callvirt virtual System.Void
System.Collections.Generic.List`1<System.String>::Add(System.String item)
IL_020D: Label15
IL_020D: Label16
IL_020D: ldloca.s 2
(System.Collections.Generic.List`1+Enumerator[RimWorld.Ideo])
IL_020F: call virtual System.Boolean
System.Collections.Generic.Enumerator<RimWorld.Ideo>::MoveNext()
IL_0214: brtrue => Label17
IL_0219: leave => Label18
IL_021E: leave => (autogenerated)
} // end try
.finally
{
IL_0223: ldloca.s 2
(System.Collections.Generic.List`1+Enumerator[RimWorld.Ideo])
IL_0225: constrained.
System.Collections.Generic.List`1+Enumerator[RimWorld.Ideo]
IL_022B: callvirt abstract virtual System.Void
System.IDisposable::Dispose()
IL_0230: endfinally
IL_0231: leave => (autogenerated)
} // end handler
IL_0232: Label18
IL_0232: ldsfld System.Collections.Generic.List`1<System.String>
RimWorld.GenConstruct::tmpIdeoMemberNames
IL_0237: call static System.Boolean
Verse.GenCollection::Any(System.Collections.Generic.List`1<System.String> list)
IL_023C: brfalse => Label19
IL_0241: ldstr "OnlyMembersCanBuild"
IL_0246: ldsfld System.Collections.Generic.List`1<System.String>
RimWorld.GenConstruct::tmpIdeoMemberNames
IL_024B: ldc.i4.1
IL_024C: ldc.i4.0
IL_024D: call static System.String
Verse.GenText::ToCommaList(System.Collections.Generic.IEnumerable`1<System.String>
items, System.Boolean useAnd, System.Boolean emptyIfNone)
IL_0252: call static Verse.NamedArgument
Verse.NamedArgument::op_Implicit(System.String value)
IL_0257: call static Verse.TaggedString
Verse.TranslatorFormattedStringExtensions::Translate(System.String key,
Verse.NamedArgument arg1)
IL_025C: call static System.String
Verse.TaggedString::op_Implicit(Verse.TaggedString taggedString)
IL_0261: ldnull
IL_0262: call static System.Void Verse.AI.JobFailReason::Is(System.String
reason, System.String customJobString)
IL_0267: Label19
IL_0267: ldc.i4.0
IL_0268: br => Label39
IL_026D: Label12
IL_026D: Label13
IL_026D: Label14
IL_026D: ldarg.0
IL_026E: ldfld Verse.ThingDef Verse.Thing::def
IL_0273: callvirt System.Boolean Verse.ThingDef::get_IsBlueprint()
IL_0278: brtrue => Label20
IL_027D: ldarg.0
IL_027E: ldfld Verse.ThingDef Verse.Thing::def
IL_0283: callvirt System.Boolean Verse.ThingDef::get_IsFrame()
IL_0288: brfalse => Label21
IL_028D: Label20
IL_028D: ldarg.0
IL_028E: ldfld Verse.ThingDef Verse.Thing::def
IL_0293: ldfld Verse.BuildableDef Verse.ThingDef::entityDefToBuild
IL_0298: isinst Verse.ThingDef
IL_029D: dup
IL_029E: stloc.1
IL_029F: brfalse => Label22
IL_02A4: ldarg.1
IL_02A5: ldsfld System.String RimWorld.HistoryEventArgsNames::Doer
IL_02AA: call static Verse.NamedArgument
Verse.NamedArgumentUtility::Named(System.Object arg, System.String label)
IL_02AF: stloc.s 4 (Verse.NamedArgument)
IL_02B1: ldsfld RimWorld.HistoryEventDef
RimWorld.HistoryEventDefOf::BuildSpecificDef
IL_02B6: ldloc.s 4 (Verse.NamedArgument)
IL_02B8: ldloc.1
IL_02B9: ldsfld System.String RimWorld.HistoryEventArgsNames::Building
IL_02BE: call static Verse.NamedArgument
Verse.NamedArgumentUtility::Named(System.Object arg, System.String label)
IL_02C3: newobj System.Void
RimWorld.HistoryEvent::.ctor(RimWorld.HistoryEventDef def, Verse.NamedArgument
arg1, Verse.NamedArgument arg2)
IL_02C8: call static System.Boolean
RimWorld.IdeoUtility::Notify_PawnAboutToDo_Job(RimWorld.HistoryEvent ev)
IL_02CD: brtrue => Label23
IL_02D2: ldc.i4.0
IL_02D3: br => Label40
IL_02D8: Label23
IL_02D8: ldloc.1
IL_02D9: ldfld RimWorld.BuildingProperties Verse.ThingDef::building
IL_02DE: brfalse => Label24
IL_02E3: ldloc.1
IL_02E4: ldfld RimWorld.BuildingProperties Verse.ThingDef::building
IL_02E9: callvirt System.Boolean RimWorld.BuildingProperties::get_IsTurret()
IL_02EE: brfalse => Label25
IL_02F3: ldloc.1
IL_02F4: ldtoken RimWorld.CompMannable
IL_02F9: call static System.Type
System.Type::GetTypeFromHandle(System.RuntimeTypeHandle handle)
IL_02FE: callvirt System.Boolean Verse.ThingDef::HasComp(System.Type compType)
IL_0303: brtrue => Label26
IL_0308: ldsfld RimWorld.HistoryEventDef
RimWorld.HistoryEventDefOf::BuiltAutomatedTurret
IL_030D: ldloc.s 4 (Verse.NamedArgument)
IL_030F: newobj System.Void
RimWorld.HistoryEvent::.ctor(RimWorld.HistoryEventDef def, Verse.NamedArgument
arg1)
IL_0314: call static System.Boolean
RimWorld.IdeoUtility::Notify_PawnAboutToDo_Job(RimWorld.HistoryEvent ev)
IL_0319: brtrue => Label27
IL_031E: ldc.i4.0
IL_031F: br => Label41
IL_0324: Label21
IL_0324: Label22
IL_0324: Label24
IL_0324: Label25
IL_0324: Label26
IL_0324: Label27
IL_0324: ldc.i4.1
IL_0325: // end original
IL_0325: Label28
IL_0325: Label29
IL_0325: Label30
IL_0325: Label31
IL_0325: Label32
IL_0325: Label33
IL_0325: Label34
IL_0325: Label39
IL_0325: Label40
IL_0325: Label41
IL_0325: stloc 5 (System.Boolean)
IL_0329: ldarg 0
IL_032D: ldarg 1
IL_0331: ldloca 5 (System.Boolean)
IL_0335: call static System.Void
AlienRace.HarmonyPatches::CanConstructPostfix(Verse.Thing t, Verse.Pawn p,
System.Boolean& __result)
IL_033A: ldloc 5 (System.Boolean)
IL_033E: ldarg 0
IL_0342: ldarg 1
IL_0346: ldarg 2
IL_034A: ldarg 3
IL_034E: call static System.Boolean
PeteTimesSix.ResearchReinvented.HarmonyPatches.Prototypes.GenConstruct_CanConstruct
_Patches::CanConstruct(System.Boolean __result, Verse.Thing t, Verse.Pawn p,
System.Boolean checkSkills, System.Boolean forced)
IL_0353: ret
DONE

### Patch: System.Boolean RimWorld.GameRules::DesignatorAllowed(Verse.Designator d)


### Replacement: static System.Boolean
RimWorld.GameRules::RimWorld.GameRules.DesignatorAllowed_Patch0(RimWorld.GameRules
this, Verse.Designator d)
IL_0000: Local var 0: RimWorld.Designator_Place
IL_0000: // start original
IL_0000: ldarg.1
IL_0001: isinst RimWorld.Designator_Place
IL_0006: stloc.0
IL_0007: ldloc.0
IL_0008: brfalse => Label0
IL_000D: ldarg.0
IL_000E: ldfld System.Collections.Generic.HashSet`1<Verse.ThingDef>
RimWorld.GameRules::disallowedBuildings
IL_0013: ldloc.0
IL_0014: callvirt abstract virtual Verse.BuildableDef
RimWorld.Designator_Place::get_PlacingDef()
IL_0019: call static System.Boolean
System.Linq.Enumerable::Contains(System.Collections.Generic.IEnumerable`1<Verse.Bui
ldableDef> source, Verse.BuildableDef value)
IL_001E: ldc.i4.0
IL_001F: ceq
IL_0021: dup
IL_0022: brfalse => Label1
IL_0027: ldarg.1
IL_0028: isinst RimWorld.Designator_Build
IL_002D: brfalse => Label1
IL_0032: pop
IL_0033: ldarg.1
IL_0034: castclass RimWorld.Designator_Build
IL_0039: call static System.Boolean
AlienRace.HarmonyPatches::DesignatorAllowedHelper(RimWorld.Designator_Build d)
IL_003E: Label1
IL_003E: br => Label2
IL_0043: Label0
IL_0043: ldarg.0
IL_0044: ldfld System.Collections.Generic.HashSet`1<System.Type>
RimWorld.GameRules::disallowedDesignatorTypes
IL_0049: ldarg.1
IL_004A: callvirt System.Type System.Object::GetType()
IL_004F: callvirt virtual System.Boolean
System.Collections.Generic.HashSet`1<System.Type>::Contains(System.Type item)
IL_0054: ldc.i4.0
IL_0055: ceq
IL_0057: dup
IL_0058: brfalse => Label1
IL_005D: ldarg.1
IL_005E: isinst RimWorld.Designator_Build
IL_0063: brfalse => Label1
IL_0068: pop
IL_0069: ldarg.1
IL_006A: castclass RimWorld.Designator_Build
IL_006F: call static System.Boolean
AlienRace.HarmonyPatches::DesignatorAllowedHelper(RimWorld.Designator_Build d)
IL_0074: // end original
IL_0074: Label1
IL_0074: Label2
IL_0074: ret
DONE

### Patch: virtual System.Boolean RimWorld.Bill::PawnAllowedToStartAnew(Verse.Pawn


p)
### Replacement: static System.Boolean
RimWorld.Bill::RimWorld.Bill.PawnAllowedToStartAnew_Patch2(RimWorld.Bill this,
Verse.Pawn p)
IL_0000: Local var 0: System.Int32
IL_0000: Local var 1: System.Boolean
IL_0000: ldc.i4 0
IL_0005: stloc 1 (System.Boolean)
IL_0009: // start original
IL_0009: ldarg.0
IL_000A: ldfld Verse.Pawn RimWorld.Bill::pawnRestriction
IL_000F: brfalse => Label0
IL_0014: ldarg.0
IL_0015: ldfld Verse.Pawn RimWorld.Bill::pawnRestriction
IL_001A: ldarg.1
IL_001B: ceq
IL_001D: br => Label17
IL_0022: Label0
IL_0022: ldarg.0
IL_0023: ldfld System.Boolean RimWorld.Bill::slavesOnly
IL_0028: brfalse => Label1
IL_002D: ldarg.1
IL_002E: callvirt System.Boolean Verse.Pawn::get_IsSlave()
IL_0033: brtrue => Label2
IL_0038: ldc.i4.0
IL_0039: br => Label18
IL_003E: Label1
IL_003E: Label2
IL_003E: ldarg.0
IL_003F: ldfld System.Boolean RimWorld.Bill::mechsOnly
IL_0044: brfalse => Label3
IL_0049: ldarg.1
IL_004A: callvirt System.Boolean Verse.Pawn::get_IsColonyMechPlayerControlled()
IL_004F: brtrue => Label4
IL_0054: ldc.i4.0
IL_0055: br => Label19
IL_005A: Label3
IL_005A: Label4
IL_005A: ldarg.0
IL_005B: ldfld System.Boolean RimWorld.Bill::nonMechsOnly
IL_0060: brfalse => Label5
IL_0065: ldarg.1
IL_0066: callvirt System.Boolean Verse.Pawn::get_IsColonyMechPlayerControlled()
IL_006B: brfalse => Label6
IL_0070: ldc.i4.0
IL_0071: br => Label20
IL_0076: Label5
IL_0076: Label6
IL_0076: ldarg.0
IL_0077: ldfld Verse.RecipeDef RimWorld.Bill::recipe
IL_007C: ldfld RimWorld.SkillDef Verse.RecipeDef::workSkill
IL_0081: brfalse => Label7
IL_0086: ldarg.1
IL_0087: ldfld RimWorld.Pawn_SkillTracker Verse.Pawn::skills
IL_008C: brtrue => Label8
IL_0091: ldarg.1
IL_0092: callvirt System.Boolean Verse.Pawn::get_IsColonyMech()
IL_0097: brfalse => Label9
IL_009C: Label8
IL_009C: ldarg.1
IL_009D: ldfld RimWorld.Pawn_SkillTracker Verse.Pawn::skills
IL_00A2: brtrue => Label10
IL_00A7: ldarg.1
IL_00A8: callvirt Verse.RaceProperties Verse.Pawn::get_RaceProps()
IL_00AD: ldfld System.Int32 Verse.RaceProperties::mechFixedSkillLevel
IL_00B2: br => Label11
IL_00B7: Label10
IL_00B7: ldarg.1
IL_00B8: ldfld RimWorld.Pawn_SkillTracker Verse.Pawn::skills
IL_00BD: ldarg.0
IL_00BE: ldfld Verse.RecipeDef RimWorld.Bill::recipe
IL_00C3: ldfld RimWorld.SkillDef Verse.RecipeDef::workSkill
IL_00C8: callvirt RimWorld.SkillRecord
RimWorld.Pawn_SkillTracker::GetSkill(RimWorld.SkillDef skillDef)
IL_00CD: callvirt System.Int32 RimWorld.SkillRecord::get_Level()
IL_00D2: Label11
IL_00D2: stloc.0
IL_00D3: ldloc.0
IL_00D4: ldarg.0
IL_00D5: ldflda Verse.IntRange RimWorld.Bill::allowedSkillRange
IL_00DA: ldfld System.Int32 Verse.IntRange::min
IL_00DF: bge => Label12
IL_00E4: ldstr "UnderAllowedSkill"
IL_00E9: ldarg.0
IL_00EA: ldflda Verse.IntRange RimWorld.Bill::allowedSkillRange
IL_00EF: ldfld System.Int32 Verse.IntRange::min
IL_00F4: call static Verse.NamedArgument
Verse.NamedArgument::op_Implicit(System.Int32 value)
IL_00F9: call static Verse.TaggedString
Verse.TranslatorFormattedStringExtensions::Translate(System.String key,
Verse.NamedArgument arg1)
IL_00FE: call static System.String
Verse.TaggedString::op_Implicit(Verse.TaggedString taggedString)
IL_0103: ldarg.0
IL_0104: callvirt virtual System.String RimWorld.Bill::get_Label()
IL_0109: call static System.Void Verse.AI.JobFailReason::Is(System.String
reason, System.String customJobString)
IL_010E: ldc.i4.0
IL_010F: br => Label21
IL_0114: Label12
IL_0114: ldloc.0
IL_0115: ldarg.0
IL_0116: ldflda Verse.IntRange RimWorld.Bill::allowedSkillRange
IL_011B: ldfld System.Int32 Verse.IntRange::max
IL_0120: ble => Label13
IL_0125: ldstr "AboveAllowedSkill"
IL_012A: ldarg.0
IL_012B: ldflda Verse.IntRange RimWorld.Bill::allowedSkillRange
IL_0130: ldfld System.Int32 Verse.IntRange::max
IL_0135: call static Verse.NamedArgument
Verse.NamedArgument::op_Implicit(System.Int32 value)
IL_013A: call static Verse.TaggedString
Verse.TranslatorFormattedStringExtensions::Translate(System.String key,
Verse.NamedArgument arg1)
IL_013F: call static System.String
Verse.TaggedString::op_Implicit(Verse.TaggedString taggedString)
IL_0144: ldarg.0
IL_0145: callvirt virtual System.String RimWorld.Bill::get_Label()
IL_014A: call static System.Void Verse.AI.JobFailReason::Is(System.String
reason, System.String customJobString)
IL_014F: ldc.i4.0
IL_0150: br => Label22
IL_0155: Label7
IL_0155: Label9
IL_0155: Label13
IL_0155: call static System.Boolean Verse.ModsConfig::get_BiotechActive()
IL_015A: brfalse => Label14
IL_015F: ldarg.0
IL_0160: ldfld Verse.RecipeDef RimWorld.Bill::recipe
IL_0165: ldfld System.Boolean Verse.RecipeDef::mechanitorOnlyRecipe
IL_016A: brfalse => Label15
IL_016F: ldarg.1
IL_0170: call static System.Boolean
MechanitorUtility::IsMechanitor(Verse.Pawn pawn)
IL_0175: brtrue => Label16
IL_017A: ldstr "NotAMechanitor"
IL_017F: call static Verse.TaggedString
Verse.Translator::Translate(System.String key)
IL_0184: call static System.String
Verse.TaggedString::op_Implicit(Verse.TaggedString taggedString)
IL_0189: ldnull
IL_018A: call static System.Void Verse.AI.JobFailReason::Is(System.String
reason, System.String customJobString)
IL_018F: ldc.i4.0
IL_0190: br => Label23
IL_0195: Label14
IL_0195: Label15
IL_0195: Label16
IL_0195: ldc.i4.1
IL_0196: // end original
IL_0196: Label17
IL_0196: Label18
IL_0196: Label19
IL_0196: Label20
IL_0196: Label21
IL_0196: Label22
IL_0196: Label23
IL_0196: stloc 1 (System.Boolean)
IL_019A: ldarg 1
IL_019E: ldarg.0
IL_019F: ldloca 1 (System.Boolean)
IL_01A3: call static System.Void
AlienRace.HarmonyPatches::PawnAllowedToStartAnewPostfix(Verse.Pawn p, RimWorld.Bill
__instance, System.Boolean& __result)
IL_01A8: ldloc 1 (System.Boolean)
IL_01AC: ldarg.0
IL_01AD: ldarg 1
IL_01B1: call static System.Boolean
PeteTimesSix.ResearchReinvented.HarmonyPatches.Prototypes.Bill_PawnAllowedToStartAn
ew_Patches::Postfix(System.Boolean __result, RimWorld.Bill __instance, Verse.Pawn
p)
IL_01B6: ret
DONE

### Patch: virtual System.Boolean


RimWorld.WorkGiver_GrowerHarvest::HasJobOnCell(Verse.Pawn pawn, Verse.IntVec3 c,
System.Boolean forced)
### Replacement: static System.Boolean
RimWorld.WorkGiver_GrowerHarvest::RimWorld.WorkGiver_GrowerHarvest.HasJobOnCell_Pat
ch2(RimWorld.WorkGiver_GrowerHarvest this, Verse.Pawn pawn, Verse.IntVec3 c,
System.Boolean forced)
IL_0000: Local var 0: RimWorld.Plant
IL_0000: Local var 1: RimWorld.Zone_Growing
IL_0000: Local var 2: System.Boolean
IL_0000: Local var 3: System.Boolean
IL_0000: ldc.i4 0
IL_0005: stloc 2 (System.Boolean)
IL_0009: ldc.i4 0
IL_000E: stloc 3 (System.Boolean)
IL_0012: ldc.i4.1
IL_0013: stloc 3 (System.Boolean)
IL_0017: ldloc 3 (System.Boolean)
IL_001B: brfalse => Label1
IL_0020: ldarg 1
IL_0024: ldarg 2
IL_0028: ldloca 2 (System.Boolean)
IL_002C: call static System.Boolean
TD_Enhancement_Pack.NoHarvestJob::Prefix(Verse.Pawn pawn, Verse.IntVec3 c,
System.Boolean& __result)
IL_0031: stloc 3 (System.Boolean)
IL_0035: Label1
IL_0035: nop
IL_0036: ldloc 3 (System.Boolean)
IL_003A: brfalse => Label0
IL_003F: // start original
IL_003F: ldarg.2
IL_0040: ldarg.1
IL_0041: callvirt virtual Verse.Map Verse.Thing::get_Map()
IL_0046: call static RimWorld.Plant
Verse.GridsUtility::GetPlant(Verse.IntVec3 c, Verse.Map map)
IL_004B: stloc.0
IL_004C: ldloc.0
IL_004D: brtrue => Label2
IL_0052: ldc.i4.0
IL_0053: br => Label15
IL_0058: Label2
IL_0058: ldloc.0
IL_0059: ldarg.1
IL_005A: call static System.Boolean
RimWorld.ForbidUtility::IsForbidden(Verse.Thing t, Verse.Pawn pawn)
IL_005F: brfalse => Label3
IL_0064: ldc.i4.0
IL_0065: br => Label16
IL_006A: Label3
IL_006A: ldloc.0
IL_006B: callvirt virtual System.Boolean RimWorld.Plant::get_HarvestableNow()
IL_0070: brfalse => Label4
IL_0075: ldloc.0
IL_0076: callvirt virtual RimWorld.PlantLifeStage RimWorld.Plant::get_LifeStage()
IL_007B: ldc.i4.2
IL_007C: beq => Label5
IL_0081: Label4
IL_0081: ldc.i4.0
IL_0082: br => Label17
IL_0087: Label5
IL_0087: ldloc.0
IL_0088: callvirt virtual System.Boolean RimWorld.Plant::CanYieldNow()
IL_008D: brtrue => Label6
IL_0092: ldc.i4.0
IL_0093: br => Label18
IL_0098: Label6
IL_0098: ldloc.0
IL_0099: ldfld Verse.ThingDef Verse.Thing::def
IL_009E: ldfld RimWorld.PlantProperties Verse.ThingDef::plant
IL_00A3: ldfld System.Boolean RimWorld.PlantProperties::autoHarvestable
IL_00A8: brtrue => Label7
IL_00AD: ldarg.3
IL_00AE: brtrue => Label8
IL_00B3: ldc.i4.0
IL_00B4: br => Label19
IL_00B9: Label7
IL_00B9: Label8
IL_00B9: ldsfld Verse.ThingDef RimWorld.WorkGiver_Grower::wantedPlantDef
IL_00BE: brtrue => Label9
IL_00C3: ldarg.2
IL_00C4: ldarg.1
IL_00C5: callvirt virtual Verse.Map Verse.Thing::get_Map()
IL_00CA: call static Verse.ThingDef
RimWorld.WorkGiver_Grower::CalculateWantedPlantDef(Verse.IntVec3 c, Verse.Map map)
IL_00CF: stsfld Verse.ThingDef RimWorld.WorkGiver_Grower::wantedPlantDef
IL_00D4: Label9
IL_00D4: ldarg.2
IL_00D5: ldarg.1
IL_00D6: callvirt virtual Verse.Map Verse.Thing::get_Map()
IL_00DB: call static Verse.Zone Verse.GridsUtility::GetZone(Verse.IntVec3 c,
Verse.Map map)
IL_00E0: isinst RimWorld.Zone_Growing
IL_00E5: stloc.1
IL_00E6: ldloc.1
IL_00E7: brfalse => Label10
IL_00EC: ldloc.1
IL_00ED: ldfld System.Boolean RimWorld.Zone_Growing::allowCut
IL_00F2: brtrue => Label11
IL_00F7: ldloc.0
IL_00F8: ldfld Verse.ThingDef Verse.Thing::def
IL_00FD: ldsfld Verse.ThingDef RimWorld.WorkGiver_Grower::wantedPlantDef
IL_0102: beq => Label12
IL_0107: ldc.i4.0
IL_0108: br => Label20
IL_010D: Label10
IL_010D: Label11
IL_010D: Label12
IL_010D: ldloc.0
IL_010E: ldarg.1
IL_010F: call static System.Boolean
RimWorld.PlantUtility::PawnWillingToCutPlant_Job(Verse.Thing plant, Verse.Pawn
pawn)
IL_0114: brtrue => Label13
IL_0119: ldc.i4.0
IL_011A: br => Label21
IL_011F: Label13
IL_011F: ldarg.1
IL_0120: ldloc.0
IL_0121: call static Verse.LocalTargetInfo
Verse.LocalTargetInfo::op_Implicit(Verse.Thing t)
IL_0126: ldc.i4.1
IL_0127: ldc.i4.m1
IL_0128: ldnull
IL_0129: ldarg.3
IL_012A: call static System.Boolean
Verse.AI.ReservationUtility::CanReserve(Verse.Pawn p, Verse.LocalTargetInfo target,
System.Int32 maxPawns, System.Int32 stackCount, Verse.ReservationLayerDef layer,
System.Boolean ignoreOtherReservations)
IL_012F: brtrue => Label14
IL_0134: ldc.i4.0
IL_0135: br => Label22
IL_013A: Label14
IL_013A: ldc.i4.1
IL_013B: // end original
IL_013B: Label15
IL_013B: Label16
IL_013B: Label17
IL_013B: Label18
IL_013B: Label19
IL_013B: Label20
IL_013B: Label21
IL_013B: Label22
IL_013B: stloc 2 (System.Boolean)
IL_013F: Label0
IL_013F: ldarg 1
IL_0143: ldarg 2
IL_0147: ldloca 2 (System.Boolean)
IL_014B: call static System.Void
AlienRace.HarmonyPatches::HasJobOnCellHarvestPostfix(Verse.Pawn pawn, Verse.IntVec3
c, System.Boolean& __result)
IL_0150: ldloc 2 (System.Boolean)
IL_0154: ret
DONE

### Patch: virtual System.Boolean


RimWorld.WorkGiver_GrowerSow::ExtraRequirements(RimWorld.IPlantToGrowSettable
settable, Verse.Pawn pawn)
### Replacement: static System.Boolean
RimWorld.WorkGiver_GrowerSow::RimWorld.WorkGiver_GrowerSow.ExtraRequirements_Patch1
(RimWorld.WorkGiver_GrowerSow this, RimWorld.IPlantToGrowSettable settable,
Verse.Pawn pawn)
IL_0000: Local var 0: Verse.IntVec3
IL_0000: Local var 1: RimWorld.Zone_Growing
IL_0000: Local var 2: System.Boolean
IL_0000: ldc.i4 0
IL_0005: stloc 2 (System.Boolean)
IL_0009: // start original
IL_0009: ldarg.1
IL_000A: callvirt abstract virtual System.Boolean
RimWorld.IPlantToGrowSettable::CanAcceptSowNow()
IL_000F: brtrue => Label0
IL_0014: ldc.i4.0
IL_0015: br => Label5
IL_001A: Label0
IL_001A: ldarg.1
IL_001B: isinst RimWorld.Zone_Growing
IL_0020: stloc.1
IL_0021: ldloc.1
IL_0022: brfalse => Label1
IL_0027: ldloc.1
IL_0028: ldfld System.Boolean RimWorld.Zone_Growing::allowSow
IL_002D: brtrue => Label2
IL_0032: ldc.i4.0
IL_0033: br => Label6
IL_0038: Label2
IL_0038: ldloc.1
IL_0039: callvirt System.Collections.Generic.List`1<Verse.IntVec3>
Verse.Zone::get_Cells()
IL_003E: ldc.i4.0
IL_003F: callvirt virtual Verse.IntVec3
System.Collections.Generic.List`1<Verse.IntVec3>::get_Item(System.Int32 index)
IL_0044: stloc.0
IL_0045: br => Label3
IL_004A: Label1
IL_004A: ldarg.1
IL_004B: castclass Verse.Thing
IL_0050: callvirt virtual Verse.IntVec3 Verse.Thing::get_Position()
IL_0055: stloc.0
IL_0056: Label3
IL_0056: ldloc.0
IL_0057: ldarg.2
IL_0058: callvirt virtual Verse.Map Verse.Thing::get_Map()
IL_005D: call static Verse.ThingDef
RimWorld.WorkGiver_Grower::CalculateWantedPlantDef(Verse.IntVec3 c, Verse.Map map)
IL_0062: stsfld Verse.ThingDef RimWorld.WorkGiver_Grower::wantedPlantDef
IL_0067: ldsfld Verse.ThingDef RimWorld.WorkGiver_Grower::wantedPlantDef
IL_006C: brtrue => Label4
IL_0071: ldc.i4.0
IL_0072: br => Label7
IL_0077: Label4
IL_0077: ldc.i4.1
IL_0078: // end original
IL_0078: Label5
IL_0078: Label6
IL_0078: Label7
IL_0078: stloc 2 (System.Boolean)
IL_007C: ldarg 2
IL_0080: ldarg 1
IL_0084: ldloca 2 (System.Boolean)
IL_0088: call static System.Void
AlienRace.HarmonyPatches::ExtraRequirementsGrowerSowPostfix(Verse.Pawn pawn,
RimWorld.IPlantToGrowSettable settable, System.Boolean& __result)
IL_008D: ldloc 2 (System.Boolean)
IL_0091: ret
DONE

### Patch: virtual System.Void Verse.Pawn::SetFaction(RimWorld.Faction newFaction,


Verse.Pawn recruiter)
### Replacement: static System.Void
Verse.Pawn::Verse.Pawn.SetFaction_Patch2(Verse.Pawn this, RimWorld.Faction
newFaction, Verse.Pawn recruiter)
IL_0000: Local var 0: RimWorld.Faction
IL_0000: Local var 1: Verse.AI.Group.Lord
IL_0000: Local var 2: System.Nullable`1<Verse.DamageInfo>
IL_0000: Local var 3: RimWorld.Faction
IL_0000: // start original
IL_0000: ldarg.1
IL_0001: ldarg.0
IL_0002: call virtual RimWorld.Faction Verse.Thing::get_Faction()
IL_0007: bne.un => Label0
IL_000C: ldstr "Used SetFaction to change "
IL_0011: ldarg.0
IL_0012: call static System.String Verse.Gen::ToStringSafe(Verse.Pawn obj)
IL_0017: ldstr " to same faction "
IL_001C: ldarg.1
IL_001D: call static System.String Verse.Gen::ToStringSafe(RimWorld.Faction
obj)
IL_0022: call static System.String System.String::Concat(System.String str0,
System.String str1, System.String str2, System.String str3)
IL_0027: call static System.Void Verse.Log::Warning(System.String text)
IL_002C: br => Label41
IL_0031: Label0
IL_0031: ldarg.0
IL_0032: call virtual RimWorld.Faction Verse.Thing::get_Faction()
IL_0037: stloc.0
IL_0038: ldarg.0
IL_0039: ldfld RimWorld.Pawn_GuestTracker Verse.Pawn::guest
IL_003E: brfalse => Label1
IL_0043: ldarg.0
IL_0044: ldfld RimWorld.Pawn_GuestTracker Verse.Pawn::guest
IL_0049: ldnull
IL_004A: ldc.i4.0
IL_004B: callvirt System.Void
RimWorld.Pawn_GuestTracker::SetGuestStatus(RimWorld.Faction newHost,
RimWorld.GuestStatus guestStatus)
IL_0050: Label1
IL_0050: ldarg.0
IL_0051: call System.Boolean Verse.Thing::get_Spawned()
IL_0056: brfalse => Label2
IL_005B: ldarg.0
IL_005C: call virtual Verse.Map Verse.Thing::get_Map()
IL_0061: ldfld Verse.MapPawns Verse.Map::mapPawns
IL_0066: ldarg.0
IL_0067: callvirt System.Void Verse.MapPawns::DeRegisterPawn(Verse.Pawn p)
IL_006C: ldarg.0
IL_006D: call virtual Verse.Map Verse.Thing::get_Map()
IL_0072: ldfld Verse.PawnDestinationReservationManager
Verse.Map::pawnDestinationReservationManager
IL_0077: ldarg.0
IL_0078: callvirt System.Void
Verse.PawnDestinationReservationManager::ReleaseAllClaimedBy(Verse.Pawn p)
IL_007D: ldarg.0
IL_007E: call virtual Verse.Map Verse.Thing::get_Map()
IL_0083: ldfld Verse.DesignationManager Verse.Map::designationManager
IL_0088: ldarg.0
IL_0089: ldc.i4.0
IL_008A: callvirt System.Void
Verse.DesignationManager::RemoveAllDesignationsOn(Verse.Thing t, System.Boolean
standardCanceling)
IL_008F: ldarg.0
IL_0090: call virtual Verse.Map Verse.Thing::get_Map()
IL_0095: ldfld Verse.AutoSlaughterManager Verse.Map::autoSlaughterManager
IL_009A: callvirt System.Void
Verse.AutoSlaughterManager::Notify_PawnChangedFaction()
IL_009F: Label2
IL_009F: ldarg.1
IL_00A0: call static RimWorld.Faction RimWorld.Faction::get_OfPlayer()
IL_00A5: beq => Label3
IL_00AA: ldarg.0
IL_00AB: call virtual RimWorld.Faction Verse.Thing::get_Faction()
IL_00B0: call static RimWorld.Faction RimWorld.Faction::get_OfPlayer()
IL_00B5: bne.un => Label4
IL_00BA: Label3
IL_00BA: call static Verse.ProgramState Verse.Current::get_ProgramState()
IL_00BF: ldc.i4.2
IL_00C0: bne.un => Label5
IL_00C5: call static RimWorld.ColonistBar Verse.Find::get_ColonistBar()
IL_00CA: callvirt System.Void RimWorld.ColonistBar::MarkColonistsDirty()
IL_00CF: Label4
IL_00CF: Label5
IL_00CF: ldarg.0
IL_00D0: call static Verse.AI.Group.Lord
Verse.AI.Group.LordUtility::GetLord(Verse.Pawn p)
IL_00D5: stloc.1
IL_00D6: ldloc.1
IL_00D7: brfalse => Label6
IL_00DC: ldloc.1
IL_00DD: ldarg.0
IL_00DE: ldc.i4.5
IL_00DF: ldloca.s 2 (System.Nullable`1[Verse.DamageInfo])
IL_00E1: initobj System.Nullable`1[Verse.DamageInfo]
IL_00E7: ldloc.2
IL_00E8: callvirt System.Void Verse.AI.Group.Lord::Notify_PawnLost(Verse.Pawn
pawn, Verse.AI.Group.PawnLostCondition cond, System.Nullable`1<Verse.DamageInfo>
dinfo)
IL_00ED: Label6
IL_00ED: ldarg.0
IL_00EE: call static System.Boolean
RimWorld.PawnUtility::IsFactionLeader(Verse.Pawn pawn)
IL_00F3: brfalse => Label7
IL_00F8: ldarg.0
IL_00F9: call static RimWorld.Faction
RimWorld.PawnUtility::GetFactionLeaderFaction(Verse.Pawn pawn)
IL_00FE: stloc.3
IL_00FF: ldarg.1
IL_0100: ldloc.3
IL_0101: beq => Label8
IL_0106: ldarg.0
IL_0107: ldloc.3
IL_0108: call static System.Boolean
RimWorld.QuestUtility::HasExtraHomeFaction(Verse.Pawn p, RimWorld.Faction faction)
IL_010D: brtrue => Label9
IL_0112: ldarg.0
IL_0113: ldloc.3
IL_0114: call static System.Boolean
RimWorld.QuestUtility::HasExtraMiniFaction(Verse.Pawn p, RimWorld.Faction faction)
IL_0119: brtrue => Label10
IL_011E: ldloc.3
IL_011F: callvirt System.Void RimWorld.Faction::Notify_LeaderLost()
IL_0124: Label7
IL_0124: Label8
IL_0124: Label9
IL_0124: Label10
IL_0124: ldarg.1
IL_0125: call static RimWorld.Faction RimWorld.Faction::get_OfPlayer()
IL_012A: bne.un => Label11
IL_012F: ldarg.0
IL_0130: call Verse.RaceProperties Verse.Pawn::get_RaceProps()
IL_0135: callvirt System.Boolean Verse.RaceProperties::get_Humanlike()
IL_013A: brfalse => Label12
IL_013F: ldarg.0
IL_0140: call static System.Boolean
RimWorld.QuestUtility::IsQuestLodger(Verse.Pawn p)
IL_0145: brtrue => Label13
IL_014A: ldarg.0
IL_014B: ldarg.1
IL_014C: ldfld RimWorld.FactionDef RimWorld.Faction::def
IL_0151: ldfld Verse.PawnKindDef RimWorld.FactionDef::basicMemberKind
IL_0156: call System.Void Verse.Pawn::ChangeKind(Verse.PawnKindDef
newKindDef)
IL_015B: Label11
IL_015B: Label12
IL_015B: Label13
IL_015B: ldarg.0
IL_015C: ldarg.1
IL_015D: ldnull
IL_015E: call virtual System.Void Verse.Thing::SetFaction(RimWorld.Faction
newFaction, Verse.Pawn recruiter)
IL_0163: ldarg.0
IL_0164: ldc.i4.0
IL_0165: call static System.Void
RimWorld.PawnComponentsUtility::AddAndRemoveDynamicComponents(Verse.Pawn pawn,
System.Boolean actAsIfSpawned)
IL_016A: ldarg.0
IL_016B: call virtual RimWorld.Faction Verse.Thing::get_Faction()
IL_0170: brfalse => Label14
IL_0175: ldarg.0
IL_0176: call virtual RimWorld.Faction Verse.Thing::get_Faction()
IL_017B: callvirt System.Boolean RimWorld.Faction::get_IsPlayer()
IL_0180: brfalse => Label15
IL_0185: ldarg.0
IL_0186: ldfld RimWorld.Pawn_WorkSettings Verse.Pawn::workSettings
IL_018B: brfalse => Label16
IL_0190: ldarg.0
IL_0191: ldfld RimWorld.Pawn_WorkSettings Verse.Pawn::workSettings
IL_0196: callvirt System.Void RimWorld.Pawn_WorkSettings::EnableAndInitialize()
IL_019B: Label16
IL_019B: call static RimWorld.StoryWatcher Verse.Find::get_StoryWatcher()
IL_01A0: ldfld RimWorld.StoryWatcher_PopAdaptation
RimWorld.StoryWatcher::watcherPopAdaptation
IL_01A5: ldarg.0
IL_01A6: ldc.i4.0
IL_01A7: callvirt System.Void
RimWorld.StoryWatcher_PopAdaptation::Notify_PawnEvent(Verse.Pawn p,
RimWorld.PopAdaptationEvent ev)
IL_01AC: Label14
IL_01AC: Label15
IL_01AC: ldarg.0
IL_01AD: call System.Boolean Verse.Pawn::get_Drafted()
IL_01B2: brfalse => Label17
IL_01B7: ldarg.0
IL_01B8: ldfld RimWorld.Pawn_DraftController Verse.Pawn::drafter
IL_01BD: ldc.i4.0
IL_01BE: callvirt System.Void
RimWorld.Pawn_DraftController::set_Drafted(System.Boolean value)
IL_01C3: Label17
IL_01C3: ldarg.0
IL_01C4: call static System.Void
Verse.ReachabilityUtility::ClearCacheFor(Verse.Pawn p)
IL_01C9: ldarg.0
IL_01CA: ldfld Verse.Pawn_HealthTracker Verse.Pawn::health
IL_01CF: ldfld RimWorld.BillStack Verse.Pawn_HealthTracker::surgeryBills
IL_01D4: callvirt System.Void RimWorld.BillStack::Clear()
IL_01D9: ldarg.0
IL_01DA: call System.Boolean Verse.Thing::get_Spawned()
IL_01DF: brfalse => Label18
IL_01E4: ldarg.0
IL_01E5: call virtual Verse.Map Verse.Thing::get_Map()
IL_01EA: ldfld Verse.MapPawns Verse.Map::mapPawns
IL_01EF: ldarg.0
IL_01F0: callvirt System.Void Verse.MapPawns::RegisterPawn(Verse.Pawn p)
IL_01F5: Label18
IL_01F5: ldarg.0
IL_01F6: call System.Void Verse.Pawn::GenerateNecessaryName()
IL_01FB: ldarg.0
IL_01FC: ldfld RimWorld.Pawn_PlayerSettings Verse.Pawn::playerSettings
IL_0201: brfalse => Label19
IL_0206: ldarg.0
IL_0207: ldfld RimWorld.Pawn_PlayerSettings Verse.Pawn::playerSettings
IL_020C: callvirt System.Void RimWorld.Pawn_PlayerSettings::ResetMedicalCare()
IL_0211: Label19
IL_0211: ldarg.0
IL_0212: ldc.i4.1
IL_0213: ldc.i4.0
IL_0214: ldc.i4.1
IL_0215: call System.Void Verse.Pawn::ClearMind(System.Boolean
ifLayingKeepLaying, System.Boolean clearInspiration, System.Boolean
clearMentalState)
IL_021A: ldarg.0
IL_021B: call System.Boolean Verse.Pawn::get_Dead()
IL_0220: brtrue => Label20
IL_0225: ldarg.0
IL_0226: ldfld RimWorld.Pawn_NeedsTracker Verse.Pawn::needs
IL_022B: ldfld RimWorld.Need_Mood RimWorld.Pawn_NeedsTracker::mood
IL_0230: brfalse => Label21
IL_0235: ldarg.0
IL_0236: ldfld RimWorld.Pawn_NeedsTracker Verse.Pawn::needs
IL_023B: ldfld RimWorld.Need_Mood RimWorld.Pawn_NeedsTracker::mood
IL_0240: ldfld RimWorld.ThoughtHandler RimWorld.Need_Mood::thoughts
IL_0245: ldfld RimWorld.SituationalThoughtHandler
RimWorld.ThoughtHandler::situational
IL_024A: callvirt System.Void
RimWorld.SituationalThoughtHandler::Notify_SituationalThoughtsDirty()
IL_024F: Label20
IL_024F: Label21
IL_024F: ldarg.0
IL_0250: call System.Boolean Verse.Thing::get_Spawned()
IL_0255: brfalse => Label22
IL_025A: ldarg.0
IL_025B: call virtual Verse.Map Verse.Thing::get_Map()
IL_0260: ldfld Verse.AI.AttackTargetsCache Verse.Map::attackTargetsCache
IL_0265: ldarg.0
IL_0266: callvirt System.Void
Verse.AI.AttackTargetsCache::UpdateTarget(Verse.AI.IAttackTarget t)
IL_026B: Label22
IL_026B: call static RimWorld.GameEnder Verse.Find::get_GameEnder()
IL_0270: callvirt System.Void RimWorld.GameEnder::CheckOrUpdateGameOver()
IL_0275: ldarg.0
IL_0276: call static System.Void
RimWorld.AddictionUtility::CheckDrugAddictionTeachOpportunity(Verse.Pawn pawn)
IL_027B: ldarg.0
IL_027C: ldfld RimWorld.Pawn_NeedsTracker Verse.Pawn::needs
IL_0281: brfalse => Label23
IL_0286: ldarg.0
IL_0287: ldfld RimWorld.Pawn_NeedsTracker Verse.Pawn::needs
IL_028C: callvirt System.Void
RimWorld.Pawn_NeedsTracker::AddOrRemoveNeedsAsAppropriate()
IL_0291: Label23
IL_0291: ldarg.0
IL_0292: ldfld RimWorld.Pawn_PlayerSettings Verse.Pawn::playerSettings
IL_0297: brfalse => Label24
IL_029C: ldarg.0
IL_029D: ldfld RimWorld.Pawn_PlayerSettings Verse.Pawn::playerSettings
IL_02A2: callvirt System.Void
RimWorld.Pawn_PlayerSettings::Notify_FactionChanged()
IL_02A7: Label24
IL_02A7: ldarg.0
IL_02A8: ldfld RimWorld.Pawn_RelationsTracker Verse.Pawn::relations
IL_02AD: brfalse => Label25
IL_02B2: ldarg.0
IL_02B3: ldfld RimWorld.Pawn_RelationsTracker Verse.Pawn::relations
IL_02B8: callvirt System.Void
RimWorld.Pawn_RelationsTracker::Notify_ChangedFaction()
IL_02BD: Label25
IL_02BD: ldarg.0
IL_02BE: call Verse.RaceProperties Verse.Pawn::get_RaceProps()
IL_02C3: callvirt System.Boolean Verse.RaceProperties::get_Animal()
IL_02C8: brfalse => Label26
IL_02CD: ldarg.1
IL_02CE: call static RimWorld.Faction RimWorld.Faction::get_OfPlayer()
IL_02D3: bne.un => Label27
IL_02D8: ldarg.0
IL_02D9: ldfld RimWorld.Pawn_TrainingTracker Verse.Pawn::training
IL_02DE: ldsfld RimWorld.TrainableDef RimWorld.TrainableDefOf::Tameness
IL_02E3: ldc.i4.1
IL_02E4: callvirt System.Void
RimWorld.Pawn_TrainingTracker::SetWantedRecursive(RimWorld.TrainableDef td,
System.Boolean checkOn)
IL_02E9: ldarg.0
IL_02EA: ldfld RimWorld.Pawn_TrainingTracker Verse.Pawn::training
IL_02EF: ldsfld RimWorld.TrainableDef RimWorld.TrainableDefOf::Tameness
IL_02F4: ldarg.2
IL_02F5: ldc.i4.1
IL_02F6: callvirt System.Void
RimWorld.Pawn_TrainingTracker::Train(RimWorld.TrainableDef td, Verse.Pawn trainer,
System.Boolean complete)
IL_02FB: ldarg.0
IL_02FC: call Verse.RaceProperties Verse.Pawn::get_RaceProps()
IL_0301: callvirt System.Boolean Verse.RaceProperties::get_Roamer()
IL_0306: brfalse => Label28
IL_030B: ldarg.0
IL_030C: ldfld Verse.AI.Pawn_MindState Verse.Pawn::mindState
IL_0311: brfalse => Label29
IL_0316: ldarg.0
IL_0317: ldfld Verse.AI.Pawn_MindState Verse.Pawn::mindState
IL_031C: call static Verse.TickManager Verse.Find::get_TickManager()
IL_0321: callvirt System.Int32 Verse.TickManager::get_TicksGame()
IL_0326: newobj System.Void System.Nullable`1<System.Int32>::.ctor(System.Int32
value)
IL_032B: stfld System.Nullable`1<System.Int32>
Verse.AI.Pawn_MindState::lastStartRoamCooldownTick
IL_0330: Label26
IL_0330: Label27
IL_0330: Label28
IL_0330: Label29
IL_0330: ldloc.0
IL_0331: call static RimWorld.Faction RimWorld.Faction::get_OfPlayer()
IL_0336: bne.un => Label30
IL_033B: ldarg.0
IL_033C: call static System.Void
RimWorld.BillUtility::Notify_ColonistUnavailable(Verse.Pawn pawn)
IL_0341: Label30
IL_0341: ldarg.1
IL_0342: call static RimWorld.Faction RimWorld.Faction::get_OfPlayer()
IL_0347: bne.un => Label31
IL_034C: call static RimWorld.StoryWatcher Verse.Find::get_StoryWatcher()
IL_0351: ldfld RimWorld.StatsRecord RimWorld.StoryWatcher::statsRecord
IL_0356: callvirt System.Void RimWorld.StatsRecord::UpdateGreatestPopulation()
IL_035B: call static RimWorld.Planet.World Verse.Find::get_World()
IL_0360: callvirt virtual RimWorld.StoryState
RimWorld.Planet.World::get_StoryState()
IL_0365: callvirt System.Void RimWorld.StoryState::RecordPopulationIncrease()
IL_036A: Label31
IL_036A: ldarg.1
IL_036B: brfalse => Label32
IL_0370: ldarg.1
IL_0371: ldarg.0
IL_0372: callvirt System.Void RimWorld.Faction::Notify_PawnJoined(Verse.Pawn p)
IL_0377: Label32
IL_0377: ldarg.0
IL_0378: call RimWorld.Ideo Verse.Pawn::get_Ideo()
IL_037D: brfalse => Label33
IL_0382: ldarg.0
IL_0383: call RimWorld.Ideo Verse.Pawn::get_Ideo()
IL_0388: ldarg.0
IL_0389: ldloc.0
IL_038A: ldarg.1
IL_038B: callvirt System.Void
RimWorld.Ideo::Notify_MemberChangedFaction(Verse.Pawn p, RimWorld.Faction
oldFaction, RimWorld.Faction newFaction)
IL_0390: Label33
IL_0390: ldarg.0
IL_0391: ldfld Verse.Pawn_AgeTracker Verse.Pawn::ageTracker
IL_0396: dup
IL_0397: brtrue => Label34
IL_039C: pop
IL_039D: br => Label35
IL_03A2: Label34
IL_03A2: ldc.i4.1
IL_03A3: ldc.i4.0
IL_03A4: call System.Void
Verse.Pawn_AgeTracker::ResetAgeReversalDemand(Verse.AgeReversalReason reason,
System.Boolean cancelInitialization)
IL_03A9: Label35
IL_03A9: ldarg.0
IL_03AA: ldfld RimWorld.Pawn_RopeTracker Verse.Pawn::roping
IL_03AF: dup
IL_03B0: brtrue => Label36
IL_03B5: pop
IL_03B6: br => Label37
IL_03BB: Label36
IL_03BB: call System.Void RimWorld.Pawn_RopeTracker::BreakAllRopes()
IL_03C0: Label37
IL_03C0: call static System.Boolean Verse.ModsConfig::get_BiotechActive()
IL_03C5: brfalse => Label38
IL_03CA: ldarg.0
IL_03CB: ldfld RimWorld.Pawn_MechanitorTracker Verse.Pawn::mechanitor
IL_03D0: brfalse => Label39
IL_03D5: ldarg.0
IL_03D6: ldfld RimWorld.Pawn_MechanitorTracker Verse.Pawn::mechanitor
IL_03DB: callvirt System.Void
RimWorld.Pawn_MechanitorTracker::Notify_ChangedFaction()
IL_03E0: Label38
IL_03E0: Label39
IL_03E0: ldloc.0
IL_03E1: brfalse => Label40
IL_03E6: call static RimWorld.FactionManager Verse.Find::get_FactionManager()
IL_03EB: ldloc.0
IL_03EC: callvirt System.Void
RimWorld.FactionManager::Notify_PawnLeftFaction(RimWorld.Faction oldFaction)
IL_03F1: // end original
IL_03F1: Label40
IL_03F1: Label41
IL_03F1: ldarg.0
IL_03F2: ldarg 1
IL_03F6: call static System.Void VFECore.SetFaction::Postfix(Verse.Pawn
__instance, RimWorld.Faction newFaction)
IL_03FB: ldarg.0
IL_03FC: ldarg 1
IL_0400: call static System.Void
AlienRace.HarmonyPatches::SetFactionPostfix(Verse.Pawn __instance, RimWorld.Faction
newFaction)
IL_0405: ret
DONE

### Patch: System.Void Verse.Thing::SetFactionDirect(RimWorld.Faction newFaction)


### Replacement: static System.Void
Verse.Thing::Verse.Thing.SetFactionDirect_Patch2(Verse.Thing this, RimWorld.Faction
newFaction)
IL_0000: Local var 0: System.Boolean
IL_0000: ldc.i4 0
IL_0005: stloc 0 (System.Boolean)
IL_0009: ldc.i4.1
IL_000A: stloc 0 (System.Boolean)
IL_000E: ldloc 0 (System.Boolean)
IL_0012: brfalse => Label1
IL_0017: ldarg.0
IL_0018: ldarg 1
IL_001C: call static System.Boolean
DoorsExpanded.HarmonyPatches::DoorExpandedSetFactionDirectPrefix(Verse.Thing
__instance, RimWorld.Faction newFaction)
IL_0021: stloc 0 (System.Boolean)
IL_0025: Label1
IL_0025: nop
IL_0026: ldloc 0 (System.Boolean)
IL_002A: brfalse => Label0
IL_002F: // start original
IL_002F: ldarg.0
IL_0030: ldfld Verse.ThingDef Verse.Thing::def
IL_0035: callvirt System.Boolean Verse.ThingDef::get_CanHaveFaction()
IL_003A: brtrue => Label2
IL_003F: ldstr "Tried to SetFactionDirect on "
IL_0044: ldarg.0
IL_0045: ldstr " which cannot have a faction."
IL_004A: call static System.String System.String::Concat(System.Object arg0,
System.Object arg1, System.Object arg2)
IL_004F: call static System.Void Verse.Log::Error(System.String text)
IL_0054: br => Label3
IL_0059: Label2
IL_0059: ldarg.0
IL_005A: ldarg.1
IL_005B: stfld RimWorld.Faction Verse.Thing::factionInt
IL_0060: // end original
IL_0060: Label3
IL_0060: Label0
IL_0060: ldarg.0
IL_0061: ldarg 1
IL_0065: call static System.Void
AlienRace.HarmonyPatches::SetFactionDirectPostfix(Verse.Thing __instance,
RimWorld.Faction newFaction)
IL_006A: ret
DONE

### Patch: static System.Single


RimWorld.JobGiver_OptimizeApparel::ApparelScoreGain(Verse.Pawn pawn,
RimWorld.Apparel ap, System.Collections.Generic.List`1<System.Single>
wornScoresCache)
### Replacement: static System.Single
RimWorld.JobGiver_OptimizeApparel::RimWorld.JobGiver_OptimizeApparel.ApparelScoreGa
in_Patch1(Verse.Pawn pawn, RimWorld.Apparel ap,
System.Collections.Generic.List`1<System.Single> wornScoresCache)
IL_0000: Local var 0: System.Single
IL_0000: Local var 1: System.Collections.Generic.List`1<RimWorld.Apparel>
IL_0000: Local var 2: System.Boolean
IL_0000: Local var 3: System.Int32
IL_0000: Local var 4: System.Single
IL_0000: ldc.r4 0
IL_0005: stloc 4 (System.Single)
IL_0009: // start original
IL_0009: ldarg.1
IL_000A: ldfld Verse.ThingDef Verse.Thing::def
IL_000F: ldsfld Verse.ThingDef RimWorld.ThingDefOf::Apparel_ShieldBelt
IL_0014: bne.un => Label0
IL_0019: ldarg.0
IL_001A: ldfld Verse.Pawn_EquipmentTracker Verse.Pawn::equipment
IL_001F: callvirt Verse.ThingWithComps Verse.Pawn_EquipmentTracker::get_Primary()
IL_0024: brfalse => Label1
IL_0029: ldarg.0
IL_002A: ldfld Verse.Pawn_EquipmentTracker Verse.Pawn::equipment
IL_002F: callvirt Verse.ThingWithComps Verse.Pawn_EquipmentTracker::get_Primary()
IL_0034: ldfld Verse.ThingDef Verse.Thing::def
IL_0039: callvirt System.Boolean Verse.ThingDef::get_IsWeaponUsingProjectiles()
IL_003E: brfalse => Label2
IL_0043: ldc.r4 -1000
IL_0048: br => Label11
IL_004D: Label0
IL_004D: Label1
IL_004D: Label2
IL_004D: ldarg.1
IL_004E: ldfld Verse.ThingDef Verse.Thing::def
IL_0053: ldfld RimWorld.ApparelProperties Verse.ThingDef::apparel
IL_0058: ldfld System.Boolean RimWorld.ApparelProperties::ignoredByNonViolent
IL_005D: brfalse => Label3
IL_0062: ldarg.0
IL_0063: ldc.i4.8
IL_0064: callvirt System.Boolean Verse.Pawn::WorkTagIsDisabled(Verse.WorkTags w)
IL_0069: brfalse => Label4
IL_006E: ldc.r4 -1000
IL_0073: br => Label12
IL_0078: Label3
IL_0078: Label4
IL_0078: ldarg.0
IL_0079: ldarg.1
IL_007A: call static System.Single
RimWorld.JobGiver_OptimizeApparel::ApparelScoreRaw(Verse.Pawn pawn,
RimWorld.Apparel ap)
IL_007F: stloc.0
IL_0080: ldarg.0
IL_0081: ldfld RimWorld.Pawn_ApparelTracker Verse.Pawn::apparel
IL_0086: callvirt System.Collections.Generic.List`1<RimWorld.Apparel>
RimWorld.Pawn_ApparelTracker::get_WornApparel()
IL_008B: stloc.1
IL_008C: ldc.i4.0
IL_008D: stloc.2
IL_008E: ldc.i4.0
IL_008F: stloc.3
IL_0090: br => Label5
IL_0095: Label9
IL_0095: ldloc.1
IL_0096: ldloc.3
IL_0097: callvirt virtual RimWorld.Apparel
System.Collections.Generic.List`1<RimWorld.Apparel>::get_Item(System.Int32 index)
IL_009C: ldfld Verse.ThingDef Verse.Thing::def
IL_00A1: ldarg.1
IL_00A2: ldfld Verse.ThingDef Verse.Thing::def
IL_00A7: ldarg.0
IL_00A8: callvirt Verse.RaceProperties Verse.Pawn::get_RaceProps()
IL_00AD: ldfld Verse.BodyDef Verse.RaceProperties::body
IL_00B2: call static System.Boolean
RimWorld.ApparelUtility::CanWearTogether(Verse.ThingDef A, Verse.ThingDef B,
Verse.BodyDef body)
IL_00B7: brtrue => Label6
IL_00BC: ldarg.0
IL_00BD: ldfld RimWorld.Pawn_OutfitTracker Verse.Pawn::outfits
IL_00C2: ldfld RimWorld.OutfitForcedHandler
RimWorld.Pawn_OutfitTracker::forcedHandler
IL_00C7: ldloc.1
IL_00C8: ldloc.3
IL_00C9: callvirt virtual RimWorld.Apparel
System.Collections.Generic.List`1<RimWorld.Apparel>::get_Item(System.Int32 index)
IL_00CE: callvirt System.Boolean
RimWorld.OutfitForcedHandler::AllowedToAutomaticallyDrop(RimWorld.Apparel ap)
IL_00D3: brfalse => Label7
IL_00D8: ldarg.0
IL_00D9: ldfld RimWorld.Pawn_ApparelTracker Verse.Pawn::apparel
IL_00DE: ldloc.1
IL_00DF: ldloc.3
IL_00E0: callvirt virtual RimWorld.Apparel
System.Collections.Generic.List`1<RimWorld.Apparel>::get_Item(System.Int32 index)
IL_00E5: callvirt System.Boolean
RimWorld.Pawn_ApparelTracker::IsLocked(RimWorld.Apparel apparel)
IL_00EA: brfalse => Label8
IL_00EF: Label7
IL_00EF: ldc.r4 -1000
IL_00F4: br => Label13
IL_00F9: Label8
IL_00F9: ldloc.0
IL_00FA: ldarg.2
IL_00FB: ldloc.3
IL_00FC: callvirt virtual System.Single
System.Collections.Generic.List`1<System.Single>::get_Item(System.Int32 index)
IL_0101: sub
IL_0102: stloc.0
IL_0103: ldc.i4.1
IL_0104: stloc.2
IL_0105: Label6
IL_0105: ldloc.3
IL_0106: ldc.i4.1
IL_0107: add
IL_0108: stloc.3
IL_0109: Label5
IL_0109: ldloc.3
IL_010A: ldloc.1
IL_010B: callvirt virtual System.Int32
System.Collections.Generic.List`1<RimWorld.Apparel>::get_Count()
IL_0110: blt => Label9
IL_0115: ldloc.2
IL_0116: brtrue => Label10
IL_011B: ldloc.0
IL_011C: ldc.r4 10
IL_0121: mul
IL_0122: stloc.0
IL_0123: Label10
IL_0123: ldloc.0
IL_0124: // end original
IL_0124: Label11
IL_0124: Label12
IL_0124: Label13
IL_0124: stloc 4 (System.Single)
IL_0128: ldarg 0
IL_012C: ldarg 1
IL_0130: ldloca 4 (System.Single)
IL_0134: call static System.Void
AlienRace.HarmonyPatches::ApparelScoreGainPostFix(Verse.Pawn pawn, RimWorld.Apparel
ap, System.Single& __result)
IL_0139: ldloc 4 (System.Single)
IL_013D: ret
DONE

### Patch: static System.Boolean RimWorld.ThoughtUtility::CanGetThought(Verse.Pawn


pawn, RimWorld.ThoughtDef def, System.Boolean checkIfNullified)
### Replacement: static System.Boolean
RimWorld.ThoughtUtility::RimWorld.ThoughtUtility.CanGetThought_Patch1(Verse.Pawn
pawn, RimWorld.ThoughtDef def, System.Boolean checkIfNullified)
IL_0000: Local var 0: System.Boolean
IL_0000: Local var 1: RimWorld.ExpectationDef
IL_0000: Local var 2: System.Boolean
IL_0000: Local var 3: System.Int32
IL_0000: Local var 4: System.Int32
IL_0000: Local var 5: Verse.Gene
IL_0000: Local var 6: System.Boolean
IL_0000: ldc.i4 0
IL_0005: stloc 6 (System.Boolean)
IL_0009: // start original
.try
{
IL_0009: ldarg.1
IL_000A: ldfld Verse.DevelopmentalStage
RimWorld.ThoughtDef::developmentalStageFilter
IL_000F: ldarg.0
IL_0010: callvirt Verse.DevelopmentalStage
Verse.Pawn::get_DevelopmentalStage()
IL_0015: call static System.Boolean
Verse.DevelopmentalStageExtensions::Has(Verse.DevelopmentalStage
developmentalStage, Verse.DevelopmentalStage query)
IL_001A: brtrue => Label0
IL_001F: ldc.i4.0
IL_0020: stloc.0
IL_0021: leave => Label1
IL_0026: Label0
IL_0026: ldarg.1
IL_0027: ldfld Verse.Gender RimWorld.ThoughtDef::gender
IL_002C: brfalse => Label2
IL_0031: ldarg.0
IL_0032: ldfld Verse.Gender Verse.Pawn::gender
IL_0037: ldarg.1
IL_0038: ldfld Verse.Gender RimWorld.ThoughtDef::gender
IL_003D: beq => Label3
IL_0042: ldarg.1
IL_0043: callvirt System.Boolean RimWorld.ThoughtDef::get_IsSocial()
IL_0048: brtrue => Label4
IL_004D: ldc.i4.0
IL_004E: stloc.0
IL_004F: leave => Label5
IL_0054: Label2
IL_0054: Label3
IL_0054: Label4
IL_0054: ldarg.1
IL_0055: ldfld System.Boolean
RimWorld.ThoughtDef::doNotApplyToQuestLodgers
IL_005A: brfalse => Label6
IL_005F: ldarg.0
IL_0060: call static System.Boolean
RimWorld.QuestUtility::IsQuestLodger(Verse.Pawn p)
IL_0065: brfalse => Label7
IL_006A: ldc.i4.0
IL_006B: stloc.0
IL_006C: leave => Label8
IL_0071: Label6
IL_0071: Label7
IL_0071: ldarg.1
IL_0072: ldfld RimWorld.ExpectationDef
RimWorld.ThoughtDef::minExpectation
IL_0077: brfalse => Label9
IL_007C: ldarg.0
IL_007D: callvirt System.Boolean Verse.Thing::get_Spawned()
IL_0082: brtrue => Label10
IL_0087: ldc.i4.0
IL_0088: stloc.0
IL_0089: leave => Label11
IL_008E: Label10
IL_008E: ldarg.0
IL_008F: callvirt Verse.Map Verse.Thing::get_MapHeld()
IL_0094: call static RimWorld.ExpectationDef
RimWorld.ExpectationsUtility::CurrentExpectationFor(Verse.Map m)
IL_0099: stloc.1
IL_009A: ldloc.1
IL_009B: brfalse => Label12
IL_00A0: ldloc.1
IL_00A1: ldfld System.Int32 RimWorld.ExpectationDef::order
IL_00A6: ldarg.1
IL_00A7: ldfld RimWorld.ExpectationDef
RimWorld.ThoughtDef::minExpectation
IL_00AC: ldfld System.Int32 RimWorld.ExpectationDef::order
IL_00B1: bge => Label13
IL_00B6: ldc.i4.0
IL_00B7: stloc.0
IL_00B8: leave => Label14
IL_00BD: Label9
IL_00BD: Label12
IL_00BD: Label13
IL_00BD: ldarg.1
IL_00BE: ldfld System.Boolean RimWorld.ThoughtDef::validWhileDespawned
IL_00C3: brtrue => Label15
IL_00C8: ldarg.0
IL_00C9: callvirt System.Boolean Verse.Thing::get_Spawned()
IL_00CE: brtrue => Label16
IL_00D3: ldarg.1
IL_00D4: callvirt System.Boolean RimWorld.ThoughtDef::get_IsMemory()
IL_00D9: brtrue => Label17
IL_00DE: ldc.i4.0
IL_00DF: stloc.0
IL_00E0: leave => Label18
IL_00E5: Label15
IL_00E5: Label16
IL_00E5: Label17
IL_00E5: ldarg.0
IL_00E6: ldfld RimWorld.Pawn_StoryTracker Verse.Pawn::story
IL_00EB: ldfld RimWorld.TraitSet RimWorld.Pawn_StoryTracker::traits
IL_00F0: ldarg.1
IL_00F1: callvirt System.Boolean
RimWorld.TraitSet::IsThoughtDisallowed(RimWorld.ThoughtDef thought)
IL_00F6: brfalse => Label19
IL_00FB: ldc.i4.0
IL_00FC: stloc.0
IL_00FD: leave => Label20
IL_0102: Label19
IL_0102: ldarg.1
IL_0103: ldfld System.Collections.Generic.List`1<RimWorld.TraitDef>
RimWorld.ThoughtDef::requiredTraits
IL_0108: call static System.Boolean
Verse.GenList::NullOrEmpty(System.Collections.Generic.IList`1<RimWorld.TraitDef>
list)
IL_010D: brtrue => Label21
IL_0112: ldc.i4.0
IL_0113: stloc.2
IL_0114: ldc.i4.0
IL_0115: stloc.3
IL_0116: br => Label22
IL_011B: Label27
IL_011B: ldarg.0
IL_011C: ldfld RimWorld.Pawn_StoryTracker Verse.Pawn::story
IL_0121: ldfld RimWorld.TraitSet RimWorld.Pawn_StoryTracker::traits
IL_0126: ldarg.1
IL_0127: ldfld System.Collections.Generic.List`1<RimWorld.TraitDef>
RimWorld.ThoughtDef::requiredTraits
IL_012C: ldloc.3
IL_012D: callvirt virtual RimWorld.TraitDef
System.Collections.Generic.List`1<RimWorld.TraitDef>::get_Item(System.Int32 index)
IL_0132: callvirt System.Boolean
RimWorld.TraitSet::HasTrait(RimWorld.TraitDef tDef)
IL_0137: brfalse => Label23
IL_013C: ldarg.1
IL_013D: callvirt System.Boolean
RimWorld.ThoughtDef::get_RequiresSpecificTraitsDegree()
IL_0142: brfalse => Label24
IL_0147: ldarg.1
IL_0148: ldfld System.Int32 RimWorld.ThoughtDef::requiredTraitsDegree
IL_014D: ldarg.0
IL_014E: ldfld RimWorld.Pawn_StoryTracker Verse.Pawn::story
IL_0153: ldfld RimWorld.TraitSet RimWorld.Pawn_StoryTracker::traits
IL_0158: ldarg.1
IL_0159: ldfld System.Collections.Generic.List`1<RimWorld.TraitDef>
RimWorld.ThoughtDef::requiredTraits
IL_015E: ldloc.3
IL_015F: callvirt virtual RimWorld.TraitDef
System.Collections.Generic.List`1<RimWorld.TraitDef>::get_Item(System.Int32 index)
IL_0164: callvirt System.Int32
RimWorld.TraitSet::DegreeOfTrait(RimWorld.TraitDef tDef)
IL_0169: bne.un => Label25
IL_016E: Label24
IL_016E: ldc.i4.1
IL_016F: stloc.2
IL_0170: br => Label26
IL_0175: Label23
IL_0175: Label25
IL_0175: ldloc.3
IL_0176: ldc.i4.1
IL_0177: add
IL_0178: stloc.3
IL_0179: Label22
IL_0179: ldloc.3
IL_017A: ldarg.1
IL_017B: ldfld System.Collections.Generic.List`1<RimWorld.TraitDef>
RimWorld.ThoughtDef::requiredTraits
IL_0180: callvirt virtual System.Int32
System.Collections.Generic.List`1<RimWorld.TraitDef>::get_Count()
IL_0185: blt => Label27
IL_018A: Label26
IL_018A: ldloc.2
IL_018B: brtrue => Label28
IL_0190: ldc.i4.0
IL_0191: stloc.0
IL_0192: leave => Label29
IL_0197: Label21
IL_0197: Label28
IL_0197: call static System.Boolean
Verse.ModsConfig::get_BiotechActive()
IL_019C: brfalse => Label30
IL_01A1: ldarg.1
IL_01A2: ldfld System.Collections.Generic.List`1<Verse.GeneDef>
RimWorld.ThoughtDef::requiredGenes
IL_01A7: call static System.Boolean
Verse.GenList::NullOrEmpty(System.Collections.Generic.IList`1<Verse.GeneDef> list)
IL_01AC: brtrue => Label31
IL_01B1: ldarg.0
IL_01B2: ldfld RimWorld.Pawn_GeneTracker Verse.Pawn::genes
IL_01B7: brtrue => Label32
IL_01BC: ldc.i4.0
IL_01BD: stloc.0
IL_01BE: leave => Label33
IL_01C3: Label32
IL_01C3: ldc.i4.0
IL_01C4: stloc.s 4 (System.Int32)
IL_01C6: br => Label34
IL_01CB: Label38
IL_01CB: ldarg.0
IL_01CC: ldfld RimWorld.Pawn_GeneTracker Verse.Pawn::genes
IL_01D1: ldarg.1
IL_01D2: ldfld System.Collections.Generic.List`1<Verse.GeneDef>
RimWorld.ThoughtDef::requiredGenes
IL_01D7: ldloc.s 4 (System.Int32)
IL_01D9: callvirt virtual Verse.GeneDef
System.Collections.Generic.List`1<Verse.GeneDef>::get_Item(System.Int32 index)
IL_01DE: callvirt Verse.Gene
RimWorld.Pawn_GeneTracker::GetGene(Verse.GeneDef geneDef)
IL_01E3: stloc.s 5 (Verse.Gene)
IL_01E5: ldloc.s 5 (Verse.Gene)
IL_01E7: brfalse => Label35
IL_01EC: ldloc.s 5 (Verse.Gene)
IL_01EE: callvirt virtual System.Boolean Verse.Gene::get_Active()
IL_01F3: brtrue => Label36
IL_01F8: Label35
IL_01F8: ldc.i4.0
IL_01F9: stloc.0
IL_01FA: leave => Label37
IL_01FF: Label36
IL_01FF: ldloc.s 4 (System.Int32)
IL_0201: ldc.i4.1
IL_0202: add
IL_0203: stloc.s 4 (System.Int32)
IL_0205: Label34
IL_0205: ldloc.s 4 (System.Int32)
IL_0207: ldarg.1
IL_0208: ldfld System.Collections.Generic.List`1<Verse.GeneDef>
RimWorld.ThoughtDef::requiredGenes
IL_020D: callvirt virtual System.Int32
System.Collections.Generic.List`1<Verse.GeneDef>::get_Count()
IL_0212: blt => Label38
IL_0217: Label30
IL_0217: Label31
IL_0217: ldarg.1
IL_0218: ldfld System.Boolean
RimWorld.ThoughtDef::nullifiedIfNotColonist
IL_021D: brfalse => Label39
IL_0222: ldarg.0
IL_0223: callvirt System.Boolean Verse.Pawn::get_IsColonist()
IL_0228: brtrue => Label40
IL_022D: ldc.i4.0
IL_022E: stloc.0
IL_022F: leave => Label41
IL_0234: Label39
IL_0234: Label40
IL_0234: ldarg.2
IL_0235: brfalse => Label42
IL_023A: ldarg.0
IL_023B: ldarg.1
IL_023C: call static System.Boolean
RimWorld.ThoughtUtility::ThoughtNullified(Verse.Pawn pawn, RimWorld.ThoughtDef def)
IL_0241: brfalse => Label43
IL_0246: ldc.i4.0
IL_0247: stloc.0
IL_0248: leave => Label44
IL_024D: Label42
IL_024D: Label43
IL_024D: leave => Label45
IL_0252: leave => (autogenerated)
} // end try
.finally
{
IL_0257: endfinally
IL_0258: leave => (autogenerated)
} // end handler
IL_0259: Label45
IL_0259: ldc.i4.1
IL_025A: br => Label50
IL_025F: Label1
IL_025F: Label5
IL_025F: Label8
IL_025F: Label11
IL_025F: Label14
IL_025F: Label18
IL_025F: Label20
IL_025F: Label29
IL_025F: Label33
IL_025F: Label37
IL_025F: Label41
IL_025F: Label44
IL_025F: ldloc.0
IL_0260: // end original
IL_0260: Label50
IL_0260: stloc 6 (System.Boolean)
IL_0264: ldloca 6 (System.Boolean)
IL_0268: ldarg 1
IL_026C: ldarg 0
IL_0270: call static System.Void
AlienRace.HarmonyPatches::CanGetThoughtPostfix(System.Boolean& __result,
RimWorld.ThoughtDef def, Verse.Pawn pawn)
IL_0275: ldloc 6 (System.Boolean)
IL_0279: ret
DONE

### Patch: static System.Collections.Generic.List`1<RimWorld.ThoughtFromIngesting>


RimWorld.FoodUtility::ThoughtsFromIngesting(Verse.Pawn ingester, Verse.Thing
foodSource, Verse.ThingDef foodDef)
### Replacement: static
System.Collections.Generic.List`1<RimWorld.ThoughtFromIngesting>
RimWorld.FoodUtility::RimWorld.FoodUtility.ThoughtsFromIngesting_Patch1(Verse.Pawn
ingester, Verse.Thing foodSource, Verse.ThingDef foodDef)
IL_0000: Local var 0: RimWorld.MeatSourceCategory
IL_0000: Local var 1: RimWorld.CompIngredients
IL_0000: Local var 2: RimWorld.Building_NutrientPasteDispenser
IL_0000: Local var 3: System.Int32
IL_0000: Local var 4: System.Boolean
IL_0000: Local var 5: System.Boolean
IL_0000: Local var 6: System.Int32
IL_0000: Local var 7: System.Boolean
IL_0000: Local var 8: System.Boolean
IL_0000: Local var 9: Verse.Thing
IL_0000: Local var 10: System.Boolean
IL_0000: Local var 11: System.Boolean
IL_0000: Local var 12: System.Boolean
IL_0000: Local var 13: System.Boolean
IL_0000: Local var 14: RimWorld.FoodKind
IL_0000: Local var 15: RimWorld.FoodKind
IL_0000: Local var 16:
System.Collections.Generic.List`1<RimWorld.FoodUtility/ThoughtFromIngesting>
IL_0000: ldnull
IL_0001: stloc 16
(System.Collections.Generic.List`1[RimWorld.FoodUtility+ThoughtFromIngesting])
IL_0005: // start original
IL_0005: ldsfld
System.Collections.Generic.List`1<RimWorld.ThoughtFromIngesting>
RimWorld.FoodUtility::ingestThoughts
IL_000A: callvirt virtual System.Void
System.Collections.Generic.List`1<RimWorld.ThoughtFromIngesting>::Clear()
IL_000F: ldsfld System.Collections.Generic.List`1<RimWorld.ThoughtDef>
RimWorld.FoodUtility::extraIngestThoughtsFromTraits
IL_0014: callvirt virtual System.Void
System.Collections.Generic.List`1<RimWorld.ThoughtDef>::Clear()
IL_0019: ldarg.0
IL_001A: ldfld RimWorld.Pawn_NeedsTracker Verse.Pawn::needs
IL_001F: brfalse => Label0
IL_0024: ldarg.0
IL_0025: ldfld RimWorld.Pawn_NeedsTracker Verse.Pawn::needs
IL_002A: ldfld RimWorld.Need_Mood RimWorld.Pawn_NeedsTracker::mood
IL_002F: brtrue => Label1
IL_0034: Label0
IL_0034: ldsfld
System.Collections.Generic.List`1<RimWorld.ThoughtFromIngesting>
RimWorld.FoodUtility::ingestThoughts
IL_0039: br => Label44
IL_003E: Label1
IL_003E: ldc.i4.0
IL_003F: stloc.0
IL_0040: ldarg.1
IL_0041: ldfld Verse.ThingDef Verse.Thing::def
IL_0046: callvirt System.Boolean Verse.ThingDef::get_IsCorpse()
IL_004B: brfalse => Label2
IL_0050: ldarg.1
IL_0051: call static RimWorld.MeatSourceCategory
RimWorld.FoodUtility::GetMeatSourceCategoryFromCorpse(Verse.Thing thing)
IL_0056: stloc.0
IL_0057: br => Label3
IL_005C: Label2
IL_005C: ldarg.2
IL_005D: call static RimWorld.MeatSourceCategory
RimWorld.FoodUtility::GetMeatSourceCategory(Verse.ThingDef source)
IL_0062: stloc.0
IL_0063: Label3
IL_0063: ldarg.0
IL_0064: ldfld RimWorld.Pawn_StoryTracker Verse.Pawn::story
IL_0069: dup
IL_006A: brtrue => Label4
IL_006F: pop
IL_0070: br => Label5
IL_0075: Label4
IL_0075: ldfld RimWorld.TraitSet RimWorld.Pawn_StoryTracker::traits
IL_007A: dup
IL_007B: brtrue => Label6
IL_0080: pop
IL_0081: br => Label7
IL_0086: Label6
IL_0086: ldsfld System.Collections.Generic.List`1<RimWorld.ThoughtDef>
RimWorld.FoodUtility::extraIngestThoughtsFromTraits
IL_008B: ldarg.2
IL_008C: ldloc.0
IL_008D: ldc.i4.1
IL_008E: call System.Void
RimWorld.TraitSet::GetExtraThoughtsFromIngestion(System.Collections.Generic.List`1<
RimWorld.ThoughtDef> buffer, Verse.ThingDef ingestible, RimWorld.MeatSourceCategory
meatSourceCategory, System.Boolean direct)
IL_0093: Label5
IL_0093: Label7
IL_0093: ldarg.0
IL_0094: ldfld RimWorld.Pawn_StoryTracker Verse.Pawn::story
IL_0099: ldfld RimWorld.TraitSet RimWorld.Pawn_StoryTracker::traits
IL_009E: ldsfld RimWorld.TraitDef RimWorld.TraitDefOf::Ascetic
IL_00A3: callvirt System.Boolean RimWorld.TraitSet::HasTrait(RimWorld.TraitDef
tDef)
IL_00A8: brtrue => Label8
IL_00AD: ldarg.2
IL_00AE: ldfld RimWorld.IngestibleProperties Verse.ThingDef::ingestible
IL_00B3: ldfld RimWorld.ThoughtDef RimWorld.IngestibleProperties::tasteThought
IL_00B8: brfalse => Label9
IL_00BD: ldarg.0
IL_00BE: ldarg.2
IL_00BF: ldfld RimWorld.IngestibleProperties Verse.ThingDef::ingestible
IL_00C4: ldfld RimWorld.ThoughtDef RimWorld.IngestibleProperties::tasteThought
IL_00C9: ldnull
IL_00CA: ldsfld
System.Collections.Generic.List`1<RimWorld.ThoughtFromIngesting>
RimWorld.FoodUtility::ingestThoughts
IL_00CF: ldarg.2
IL_00D0: ldloc.0
IL_00D1: call static System.Void
RimWorld.FoodUtility::TryAddIngestThought(Verse.Pawn ingester, RimWorld.ThoughtDef
def, RimWorld.Precept fromPrecept,
System.Collections.Generic.List`1<RimWorld.ThoughtFromIngesting> ingestThoughts,
Verse.ThingDef foodDef, RimWorld.MeatSourceCategory meatSourceCategory)
IL_00D6: Label8
IL_00D6: Label9
IL_00D6: ldarg.1
IL_00D7: call static RimWorld.CompIngredients
Verse.ThingCompUtility::TryGetComp(Verse.Thing thing)
IL_00DC: stloc.1
IL_00DD: ldarg.1
IL_00DE: isinst RimWorld.Building_NutrientPasteDispenser
IL_00E3: stloc.2
IL_00E4: ldc.i4.0
IL_00E5: stloc.3
IL_00E6: br => Label10
IL_00EB: Label11
IL_00EB: ldarg.0
IL_00EC: ldsfld System.Collections.Generic.List`1<RimWorld.ThoughtDef>
RimWorld.FoodUtility::extraIngestThoughtsFromTraits
IL_00F1: ldloc.3
IL_00F2: callvirt virtual RimWorld.ThoughtDef
System.Collections.Generic.List`1<RimWorld.ThoughtDef>::get_Item(System.Int32
index)
IL_00F7: ldnull
IL_00F8: ldsfld
System.Collections.Generic.List`1<RimWorld.ThoughtFromIngesting>
RimWorld.FoodUtility::ingestThoughts
IL_00FD: ldarg.2
IL_00FE: ldloc.0
IL_00FF: call static System.Void
RimWorld.FoodUtility::TryAddIngestThought(Verse.Pawn ingester, RimWorld.ThoughtDef
def, RimWorld.Precept fromPrecept,
System.Collections.Generic.List`1<RimWorld.ThoughtFromIngesting> ingestThoughts,
Verse.ThingDef foodDef, RimWorld.MeatSourceCategory meatSourceCategory)
IL_0104: ldloc.3
IL_0105: ldc.i4.1
IL_0106: add
IL_0107: stloc.3
IL_0108: Label10
IL_0108: ldloc.3
IL_0109: ldsfld System.Collections.Generic.List`1<RimWorld.ThoughtDef>
RimWorld.FoodUtility::extraIngestThoughtsFromTraits
IL_010E: callvirt virtual System.Int32
System.Collections.Generic.List`1<RimWorld.ThoughtDef>::get_Count()
IL_0113: blt => Label11
IL_0118: ldloc.1
IL_0119: brfalse => Label12
IL_011E: ldc.i4.0
IL_011F: stloc.s 4 (System.Boolean)
IL_0121: ldc.i4.0
IL_0122: stloc.s 5 (System.Boolean)
IL_0124: ldc.i4.0
IL_0125: stloc.s 6 (System.Int32)
IL_0127: br => Label13
IL_012C: Label16
IL_012C: ldloc.1
IL_012D: ldfld System.Collections.Generic.List`1<Verse.ThingDef>
RimWorld.CompIngredients::ingredients
IL_0132: ldloc.s 6 (System.Int32)
IL_0134: callvirt virtual Verse.ThingDef
System.Collections.Generic.List`1<Verse.ThingDef>::get_Item(System.Int32 index)
IL_0139: ldarg.0
IL_013A: ldsfld
System.Collections.Generic.List`1<RimWorld.ThoughtFromIngesting>
RimWorld.FoodUtility::ingestThoughts
IL_013F: ldloca.s 7 (System.Boolean)
IL_0141: ldloca.s 8 (System.Boolean)
IL_0143: call static System.Void
RimWorld.FoodUtility::AddIngestThoughtsFromIngredient(Verse.ThingDef ingredient,
Verse.Pawn ingester,
System.Collections.Generic.List`1<RimWorld.ThoughtFromIngesting> ingestThoughts,
System.Boolean& ateFungus, System.Boolean& ateNonFungusRawPlant)
IL_0148: ldloc.s 7 (System.Boolean)
IL_014A: brfalse => Label14
IL_014F: ldc.i4.1
IL_0150: stloc.s 4 (System.Boolean)
IL_0152: Label14
IL_0152: ldloc.s 8 (System.Boolean)
IL_0154: brfalse => Label15
IL_0159: ldc.i4.1
IL_015A: stloc.s 5 (System.Boolean)
IL_015C: Label15
IL_015C: ldloc.s 6 (System.Int32)
IL_015E: ldc.i4.1
IL_015F: add
IL_0160: stloc.s 6 (System.Int32)
IL_0162: Label13
IL_0162: ldloc.s 6 (System.Int32)
IL_0164: ldloc.1
IL_0165: ldfld System.Collections.Generic.List`1<Verse.ThingDef>
RimWorld.CompIngredients::ingredients
IL_016A: callvirt virtual System.Int32
System.Collections.Generic.List`1<Verse.ThingDef>::get_Count()
IL_016F: blt => Label16
IL_0174: call static System.Boolean Verse.ModsConfig::get_IdeologyActive()
IL_0179: ldloc.s 5 (System.Boolean)
IL_017B: and
IL_017C: brfalse => Label17
IL_0181: ldloc.s 4 (System.Boolean)
IL_0183: brtrue => Label18
IL_0188: ldsfld RimWorld.HistoryEventDef
RimWorld.HistoryEventDefOf::AteNonFungusMealWithPlants
IL_018D: ldarg.0
IL_018E: ldarg.2
IL_018F: ldloc.0
IL_0190: call static System.Void
RimWorld.FoodUtility::AddThoughtsFromIdeo(RimWorld.HistoryEventDef eventDef,
Verse.Pawn ingester, Verse.ThingDef foodDef, RimWorld.MeatSourceCategory
meatSourceCategory)
IL_0195: br => Label19
IL_019A: Label12
IL_019A: ldloc.2
IL_019B: brfalse => Label20
IL_01A0: ldloc.2
IL_01A1: callvirt virtual Verse.Thing
RimWorld.Building_NutrientPasteDispenser::FindFeedInAnyHopper()
IL_01A6: stloc.s 9 (Verse.Thing)
IL_01A8: ldloc.s 9 (Verse.Thing)
IL_01AA: brfalse => Label21
IL_01AF: ldloc.s 9 (Verse.Thing)
IL_01B1: ldfld Verse.ThingDef Verse.Thing::def
IL_01B6: ldarg.0
IL_01B7: ldsfld
System.Collections.Generic.List`1<RimWorld.ThoughtFromIngesting>
RimWorld.FoodUtility::ingestThoughts
IL_01BC: ldloca.s 10 (System.Boolean)
IL_01BE: ldloca.s 11 (System.Boolean)
IL_01C0: call static System.Void
RimWorld.FoodUtility::AddIngestThoughtsFromIngredient(Verse.ThingDef ingredient,
Verse.Pawn ingester,
System.Collections.Generic.List`1<RimWorld.ThoughtFromIngesting> ingestThoughts,
System.Boolean& ateFungus, System.Boolean& ateNonFungusRawPlant)
IL_01C5: Label17
IL_01C5: Label18
IL_01C5: Label19
IL_01C5: Label20
IL_01C5: Label21
IL_01C5: ldarg.2
IL_01C6: ldfld RimWorld.IngestibleProperties Verse.ThingDef::ingestible
IL_01CB: ldfld RimWorld.ThoughtDef
RimWorld.IngestibleProperties::specialThoughtDirect
IL_01D0: brfalse => Label22
IL_01D5: ldarg.0
IL_01D6: ldarg.2
IL_01D7: ldfld RimWorld.IngestibleProperties Verse.ThingDef::ingestible
IL_01DC: ldfld RimWorld.ThoughtDef
RimWorld.IngestibleProperties::specialThoughtDirect
IL_01E1: ldnull
IL_01E2: ldsfld
System.Collections.Generic.List`1<RimWorld.ThoughtFromIngesting>
RimWorld.FoodUtility::ingestThoughts
IL_01E7: ldarg.2
IL_01E8: ldloc.0
IL_01E9: call static System.Void
RimWorld.FoodUtility::TryAddIngestThought(Verse.Pawn ingester, RimWorld.ThoughtDef
def, RimWorld.Precept fromPrecept,
System.Collections.Generic.List`1<RimWorld.ThoughtFromIngesting> ingestThoughts,
Verse.ThingDef foodDef, RimWorld.MeatSourceCategory meatSourceCategory)
IL_01EE: Label22
IL_01EE: ldarg.1
IL_01EF: call static System.Boolean
RimWorld.RottableUtility::IsNotFresh(Verse.Thing t)
IL_01F4: brfalse => Label23
IL_01F9: ldarg.0
IL_01FA: ldsfld RimWorld.ThoughtDef RimWorld.ThoughtDefOf::AteRottenFood
IL_01FF: ldnull
IL_0200: ldsfld
System.Collections.Generic.List`1<RimWorld.ThoughtFromIngesting>
RimWorld.FoodUtility::ingestThoughts
IL_0205: ldarg.2
IL_0206: ldloc.0
IL_0207: call static System.Void
RimWorld.FoodUtility::TryAddIngestThought(Verse.Pawn ingester, RimWorld.ThoughtDef
def, RimWorld.Precept fromPrecept,
System.Collections.Generic.List`1<RimWorld.ThoughtFromIngesting> ingestThoughts,
Verse.ThingDef foodDef, RimWorld.MeatSourceCategory meatSourceCategory)
IL_020C: Label23
IL_020C: call static System.Boolean Verse.ModsConfig::get_RoyaltyActive()
IL_0211: brfalse => Label24
IL_0216: ldarg.2
IL_0217: ldarg.0
IL_0218: ldc.i4.0
IL_0219: call static System.Boolean
RimWorld.FoodUtility::InappropriateForTitle(Verse.ThingDef food, Verse.Pawn p,
System.Boolean allowIfStarving)
IL_021E: brfalse => Label25
IL_0223: ldarg.0
IL_0224: ldsfld RimWorld.ThoughtDef
RimWorld.ThoughtDefOf::AteFoodInappropriateForTitle
IL_0229: ldnull
IL_022A: ldsfld
System.Collections.Generic.List`1<RimWorld.ThoughtFromIngesting>
RimWorld.FoodUtility::ingestThoughts
IL_022F: ldarg.2
IL_0230: ldloc.0
IL_0231: call static System.Void
RimWorld.FoodUtility::TryAddIngestThought(Verse.Pawn ingester, RimWorld.ThoughtDef
def, RimWorld.Precept fromPrecept,
System.Collections.Generic.List`1<RimWorld.ThoughtFromIngesting> ingestThoughts,
Verse.ThingDef foodDef, RimWorld.MeatSourceCategory meatSourceCategory)
IL_0236: Label24
IL_0236: Label25
IL_0236: ldarg.0
IL_0237: callvirt RimWorld.Ideo Verse.Pawn::get_Ideo()
IL_023C: brfalse => Label26
IL_0241: ldarg.1
IL_0242: ldarg.2
IL_0243: call static System.Boolean
RimWorld.FoodUtility::IsHumanlikeCorpseOrHumanlikeMeat(Verse.Thing source,
Verse.ThingDef foodDef)
IL_0248: stloc.s 12 (System.Boolean)
IL_024A: ldarg.1
IL_024B: call static System.Boolean
RimWorld.FoodUtility::IsHumanlikeCorpseOrHumanlikeMeatOrIngredient(Verse.Thing
food)
IL_0250: stloc.s 13 (System.Boolean)
IL_0252: ldloc.s 13 (System.Boolean)
IL_0254: brfalse => Label27
IL_0259: ldsfld RimWorld.HistoryEventDef
RimWorld.HistoryEventDefOf::AteHumanMeat
IL_025E: ldarg.0
IL_025F: ldarg.2
IL_0260: ldloc.0
IL_0261: call static System.Void
RimWorld.FoodUtility::AddThoughtsFromIdeo(RimWorld.HistoryEventDef eventDef,
Verse.Pawn ingester, Verse.ThingDef foodDef, RimWorld.MeatSourceCategory
meatSourceCategory)
IL_0266: ldloc.s 12 (System.Boolean)
IL_0268: brfalse => Label28
IL_026D: ldsfld RimWorld.HistoryEventDef
RimWorld.HistoryEventDefOf::AteHumanMeatDirect
IL_0272: ldarg.0
IL_0273: ldarg.2
IL_0274: ldloc.0
IL_0275: call static System.Void
RimWorld.FoodUtility::AddThoughtsFromIdeo(RimWorld.HistoryEventDef eventDef,
Verse.Pawn ingester, Verse.ThingDef foodDef, RimWorld.MeatSourceCategory
meatSourceCategory)
IL_027A: br => Label29
IL_027F: Label27
IL_027F: ldarg.2
IL_0280: call static System.Boolean
RimWorld.FoodUtility::AcceptableCannibalNonHumanlikeMeatFood(Verse.ThingDef
foodDef)
IL_0285: brtrue => Label30
IL_028A: ldsfld RimWorld.HistoryEventDef
RimWorld.HistoryEventDefOf::AteNonCannibalFood
IL_028F: ldarg.0
IL_0290: ldarg.2
IL_0291: ldloc.0
IL_0292: call static System.Void
RimWorld.FoodUtility::AddThoughtsFromIdeo(RimWorld.HistoryEventDef eventDef,
Verse.Pawn ingester, Verse.ThingDef foodDef, RimWorld.MeatSourceCategory
meatSourceCategory)
IL_0297: Label28
IL_0297: Label29
IL_0297: Label30
IL_0297: ldarg.1
IL_0298: call static RimWorld.FoodKind
RimWorld.FoodUtility::GetFoodKind(Verse.Thing food)
IL_029D: stloc.s 14 (RimWorld.FoodKind)
IL_029F: ldarg.2
IL_02A0: call static RimWorld.FoodKind
RimWorld.FoodUtility::GetFoodKind(Verse.ThingDef foodDef)
IL_02A5: stloc.s 15 (RimWorld.FoodKind)
IL_02A7: ldarg.2
IL_02A8: ldloc.s 14 (RimWorld.FoodKind)
IL_02AA: ldloc.s 15 (RimWorld.FoodKind)
IL_02AC: call static System.Boolean
RimWorld.FoodUtility::AcceptableVegetarian(Verse.ThingDef def, RimWorld.FoodKind
sourceKind, RimWorld.FoodKind defKind)
IL_02B1: brtrue => Label31
IL_02B6: ldloc.s 13 (System.Boolean)
IL_02B8: brtrue => Label32
IL_02BD: ldloc.s 14 (RimWorld.FoodKind)
IL_02BF: ldc.i4.1
IL_02C0: beq => Label33
IL_02C5: ldsfld RimWorld.HistoryEventDef RimWorld.HistoryEventDefOf::AteMeat
IL_02CA: ldarg.0
IL_02CB: ldarg.2
IL_02CC: ldloc.0
IL_02CD: call static System.Void
RimWorld.FoodUtility::AddThoughtsFromIdeo(RimWorld.HistoryEventDef eventDef,
Verse.Pawn ingester, Verse.ThingDef foodDef, RimWorld.MeatSourceCategory
meatSourceCategory)
IL_02D2: br => Label34
IL_02D7: Label31
IL_02D7: ldarg.2
IL_02D8: ldloc.s 14 (RimWorld.FoodKind)
IL_02DA: ldloc.s 15 (RimWorld.FoodKind)
IL_02DC: call static System.Boolean
RimWorld.FoodUtility::AcceptableCarnivore(Verse.ThingDef def, RimWorld.FoodKind
sourceKind, RimWorld.FoodKind defKind)
IL_02E1: brtrue => Label35
IL_02E6: ldsfld RimWorld.HistoryEventDef RimWorld.HistoryEventDefOf::AteNonMeat
IL_02EB: ldarg.0
IL_02EC: ldarg.2
IL_02ED: ldloc.0
IL_02EE: call static System.Void
RimWorld.FoodUtility::AddThoughtsFromIdeo(RimWorld.HistoryEventDef eventDef,
Verse.Pawn ingester, Verse.ThingDef foodDef, RimWorld.MeatSourceCategory
meatSourceCategory)
IL_02F3: Label32
IL_02F3: Label33
IL_02F3: Label34
IL_02F3: Label35
IL_02F3: ldarg.2
IL_02F4: ldarg.0
IL_02F5: ldarg.1
IL_02F6: call static System.Boolean
RimWorld.FoodUtility::IsVeneratedAnimalMeatOrCorpse(Verse.ThingDef foodDef,
Verse.Pawn ingester, Verse.Thing source)
IL_02FB: brfalse => Label36
IL_0300: ldsfld RimWorld.HistoryEventDef
RimWorld.HistoryEventDefOf::AteVeneratedAnimalMeat
IL_0305: ldarg.0
IL_0306: ldarg.2
IL_0307: ldloc.0
IL_0308: call static System.Void
RimWorld.FoodUtility::AddThoughtsFromIdeo(RimWorld.HistoryEventDef eventDef,
Verse.Pawn ingester, Verse.ThingDef foodDef, RimWorld.MeatSourceCategory
meatSourceCategory)
IL_030D: Label36
IL_030D: ldloc.0
IL_030E: ldc.i4.2
IL_030F: bne.un => Label37
IL_0314: ldsfld RimWorld.HistoryEventDef
RimWorld.HistoryEventDefOf::AteInsectMeatDirect
IL_0319: ldarg.0
IL_031A: ldarg.2
IL_031B: ldloc.0
IL_031C: call static System.Void
RimWorld.FoodUtility::AddThoughtsFromIdeo(RimWorld.HistoryEventDef eventDef,
Verse.Pawn ingester, Verse.ThingDef foodDef, RimWorld.MeatSourceCategory
meatSourceCategory)
IL_0321: Label37
IL_0321: call static System.Boolean Verse.ModsConfig::get_IdeologyActive()
IL_0326: brfalse => Label38
IL_032B: ldarg.2
IL_032C: ldfld System.Collections.Generic.List`1<Verse.ThingCategoryDef>
Verse.ThingDef::thingCategories
IL_0331: brfalse => Label39
IL_0336: ldarg.2
IL_0337: ldfld System.Collections.Generic.List`1<Verse.ThingCategoryDef>
Verse.ThingDef::thingCategories
IL_033C: ldsfld Verse.ThingCategoryDef
RimWorld.ThingCategoryDefOf::PlantFoodRaw
IL_0341: callvirt virtual System.Boolean
System.Collections.Generic.List`1<Verse.ThingCategoryDef>::Contains(Verse.ThingCate
goryDef item)
IL_0346: brfalse => Label40
IL_034B: ldarg.2
IL_034C: callvirt System.Boolean Verse.ThingDef::get_IsFungus()
IL_0351: brfalse => Label41
IL_0356: ldsfld RimWorld.HistoryEventDef RimWorld.HistoryEventDefOf::AteFungus
IL_035B: ldarg.0
IL_035C: ldarg.2
IL_035D: ldloc.0
IL_035E: call static System.Void
RimWorld.FoodUtility::AddThoughtsFromIdeo(RimWorld.HistoryEventDef eventDef,
Verse.Pawn ingester, Verse.ThingDef foodDef, RimWorld.MeatSourceCategory
meatSourceCategory)
IL_0363: br => Label42
IL_0368: Label41
IL_0368: ldsfld RimWorld.HistoryEventDef
RimWorld.HistoryEventDefOf::AteNonFungusPlant
IL_036D: ldarg.0
IL_036E: ldarg.2
IL_036F: ldloc.0
IL_0370: call static System.Void
RimWorld.FoodUtility::AddThoughtsFromIdeo(RimWorld.HistoryEventDef eventDef,
Verse.Pawn ingester, Verse.ThingDef foodDef, RimWorld.MeatSourceCategory
meatSourceCategory)
IL_0375: Label38
IL_0375: Label39
IL_0375: Label40
IL_0375: Label42
IL_0375: ldarg.2
IL_0376: ldfld RimWorld.IngestibleProperties Verse.ThingDef::ingestible
IL_037B: ldfld RimWorld.HistoryEventDef
RimWorld.IngestibleProperties::ateEvent
IL_0380: brfalse => Label43
IL_0385: ldarg.2
IL_0386: ldfld RimWorld.IngestibleProperties Verse.ThingDef::ingestible
IL_038B: ldfld RimWorld.HistoryEventDef
RimWorld.IngestibleProperties::ateEvent
IL_0390: ldarg.0
IL_0391: ldarg.2
IL_0392: ldloc.0
IL_0393: call static System.Void
RimWorld.FoodUtility::AddThoughtsFromIdeo(RimWorld.HistoryEventDef eventDef,
Verse.Pawn ingester, Verse.ThingDef foodDef, RimWorld.MeatSourceCategory
meatSourceCategory)
IL_0398: Label26
IL_0398: Label43
IL_0398: ldsfld
System.Collections.Generic.List`1<RimWorld.ThoughtFromIngesting>
RimWorld.FoodUtility::ingestThoughts
IL_039D: // end original
IL_039D: Label44
IL_039D: stloc 16
(System.Collections.Generic.List`1[RimWorld.FoodUtility+ThoughtFromIngesting])
IL_03A1: ldarg 0
IL_03A5: ldarg 1
IL_03A9: ldarg 2
IL_03AD: ldloca 16
(System.Collections.Generic.List`1[RimWorld.FoodUtility+ThoughtFromIngesting])
IL_03B1: call static System.Void
AlienRace.HarmonyPatches::ThoughtsFromIngestingPostfix(Verse.Pawn ingester,
Verse.Thing foodSource, Verse.ThingDef foodDef, System.Collections.Generic.List`1&
__result)
IL_03B6: ldloc 16
(System.Collections.Generic.List`1[RimWorld.FoodUtility+ThoughtFromIngesting])
IL_03BA: ret
DONE

### Patch: System.Void


RimWorld.MemoryThoughtHandler::TryGainMemory(RimWorld.Thought_Memory newThought,
Verse.Pawn otherPawn)
### Replacement: static System.Void
RimWorld.MemoryThoughtHandler::RimWorld.MemoryThoughtHandler.TryGainMemory_Patch2(R
imWorld.MemoryThoughtHandler this, RimWorld.Thought_Memory newThought, Verse.Pawn
otherPawn)
IL_0000: Local var 0: System.Boolean
IL_0000: Local var 1: System.Collections.Generic.List`1<RimWorld.Thought_Memory>
IL_0000: Local var 2: System.Int32
IL_0000: Local var 3: System.Boolean
IL_0000: ldc.i4 0
IL_0005: stloc 3 (System.Boolean)
IL_0009: ldc.i4.1
IL_000A: stloc 3 (System.Boolean)
IL_000E: ldloc 3 (System.Boolean)
IL_0012: brfalse => Label1
IL_0017: ldarga 1
IL_001B: ldarg.0
IL_001C: call static System.Boolean
AlienRace.HarmonyPatches::TryGainMemoryPrefix(RimWorld.Thought_Memory& newThought,
RimWorld.MemoryThoughtHandler __instance)
IL_0021: stloc 3 (System.Boolean)
IL_0025: Label1
IL_0025: nop
IL_0026: ldloc 3 (System.Boolean)
IL_002A: brfalse => Label0
IL_002F: // start original
IL_002F: ldarg.0
IL_0030: ldfld Verse.Pawn RimWorld.MemoryThoughtHandler::pawn
IL_0035: ldarg.1
IL_0036: ldfld RimWorld.ThoughtDef RimWorld.Thought::def
IL_003B: ldc.i4.0
IL_003C: call static System.Boolean
RimWorld.ThoughtUtility::CanGetThought(Verse.Pawn pawn, RimWorld.ThoughtDef def,
System.Boolean checkIfNullified)
IL_0041: brtrue => Label2
IL_0046: br => Label28
IL_004B: Label2
IL_004B: ldarg.1
IL_004C: isinst RimWorld.Thought_MemorySocial
IL_0051: brfalse => Label3
IL_0056: ldarg.1
IL_0057: ldfld Verse.Pawn RimWorld.Thought_Memory::otherPawn
IL_005C: brtrue => Label4
IL_0061: ldarg.2
IL_0062: brtrue => Label5
IL_0067: ldstr "Can\'t gain social thought "
IL_006C: ldarg.1
IL_006D: ldfld RimWorld.ThoughtDef RimWorld.Thought::def
IL_0072: ldstr " because its otherPawn is null and otherPawn passed to this
method is also null. Social thoughts must have otherPawn."
IL_0077: call static System.String System.String::Concat(System.Object arg0,
System.Object arg1, System.Object arg2)
IL_007C: call static System.Void Verse.Log::Error(System.String text)
IL_0081: br => Label29
IL_0086: Label4
IL_0086: Label5
IL_0086: ldarg.2
IL_0087: dup
IL_0088: brtrue => Label6
IL_008D: pop
IL_008E: ldarg.1
IL_008F: ldfld Verse.Pawn RimWorld.Thought_Memory::otherPawn
IL_0094: Label6
IL_0094: starg.s 2
IL_0096: ldarg.1
IL_0097: ldfld RimWorld.ThoughtDef RimWorld.Thought::def
IL_009C: ldfld Verse.DevelopmentalStage
RimWorld.ThoughtDef::socialTargetDevelopmentalStageFilter
IL_00A1: ldarg.2
IL_00A2: callvirt Verse.DevelopmentalStage Verse.Pawn::get_DevelopmentalStage()
IL_00A7: call static System.Boolean
Verse.DevelopmentalStageExtensions::Has(Verse.DevelopmentalStage
developmentalStage, Verse.DevelopmentalStage query)
IL_00AC: brtrue => Label7
IL_00B1: br => Label30
IL_00B6: Label3
IL_00B6: Label7
IL_00B6: ldarg.1
IL_00B7: ldarg.0
IL_00B8: ldfld Verse.Pawn RimWorld.MemoryThoughtHandler::pawn
IL_00BD: stfld Verse.Pawn RimWorld.Thought::pawn
IL_00C2: ldarg.1
IL_00C3: ldarg.2
IL_00C4: stfld Verse.Pawn RimWorld.Thought_Memory::otherPawn
IL_00C9: ldarg.1
IL_00CA: ldloca.s 0 (System.Boolean)
IL_00CC: callvirt virtual System.Boolean
RimWorld.Thought_Memory::TryMergeWithExistingMemory(System.Boolean& showBubble)
IL_00D1: brtrue => Label8
IL_00D6: ldarg.0
IL_00D7: ldfld System.Collections.Generic.List`1<RimWorld.Thought_Memory>
RimWorld.MemoryThoughtHandler::memories
IL_00DC: ldarg.1
IL_00DD: callvirt virtual System.Void
System.Collections.Generic.List`1<RimWorld.Thought_Memory>::Add(RimWorld.Thought_Me
mory item)
IL_00E2: Label8
IL_00E2: ldarg.1
IL_00E3: ldfld RimWorld.ThoughtDef RimWorld.Thought::def
IL_00E8: ldfld System.Int32 RimWorld.ThoughtDef::stackLimitForSameOtherPawn
IL_00ED: ldc.i4.0
IL_00EE: blt => Label9
IL_00F3: br => Label10
IL_00F8: Label11
IL_00F8: ldarg.0
IL_00F9: ldarg.0
IL_00FA: ldarg.1
IL_00FB: call RimWorld.Thought_Memory
RimWorld.MemoryThoughtHandler::OldestMemoryInGroup(RimWorld.Thought_Memory group)
IL_0100: call System.Void
RimWorld.MemoryThoughtHandler::RemoveMemory(RimWorld.Thought_Memory th)
IL_0105: Label10
IL_0105: ldarg.0
IL_0106: ldarg.1
IL_0107: call System.Int32
RimWorld.MemoryThoughtHandler::NumMemoriesInGroup(RimWorld.Thought_Memory group)
IL_010C: ldarg.1
IL_010D: ldfld RimWorld.ThoughtDef RimWorld.Thought::def
IL_0112: ldfld System.Int32 RimWorld.ThoughtDef::stackLimitForSameOtherPawn
IL_0117: bgt => Label11
IL_011C: Label9
IL_011C: ldarg.1
IL_011D: ldfld RimWorld.ThoughtDef RimWorld.Thought::def
IL_0122: ldfld System.Int32 RimWorld.ThoughtDef::stackLimit
IL_0127: ldc.i4.0
IL_0128: blt => Label12
IL_012D: br => Label13
IL_0132: Label14
IL_0132: ldarg.0
IL_0133: ldarg.0
IL_0134: ldarg.1
IL_0135: ldfld RimWorld.ThoughtDef RimWorld.Thought::def
IL_013A: call RimWorld.Thought_Memory
RimWorld.MemoryThoughtHandler::OldestMemoryOfDef(RimWorld.ThoughtDef def)
IL_013F: call System.Void
RimWorld.MemoryThoughtHandler::RemoveMemory(RimWorld.Thought_Memory th)
IL_0144: Label13
IL_0144: ldarg.0
IL_0145: ldarg.1
IL_0146: ldfld RimWorld.ThoughtDef RimWorld.Thought::def
IL_014B: call System.Int32
RimWorld.MemoryThoughtHandler::NumMemoriesOfDef(RimWorld.ThoughtDef def)
IL_0150: ldarg.1
IL_0151: ldfld RimWorld.ThoughtDef RimWorld.Thought::def
IL_0156: ldfld System.Int32 RimWorld.ThoughtDef::stackLimit
IL_015B: bgt => Label14
IL_0160: Label12
IL_0160: ldarg.1
IL_0161: ldfld RimWorld.ThoughtDef RimWorld.Thought::def
IL_0166: ldfld RimWorld.ThoughtDef RimWorld.ThoughtDef::thoughtToMake
IL_016B: brfalse => Label15
IL_0170: ldarg.0
IL_0171: ldarg.1
IL_0172: ldfld RimWorld.ThoughtDef RimWorld.Thought::def
IL_0177: ldfld RimWorld.ThoughtDef RimWorld.ThoughtDef::thoughtToMake
IL_017C: ldarg.1
IL_017D: ldfld Verse.Pawn RimWorld.Thought_Memory::otherPawn
IL_0182: ldnull
IL_0183: call System.Void
RimWorld.MemoryThoughtHandler::TryGainMemory(RimWorld.ThoughtDef def, Verse.Pawn
otherPawn, RimWorld.Precept sourcePrecept)
IL_0188: Label15
IL_0188: ldarg.1
IL_0189: ldfld RimWorld.ThoughtDef RimWorld.Thought::def
IL_018E: ldfld System.Collections.Generic.List`1<RimWorld.ThoughtDef>
RimWorld.ThoughtDef::replaceThoughts
IL_0193: brfalse => Label16
IL_0198: ldarg.0
IL_0199: ldfld System.Collections.Generic.List`1<RimWorld.Thought_Memory>
RimWorld.MemoryThoughtHandler::memories
IL_019E: newobj System.Void
System.Collections.Generic.List`1<RimWorld.Thought_Memory>::.ctor(System.Collection
s.Generic.IEnumerable`1<RimWorld.Thought_Memory> collection)
IL_01A3: br => Label17
IL_01A8: Label16
IL_01A8: ldarg.0
IL_01A9: ldfld System.Collections.Generic.List`1<RimWorld.Thought_Memory>
RimWorld.MemoryThoughtHandler::memories
IL_01AE: Label17
IL_01AE: stloc.1
IL_01AF: ldc.i4.0
IL_01B0: stloc.2
IL_01B1: br => Label18
IL_01B6: Label23
IL_01B6: ldloc.1
IL_01B7: ldloc.2
IL_01B8: callvirt virtual RimWorld.Thought_Memory
System.Collections.Generic.List`1<RimWorld.Thought_Memory>::get_Item(System.Int32
index)
IL_01BD: ldarg.1
IL_01BE: beq => Label19
IL_01C3: ldloc.1
IL_01C4: ldloc.2
IL_01C5: callvirt virtual RimWorld.Thought_Memory
System.Collections.Generic.List`1<RimWorld.Thought_Memory>::get_Item(System.Int32
index)
IL_01CA: ldarg.1
IL_01CB: callvirt virtual System.Boolean
RimWorld.Thought::GroupsWith(RimWorld.Thought other)
IL_01D0: brfalse => Label20
IL_01D5: ldloc.1
IL_01D6: ldloc.2
IL_01D7: callvirt virtual RimWorld.Thought_Memory
System.Collections.Generic.List`1<RimWorld.Thought_Memory>::get_Item(System.Int32
index)
IL_01DC: ldarg.1
IL_01DD: callvirt virtual System.Void
RimWorld.Thought_Memory::Notify_NewThoughtInGroupAdded(RimWorld.Thought_Memory
memory)
IL_01E2: Label19
IL_01E2: Label20
IL_01E2: ldarg.1
IL_01E3: ldfld RimWorld.ThoughtDef RimWorld.Thought::def
IL_01E8: ldfld System.Collections.Generic.List`1<RimWorld.ThoughtDef>
RimWorld.ThoughtDef::replaceThoughts
IL_01ED: brfalse => Label21
IL_01F2: ldarg.1
IL_01F3: ldfld RimWorld.ThoughtDef RimWorld.Thought::def
IL_01F8: ldfld System.Collections.Generic.List`1<RimWorld.ThoughtDef>
RimWorld.ThoughtDef::replaceThoughts
IL_01FD: ldloc.1
IL_01FE: ldloc.2
IL_01FF: callvirt virtual RimWorld.Thought_Memory
System.Collections.Generic.List`1<RimWorld.Thought_Memory>::get_Item(System.Int32
index)
IL_0204: ldfld RimWorld.ThoughtDef RimWorld.Thought::def
IL_0209: callvirt virtual System.Boolean
System.Collections.Generic.List`1<RimWorld.ThoughtDef>::Contains(RimWorld.ThoughtDe
f item)
IL_020E: brfalse => Label22
IL_0213: ldarg.0
IL_0214: ldloc.1
IL_0215: ldloc.2
IL_0216: callvirt virtual RimWorld.Thought_Memory
System.Collections.Generic.List`1<RimWorld.Thought_Memory>::get_Item(System.Int32
index)
IL_021B: call System.Void
RimWorld.MemoryThoughtHandler::RemoveMemory(RimWorld.Thought_Memory th)
IL_0220: Label21
IL_0220: Label22
IL_0220: ldloc.2
IL_0221: ldc.i4.1
IL_0222: add
IL_0223: stloc.2
IL_0224: Label18
IL_0224: ldloc.2
IL_0225: ldloc.1
IL_0226: callvirt virtual System.Int32
System.Collections.Generic.List`1<RimWorld.Thought_Memory>::get_Count()
IL_022B: blt => Label23
IL_0230: ldloc.0
IL_0231: brfalse => Label24
IL_0236: ldarg.1
IL_0237: ldfld RimWorld.ThoughtDef RimWorld.Thought::def
IL_023C: ldfld System.Boolean RimWorld.ThoughtDef::showBubble
IL_0241: brfalse => Label25
IL_0246: ldarg.0
IL_0247: ldfld Verse.Pawn RimWorld.MemoryThoughtHandler::pawn
IL_024C: callvirt System.Boolean Verse.Thing::get_Spawned()
IL_0251: brfalse => Label26
IL_0256: ldarg.0
IL_0257: ldfld Verse.Pawn RimWorld.MemoryThoughtHandler::pawn
IL_025C: call static System.Boolean
RimWorld.PawnUtility::ShouldSendNotificationAbout(Verse.Pawn p)
IL_0261: brfalse => Label27
IL_0266: ldarg.0
IL_0267: ldfld Verse.Pawn RimWorld.MemoryThoughtHandler::pawn
IL_026C: ldarg.1
IL_026D: call static RimWorld.MoteBubble
RimWorld.MoteMaker::MakeMoodThoughtBubble(Verse.Pawn pawn, RimWorld.Thought
thought)
IL_0272: pop
IL_0273: // end original
IL_0273: Label24
IL_0273: Label25
IL_0273: Label26
IL_0273: Label27
IL_0273: Label28
IL_0273: Label29
IL_0273: Label30
IL_0273: Label0
IL_0273: ldarg.0
IL_0274: ldarga 1
IL_0278: ldarg 2
IL_027C: call static System.Void
VFECore.TryGainMemory_Patch::Postfix(RimWorld.MemoryThoughtHandler __instance,
RimWorld.Thought_Memory& newThought, Verse.Pawn otherPawn)
IL_0281: ret
DONE

### Patch: RimWorld.Thought_Situational


RimWorld.SituationalThoughtHandler::TryCreateThought(RimWorld.ThoughtDef def)
### Replacement: static RimWorld.Thought_Situational
RimWorld.SituationalThoughtHandler::RimWorld.SituationalThoughtHandler.TryCreateTho
ught_Patch1(RimWorld.SituationalThoughtHandler this, RimWorld.ThoughtDef def)
IL_0000: Local var 0: RimWorld.Thought_Situational
IL_0000: Local var 1: RimWorld.Thought_Situational
IL_0000: Local var 2: RimWorld.ThoughtState
IL_0000: Local var 3: System.Exception
IL_0000: Local var 4: RimWorld.Thought_Situational
IL_0000: Local var 5: System.Boolean
IL_0000: ldnull
IL_0001: stloc 4 (RimWorld.Thought_Situational)
IL_0005: ldc.i4 0
IL_000A: stloc 5 (System.Boolean)
IL_000E: ldc.i4.1
IL_000F: stloc 5 (System.Boolean)
IL_0013: ldloc 5 (System.Boolean)
IL_0017: brfalse => Label1
IL_001C: ldarga 1
IL_0020: ldarg.0
IL_0021: ldarg.0
IL_0022: ldflda System.Collections.Generic.HashSet`1<RimWorld.ThoughtDef>
RimWorld.SituationalThoughtHandler::tmpCachedThoughts
IL_0027: call static System.Boolean
AlienRace.HarmonyPatches::TryCreateThoughtPrefix(RimWorld.ThoughtDef& def,
RimWorld.SituationalThoughtHandler __instance,
System.Collections.Generic.HashSet`1& ___tmpCachedThoughts)
IL_002C: stloc 5 (System.Boolean)
IL_0030: Label1
IL_0030: nop
IL_0031: ldloc 5 (System.Boolean)
IL_0035: brfalse => Label0
IL_003A: // start original
IL_003A: ldnull
IL_003B: stloc.0
.try
{
IL_003C: ldarg.0
IL_003D: ldfld Verse.Pawn RimWorld.SituationalThoughtHandler::pawn
IL_0042: ldarg.1
IL_0043: ldc.i4.0
IL_0044: call static System.Boolean
RimWorld.ThoughtUtility::CanGetThought(Verse.Pawn pawn, RimWorld.ThoughtDef def,
System.Boolean checkIfNullified)
IL_0049: brtrue => Label2
IL_004E: ldnull
IL_004F: stloc.1
IL_0050: leave => Label3
IL_0055: Label2
IL_0055: ldarg.1
IL_0056: callvirt RimWorld.ThoughtWorker RimWorld.ThoughtDef::get_Worker()
IL_005B: ldarg.0
IL_005C: ldfld Verse.Pawn RimWorld.SituationalThoughtHandler::pawn
IL_0061: callvirt RimWorld.ThoughtState
RimWorld.ThoughtWorker::CurrentState(Verse.Pawn p)
IL_0066: stloc.2
IL_0067: ldloca.s 2 (RimWorld.ThoughtState)
IL_0069: ldarg.1
IL_006A: call System.Boolean
RimWorld.ThoughtState::ActiveFor(RimWorld.ThoughtDef thoughtDef)
IL_006F: brtrue => Label4
IL_0074: ldnull
IL_0075: stloc.1
IL_0076: leave => Label5
IL_007B: Label4
IL_007B: ldarg.1
IL_007C: call static RimWorld.Thought
RimWorld.ThoughtMaker::MakeThought(RimWorld.ThoughtDef def)
IL_0081: castclass RimWorld.Thought_Situational
IL_0086: stloc.0
IL_0087: ldloc.0
IL_0088: ldarg.0
IL_0089: ldfld Verse.Pawn RimWorld.SituationalThoughtHandler::pawn
IL_008E: stfld Verse.Pawn RimWorld.Thought::pawn
IL_0093: ldarg.1
IL_0094: callvirt RimWorld.ThoughtWorker RimWorld.ThoughtDef::get_Worker()
IL_0099: isinst RimWorld.ThoughtWorker_Precept
IL_009E: brfalse => Label6
IL_00A3: ldloc.0
IL_00A4: ldarg.0
IL_00A5: ldfld Verse.Pawn RimWorld.SituationalThoughtHandler::pawn
IL_00AA: callvirt RimWorld.Ideo Verse.Pawn::get_Ideo()
IL_00AF: ldarg.1
IL_00B0: callvirt RimWorld.Precept
RimWorld.Ideo::GetFirstPreceptAllowingSituationalThought(RimWorld.ThoughtDef def)
IL_00B5: stfld RimWorld.Precept RimWorld.Thought::sourcePrecept
IL_00BA: Label6
IL_00BA: ldloc.0
IL_00BB: callvirt System.Void
RimWorld.Thought_Situational::RecalculateState()
IL_00C0: leave => Label7
IL_00C5: leave => (autogenerated)
} // end try
.catch System.Exception
{
IL_00CA: stloc.3
IL_00CB: ldc.i4.6
IL_00CC: newarr System.Object
IL_00D1: dup
IL_00D2: ldc.i4.0
IL_00D3: ldstr "Exception while recalculating "
IL_00D8: stelem.ref
IL_00D9: dup
IL_00DA: ldc.i4.1
IL_00DB: ldarg.1
IL_00DC: stelem.ref
IL_00DD: dup
IL_00DE: ldc.i4.2
IL_00DF: ldstr " thought state for pawn "
IL_00E4: stelem.ref
IL_00E5: dup
IL_00E6: ldc.i4.3
IL_00E7: ldarg.0
IL_00E8: ldfld Verse.Pawn RimWorld.SituationalThoughtHandler::pawn
IL_00ED: stelem.ref
IL_00EE: dup
IL_00EF: ldc.i4.4
IL_00F0: ldstr ": "
IL_00F5: stelem.ref
IL_00F6: dup
IL_00F7: ldc.i4.5
IL_00F8: ldloc.3
IL_00F9: stelem.ref
IL_00FA: call static System.String
System.String::Concat(System.Object[] args)
IL_00FF: call static System.Void Verse.Log::Error(System.String text)
IL_0104: leave => Label8
IL_0109: leave => (autogenerated)
} // end handler
IL_010E: Label7
IL_010E: Label8
IL_010E: ldloc.0
IL_010F: br => Label13
IL_0114: Label3
IL_0114: Label5
IL_0114: ldloc.1
IL_0115: // end original
IL_0115: Label13
IL_0115: stloc 4 (RimWorld.Thought_Situational)
IL_0119: Label0
IL_0119: ldloc 4 (RimWorld.Thought_Situational)
IL_011D: ret
DONE

### Patch: System.Void


RimWorld.MemoryThoughtHandler::RemoveMemoriesOfDef(RimWorld.ThoughtDef def)
### Replacement: static System.Void
RimWorld.MemoryThoughtHandler::RimWorld.MemoryThoughtHandler.RemoveMemoriesOfDef_Pa
tch1(RimWorld.MemoryThoughtHandler this, RimWorld.ThoughtDef def)
IL_0000: Local var 0: RimWorld.MemoryThoughtHandler/<>c__DisplayClass20_0
IL_0000: Local var 1: RimWorld.Thought_Memory
IL_0000: Local var 2: System.Predicate`1<RimWorld.Thought_Memory>
IL_0000: Local var 3: System.Boolean
IL_0000: ldc.i4 0
IL_0005: stloc 3 (System.Boolean)
IL_0009: ldc.i4.1
IL_000A: stloc 3 (System.Boolean)
IL_000E: ldloc 3 (System.Boolean)
IL_0012: brfalse => Label1
IL_0017: ldarg.0
IL_0018: ldarga 1
IL_001C: call static System.Void
AlienRace.HarmonyPatches::ThoughtReplacementPrefix(RimWorld.MemoryThoughtHandler
__instance, RimWorld.ThoughtDef& def)
IL_0021: Label1
IL_0021: nop
IL_0022: ldloc 3 (System.Boolean)
IL_0026: brfalse => Label0
IL_002B: // start original
IL_002B: newobj System.Void RimWorld.<>c__DisplayClass20_0::.ctor()
IL_0030: stloc.0
IL_0031: ldloc.0
IL_0032: ldarg.1
IL_0033: stfld RimWorld.ThoughtDef RimWorld.<>c__DisplayClass20_0::def
IL_0038: ldloc.0
IL_0039: ldfld RimWorld.ThoughtDef RimWorld.<>c__DisplayClass20_0::def
IL_003E: callvirt System.Boolean RimWorld.ThoughtDef::get_IsMemory()
IL_0043: brtrue => Label2
IL_0048: ldloc.0
IL_0049: ldfld RimWorld.ThoughtDef RimWorld.<>c__DisplayClass20_0::def
IL_004E: ldstr " is not a memory thought."
IL_0053: call static System.String System.String::Concat(System.Object arg0,
System.Object arg1)
IL_0058: call static System.Void Verse.Log::Warning(System.String text)
IL_005D: br => Label6
IL_0062: Label2
IL_0062: Label5
IL_0062: ldarg.0
IL_0063: ldfld System.Collections.Generic.List`1<RimWorld.Thought_Memory>
RimWorld.MemoryThoughtHandler::memories
IL_0068: ldloc.0
IL_0069: ldfld System.Predicate`1<RimWorld.Thought_Memory>
RimWorld.<>c__DisplayClass20_0::<>9__0
IL_006E: dup
IL_006F: brtrue => Label3
IL_0074: pop
IL_0075: ldloc.0
IL_0076: ldloc.0
IL_0077: ldftn System.Boolean
RimWorld.<>c__DisplayClass20_0::<RemoveMemoriesOfDef>b__0(RimWorld.Thought_Memory
x)
IL_007D: newobj System.Void
System.Predicate`1<RimWorld.Thought_Memory>::.ctor(System.Object object,
System.IntPtr method)
IL_0082: dup
IL_0083: stloc.2
IL_0084: stfld System.Predicate`1<RimWorld.Thought_Memory>
RimWorld.<>c__DisplayClass20_0::<>9__0
IL_0089: ldloc.2
IL_008A: Label3
IL_008A: callvirt RimWorld.Thought_Memory
System.Collections.Generic.List`1<RimWorld.Thought_Memory>::Find(System.Predicate`1
<RimWorld.Thought_Memory> match)
IL_008F: stloc.1
IL_0090: ldloc.1
IL_0091: brfalse => Label4
IL_0096: ldarg.0
IL_0097: ldloc.1
IL_0098: call System.Void
RimWorld.MemoryThoughtHandler::RemoveMemory(RimWorld.Thought_Memory th)
IL_009D: br => Label5
IL_00A2: // end original
IL_00A2: Label4
IL_00A2: Label6
IL_00A2: Label0
IL_00A2: ret
DONE

### Patch: System.Void


RimWorld.MemoryThoughtHandler::RemoveMemoriesOfDefIf(RimWorld.ThoughtDef def,
System.Func`2<RimWorld.Thought_Memory, System.Boolean> predicate)
### Replacement: static System.Void
RimWorld.MemoryThoughtHandler::RimWorld.MemoryThoughtHandler.RemoveMemoriesOfDefIf_
Patch1(RimWorld.MemoryThoughtHandler this, RimWorld.ThoughtDef def,
System.Func`2<RimWorld.Thought_Memory, System.Boolean> predicate)
IL_0000: Local var 0: RimWorld.MemoryThoughtHandler/<>c__DisplayClass21_0
IL_0000: Local var 1: RimWorld.Thought_Memory
IL_0000: Local var 2: System.Predicate`1<RimWorld.Thought_Memory>
IL_0000: Local var 3: System.Boolean
IL_0000: ldc.i4 0
IL_0005: stloc 3 (System.Boolean)
IL_0009: ldc.i4.1
IL_000A: stloc 3 (System.Boolean)
IL_000E: ldloc 3 (System.Boolean)
IL_0012: brfalse => Label1
IL_0017: ldarg.0
IL_0018: ldarga 1
IL_001C: call static System.Void
AlienRace.HarmonyPatches::ThoughtReplacementPrefix(RimWorld.MemoryThoughtHandler
__instance, RimWorld.ThoughtDef& def)
IL_0021: Label1
IL_0021: nop
IL_0022: ldloc 3 (System.Boolean)
IL_0026: brfalse => Label0
IL_002B: // start original
IL_002B: newobj System.Void RimWorld.<>c__DisplayClass21_0::.ctor()
IL_0030: stloc.0
IL_0031: ldloc.0
IL_0032: ldarg.1
IL_0033: stfld RimWorld.ThoughtDef RimWorld.<>c__DisplayClass21_0::def
IL_0038: ldloc.0
IL_0039: ldarg.2
IL_003A: stfld System.Func`2<RimWorld.Thought_Memory, System.Boolean>
RimWorld.<>c__DisplayClass21_0::predicate
IL_003F: ldloc.0
IL_0040: ldfld RimWorld.ThoughtDef RimWorld.<>c__DisplayClass21_0::def
IL_0045: callvirt System.Boolean RimWorld.ThoughtDef::get_IsMemory()
IL_004A: brtrue => Label2
IL_004F: ldloc.0
IL_0050: ldfld RimWorld.ThoughtDef RimWorld.<>c__DisplayClass21_0::def
IL_0055: ldstr " is not a memory thought."
IL_005A: call static System.String System.String::Concat(System.Object arg0,
System.Object arg1)
IL_005F: call static System.Void Verse.Log::Warning(System.String text)
IL_0064: br => Label6
IL_0069: Label2
IL_0069: Label5
IL_0069: ldarg.0
IL_006A: ldfld System.Collections.Generic.List`1<RimWorld.Thought_Memory>
RimWorld.MemoryThoughtHandler::memories
IL_006F: ldloc.0
IL_0070: ldfld System.Predicate`1<RimWorld.Thought_Memory>
RimWorld.<>c__DisplayClass21_0::<>9__0
IL_0075: dup
IL_0076: brtrue => Label3
IL_007B: pop
IL_007C: ldloc.0
IL_007D: ldloc.0
IL_007E: ldftn System.Boolean
RimWorld.<>c__DisplayClass21_0::<RemoveMemoriesOfDefIf>b__0(RimWorld.Thought_Memory
x)
IL_0084: newobj System.Void
System.Predicate`1<RimWorld.Thought_Memory>::.ctor(System.Object object,
System.IntPtr method)
IL_0089: dup
IL_008A: stloc.2
IL_008B: stfld System.Predicate`1<RimWorld.Thought_Memory>
RimWorld.<>c__DisplayClass21_0::<>9__0
IL_0090: ldloc.2
IL_0091: Label3
IL_0091: callvirt RimWorld.Thought_Memory
System.Collections.Generic.List`1<RimWorld.Thought_Memory>::Find(System.Predicate`1
<RimWorld.Thought_Memory> match)
IL_0096: stloc.1
IL_0097: ldloc.1
IL_0098: brfalse => Label4
IL_009D: ldarg.0
IL_009E: ldloc.1
IL_009F: call System.Void
RimWorld.MemoryThoughtHandler::RemoveMemory(RimWorld.Thought_Memory th)
IL_00A4: br => Label5
IL_00A9: // end original
IL_00A9: Label4
IL_00A9: Label6
IL_00A9: Label0
IL_00A9: ret
DONE

### Patch: System.Void


RimWorld.MemoryThoughtHandler::RemoveMemoriesOfDefWhereOtherPawnIs(RimWorld.Thought
Def def, Verse.Pawn otherPawn)
### Replacement: static System.Void
RimWorld.MemoryThoughtHandler::RimWorld.MemoryThoughtHandler.RemoveMemoriesOfDefWhe
reOtherPawnIs_Patch1(RimWorld.MemoryThoughtHandler this, RimWorld.ThoughtDef def,
Verse.Pawn otherPawn)
IL_0000: Local var 0: System.Int32
IL_0000: Local var 1: RimWorld.Thought_Memory
IL_0000: Local var 2: System.Boolean
IL_0000: ldc.i4 0
IL_0005: stloc 2 (System.Boolean)
IL_0009: ldc.i4.1
IL_000A: stloc 2 (System.Boolean)
IL_000E: ldloc 2 (System.Boolean)
IL_0012: brfalse => Label1
IL_0017: ldarg.0
IL_0018: ldarga 1
IL_001C: call static System.Void
AlienRace.HarmonyPatches::ThoughtReplacementPrefix(RimWorld.MemoryThoughtHandler
__instance, RimWorld.ThoughtDef& def)
IL_0021: Label1
IL_0021: nop
IL_0022: ldloc 2 (System.Boolean)
IL_0026: brfalse => Label0
IL_002B: // start original
IL_002B: ldarg.0
IL_002C: ldfld System.Collections.Generic.List`1<RimWorld.Thought_Memory>
RimWorld.MemoryThoughtHandler::memories
IL_0031: callvirt virtual System.Int32
System.Collections.Generic.List`1<RimWorld.Thought_Memory>::get_Count()
IL_0036: ldc.i4.1
IL_0037: sub
IL_0038: stloc.0
IL_0039: br => Label2
IL_003E: Label5
IL_003E: ldarg.0
IL_003F: ldfld System.Collections.Generic.List`1<RimWorld.Thought_Memory>
RimWorld.MemoryThoughtHandler::memories
IL_0044: ldloc.0
IL_0045: callvirt virtual RimWorld.Thought_Memory
System.Collections.Generic.List`1<RimWorld.Thought_Memory>::get_Item(System.Int32
index)
IL_004A: stloc.1
IL_004B: ldloc.1
IL_004C: ldfld RimWorld.ThoughtDef RimWorld.Thought::def
IL_0051: ldarg.1
IL_0052: bne.un => Label3
IL_0057: ldloc.1
IL_0058: ldfld Verse.Pawn RimWorld.Thought_Memory::otherPawn
IL_005D: ldarg.2
IL_005E: bne.un => Label4
IL_0063: ldarg.0
IL_0064: ldloc.1
IL_0065: call System.Void
RimWorld.MemoryThoughtHandler::RemoveMemory(RimWorld.Thought_Memory th)
IL_006A: Label3
IL_006A: Label4
IL_006A: ldloc.0
IL_006B: ldc.i4.1
IL_006C: sub
IL_006D: stloc.0
IL_006E: Label2
IL_006E: ldloc.0
IL_006F: ldc.i4.0
IL_0070: bge => Label5
IL_0075: // end original
IL_0075: Label0
IL_0075: ret
DONE

### Patch: RimWorld.Thought_Memory


RimWorld.MemoryThoughtHandler::OldestMemoryOfDef(RimWorld.ThoughtDef def)
### Replacement: static RimWorld.Thought_Memory
RimWorld.MemoryThoughtHandler::RimWorld.MemoryThoughtHandler.OldestMemoryOfDef_Patc
h1(RimWorld.MemoryThoughtHandler this, RimWorld.ThoughtDef def)
IL_0000: Local var 0: RimWorld.Thought_Memory
IL_0000: Local var 1: System.Int32
IL_0000: Local var 2: System.Int32
IL_0000: Local var 3: RimWorld.Thought_Memory
IL_0000: Local var 4: RimWorld.Thought_Memory
IL_0000: Local var 5: System.Boolean
IL_0000: ldnull
IL_0001: stloc 4 (RimWorld.Thought_Memory)
IL_0005: ldc.i4 0
IL_000A: stloc 5 (System.Boolean)
IL_000E: ldc.i4.1
IL_000F: stloc 5 (System.Boolean)
IL_0013: ldloc 5 (System.Boolean)
IL_0017: brfalse => Label1
IL_001C: ldarg.0
IL_001D: ldarga 1
IL_0021: call static System.Void
AlienRace.HarmonyPatches::ThoughtReplacementPrefix(RimWorld.MemoryThoughtHandler
__instance, RimWorld.ThoughtDef& def)
IL_0026: Label1
IL_0026: nop
IL_0027: ldloc 5 (System.Boolean)
IL_002B: brfalse => Label0
IL_0030: // start original
IL_0030: ldnull
IL_0031: stloc.0
IL_0032: ldc.i4 -9999
IL_0037: stloc.1
IL_0038: ldc.i4.0
IL_0039: stloc.2
IL_003A: br => Label2
IL_003F: Label5
IL_003F: ldarg.0
IL_0040: ldfld System.Collections.Generic.List`1<RimWorld.Thought_Memory>
RimWorld.MemoryThoughtHandler::memories
IL_0045: ldloc.2
IL_0046: callvirt virtual RimWorld.Thought_Memory
System.Collections.Generic.List`1<RimWorld.Thought_Memory>::get_Item(System.Int32
index)
IL_004B: stloc.3
IL_004C: ldloc.3
IL_004D: ldfld RimWorld.ThoughtDef RimWorld.Thought::def
IL_0052: ldarg.1
IL_0053: bne.un => Label3
IL_0058: ldloc.3
IL_0059: ldfld System.Int32 RimWorld.Thought_Memory::age
IL_005E: ldloc.1
IL_005F: ble => Label4
IL_0064: ldloc.3
IL_0065: stloc.0
IL_0066: ldloc.3
IL_0067: ldfld System.Int32 RimWorld.Thought_Memory::age
IL_006C: stloc.1
IL_006D: Label3
IL_006D: Label4
IL_006D: ldloc.2
IL_006E: ldc.i4.1
IL_006F: add
IL_0070: stloc.2
IL_0071: Label2
IL_0071: ldloc.2
IL_0072: ldarg.0
IL_0073: ldfld System.Collections.Generic.List`1<RimWorld.Thought_Memory>
RimWorld.MemoryThoughtHandler::memories
IL_0078: callvirt virtual System.Int32
System.Collections.Generic.List`1<RimWorld.Thought_Memory>::get_Count()
IL_007D: blt => Label5
IL_0082: ldloc.0
IL_0083: // end original
IL_0083: stloc 4 (RimWorld.Thought_Memory)
IL_0087: Label0
IL_0087: ldloc 4 (RimWorld.Thought_Memory)
IL_008B: ret
DONE

### Patch: System.Int32


RimWorld.MemoryThoughtHandler::NumMemoriesOfDef(RimWorld.ThoughtDef def)
### Replacement: static System.Int32
RimWorld.MemoryThoughtHandler::RimWorld.MemoryThoughtHandler.NumMemoriesOfDef_Patch
1(RimWorld.MemoryThoughtHandler this, RimWorld.ThoughtDef def)
IL_0000: Local var 0: System.Int32
IL_0000: Local var 1: System.Int32
IL_0000: Local var 2: System.Int32
IL_0000: Local var 3: System.Boolean
IL_0000: ldc.i4 0
IL_0005: stloc 2 (System.Int32)
IL_0009: ldc.i4 0
IL_000E: stloc 3 (System.Boolean)
IL_0012: ldc.i4.1
IL_0013: stloc 3 (System.Boolean)
IL_0017: ldloc 3 (System.Boolean)
IL_001B: brfalse => Label1
IL_0020: ldarg.0
IL_0021: ldarga 1
IL_0025: call static System.Void
AlienRace.HarmonyPatches::ThoughtReplacementPrefix(RimWorld.MemoryThoughtHandler
__instance, RimWorld.ThoughtDef& def)
IL_002A: Label1
IL_002A: nop
IL_002B: ldloc 3 (System.Boolean)
IL_002F: brfalse => Label0
IL_0034: // start original
IL_0034: ldc.i4.0
IL_0035: stloc.0
IL_0036: ldc.i4.0
IL_0037: stloc.1
IL_0038: br => Label2
IL_003D: Label4
IL_003D: ldarg.0
IL_003E: ldfld System.Collections.Generic.List`1<RimWorld.Thought_Memory>
RimWorld.MemoryThoughtHandler::memories
IL_0043: ldloc.1
IL_0044: callvirt virtual RimWorld.Thought_Memory
System.Collections.Generic.List`1<RimWorld.Thought_Memory>::get_Item(System.Int32
index)
IL_0049: ldfld RimWorld.ThoughtDef RimWorld.Thought::def
IL_004E: ldarg.1
IL_004F: bne.un => Label3
IL_0054: ldloc.0
IL_0055: ldc.i4.1
IL_0056: add
IL_0057: stloc.0
IL_0058: Label3
IL_0058: ldloc.1
IL_0059: ldc.i4.1
IL_005A: add
IL_005B: stloc.1
IL_005C: Label2
IL_005C: ldloc.1
IL_005D: ldarg.0
IL_005E: ldfld System.Collections.Generic.List`1<RimWorld.Thought_Memory>
RimWorld.MemoryThoughtHandler::memories
IL_0063: callvirt virtual System.Int32
System.Collections.Generic.List`1<RimWorld.Thought_Memory>::get_Count()
IL_0068: blt => Label4
IL_006D: ldloc.0
IL_006E: // end original
IL_006E: stloc 2 (System.Int32)
IL_0072: Label0
IL_0072: ldloc 2 (System.Int32)
IL_0076: ret
DONE

### Patch: RimWorld.Thought_Memory


RimWorld.MemoryThoughtHandler::GetFirstMemoryOfDef(RimWorld.ThoughtDef def)
### Replacement: static RimWorld.Thought_Memory
RimWorld.MemoryThoughtHandler::RimWorld.MemoryThoughtHandler.GetFirstMemoryOfDef_Pa
tch1(RimWorld.MemoryThoughtHandler this, RimWorld.ThoughtDef def)
IL_0000: Local var 0: System.Int32
IL_0000: Local var 1: RimWorld.Thought_Memory
IL_0000: Local var 2: System.Boolean
IL_0000: ldnull
IL_0001: stloc 1 (RimWorld.Thought_Memory)
IL_0005: ldc.i4 0
IL_000A: stloc 2 (System.Boolean)
IL_000E: ldc.i4.1
IL_000F: stloc 2 (System.Boolean)
IL_0013: ldloc 2 (System.Boolean)
IL_0017: brfalse => Label1
IL_001C: ldarg.0
IL_001D: ldarga 1
IL_0021: call static System.Void
AlienRace.HarmonyPatches::ThoughtReplacementPrefix(RimWorld.MemoryThoughtHandler
__instance, RimWorld.ThoughtDef& def)
IL_0026: Label1
IL_0026: nop
IL_0027: ldloc 2 (System.Boolean)
IL_002B: brfalse => Label0
IL_0030: // start original
IL_0030: ldc.i4.0
IL_0031: stloc.0
IL_0032: br => Label2
IL_0037: Label4
IL_0037: ldarg.0
IL_0038: ldfld System.Collections.Generic.List`1<RimWorld.Thought_Memory>
RimWorld.MemoryThoughtHandler::memories
IL_003D: ldloc.0
IL_003E: callvirt virtual RimWorld.Thought_Memory
System.Collections.Generic.List`1<RimWorld.Thought_Memory>::get_Item(System.Int32
index)
IL_0043: ldfld RimWorld.ThoughtDef RimWorld.Thought::def
IL_0048: ldarg.1
IL_0049: bne.un => Label3
IL_004E: ldarg.0
IL_004F: ldfld System.Collections.Generic.List`1<RimWorld.Thought_Memory>
RimWorld.MemoryThoughtHandler::memories
IL_0054: ldloc.0
IL_0055: callvirt virtual RimWorld.Thought_Memory
System.Collections.Generic.List`1<RimWorld.Thought_Memory>::get_Item(System.Int32
index)
IL_005A: br => Label5
IL_005F: Label3
IL_005F: ldloc.0
IL_0060: ldc.i4.1
IL_0061: add
IL_0062: stloc.0
IL_0063: Label2
IL_0063: ldloc.0
IL_0064: ldarg.0
IL_0065: ldfld System.Collections.Generic.List`1<RimWorld.Thought_Memory>
RimWorld.MemoryThoughtHandler::memories
IL_006A: callvirt virtual System.Int32
System.Collections.Generic.List`1<RimWorld.Thought_Memory>::get_Count()
IL_006F: blt => Label4
IL_0074: ldnull
IL_0075: // end original
IL_0075: Label5
IL_0075: stloc 1 (RimWorld.Thought_Memory)
IL_0079: Label0
IL_0079: ldloc 1 (RimWorld.Thought_Memory)
IL_007D: ret
DONE

### Patch: static System.Void


RimWorld.AgeInjuryUtility::GenerateRandomOldAgeInjuries(Verse.Pawn pawn,
System.Boolean tryNotToKillPawn)
### Replacement: static System.Void
RimWorld.AgeInjuryUtility::RimWorld.AgeInjuryUtility.GenerateRandomOldAgeInjuries_P
atch1(Verse.Pawn pawn, System.Boolean tryNotToKillPawn)
IL_0000: Local var 0: RimWorld.AgeInjuryUtility/<>c__DisplayClass5_0
IL_0000: Local var 1: System.Single
IL_0000: Local var 2: System.Single
IL_0000: Local var 3: System.Single
IL_0000: Local var 4: System.Int32
IL_0000: Local var 5: System.Boolean
IL_0000: Local var 6: System.Single
IL_0000: Local var 7: System.Int32
IL_0000: Local var 8:
System.Collections.Generic.IEnumerable`1<Verse.BodyPartRecord>
IL_0000: Local var 9: System.Func`2<Verse.BodyPartRecord,System.Boolean>
IL_0000: Local var 10: Verse.BodyPartRecord
IL_0000: Local var 11: Verse.HediffDef
IL_0000: Local var 12: Verse.Hediff_MissingPart
IL_0000: Local var 13: System.Nullable`1<Verse.DamageInfo>
IL_0000: Local var 14: Verse.Hediff_Injury
IL_0000: Local var 15: System.Int32
IL_0000: Local var 16:
System.Collections.Generic.IEnumerator`1<Verse.HediffGiver_Birthday>
IL_0000: Local var 17: System.Boolean
IL_0000: ldc.i4 0
IL_0005: stloc 17 (System.Boolean)
IL_0009: ldc.i4.1
IL_000A: stloc 17 (System.Boolean)
IL_000E: ldloc 17 (System.Boolean)
IL_0012: brfalse => Label1
IL_0017: ldarg 0
IL_001B: call static System.Boolean
AlienRace.HarmonyPatches::GenerateRandomOldAgeInjuriesPrefix(Verse.Pawn pawn)
IL_0020: stloc 17 (System.Boolean)
IL_0024: Label1
IL_0024: nop
IL_0025: ldloc 17 (System.Boolean)
IL_0029: brfalse => Label0
IL_002E: // start original
IL_002E: newobj System.Void RimWorld.<>c__DisplayClass5_0::.ctor()
IL_0033: stloc.0
IL_0034: ldloc.0
IL_0035: ldarg.0
IL_0036: stfld Verse.Pawn RimWorld.<>c__DisplayClass5_0::pawn
IL_003B: ldloc.0
IL_003C: ldfld Verse.Pawn RimWorld.<>c__DisplayClass5_0::pawn
IL_0041: ldfld Verse.PawnKindDef Verse.Pawn::kindDef
IL_0046: ldfld System.Boolean Verse.PawnKindDef::allowOldAgeInjuries
IL_004B: brtrue => Label2
IL_0050: br => Label40
IL_0055: Label2
IL_0055: ldloc.0
IL_0056: ldfld Verse.Pawn RimWorld.<>c__DisplayClass5_0::pawn
IL_005B: callvirt Verse.RaceProperties Verse.Pawn::get_RaceProps()
IL_0060: callvirt System.Boolean Verse.RaceProperties::get_IsMechanoid()
IL_0065: brtrue => Label3
IL_006A: ldloc.0
IL_006B: ldfld Verse.Pawn RimWorld.<>c__DisplayClass5_0::pawn
IL_0070: callvirt Verse.RaceProperties Verse.Pawn::get_RaceProps()
IL_0075: ldfld System.Single Verse.RaceProperties::lifeExpectancy
IL_007A: br => Label4
IL_007F: Label3
IL_007F: ldc.r4 2500
IL_0084: Label4
IL_0084: dup
IL_0085: ldc.r4 8
IL_008A: div
IL_008B: stloc.1
IL_008C: ldc.r4 1.5
IL_0091: mul
IL_0092: stloc.2
IL_0093: ldloc.0
IL_0094: ldfld Verse.Pawn RimWorld.<>c__DisplayClass5_0::pawn
IL_0099: callvirt Verse.RaceProperties Verse.Pawn::get_RaceProps()
IL_009E: callvirt System.Boolean Verse.RaceProperties::get_Humanlike()
IL_00A3: brtrue => Label5
IL_00A8: ldc.r4 0.03
IL_00AD: br => Label6
IL_00B2: Label5
IL_00B2: ldc.r4 0.15
IL_00B7: Label6
IL_00B7: stloc.3
IL_00B8: ldc.i4.0
IL_00B9: stloc.s 4 (System.Int32)
IL_00BB: ldloc.1
IL_00BC: stloc.s 6 (System.Single)
IL_00BE: br => Label7
IL_00C3: Label9
IL_00C3: ldloc.3
IL_00C4: call static System.Boolean Verse.Rand::Chance(System.Single chance)
IL_00C9: brfalse => Label8
IL_00CE: ldloc.s 4 (System.Int32)
IL_00D0: ldc.i4.1
IL_00D1: add
IL_00D2: stloc.s 4 (System.Int32)
IL_00D4: Label8
IL_00D4: ldloc.s 6 (System.Single)
IL_00D6: ldloc.1
IL_00D7: add
IL_00D8: stloc.s 6 (System.Single)
IL_00DA: Label7
IL_00DA: ldloc.s 6 (System.Single)
IL_00DC: ldloc.0
IL_00DD: ldfld Verse.Pawn RimWorld.<>c__DisplayClass5_0::pawn
IL_00E2: ldfld Verse.Pawn_AgeTracker Verse.Pawn::ageTracker
IL_00E7: callvirt System.Int32 Verse.Pawn_AgeTracker::get_AgeBiologicalYears()
IL_00EC: conv.r4
IL_00ED: ldloc.2
IL_00EE: call static System.Single UnityEngine.Mathf::Min(System.Single a,
System.Single b)
IL_00F3: blt => Label9
IL_00F8: ldloc.0
IL_00F9: ldfld Verse.Pawn RimWorld.<>c__DisplayClass5_0::pawn
IL_00FE: callvirt Verse.RaceProperties Verse.Pawn::get_RaceProps()
IL_0103: callvirt System.Boolean Verse.RaceProperties::get_Humanlike()
IL_0108: brfalse => Label10
IL_010D: ldsfld Verse.SimpleCurve
RimWorld.AgeInjuryUtility::AmputationChanceFromAgeCurve
IL_0112: ldloc.0
IL_0113: ldfld Verse.Pawn RimWorld.<>c__DisplayClass5_0::pawn
IL_0118: ldfld Verse.Pawn_AgeTracker Verse.Pawn::ageTracker
IL_011D: callvirt System.Single
Verse.Pawn_AgeTracker::get_AgeBiologicalYearsFloat()
IL_0122: callvirt System.Single Verse.SimpleCurve::Evaluate(System.Single x)
IL_0127: call static System.Boolean Verse.Rand::Chance(System.Single chance)
IL_012C: br => Label11
IL_0131: Label10
IL_0131: ldc.i4.1
IL_0132: Label11
IL_0132: stloc.s 5 (System.Boolean)
IL_0134: ldc.i4.0
IL_0135: stloc.s 7 (System.Int32)
IL_0137: br => Label12
IL_013C: Label30
IL_013C: ldloc.0
IL_013D: ldfld Verse.Pawn RimWorld.<>c__DisplayClass5_0::pawn
IL_0142: ldfld Verse.Pawn_HealthTracker Verse.Pawn::health
IL_0147: ldfld Verse.HediffSet Verse.Pawn_HealthTracker::hediffSet
IL_014C: ldc.i4.0
IL_014D: ldc.i4.0
IL_014E: ldnull
IL_014F: ldnull
IL_0150: callvirt System.Collections.Generic.IEnumerable`1<Verse.BodyPartRecord>
Verse.HediffSet::GetNotMissingParts(Verse.BodyPartHeight height,
Verse.BodyPartDepth depth, Verse.BodyPartTagDef tag, Verse.BodyPartRecord
partParent)
IL_0155: ldloc.0
IL_0156: ldfld System.Func`2<Verse.BodyPartRecord, System.Boolean>
RimWorld.<>c__DisplayClass5_0::<>9__0
IL_015B: dup
IL_015C: brtrue => Label13
IL_0161: pop
IL_0162: ldloc.0
IL_0163: ldloc.0
IL_0164: ldftn System.Boolean
RimWorld.<>c__DisplayClass5_0::<GenerateRandomOldAgeInjuries>b__0(Verse.BodyPartRec
ord x)
IL_016A: newobj System.Void System.Func`2<Verse.BodyPartRecord,
System.Boolean>::.ctor(System.Object object, System.IntPtr method)
IL_016F: dup
IL_0170: stloc.s 9 (System.Func`2[Verse.BodyPartRecord,System.Boolean])
IL_0172: stfld System.Func`2<Verse.BodyPartRecord, System.Boolean>
RimWorld.<>c__DisplayClass5_0::<>9__0
IL_0177: ldloc.s 9 (System.Func`2[Verse.BodyPartRecord,System.Boolean])
IL_0179: Label13
IL_0179: call static
System.Collections.Generic.IEnumerable`1<Verse.BodyPartRecord>
System.Linq.Enumerable::Where(System.Collections.Generic.IEnumerable`1<Verse.BodyPa
rtRecord> source, System.Func`2<Verse.BodyPartRecord, System.Boolean> predicate)
IL_017E: stloc.s 8
(System.Collections.Generic.IEnumerable`1[Verse.BodyPartRecord])
IL_0180: ldloc.s 8
(System.Collections.Generic.IEnumerable`1[Verse.BodyPartRecord])
IL_0182: call static System.Boolean
System.Linq.Enumerable::Any(System.Collections.Generic.IEnumerable`1<Verse.BodyPart
Record> source)
IL_0187: brfalse => Label14
IL_018C: ldloc.s 8
(System.Collections.Generic.IEnumerable`1[Verse.BodyPartRecord])
IL_018E: ldsfld System.Func`2<Verse.BodyPartRecord, System.Single>
RimWorld.<>c::<>9__5_1
IL_0193: dup
IL_0194: brtrue => Label15
IL_0199: pop
IL_019A: ldsfld RimWorld.<>c RimWorld.<>c::<>9
IL_019F: ldftn System.Single
RimWorld.<>c::<GenerateRandomOldAgeInjuries>b__5_1(Verse.BodyPartRecord x)
IL_01A5: newobj System.Void System.Func`2<Verse.BodyPartRecord,
System.Single>::.ctor(System.Object object, System.IntPtr method)
IL_01AA: dup
IL_01AB: stsfld System.Func`2<Verse.BodyPartRecord, System.Single>
RimWorld.<>c::<>9__5_1
IL_01B0: Label15
IL_01B0: call static Verse.BodyPartRecord
Verse.GenCollection::RandomElementByWeight(System.Collections.Generic.IEnumerable`1
<Verse.BodyPartRecord> source, System.Func`2<Verse.BodyPartRecord, System.Single>
weightSelector)
IL_01B5: stloc.s 10 (Verse.BodyPartRecord)
IL_01B7: ldloc.s 10 (Verse.BodyPartRecord)
IL_01B9: ldfld Verse.BodyPartDef Verse.BodyPartRecord::def
IL_01BE: ldfld System.Single Verse.BodyPartDef::frostbiteVulnerability
IL_01C3: ldc.r4 0
IL_01C8: ble.un => Label16
IL_01CD: ldloc.0
IL_01CE: ldfld Verse.Pawn RimWorld.<>c__DisplayClass5_0::pawn
IL_01D3: callvirt Verse.RaceProperties Verse.Pawn::get_RaceProps()
IL_01D8: callvirt System.Boolean Verse.RaceProperties::get_ToolUser()
IL_01DD: br => Label17
IL_01E2: Label16
IL_01E2: ldc.i4.0
IL_01E3: Label17
IL_01E3: call static Verse.DamageDef
Verse.HealthUtility::RandomPermanentInjuryDamageType(System.Boolean allowFrostbite)
IL_01E8: ldloc.0
IL_01E9: ldfld Verse.Pawn RimWorld.<>c__DisplayClass5_0::pawn
IL_01EE: ldloc.s 10 (Verse.BodyPartRecord)
IL_01F0: call static Verse.HediffDef
Verse.HealthUtility::GetHediffDefFromDamage(Verse.DamageDef dam, Verse.Pawn pawn,
Verse.BodyPartRecord part)
IL_01F5: stloc.s 11 (Verse.HediffDef)
IL_01F7: ldloc.s 10 (Verse.BodyPartRecord)
IL_01F9: ldfld Verse.BodyPartDef Verse.BodyPartRecord::def
IL_01FE: ldfld System.Boolean Verse.BodyPartDef::pawnGeneratorCanAmputate
IL_0203: ldloc.s 5 (System.Boolean)
IL_0205: and
IL_0206: brfalse => Label18
IL_020B: ldc.r4 0.3
IL_0210: call static System.Boolean Verse.Rand::Chance(System.Single chance)
IL_0215: brfalse => Label19
IL_021A: ldsfld Verse.HediffDef RimWorld.HediffDefOf::MissingBodyPart
IL_021F: ldloc.0
IL_0220: ldfld Verse.Pawn RimWorld.<>c__DisplayClass5_0::pawn
IL_0225: ldnull
IL_0226: call static Verse.Hediff
Verse.HediffMaker::MakeHediff(Verse.HediffDef def, Verse.Pawn pawn,
Verse.BodyPartRecord partRecord)
IL_022B: castclass Verse.Hediff_MissingPart
IL_0230: stloc.s 12 (Verse.Hediff_MissingPart)
IL_0232: ldloc.s 12 (Verse.Hediff_MissingPart)
IL_0234: ldloc.s 11 (Verse.HediffDef)
IL_0236: stfld Verse.HediffDef Verse.Hediff_MissingPart::lastInjury
IL_023B: ldloc.s 12 (Verse.Hediff_MissingPart)
IL_023D: ldloc.s 10 (Verse.BodyPartRecord)
IL_023F: callvirt System.Void Verse.Hediff::set_Part(Verse.BodyPartRecord value)
IL_0244: ldloc.s 12 (Verse.Hediff_MissingPart)
IL_0246: ldc.i4.0
IL_0247: callvirt System.Void
Verse.Hediff_MissingPart::set_IsFresh(System.Boolean value)
IL_024C: ldarg.1
IL_024D: brfalse => Label20
IL_0252: ldloc.0
IL_0253: ldfld Verse.Pawn RimWorld.<>c__DisplayClass5_0::pawn
IL_0258: ldfld Verse.Pawn_HealthTracker Verse.Pawn::health
IL_025D: ldloc.s 12 (Verse.Hediff_MissingPart)
IL_025F: callvirt System.Boolean
Verse.Pawn_HealthTracker::WouldDieAfterAddingHediff(Verse.Hediff hediff)
IL_0264: brtrue => Label21
IL_0269: Label20
IL_0269: ldloc.0
IL_026A: ldfld Verse.Pawn RimWorld.<>c__DisplayClass5_0::pawn
IL_026F: ldfld Verse.Pawn_HealthTracker Verse.Pawn::health
IL_0274: ldloc.s 12 (Verse.Hediff_MissingPart)
IL_0276: ldloc.s 10 (Verse.BodyPartRecord)
IL_0278: ldloca.s 13 (System.Nullable`1[Verse.DamageInfo])
IL_027A: initobj System.Nullable`1[Verse.DamageInfo]
IL_0280: ldloc.s 13 (System.Nullable`1[Verse.DamageInfo])
IL_0282: ldnull
IL_0283: callvirt System.Void Verse.Pawn_HealthTracker::AddHediff(Verse.Hediff
hediff, Verse.BodyPartRecord part, System.Nullable`1<Verse.DamageInfo> dinfo,
Verse.DamageResult result)
IL_0288: ldloc.0
IL_0289: ldfld Verse.Pawn RimWorld.<>c__DisplayClass5_0::pawn
IL_028E: callvirt Verse.RaceProperties Verse.Pawn::get_RaceProps()
IL_0293: callvirt System.Boolean Verse.RaceProperties::get_Humanlike()
IL_0298: brfalse => Label22
IL_029D: ldloc.s 10 (Verse.BodyPartRecord)
IL_029F: ldfld Verse.BodyPartDef Verse.BodyPartRecord::def
IL_02A4: ldsfld Verse.BodyPartDef RimWorld.BodyPartDefOf::Leg
IL_02A9: bne.un => Label23
IL_02AE: ldc.r4 0.5
IL_02B3: call static System.Boolean Verse.Rand::Chance(System.Single chance)
IL_02B8: brfalse => Label24
IL_02BD: ldsfld Verse.RecipeDef RimWorld.RecipeDefOf::InstallPegLeg
IL_02C2: callvirt Verse.RecipeWorker Verse.RecipeDef::get_Worker()
IL_02C7: ldloc.0
IL_02C8: ldfld Verse.Pawn RimWorld.<>c__DisplayClass5_0::pawn
IL_02CD: ldloc.s 10 (Verse.BodyPartRecord)
IL_02CF: ldnull
IL_02D0: ldsfld System.Collections.Generic.List`1<Verse.Thing>
RimWorld.AgeInjuryUtility::emptyIngredientsList
IL_02D5: ldnull
IL_02D6: callvirt virtual System.Void Verse.RecipeWorker::ApplyOnPawn(Verse.Pawn
pawn, Verse.BodyPartRecord part, Verse.Pawn billDoer,
System.Collections.Generic.List`1<Verse.Thing> ingredients, RimWorld.Bill bill)
IL_02DB: br => Label25
IL_02E0: Label18
IL_02E0: Label19
IL_02E0: ldloc.s 10 (Verse.BodyPartRecord)
IL_02E2: ldfld Verse.BodyPartDef Verse.BodyPartRecord::def
IL_02E7: ldfld System.Single Verse.BodyPartDef::permanentInjuryChanceFactor
IL_02EC: ldc.r4 0
IL_02F1: ble.un => Label26
IL_02F6: ldloc.s 11 (Verse.HediffDef)
IL_02F8: ldtoken Verse.HediffComp_GetsPermanent
IL_02FD: call static System.Type
System.Type::GetTypeFromHandle(System.RuntimeTypeHandle handle)
IL_0302: callvirt System.Boolean Verse.HediffDef::HasComp(System.Type compClass)
IL_0307: brfalse => Label27
IL_030C: ldloc.s 11 (Verse.HediffDef)
IL_030E: ldloc.0
IL_030F: ldfld Verse.Pawn RimWorld.<>c__DisplayClass5_0::pawn
IL_0314: ldnull
IL_0315: call static Verse.Hediff
Verse.HediffMaker::MakeHediff(Verse.HediffDef def, Verse.Pawn pawn,
Verse.BodyPartRecord partRecord)
IL_031A: castclass Verse.Hediff_Injury
IL_031F: stloc.s 14 (Verse.Hediff_Injury)
IL_0321: ldloc.s 14 (Verse.Hediff_Injury)
IL_0323: ldc.i4.2
IL_0324: ldc.i4.6
IL_0325: call static System.Int32 Verse.Rand::RangeInclusive(System.Int32
min, System.Int32 max)
IL_032A: conv.r4
IL_032B: callvirt virtual System.Void Verse.Hediff::set_Severity(System.Single
value)
IL_0330: ldloc.s 14 (Verse.Hediff_Injury)
IL_0332: call static Verse.HediffComp_GetsPermanent
Verse.HediffUtility::TryGetComp(Verse.Hediff hd)
IL_0337: ldc.i4.1
IL_0338: callvirt System.Void
Verse.HediffComp_GetsPermanent::set_IsPermanent(System.Boolean value)
IL_033D: ldloc.s 14 (Verse.Hediff_Injury)
IL_033F: ldloc.s 10 (Verse.BodyPartRecord)
IL_0341: callvirt System.Void Verse.Hediff::set_Part(Verse.BodyPartRecord value)
IL_0346: ldarg.1
IL_0347: brfalse => Label28
IL_034C: ldloc.0
IL_034D: ldfld Verse.Pawn RimWorld.<>c__DisplayClass5_0::pawn
IL_0352: ldfld Verse.Pawn_HealthTracker Verse.Pawn::health
IL_0357: ldloc.s 14 (Verse.Hediff_Injury)
IL_0359: callvirt System.Boolean
Verse.Pawn_HealthTracker::WouldDieAfterAddingHediff(Verse.Hediff hediff)
IL_035E: brtrue => Label29
IL_0363: Label28
IL_0363: ldloc.0
IL_0364: ldfld Verse.Pawn RimWorld.<>c__DisplayClass5_0::pawn
IL_0369: ldfld Verse.Pawn_HealthTracker Verse.Pawn::health
IL_036E: ldloc.s 14 (Verse.Hediff_Injury)
IL_0370: ldloc.s 10 (Verse.BodyPartRecord)
IL_0372: ldloca.s 13 (System.Nullable`1[Verse.DamageInfo])
IL_0374: initobj System.Nullable`1[Verse.DamageInfo]
IL_037A: ldloc.s 13 (System.Nullable`1[Verse.DamageInfo])
IL_037C: ldnull
IL_037D: callvirt System.Void Verse.Pawn_HealthTracker::AddHediff(Verse.Hediff
hediff, Verse.BodyPartRecord part, System.Nullable`1<Verse.DamageInfo> dinfo,
Verse.DamageResult result)
IL_0382: Label14
IL_0382: Label21
IL_0382: Label22
IL_0382: Label23
IL_0382: Label24
IL_0382: Label25
IL_0382: Label26
IL_0382: Label27
IL_0382: Label29
IL_0382: ldloc.s 7 (System.Int32)
IL_0384: ldc.i4.1
IL_0385: add
IL_0386: stloc.s 7 (System.Int32)
IL_0388: Label12
IL_0388: ldloc.s 7 (System.Int32)
IL_038A: ldloc.s 4 (System.Int32)
IL_038C: blt => Label30
IL_0391: ldc.i4.1
IL_0392: stloc.s 15 (System.Int32)
IL_0394: br => Label31
IL_0399: Label39
IL_0399: ldloc.0
IL_039A: ldfld Verse.Pawn RimWorld.<>c__DisplayClass5_0::pawn
IL_039F: ldloc.s 15 (System.Int32)
IL_03A1: conv.r4
IL_03A2: call static
System.Collections.Generic.IEnumerable`1<Verse.HediffGiver_Birthday>
RimWorld.AgeInjuryUtility::RandomHediffsToGainOnBirthday(Verse.Pawn pawn,
System.Single age)
IL_03A7: callvirt abstract virtual
System.Collections.Generic.IEnumerator`1<Verse.HediffGiver_Birthday>
System.Collections.Generic.IEnumerable`1<Verse.HediffGiver_Birthday>::GetEnumerator
()
IL_03AC: stloc.s 16
(System.Collections.Generic.IEnumerator`1[Verse.HediffGiver_Birthday])
.try
{
IL_03AE: br => Label32
IL_03B3: Label35
IL_03B3: ldloc.s 16
(System.Collections.Generic.IEnumerator`1[Verse.HediffGiver_Birthday])
IL_03B5: callvirt abstract virtual Verse.HediffGiver_Birthday
System.Collections.Generic.IEnumerator`1<Verse.HediffGiver_Birthday>::get_Current()
IL_03BA: ldloc.0
IL_03BB: ldfld Verse.Pawn RimWorld.<>c__DisplayClass5_0::pawn
IL_03C0: ldloc.s 15 (System.Int32)
IL_03C2: conv.r4
IL_03C3: ldarg.1
IL_03C4: callvirt System.Void
Verse.HediffGiver_Birthday::TryApplyAndSimulateSeverityChange(Verse.Pawn pawn,
System.Single gotAtAge, System.Boolean tryNotToKillPawn)
IL_03C9: ldloc.0
IL_03CA: ldfld Verse.Pawn RimWorld.<>c__DisplayClass5_0::pawn
IL_03CF: callvirt System.Boolean Verse.Pawn::get_Dead()
IL_03D4: brfalse => Label33
IL_03D9: leave => Label34
IL_03DE: Label32
IL_03DE: Label33
IL_03DE: ldloc.s 16
(System.Collections.Generic.IEnumerator`1[Verse.HediffGiver_Birthday])
IL_03E0: callvirt abstract virtual System.Boolean
System.Collections.IEnumerator::MoveNext()
IL_03E5: brtrue => Label35
IL_03EA: leave => Label36
IL_03EF: leave => (autogenerated)
} // end try
.finally
{
IL_03F4: ldloc.s 16
(System.Collections.Generic.IEnumerator`1[Verse.HediffGiver_Birthday])
IL_03F6: brfalse => Label37
IL_03FB: ldloc.s 16
(System.Collections.Generic.IEnumerator`1[Verse.HediffGiver_Birthday])
IL_03FD: callvirt abstract virtual System.Void
System.IDisposable::Dispose()
IL_0402: Label37
IL_0402: endfinally
IL_0403: leave => (autogenerated)
} // end handler
IL_0404: Label34
IL_0404: Label36
IL_0404: ldloc.0
IL_0405: ldfld Verse.Pawn RimWorld.<>c__DisplayClass5_0::pawn
IL_040A: callvirt System.Boolean Verse.Pawn::get_Dead()
IL_040F: brtrue => Label38
IL_0414: ldloc.s 15 (System.Int32)
IL_0416: ldc.i4.1
IL_0417: add
IL_0418: stloc.s 15 (System.Int32)
IL_041A: Label31
IL_041A: ldloc.s 15 (System.Int32)
IL_041C: ldloc.0
IL_041D: ldfld Verse.Pawn RimWorld.<>c__DisplayClass5_0::pawn
IL_0422: ldfld Verse.Pawn_AgeTracker Verse.Pawn::ageTracker
IL_0427: callvirt System.Int32 Verse.Pawn_AgeTracker::get_AgeBiologicalYears()
IL_042C: blt => Label39
IL_0431: // end original
IL_0431: Label38
IL_0431: Label40
IL_0431: Label0
IL_0431: ret
DONE

### Patch: static


System.Collections.Generic.IEnumerable`1<Verse.HediffGiver_Birthday>
RimWorld.AgeInjuryUtility::RandomHediffsToGainOnBirthday(Verse.ThingDef raceDef,
System.Single cancerFactor, System.Single age)
### Replacement: static
System.Collections.Generic.IEnumerable`1<Verse.HediffGiver_Birthday>
RimWorld.AgeInjuryUtility::RimWorld.AgeInjuryUtility.RandomHediffsToGainOnBirthday_
Patch1(Verse.ThingDef raceDef, System.Single cancerFactor, System.Single age)
IL_0000: Local var 0:
System.Collections.Generic.IEnumerable`1<Verse.HediffGiver_Birthday>
IL_0000: ldnull
IL_0001: stloc 0
(System.Collections.Generic.IEnumerable`1[Verse.HediffGiver_Birthday])
IL_0005: // start original
IL_0005: ldc.i4.s -2
IL_0007: newobj System.Void
RimWorld.<RandomHediffsToGainOnBirthday>d__4::.ctor(System.Int32 <>1__state)
IL_000C: dup
IL_000D: ldarg.0
IL_000E: stfld Verse.ThingDef
RimWorld.<RandomHediffsToGainOnBirthday>d__4::<>3__raceDef
IL_0013: dup
IL_0014: ldarg.1
IL_0015: stfld System.Single
RimWorld.<RandomHediffsToGainOnBirthday>d__4::<>3__cancerFactor
IL_001A: dup
IL_001B: ldarg.2
IL_001C: stfld System.Single
RimWorld.<RandomHediffsToGainOnBirthday>d__4::<>3__age
IL_0021: // end original
IL_0021: stloc 0
(System.Collections.Generic.IEnumerable`1[Verse.HediffGiver_Birthday])
IL_0025: ldloca 0
(System.Collections.Generic.IEnumerable`1[Verse.HediffGiver_Birthday])
IL_0029: ldarg 0
IL_002D: call static System.Void
AlienRace.HarmonyPatches::RandomHediffsToGainOnBirthdayPostfix(System.Collections.G
eneric.IEnumerable`1& __result, Verse.ThingDef raceDef)
IL_0032: ldloc 0
(System.Collections.Generic.IEnumerable`1[Verse.HediffGiver_Birthday])
IL_0036: ret
DONE

### Patch: static System.Void Verse.PawnGenerator::GenerateRandomAge(Verse.Pawn


pawn, Verse.PawnGenerationRequest request)
### Replacement: static System.Void
Verse.PawnGenerator::Verse.PawnGenerator.GenerateRandomAge_Patch1(Verse.Pawn pawn,
Verse.PawnGenerationRequest request)
IL_0000: Local var 0: Verse.PawnGenerator/<>c__DisplayClass39_0
IL_0000: Local var 1: System.Nullable`1<System.Single>
IL_0000: Local var 2: System.Nullable`1<System.Single>
IL_0000: Local var 3: Verse.PawnGenerator/<>c__DisplayClass39_1
IL_0000: Local var 4: System.Int32
IL_0000: Local var 5: Verse.FloatRange
IL_0000: Local var 6: System.Int32
IL_0000: Local var 7: System.Int64
IL_0000: Local var 8: System.Single
IL_0000: Local var 9: System.Int32
IL_0000: Local var 10: System.Boolean
IL_0000: ldc.i4 0
IL_0005: stloc 10 (System.Boolean)
IL_0009: ldc.i4.1
IL_000A: stloc 10 (System.Boolean)
IL_000E: ldloc 10 (System.Boolean)
IL_0012: brfalse => Label1
IL_0017: ldarg 0
IL_001B: ldarg 1
IL_001F: call static System.Void
AlienRace.HarmonyPatches::GenerateRandomAgePrefix(Verse.Pawn pawn,
Verse.PawnGenerationRequest request)
IL_0024: Label1
IL_0024: nop
IL_0025: ldloc 10 (System.Boolean)
IL_0029: brfalse => Label0
IL_002E: // start original
IL_002E: ldloca.s 0 (Verse.PawnGenerator+<>c__DisplayClass39_0)
IL_0030: ldarg.1
IL_0031: stfld Verse.PawnGenerationRequest
Verse.<>c__DisplayClass39_0::request
IL_0036: ldloca.s 0 (Verse.PawnGenerator+<>c__DisplayClass39_0)
IL_0038: ldarg.0
IL_0039: stfld Verse.Pawn Verse.<>c__DisplayClass39_0::pawn
IL_003E: ldloca.s 0 (Verse.PawnGenerator+<>c__DisplayClass39_0)
IL_0040: ldflda Verse.PawnGenerationRequest
Verse.<>c__DisplayClass39_0::request
IL_0045: call System.Nullable`1<System.Single>
Verse.PawnGenerationRequest::get_FixedBiologicalAge()
IL_004A: stloc.1
IL_004B: ldloca.s 1 (System.Nullable`1[System.Single])
IL_004D: call System.Boolean System.Nullable`1<System.Single>::get_HasValue()
IL_0052: brfalse => Label2
IL_0057: ldloca.s 0 (Verse.PawnGenerator+<>c__DisplayClass39_0)
IL_0059: ldflda Verse.PawnGenerationRequest
Verse.<>c__DisplayClass39_0::request
IL_005E: call System.Nullable`1<System.Single>
Verse.PawnGenerationRequest::get_FixedChronologicalAge()
IL_0063: stloc.1
IL_0064: ldloca.s 1 (System.Nullable`1[System.Single])
IL_0066: call System.Boolean System.Nullable`1<System.Single>::get_HasValue()
IL_006B: brfalse => Label3
IL_0070: ldloca.s 0 (Verse.PawnGenerator+<>c__DisplayClass39_0)
IL_0072: ldflda Verse.PawnGenerationRequest
Verse.<>c__DisplayClass39_0::request
IL_0077: call System.Nullable`1<System.Single>
Verse.PawnGenerationRequest::get_FixedBiologicalAge()
IL_007C: stloc.1
IL_007D: ldloca.s 0 (Verse.PawnGenerator+<>c__DisplayClass39_0)
IL_007F: ldflda Verse.PawnGenerationRequest
Verse.<>c__DisplayClass39_0::request
IL_0084: call System.Nullable`1<System.Single>
Verse.PawnGenerationRequest::get_FixedChronologicalAge()
IL_0089: stloc.2
IL_008A: ldloca.s 1 (System.Nullable`1[System.Single])
IL_008C: call System.Single
System.Nullable`1<System.Single>::GetValueOrDefault()
IL_0091: ldloca.s 2 (System.Nullable`1[System.Single])
IL_0093: call System.Single
System.Nullable`1<System.Single>::GetValueOrDefault()
IL_0098: cgt
IL_009A: ldloca.s 1 (System.Nullable`1[System.Single])
IL_009C: call System.Boolean System.Nullable`1<System.Single>::get_HasValue()
IL_00A1: ldloca.s 2 (System.Nullable`1[System.Single])
IL_00A3: call System.Boolean System.Nullable`1<System.Single>::get_HasValue()
IL_00A8: and
IL_00A9: and
IL_00AA: brfalse => Label4
IL_00AF: ldc.i4.7
IL_00B0: newarr System.Object
IL_00B5: dup
IL_00B6: ldc.i4.0
IL_00B7: ldstr "Tried to generate age for pawn "
IL_00BC: stelem.ref
IL_00BD: dup
IL_00BE: ldc.i4.1
IL_00BF: ldloc.0
IL_00C0: ldfld Verse.Pawn Verse.<>c__DisplayClass39_0::pawn
IL_00C5: stelem.ref
IL_00C6: dup
IL_00C7: ldc.i4.2
IL_00C8: ldstr ", but pawn generation request demands biological age ("
IL_00CD: stelem.ref
IL_00CE: dup
IL_00CF: ldc.i4.3
IL_00D0: ldloca.s 0 (Verse.PawnGenerator+<>c__DisplayClass39_0)
IL_00D2: ldflda Verse.PawnGenerationRequest
Verse.<>c__DisplayClass39_0::request
IL_00D7: call System.Nullable`1<System.Single>
Verse.PawnGenerationRequest::get_FixedBiologicalAge()
IL_00DC: box System.Nullable`1[System.Single]
IL_00E1: stelem.ref
IL_00E2: dup
IL_00E3: ldc.i4.4
IL_00E4: ldstr ") to be greater than chronological age ("
IL_00E9: stelem.ref
IL_00EA: dup
IL_00EB: ldc.i4.5
IL_00EC: ldloca.s 0 (Verse.PawnGenerator+<>c__DisplayClass39_0)
IL_00EE: ldflda Verse.PawnGenerationRequest
Verse.<>c__DisplayClass39_0::request
IL_00F3: call System.Nullable`1<System.Single>
Verse.PawnGenerationRequest::get_FixedChronologicalAge()
IL_00F8: box System.Nullable`1[System.Single]
IL_00FD: stelem.ref
IL_00FE: dup
IL_00FF: ldc.i4.6
IL_0100: ldstr ")."
IL_0105: stelem.ref
IL_0106: call static System.String System.String::Concat(System.Object[]
args)
IL_010B: call static System.Void Verse.Log::Warning(System.String text)
IL_0110: Label2
IL_0110: Label3
IL_0110: Label4
IL_0110: ldloca.s 0 (Verse.PawnGenerator+<>c__DisplayClass39_0)
IL_0112: ldflda Verse.PawnGenerationRequest
Verse.<>c__DisplayClass39_0::request
IL_0117: call Verse.DevelopmentalStage
Verse.PawnGenerationRequest::get_AllowedDevelopmentalStages()
IL_011C: call static System.Boolean
Verse.DevelopmentalStageExtensions::Newborn(Verse.DevelopmentalStage
developmentalStage)
IL_0121: brfalse => Label5
IL_0126: ldloc.0
IL_0127: ldfld Verse.Pawn Verse.<>c__DisplayClass39_0::pawn
IL_012C: ldfld Verse.Pawn_AgeTracker Verse.Pawn::ageTracker
IL_0131: ldc.i4.0
IL_0132: conv.i8
IL_0133: callvirt System.Void
Verse.Pawn_AgeTracker::set_AgeBiologicalTicks(System.Int64 value)
IL_0138: ldloc.0
IL_0139: ldfld Verse.Pawn Verse.<>c__DisplayClass39_0::pawn
IL_013E: call static Verse.TickManager Verse.Find::get_TickManager()
IL_0143: callvirt System.Int32 Verse.TickManager::get_TicksGame()
IL_0148: ldc.i4 60000
IL_014D: add
IL_014E: stfld System.Int32 Verse.Pawn::babyNamingDeadline
IL_0153: br => Label6
IL_0158: Label5
IL_0158: ldloca.s 0 (Verse.PawnGenerator+<>c__DisplayClass39_0)
IL_015A: ldflda Verse.PawnGenerationRequest
Verse.<>c__DisplayClass39_0::request
IL_015F: call System.Nullable`1<System.Single>
Verse.PawnGenerationRequest::get_FixedBiologicalAge()
IL_0164: stloc.2
IL_0165: ldloca.s 2 (System.Nullable`1[System.Single])
IL_0167: call System.Boolean System.Nullable`1<System.Single>::get_HasValue()
IL_016C: brfalse => Label7
IL_0171: ldloc.0
IL_0172: ldfld Verse.Pawn Verse.<>c__DisplayClass39_0::pawn
IL_0177: ldfld Verse.Pawn_AgeTracker Verse.Pawn::ageTracker
IL_017C: ldloca.s 0 (Verse.PawnGenerator+<>c__DisplayClass39_0)
IL_017E: ldflda Verse.PawnGenerationRequest
Verse.<>c__DisplayClass39_0::request
IL_0183: call System.Nullable`1<System.Single>
Verse.PawnGenerationRequest::get_FixedBiologicalAge()
IL_0188: stloc.2
IL_0189: ldloca.s 2 (System.Nullable`1[System.Single])
IL_018B: call System.Single System.Nullable`1<System.Single>::get_Value()
IL_0190: ldc.r4 3600000
IL_0195: mul
IL_0196: conv.i8
IL_0197: callvirt System.Void
Verse.Pawn_AgeTracker::set_AgeBiologicalTicks(System.Int64 value)
IL_019C: br => Label8
IL_01A1: Label7
IL_01A1: ldloca.s 3 (Verse.PawnGenerator+<>c__DisplayClass39_1)
IL_01A3: ldc.r4 0
IL_01A8: stfld System.Single Verse.<>c__DisplayClass39_1::years
IL_01AD: ldc.i4.0
IL_01AE: stloc.s 4 (System.Int32)
IL_01B0: Label17
IL_01B0: ldloca.s 0 (Verse.PawnGenerator+<>c__DisplayClass39_0)
IL_01B2: ldflda Verse.PawnGenerationRequest
Verse.<>c__DisplayClass39_0::request
IL_01B7: call Verse.DevelopmentalStage
Verse.PawnGenerationRequest::get_AllowedDevelopmentalStages()
IL_01BC: ldc.i4.2
IL_01BD: bne.un => Label9
IL_01C2: ldloca.s 3 (Verse.PawnGenerator+<>c__DisplayClass39_1)
IL_01C4: ldc.r4 0
IL_01C9: ldloc.0
IL_01CA: ldfld Verse.Pawn Verse.<>c__DisplayClass39_0::pawn
IL_01CF: callvirt Verse.RaceProperties Verse.Pawn::get_RaceProps()
IL_01D4: call static System.Single
Verse.LifeStageUtility::GetMaxBabyAge(Verse.RaceProperties raceProps)
IL_01D9: call static System.Single Verse.Rand::Range(System.Single min,
System.Single max)
IL_01DE: stfld System.Single Verse.<>c__DisplayClass39_1::years
IL_01E3: br => Label10
IL_01E8: Label9
IL_01E8: ldloc.0
IL_01E9: ldfld Verse.Pawn Verse.<>c__DisplayClass39_0::pawn
IL_01EE: callvirt Verse.RaceProperties Verse.Pawn::get_RaceProps()
IL_01F3: ldfld Verse.SimpleCurve Verse.RaceProperties::ageGenerationCurve
IL_01F8: brfalse => Label11
IL_01FD: ldloca.s 3 (Verse.PawnGenerator+<>c__DisplayClass39_1)
IL_01FF: ldloc.0
IL_0200: ldfld Verse.Pawn Verse.<>c__DisplayClass39_0::pawn
IL_0205: callvirt Verse.RaceProperties Verse.Pawn::get_RaceProps()
IL_020A: ldfld Verse.SimpleCurve Verse.RaceProperties::ageGenerationCurve
IL_020F: call static System.Single Verse.Rand::ByCurve(Verse.SimpleCurve
curve)
IL_0214: stfld System.Single Verse.<>c__DisplayClass39_1::years
IL_0219: br => Label12
IL_021E: Label11
IL_021E: ldloc.0
IL_021F: ldfld Verse.Pawn Verse.<>c__DisplayClass39_0::pawn
IL_0224: callvirt Verse.RaceProperties Verse.Pawn::get_RaceProps()
IL_0229: callvirt System.Boolean Verse.RaceProperties::get_IsMechanoid()
IL_022E: brfalse => Label13
IL_0233: ldloca.s 3 (Verse.PawnGenerator+<>c__DisplayClass39_1)
IL_0235: ldc.r4 0
IL_023A: ldc.r4 2500
IL_023F: call static System.Single Verse.Rand::Range(System.Single min,
System.Single max)
IL_0244: stfld System.Single Verse.<>c__DisplayClass39_1::years
IL_0249: br => Label14
IL_024E: Label13
IL_024E: ldloca.s 3 (Verse.PawnGenerator+<>c__DisplayClass39_1)
IL_0250: ldsfld Verse.SimpleCurve
Verse.PawnGenerator::DefaultAgeGenerationCurve
IL_0255: call static System.Single Verse.Rand::ByCurve(Verse.SimpleCurve
curve)
IL_025A: ldloc.0
IL_025B: ldfld Verse.Pawn Verse.<>c__DisplayClass39_0::pawn
IL_0260: callvirt Verse.RaceProperties Verse.Pawn::get_RaceProps()
IL_0265: ldfld System.Single Verse.RaceProperties::lifeExpectancy
IL_026A: mul
IL_026B: stfld System.Single Verse.<>c__DisplayClass39_1::years
IL_0270: Label10
IL_0270: Label12
IL_0270: Label14
IL_0270: ldloc.s 4 (System.Int32)
IL_0272: ldc.i4.1
IL_0273: add
IL_0274: stloc.s 4 (System.Int32)
IL_0276: ldloc.s 4 (System.Int32)
IL_0278: ldc.i4 300
IL_027D: ble => Label15
IL_0282: ldstr "Tried 300 times to generate age for "
IL_0287: ldloc.0
IL_0288: ldfld Verse.Pawn Verse.<>c__DisplayClass39_0::pawn
IL_028D: call static System.String System.String::Concat(System.Object arg0,
System.Object arg1)
IL_0292: call static System.Void Verse.Log::Error(System.String text)
IL_0297: br => Label16
IL_029C: Label15
IL_029C: ldloc.0
IL_029D: ldfld Verse.Pawn Verse.<>c__DisplayClass39_0::pawn
IL_02A2: ldloc.3
IL_02A3: ldfld System.Single Verse.<>c__DisplayClass39_1::years
IL_02A8: ldloca.s 0 (Verse.PawnGenerator+<>c__DisplayClass39_0)
IL_02AA: ldloca.s 3 (Verse.PawnGenerator+<>c__DisplayClass39_1)
IL_02AC: call static System.Boolean
Verse.PawnGenerator::<GenerateRandomAge>g__AgeAllowed|39_0(Verse.Pawn p,
System.Single y, Verse.<>c__DisplayClass39_0& , Verse.<>c__DisplayClass39_1& )
IL_02B1: brfalse => Label17
IL_02B6: Label16
IL_02B6: ldloc.0
IL_02B7: ldfld Verse.Pawn Verse.<>c__DisplayClass39_0::pawn
IL_02BC: ldfld Verse.Pawn_AgeTracker Verse.Pawn::ageTracker
IL_02C1: ldloc.3
IL_02C2: ldfld System.Single Verse.<>c__DisplayClass39_1::years
IL_02C7: ldc.r4 3600000
IL_02CC: mul
IL_02CD: conv.i8
IL_02CE: callvirt System.Void
Verse.Pawn_AgeTracker::set_AgeBiologicalTicks(System.Int64 value)
IL_02D3: Label6
IL_02D3: Label8
IL_02D3: ldloca.s 0 (Verse.PawnGenerator+<>c__DisplayClass39_0)
IL_02D5: ldflda Verse.PawnGenerationRequest
Verse.<>c__DisplayClass39_0::request
IL_02DA: call Verse.DevelopmentalStage
Verse.PawnGenerationRequest::get_AllowedDevelopmentalStages()
IL_02DF: call static System.Boolean
Verse.DevelopmentalStageExtensions::Newborn(Verse.DevelopmentalStage
developmentalStage)
IL_02E4: brfalse => Label18
IL_02E9: ldloc.0
IL_02EA: ldfld Verse.Pawn Verse.<>c__DisplayClass39_0::pawn
IL_02EF: ldfld Verse.Pawn_AgeTracker Verse.Pawn::ageTracker
IL_02F4: ldc.i4.0
IL_02F5: conv.i8
IL_02F6: callvirt System.Void
Verse.Pawn_AgeTracker::set_AgeChronologicalTicks(System.Int64 value)
IL_02FB: br => Label19
IL_0300: Label18
IL_0300: ldloca.s 0 (Verse.PawnGenerator+<>c__DisplayClass39_0)
IL_0302: ldflda Verse.PawnGenerationRequest
Verse.<>c__DisplayClass39_0::request
IL_0307: call System.Nullable`1<System.Single>
Verse.PawnGenerationRequest::get_FixedChronologicalAge()
IL_030C: stloc.2
IL_030D: ldloca.s 2 (System.Nullable`1[System.Single])
IL_030F: call System.Boolean System.Nullable`1<System.Single>::get_HasValue()
IL_0314: brfalse => Label20
IL_0319: ldloc.0
IL_031A: ldfld Verse.Pawn Verse.<>c__DisplayClass39_0::pawn
IL_031F: ldfld Verse.Pawn_AgeTracker Verse.Pawn::ageTracker
IL_0324: ldloca.s 0 (Verse.PawnGenerator+<>c__DisplayClass39_0)
IL_0326: ldflda Verse.PawnGenerationRequest
Verse.<>c__DisplayClass39_0::request
IL_032B: call System.Nullable`1<System.Single>
Verse.PawnGenerationRequest::get_FixedChronologicalAge()
IL_0330: stloc.2
IL_0331: ldloca.s 2 (System.Nullable`1[System.Single])
IL_0333: call System.Single System.Nullable`1<System.Single>::get_Value()
IL_0338: ldc.r4 3600000
IL_033D: mul
IL_033E: conv.i8
IL_033F: callvirt System.Void
Verse.Pawn_AgeTracker::set_AgeChronologicalTicks(System.Int64 value)
IL_0344: br => Label21
IL_0349: Label20
IL_0349: ldloca.s 0 (Verse.PawnGenerator+<>c__DisplayClass39_0)
IL_034B: ldflda Verse.PawnGenerationRequest
Verse.<>c__DisplayClass39_0::request
IL_0350: call Verse.PawnKindDef Verse.PawnGenerationRequest::get_KindDef()
IL_0355: ldflda System.Nullable`1<Verse.FloatRange>
Verse.PawnKindDef::chronologicalAgeRange
IL_035A: call System.Boolean
System.Nullable`1<Verse.FloatRange>::get_HasValue()
IL_035F: brfalse => Label22
IL_0364: ldloc.0
IL_0365: ldfld Verse.Pawn Verse.<>c__DisplayClass39_0::pawn
IL_036A: ldfld Verse.Pawn_AgeTracker Verse.Pawn::ageTracker
IL_036F: ldloca.s 0 (Verse.PawnGenerator+<>c__DisplayClass39_0)
IL_0371: ldflda Verse.PawnGenerationRequest
Verse.<>c__DisplayClass39_0::request
IL_0376: call Verse.PawnKindDef Verse.PawnGenerationRequest::get_KindDef()
IL_037B: ldflda System.Nullable`1<Verse.FloatRange>
Verse.PawnKindDef::chronologicalAgeRange
IL_0380: call Verse.FloatRange
System.Nullable`1<Verse.FloatRange>::get_Value()
IL_0385: stloc.s 5 (Verse.FloatRange)
IL_0387: ldloca.s 5 (Verse.FloatRange)
IL_0389: call System.Single Verse.FloatRange::get_RandomInRange()
IL_038E: ldc.r4 3600000
IL_0393: mul
IL_0394: conv.i8
IL_0395: callvirt System.Void
Verse.Pawn_AgeTracker::set_AgeChronologicalTicks(System.Int64 value)
IL_039A: br => Label23
IL_039F: Label22
IL_039F: ldloca.s 0 (Verse.PawnGenerator+<>c__DisplayClass39_0)
IL_03A1: ldflda Verse.PawnGenerationRequest
Verse.<>c__DisplayClass39_0::request
IL_03A6: call System.Boolean
Verse.PawnGenerationRequest::get_CertainlyBeenInCryptosleep()
IL_03AB: brtrue => Label24
IL_03B0: call static System.Single Verse.Rand::get_Value()
IL_03B5: ldloc.0
IL_03B6: ldfld Verse.Pawn Verse.<>c__DisplayClass39_0::pawn
IL_03BB: ldfld Verse.PawnKindDef Verse.Pawn::kindDef
IL_03C0: ldfld System.Single
Verse.PawnKindDef::backstoryCryptosleepCommonality
IL_03C5: bge.un => Label25
IL_03CA: Label24
IL_03CA: call static System.Single Verse.Rand::get_Value()
IL_03CF: stloc.s 8 (System.Single)
IL_03D1: ldloc.s 8 (System.Single)
IL_03D3: ldc.r4 0.7
IL_03D8: bge.un => Label26
IL_03DD: ldc.i4.0
IL_03DE: ldc.i4.s 100
IL_03E0: call static System.Int32 Verse.Rand::Range(System.Int32 min,
System.Int32 max)
IL_03E5: stloc.s 6 (System.Int32)
IL_03E7: br => Label27
IL_03EC: Label26
IL_03EC: ldloc.s 8 (System.Single)
IL_03EE: ldc.r4 0.95
IL_03F3: bge.un => Label28
IL_03F8: ldc.i4.s 100
IL_03FA: ldc.i4 1000
IL_03FF: call static System.Int32 Verse.Rand::Range(System.Int32 min,
System.Int32 max)
IL_0404: stloc.s 6 (System.Int32)
IL_0406: br => Label29
IL_040B: Label28
IL_040B: call static System.Int32 Verse.GenTicks::get_TicksAbs()
IL_0410: conv.i8
IL_0411: ldc.r4 0
IL_0416: call static System.Int32 RimWorld.GenDate::Year(System.Int64
absTicks, System.Single longitude)
IL_041B: ldc.i4 2026
IL_0420: sub
IL_0421: ldloc.0
IL_0422: ldfld Verse.Pawn Verse.<>c__DisplayClass39_0::pawn
IL_0427: ldfld Verse.Pawn_AgeTracker Verse.Pawn::ageTracker
IL_042C: callvirt System.Int32 Verse.Pawn_AgeTracker::get_AgeBiologicalYears()
IL_0431: sub
IL_0432: stloc.s 9 (System.Int32)
IL_0434: ldc.i4 1000
IL_0439: ldloc.s 9 (System.Int32)
IL_043B: call static System.Int32 Verse.Rand::Range(System.Int32 min,
System.Int32 max)
IL_0440: stloc.s 6 (System.Int32)
IL_0442: br => Label30
IL_0447: Label25
IL_0447: ldc.i4.0
IL_0448: stloc.s 6 (System.Int32)
IL_044A: Label27
IL_044A: Label29
IL_044A: Label30
IL_044A: call static System.Int32 Verse.GenTicks::get_TicksAbs()
IL_044F: conv.i8
IL_0450: ldloc.0
IL_0451: ldfld Verse.Pawn Verse.<>c__DisplayClass39_0::pawn
IL_0456: ldfld Verse.Pawn_AgeTracker Verse.Pawn::ageTracker
IL_045B: callvirt System.Int64 Verse.Pawn_AgeTracker::get_AgeBiologicalTicks()
IL_0460: sub
IL_0461: stloc.s 7 (System.Int64)
IL_0463: ldloc.s 7 (System.Int64)
IL_0465: ldloc.s 6 (System.Int32)
IL_0467: conv.i8
IL_0468: ldc.i4 3600000
IL_046D: conv.i8
IL_046E: mul
IL_046F: sub
IL_0470: stloc.s 7 (System.Int64)
IL_0472: ldloc.0
IL_0473: ldfld Verse.Pawn Verse.<>c__DisplayClass39_0::pawn
IL_0478: ldfld Verse.Pawn_AgeTracker Verse.Pawn::ageTracker
IL_047D: ldloc.s 7 (System.Int64)
IL_047F: callvirt System.Void
Verse.Pawn_AgeTracker::set_BirthAbsTicks(System.Int64 value)
IL_0484: Label19
IL_0484: Label21
IL_0484: Label23
IL_0484: ldloc.0
IL_0485: ldfld Verse.Pawn Verse.<>c__DisplayClass39_0::pawn
IL_048A: ldfld Verse.Pawn_AgeTracker Verse.Pawn::ageTracker
IL_048F: callvirt System.Int64 Verse.Pawn_AgeTracker::get_AgeBiologicalTicks()
IL_0494: ldloc.0
IL_0495: ldfld Verse.Pawn Verse.<>c__DisplayClass39_0::pawn
IL_049A: ldfld Verse.Pawn_AgeTracker Verse.Pawn::ageTracker
IL_049F: callvirt System.Int64 Verse.Pawn_AgeTracker::get_AgeChronologicalTicks()
IL_04A4: ble => Label31
IL_04A9: ldloc.0
IL_04AA: ldfld Verse.Pawn Verse.<>c__DisplayClass39_0::pawn
IL_04AF: ldfld Verse.Pawn_AgeTracker Verse.Pawn::ageTracker
IL_04B4: ldloc.0
IL_04B5: ldfld Verse.Pawn Verse.<>c__DisplayClass39_0::pawn
IL_04BA: ldfld Verse.Pawn_AgeTracker Verse.Pawn::ageTracker
IL_04BF: callvirt System.Int64 Verse.Pawn_AgeTracker::get_AgeBiologicalTicks()
IL_04C4: callvirt System.Void
Verse.Pawn_AgeTracker::set_AgeChronologicalTicks(System.Int64 value)
IL_04C9: Label31
IL_04C9: ldloc.0
IL_04CA: ldfld Verse.Pawn Verse.<>c__DisplayClass39_0::pawn
IL_04CF: ldfld Verse.Pawn_AgeTracker Verse.Pawn::ageTracker
IL_04D4: ldc.i4.0
IL_04D5: ldc.i4.1
IL_04D6: callvirt System.Void
Verse.Pawn_AgeTracker::ResetAgeReversalDemand(Verse.AgeReversalReason reason,
System.Boolean cancelInitialization)
IL_04DB: // end original
IL_04DB: Label0
IL_04DB: ret
DONE

### Patch: static System.Void Verse.PawnGenerator::GenerateTraits(Verse.Pawn pawn,


Verse.PawnGenerationRequest request)
### Replacement: static System.Void
Verse.PawnGenerator::Verse.PawnGenerator.GenerateTraits_Patch2(Verse.Pawn pawn,
Verse.PawnGenerationRequest request)
IL_0000: Local var 0: System.Int32
IL_0000: Local var 1: System.Int32
IL_0000: Local var 2:
System.Collections.Generic.List`1/Enumerator<Verse.TraitRequirement>
IL_0000: Local var 3: Verse.TraitRequirement
IL_0000: Local var 4: System.Nullable`1<System.Int32>
IL_0000: Local var 5: System.Collections.Generic.IEnumerator`1<RimWorld.TraitDef>
IL_0000: Local var 6: RimWorld.TraitDef
IL_0000: Local var 7: System.Collections.Generic.List`1<RimWorld.BackstoryTrait>
IL_0000: Local var 8: System.Int32
IL_0000: Local var 9: Verse.PawnGenerator/<>c__DisplayClass41_0
IL_0000: Local var 10: System.Collections.Generic.List`1<RimWorld.BackstoryTrait>
IL_0000: Local var 11: System.Int32
IL_0000: Local var 12: Verse.PawnGenerator/<>c__DisplayClass41_1
IL_0000: Local var 13: Verse.IntRange
IL_0000: Local var 14: System.Int32
IL_0000: Local var 15: RimWorld.Trait
IL_0000: Local var 16: RimWorld.Trait
IL_0000: Local var 17: System.Boolean
IL_0000: ldc.i4 0
IL_0005: stloc 17 (System.Boolean)
IL_0009: ldc.i4.1
IL_000A: stloc 17 (System.Boolean)
IL_000E: ldloc 17 (System.Boolean)
IL_0012: brfalse => Label1
IL_0017: ldarg 0
IL_001B: call static System.Void
AlienRace.HarmonyPatches::GenerateTraitsPrefix(Verse.Pawn pawn)
IL_0020: Label1
IL_0020: nop
IL_0021: ldloc 17 (System.Boolean)
IL_0025: brfalse => Label0
IL_002A: // start original
IL_002A: ldarg.0
IL_002B: ldfld RimWorld.Pawn_StoryTracker Verse.Pawn::story
IL_0030: brfalse => Label2
IL_0035: ldarga.s 1
IL_0037: call Verse.DevelopmentalStage
Verse.PawnGenerationRequest::get_AllowedDevelopmentalStages()
IL_003C: call static System.Boolean
Verse.DevelopmentalStageExtensions::Newborn(Verse.DevelopmentalStage
developmentalStage)
IL_0041: brfalse => Label3
IL_0046: Label2
IL_0046: br => Label52
IL_004B: Label3
IL_004B: ldarg.0
IL_004C: ldfld Verse.PawnKindDef Verse.Pawn::kindDef
IL_0051: ldfld System.Collections.Generic.List`1<Verse.TraitRequirement>
Verse.PawnKindDef::forcedTraits
IL_0056: brfalse => Label4
IL_005B: ldarg.0
IL_005C: ldfld Verse.PawnKindDef Verse.Pawn::kindDef
IL_0061: ldfld System.Collections.Generic.List`1<Verse.TraitRequirement>
Verse.PawnKindDef::forcedTraits
IL_0066: callvirt System.Collections.Generic.Enumerator<Verse.TraitRequirement>
System.Collections.Generic.List`1<Verse.TraitRequirement>::GetEnumerator()
IL_006B: stloc.2
.try
{
IL_006C: br => Label5
IL_0071: Label8
IL_0071: ldloca.s 2
(System.Collections.Generic.List`1+Enumerator[Verse.TraitRequirement])
IL_0073: call virtual Verse.TraitRequirement
System.Collections.Generic.Enumerator<Verse.TraitRequirement>::get_Current()
IL_0078: stloc.3
IL_0079: ldarg.0
IL_007A: ldfld RimWorld.Pawn_StoryTracker Verse.Pawn::story
IL_007F: ldfld RimWorld.TraitSet RimWorld.Pawn_StoryTracker::traits
IL_0084: ldloc.3
IL_0085: ldfld RimWorld.TraitDef Verse.TraitRequirement::def
IL_008A: ldloc.3
IL_008B: ldfld System.Nullable`1<System.Int32>
Verse.TraitRequirement::degree
IL_0090: stloc.s 4 (System.Nullable`1[System.Int32])
IL_0092: ldloca.s 4 (System.Nullable`1[System.Int32])
IL_0094: call System.Boolean
System.Nullable`1<System.Int32>::get_HasValue()
IL_0099: brtrue => Label6
IL_009E: ldc.i4.0
IL_009F: br => Label7
IL_00A4: Label6
IL_00A4: ldloca.s 4 (System.Nullable`1[System.Int32])
IL_00A6: call System.Int32
System.Nullable`1<System.Int32>::GetValueOrDefault()
IL_00AB: Label7
IL_00AB: ldc.i4.1
IL_00AC: newobj System.Void RimWorld.Trait::.ctor(RimWorld.TraitDef def,
System.Int32 degree, System.Boolean forced)
IL_00B1: ldc.i4.0
IL_00B2: callvirt System.Void RimWorld.TraitSet::GainTrait(RimWorld.Trait
trait, System.Boolean suppressConflicts)
IL_00B7: Label5
IL_00B7: ldloca.s 2
(System.Collections.Generic.List`1+Enumerator[Verse.TraitRequirement])
IL_00B9: call virtual System.Boolean
System.Collections.Generic.Enumerator<Verse.TraitRequirement>::MoveNext()
IL_00BE: brtrue => Label8
IL_00C3: leave => Label9
IL_00C8: leave => (autogenerated)
} // end try
.finally
{
IL_00CD: ldloca.s 2
(System.Collections.Generic.List`1+Enumerator[Verse.TraitRequirement])
IL_00CF: constrained.
System.Collections.Generic.List`1+Enumerator[Verse.TraitRequirement]
IL_00D5: callvirt abstract virtual System.Void
System.IDisposable::Dispose()
IL_00DA: endfinally
IL_00DB: leave => (autogenerated)
} // end handler
IL_00DC: Label4
IL_00DC: Label9
IL_00DC: ldarga.s 1
IL_00DE: call System.Collections.Generic.IEnumerable`1<RimWorld.TraitDef>
Verse.PawnGenerationRequest::get_ForcedTraits()
IL_00E3: brfalse => Label10
IL_00E8: ldarga.s 1
IL_00EA: call System.Collections.Generic.IEnumerable`1<RimWorld.TraitDef>
Verse.PawnGenerationRequest::get_ForcedTraits()
IL_00EF: callvirt abstract virtual
System.Collections.Generic.IEnumerator`1<RimWorld.TraitDef>
System.Collections.Generic.IEnumerable`1<RimWorld.TraitDef>::GetEnumerator()
IL_00F4: stloc.s 5 (System.Collections.Generic.IEnumerator`1[RimWorld.TraitDef])
.try
{
IL_00F6: br => Label11
IL_00FB: Label14
IL_00FB: ldloc.s 5
(System.Collections.Generic.IEnumerator`1[RimWorld.TraitDef])
IL_00FD: callvirt abstract virtual RimWorld.TraitDef
System.Collections.Generic.IEnumerator`1<RimWorld.TraitDef>::get_Current()
IL_0102: stloc.s 6 (RimWorld.TraitDef)
IL_0104: ldloc.s 6 (RimWorld.TraitDef)
IL_0106: brfalse => Label12
IL_010B: ldarg.0
IL_010C: ldfld RimWorld.Pawn_StoryTracker Verse.Pawn::story
IL_0111: ldfld RimWorld.TraitSet RimWorld.Pawn_StoryTracker::traits
IL_0116: ldloc.s 6 (RimWorld.TraitDef)
IL_0118: callvirt System.Boolean
RimWorld.TraitSet::HasTrait(RimWorld.TraitDef tDef)
IL_011D: brtrue => Label13
IL_0122: ldarg.0
IL_0123: ldfld RimWorld.Pawn_StoryTracker Verse.Pawn::story
IL_0128: ldfld RimWorld.TraitSet RimWorld.Pawn_StoryTracker::traits
IL_012D: ldloc.s 6 (RimWorld.TraitDef)
IL_012F: ldc.i4.0
IL_0130: ldc.i4.1
IL_0131: newobj System.Void RimWorld.Trait::.ctor(RimWorld.TraitDef def,
System.Int32 degree, System.Boolean forced)
IL_0136: ldc.i4.0
IL_0137: callvirt System.Void RimWorld.TraitSet::GainTrait(RimWorld.Trait
trait, System.Boolean suppressConflicts)
IL_013C: Label11
IL_013C: Label12
IL_013C: Label13
IL_013C: ldloc.s 5
(System.Collections.Generic.IEnumerator`1[RimWorld.TraitDef])
IL_013E: callvirt abstract virtual System.Boolean
System.Collections.IEnumerator::MoveNext()
IL_0143: brtrue => Label14
IL_0148: leave => Label15
IL_014D: leave => (autogenerated)
} // end try
.finally
{
IL_0152: ldloc.s 5
(System.Collections.Generic.IEnumerator`1[RimWorld.TraitDef])
IL_0154: brfalse => Label16
IL_0159: ldloc.s 5
(System.Collections.Generic.IEnumerator`1[RimWorld.TraitDef])
IL_015B: callvirt abstract virtual System.Void
System.IDisposable::Dispose()
IL_0160: Label16
IL_0160: endfinally
IL_0161: leave => (autogenerated)
} // end handler
IL_0162: Label10
IL_0162: Label15
IL_0162: ldarg.0
IL_0163: ldfld RimWorld.Pawn_StoryTracker Verse.Pawn::story
IL_0168: callvirt RimWorld.BackstoryDef
RimWorld.Pawn_StoryTracker::get_Childhood()
IL_016D: dup
IL_016E: brtrue => Label17
IL_0173: pop
IL_0174: ldnull
IL_0175: br => Label18
IL_017A: Label17
IL_017A: ldfld System.Collections.Generic.List`1<RimWorld.BackstoryTrait>
RimWorld.BackstoryDef::forcedTraits
IL_017F: Label18
IL_017F: brfalse => Label19
IL_0184: ldarg.0
IL_0185: ldfld RimWorld.Pawn_StoryTracker Verse.Pawn::story
IL_018A: callvirt RimWorld.BackstoryDef
RimWorld.Pawn_StoryTracker::get_Childhood()
IL_018F: ldfld System.Collections.Generic.List`1<RimWorld.BackstoryTrait>
RimWorld.BackstoryDef::forcedTraits
IL_0194: stloc.s 7 (System.Collections.Generic.List`1[RimWorld.BackstoryTrait])
IL_0196: ldc.i4.0
IL_0197: stloc.s 8 (System.Int32)
IL_0199: br => Label20
IL_019E: Label29
IL_019E: newobj System.Void Verse.<>c__DisplayClass41_0::.ctor()
IL_01A3: stloc.s 9 (Verse.PawnGenerator+<>c__DisplayClass41_0)
IL_01A5: ldloc.s 9 (Verse.PawnGenerator+<>c__DisplayClass41_0)
IL_01A7: ldloc.s 7 (System.Collections.Generic.List`1[RimWorld.BackstoryTrait])
IL_01A9: ldloc.s 8 (System.Int32)
IL_01AB: callvirt virtual RimWorld.BackstoryTrait
System.Collections.Generic.List`1<RimWorld.BackstoryTrait>::get_Item(System.Int32
index)
IL_01B0: stfld RimWorld.BackstoryTrait Verse.<>c__DisplayClass41_0::te
IL_01B5: ldloc.s 9 (Verse.PawnGenerator+<>c__DisplayClass41_0)
IL_01B7: ldfld RimWorld.BackstoryTrait Verse.<>c__DisplayClass41_0::te
IL_01BC: ldfld RimWorld.TraitDef RimWorld.BackstoryTrait::def
IL_01C1: brtrue => Label21
IL_01C6: ldstr "Null forced trait def on "
IL_01CB: ldarg.0
IL_01CC: ldfld RimWorld.Pawn_StoryTracker Verse.Pawn::story
IL_01D1: callvirt RimWorld.BackstoryDef
RimWorld.Pawn_StoryTracker::get_Childhood()
IL_01D6: call static System.String System.String::Concat(System.Object arg0,
System.Object arg1)
IL_01DB: call static System.Void Verse.Log::Error(System.String text)
IL_01E0: br => Label22
IL_01E5: Label21
IL_01E5: ldarga.s 1
IL_01E7: call Verse.PawnKindDef Verse.PawnGenerationRequest::get_KindDef()
IL_01EC: ldfld System.Collections.Generic.List`1<RimWorld.TraitDef>
Verse.PawnKindDef::disallowedTraits
IL_01F1: ldloc.s 9 (Verse.PawnGenerator+<>c__DisplayClass41_0)
IL_01F3: ldfld RimWorld.BackstoryTrait Verse.<>c__DisplayClass41_0::te
IL_01F8: ldfld RimWorld.TraitDef RimWorld.BackstoryTrait::def
IL_01FD: call static System.Boolean
Verse.GenList::NotNullAndContains(System.Collections.Generic.IList`1<RimWorld.Trait
Def> list, RimWorld.TraitDef element)
IL_0202: brtrue => Label23
IL_0207: ldarga.s 1
IL_0209: call Verse.PawnKindDef Verse.PawnGenerationRequest::get_KindDef()
IL_020E: ldfld System.Collections.Generic.List`1<Verse.TraitRequirement>
Verse.PawnKindDef::disallowedTraitsWithDegree
IL_0213: brfalse => Label24
IL_0218: ldarga.s 1
IL_021A: call Verse.PawnKindDef Verse.PawnGenerationRequest::get_KindDef()
IL_021F: ldfld System.Collections.Generic.List`1<Verse.TraitRequirement>
Verse.PawnKindDef::disallowedTraitsWithDegree
IL_0224: ldloc.s 9 (Verse.PawnGenerator+<>c__DisplayClass41_0)
IL_0226: ldftn System.Boolean
Verse.<>c__DisplayClass41_0::<GenerateTraits>b__0(Verse.TraitRequirement t)
IL_022C: newobj System.Void
System.Predicate`1<Verse.TraitRequirement>::.ctor(System.Object object,
System.IntPtr method)
IL_0231: call static System.Boolean
Verse.GenCollection::Any(System.Collections.Generic.List`1<Verse.TraitRequirement>
list, System.Predicate`1<Verse.TraitRequirement> predicate)
IL_0236: brtrue => Label25
IL_023B: Label24
IL_023B: ldarg.0
IL_023C: ldfld RimWorld.Pawn_StoryTracker Verse.Pawn::story
IL_0241: ldfld RimWorld.TraitSet RimWorld.Pawn_StoryTracker::traits
IL_0246: ldloc.s 9 (Verse.PawnGenerator+<>c__DisplayClass41_0)
IL_0248: ldfld RimWorld.BackstoryTrait Verse.<>c__DisplayClass41_0::te
IL_024D: ldfld RimWorld.TraitDef RimWorld.BackstoryTrait::def
IL_0252: callvirt System.Boolean RimWorld.TraitSet::HasTrait(RimWorld.TraitDef
tDef)
IL_0257: brtrue => Label26
IL_025C: ldarga.s 1
IL_025E: call System.Collections.Generic.IEnumerable`1<RimWorld.TraitDef>
Verse.PawnGenerationRequest::get_ProhibitedTraits()
IL_0263: brfalse => Label27
IL_0268: ldarga.s 1
IL_026A: call System.Collections.Generic.IEnumerable`1<RimWorld.TraitDef>
Verse.PawnGenerationRequest::get_ProhibitedTraits()
IL_026F: ldloc.s 9 (Verse.PawnGenerator+<>c__DisplayClass41_0)
IL_0271: ldfld RimWorld.BackstoryTrait Verse.<>c__DisplayClass41_0::te
IL_0276: ldfld RimWorld.TraitDef RimWorld.BackstoryTrait::def
IL_027B: call static System.Boolean
System.Linq.Enumerable::Contains(System.Collections.Generic.IEnumerable`1<RimWorld.
TraitDef> source, RimWorld.TraitDef value)
IL_0280: brtrue => Label28
IL_0285: Label27
IL_0285: ldarg.0
IL_0286: ldfld RimWorld.Pawn_StoryTracker Verse.Pawn::story
IL_028B: ldfld RimWorld.TraitSet RimWorld.Pawn_StoryTracker::traits
IL_0290: ldloc.s 9 (Verse.PawnGenerator+<>c__DisplayClass41_0)
IL_0292: ldfld RimWorld.BackstoryTrait Verse.<>c__DisplayClass41_0::te
IL_0297: ldfld RimWorld.TraitDef RimWorld.BackstoryTrait::def
IL_029C: ldloc.s 9 (Verse.PawnGenerator+<>c__DisplayClass41_0)
IL_029E: ldfld RimWorld.BackstoryTrait Verse.<>c__DisplayClass41_0::te
IL_02A3: ldfld System.Int32 RimWorld.BackstoryTrait::degree
IL_02A8: ldc.i4.0
IL_02A9: newobj System.Void RimWorld.Trait::.ctor(RimWorld.TraitDef def,
System.Int32 degree, System.Boolean forced)
IL_02AE: ldc.i4.0
IL_02AF: callvirt System.Void RimWorld.TraitSet::GainTrait(RimWorld.Trait trait,
System.Boolean suppressConflicts)
IL_02B4: Label22
IL_02B4: Label23
IL_02B4: Label25
IL_02B4: Label26
IL_02B4: Label28
IL_02B4: ldloc.s 8 (System.Int32)
IL_02B6: ldc.i4.1
IL_02B7: add
IL_02B8: stloc.s 8 (System.Int32)
IL_02BA: Label20
IL_02BA: ldloc.s 8 (System.Int32)
IL_02BC: ldloc.s 7 (System.Collections.Generic.List`1[RimWorld.BackstoryTrait])
IL_02BE: callvirt virtual System.Int32
System.Collections.Generic.List`1<RimWorld.BackstoryTrait>::get_Count()
IL_02C3: blt => Label29
IL_02C8: Label19
IL_02C8: ldarg.0
IL_02C9: ldfld RimWorld.Pawn_StoryTracker Verse.Pawn::story
IL_02CE: callvirt RimWorld.BackstoryDef
RimWorld.Pawn_StoryTracker::get_Adulthood()
IL_02D3: brfalse => Label30
IL_02D8: ldarg.0
IL_02D9: ldfld RimWorld.Pawn_StoryTracker Verse.Pawn::story
IL_02DE: callvirt RimWorld.BackstoryDef
RimWorld.Pawn_StoryTracker::get_Adulthood()
IL_02E3: ldfld System.Collections.Generic.List`1<RimWorld.BackstoryTrait>
RimWorld.BackstoryDef::forcedTraits
IL_02E8: brfalse => Label31
IL_02ED: ldarg.0
IL_02EE: ldfld RimWorld.Pawn_StoryTracker Verse.Pawn::story
IL_02F3: callvirt RimWorld.BackstoryDef
RimWorld.Pawn_StoryTracker::get_Adulthood()
IL_02F8: ldfld System.Collections.Generic.List`1<RimWorld.BackstoryTrait>
RimWorld.BackstoryDef::forcedTraits
IL_02FD: stloc.s 10 (System.Collections.Generic.List`1[RimWorld.BackstoryTrait])
IL_02FF: ldc.i4.0
IL_0300: stloc.s 11 (System.Int32)
IL_0302: br => Label32
IL_0307: Label41
IL_0307: newobj System.Void Verse.<>c__DisplayClass41_1::.ctor()
IL_030C: stloc.s 12 (Verse.PawnGenerator+<>c__DisplayClass41_1)
IL_030E: ldloc.s 12 (Verse.PawnGenerator+<>c__DisplayClass41_1)
IL_0310: ldloc.s 10 (System.Collections.Generic.List`1[RimWorld.BackstoryTrait])
IL_0312: ldloc.s 11 (System.Int32)
IL_0314: callvirt virtual RimWorld.BackstoryTrait
System.Collections.Generic.List`1<RimWorld.BackstoryTrait>::get_Item(System.Int32
index)
IL_0319: stfld RimWorld.BackstoryTrait Verse.<>c__DisplayClass41_1::te
IL_031E: ldloc.s 12 (Verse.PawnGenerator+<>c__DisplayClass41_1)
IL_0320: ldfld RimWorld.BackstoryTrait Verse.<>c__DisplayClass41_1::te
IL_0325: ldfld RimWorld.TraitDef RimWorld.BackstoryTrait::def
IL_032A: brtrue => Label33
IL_032F: ldstr "Null forced trait def on "
IL_0334: ldarg.0
IL_0335: ldfld RimWorld.Pawn_StoryTracker Verse.Pawn::story
IL_033A: callvirt RimWorld.BackstoryDef
RimWorld.Pawn_StoryTracker::get_Adulthood()
IL_033F: call static System.String System.String::Concat(System.Object arg0,
System.Object arg1)
IL_0344: call static System.Void Verse.Log::Error(System.String text)
IL_0349: br => Label34
IL_034E: Label33
IL_034E: ldarga.s 1
IL_0350: call Verse.PawnKindDef Verse.PawnGenerationRequest::get_KindDef()
IL_0355: ldfld System.Collections.Generic.List`1<RimWorld.TraitDef>
Verse.PawnKindDef::disallowedTraits
IL_035A: ldloc.s 12 (Verse.PawnGenerator+<>c__DisplayClass41_1)
IL_035C: ldfld RimWorld.BackstoryTrait Verse.<>c__DisplayClass41_1::te
IL_0361: ldfld RimWorld.TraitDef RimWorld.BackstoryTrait::def
IL_0366: call static System.Boolean
Verse.GenList::NotNullAndContains(System.Collections.Generic.IList`1<RimWorld.Trait
Def> list, RimWorld.TraitDef element)
IL_036B: brtrue => Label35
IL_0370: ldarga.s 1
IL_0372: call Verse.PawnKindDef Verse.PawnGenerationRequest::get_KindDef()
IL_0377: ldfld System.Collections.Generic.List`1<Verse.TraitRequirement>
Verse.PawnKindDef::disallowedTraitsWithDegree
IL_037C: brfalse => Label36
IL_0381: ldarga.s 1
IL_0383: call Verse.PawnKindDef Verse.PawnGenerationRequest::get_KindDef()
IL_0388: ldfld System.Collections.Generic.List`1<Verse.TraitRequirement>
Verse.PawnKindDef::disallowedTraitsWithDegree
IL_038D: ldloc.s 12 (Verse.PawnGenerator+<>c__DisplayClass41_1)
IL_038F: ldftn System.Boolean
Verse.<>c__DisplayClass41_1::<GenerateTraits>b__1(Verse.TraitRequirement t)
IL_0395: newobj System.Void
System.Predicate`1<Verse.TraitRequirement>::.ctor(System.Object object,
System.IntPtr method)
IL_039A: call static System.Boolean
Verse.GenCollection::Any(System.Collections.Generic.List`1<Verse.TraitRequirement>
list, System.Predicate`1<Verse.TraitRequirement> predicate)
IL_039F: brtrue => Label37
IL_03A4: Label36
IL_03A4: ldarg.0
IL_03A5: ldfld RimWorld.Pawn_StoryTracker Verse.Pawn::story
IL_03AA: ldfld RimWorld.TraitSet RimWorld.Pawn_StoryTracker::traits
IL_03AF: ldloc.s 12 (Verse.PawnGenerator+<>c__DisplayClass41_1)
IL_03B1: ldfld RimWorld.BackstoryTrait Verse.<>c__DisplayClass41_1::te
IL_03B6: ldfld RimWorld.TraitDef RimWorld.BackstoryTrait::def
IL_03BB: callvirt System.Boolean RimWorld.TraitSet::HasTrait(RimWorld.TraitDef
tDef)
IL_03C0: brtrue => Label38
IL_03C5: ldarga.s 1
IL_03C7: call System.Collections.Generic.IEnumerable`1<RimWorld.TraitDef>
Verse.PawnGenerationRequest::get_ProhibitedTraits()
IL_03CC: brfalse => Label39
IL_03D1: ldarga.s 1
IL_03D3: call System.Collections.Generic.IEnumerable`1<RimWorld.TraitDef>
Verse.PawnGenerationRequest::get_ProhibitedTraits()
IL_03D8: ldloc.s 12 (Verse.PawnGenerator+<>c__DisplayClass41_1)
IL_03DA: ldfld RimWorld.BackstoryTrait Verse.<>c__DisplayClass41_1::te
IL_03DF: ldfld RimWorld.TraitDef RimWorld.BackstoryTrait::def
IL_03E4: call static System.Boolean
System.Linq.Enumerable::Contains(System.Collections.Generic.IEnumerable`1<RimWorld.
TraitDef> source, RimWorld.TraitDef value)
IL_03E9: brtrue => Label40
IL_03EE: Label39
IL_03EE: ldarg.0
IL_03EF: ldfld RimWorld.Pawn_StoryTracker Verse.Pawn::story
IL_03F4: ldfld RimWorld.TraitSet RimWorld.Pawn_StoryTracker::traits
IL_03F9: ldloc.s 12 (Verse.PawnGenerator+<>c__DisplayClass41_1)
IL_03FB: ldfld RimWorld.BackstoryTrait Verse.<>c__DisplayClass41_1::te
IL_0400: ldfld RimWorld.TraitDef RimWorld.BackstoryTrait::def
IL_0405: ldloc.s 12 (Verse.PawnGenerator+<>c__DisplayClass41_1)
IL_0407: ldfld RimWorld.BackstoryTrait Verse.<>c__DisplayClass41_1::te
IL_040C: ldfld System.Int32 RimWorld.BackstoryTrait::degree
IL_0411: ldc.i4.0
IL_0412: newobj System.Void RimWorld.Trait::.ctor(RimWorld.TraitDef def,
System.Int32 degree, System.Boolean forced)
IL_0417: ldc.i4.0
IL_0418: callvirt System.Void RimWorld.TraitSet::GainTrait(RimWorld.Trait trait,
System.Boolean suppressConflicts)
IL_041D: Label34
IL_041D: Label35
IL_041D: Label37
IL_041D: Label38
IL_041D: Label40
IL_041D: ldloc.s 11 (System.Int32)
IL_041F: ldc.i4.1
IL_0420: add
IL_0421: stloc.s 11 (System.Int32)
IL_0423: Label32
IL_0423: ldloc.s 11 (System.Int32)
IL_0425: ldloc.s 10 (System.Collections.Generic.List`1[RimWorld.BackstoryTrait])
IL_0427: callvirt virtual System.Int32
System.Collections.Generic.List`1<RimWorld.BackstoryTrait>::get_Count()
IL_042C: blt => Label41
IL_0431: Label30
IL_0431: Label31
IL_0431: ldsfld System.Int32[] RimWorld.GrowthUtility::GrowthMomentAges
IL_0436: ldlen
IL_0437: conv.i4
IL_0438: ldsfld Verse.IntRange Verse.PawnGenerator::TraitsCountRange
IL_043D: stloc.s 13 (Verse.IntRange)
IL_043F: ldloca.s 13 (Verse.IntRange)
IL_0441: call System.Int32 Verse.IntRange::get_RandomInRange()
IL_0446: call static System.Int32 UnityEngine.Mathf::Min(System.Int32 a,
System.Int32 b)
IL_044B: stloc.0
IL_044C: ldarg.0
IL_044D: ldfld Verse.Pawn_AgeTracker Verse.Pawn::ageTracker
IL_0452: callvirt System.Int32 Verse.Pawn_AgeTracker::get_AgeBiologicalYears()
IL_0457: stloc.1
IL_0458: ldc.i4.3
IL_0459: stloc.s 14 (System.Int32)
IL_045B: br => Label42
IL_0460: Label46
IL_0460: ldarg.0
IL_0461: ldfld RimWorld.Pawn_StoryTracker Verse.Pawn::story
IL_0466: ldfld RimWorld.TraitSet RimWorld.Pawn_StoryTracker::traits
IL_046B: ldfld System.Collections.Generic.List`1<RimWorld.Trait>
RimWorld.TraitSet::allTraits
IL_0470: callvirt virtual System.Int32
System.Collections.Generic.List`1<RimWorld.Trait>::get_Count()
IL_0475: ldloc.0
IL_0476: bge => Label43
IL_047B: ldloc.s 14 (System.Int32)
IL_047D: call static System.Boolean
RimWorld.GrowthUtility::IsGrowthBirthday(System.Int32 age)
IL_0482: brfalse => Label44
IL_0487: ldarg.0
IL_0488: ldc.i4.1
IL_0489: ldarg.1
IL_048A: newobj System.Void
System.Nullable`1<Verse.PawnGenerationRequest>::.ctor(Verse.PawnGenerationRequest
value)
IL_048F: ldc.i4.1
IL_0490: call static System.Collections.Generic.List`1<RimWorld.Trait>
Verse.PawnGenerator::GenerateTraitsFor(Verse.Pawn pawn, System.Int32 traitCount,
System.Nullable`1<Verse.PawnGenerationRequest> req, System.Boolean
growthMomentTrait)
IL_0495: ldnull
IL_0496: call static RimWorld.Trait
Verse.GenCollection::FirstOrFallback(System.Collections.Generic.IEnumerable`1<RimWo
rld.Trait> source, RimWorld.Trait fallback)
IL_049B: stloc.s 15 (RimWorld.Trait)
IL_049D: ldloc.s 15 (RimWorld.Trait)
IL_049F: brfalse => Label45
IL_04A4: ldarg.0
IL_04A5: ldfld RimWorld.Pawn_StoryTracker Verse.Pawn::story
IL_04AA: ldfld RimWorld.TraitSet RimWorld.Pawn_StoryTracker::traits
IL_04AF: ldloc.s 15 (RimWorld.Trait)
IL_04B1: ldc.i4.0
IL_04B2: callvirt System.Void RimWorld.TraitSet::GainTrait(RimWorld.Trait trait,
System.Boolean suppressConflicts)
IL_04B7: Label44
IL_04B7: Label45
IL_04B7: ldloc.s 14 (System.Int32)
IL_04B9: ldc.i4.1
IL_04BA: add
IL_04BB: stloc.s 14 (System.Int32)
IL_04BD: Label42
IL_04BD: ldloc.s 14 (System.Int32)
IL_04BF: ldloc.1
IL_04C0: ble => Label46
IL_04C5: Label43
IL_04C5: ldarga.s 1
IL_04C7: call System.Boolean Verse.PawnGenerationRequest::get_AllowGay()
IL_04CC: brfalse => Label47
IL_04D1: ldarg.0
IL_04D2: call static System.Boolean
RimWorld.LovePartnerRelationUtility::HasAnyLovePartnerOfTheSameGender(Verse.Pawn
pawn)
IL_04D7: brtrue => Label48
IL_04DC: ldarg.0
IL_04DD: call static System.Boolean
RimWorld.LovePartnerRelationUtility::HasAnyExLovePartnerOfTheSameGender(Verse.Pawn
pawn)
IL_04E2: brfalse => Label49
IL_04E7: Label48
IL_04E7: ldsfld RimWorld.TraitDef RimWorld.TraitDefOf::Gay
IL_04EC: ldsfld RimWorld.TraitDef RimWorld.TraitDefOf::Gay
IL_04F1: call static System.Int32
Verse.PawnGenerator::RandomTraitDegree(RimWorld.TraitDef traitDef)
IL_04F6: ldc.i4.0
IL_04F7: newobj System.Void RimWorld.Trait::.ctor(RimWorld.TraitDef def,
System.Int32 degree, System.Boolean forced)
IL_04FC: stloc.s 16 (RimWorld.Trait)
IL_04FE: ldarg.0
IL_04FF: ldfld RimWorld.Pawn_StoryTracker Verse.Pawn::story
IL_0504: ldfld RimWorld.TraitSet RimWorld.Pawn_StoryTracker::traits
IL_0509: ldloc.s 16 (RimWorld.Trait)
IL_050B: ldc.i4.0
IL_050C: callvirt System.Void RimWorld.TraitSet::GainTrait(RimWorld.Trait trait,
System.Boolean suppressConflicts)
IL_0511: Label47
IL_0511: Label49
IL_0511: call static System.Boolean Verse.ModsConfig::get_BiotechActive()
IL_0516: brfalse => Label50
IL_051B: ldarg.0
IL_051C: ldfld Verse.Pawn_AgeTracker Verse.Pawn::ageTracker
IL_0521: callvirt System.Int32 Verse.Pawn_AgeTracker::get_AgeBiologicalYears()
IL_0526: ldc.i4.s 13
IL_0528: blt => Label51
IL_052D: Label50
IL_052D: ldarg.0
IL_052E: ldarga.s 1
IL_0530: call System.Boolean Verse.PawnGenerationRequest::get_AllowGay()
IL_0535: call static System.Void
Verse.PawnGenerator::TryGenerateSexualityTraitFor(Verse.Pawn pawn, System.Boolean
allowGay)
IL_053A: // end original
IL_053A: Label51
IL_053A: Label52
IL_053A: Label0
IL_053A: ldarg 0
IL_053E: ldarg 1
IL_0542: call static System.Void
AlienRace.HarmonyPatches::GenerateTraitsPostfix(Verse.Pawn pawn,
Verse.PawnGenerationRequest request)
IL_0547: ret
DONE

### Patch: static System.Collections.Generic.List`1<RimWorld.Trait>


Verse.PawnGenerator::GenerateTraitsFor(Verse.Pawn pawn, System.Int32 traitCount,
System.Nullable`1<Verse.PawnGenerationRequest> req, System.Boolean
growthMomentTrait)
### Replacement: static System.Collections.Generic.List`1<RimWorld.Trait>
Verse.PawnGenerator::Verse.PawnGenerator.GenerateTraitsFor_Patch0(Verse.Pawn pawn,
System.Int32 traitCount, System.Nullable`1<Verse.PawnGenerationRequest> req,
System.Boolean growthMomentTrait)
IL_0000: Local var 0: Verse.PawnGenerator/<>c__DisplayClass45_0
IL_0000: Local var 1: System.Collections.Generic.List`1<RimWorld.Trait>
IL_0000: Local var 2: System.Int32
IL_0000: Local var 3: Verse.PawnGenerator/<>c__DisplayClass45_1
IL_0000: Local var 4: System.Int32
IL_0000: Local var 5: System.Func`2<RimWorld.TraitDef,System.Single>
IL_0000: Local var 6: Verse.PawnGenerationRequest
IL_0000: Local var 7: System.Predicate`1<RimWorld.SkillDef>
IL_0000: // start original
IL_0000: newobj System.Void Verse.<>c__DisplayClass45_0::.ctor()
IL_0005: stloc.0
IL_0006: ldloc.0
IL_0007: ldarg.0
IL_0008: stfld Verse.Pawn Verse.<>c__DisplayClass45_0::pawn
IL_000D: newobj System.Void
System.Collections.Generic.List`1<RimWorld.Trait>::.ctor()
IL_0012: stloc.1
IL_0013: ldc.i4.0
IL_0014: stloc.2
IL_0015: br => Label0
IL_001A: Label44
IL_001A: newobj System.Void Verse.<>c__DisplayClass45_1::.ctor()
IL_001F: stloc.3
IL_0020: ldloc.3
IL_0021: call static System.Collections.Generic.List`1<RimWorld.TraitDef>
Verse.DefDatabase`1<RimWorld.TraitDef>::get_AllDefsListForReading()
IL_0026: ldarg.0
IL_0027: call static
System.Collections.Generic.IEnumerable`1<RimWorld.TraitDef>
AlienRace.HarmonyPatches::GenerateTraitsValidator(System.Collections.Generic.List`1
<RimWorld.TraitDef> traits, Verse.Pawn p)
IL_002C: ldloc.0
IL_002D: ldfld System.Func`2<RimWorld.TraitDef, System.Single>
Verse.<>c__DisplayClass45_0::<>9__0
IL_0032: dup
IL_0033: brtrue => Label1
IL_0038: pop
IL_0039: ldloc.0
IL_003A: ldloc.0
IL_003B: ldftn System.Single
Verse.<>c__DisplayClass45_0::<GenerateTraitsFor>b__0(RimWorld.TraitDef tr)
IL_0041: newobj System.Void System.Func`2<RimWorld.TraitDef,
System.Single>::.ctor(System.Object object, System.IntPtr method)
IL_0046: dup
IL_0047: stloc.s 5 (System.Func`2[RimWorld.TraitDef,System.Single])
IL_0049: stfld System.Func`2<RimWorld.TraitDef, System.Single>
Verse.<>c__DisplayClass45_0::<>9__0
IL_004E: ldloc.s 5 (System.Func`2[RimWorld.TraitDef,System.Single])
IL_0050: Label1
IL_0050: call static RimWorld.TraitDef
Verse.GenCollection::RandomElementByWeight(System.Collections.Generic.IEnumerable`1
<RimWorld.TraitDef> source, System.Func`2<RimWorld.TraitDef, System.Single>
weightSelector)
IL_0055: stfld RimWorld.TraitDef Verse.<>c__DisplayClass45_1::newTraitDef
IL_005A: ldloc.0
IL_005B: ldfld Verse.Pawn Verse.<>c__DisplayClass45_0::pawn
IL_0060: ldfld RimWorld.Pawn_StoryTracker Verse.Pawn::story
IL_0065: ldfld RimWorld.TraitSet RimWorld.Pawn_StoryTracker::traits
IL_006A: ldloc.3
IL_006B: ldfld RimWorld.TraitDef Verse.<>c__DisplayClass45_1::newTraitDef
IL_0070: callvirt System.Boolean RimWorld.TraitSet::HasTrait(RimWorld.TraitDef
tDef)
IL_0075: brtrue => Label2
IL_007A: ldloc.1
IL_007B: ldloc.3
IL_007C: ldfld RimWorld.TraitDef Verse.<>c__DisplayClass45_1::newTraitDef
IL_0081: call static System.Boolean
Verse.PawnGenerator::TraitListHasDef(System.Collections.Generic.List`1<RimWorld.Tra
it> traits, RimWorld.TraitDef traitDef)
IL_0086: brtrue => Label3
IL_008B: ldloc.3
IL_008C: ldfld RimWorld.TraitDef Verse.<>c__DisplayClass45_1::newTraitDef
IL_0091: ldsfld RimWorld.TraitDef RimWorld.TraitDefOf::Gay
IL_0096: bne.un => Label4
IL_009B: ldloc.0
IL_009C: ldfld Verse.Pawn Verse.<>c__DisplayClass45_0::pawn
IL_00A1: call static System.Boolean
RimWorld.LovePartnerRelationUtility::HasAnyLovePartnerOfTheOppositeGender(Verse.Paw
n pawn)
IL_00A6: brtrue => Label5
IL_00AB: ldloc.0
IL_00AC: ldfld Verse.Pawn Verse.<>c__DisplayClass45_0::pawn
IL_00B1: call static System.Boolean
RimWorld.LovePartnerRelationUtility::HasAnyExLovePartnerOfTheOppositeGender(Verse.P
awn pawn)
IL_00B6: brtrue => Label6
IL_00BB: Label4
IL_00BB: ldarg.3
IL_00BC: brfalse => Label7
IL_00C1: call static System.Boolean Verse.ModsConfig::get_BiotechActive()
IL_00C6: brfalse => Label8
IL_00CB: ldloc.3
IL_00CC: ldfld RimWorld.TraitDef Verse.<>c__DisplayClass45_1::newTraitDef
IL_00D1: ldsfld RimWorld.TraitDef RimWorld.TraitDefOf::Gay
IL_00D6: beq => Label9
IL_00DB: ldloc.3
IL_00DC: ldfld RimWorld.TraitDef Verse.<>c__DisplayClass45_1::newTraitDef
IL_00E1: ldsfld RimWorld.TraitDef RimWorld.TraitDefOf::Bisexual
IL_00E6: beq => Label10
IL_00EB: ldloc.3
IL_00EC: ldfld RimWorld.TraitDef Verse.<>c__DisplayClass45_1::newTraitDef
IL_00F1: ldsfld RimWorld.TraitDef RimWorld.TraitDefOf::Asexual
IL_00F6: beq => Label11
IL_00FB: Label7
IL_00FB: Label8
IL_00FB: ldarga.s 2
IL_00FD: call System.Boolean
System.Nullable`1<Verse.PawnGenerationRequest>::get_HasValue()
IL_0102: brfalse => Label12
IL_0107: ldarga.s 2
IL_0109: call Verse.PawnGenerationRequest
System.Nullable`1<Verse.PawnGenerationRequest>::get_Value()
IL_010E: stloc.s 6 (Verse.PawnGenerationRequest)
IL_0110: ldloca.s 6 (Verse.PawnGenerationRequest)
IL_0112: call Verse.PawnKindDef Verse.PawnGenerationRequest::get_KindDef()
IL_0117: ldfld System.Collections.Generic.List`1<RimWorld.TraitDef>
Verse.PawnKindDef::disallowedTraits
IL_011C: ldloc.3
IL_011D: ldfld RimWorld.TraitDef Verse.<>c__DisplayClass45_1::newTraitDef
IL_0122: call static System.Boolean
Verse.GenList::NotNullAndContains(System.Collections.Generic.IList`1<RimWorld.Trait
Def> list, RimWorld.TraitDef element)
IL_0127: brtrue => Label13
IL_012C: ldloca.s 6 (Verse.PawnGenerationRequest)
IL_012E: call Verse.PawnKindDef Verse.PawnGenerationRequest::get_KindDef()
IL_0133: ldfld System.Collections.Generic.List`1<Verse.TraitRequirement>
Verse.PawnKindDef::disallowedTraitsWithDegree
IL_0138: brfalse => Label14
IL_013D: ldloca.s 6 (Verse.PawnGenerationRequest)
IL_013F: call Verse.PawnKindDef Verse.PawnGenerationRequest::get_KindDef()
IL_0144: ldfld System.Collections.Generic.List`1<Verse.TraitRequirement>
Verse.PawnKindDef::disallowedTraitsWithDegree
IL_0149: ldloc.3
IL_014A: ldftn System.Boolean
Verse.<>c__DisplayClass45_1::<GenerateTraitsFor>b__4(Verse.TraitRequirement t)
IL_0150: newobj System.Void
System.Predicate`1<Verse.TraitRequirement>::.ctor(System.Object object,
System.IntPtr method)
IL_0155: call static System.Boolean
Verse.GenCollection::Any(System.Collections.Generic.List`1<Verse.TraitRequirement>
list, System.Predicate`1<Verse.TraitRequirement> predicate)
IL_015A: brtrue => Label15
IL_015F: Label14
IL_015F: ldloca.s 6 (Verse.PawnGenerationRequest)
IL_0161: call Verse.PawnKindDef Verse.PawnGenerationRequest::get_KindDef()
IL_0166: ldfld Verse.WorkTags Verse.PawnKindDef::requiredWorkTags
IL_016B: brfalse => Label16
IL_0170: ldloc.3
IL_0171: ldfld RimWorld.TraitDef Verse.<>c__DisplayClass45_1::newTraitDef
IL_0176: ldfld Verse.WorkTags RimWorld.TraitDef::disabledWorkTags
IL_017B: ldloca.s 6 (Verse.PawnGenerationRequest)
IL_017D: call Verse.PawnKindDef Verse.PawnGenerationRequest::get_KindDef()
IL_0182: ldfld Verse.WorkTags Verse.PawnKindDef::requiredWorkTags
IL_0187: and
IL_0188: brtrue => Label17
IL_018D: Label16
IL_018D: ldloc.3
IL_018E: ldfld RimWorld.TraitDef Verse.<>c__DisplayClass45_1::newTraitDef
IL_0193: ldsfld RimWorld.TraitDef RimWorld.TraitDefOf::Gay
IL_0198: bne.un => Label18
IL_019D: ldloca.s 6 (Verse.PawnGenerationRequest)
IL_019F: call System.Boolean Verse.PawnGenerationRequest::get_AllowGay()
IL_01A4: brfalse => Label19
IL_01A9: Label18
IL_01A9: ldloca.s 6 (Verse.PawnGenerationRequest)
IL_01AB: call System.Collections.Generic.IEnumerable`1<RimWorld.TraitDef>
Verse.PawnGenerationRequest::get_ProhibitedTraits()
IL_01B0: brfalse => Label20
IL_01B5: ldloca.s 6 (Verse.PawnGenerationRequest)
IL_01B7: call System.Collections.Generic.IEnumerable`1<RimWorld.TraitDef>
Verse.PawnGenerationRequest::get_ProhibitedTraits()
IL_01BC: ldloc.3
IL_01BD: ldfld RimWorld.TraitDef Verse.<>c__DisplayClass45_1::newTraitDef
IL_01C2: call static System.Boolean
System.Linq.Enumerable::Contains(System.Collections.Generic.IEnumerable`1<RimWorld.
TraitDef> source, RimWorld.TraitDef value)
IL_01C7: brtrue => Label21
IL_01CC: Label20
IL_01CC: ldloca.s 6 (Verse.PawnGenerationRequest)
IL_01CE: call RimWorld.Faction Verse.PawnGenerationRequest::get_Faction()
IL_01D3: brfalse => Label22
IL_01D8: call static RimWorld.Faction
RimWorld.Faction::get_OfPlayerSilentFail()
IL_01DD: brfalse => Label23
IL_01E2: ldloca.s 6 (Verse.PawnGenerationRequest)
IL_01E4: call RimWorld.Faction Verse.PawnGenerationRequest::get_Faction()
IL_01E9: call static RimWorld.Faction RimWorld.Faction::get_OfPlayer()
IL_01EE: call static System.Boolean
RimWorld.FactionUtility::HostileTo(RimWorld.Faction fac, RimWorld.Faction other)
IL_01F3: brfalse => Label24
IL_01F8: ldloc.3
IL_01F9: ldfld RimWorld.TraitDef Verse.<>c__DisplayClass45_1::newTraitDef
IL_01FE: ldfld System.Boolean RimWorld.TraitDef::allowOnHostileSpawn
IL_0203: brfalse => Label25
IL_0208: Label12
IL_0208: Label22
IL_0208: Label23
IL_0208: Label24
IL_0208: ldloc.0
IL_0209: ldfld Verse.Pawn Verse.<>c__DisplayClass45_0::pawn
IL_020E: ldfld RimWorld.Pawn_StoryTracker Verse.Pawn::story
IL_0213: ldfld RimWorld.TraitSet RimWorld.Pawn_StoryTracker::traits
IL_0218: ldfld System.Collections.Generic.List`1<RimWorld.Trait>
RimWorld.TraitSet::allTraits
IL_021D: ldloc.3
IL_021E: ldftn System.Boolean
Verse.<>c__DisplayClass45_1::<GenerateTraitsFor>b__1(RimWorld.Trait tr)
IL_0224: newobj System.Void
System.Predicate`1<RimWorld.Trait>::.ctor(System.Object object, System.IntPtr
method)
IL_0229: call static System.Boolean
Verse.GenCollection::Any(System.Collections.Generic.List`1<RimWorld.Trait> list,
System.Predicate`1<RimWorld.Trait> predicate)
IL_022E: brtrue => Label26
IL_0233: ldloc.3
IL_0234: ldfld RimWorld.TraitDef Verse.<>c__DisplayClass45_1::newTraitDef
IL_0239: ldfld System.Collections.Generic.List`1<Verse.WorkTypeDef>
RimWorld.TraitDef::requiredWorkTypes
IL_023E: brfalse => Label27
IL_0243: ldloc.0
IL_0244: ldfld Verse.Pawn Verse.<>c__DisplayClass45_0::pawn
IL_0249: ldloc.3
IL_024A: ldfld RimWorld.TraitDef Verse.<>c__DisplayClass45_1::newTraitDef
IL_024F: ldfld System.Collections.Generic.List`1<Verse.WorkTypeDef>
RimWorld.TraitDef::requiredWorkTypes
IL_0254: callvirt System.Boolean
Verse.Pawn::OneOfWorkTypesIsDisabled(System.Collections.Generic.List`1<Verse.WorkTy
peDef> wts)
IL_0259: brtrue => Label28
IL_025E: Label27
IL_025E: ldloc.0
IL_025F: ldfld Verse.Pawn Verse.<>c__DisplayClass45_0::pawn
IL_0264: ldloc.3
IL_0265: ldfld RimWorld.TraitDef Verse.<>c__DisplayClass45_1::newTraitDef
IL_026A: ldfld Verse.WorkTags RimWorld.TraitDef::requiredWorkTags
IL_026F: callvirt System.Boolean Verse.Pawn::WorkTagIsDisabled(Verse.WorkTags w)
IL_0274: brtrue => Label29
IL_0279: ldloc.3
IL_027A: ldfld RimWorld.TraitDef Verse.<>c__DisplayClass45_1::newTraitDef
IL_027F: ldfld System.Collections.Generic.List`1<RimWorld.SkillDef>
RimWorld.TraitDef::forcedPassions
IL_0284: brfalse => Label30
IL_0289: ldloc.0
IL_028A: ldfld Verse.Pawn Verse.<>c__DisplayClass45_0::pawn
IL_028F: ldfld RimWorld.Pawn_WorkSettings Verse.Pawn::workSettings
IL_0294: brfalse => Label31
IL_0299: ldloc.3
IL_029A: ldfld RimWorld.TraitDef Verse.<>c__DisplayClass45_1::newTraitDef
IL_029F: ldfld System.Collections.Generic.List`1<RimWorld.SkillDef>
RimWorld.TraitDef::forcedPassions
IL_02A4: ldloc.0
IL_02A5: ldfld System.Predicate`1<RimWorld.SkillDef>
Verse.<>c__DisplayClass45_0::<>9__2
IL_02AA: dup
IL_02AB: brtrue => Label32
IL_02B0: pop
IL_02B1: ldloc.0
IL_02B2: ldloc.0
IL_02B3: ldftn System.Boolean
Verse.<>c__DisplayClass45_0::<GenerateTraitsFor>b__2(RimWorld.SkillDef p)
IL_02B9: newobj System.Void
System.Predicate`1<RimWorld.SkillDef>::.ctor(System.Object object, System.IntPtr
method)
IL_02BE: dup
IL_02BF: stloc.s 7 (System.Predicate`1[RimWorld.SkillDef])
IL_02C1: stfld System.Predicate`1<RimWorld.SkillDef>
Verse.<>c__DisplayClass45_0::<>9__2
IL_02C6: ldloc.s 7 (System.Predicate`1[RimWorld.SkillDef])
IL_02C8: Label32
IL_02C8: call static System.Boolean
Verse.GenCollection::Any(System.Collections.Generic.List`1<RimWorld.SkillDef> list,
System.Predicate`1<RimWorld.SkillDef> predicate)
IL_02CD: brtrue => Label33
IL_02D2: Label30
IL_02D2: Label31
IL_02D2: ldloc.3
IL_02D3: ldfld RimWorld.TraitDef Verse.<>c__DisplayClass45_1::newTraitDef
IL_02D8: call static System.Int32
Verse.PawnGenerator::RandomTraitDegree(RimWorld.TraitDef traitDef)
IL_02DD: stloc.s 4 (System.Int32)
IL_02DF: ldloc.0
IL_02E0: ldfld Verse.Pawn Verse.<>c__DisplayClass45_0::pawn
IL_02E5: ldfld RimWorld.Pawn_StoryTracker Verse.Pawn::story
IL_02EA: callvirt RimWorld.BackstoryDef
RimWorld.Pawn_StoryTracker::get_Childhood()
IL_02EF: brfalse => Label34
IL_02F4: ldloc.0
IL_02F5: ldfld Verse.Pawn Verse.<>c__DisplayClass45_0::pawn
IL_02FA: ldfld RimWorld.Pawn_StoryTracker Verse.Pawn::story
IL_02FF: callvirt RimWorld.BackstoryDef
RimWorld.Pawn_StoryTracker::get_Childhood()
IL_0304: ldloc.3
IL_0305: ldfld RimWorld.TraitDef Verse.<>c__DisplayClass45_1::newTraitDef
IL_030A: ldloc.s 4 (System.Int32)
IL_030C: callvirt System.Boolean
RimWorld.BackstoryDef::DisallowsTrait(RimWorld.TraitDef def, System.Int32 degree)
IL_0311: brtrue => Label35
IL_0316: Label34
IL_0316: ldloc.0
IL_0317: ldfld Verse.Pawn Verse.<>c__DisplayClass45_0::pawn
IL_031C: ldfld RimWorld.Pawn_StoryTracker Verse.Pawn::story
IL_0321: callvirt RimWorld.BackstoryDef
RimWorld.Pawn_StoryTracker::get_Adulthood()
IL_0326: brfalse => Label36
IL_032B: ldloc.0
IL_032C: ldfld Verse.Pawn Verse.<>c__DisplayClass45_0::pawn
IL_0331: ldfld RimWorld.Pawn_StoryTracker Verse.Pawn::story
IL_0336: callvirt RimWorld.BackstoryDef
RimWorld.Pawn_StoryTracker::get_Adulthood()
IL_033B: ldloc.3
IL_033C: ldfld RimWorld.TraitDef Verse.<>c__DisplayClass45_1::newTraitDef
IL_0341: ldloc.s 4 (System.Int32)
IL_0343: callvirt System.Boolean
RimWorld.BackstoryDef::DisallowsTrait(RimWorld.TraitDef def, System.Int32 degree)
IL_0348: brtrue => Label37
IL_034D: Label36
IL_034D: ldloc.3
IL_034E: ldloc.3
IL_034F: ldfld RimWorld.TraitDef Verse.<>c__DisplayClass45_1::newTraitDef
IL_0354: ldloc.s 4 (System.Int32)
IL_0356: ldc.i4.0
IL_0357: newobj System.Void RimWorld.Trait::.ctor(RimWorld.TraitDef def,
System.Int32 degree, System.Boolean forced)
IL_035C: stfld RimWorld.Trait Verse.<>c__DisplayClass45_1::trait
IL_0361: ldloc.0
IL_0362: ldfld Verse.Pawn Verse.<>c__DisplayClass45_0::pawn
IL_0367: ldfld Verse.PawnKindDef Verse.Pawn::kindDef
IL_036C: ldfld System.Collections.Generic.List`1<Verse.TraitRequirement>
Verse.PawnKindDef::disallowedTraitsWithDegree
IL_0371: call static System.Boolean
Verse.GenList::NullOrEmpty(System.Collections.Generic.IList`1<Verse.TraitRequiremen
t> list)
IL_0376: brtrue => Label38
IL_037B: ldloc.0
IL_037C: ldfld Verse.Pawn Verse.<>c__DisplayClass45_0::pawn
IL_0381: ldfld Verse.PawnKindDef Verse.Pawn::kindDef
IL_0386: ldfld System.Collections.Generic.List`1<Verse.TraitRequirement>
Verse.PawnKindDef::disallowedTraitsWithDegree
IL_038B: ldloc.3
IL_038C: ldftn System.Boolean
Verse.<>c__DisplayClass45_1::<GenerateTraitsFor>b__3(Verse.TraitRequirement t)
IL_0392: newobj System.Void
System.Predicate`1<Verse.TraitRequirement>::.ctor(System.Object object,
System.IntPtr method)
IL_0397: call static System.Boolean
Verse.GenCollection::Any(System.Collections.Generic.List`1<Verse.TraitRequirement>
list, System.Predicate`1<Verse.TraitRequirement> predicate)
IL_039C: brtrue => Label39
IL_03A1: Label38
IL_03A1: ldloc.0
IL_03A2: ldfld Verse.Pawn Verse.<>c__DisplayClass45_0::pawn
IL_03A7: ldfld Verse.AI.Pawn_MindState Verse.Pawn::mindState
IL_03AC: brfalse => Label40
IL_03B1: ldloc.0
IL_03B2: ldfld Verse.Pawn Verse.<>c__DisplayClass45_0::pawn
IL_03B7: ldfld Verse.AI.Pawn_MindState Verse.Pawn::mindState
IL_03BC: ldfld Verse.AI.MentalBreaker Verse.AI.Pawn_MindState::mentalBreaker
IL_03C1: brfalse => Label41
IL_03C6: ldloc.0
IL_03C7: ldfld Verse.Pawn Verse.<>c__DisplayClass45_0::pawn
IL_03CC: ldfld Verse.AI.Pawn_MindState Verse.Pawn::mindState
IL_03D1: ldfld Verse.AI.MentalBreaker Verse.AI.Pawn_MindState::mentalBreaker
IL_03D6: callvirt System.Single Verse.AI.MentalBreaker::get_BreakThresholdMinor()
IL_03DB: ldloc.3
IL_03DC: ldfld RimWorld.Trait Verse.<>c__DisplayClass45_1::trait
IL_03E1: ldsfld RimWorld.StatDef RimWorld.StatDefOf::MentalBreakThreshold
IL_03E6: callvirt System.Single RimWorld.Trait::OffsetOfStat(RimWorld.StatDef
stat)
IL_03EB: add
IL_03EC: ldloc.3
IL_03ED: ldfld RimWorld.Trait Verse.<>c__DisplayClass45_1::trait
IL_03F2: ldsfld RimWorld.StatDef RimWorld.StatDefOf::MentalBreakThreshold
IL_03F7: callvirt System.Single RimWorld.Trait::MultiplierOfStat(RimWorld.StatDef
stat)
IL_03FC: mul
IL_03FD: ldc.r4 0.5
IL_0402: bgt => Label42
IL_0407: Label40
IL_0407: Label41
IL_0407: ldloc.1
IL_0408: ldloc.3
IL_0409: ldfld RimWorld.Trait Verse.<>c__DisplayClass45_1::trait
IL_040E: callvirt virtual System.Void
System.Collections.Generic.List`1<RimWorld.Trait>::Add(RimWorld.Trait item)
IL_0413: Label0
IL_0413: Label2
IL_0413: Label3
IL_0413: Label5
IL_0413: Label6
IL_0413: Label9
IL_0413: Label10
IL_0413: Label11
IL_0413: Label13
IL_0413: Label15
IL_0413: Label17
IL_0413: Label19
IL_0413: Label21
IL_0413: Label25
IL_0413: Label26
IL_0413: Label28
IL_0413: Label29
IL_0413: Label33
IL_0413: Label35
IL_0413: Label37
IL_0413: Label39
IL_0413: Label42
IL_0413: ldloc.1
IL_0414: callvirt virtual System.Int32
System.Collections.Generic.List`1<RimWorld.Trait>::get_Count()
IL_0419: ldarg.1
IL_041A: bge => Label43
IL_041F: ldloc.2
IL_0420: ldc.i4.1
IL_0421: add
IL_0422: dup
IL_0423: stloc.2
IL_0424: ldarg.1
IL_0425: ldc.i4 500
IL_042A: add
IL_042B: blt => Label44
IL_0430: Label43
IL_0430: ldloc.2
IL_0431: ldarg.1
IL_0432: ldc.i4 500
IL_0437: add
IL_0438: blt => Label45
IL_043D: ldstr "Tried to generate {0} traits for {1} over {2} extra times and
failed."
IL_0442: ldarg.1
IL_0443: box System.Int32
IL_0448: ldloc.0
IL_0449: ldfld Verse.Pawn Verse.<>c__DisplayClass45_0::pawn
IL_044E: ldc.i4 500
IL_0453: box System.Int32
IL_0458: call static System.String System.String::Format(System.String
format, System.Object arg0, System.Object arg1, System.Object arg2)
IL_045D: call static System.Void Verse.Log::Warning(System.String text)
IL_0462: Label45
IL_0462: ldloc.1
IL_0463: // end original
IL_0463: ret
DONE

### Patch: System.Boolean


RimWorld.JobGiver_SatisfyChemicalNeed::DrugValidator(Verse.Pawn pawn,
RimWorld.Hediff_Addiction addiction, Verse.Thing drug)
### Replacement: static System.Boolean
RimWorld.JobGiver_SatisfyChemicalNeed::RimWorld.JobGiver_SatisfyChemicalNeed.DrugVa
lidator_Patch1(RimWorld.JobGiver_SatisfyChemicalNeed this, Verse.Pawn pawn,
RimWorld.Hediff_Addiction addiction, Verse.Thing drug)
IL_0000: Local var 0: RimWorld.CompDrug
IL_0000: Local var 1: System.Boolean
IL_0000: ldc.i4 0
IL_0005: stloc 1 (System.Boolean)
IL_0009: // start original
IL_0009: ldarg.3
IL_000A: ldfld Verse.ThingDef Verse.Thing::def
IL_000F: callvirt System.Boolean Verse.ThingDef::get_IsDrug()
IL_0014: brtrue => Label0
IL_0019: ldc.i4.0
IL_001A: br => Label14
IL_001F: Label0
IL_001F: ldarg.3
IL_0020: callvirt System.Boolean Verse.Thing::get_Spawned()
IL_0025: brfalse => Label1
IL_002A: ldarg.3
IL_002B: ldarg.1
IL_002C: call static System.Boolean
RimWorld.ForbidUtility::IsForbidden(Verse.Thing t, Verse.Pawn pawn)
IL_0031: brfalse => Label2
IL_0036: ldc.i4.0
IL_0037: br => Label15
IL_003C: Label2
IL_003C: ldarg.1
IL_003D: ldarg.3
IL_003E: call static Verse.LocalTargetInfo
Verse.LocalTargetInfo::op_Implicit(Verse.Thing t)
IL_0043: ldc.i4.1
IL_0044: ldc.i4.m1
IL_0045: ldnull
IL_0046: ldc.i4.0
IL_0047: call static System.Boolean
Verse.AI.ReservationUtility::CanReserve(Verse.Pawn p, Verse.LocalTargetInfo target,
System.Int32 maxPawns, System.Int32 stackCount, Verse.ReservationLayerDef layer,
System.Boolean ignoreOtherReservations)
IL_004C: brtrue => Label3
IL_0051: ldc.i4.0
IL_0052: br => Label16
IL_0057: Label3
IL_0057: ldarg.3
IL_0058: ldarg.1
IL_0059: call static System.Boolean
RimWorld.SocialProperness::IsSociallyProper(Verse.Thing t, Verse.Pawn p)
IL_005E: brtrue => Label4
IL_0063: ldc.i4.0
IL_0064: br => Label17
IL_0069: Label1
IL_0069: Label4
IL_0069: ldarg.3
IL_006A: call static RimWorld.CompDrug
Verse.ThingCompUtility::TryGetComp(Verse.Thing thing)
IL_006F: stloc.0
IL_0070: ldloc.0
IL_0071: brfalse => Label5
IL_0076: ldloc.0
IL_0077: callvirt RimWorld.CompProperties_Drug RimWorld.CompDrug::get_Props()
IL_007C: ldfld RimWorld.ChemicalDef RimWorld.CompProperties_Drug::chemical
IL_0081: brtrue => Label6
IL_0086: Label5
IL_0086: ldc.i4.0
IL_0087: br => Label18
IL_008C: Label6
IL_008C: ldloc.0
IL_008D: callvirt RimWorld.CompProperties_Drug RimWorld.CompDrug::get_Props()
IL_0092: ldfld RimWorld.ChemicalDef RimWorld.CompProperties_Drug::chemical
IL_0097: ldfld Verse.HediffDef RimWorld.ChemicalDef::addictionHediff
IL_009C: ldarg.2
IL_009D: ldfld Verse.HediffDef Verse.Hediff::def
IL_00A2: beq => Label7
IL_00A7: ldc.i4.0
IL_00A8: br => Label19
IL_00AD: Label7
IL_00AD: ldarg.1
IL_00AE: ldfld RimWorld.Pawn_DrugPolicyTracker Verse.Pawn::drugs
IL_00B3: brfalse => Label8
IL_00B8: ldarg.1
IL_00B9: ldfld RimWorld.Pawn_DrugPolicyTracker Verse.Pawn::drugs
IL_00BE: callvirt RimWorld.DrugPolicy
RimWorld.Pawn_DrugPolicyTracker::get_CurrentPolicy()
IL_00C3: ldarg.3
IL_00C4: ldfld Verse.ThingDef Verse.Thing::def
IL_00C9: callvirt RimWorld.DrugPolicyEntry
RimWorld.DrugPolicy::get_Item(Verse.ThingDef drugDef)
IL_00CE: ldfld System.Boolean RimWorld.DrugPolicyEntry::allowedForAddiction
IL_00D3: brtrue => Label9
IL_00D8: ldarg.1
IL_00D9: ldfld RimWorld.Pawn_StoryTracker Verse.Pawn::story
IL_00DE: brfalse => Label10
IL_00E3: ldarg.1
IL_00E4: ldfld RimWorld.Pawn_StoryTracker Verse.Pawn::story
IL_00E9: ldfld RimWorld.TraitSet RimWorld.Pawn_StoryTracker::traits
IL_00EE: ldsfld RimWorld.TraitDef RimWorld.TraitDefOf::DrugDesire
IL_00F3: callvirt System.Int32 RimWorld.TraitSet::DegreeOfTrait(RimWorld.TraitDef
tDef)
IL_00F8: ldc.i4.0
IL_00F9: bgt => Label11
IL_00FE: ldarg.1
IL_00FF: callvirt System.Boolean Verse.Pawn::get_InMentalState()
IL_0104: brfalse => Label12
IL_0109: ldarg.1
IL_010A: callvirt Verse.MentalStateDef Verse.Pawn::get_MentalStateDef()
IL_010F: ldfld System.Boolean Verse.MentalStateDef::ignoreDrugPolicy
IL_0114: brtrue => Label13
IL_0119: Label12
IL_0119: ldc.i4.0
IL_011A: br => Label20
IL_011F: Label8
IL_011F: Label9
IL_011F: Label10
IL_011F: Label11
IL_011F: Label13
IL_011F: ldc.i4.1
IL_0120: // end original
IL_0120: Label14
IL_0120: Label15
IL_0120: Label16
IL_0120: Label17
IL_0120: Label18
IL_0120: Label19
IL_0120: Label20
IL_0120: stloc 1 (System.Boolean)
IL_0124: ldloca 1 (System.Boolean)
IL_0128: ldarg 1
IL_012C: ldarg 3
IL_0130: call static System.Void
AlienRace.HarmonyPatches::DrugValidatorPostfix(System.Boolean& __result, Verse.Pawn
pawn, Verse.Thing drug)
IL_0135: ldloc 1 (System.Boolean)
IL_0139: ret
DONE

### Patch: virtual System.Void RimWorld.CompDrug::PostIngested(Verse.Pawn ingester)


### Replacement: static System.Void
RimWorld.CompDrug::RimWorld.CompDrug.PostIngested_Patch1(RimWorld.CompDrug this,
Verse.Pawn ingester)
IL_0000: Local var 0: System.Single
IL_0000: Local var 1: System.Collections.Generic.List`1/Enumerator<Verse.Gene>
IL_0000: Local var 2: Verse.Gene
IL_0000: Local var 3: Verse.Hediff
IL_0000: Local var 4: System.Single
IL_0000: Local var 5: System.Boolean
IL_0000: Local var 6: Verse.Gene_ChemicalDependency
IL_0000: Local var 7: System.Single
IL_0000: Local var 8: System.Single
IL_0000: // start original
IL_0000: ldarg.0
IL_0001: call RimWorld.CompProperties_Drug RimWorld.CompDrug::get_Props()
IL_0006: callvirt System.Boolean RimWorld.CompProperties_Drug::get_Addictive()
IL_000B: brfalse => Label0
IL_0010: ldarg.1
IL_0011: callvirt Verse.RaceProperties Verse.Pawn::get_RaceProps()
IL_0016: callvirt System.Boolean Verse.RaceProperties::get_IsFlesh()
IL_001B: brfalse => Label1
IL_0020: ldc.r4 1
IL_0025: stloc.0
IL_0026: call static System.Boolean Verse.ModsConfig::get_BiotechActive()
IL_002B: brfalse => Label2
IL_0030: ldarg.1
IL_0031: ldfld RimWorld.Pawn_GeneTracker Verse.Pawn::genes
IL_0036: brfalse => Label3
IL_003B: ldarg.1
IL_003C: ldfld RimWorld.Pawn_GeneTracker Verse.Pawn::genes
IL_0041: callvirt System.Collections.Generic.List`1<Verse.Gene>
RimWorld.Pawn_GeneTracker::get_GenesListForReading()
IL_0046: callvirt System.Collections.Generic.Enumerator<Verse.Gene>
System.Collections.Generic.List`1<Verse.Gene>::GetEnumerator()
IL_004B: stloc.1
.try
{
IL_004C: br => Label4
IL_0051: Label5
IL_0051: ldloca.s 1
(System.Collections.Generic.List`1+Enumerator[Verse.Gene])
IL_0053: call virtual Verse.Gene
System.Collections.Generic.Enumerator<Verse.Gene>::get_Current()
IL_0058: stloc.2
IL_0059: ldloc.0
IL_005A: ldloc.2
IL_005B: ldfld Verse.GeneDef Verse.Gene::def
IL_0060: ldfld System.Single Verse.GeneDef::overdoseChanceFactor
IL_0065: mul
IL_0066: stloc.0
IL_0067: Label4
IL_0067: ldloca.s 1
(System.Collections.Generic.List`1+Enumerator[Verse.Gene])
IL_0069: call virtual System.Boolean
System.Collections.Generic.Enumerator<Verse.Gene>::MoveNext()
IL_006E: brtrue => Label5
IL_0073: leave => Label6
IL_0078: leave => (autogenerated)
} // end try
.finally
{
IL_007D: ldloca.s 1
(System.Collections.Generic.List`1+Enumerator[Verse.Gene])
IL_007F: constrained.
System.Collections.Generic.List`1+Enumerator[Verse.Gene]
IL_0085: callvirt abstract virtual System.Void
System.IDisposable::Dispose()
IL_008A: endfinally
IL_008B: leave => (autogenerated)
} // end handler
IL_008C: Label2
IL_008C: Label3
IL_008C: Label6
IL_008C: ldloc.0
IL_008D: call static System.Boolean Verse.Rand::Chance(System.Single chance)
IL_0092: brfalse => Label7
IL_0097: ldarg.1
IL_0098: ldfld Verse.Pawn_HealthTracker Verse.Pawn::health
IL_009D: ldfld Verse.HediffSet Verse.Pawn_HealthTracker::hediffSet
IL_00A2: ldsfld Verse.HediffDef RimWorld.HediffDefOf::DrugOverdose
IL_00A7: ldc.i4.0
IL_00A8: callvirt Verse.Hediff
Verse.HediffSet::GetFirstHediffOfDef(Verse.HediffDef def, System.Boolean
mustBeVisible)
IL_00AD: stloc.3
IL_00AE: ldloc.3
IL_00AF: brtrue => Label8
IL_00B4: ldc.r4 0
IL_00B9: br => Label9
IL_00BE: Label8
IL_00BE: ldloc.3
IL_00BF: callvirt virtual System.Single Verse.Hediff::get_Severity()
IL_00C4: Label9
IL_00C4: stloc.s 4 (System.Single)
IL_00C6: ldc.i4.0
IL_00C7: stloc.s 5 (System.Boolean)
IL_00C9: call static System.Boolean Verse.ModsConfig::get_BiotechActive()
IL_00CE: brfalse => Label10
IL_00D3: ldarg.1
IL_00D4: ldfld RimWorld.Pawn_GeneTracker Verse.Pawn::genes
IL_00D9: brfalse => Label11
IL_00DE: ldarg.1
IL_00DF: ldfld RimWorld.Pawn_GeneTracker Verse.Pawn::genes
IL_00E4: callvirt System.Collections.Generic.List`1<Verse.Gene>
RimWorld.Pawn_GeneTracker::get_GenesListForReading()
IL_00E9: callvirt System.Collections.Generic.Enumerator<Verse.Gene>
System.Collections.Generic.List`1<Verse.Gene>::GetEnumerator()
IL_00EE: stloc.1
.try
{
IL_00EF: br => Label12
IL_00F4: Label16
IL_00F4: ldloca.s 1
(System.Collections.Generic.List`1+Enumerator[Verse.Gene])
IL_00F6: call virtual Verse.Gene
System.Collections.Generic.Enumerator<Verse.Gene>::get_Current()
IL_00FB: isinst Verse.Gene_ChemicalDependency
IL_0100: dup
IL_0101: stloc.s 6 (Verse.Gene_ChemicalDependency)
IL_0103: brfalse => Label13
IL_0108: ldloc.s 6 (Verse.Gene_ChemicalDependency)
IL_010A: ldfld Verse.GeneDef Verse.Gene::def
IL_010F: ldfld RimWorld.ChemicalDef Verse.GeneDef::chemical
IL_0114: ldarg.0
IL_0115: call RimWorld.CompProperties_Drug
RimWorld.CompDrug::get_Props()
IL_011A: ldfld RimWorld.ChemicalDef
RimWorld.CompProperties_Drug::chemical
IL_011F: bne.un => Label14
IL_0124: ldc.i4.1
IL_0125: stloc.s 5 (System.Boolean)
IL_0127: leave => Label15
IL_012C: Label12
IL_012C: Label13
IL_012C: Label14
IL_012C: ldloca.s 1
(System.Collections.Generic.List`1+Enumerator[Verse.Gene])
IL_012E: call virtual System.Boolean
System.Collections.Generic.Enumerator<Verse.Gene>::MoveNext()
IL_0133: brtrue => Label16
IL_0138: leave => Label17
IL_013D: leave => (autogenerated)
} // end try
.finally
{
IL_0142: ldloca.s 1
(System.Collections.Generic.List`1+Enumerator[Verse.Gene])
IL_0144: constrained.
System.Collections.Generic.List`1+Enumerator[Verse.Gene]
IL_014A: callvirt abstract virtual System.Void
System.IDisposable::Dispose()
IL_014F: endfinally
IL_0150: leave => (autogenerated)
} // end handler
IL_0151: Label10
IL_0151: Label11
IL_0151: Label15
IL_0151: Label17
IL_0151: ldloc.s 4 (System.Single)
IL_0153: ldc.r4 0.9
IL_0158: bge.un => Label18
IL_015D: ldloc.s 5 (System.Boolean)
IL_015F: brtrue => Label19
IL_0164: call static System.Single Verse.Rand::get_Value()
IL_0169: ldarg.0
IL_016A: call RimWorld.CompProperties_Drug RimWorld.CompDrug::get_Props()
IL_016F: ldfld System.Single RimWorld.CompProperties_Drug::largeOverdoseChance
IL_0174: bge.un => Label20
IL_0179: ldc.r4 0.85
IL_017E: ldc.r4 0.99
IL_0183: call static System.Single Verse.Rand::Range(System.Single min,
System.Single max)
IL_0188: stloc.s 7 (System.Single)
IL_018A: ldarg.1
IL_018B: ldsfld Verse.HediffDef RimWorld.HediffDefOf::DrugOverdose
IL_0190: ldloc.s 7 (System.Single)
IL_0192: ldloc.s 4 (System.Single)
IL_0194: sub
IL_0195: call static System.Void
Verse.HealthUtility::AdjustSeverity(Verse.Pawn pawn, Verse.HediffDef hdDef,
System.Single sevOffset)
IL_019A: ldarg.1
IL_019B: callvirt virtual RimWorld.Faction Verse.Thing::get_Faction()
IL_01A0: call static RimWorld.Faction RimWorld.Faction::get_OfPlayer()
IL_01A5: bne.un => Label21
IL_01AA: ldstr "MessageAccidentalOverdose"
IL_01AF: ldarg.1
IL_01B0: ldstr "INGESTER"
IL_01B5: call static Verse.NamedArgument
Verse.NamedArgumentUtility::Named(System.Object arg, System.String label)
IL_01BA: ldarg.0
IL_01BB: ldfld Verse.ThingWithComps Verse.ThingComp::parent
IL_01C0: callvirt virtual System.String Verse.Thing::get_LabelNoCount()
IL_01C5: call static Verse.NamedArgument
Verse.NamedArgument::op_Implicit(System.String value)
IL_01CA: ldarg.0
IL_01CB: ldfld Verse.ThingWithComps Verse.ThingComp::parent
IL_01D0: ldstr "DRUG"
IL_01D5: call static Verse.NamedArgument
Verse.NamedArgumentUtility::Named(System.Object arg, System.String label)
IL_01DA: call static Verse.TaggedString
Verse.TranslatorFormattedStringExtensions::Translate(System.String key,
Verse.NamedArgument arg1, Verse.NamedArgument arg2, Verse.NamedArgument arg3)
IL_01DF: call static System.String
Verse.TaggedString::op_Implicit(Verse.TaggedString taggedString)
IL_01E4: ldarg.1
IL_01E5: call static Verse.LookTargets
Verse.LookTargets::op_Implicit(Verse.Thing t)
IL_01EA: ldsfld Verse.MessageTypeDef
RimWorld.MessageTypeDefOf::NegativeHealthEvent
IL_01EF: ldc.i4.1
IL_01F0: call static System.Void Verse.Messages::Message(System.String text,
Verse.LookTargets lookTargets, Verse.MessageTypeDef def, System.Boolean historical)
IL_01F5: br => Label22
IL_01FA: Label18
IL_01FA: Label19
IL_01FA: Label20
IL_01FA: ldarg.0
IL_01FB: call RimWorld.CompProperties_Drug RimWorld.CompDrug::get_Props()
IL_0200: ldflda Verse.FloatRange
RimWorld.CompProperties_Drug::overdoseSeverityOffset
IL_0205: call System.Single Verse.FloatRange::get_RandomInRange()
IL_020A: ldarg.1
IL_020B: callvirt System.Single Verse.Pawn::get_BodySize()
IL_0210: div
IL_0211: stloc.s 8 (System.Single)
IL_0213: ldloc.s 8 (System.Single)
IL_0215: ldc.r4 0
IL_021A: ble.un => Label23
IL_021F: ldarg.1
IL_0220: ldsfld Verse.HediffDef RimWorld.HediffDefOf::DrugOverdose
IL_0225: ldloc.s 8 (System.Single)
IL_0227: call static System.Void
Verse.HealthUtility::AdjustSeverity(Verse.Pawn pawn, Verse.HediffDef hdDef,
System.Single sevOffset)
IL_022C: Label0
IL_022C: Label1
IL_022C: Label7
IL_022C: Label21
IL_022C: Label22
IL_022C: Label23
IL_022C: ldarg.0
IL_022D: call RimWorld.CompProperties_Drug RimWorld.CompDrug::get_Props()
IL_0232: ldfld System.Boolean
RimWorld.CompProperties_Drug::isCombatEnhancingDrug
IL_0237: brfalse => Label24
IL_023C: ldarg.1
IL_023D: callvirt System.Boolean Verse.Pawn::get_Dead()
IL_0242: brtrue => Label25
IL_0247: ldarg.1
IL_0248: ldfld Verse.AI.Pawn_MindState Verse.Pawn::mindState
IL_024D: call static Verse.TickManager Verse.Find::get_TickManager()
IL_0252: callvirt System.Int32 Verse.TickManager::get_TicksGame()
IL_0257: stfld System.Int32
Verse.AI.Pawn_MindState::lastTakeCombatEnhancingDrugTick
IL_025C: Label24
IL_025C: Label25
IL_025C: ldarg.0
IL_025D: ldfld Verse.ThingWithComps Verse.ThingComp::parent
IL_0262: ldfld Verse.ThingDef Verse.Thing::def
IL_0267: ldfld RimWorld.IngestibleProperties Verse.ThingDef::ingestible
IL_026C: ldfld RimWorld.DrugCategory
RimWorld.IngestibleProperties::drugCategory
IL_0271: ldc.i4.1
IL_0272: beq => Label26
IL_0277: ldarg.1
IL_0278: callvirt System.Boolean Verse.Pawn::get_Dead()
IL_027D: brtrue => Label27
IL_0282: ldarg.1
IL_0283: ldfld Verse.AI.Pawn_MindState Verse.Pawn::mindState
IL_0288: call static Verse.TickManager Verse.Find::get_TickManager()
IL_028D: callvirt System.Int32 Verse.TickManager::get_TicksGame()
IL_0292: stfld System.Int32
Verse.AI.Pawn_MindState::lastTakeRecreationalDrugTick
IL_0297: Label26
IL_0297: Label27
IL_0297: ldarg.1
IL_0298: ldfld RimWorld.Pawn_DrugPolicyTracker Verse.Pawn::drugs
IL_029D: brfalse => Label28
IL_02A2: ldarg.1
IL_02A3: ldfld RimWorld.Pawn_DrugPolicyTracker Verse.Pawn::drugs
IL_02A8: ldarg.0
IL_02A9: ldfld Verse.ThingWithComps Verse.ThingComp::parent
IL_02AE: callvirt System.Void
RimWorld.Pawn_DrugPolicyTracker::Notify_DrugIngested(Verse.Thing drug)
IL_02B3: Label28
IL_02B3: call static RimWorld.HistoryEventsManager
Verse.Find::get_HistoryEventsManager()
IL_02B8: ldsfld RimWorld.HistoryEventDef
RimWorld.HistoryEventDefOf::IngestedDrug
IL_02BD: ldarg.1
IL_02BE: ldsfld System.String RimWorld.HistoryEventArgsNames::Doer
IL_02C3: call static Verse.NamedArgument
Verse.NamedArgumentUtility::Named(System.Object arg, System.String label)
IL_02C8: newobj System.Void
RimWorld.HistoryEvent::.ctor(RimWorld.HistoryEventDef def, Verse.NamedArgument
arg1)
IL_02CD: ldc.i4.1
IL_02CE: callvirt System.Void
RimWorld.HistoryEventsManager::RecordEvent(RimWorld.HistoryEvent historyEvent,
System.Boolean canApplySelfTookThoughts)
IL_02D3: ldarg.0
IL_02D4: ldfld Verse.ThingWithComps Verse.ThingComp::parent
IL_02D9: ldfld Verse.ThingDef Verse.Thing::def
IL_02DE: ldfld RimWorld.IngestibleProperties Verse.ThingDef::ingestible
IL_02E3: ldfld RimWorld.DrugCategory
RimWorld.IngestibleProperties::drugCategory
IL_02E8: ldc.i4.3
IL_02E9: bne.un => Label29
IL_02EE: call static RimWorld.HistoryEventsManager
Verse.Find::get_HistoryEventsManager()
IL_02F3: ldsfld RimWorld.HistoryEventDef
RimWorld.HistoryEventDefOf::IngestedHardDrug
IL_02F8: ldarg.1
IL_02F9: ldsfld System.String RimWorld.HistoryEventArgsNames::Doer
IL_02FE: call static Verse.NamedArgument
Verse.NamedArgumentUtility::Named(System.Object arg, System.String label)
IL_0303: newobj System.Void
RimWorld.HistoryEvent::.ctor(RimWorld.HistoryEventDef def, Verse.NamedArgument
arg1)
IL_0308: ldc.i4.1
IL_0309: callvirt System.Void
RimWorld.HistoryEventsManager::RecordEvent(RimWorld.HistoryEvent historyEvent,
System.Boolean canApplySelfTookThoughts)
IL_030E: Label29
IL_030E: ldarg.0
IL_030F: ldfld Verse.ThingWithComps Verse.ThingComp::parent
IL_0314: ldfld Verse.ThingDef Verse.Thing::def
IL_0319: callvirt System.Boolean Verse.ThingDef::get_IsNonMedicalDrug()
IL_031E: brfalse => Label30
IL_0323: call static RimWorld.HistoryEventsManager
Verse.Find::get_HistoryEventsManager()
IL_0328: ldsfld RimWorld.HistoryEventDef
RimWorld.HistoryEventDefOf::IngestedRecreationalDrug
IL_032D: ldarg.1
IL_032E: ldsfld System.String RimWorld.HistoryEventArgsNames::Doer
IL_0333: call static Verse.NamedArgument
Verse.NamedArgumentUtility::Named(System.Object arg, System.String label)
IL_0338: newobj System.Void
RimWorld.HistoryEvent::.ctor(RimWorld.HistoryEventDef def, Verse.NamedArgument
arg1)
IL_033D: ldc.i4.1
IL_033E: callvirt System.Void
RimWorld.HistoryEventsManager::RecordEvent(RimWorld.HistoryEvent historyEvent,
System.Boolean canApplySelfTookThoughts)
IL_0343: // end original
IL_0343: Label30
IL_0343: ldarg 1
IL_0347: ldarg.0
IL_0348: call static System.Void
AlienRace.HarmonyPatches::PostIngestedPostfix(Verse.Pawn ingester,
RimWorld.CompDrug __instance)
IL_034D: ret
DONE

### Patch: static System.Boolean


RimWorld.AddictionUtility::CanBingeOnNow(Verse.Pawn pawn, RimWorld.ChemicalDef
chemical, RimWorld.DrugCategory drugCategory)
### Replacement: static System.Boolean
RimWorld.AddictionUtility::RimWorld.AddictionUtility.CanBingeOnNow_Patch1(Verse.Paw
n pawn, RimWorld.ChemicalDef chemical, RimWorld.DrugCategory drugCategory)
IL_0000: Local var 0: System.Collections.Generic.List`1<Verse.Thing>
IL_0000: Local var 1: System.Int32
IL_0000: Local var 2: Verse.IntVec3
IL_0000: Local var 3: System.Boolean
IL_0000: ldc.i4 0
IL_0005: stloc 3 (System.Boolean)
IL_0009: // start original
IL_0009: ldarg.1
IL_000A: ldfld System.Boolean RimWorld.ChemicalDef::canBinge
IL_000F: brtrue => Label0
IL_0014: ldc.i4.0
IL_0015: br => Label11
IL_001A: Label0
IL_001A: ldarg.0
IL_001B: callvirt System.Boolean Verse.Thing::get_Spawned()
IL_0020: brtrue => Label1
IL_0025: ldc.i4.0
IL_0026: br => Label12
IL_002B: Label1
IL_002B: ldarg.0
IL_002C: callvirt virtual Verse.Map Verse.Thing::get_Map()
IL_0031: ldfld Verse.ListerThings Verse.Map::listerThings
IL_0036: ldc.i4.s 22
IL_0038: callvirt System.Collections.Generic.List`1<Verse.Thing>
Verse.ListerThings::ThingsInGroup(Verse.ThingRequestGroup group)
IL_003D: stloc.0
IL_003E: ldc.i4.0
IL_003F: stloc.1
IL_0040: br => Label2
IL_0045: Label10
IL_0045: ldloc.0
IL_0046: ldloc.1
IL_0047: callvirt virtual Verse.Thing
System.Collections.Generic.List`1<Verse.Thing>::get_Item(System.Int32 index)
IL_004C: callvirt virtual Verse.IntVec3 Verse.Thing::get_Position()
IL_0051: ldloc.0
IL_0052: ldloc.1
IL_0053: callvirt virtual Verse.Thing
System.Collections.Generic.List`1<Verse.Thing>::get_Item(System.Int32 index)
IL_0058: callvirt virtual Verse.Map Verse.Thing::get_Map()
IL_005D: call static System.Boolean Verse.GridsUtility::Fogged(Verse.IntVec3
c, Verse.Map map)
IL_0062: brtrue => Label3
IL_0067: ldarg.2
IL_0068: ldc.i4.4
IL_0069: beq => Label4
IL_006E: ldloc.0
IL_006F: ldloc.1
IL_0070: callvirt virtual Verse.Thing
System.Collections.Generic.List`1<Verse.Thing>::get_Item(System.Int32 index)
IL_0075: ldfld Verse.ThingDef Verse.Thing::def
IL_007A: ldfld RimWorld.IngestibleProperties Verse.ThingDef::ingestible
IL_007F: ldfld RimWorld.DrugCategory
RimWorld.IngestibleProperties::drugCategory
IL_0084: ldarg.2
IL_0085: bne.un => Label5
IL_008A: Label4
IL_008A: ldloc.0
IL_008B: ldloc.1
IL_008C: callvirt virtual Verse.Thing
System.Collections.Generic.List`1<Verse.Thing>::get_Item(System.Int32 index)
IL_0091: call static RimWorld.CompDrug
Verse.ThingCompUtility::TryGetComp(Verse.Thing thing)
IL_0096: callvirt RimWorld.CompProperties_Drug RimWorld.CompDrug::get_Props()
IL_009B: ldfld RimWorld.ChemicalDef RimWorld.CompProperties_Drug::chemical
IL_00A0: ldarg.1
IL_00A1: bne.un => Label6
IL_00A6: ldloc.0
IL_00A7: ldloc.1
IL_00A8: callvirt virtual Verse.Thing
System.Collections.Generic.List`1<Verse.Thing>::get_Item(System.Int32 index)
IL_00AD: callvirt virtual Verse.IntVec3 Verse.Thing::get_Position()
IL_00B2: ldloc.0
IL_00B3: ldloc.1
IL_00B4: callvirt virtual Verse.Thing
System.Collections.Generic.List`1<Verse.Thing>::get_Item(System.Int32 index)
IL_00B9: callvirt virtual Verse.Map Verse.Thing::get_Map()
IL_00BE: call static System.Boolean Verse.GridsUtility::Roofed(Verse.IntVec3
c, Verse.Map map)
IL_00C3: brtrue => Label7
IL_00C8: ldloc.0
IL_00C9: ldloc.1
IL_00CA: callvirt virtual Verse.Thing
System.Collections.Generic.List`1<Verse.Thing>::get_Item(System.Int32 index)
IL_00CF: callvirt virtual Verse.IntVec3 Verse.Thing::get_Position()
IL_00D4: stloc.2
IL_00D5: ldloca.s 2 (Verse.IntVec3)
IL_00D7: ldarg.0
IL_00D8: callvirt virtual Verse.IntVec3 Verse.Thing::get_Position()
IL_00DD: ldc.r4 45
IL_00E2: call System.Boolean Verse.IntVec3::InHorDistOf(Verse.IntVec3
otherLoc, System.Single maxDist)
IL_00E7: brfalse => Label8
IL_00EC: Label7
IL_00EC: ldarg.0
IL_00ED: ldloc.0
IL_00EE: ldloc.1
IL_00EF: callvirt virtual Verse.Thing
System.Collections.Generic.List`1<Verse.Thing>::get_Item(System.Int32 index)
IL_00F4: call static Verse.LocalTargetInfo
Verse.LocalTargetInfo::op_Implicit(Verse.Thing t)
IL_00F9: ldc.i4.3
IL_00FA: ldc.i4.3
IL_00FB: ldc.i4.0
IL_00FC: ldc.i4.0
IL_00FD: ldc.i4.0
IL_00FE: call static System.Boolean
Verse.ReachabilityUtility::CanReach(Verse.Pawn pawn, Verse.LocalTargetInfo dest,
Verse.AI.PathEndMode peMode, Verse.Danger maxDanger, System.Boolean canBashDoors,
System.Boolean canBashFences, Verse.TraverseMode mode)
IL_0103: brfalse => Label9
IL_0108: ldc.i4.1
IL_0109: br => Label13
IL_010E: Label3
IL_010E: Label5
IL_010E: Label6
IL_010E: Label8
IL_010E: Label9
IL_010E: ldloc.1
IL_010F: ldc.i4.1
IL_0110: add
IL_0111: stloc.1
IL_0112: Label2
IL_0112: ldloc.1
IL_0113: ldloc.0
IL_0114: callvirt virtual System.Int32
System.Collections.Generic.List`1<Verse.Thing>::get_Count()
IL_0119: blt => Label10
IL_011E: ldc.i4.0
IL_011F: // end original
IL_011F: Label11
IL_011F: Label12
IL_011F: Label13
IL_011F: stloc 3 (System.Boolean)
IL_0123: ldarg 0
IL_0127: ldarg 1
IL_012B: ldloca 3 (System.Boolean)
IL_012F: call static System.Void
AlienRace.HarmonyPatches::CanBingeNowPostfix(Verse.Pawn pawn, RimWorld.ChemicalDef
chemical, System.Boolean& __result)
IL_0134: ldloc 3 (System.Boolean)
IL_0138: ret
DONE

### Patch: static System.Void Verse.PawnGenerator::GenerateBodyType(Verse.Pawn


pawn, Verse.PawnGenerationRequest request)
### Replacement: static System.Void
Verse.PawnGenerator::Verse.PawnGenerator.GenerateBodyType_Patch1(Verse.Pawn pawn,
Verse.PawnGenerationRequest request)
IL_0000: // start original
IL_0000: ldarga.s 1
IL_0002: call RimWorld.BodyTypeDef
Verse.PawnGenerationRequest::get_ForceBodyType()
IL_0007: brfalse => Label0
IL_000C: ldarg.0
IL_000D: ldfld RimWorld.Pawn_StoryTracker Verse.Pawn::story
IL_0012: ldarga.s 1
IL_0014: call RimWorld.BodyTypeDef
Verse.PawnGenerationRequest::get_ForceBodyType()
IL_0019: stfld RimWorld.BodyTypeDef RimWorld.Pawn_StoryTracker::bodyType
IL_001E: br => Label1
IL_0023: Label0
IL_0023: ldarg.0
IL_0024: ldfld RimWorld.Pawn_StoryTracker Verse.Pawn::story
IL_0029: ldarg.0
IL_002A: call static RimWorld.BodyTypeDef
Verse.PawnGenerator::GetBodyTypeFor(Verse.Pawn pawn)
IL_002F: stfld RimWorld.BodyTypeDef RimWorld.Pawn_StoryTracker::bodyType
IL_0034: // end original
IL_0034: Label1
IL_0034: ldarg 0
IL_0038: call static System.Void
AlienRace.HarmonyPatches::GenerateBodyTypePostfix(Verse.Pawn pawn)
IL_003D: ret
DONE

### Patch: static RimWorld.BodyTypeDef


Verse.PawnGenerator::GetBodyTypeFor(Verse.Pawn pawn)
### Replacement: static RimWorld.BodyTypeDef
Verse.PawnGenerator::Verse.PawnGenerator.GetBodyTypeFor_Patch1(Verse.Pawn pawn)
IL_0000: Local var 0: System.Collections.Generic.List`1<Verse.Gene>
IL_0000: Local var 1: RimWorld.BodyTypeDef
IL_0000: Local var 2: System.Int32
IL_0000: Local var 3: RimWorld.BodyTypeDef
IL_0000: ldnull
IL_0001: stloc 3 (RimWorld.BodyTypeDef)
IL_0005: // start original
IL_0005: ldsfld System.Collections.Generic.HashSet`1<RimWorld.BodyTypeDef>
Verse.PawnGenerator::tmpBodyTypes
IL_000A: callvirt virtual System.Void
System.Collections.Generic.HashSet`1<RimWorld.BodyTypeDef>::Clear()
IL_000F: call static System.Boolean Verse.ModsConfig::get_BiotechActive()
IL_0014: brfalse => Label0
IL_0019: ldarg.0
IL_001A: callvirt Verse.DevelopmentalStage Verse.Pawn::get_DevelopmentalStage()
IL_001F: call static System.Boolean
Verse.DevelopmentalStageExtensions::Juvenile(Verse.DevelopmentalStage
developmentalStage)
IL_0024: brfalse => Label1
IL_0029: ldarg.0
IL_002A: callvirt Verse.DevelopmentalStage Verse.Pawn::get_DevelopmentalStage()
IL_002F: ldc.i4.2
IL_0030: bne.un => Label2
IL_0035: ldsfld RimWorld.BodyTypeDef RimWorld.BodyTypeDefOf::Baby
IL_003A: br => Label12
IL_003F: Label2
IL_003F: ldsfld RimWorld.BodyTypeDef RimWorld.BodyTypeDefOf::Child
IL_0044: br => Label13
IL_0049: Label0
IL_0049: Label1
IL_0049: call static System.Boolean Verse.ModsConfig::get_BiotechActive()
IL_004E: brfalse => Label3
IL_0053: ldarg.0
IL_0054: ldfld RimWorld.Pawn_GeneTracker Verse.Pawn::genes
IL_0059: brfalse => Label4
IL_005E: ldarg.0
IL_005F: ldfld RimWorld.Pawn_GeneTracker Verse.Pawn::genes
IL_0064: callvirt System.Collections.Generic.List`1<Verse.Gene>
RimWorld.Pawn_GeneTracker::get_GenesListForReading()
IL_0069: stloc.0
IL_006A: ldc.i4.0
IL_006B: stloc.2
IL_006C: br => Label5
IL_0071: Label7
IL_0071: ldloc.0
IL_0072: ldloc.2
IL_0073: callvirt virtual Verse.Gene
System.Collections.Generic.List`1<Verse.Gene>::get_Item(System.Int32 index)
IL_0078: ldfld Verse.GeneDef Verse.Gene::def
IL_007D: ldflda System.Nullable`1<Verse.GeneticBodyType>
Verse.GeneDef::bodyType
IL_0082: call System.Boolean
System.Nullable`1<Verse.GeneticBodyType>::get_HasValue()
IL_0087: brfalse => Label6
IL_008C: ldsfld System.Collections.Generic.HashSet`1<RimWorld.BodyTypeDef>
Verse.PawnGenerator::tmpBodyTypes
IL_0091: ldloc.0
IL_0092: ldloc.2
IL_0093: callvirt virtual Verse.Gene
System.Collections.Generic.List`1<Verse.Gene>::get_Item(System.Int32 index)
IL_0098: ldfld Verse.GeneDef Verse.Gene::def
IL_009D: ldflda System.Nullable`1<Verse.GeneticBodyType>
Verse.GeneDef::bodyType
IL_00A2: call Verse.GeneticBodyType
System.Nullable`1<Verse.GeneticBodyType>::get_Value()
IL_00A7: ldarg.0
IL_00A8: call static RimWorld.BodyTypeDef
RimWorld.GeneUtility::ToBodyType(Verse.GeneticBodyType bodyType, Verse.Pawn pawn)
IL_00AD: callvirt virtual System.Boolean
System.Collections.Generic.HashSet`1<RimWorld.BodyTypeDef>::Add(RimWorld.BodyTypeDe
f item)
IL_00B2: pop
IL_00B3: Label6
IL_00B3: ldloc.2
IL_00B4: ldc.i4.1
IL_00B5: add
IL_00B6: stloc.2
IL_00B7: Label5
IL_00B7: ldloc.2
IL_00B8: ldloc.0
IL_00B9: callvirt virtual System.Int32
System.Collections.Generic.List`1<Verse.Gene>::get_Count()
IL_00BE: blt => Label7
IL_00C3: ldsfld System.Collections.Generic.HashSet`1<RimWorld.BodyTypeDef>
Verse.PawnGenerator::tmpBodyTypes
IL_00C8: ldloca.s 1 (RimWorld.BodyTypeDef)
IL_00CA: call static System.Boolean
Verse.GenCollection::TryRandomElement(System.Collections.Generic.IEnumerable`1<RimW
orld.BodyTypeDef> source, RimWorld.BodyTypeDef& result)
IL_00CF: brfalse => Label8
IL_00D4: ldloc.1
IL_00D5: br => Label14
IL_00DA: Label3
IL_00DA: Label4
IL_00DA: Label8
IL_00DA: ldarg.0
IL_00DB: ldfld RimWorld.Pawn_StoryTracker Verse.Pawn::story
IL_00E0: callvirt RimWorld.BackstoryDef
RimWorld.Pawn_StoryTracker::get_Adulthood()
IL_00E5: brfalse => Label9
IL_00EA: ldarg.0
IL_00EB: ldfld RimWorld.Pawn_StoryTracker Verse.Pawn::story
IL_00F0: callvirt RimWorld.BackstoryDef
RimWorld.Pawn_StoryTracker::get_Adulthood()
IL_00F5: ldarg.0
IL_00F6: ldfld Verse.Gender Verse.Pawn::gender
IL_00FB: callvirt RimWorld.BodyTypeDef
RimWorld.BackstoryDef::BodyTypeFor(Verse.Gender g)
IL_0100: br => Label15
IL_0105: Label9
IL_0105: call static System.Single Verse.Rand::get_Value()
IL_010A: ldc.r4 0.5
IL_010F: bge.un => Label10
IL_0114: ldsfld RimWorld.BodyTypeDef RimWorld.BodyTypeDefOf::Thin
IL_0119: br => Label16
IL_011E: Label10
IL_011E: ldarg.0
IL_011F: ldfld Verse.Gender Verse.Pawn::gender
IL_0124: ldc.i4.2
IL_0125: beq => Label11
IL_012A: ldsfld RimWorld.BodyTypeDef RimWorld.BodyTypeDefOf::Male
IL_012F: br => Label17
IL_0134: Label11
IL_0134: ldsfld RimWorld.BodyTypeDef RimWorld.BodyTypeDefOf::Female
IL_0139: // end original
IL_0139: Label12
IL_0139: Label13
IL_0139: Label14
IL_0139: Label15
IL_0139: Label16
IL_0139: Label17
IL_0139: stloc 3 (RimWorld.BodyTypeDef)
IL_013D: ldarg 0
IL_0141: ldloca 3 (RimWorld.BodyTypeDef)
IL_0145: call static System.Void
AlienRace.HarmonyPatches::GetBodyTypeForPostfix(Verse.Pawn pawn,
RimWorld.BodyTypeDef& __result)
IL_014A: ldloc 3 (RimWorld.BodyTypeDef)
IL_014E: ret
DONE

### Patch: UnityEngine.Color RimWorld.Pawn_StoryTracker::get_SkinColor()


### Replacement: static UnityEngine.Color
RimWorld.Pawn_StoryTracker::RimWorld.Pawn_StoryTracker.get_SkinColor_Patch1(RimWorl
d.Pawn_StoryTracker this)
IL_0000: Local var 0: System.Nullable`1<UnityEngine.Color>
IL_0000: Local var 1: UnityEngine.Color
IL_0000: ldloca 1 (UnityEngine.Color)
IL_0004: initobj UnityEngine.Color
IL_000A: // start original
IL_000A: ldarg.0
IL_000B: ldfld System.Nullable`1<UnityEngine.Color>
RimWorld.Pawn_StoryTracker::skinColorOverride
IL_0010: stloc.0
IL_0011: ldloca.s 0 (System.Nullable`1[UnityEngine.Color])
IL_0013: call System.Boolean
System.Nullable`1<UnityEngine.Color>::get_HasValue()
IL_0018: brtrue => Label0
IL_001D: ldarg.0
IL_001E: call UnityEngine.Color
RimWorld.Pawn_StoryTracker::get_SkinColorBase()
IL_0023: br => Label1
IL_0028: Label0
IL_0028: ldloca.s 0 (System.Nullable`1[UnityEngine.Color])
IL_002A: call UnityEngine.Color
System.Nullable`1<UnityEngine.Color>::GetValueOrDefault()
IL_002F: // end original
IL_002F: Label1
IL_002F: stloc 1 (UnityEngine.Color)
IL_0033: ldarg.0
IL_0034: ldfld Verse.Pawn RimWorld.Pawn_StoryTracker::pawn
IL_0039: ldloca 1 (UnityEngine.Color)
IL_003D: call static System.Void
AlienRace.HarmonyPatches::SkinColorPostfix(Verse.Pawn ___pawn, UnityEngine.Color&
__result)
IL_0042: ldloc 1 (UnityEngine.Color)
IL_0046: ret
DONE

### Patch: System.Void Verse.Pawn_AgeTracker::BirthdayBiological(System.Int32


birthdayAge)
### Replacement: static System.Void
Verse.Pawn_AgeTracker::Verse.Pawn_AgeTracker.BirthdayBiological_Patch1(Verse.Pawn_A
geTracker this, System.Int32 birthdayAge)
IL_0000: Local var 0: System.Boolean
IL_0000: Local var 1: System.Boolean
IL_0000: Local var 2: System.Single
IL_0000: Local var 3: RimWorld.Building_Bed
IL_0000: Local var 4:
System.Collections.Generic.IEnumerator`1<Verse.HediffGiver_Birthday>
IL_0000: Local var 5: Verse.HediffGiver_Birthday
IL_0000: Local var 6:
System.Collections.Generic.List`1<Verse.LifeStageWorkSettings>
IL_0000: Local var 7: System.Int32
IL_0000: Local var 8: System.Int32
IL_0000: Local var 9: System.Int32
IL_0000: Local var 10: System.Boolean
IL_0000: Local var 11: System.Int32
IL_0000: Local var 12: RimWorld.SkillDef
IL_0000: Local var 13: RimWorld.SkillRecord
IL_0000: Local var 14: RimWorld.Trait
IL_0000: Local var 15: System.Nullable`1<Verse.PawnGenerationRequest>
IL_0000: Local var 16: Verse.TaggedString
IL_0000: Local var 17: Verse.LetterDef
IL_0000: Local var 18: Verse.Name
IL_0000: Local var 19: Verse.NameTriple
IL_0000: Local var 20: RimWorld.ChoiceLetter_GrowthMoment
IL_0000: Local var 21: System.Collections.Generic.List`1<System.String>
IL_0000: Local var 22: System.String
IL_0000: Local var 23: System.Boolean
IL_0000: ldc.i4 0
IL_0005: stloc 23 (System.Boolean)
IL_0009: ldc.i4.1
IL_000A: stloc 23 (System.Boolean)
IL_000E: ldloc 23 (System.Boolean)
IL_0012: brfalse => Label1
IL_0017: ldarg.0
IL_0018: ldfld Verse.Pawn Verse.Pawn_AgeTracker::pawn
IL_001D: call static System.Void
AlienRace.HarmonyPatches::BirthdayBiologicalPrefix(Verse.Pawn ___pawn)
IL_0022: Label1
IL_0022: nop
IL_0023: ldloc 23 (System.Boolean)
IL_0027: brfalse => Label0
IL_002C: // start original
IL_002C: ldsfld System.Collections.Generic.List`1<Verse.HediffDef>
Verse.Pawn_AgeTracker::tmpHediffsGained
IL_0031: callvirt virtual System.Void
System.Collections.Generic.List`1<Verse.HediffDef>::Clear()
IL_0036: ldsfld System.Collections.Generic.List`1<Verse.WorkTypeDef>
Verse.Pawn_AgeTracker::tmpEnabledWorkTypes
IL_003B: callvirt virtual System.Void
System.Collections.Generic.List`1<Verse.WorkTypeDef>::Clear()
IL_0040: ldarg.1
IL_0041: conv.r4
IL_0042: ldarg.0
IL_0043: call System.Single Verse.Pawn_AgeTracker::get_AdultMinAge()
IL_0048: ceq
IL_004A: stloc.0
IL_004B: ldarg.0
IL_004C: ldfld Verse.Pawn Verse.Pawn_AgeTracker::pawn
IL_0051: callvirt Verse.DevelopmentalStage Verse.Pawn::get_DevelopmentalStage()
IL_0056: call static System.Boolean
Verse.DevelopmentalStageExtensions::Child(Verse.DevelopmentalStage
developmentalStage)
IL_005B: brfalse => Label2
IL_0060: ldarg.1
IL_0061: conv.r4
IL_0062: ldarg.0
IL_0063: call Verse.LifeStageAge
Verse.Pawn_AgeTracker::get_CurLifeStageRace()
IL_0068: ldfld System.Single Verse.LifeStageAge::minAge
IL_006D: ceq
IL_006F: br => Label3
IL_0074: Label2
IL_0074: ldc.i4.0
IL_0075: Label3
IL_0075: stloc.1
IL_0076: ldloc.0
IL_0077: ldloc.1
IL_0078: or
IL_0079: brfalse => Label4
IL_007E: ldarg.0
IL_007F: call System.Void Verse.Pawn_AgeTracker::RecalculateLifeStageIndex()
IL_0084: Label4
IL_0084: ldarg.1
IL_0085: conv.r4
IL_0086: ldarg.0
IL_0087: ldfld Verse.Pawn Verse.Pawn_AgeTracker::pawn
IL_008C: ldsfld RimWorld.StatDef RimWorld.StatDefOf::LifespanFactor
IL_0091: ldc.i4.1
IL_0092: ldc.i4.m1
IL_0093: call static System.Single
RimWorld.StatExtension::GetStatValue(Verse.Thing thing, RimWorld.StatDef stat,
System.Boolean applyPostProcess, System.Int32 cacheStaleAfterTicks)
IL_0098: div
IL_0099: stloc.2
IL_009A: ldarg.0
IL_009B: ldfld Verse.Pawn Verse.Pawn_AgeTracker::pawn
IL_00A0: ldloc.2
IL_00A1: call static
System.Collections.Generic.IEnumerable`1<Verse.HediffGiver_Birthday>
RimWorld.AgeInjuryUtility::RandomHediffsToGainOnBirthday(Verse.Pawn pawn,
System.Single age)
IL_00A6: callvirt abstract virtual
System.Collections.Generic.IEnumerator`1<Verse.HediffGiver_Birthday>
System.Collections.Generic.IEnumerable`1<Verse.HediffGiver_Birthday>::GetEnumerator
()
IL_00AB: stloc.s 4
(System.Collections.Generic.IEnumerator`1[Verse.HediffGiver_Birthday])
.try
{
IL_00AD: br => Label5
IL_00B2: Label7
IL_00B2: ldloc.s 4
(System.Collections.Generic.IEnumerator`1[Verse.HediffGiver_Birthday])
IL_00B4: callvirt abstract virtual Verse.HediffGiver_Birthday
System.Collections.Generic.IEnumerator`1<Verse.HediffGiver_Birthday>::get_Current()
IL_00B9: stloc.s 5 (Verse.HediffGiver_Birthday)
IL_00BB: ldloc.s 5 (Verse.HediffGiver_Birthday)
IL_00BD: ldarg.0
IL_00BE: ldfld Verse.Pawn Verse.Pawn_AgeTracker::pawn
IL_00C3: ldnull
IL_00C4: callvirt System.Boolean Verse.HediffGiver::TryApply(Verse.Pawn
pawn, System.Collections.Generic.List`1<Verse.Hediff> outAddedHediffs)
IL_00C9: brfalse => Label6
IL_00CE: ldsfld System.Collections.Generic.List`1<Verse.HediffDef>
Verse.Pawn_AgeTracker::tmpHediffsGained
IL_00D3: ldloc.s 5 (Verse.HediffGiver_Birthday)
IL_00D5: ldfld Verse.HediffDef Verse.HediffGiver::hediff
IL_00DA: callvirt virtual System.Void
System.Collections.Generic.List`1<Verse.HediffDef>::Add(Verse.HediffDef item)
IL_00DF: Label5
IL_00DF: Label6
IL_00DF: ldloc.s 4
(System.Collections.Generic.IEnumerator`1[Verse.HediffGiver_Birthday])
IL_00E1: callvirt abstract virtual System.Boolean
System.Collections.IEnumerator::MoveNext()
IL_00E6: brtrue => Label7
IL_00EB: leave => Label8
IL_00F0: leave => (autogenerated)
} // end try
.finally
{
IL_00F5: ldloc.s 4
(System.Collections.Generic.IEnumerator`1[Verse.HediffGiver_Birthday])
IL_00F7: brfalse => Label9
IL_00FC: ldloc.s 4
(System.Collections.Generic.IEnumerator`1[Verse.HediffGiver_Birthday])
IL_00FE: callvirt abstract virtual System.Void
System.IDisposable::Dispose()
IL_0103: Label9
IL_0103: endfinally
IL_0104: leave => (autogenerated)
} // end handler
IL_0105: Label8
IL_0105: ldarg.0
IL_0106: ldfld Verse.Pawn Verse.Pawn_AgeTracker::pawn
IL_010B: ldfld RimWorld.Pawn_Ownership Verse.Pawn::ownership
IL_0110: callvirt RimWorld.Building_Bed RimWorld.Pawn_Ownership::get_OwnedBed()
IL_0115: dup
IL_0116: stloc.3
IL_0117: brfalse => Label10
IL_011C: ldarg.0
IL_011D: ldfld Verse.Pawn Verse.Pawn_AgeTracker::pawn
IL_0122: ldfld Verse.Pawn_AgeTracker Verse.Pawn::ageTracker
IL_0127: callvirt RimWorld.LifeStageDef Verse.Pawn_AgeTracker::get_CurLifeStage()
IL_012C: ldfld System.Single RimWorld.LifeStageDef::bodySizeFactor
IL_0131: ldloc.3
IL_0132: ldfld Verse.ThingDef Verse.Thing::def
IL_0137: ldfld RimWorld.BuildingProperties Verse.ThingDef::building
IL_013C: ldfld System.Single RimWorld.BuildingProperties::bed_maxBodySize
IL_0141: ble.un => Label11
IL_0146: ldarg.0
IL_0147: ldfld Verse.Pawn Verse.Pawn_AgeTracker::pawn
IL_014C: ldfld RimWorld.Pawn_Ownership Verse.Pawn::ownership
IL_0151: callvirt System.Boolean RimWorld.Pawn_Ownership::UnclaimBed()
IL_0156: pop
IL_0157: Label10
IL_0157: Label11
IL_0157: ldarg.0
IL_0158: ldfld Verse.Pawn Verse.Pawn_AgeTracker::pawn
IL_015D: callvirt Verse.RaceProperties Verse.Pawn::get_RaceProps()
IL_0162: callvirt System.Boolean Verse.RaceProperties::get_Humanlike()
IL_0167: brfalse => Label12
IL_016C: ldarg.0
IL_016D: ldfld Verse.Pawn Verse.Pawn_AgeTracker::pawn
IL_0172: callvirt Verse.RaceProperties Verse.Pawn::get_RaceProps()
IL_0177: ldfld System.Collections.Generic.List`1<Verse.LifeStageWorkSettings>
Verse.RaceProperties::lifeStageWorkSettings
IL_017C: stloc.s 6
(System.Collections.Generic.List`1[Verse.LifeStageWorkSettings])
IL_017E: ldc.i4.0
IL_017F: stloc.s 11 (System.Int32)
IL_0181: br => Label13
IL_0186: Label15
IL_0186: ldloc.s 6
(System.Collections.Generic.List`1[Verse.LifeStageWorkSettings])
IL_0188: ldloc.s 11 (System.Int32)
IL_018A: callvirt virtual Verse.LifeStageWorkSettings
System.Collections.Generic.List`1<Verse.LifeStageWorkSettings>::get_Item(System.Int
32 index)
IL_018F: ldfld System.Int32 Verse.LifeStageWorkSettings::minAge
IL_0194: ldarg.1
IL_0195: bne.un => Label14
IL_019A: ldsfld System.Collections.Generic.List`1<Verse.WorkTypeDef>
Verse.Pawn_AgeTracker::tmpEnabledWorkTypes
IL_019F: ldloc.s 6
(System.Collections.Generic.List`1[Verse.LifeStageWorkSettings])
IL_01A1: ldloc.s 11 (System.Int32)
IL_01A3: callvirt virtual Verse.LifeStageWorkSettings
System.Collections.Generic.List`1<Verse.LifeStageWorkSettings>::get_Item(System.Int
32 index)
IL_01A8: ldfld Verse.WorkTypeDef Verse.LifeStageWorkSettings::workType
IL_01AD: callvirt virtual System.Void
System.Collections.Generic.List`1<Verse.WorkTypeDef>::Add(Verse.WorkTypeDef item)
IL_01B2: Label14
IL_01B2: ldloc.s 11 (System.Int32)
IL_01B4: ldc.i4.1
IL_01B5: add
IL_01B6: stloc.s 11 (System.Int32)
IL_01B8: Label13
IL_01B8: ldloc.s 11 (System.Int32)
IL_01BA: ldloc.s 6
(System.Collections.Generic.List`1[Verse.LifeStageWorkSettings])
IL_01BC: callvirt virtual System.Int32
System.Collections.Generic.List`1<Verse.LifeStageWorkSettings>::get_Count()
IL_01C1: blt => Label15
IL_01C6: ldsfld System.Collections.Generic.List`1<Verse.WorkTypeDef>
Verse.Pawn_AgeTracker::tmpEnabledWorkTypes
IL_01CB: callvirt virtual System.Int32
System.Collections.Generic.List`1<Verse.WorkTypeDef>::get_Count()
IL_01D0: ldc.i4.0
IL_01D1: ble => Label16
IL_01D6: ldarg.0
IL_01D7: ldfld Verse.Pawn Verse.Pawn_AgeTracker::pawn
IL_01DC: callvirt System.Void Verse.Pawn::Notify_DisabledWorkTypesChanged()
IL_01E1: Label16
IL_01E1: ldarg.0
IL_01E2: ldarg.1
IL_01E3: ldloca.s 7 (System.Int32)
IL_01E5: ldloca.s 8 (System.Int32)
IL_01E7: ldloca.s 9 (System.Int32)
IL_01E9: call System.Void
Verse.Pawn_AgeTracker::TryChildGrowthMoment(System.Int32 birthdayAge, System.Int32&
newPassionOptions, System.Int32& newTraitOptions, System.Int32& passionGainsCount)
IL_01EE: ldloc.1
IL_01EF: brtrue => Label17
IL_01F4: ldsfld System.Collections.Generic.List`1<Verse.WorkTypeDef>
Verse.Pawn_AgeTracker::tmpEnabledWorkTypes
IL_01F9: call static System.Boolean
Verse.GenList::NullOrEmpty(System.Collections.Generic.IList`1<Verse.WorkTypeDef>
list)
IL_01FE: brfalse => Label18
IL_0203: ldloc.s 9 (System.Int32)
IL_0205: ldc.i4.0
IL_0206: bgt => Label19
IL_020B: ldloc.s 8 (System.Int32)
IL_020D: ldc.i4.0
IL_020E: cgt
IL_0210: br => Label20
IL_0215: Label18
IL_0215: Label19
IL_0215: ldc.i4.1
IL_0216: br => Label21
IL_021B: Label17
IL_021B: ldc.i4.0
IL_021C: Label20
IL_021C: Label21
IL_021C: stloc.s 10 (System.Boolean)
IL_021E: ldarg.0
IL_021F: ldfld Verse.Pawn Verse.Pawn_AgeTracker::pawn
IL_0224: call static System.Boolean
RimWorld.PawnUtility::ShouldSendNotificationAbout(Verse.Pawn p)
IL_0229: brfalse => Label22
IL_022E: ldarg.0
IL_022F: ldfld Verse.Pawn Verse.Pawn_AgeTracker::pawn
IL_0234: callvirt virtual RimWorld.Faction Verse.Thing::get_Faction()
IL_0239: call static RimWorld.Faction RimWorld.Faction::get_OfPlayer()
IL_023E: bne.un => Label23
IL_0243: ldarg.0
IL_0244: ldfld Verse.Pawn Verse.Pawn_AgeTracker::pawn
IL_0249: call static System.Boolean
RimWorld.QuestUtility::IsQuestLodger(Verse.Pawn p)
IL_024E: ldc.i4.0
IL_024F: ceq
IL_0251: br => Label24
IL_0256: Label22
IL_0256: Label23
IL_0256: ldc.i4.0
IL_0257: Label24
IL_0257: brtrue => Label25
IL_025C: ldloc.s 9 (System.Int32)
IL_025E: ldc.i4.0
IL_025F: ble => Label26
IL_0264: ldarg.0
IL_0265: ldfld Verse.Pawn Verse.Pawn_AgeTracker::pawn
IL_026A: ldloc.s 9 (System.Int32)
IL_026C: call static System.Collections.Generic.List`1<RimWorld.SkillDef>
RimWorld.ChoiceLetter_GrowthMoment::PassionOptions(Verse.Pawn pawn, System.Int32
count)
IL_0271: ldnull
IL_0272: call static RimWorld.SkillDef
Verse.GenCollection::FirstOrFallback(System.Collections.Generic.IEnumerable`1<RimWo
rld.SkillDef> source, RimWorld.SkillDef fallback)
IL_0277: stloc.s 12 (RimWorld.SkillDef)
IL_0279: ldloc.s 12 (RimWorld.SkillDef)
IL_027B: brfalse => Label27
IL_0280: ldarg.0
IL_0281: ldfld Verse.Pawn Verse.Pawn_AgeTracker::pawn
IL_0286: ldfld RimWorld.Pawn_SkillTracker Verse.Pawn::skills
IL_028B: ldloc.s 12 (RimWorld.SkillDef)
IL_028D: callvirt RimWorld.SkillRecord
RimWorld.Pawn_SkillTracker::GetSkill(RimWorld.SkillDef skillDef)
IL_0292: stloc.s 13 (RimWorld.SkillRecord)
IL_0294: ldloc.s 13 (RimWorld.SkillRecord)
IL_0296: brfalse => Label28
IL_029B: ldloc.s 13 (RimWorld.SkillRecord)
IL_029D: ldloc.s 13 (RimWorld.SkillRecord)
IL_029F: ldfld RimWorld.Passion RimWorld.SkillRecord::passion
IL_02A4: call static RimWorld.Passion
RimWorld.PassionExtension::IncrementPassion(RimWorld.Passion passion)
IL_02A9: stfld RimWorld.Passion RimWorld.SkillRecord::passion
IL_02AE: Label26
IL_02AE: Label27
IL_02AE: Label28
IL_02AE: ldloc.s 8 (System.Int32)
IL_02B0: ldc.i4.0
IL_02B1: ble => Label29
IL_02B6: ldarg.0
IL_02B7: ldfld Verse.Pawn Verse.Pawn_AgeTracker::pawn
IL_02BC: ldc.i4.1
IL_02BD: ldloca.s 15 (System.Nullable`1[Verse.PawnGenerationRequest])
IL_02BF: initobj System.Nullable`1[Verse.PawnGenerationRequest]
IL_02C5: ldloc.s 15 (System.Nullable`1[Verse.PawnGenerationRequest])
IL_02C7: ldc.i4.1
IL_02C8: call static System.Collections.Generic.List`1<RimWorld.Trait>
Verse.PawnGenerator::GenerateTraitsFor(Verse.Pawn pawn, System.Int32 traitCount,
System.Nullable`1<Verse.PawnGenerationRequest> req, System.Boolean
growthMomentTrait)
IL_02CD: ldnull
IL_02CE: call static RimWorld.Trait
Verse.GenCollection::FirstOrFallback(System.Collections.Generic.IEnumerable`1<RimWo
rld.Trait> source, RimWorld.Trait fallback)
IL_02D3: stloc.s 14 (RimWorld.Trait)
IL_02D5: ldloc.s 14 (RimWorld.Trait)
IL_02D7: brfalse => Label30
IL_02DC: ldarg.0
IL_02DD: ldfld Verse.Pawn Verse.Pawn_AgeTracker::pawn
IL_02E2: ldfld RimWorld.Pawn_StoryTracker Verse.Pawn::story
IL_02E7: ldfld RimWorld.TraitSet RimWorld.Pawn_StoryTracker::traits
IL_02EC: ldloc.s 14 (RimWorld.Trait)
IL_02EE: ldc.i4.0
IL_02EF: callvirt System.Void RimWorld.TraitSet::GainTrait(RimWorld.Trait trait,
System.Boolean suppressConflicts)
IL_02F4: br => Label31
IL_02F9: Label25
IL_02F9: ldsfld System.Collections.Generic.List`1<Verse.HediffDef>
Verse.Pawn_AgeTracker::tmpHediffsGained
IL_02FE: callvirt virtual System.Int32
System.Collections.Generic.List`1<Verse.HediffDef>::get_Count()
IL_0303: ldc.i4.0
IL_0304: cgt
IL_0306: ldloc.s 10 (System.Boolean)
IL_0308: or
IL_0309: brfalse => Label32
IL_030E: ldstr "LetterBirthdayBiological"
IL_0313: ldarg.0
IL_0314: ldfld Verse.Pawn Verse.Pawn_AgeTracker::pawn
IL_0319: call static Verse.NamedArgument
Verse.NamedArgument::op_Implicit(Verse.Thing value)
IL_031E: ldarg.1
IL_031F: call static Verse.NamedArgument
Verse.NamedArgument::op_Implicit(System.Int32 value)
IL_0324: call static Verse.TaggedString
Verse.TranslatorFormattedStringExtensions::Translate(System.String key,
Verse.NamedArgument arg1, Verse.NamedArgument arg2)
IL_0329: stloc.s 16 (Verse.TaggedString)
IL_032B: ldsfld System.Collections.Generic.List`1<Verse.HediffDef>
Verse.Pawn_AgeTracker::tmpHediffsGained
IL_0330: callvirt virtual System.Int32
System.Collections.Generic.List`1<Verse.HediffDef>::get_Count()
IL_0335: ldc.i4.0
IL_0336: ble => Label33
IL_033B: ldloc.s 16 (Verse.TaggedString)
IL_033D: ldstr "\n\n"
IL_0342: ldstr "BirthdayBiologicalAgeInjuries"
IL_0347: ldarg.0
IL_0348: ldfld Verse.Pawn Verse.Pawn_AgeTracker::pawn
IL_034D: call static Verse.NamedArgument
Verse.NamedArgument::op_Implicit(Verse.Thing value)
IL_0352: call static Verse.TaggedString
Verse.TranslatorFormattedStringExtensions::Translate(System.String key,
Verse.NamedArgument arg1)
IL_0357: call static Verse.TaggedString
Verse.TaggedString::op_Addition(System.String t1, Verse.TaggedString t2)
IL_035C: call static Verse.TaggedString
Verse.TaggedString::op_Addition(Verse.TaggedString t1, Verse.TaggedString t2)
IL_0361: stloc.s 16 (Verse.TaggedString)
IL_0363: ldloc.s 16 (Verse.TaggedString)
IL_0365: ldstr ":\n\n"
IL_036A: ldsfld System.Collections.Generic.List`1<Verse.HediffDef>
Verse.Pawn_AgeTracker::tmpHediffsGained
IL_036F: ldsfld System.Func`2<Verse.HediffDef, System.String>
Verse.<>c::<>9__116_0
IL_0374: dup
IL_0375: brtrue => Label34
IL_037A: pop
IL_037B: ldsfld Verse.<>c Verse.<>c::<>9
IL_0380: ldftn System.String
Verse.<>c::<BirthdayBiological>b__116_0(Verse.HediffDef h)
IL_0386: newobj System.Void System.Func`2<Verse.HediffDef,
System.String>::.ctor(System.Object object, System.IntPtr method)
IL_038B: dup
IL_038C: stsfld System.Func`2<Verse.HediffDef, System.String>
Verse.<>c::<>9__116_0
IL_0391: Label34
IL_0391: call static System.Collections.Generic.IEnumerable`1<System.String>
System.Linq.Enumerable::Select(System.Collections.Generic.IEnumerable`1<Verse.Hedif
fDef> source, System.Func`2<Verse.HediffDef, System.String> selector)
IL_0396: ldstr "- "
IL_039B: ldc.i4.0
IL_039C: call static System.String
Verse.GenText::ToLineList(System.Collections.Generic.IEnumerable`1<System.String>
entries, System.String prefix, System.Boolean capitalizeItems)
IL_03A1: call static System.String System.String::Concat(System.String str0,
System.String str1)
IL_03A6: call static Verse.TaggedString
Verse.TaggedString::op_Addition(Verse.TaggedString t1, System.String t2)
IL_03AB: stloc.s 16 (Verse.TaggedString)
IL_03AD: Label33
IL_03AD: call static System.Boolean Verse.ModsConfig::get_BiotechActive()
IL_03B2: ldloc.s 10 (System.Boolean)
IL_03B4: and
IL_03B5: brfalse => Label35
IL_03BA: ldarg.0
IL_03BB: ldfld Verse.Pawn Verse.Pawn_AgeTracker::pawn
IL_03C0: callvirt System.Boolean Verse.Thing::get_Spawned()
IL_03C5: brfalse => Label36
IL_03CA: ldarg.0
IL_03CB: ldfld Verse.Pawn Verse.Pawn_AgeTracker::pawn
IL_03D0: callvirt Verse.DevelopmentalStage Verse.Pawn::get_DevelopmentalStage()
IL_03D5: call static System.Boolean
Verse.DevelopmentalStageExtensions::Juvenile(Verse.DevelopmentalStage
developmentalStage)
IL_03DA: ldloc.0
IL_03DB: or
IL_03DC: brfalse => Label37
IL_03E1: ldsfld Verse.EffecterDef RimWorld.EffecterDefOf::Birthday
IL_03E6: ldarg.0
IL_03E7: ldfld Verse.Pawn Verse.Pawn_AgeTracker::pawn
IL_03EC: ldarg.0
IL_03ED: ldfld Verse.Pawn Verse.Pawn_AgeTracker::pawn
IL_03F2: callvirt virtual Verse.Map Verse.Thing::get_Map()
IL_03F7: ldc.r4 1
IL_03FC: callvirt Verse.Effecter Verse.EffecterDef::SpawnAttached(Verse.Thing
target, Verse.Map map, System.Single scale)
IL_0401: pop
IL_0402: Label35
IL_0402: Label36
IL_0402: Label37
IL_0402: ldnull
IL_0403: stloc.s 17 (Verse.LetterDef)
IL_0405: ldsfld System.Collections.Generic.List`1<Verse.HediffDef>
Verse.Pawn_AgeTracker::tmpHediffsGained
IL_040A: callvirt virtual System.Int32
System.Collections.Generic.List`1<Verse.HediffDef>::get_Count()
IL_040F: ldc.i4.0
IL_0410: ble => Label38
IL_0415: ldsfld Verse.LetterDef RimWorld.LetterDefOf::NegativeEvent
IL_041A: stloc.s 17 (Verse.LetterDef)
IL_041C: call static Verse.LetterStack Verse.Find::get_LetterStack()
IL_0421: ldstr "LetterLabelBirthday"
IL_0426: call static Verse.TaggedString
Verse.Translator::Translate(System.String key)
IL_042B: ldloc.s 16 (Verse.TaggedString)
IL_042D: ldloc.s 17 (Verse.LetterDef)
IL_042F: ldarg.0
IL_0430: ldfld Verse.Pawn Verse.Pawn_AgeTracker::pawn
IL_0435: call static Verse.TargetInfo
Verse.TargetInfo::op_Implicit(Verse.Thing t)
IL_043A: call static Verse.LookTargets
Verse.LookTargets::op_Implicit(Verse.TargetInfo target)
IL_043F: ldnull
IL_0440: ldnull
IL_0441: ldnull
IL_0442: ldnull
IL_0443: callvirt System.Void Verse.LetterStack::ReceiveLetter(Verse.TaggedString
label, Verse.TaggedString text, Verse.LetterDef textLetterDef, Verse.LookTargets
lookTargets, RimWorld.Faction relatedFaction, RimWorld.Quest quest,
System.Collections.Generic.List`1<Verse.ThingDef> hyperlinkThingDefs, System.String
debugInfo)
IL_0448: Label38
IL_0448: call static System.Boolean Verse.ModsConfig::get_BiotechActive()
IL_044D: ldloc.s 10 (System.Boolean)
IL_044F: and
IL_0450: brfalse => Label39
IL_0455: ldarg.0
IL_0456: ldfld Verse.Pawn Verse.Pawn_AgeTracker::pawn
IL_045B: callvirt Verse.Name Verse.Pawn::get_Name()
IL_0460: stloc.s 18 (Verse.Name)
IL_0462: ldarg.0
IL_0463: ldfld Verse.Pawn Verse.Pawn_AgeTracker::pawn
IL_0468: callvirt Verse.Name Verse.Pawn::get_Name()
IL_046D: isinst Verse.NameTriple
IL_0472: dup
IL_0473: stloc.s 19 (Verse.NameTriple)
IL_0475: brfalse => Label40
IL_047A: ldloc.s 19 (Verse.NameTriple)
IL_047C: callvirt System.Boolean Verse.NameTriple::get_NickSet()
IL_0481: brtrue => Label41
IL_0486: ldarg.0
IL_0487: ldfld Verse.Pawn Verse.Pawn_AgeTracker::pawn
IL_048C: ldfld System.Int32 Verse.Thing::thingIDNumber
IL_0491: ldarg.1
IL_0492: call static System.Int32 Verse.Gen::HashCombine(System.Int32 seed,
System.Int32 obj)
IL_0497: call static System.Void Verse.Rand::PushState(System.Int32
replacementSeed)
.try
{
IL_049C: ldc.r4 0.5
IL_04A1: call static System.Boolean Verse.Rand::Chance(System.Single
chance)
IL_04A6: brfalse => Label42
IL_04AB: ldc.i4.1
IL_04AC: call static RimWorld.NameBank
RimWorld.PawnNameDatabaseShuffled::BankOf(RimWorld.PawnNameCategory category)
IL_04B1: ldc.i4.2
IL_04B2: ldarg.0
IL_04B3: ldfld Verse.Pawn Verse.Pawn_AgeTracker::pawn
IL_04B8: ldfld Verse.Gender Verse.Pawn::gender
IL_04BD: ldc.i4.1
IL_04BE: callvirt System.String
RimWorld.NameBank::GetName(RimWorld.PawnNameSlot slot, Verse.Gender gender,
System.Boolean checkIfAlreadyUsed)
IL_04C3: stloc.s 22 (System.String)
IL_04C5: ldarg.0
IL_04C6: ldfld Verse.Pawn Verse.Pawn_AgeTracker::pawn
IL_04CB: ldloc.s 19 (Verse.NameTriple)
IL_04CD: callvirt System.String Verse.NameTriple::get_First()
IL_04D2: ldloc.s 22 (System.String)
IL_04D4: ldloc.s 19 (Verse.NameTriple)
IL_04D6: callvirt System.String Verse.NameTriple::get_Last()
IL_04DB: newobj System.Void Verse.NameTriple::.ctor(System.String first,
System.String nick, System.String last)
IL_04E0: callvirt System.Void Verse.Pawn::set_Name(Verse.Name value)
IL_04E5: Label42
IL_04E5: leave => Label43
IL_04EA: leave => (autogenerated)
} // end try
.finally
{
IL_04EF: call static System.Void Verse.Rand::PopState()
IL_04F4: endfinally
IL_04F5: leave => (autogenerated)
} // end handler
IL_04F6: Label40
IL_04F6: Label41
IL_04F6: Label43
IL_04F6: ldloc.0
IL_04F7: brtrue => Label44
IL_04FC: ldsfld Verse.LetterDef RimWorld.LetterDefOf::ChildBirthday
IL_0501: br => Label45
IL_0506: Label44
IL_0506: ldsfld Verse.LetterDef RimWorld.LetterDefOf::ChildToAdult
IL_050B: Label45
IL_050B: stloc.s 17 (Verse.LetterDef)
IL_050D: ldloc.s 17 (Verse.LetterDef)
IL_050F: call static Verse.Letter
Verse.LetterMaker::MakeLetter(Verse.LetterDef def)
IL_0514: castclass RimWorld.ChoiceLetter_GrowthMoment
IL_0519: stloc.s 20 (RimWorld.ChoiceLetter_GrowthMoment)
IL_051B: ldsfld System.Collections.Generic.List`1<Verse.WorkTypeDef>
Verse.Pawn_AgeTracker::tmpEnabledWorkTypes
IL_0520: ldsfld System.Func`2<Verse.WorkTypeDef, System.String>
Verse.<>c::<>9__116_1
IL_0525: dup
IL_0526: brtrue => Label46
IL_052B: pop
IL_052C: ldsfld Verse.<>c Verse.<>c::<>9
IL_0531: ldftn System.String
Verse.<>c::<BirthdayBiological>b__116_1(Verse.WorkTypeDef w)
IL_0537: newobj System.Void System.Func`2<Verse.WorkTypeDef,
System.String>::.ctor(System.Object object, System.IntPtr method)
IL_053C: dup
IL_053D: stsfld System.Func`2<Verse.WorkTypeDef, System.String>
Verse.<>c::<>9__116_1
IL_0542: Label46
IL_0542: call static System.Collections.Generic.IEnumerable`1<System.String>
System.Linq.Enumerable::Select(System.Collections.Generic.IEnumerable`1<Verse.WorkT
ypeDef> source, System.Func`2<Verse.WorkTypeDef, System.String> selector)
IL_0547: call static System.Collections.Generic.List`1<System.String>
System.Linq.Enumerable::ToList(System.Collections.Generic.IEnumerable`1<System.Stri
ng> source)
IL_054C: stloc.s 21 (System.Collections.Generic.List`1[System.String])
IL_054E: ldloc.s 20 (RimWorld.ChoiceLetter_GrowthMoment)
IL_0550: ldarg.0
IL_0551: ldfld Verse.Pawn Verse.Pawn_AgeTracker::pawn
IL_0556: ldloc.s 7 (System.Int32)
IL_0558: ldloc.s 8 (System.Int32)
IL_055A: ldloc.s 9 (System.Int32)
IL_055C: ldloc.s 21 (System.Collections.Generic.List`1[System.String])
IL_055E: ldloc.s 18 (Verse.Name)
IL_0560: callvirt System.Void
RimWorld.ChoiceLetter_GrowthMoment::ConfigureGrowthLetter(Verse.Pawn pawn,
System.Int32 passionChoiceCount, System.Int32 traitChoiceCount, System.Int32
passionGainsCount, System.Collections.Generic.List`1<System.String>
enabledWorkTypes, Verse.Name oldName)
IL_0565: ldloc.s 20 (RimWorld.ChoiceLetter_GrowthMoment)
IL_0567: ldloc.0
IL_0568: brtrue => Label47
IL_056D: ldstr "BirthdayGrowthMoment"
IL_0572: ldarg.0
IL_0573: ldfld Verse.Pawn Verse.Pawn_AgeTracker::pawn
IL_0578: call static Verse.NamedArgument
Verse.NamedArgument::op_Implicit(Verse.Thing value)
IL_057D: ldloc.s 18 (Verse.Name)
IL_057F: callvirt abstract virtual System.String Verse.Name::get_ToStringShort()
IL_0584: ldstr "PAWNNAME"
IL_0589: call static Verse.NamedArgument
Verse.NamedArgumentUtility::Named(System.Object arg, System.String label)
IL_058E: call static Verse.TaggedString
Verse.TranslatorFormattedStringExtensions::Translate(System.String key,
Verse.NamedArgument arg1, Verse.NamedArgument arg2)
IL_0593: br => Label48
IL_0598: Label47
IL_0598: ldstr "LetterLabelBecameAdult"
IL_059D: ldarg.0
IL_059E: ldfld Verse.Pawn Verse.Pawn_AgeTracker::pawn
IL_05A3: call static Verse.NamedArgument
Verse.NamedArgument::op_Implicit(Verse.Thing value)
IL_05A8: call static Verse.TaggedString
Verse.TranslatorFormattedStringExtensions::Translate(System.String key,
Verse.NamedArgument arg1)
IL_05AD: Label48
IL_05AD: callvirt System.Void Verse.Letter::set_Label(Verse.TaggedString value)
IL_05B2: ldloc.s 20 (RimWorld.ChoiceLetter_GrowthMoment)
IL_05B4: ldc.i4 120000
IL_05B9: callvirt System.Void Verse.LetterWithTimeout::StartTimeout(System.Int32
duration)
IL_05BE: ldarg.0
IL_05BF: ldc.i4.0
IL_05C0: stfld System.Boolean Verse.Pawn_AgeTracker::canGainGrowthPoints
IL_05C5: call static Verse.LetterStack Verse.Find::get_LetterStack()
IL_05CA: ldloc.s 20 (RimWorld.ChoiceLetter_GrowthMoment)
IL_05CC: ldnull
IL_05CD: callvirt System.Void Verse.LetterStack::ReceiveLetter(Verse.Letter let,
System.String debugInfo)
IL_05D2: Label39
IL_05D2: ldsfld System.Collections.Generic.List`1<Verse.WorkTypeDef>
Verse.Pawn_AgeTracker::tmpEnabledWorkTypes
IL_05D7: callvirt virtual System.Void
System.Collections.Generic.List`1<Verse.WorkTypeDef>::Clear()
IL_05DC: Label12
IL_05DC: Label29
IL_05DC: Label30
IL_05DC: Label31
IL_05DC: Label32
IL_05DC: ldsfld System.Collections.Generic.List`1<Verse.HediffDef>
Verse.Pawn_AgeTracker::tmpHediffsGained
IL_05E1: callvirt virtual System.Void
System.Collections.Generic.List`1<Verse.HediffDef>::Clear()
IL_05E6: // end original
IL_05E6: Label0
IL_05E6: ret
DONE

### Patch: static Verse.Pawn


Verse.PawnGenerator::GeneratePawn(Verse.PawnGenerationRequest request)
### Replacement: static Verse.Pawn
Verse.PawnGenerator::Verse.PawnGenerator.GeneratePawn_Patch3(Verse.PawnGenerationRe
quest request)
IL_0000: Local var 0: Verse.Pawn
IL_0000: Local var 1: System.Boolean
IL_0000: Local var 2: System.Boolean
IL_0000: Local var 3: System.Nullable`1<Verse.DamageInfo>
IL_0000: Local var 4: System.Boolean
IL_0000: Local var 5: Verse.Pawn
IL_0000: Local var 6: System.Exception
IL_0000: Local var 7: Verse.Pawn
IL_0000: Local var 8: System.Boolean
IL_0000: ldnull
IL_0001: stloc 7 (Verse.Pawn)
IL_0005: ldc.i4 0
IL_000A: stloc 8 (System.Boolean)
IL_000E: ldc.i4.1
IL_000F: stloc 8 (System.Boolean)
IL_0013: ldloc 8 (System.Boolean)
IL_0017: brfalse => Label1
IL_001C: ldarga 0
IL_0020: call static System.Boolean
ATReforged.GeneratePawn_Prefix::Prefix(Verse.PawnGenerationRequest& request)
IL_0025: stloc 8 (System.Boolean)
IL_0029: Label1
IL_0029: nop
IL_002A: ldloc 8 (System.Boolean)
IL_002E: brfalse => Label2
IL_0033: ldarga 0
IL_0037: call static System.Void
AlienRace.HarmonyPatches::GeneratePawnPrefix(Verse.PawnGenerationRequest& request)
IL_003C: Label2
IL_003C: nop
IL_003D: ldloc 8 (System.Boolean)
IL_0041: brfalse => Label0
IL_0046: // start original
IL_0046: ldarga.s 0
IL_0048: call System.Void Verse.PawnGenerationRequest::ValidateAndFix()
.try
{
.try
{
IL_004D: ldarg.0
IL_004E: call static Verse.Pawn
Verse.PawnGenerator::GenerateOrRedressPawnInternal(Verse.PawnGenerationRequest
request)
IL_0053: stloc.0
IL_0054: ldloc.0
IL_0055: brfalse => Label3
IL_005A: ldarga.s 0
IL_005C: call System.Boolean
Verse.PawnGenerationRequest::get_AllowDead()
IL_0061: brtrue => Label4
IL_0066: ldarga.s 0
IL_0068: call System.Boolean
Verse.PawnGenerationRequest::get_ForceDead()
IL_006D: brtrue => Label5
IL_0072: ldloc.0
IL_0073: ldfld Verse.Pawn_HealthTracker Verse.Pawn::health
IL_0078: ldfld Verse.HediffSet Verse.Pawn_HealthTracker::hediffSet
IL_007D: ldfld System.Collections.Generic.List`1<Verse.Hediff>
Verse.HediffSet::hediffs
IL_0082: call static System.Boolean
Verse.GenCollection::Any(System.Collections.Generic.List`1<Verse.Hediff> list)
IL_0087: brfalse => Label6
IL_008C: ldloc.0
IL_008D: callvirt System.Boolean Verse.Pawn::get_Dead()
IL_0092: stloc.1
IL_0093: ldloc.0
IL_0094: callvirt System.Boolean Verse.Pawn::get_Downed()
IL_0099: stloc.2
IL_009A: ldloc.0
IL_009B: ldfld Verse.Pawn_HealthTracker Verse.Pawn::health
IL_00A0: ldfld Verse.HediffSet Verse.Pawn_HealthTracker::hediffSet
IL_00A5: callvirt System.Void Verse.HediffSet::DirtyCache()
IL_00AA: ldloc.0
IL_00AB: ldfld Verse.Pawn_HealthTracker Verse.Pawn::health
IL_00B0: ldloca.s 3 (System.Nullable`1[Verse.DamageInfo])
IL_00B2: initobj System.Nullable`1[Verse.DamageInfo]
IL_00B8: ldloc.3
IL_00B9: ldnull
IL_00BA: callvirt System.Void
Verse.Pawn_HealthTracker::CheckForStateChange(System.Nullable`1<Verse.DamageInfo>
dinfo, Verse.Hediff hediff)
IL_00BF: ldloc.0
IL_00C0: callvirt System.Boolean Verse.Pawn::get_Dead()
IL_00C5: brfalse => Label7
IL_00CA: ldc.i4.s 10
IL_00CC: newarr System.Object
IL_00D1: dup
IL_00D2: ldc.i4.0
IL_00D3: ldstr "Pawn was generated dead but the pawn generation
request specified the pawn must be alive. This shouldn\'t ever happen even if we
ran out of tries because null pawn should have been returned instead in this case.
Resetting health...\npawn.Dead="
IL_00D8: stelem.ref
IL_00D9: dup
IL_00DA: ldc.i4.1
IL_00DB: ldloc.0
IL_00DC: callvirt System.Boolean Verse.Pawn::get_Dead()
IL_00E1: stloc.s 4 (System.Boolean)
IL_00E3: ldloca.s 4 (System.Boolean)
IL_00E5: call virtual System.String System.Boolean::ToString()
IL_00EA: stelem.ref
IL_00EB: dup
IL_00EC: ldc.i4.2
IL_00ED: ldstr " pawn.Downed="
IL_00F2: stelem.ref
IL_00F3: dup
IL_00F4: ldc.i4.3
IL_00F5: ldloc.0
IL_00F6: callvirt System.Boolean Verse.Pawn::get_Downed()
IL_00FB: stloc.s 4 (System.Boolean)
IL_00FD: ldloca.s 4 (System.Boolean)
IL_00FF: call virtual System.String System.Boolean::ToString()
IL_0104: stelem.ref
IL_0105: dup
IL_0106: ldc.i4.4
IL_0107: ldstr " deadBefore="
IL_010C: stelem.ref
IL_010D: dup
IL_010E: ldc.i4.5
IL_010F: ldloca.s 1 (System.Boolean)
IL_0111: call virtual System.String System.Boolean::ToString()
IL_0116: stelem.ref
IL_0117: dup
IL_0118: ldc.i4.6
IL_0119: ldstr " downedBefore="
IL_011E: stelem.ref
IL_011F: dup
IL_0120: ldc.i4.7
IL_0121: ldloca.s 2 (System.Boolean)
IL_0123: call virtual System.String System.Boolean::ToString()
IL_0128: stelem.ref
IL_0129: dup
IL_012A: ldc.i4.8
IL_012B: ldstr "\nrequest="
IL_0130: stelem.ref
IL_0131: dup
IL_0132: ldc.i4.s 9
IL_0134: ldarg.0
IL_0135: box Verse.PawnGenerationRequest
IL_013A: stelem.ref
IL_013B: call static System.String
System.String::Concat(System.Object[] args)
IL_0140: call static System.Void Verse.Log::Error(System.String
text)
IL_0145: ldloc.0
IL_0146: ldfld Verse.Pawn_HealthTracker Verse.Pawn::health
IL_014B: callvirt System.Void Verse.Pawn_HealthTracker::Reset()
IL_0150: Label3
IL_0150: Label4
IL_0150: Label5
IL_0150: Label6
IL_0150: Label7
IL_0150: ldloc.0
IL_0151: ldfld RimWorld.Pawn_GuestTracker Verse.Pawn::guest
IL_0156: brfalse => Label8
IL_015B: ldarga.s 0
IL_015D: call System.Boolean
Verse.PawnGenerationRequest::get_ForceRecruitable()
IL_0162: brfalse => Label9
IL_0167: ldloc.0
IL_0168: ldfld RimWorld.Pawn_GuestTracker Verse.Pawn::guest
IL_016D: ldc.i4.1
IL_016E: callvirt System.Void
RimWorld.Pawn_GuestTracker::set_Recruitable(System.Boolean value)
IL_0173: br => Label10
IL_0178: Label9
IL_0178: ldloc.0
IL_0179: ldfld RimWorld.Pawn_GuestTracker Verse.Pawn::guest
IL_017E: callvirt System.Void
RimWorld.Pawn_GuestTracker::SetupRecruitable()
IL_0183: Label8
IL_0183: Label10
IL_0183: ldloc.0
IL_0184: callvirt virtual RimWorld.Faction Verse.Thing::get_Faction()
IL_0189: call static RimWorld.Faction
RimWorld.Faction::get_OfPlayerSilentFail()
IL_018E: bne.un => Label11
IL_0193: ldloc.0
IL_0194: call static System.Boolean
RimWorld.QuestUtility::IsQuestLodger(Verse.Pawn p)
IL_0199: brtrue => Label12
IL_019E: call static RimWorld.StoryWatcher
Verse.Find::get_StoryWatcher()
IL_01A3: ldfld RimWorld.StoryWatcher_PopAdaptation
RimWorld.StoryWatcher::watcherPopAdaptation
IL_01A8: ldloc.0
IL_01A9: ldc.i4.0
IL_01AA: callvirt System.Void
RimWorld.StoryWatcher_PopAdaptation::Notify_PawnEvent(Verse.Pawn p,
RimWorld.PopAdaptationEvent ev)
IL_01AF: Label11
IL_01AF: Label12
IL_01AF: ldloc.0
IL_01B0: stloc.s 5 (Verse.Pawn)
IL_01B2: leave => Label13
IL_01B7: leave => (autogenerated)
} // end try
.catch System.Exception
{
IL_01BC: stloc.s 6 (System.Exception)
IL_01BE: ldstr "Error while generating pawn. Rethrowing.
Exception: "
IL_01C3: ldloc.s 6 (System.Exception)
IL_01C5: call static System.String
System.String::Concat(System.Object arg0, System.Object arg1)
IL_01CA: call static System.Void Verse.Log::Error(System.String
text)
IL_01CF: rethrow
IL_01D1: leave => (autogenerated)
} // end handler
IL_01D6: leave => (autogenerated)
} // end try
.finally
{
IL_01DB: endfinally
IL_01DC: leave => (autogenerated)
} // end handler
IL_01DD: Label13
IL_01DD: ldloc.s 5 (Verse.Pawn)
IL_01DF: // end original
IL_01DF: stloc 7 (Verse.Pawn)
IL_01E3: Label0
IL_01E3: ldloca 7 (Verse.Pawn)
IL_01E7: call static System.Void
ATReforged.GeneratePawn_Patch::Listener(Verse.Pawn& __result)
IL_01EC: ldloc 7 (Verse.Pawn)
IL_01F0: ret
DONE

### Patch: System.Void Verse.PawnGraphicSet::ResolveAllGraphics()


### Replacement: static System.Void
Verse.PawnGraphicSet::Verse.PawnGraphicSet.ResolveAllGraphics_Patch5(Verse.PawnGrap
hicSet this)
IL_0000: Local var 0: UnityEngine.Color
IL_0000: Local var 1: UnityEngine.Color
IL_0000: Local var 2: Verse.PawnKindLifeStage
IL_0000: Local var 3: UnityEngine.Shader
IL_0000: Local var 4: System.Boolean
IL_0000: ldc.i4 0
IL_0005: stloc 4 (System.Boolean)
IL_0009: ldc.i4.1
IL_000A: stloc 4 (System.Boolean)
IL_000E: ldloc 4 (System.Boolean)
IL_0012: brfalse => Label1
IL_0017: ldarg.0
IL_0018: call static System.Boolean
VFEAncients.HarmonyPatches.MetaMorphPatches::MetamorphedGraphics(Verse.PawnGraphicS
et __instance)
IL_001D: stloc 4 (System.Boolean)
IL_0021: Label1
IL_0021: nop
IL_0022: ldloc 4 (System.Boolean)
IL_0026: brfalse => Label2
IL_002B: ldarg.0
IL_002C: call static System.Boolean
AlienRace.HarmonyPatches::ResolveAllGraphicsPrefix(Verse.PawnGraphicSet __instance)
IL_0031: stloc 4 (System.Boolean)
IL_0035: Label2
IL_0035: nop
IL_0036: ldloc 4 (System.Boolean)
IL_003A: brfalse => Label0
IL_003F: // start original
IL_003F: ldarg.0
IL_0040: call System.Void Verse.PawnGraphicSet::ClearCache()
IL_0045: ldarg.0
IL_0046: ldfld Verse.Pawn Verse.PawnGraphicSet::pawn
IL_004B: callvirt Verse.RaceProperties Verse.Pawn::get_RaceProps()
IL_0050: callvirt System.Boolean Verse.RaceProperties::get_Humanlike()
IL_0055: brfalse => Label3
IL_005A: ldarg.0
IL_005B: ldfld Verse.Pawn Verse.PawnGraphicSet::pawn
IL_0060: ldfld RimWorld.Pawn_StoryTracker Verse.Pawn::story
IL_0065: callvirt System.Boolean
RimWorld.Pawn_StoryTracker::get_SkinColorOverriden()
IL_006A: brtrue => Label4
IL_006F: ldsfld UnityEngine.Color Verse.PawnGraphicSet::RottingColorDefault
IL_0074: br => Label5
IL_0079: Label4
IL_0079: ldsfld UnityEngine.Color Verse.PawnGraphicSet::RottingColorDefault
IL_007E: ldarg.0
IL_007F: ldfld Verse.Pawn Verse.PawnGraphicSet::pawn
IL_0084: ldfld RimWorld.Pawn_StoryTracker Verse.Pawn::story
IL_0089: callvirt UnityEngine.Color RimWorld.Pawn_StoryTracker::get_SkinColor()
IL_008E: call static UnityEngine.Color
UnityEngine.Color::op_Multiply(UnityEngine.Color a, UnityEngine.Color b)
IL_0093: Label5
IL_0093: stloc.0
IL_0094: ldarg.0
IL_0095: ldarg.0
IL_0096: ldfld Verse.Pawn Verse.PawnGraphicSet::pawn
IL_009B: ldfld RimWorld.Pawn_StoryTracker Verse.Pawn::story
IL_00A0: ldfld RimWorld.BodyTypeDef RimWorld.Pawn_StoryTracker::bodyType
IL_00A5: ldfld System.String RimWorld.BodyTypeDef::bodyNakedGraphicPath
IL_00AA: ldarg.0
IL_00AB: ldfld Verse.Pawn Verse.PawnGraphicSet::pawn
IL_00B0: ldfld RimWorld.Pawn_StoryTracker Verse.Pawn::story
IL_00B5: callvirt System.Boolean
RimWorld.Pawn_StoryTracker::get_SkinColorOverriden()
IL_00BA: call static UnityEngine.Shader
Verse.ShaderUtility::GetSkinShader(System.Boolean skinColorOverriden)
IL_00BF: call static UnityEngine.Vector2 UnityEngine.Vector2::get_one()
IL_00C4: ldarg.0
IL_00C5: ldfld Verse.Pawn Verse.PawnGraphicSet::pawn
IL_00CA: ldfld RimWorld.Pawn_StoryTracker Verse.Pawn::story
IL_00CF: callvirt UnityEngine.Color RimWorld.Pawn_StoryTracker::get_SkinColor()
IL_00D4: call static Verse.Graphic Verse.GraphicDatabase::Get(System.String
path, UnityEngine.Shader shader, UnityEngine.Vector2 drawSize, UnityEngine.Color
color)
IL_00D9: stfld Verse.Graphic Verse.PawnGraphicSet::nakedGraphic
IL_00DE: ldarg.0
IL_00DF: ldarg.0
IL_00E0: ldfld Verse.Pawn Verse.PawnGraphicSet::pawn
IL_00E5: ldfld RimWorld.Pawn_StoryTracker Verse.Pawn::story
IL_00EA: ldfld RimWorld.BodyTypeDef RimWorld.Pawn_StoryTracker::bodyType
IL_00EF: ldfld System.String RimWorld.BodyTypeDef::bodyNakedGraphicPath
IL_00F4: ldarg.0
IL_00F5: ldfld Verse.Pawn Verse.PawnGraphicSet::pawn
IL_00FA: ldfld RimWorld.Pawn_StoryTracker Verse.Pawn::story
IL_00FF: callvirt System.Boolean
RimWorld.Pawn_StoryTracker::get_SkinColorOverriden()
IL_0104: call static UnityEngine.Shader
Verse.ShaderUtility::GetSkinShader(System.Boolean skinColorOverriden)
IL_0109: call static UnityEngine.Vector2 UnityEngine.Vector2::get_one()
IL_010E: ldloc.0
IL_010F: call static Verse.Graphic Verse.GraphicDatabase::Get(System.String
path, UnityEngine.Shader shader, UnityEngine.Vector2 drawSize, UnityEngine.Color
color)
IL_0114: stfld Verse.Graphic Verse.PawnGraphicSet::rottingGraphic
IL_0119: ldarg.0
IL_011A: ldarg.0
IL_011B: ldfld Verse.Pawn Verse.PawnGraphicSet::pawn
IL_0120: ldfld RimWorld.Pawn_StoryTracker Verse.Pawn::story
IL_0125: ldfld RimWorld.BodyTypeDef RimWorld.Pawn_StoryTracker::bodyType
IL_012A: ldfld System.String RimWorld.BodyTypeDef::bodyDessicatedGraphicPath
IL_012F: ldsfld UnityEngine.Shader Verse.ShaderDatabase::Cutout
IL_0134: call static Verse.Graphic Verse.GraphicDatabase::Get(System.String
path, UnityEngine.Shader shader)
IL_0139: stfld Verse.Graphic Verse.PawnGraphicSet::dessicatedGraphic
IL_013E: call static System.Boolean Verse.ModLister::get_BiotechInstalled()
IL_0143: brfalse => Label6
IL_0148: ldarg.0
IL_0149: ldfld Verse.Pawn Verse.PawnGraphicSet::pawn
IL_014E: ldfld RimWorld.Pawn_StoryTracker Verse.Pawn::story
IL_0153: ldfld RimWorld.FurDef RimWorld.Pawn_StoryTracker::furDef
IL_0158: brfalse => Label7
IL_015D: ldarg.0
IL_015E: ldarg.0
IL_015F: ldfld Verse.Pawn Verse.PawnGraphicSet::pawn
IL_0164: ldfld RimWorld.Pawn_StoryTracker Verse.Pawn::story
IL_0169: ldfld RimWorld.FurDef RimWorld.Pawn_StoryTracker::furDef
IL_016E: ldarg.0
IL_016F: ldfld Verse.Pawn Verse.PawnGraphicSet::pawn
IL_0174: callvirt System.String RimWorld.FurDef::GetFurBodyGraphicPath(Verse.Pawn
pawn)
IL_0179: ldsfld UnityEngine.Shader Verse.ShaderDatabase::CutoutSkinOverlay
IL_017E: call static UnityEngine.Vector2 UnityEngine.Vector2::get_one()
IL_0183: ldarg.0
IL_0184: ldfld Verse.Pawn Verse.PawnGraphicSet::pawn
IL_0189: ldfld RimWorld.Pawn_StoryTracker Verse.Pawn::story
IL_018E: callvirt UnityEngine.Color RimWorld.Pawn_StoryTracker::get_HairColor()
IL_0193: call static Verse.Graphic Verse.GraphicDatabase::Get(System.String
path, UnityEngine.Shader shader, UnityEngine.Vector2 drawSize, UnityEngine.Color
color)
IL_0198: stfld Verse.Graphic Verse.PawnGraphicSet::furCoveredGraphic
IL_019D: br => Label8
IL_01A2: Label7
IL_01A2: ldarg.0
IL_01A3: ldnull
IL_01A4: stfld Verse.Graphic Verse.PawnGraphicSet::furCoveredGraphic
IL_01A9: Label6
IL_01A9: Label8
IL_01A9: call static System.Boolean Verse.ModsConfig::get_BiotechActive()
IL_01AE: brfalse => Label9
IL_01B3: ldarg.0
IL_01B4: ldstr "Things/Pawn/Humanlike/Apparel/SwaddledBaby/Swaddled_Child"
IL_01B9: ldsfld UnityEngine.Shader Verse.ShaderDatabase::Cutout
IL_01BE: call static UnityEngine.Vector2 UnityEngine.Vector2::get_one()
IL_01C3: ldarg.0
IL_01C4: call UnityEngine.Color Verse.PawnGraphicSet::SwaddleColor()
IL_01C9: call static Verse.Graphic Verse.GraphicDatabase::Get(System.String
path, UnityEngine.Shader shader, UnityEngine.Vector2 drawSize, UnityEngine.Color
color)
IL_01CE: stfld Verse.Graphic Verse.PawnGraphicSet::swaddledBabyGraphic
IL_01D3: Label9
IL_01D3: ldarg.0
IL_01D4: ldfld Verse.Pawn Verse.PawnGraphicSet::pawn
IL_01D9: ldfld RimWorld.Pawn_StyleTracker Verse.Pawn::style
IL_01DE: brfalse => Label10
IL_01E3: call static System.Boolean Verse.ModsConfig::get_IdeologyActive()
IL_01E8: brfalse => Label11
IL_01ED: call static System.Boolean Verse.ModLister::get_BiotechInstalled()
IL_01F2: brfalse => Label12
IL_01F7: ldarg.0
IL_01F8: ldfld Verse.Pawn Verse.PawnGraphicSet::pawn
IL_01FD: ldfld RimWorld.Pawn_GeneTracker Verse.Pawn::genes
IL_0202: brfalse => Label13
IL_0207: ldarg.0
IL_0208: ldfld Verse.Pawn Verse.PawnGraphicSet::pawn
IL_020D: ldfld RimWorld.Pawn_GeneTracker Verse.Pawn::genes
IL_0212: callvirt System.Collections.Generic.List`1<Verse.Gene>
RimWorld.Pawn_GeneTracker::get_GenesListForReading()
IL_0217: ldsfld System.Predicate`1<Verse.Gene> Verse.<>c::<>9__42_0
IL_021C: dup
IL_021D: brtrue => Label14
IL_0222: pop
IL_0223: ldsfld Verse.<>c Verse.<>c::<>9
IL_0228: ldftn System.Boolean
Verse.<>c::<ResolveAllGraphics>b__42_0(Verse.Gene x)
IL_022E: newobj System.Void System.Predicate`1<Verse.Gene>::.ctor(System.Object
object, System.IntPtr method)
IL_0233: dup
IL_0234: stsfld System.Predicate`1<Verse.Gene> Verse.<>c::<>9__42_0
IL_0239: Label14
IL_0239: call static System.Boolean
Verse.GenCollection::Any(System.Collections.Generic.List`1<Verse.Gene> list,
System.Predicate`1<Verse.Gene> predicate)
IL_023E: brtrue => Label15
IL_0243: Label12
IL_0243: Label13
IL_0243: ldarg.0
IL_0244: ldfld Verse.Pawn Verse.PawnGraphicSet::pawn
IL_0249: ldfld RimWorld.Pawn_StoryTracker Verse.Pawn::story
IL_024E: callvirt UnityEngine.Color RimWorld.Pawn_StoryTracker::get_SkinColor()
IL_0253: stloc.1
IL_0254: ldloca.s 1 (UnityEngine.Color)
IL_0256: ldflda System.Single UnityEngine.Color::a
IL_025B: dup
IL_025C: ldind.r4
IL_025D: ldc.r4 0.8
IL_0262: mul
IL_0263: stind.r4
IL_0264: ldarg.0
IL_0265: ldfld Verse.Pawn Verse.PawnGraphicSet::pawn
IL_026A: ldfld RimWorld.Pawn_StyleTracker Verse.Pawn::style
IL_026F: callvirt RimWorld.TattooDef RimWorld.Pawn_StyleTracker::get_FaceTattoo()
IL_0274: brfalse => Label16
IL_0279: ldarg.0
IL_027A: ldfld Verse.Pawn Verse.PawnGraphicSet::pawn
IL_027F: ldfld RimWorld.Pawn_StyleTracker Verse.Pawn::style
IL_0284: callvirt RimWorld.TattooDef RimWorld.Pawn_StyleTracker::get_FaceTattoo()
IL_0289: ldsfld RimWorld.TattooDef RimWorld.TattooDefOf::NoTattoo_Face
IL_028E: beq => Label17
IL_0293: ldarg.0
IL_0294: ldarg.0
IL_0295: ldfld Verse.Pawn Verse.PawnGraphicSet::pawn
IL_029A: ldfld RimWorld.Pawn_StyleTracker Verse.Pawn::style
IL_029F: callvirt RimWorld.TattooDef RimWorld.Pawn_StyleTracker::get_FaceTattoo()
IL_02A4: ldfld System.String RimWorld.StyleItemDef::texPath
IL_02A9: ldsfld UnityEngine.Shader Verse.ShaderDatabase::CutoutSkinOverlay
IL_02AE: call static UnityEngine.Vector2 UnityEngine.Vector2::get_one()
IL_02B3: ldloc.1
IL_02B4: call static UnityEngine.Color UnityEngine.Color::get_white()
IL_02B9: ldnull
IL_02BA: ldarg.0
IL_02BB: ldfld Verse.Pawn Verse.PawnGraphicSet::pawn
IL_02C0: ldfld RimWorld.Pawn_StoryTracker Verse.Pawn::story
IL_02C5: ldfld Verse.HeadTypeDef RimWorld.Pawn_StoryTracker::headType
IL_02CA: ldfld System.String Verse.HeadTypeDef::graphicPath
IL_02CF: call static Verse.Graphic Verse.GraphicDatabase::Get(System.String
path, UnityEngine.Shader shader, UnityEngine.Vector2 drawSize, UnityEngine.Color
color, UnityEngine.Color colorTwo, Verse.GraphicData data, System.String maskPath)
IL_02D4: stfld Verse.Graphic Verse.PawnGraphicSet::faceTattooGraphic
IL_02D9: br => Label18
IL_02DE: Label16
IL_02DE: Label17
IL_02DE: ldarg.0
IL_02DF: ldnull
IL_02E0: stfld Verse.Graphic Verse.PawnGraphicSet::faceTattooGraphic
IL_02E5: Label18
IL_02E5: ldarg.0
IL_02E6: ldfld Verse.Pawn Verse.PawnGraphicSet::pawn
IL_02EB: ldfld RimWorld.Pawn_StyleTracker Verse.Pawn::style
IL_02F0: callvirt RimWorld.TattooDef RimWorld.Pawn_StyleTracker::get_BodyTattoo()
IL_02F5: brfalse => Label19
IL_02FA: ldarg.0
IL_02FB: ldfld Verse.Pawn Verse.PawnGraphicSet::pawn
IL_0300: ldfld RimWorld.Pawn_StyleTracker Verse.Pawn::style
IL_0305: callvirt RimWorld.TattooDef RimWorld.Pawn_StyleTracker::get_BodyTattoo()
IL_030A: ldsfld RimWorld.TattooDef RimWorld.TattooDefOf::NoTattoo_Body
IL_030F: beq => Label20
IL_0314: ldarg.0
IL_0315: ldarg.0
IL_0316: ldfld Verse.Pawn Verse.PawnGraphicSet::pawn
IL_031B: ldfld RimWorld.Pawn_StyleTracker Verse.Pawn::style
IL_0320: callvirt RimWorld.TattooDef RimWorld.Pawn_StyleTracker::get_BodyTattoo()
IL_0325: ldfld System.String RimWorld.StyleItemDef::texPath
IL_032A: ldsfld UnityEngine.Shader Verse.ShaderDatabase::CutoutSkinOverlay
IL_032F: call static UnityEngine.Vector2 UnityEngine.Vector2::get_one()
IL_0334: ldloc.1
IL_0335: call static UnityEngine.Color UnityEngine.Color::get_white()
IL_033A: ldnull
IL_033B: ldarg.0
IL_033C: ldfld Verse.Pawn Verse.PawnGraphicSet::pawn
IL_0341: ldfld RimWorld.Pawn_StoryTracker Verse.Pawn::story
IL_0346: ldfld RimWorld.BodyTypeDef RimWorld.Pawn_StoryTracker::bodyType
IL_034B: ldfld System.String RimWorld.BodyTypeDef::bodyNakedGraphicPath
IL_0350: call static Verse.Graphic Verse.GraphicDatabase::Get(System.String
path, UnityEngine.Shader shader, UnityEngine.Vector2 drawSize, UnityEngine.Color
color, UnityEngine.Color colorTwo, Verse.GraphicData data, System.String maskPath)
IL_0355: stfld Verse.Graphic Verse.PawnGraphicSet::bodyTattooGraphic
IL_035A: br => Label21
IL_035F: Label19
IL_035F: Label20
IL_035F: ldarg.0
IL_0360: ldnull
IL_0361: stfld Verse.Graphic Verse.PawnGraphicSet::bodyTattooGraphic
IL_0366: Label10
IL_0366: Label11
IL_0366: Label15
IL_0366: Label21
IL_0366: ldarg.0
IL_0367: ldarg.0
IL_0368: ldfld Verse.Pawn Verse.PawnGraphicSet::pawn
IL_036D: ldfld RimWorld.Pawn_StoryTracker Verse.Pawn::story
IL_0372: ldfld Verse.HeadTypeDef RimWorld.Pawn_StoryTracker::headType
IL_0377: ldarg.0
IL_0378: ldfld Verse.Pawn Verse.PawnGraphicSet::pawn
IL_037D: ldfld RimWorld.Pawn_StoryTracker Verse.Pawn::story
IL_0382: callvirt UnityEngine.Color RimWorld.Pawn_StoryTracker::get_SkinColor()
IL_0387: ldc.i4.0
IL_0388: ldarg.0
IL_0389: ldfld Verse.Pawn Verse.PawnGraphicSet::pawn
IL_038E: ldfld RimWorld.Pawn_StoryTracker Verse.Pawn::story
IL_0393: callvirt System.Boolean
RimWorld.Pawn_StoryTracker::get_SkinColorOverriden()
IL_0398: callvirt Verse.Graphic_Multi
Verse.HeadTypeDef::GetGraphic(UnityEngine.Color color, System.Boolean dessicated,
System.Boolean skinColorOverriden)
IL_039D: stfld Verse.Graphic Verse.PawnGraphicSet::headGraphic
IL_03A2: ldarg.0
IL_03A3: ldarg.0
IL_03A4: ldfld Verse.Pawn Verse.PawnGraphicSet::pawn
IL_03A9: ldfld RimWorld.Pawn_StoryTracker Verse.Pawn::story
IL_03AE: ldfld Verse.HeadTypeDef RimWorld.Pawn_StoryTracker::headType
IL_03B3: ldloc.0
IL_03B4: ldc.i4.1
IL_03B5: ldarg.0
IL_03B6: ldfld Verse.Pawn Verse.PawnGraphicSet::pawn
IL_03BB: ldfld RimWorld.Pawn_StoryTracker Verse.Pawn::story
IL_03C0: callvirt System.Boolean
RimWorld.Pawn_StoryTracker::get_SkinColorOverriden()
IL_03C5: callvirt Verse.Graphic_Multi
Verse.HeadTypeDef::GetGraphic(UnityEngine.Color color, System.Boolean dessicated,
System.Boolean skinColorOverriden)
IL_03CA: stfld Verse.Graphic Verse.PawnGraphicSet::desiccatedHeadGraphic
IL_03CF: ldarg.0
IL_03D0: ldsfld Verse.HeadTypeDef RimWorld.HeadTypeDefOf::Skull
IL_03D5: call static UnityEngine.Color UnityEngine.Color::get_white()
IL_03DA: ldc.i4.1
IL_03DB: ldc.i4.0
IL_03DC: callvirt Verse.Graphic_Multi
Verse.HeadTypeDef::GetGraphic(UnityEngine.Color color, System.Boolean dessicated,
System.Boolean skinColorOverriden)
IL_03E1: stfld Verse.Graphic Verse.PawnGraphicSet::skullGraphic
IL_03E6: ldarg.0
IL_03E7: ldsfld Verse.HeadTypeDef RimWorld.HeadTypeDefOf::Stump
IL_03EC: ldarg.0
IL_03ED: ldfld Verse.Pawn Verse.PawnGraphicSet::pawn
IL_03F2: ldfld RimWorld.Pawn_StoryTracker Verse.Pawn::story
IL_03F7: callvirt UnityEngine.Color RimWorld.Pawn_StoryTracker::get_SkinColor()
IL_03FC: ldc.i4.0
IL_03FD: ldarg.0
IL_03FE: ldfld Verse.Pawn Verse.PawnGraphicSet::pawn
IL_0403: ldfld RimWorld.Pawn_StoryTracker Verse.Pawn::story
IL_0408: callvirt System.Boolean
RimWorld.Pawn_StoryTracker::get_SkinColorOverriden()
IL_040D: callvirt Verse.Graphic_Multi
Verse.HeadTypeDef::GetGraphic(UnityEngine.Color color, System.Boolean dessicated,
System.Boolean skinColorOverriden)
IL_0412: stfld Verse.Graphic Verse.PawnGraphicSet::headStumpGraphic
IL_0417: ldarg.0
IL_0418: ldsfld Verse.HeadTypeDef RimWorld.HeadTypeDefOf::Stump
IL_041D: ldloc.0
IL_041E: ldc.i4.1
IL_041F: ldarg.0
IL_0420: ldfld Verse.Pawn Verse.PawnGraphicSet::pawn
IL_0425: ldfld RimWorld.Pawn_StoryTracker Verse.Pawn::story
IL_042A: callvirt System.Boolean
RimWorld.Pawn_StoryTracker::get_SkinColorOverriden()
IL_042F: callvirt Verse.Graphic_Multi
Verse.HeadTypeDef::GetGraphic(UnityEngine.Color color, System.Boolean dessicated,
System.Boolean skinColorOverriden)
IL_0434: stfld Verse.Graphic Verse.PawnGraphicSet::desiccatedHeadStumpGraphic
IL_0439: ldarg.0
IL_043A: call System.Void Verse.PawnGraphicSet::CalculateHairMats()
IL_043F: ldarg.0
IL_0440: call System.Void Verse.PawnGraphicSet::ResolveApparelGraphics()
IL_0445: ldarg.0
IL_0446: call System.Void Verse.PawnGraphicSet::ResolveGeneGraphics()
IL_044B: br => Label45
IL_0450: Label3
IL_0450: ldarg.0
IL_0451: ldfld Verse.Pawn Verse.PawnGraphicSet::pawn
IL_0456: ldfld Verse.Pawn_AgeTracker Verse.Pawn::ageTracker
IL_045B: callvirt Verse.PawnKindLifeStage
Verse.Pawn_AgeTracker::get_CurKindLifeStage()
IL_0460: stloc.2
IL_0461: ldarg.0
IL_0462: ldfld Verse.Pawn Verse.PawnGraphicSet::pawn
IL_0467: ldfld Verse.Gender Verse.Pawn::gender
IL_046C: ldc.i4.2
IL_046D: bne.un => Label22
IL_0472: ldloc.2
IL_0473: ldfld Verse.GraphicData Verse.PawnKindLifeStage::femaleGraphicData
IL_0478: brtrue => Label23
IL_047D: Label22
IL_047D: ldarg.0
IL_047E: ldloc.2
IL_047F: ldfld Verse.GraphicData Verse.PawnKindLifeStage::bodyGraphicData
IL_0484: callvirt Verse.Graphic Verse.GraphicData::get_Graphic()
IL_0489: stfld Verse.Graphic Verse.PawnGraphicSet::nakedGraphic
IL_048E: br => Label24
IL_0493: Label23
IL_0493: ldarg.0
IL_0494: ldloc.2
IL_0495: ldfld Verse.GraphicData Verse.PawnKindLifeStage::femaleGraphicData
IL_049A: callvirt Verse.Graphic Verse.GraphicData::get_Graphic()
IL_049F: stfld Verse.Graphic Verse.PawnGraphicSet::nakedGraphic
IL_04A4: Label24
IL_04A4: ldarg.0
IL_04A5: ldfld Verse.Pawn Verse.PawnGraphicSet::pawn
IL_04AA: callvirt Verse.RaceProperties Verse.Pawn::get_RaceProps()
IL_04AF: ldfld System.Boolean Verse.RaceProperties::packAnimal
IL_04B4: brfalse => Label25
IL_04B9: ldarg.0
IL_04BA: ldarg.0
IL_04BB: ldfld Verse.Graphic Verse.PawnGraphicSet::nakedGraphic
IL_04C0: ldfld System.String Verse.Graphic::path
IL_04C5: ldstr "Pack"
IL_04CA: call static System.String System.String::Concat(System.String str0,
System.String str1)
IL_04CF: ldsfld UnityEngine.Shader Verse.ShaderDatabase::Cutout
IL_04D4: ldarg.0
IL_04D5: ldfld Verse.Graphic Verse.PawnGraphicSet::nakedGraphic
IL_04DA: ldfld UnityEngine.Vector2 Verse.Graphic::drawSize
IL_04DF: call static UnityEngine.Color UnityEngine.Color::get_white()
IL_04E4: call static Verse.Graphic Verse.GraphicDatabase::Get(System.String
path, UnityEngine.Shader shader, UnityEngine.Vector2 drawSize, UnityEngine.Color
color)
IL_04E9: stfld Verse.Graphic Verse.PawnGraphicSet::packGraphic
IL_04EE: Label25
IL_04EE: ldarg.0
IL_04EF: ldfld Verse.Pawn Verse.PawnGraphicSet::pawn
IL_04F4: ldfld RimWorld.Pawn_StoryTracker Verse.Pawn::story
IL_04F9: brfalse => Label26
IL_04FE: ldarg.0
IL_04FF: ldfld Verse.Pawn Verse.PawnGraphicSet::pawn
IL_0504: ldfld RimWorld.Pawn_StoryTracker Verse.Pawn::story
IL_0509: callvirt System.Boolean
RimWorld.Pawn_StoryTracker::get_SkinColorOverriden()
IL_050E: call static UnityEngine.Shader
Verse.ShaderUtility::GetSkinShader(System.Boolean skinColorOverriden)
IL_0513: br => Label27
IL_0518: Label26
IL_0518: ldsfld UnityEngine.Shader Verse.ShaderDatabase::CutoutSkin
IL_051D: Label27
IL_051D: stloc.3
IL_051E: ldloc.2
IL_051F: ldfld Verse.GraphicData Verse.PawnKindLifeStage::corpseGraphicData
IL_0524: brfalse => Label28
IL_0529: ldarg.0
IL_052A: ldfld Verse.Pawn Verse.PawnGraphicSet::pawn
IL_052F: ldfld Verse.Gender Verse.Pawn::gender
IL_0534: ldc.i4.2
IL_0535: bne.un => Label29
IL_053A: ldloc.2
IL_053B: ldfld Verse.GraphicData
Verse.PawnKindLifeStage::femaleCorpseGraphicData
IL_0540: brtrue => Label30
IL_0545: Label29
IL_0545: ldarg.0
IL_0546: ldloc.2
IL_0547: ldfld Verse.GraphicData Verse.PawnKindLifeStage::corpseGraphicData
IL_054C: callvirt Verse.Graphic Verse.GraphicData::get_Graphic()
IL_0551: ldloc.2
IL_0552: ldfld Verse.GraphicData Verse.PawnKindLifeStage::corpseGraphicData
IL_0557: callvirt Verse.Graphic Verse.GraphicData::get_Graphic()
IL_055C: callvirt UnityEngine.Shader Verse.Graphic::get_Shader()
IL_0561: ldarg.0
IL_0562: ldfld Verse.Graphic Verse.PawnGraphicSet::nakedGraphic
IL_0567: callvirt UnityEngine.Color Verse.Graphic::get_Color()
IL_056C: ldarg.0
IL_056D: ldfld Verse.Graphic Verse.PawnGraphicSet::nakedGraphic
IL_0572: callvirt UnityEngine.Color Verse.Graphic::get_ColorTwo()
IL_0577: callvirt virtual Verse.Graphic
Verse.Graphic::GetColoredVersion(UnityEngine.Shader newShader, UnityEngine.Color
newColor, UnityEngine.Color newColorTwo)
IL_057C: stfld Verse.Graphic Verse.PawnGraphicSet::corpseGraphic
IL_0581: ldarg.0
IL_0582: ldloc.2
IL_0583: ldfld Verse.GraphicData Verse.PawnKindLifeStage::corpseGraphicData
IL_0588: callvirt Verse.Graphic Verse.GraphicData::get_Graphic()
IL_058D: ldloc.3
IL_058E: ldsfld UnityEngine.Color Verse.PawnGraphicSet::RottingColorDefault
IL_0593: ldsfld UnityEngine.Color Verse.PawnGraphicSet::RottingColorDefault
IL_0598: callvirt virtual Verse.Graphic
Verse.Graphic::GetColoredVersion(UnityEngine.Shader newShader, UnityEngine.Color
newColor, UnityEngine.Color newColorTwo)
IL_059D: stfld Verse.Graphic Verse.PawnGraphicSet::rottingGraphic
IL_05A2: br => Label31
IL_05A7: Label30
IL_05A7: ldarg.0
IL_05A8: ldloc.2
IL_05A9: ldfld Verse.GraphicData
Verse.PawnKindLifeStage::femaleCorpseGraphicData
IL_05AE: callvirt Verse.Graphic Verse.GraphicData::get_Graphic()
IL_05B3: ldloc.2
IL_05B4: ldfld Verse.GraphicData
Verse.PawnKindLifeStage::femaleCorpseGraphicData
IL_05B9: callvirt Verse.Graphic Verse.GraphicData::get_Graphic()
IL_05BE: callvirt UnityEngine.Shader Verse.Graphic::get_Shader()
IL_05C3: ldarg.0
IL_05C4: ldfld Verse.Graphic Verse.PawnGraphicSet::nakedGraphic
IL_05C9: callvirt UnityEngine.Color Verse.Graphic::get_Color()
IL_05CE: ldarg.0
IL_05CF: ldfld Verse.Graphic Verse.PawnGraphicSet::nakedGraphic
IL_05D4: callvirt UnityEngine.Color Verse.Graphic::get_ColorTwo()
IL_05D9: callvirt virtual Verse.Graphic
Verse.Graphic::GetColoredVersion(UnityEngine.Shader newShader, UnityEngine.Color
newColor, UnityEngine.Color newColorTwo)
IL_05DE: stfld Verse.Graphic Verse.PawnGraphicSet::corpseGraphic
IL_05E3: ldarg.0
IL_05E4: ldloc.2
IL_05E5: ldfld Verse.GraphicData
Verse.PawnKindLifeStage::femaleCorpseGraphicData
IL_05EA: callvirt Verse.Graphic Verse.GraphicData::get_Graphic()
IL_05EF: ldloc.3
IL_05F0: ldsfld UnityEngine.Color Verse.PawnGraphicSet::RottingColorDefault
IL_05F5: ldsfld UnityEngine.Color Verse.PawnGraphicSet::RottingColorDefault
IL_05FA: callvirt virtual Verse.Graphic
Verse.Graphic::GetColoredVersion(UnityEngine.Shader newShader, UnityEngine.Color
newColor, UnityEngine.Color newColorTwo)
IL_05FF: stfld Verse.Graphic Verse.PawnGraphicSet::rottingGraphic
IL_0604: br => Label32
IL_0609: Label28
IL_0609: ldarg.0
IL_060A: ldnull
IL_060B: stfld Verse.Graphic Verse.PawnGraphicSet::corpseGraphic
IL_0610: ldarg.0
IL_0611: ldarg.0
IL_0612: ldfld Verse.Graphic Verse.PawnGraphicSet::nakedGraphic
IL_0617: ldloc.3
IL_0618: ldsfld UnityEngine.Color Verse.PawnGraphicSet::RottingColorDefault
IL_061D: ldsfld UnityEngine.Color Verse.PawnGraphicSet::RottingColorDefault
IL_0622: callvirt virtual Verse.Graphic
Verse.Graphic::GetColoredVersion(UnityEngine.Shader newShader, UnityEngine.Color
newColor, UnityEngine.Color newColorTwo)
IL_0627: stfld Verse.Graphic Verse.PawnGraphicSet::rottingGraphic
IL_062C: Label31
IL_062C: Label32
IL_062C: ldloc.2
IL_062D: ldfld Verse.GraphicData
Verse.PawnKindLifeStage::dessicatedBodyGraphicData
IL_0632: brfalse => Label33
IL_0637: ldarg.0
IL_0638: ldfld Verse.Pawn Verse.PawnGraphicSet::pawn
IL_063D: callvirt Verse.RaceProperties Verse.Pawn::get_RaceProps()
IL_0642: callvirt RimWorld.FleshTypeDef Verse.RaceProperties::get_FleshType()
IL_0647: ldsfld RimWorld.FleshTypeDef RimWorld.FleshTypeDefOf::Insectoid
IL_064C: bne.un => Label34
IL_0651: ldarg.0
IL_0652: ldfld Verse.Pawn Verse.PawnGraphicSet::pawn
IL_0657: ldfld Verse.Gender Verse.Pawn::gender
IL_065C: ldc.i4.2
IL_065D: bne.un => Label35
IL_0662: ldloc.2
IL_0663: ldfld Verse.GraphicData
Verse.PawnKindLifeStage::femaleDessicatedBodyGraphicData
IL_0668: brtrue => Label36
IL_066D: Label35
IL_066D: ldarg.0
IL_066E: ldloc.2
IL_066F: ldfld Verse.GraphicData
Verse.PawnKindLifeStage::dessicatedBodyGraphicData
IL_0674: callvirt Verse.Graphic Verse.GraphicData::get_Graphic()
IL_0679: ldsfld UnityEngine.Shader Verse.ShaderDatabase::Cutout
IL_067E: ldsfld UnityEngine.Color Verse.PawnGraphicSet::DessicatedColorInsect
IL_0683: ldsfld UnityEngine.Color Verse.PawnGraphicSet::DessicatedColorInsect
IL_0688: callvirt virtual Verse.Graphic
Verse.Graphic::GetColoredVersion(UnityEngine.Shader newShader, UnityEngine.Color
newColor, UnityEngine.Color newColorTwo)
IL_068D: stfld Verse.Graphic Verse.PawnGraphicSet::dessicatedGraphic
IL_0692: br => Label37
IL_0697: Label36
IL_0697: ldarg.0
IL_0698: ldloc.2
IL_0699: ldfld Verse.GraphicData
Verse.PawnKindLifeStage::femaleDessicatedBodyGraphicData
IL_069E: callvirt Verse.Graphic Verse.GraphicData::get_Graphic()
IL_06A3: ldsfld UnityEngine.Shader Verse.ShaderDatabase::Cutout
IL_06A8: ldsfld UnityEngine.Color Verse.PawnGraphicSet::DessicatedColorInsect
IL_06AD: ldsfld UnityEngine.Color Verse.PawnGraphicSet::DessicatedColorInsect
IL_06B2: callvirt virtual Verse.Graphic
Verse.Graphic::GetColoredVersion(UnityEngine.Shader newShader, UnityEngine.Color
newColor, UnityEngine.Color newColorTwo)
IL_06B7: stfld Verse.Graphic Verse.PawnGraphicSet::dessicatedGraphic
IL_06BC: br => Label38
IL_06C1: Label34
IL_06C1: ldarg.0
IL_06C2: ldfld Verse.Pawn Verse.PawnGraphicSet::pawn
IL_06C7: ldfld Verse.Gender Verse.Pawn::gender
IL_06CC: ldc.i4.2
IL_06CD: bne.un => Label39
IL_06D2: ldloc.2
IL_06D3: ldfld Verse.GraphicData
Verse.PawnKindLifeStage::femaleDessicatedBodyGraphicData
IL_06D8: brtrue => Label40
IL_06DD: Label39
IL_06DD: ldarg.0
IL_06DE: ldloc.2
IL_06DF: ldfld Verse.GraphicData
Verse.PawnKindLifeStage::dessicatedBodyGraphicData
IL_06E4: ldarg.0
IL_06E5: ldfld Verse.Pawn Verse.PawnGraphicSet::pawn
IL_06EA: callvirt Verse.Graphic Verse.GraphicData::GraphicColoredFor(Verse.Thing
t)
IL_06EF: stfld Verse.Graphic Verse.PawnGraphicSet::dessicatedGraphic
IL_06F4: br => Label41
IL_06F9: Label40
IL_06F9: ldarg.0
IL_06FA: ldloc.2
IL_06FB: ldfld Verse.GraphicData
Verse.PawnKindLifeStage::femaleDessicatedBodyGraphicData
IL_0700: ldarg.0
IL_0701: ldfld Verse.Pawn Verse.PawnGraphicSet::pawn
IL_0706: callvirt Verse.Graphic Verse.GraphicData::GraphicColoredFor(Verse.Thing
t)
IL_070B: stfld Verse.Graphic Verse.PawnGraphicSet::dessicatedGraphic
IL_0710: Label33
IL_0710: Label37
IL_0710: Label38
IL_0710: Label41
IL_0710: ldarg.0
IL_0711: ldfld Verse.Pawn Verse.PawnGraphicSet::pawn
IL_0716: ldfld Verse.PawnKindDef Verse.Pawn::kindDef
IL_071B: ldfld System.Collections.Generic.List`1<Verse.AlternateGraphic>
Verse.PawnKindDef::alternateGraphics
IL_0720: call static System.Boolean
Verse.GenList::NullOrEmpty(System.Collections.Generic.IList`1<Verse.AlternateGraphi
c> list)
IL_0725: brtrue => Label42
IL_072A: ldarg.0
IL_072B: ldfld Verse.Pawn Verse.PawnGraphicSet::pawn
IL_0730: ldfld System.Int32 Verse.Thing::thingIDNumber
IL_0735: ldc.i4 46101
IL_073A: xor
IL_073B: call static System.Void Verse.Rand::PushState(System.Int32
replacementSeed)
IL_0740: call static System.Single Verse.Rand::get_Value()
IL_0745: ldarg.0
IL_0746: ldfld Verse.Pawn Verse.PawnGraphicSet::pawn
IL_074B: ldfld Verse.PawnKindDef Verse.Pawn::kindDef
IL_0750: ldfld System.Single Verse.PawnKindDef::alternateGraphicChance
IL_0755: bgt.un => Label43
IL_075A: ldarg.0
IL_075B: ldarg.0
IL_075C: ldfld Verse.Pawn Verse.PawnGraphicSet::pawn
IL_0761: ldfld Verse.PawnKindDef Verse.Pawn::kindDef
IL_0766: ldfld System.Collections.Generic.List`1<Verse.AlternateGraphic>
Verse.PawnKindDef::alternateGraphics
IL_076B: ldsfld System.Func`2<Verse.AlternateGraphic, System.Single>
Verse.<>c::<>9__42_1
IL_0770: dup
IL_0771: brtrue => Label44
IL_0776: pop
IL_0777: ldsfld Verse.<>c Verse.<>c::<>9
IL_077C: ldftn System.Single
Verse.<>c::<ResolveAllGraphics>b__42_1(Verse.AlternateGraphic x)
IL_0782: newobj System.Void System.Func`2<Verse.AlternateGraphic,
System.Single>::.ctor(System.Object object, System.IntPtr method)
IL_0787: dup
IL_0788: stsfld System.Func`2<Verse.AlternateGraphic, System.Single>
Verse.<>c::<>9__42_1
IL_078D: Label44
IL_078D: call static Verse.AlternateGraphic
Verse.GenCollection::RandomElementByWeight(System.Collections.Generic.IEnumerable`1
<Verse.AlternateGraphic> source, System.Func`2<Verse.AlternateGraphic,
System.Single> weightSelector)
IL_0792: ldarg.0
IL_0793: ldfld Verse.Graphic Verse.PawnGraphicSet::nakedGraphic
IL_0798: callvirt Verse.Graphic Verse.AlternateGraphic::GetGraphic(Verse.Graphic
other)
IL_079D: stfld Verse.Graphic Verse.PawnGraphicSet::nakedGraphic
IL_07A2: Label43
IL_07A2: call static System.Void Verse.Rand::PopState()
IL_07A7: // end original
IL_07A7: Label42
IL_07A7: Label45
IL_07A7: Label0
IL_07A7: ldarg.0
IL_07A8: call static System.Void
VanillaGenesExpanded.VanillaGenesExpanded_PawnGraphicSet_ResolveAllGraphics_Patch::
PostFix(Verse.PawnGraphicSet __instance)
IL_07AD: ldarg.0
IL_07AE: call static System.Void
VFECore.PawnGraphicSet_ResolveAllGraphics_Patch::Postfix(Verse.PawnGraphicSet
__instance)
IL_07B3: ldarg.0
IL_07B4: ldarg.0
IL_07B5: ldfld Verse.Pawn Verse.PawnGraphicSet::pawn
IL_07BA: call static System.Void
FacialAnimation.HarmonyPatches::PostfixResolveAllGraphics(Verse.PawnGraphicSet
__instance, Verse.Pawn ___pawn)
IL_07BF: ret
DONE

### Patch: System.Void Verse.PawnRenderer::RenderPawnInternal(UnityEngine.Vector3


rootLoc, System.Single angle, System.Boolean renderBody, Verse.Rot4 bodyFacing,
Verse.RotDrawMode bodyDrawType, Verse.PawnRenderFlags flags)
### Replacement: static System.Void
Verse.PawnRenderer::Verse.PawnRenderer.RenderPawnInternal_Patch3(Verse.PawnRenderer
this, UnityEngine.Vector3 rootLoc, System.Single angle, System.Boolean renderBody,
Verse.Rot4 bodyFacing, Verse.RotDrawMode bodyDrawType, Verse.PawnRenderFlags flags)
IL_0000: Local var 0: UnityEngine.Quaternion
IL_0000: Local var 1: UnityEngine.Vector3
IL_0000: Local var 2: UnityEngine.Vector3
IL_0000: Local var 3: UnityEngine.Vector3
IL_0000: Local var 4: UnityEngine.Vector3
IL_0000: Local var 5: UnityEngine.Mesh
IL_0000: Local var 6: UnityEngine.Vector3
IL_0000: Local var 7: UnityEngine.Vector3
IL_0000: Local var 8: UnityEngine.Vector3
IL_0000: Local var 9: Verse.Rot4
IL_0000: Local var 10: UnityEngine.Mesh
IL_0000: Local var 11: UnityEngine.Material
IL_0000: Local var 12: System.Nullable`1<System.Boolean>
IL_0000: Local var 13: UnityEngine.Vector3
IL_0000: Local var 14: System.Boolean
IL_0000: ldc.i4 0
IL_0005: stloc 14 (System.Boolean)
IL_0009: ldc.i4.1
IL_000A: stloc 14 (System.Boolean)
IL_000E: ldloc 14 (System.Boolean)
IL_0012: brfalse => Label1
IL_0017: ldarg 4
IL_001B: ldarg 5
IL_001F: ldarga 6
IL_0023: ldarg.0
IL_0024: ldflda Verse.Pawn Verse.PawnRenderer::pawn
IL_0029: call static System.Boolean
FacialAnimation.HarmonyPatches::PrefixRenderPawnInternal(Verse.Rot4 bodyFacing,
Verse.RotDrawMode bodyDrawType, Verse.PawnRenderFlags& flags, Verse.Pawn& ___pawn)
IL_002E: stloc 14 (System.Boolean)
IL_0032: Label1
IL_0032: nop
IL_0033: ldloc 14 (System.Boolean)
IL_0037: brfalse => Label2
IL_003C: ldarg.0
IL_003D: ldfld Verse.Pawn Verse.PawnRenderer::pawn
IL_0042: ldarg 6
IL_0046: call static System.Void
AlienRace.HarmonyPatches::RenderPawnInternalPrefix(Verse.Pawn ___pawn,
Verse.PawnRenderFlags flags)
IL_004B: Label2
IL_004B: nop
IL_004C: ldloc 14 (System.Boolean)
IL_0050: brfalse => Label0
IL_0055: // start original
IL_0055: ldarg.0
IL_0056: ldfld Verse.PawnGraphicSet Verse.PawnRenderer::graphics
IL_005B: callvirt System.Boolean Verse.PawnGraphicSet::get_AllResolved()
IL_0060: brtrue => Label3
IL_0065: ldarg.0
IL_0066: ldfld Verse.PawnGraphicSet Verse.PawnRenderer::graphics
IL_006B: callvirt System.Void Verse.PawnGraphicSet::ResolveAllGraphics()
IL_0070: Label3
IL_0070: ldarg.2
IL_0071: call static UnityEngine.Vector3 UnityEngine.Vector3::get_up()
IL_0076: call static UnityEngine.Quaternion
UnityEngine.Quaternion::AngleAxis(System.Single angle, UnityEngine.Vector3 axis)
IL_007B: stloc.0
IL_007C: ldarg.1
IL_007D: stloc.1
IL_007E: ldarg.0
IL_007F: ldfld Verse.Pawn Verse.PawnRenderer::pawn
IL_0084: ldfld Verse.Pawn_AgeTracker Verse.Pawn::ageTracker
IL_0089: callvirt RimWorld.LifeStageDef Verse.Pawn_AgeTracker::get_CurLifeStage()
IL_008E: ldflda System.Nullable`1<UnityEngine.Vector3>
RimWorld.LifeStageDef::bodyDrawOffset
IL_0093: call System.Boolean
System.Nullable`1<UnityEngine.Vector3>::get_HasValue()
IL_0098: brfalse => Label4
IL_009D: ldloc.1
IL_009E: ldarg.0
IL_009F: ldfld Verse.Pawn Verse.PawnRenderer::pawn
IL_00A4: ldfld Verse.Pawn_AgeTracker Verse.Pawn::ageTracker
IL_00A9: callvirt RimWorld.LifeStageDef Verse.Pawn_AgeTracker::get_CurLifeStage()
IL_00AE: ldflda System.Nullable`1<UnityEngine.Vector3>
RimWorld.LifeStageDef::bodyDrawOffset
IL_00B3: call UnityEngine.Vector3
System.Nullable`1<UnityEngine.Vector3>::get_Value()
IL_00B8: call static UnityEngine.Vector3
UnityEngine.Vector3::op_Addition(UnityEngine.Vector3 a, UnityEngine.Vector3 b)
IL_00BD: stloc.1
IL_00BE: Label4
IL_00BE: ldloc.1
IL_00BF: stloc.2
IL_00C0: ldloc.1
IL_00C1: stloc.3
IL_00C2: ldarg.s 4
IL_00C4: ldsfld Verse.Rot4 Verse.Rot4::North
IL_00C9: call static System.Boolean Verse.Rot4::op_Inequality(Verse.Rot4 a,
Verse.Rot4 b)
IL_00CE: brfalse => Label5
IL_00D3: ldloca.s 3 (UnityEngine.Vector3)
IL_00D5: ldflda System.Single UnityEngine.Vector3::y
IL_00DA: dup
IL_00DB: ldind.r4
IL_00DC: ldc.r4 0.02316602
IL_00E1: add
IL_00E2: stind.r4
IL_00E3: ldloca.s 2 (UnityEngine.Vector3)
IL_00E5: ldflda System.Single UnityEngine.Vector3::y
IL_00EA: dup
IL_00EB: ldind.r4
IL_00EC: ldc.r4 0.02027027
IL_00F1: add
IL_00F2: stind.r4
IL_00F3: br => Label6
IL_00F8: Label5
IL_00F8: ldloca.s 3 (UnityEngine.Vector3)
IL_00FA: ldflda System.Single UnityEngine.Vector3::y
IL_00FF: dup
IL_0100: ldind.r4
IL_0101: ldc.r4 0.02027027
IL_0106: add
IL_0107: stind.r4
IL_0108: ldloca.s 2 (UnityEngine.Vector3)
IL_010A: ldflda System.Single UnityEngine.Vector3::y
IL_010F: dup
IL_0110: ldind.r4
IL_0111: ldc.r4 0.02316602
IL_0116: add
IL_0117: stind.r4
IL_0118: Label6
IL_0118: ldloc.1
IL_0119: stloc.s 4 (UnityEngine.Vector3)
IL_011B: ldloca.s 4 (UnityEngine.Vector3)
IL_011D: ldflda System.Single UnityEngine.Vector3::y
IL_0122: dup
IL_0123: ldind.r4
IL_0124: ldarg.s 4
IL_0126: ldsfld Verse.Rot4 Verse.Rot4::South
IL_012B: call static System.Boolean Verse.Rot4::op_Equality(Verse.Rot4 a,
Verse.Rot4 b)
IL_0130: brtrue => Label7
IL_0135: ldc.r4 0.02895753
IL_013A: br => Label8
IL_013F: Label7
IL_013F: ldc.r4 0.005791505
IL_0144: Label8
IL_0144: add
IL_0145: stind.r4
IL_0146: ldnull
IL_0147: stloc.s 5 (UnityEngine.Mesh)
IL_0149: ldarg.3
IL_014A: brfalse => Label9
IL_014F: ldarg.0
IL_0150: ldloc.1
IL_0151: ldarg.2
IL_0152: ldarg.s 4
IL_0154: ldarg.s 5
IL_0156: ldarg.s 6
IL_0158: ldloca.s 5 (UnityEngine.Mesh)
IL_015A: call System.Void
Verse.PawnRenderer::DrawPawnBody(UnityEngine.Vector3 rootLoc, System.Single angle,
Verse.Rot4 facing, Verse.RotDrawMode bodyDrawType, Verse.PawnRenderFlags flags,
UnityEngine.Mesh& bodyMesh)
IL_015F: ldarg.s 5
IL_0161: brtrue => Label10
IL_0166: ldarg.0
IL_0167: ldfld Verse.PawnGraphicSet Verse.PawnRenderer::graphics
IL_016C: ldfld Verse.Graphic Verse.PawnGraphicSet::furCoveredGraphic
IL_0171: brfalse => Label11
IL_0176: ldloc.1
IL_0177: stloc.s 7 (UnityEngine.Vector3)
IL_0179: ldloca.s 7 (UnityEngine.Vector3)
IL_017B: ldflda System.Single UnityEngine.Vector3::y
IL_0180: dup
IL_0181: ldind.r4
IL_0182: ldc.r4 0.009187258
IL_0187: add
IL_0188: stind.r4
IL_0189: ldarg.0
IL_018A: ldloc.s 7 (UnityEngine.Vector3)
IL_018C: ldarg.s 4
IL_018E: ldloc.0
IL_018F: ldarg.s 6
IL_0191: call System.Void Verse.PawnRenderer::DrawPawnFur(UnityEngine.Vector3
shellLoc, Verse.Rot4 facing, UnityEngine.Quaternion quat, Verse.PawnRenderFlags
flags)
IL_0196: Label10
IL_0196: Label11
IL_0196: ldloc.1
IL_0197: stloc.s 6 (UnityEngine.Vector3)
IL_0199: ldloca.s 6 (UnityEngine.Vector3)
IL_019B: ldflda System.Single UnityEngine.Vector3::y
IL_01A0: dup
IL_01A1: ldind.r4
IL_01A2: ldc.r4 0.009687258
IL_01A7: add
IL_01A8: stind.r4
IL_01A9: ldarg.s 5
IL_01AB: brtrue => Label12
IL_01B0: ldarg.0
IL_01B1: ldfld RimWorld.PawnWoundDrawer Verse.PawnRenderer::woundOverlays
IL_01B6: ldloc.s 6 (UnityEngine.Vector3)
IL_01B8: ldloc.s 5 (UnityEngine.Mesh)
IL_01BA: ldloc.0
IL_01BB: ldarg.s 6
IL_01BD: ldc.i4.8
IL_01BE: call static System.Boolean
Verse.PawnRenderFlagsExtension::FlagSet(Verse.PawnRenderFlags flags,
Verse.PawnRenderFlags flag)
IL_01C3: ldc.i4.0
IL_01C4: ldarg.s 4
IL_01C6: ldc.i4.0
IL_01C7: newobj System.Void
System.Nullable`1<System.Boolean>::.ctor(System.Boolean value)
IL_01CC: callvirt System.Void
RimWorld.PawnOverlayDrawer::RenderPawnOverlay(UnityEngine.Vector3 drawLoc,
UnityEngine.Mesh bodyMesh, UnityEngine.Quaternion quat, System.Boolean drawNow,
RimWorld.OverlayLayer layer, Verse.Rot4 pawnRot, System.Nullable`1<System.Boolean>
overApparel)
IL_01D1: Label12
IL_01D1: ldarg.s 6
IL_01D3: ldc.i4.s 64
IL_01D5: call static System.Boolean
Verse.PawnRenderFlagsExtension::FlagSet(Verse.PawnRenderFlags flags,
Verse.PawnRenderFlags flag)
IL_01DA: brfalse => Label13
IL_01DF: ldarg.0
IL_01E0: ldloc.2
IL_01E1: ldloc.s 4 (UnityEngine.Vector3)
IL_01E3: ldloc.s 5 (UnityEngine.Mesh)
IL_01E5: ldarg.2
IL_01E6: ldarg.s 4
IL_01E8: ldarg.s 6
IL_01EA: call System.Void
Verse.PawnRenderer::DrawBodyApparel(UnityEngine.Vector3 shellLoc,
UnityEngine.Vector3 utilityLoc, UnityEngine.Mesh bodyMesh, System.Single angle,
Verse.Rot4 bodyFacing, Verse.PawnRenderFlags flags)
IL_01EF: Label13
IL_01EF: ldarg.0
IL_01F0: ldfld Verse.Pawn Verse.PawnRenderer::pawn
IL_01F5: call static System.Boolean
RimWorld.ChildcareUtility::SwaddleBaby(Verse.Pawn baby)
IL_01FA: brfalse => Label14
IL_01FF: ldarg.0
IL_0200: ldloc.2
IL_0201: ldarg.s 4
IL_0203: ldloc.0
IL_0204: ldarg.s 6
IL_0206: call System.Void Verse.PawnRenderer::SwaddleBaby(UnityEngine.Vector3
shellLoc, Verse.Rot4 facing, UnityEngine.Quaternion quat, Verse.PawnRenderFlags
flags)
IL_020B: Label14
IL_020B: call static System.Boolean Verse.ModLister::get_BiotechInstalled()
IL_0210: brfalse => Label15
IL_0215: ldarg.0
IL_0216: ldfld Verse.Pawn Verse.PawnRenderer::pawn
IL_021B: ldfld RimWorld.Pawn_GeneTracker Verse.Pawn::genes
IL_0220: brfalse => Label16
IL_0225: ldarg.0
IL_0226: ldloc.1
IL_0227: ldloc.0
IL_0228: ldarg.2
IL_0229: ldarg.s 4
IL_022B: ldarg.s 5
IL_022D: ldarg.s 6
IL_022F: call System.Void
Verse.PawnRenderer::DrawBodyGenes(UnityEngine.Vector3 rootLoc,
UnityEngine.Quaternion quat, System.Single angle, Verse.Rot4 bodyFacing,
Verse.RotDrawMode bodyDrawType, Verse.PawnRenderFlags flags)
IL_0234: Label15
IL_0234: Label16
IL_0234: ldloc.1
IL_0235: stloc.s 6 (UnityEngine.Vector3)
IL_0237: ldloca.s 6 (UnityEngine.Vector3)
IL_0239: ldflda System.Single UnityEngine.Vector3::y
IL_023E: dup
IL_023F: ldind.r4
IL_0240: ldc.r4 0.02216602
IL_0245: add
IL_0246: stind.r4
IL_0247: ldarg.s 5
IL_0249: brtrue => Label17
IL_024E: ldarg.0
IL_024F: ldfld RimWorld.PawnWoundDrawer Verse.PawnRenderer::woundOverlays
IL_0254: ldloc.s 6 (UnityEngine.Vector3)
IL_0256: ldloc.s 5 (UnityEngine.Mesh)
IL_0258: ldloc.0
IL_0259: ldarg.s 6
IL_025B: ldc.i4.8
IL_025C: call static System.Boolean
Verse.PawnRenderFlagsExtension::FlagSet(Verse.PawnRenderFlags flags,
Verse.PawnRenderFlags flag)
IL_0261: ldc.i4.0
IL_0262: ldarg.s 4
IL_0264: ldc.i4.1
IL_0265: newobj System.Void
System.Nullable`1<System.Boolean>::.ctor(System.Boolean value)
IL_026A: callvirt System.Void
RimWorld.PawnOverlayDrawer::RenderPawnOverlay(UnityEngine.Vector3 drawLoc,
UnityEngine.Mesh bodyMesh, UnityEngine.Quaternion quat, System.Boolean drawNow,
RimWorld.OverlayLayer layer, Verse.Rot4 pawnRot, System.Nullable`1<System.Boolean>
overApparel)
IL_026F: Label9
IL_026F: Label17
IL_026F: call static UnityEngine.Vector3 UnityEngine.Vector3::get_zero()
IL_0274: stloc.s 8 (UnityEngine.Vector3)
IL_0276: ldloc.1
IL_0277: stloc.s 6 (UnityEngine.Vector3)
IL_0279: ldloca.s 6 (UnityEngine.Vector3)
IL_027B: ldflda System.Single UnityEngine.Vector3::y
IL_0280: dup
IL_0281: ldind.r4
IL_0282: ldc.r4 0.02895753
IL_0287: add
IL_0288: stind.r4
IL_0289: ldarg.s 4
IL_028B: stloc.s 9 (Verse.Rot4)
IL_028D: ldnull
IL_028E: stloc.s 10 (UnityEngine.Mesh)
IL_0290: ldarg.0
IL_0291: ldfld Verse.PawnGraphicSet Verse.PawnRenderer::graphics
IL_0296: ldfld Verse.Graphic Verse.PawnGraphicSet::headGraphic
IL_029B: brfalse => Label18
IL_02A0: ldloc.0
IL_02A1: ldarg.0
IL_02A2: ldloc.s 9 (Verse.Rot4)
IL_02A4: call UnityEngine.Vector3
Verse.PawnRenderer::BaseHeadOffsetAt(Verse.Rot4 rotation)
IL_02A9: call static UnityEngine.Vector3
UnityEngine.Quaternion::op_Multiply(UnityEngine.Quaternion rotation,
UnityEngine.Vector3 point)
IL_02AE: stloc.s 8 (UnityEngine.Vector3)
IL_02B0: ldarg.0
IL_02B1: ldfld Verse.PawnGraphicSet Verse.PawnRenderer::graphics
IL_02B6: ldloc.s 9 (Verse.Rot4)
IL_02B8: ldarg.s 5
IL_02BA: ldarg.s 6
IL_02BC: ldc.i4.2
IL_02BD: call static System.Boolean
Verse.PawnRenderFlagsExtension::FlagSet(Verse.PawnRenderFlags flags,
Verse.PawnRenderFlags flag)
IL_02C2: ldarg.s 6
IL_02C4: ldc.i4.1
IL_02C5: call static System.Boolean
Verse.PawnRenderFlagsExtension::FlagSet(Verse.PawnRenderFlags flags,
Verse.PawnRenderFlags flag)
IL_02CA: ldarg.s 6
IL_02CC: ldc.i4.s 16
IL_02CE: call static System.Boolean
Verse.PawnRenderFlagsExtension::FlagSet(Verse.PawnRenderFlags flags,
Verse.PawnRenderFlags flag)
IL_02D3: ldc.i4.0
IL_02D4: ceq
IL_02D6: callvirt UnityEngine.Material Verse.PawnGraphicSet::HeadMatAt(Verse.Rot4
facing, Verse.RotDrawMode bodyCondition, System.Boolean stump, System.Boolean
portrait, System.Boolean allowOverride)
IL_02DB: stloc.s 11 (UnityEngine.Material)
IL_02DD: ldloc.s 11 (UnityEngine.Material)
IL_02DF: ldnull
IL_02E0: call static System.Boolean
UnityEngine.Object::op_Inequality(UnityEngine.Object x, UnityEngine.Object y)
IL_02E5: brfalse => Label19
IL_02EA: ldarg.0
IL_02EB: ldfld Verse.Pawn Verse.PawnRenderer::pawn
IL_02F0: call static Verse.GraphicMeshSet
Verse.HumanlikeMeshPoolUtility::GetHumanlikeHeadSetForPawn(Verse.Pawn pawn)
IL_02F5: ldloc.s 9 (Verse.Rot4)
IL_02F7: callvirt UnityEngine.Mesh Verse.GraphicMeshSet::MeshAt(Verse.Rot4 rot)
IL_02FC: stloc.s 10 (UnityEngine.Mesh)
IL_02FE: ldloc.s 10 (UnityEngine.Mesh)
IL_0300: ldloc.3
IL_0301: ldloc.s 8 (UnityEngine.Vector3)
IL_0303: call static UnityEngine.Vector3
UnityEngine.Vector3::op_Addition(UnityEngine.Vector3 a, UnityEngine.Vector3 b)
IL_0308: ldloc.0
IL_0309: ldloc.s 11 (UnityEngine.Material)
IL_030B: ldarg.s 6
IL_030D: ldc.i4.8
IL_030E: call static System.Boolean
Verse.PawnRenderFlagsExtension::FlagSet(Verse.PawnRenderFlags flags,
Verse.PawnRenderFlags flag)
IL_0313: call static System.Void
FacialAnimation.HarmonyPatches::DrawFace(UnityEngine.Mesh mesh, UnityEngine.Vector3
pos, UnityEngine.Quaternion quaternion, UnityEngine.Material mat, System.Boolean
portrait)
IL_0318: Label18
IL_0318: Label19
IL_0318: ldarg.s 5
IL_031A: brtrue => Label20
IL_031F: ldarg.0
IL_0320: ldfld RimWorld.PawnWoundDrawer Verse.PawnRenderer::woundOverlays
IL_0325: ldloc.s 6 (UnityEngine.Vector3)
IL_0327: ldloc.s 5 (UnityEngine.Mesh)
IL_0329: ldloc.0
IL_032A: ldarg.s 6
IL_032C: ldc.i4.8
IL_032D: call static System.Boolean
Verse.PawnRenderFlagsExtension::FlagSet(Verse.PawnRenderFlags flags,
Verse.PawnRenderFlags flag)
IL_0332: ldc.i4.1
IL_0333: ldloc.s 9 (Verse.Rot4)
IL_0335: ldloca.s 12 (System.Nullable`1[System.Boolean])
IL_0337: initobj System.Nullable`1[System.Boolean]
IL_033D: ldloc.s 12 (System.Nullable`1[System.Boolean])
IL_033F: callvirt System.Void
RimWorld.PawnOverlayDrawer::RenderPawnOverlay(UnityEngine.Vector3 drawLoc,
UnityEngine.Mesh bodyMesh, UnityEngine.Quaternion quat, System.Boolean drawNow,
RimWorld.OverlayLayer layer, Verse.Rot4 pawnRot, System.Nullable`1<System.Boolean>
overApparel)
IL_0344: Label20
IL_0344: ldarg.0
IL_0345: ldfld Verse.PawnGraphicSet Verse.PawnRenderer::graphics
IL_034A: ldfld Verse.Graphic Verse.PawnGraphicSet::headGraphic
IL_034F: brfalse => Label21
IL_0354: ldarg.0
IL_0355: ldloc.1
IL_0356: ldloc.s 8 (UnityEngine.Vector3)
IL_0358: ldarg.2
IL_0359: ldarg.s 4
IL_035B: ldloc.s 9 (Verse.Rot4)
IL_035D: ldarg.s 5
IL_035F: ldarg.s 6
IL_0361: ldarg.3
IL_0362: call System.Void
Verse.PawnRenderer::DrawHeadHair(UnityEngine.Vector3 rootLoc, UnityEngine.Vector3
headOffset, System.Single angle, Verse.Rot4 bodyFacing, Verse.Rot4 headFacing,
Verse.RotDrawMode bodyDrawType, Verse.PawnRenderFlags flags, System.Boolean
bodyDrawn)
IL_0367: Label21
IL_0367: ldarg.s 6
IL_0369: dup
IL_036A: ldloc.1
IL_036B: ldloc.s 8
IL_036D: ldarg.0
IL_036E: ldfld Verse.Pawn Verse.PawnRenderer::pawn
IL_0373: ldloc.0
IL_0374: ldarg.s 4
IL_0376: call static System.Void
AlienRace.HarmonyPatches::DrawAddons(Verse.PawnRenderFlags renderFlags,
UnityEngine.Vector3 vector, UnityEngine.Vector3 headOffset, Verse.Pawn pawn,
UnityEngine.Quaternion quat, Verse.Rot4 rotation)
IL_037B: ldc.i4.1
IL_037C: call static System.Boolean
Verse.PawnRenderFlagsExtension::FlagSet(Verse.PawnRenderFlags flags,
Verse.PawnRenderFlags flag)
IL_0381: brtrue => Label22
IL_0386: ldarg.0
IL_0387: ldfld Verse.Pawn Verse.PawnRenderer::pawn
IL_038C: callvirt Verse.RaceProperties Verse.Pawn::get_RaceProps()
IL_0391: callvirt System.Boolean Verse.RaceProperties::get_Animal()
IL_0396: brfalse => Label23
IL_039B: ldarg.0
IL_039C: ldfld Verse.Pawn Verse.PawnRenderer::pawn
IL_03A1: ldfld Verse.Pawn_InventoryTracker Verse.Pawn::inventory
IL_03A6: brfalse => Label24
IL_03AB: ldarg.0
IL_03AC: ldfld Verse.Pawn Verse.PawnRenderer::pawn
IL_03B1: ldfld Verse.Pawn_InventoryTracker Verse.Pawn::inventory
IL_03B6: ldfld Verse.ThingOwner`1<Verse.Thing>
Verse.Pawn_InventoryTracker::innerContainer
IL_03BB: callvirt abstract virtual System.Int32 Verse.ThingOwner::get_Count()
IL_03C0: ldc.i4.0
IL_03C1: ble => Label25
IL_03C6: ldarg.0
IL_03C7: ldfld Verse.PawnGraphicSet Verse.PawnRenderer::graphics
IL_03CC: ldfld Verse.Graphic Verse.PawnGraphicSet::packGraphic
IL_03D1: brfalse => Label26
IL_03D6: ldloc.s 5 (UnityEngine.Mesh)
IL_03D8: ldloc.2
IL_03D9: ldloc.0
IL_03DA: call static UnityEngine.Vector3 UnityEngine.Vector3::get_one()
IL_03DF: call static UnityEngine.Matrix4x4
UnityEngine.Matrix4x4::TRS(UnityEngine.Vector3 pos, UnityEngine.Quaternion q,
UnityEngine.Vector3 s)
IL_03E4: ldarg.0
IL_03E5: ldfld Verse.PawnGraphicSet Verse.PawnRenderer::graphics
IL_03EA: ldfld Verse.Graphic Verse.PawnGraphicSet::packGraphic
IL_03EF: ldarg.s 4
IL_03F1: ldnull
IL_03F2: callvirt virtual UnityEngine.Material Verse.Graphic::MatAt(Verse.Rot4
rot, Verse.Thing thing)
IL_03F7: ldarg.s 6
IL_03F9: ldc.i4.8
IL_03FA: call static System.Boolean
Verse.PawnRenderFlagsExtension::FlagSet(Verse.PawnRenderFlags flags,
Verse.PawnRenderFlags flag)
IL_03FF: call static System.Void
Verse.GenDraw::DrawMeshNowOrLater(UnityEngine.Mesh mesh, UnityEngine.Matrix4x4
matrix, UnityEngine.Material mat, System.Boolean drawNow)
IL_0404: Label22
IL_0404: Label23
IL_0404: Label24
IL_0404: Label25
IL_0404: Label26
IL_0404: ldarg.s 5
IL_0406: brtrue => Label27
IL_040B: ldarg.0
IL_040C: ldfld RimWorld.PawnFirefoamDrawer
Verse.PawnRenderer::firefoamOverlays
IL_0411: ldfld System.Boolean RimWorld.PawnFirefoamDrawer::IsCoveredInFoam
IL_0416: brfalse => Label28
IL_041B: ldloc.1
IL_041C: stloc.s 13 (UnityEngine.Vector3)
IL_041E: ldloca.s 13 (UnityEngine.Vector3)
IL_0420: ldflda System.Single UnityEngine.Vector3::y
IL_0425: dup
IL_0426: ldind.r4
IL_0427: ldc.r4 0.03330116
IL_042C: add
IL_042D: stind.r4
IL_042E: ldarg.3
IL_042F: brfalse => Label29
IL_0434: ldarg.0
IL_0435: ldfld RimWorld.PawnFirefoamDrawer
Verse.PawnRenderer::firefoamOverlays
IL_043A: ldloc.s 13 (UnityEngine.Vector3)
IL_043C: ldloc.s 5 (UnityEngine.Mesh)
IL_043E: ldloc.0
IL_043F: ldarg.s 6
IL_0441: ldc.i4.8
IL_0442: call static System.Boolean
Verse.PawnRenderFlagsExtension::FlagSet(Verse.PawnRenderFlags flags,
Verse.PawnRenderFlags flag)
IL_0447: ldc.i4.0
IL_0448: ldarg.s 4
IL_044A: ldloca.s 12 (System.Nullable`1[System.Boolean])
IL_044C: initobj System.Nullable`1[System.Boolean]
IL_0452: ldloc.s 12 (System.Nullable`1[System.Boolean])
IL_0454: callvirt System.Void
RimWorld.PawnOverlayDrawer::RenderPawnOverlay(UnityEngine.Vector3 drawLoc,
UnityEngine.Mesh bodyMesh, UnityEngine.Quaternion quat, System.Boolean drawNow,
RimWorld.OverlayLayer layer, Verse.Rot4 pawnRot, System.Nullable`1<System.Boolean>
overApparel)
IL_0459: Label29
IL_0459: ldloc.s 10 (UnityEngine.Mesh)
IL_045B: ldnull
IL_045C: call static System.Boolean
UnityEngine.Object::op_Inequality(UnityEngine.Object x, UnityEngine.Object y)
IL_0461: brfalse => Label30
IL_0466: ldloc.3
IL_0467: ldloc.s 8 (UnityEngine.Vector3)
IL_0469: call static UnityEngine.Vector3
UnityEngine.Vector3::op_Addition(UnityEngine.Vector3 a, UnityEngine.Vector3 b)
IL_046E: stloc.s 13 (UnityEngine.Vector3)
IL_0470: ldloca.s 13 (UnityEngine.Vector3)
IL_0472: ldflda System.Single UnityEngine.Vector3::y
IL_0477: dup
IL_0478: ldind.r4
IL_0479: ldc.r4 0.03330116
IL_047E: add
IL_047F: stind.r4
IL_0480: ldarg.0
IL_0481: ldfld RimWorld.PawnFirefoamDrawer
Verse.PawnRenderer::firefoamOverlays
IL_0486: ldloc.s 13 (UnityEngine.Vector3)
IL_0488: ldloc.s 10 (UnityEngine.Mesh)
IL_048A: ldloc.0
IL_048B: ldarg.s 6
IL_048D: ldc.i4.8
IL_048E: call static System.Boolean
Verse.PawnRenderFlagsExtension::FlagSet(Verse.PawnRenderFlags flags,
Verse.PawnRenderFlags flag)
IL_0493: ldc.i4.1
IL_0494: ldarg.s 4
IL_0496: ldloca.s 12 (System.Nullable`1[System.Boolean])
IL_0498: initobj System.Nullable`1[System.Boolean]
IL_049E: ldloc.s 12 (System.Nullable`1[System.Boolean])
IL_04A0: callvirt System.Void
RimWorld.PawnOverlayDrawer::RenderPawnOverlay(UnityEngine.Vector3 drawLoc,
UnityEngine.Mesh bodyMesh, UnityEngine.Quaternion quat, System.Boolean drawNow,
RimWorld.OverlayLayer layer, Verse.Rot4 pawnRot, System.Nullable`1<System.Boolean>
overApparel)
IL_04A5: Label27
IL_04A5: Label28
IL_04A5: Label30
IL_04A5: ldarg.s 6
IL_04A7: ldc.i4.1
IL_04A8: call static System.Boolean
Verse.PawnRenderFlagsExtension::FlagSet(Verse.PawnRenderFlags flags,
Verse.PawnRenderFlags flag)
IL_04AD: brtrue => Label31
IL_04B2: ldarg.s 6
IL_04B4: ldc.i4.s 16
IL_04B6: call static System.Boolean
Verse.PawnRenderFlagsExtension::FlagSet(Verse.PawnRenderFlags flags,
Verse.PawnRenderFlags flag)
IL_04BB: brtrue => Label32
IL_04C0: ldarg.0
IL_04C1: ldloc.1
IL_04C2: ldarg.2
IL_04C3: ldarg.s 4
IL_04C5: ldarg.s 6
IL_04C7: call System.Void
Verse.PawnRenderer::DrawDynamicParts(UnityEngine.Vector3 rootLoc, System.Single
angle, Verse.Rot4 pawnRotation, Verse.PawnRenderFlags flags)
IL_04CC: // end original
IL_04CC: Label31
IL_04CC: Label32
IL_04CC: Label0
IL_04CC: call static System.Void
FacialAnimation.HarmonyPatches::PostfixRenderPawnInternal()
IL_04D1: ret
DONE

### Patch: static Verse.PawnGenerationRequest


Verse.StartingPawnUtility::get_DefaultStartingPawnRequest()
### Replacement: static Verse.PawnGenerationRequest
Verse.StartingPawnUtility::Verse.StartingPawnUtility.get_DefaultStartingPawnRequest
_Patch0()
IL_0000: Local var 0: System.Nullable`1<System.Single>
IL_0000: Local var 1: System.Nullable`1<Verse.Gender>
IL_0000: Local var 2: System.Nullable`1<Verse.FloatRange>
IL_0000: // start original
IL_0000: call static Verse.GameInitData Verse.Find::get_GameInitData()
IL_0005: ldfld Verse.PawnKindDef Verse.GameInitData::startingPawnKind
IL_000A: dup
IL_000B: brtrue => Label0
IL_0010: pop
IL_0011: call static RimWorld.Faction RimWorld.Faction::get_OfPlayer()
IL_0016: ldfld RimWorld.FactionDef RimWorld.Faction::def
IL_001B: ldfld Verse.PawnKindDef RimWorld.FactionDef::basicMemberKind
IL_0020: call static Verse.PawnKindDef
AlienRace.HarmonyPatches::NewGeneratedStartingPawnHelper(Verse.PawnKindDef
basicMember)
IL_0025: Label0
IL_0025: call static RimWorld.Faction RimWorld.Faction::get_OfPlayer()
IL_002A: ldc.i4.1
IL_002B: ldc.i4.m1
IL_002C: ldc.i4.1
IL_002D: ldc.i4.0
IL_002E: ldc.i4.0
IL_002F: ldc.i4.1
IL_0030: call static System.Boolean RimWorld.TutorSystem::get_TutorialMode()
IL_0035: ldc.r4 20
IL_003A: ldc.i4.0
IL_003B: ldc.i4.1
IL_003C: ldc.i4.1
IL_003D: ldc.i4.1
IL_003E: ldc.i4.1
IL_003F: ldc.i4.0
IL_0040: ldc.i4.0
IL_0041: ldc.i4.0
IL_0042: ldc.i4.0
IL_0043: ldc.r4 0
IL_0048: ldc.r4 0
IL_004D: ldnull
IL_004E: ldc.r4 1
IL_0053: ldnull
IL_0054: ldnull
IL_0055: ldnull
IL_0056: ldnull
IL_0057: ldloca.s 0 (System.Nullable`1[System.Single])
IL_0059: initobj System.Nullable`1[System.Single]
IL_005F: ldloc.0
IL_0060: ldloca.s 0 (System.Nullable`1[System.Single])
IL_0062: initobj System.Nullable`1[System.Single]
IL_0068: ldloc.0
IL_0069: ldloca.s 0 (System.Nullable`1[System.Single])
IL_006B: initobj System.Nullable`1[System.Single]
IL_0071: ldloc.0
IL_0072: ldloca.s 1 (System.Nullable`1[Verse.Gender])
IL_0074: initobj System.Nullable`1[Verse.Gender]
IL_007A: ldloc.1
IL_007B: ldnull
IL_007C: ldnull
IL_007D: ldnull
IL_007E: ldnull
IL_007F: ldc.i4.0
IL_0080: ldc.i4.0
IL_0081: ldc.i4.0
IL_0082: ldc.i4.0
IL_0083: ldnull
IL_0084: ldnull
IL_0085: call static System.Boolean Verse.ModsConfig::get_BiotechActive()
IL_008A: brtrue => Label1
IL_008F: ldnull
IL_0090: br => Label2
IL_0095: Label1
IL_0095: ldsfld RimWorld.XenotypeDef RimWorld.XenotypeDefOf::Baseliner
IL_009A: Label2
IL_009A: ldnull
IL_009B: ldnull
IL_009C: ldc.r4 0
IL_00A1: ldc.i4.8
IL_00A2: ldnull
IL_00A3: call static System.Boolean Verse.ModsConfig::get_BiotechActive()
IL_00A8: brtrue => Label3
IL_00AD: ldloca.s 2 (System.Nullable`1[Verse.FloatRange])
IL_00AF: initobj System.Nullable`1[Verse.FloatRange]
IL_00B5: ldloc.2
IL_00B6: br => Label4
IL_00BB: Label3
IL_00BB: ldsfld Verse.FloatRange
Verse.StartingPawnUtility::ExcludeBiologicalAgeRange
IL_00C0: newobj System.Void
System.Nullable`1<Verse.FloatRange>::.ctor(Verse.FloatRange value)
IL_00C5: Label4
IL_00C5: ldloca.s 2 (System.Nullable`1[Verse.FloatRange])
IL_00C7: initobj System.Nullable`1[Verse.FloatRange]
IL_00CD: ldloc.2
IL_00CE: ldc.i4.0
IL_00CF: newobj System.Void
Verse.PawnGenerationRequest::.ctor(Verse.PawnKindDef kind, RimWorld.Faction
faction, RimWorld.PawnGenerationContext context, System.Int32 tile, System.Boolean
forceGenerateNewPawn, System.Boolean allowDead, System.Boolean allowDowned,
System.Boolean canGeneratePawnRelations, System.Boolean mustBeCapableOfViolence,
System.Single colonistRelationChanceFactor, System.Boolean
forceAddFreeWarmLayerIfNeeded, System.Boolean allowGay, System.Boolean
allowPregnant, System.Boolean allowFood, System.Boolean allowAddictions,
System.Boolean inhabitant, System.Boolean certainlyBeenInCryptosleep,
System.Boolean forceRedressWorldPawnIfFormerColonist, System.Boolean
worldPawnFactionDoesntMatter, System.Single biocodeWeaponChance, System.Single
biocodeApparelChance, Verse.Pawn extraPawnForExtraRelationChance, System.Single
relationWithExtraPawnChanceFactor, System.Predicate`1<Verse.Pawn> validatorPreGear,
System.Predicate`1<Verse.Pawn> validatorPostGear,
System.Collections.Generic.IEnumerable`1<RimWorld.TraitDef> forcedTraits,
System.Collections.Generic.IEnumerable`1<RimWorld.TraitDef> prohibitedTraits,
System.Nullable`1<System.Single> minChanceToRedressWorldPawn,
System.Nullable`1<System.Single> fixedBiologicalAge,
System.Nullable`1<System.Single> fixedChronologicalAge,
System.Nullable`1<Verse.Gender> fixedGender, System.String fixedLastName,
System.String fixedBirthName, RimWorld.RoyalTitleDef fixedTitle, RimWorld.Ideo
fixedIdeo, System.Boolean forceNoIdeo, System.Boolean forceNoBackstory,
System.Boolean forbidAnyTitle, System.Boolean forceDead,
System.Collections.Generic.List`1<Verse.GeneDef> forcedXenogenes,
System.Collections.Generic.List`1<Verse.GeneDef> forcedEndogenes,
RimWorld.XenotypeDef forcedXenotype, RimWorld.CustomXenotype forcedCustomXenotype,
System.Collections.Generic.List`1<RimWorld.XenotypeDef> allowedXenotypes,
System.Single forceBaselinerChance, Verse.DevelopmentalStage developmentalStages,
System.Func`2<RimWorld.XenotypeDef, Verse.PawnKindDef> pawnKindDefGetter,
System.Nullable`1<Verse.FloatRange> excludeBiologicalAgeRange,
System.Nullable`1<Verse.FloatRange> biologicalAgeRange, System.Boolean
forceRecruitable)
IL_00D4: // end original
IL_00D4: ret
DONE

### Patch: static System.Void


RimWorld.PawnBioAndNameGenerator::GiveAppropriateBioAndNameTo(Verse.Pawn pawn,
System.String requiredLastName, RimWorld.FactionDef factionType, System.Boolean
forceNoBackstory, System.Boolean newborn, RimWorld.XenotypeDef xenotype)
### Replacement: static System.Void
RimWorld.PawnBioAndNameGenerator::RimWorld.PawnBioAndNameGenerator.GiveAppropriateB
ioAndNameTo_Patch1(Verse.Pawn pawn, System.String requiredLastName,
RimWorld.FactionDef factionType, System.Boolean forceNoBackstory, System.Boolean
newborn, RimWorld.XenotypeDef xenotype)
IL_0000: Local var 0:
System.Collections.Generic.List`1<RimWorld.BackstoryCategoryFilter>
IL_0000: Local var 1: Verse.NameTriple
IL_0000: Local var 2: Verse.TaggedString
IL_0000: // start original
IL_0000: ldarg.0
IL_0001: ldarg.2
IL_0002: call static
System.Collections.Generic.List`1<RimWorld.BackstoryCategoryFilter>
RimWorld.PawnBioAndNameGenerator::GetBackstoryCategoryFiltersFor(Verse.Pawn pawn,
RimWorld.FactionDef faction)
IL_0007: stloc.0
IL_0008: ldarg.3
IL_0009: brtrue => Label0
IL_000E: ldarg.0
IL_000F: callvirt Verse.DevelopmentalStage Verse.Pawn::get_DevelopmentalStage()
IL_0014: call static System.Boolean
Verse.DevelopmentalStageExtensions::Baby(Verse.DevelopmentalStage
developmentalStage)
IL_0019: brtrue => Label1
IL_001E: call static System.Single Verse.Rand::get_Value()
IL_0023: ldc.r4 0.25
IL_0028: blt => Label2
IL_002D: ldarg.0
IL_002E: ldfld Verse.PawnKindDef Verse.Pawn::kindDef
IL_0033: ldfld System.Boolean Verse.PawnKindDef::factionLeader
IL_0038: brfalse => Label3
IL_003D: Label2
IL_003D: ldarg.0
IL_003E: ldarg.1
IL_003F: ldloc.0
IL_0040: call static System.Boolean
RimWorld.PawnBioAndNameGenerator::TryGiveSolidBioTo(Verse.Pawn pawn, System.String
requiredLastName,
System.Collections.Generic.List`1<RimWorld.BackstoryCategoryFilter>
backstoryCategories)
IL_0045: brfalse => Label4
IL_004A: br => Label8
IL_004F: Label0
IL_004F: Label1
IL_004F: Label3
IL_004F: Label4
IL_004F: ldarg.0
IL_0050: ldarg.2
IL_0051: ldarg.1
IL_0052: ldloc.0
IL_0053: ldarg.3
IL_0054: ldc.i4.0
IL_0055: ldarg.s 5
IL_0057: call static System.Void
RimWorld.PawnBioAndNameGenerator::GiveShuffledBioTo(Verse.Pawn pawn,
RimWorld.FactionDef factionType, System.String requiredLastName,
System.Collections.Generic.List`1<RimWorld.BackstoryCategoryFilter>
backstoryCategories, System.Boolean forceNoBackstory, System.Boolean forceNoNick,
RimWorld.XenotypeDef xenotype)
IL_005C: ldarg.s 4
IL_005E: brfalse => Label5
IL_0063: ldarg.0
IL_0064: callvirt Verse.Name Verse.Pawn::get_Name()
IL_0069: isinst Verse.NameTriple
IL_006E: dup
IL_006F: stloc.1
IL_0070: brfalse => Label6
IL_0075: ldarg.0
IL_0076: callvirt virtual RimWorld.Faction Verse.Thing::get_Faction()
IL_007B: call static System.Boolean
RimWorld.FactionUtility::IsPlayerSafe(RimWorld.Faction faction)
IL_0080: brfalse => Label7
IL_0085: ldarg.0
IL_0086: ldstr "Baby"
IL_008B: call static Verse.TaggedString
Verse.Translator::Translate(System.String key)
IL_0090: stloc.2
IL_0091: ldloca.s 2 (Verse.TaggedString)
IL_0093: call Verse.TaggedString Verse.TaggedString::CapitalizeFirst()
IL_0098: call static System.String
Verse.TaggedString::op_Implicit(Verse.TaggedString taggedString)
IL_009D: ldnull
IL_009E: ldloc.1
IL_009F: callvirt System.String Verse.NameTriple::get_Last()
IL_00A4: newobj System.Void Verse.NameTriple::.ctor(System.String first,
System.String nick, System.String last)
IL_00A9: callvirt System.Void Verse.Pawn::set_Name(Verse.Name value)
IL_00AE: br => Label9
IL_00B3: Label7
IL_00B3: ldarg.0
IL_00B4: ldloc.1
IL_00B5: callvirt System.String Verse.NameTriple::get_First()
IL_00BA: ldnull
IL_00BB: ldloc.1
IL_00BC: callvirt System.String Verse.NameTriple::get_Last()
IL_00C1: newobj System.Void Verse.NameTriple::.ctor(System.String first,
System.String nick, System.String last)
IL_00C6: callvirt System.Void Verse.Pawn::set_Name(Verse.Name value)
IL_00CB: // end original
IL_00CB: Label5
IL_00CB: Label6
IL_00CB: Label8
IL_00CB: Label9
IL_00CB: ldarg 0
IL_00CF: call static System.Void
AlienRace.HarmonyPatches::GiveAppropriateBioAndNameToPostfix(Verse.Pawn pawn)
IL_00D4: ret
DONE

### Patch: static Verse.Name


RimWorld.PawnBioAndNameGenerator::GeneratePawnName(Verse.Pawn pawn,
RimWorld.NameStyle style, System.String forcedLastName, System.Boolean forceNoNick,
RimWorld.XenotypeDef xenotype)
### Replacement: static Verse.Name
RimWorld.PawnBioAndNameGenerator::RimWorld.PawnBioAndNameGenerator.GeneratePawnName
_Patch2(Verse.Pawn pawn, RimWorld.NameStyle style, System.String forcedLastName,
System.Boolean forceNoNick, RimWorld.XenotypeDef xenotype)
IL_0000: Local var 0: System.Collections.Generic.List`1/Enumerator<Verse.Pawn>
IL_0000: Local var 1: Verse.NameSingle
IL_0000: Local var 2: System.Int32
IL_0000: Local var 3: System.String
IL_0000: Local var 4: Verse.Name
IL_0000: Local var 5: Verse.Name
IL_0000: Local var 6: System.Boolean
IL_0000: ldnull
IL_0001: stloc 5 (Verse.Name)
IL_0005: ldc.i4 0
IL_000A: stloc 6 (System.Boolean)
IL_000E: ldc.i4.1
IL_000F: stloc 6 (System.Boolean)
IL_0013: ldloc 6 (System.Boolean)
IL_0017: brfalse => Label1
IL_001C: ldloca 5 (Verse.Name)
IL_0020: ldarg 0
IL_0024: ldarg 1
IL_0028: ldarg 2
IL_002C: call static System.Boolean
AlienRace.HarmonyPatches::GeneratePawnNamePrefix(Verse.Name& __result, Verse.Pawn
pawn, RimWorld.NameStyle style, System.String forcedLastName)
IL_0031: stloc 6 (System.Boolean)
IL_0035: Label1
IL_0035: nop
IL_0036: ldloc 6 (System.Boolean)
IL_003A: brfalse => Label0
IL_003F: // start original
IL_003F: ldarg.1
IL_0040: brtrue => Label2
IL_0045: ldarg.0
IL_0046: ldfld Verse.ThingDef Verse.Thing::def
IL_004B: ldarg.0
IL_004C: ldfld Verse.PawnKindDef Verse.Pawn::kindDef
IL_0051: ldarg.0
IL_0052: ldfld Verse.Gender Verse.Pawn::gender
IL_0057: callvirt Verse.RulePackDef Verse.PawnKindDef::GetNameMaker(Verse.Gender
gender)
IL_005C: ldarg.0
IL_005D: ldfld RimWorld.Pawn_StoryTracker Verse.Pawn::story
IL_0062: ldarg.s 4
IL_0064: ldarg.0
IL_0065: callvirt Verse.RaceProperties Verse.Pawn::get_RaceProps()
IL_006A: ldarg.0
IL_006B: ldfld Verse.Gender Verse.Pawn::gender
IL_0070: callvirt Verse.RulePackDef
Verse.RaceProperties::GetNameGenerator(Verse.Gender gender)
IL_0075: ldarg.0
IL_0076: callvirt virtual RimWorld.Faction Verse.Thing::get_Faction()
IL_007B: dup
IL_007C: brtrue => Label3
IL_0081: pop
IL_0082: ldnull
IL_0083: br => Label4
IL_0088: Label3
IL_0088: ldfld RimWorld.FactionIdeosTracker RimWorld.Faction::ideos
IL_008D: dup
IL_008E: brtrue => Label5
IL_0093: pop
IL_0094: ldnull
IL_0095: br => Label6
IL_009A: Label5
IL_009A: call RimWorld.CultureDef
RimWorld.FactionIdeosTracker::get_PrimaryCulture()
IL_009F: Label4
IL_009F: Label6
IL_009F: ldarg.0
IL_00A0: ldfld Verse.Gender Verse.Pawn::gender
IL_00A5: ldarg.0
IL_00A6: callvirt Verse.RaceProperties Verse.Pawn::get_RaceProps()
IL_00AB: ldfld RimWorld.PawnNameCategory Verse.RaceProperties::nameCategory
IL_00B0: ldarg.2
IL_00B1: ldarg.3
IL_00B2: call static Verse.Name
RimWorld.PawnBioAndNameGenerator::GenerateFullPawnName(Verse.ThingDef genFor,
Verse.RulePackDef pawnKindNameMaker, RimWorld.Pawn_StoryTracker story,
RimWorld.XenotypeDef xenotype, Verse.RulePackDef nameGenner, RimWorld.CultureDef
primaryCulture, Verse.Gender gender, RimWorld.PawnNameCategory nameCategory,
System.String forcedLastName, System.Boolean forceNoNick)
IL_00B7: br => Label15
IL_00BC: Label2
IL_00BC: ldarg.1
IL_00BD: ldc.i4.1
IL_00BE: bne.un => Label7
.try
{
IL_00C3: call static System.Collections.Generic.List`1<Verse.Pawn>
RimWorld.PawnsFinder::get_AllMapsWorldAndTemporary_AliveOrDead()
IL_00C8: callvirt System.Collections.Generic.Enumerator<Verse.Pawn>
System.Collections.Generic.List`1<Verse.Pawn>::GetEnumerator()
IL_00CD: stloc.0
.try
{
IL_00CE: br => Label8
IL_00D3: Label10
IL_00D3: ldloca.s 0
(System.Collections.Generic.List`1+Enumerator[Verse.Pawn])
IL_00D5: call virtual Verse.Pawn
System.Collections.Generic.Enumerator<Verse.Pawn>::get_Current()
IL_00DA: callvirt Verse.Name Verse.Pawn::get_Name()
IL_00DF: isinst Verse.NameSingle
IL_00E4: stloc.1
IL_00E5: ldloc.1
IL_00E6: brfalse => Label9
IL_00EB: ldsfld System.Collections.Generic.HashSet`1<System.String>
RimWorld.PawnBioAndNameGenerator::usedNamesTmp
IL_00F0: ldloc.1
IL_00F1: callvirt System.String Verse.NameSingle::get_Name()
IL_00F6: callvirt virtual System.Boolean
System.Collections.Generic.HashSet`1<System.String>::Add(System.String item)
IL_00FB: pop
IL_00FC: Label8
IL_00FC: Label9
IL_00FC: ldloca.s 0
(System.Collections.Generic.List`1+Enumerator[Verse.Pawn])
IL_00FE: call virtual System.Boolean
System.Collections.Generic.Enumerator<Verse.Pawn>::MoveNext()
IL_0103: brtrue => Label10
IL_0108: leave => Label11
IL_010D: leave => (autogenerated)
} // end try
.finally
{
IL_0112: ldloca.s 0
(System.Collections.Generic.List`1+Enumerator[Verse.Pawn])
IL_0114: constrained.
System.Collections.Generic.List`1+Enumerator[Verse.Pawn]
IL_011A: callvirt abstract virtual System.Void
System.IDisposable::Dispose()
IL_011F: endfinally
IL_0120: leave => (autogenerated)
} // end handler
IL_0121: Label11
IL_0121: ldc.i4.1
IL_0122: stloc.2
IL_0123: Label14
IL_0123: ldstr "{0} {1}"
IL_0128: ldarg.0
IL_0129: callvirt System.String Verse.Pawn::get_KindLabel()
IL_012E: ldloca.s 2 (System.Int32)
IL_0130: call virtual System.String System.Int32::ToString()
IL_0135: call static System.String System.String::Format(System.String
format, System.Object arg0, System.Object arg1)
IL_013A: stloc.3
IL_013B: ldsfld System.Collections.Generic.HashSet`1<System.String>
RimWorld.PawnBioAndNameGenerator::usedNamesTmp
IL_0140: ldloc.3
IL_0141: callvirt virtual System.Boolean
System.Collections.Generic.HashSet`1<System.String>::Contains(System.String item)
IL_0146: brtrue => Label12
IL_014B: ldloc.3
IL_014C: ldc.i4.1
IL_014D: newobj System.Void Verse.NameSingle::.ctor(System.String name,
System.Boolean numerical)
IL_0152: stloc.s 4 (Verse.Name)
IL_0154: leave => Label13
IL_0159: Label12
IL_0159: ldloc.2
IL_015A: ldc.i4.1
IL_015B: add
IL_015C: stloc.2
IL_015D: br => Label14
IL_0162: leave => (autogenerated)
} // end try
.finally
{
IL_0167: ldsfld System.Collections.Generic.HashSet`1<System.String>
RimWorld.PawnBioAndNameGenerator::usedNamesTmp
IL_016C: callvirt virtual System.Void
System.Collections.Generic.HashSet`1<System.String>::Clear()
IL_0171: endfinally
IL_0172: leave => (autogenerated)
} // end handler
IL_0173: Label7
IL_0173: newobj System.Void System.InvalidOperationException::.ctor()
IL_0178: throw
IL_0179: Label13
IL_0179: ldloc.s 4 (Verse.Name)
IL_017B: // end original
IL_017B: Label15
IL_017B: stloc 5 (Verse.Name)
IL_017F: Label0
IL_017F: ldarg 0
IL_0183: ldloca 5 (Verse.Name)
IL_0187: ldarg 1
IL_018B: ldarg 2
IL_018F: call static System.Void
ATReforged.GeneratePawnName_Patch::Listener(Verse.Pawn pawn, Verse.Name& __result,
RimWorld.NameStyle style, System.String forcedLastName)
IL_0194: ldloc 5 (Verse.Name)
IL_0198: ret
DONE

### Patch: virtual System.Boolean RimWorld.Page_ConfigureStartingPawns::CanDoNext()


### Replacement: static System.Boolean
RimWorld.Page_ConfigureStartingPawns::RimWorld.Page_ConfigureStartingPawns.CanDoNex
t_Patch1(RimWorld.Page_ConfigureStartingPawns this)
IL_0000: Local var 0: Verse.AcceptanceReport
IL_0000: Local var 1: Verse.WorkTypeDef
IL_0000: Local var 2: System.Collections.Generic.List`1/Enumerator<Verse.Pawn>
IL_0000: Local var 3: System.Boolean
IL_0000: Local var 4: System.Boolean
IL_0000: ldc.i4 0
IL_0005: stloc 4 (System.Boolean)
IL_0009: // start original
IL_0009: ldarg.0
IL_000A: call virtual System.Boolean RimWorld.Page::CanDoNext()
IL_000F: brtrue => Label0
IL_0014: ldc.i4.0
IL_0015: br => Label9
IL_001A: Label0
IL_001A: call static System.Boolean RimWorld.TutorSystem::get_TutorialMode()
IL_001F: brfalse => Label1
IL_0024: call static
System.Collections.Generic.IEnumerable`1<Verse.WorkTypeDef>
Verse.StartingPawnUtility::RequiredWorkTypesDisabledForEveryone()
IL_0029: call static Verse.WorkTypeDef
System.Linq.Enumerable::FirstOrDefault(System.Collections.Generic.IEnumerable`1<Ver
se.WorkTypeDef> source)
IL_002E: stloc.1
IL_002F: ldloc.1
IL_0030: brfalse => Label2
IL_0035: ldstr "RequiredWorkTypeDisabledForEveryone"
IL_003A: call static Verse.TaggedString
Verse.Translator::Translate(System.String key)
IL_003F: ldstr ": "
IL_0044: call static Verse.TaggedString
Verse.TaggedString::op_Addition(Verse.TaggedString t1, System.String t2)
IL_0049: ldloc.1
IL_004A: ldfld System.String Verse.WorkTypeDef::gerundLabel
IL_004F: call static System.String
Verse.GenText::CapitalizeFirst(System.String str)
IL_0054: call static Verse.TaggedString
Verse.TaggedString::op_Addition(Verse.TaggedString t1, System.String t2)
IL_0059: ldstr "."
IL_005E: call static Verse.TaggedString
Verse.TaggedString::op_Addition(Verse.TaggedString t1, System.String t2)
IL_0063: call static System.String
Verse.TaggedString::op_Implicit(Verse.TaggedString taggedString)
IL_0068: ldsfld Verse.MessageTypeDef RimWorld.MessageTypeDefOf::RejectInput
IL_006D: ldc.i4.0
IL_006E: call static System.Void Verse.Messages::Message(System.String text,
Verse.MessageTypeDef def, System.Boolean historical)
IL_0073: ldc.i4.0
IL_0074: br => Label10
IL_0079: Label1
IL_0079: Label2
IL_0079: call static Verse.GameInitData Verse.Find::get_GameInitData()
IL_007E: ldfld System.Collections.Generic.List`1<Verse.Pawn>
Verse.GameInitData::startingAndOptionalPawns
IL_0083: callvirt System.Collections.Generic.Enumerator<Verse.Pawn>
System.Collections.Generic.List`1<Verse.Pawn>::GetEnumerator()
IL_0088: stloc.2
.try
{
IL_0089: br => Label3
IL_008E: Label6
IL_008E: ldloca.s 2
(System.Collections.Generic.List`1+Enumerator[Verse.Pawn])
IL_0090: call virtual Verse.Pawn
System.Collections.Generic.Enumerator<Verse.Pawn>::get_Current()
IL_0095: callvirt Verse.Name Verse.Pawn::get_Name()
IL_009A: callvirt abstract virtual System.Boolean Verse.Name::get_IsValid()
IL_009F: brtrue => Label4
IL_00A4: ldstr "EveryoneNeedsValidName"
IL_00A9: call static Verse.TaggedString
Verse.Translator::Translate(System.String key)
IL_00AE: call static System.String
Verse.TaggedString::op_Implicit(Verse.TaggedString taggedString)
IL_00B3: ldsfld Verse.MessageTypeDef
RimWorld.MessageTypeDefOf::RejectInput
IL_00B8: ldc.i4.0
IL_00B9: call static System.Void Verse.Messages::Message(System.String
text, Verse.MessageTypeDef def, System.Boolean historical)
IL_00BE: ldc.i4.0
IL_00BF: stloc.3
IL_00C0: leave => Label5
IL_00C5: Label3
IL_00C5: Label4
IL_00C5: ldloca.s 2
(System.Collections.Generic.List`1+Enumerator[Verse.Pawn])
IL_00C7: call virtual System.Boolean
System.Collections.Generic.Enumerator<Verse.Pawn>::MoveNext()
IL_00CC: brtrue => Label6
IL_00D1: leave => Label7
IL_00D6: leave => (autogenerated)
} // end try
.finally
{
IL_00DB: ldloca.s 2
(System.Collections.Generic.List`1+Enumerator[Verse.Pawn])
IL_00DD: constrained.
System.Collections.Generic.List`1+Enumerator[Verse.Pawn]
IL_00E3: callvirt abstract virtual System.Void
System.IDisposable::Dispose()
IL_00E8: endfinally
IL_00E9: leave => (autogenerated)
} // end handler
IL_00EA: Label7
IL_00EA: ldarg.0
IL_00EB: call Verse.AcceptanceReport
RimWorld.Page_ConfigureStartingPawns::get_ExtraCanDoNextReport()
IL_00F0: stloc.0
IL_00F1: ldloca.s 0 (Verse.AcceptanceReport)
IL_00F3: call System.String Verse.AcceptanceReport::get_Reason()
IL_00F8: call static System.Boolean Verse.GenText::NullOrEmpty(System.String
str)
IL_00FD: brtrue => Label8
IL_0102: ldloca.s 0 (Verse.AcceptanceReport)
IL_0104: call System.String Verse.AcceptanceReport::get_Reason()
IL_0109: ldsfld Verse.MessageTypeDef RimWorld.MessageTypeDefOf::RejectInput
IL_010E: ldc.i4.0
IL_010F: call static System.Void Verse.Messages::Message(System.String text,
Verse.MessageTypeDef def, System.Boolean historical)
IL_0114: ldc.i4.0
IL_0115: br => Label15
IL_011A: Label8
IL_011A: call static System.Void RimWorld.PortraitsCache::Clear()
IL_011F: ldc.i4.1
IL_0120: br => Label16
IL_0125: Label5
IL_0125: ldloc.3
IL_0126: // end original
IL_0126: Label9
IL_0126: Label10
IL_0126: Label15
IL_0126: Label16
IL_0126: stloc 4 (System.Boolean)
IL_012A: ldloca 4 (System.Boolean)
IL_012E: call static System.Void
AlienRace.HarmonyPatches::CanDoNextStartPawnPostfix(System.Boolean& __result)
IL_0133: ldloc 4 (System.Boolean)
IL_0137: ret
DONE

### Patch: System.Void Verse.GameInitData::PrepForMapGen()


### Replacement: static System.Void
Verse.GameInitData::Verse.GameInitData.PrepForMapGen_Patch1(Verse.GameInitData
this)
IL_0000: Local var 0: System.Collections.Generic.List`1<Verse.Pawn>
IL_0000: Local var 1: Verse.Pawn
IL_0000: Local var 2: System.Collections.Generic.List`1/Enumerator<Verse.Pawn>
IL_0000: Local var 3: System.Collections.Generic.IEnumerator`1<Verse.WorkTypeDef>
IL_0000: Local var 4: Verse.GameInitData/<>c__DisplayClass20_0
IL_0000: Local var 5: System.Collections.Generic.IEnumerator`1<Verse.Pawn>
IL_0000: Local var 6: System.Func`2<Verse.Pawn,System.Boolean>
IL_0000: Local var 7: System.Boolean
IL_0000: Local var 8: Verse.Pawn
IL_0000: Local var 9: System.Collections.Generic.IEnumerable`1<Verse.Pawn>
IL_0000: Local var 10: System.Int32
IL_0000: Local var 11: RimWorld.CustomXenotype
IL_0000: Local var 12: Verse.PawnGenerationRequest
IL_0000: ldarg.0
IL_0001: call static System.Void
AlienRace.HarmonyPatches::PrepForMapGenPrefix(Verse.GameInitData __instance)
IL_0006: // start original
IL_0006: br => Label0
IL_000B: Label1
IL_000B: ldarg.0
IL_000C: ldfld System.Collections.Generic.List`1<Verse.Pawn>
Verse.GameInitData::startingAndOptionalPawns
IL_0011: ldarg.0
IL_0012: ldfld System.Int32 Verse.GameInitData::startingPawnCount
IL_0017: callvirt virtual Verse.Pawn
System.Collections.Generic.List`1<Verse.Pawn>::get_Item(System.Int32 index)
IL_001C: call static System.Void
RimWorld.PawnComponentsUtility::RemoveComponentsOnDespawned(Verse.Pawn pawn)
IL_0021: call static RimWorld.Planet.WorldPawns Verse.Find::get_WorldPawns()
IL_0026: ldarg.0
IL_0027: ldfld System.Collections.Generic.List`1<Verse.Pawn>
Verse.GameInitData::startingAndOptionalPawns
IL_002C: ldarg.0
IL_002D: ldfld System.Int32 Verse.GameInitData::startingPawnCount
IL_0032: callvirt virtual Verse.Pawn
System.Collections.Generic.List`1<Verse.Pawn>::get_Item(System.Int32 index)
IL_0037: ldc.i4.1
IL_0038: callvirt System.Void RimWorld.Planet.WorldPawns::PassToWorld(Verse.Pawn
pawn, RimWorld.Planet.PawnDiscardDecideMode discardMode)
IL_003D: ldarg.0
IL_003E: ldfld System.Collections.Generic.List`1<Verse.Pawn>
Verse.GameInitData::startingAndOptionalPawns
IL_0043: ldarg.0
IL_0044: ldfld System.Int32 Verse.GameInitData::startingPawnCount
IL_0049: callvirt virtual Verse.Pawn
System.Collections.Generic.List`1<Verse.Pawn>::get_Item(System.Int32 index)
IL_004E: stloc.1
IL_004F: ldarg.0
IL_0050: ldfld System.Collections.Generic.List`1<Verse.Pawn>
Verse.GameInitData::startingAndOptionalPawns
IL_0055: ldloc.1
IL_0056: callvirt virtual System.Boolean
System.Collections.Generic.List`1<Verse.Pawn>::Remove(Verse.Pawn item)
IL_005B: pop
IL_005C: ldarg.0
IL_005D: ldfld System.Collections.Generic.Dictionary`2<Verse.Pawn,
System.Collections.Generic.List`1<Verse.ThingDefCount>>
Verse.GameInitData::startingPossessions
IL_0062: ldloc.1
IL_0063: callvirt virtual System.Boolean
System.Collections.Generic.Dictionary`2<Verse.Pawn,
System.Collections.Generic.List`1<Verse.ThingDefCount>>::Remove(Verse.Pawn key)
IL_0068: pop
IL_0069: Label0
IL_0069: ldarg.0
IL_006A: ldfld System.Collections.Generic.List`1<Verse.Pawn>
Verse.GameInitData::startingAndOptionalPawns
IL_006F: callvirt virtual System.Int32
System.Collections.Generic.List`1<Verse.Pawn>::get_Count()
IL_0074: ldarg.0
IL_0075: ldfld System.Int32 Verse.GameInitData::startingPawnCount
IL_007A: bgt => Label1
IL_007F: ldarg.0
IL_0080: ldfld System.Collections.Generic.List`1<Verse.Pawn>
Verse.GameInitData::startingAndOptionalPawns
IL_0085: stloc.0
IL_0086: ldloc.0
IL_0087: callvirt System.Collections.Generic.Enumerator<Verse.Pawn>
System.Collections.Generic.List`1<Verse.Pawn>::GetEnumerator()
IL_008C: stloc.2
.try
{
IL_008D: br => Label2
IL_0092: Label3
IL_0092: ldloca.s 2
(System.Collections.Generic.List`1+Enumerator[Verse.Pawn])
IL_0094: call virtual Verse.Pawn
System.Collections.Generic.Enumerator<Verse.Pawn>::get_Current()
IL_0099: dup
IL_009A: call static RimWorld.Faction RimWorld.Faction::get_OfPlayer()
IL_009F: callvirt System.Void
Verse.Thing::SetFactionDirect(RimWorld.Faction newFaction)
IL_00A4: ldc.i4.0
IL_00A5: call static System.Void
RimWorld.PawnComponentsUtility::AddAndRemoveDynamicComponents(Verse.Pawn pawn,
System.Boolean actAsIfSpawned)
IL_00AA: Label2
IL_00AA: ldloca.s 2
(System.Collections.Generic.List`1+Enumerator[Verse.Pawn])
IL_00AC: call virtual System.Boolean
System.Collections.Generic.Enumerator<Verse.Pawn>::MoveNext()
IL_00B1: brtrue => Label3
IL_00B6: leave => Label4
IL_00BB: leave => (autogenerated)
} // end try
.finally
{
IL_00C0: ldloca.s 2
(System.Collections.Generic.List`1+Enumerator[Verse.Pawn])
IL_00C2: constrained.
System.Collections.Generic.List`1+Enumerator[Verse.Pawn]
IL_00C8: callvirt abstract virtual System.Void
System.IDisposable::Dispose()
IL_00CD: endfinally
IL_00CE: leave => (autogenerated)
} // end handler
IL_00CF: Label4
IL_00CF: ldloc.0
IL_00D0: callvirt System.Collections.Generic.Enumerator<Verse.Pawn>
System.Collections.Generic.List`1<Verse.Pawn>::GetEnumerator()
IL_00D5: stloc.2
.try
{
IL_00D6: br => Label5
IL_00DB: Label6
IL_00DB: ldloca.s 2
(System.Collections.Generic.List`1+Enumerator[Verse.Pawn])
IL_00DD: call virtual Verse.Pawn
System.Collections.Generic.Enumerator<Verse.Pawn>::get_Current()
IL_00E2: ldfld RimWorld.Pawn_WorkSettings Verse.Pawn::workSettings
IL_00E7: callvirt System.Void RimWorld.Pawn_WorkSettings::DisableAll()
IL_00EC: Label5
IL_00EC: ldloca.s 2
(System.Collections.Generic.List`1+Enumerator[Verse.Pawn])
IL_00EE: call virtual System.Boolean
System.Collections.Generic.Enumerator<Verse.Pawn>::MoveNext()
IL_00F3: brtrue => Label6
IL_00F8: leave => Label7
IL_00FD: leave => (autogenerated)
} // end try
.finally
{
IL_0102: ldloca.s 2
(System.Collections.Generic.List`1+Enumerator[Verse.Pawn])
IL_0104: constrained.
System.Collections.Generic.List`1+Enumerator[Verse.Pawn]
IL_010A: callvirt abstract virtual System.Void
System.IDisposable::Dispose()
IL_010F: endfinally
IL_0110: leave => (autogenerated)
} // end handler
IL_0111: Label7
IL_0111: call static
System.Collections.Generic.IEnumerable`1<Verse.WorkTypeDef>
Verse.DefDatabase`1<Verse.WorkTypeDef>::get_AllDefs()
IL_0116: callvirt abstract virtual
System.Collections.Generic.IEnumerator`1<Verse.WorkTypeDef>
System.Collections.Generic.IEnumerable`1<Verse.WorkTypeDef>::GetEnumerator()
IL_011B: stloc.3
.try
{
IL_011C: br => Label8
IL_0121: Label22
IL_0121: newobj System.Void Verse.<>c__DisplayClass20_0::.ctor()
IL_0126: stloc.s 4 (Verse.GameInitData+<>c__DisplayClass20_0)
IL_0128: ldloc.s 4 (Verse.GameInitData+<>c__DisplayClass20_0)
IL_012A: ldloc.3
IL_012B: callvirt abstract virtual Verse.WorkTypeDef
System.Collections.Generic.IEnumerator`1<Verse.WorkTypeDef>::get_Current()
IL_0130: stfld Verse.WorkTypeDef Verse.<>c__DisplayClass20_0::w
IL_0135: ldloc.s 4 (Verse.GameInitData+<>c__DisplayClass20_0)
IL_0137: ldfld Verse.WorkTypeDef Verse.<>c__DisplayClass20_0::w
IL_013C: ldfld System.Boolean Verse.WorkTypeDef::alwaysStartActive
IL_0141: brfalse => Label9
IL_0146: ldloc.0
IL_0147: ldloc.s 4 (Verse.GameInitData+<>c__DisplayClass20_0)
IL_0149: ldfld System.Func`2<Verse.Pawn, System.Boolean>
Verse.<>c__DisplayClass20_0::<>9__0
IL_014E: dup
IL_014F: brtrue => Label10
IL_0154: pop
IL_0155: ldloc.s 4 (Verse.GameInitData+<>c__DisplayClass20_0)
IL_0157: ldloc.s 4 (Verse.GameInitData+<>c__DisplayClass20_0)
IL_0159: ldftn System.Boolean
Verse.<>c__DisplayClass20_0::<PrepForMapGen>b__0(Verse.Pawn col)
IL_015F: newobj System.Void System.Func`2<Verse.Pawn,
System.Boolean>::.ctor(System.Object object, System.IntPtr method)
IL_0164: dup
IL_0165: stloc.s 6 (System.Func`2[Verse.Pawn,System.Boolean])
IL_0167: stfld System.Func`2<Verse.Pawn, System.Boolean>
Verse.<>c__DisplayClass20_0::<>9__0
IL_016C: ldloc.s 6 (System.Func`2[Verse.Pawn,System.Boolean])
IL_016E: Label10
IL_016E: call static
System.Collections.Generic.IEnumerable`1<Verse.Pawn>
System.Linq.Enumerable::Where(System.Collections.Generic.IEnumerable`1<Verse.Pawn>
source, System.Func`2<Verse.Pawn, System.Boolean> predicate)
IL_0173: callvirt abstract virtual
System.Collections.Generic.IEnumerator`1<Verse.Pawn>
System.Collections.Generic.IEnumerable`1<Verse.Pawn>::GetEnumerator()
IL_0178: stloc.s 5 (System.Collections.Generic.IEnumerator`1[Verse.Pawn])
.try
{
IL_017A: br => Label11
IL_017F: Label12
IL_017F: ldloc.s 5
(System.Collections.Generic.IEnumerator`1[Verse.Pawn])
IL_0181: callvirt abstract virtual Verse.Pawn
System.Collections.Generic.IEnumerator`1<Verse.Pawn>::get_Current()
IL_0186: ldfld RimWorld.Pawn_WorkSettings Verse.Pawn::workSettings
IL_018B: ldloc.s 4 (Verse.GameInitData+<>c__DisplayClass20_0)
IL_018D: ldfld Verse.WorkTypeDef Verse.<>c__DisplayClass20_0::w
IL_0192: ldc.i4.3
IL_0193: callvirt System.Void
RimWorld.Pawn_WorkSettings::SetPriority(Verse.WorkTypeDef w, System.Int32 priority)
IL_0198: Label11
IL_0198: ldloc.s 5
(System.Collections.Generic.IEnumerator`1[Verse.Pawn])
IL_019A: callvirt abstract virtual System.Boolean
System.Collections.IEnumerator::MoveNext()
IL_019F: brtrue => Label12
IL_01A4: leave => Label13
IL_01A9: leave => (autogenerated)
} // end try
.finally
{
IL_01AE: ldloc.s 5
(System.Collections.Generic.IEnumerator`1[Verse.Pawn])
IL_01B0: brfalse => Label14
IL_01B5: ldloc.s 5
(System.Collections.Generic.IEnumerator`1[Verse.Pawn])
IL_01B7: callvirt abstract virtual System.Void
System.IDisposable::Dispose()
IL_01BC: Label14
IL_01BC: endfinally
IL_01BD: leave => (autogenerated)
} // end handler
IL_01BE: Label9
IL_01BE: ldc.i4.0
IL_01BF: stloc.s 7 (System.Boolean)
IL_01C1: ldloc.0
IL_01C2: callvirt System.Collections.Generic.Enumerator<Verse.Pawn>
System.Collections.Generic.List`1<Verse.Pawn>::GetEnumerator()
IL_01C7: stloc.2
.try
{
IL_01C8: br => Label15
IL_01CD: Label18
IL_01CD: ldloca.s 2
(System.Collections.Generic.List`1+Enumerator[Verse.Pawn])
IL_01CF: call virtual Verse.Pawn
System.Collections.Generic.Enumerator<Verse.Pawn>::get_Current()
IL_01D4: stloc.s 8 (Verse.Pawn)
IL_01D6: ldloc.s 8 (Verse.Pawn)
IL_01D8: ldloc.s 4 (Verse.GameInitData+<>c__DisplayClass20_0)
IL_01DA: ldfld Verse.WorkTypeDef Verse.<>c__DisplayClass20_0::w
IL_01DF: callvirt System.Boolean
Verse.Pawn::WorkTypeIsDisabled(Verse.WorkTypeDef w)
IL_01E4: brtrue => Label16
IL_01E9: ldloc.s 8 (Verse.Pawn)
IL_01EB: ldfld RimWorld.Pawn_SkillTracker Verse.Pawn::skills
IL_01F0: ldloc.s 4 (Verse.GameInitData+<>c__DisplayClass20_0)
IL_01F2: ldfld Verse.WorkTypeDef Verse.<>c__DisplayClass20_0::w
IL_01F7: callvirt System.Single
RimWorld.Pawn_SkillTracker::AverageOfRelevantSkillsFor(Verse.WorkTypeDef workDef)
IL_01FC: ldc.r4 6
IL_0201: blt.un => Label17
IL_0206: ldloc.s 8 (Verse.Pawn)
IL_0208: ldfld RimWorld.Pawn_WorkSettings Verse.Pawn::workSettings
IL_020D: ldloc.s 4 (Verse.GameInitData+<>c__DisplayClass20_0)
IL_020F: ldfld Verse.WorkTypeDef Verse.<>c__DisplayClass20_0::w
IL_0214: ldc.i4.3
IL_0215: callvirt System.Void
RimWorld.Pawn_WorkSettings::SetPriority(Verse.WorkTypeDef w, System.Int32 priority)
IL_021A: ldc.i4.1
IL_021B: stloc.s 7 (System.Boolean)
IL_021D: Label15
IL_021D: Label16
IL_021D: Label17
IL_021D: ldloca.s 2
(System.Collections.Generic.List`1+Enumerator[Verse.Pawn])
IL_021F: call virtual System.Boolean
System.Collections.Generic.Enumerator<Verse.Pawn>::MoveNext()
IL_0224: brtrue => Label18
IL_0229: leave => Label19
IL_022E: leave => (autogenerated)
} // end try
.finally
{
IL_0233: ldloca.s 2
(System.Collections.Generic.List`1+Enumerator[Verse.Pawn])
IL_0235: constrained.
System.Collections.Generic.List`1+Enumerator[Verse.Pawn]
IL_023B: callvirt abstract virtual System.Void
System.IDisposable::Dispose()
IL_0240: endfinally
IL_0241: leave => (autogenerated)
} // end handler
IL_0242: Label19
IL_0242: ldloc.s 7 (System.Boolean)
IL_0244: brtrue => Label20
IL_0249: ldloc.0
IL_024A: ldloc.s 4 (Verse.GameInitData+<>c__DisplayClass20_0)
IL_024C: ldftn System.Boolean
Verse.<>c__DisplayClass20_0::<PrepForMapGen>b__1(Verse.Pawn col)
IL_0252: newobj System.Void System.Func`2<Verse.Pawn,
System.Boolean>::.ctor(System.Object object, System.IntPtr method)
IL_0257: call static
System.Collections.Generic.IEnumerable`1<Verse.Pawn>
System.Linq.Enumerable::Where(System.Collections.Generic.IEnumerable`1<Verse.Pawn>
source, System.Func`2<Verse.Pawn, System.Boolean> predicate)
IL_025C: stloc.s 9 (System.Collections.Generic.IEnumerable`1[Verse.Pawn])
IL_025E: ldloc.s 9 (System.Collections.Generic.IEnumerable`1[Verse.Pawn])
IL_0260: call static System.Boolean
System.Linq.Enumerable::Any(System.Collections.Generic.IEnumerable`1<Verse.Pawn>
source)
IL_0265: brfalse => Label21
IL_026A: ldloc.s 9 (System.Collections.Generic.IEnumerable`1[Verse.Pawn])
IL_026C: ldnull
IL_026D: call static
System.Collections.Generic.IEnumerable`1<Verse.Pawn>
Verse.GenCollection::InRandomOrder(System.Collections.Generic.IEnumerable`1<Verse.P
awn> source, System.Collections.Generic.IList`1<Verse.Pawn> workingList)
IL_0272: ldloc.s 4 (Verse.GameInitData+<>c__DisplayClass20_0)
IL_0274: ldftn System.Single
Verse.<>c__DisplayClass20_0::<PrepForMapGen>b__2(Verse.Pawn c)
IL_027A: newobj System.Void System.Func`2<Verse.Pawn,
System.Single>::.ctor(System.Object object, System.IntPtr method)
IL_027F: call static Verse.Pawn
Verse.GenCollection::MaxBy(System.Collections.Generic.IEnumerable`1<Verse.Pawn>
source, System.Func`2<Verse.Pawn, System.Single> selector)
IL_0284: ldfld RimWorld.Pawn_WorkSettings Verse.Pawn::workSettings
IL_0289: ldloc.s 4 (Verse.GameInitData+<>c__DisplayClass20_0)
IL_028B: ldfld Verse.WorkTypeDef Verse.<>c__DisplayClass20_0::w
IL_0290: ldc.i4.3
IL_0291: callvirt System.Void
RimWorld.Pawn_WorkSettings::SetPriority(Verse.WorkTypeDef w, System.Int32 priority)
IL_0296: Label8
IL_0296: Label13
IL_0296: Label20
IL_0296: Label21
IL_0296: ldloc.3
IL_0297: callvirt abstract virtual System.Boolean
System.Collections.IEnumerator::MoveNext()
IL_029C: brtrue => Label22
IL_02A1: leave => Label23
IL_02A6: leave => (autogenerated)
} // end try
.finally
{
IL_02AB: ldloc.3
IL_02AC: brfalse => Label24
IL_02B1: ldloc.3
IL_02B2: callvirt abstract virtual System.Void
System.IDisposable::Dispose()
IL_02B7: Label24
IL_02B7: endfinally
IL_02B8: leave => (autogenerated)
} // end handler
IL_02B9: Label23
IL_02B9: call static System.Boolean Verse.ModsConfig::get_BiotechActive()
IL_02BE: brfalse => Label25
IL_02C3: ldc.i4.0
IL_02C4: stloc.s 10 (System.Int32)
IL_02C6: br => Label26
IL_02CB: Label29
IL_02CB: ldloc.s 10 (System.Int32)
IL_02CD: call static Verse.PawnGenerationRequest
Verse.StartingPawnUtility::GetGenerationRequest(System.Int32 index)
IL_02D2: stloc.s 12 (Verse.PawnGenerationRequest)
IL_02D4: ldloca.s 12 (Verse.PawnGenerationRequest)
IL_02D6: call RimWorld.CustomXenotype
Verse.PawnGenerationRequest::get_ForcedCustomXenotype()
IL_02DB: stloc.s 11 (RimWorld.CustomXenotype)
IL_02DD: ldloc.s 11 (RimWorld.CustomXenotype)
IL_02DF: brfalse => Label27
IL_02E4: call static Verse.Game Verse.Current::get_Game()
IL_02E9: ldfld RimWorld.CustomXenotypeDatabase
Verse.Game::customXenotypeDatabase
IL_02EE: ldfld System.Collections.Generic.List`1<RimWorld.CustomXenotype>
RimWorld.CustomXenotypeDatabase::customXenotypes
IL_02F3: ldloc.s 11 (RimWorld.CustomXenotype)
IL_02F5: callvirt virtual System.Boolean
System.Collections.Generic.List`1<RimWorld.CustomXenotype>::Contains(RimWorld.Custo
mXenotype item)
IL_02FA: brtrue => Label28
IL_02FF: call static Verse.Game Verse.Current::get_Game()
IL_0304: ldfld RimWorld.CustomXenotypeDatabase
Verse.Game::customXenotypeDatabase
IL_0309: ldfld System.Collections.Generic.List`1<RimWorld.CustomXenotype>
RimWorld.CustomXenotypeDatabase::customXenotypes
IL_030E: ldloc.s 11 (RimWorld.CustomXenotype)
IL_0310: callvirt virtual System.Void
System.Collections.Generic.List`1<RimWorld.CustomXenotype>::Add(RimWorld.CustomXeno
type item)
IL_0315: Label27
IL_0315: Label28
IL_0315: ldloc.s 10 (System.Int32)
IL_0317: ldc.i4.1
IL_0318: add
IL_0319: stloc.s 10 (System.Int32)
IL_031B: Label26
IL_031B: ldloc.s 10 (System.Int32)
IL_031D: ldarg.0
IL_031E: ldfld System.Collections.Generic.List`1<Verse.Pawn>
Verse.GameInitData::startingAndOptionalPawns
IL_0323: callvirt virtual System.Int32
System.Collections.Generic.List`1<Verse.Pawn>::get_Count()
IL_0328: blt => Label29
IL_032D: // end original
IL_032D: Label25
IL_032D: ret
DONE

### Patch: System.Single


RimWorld.Pawn_RelationsTracker::SecondaryLovinChanceFactor(Verse.Pawn otherPawn)
### Replacement: static System.Single
RimWorld.Pawn_RelationsTracker::RimWorld.Pawn_RelationsTracker.SecondaryLovinChance
Factor_Patch1(RimWorld.Pawn_RelationsTracker this, Verse.Pawn otherPawn)
IL_0000: Local var 0: System.Single
IL_0000: ldc.r4 0
IL_0005: stloc 0 (System.Single)
IL_0009: // start original
IL_0009: ldarg.0
IL_000A: ldfld Verse.Pawn RimWorld.Pawn_RelationsTracker::pawn
IL_000F: callvirt Verse.RaceProperties Verse.Pawn::get_RaceProps()
IL_0014: callvirt System.Boolean Verse.RaceProperties::get_Humanlike()
IL_0019: ldarg.1
IL_001A: callvirt Verse.RaceProperties Verse.Pawn::get_RaceProps()
IL_001F: callvirt System.Boolean Verse.RaceProperties::get_Humanlike()
IL_0024: bne.un => Label0
IL_0029: ldarg.0
IL_002A: ldfld Verse.Pawn RimWorld.Pawn_RelationsTracker::pawn
IL_002F: ldarg.1
IL_0030: bne.un => Label1
IL_0035: Label0
IL_0035: ldc.r4 0
IL_003A: br => Label11
IL_003F: Label1
IL_003F: ldarg.0
IL_0040: ldfld Verse.Pawn RimWorld.Pawn_RelationsTracker::pawn
IL_0045: ldfld RimWorld.Pawn_StoryTracker Verse.Pawn::story
IL_004A: brfalse => Label2
IL_004F: ldarg.0
IL_0050: ldfld Verse.Pawn RimWorld.Pawn_RelationsTracker::pawn
IL_0055: ldfld RimWorld.Pawn_StoryTracker Verse.Pawn::story
IL_005A: ldfld RimWorld.TraitSet RimWorld.Pawn_StoryTracker::traits
IL_005F: brfalse => Label3
IL_0064: ldarg.0
IL_0065: ldfld Verse.Pawn RimWorld.Pawn_RelationsTracker::pawn
IL_006A: ldfld RimWorld.Pawn_StoryTracker Verse.Pawn::story
IL_006F: ldfld RimWorld.TraitSet RimWorld.Pawn_StoryTracker::traits
IL_0074: ldsfld RimWorld.TraitDef RimWorld.TraitDefOf::Asexual
IL_0079: callvirt System.Boolean RimWorld.TraitSet::HasTrait(RimWorld.TraitDef
tDef)
IL_007E: brfalse => Label4
IL_0083: ldc.r4 0
IL_0088: br => Label12
IL_008D: Label4
IL_008D: ldarg.0
IL_008E: ldfld Verse.Pawn RimWorld.Pawn_RelationsTracker::pawn
IL_0093: ldfld RimWorld.Pawn_StoryTracker Verse.Pawn::story
IL_0098: ldfld RimWorld.TraitSet RimWorld.Pawn_StoryTracker::traits
IL_009D: ldsfld RimWorld.TraitDef RimWorld.TraitDefOf::Bisexual
IL_00A2: callvirt System.Boolean RimWorld.TraitSet::HasTrait(RimWorld.TraitDef
tDef)
IL_00A7: brtrue => Label5
IL_00AC: ldarg.0
IL_00AD: ldfld Verse.Pawn RimWorld.Pawn_RelationsTracker::pawn
IL_00B2: ldfld RimWorld.Pawn_StoryTracker Verse.Pawn::story
IL_00B7: ldfld RimWorld.TraitSet RimWorld.Pawn_StoryTracker::traits
IL_00BC: ldsfld RimWorld.TraitDef RimWorld.TraitDefOf::Gay
IL_00C1: callvirt System.Boolean RimWorld.TraitSet::HasTrait(RimWorld.TraitDef
tDef)
IL_00C6: brfalse => Label6
IL_00CB: ldarg.1
IL_00CC: ldfld Verse.Gender Verse.Pawn::gender
IL_00D1: ldarg.0
IL_00D2: ldfld Verse.Pawn RimWorld.Pawn_RelationsTracker::pawn
IL_00D7: ldfld Verse.Gender Verse.Pawn::gender
IL_00DC: beq => Label7
IL_00E1: ldc.r4 0
IL_00E6: br => Label13
IL_00EB: Label6
IL_00EB: ldarg.1
IL_00EC: ldfld Verse.Gender Verse.Pawn::gender
IL_00F1: ldarg.0
IL_00F2: ldfld Verse.Pawn RimWorld.Pawn_RelationsTracker::pawn
IL_00F7: ldfld Verse.Gender Verse.Pawn::gender
IL_00FC: bne.un => Label8
IL_0101: ldc.r4 0
IL_0106: br => Label14
IL_010B: Label2
IL_010B: Label3
IL_010B: Label5
IL_010B: Label7
IL_010B: Label8
IL_010B: ldarg.0
IL_010C: ldfld Verse.Pawn RimWorld.Pawn_RelationsTracker::pawn
IL_0111: ldfld Verse.Pawn_AgeTracker Verse.Pawn::ageTracker
IL_0116: callvirt System.Single
Verse.Pawn_AgeTracker::get_AgeBiologicalYearsFloat()
IL_011B: ldc.r4 16
IL_0120: blt => Label9
IL_0125: ldarg.1
IL_0126: ldfld Verse.Pawn_AgeTracker Verse.Pawn::ageTracker
IL_012B: callvirt System.Single
Verse.Pawn_AgeTracker::get_AgeBiologicalYearsFloat()
IL_0130: ldc.r4 16
IL_0135: bge.un => Label10
IL_013A: Label9
IL_013A: ldc.r4 0
IL_013F: br => Label15
IL_0144: Label10
IL_0144: ldarg.0
IL_0145: ldarg.1
IL_0146: call System.Single
RimWorld.Pawn_RelationsTracker::LovinAgeFactor(Verse.Pawn otherPawn)
IL_014B: ldarg.0
IL_014C: ldarg.1
IL_014D: call System.Single
RimWorld.Pawn_RelationsTracker::PrettinessFactor(Verse.Pawn otherPawn)
IL_0152: mul
IL_0153: // end original
IL_0153: Label11
IL_0153: Label12
IL_0153: Label13
IL_0153: Label14
IL_0153: Label15
IL_0153: stloc 0 (System.Single)
IL_0157: ldarg.0
IL_0158: ldfld Verse.Pawn RimWorld.Pawn_RelationsTracker::pawn
IL_015D: ldarg 1
IL_0161: ldloca 0 (System.Single)
IL_0165: call static System.Void
AlienRace.HarmonyPatches::SecondaryLovinChanceFactorPostfix(Verse.Pawn ___pawn,
Verse.Pawn otherPawn, System.Single& __result)
IL_016A: ldloc 0 (System.Single)
IL_016E: ret
DONE

### Patch: System.Single


RimWorld.Pawn_RelationsTracker::CompatibilityWith(Verse.Pawn otherPawn)
### Replacement: static System.Single
RimWorld.Pawn_RelationsTracker::RimWorld.Pawn_RelationsTracker.CompatibilityWith_Pa
tch1(RimWorld.Pawn_RelationsTracker this, Verse.Pawn otherPawn)
IL_0000: Local var 0: System.Single
IL_0000: Local var 1: System.Single
IL_0000: Local var 2: System.Single
IL_0000: ldc.r4 0
IL_0005: stloc 2 (System.Single)
IL_0009: // start original
IL_0009: ldarg.0
IL_000A: ldfld Verse.Pawn RimWorld.Pawn_RelationsTracker::pawn
IL_000F: ldfld Verse.ThingDef Verse.Thing::def
IL_0014: ldarg.1
IL_0015: ldfld Verse.ThingDef Verse.Thing::def
IL_001A: bne.un => Label0
IL_001F: ldarg.0
IL_0020: ldfld Verse.Pawn RimWorld.Pawn_RelationsTracker::pawn
IL_0025: ldarg.1
IL_0026: bne.un => Label1
IL_002B: Label0
IL_002B: ldc.r4 0
IL_0030: br => Label2
IL_0035: Label1
IL_0035: ldarg.0
IL_0036: ldfld Verse.Pawn RimWorld.Pawn_RelationsTracker::pawn
IL_003B: ldfld Verse.Pawn_AgeTracker Verse.Pawn::ageTracker
IL_0040: callvirt System.Single
Verse.Pawn_AgeTracker::get_AgeBiologicalYearsFloat()
IL_0045: ldarg.1
IL_0046: ldfld Verse.Pawn_AgeTracker Verse.Pawn::ageTracker
IL_004B: callvirt System.Single
Verse.Pawn_AgeTracker::get_AgeBiologicalYearsFloat()
IL_0050: sub
IL_0051: call static System.Single UnityEngine.Mathf::Abs(System.Single f)
IL_0056: stloc.0
IL_0057: ldc.r4 0
IL_005C: ldc.r4 20
IL_0061: ldc.r4 0.45
IL_0066: ldc.r4 -0.45
IL_006B: ldloc.0
IL_006C: call static System.Single Verse.GenMath::LerpDouble(System.Single
inFrom, System.Single inTo, System.Single outFrom, System.Single outTo,
System.Single x)
IL_0071: ldc.r4 -0.45
IL_0076: ldc.r4 0.45
IL_007B: call static System.Single UnityEngine.Mathf::Clamp(System.Single
value, System.Single min, System.Single max)
IL_0080: ldarg.0
IL_0081: ldarg.1
IL_0082: ldfld System.Int32 Verse.Thing::thingIDNumber
IL_0087: call System.Single
RimWorld.Pawn_RelationsTracker::ConstantPerPawnsPairCompatibilityOffset(System.Int3
2 otherPawnID)
IL_008C: stloc.1
IL_008D: ldloc.1
IL_008E: add
IL_008F: // end original
IL_008F: Label2
IL_008F: stloc 2 (System.Single)
IL_0093: ldarg.0
IL_0094: ldarg 1
IL_0098: ldloca 2 (System.Single)
IL_009C: ldarg.0
IL_009D: ldfld Verse.Pawn RimWorld.Pawn_RelationsTracker::pawn
IL_00A2: call static System.Void
AlienRace.HarmonyPatches::CompatibilityWithPostfix(RimWorld.Pawn_RelationsTracker
__instance, Verse.Pawn otherPawn, System.Single& __result, Verse.Pawn ___pawn)
IL_00A7: ldloc 2 (System.Single)
IL_00AB: ret
DONE

### Patch: System.Void


RimWorld.Faction::TryMakeInitialRelationsWith(RimWorld.Faction other)
### Replacement: static System.Void
RimWorld.Faction::RimWorld.Faction.TryMakeInitialRelationsWith_Patch2(RimWorld.Fact
ion this, RimWorld.Faction other)
IL_0000: Local var 0: System.Int32
IL_0000: Local var 1: System.Int32
IL_0000: Local var 2: RimWorld.FactionRelationKind
IL_0000: Local var 3: RimWorld.FactionRelation
IL_0000: Local var 4: RimWorld.FactionRelation
IL_0000: // start original
IL_0000: ldarg.0
IL_0001: ldarg.1
IL_0002: ldc.i4.1
IL_0003: call RimWorld.FactionRelation
RimWorld.Faction::RelationWith(RimWorld.Faction other, System.Boolean allowNull)
IL_0008: brfalse => Label0
IL_000D: br => Label5
IL_0012: Label0
IL_0012: ldarg.0
IL_0013: ldarg.1
IL_0014: call static System.Int32
RimWorld.Faction::<TryMakeInitialRelationsWith>g__GetInitialGoodwill|
64_0(RimWorld.Faction a, RimWorld.Faction b)
IL_0019: ldarg.1
IL_001A: ldarg.0
IL_001B: call static System.Int32
RimWorld.Faction::<TryMakeInitialRelationsWith>g__GetInitialGoodwill|
64_0(RimWorld.Faction a, RimWorld.Faction b)
IL_0020: stloc.0
IL_0021: ldloc.0
IL_0022: call static System.Int32 UnityEngine.Mathf::Min(System.Int32 a,
System.Int32 b)
IL_0027: stloc.1
IL_0028: ldloc.1
IL_0029: ldc.i4.s -10
IL_002B: bgt => Label1
IL_0030: ldc.i4.0
IL_0031: stloc.2
IL_0032: br => Label2
IL_0037: Label1
IL_0037: ldloc.1
IL_0038: ldc.i4.s 75
IL_003A: blt => Label3
IL_003F: ldc.i4.2
IL_0040: stloc.2
IL_0041: br => Label4
IL_0046: Label3
IL_0046: ldc.i4.1
IL_0047: stloc.2
IL_0048: Label2
IL_0048: Label4
IL_0048: newobj System.Void RimWorld.FactionRelation::.ctor()
IL_004D: stloc.3
IL_004E: ldloc.3
IL_004F: ldarg.1
IL_0050: stfld RimWorld.Faction RimWorld.FactionRelation::other
IL_0055: ldloc.3
IL_0056: ldloc.1
IL_0057: stfld System.Int32 RimWorld.FactionRelation::baseGoodwill
IL_005C: ldloc.3
IL_005D: ldloc.2
IL_005E: stfld RimWorld.FactionRelationKind RimWorld.FactionRelation::kind
IL_0063: ldarg.0
IL_0064: ldfld System.Collections.Generic.List`1<RimWorld.FactionRelation>
RimWorld.Faction::relations
IL_0069: ldloc.3
IL_006A: callvirt virtual System.Void
System.Collections.Generic.List`1<RimWorld.FactionRelation>::Add(RimWorld.FactionRe
lation item)
IL_006F: newobj System.Void RimWorld.FactionRelation::.ctor()
IL_0074: stloc.s 4 (RimWorld.FactionRelation)
IL_0076: ldloc.s 4 (RimWorld.FactionRelation)
IL_0078: ldarg.0
IL_0079: stfld RimWorld.Faction RimWorld.FactionRelation::other
IL_007E: ldloc.s 4 (RimWorld.FactionRelation)
IL_0080: ldloc.1
IL_0081: stfld System.Int32 RimWorld.FactionRelation::baseGoodwill
IL_0086: ldloc.s 4 (RimWorld.FactionRelation)
IL_0088: ldloc.2
IL_0089: stfld RimWorld.FactionRelationKind RimWorld.FactionRelation::kind
IL_008E: ldarg.1
IL_008F: ldfld System.Collections.Generic.List`1<RimWorld.FactionRelation>
RimWorld.Faction::relations
IL_0094: ldloc.s 4 (RimWorld.FactionRelation)
IL_0096: callvirt virtual System.Void
System.Collections.Generic.List`1<RimWorld.FactionRelation>::Add(RimWorld.FactionRe
lation item)
IL_009B: // end original
IL_009B: Label5
IL_009B: ldarg.0
IL_009C: ldarg 1
IL_00A0: call static System.Void
AlienRace.HarmonyPatches::TryMakeInitialRelationsWithPostfix(RimWorld.Faction
__instance, RimWorld.Faction other)
IL_00A5: ldarg.0
IL_00A6: ldarg 1
IL_00AA: call static System.Void
VFECore.Faction_TryMakeInitialRelationsWith_Patch::Postfix(RimWorld.Faction
__instance, RimWorld.Faction other)
IL_00AF: ret
DONE

### Patch: System.Void RimWorld.TraitSet::GainTrait(RimWorld.Trait trait,


System.Boolean suppressConflicts)
### Replacement: static System.Void
RimWorld.TraitSet::RimWorld.TraitSet.GainTrait_Patch1(RimWorld.TraitSet this,
RimWorld.Trait trait, System.Boolean suppressConflicts)
IL_0000: Local var 0: System.Collections.Generic.List`1<RimWorld.AbilityDef>
IL_0000: Local var 1: System.Int32
IL_0000: Local var 2: System.Int32
IL_0000: Local var 3: System.Nullable`1<Verse.AnimalType>
IL_0000: Local var 4: Verse.AnimalType
IL_0000: Local var 5: System.Boolean
IL_0000: ldc.i4 0
IL_0005: stloc 5 (System.Boolean)
IL_0009: ldc.i4.1
IL_000A: stloc 5 (System.Boolean)
IL_000E: ldloc 5 (System.Boolean)
IL_0012: brfalse => Label1
IL_0017: ldarg 1
IL_001B: ldarg.0
IL_001C: ldfld Verse.Pawn RimWorld.TraitSet::pawn
IL_0021: call static System.Boolean
AlienRace.HarmonyPatches::GainTraitPrefix(RimWorld.Trait trait, Verse.Pawn ___pawn)
IL_0026: stloc 5 (System.Boolean)
IL_002A: Label1
IL_002A: nop
IL_002B: ldloc 5 (System.Boolean)
IL_002F: brfalse => Label0
IL_0034: // start original
IL_0034: ldarg.2
IL_0035: brtrue => Label2
IL_003A: ldarg.0
IL_003B: ldarg.1
IL_003C: ldfld RimWorld.TraitDef RimWorld.Trait::def
IL_0041: call System.Boolean RimWorld.TraitSet::HasTrait(RimWorld.TraitDef
tDef)
IL_0046: brfalse => Label3
IL_004B: ldarg.0
IL_004C: ldfld Verse.Pawn RimWorld.TraitSet::pawn
IL_0051: ldstr " already has trait "
IL_0056: ldarg.1
IL_0057: ldfld RimWorld.TraitDef RimWorld.Trait::def
IL_005C: call static System.String System.String::Concat(System.Object arg0,
System.Object arg1, System.Object arg2)
IL_0061: call static System.Void Verse.Log::Warning(System.String text)
IL_0066: br => Label23
IL_006B: Label2
IL_006B: Label3
IL_006B: ldarg.0
IL_006C: ldarg.1
IL_006D: ldfld RimWorld.TraitDef RimWorld.Trait::def
IL_0072: ldarg.1
IL_0073: callvirt System.Int32 RimWorld.Trait::get_Degree()
IL_0078: call System.Boolean RimWorld.TraitSet::HasTrait(RimWorld.TraitDef
tDef, System.Int32 degree)
IL_007D: brfalse => Label4
IL_0082: br => Label24
IL_0087: Label4
IL_0087: ldarg.0
IL_0088: ldfld System.Collections.Generic.List`1<RimWorld.Trait>
RimWorld.TraitSet::allTraits
IL_008D: ldarg.1
IL_008E: callvirt virtual System.Void
System.Collections.Generic.List`1<RimWorld.Trait>::Add(RimWorld.Trait item)
IL_0093: ldarg.1
IL_0094: ldarg.0
IL_0095: ldfld Verse.Pawn RimWorld.TraitSet::pawn
IL_009A: stfld Verse.Pawn RimWorld.Trait::pawn
IL_009F: call static System.Boolean Verse.ModsConfig::get_BiotechActive()
IL_00A4: ldarg.2
IL_00A5: and
IL_00A6: brfalse => Label5
IL_00AB: ldc.i4.0
IL_00AC: stloc.1
IL_00AD: br => Label6
IL_00B2: Label9
IL_00B2: ldarg.0
IL_00B3: ldfld System.Collections.Generic.List`1<RimWorld.Trait>
RimWorld.TraitSet::allTraits
IL_00B8: ldloc.1
IL_00B9: callvirt virtual RimWorld.Trait
System.Collections.Generic.List`1<RimWorld.Trait>::get_Item(System.Int32 index)
IL_00BE: ldarg.1
IL_00BF: beq => Label7
IL_00C4: ldarg.1
IL_00C5: ldfld RimWorld.TraitDef RimWorld.Trait::def
IL_00CA: ldarg.0
IL_00CB: ldfld System.Collections.Generic.List`1<RimWorld.Trait>
RimWorld.TraitSet::allTraits
IL_00D0: ldloc.1
IL_00D1: callvirt virtual RimWorld.Trait
System.Collections.Generic.List`1<RimWorld.Trait>::get_Item(System.Int32 index)
IL_00D6: callvirt System.Boolean RimWorld.TraitDef::CanSuppress(RimWorld.Trait
other)
IL_00DB: brfalse => Label8
IL_00E0: ldarg.0
IL_00E1: ldfld System.Collections.Generic.List`1<RimWorld.Trait>
RimWorld.TraitSet::allTraits
IL_00E6: ldloc.1
IL_00E7: callvirt virtual RimWorld.Trait
System.Collections.Generic.List`1<RimWorld.Trait>::get_Item(System.Int32 index)
IL_00EC: ldc.i4.1
IL_00ED: stfld System.Boolean RimWorld.Trait::suppressedByTrait
IL_00F2: Label7
IL_00F2: Label8
IL_00F2: ldloc.1
IL_00F3: ldc.i4.1
IL_00F4: add
IL_00F5: stloc.1
IL_00F6: Label6
IL_00F6: ldloc.1
IL_00F7: ldarg.0
IL_00F8: ldfld System.Collections.Generic.List`1<RimWorld.Trait>
RimWorld.TraitSet::allTraits
IL_00FD: callvirt virtual System.Int32
System.Collections.Generic.List`1<RimWorld.Trait>::get_Count()
IL_0102: blt => Label9
IL_0107: ldarg.0
IL_0108: call System.Void RimWorld.TraitSet::RecalculateSuppression()
IL_010D: Label5
IL_010D: ldarg.0
IL_010E: ldfld Verse.Pawn RimWorld.TraitSet::pawn
IL_0113: callvirt System.Void Verse.Pawn::Notify_DisabledWorkTypesChanged()
IL_0118: ldarg.0
IL_0119: ldfld Verse.Pawn RimWorld.TraitSet::pawn
IL_011E: ldfld RimWorld.Pawn_SkillTracker Verse.Pawn::skills
IL_0123: brfalse => Label10
IL_0128: ldarg.0
IL_0129: ldfld Verse.Pawn RimWorld.TraitSet::pawn
IL_012E: ldfld RimWorld.Pawn_SkillTracker Verse.Pawn::skills
IL_0133: callvirt System.Void
RimWorld.Pawn_SkillTracker::Notify_SkillDisablesChanged()
IL_0138: Label10
IL_0138: ldarg.0
IL_0139: ldfld Verse.Pawn RimWorld.TraitSet::pawn
IL_013E: callvirt System.Boolean Verse.Pawn::get_Dead()
IL_0143: brtrue => Label11
IL_0148: ldarg.0
IL_0149: ldfld Verse.Pawn RimWorld.TraitSet::pawn
IL_014E: callvirt Verse.RaceProperties Verse.Pawn::get_RaceProps()
IL_0153: callvirt System.Boolean Verse.RaceProperties::get_Humanlike()
IL_0158: brfalse => Label12
IL_015D: ldarg.0
IL_015E: ldfld Verse.Pawn RimWorld.TraitSet::pawn
IL_0163: ldfld RimWorld.Pawn_NeedsTracker Verse.Pawn::needs
IL_0168: ldfld RimWorld.Need_Mood RimWorld.Pawn_NeedsTracker::mood
IL_016D: brfalse => Label13
IL_0172: ldarg.0
IL_0173: ldfld Verse.Pawn RimWorld.TraitSet::pawn
IL_0178: ldfld RimWorld.Pawn_NeedsTracker Verse.Pawn::needs
IL_017D: ldfld RimWorld.Need_Mood RimWorld.Pawn_NeedsTracker::mood
IL_0182: ldfld RimWorld.ThoughtHandler RimWorld.Need_Mood::thoughts
IL_0187: ldfld RimWorld.SituationalThoughtHandler
RimWorld.ThoughtHandler::situational
IL_018C: callvirt System.Void
RimWorld.SituationalThoughtHandler::Notify_SituationalThoughtsDirty()
IL_0191: Label11
IL_0191: Label12
IL_0191: Label13
IL_0191: ldarg.1
IL_0192: ldfld RimWorld.TraitDef RimWorld.Trait::def
IL_0197: ldarg.1
IL_0198: callvirt System.Int32 RimWorld.Trait::get_Degree()
IL_019D: callvirt RimWorld.TraitDegreeData
RimWorld.TraitDef::DataAtDegree(System.Int32 degree)
IL_01A2: ldfld System.Collections.Generic.List`1<RimWorld.AbilityDef>
RimWorld.TraitDegreeData::abilities
IL_01A7: stloc.0
IL_01A8: ldloc.0
IL_01A9: call static System.Boolean
Verse.GenList::NullOrEmpty(System.Collections.Generic.IList`1<RimWorld.AbilityDef>
list)
IL_01AE: brtrue => Label14
IL_01B3: ldc.i4.0
IL_01B4: stloc.2
IL_01B5: br => Label15
IL_01BA: Label16
IL_01BA: ldarg.0
IL_01BB: ldfld Verse.Pawn RimWorld.TraitSet::pawn
IL_01C0: ldfld RimWorld.Pawn_AbilityTracker Verse.Pawn::abilities
IL_01C5: ldloc.0
IL_01C6: ldloc.2
IL_01C7: callvirt virtual RimWorld.AbilityDef
System.Collections.Generic.List`1<RimWorld.AbilityDef>::get_Item(System.Int32
index)
IL_01CC: callvirt System.Void
RimWorld.Pawn_AbilityTracker::GainAbility(RimWorld.AbilityDef def)
IL_01D1: ldloc.2
IL_01D2: ldc.i4.1
IL_01D3: add
IL_01D4: stloc.2
IL_01D5: Label15
IL_01D5: ldloc.2
IL_01D6: ldloc.0
IL_01D7: callvirt virtual System.Int32
System.Collections.Generic.List`1<RimWorld.AbilityDef>::get_Count()
IL_01DC: blt => Label16
IL_01E1: Label14
IL_01E1: ldarg.1
IL_01E2: ldfld RimWorld.TraitDef RimWorld.Trait::def
IL_01E7: ldflda System.Nullable`1<Verse.AnimalType>
RimWorld.TraitDef::disableHostilityFromAnimalType
IL_01EC: call System.Boolean
System.Nullable`1<Verse.AnimalType>::get_HasValue()
IL_01F1: brfalse => Label17
IL_01F6: ldarg.1
IL_01F7: ldfld RimWorld.TraitDef RimWorld.Trait::def
IL_01FC: ldfld System.Nullable`1<Verse.AnimalType>
RimWorld.TraitDef::disableHostilityFromAnimalType
IL_0201: stloc.3
IL_0202: ldc.i4.0
IL_0203: stloc.s 4 (Verse.AnimalType)
IL_0205: ldloca.s 3 (System.Nullable`1[Verse.AnimalType])
IL_0207: call Verse.AnimalType
System.Nullable`1<Verse.AnimalType>::GetValueOrDefault()
IL_020C: ldloc.s 4 (Verse.AnimalType)
IL_020E: ceq
IL_0210: ldloca.s 3 (System.Nullable`1[Verse.AnimalType])
IL_0212: call System.Boolean
System.Nullable`1<Verse.AnimalType>::get_HasValue()
IL_0217: and
IL_0218: brfalse => Label18
IL_021D: Label17
IL_021D: ldarg.1
IL_021E: ldfld RimWorld.TraitDef RimWorld.Trait::def
IL_0223: ldfld RimWorld.FactionDef
RimWorld.TraitDef::disableHostilityFromFaction
IL_0228: brfalse => Label19
IL_022D: Label18
IL_022D: ldarg.0
IL_022E: ldfld Verse.Pawn RimWorld.TraitSet::pawn
IL_0233: callvirt virtual Verse.Map Verse.Thing::get_Map()
IL_0238: brfalse => Label20
IL_023D: ldarg.0
IL_023E: ldfld Verse.Pawn RimWorld.TraitSet::pawn
IL_0243: callvirt virtual Verse.Map Verse.Thing::get_Map()
IL_0248: ldfld Verse.AI.AttackTargetsCache Verse.Map::attackTargetsCache
IL_024D: ldarg.0
IL_024E: ldfld Verse.Pawn RimWorld.TraitSet::pawn
IL_0253: callvirt System.Void
Verse.AI.AttackTargetsCache::UpdateTarget(Verse.AI.IAttackTarget t)
IL_0258: Label19
IL_0258: Label20
IL_0258: ldarg.0
IL_0259: call System.Void
RimWorld.TraitSet::CacheAnyTraitHasIngestibleOverrides()
IL_025E: ldarg.1
IL_025F: callvirt RimWorld.TraitDegreeData RimWorld.Trait::get_CurrentData()
IL_0264: ldfld System.Collections.Generic.List`1<RimWorld.NeedDef>
RimWorld.TraitDegreeData::needs
IL_0269: brfalse => Label21
IL_026E: ldarg.1
IL_026F: callvirt RimWorld.TraitDegreeData RimWorld.Trait::get_CurrentData()
IL_0274: ldfld System.Collections.Generic.List`1<RimWorld.NeedDef>
RimWorld.TraitDegreeData::needs
IL_0279: callvirt virtual System.Int32
System.Collections.Generic.List`1<RimWorld.NeedDef>::get_Count()
IL_027E: ldc.i4.0
IL_027F: ble => Label22
IL_0284: ldarg.0
IL_0285: ldfld Verse.Pawn RimWorld.TraitSet::pawn
IL_028A: ldfld RimWorld.Pawn_NeedsTracker Verse.Pawn::needs
IL_028F: callvirt System.Void
RimWorld.Pawn_NeedsTracker::AddOrRemoveNeedsAsAppropriate()
IL_0294: Label21
IL_0294: Label22
IL_0294: ldarg.0
IL_0295: ldfld Verse.Pawn RimWorld.TraitSet::pawn
IL_029A: call static System.Void
RimWorld.MeditationFocusTypeAvailabilityCache::ClearFor(Verse.Pawn p)
IL_029F: // end original
IL_029F: Label23
IL_029F: Label24
IL_029F: Label0
IL_029F: ret
DONE

### Patch: static RimWorld.TraderCaravanRole


RimWorld.TraderCaravanUtility::GetTraderCaravanRole(Verse.Pawn p)
### Replacement: static RimWorld.TraderCaravanRole
RimWorld.TraderCaravanUtility::RimWorld.TraderCaravanUtility.GetTraderCaravanRole_P
atch1(Verse.Pawn p)
IL_0000: Local var 0: System.Int32
IL_0000: ldc.i4 0
IL_0005: stloc 0 (System.Int32)
IL_0009: // start original
IL_0009: ldarg.0
IL_000A: ldfld Verse.PawnKindDef Verse.Pawn::kindDef
IL_000F: ldsfld Verse.PawnKindDef RimWorld.PawnKindDefOf::Slave
IL_0014: bne.un => Label0
IL_0019: ldc.i4.4
IL_001A: br => Label6
IL_001F: Label0
IL_001F: ldarg.0
IL_0020: ldfld Verse.PawnKindDef Verse.Pawn::kindDef
IL_0025: ldfld System.Boolean Verse.PawnKindDef::trader
IL_002A: brfalse => Label1
IL_002F: ldc.i4.1
IL_0030: br => Label7
IL_0035: Label1
IL_0035: ldarg.0
IL_0036: ldfld Verse.PawnKindDef Verse.Pawn::kindDef
IL_003B: callvirt Verse.RaceProperties Verse.PawnKindDef::get_RaceProps()
IL_0040: ldfld System.Boolean Verse.RaceProperties::packAnimal
IL_0045: brfalse => Label2
IL_004A: ldarg.0
IL_004B: ldfld Verse.Pawn_InventoryTracker Verse.Pawn::inventory
IL_0050: ldfld Verse.ThingOwner`1<Verse.Thing>
Verse.Pawn_InventoryTracker::innerContainer
IL_0055: callvirt System.Boolean Verse.ThingOwner::get_Any()
IL_005A: brfalse => Label3
IL_005F: ldc.i4.2
IL_0060: br => Label8
IL_0065: Label2
IL_0065: Label3
IL_0065: ldarg.0
IL_0066: callvirt Verse.RaceProperties Verse.Pawn::get_RaceProps()
IL_006B: callvirt System.Boolean Verse.RaceProperties::get_Animal()
IL_0070: brfalse => Label4
IL_0075: ldc.i4.4
IL_0076: br => Label9
IL_007B: Label4
IL_007B: ldarg.0
IL_007C: call static System.Boolean
AlienRace.HarmonyPatches::GetTraderCaravanRoleInfix(Verse.Pawn p)
IL_0081: brfalse => Label5
IL_0086: ldc.i4.4
IL_0087: br => Label10
IL_008C: Label5
IL_008C: nop
IL_008D: ldc.i4.3
IL_008E: // end original
IL_008E: Label6
IL_008E: Label7
IL_008E: Label8
IL_008E: Label9
IL_008E: Label10
IL_008E: stloc 0 (System.Int32)
IL_0092: ldarg 0
IL_0096: ldloca 0 (System.Int32)
IL_009A: call static System.Void
VFECore.GetTraderCaravanRole::Postfix(Verse.Pawn p, RimWorld.TraderCaravanRole&
__result)
IL_009F: ldloc 0 (System.Int32)
IL_00A3: ret
DONE

### Patch: static System.Boolean RimWorld.RestUtility::CanUseBedEver(Verse.Pawn p,


Verse.ThingDef bedDef)
### Replacement: static System.Boolean
RimWorld.RestUtility::RimWorld.RestUtility.CanUseBedEver_Patch2(Verse.Pawn p,
Verse.ThingDef bedDef)
IL_0000: Local var 0: System.Boolean
IL_0000: Local var 1: System.Boolean
IL_0000: ldc.i4 0
IL_0005: stloc 0 (System.Boolean)
IL_0009: ldc.i4 0
IL_000E: stloc 1 (System.Boolean)
IL_0012: ldc.i4.1
IL_0013: stloc 1 (System.Boolean)
IL_0017: ldloc 1 (System.Boolean)
IL_001B: brfalse => Label1
IL_0020: ldloca 0 (System.Boolean)
IL_0024: ldarg 0
IL_0028: ldarg 1
IL_002C: call static System.Boolean
MechanoidFoundry.RestUtility_CanUseBedEver::Prefix(System.Boolean& __result,
Verse.Pawn p, Verse.ThingDef bedDef)
IL_0031: stloc 1 (System.Boolean)
IL_0035: Label1
IL_0035: nop
IL_0036: ldloc 1 (System.Boolean)
IL_003A: brfalse => Label0
IL_003F: // start original
IL_003F: ldarg.0
IL_0040: callvirt Verse.RaceProperties Verse.Pawn::get_RaceProps()
IL_0045: callvirt System.Boolean Verse.RaceProperties::get_IsMechanoid()
IL_004A: brfalse => Label2
IL_004F: ldc.i4.0
IL_0050: br => Label8
IL_0055: Label2
IL_0055: ldarg.0
IL_0056: callvirt System.Single Verse.Pawn::get_BodySize()
IL_005B: ldarg.1
IL_005C: ldfld RimWorld.BuildingProperties Verse.ThingDef::building
IL_0061: ldfld System.Single RimWorld.BuildingProperties::bed_maxBodySize
IL_0066: ble.un => Label3
IL_006B: ldc.i4.0
IL_006C: br => Label9
IL_0071: Label3
IL_0071: ldarg.0
IL_0072: callvirt Verse.RaceProperties Verse.Pawn::get_RaceProps()
IL_0077: callvirt System.Boolean Verse.RaceProperties::get_Humanlike()
IL_007C: ldarg.1
IL_007D: ldfld RimWorld.BuildingProperties Verse.ThingDef::building
IL_0082: ldfld System.Boolean RimWorld.BuildingProperties::bed_humanlike
IL_0087: beq => Label4
IL_008C: ldc.i4.0
IL_008D: br => Label10
IL_0092: Label4
IL_0092: call static System.Boolean Verse.ModsConfig::get_BiotechActive()
IL_0097: brfalse => Label5
IL_009C: ldarg.1
IL_009D: ldsfld Verse.ThingDef RimWorld.ThingDefOf::DeathrestCasket
IL_00A2: bne.un => Label6
IL_00A7: ldarg.0
IL_00A8: call static System.Boolean
RimWorld.GeneUtility::CanDeathrest(Verse.Pawn pawn)
IL_00AD: brtrue => Label7
IL_00B2: ldc.i4.0
IL_00B3: br => Label11
IL_00B8: Label5
IL_00B8: Label6
IL_00B8: Label7
IL_00B8: ldc.i4.1
IL_00B9: // end original
IL_00B9: Label8
IL_00B9: Label9
IL_00B9: Label10
IL_00B9: Label11
IL_00B9: stloc 0 (System.Boolean)
IL_00BD: Label0
IL_00BD: ldloca 0 (System.Boolean)
IL_00C1: ldarg 0
IL_00C5: ldarg 1
IL_00C9: call static System.Void
AlienRace.HarmonyPatches::CanUseBedEverPostfix(System.Boolean& __result, Verse.Pawn
p, Verse.ThingDef bedDef)
IL_00CE: ldloc 0 (System.Boolean)
IL_00D2: ret
DONE
### Patch: virtual System.Collections.Generic.IEnumerable`1<Verse.Pawn>
RimWorld.CompAssignableToPawn_Bed::get_AssigningCandidates()
### Replacement: static System.Collections.Generic.IEnumerable`1<Verse.Pawn>
RimWorld.CompAssignableToPawn_Bed::RimWorld.CompAssignableToPawn_Bed.get_AssigningC
andidates_Patch2(RimWorld.CompAssignableToPawn_Bed this)
IL_0000: Local var 0: System.Collections.Generic.IEnumerable`1<Verse.Pawn>
IL_0000: Local var 1: System.Boolean
IL_0000: ldnull
IL_0001: stloc 0 (System.Collections.Generic.IEnumerable`1[Verse.Pawn])
IL_0005: ldc.i4 0
IL_000A: stloc 1 (System.Boolean)
IL_000E: ldc.i4.1
IL_000F: stloc 1 (System.Boolean)
IL_0013: ldloc 1 (System.Boolean)
IL_0017: brfalse => Label1
IL_001C: ldarg.0
IL_001D: ldloca 0 (System.Collections.Generic.IEnumerable`1[Verse.Pawn])
IL_0021: call static System.Boolean
MechanoidFoundry.CompAssignableToPawn_Bed_AssigningCandidates::Prefix(RimWorld.Comp
AssignableToPawn __instance, System.Collections.Generic.IEnumerable`1& __result)
IL_0026: stloc 1 (System.Boolean)
IL_002A: Label1
IL_002A: nop
IL_002B: ldloc 1 (System.Boolean)
IL_002F: brfalse => Label0
IL_0034: // start original
IL_0034: ldarg.0
IL_0035: ldfld Verse.ThingWithComps Verse.ThingComp::parent
IL_003A: callvirt System.Boolean Verse.Thing::get_Spawned()
IL_003F: brtrue => Label2
IL_0044: call static System.Collections.Generic.IEnumerable`1<Verse.Pawn>
System.Linq.Enumerable::Empty()
IL_0049: br => Label8
IL_004E: Label2
IL_004E: ldarg.0
IL_004F: ldfld Verse.ThingWithComps Verse.ThingComp::parent
IL_0054: ldfld Verse.ThingDef Verse.Thing::def
IL_0059: ldfld RimWorld.BuildingProperties Verse.ThingDef::building
IL_005E: ldfld System.Boolean RimWorld.BuildingProperties::bed_humanlike
IL_0063: brtrue => Label3
IL_0068: ldarg.0
IL_0069: ldfld Verse.ThingWithComps Verse.ThingComp::parent
IL_006E: callvirt virtual Verse.Map Verse.Thing::get_Map()
IL_0073: ldfld Verse.MapPawns Verse.Map::mapPawns
IL_0078: callvirt System.Collections.Generic.List`1<Verse.Pawn>
Verse.MapPawns::get_SpawnedColonyAnimals()
IL_007D: ldsfld System.Func`2<Verse.Pawn, System.Boolean>
RimWorld.<>c::<>9__1_0
IL_0082: dup
IL_0083: brtrue => Label4
IL_0088: pop
IL_0089: ldsfld RimWorld.<>c RimWorld.<>c::<>9
IL_008E: ldftn System.Boolean
RimWorld.<>c::<get_AssigningCandidates>b__1_0(Verse.Pawn x)
IL_0094: newobj System.Void System.Func`2<Verse.Pawn,
System.Boolean>::.ctor(System.Object object, System.IntPtr method)
IL_0099: dup
IL_009A: stsfld System.Func`2<Verse.Pawn, System.Boolean>
RimWorld.<>c::<>9__1_0
IL_009F: Label4
IL_009F: call static System.Collections.Generic.IEnumerable`1<Verse.Pawn>
System.Linq.Enumerable::Where(System.Collections.Generic.IEnumerable`1<Verse.Pawn>
source, System.Func`2<Verse.Pawn, System.Boolean> predicate)
IL_00A4: ldsfld System.Func`2<Verse.Pawn, System.String> RimWorld.<>c::<>9__1_1
IL_00A9: dup
IL_00AA: brtrue => Label5
IL_00AF: pop
IL_00B0: ldsfld RimWorld.<>c RimWorld.<>c::<>9
IL_00B5: ldftn System.String
RimWorld.<>c::<get_AssigningCandidates>b__1_1(Verse.Pawn p)
IL_00BB: newobj System.Void System.Func`2<Verse.Pawn,
System.String>::.ctor(System.Object object, System.IntPtr method)
IL_00C0: dup
IL_00C1: stsfld System.Func`2<Verse.Pawn, System.String> RimWorld.<>c::<>9__1_1
IL_00C6: Label5
IL_00C6: call static System.Linq.IOrderedEnumerable`1<Verse.Pawn>
System.Linq.Enumerable::OrderBy(System.Collections.Generic.IEnumerable`1<Verse.Pawn
> source, System.Func`2<Verse.Pawn, System.String> keySelector)
IL_00CB: ldsfld System.Func`2<Verse.Pawn, System.String> RimWorld.<>c::<>9__1_2
IL_00D0: dup
IL_00D1: brtrue => Label6
IL_00D6: pop
IL_00D7: ldsfld RimWorld.<>c RimWorld.<>c::<>9
IL_00DC: ldftn System.String
RimWorld.<>c::<get_AssigningCandidates>b__1_2(Verse.Pawn p)
IL_00E2: newobj System.Void System.Func`2<Verse.Pawn,
System.String>::.ctor(System.Object object, System.IntPtr method)
IL_00E7: dup
IL_00E8: stsfld System.Func`2<Verse.Pawn, System.String> RimWorld.<>c::<>9__1_2
IL_00ED: Label6
IL_00ED: call static System.Linq.IOrderedEnumerable`1<Verse.Pawn>
System.Linq.Enumerable::ThenBy(System.Linq.IOrderedEnumerable`1<Verse.Pawn> source,
System.Func`2<Verse.Pawn, System.String> keySelector)
IL_00F2: br => Label9
IL_00F7: Label3
IL_00F7: ldarg.0
IL_00F8: ldfld Verse.ThingWithComps Verse.ThingComp::parent
IL_00FD: callvirt virtual Verse.Map Verse.Thing::get_Map()
IL_0102: ldfld Verse.MapPawns Verse.Map::mapPawns
IL_0107: callvirt System.Collections.Generic.List`1<Verse.Pawn>
Verse.MapPawns::get_FreeColonists()
IL_010C: ldarg.0
IL_010D: ldftn System.Int32
RimWorld.CompAssignableToPawn_Bed::<get_AssigningCandidates>b__1_3(Verse.Pawn p)
IL_0113: newobj System.Void System.Func`2<Verse.Pawn,
System.Int32>::.ctor(System.Object object, System.IntPtr method)
IL_0118: call static System.Linq.IOrderedEnumerable`1<Verse.Pawn>
System.Linq.Enumerable::OrderByDescending(System.Collections.Generic.IEnumerable`1<
Verse.Pawn> source, System.Func`2<Verse.Pawn, System.Int32> keySelector)
IL_011D: ldsfld System.Func`2<Verse.Pawn, System.String> RimWorld.<>c::<>9__1_4
IL_0122: dup
IL_0123: brtrue => Label7
IL_0128: pop
IL_0129: ldsfld RimWorld.<>c RimWorld.<>c::<>9
IL_012E: ldftn System.String
RimWorld.<>c::<get_AssigningCandidates>b__1_4(Verse.Pawn p)
IL_0134: newobj System.Void System.Func`2<Verse.Pawn,
System.String>::.ctor(System.Object object, System.IntPtr method)
IL_0139: dup
IL_013A: stsfld System.Func`2<Verse.Pawn, System.String> RimWorld.<>c::<>9__1_4
IL_013F: Label7
IL_013F: call static System.Linq.IOrderedEnumerable`1<Verse.Pawn>
System.Linq.Enumerable::ThenBy(System.Linq.IOrderedEnumerable`1<Verse.Pawn> source,
System.Func`2<Verse.Pawn, System.String> keySelector)
IL_0144: // end original
IL_0144: Label8
IL_0144: Label9
IL_0144: stloc 0 (System.Collections.Generic.IEnumerable`1[Verse.Pawn])
IL_0148: Label0
IL_0148: ldloca 0 (System.Collections.Generic.IEnumerable`1[Verse.Pawn])
IL_014C: ldarg.0
IL_014D: call static System.Void
AlienRace.HarmonyPatches::AssigningCandidatesPostfix(System.Collections.Generic.IEn
umerable`1& __result, RimWorld.CompAssignableToPawn __instance)
IL_0152: ldloc 0 (System.Collections.Generic.IEnumerable`1[Verse.Pawn])
IL_0156: ret
DONE

### Patch: static System.Collections.Generic.IEnumerable`1<Verse.Grammar.Rule>


Verse.Grammar.GrammarUtility::RulesForPawn(System.String pawnSymbol, Verse.Pawn
pawn, System.Collections.Generic.Dictionary`2<System.String, System.String>
constants, System.Boolean addRelationInfoSymbol, System.Boolean addTags)
### Replacement: static
System.Collections.Generic.IEnumerable`1<Verse.Grammar.Rule>
Verse.Grammar.GrammarUtility::Verse.Grammar.GrammarUtility.RulesForPawn_Patch1(Syst
em.String pawnSymbol, Verse.Pawn pawn,
System.Collections.Generic.Dictionary`2<System.String, System.String> constants,
System.Boolean addRelationInfoSymbol, System.Boolean addTags)
IL_0000: Local var 0: Verse.TaggedString
IL_0000: Local var 1: System.Collections.Generic.IEnumerable`1<Verse.Grammar.Rule>
IL_0000: ldnull
IL_0001: stloc 1
(System.Collections.Generic.IEnumerable`1[Verse.Grammar.Rule])
IL_0005: // start original
IL_0005: ldarg.1
IL_0006: brtrue => Label0
IL_000B: ldstr "Tried to insert rule {0} for null pawn"
IL_0010: ldarg.0
IL_0011: call static System.String System.String::Format(System.String
format, System.Object arg0)
IL_0016: ldc.i4 16015097
IL_001B: call static System.Void Verse.Log::ErrorOnce(System.String text,
System.Int32 key)
IL_0020: call static
System.Collections.Generic.IEnumerable`1<Verse.Grammar.Rule>
System.Linq.Enumerable::Empty()
IL_0025: br => Label8
IL_002A: Label0
IL_002A: ldstr ""
IL_002F: call static Verse.TaggedString
Verse.TaggedString::op_Implicit(System.String str)
IL_0034: stloc.0
IL_0035: ldarg.3
IL_0036: brfalse => Label1
IL_003B: ldloca.s 0 (Verse.TaggedString)
IL_003D: ldarg.1
IL_003E: call static System.Boolean
RimWorld.PawnRelationUtility::TryAppendRelationsWithColonistsInfo(Verse.TaggedStrin
g& text, Verse.Pawn pawn)
IL_0043: pop
IL_0044: Label1
IL_0044: ldarg.0
IL_0045: ldarg.1
IL_0046: callvirt Verse.Name Verse.Pawn::get_Name()
IL_004B: ldarg.1
IL_004C: ldfld RimWorld.Pawn_StoryTracker Verse.Pawn::story
IL_0051: brtrue => Label2
IL_0056: ldnull
IL_0057: br => Label3
IL_005C: Label2
IL_005C: ldarg.1
IL_005D: ldfld RimWorld.Pawn_StoryTracker Verse.Pawn::story
IL_0062: callvirt System.String RimWorld.Pawn_StoryTracker::get_Title()
IL_0067: Label3
IL_0067: ldarg.1
IL_0068: ldfld Verse.PawnKindDef Verse.Pawn::kindDef
IL_006D: ldarg.1
IL_006E: ldfld Verse.Gender Verse.Pawn::gender
IL_0073: ldarg.1
IL_0074: callvirt virtual RimWorld.Faction Verse.Thing::get_Faction()
IL_0079: ldarg.1
IL_007A: ldfld Verse.Pawn_AgeTracker Verse.Pawn::ageTracker
IL_007F: callvirt System.Int32 Verse.Pawn_AgeTracker::get_AgeBiologicalYears()
IL_0084: ldarg.1
IL_0085: ldfld Verse.Pawn_AgeTracker Verse.Pawn::ageTracker
IL_008A: callvirt System.Int32 Verse.Pawn_AgeTracker::get_AgeChronologicalYears()
IL_008F: ldloc.0
IL_0090: call static System.String
Verse.TaggedString::op_Implicit(Verse.TaggedString taggedString)
IL_0095: ldarg.1
IL_0096: call static System.Boolean
RimWorld.PawnUtility::EverBeenColonistOrTameAnimal(Verse.Pawn pawn)
IL_009B: ldarg.1
IL_009C: call static System.Boolean
RimWorld.PawnUtility::EverBeenQuestLodger(Verse.Pawn pawn)
IL_00A1: ldarg.1
IL_00A2: callvirt virtual RimWorld.Faction Verse.Thing::get_Faction()
IL_00A7: brfalse => Label4
IL_00AC: ldarg.1
IL_00AD: callvirt virtual RimWorld.Faction Verse.Thing::get_Faction()
IL_00B2: ldfld Verse.Pawn RimWorld.Faction::leader
IL_00B7: ldarg.1
IL_00B8: ceq
IL_00BA: br => Label5
IL_00BF: Label4
IL_00BF: ldc.i4.0
IL_00C0: Label5
IL_00C0: ldarg.1
IL_00C1: ldfld RimWorld.Pawn_RoyaltyTracker Verse.Pawn::royalty
IL_00C6: brtrue => Label6
IL_00CB: ldnull
IL_00CC: br => Label7
IL_00D1: Label6
IL_00D1: ldarg.1
IL_00D2: ldfld RimWorld.Pawn_RoyaltyTracker Verse.Pawn::royalty
IL_00D7: callvirt System.Collections.Generic.List`1<RimWorld.RoyalTitle>
RimWorld.Pawn_RoyaltyTracker::get_AllTitlesForReading()
IL_00DC: Label7
IL_00DC: ldarg.2
IL_00DD: ldarg.s 4
IL_00DF: call static
System.Collections.Generic.IEnumerable`1<Verse.Grammar.Rule>
Verse.Grammar.GrammarUtility::RulesForPawn(System.String pawnSymbol, Verse.Name
name, System.String title, Verse.PawnKindDef kind, Verse.Gender gender,
RimWorld.Faction faction, System.Int32 age, System.Int32 chronologicalAge,
System.String relationInfo, System.Boolean everBeenColonistOrTameAnimal,
System.Boolean everBeenQuestLodger, System.Boolean isFactionLeader,
System.Collections.Generic.List`1<RimWorld.RoyalTitle> royalTitles,
System.Collections.Generic.Dictionary`2<System.String, System.String> constants,
System.Boolean addTags)
IL_00E4: // end original
IL_00E4: Label8
IL_00E4: stloc 1
(System.Collections.Generic.IEnumerable`1[Verse.Grammar.Rule])
IL_00E8: ldloc 1
(System.Collections.Generic.IEnumerable`1[Verse.Grammar.Rule])
IL_00EC: ldarg 1
IL_00F0: ldarg 0
IL_00F4: call static
System.Collections.Generic.IEnumerable`1<Verse.Grammar.Rule>
AlienRace.HarmonyPatches::RulesForPawnPostfix(System.Collections.Generic.IEnumerabl
e`1<Verse.Grammar.Rule> __result, Verse.Pawn pawn, System.String pawnSymbol)
IL_00F9: ret
DONE

### Patch: System.Boolean Verse.RaceProperties::CanEverEat(Verse.ThingDef t)


### Replacement: static System.Boolean
Verse.RaceProperties::Verse.RaceProperties.CanEverEat_Patch1(Verse.RaceProperties
this, Verse.ThingDef t)
IL_0000: Local var 0: System.Boolean
IL_0000: ldc.i4 0
IL_0005: stloc 0 (System.Boolean)
IL_0009: // start original
IL_0009: ldarg.0
IL_000A: call System.Boolean Verse.RaceProperties::get_EatsFood()
IL_000F: brtrue => Label0
IL_0014: ldc.i4.0
IL_0015: br => Label5
IL_001A: Label0
IL_001A: ldarg.1
IL_001B: ldfld RimWorld.IngestibleProperties Verse.ThingDef::ingestible
IL_0020: brtrue => Label1
IL_0025: ldc.i4.0
IL_0026: br => Label6
IL_002B: Label1
IL_002B: ldarg.1
IL_002C: ldfld RimWorld.IngestibleProperties Verse.ThingDef::ingestible
IL_0031: ldfld RimWorld.FoodPreferability
RimWorld.IngestibleProperties::preferability
IL_0036: brtrue => Label2
IL_003B: ldc.i4.0
IL_003C: br => Label7
IL_0041: Label2
IL_0041: ldarg.0
IL_0042: ldfld System.Collections.Generic.List`1<Verse.ThingDef>
Verse.RaceProperties::willNeverEat
IL_0047: brfalse => Label3
IL_004C: ldarg.0
IL_004D: ldfld System.Collections.Generic.List`1<Verse.ThingDef>
Verse.RaceProperties::willNeverEat
IL_0052: ldarg.1
IL_0053: callvirt virtual System.Boolean
System.Collections.Generic.List`1<Verse.ThingDef>::Contains(Verse.ThingDef item)
IL_0058: brfalse => Label4
IL_005D: ldc.i4.0
IL_005E: br => Label8
IL_0063: Label3
IL_0063: Label4
IL_0063: ldarg.0
IL_0064: ldarg.1
IL_0065: ldfld RimWorld.IngestibleProperties Verse.ThingDef::ingestible
IL_006A: ldfld RimWorld.FoodTypeFlags RimWorld.IngestibleProperties::foodType
IL_006F: call System.Boolean
Verse.RaceProperties::Eats(RimWorld.FoodTypeFlags food)
IL_0074: // end original
IL_0074: Label5
IL_0074: Label6
IL_0074: Label7
IL_0074: Label8
IL_0074: stloc 0 (System.Boolean)
IL_0078: ldloca 0 (System.Boolean)
IL_007C: ldarg.0
IL_007D: ldarg 1
IL_0081: call static System.Void
AlienRace.HarmonyPatches::CanEverEatPostfix(System.Boolean& __result,
Verse.RaceProperties __instance, Verse.ThingDef t)
IL_0086: ldloc 0 (System.Boolean)
IL_008A: ret
DONE

### Patch: System.Collections.Generic.IEnumerable`1<Verse.DamageInfo>


RimWorld.Verb_MeleeAttackDamage::DamageInfosToApply(Verse.LocalTargetInfo target)
### Replacement: static System.Collections.Generic.IEnumerable`1<Verse.DamageInfo>
RimWorld.Verb_MeleeAttackDamage::RimWorld.Verb_MeleeAttackDamage.DamageInfosToApply
_Patch2(RimWorld.Verb_MeleeAttackDamage this, Verse.LocalTargetInfo target)
IL_0000: Local var 0: System.Collections.Generic.IEnumerable`1<Verse.DamageInfo>
IL_0000: ldnull
IL_0001: stloc 0 (System.Collections.Generic.IEnumerable`1[Verse.DamageInfo])
IL_0005: // start original
IL_0005: ldc.i4.s -2
IL_0007: newobj System.Void
RimWorld.<DamageInfosToApply>d__2::.ctor(System.Int32 <>1__state)
IL_000C: dup
IL_000D: ldarg.0
IL_000E: stfld RimWorld.Verb_MeleeAttackDamage
RimWorld.<DamageInfosToApply>d__2::<>4__this
IL_0013: dup
IL_0014: ldarg.1
IL_0015: stfld Verse.LocalTargetInfo
RimWorld.<DamageInfosToApply>d__2::<>3__target
IL_001A: // end original
IL_001A: stloc 0 (System.Collections.Generic.IEnumerable`1[Verse.DamageInfo])
IL_001E: ldarg.0
IL_001F: ldloca 0 (System.Collections.Generic.IEnumerable`1[Verse.DamageInfo])
IL_0023: call static System.Void
AlienRace.HarmonyPatches::DamageInfosToApplyPostfix(Verse.Verb __instance,
System.Collections.Generic.IEnumerable`1& __result)
IL_0028: ldloc 0 (System.Collections.Generic.IEnumerable`1[Verse.DamageInfo])
IL_002C: ldarg.0
IL_002D: call static
System.Collections.Generic.IEnumerable`1<Verse.DamageInfo>
VFEAncients.PowerWorker_Strong::AddDamage(System.Collections.Generic.IEnumerable`1<
Verse.DamageInfo> dinfos, RimWorld.Verb_MeleeAttackDamage __instance)
IL_0032: ret
DONE

### Patch: static System.Void


RimWorld.PawnWeaponGenerator::TryGenerateWeaponFor(Verse.Pawn pawn,
Verse.PawnGenerationRequest request)
### Replacement: static System.Void
RimWorld.PawnWeaponGenerator::RimWorld.PawnWeaponGenerator.TryGenerateWeaponFor_Pat
ch2(Verse.Pawn pawn, Verse.PawnGenerationRequest request)
IL_0000: Local var 0: RimWorld.PawnWeaponGenerator/<>c__DisplayClass5_0
IL_0000: Local var 1: System.Single
IL_0000: Local var 2: RimWorld.ThingStuffPair
IL_0000: Local var 3: System.Int32
IL_0000: Local var 4: RimWorld.PawnWeaponGenerator/<>c__DisplayClass5_1
IL_0000: Local var 5: Verse.ThingWithComps
IL_0000: Local var 6: Verse.CompEquippable
IL_0000: Local var 7: System.Single
IL_0000: Local var 8: RimWorld.CompBiocodable
IL_0000: Local var 9: System.Boolean
IL_0000: ldc.i4 0
IL_0005: stloc 9 (System.Boolean)
IL_0009: ldc.i4.1
IL_000A: stloc 9 (System.Boolean)
IL_000E: ldloc 9 (System.Boolean)
IL_0012: brfalse => Label1
IL_0017: ldarg 0
IL_001B: call static System.Void
AlienRace.HarmonyPatches::TryGenerateWeaponForPrefix(Verse.Pawn pawn)
IL_0020: Label1
IL_0020: nop
IL_0021: ldloc 9 (System.Boolean)
IL_0025: brfalse => Label0
IL_002A: // start original
IL_002A: newobj System.Void RimWorld.<>c__DisplayClass5_0::.ctor()
IL_002F: stloc.0
IL_0030: ldloc.0
IL_0031: ldarg.0
IL_0032: stfld Verse.Pawn RimWorld.<>c__DisplayClass5_0::pawn
IL_0037: ldsfld System.Collections.Generic.List`1<RimWorld.ThingStuffPair>
RimWorld.PawnWeaponGenerator::workingWeapons
IL_003C: callvirt virtual System.Void
System.Collections.Generic.List`1<RimWorld.ThingStuffPair>::Clear()
IL_0041: ldloc.0
IL_0042: ldfld Verse.Pawn RimWorld.<>c__DisplayClass5_0::pawn
IL_0047: ldfld Verse.PawnKindDef Verse.Pawn::kindDef
IL_004C: ldfld System.Collections.Generic.List`1<System.String>
Verse.PawnKindDef::weaponTags
IL_0051: brfalse => Label2
IL_0056: ldloc.0
IL_0057: ldfld Verse.Pawn RimWorld.<>c__DisplayClass5_0::pawn
IL_005C: ldfld Verse.PawnKindDef Verse.Pawn::kindDef
IL_0061: ldfld System.Collections.Generic.List`1<System.String>
Verse.PawnKindDef::weaponTags
IL_0066: callvirt virtual System.Int32
System.Collections.Generic.List`1<System.String>::get_Count()
IL_006B: brtrue => Label3
IL_0070: Label2
IL_0070: br => Label28
IL_0075: Label3
IL_0075: ldloc.0
IL_0076: ldfld Verse.Pawn RimWorld.<>c__DisplayClass5_0::pawn
IL_007B: callvirt Verse.RaceProperties Verse.Pawn::get_RaceProps()
IL_0080: callvirt System.Boolean Verse.RaceProperties::get_ToolUser()
IL_0085: brtrue => Label4
IL_008A: br => Label29
IL_008F: Label4
IL_008F: ldloc.0
IL_0090: ldfld Verse.Pawn RimWorld.<>c__DisplayClass5_0::pawn
IL_0095: ldfld Verse.Pawn_HealthTracker Verse.Pawn::health
IL_009A: ldfld Verse.PawnCapacitiesHandler
Verse.Pawn_HealthTracker::capacities
IL_009F: ldsfld Verse.PawnCapacityDef RimWorld.PawnCapacityDefOf::Manipulation
IL_00A4: callvirt System.Boolean
Verse.PawnCapacitiesHandler::CapableOf(Verse.PawnCapacityDef capacity)
IL_00A9: brtrue => Label5
IL_00AE: br => Label30
IL_00B3: Label5
IL_00B3: ldloc.0
IL_00B4: ldfld Verse.Pawn RimWorld.<>c__DisplayClass5_0::pawn
IL_00B9: ldc.i4.8
IL_00BA: callvirt System.Boolean Verse.Pawn::WorkTagIsDisabled(Verse.WorkTags w)
IL_00BF: brfalse => Label6
IL_00C4: br => Label31
IL_00C9: Label6
IL_00C9: ldloc.0
IL_00CA: ldfld Verse.Pawn RimWorld.<>c__DisplayClass5_0::pawn
IL_00CF: ldfld Verse.PawnKindDef Verse.Pawn::kindDef
IL_00D4: ldflda Verse.FloatRange Verse.PawnKindDef::weaponMoney
IL_00D9: call System.Single Verse.FloatRange::get_RandomInRange()
IL_00DE: stloc.1
IL_00DF: ldc.i4.0
IL_00E0: stloc.3
IL_00E1: br => Label7
IL_00E6: Label17
IL_00E6: newobj System.Void RimWorld.<>c__DisplayClass5_1::.ctor()
IL_00EB: stloc.s 4 (RimWorld.PawnWeaponGenerator+<>c__DisplayClass5_1)
IL_00ED: ldloc.s 4 (RimWorld.PawnWeaponGenerator+<>c__DisplayClass5_1)
IL_00EF: ldsfld System.Collections.Generic.List`1<RimWorld.ThingStuffPair>
RimWorld.PawnWeaponGenerator::allWeaponPairs
IL_00F4: ldloc.3
IL_00F5: callvirt virtual RimWorld.ThingStuffPair
System.Collections.Generic.List`1<RimWorld.ThingStuffPair>::get_Item(System.Int32
index)
IL_00FA: stfld RimWorld.ThingStuffPair RimWorld.<>c__DisplayClass5_1::w
IL_00FF: ldloc.s 4 (RimWorld.PawnWeaponGenerator+<>c__DisplayClass5_1)
IL_0101: ldflda RimWorld.ThingStuffPair RimWorld.<>c__DisplayClass5_1::w
IL_0106: call System.Single RimWorld.ThingStuffPair::get_Price()
IL_010B: ldloc.1
IL_010C: bgt => Label8
IL_0111: ldloc.0
IL_0112: ldfld Verse.Pawn RimWorld.<>c__DisplayClass5_0::pawn
IL_0117: ldfld Verse.PawnKindDef Verse.Pawn::kindDef
IL_011C: ldfld System.Collections.Generic.List`1<System.String>
Verse.PawnKindDef::weaponTags
IL_0121: brfalse => Label9
IL_0126: ldloc.0
IL_0127: ldfld Verse.Pawn RimWorld.<>c__DisplayClass5_0::pawn
IL_012C: ldfld Verse.PawnKindDef Verse.Pawn::kindDef
IL_0131: ldfld System.Collections.Generic.List`1<System.String>
Verse.PawnKindDef::weaponTags
IL_0136: ldloc.s 4 (RimWorld.PawnWeaponGenerator+<>c__DisplayClass5_1)
IL_0138: ldftn System.Boolean
RimWorld.<>c__DisplayClass5_1::<TryGenerateWeaponFor>b__1(System.String tag)
IL_013E: newobj System.Void
System.Predicate`1<System.String>::.ctor(System.Object object, System.IntPtr
method)
IL_0143: call static System.Boolean
Verse.GenCollection::Any(System.Collections.Generic.List`1<System.String> list,
System.Predicate`1<System.String> predicate)
IL_0148: brfalse => Label10
IL_014D: Label9
IL_014D: ldloc.0
IL_014E: ldfld Verse.Pawn RimWorld.<>c__DisplayClass5_0::pawn
IL_0153: ldfld Verse.PawnKindDef Verse.Pawn::kindDef
IL_0158: ldfld Verse.ThingDef Verse.PawnKindDef::weaponStuffOverride
IL_015D: brfalse => Label11
IL_0162: ldloc.s 4 (RimWorld.PawnWeaponGenerator+<>c__DisplayClass5_1)
IL_0164: ldflda RimWorld.ThingStuffPair RimWorld.<>c__DisplayClass5_1::w
IL_0169: ldfld Verse.ThingDef RimWorld.ThingStuffPair::stuff
IL_016E: ldloc.0
IL_016F: ldfld Verse.Pawn RimWorld.<>c__DisplayClass5_0::pawn
IL_0174: ldfld Verse.PawnKindDef Verse.Pawn::kindDef
IL_0179: ldfld Verse.ThingDef Verse.PawnKindDef::weaponStuffOverride
IL_017E: bne.un => Label12
IL_0183: Label11
IL_0183: ldloc.s 4 (RimWorld.PawnWeaponGenerator+<>c__DisplayClass5_1)
IL_0185: ldflda RimWorld.ThingStuffPair RimWorld.<>c__DisplayClass5_1::w
IL_018A: ldfld Verse.ThingDef RimWorld.ThingStuffPair::thing
IL_018F: callvirt System.Boolean Verse.ThingDef::get_IsRangedWeapon()
IL_0194: brfalse => Label13
IL_0199: ldloc.0
IL_019A: ldfld Verse.Pawn RimWorld.<>c__DisplayClass5_0::pawn
IL_019F: ldc.i4 524288
IL_01A4: callvirt System.Boolean Verse.Pawn::WorkTagIsDisabled(Verse.WorkTags w)
IL_01A9: brtrue => Label14
IL_01AE: Label13
IL_01AE: ldloc.s 4 (RimWorld.PawnWeaponGenerator+<>c__DisplayClass5_1)
IL_01B0: ldflda RimWorld.ThingStuffPair RimWorld.<>c__DisplayClass5_1::w
IL_01B5: ldfld Verse.ThingDef RimWorld.ThingStuffPair::thing
IL_01BA: ldfld System.Single Verse.ThingDef::generateAllowChance
IL_01BF: ldc.r4 1
IL_01C4: bge.un => Label15
IL_01C9: ldloc.s 4 (RimWorld.PawnWeaponGenerator+<>c__DisplayClass5_1)
IL_01CB: ldflda RimWorld.ThingStuffPair RimWorld.<>c__DisplayClass5_1::w
IL_01D0: ldfld Verse.ThingDef RimWorld.ThingStuffPair::thing
IL_01D5: ldfld System.Single Verse.ThingDef::generateAllowChance
IL_01DA: ldloc.0
IL_01DB: ldfld Verse.Pawn RimWorld.<>c__DisplayClass5_0::pawn
IL_01E0: ldfld System.Int32 Verse.Thing::thingIDNumber
IL_01E5: ldloc.s 4 (RimWorld.PawnWeaponGenerator+<>c__DisplayClass5_1)
IL_01E7: ldflda RimWorld.ThingStuffPair RimWorld.<>c__DisplayClass5_1::w
IL_01EC: ldfld Verse.ThingDef RimWorld.ThingStuffPair::thing
IL_01F1: ldfld System.UInt16 Verse.Def::shortHash
IL_01F6: xor
IL_01F7: ldc.i4 28554824
IL_01FC: xor
IL_01FD: call static System.Boolean Verse.Rand::ChanceSeeded(System.Single
chance, System.Int32 specialSeed)
IL_0202: brfalse => Label16
IL_0207: Label15
IL_0207: ldsfld System.Collections.Generic.List`1<RimWorld.ThingStuffPair>
RimWorld.PawnWeaponGenerator::workingWeapons
IL_020C: ldloc.s 4 (RimWorld.PawnWeaponGenerator+<>c__DisplayClass5_1)
IL_020E: ldfld RimWorld.ThingStuffPair RimWorld.<>c__DisplayClass5_1::w
IL_0213: callvirt virtual System.Void
System.Collections.Generic.List`1<RimWorld.ThingStuffPair>::Add(RimWorld.ThingStuff
Pair item)
IL_0218: Label8
IL_0218: Label10
IL_0218: Label12
IL_0218: Label14
IL_0218: Label16
IL_0218: ldloc.3
IL_0219: ldc.i4.1
IL_021A: add
IL_021B: stloc.3
IL_021C: Label7
IL_021C: ldloc.3
IL_021D: ldsfld System.Collections.Generic.List`1<RimWorld.ThingStuffPair>
RimWorld.PawnWeaponGenerator::allWeaponPairs
IL_0222: callvirt virtual System.Int32
System.Collections.Generic.List`1<RimWorld.ThingStuffPair>::get_Count()
IL_0227: blt => Label17
IL_022C: ldsfld System.Collections.Generic.List`1<RimWorld.ThingStuffPair>
RimWorld.PawnWeaponGenerator::workingWeapons
IL_0231: callvirt virtual System.Int32
System.Collections.Generic.List`1<RimWorld.ThingStuffPair>::get_Count()
IL_0236: brtrue => Label18
IL_023B: br => Label32
IL_0240: Label18
IL_0240: ldloc.0
IL_0241: ldfld Verse.Pawn RimWorld.<>c__DisplayClass5_0::pawn
IL_0246: ldfld Verse.Pawn_EquipmentTracker Verse.Pawn::equipment
IL_024B: ldc.i4.0
IL_024C: callvirt System.Void
Verse.Pawn_EquipmentTracker::DestroyAllEquipment(Verse.DestroyMode mode)
IL_0251: ldsfld System.Collections.Generic.List`1<RimWorld.ThingStuffPair>
RimWorld.PawnWeaponGenerator::workingWeapons
IL_0256: ldloc.0
IL_0257: ldftn System.Single
RimWorld.<>c__DisplayClass5_0::<TryGenerateWeaponFor>b__0(RimWorld.ThingStuffPair
w)
IL_025D: newobj System.Void System.Func`2<RimWorld.ThingStuffPair,
System.Single>::.ctor(System.Object object, System.IntPtr method)
IL_0262: ldloca.s 2 (RimWorld.ThingStuffPair)
IL_0264: call static System.Boolean
Verse.GenCollection::TryRandomElementByWeight(System.Collections.Generic.IEnumerabl
e`1<RimWorld.ThingStuffPair> source, System.Func`2<RimWorld.ThingStuffPair,
System.Single> weightSelector, RimWorld.ThingStuffPair& result)
IL_0269: brfalse => Label19
IL_026E: ldloc.2
IL_026F: ldfld Verse.ThingDef RimWorld.ThingStuffPair::thing
IL_0274: ldloc.2
IL_0275: ldfld Verse.ThingDef RimWorld.ThingStuffPair::stuff
IL_027A: call static Verse.Thing Verse.ThingMaker::MakeThing(Verse.ThingDef
def, Verse.ThingDef stuff)
IL_027F: castclass Verse.ThingWithComps
IL_0284: stloc.s 5 (Verse.ThingWithComps)
IL_0286: ldloc.s 5 (Verse.ThingWithComps)
IL_0288: ldloc.0
IL_0289: ldfld Verse.Pawn RimWorld.<>c__DisplayClass5_0::pawn
IL_028E: call static System.Void
Verse.PawnGenerator::PostProcessGeneratedGear(Verse.Thing gear, Verse.Pawn pawn)
IL_0293: ldloc.s 5 (Verse.ThingWithComps)
IL_0295: call static Verse.CompEquippable
Verse.ThingCompUtility::TryGetComp(Verse.Thing thing)
IL_029A: stloc.s 6 (Verse.CompEquippable)
IL_029C: ldloc.s 6 (Verse.CompEquippable)
IL_029E: brfalse => Label20
IL_02A3: ldloc.0
IL_02A4: ldfld Verse.Pawn RimWorld.<>c__DisplayClass5_0::pawn
IL_02A9: ldfld Verse.PawnKindDef Verse.Pawn::kindDef
IL_02AE: ldfld Verse.ThingStyleDef Verse.PawnKindDef::weaponStyleDef
IL_02B3: brfalse => Label21
IL_02B8: ldloc.s 6 (Verse.CompEquippable)
IL_02BA: ldfld Verse.ThingWithComps Verse.ThingComp::parent
IL_02BF: ldloc.0
IL_02C0: ldfld Verse.Pawn RimWorld.<>c__DisplayClass5_0::pawn
IL_02C5: ldfld Verse.PawnKindDef Verse.Pawn::kindDef
IL_02CA: ldfld Verse.ThingStyleDef Verse.PawnKindDef::weaponStyleDef
IL_02CF: callvirt System.Void Verse.Thing::set_StyleDef(Verse.ThingStyleDef
value)
IL_02D4: br => Label22
IL_02D9: Label21
IL_02D9: ldloc.0
IL_02DA: ldfld Verse.Pawn RimWorld.<>c__DisplayClass5_0::pawn
IL_02DF: callvirt RimWorld.Ideo Verse.Pawn::get_Ideo()
IL_02E4: brfalse => Label23
IL_02E9: ldloc.s 6 (Verse.CompEquippable)
IL_02EB: ldfld Verse.ThingWithComps Verse.ThingComp::parent
IL_02F0: ldloc.0
IL_02F1: ldfld Verse.Pawn RimWorld.<>c__DisplayClass5_0::pawn
IL_02F6: callvirt RimWorld.Ideo Verse.Pawn::get_Ideo()
IL_02FB: ldloc.s 5 (Verse.ThingWithComps)
IL_02FD: ldfld Verse.ThingDef Verse.Thing::def
IL_0302: callvirt Verse.ThingStyleDef RimWorld.Ideo::GetStyleFor(Verse.ThingDef
thingDef)
IL_0307: callvirt System.Void Verse.Thing::set_StyleDef(Verse.ThingStyleDef
value)
IL_030C: Label20
IL_030C: Label22
IL_030C: Label23
IL_030C: ldarga.s 1
IL_030E: call System.Single
Verse.PawnGenerationRequest::get_BiocodeWeaponChance()
IL_0313: ldc.r4 0
IL_0318: bgt => Label24
IL_031D: ldloc.0
IL_031E: ldfld Verse.Pawn RimWorld.<>c__DisplayClass5_0::pawn
IL_0323: ldfld Verse.PawnKindDef Verse.Pawn::kindDef
IL_0328: ldfld System.Single Verse.PawnKindDef::biocodeWeaponChance
IL_032D: br => Label25
IL_0332: Label24
IL_0332: ldarga.s 1
IL_0334: call System.Single
Verse.PawnGenerationRequest::get_BiocodeWeaponChance()
IL_0339: Label25
IL_0339: stloc.s 7 (System.Single)
IL_033B: call static System.Single Verse.Rand::get_Value()
IL_0340: ldloc.s 7 (System.Single)
IL_0342: bge.un => Label26
IL_0347: ldloc.s 5 (Verse.ThingWithComps)
IL_0349: call static RimWorld.CompBiocodable
Verse.ThingCompUtility::TryGetComp(Verse.Thing thing)
IL_034E: stloc.s 8 (RimWorld.CompBiocodable)
IL_0350: ldloc.s 8 (RimWorld.CompBiocodable)
IL_0352: brfalse => Label27
IL_0357: ldloc.s 8 (RimWorld.CompBiocodable)
IL_0359: ldloc.0
IL_035A: ldfld Verse.Pawn RimWorld.<>c__DisplayClass5_0::pawn
IL_035F: callvirt virtual System.Void RimWorld.CompBiocodable::CodeFor(Verse.Pawn
p)
IL_0364: Label26
IL_0364: Label27
IL_0364: ldloc.0
IL_0365: ldfld Verse.Pawn RimWorld.<>c__DisplayClass5_0::pawn
IL_036A: ldfld Verse.Pawn_EquipmentTracker Verse.Pawn::equipment
IL_036F: ldloc.s 5 (Verse.ThingWithComps)
IL_0371: callvirt System.Void
Verse.Pawn_EquipmentTracker::AddEquipment(Verse.ThingWithComps newEq)
IL_0376: Label19
IL_0376: ldsfld System.Collections.Generic.List`1<RimWorld.ThingStuffPair>
RimWorld.PawnWeaponGenerator::workingWeapons
IL_037B: callvirt virtual System.Void
System.Collections.Generic.List`1<RimWorld.ThingStuffPair>::Clear()
IL_0380: // end original
IL_0380: Label28
IL_0380: Label29
IL_0380: Label30
IL_0380: Label31
IL_0380: Label32
IL_0380: Label0
IL_0380: call static System.Void
AlienRace.HarmonyPatches::TryGenerateWeaponForPostfix()
IL_0385: ret
DONE

### Patch: static System.Void


RimWorld.PawnApparelGenerator::GenerateStartingApparelFor(Verse.Pawn pawn,
Verse.PawnGenerationRequest request)
### Replacement: static System.Void
RimWorld.PawnApparelGenerator::RimWorld.PawnApparelGenerator.GenerateStartingAppare
lFor_Patch2(Verse.Pawn pawn, Verse.PawnGenerationRequest request)
IL_0000: Local var 0: RimWorld.PawnApparelGenerator/<>c__DisplayClass11_0
IL_0000: Local var 1: System.Single
IL_0000: Local var 2: System.Single
IL_0000: Local var 3: RimWorld.NeededWarmth
IL_0000: Local var 4: System.Boolean
IL_0000: Local var 5: System.Single
IL_0000: Local var 6: System.Int32
IL_0000: Local var 7: System.Int32
IL_0000: Local var 8: RimWorld.ThingStuffPair
IL_0000: Local var 9: System.Int32
IL_0000: Local var 10: System.Single
IL_0000: Local var 11: System.Single
IL_0000: Local var 12: System.Single
IL_0000: Local var 13: System.Boolean
IL_0000: Local var 14:
System.Collections.Generic.List`1/Enumerator<RimWorld.Apparel>
IL_0000: Local var 15: RimWorld.CompBiocodable
IL_0000: Local var 16: System.Boolean
IL_0000: ldc.i4 0
IL_0005: stloc 16 (System.Boolean)
IL_0009: ldc.i4.1
IL_000A: stloc 16 (System.Boolean)
IL_000E: ldloc 16 (System.Boolean)
IL_0012: brfalse => Label1
IL_0017: ldarg 0
IL_001B: call static System.Void
AlienRace.HarmonyPatches::GenerateStartingApparelForPrefix(Verse.Pawn pawn)
IL_0020: Label1
IL_0020: nop
IL_0021: ldloc 16 (System.Boolean)
IL_0025: brfalse => Label0
IL_002A: // start original
IL_002A: newobj System.Void RimWorld.<>c__DisplayClass11_0::.ctor()
IL_002F: stloc.0
IL_0030: ldloc.0
IL_0031: ldarg.0
IL_0032: stfld Verse.Pawn RimWorld.<>c__DisplayClass11_0::pawn
IL_0037: ldloc.0
IL_0038: ldarg.1
IL_0039: stfld Verse.PawnGenerationRequest
RimWorld.<>c__DisplayClass11_0::request
IL_003E: ldloc.0
IL_003F: ldfld Verse.Pawn RimWorld.<>c__DisplayClass11_0::pawn
IL_0044: callvirt Verse.RaceProperties Verse.Pawn::get_RaceProps()
IL_0049: callvirt System.Boolean Verse.RaceProperties::get_ToolUser()
IL_004E: brfalse => Label2
IL_0053: ldloc.0
IL_0054: ldfld Verse.Pawn RimWorld.<>c__DisplayClass11_0::pawn
IL_0059: callvirt Verse.RaceProperties Verse.Pawn::get_RaceProps()
IL_005E: callvirt System.Boolean Verse.RaceProperties::get_IsFlesh()
IL_0063: brtrue => Label3
IL_0068: Label2
IL_0068: br => Label61
IL_006D: Label3
IL_006D: ldloc.0
IL_006E: ldfld Verse.Pawn RimWorld.<>c__DisplayClass11_0::pawn
IL_0073: ldfld RimWorld.Pawn_ApparelTracker Verse.Pawn::apparel
IL_0078: ldc.i4.0
IL_0079: callvirt System.Void
RimWorld.Pawn_ApparelTracker::DestroyAll(Verse.DestroyMode mode)
IL_007E: ldloc.0
IL_007F: ldfld Verse.Pawn RimWorld.<>c__DisplayClass11_0::pawn
IL_0084: ldfld RimWorld.Pawn_OutfitTracker Verse.Pawn::outfits
IL_0089: dup
IL_008A: brtrue => Label4
IL_008F: pop
IL_0090: br => Label5
IL_0095: Label4
IL_0095: ldfld RimWorld.OutfitForcedHandler
RimWorld.Pawn_OutfitTracker::forcedHandler
IL_009A: dup
IL_009B: brtrue => Label6
IL_00A0: pop
IL_00A1: br => Label7
IL_00A6: Label6
IL_00A6: call System.Void RimWorld.OutfitForcedHandler::Reset()
IL_00AB: Label5
IL_00AB: Label7
IL_00AB: ldloc.0
IL_00AC: ldfld Verse.Pawn RimWorld.<>c__DisplayClass11_0::pawn
IL_00B1: ldfld Verse.PawnKindDef Verse.Pawn::kindDef
IL_00B6: ldflda Verse.FloatRange Verse.PawnKindDef::apparelMoney
IL_00BB: call System.Single Verse.FloatRange::get_RandomInRange()
IL_00C0: stloc.2
IL_00C1: ldloc.0
IL_00C2: ldfld Verse.Pawn RimWorld.<>c__DisplayClass11_0::pawn
IL_00C7: ldloc.0
IL_00C8: ldfld Verse.PawnGenerationRequest
RimWorld.<>c__DisplayClass11_0::request
IL_00CD: ldloca.s 1 (System.Single)
IL_00CF: call static RimWorld.NeededWarmth
RimWorld.PawnApparelGenerator::ApparelWarmthNeededNow(Verse.Pawn pawn,
Verse.PawnGenerationRequest request, System.Single& mapTemperature)
IL_00D4: stloc.3
IL_00D5: call static System.Single Verse.Rand::get_Value()
IL_00DA: ldloc.0
IL_00DB: ldfld Verse.Pawn RimWorld.<>c__DisplayClass11_0::pawn
IL_00E0: ldfld Verse.PawnKindDef Verse.Pawn::kindDef
IL_00E5: ldfld System.Single Verse.PawnKindDef::apparelAllowHeadgearChance
IL_00EA: clt
IL_00EC: stloc.s 4 (System.Boolean)
IL_00EE: ldloc.0
IL_00EF: ldfld Verse.Pawn RimWorld.<>c__DisplayClass11_0::pawn
IL_00F4: ldloc.0
IL_00F5: ldfld Verse.PawnGenerationRequest
RimWorld.<>c__DisplayClass11_0::request
IL_00FA: call static System.Single
RimWorld.PawnApparelGenerator::ApparelToxicEnvironmentToAddress(Verse.Pawn pawn,
Verse.PawnGenerationRequest request)
IL_00FF: stloc.s 5 (System.Single)
IL_0101: ldnull
IL_0102: stsfld System.Text.StringBuilder
RimWorld.PawnApparelGenerator::debugSb
IL_0107: ldsfld System.Boolean Verse.DebugViewSettings::logApparelGeneration
IL_010C: brfalse => Label8
IL_0111: newobj System.Void System.Text.StringBuilder::.ctor()
IL_0116: stsfld System.Text.StringBuilder
RimWorld.PawnApparelGenerator::debugSb
IL_011B: ldsfld System.Text.StringBuilder
RimWorld.PawnApparelGenerator::debugSb
IL_0120: ldstr "Generating apparel for "
IL_0125: ldloc.0
IL_0126: ldfld Verse.Pawn RimWorld.<>c__DisplayClass11_0::pawn
IL_012B: call static System.String System.String::Concat(System.Object arg0,
System.Object arg1)
IL_0130: callvirt System.Text.StringBuilder
System.Text.StringBuilder::AppendLine(System.String value)
IL_0135: pop
IL_0136: ldsfld System.Text.StringBuilder
RimWorld.PawnApparelGenerator::debugSb
IL_013B: ldstr "Money: "
IL_0140: ldloca.s 2 (System.Single)
IL_0142: ldstr "F0"
IL_0147: call System.String System.Single::ToString(System.String format)
IL_014C: call static System.String System.String::Concat(System.String str0,
System.String str1)
IL_0151: callvirt System.Text.StringBuilder
System.Text.StringBuilder::AppendLine(System.String value)
IL_0156: pop
IL_0157: ldsfld System.Text.StringBuilder
RimWorld.PawnApparelGenerator::debugSb
IL_015C: ldstr "Needed warmth: "
IL_0161: ldloc.3
IL_0162: box RimWorld.NeededWarmth
IL_0167: call static System.String System.String::Concat(System.Object arg0,
System.Object arg1)
IL_016C: callvirt System.Text.StringBuilder
System.Text.StringBuilder::AppendLine(System.String value)
IL_0171: pop
IL_0172: ldsfld System.Text.StringBuilder
RimWorld.PawnApparelGenerator::debugSb
IL_0177: ldstr "Needed toxic environment resistance: "
IL_017C: ldloc.s 5 (System.Single)
IL_017E: box System.Single
IL_0183: call static System.String System.String::Concat(System.Object arg0,
System.Object arg1)
IL_0188: callvirt System.Text.StringBuilder
System.Text.StringBuilder::AppendLine(System.String value)
IL_018D: pop
IL_018E: ldsfld System.Text.StringBuilder
RimWorld.PawnApparelGenerator::debugSb
IL_0193: ldstr "Headgear allowed: "
IL_0198: ldloca.s 4 (System.Boolean)
IL_019A: call virtual System.String System.Boolean::ToString()
IL_019F: call static System.String System.String::Concat(System.String str0,
System.String str1)
IL_01A4: callvirt System.Text.StringBuilder
System.Text.StringBuilder::AppendLine(System.String value)
IL_01A9: pop
IL_01AA: Label8
IL_01AA: call static System.Int32 Verse.Rand::get_Int()
IL_01AF: stloc.s 6 (System.Int32)
IL_01B1: ldsfld System.Collections.Generic.List`1<RimWorld.ThingStuffPair>
RimWorld.PawnApparelGenerator::tmpApparelCandidates
IL_01B6: callvirt virtual System.Void
System.Collections.Generic.List`1<RimWorld.ThingStuffPair>::Clear()
IL_01BB: ldc.i4.0
IL_01BC: stloc.s 7 (System.Int32)
IL_01BE: br => Label9
IL_01C3: Label11
IL_01C3: ldsfld System.Collections.Generic.List`1<RimWorld.ThingStuffPair>
RimWorld.PawnApparelGenerator::allApparelPairs
IL_01C8: ldloc.s 7 (System.Int32)
IL_01CA: callvirt virtual RimWorld.ThingStuffPair
System.Collections.Generic.List`1<RimWorld.ThingStuffPair>::get_Item(System.Int32
index)
IL_01CF: stloc.s 8 (RimWorld.ThingStuffPair)
IL_01D1: ldloc.s 8 (RimWorld.ThingStuffPair)
IL_01D3: ldloc.0
IL_01D4: ldfld Verse.Pawn RimWorld.<>c__DisplayClass11_0::pawn
IL_01D9: ldloc.2
IL_01DA: ldloc.s 4 (System.Boolean)
IL_01DC: ldloc.s 6 (System.Int32)
IL_01DE: call static System.Boolean
RimWorld.PawnApparelGenerator::CanUsePair(RimWorld.ThingStuffPair pair, Verse.Pawn
pawn, System.Single moneyLeft, System.Boolean allowHeadgear, System.Int32
fixedSeed)
IL_01E3: brfalse => Label10
IL_01E8: ldsfld System.Collections.Generic.List`1<RimWorld.ThingStuffPair>
RimWorld.PawnApparelGenerator::tmpApparelCandidates
IL_01ED: ldloc.s 8 (RimWorld.ThingStuffPair)
IL_01EF: callvirt virtual System.Void
System.Collections.Generic.List`1<RimWorld.ThingStuffPair>::Add(RimWorld.ThingStuff
Pair item)
IL_01F4: Label10
IL_01F4: ldloc.s 7 (System.Int32)
IL_01F6: ldc.i4.1
IL_01F7: add
IL_01F8: stloc.s 7 (System.Int32)
IL_01FA: Label9
IL_01FA: ldloc.s 7 (System.Int32)
IL_01FC: ldsfld System.Collections.Generic.List`1<RimWorld.ThingStuffPair>
RimWorld.PawnApparelGenerator::allApparelPairs
IL_0201: callvirt virtual System.Int32
System.Collections.Generic.List`1<RimWorld.ThingStuffPair>::get_Count()
IL_0206: blt => Label11
IL_020B: ldloc.2
IL_020C: ldc.r4 0.001
IL_0211: bge.un => Label12
IL_0216: ldloc.0
IL_0217: ldfld Verse.Pawn RimWorld.<>c__DisplayClass11_0::pawn
IL_021C: ldloc.2
IL_021D: ldsfld System.Collections.Generic.List`1<RimWorld.ThingStuffPair>
RimWorld.PawnApparelGenerator::tmpApparelCandidates
IL_0222: call static System.Void
RimWorld.PawnApparelGenerator::GenerateWorkingPossibleApparelSetFor(Verse.Pawn
pawn, System.Single money,
System.Collections.Generic.List`1<RimWorld.ThingStuffPair> apparelCandidates)
IL_0227: br => Label13
IL_022C: Label12
IL_022C: ldc.i4.0
IL_022D: stloc.s 9 (System.Int32)
IL_022F: Label46
IL_022F: ldloc.0
IL_0230: ldfld Verse.Pawn RimWorld.<>c__DisplayClass11_0::pawn
IL_0235: ldloc.2
IL_0236: ldsfld System.Collections.Generic.List`1<RimWorld.ThingStuffPair>
RimWorld.PawnApparelGenerator::tmpApparelCandidates
IL_023B: call static System.Void
RimWorld.PawnApparelGenerator::GenerateWorkingPossibleApparelSetFor(Verse.Pawn
pawn, System.Single money,
System.Collections.Generic.List`1<RimWorld.ThingStuffPair> apparelCandidates)
IL_0240: ldsfld System.Boolean Verse.DebugViewSettings::logApparelGeneration
IL_0245: brfalse => Label14
IL_024A: ldsfld System.Text.StringBuilder
RimWorld.PawnApparelGenerator::debugSb
IL_024F: ldloca.s 9 (System.Int32)
IL_0251: call virtual System.String System.Int32::ToString()
IL_0256: ldc.i4.5
IL_0257: callvirt System.String System.String::PadRight(System.Int32 totalWidth)
IL_025C: ldstr "Trying: "
IL_0261: ldsfld RimWorld.PossibleApparelSet
RimWorld.PawnApparelGenerator::workingSet
IL_0266: callvirt virtual System.String System.Object::ToString()
IL_026B: call static System.String System.String::Concat(System.String str0,
System.String str1, System.String str2)
IL_0270: callvirt System.Text.StringBuilder
System.Text.StringBuilder::Append(System.String value)
IL_0275: pop
IL_0276: Label14
IL_0276: ldloc.s 9 (System.Int32)
IL_0278: ldc.i4.s 10
IL_027A: bge => Label15
IL_027F: call static System.Single Verse.Rand::get_Value()
IL_0284: ldc.r4 0.85
IL_0289: bge.un => Label16
IL_028E: ldloc.2
IL_028F: ldc.r4 9999999
IL_0294: bge.un => Label17
IL_0299: ldc.r4 0.45
IL_029E: ldc.r4 0.8
IL_02A3: call static System.Single Verse.Rand::Range(System.Single min,
System.Single max)
IL_02A8: stloc.s 10 (System.Single)
IL_02AA: ldsfld RimWorld.PossibleApparelSet
RimWorld.PawnApparelGenerator::workingSet
IL_02AF: callvirt System.Single RimWorld.PossibleApparelSet::get_TotalPrice()
IL_02B4: stloc.s 11 (System.Single)
IL_02B6: ldloc.s 11 (System.Single)
IL_02B8: ldloc.2
IL_02B9: ldloc.s 10 (System.Single)
IL_02BB: mul
IL_02BC: bge.un => Label18
IL_02C1: ldsfld System.Boolean Verse.DebugViewSettings::logApparelGeneration
IL_02C6: brfalse => Label19
IL_02CB: ldsfld System.Text.StringBuilder
RimWorld.PawnApparelGenerator::debugSb
IL_02D0: ldc.i4.5
IL_02D1: newarr System.String
IL_02D6: dup
IL_02D7: ldc.i4.0
IL_02D8: ldstr " -- Failed: Spent $"
IL_02DD: stelem.ref
IL_02DE: dup
IL_02DF: ldc.i4.1
IL_02E0: ldloca.s 11 (System.Single)
IL_02E2: ldstr "F0"
IL_02E7: call System.String System.Single::ToString(System.String format)
IL_02EC: stelem.ref
IL_02ED: dup
IL_02EE: ldc.i4.2
IL_02EF: ldstr ", < "
IL_02F4: stelem.ref
IL_02F5: dup
IL_02F6: ldc.i4.3
IL_02F7: ldloc.s 10 (System.Single)
IL_02F9: ldc.r4 100
IL_02FE: mul
IL_02FF: stloc.s 12 (System.Single)
IL_0301: ldloca.s 12 (System.Single)
IL_0303: ldstr "F0"
IL_0308: call System.String System.Single::ToString(System.String format)
IL_030D: stelem.ref
IL_030E: dup
IL_030F: ldc.i4.4
IL_0310: ldstr "% of money."
IL_0315: stelem.ref
IL_0316: call static System.String System.String::Concat(System.String[]
values)
IL_031B: callvirt System.Text.StringBuilder
System.Text.StringBuilder::AppendLine(System.String value)
IL_0320: pop
IL_0321: br => Label20
IL_0326: Label15
IL_0326: Label16
IL_0326: Label17
IL_0326: Label18
IL_0326: ldloc.s 9 (System.Int32)
IL_0328: ldc.i4.s 20
IL_032A: bge => Label21
IL_032F: call static System.Single Verse.Rand::get_Value()
IL_0334: ldc.r4 0.97
IL_0339: bge.un => Label22
IL_033E: ldsfld RimWorld.PossibleApparelSet
RimWorld.PawnApparelGenerator::workingSet
IL_0343: ldsfld Verse.BodyPartGroupDef RimWorld.BodyPartGroupDefOf::Torso
IL_0348: callvirt System.Boolean
RimWorld.PossibleApparelSet::Covers(Verse.BodyPartGroupDef bp)
IL_034D: brtrue => Label23
IL_0352: ldsfld System.Boolean Verse.DebugViewSettings::logApparelGeneration
IL_0357: brfalse => Label24
IL_035C: ldsfld System.Text.StringBuilder
RimWorld.PawnApparelGenerator::debugSb
IL_0361: ldstr " -- Failed: Does not cover torso."
IL_0366: callvirt System.Text.StringBuilder
System.Text.StringBuilder::AppendLine(System.String value)
IL_036B: pop
IL_036C: br => Label25
IL_0371: Label21
IL_0371: Label22
IL_0371: Label23
IL_0371: ldloc.s 9 (System.Int32)
IL_0373: ldc.i4.s 30
IL_0375: bge => Label26
IL_037A: call static System.Single Verse.Rand::get_Value()
IL_037F: ldc.r4 0.8
IL_0384: bge.un => Label27
IL_0389: ldsfld RimWorld.PossibleApparelSet
RimWorld.PawnApparelGenerator::workingSet
IL_038E: callvirt System.Boolean RimWorld.PossibleApparelSet::CoatButNoShirt()
IL_0393: brfalse => Label28
IL_0398: ldsfld System.Boolean Verse.DebugViewSettings::logApparelGeneration
IL_039D: brfalse => Label29
IL_03A2: ldsfld System.Text.StringBuilder
RimWorld.PawnApparelGenerator::debugSb
IL_03A7: ldstr " -- Failed: Coat but no shirt."
IL_03AC: callvirt System.Text.StringBuilder
System.Text.StringBuilder::AppendLine(System.String value)
IL_03B1: pop
IL_03B2: br => Label30
IL_03B7: Label26
IL_03B7: Label27
IL_03B7: Label28
IL_03B7: ldloc.s 9 (System.Int32)
IL_03B9: ldc.i4.s 50
IL_03BB: bge => Label31
IL_03C0: ldloc.s 9 (System.Int32)
IL_03C2: ldc.i4.s 17
IL_03C4: clt
IL_03C6: stloc.s 13 (System.Boolean)
IL_03C8: ldsfld RimWorld.PossibleApparelSet
RimWorld.PawnApparelGenerator::workingSet
IL_03CD: ldloc.3
IL_03CE: ldloc.s 13 (System.Boolean)
IL_03D0: ldloc.1
IL_03D1: callvirt System.Boolean
RimWorld.PossibleApparelSet::SatisfiesNeededWarmth(RimWorld.NeededWarmth warmth,
System.Boolean mustBeSafe, System.Single mapTemperature)
IL_03D6: brtrue => Label32
IL_03DB: ldsfld System.Boolean Verse.DebugViewSettings::logApparelGeneration
IL_03E0: brfalse => Label33
IL_03E5: ldsfld System.Text.StringBuilder
RimWorld.PawnApparelGenerator::debugSb
IL_03EA: ldstr " -- Failed: Wrong warmth."
IL_03EF: callvirt System.Text.StringBuilder
System.Text.StringBuilder::AppendLine(System.String value)
IL_03F4: pop
IL_03F5: br => Label34
IL_03FA: Label31
IL_03FA: Label32
IL_03FA: call static System.Boolean Verse.ModsConfig::get_BiotechActive()
IL_03FF: brfalse => Label35
IL_0404: ldloc.s 9 (System.Int32)
IL_0406: ldc.i4.s 10
IL_0408: bge => Label36
IL_040D: ldsfld RimWorld.PossibleApparelSet
RimWorld.PawnApparelGenerator::workingSet
IL_0412: ldloc.s 5 (System.Single)
IL_0414: callvirt System.Boolean
RimWorld.PossibleApparelSet::SatisfiesNeededToxicEnvironmentResistance(System.Singl
e pollution)
IL_0419: brtrue => Label37
IL_041E: ldsfld System.Boolean Verse.DebugViewSettings::logApparelGeneration
IL_0423: brfalse => Label38
IL_0428: ldsfld System.Text.StringBuilder
RimWorld.PawnApparelGenerator::debugSb
IL_042D: ldstr " -- Failed: Wrong toxic environment resistance."
IL_0432: callvirt System.Text.StringBuilder
System.Text.StringBuilder::AppendLine(System.String value)
IL_0437: pop
IL_0438: br => Label39
IL_043D: Label35
IL_043D: Label36
IL_043D: Label37
IL_043D: ldloc.s 9 (System.Int32)
IL_043F: ldc.i4.s 80
IL_0441: bge => Label40
IL_0446: ldsfld RimWorld.PossibleApparelSet
RimWorld.PawnApparelGenerator::workingSet
IL_044B: ldloc.0
IL_044C: ldfld Verse.Pawn RimWorld.<>c__DisplayClass11_0::pawn
IL_0451: ldfld Verse.Gender Verse.Pawn::gender
IL_0456: callvirt System.Boolean
RimWorld.PossibleApparelSet::IsNaked(Verse.Gender gender)
IL_045B: brfalse => Label41
IL_0460: ldsfld System.Boolean Verse.DebugViewSettings::logApparelGeneration
IL_0465: brfalse => Label42
IL_046A: ldsfld System.Text.StringBuilder
RimWorld.PawnApparelGenerator::debugSb
IL_046F: ldstr " -- Failed: Naked."
IL_0474: callvirt System.Text.StringBuilder
System.Text.StringBuilder::AppendLine(System.String value)
IL_0479: pop
IL_047A: br => Label43
IL_047F: Label40
IL_047F: Label41
IL_047F: ldsfld System.Boolean Verse.DebugViewSettings::logApparelGeneration
IL_0484: brfalse => Label44
IL_0489: ldsfld System.Text.StringBuilder
RimWorld.PawnApparelGenerator::debugSb
IL_048E: ldc.i4.4
IL_048F: newarr System.Object
IL_0494: dup
IL_0495: ldc.i4.0
IL_0496: ldstr " -- Approved! Total price: $"
IL_049B: stelem.ref
IL_049C: dup
IL_049D: ldc.i4.1
IL_049E: ldsfld RimWorld.PossibleApparelSet
RimWorld.PawnApparelGenerator::workingSet
IL_04A3: callvirt System.Single RimWorld.PossibleApparelSet::get_TotalPrice()
IL_04A8: stloc.s 12 (System.Single)
IL_04AA: ldloca.s 12 (System.Single)
IL_04AC: ldstr "F0"
IL_04B1: call System.String System.Single::ToString(System.String format)
IL_04B6: stelem.ref
IL_04B7: dup
IL_04B8: ldc.i4.2
IL_04B9: ldstr ", TotalInsulationCold: "
IL_04BE: stelem.ref
IL_04BF: dup
IL_04C0: ldc.i4.3
IL_04C1: ldsfld RimWorld.PossibleApparelSet
RimWorld.PawnApparelGenerator::workingSet
IL_04C6: callvirt System.Single
RimWorld.PossibleApparelSet::get_TotalInsulationCold()
IL_04CB: box System.Single
IL_04D0: stelem.ref
IL_04D1: call static System.String System.String::Concat(System.Object[]
args)
IL_04D6: callvirt System.Text.StringBuilder
System.Text.StringBuilder::Append(System.String value)
IL_04DB: pop
IL_04DC: br => Label45
IL_04E1: Label19
IL_04E1: Label20
IL_04E1: Label24
IL_04E1: Label25
IL_04E1: Label29
IL_04E1: Label30
IL_04E1: Label33
IL_04E1: Label34
IL_04E1: Label38
IL_04E1: Label39
IL_04E1: Label42
IL_04E1: Label43
IL_04E1: ldloc.s 9 (System.Int32)
IL_04E3: ldc.i4.1
IL_04E4: add
IL_04E5: stloc.s 9 (System.Int32)
IL_04E7: br => Label46
IL_04EC: Label13
IL_04EC: Label44
IL_04EC: Label45
IL_04EC: ldloc.0
IL_04ED: ldfld Verse.Pawn RimWorld.<>c__DisplayClass11_0::pawn
IL_04F2: ldfld Verse.PawnKindDef Verse.Pawn::kindDef
IL_04F7: ldfld System.Boolean Verse.PawnKindDef::apparelIgnoreSeasons
IL_04FC: brfalse => Label47
IL_0501: ldloc.0
IL_0502: ldflda Verse.PawnGenerationRequest
RimWorld.<>c__DisplayClass11_0::request
IL_0507: call System.Boolean
Verse.PawnGenerationRequest::get_ForceAddFreeWarmLayerIfNeeded()
IL_050C: brfalse => Label48
IL_0511: Label47
IL_0511: ldsfld RimWorld.PossibleApparelSet
RimWorld.PawnApparelGenerator::workingSet
IL_0516: ldloc.3
IL_0517: ldc.i4.1
IL_0518: ldloc.1
IL_0519: callvirt System.Boolean
RimWorld.PossibleApparelSet::SatisfiesNeededWarmth(RimWorld.NeededWarmth warmth,
System.Boolean mustBeSafe, System.Single mapTemperature)
IL_051E: brtrue => Label49
IL_0523: ldsfld RimWorld.PossibleApparelSet
RimWorld.PawnApparelGenerator::workingSet
IL_0528: ldloc.3
IL_0529: ldloc.1
IL_052A: ldloc.0
IL_052B: ldfld Verse.Pawn RimWorld.<>c__DisplayClass11_0::pawn
IL_0530: callvirt System.Void
RimWorld.PossibleApparelSet::AddFreeWarmthAsNeeded(RimWorld.NeededWarmth warmth,
System.Single mapTemperature, Verse.Pawn pawn)
IL_0535: Label48
IL_0535: Label49
IL_0535: call static System.Boolean Verse.ModsConfig::get_BiotechActive()
IL_053A: brfalse => Label50
IL_053F: ldloc.0
IL_0540: ldfld Verse.Pawn RimWorld.<>c__DisplayClass11_0::pawn
IL_0545: ldfld Verse.PawnKindDef Verse.Pawn::kindDef
IL_054A: ldfld System.Boolean Verse.PawnKindDef::apparelIgnorePollution
IL_054F: brtrue => Label51
IL_0554: ldloc.s 5 (System.Single)
IL_0556: ldc.r4 0.05
IL_055B: ble.un => Label52
IL_0560: ldsfld RimWorld.PossibleApparelSet
RimWorld.PawnApparelGenerator::workingSet
IL_0565: ldloc.s 5 (System.Single)
IL_0567: callvirt System.Boolean
RimWorld.PossibleApparelSet::SatisfiesNeededToxicEnvironmentResistance(System.Singl
e pollution)
IL_056C: brtrue => Label53
IL_0571: ldsfld RimWorld.PossibleApparelSet
RimWorld.PawnApparelGenerator::workingSet
IL_0576: ldloc.s 5 (System.Single)
IL_0578: ldloc.0
IL_0579: ldftn System.Boolean
RimWorld.<>c__DisplayClass11_0::<GenerateStartingApparelFor>b__0(RimWorld.ThingStuf
fPair pa)
IL_057F: newobj System.Void System.Func`2<RimWorld.ThingStuffPair,
System.Boolean>::.ctor(System.Object object, System.IntPtr method)
IL_0584: callvirt System.Void
RimWorld.PossibleApparelSet::AddFreeToxicEnvironmentResistanceAsNeeded(System.Singl
e pollution, System.Func`2<RimWorld.ThingStuffPair, System.Boolean> extraValidator)
IL_0589: Label50
IL_0589: Label51
IL_0589: Label52
IL_0589: Label53
IL_0589: ldsfld System.Boolean Verse.DebugViewSettings::logApparelGeneration
IL_058E: brfalse => Label54
IL_0593: ldsfld System.Text.StringBuilder
RimWorld.PawnApparelGenerator::debugSb
IL_0598: callvirt virtual System.String System.Object::ToString()
IL_059D: call static System.Void Verse.Log::Message(System.String text)
IL_05A2: Label54
IL_05A2: ldsfld RimWorld.PossibleApparelSet
RimWorld.PawnApparelGenerator::workingSet
IL_05A7: ldloc.0
IL_05A8: ldfld Verse.Pawn RimWorld.<>c__DisplayClass11_0::pawn
IL_05AD: callvirt System.Void RimWorld.PossibleApparelSet::GiveToPawn(Verse.Pawn
pawn)
IL_05B2: ldsfld RimWorld.PossibleApparelSet
RimWorld.PawnApparelGenerator::workingSet
IL_05B7: ldnull
IL_05B8: ldnull
IL_05B9: callvirt System.Void RimWorld.PossibleApparelSet::Reset(Verse.BodyDef
body, Verse.ThingDef raceDef)
IL_05BE: ldloc.0
IL_05BF: ldfld Verse.Pawn RimWorld.<>c__DisplayClass11_0::pawn
IL_05C4: ldfld RimWorld.Pawn_ApparelTracker Verse.Pawn::apparel
IL_05C9: callvirt System.Collections.Generic.List`1<RimWorld.Apparel>
RimWorld.Pawn_ApparelTracker::get_WornApparel()
IL_05CE: callvirt System.Collections.Generic.Enumerator<RimWorld.Apparel>
System.Collections.Generic.List`1<RimWorld.Apparel>::GetEnumerator()
IL_05D3: stloc.s 14
(System.Collections.Generic.List`1+Enumerator[RimWorld.Apparel])
.try
{
IL_05D5: br => Label55
IL_05DA: Label59
IL_05DA: ldloca.s 14
(System.Collections.Generic.List`1+Enumerator[RimWorld.Apparel])
IL_05DC: call virtual RimWorld.Apparel
System.Collections.Generic.Enumerator<RimWorld.Apparel>::get_Current()
IL_05E1: dup
IL_05E2: ldloc.0
IL_05E3: ldfld Verse.Pawn RimWorld.<>c__DisplayClass11_0::pawn
IL_05E8: call static System.Void
RimWorld.PawnApparelGenerator::PostProcessApparel(RimWorld.Apparel apparel,
Verse.Pawn pawn)
IL_05ED: call static RimWorld.CompBiocodable
Verse.ThingCompUtility::TryGetComp(Verse.Thing thing)
IL_05F2: stloc.s 15 (RimWorld.CompBiocodable)
IL_05F4: ldloc.s 15 (RimWorld.CompBiocodable)
IL_05F6: brfalse => Label56
IL_05FB: ldloc.s 15 (RimWorld.CompBiocodable)
IL_05FD: callvirt System.Boolean RimWorld.CompBiocodable::get_Biocoded()
IL_0602: brtrue => Label57
IL_0607: ldloc.0
IL_0608: ldflda Verse.PawnGenerationRequest
RimWorld.<>c__DisplayClass11_0::request
IL_060D: call System.Single
Verse.PawnGenerationRequest::get_BiocodeApparelChance()
IL_0612: call static System.Boolean Verse.Rand::Chance(System.Single
chance)
IL_0617: brfalse => Label58
IL_061C: ldloc.s 15 (RimWorld.CompBiocodable)
IL_061E: ldloc.0
IL_061F: ldfld Verse.Pawn RimWorld.<>c__DisplayClass11_0::pawn
IL_0624: callvirt virtual System.Void
RimWorld.CompBiocodable::CodeFor(Verse.Pawn p)
IL_0629: Label55
IL_0629: Label56
IL_0629: Label57
IL_0629: Label58
IL_0629: ldloca.s 14
(System.Collections.Generic.List`1+Enumerator[RimWorld.Apparel])
IL_062B: call virtual System.Boolean
System.Collections.Generic.Enumerator<RimWorld.Apparel>::MoveNext()
IL_0630: brtrue => Label59
IL_0635: leave => Label60
IL_063A: leave => (autogenerated)
} // end try
.finally
{
IL_063F: ldloca.s 14
(System.Collections.Generic.List`1+Enumerator[RimWorld.Apparel])
IL_0641: constrained.
System.Collections.Generic.List`1+Enumerator[RimWorld.Apparel]
IL_0647: callvirt abstract virtual System.Void
System.IDisposable::Dispose()
IL_064C: endfinally
IL_064D: leave => (autogenerated)
} // end handler
IL_064E: // end original
IL_064E: Label60
IL_064E: Label61
IL_064E: Label0
IL_064E: call static System.Void
AlienRace.HarmonyPatches::GenerateStartingApparelForPostfix()
IL_0653: ret
DONE

### Patch: static System.Void


Verse.PawnGenerator::GenerateInitialHediffs(Verse.Pawn pawn,
Verse.PawnGenerationRequest request)
### Replacement: static System.Void
Verse.PawnGenerator::Verse.PawnGenerator.GenerateInitialHediffs_Patch2(Verse.Pawn
pawn, Verse.PawnGenerationRequest request)
IL_0000: Local var 0: Verse.PawnGenerator/<>c__DisplayClass36_0
IL_0000: Local var 1: System.Int32
IL_0000: Local var 2:
System.Collections.Generic.List`1/Enumerator<Verse.MissingPart>
IL_0000: Local var 3: Verse.PawnGenerator/<>c__DisplayClass36_1
IL_0000: Local var 4: Verse.Hediff_MissingPart
IL_0000: Local var 5:
System.Collections.Generic.IEnumerable`1<Verse.BodyPartRecord>
IL_0000: Local var 6: System.Nullable`1<Verse.DamageInfo>
IL_0000: Local var 7: System.Single
IL_0000: Local var 8: Verse.Hediff_Pregnant
IL_0000: Local var 9: Verse.Pawn
IL_0000: Local var 10: RimWorld.GeneSet
IL_0000: Local var 11: System.Boolean
IL_0000: Local var 12: Verse.FloatRange
IL_0000: Local var 13: RimWorld.DirectPawnRelation
IL_0000: Local var 14: System.Int32
IL_0000: // start original
IL_0000: newobj System.Void Verse.<>c__DisplayClass36_0::.ctor()
IL_0005: stloc.0
IL_0006: ldloc.0
IL_0007: ldarg.0
IL_0008: stfld Verse.Pawn Verse.<>c__DisplayClass36_0::pawn
IL_000D: ldc.i4.0
IL_000E: stloc.1
IL_000F: Label52
IL_000F: ldarga.s 1
IL_0011: call Verse.DevelopmentalStage
Verse.PawnGenerationRequest::get_AllowedDevelopmentalStages()
IL_0016: call static System.Boolean
Verse.DevelopmentalStageExtensions::Newborn(Verse.DevelopmentalStage
developmentalStage)
IL_001B: brtrue => Label0
IL_0020: ldloc.0
IL_0021: ldfld Verse.Pawn Verse.<>c__DisplayClass36_0::pawn
IL_0026: ldarga.s 1
IL_0028: call System.Boolean Verse.PawnGenerationRequest::get_AllowDead()
IL_002D: brtrue => Label1
IL_0032: ldarga.s 1
IL_0034: call System.Boolean Verse.PawnGenerationRequest::get_ForceDead()
IL_0039: ldc.i4.0
IL_003A: ceq
IL_003C: br => Label2
IL_0041: Label1
IL_0041: ldc.i4.0
IL_0042: Label2
IL_0042: call static System.Void
RimWorld.AgeInjuryUtility::GenerateRandomOldAgeInjuries(Verse.Pawn pawn,
System.Boolean tryNotToKillPawn)
IL_0047: ldloc.0
IL_0048: ldfld Verse.Pawn Verse.<>c__DisplayClass36_0::pawn
IL_004D: call static System.Void
RimWorld.PawnTechHediffsGenerator::GenerateTechHediffsFor(Verse.Pawn pawn)
IL_0052: Label0
IL_0052: ldloc.0
IL_0053: ldfld Verse.Pawn Verse.<>c__DisplayClass36_0::pawn
IL_0058: ldfld Verse.PawnKindDef Verse.Pawn::kindDef
IL_005D: ldfld System.Collections.Generic.List`1<Verse.MissingPart>
Verse.PawnKindDef::missingParts
IL_0062: call static System.Boolean
Verse.GenList::NullOrEmpty(System.Collections.Generic.IList`1<Verse.MissingPart>
list)
IL_0067: brtrue => Label3
IL_006C: ldloc.0
IL_006D: ldfld Verse.Pawn Verse.<>c__DisplayClass36_0::pawn
IL_0072: ldfld Verse.PawnKindDef Verse.Pawn::kindDef
IL_0077: ldfld System.Collections.Generic.List`1<Verse.MissingPart>
Verse.PawnKindDef::missingParts
IL_007C: callvirt System.Collections.Generic.Enumerator<Verse.MissingPart>
System.Collections.Generic.List`1<Verse.MissingPart>::GetEnumerator()
IL_0081: stloc.2
.try
{
IL_0082: br => Label4
IL_0087: Label7
IL_0087: newobj System.Void Verse.<>c__DisplayClass36_1::.ctor()
IL_008C: stloc.3
IL_008D: ldloc.3
IL_008E: ldloc.0
IL_008F: stfld Verse.<>c__DisplayClass36_0
Verse.<>c__DisplayClass36_1::CS$<>8__locals1
IL_0094: ldloc.3
IL_0095: ldloca.s 2
(System.Collections.Generic.List`1+Enumerator[Verse.MissingPart])
IL_0097: call virtual Verse.MissingPart
System.Collections.Generic.Enumerator<Verse.MissingPart>::get_Current()
IL_009C: stfld Verse.MissingPart Verse.<>c__DisplayClass36_1::t
IL_00A1: ldsfld Verse.HediffDef RimWorld.HediffDefOf::MissingBodyPart
IL_00A6: ldloc.3
IL_00A7: ldfld Verse.<>c__DisplayClass36_0
Verse.<>c__DisplayClass36_1::CS$<>8__locals1
IL_00AC: ldfld Verse.Pawn Verse.<>c__DisplayClass36_0::pawn
IL_00B1: ldnull
IL_00B2: call static Verse.Hediff
Verse.HediffMaker::MakeHediff(Verse.HediffDef def, Verse.Pawn pawn,
Verse.BodyPartRecord partRecord)
IL_00B7: castclass Verse.Hediff_MissingPart
IL_00BC: stloc.s 4 (Verse.Hediff_MissingPart)
IL_00BE: ldloc.3
IL_00BF: ldfld Verse.MissingPart Verse.<>c__DisplayClass36_1::t
IL_00C4: callvirt Verse.HediffDef Verse.MissingPart::get_Injury()
IL_00C9: brfalse => Label5
IL_00CE: ldloc.s 4 (Verse.Hediff_MissingPart)
IL_00D0: ldloc.3
IL_00D1: ldfld Verse.MissingPart Verse.<>c__DisplayClass36_1::t
IL_00D6: callvirt Verse.HediffDef Verse.MissingPart::get_Injury()
IL_00DB: stfld Verse.HediffDef Verse.Hediff_MissingPart::lastInjury
IL_00E0: Label5
IL_00E0: ldloc.3
IL_00E1: ldfld Verse.<>c__DisplayClass36_0
Verse.<>c__DisplayClass36_1::CS$<>8__locals1
IL_00E6: ldfld Verse.Pawn Verse.<>c__DisplayClass36_0::pawn
IL_00EB: ldfld Verse.Pawn_HealthTracker Verse.Pawn::health
IL_00F0: ldfld Verse.HediffSet Verse.Pawn_HealthTracker::hediffSet
IL_00F5: ldc.i4.0
IL_00F6: ldc.i4.0
IL_00F7: ldnull
IL_00F8: ldnull
IL_00F9: callvirt
System.Collections.Generic.IEnumerable`1<Verse.BodyPartRecord>
Verse.HediffSet::GetNotMissingParts(Verse.BodyPartHeight height,
Verse.BodyPartDepth depth, Verse.BodyPartTagDef tag, Verse.BodyPartRecord
partParent)
IL_00FE: ldloc.3
IL_00FF: ldftn System.Boolean
Verse.<>c__DisplayClass36_1::<GenerateInitialHediffs>b__0(Verse.BodyPartRecord x)
IL_0105: newobj System.Void System.Func`2<Verse.BodyPartRecord,
System.Boolean>::.ctor(System.Object object, System.IntPtr method)
IL_010A: call static
System.Collections.Generic.IEnumerable`1<Verse.BodyPartRecord>
System.Linq.Enumerable::Where(System.Collections.Generic.IEnumerable`1<Verse.BodyPa
rtRecord> source, System.Func`2<Verse.BodyPartRecord, System.Boolean> predicate)
IL_010F: stloc.s 5
(System.Collections.Generic.IEnumerable`1[Verse.BodyPartRecord])
IL_0111: ldloc.s 5
(System.Collections.Generic.IEnumerable`1[Verse.BodyPartRecord])
IL_0113: call static System.Boolean
System.Linq.Enumerable::Any(System.Collections.Generic.IEnumerable`1<Verse.BodyPart
Record> source)
IL_0118: brfalse => Label6
IL_011D: ldloc.s 4 (Verse.Hediff_MissingPart)
IL_011F: ldloc.s 5
(System.Collections.Generic.IEnumerable`1[Verse.BodyPartRecord])
IL_0121: call static Verse.BodyPartRecord
Verse.GenCollection::RandomElement(System.Collections.Generic.IEnumerable`1<Verse.B
odyPartRecord> source)
IL_0126: callvirt System.Void Verse.Hediff::set_Part(Verse.BodyPartRecord
value)
IL_012B: ldloc.3
IL_012C: ldfld Verse.<>c__DisplayClass36_0
Verse.<>c__DisplayClass36_1::CS$<>8__locals1
IL_0131: ldfld Verse.Pawn Verse.<>c__DisplayClass36_0::pawn
IL_0136: ldfld Verse.Pawn_HealthTracker Verse.Pawn::health
IL_013B: ldloc.s 4 (Verse.Hediff_MissingPart)
IL_013D: ldnull
IL_013E: ldloca.s 6 (System.Nullable`1[Verse.DamageInfo])
IL_0140: initobj System.Nullable`1[Verse.DamageInfo]
IL_0146: ldloc.s 6 (System.Nullable`1[Verse.DamageInfo])
IL_0148: ldnull
IL_0149: callvirt System.Void
Verse.Pawn_HealthTracker::AddHediff(Verse.Hediff hediff, Verse.BodyPartRecord part,
System.Nullable`1<Verse.DamageInfo> dinfo, Verse.DamageResult result)
IL_014E: Label4
IL_014E: Label6
IL_014E: ldloca.s 2
(System.Collections.Generic.List`1+Enumerator[Verse.MissingPart])
IL_0150: call virtual System.Boolean
System.Collections.Generic.Enumerator<Verse.MissingPart>::MoveNext()
IL_0155: brtrue => Label7
IL_015A: leave => Label8
IL_015F: leave => (autogenerated)
} // end try
.finally
{
IL_0164: ldloca.s 2
(System.Collections.Generic.List`1+Enumerator[Verse.MissingPart])
IL_0166: constrained.
System.Collections.Generic.List`1+Enumerator[Verse.MissingPart]
IL_016C: callvirt abstract virtual System.Void
System.IDisposable::Dispose()
IL_0171: endfinally
IL_0172: leave => (autogenerated)
} // end handler
IL_0173: Label3
IL_0173: Label8
IL_0173: ldarga.s 1
IL_0175: call System.Boolean
Verse.PawnGenerationRequest::get_AllowAddictions()
IL_017A: brfalse => Label9
IL_017F: ldloc.0
IL_0180: ldfld Verse.Pawn Verse.<>c__DisplayClass36_0::pawn
IL_0185: callvirt Verse.DevelopmentalStage Verse.Pawn::get_DevelopmentalStage()
IL_018A: call static System.Boolean
Verse.DevelopmentalStageExtensions::Adult(Verse.DevelopmentalStage
developmentalStage)
IL_018F: brfalse => Label10
IL_0194: ldloc.0
IL_0195: ldfld Verse.Pawn Verse.<>c__DisplayClass36_0::pawn
IL_019A: call static System.Void
RimWorld.PawnAddictionHediffsGenerator::GenerateAddictionsAndTolerancesFor(Verse.Pa
wn pawn)
IL_019F: Label9
IL_019F: Label10
IL_019F: ldarga.s 1
IL_01A1: call Verse.DevelopmentalStage
Verse.PawnGenerationRequest::get_AllowedDevelopmentalStages()
IL_01A6: call static System.Boolean
Verse.DevelopmentalStageExtensions::Newborn(Verse.DevelopmentalStage
developmentalStage)
IL_01AB: brtrue => Label11
IL_01B0: ldarga.s 1
IL_01B2: call Verse.DevelopmentalStage
Verse.PawnGenerationRequest::get_AllowedDevelopmentalStages()
IL_01B7: call static System.Boolean
Verse.DevelopmentalStageExtensions::Baby(Verse.DevelopmentalStage
developmentalStage)
IL_01BC: brtrue => Label12
IL_01C1: ldloc.0
IL_01C2: ldfld Verse.Pawn Verse.<>c__DisplayClass36_0::pawn
IL_01C7: call static System.Void
Verse.PawnGenerator::AddRequiredScars(Verse.Pawn pawn)
IL_01CC: ldloc.0
IL_01CD: ldfld Verse.Pawn Verse.<>c__DisplayClass36_0::pawn
IL_01D2: call static System.Void Verse.PawnGenerator::AddBlindness(Verse.Pawn
pawn)
IL_01D7: Label11
IL_01D7: Label12
IL_01D7: call static System.Boolean Verse.ModsConfig::get_BiotechActive()
IL_01DC: brfalse => Label13
IL_01E1: ldloc.0
IL_01E2: ldfld Verse.Pawn Verse.<>c__DisplayClass36_0::pawn
IL_01E7: callvirt System.Boolean Verse.Pawn::get_Dead()
IL_01EC: brtrue => Label14
IL_01F1: ldloc.0
IL_01F2: ldfld Verse.Pawn Verse.<>c__DisplayClass36_0::pawn
IL_01F7: ldfld Verse.Gender Verse.Pawn::gender
IL_01FC: ldc.i4.2
IL_01FD: bne.un => Label15
IL_0202: ldloc.0
IL_0203: ldfld Verse.Pawn Verse.<>c__DisplayClass36_0::pawn
IL_0208: ldfld Verse.PawnKindDef Verse.Pawn::kindDef
IL_020D: ldfld System.Single Verse.PawnKindDef::humanPregnancyChance
IL_0212: ldloc.0
IL_0213: ldfld Verse.Pawn Verse.<>c__DisplayClass36_0::pawn
IL_0218: call static System.Single
RimWorld.PregnancyUtility::PregnancyChanceForPawn(Verse.Pawn pawn)
IL_021D: mul
IL_021E: stloc.s 7 (System.Single)
IL_0220: call static RimWorld.Storyteller Verse.Find::get_Storyteller()
IL_0225: ldfld RimWorld.Difficulty RimWorld.Storyteller::difficulty
IL_022A: callvirt System.Boolean RimWorld.Difficulty::get_ChildrenAllowed()
IL_022F: brfalse => Label16
IL_0234: ldloc.0
IL_0235: ldfld Verse.Pawn Verse.<>c__DisplayClass36_0::pawn
IL_023A: ldfld Verse.Pawn_AgeTracker Verse.Pawn::ageTracker
IL_023F: callvirt System.Int32 Verse.Pawn_AgeTracker::get_AgeBiologicalYears()
IL_0244: ldc.i4.s 16
IL_0246: blt => Label17
IL_024B: ldarga.s 1
IL_024D: call System.Boolean Verse.PawnGenerationRequest::get_AllowPregnant()
IL_0252: brfalse => Label18
IL_0257: ldloc.s 7 (System.Single)
IL_0259: call static System.Boolean Verse.Rand::Chance(System.Single chance)
IL_025E: brfalse => Label19
IL_0263: ldsfld Verse.HediffDef RimWorld.HediffDefOf::PregnantHuman
IL_0268: ldloc.0
IL_0269: ldfld Verse.Pawn Verse.<>c__DisplayClass36_0::pawn
IL_026E: ldnull
IL_026F: call static Verse.Hediff
Verse.HediffMaker::MakeHediff(Verse.HediffDef def, Verse.Pawn pawn,
Verse.BodyPartRecord partRecord)
IL_0274: castclass Verse.Hediff_Pregnant
IL_0279: stloc.s 8 (Verse.Hediff_Pregnant)
IL_027B: ldloc.s 8 (Verse.Hediff_Pregnant)
IL_027D: call static Verse.FloatRange
RimWorld.PregnancyUtility::get_GeneratedPawnPregnancyProgressRange()
IL_0282: stloc.s 12 (Verse.FloatRange)
IL_0284: ldloca.s 12 (Verse.FloatRange)
IL_0286: call System.Single Verse.FloatRange::get_RandomInRange()
IL_028B: callvirt virtual System.Void Verse.Hediff::set_Severity(System.Single
value)
IL_0290: ldnull
IL_0291: stloc.s 9 (Verse.Pawn)
IL_0293: ldc.r4 0.2
IL_0298: call static System.Boolean Verse.Rand::Chance(System.Single chance)
IL_029D: brtrue => Label20
IL_02A2: ldloc.0
IL_02A3: ldfld Verse.Pawn Verse.<>c__DisplayClass36_0::pawn
IL_02A8: ldfld RimWorld.Pawn_RelationsTracker Verse.Pawn::relations
IL_02AD: callvirt System.Collections.Generic.List`1<RimWorld.DirectPawnRelation>
RimWorld.Pawn_RelationsTracker::get_DirectRelations()
IL_02B2: ldsfld System.Func`2<RimWorld.DirectPawnRelation, System.Boolean>
Verse.<>c::<>9__36_1
IL_02B7: dup
IL_02B8: brtrue => Label21
IL_02BD: pop
IL_02BE: ldsfld Verse.<>c Verse.<>c::<>9
IL_02C3: ldftn System.Boolean
Verse.<>c::<GenerateInitialHediffs>b__36_1(RimWorld.DirectPawnRelation r)
IL_02C9: newobj System.Void System.Func`2<RimWorld.DirectPawnRelation,
System.Boolean>::.ctor(System.Object object, System.IntPtr method)
IL_02CE: dup
IL_02CF: stsfld System.Func`2<RimWorld.DirectPawnRelation, System.Boolean>
Verse.<>c::<>9__36_1
IL_02D4: Label21
IL_02D4: call static
System.Collections.Generic.IEnumerable`1<RimWorld.DirectPawnRelation>
System.Linq.Enumerable::Where(System.Collections.Generic.IEnumerable`1<RimWorld.Dir
ectPawnRelation> source, System.Func`2<RimWorld.DirectPawnRelation, System.Boolean>
predicate)
IL_02D9: ldsfld System.Func`2<RimWorld.DirectPawnRelation, System.Single>
Verse.<>c::<>9__36_2
IL_02DE: dup
IL_02DF: brtrue => Label22
IL_02E4: pop
IL_02E5: ldsfld Verse.<>c Verse.<>c::<>9
IL_02EA: ldftn System.Single
Verse.<>c::<GenerateInitialHediffs>b__36_2(RimWorld.DirectPawnRelation r)
IL_02F0: newobj System.Void System.Func`2<RimWorld.DirectPawnRelation,
System.Single>::.ctor(System.Object object, System.IntPtr method)
IL_02F5: dup
IL_02F6: stsfld System.Func`2<RimWorld.DirectPawnRelation, System.Single>
Verse.<>c::<>9__36_2
IL_02FB: Label22
IL_02FB: ldloca.s 13 (RimWorld.DirectPawnRelation)
IL_02FD: call static System.Boolean
Verse.GenCollection::TryRandomElementByWeight(System.Collections.Generic.IEnumerabl
e`1<RimWorld.DirectPawnRelation> source, System.Func`2<RimWorld.DirectPawnRelation,
System.Single> weightSelector, RimWorld.DirectPawnRelation& result)
IL_0302: brfalse => Label23
IL_0307: ldloc.s 13 (RimWorld.DirectPawnRelation)
IL_0309: ldfld Verse.Pawn RimWorld.DirectPawnRelation::otherPawn
IL_030E: stloc.s 9 (Verse.Pawn)
IL_0310: Label20
IL_0310: Label23
IL_0310: ldloc.s 9 (Verse.Pawn)
IL_0312: ldloc.0
IL_0313: ldfld Verse.Pawn Verse.<>c__DisplayClass36_0::pawn
IL_0318: ldloca.s 11 (System.Boolean)
IL_031A: call static RimWorld.GeneSet
RimWorld.PregnancyUtility::GetInheritedGeneSet(Verse.Pawn father, Verse.Pawn
mother, System.Boolean& success)
IL_031F: stloc.s 10 (RimWorld.GeneSet)
IL_0321: ldloc.s 11 (System.Boolean)
IL_0323: brfalse => Label24
IL_0328: ldloc.s 8 (Verse.Hediff_Pregnant)
IL_032A: ldnull
IL_032B: ldloc.s 9 (Verse.Pawn)
IL_032D: ldloc.s 10 (RimWorld.GeneSet)
IL_032F: callvirt System.Void Verse.HediffWithParents::SetParents(Verse.Pawn
mother, Verse.Pawn father, RimWorld.GeneSet geneSet)
IL_0334: ldloc.0
IL_0335: ldfld Verse.Pawn Verse.<>c__DisplayClass36_0::pawn
IL_033A: ldfld Verse.Pawn_HealthTracker Verse.Pawn::health
IL_033F: ldloc.s 8 (Verse.Hediff_Pregnant)
IL_0341: ldnull
IL_0342: ldloca.s 6 (System.Nullable`1[Verse.DamageInfo])
IL_0344: initobj System.Nullable`1[Verse.DamageInfo]
IL_034A: ldloc.s 6 (System.Nullable`1[Verse.DamageInfo])
IL_034C: ldnull
IL_034D: callvirt System.Void Verse.Pawn_HealthTracker::AddHediff(Verse.Hediff
hediff, Verse.BodyPartRecord part, System.Nullable`1<Verse.DamageInfo> dinfo,
Verse.DamageResult result)
IL_0352: br => Label25
IL_0357: Label16
IL_0357: Label17
IL_0357: Label18
IL_0357: Label19
IL_0357: ldloc.0
IL_0358: ldfld Verse.Pawn Verse.<>c__DisplayClass36_0::pawn
IL_035D: callvirt Verse.RaceProperties Verse.Pawn::get_RaceProps()
IL_0362: callvirt System.Boolean Verse.RaceProperties::get_Humanlike()
IL_0367: brfalse => Label26
IL_036C: ldloc.0
IL_036D: ldfld Verse.Pawn Verse.<>c__DisplayClass36_0::pawn
IL_0372: ldfld Verse.Pawn_AgeTracker Verse.Pawn::ageTracker
IL_0377: callvirt System.Int32 Verse.Pawn_AgeTracker::get_AgeBiologicalYears()
IL_037C: ldc.i4.s 20
IL_037E: blt => Label27
IL_0383: ldloc.0
IL_0384: ldfld Verse.Pawn Verse.<>c__DisplayClass36_0::pawn
IL_0389: ldfld RimWorld.Pawn_StoryTracker Verse.Pawn::story
IL_038E: callvirt RimWorld.BackstoryDef
RimWorld.Pawn_StoryTracker::get_Adulthood()
IL_0393: dup
IL_0394: brtrue => Label28
IL_0399: pop
IL_039A: ldc.i4.1
IL_039B: br => Label29
IL_03A0: Label28
IL_03A0: ldfld System.Collections.Generic.List`1<System.String>
RimWorld.BackstoryDef::spawnCategories
IL_03A5: ldstr "Tribal"
IL_03AA: callvirt virtual System.Boolean
System.Collections.Generic.List`1<System.String>::Contains(System.String item)
IL_03AF: ldc.i4.0
IL_03B0: ceq
IL_03B2: Label29
IL_03B2: brfalse => Label30
IL_03B7: ldc.r4 0.005
IL_03BC: call static System.Boolean Verse.Rand::Chance(System.Single chance)
IL_03C1: brfalse => Label31
IL_03C6: ldloc.0
IL_03C7: ldfld Verse.Pawn Verse.<>c__DisplayClass36_0::pawn
IL_03CC: ldfld Verse.Pawn_HealthTracker Verse.Pawn::health
IL_03D1: ldsfld Verse.HediffDef RimWorld.HediffDefOf::Sterilized
IL_03D6: ldnull
IL_03D7: ldloca.s 6 (System.Nullable`1[Verse.DamageInfo])
IL_03D9: initobj System.Nullable`1[Verse.DamageInfo]
IL_03DF: ldloc.s 6 (System.Nullable`1[Verse.DamageInfo])
IL_03E1: ldnull
IL_03E2: callvirt Verse.Hediff
Verse.Pawn_HealthTracker::AddHediff(Verse.HediffDef def, Verse.BodyPartRecord part,
System.Nullable`1<Verse.DamageInfo> dinfo, Verse.DamageResult result)
IL_03E7: pop
IL_03E8: br => Label32
IL_03ED: Label31
IL_03ED: ldc.r4 0.005
IL_03F2: call static System.Boolean Verse.Rand::Chance(System.Single chance)
IL_03F7: brfalse => Label33
IL_03FC: ldloc.0
IL_03FD: ldfld Verse.Pawn Verse.<>c__DisplayClass36_0::pawn
IL_0402: ldfld Verse.Pawn_HealthTracker Verse.Pawn::health
IL_0407: ldsfld Verse.HediffDef RimWorld.HediffDefOf::ImplantedIUD
IL_040C: ldnull
IL_040D: ldloca.s 6 (System.Nullable`1[Verse.DamageInfo])
IL_040F: initobj System.Nullable`1[Verse.DamageInfo]
IL_0415: ldloc.s 6 (System.Nullable`1[Verse.DamageInfo])
IL_0417: ldnull
IL_0418: callvirt Verse.Hediff
Verse.Pawn_HealthTracker::AddHediff(Verse.HediffDef def, Verse.BodyPartRecord part,
System.Nullable`1<Verse.DamageInfo> dinfo, Verse.DamageResult result)
IL_041D: pop
IL_041E: Label13
IL_041E: Label14
IL_041E: Label15
IL_041E: Label24
IL_041E: Label25
IL_041E: Label26
IL_041E: Label27
IL_041E: Label30
IL_041E: Label32
IL_041E: Label33
IL_041E: call static System.Boolean Verse.ModsConfig::get_BiotechActive()
IL_0423: brfalse => Label34
IL_0428: ldloc.0
IL_0429: ldfld Verse.Pawn Verse.<>c__DisplayClass36_0::pawn
IL_042E: callvirt Verse.RaceProperties Verse.Pawn::get_RaceProps()
IL_0433: callvirt System.Boolean Verse.RaceProperties::get_Humanlike()
IL_0438: brfalse => Label35
IL_043D: ldloc.0
IL_043E: ldfld Verse.Pawn Verse.<>c__DisplayClass36_0::pawn
IL_0443: callvirt System.Boolean Verse.Pawn::get_Dead()
IL_0448: brtrue => Label36
IL_044D: ldloc.0
IL_044E: ldfld Verse.Pawn Verse.<>c__DisplayClass36_0::pawn
IL_0453: ldfld Verse.Gender Verse.Pawn::gender
IL_0458: ldc.i4.1
IL_0459: bne.un => Label37
IL_045E: call static RimWorld.Storyteller Verse.Find::get_Storyteller()
IL_0463: ldfld RimWorld.Difficulty RimWorld.Storyteller::difficulty
IL_0468: callvirt System.Boolean RimWorld.Difficulty::get_ChildrenAllowed()
IL_046D: brfalse => Label38
IL_0472: ldloc.0
IL_0473: ldfld Verse.Pawn Verse.<>c__DisplayClass36_0::pawn
IL_0478: ldfld Verse.Pawn_AgeTracker Verse.Pawn::ageTracker
IL_047D: callvirt System.Int32 Verse.Pawn_AgeTracker::get_AgeBiologicalYears()
IL_0482: ldc.i4.s 20
IL_0484: blt => Label39
IL_0489: ldloc.0
IL_048A: ldfld Verse.Pawn Verse.<>c__DisplayClass36_0::pawn
IL_048F: ldfld RimWorld.Pawn_StoryTracker Verse.Pawn::story
IL_0494: callvirt RimWorld.BackstoryDef
RimWorld.Pawn_StoryTracker::get_Adulthood()
IL_0499: dup
IL_049A: brtrue => Label40
IL_049F: pop
IL_04A0: ldc.i4.1
IL_04A1: br => Label41
IL_04A6: Label40
IL_04A6: ldfld System.Collections.Generic.List`1<System.String>
RimWorld.BackstoryDef::spawnCategories
IL_04AB: ldstr "Tribal"
IL_04B0: callvirt virtual System.Boolean
System.Collections.Generic.List`1<System.String>::Contains(System.String item)
IL_04B5: ldc.i4.0
IL_04B6: ceq
IL_04B8: Label41
IL_04B8: brfalse => Label42
IL_04BD: ldc.r4 0.005
IL_04C2: call static System.Boolean Verse.Rand::Chance(System.Single chance)
IL_04C7: brfalse => Label43
IL_04CC: ldloc.0
IL_04CD: ldfld Verse.Pawn Verse.<>c__DisplayClass36_0::pawn
IL_04D2: ldfld Verse.Pawn_HealthTracker Verse.Pawn::health
IL_04D7: ldsfld Verse.HediffDef RimWorld.HediffDefOf::Sterilized
IL_04DC: ldnull
IL_04DD: ldloca.s 6 (System.Nullable`1[Verse.DamageInfo])
IL_04DF: initobj System.Nullable`1[Verse.DamageInfo]
IL_04E5: ldloc.s 6 (System.Nullable`1[Verse.DamageInfo])
IL_04E7: ldnull
IL_04E8: callvirt Verse.Hediff
Verse.Pawn_HealthTracker::AddHediff(Verse.HediffDef def, Verse.BodyPartRecord part,
System.Nullable`1<Verse.DamageInfo> dinfo, Verse.DamageResult result)
IL_04ED: pop
IL_04EE: br => Label44
IL_04F3: Label43
IL_04F3: ldc.r4 0.005
IL_04F8: call static System.Boolean Verse.Rand::Chance(System.Single chance)
IL_04FD: brfalse => Label45
IL_0502: ldloc.0
IL_0503: ldfld Verse.Pawn Verse.<>c__DisplayClass36_0::pawn
IL_0508: ldfld Verse.Pawn_HealthTracker Verse.Pawn::health
IL_050D: ldsfld Verse.HediffDef RimWorld.HediffDefOf::Vasectomy
IL_0512: ldnull
IL_0513: ldloca.s 6 (System.Nullable`1[Verse.DamageInfo])
IL_0515: initobj System.Nullable`1[Verse.DamageInfo]
IL_051B: ldloc.s 6 (System.Nullable`1[Verse.DamageInfo])
IL_051D: ldnull
IL_051E: callvirt Verse.Hediff
Verse.Pawn_HealthTracker::AddHediff(Verse.HediffDef def, Verse.BodyPartRecord part,
System.Nullable`1<Verse.DamageInfo> dinfo, Verse.DamageResult result)
IL_0523: pop
IL_0524: Label34
IL_0524: Label35
IL_0524: Label36
IL_0524: Label37
IL_0524: Label38
IL_0524: Label39
IL_0524: Label42
IL_0524: Label44
IL_0524: Label45
IL_0524: ldarga.s 1
IL_0526: call System.Boolean Verse.PawnGenerationRequest::get_AllowDead()
IL_052B: brtrue => Label46
IL_0530: ldarga.s 1
IL_0532: call System.Boolean Verse.PawnGenerationRequest::get_ForceDead()
IL_0537: brfalse => Label47
IL_053C: Label46
IL_053C: ldloc.0
IL_053D: ldfld Verse.Pawn Verse.<>c__DisplayClass36_0::pawn
IL_0542: callvirt System.Boolean Verse.Pawn::get_Dead()
IL_0547: brtrue => Label48
IL_054C: Label47
IL_054C: ldarga.s 1
IL_054E: call System.Boolean Verse.PawnGenerationRequest::get_AllowDowned()
IL_0553: brtrue => Label49
IL_0558: ldarga.s 1
IL_055A: call System.Boolean Verse.PawnGenerationRequest::get_ForceDead()
IL_055F: brtrue => Label50
IL_0564: ldloc.0
IL_0565: ldfld Verse.Pawn Verse.<>c__DisplayClass36_0::pawn
IL_056A: callvirt System.Boolean Verse.Pawn::get_Downed()
IL_056F: brfalse => Label51
IL_0574: ldloc.0
IL_0575: ldfld Verse.Pawn Verse.<>c__DisplayClass36_0::pawn
IL_057A: ldfld Verse.Pawn_HealthTracker Verse.Pawn::health
IL_057F: callvirt System.Void Verse.Pawn_HealthTracker::Reset()
IL_0584: ldloc.1
IL_0585: ldc.i4.1
IL_0586: add
IL_0587: stloc.1
IL_0588: ldloc.1
IL_0589: ldc.i4.s 80
IL_058B: ble => Label52
IL_0590: ldc.i4.8
IL_0591: newarr System.Object
IL_0596: dup
IL_0597: ldc.i4.0
IL_0598: ldstr "Could not generate old age injuries for "
IL_059D: stelem.ref
IL_059E: dup
IL_059F: ldc.i4.1
IL_05A0: ldloc.0
IL_05A1: ldfld Verse.Pawn Verse.<>c__DisplayClass36_0::pawn
IL_05A6: callvirt System.String Verse.Thing::get_ThingID()
IL_05AB: stelem.ref
IL_05AC: dup
IL_05AD: ldc.i4.2
IL_05AE: ldstr " of age "
IL_05B3: stelem.ref
IL_05B4: dup
IL_05B5: ldc.i4.3
IL_05B6: ldloc.0
IL_05B7: ldfld Verse.Pawn Verse.<>c__DisplayClass36_0::pawn
IL_05BC: ldfld Verse.Pawn_AgeTracker Verse.Pawn::ageTracker
IL_05C1: callvirt System.Int32 Verse.Pawn_AgeTracker::get_AgeBiologicalYears()
IL_05C6: box System.Int32
IL_05CB: stelem.ref
IL_05CC: dup
IL_05CD: ldc.i4.4
IL_05CE: ldstr " that allow pawn to move after "
IL_05D3: stelem.ref
IL_05D4: dup
IL_05D5: ldc.i4.5
IL_05D6: ldc.i4.s 80
IL_05D8: box System.Int32
IL_05DD: stelem.ref
IL_05DE: dup
IL_05DF: ldc.i4.6
IL_05E0: ldstr " tries. request="
IL_05E5: stelem.ref
IL_05E6: dup
IL_05E7: ldc.i4.7
IL_05E8: ldarg.1
IL_05E9: box Verse.PawnGenerationRequest
IL_05EE: stelem.ref
IL_05EF: call static System.String System.String::Concat(System.Object[]
args)
IL_05F4: call static System.Void Verse.Log::Warning(System.String text)
IL_05F9: Label48
IL_05F9: Label49
IL_05F9: Label50
IL_05F9: Label51
IL_05F9: ldloc.0
IL_05FA: ldfld Verse.Pawn Verse.<>c__DisplayClass36_0::pawn
IL_05FF: callvirt System.Boolean Verse.Pawn::get_Dead()
IL_0604: brtrue => Label53
IL_0609: ldarga.s 1
IL_060B: call RimWorld.Faction Verse.PawnGenerationRequest::get_Faction()
IL_0610: brfalse => Label54
IL_0615: ldarga.s 1
IL_0617: call RimWorld.Faction Verse.PawnGenerationRequest::get_Faction()
IL_061C: callvirt System.Boolean RimWorld.Faction::get_IsPlayer()
IL_0621: brtrue => Label55
IL_0626: Label54
IL_0626: ldc.i4.0
IL_0627: stloc.s 14 (System.Int32)
IL_0629: br => Label56
IL_062E: Label59
IL_062E: ldloc.s 14 (System.Int32)
IL_0630: ldc.i4.1
IL_0631: add
IL_0632: stloc.s 14 (System.Int32)
IL_0634: ldloc.s 14 (System.Int32)
IL_0636: ldc.i4 10000
IL_063B: ble => Label57
IL_0640: ldstr "Too many iterations."
IL_0645: call static System.Void Verse.Log::Error(System.String text)
IL_064A: br => Label58
IL_064F: Label57
IL_064F: ldnull
IL_0650: ldloc.0
IL_0651: ldfld Verse.Pawn Verse.<>c__DisplayClass36_0::pawn
IL_0656: ldnull
IL_0657: call static System.Void RimWorld.TendUtility::DoTend(Verse.Pawn
doctor, Verse.Pawn patient, RimWorld.Medicine medicine)
IL_065C: Label56
IL_065C: ldloc.0
IL_065D: ldfld Verse.Pawn Verse.<>c__DisplayClass36_0::pawn
IL_0662: ldfld Verse.Pawn_HealthTracker Verse.Pawn::health
IL_0667: ldc.i4.0
IL_0668: callvirt System.Boolean
Verse.Pawn_HealthTracker::HasHediffsNeedingTend(System.Boolean forAlert)
IL_066D: brtrue => Label59
IL_0672: Label53
IL_0672: Label55
IL_0672: Label58
IL_0672: ldloc.0
IL_0673: ldfld Verse.Pawn Verse.<>c__DisplayClass36_0::pawn
IL_0678: ldfld Verse.Pawn_HealthTracker Verse.Pawn::health
IL_067D: ldloca.s 6 (System.Nullable`1[Verse.DamageInfo])
IL_067F: initobj System.Nullable`1[Verse.DamageInfo]
IL_0685: ldloc.s 6 (System.Nullable`1[Verse.DamageInfo])
IL_0687: ldnull
IL_0688: callvirt System.Void
Verse.Pawn_HealthTracker::CheckForStateChange(System.Nullable`1<Verse.DamageInfo>
dinfo, Verse.Hediff hediff)
IL_068D: // end original
IL_068D: ldarg 0
IL_0691: call static System.Void
VFECore.GenerateInitialHediffs::Postfix(Verse.Pawn pawn)
IL_0696: ldarg 0
IL_069A: call static System.Void
AlienRace.HarmonyPatches::GenerateInitialHediffsPostfix(Verse.Pawn pawn)
IL_069F: ret
DONE

### Patch: System.Boolean Verse.<>c::<get_HasHead>b__11_0(Verse.BodyPartRecord x)


### Replacement: static System.Boolean
Verse.HediffSet+<>c::Verse.HediffSet+c.<get_HasHead>b__11_0_Patch1(Verse.<>c this,
Verse.BodyPartRecord x)
IL_0000: Local var 0: System.Boolean
IL_0000: ldc.i4 0
IL_0005: stloc 0 (System.Boolean)
IL_0009: // start original
IL_0009: ldarg.1
IL_000A: ldfld Verse.BodyPartDef Verse.BodyPartRecord::def
IL_000F: ldsfld Verse.BodyPartDef RimWorld.BodyPartDefOf::Head
IL_0014: ceq
IL_0016: // end original
IL_0016: stloc 0 (System.Boolean)
IL_001A: ldarg 1
IL_001E: ldloca 0 (System.Boolean)
IL_0022: call static System.Void
AlienRace.HarmonyPatches::HasHeadPostfix(Verse.BodyPartRecord x, System.Boolean&
__result)
IL_0027: ldloc 0 (System.Boolean)
IL_002B: ret
DONE

### Patch: System.Boolean Verse.HediffSet::get_HasHead()


### Replacement: static System.Boolean
Verse.HediffSet::Verse.HediffSet.get_HasHead_Patch1(Verse.HediffSet this)
IL_0000: Local var 0: System.Boolean
IL_0000: ldc.i4 0
IL_0005: stloc 0 (System.Boolean)
IL_0009: ldarg.0
IL_000A: call static System.Void
AlienRace.HarmonyPatches::HasHeadPrefix(Verse.HediffSet __instance)
IL_000F: // start original
IL_000F: ldarg.0
IL_0010: ldflda System.Nullable`1<System.Boolean>
Verse.HediffSet::cachedHasHead
IL_0015: call System.Boolean
System.Nullable`1<System.Boolean>::get_HasValue()
IL_001A: brtrue => Label0
IL_001F: ldarg.0
IL_0020: ldarg.0
IL_0021: ldc.i4.0
IL_0022: ldc.i4.0
IL_0023: ldnull
IL_0024: ldnull
IL_0025: call System.Collections.Generic.IEnumerable`1<Verse.BodyPartRecord>
Verse.HediffSet::GetNotMissingParts(Verse.BodyPartHeight height,
Verse.BodyPartDepth depth, Verse.BodyPartTagDef tag, Verse.BodyPartRecord
partParent)
IL_002A: ldsfld System.Func`2<Verse.BodyPartRecord, System.Boolean>
Verse.<>c::<>9__11_0
IL_002F: dup
IL_0030: brtrue => Label1
IL_0035: pop
IL_0036: ldsfld Verse.<>c Verse.<>c::<>9
IL_003B: ldftn System.Boolean
Verse.<>c::<get_HasHead>b__11_0(Verse.BodyPartRecord x)
IL_0041: newobj System.Void System.Func`2<Verse.BodyPartRecord,
System.Boolean>::.ctor(System.Object object, System.IntPtr method)
IL_0046: dup
IL_0047: stsfld System.Func`2<Verse.BodyPartRecord, System.Boolean>
Verse.<>c::<>9__11_0
IL_004C: Label1
IL_004C: call static System.Boolean
System.Linq.Enumerable::Any(System.Collections.Generic.IEnumerable`1<Verse.BodyPart
Record> source, System.Func`2<Verse.BodyPartRecord, System.Boolean> predicate)
IL_0051: newobj System.Void
System.Nullable`1<System.Boolean>::.ctor(System.Boolean value)
IL_0056: stfld System.Nullable`1<System.Boolean>
Verse.HediffSet::cachedHasHead
IL_005B: Label0
IL_005B: ldarg.0
IL_005C: ldflda System.Nullable`1<System.Boolean>
Verse.HediffSet::cachedHasHead
IL_0061: call System.Boolean System.Nullable`1<System.Boolean>::get_Value()
IL_0066: // end original
IL_0066: stloc 0 (System.Boolean)
IL_006A: ldloc 0 (System.Boolean)
IL_006E: ret
DONE

### Patch: System.Void Verse.Pawn_AgeTracker::PostResolveLifeStageChange()


### Replacement: static System.Void
Verse.Pawn_AgeTracker::Verse.Pawn_AgeTracker.PostResolveLifeStageChange_Patch1(Vers
e.Pawn_AgeTracker this)
IL_0000: Local var 0: System.Nullable`1<Verse.DamageInfo>
IL_0000: // start original
IL_0000: ldarg.0
IL_0001: ldfld Verse.Pawn Verse.Pawn_AgeTracker::pawn
IL_0006: ldfld Verse.Pawn_HealthTracker Verse.Pawn::health
IL_000B: ldloca.s 0 (System.Nullable`1[Verse.DamageInfo])
IL_000D: initobj System.Nullable`1[Verse.DamageInfo]
IL_0013: ldloc.0
IL_0014: ldnull
IL_0015: callvirt System.Void
Verse.Pawn_HealthTracker::CheckForStateChange(System.Nullable`1<Verse.DamageInfo>
dinfo, Verse.Hediff hediff)
IL_001A: ldarg.0
IL_001B: ldc.i4.0
IL_001C: stfld System.Boolean Verse.Pawn_AgeTracker::lifeStageChange
IL_0021: ldarg.0
IL_0022: ldfld Verse.Pawn Verse.Pawn_AgeTracker::pawn
IL_0027: call static System.Void
RimWorld.MeditationFocusTypeAvailabilityCache::ClearFor(Verse.Pawn p)
IL_002C: // end original
IL_002C: ldarg.0
IL_002D: ldfld Verse.Pawn Verse.Pawn_AgeTracker::pawn
IL_0032: call static System.Void
AlienRace.HarmonyPatches::PostResolveLifeStageChangePostfix(Verse.Pawn ___pawn)
IL_0037: ret
DONE

### Patch: System.Void RimWorld.Faction::FactionTick()


### Replacement: static System.Void
RimWorld.Faction::RimWorld.Faction.FactionTick_Patch0(RimWorld.Faction this)
IL_0000: Local var 0: System.Int32
IL_0000: Local var 1: RimWorld.PredatorThreat
IL_0000: Local var 2: RimWorld.Planet.Settlement
IL_0000: Local var 3: RimWorld.Planet.Settlement
IL_0000: // start original
IL_0000: ldarg.0
IL_0001: call System.Void RimWorld.Faction::CheckReachNaturalGoodwill()
IL_0006: ldarg.0
IL_0007: ldfld RimWorld.KidnappedPawnsTracker RimWorld.Faction::kidnapped
IL_000C: callvirt System.Void
RimWorld.KidnappedPawnsTracker::KidnappedPawnsTrackerTick()
IL_0011: ldarg.0
IL_0012: ldfld System.Collections.Generic.List`1<RimWorld.PredatorThreat>
RimWorld.Faction::predatorThreats
IL_0017: callvirt virtual System.Int32
System.Collections.Generic.List`1<RimWorld.PredatorThreat>::get_Count()
IL_001C: ldc.i4.1
IL_001D: sub
IL_001E: stloc.0
IL_001F: br => Label0
IL_0024: Label3
IL_0024: ldarg.0
IL_0025: ldfld System.Collections.Generic.List`1<RimWorld.PredatorThreat>
RimWorld.Faction::predatorThreats
IL_002A: ldloc.0
IL_002B: callvirt virtual RimWorld.PredatorThreat
System.Collections.Generic.List`1<RimWorld.PredatorThreat>::get_Item(System.Int32
index)
IL_0030: stloc.1
IL_0031: ldloc.1
IL_0032: callvirt System.Boolean RimWorld.PredatorThreat::get_Expired()
IL_0037: brfalse => Label1
IL_003C: ldarg.0
IL_003D: ldfld System.Collections.Generic.List`1<RimWorld.PredatorThreat>
RimWorld.Faction::predatorThreats
IL_0042: ldloc.0
IL_0043: callvirt virtual System.Void
System.Collections.Generic.List`1<RimWorld.PredatorThreat>::RemoveAt(System.Int32
index)
IL_0048: ldloc.1
IL_0049: ldfld Verse.Pawn RimWorld.PredatorThreat::predator
IL_004E: callvirt System.Boolean Verse.Thing::get_Spawned()
IL_0053: brfalse => Label2
IL_0058: ldloc.1
IL_0059: ldfld Verse.Pawn RimWorld.PredatorThreat::predator
IL_005E: callvirt virtual Verse.Map Verse.Thing::get_Map()
IL_0063: ldfld Verse.AI.AttackTargetsCache Verse.Map::attackTargetsCache
IL_0068: ldloc.1
IL_0069: ldfld Verse.Pawn RimWorld.PredatorThreat::predator
IL_006E: callvirt System.Void
Verse.AI.AttackTargetsCache::UpdateTarget(Verse.AI.IAttackTarget t)
IL_0073: Label1
IL_0073: Label2
IL_0073: ldloc.0
IL_0074: ldc.i4.1
IL_0075: sub
IL_0076: stloc.0
IL_0077: Label0
IL_0077: ldloc.0
IL_0078: ldc.i4.0
IL_0079: bge => Label3
IL_007E: call static Verse.TickManager Verse.Find::get_TickManager()
IL_0083: callvirt System.Int32 Verse.TickManager::get_TicksGame()
IL_0088: ldc.i4 1000
IL_008D: rem
IL_008E: ldc.i4 200
IL_0093: bne.un => Label4
IL_0098: ldarg.0
IL_0099: call System.Boolean RimWorld.Faction::get_IsPlayer()
IL_009E: brfalse => Label5
IL_00A3: ldarg.0
IL_00A4: call static System.Boolean
AlienRace.HarmonyPatches::FactionTickFactionRelationCheck(RimWorld.Faction f)
IL_00A9: brfalse => Label5
IL_00AE: call static System.Boolean
RimWorld.NamePlayerFactionAndSettlementUtility::CanNameFactionNow()
IL_00B3: brfalse => Label6
IL_00B8: call static RimWorld.Planet.WorldObjectsHolder
Verse.Find::get_WorldObjects()
IL_00BD: callvirt System.Collections.Generic.List`1<RimWorld.Planet.Settlement>
RimWorld.Planet.WorldObjectsHolder::get_Settlements()
IL_00C2: ldsfld System.Predicate`1<RimWorld.Planet.Settlement>
RimWorld.<>c::<>9__62_0
IL_00C7: dup
IL_00C8: brtrue => Label7
IL_00CD: pop
IL_00CE: ldsfld RimWorld.<>c RimWorld.<>c::<>9
IL_00D3: ldftn System.Boolean
RimWorld.<>c::<FactionTick>b__62_0(RimWorld.Planet.Settlement x)
IL_00D9: newobj System.Void
System.Predicate`1<RimWorld.Planet.Settlement>::.ctor(System.Object object,
System.IntPtr method)
IL_00DE: dup
IL_00DF: stsfld System.Predicate`1<RimWorld.Planet.Settlement>
RimWorld.<>c::<>9__62_0
IL_00E4: Label7
IL_00E4: callvirt RimWorld.Planet.Settlement
System.Collections.Generic.List`1<RimWorld.Planet.Settlement>::Find(System.Predicat
e`1<RimWorld.Planet.Settlement> match)
IL_00E9: stloc.2
IL_00EA: ldloc.2
IL_00EB: brfalse => Label8
IL_00F0: call static Verse.WindowStack Verse.Find::get_WindowStack()
IL_00F5: ldloc.2
IL_00F6: newobj System.Void
RimWorld.Dialog_NamePlayerFactionAndSettlement::.ctor(RimWorld.Planet.Settlement
settlement)
IL_00FB: callvirt System.Void Verse.WindowStack::Add(Verse.Window window)
IL_0100: br => Label9
IL_0105: Label8
IL_0105: call static Verse.WindowStack Verse.Find::get_WindowStack()
IL_010A: newobj System.Void RimWorld.Dialog_NamePlayerFaction::.ctor()
IL_010F: callvirt System.Void Verse.WindowStack::Add(Verse.Window window)
IL_0114: br => Label10
IL_0119: Label6
IL_0119: call static RimWorld.Planet.WorldObjectsHolder
Verse.Find::get_WorldObjects()
IL_011E: callvirt System.Collections.Generic.List`1<RimWorld.Planet.Settlement>
RimWorld.Planet.WorldObjectsHolder::get_Settlements()
IL_0123: ldsfld System.Predicate`1<RimWorld.Planet.Settlement>
RimWorld.<>c::<>9__62_1
IL_0128: dup
IL_0129: brtrue => Label11
IL_012E: pop
IL_012F: ldsfld RimWorld.<>c RimWorld.<>c::<>9
IL_0134: ldftn System.Boolean
RimWorld.<>c::<FactionTick>b__62_1(RimWorld.Planet.Settlement x)
IL_013A: newobj System.Void
System.Predicate`1<RimWorld.Planet.Settlement>::.ctor(System.Object object,
System.IntPtr method)
IL_013F: dup
IL_0140: stsfld System.Predicate`1<RimWorld.Planet.Settlement>
RimWorld.<>c::<>9__62_1
IL_0145: Label11
IL_0145: callvirt RimWorld.Planet.Settlement
System.Collections.Generic.List`1<RimWorld.Planet.Settlement>::Find(System.Predicat
e`1<RimWorld.Planet.Settlement> match)
IL_014A: stloc.3
IL_014B: ldloc.3
IL_014C: brfalse => Label12
IL_0151: call static System.Boolean
RimWorld.NamePlayerFactionAndSettlementUtility::CanNameFactionSoon()
IL_0156: brfalse => Label13
IL_015B: call static Verse.WindowStack Verse.Find::get_WindowStack()
IL_0160: ldloc.3
IL_0161: newobj System.Void
RimWorld.Dialog_NamePlayerFactionAndSettlement::.ctor(RimWorld.Planet.Settlement
settlement)
IL_0166: callvirt System.Void Verse.WindowStack::Add(Verse.Window window)
IL_016B: br => Label14
IL_0170: Label13
IL_0170: call static Verse.WindowStack Verse.Find::get_WindowStack()
IL_0175: ldloc.3
IL_0176: newobj System.Void
RimWorld.Dialog_NamePlayerSettlement::.ctor(RimWorld.Planet.Settlement settlement)
IL_017B: callvirt System.Void Verse.WindowStack::Add(Verse.Window window)
IL_0180: Label4
IL_0180: Label5
IL_0180: Label9
IL_0180: Label10
IL_0180: Label12
IL_0180: Label14
IL_0180: ldarg.0
IL_0181: call System.Boolean RimWorld.Faction::get_ShouldHaveLeader()
IL_0186: brfalse => Label15
IL_018B: ldarg.0
IL_018C: ldfld Verse.Pawn RimWorld.Faction::leader
IL_0191: brtrue => Label16
IL_0196: ldstr "Faction leader for "
IL_019B: ldarg.0
IL_019C: call System.String RimWorld.Faction::get_Name()
IL_01A1: ldstr " is null."
IL_01A6: call static System.String System.String::Concat(System.String str0,
System.String str1, System.String str2)
IL_01AB: ldarg.0
IL_01AC: ldfld System.Int32 RimWorld.Faction::loadID
IL_01B1: ldc.i4 441821
IL_01B6: xor
IL_01B7: call static System.Void Verse.Log::ErrorOnce(System.String text,
System.Int32 key)
IL_01BC: // end original
IL_01BC: Label15
IL_01BC: Label16
IL_01BC: ret
DONE

### Patch: virtual Verse.AcceptanceReport


Verse.Designator::CanDesignateThing(Verse.Thing t)
### Replacement: static Verse.AcceptanceReport
Verse.Designator::Verse.Designator.CanDesignateThing_Patch1(Verse.Designator this,
Verse.Thing t)
IL_0000: Local var 0: Verse.AcceptanceReport
IL_0000: ldloca 0 (Verse.AcceptanceReport)
IL_0004: initobj Verse.AcceptanceReport
IL_000A: // start original
IL_000A: call static Verse.AcceptanceReport
Verse.AcceptanceReport::get_WasRejected()
IL_000F: // end original
IL_000F: stloc 0 (Verse.AcceptanceReport)
IL_0013: ldarg.0
IL_0014: ldloca 0 (Verse.AcceptanceReport)
IL_0018: ldarg 1
IL_001C: call static System.Void
AlienRace.HarmonyPatches::CanDesignateThingTamePostfix(Verse.Designator __instance,
Verse.AcceptanceReport& __result, Verse.Thing t)
IL_0021: ldloc 0 (Verse.AcceptanceReport)
IL_0025: ret
DONE

### Patch: static System.Boolean


RimWorld.WorkGiver_InteractAnimal::CanInteractWithAnimal(Verse.Pawn pawn,
Verse.Pawn animal, System.String& jobFailReason, System.Boolean forced,
System.Boolean canInteractWhileSleeping, System.Boolean ignoreSkillRequirements,
System.Boolean canInteractWhileRoaming)
### Replacement: static System.Boolean
RimWorld.WorkGiver_InteractAnimal::RimWorld.WorkGiver_InteractAnimal.CanInteractWit
hAnimal_Patch1(Verse.Pawn pawn, Verse.Pawn animal, System.String& jobFailReason,
System.Boolean forced, System.Boolean canInteractWhileSleeping, System.Boolean
ignoreSkillRequirements, System.Boolean canInteractWhileRoaming)
IL_0000: Local var 0: System.Int32
IL_0000: Local var 1: System.Boolean
IL_0000: ldc.i4 0
IL_0005: stloc 1 (System.Boolean)
IL_0009: // start original
IL_0009: ldarg.2
IL_000A: ldnull
IL_000B: stind.ref
IL_000C: ldarg.0
IL_000D: ldarg.1
IL_000E: call static Verse.LocalTargetInfo
Verse.LocalTargetInfo::op_Implicit(Verse.Thing t)
IL_0013: ldc.i4.1
IL_0014: ldc.i4.m1
IL_0015: ldnull
IL_0016: ldarg.3
IL_0017: call static System.Boolean
Verse.AI.ReservationUtility::CanReserve(Verse.Pawn p, Verse.LocalTargetInfo target,
System.Int32 maxPawns, System.Int32 stackCount, Verse.ReservationLayerDef layer,
System.Boolean ignoreOtherReservations)
IL_001C: brtrue => Label0
IL_0021: ldc.i4.0
IL_0022: br => Label7
IL_0027: Label0
IL_0027: ldarg.1
IL_0028: callvirt System.Boolean Verse.Pawn::get_Downed()
IL_002D: brfalse => Label1
IL_0032: ldarg.2
IL_0033: ldsfld System.String
RimWorld.WorkGiver_InteractAnimal::CantInteractAnimalDownedTrans
IL_0038: stind.ref
IL_0039: ldc.i4.0
IL_003A: br => Label8
IL_003F: Label1
IL_003F: ldarg.1
IL_0040: call static System.Boolean RimWorld.RestUtility::Awake(Verse.Pawn p)
IL_0045: brtrue => Label2
IL_004A: ldarg.s 4
IL_004C: brtrue => Label3
IL_0051: ldarg.2
IL_0052: ldsfld System.String
RimWorld.WorkGiver_InteractAnimal::CantInteractAnimalAsleepTrans
IL_0057: stind.ref
IL_0058: ldc.i4.0
IL_0059: br => Label9
IL_005E: Label2
IL_005E: Label3
IL_005E: ldarg.1
IL_005F: ldc.i4.0
IL_0060: ldarg.s 4
IL_0062: ldarg.s 6
IL_0064: call static System.Boolean
RimWorld.PawnUtility::CanCasuallyInteractNow(Verse.Pawn p, System.Boolean
twoWayInteraction, System.Boolean canInteractWhileSleeping, System.Boolean
canInteractWhileRoaming)
IL_0069: brtrue => Label4
IL_006E: ldarg.2
IL_006F: ldsfld System.String
RimWorld.WorkGiver_InteractAnimal::CantInteractAnimalBusyTrans
IL_0074: stind.ref
IL_0075: ldc.i4.0
IL_0076: br => Label10
IL_007B: Label4
IL_007B: ldarg.1
IL_007C: call static System.Int32
RimWorld.TrainableUtility::MinimumHandlingSkill(Verse.Pawn p)
IL_0081: stloc.0
IL_0082: ldarg.s 5
IL_0084: brtrue => Label5
IL_0089: ldloc.0
IL_008A: ldarg.0
IL_008B: ldfld RimWorld.Pawn_SkillTracker Verse.Pawn::skills
IL_0090: ldsfld RimWorld.SkillDef RimWorld.SkillDefOf::Animals
IL_0095: callvirt RimWorld.SkillRecord
RimWorld.Pawn_SkillTracker::GetSkill(RimWorld.SkillDef skillDef)
IL_009A: callvirt System.Int32 RimWorld.SkillRecord::get_Level()
IL_009F: ble => Label6
IL_00A4: ldarg.2
IL_00A5: ldstr "AnimalsSkillTooLow"
IL_00AA: ldloc.0
IL_00AB: call static Verse.NamedArgument
Verse.NamedArgument::op_Implicit(System.Int32 value)
IL_00B0: call static Verse.TaggedString
Verse.TranslatorFormattedStringExtensions::Translate(System.String key,
Verse.NamedArgument arg1)
IL_00B5: call static System.String
Verse.TaggedString::op_Implicit(Verse.TaggedString taggedString)
IL_00BA: stind.ref
IL_00BB: ldc.i4.0
IL_00BC: br => Label11
IL_00C1: Label5
IL_00C1: Label6
IL_00C1: ldc.i4.1
IL_00C2: // end original
IL_00C2: Label7
IL_00C2: Label8
IL_00C2: Label9
IL_00C2: Label10
IL_00C2: Label11
IL_00C2: stloc 1 (System.Boolean)
IL_00C6: ldloca 1 (System.Boolean)
IL_00CA: ldarg 0
IL_00CE: ldarg 1
IL_00D2: call static System.Void
AlienRace.HarmonyPatches::CanInteractWithAnimalPostfix(System.Boolean& __result,
Verse.Pawn pawn, Verse.Pawn animal)
IL_00D7: ldloc 1 (System.Boolean)
IL_00DB: ret
DONE

### Patch: UnityEngine.Vector3 Verse.PawnRenderer::BaseHeadOffsetAt(Verse.Rot4


rotation)
### Replacement: static UnityEngine.Vector3
Verse.PawnRenderer::Verse.PawnRenderer.BaseHeadOffsetAt_Patch2(Verse.PawnRenderer
this, Verse.Rot4 rotation)
IL_0000: Local var 0: UnityEngine.Vector2
IL_0000: Local var 1: System.Int32
IL_0000: Local var 2: UnityEngine.Vector3
IL_0000: ldloca 2 (UnityEngine.Vector3)
IL_0004: initobj UnityEngine.Vector3
IL_000A: // start original
IL_000A: ldarg.0
IL_000B: ldfld Verse.Pawn Verse.PawnRenderer::pawn
IL_0010: ldfld RimWorld.Pawn_StoryTracker Verse.Pawn::story
IL_0015: ldfld RimWorld.BodyTypeDef RimWorld.Pawn_StoryTracker::bodyType
IL_001A: ldfld UnityEngine.Vector2 RimWorld.BodyTypeDef::headOffset
IL_001F: ldarg.0
IL_0020: ldfld Verse.Pawn Verse.PawnRenderer::pawn
IL_0025: call static UnityEngine.Vector2
AlienRace.HarmonyPatches::BaseHeadOffsetAtHelper(UnityEngine.Vector2 offset,
Verse.Pawn pawn)
IL_002A: ldarg.0
IL_002B: ldfld Verse.Pawn Verse.PawnRenderer::pawn
IL_0030: call static UnityEngine.Vector2
VanillaGenesExpanded.PawnRenderer_BaseHeadOffsetAt_Patch::LifeStageFactorUpdated(Un
ityEngine.Vector2 offset, Verse.Pawn pawn)
IL_0035: stloc.0
IL_0036: ldarga.s 1
IL_0038: call System.Int32 Verse.Rot4::get_AsInt()
IL_003D: stloc.1
IL_003E: ldloc.1
IL_003F: switch => Labels0,1,2,3
IL_0054: br => Label4
IL_0059: Label0
IL_0059: ldc.r4 0
IL_005E: ldc.r4 0
IL_0063: ldloc.0
IL_0064: ldfld System.Single UnityEngine.Vector2::y
IL_0069: newobj System.Void UnityEngine.Vector3::.ctor(System.Single x,
System.Single y, System.Single z)
IL_006E: br => Label5
IL_0073: Label1
IL_0073: ldloc.0
IL_0074: ldfld System.Single UnityEngine.Vector2::x
IL_0079: ldc.r4 0
IL_007E: ldloc.0
IL_007F: ldfld System.Single UnityEngine.Vector2::y
IL_0084: newobj System.Void UnityEngine.Vector3::.ctor(System.Single x,
System.Single y, System.Single z)
IL_0089: br => Label6
IL_008E: Label2
IL_008E: ldc.r4 0
IL_0093: ldc.r4 0
IL_0098: ldloc.0
IL_0099: ldfld System.Single UnityEngine.Vector2::y
IL_009E: newobj System.Void UnityEngine.Vector3::.ctor(System.Single x,
System.Single y, System.Single z)
IL_00A3: br => Label7
IL_00A8: Label3
IL_00A8: ldloc.0
IL_00A9: ldfld System.Single UnityEngine.Vector2::x
IL_00AE: neg
IL_00AF: ldc.r4 0
IL_00B4: ldloc.0
IL_00B5: ldfld System.Single UnityEngine.Vector2::y
IL_00BA: newobj System.Void UnityEngine.Vector3::.ctor(System.Single x,
System.Single y, System.Single z)
IL_00BF: br => Label8
IL_00C4: Label4
IL_00C4: ldstr "BaseHeadOffsetAt error in "
IL_00C9: ldarg.0
IL_00CA: ldfld Verse.Pawn Verse.PawnRenderer::pawn
IL_00CF: call static System.String System.String::Concat(System.Object arg0,
System.Object arg1)
IL_00D4: call static System.Void Verse.Log::Error(System.String text)
IL_00D9: call static UnityEngine.Vector3 UnityEngine.Vector3::get_zero()
IL_00DE: // end original
IL_00DE: Label5
IL_00DE: Label6
IL_00DE: Label7
IL_00DE: Label8
IL_00DE: stloc 2 (UnityEngine.Vector3)
IL_00E2: ldloca 2 (UnityEngine.Vector3)
IL_00E6: call static System.Void
FacialAnimation.HarmonyPatches::PostfixBaseHeadOffsetAt(UnityEngine.Vector3&
__result)
IL_00EB: ldloca 2 (UnityEngine.Vector3)
IL_00EF: ldarg 1
IL_00F3: ldarg.0
IL_00F4: ldfld Verse.Pawn Verse.PawnRenderer::pawn
IL_00F9: call static System.Void
AlienRace.HarmonyPatches::BaseHeadOffsetAtPostfix(UnityEngine.Vector3& __result,
Verse.Rot4 rotation, Verse.Pawn ___pawn)
IL_00FE: ldloc 2 (UnityEngine.Vector3)
IL_0102: ret
DONE

### Patch: System.Void


Verse.Pawn_HealthTracker::CheckForStateChange(System.Nullable`1<Verse.DamageInfo>
dinfo, Verse.Hediff hediff)
### Replacement: static System.Void
Verse.Pawn_HealthTracker::Verse.Pawn_HealthTracker.CheckForStateChange_Patch2(Verse
.Pawn_HealthTracker this, System.Nullable`1<Verse.DamageInfo> dinfo, Verse.Hediff
hediff)
IL_0000: Local var 0: Verse.DamageInfo
IL_0000: Local var 1: System.Single
IL_0000: Local var 2: System.Boolean
IL_0000: Local var 3: Verse.ThingWithComps
IL_0000: Local var 4: Verse.ThingWithComps
IL_0000: // start original
IL_0000: ldarg.0
IL_0001: call System.Boolean Verse.Pawn_HealthTracker::get_Dead()
IL_0006: brtrue => Label0
IL_000B: call static System.Boolean Verse.ModsConfig::get_BiotechActive()
IL_0010: brfalse => Label1
IL_0015: ldarg.0
IL_0016: ldfld Verse.Pawn Verse.Pawn_HealthTracker::pawn
IL_001B: ldfld RimWorld.Pawn_MechanitorTracker Verse.Pawn::mechanitor
IL_0020: brfalse => Label2
IL_0025: ldarg.0
IL_0026: ldfld Verse.Pawn Verse.Pawn_HealthTracker::pawn
IL_002B: ldfld RimWorld.Pawn_MechanitorTracker Verse.Pawn::mechanitor
IL_0030: ldarg.2
IL_0031: callvirt System.Void
RimWorld.Pawn_MechanitorTracker::Notify_HediffStateChange(Verse.Hediff hediff)
IL_0036: Label1
IL_0036: Label2
IL_0036: ldarg.2
IL_0037: brfalse => Label3
IL_003C: ldarg.2
IL_003D: ldfld Verse.HediffDef Verse.Hediff::def
IL_0042: ldfld System.Boolean Verse.HediffDef::blocksSleeping
IL_0047: brfalse => Label4
IL_004C: ldarg.0
IL_004D: ldfld Verse.Pawn Verse.Pawn_HealthTracker::pawn
IL_0052: call static System.Boolean RimWorld.RestUtility::Awake(Verse.Pawn p)
IL_0057: brtrue => Label5
IL_005C: ldarg.0
IL_005D: ldfld Verse.Pawn Verse.Pawn_HealthTracker::pawn
IL_0062: call static System.Void RimWorld.RestUtility::WakeUp(Verse.Pawn p)
IL_0067: br => Label48
IL_006C: Label3
IL_006C: Label4
IL_006C: Label5
IL_006C: ldarg.0
IL_006D: call System.Boolean Verse.Pawn_HealthTracker::ShouldBeDead()
IL_0072: brfalse => Label6
IL_0077: ldarg.0
IL_0078: call System.Boolean
Verse.Pawn_HealthTracker::ShouldBeDeathrestingOrInComa()
IL_007D: brfalse => Label7
IL_0082: ldarg.0
IL_0083: ldarg.1
IL_0084: ldarg.2
IL_0085: call System.Void
Verse.Pawn_HealthTracker::ForceDeathrestOrComa(System.Nullable`1<Verse.DamageInfo>
dinfo, Verse.Hediff hediff)
IL_008A: br => Label49
IL_008F: Label7
IL_008F: ldarg.0
IL_0090: ldfld Verse.Pawn Verse.Pawn_HealthTracker::pawn
IL_0095: callvirt System.Boolean Verse.Thing::get_Destroyed()
IL_009A: brtrue => Label8
IL_009F: ldarg.0
IL_00A0: ldfld Verse.Pawn Verse.Pawn_HealthTracker::pawn
IL_00A5: ldarg.1
IL_00A6: ldarg.2
IL_00A7: callvirt virtual System.Void
Verse.Thing::Kill(System.Nullable`1<Verse.DamageInfo> dinfo, Verse.Hediff
exactCulprit)
IL_00AC: br => Label50
IL_00B1: Label6
IL_00B1: ldarg.0
IL_00B2: call System.Boolean Verse.Pawn_HealthTracker::get_Downed()
IL_00B7: brtrue => Label9
IL_00BC: ldarg.0
IL_00BD: call System.Boolean Verse.Pawn_HealthTracker::ShouldBeDowned()
IL_00C2: brfalse => Label10
IL_00C7: ldarg.0
IL_00C8: ldfld System.Boolean Verse.Pawn_HealthTracker::forceDowned
IL_00CD: brtrue => Label11
IL_00D2: ldarga.s 1
IL_00D4: call System.Boolean
System.Nullable`1<Verse.DamageInfo>::get_HasValue()
IL_00D9: brfalse => Label12
IL_00DE: ldarga.s 1
IL_00E0: call Verse.DamageInfo
System.Nullable`1<Verse.DamageInfo>::get_Value()
IL_00E5: stloc.0
IL_00E6: ldloca.s 0 (Verse.DamageInfo)
IL_00E8: call Verse.DamageDef Verse.DamageInfo::get_Def()
IL_00ED: ldarg.0
IL_00EE: ldfld Verse.Pawn Verse.Pawn_HealthTracker::pawn
IL_00F3: callvirt System.Boolean Verse.DamageDef::ExternalViolenceFor(Verse.Thing
thing)
IL_00F8: brfalse => Label13
IL_00FD: ldarg.0
IL_00FE: ldfld Verse.Pawn Verse.Pawn_HealthTracker::pawn
IL_0103: call static System.Boolean
Verse.WildManUtility::IsWildMan(Verse.Pawn p)
IL_0108: brtrue => Label14
IL_010D: ldarg.0
IL_010E: ldfld Verse.Pawn Verse.Pawn_HealthTracker::pawn
IL_0113: callvirt virtual RimWorld.Faction Verse.Thing::get_Faction()
IL_0118: brfalse => Label15
IL_011D: ldarg.0
IL_011E: ldfld Verse.Pawn Verse.Pawn_HealthTracker::pawn
IL_0123: callvirt virtual RimWorld.Faction Verse.Thing::get_Faction()
IL_0128: callvirt System.Boolean RimWorld.Faction::get_IsPlayer()
IL_012D: brtrue => Label16
IL_0132: Label15
IL_0132: ldarg.0
IL_0133: ldfld Verse.Pawn Verse.Pawn_HealthTracker::pawn
IL_0138: callvirt RimWorld.Faction Verse.Pawn::get_HostFaction()
IL_013D: brfalse => Label17
IL_0142: ldarg.0
IL_0143: ldfld Verse.Pawn Verse.Pawn_HealthTracker::pawn
IL_0148: callvirt RimWorld.Faction Verse.Pawn::get_HostFaction()
IL_014D: callvirt System.Boolean RimWorld.Faction::get_IsPlayer()
IL_0152: brtrue => Label18
IL_0157: Label17
IL_0157: call static System.Boolean Verse.ModsConfig::get_BiotechActive()
IL_015C: brfalse => Label19
IL_0161: ldarg.0
IL_0162: ldfld Verse.Pawn Verse.Pawn_HealthTracker::pawn
IL_0167: ldfld RimWorld.Pawn_GeneTracker Verse.Pawn::genes
IL_016C: brfalse => Label20
IL_0171: ldarg.0
IL_0172: ldfld Verse.Pawn Verse.Pawn_HealthTracker::pawn
IL_0177: ldfld RimWorld.Pawn_GeneTracker Verse.Pawn::genes
IL_017C: ldsfld Verse.GeneDef RimWorld.GeneDefOf::Deathless
IL_0181: callvirt System.Boolean RimWorld.Pawn_GeneTracker::HasGene(Verse.GeneDef
geneDef)
IL_0186: br => Label21
IL_018B: Label19
IL_018B: Label20
IL_018B: ldc.i4.0
IL_018C: Label21
IL_018C: stloc.2
IL_018D: ldloc.2
IL_018E: brfalse => Label22
IL_0193: ldarg.0
IL_0194: ldfld Verse.Pawn Verse.Pawn_HealthTracker::pawn
IL_0199: callvirt virtual RimWorld.Faction Verse.Thing::get_Faction()
IL_019E: call static RimWorld.Faction RimWorld.Faction::get_OfPlayer()
IL_01A3: bne.un => Label23
IL_01A8: ldc.r4 0
IL_01AD: stloc.1
IL_01AE: br => Label24
IL_01B3: Label22
IL_01B3: Label23
IL_01B3: ldarg.0
IL_01B4: ldfld Verse.Pawn Verse.Pawn_HealthTracker::pawn
IL_01B9: callvirt Verse.RaceProperties Verse.Pawn::get_RaceProps()
IL_01BE: callvirt System.Boolean Verse.RaceProperties::get_Animal()
IL_01C3: brfalse => Label25
IL_01C8: ldc.r4 0.5
IL_01CD: stloc.1
IL_01CE: br => Label26
IL_01D3: Label25
IL_01D3: ldarg.0
IL_01D4: ldfld Verse.Pawn Verse.Pawn_HealthTracker::pawn
IL_01D9: callvirt Verse.RaceProperties Verse.Pawn::get_RaceProps()
IL_01DE: callvirt System.Boolean Verse.RaceProperties::get_IsMechanoid()
IL_01E3: brfalse => Label27
IL_01E8: ldc.r4 1
IL_01ED: stloc.1
IL_01EE: br => Label28
IL_01F3: Label27
IL_01F3: call static RimWorld.Storyteller Verse.Find::get_Storyteller()
IL_01F8: ldfld RimWorld.Difficulty RimWorld.Storyteller::difficulty
IL_01FD: ldfld System.Boolean RimWorld.Difficulty::unwaveringPrisoners
IL_0202: brtrue => Label29
IL_0207: ldsfld Verse.SimpleCurve
Verse.HealthTuning::DeathOnDownedChance_NonColonyHumanlikeFromPopulationIntentCurve
_WaveringPrisoners
IL_020C: br => Label30
IL_0211: Label29
IL_0211: ldsfld Verse.SimpleCurve
Verse.HealthTuning::DeathOnDownedChance_NonColonyHumanlikeFromPopulationIntentCurve
IL_0216: Label30
IL_0216: call static System.Single
RimWorld.StorytellerUtilityPopulation::get_PopulationIntent()
IL_021B: callvirt System.Single Verse.SimpleCurve::Evaluate(System.Single x)
IL_0220: call static RimWorld.Storyteller Verse.Find::get_Storyteller()
IL_0225: ldfld RimWorld.Difficulty RimWorld.Storyteller::difficulty
IL_022A: ldfld System.Single
RimWorld.Difficulty::enemyDeathOnDownedChanceFactor
IL_022F: mul
IL_0230: stloc.1
IL_0231: Label24
IL_0231: Label26
IL_0231: Label28
IL_0231: ldloc.1
IL_0232: call static System.Boolean Verse.Rand::Chance(System.Single chance)
IL_0237: brfalse => Label31
IL_023C: ldsfld System.Boolean Verse.DebugViewSettings::logCauseOfDeath
IL_0241: brfalse => Label32
IL_0246: ldstr "CauseOfDeath: chance on downed "
IL_024B: ldloc.1
IL_024C: call static System.String
Verse.GenText::ToStringPercent(System.Single f)
IL_0251: call static System.String System.String::Concat(System.String str0,
System.String str1)
IL_0256: call static System.Void Verse.Log::Message(System.String text)
IL_025B: Label32
IL_025B: ldloc.2
IL_025C: brfalse => Label33
IL_0261: ldarg.0
IL_0262: ldfld Verse.Pawn Verse.Pawn_HealthTracker::pawn
IL_0267: callvirt System.Boolean Verse.Pawn::get_Dead()
IL_026C: brtrue => Label34
IL_0271: ldarg.0
IL_0272: ldfld Verse.Pawn Verse.Pawn_HealthTracker::pawn
IL_0277: ldfld Verse.Pawn_HealthTracker Verse.Pawn::health
IL_027C: ldsfld Verse.HediffDef RimWorld.HediffDefOf::MissingBodyPart
IL_0281: ldarg.0
IL_0282: ldfld Verse.Pawn Verse.Pawn_HealthTracker::pawn
IL_0287: ldfld Verse.Pawn_HealthTracker Verse.Pawn::health
IL_028C: ldfld Verse.HediffSet Verse.Pawn_HealthTracker::hediffSet
IL_0291: callvirt Verse.BodyPartRecord Verse.HediffSet::GetBrain()
IL_0296: ldarg.1
IL_0297: ldnull
IL_0298: callvirt Verse.Hediff
Verse.Pawn_HealthTracker::AddHediff(Verse.HediffDef def, Verse.BodyPartRecord part,
System.Nullable`1<Verse.DamageInfo> dinfo, Verse.DamageResult result)
IL_029D: pop
IL_029E: br => Label51
IL_02A3: Label33
IL_02A3: Label34
IL_02A3: ldarg.0
IL_02A4: ldfld Verse.Pawn Verse.Pawn_HealthTracker::pawn
IL_02A9: ldarg.1
IL_02AA: ldnull
IL_02AB: callvirt virtual System.Void
Verse.Thing::Kill(System.Nullable`1<Verse.DamageInfo> dinfo, Verse.Hediff
exactCulprit)
IL_02B0: br => Label52
IL_02B5: Label11
IL_02B5: Label12
IL_02B5: Label13
IL_02B5: Label14
IL_02B5: Label16
IL_02B5: Label18
IL_02B5: Label31
IL_02B5: ldarg.0
IL_02B6: ldc.i4.0
IL_02B7: stfld System.Boolean Verse.Pawn_HealthTracker::forceDowned
IL_02BC: ldarg.0
IL_02BD: ldarg.1
IL_02BE: ldarg.2
IL_02BF: call System.Void
Verse.Pawn_HealthTracker::MakeDowned(System.Nullable`1<Verse.DamageInfo> dinfo,
Verse.Hediff hediff)
IL_02C4: br => Label53
IL_02C9: Label10
IL_02C9: ldarg.0
IL_02CA: ldfld Verse.PawnCapacitiesHandler
Verse.Pawn_HealthTracker::capacities
IL_02CF: ldsfld Verse.PawnCapacityDef RimWorld.PawnCapacityDefOf::Manipulation
IL_02D4: callvirt System.Boolean
Verse.PawnCapacitiesHandler::CapableOf(Verse.PawnCapacityDef capacity)
IL_02D9: brtrue => Label35
IL_02DE: ldarg.0
IL_02DF: ldfld Verse.Pawn Verse.Pawn_HealthTracker::pawn
IL_02E4: ldfld Verse.Pawn_CarryTracker Verse.Pawn::carryTracker
IL_02E9: brfalse => Label36
IL_02EE: ldarg.0
IL_02EF: ldfld Verse.Pawn Verse.Pawn_HealthTracker::pawn
IL_02F4: ldfld Verse.Pawn_CarryTracker Verse.Pawn::carryTracker
IL_02F9: callvirt Verse.Thing Verse.Pawn_CarryTracker::get_CarriedThing()
IL_02FE: brfalse => Label37
IL_0303: ldarg.0
IL_0304: ldfld Verse.Pawn Verse.Pawn_HealthTracker::pawn
IL_0309: ldfld Verse.AI.Pawn_JobTracker Verse.Pawn::jobs
IL_030E: brfalse => Label38
IL_0313: ldarg.0
IL_0314: ldfld Verse.Pawn Verse.Pawn_HealthTracker::pawn
IL_0319: callvirt Verse.AI.Job Verse.Pawn::get_CurJob()
IL_031E: brfalse => Label39
IL_0323: ldarg.0
IL_0324: ldfld Verse.Pawn Verse.Pawn_HealthTracker::pawn
IL_0329: ldfld Verse.AI.Pawn_JobTracker Verse.Pawn::jobs
IL_032E: ldc.i4.5
IL_032F: ldc.i4.1
IL_0330: ldc.i4.1
IL_0331: callvirt System.Void
Verse.AI.Pawn_JobTracker::EndCurrentJob(Verse.AI.JobCondition condition,
System.Boolean startNewJob, System.Boolean canReturnToPool)
IL_0336: Label36
IL_0336: Label37
IL_0336: Label38
IL_0336: Label39
IL_0336: ldarg.0
IL_0337: ldfld Verse.Pawn Verse.Pawn_HealthTracker::pawn
IL_033C: ldfld Verse.Pawn_EquipmentTracker Verse.Pawn::equipment
IL_0341: brfalse => Label40
IL_0346: ldarg.0
IL_0347: ldfld Verse.Pawn Verse.Pawn_HealthTracker::pawn
IL_034C: ldfld Verse.Pawn_EquipmentTracker Verse.Pawn::equipment
IL_0351: callvirt Verse.ThingWithComps Verse.Pawn_EquipmentTracker::get_Primary()
IL_0356: brfalse => Label41
IL_035B: ldarg.0
IL_035C: ldfld Verse.Pawn Verse.Pawn_HealthTracker::pawn
IL_0361: ldfld Verse.PawnKindDef Verse.Pawn::kindDef
IL_0366: ldfld System.Boolean Verse.PawnKindDef::destroyGearOnDrop
IL_036B: brfalse => Label42
IL_0370: ldarg.0
IL_0371: ldfld Verse.Pawn Verse.Pawn_HealthTracker::pawn
IL_0376: ldfld Verse.Pawn_EquipmentTracker Verse.Pawn::equipment
IL_037B: ldarg.0
IL_037C: ldfld Verse.Pawn Verse.Pawn_HealthTracker::pawn
IL_0381: ldfld Verse.Pawn_EquipmentTracker Verse.Pawn::equipment
IL_0386: callvirt Verse.ThingWithComps Verse.Pawn_EquipmentTracker::get_Primary()
IL_038B: callvirt System.Void
Verse.Pawn_EquipmentTracker::DestroyEquipment(Verse.ThingWithComps eq)
IL_0390: br => Label54
IL_0395: Label42
IL_0395: ldarg.0
IL_0396: ldfld Verse.Pawn Verse.Pawn_HealthTracker::pawn
IL_039B: callvirt System.Boolean Verse.Pawn::get_InContainerEnclosed()
IL_03A0: brfalse => Label43
IL_03A5: ldarg.0
IL_03A6: ldfld Verse.Pawn Verse.Pawn_HealthTracker::pawn
IL_03AB: ldfld Verse.Pawn_EquipmentTracker Verse.Pawn::equipment
IL_03B0: ldarg.0
IL_03B1: ldfld Verse.Pawn Verse.Pawn_HealthTracker::pawn
IL_03B6: ldfld Verse.Pawn_EquipmentTracker Verse.Pawn::equipment
IL_03BB: callvirt Verse.ThingWithComps Verse.Pawn_EquipmentTracker::get_Primary()
IL_03C0: ldarg.0
IL_03C1: ldfld Verse.Pawn Verse.Pawn_HealthTracker::pawn
IL_03C6: ldfld Verse.ThingOwner Verse.Thing::holdingOwner
IL_03CB: callvirt System.Boolean
Verse.Pawn_EquipmentTracker::TryTransferEquipmentToContainer(Verse.ThingWithComps
eq, Verse.ThingOwner container)
IL_03D0: pop
IL_03D1: br => Label55
IL_03D6: Label43
IL_03D6: ldarg.0
IL_03D7: ldfld Verse.Pawn Verse.Pawn_HealthTracker::pawn
IL_03DC: callvirt System.Boolean Verse.Thing::get_SpawnedOrAnyParentSpawned()
IL_03E1: brfalse => Label44
IL_03E6: ldarg.0
IL_03E7: ldfld Verse.Pawn Verse.Pawn_HealthTracker::pawn
IL_03EC: ldfld Verse.Pawn_EquipmentTracker Verse.Pawn::equipment
IL_03F1: ldarg.0
IL_03F2: ldfld Verse.Pawn Verse.Pawn_HealthTracker::pawn
IL_03F7: ldfld Verse.Pawn_EquipmentTracker Verse.Pawn::equipment
IL_03FC: callvirt Verse.ThingWithComps Verse.Pawn_EquipmentTracker::get_Primary()
IL_0401: ldloca.s 3 (Verse.ThingWithComps)
IL_0403: ldarg.0
IL_0404: ldfld Verse.Pawn Verse.Pawn_HealthTracker::pawn
IL_0409: callvirt Verse.IntVec3 Verse.Thing::get_PositionHeld()
IL_040E: ldc.i4.1
IL_040F: callvirt System.Boolean
Verse.Pawn_EquipmentTracker::TryDropEquipment(Verse.ThingWithComps eq,
Verse.ThingWithComps& resultingEq, Verse.IntVec3 pos, System.Boolean forbid)
IL_0414: pop
IL_0415: br => Label56
IL_041A: Label44
IL_041A: ldarg.0
IL_041B: ldfld Verse.Pawn Verse.Pawn_HealthTracker::pawn
IL_0420: call static System.Boolean
RimWorld.Planet.CaravanUtility::IsCaravanMember(Verse.Pawn pawn)
IL_0425: brfalse => Label45
IL_042A: ldarg.0
IL_042B: ldfld Verse.Pawn Verse.Pawn_HealthTracker::pawn
IL_0430: ldfld Verse.Pawn_EquipmentTracker Verse.Pawn::equipment
IL_0435: callvirt Verse.ThingWithComps Verse.Pawn_EquipmentTracker::get_Primary()
IL_043A: stloc.s 4 (Verse.ThingWithComps)
IL_043C: ldarg.0
IL_043D: ldfld Verse.Pawn Verse.Pawn_HealthTracker::pawn
IL_0442: ldfld Verse.Pawn_EquipmentTracker Verse.Pawn::equipment
IL_0447: ldloc.s 4 (Verse.ThingWithComps)
IL_0449: callvirt System.Void
Verse.Pawn_EquipmentTracker::Remove(Verse.ThingWithComps eq)
IL_044E: ldarg.0
IL_044F: ldfld Verse.Pawn Verse.Pawn_HealthTracker::pawn
IL_0454: ldfld Verse.Pawn_InventoryTracker Verse.Pawn::inventory
IL_0459: ldfld Verse.ThingOwner`1<Verse.Thing>
Verse.Pawn_InventoryTracker::innerContainer
IL_045E: ldloc.s 4 (Verse.ThingWithComps)
IL_0460: ldc.i4.1
IL_0461: callvirt abstract virtual System.Boolean
Verse.ThingOwner::TryAdd(Verse.Thing item, System.Boolean
canMergeWithExistingStacks)
IL_0466: brtrue => Label46
IL_046B: ldloc.s 4 (Verse.ThingWithComps)
IL_046D: ldc.i4.0
IL_046E: callvirt virtual System.Void Verse.Thing::Destroy(Verse.DestroyMode
mode)
IL_0473: br => Label57
IL_0478: Label45
IL_0478: ldarg.0
IL_0479: ldfld Verse.Pawn Verse.Pawn_HealthTracker::pawn
IL_047E: ldfld Verse.Pawn_EquipmentTracker Verse.Pawn::equipment
IL_0483: ldarg.0
IL_0484: ldfld Verse.Pawn Verse.Pawn_HealthTracker::pawn
IL_0489: ldfld Verse.Pawn_EquipmentTracker Verse.Pawn::equipment
IL_048E: callvirt Verse.ThingWithComps Verse.Pawn_EquipmentTracker::get_Primary()
IL_0493: callvirt System.Void
Verse.Pawn_EquipmentTracker::DestroyEquipment(Verse.ThingWithComps eq)
IL_0498: br => Label58
IL_049D: Label9
IL_049D: ldarg.0
IL_049E: call System.Boolean Verse.Pawn_HealthTracker::ShouldBeDowned()
IL_04A3: brtrue => Label47
IL_04A8: ldarg.0
IL_04A9: ldarg.2
IL_04AA: call System.Void Verse.Pawn_HealthTracker::MakeUndowned(Verse.Hediff
hediff)
IL_04AF: // end original
IL_04AF: Label0
IL_04AF: Label8
IL_04AF: Label35
IL_04AF: Label40
IL_04AF: Label41
IL_04AF: Label46
IL_04AF: Label47
IL_04AF: Label48
IL_04AF: Label49
IL_04AF: Label50
IL_04AF: Label51
IL_04AF: Label52
IL_04AF: Label53
IL_04AF: Label54
IL_04AF: Label55
IL_04AF: Label56
IL_04AF: Label57
IL_04AF: Label58
IL_04AF: ldarg.0
IL_04B0: ldarg.0
IL_04B1: ldfld Verse.Pawn Verse.Pawn_HealthTracker::pawn
IL_04B6: call static System.Void
VFECore.CheckForStateChange::Postfix(Verse.Pawn_HealthTracker __instance,
Verse.Pawn ___pawn)
IL_04BB: ldarg.0
IL_04BC: ldfld Verse.Pawn Verse.Pawn_HealthTracker::pawn
IL_04C1: call static System.Void
AlienRace.HarmonyPatches::CheckForStateChangePostfix(Verse.Pawn ___pawn)
IL_04C6: ret
DONE

### Patch: static System.Void Verse.PawnGenerator::GenerateGearFor(Verse.Pawn pawn,


Verse.PawnGenerationRequest request)
### Replacement: static System.Void
Verse.PawnGenerator::Verse.PawnGenerator.GenerateGearFor_Patch3(Verse.Pawn pawn,
Verse.PawnGenerationRequest request)
IL_0000: // start original
IL_0000: ldarg.0
IL_0001: ldarg.1
IL_0002: call static System.Void
RimWorld.PawnApparelGenerator::GenerateStartingApparelFor(Verse.Pawn pawn,
Verse.PawnGenerationRequest request)
IL_0007: ldarg.0
IL_0008: ldarg.1
IL_0009: call static System.Void
RimWorld.PawnWeaponGenerator::TryGenerateWeaponFor(Verse.Pawn pawn,
Verse.PawnGenerationRequest request)
IL_000E: ldarg.0
IL_000F: ldarg.1
IL_0010: call static System.Void
RimWorld.PawnInventoryGenerator::GenerateInventoryFor(Verse.Pawn p,
Verse.PawnGenerationRequest request)
IL_0015: // end original
IL_0015: ldarg 0
IL_0019: ldarg 1
IL_001D: call static System.Void
PeteTimesSix.SimpleSidearms.Intercepts.PawnGenerator_GenerateGearFor_Postfix::Gener
ateGearFor(Verse.Pawn pawn, Verse.PawnGenerationRequest request)
IL_0022: ldarg 0
IL_0026: call static System.Void VFECore.GenerateGearFor::Postfix(Verse.Pawn
pawn)
IL_002B: ldarg 0
IL_002F: call static System.Void
AlienRace.HarmonyPatches::GenerateGearForPostfix(Verse.Pawn pawn)
IL_0034: ret
DONE

### Patch: System.Void Verse.Pawn::ChangeKind(Verse.PawnKindDef newKindDef)


### Replacement: static System.Void
Verse.Pawn::Verse.Pawn.ChangeKind_Patch1(Verse.Pawn this, Verse.PawnKindDef
newKindDef)
IL_0000: Local var 0: System.Boolean
IL_0000: ldc.i4 0
IL_0005: stloc 0 (System.Boolean)
IL_0009: ldc.i4.1
IL_000A: stloc 0 (System.Boolean)
IL_000E: ldloc 0 (System.Boolean)
IL_0012: brfalse => Label1
IL_0017: ldarg.0
IL_0018: ldarg 1
IL_001C: call static System.Boolean
AlienRace.HarmonyPatches::ChangeKindPrefix(Verse.Pawn __instance, Verse.PawnKindDef
newKindDef)
IL_0021: stloc 0 (System.Boolean)
IL_0025: Label1
IL_0025: nop
IL_0026: ldloc 0 (System.Boolean)
IL_002A: brfalse => Label0
IL_002F: // start original
IL_002F: ldarg.0
IL_0030: ldfld Verse.PawnKindDef Verse.Pawn::kindDef
IL_0035: ldarg.1
IL_0036: bne.un => Label2
IL_003B: br => Label4
IL_0040: Label2
IL_0040: ldarg.0
IL_0041: ldarg.1
IL_0042: stfld Verse.PawnKindDef Verse.Pawn::kindDef
IL_0047: ldarg.0
IL_0048: ldfld Verse.PawnKindDef Verse.Pawn::kindDef
IL_004D: ldsfld Verse.PawnKindDef RimWorld.PawnKindDefOf::WildMan
IL_0052: bne.un => Label3
IL_0057: ldarg.0
IL_0058: ldfld Verse.AI.Pawn_MindState Verse.Pawn::mindState
IL_005D: ldc.i4.0
IL_005E: callvirt System.Void
Verse.AI.Pawn_MindState::set_WildManEverReachedOutside(System.Boolean value)
IL_0063: ldarg.0
IL_0064: call static System.Void
Verse.ReachabilityUtility::ClearCacheFor(Verse.Pawn p)
IL_0069: // end original
IL_0069: Label3
IL_0069: Label4
IL_0069: Label0
IL_0069: ret
DONE
### Patch: virtual System.Void
Verse.EditWindow_TweakValues::DoWindowContents(UnityEngine.Rect inRect)
### Replacement: static System.Void
Verse.EditWindow_TweakValues::Verse.EditWindow_TweakValues.DoWindowContents_Patch0(
Verse.EditWindow_TweakValues this, UnityEngine.Rect inRect)
IL_0000: Local var 0: UnityEngine.Rect
IL_0000: Local var 1: UnityEngine.Rect
IL_0000: Local var 2: UnityEngine.Rect
IL_0000: Local var 3: UnityEngine.Rect
IL_0000: Local var 4: UnityEngine.Rect
IL_0000: Local var 5:
System.Collections.Generic.List`1/Enumerator<Verse.EditWindow_TweakValues/
TweakInfo>
IL_0000: Local var 6: Verse.EditWindow_TweakValues/TweakInfo
IL_0000: Local var 7: System.Single
IL_0000: Local var 8: System.Boolean
IL_0000: Local var 9: System.Boolean
IL_0000: Local var 10: System.Reflection.MethodInfo
IL_0000: // start original
IL_0000: ldc.i4.1
IL_0001: call static System.Void Verse.Text::set_Font(Verse.GameFont value)
IL_0006: ldarg.1
IL_0007: ldc.r4 4
IL_000C: call static UnityEngine.Rect
Verse.GenUI::ContractedBy(UnityEngine.Rect rect, System.Single margin)
IL_0011: dup
IL_0012: stloc.0
IL_0013: ldloca.s 0 (UnityEngine.Rect)
IL_0015: dup
IL_0016: call System.Single UnityEngine.Rect::get_xMax()
IL_001B: ldc.r4 33
IL_0020: sub
IL_0021: call System.Void UnityEngine.Rect::set_xMax(System.Single value)
IL_0026: ldloca.s 1 (UnityEngine.Rect)
IL_0028: ldc.r4 0
IL_002D: ldc.r4 0
IL_0032: ldsfld System.Single Verse.EditWindow_TweakValues::CategoryWidth
IL_0037: ldstr "test"
IL_003C: ldc.r4 1000
IL_0041: call static System.Single Verse.Text::CalcHeight(System.String text,
System.Single width)
IL_0046: call System.Void UnityEngine.Rect::.ctor(System.Single x,
System.Single y, System.Single width, System.Single height)
IL_004B: ldloca.s 2 (UnityEngine.Rect)
IL_004D: ldloca.s 1 (UnityEngine.Rect)
IL_004F: call System.Single UnityEngine.Rect::get_xMax()
IL_0054: ldc.r4 0
IL_0059: ldsfld System.Single Verse.EditWindow_TweakValues::TitleWidth
IL_005E: ldloca.s 1 (UnityEngine.Rect)
IL_0060: call System.Single UnityEngine.Rect::get_height()
IL_0065: call System.Void UnityEngine.Rect::.ctor(System.Single x,
System.Single y, System.Single width, System.Single height)
IL_006A: ldloca.s 3 (UnityEngine.Rect)
IL_006C: ldloca.s 2 (UnityEngine.Rect)
IL_006E: call System.Single UnityEngine.Rect::get_xMax()
IL_0073: ldc.r4 0
IL_0078: ldsfld System.Single Verse.EditWindow_TweakValues::NumberWidth
IL_007D: ldloca.s 1 (UnityEngine.Rect)
IL_007F: call System.Single UnityEngine.Rect::get_height()
IL_0084: call System.Void UnityEngine.Rect::.ctor(System.Single x,
System.Single y, System.Single width, System.Single height)
IL_0089: ldloca.s 4 (UnityEngine.Rect)
IL_008B: ldloca.s 3 (UnityEngine.Rect)
IL_008D: call System.Single UnityEngine.Rect::get_xMax()
IL_0092: ldc.r4 0
IL_0097: ldloca.s 0 (UnityEngine.Rect)
IL_0099: call System.Single UnityEngine.Rect::get_width()
IL_009E: ldloca.s 3 (UnityEngine.Rect)
IL_00A0: call System.Single UnityEngine.Rect::get_xMax()
IL_00A5: sub
IL_00A6: ldloca.s 1 (UnityEngine.Rect)
IL_00A8: call System.Single UnityEngine.Rect::get_height()
IL_00AD: call System.Void UnityEngine.Rect::.ctor(System.Single x,
System.Single y, System.Single width, System.Single height)
IL_00B2: ldarg.0
IL_00B3: ldflda UnityEngine.Vector2
Verse.EditWindow_TweakValues::scrollPosition
IL_00B8: ldc.r4 0
IL_00BD: ldc.r4 0
IL_00C2: ldloca.s 0 (UnityEngine.Rect)
IL_00C4: call System.Single UnityEngine.Rect::get_width()
IL_00C9: ldloca.s 1 (UnityEngine.Rect)
IL_00CB: call System.Single UnityEngine.Rect::get_height()
IL_00D0: ldsfld System.Collections.Generic.List`1<Verse.TweakInfo>
Verse.EditWindow_TweakValues::tweakValueFields
IL_00D5: callvirt virtual System.Int32
System.Collections.Generic.List`1<Verse.TweakInfo>::get_Count()
IL_00DA: ldsfld System.Int32 AlienRace.HarmonyPatches::tweakvalues_lineCount
IL_00DF: add
IL_00E0: conv.r4
IL_00E1: mul
IL_00E2: newobj System.Void UnityEngine.Rect::.ctor(System.Single x,
System.Single y, System.Single width, System.Single height)
IL_00E7: ldc.i4.1
IL_00E8: call static System.Void
Verse.Widgets::BeginScrollView(UnityEngine.Rect outRect, UnityEngine.Vector2&
scrollPosition, UnityEngine.Rect viewRect, System.Boolean showScrollbars)
IL_00ED: ldsfld System.Collections.Generic.List`1<Verse.TweakInfo>
Verse.EditWindow_TweakValues::tweakValueFields
IL_00F2: callvirt System.Collections.Generic.Enumerator<Verse.TweakInfo>
System.Collections.Generic.List`1<Verse.TweakInfo>::GetEnumerator()
IL_00F7: stloc.s 5
(System.Collections.Generic.List`1+Enumerator[Verse.EditWindow_TweakValues+TweakInf
o])
.try
{
IL_00F9: br => Label0
IL_00FE: Label20
IL_00FE: ldloca.s 5
(System.Collections.Generic.List`1+Enumerator[Verse.EditWindow_TweakValues+TweakInf
o])
IL_0100: call virtual Verse.TweakInfo
System.Collections.Generic.Enumerator<Verse.TweakInfo>::get_Current()
IL_0105: stloc.s 6 (Verse.EditWindow_TweakValues+TweakInfo)
IL_0107: ldloc.1
IL_0108: ldloc.s 6 (Verse.EditWindow_TweakValues+TweakInfo)
IL_010A: ldfld Verse.TweakValue Verse.TweakInfo::tweakValue
IL_010F: ldfld System.String Verse.TweakValue::category
IL_0114: call static System.Void Verse.Widgets::Label(UnityEngine.Rect
rect, System.String label)
IL_0119: ldloc.2
IL_011A: ldstr "{0}.{1}"
IL_011F: ldloc.s 6 (Verse.EditWindow_TweakValues+TweakInfo)
IL_0121: ldfld System.Reflection.FieldInfo Verse.TweakInfo::field
IL_0126: callvirt abstract virtual System.Type
System.Reflection.MemberInfo::get_DeclaringType()
IL_012B: callvirt abstract virtual System.String
System.Reflection.MemberInfo::get_Name()
IL_0130: ldloc.s 6 (Verse.EditWindow_TweakValues+TweakInfo)
IL_0132: ldfld System.Reflection.FieldInfo Verse.TweakInfo::field
IL_0137: callvirt abstract virtual System.String
System.Reflection.MemberInfo::get_Name()
IL_013C: call static System.String System.String::Format(System.String
format, System.Object arg0, System.Object arg1)
IL_0141: call static System.Void Verse.Widgets::Label(UnityEngine.Rect
rect, System.String label)
IL_0146: ldloc.s 6 (Verse.EditWindow_TweakValues+TweakInfo)
IL_0148: ldfld System.Reflection.FieldInfo Verse.TweakInfo::field
IL_014D: callvirt abstract virtual System.Type
System.Reflection.FieldInfo::get_FieldType()
IL_0152: ldtoken System.Single
IL_0157: call static System.Type
System.Type::GetTypeFromHandle(System.RuntimeTypeHandle handle)
IL_015C: call static System.Boolean
System.Type::op_Equality(System.Type left, System.Type right)
IL_0161: brtrue => Label1
IL_0166: ldloc.s 6 (Verse.EditWindow_TweakValues+TweakInfo)
IL_0168: ldfld System.Reflection.FieldInfo Verse.TweakInfo::field
IL_016D: callvirt abstract virtual System.Type
System.Reflection.FieldInfo::get_FieldType()
IL_0172: ldtoken System.Int32
IL_0177: call static System.Type
System.Type::GetTypeFromHandle(System.RuntimeTypeHandle handle)
IL_017C: call static System.Boolean
System.Type::op_Equality(System.Type left, System.Type right)
IL_0181: brtrue => Label2
IL_0186: ldloc.s 6 (Verse.EditWindow_TweakValues+TweakInfo)
IL_0188: ldfld System.Reflection.FieldInfo Verse.TweakInfo::field
IL_018D: callvirt abstract virtual System.Type
System.Reflection.FieldInfo::get_FieldType()
IL_0192: ldtoken System.UInt16
IL_0197: call static System.Type
System.Type::GetTypeFromHandle(System.RuntimeTypeHandle handle)
IL_019C: call static System.Boolean
System.Type::op_Equality(System.Type left, System.Type right)
IL_01A1: brfalse => Label3
IL_01A6: Label1
IL_01A6: Label2
IL_01A6: ldarg.0
IL_01A7: ldloc.s 6 (Verse.EditWindow_TweakValues+TweakInfo)
IL_01A9: ldfld System.Reflection.FieldInfo Verse.TweakInfo::field
IL_01AE: call System.Single
Verse.EditWindow_TweakValues::GetAsFloat(System.Reflection.FieldInfo field)
IL_01B3: ldloc.s 4 (UnityEngine.Rect)
IL_01B5: ldarg.0
IL_01B6: ldloc.s 6 (Verse.EditWindow_TweakValues+TweakInfo)
IL_01B8: ldfld System.Reflection.FieldInfo Verse.TweakInfo::field
IL_01BD: call System.Single
Verse.EditWindow_TweakValues::GetAsFloat(System.Reflection.FieldInfo field)
IL_01C2: ldloc.s 6 (Verse.EditWindow_TweakValues+TweakInfo)
IL_01C4: ldfld Verse.TweakValue Verse.TweakInfo::tweakValue
IL_01C9: ldfld System.Single Verse.TweakValue::min
IL_01CE: ldloc.s 6 (Verse.EditWindow_TweakValues+TweakInfo)
IL_01D0: ldfld Verse.TweakValue Verse.TweakInfo::tweakValue
IL_01D5: ldfld System.Single Verse.TweakValue::max
IL_01DA: ldc.i4.0
IL_01DB: ldnull
IL_01DC: ldnull
IL_01DD: ldnull
IL_01DE: ldc.r4 -1
IL_01E3: call static System.Single
Verse.Widgets::HorizontalSlider_NewTemp(UnityEngine.Rect rect, System.Single value,
System.Single min, System.Single max, System.Boolean middleAlignment, System.String
label, System.String leftAlignedLabel, System.String rightAlignedLabel,
System.Single roundTo)
IL_01E8: stloc.s 7 (System.Single)
IL_01EA: ldarg.0
IL_01EB: ldloc.s 6 (Verse.EditWindow_TweakValues+TweakInfo)
IL_01ED: ldfld System.Reflection.FieldInfo Verse.TweakInfo::field
IL_01F2: ldloc.s 7 (System.Single)
IL_01F4: call System.Void
Verse.EditWindow_TweakValues::SetFromFloat(System.Reflection.FieldInfo field,
System.Single input)
IL_01F9: ldloc.s 7 (System.Single)
IL_01FB: ceq
IL_01FD: ldc.i4.0
IL_01FE: ceq
IL_0200: stloc.s 8 (System.Boolean)
IL_0202: br => Label4
IL_0207: Label3
IL_0207: ldloc.s 6 (Verse.EditWindow_TweakValues+TweakInfo)
IL_0209: ldfld System.Reflection.FieldInfo Verse.TweakInfo::field
IL_020E: callvirt abstract virtual System.Type
System.Reflection.FieldInfo::get_FieldType()
IL_0213: ldtoken System.Boolean
IL_0218: call static System.Type
System.Type::GetTypeFromHandle(System.RuntimeTypeHandle handle)
IL_021D: call static System.Boolean
System.Type::op_Equality(System.Type left, System.Type right)
IL_0222: brfalse => Label5
IL_0227: ldloc.s 6 (Verse.EditWindow_TweakValues+TweakInfo)
IL_0229: ldfld System.Reflection.FieldInfo Verse.TweakInfo::field
IL_022E: ldnull
IL_022F: callvirt abstract virtual System.Object
System.Reflection.FieldInfo::GetValue(System.Object obj)
IL_0234: unbox.any System.Boolean
IL_0239: dup
IL_023A: stloc.s 9 (System.Boolean)
IL_023C: ldloca.s 4 (UnityEngine.Rect)
IL_023E: call System.Single UnityEngine.Rect::get_xMin()
IL_0243: ldloca.s 4 (UnityEngine.Rect)
IL_0245: call System.Single UnityEngine.Rect::get_yMin()
IL_024A: ldloca.s 9 (System.Boolean)
IL_024C: ldc.r4 24
IL_0251: ldc.i4.0
IL_0252: ldc.i4.0
IL_0253: ldnull
IL_0254: ldnull
IL_0255: call static System.Void Verse.Widgets::Checkbox(System.Single
x, System.Single y, System.Boolean& checkOn, System.Single size, System.Boolean
disabled, System.Boolean paintable, UnityEngine.Texture2D texChecked,
UnityEngine.Texture2D texUnchecked)
IL_025A: ldloc.s 6 (Verse.EditWindow_TweakValues+TweakInfo)
IL_025C: ldfld System.Reflection.FieldInfo Verse.TweakInfo::field
IL_0261: ldnull
IL_0262: ldloc.s 9 (System.Boolean)
IL_0264: box System.Boolean
IL_0269: callvirt virtual System.Void
System.Reflection.FieldInfo::SetValue(System.Object obj, System.Object value)
IL_026E: ldloc.s 9 (System.Boolean)
IL_0270: brtrue => Label6
IL_0275: ldc.i4.0
IL_0276: br => Label7
IL_027B: Label6
IL_027B: ldc.i4.1
IL_027C: Label7
IL_027C: conv.r4
IL_027D: stloc.s 7 (System.Single)
IL_027F: ldloc.s 9 (System.Boolean)
IL_0281: ceq
IL_0283: ldc.i4.0
IL_0284: ceq
IL_0286: stloc.s 8 (System.Boolean)
IL_0288: br => Label8
IL_028D: Label5
IL_028D: ldstr "Attempted to tweakvalue unknown field type {0}"
IL_0292: ldloc.s 6 (Verse.EditWindow_TweakValues+TweakInfo)
IL_0294: ldfld System.Reflection.FieldInfo Verse.TweakInfo::field
IL_0299: callvirt abstract virtual System.Type
System.Reflection.FieldInfo::get_FieldType()
IL_029E: call static System.String System.String::Format(System.String
format, System.Object arg0)
IL_02A3: ldc.i4 83944645
IL_02A8: call static System.Void Verse.Log::ErrorOnce(System.String
text, System.Int32 key)
IL_02AD: ldc.i4.0
IL_02AE: stloc.s 8 (System.Boolean)
IL_02B0: ldloc.s 6 (Verse.EditWindow_TweakValues+TweakInfo)
IL_02B2: ldfld System.Single Verse.TweakInfo::initial
IL_02B7: stloc.s 7 (System.Single)
IL_02B9: Label4
IL_02B9: Label8
IL_02B9: ldloc.s 7 (System.Single)
IL_02BB: ldloc.s 6 (Verse.EditWindow_TweakValues+TweakInfo)
IL_02BD: ldfld System.Single Verse.TweakInfo::initial
IL_02C2: beq => Label9
IL_02C7: call static UnityEngine.Color UnityEngine.Color::get_red()
IL_02CC: call static System.Void
UnityEngine.GUI::set_color(UnityEngine.Color value)
IL_02D1: ldc.i4.0
IL_02D2: call static System.Void
Verse.Text::set_WordWrap(System.Boolean value)
IL_02D7: ldloc.3
IL_02D8: ldstr "{0} -> {1}"
IL_02DD: ldloc.s 6 (Verse.EditWindow_TweakValues+TweakInfo)
IL_02DF: ldfld System.Single Verse.TweakInfo::initial
IL_02E4: box System.Single
IL_02E9: ldloc.s 7 (System.Single)
IL_02EB: box System.Single
IL_02F0: call static System.String System.String::Format(System.String
format, System.Object arg0, System.Object arg1)
IL_02F5: call static System.Void Verse.Widgets::Label(UnityEngine.Rect
rect, System.String label)
IL_02FA: ldc.i4.1
IL_02FB: call static System.Void
Verse.Text::set_WordWrap(System.Boolean value)
IL_0300: call static UnityEngine.Color UnityEngine.Color::get_white()
IL_0305: call static System.Void
UnityEngine.GUI::set_color(UnityEngine.Color value)
IL_030A: ldloc.3
IL_030B: ldc.i4.1
IL_030C: call static System.Boolean
Verse.Widgets::ButtonInvisible(UnityEngine.Rect butRect, System.Boolean
doMouseoverSound)
IL_0311: brfalse => Label10
IL_0316: ldc.i4.1
IL_0317: stloc.s 8 (System.Boolean)
IL_0319: ldloc.s 6 (Verse.EditWindow_TweakValues+TweakInfo)
IL_031B: ldfld System.Reflection.FieldInfo Verse.TweakInfo::field
IL_0320: callvirt abstract virtual System.Type
System.Reflection.FieldInfo::get_FieldType()
IL_0325: ldtoken System.Single
IL_032A: call static System.Type
System.Type::GetTypeFromHandle(System.RuntimeTypeHandle handle)
IL_032F: call static System.Boolean
System.Type::op_Equality(System.Type left, System.Type right)
IL_0334: brtrue => Label11
IL_0339: ldloc.s 6 (Verse.EditWindow_TweakValues+TweakInfo)
IL_033B: ldfld System.Reflection.FieldInfo Verse.TweakInfo::field
IL_0340: callvirt abstract virtual System.Type
System.Reflection.FieldInfo::get_FieldType()
IL_0345: ldtoken System.Int32
IL_034A: call static System.Type
System.Type::GetTypeFromHandle(System.RuntimeTypeHandle handle)
IL_034F: call static System.Boolean
System.Type::op_Equality(System.Type left, System.Type right)
IL_0354: brtrue => Label12
IL_0359: ldloc.s 6 (Verse.EditWindow_TweakValues+TweakInfo)
IL_035B: ldfld System.Reflection.FieldInfo Verse.TweakInfo::field
IL_0360: callvirt abstract virtual System.Type
System.Reflection.FieldInfo::get_FieldType()
IL_0365: ldtoken System.UInt16
IL_036A: call static System.Type
System.Type::GetTypeFromHandle(System.RuntimeTypeHandle handle)
IL_036F: call static System.Boolean
System.Type::op_Equality(System.Type left, System.Type right)
IL_0374: brfalse => Label13
IL_0379: Label11
IL_0379: Label12
IL_0379: ldarg.0
IL_037A: ldloc.s 6 (Verse.EditWindow_TweakValues+TweakInfo)
IL_037C: ldfld System.Reflection.FieldInfo Verse.TweakInfo::field
IL_0381: ldloc.s 6 (Verse.EditWindow_TweakValues+TweakInfo)
IL_0383: ldfld System.Single Verse.TweakInfo::initial
IL_0388: call System.Void
Verse.EditWindow_TweakValues::SetFromFloat(System.Reflection.FieldInfo field,
System.Single input)
IL_038D: br => Label14
IL_0392: Label13
IL_0392: ldloc.s 6 (Verse.EditWindow_TweakValues+TweakInfo)
IL_0394: ldfld System.Reflection.FieldInfo Verse.TweakInfo::field
IL_0399: callvirt abstract virtual System.Type
System.Reflection.FieldInfo::get_FieldType()
IL_039E: ldtoken System.Boolean
IL_03A3: call static System.Type
System.Type::GetTypeFromHandle(System.RuntimeTypeHandle handle)
IL_03A8: call static System.Boolean
System.Type::op_Equality(System.Type left, System.Type right)
IL_03AD: brfalse => Label15
IL_03B2: ldloc.s 6 (Verse.EditWindow_TweakValues+TweakInfo)
IL_03B4: ldfld System.Reflection.FieldInfo Verse.TweakInfo::field
IL_03B9: ldnull
IL_03BA: ldloc.s 6 (Verse.EditWindow_TweakValues+TweakInfo)
IL_03BC: ldfld System.Single Verse.TweakInfo::initial
IL_03C1: ldc.r4 0
IL_03C6: ceq
IL_03C8: ldc.i4.0
IL_03C9: ceq
IL_03CB: box System.Boolean
IL_03D0: callvirt virtual System.Void
System.Reflection.FieldInfo::SetValue(System.Object obj, System.Object value)
IL_03D5: br => Label16
IL_03DA: Label15
IL_03DA: ldstr "Attempted to tweakvalue unknown field type {0}"
IL_03DF: ldloc.s 6 (Verse.EditWindow_TweakValues+TweakInfo)
IL_03E1: ldfld System.Reflection.FieldInfo Verse.TweakInfo::field
IL_03E6: callvirt abstract virtual System.Type
System.Reflection.FieldInfo::get_FieldType()
IL_03EB: call static System.String System.String::Format(System.String
format, System.Object arg0)
IL_03F0: ldc.i4 83944646
IL_03F5: call static System.Void Verse.Log::ErrorOnce(System.String
text, System.Int32 key)
IL_03FA: br => Label17
IL_03FF: Label9
IL_03FF: ldloc.3
IL_0400: ldstr "{0}"
IL_0405: ldloc.s 6 (Verse.EditWindow_TweakValues+TweakInfo)
IL_0407: ldfld System.Single Verse.TweakInfo::initial
IL_040C: box System.Single
IL_0411: call static System.String System.String::Format(System.String
format, System.Object arg0)
IL_0416: call static System.Void Verse.Widgets::Label(UnityEngine.Rect
rect, System.String label)
IL_041B: Label10
IL_041B: Label14
IL_041B: Label16
IL_041B: Label17
IL_041B: ldloc.s 8 (System.Boolean)
IL_041D: brfalse => Label18
IL_0422: ldloc.s 6 (Verse.EditWindow_TweakValues+TweakInfo)
IL_0424: ldfld System.Reflection.FieldInfo Verse.TweakInfo::field
IL_0429: callvirt abstract virtual System.Type
System.Reflection.MemberInfo::get_DeclaringType()
IL_042E: ldloc.s 6 (Verse.EditWindow_TweakValues+TweakInfo)
IL_0430: ldfld System.Reflection.FieldInfo Verse.TweakInfo::field
IL_0435: callvirt abstract virtual System.String
System.Reflection.MemberInfo::get_Name()
IL_043A: ldstr "_Changed"
IL_043F: call static System.String System.String::Concat(System.String
str0, System.String str1)
IL_0444: ldc.i4.s 56
IL_0446: callvirt virtual System.Reflection.MethodInfo
System.Type::GetMethod(System.String name, System.Reflection.BindingFlags
bindingAttr)
IL_044B: stloc.s 10 (System.Reflection.MethodInfo)
IL_044D: ldloc.s 10 (System.Reflection.MethodInfo)
IL_044F: ldnull
IL_0450: call static System.Boolean
System.Reflection.MethodInfo::op_Inequality(System.Reflection.MethodInfo left,
System.Reflection.MethodInfo right)
IL_0455: brfalse => Label19
IL_045A: ldloc.s 10 (System.Reflection.MethodInfo)
IL_045C: ldnull
IL_045D: ldnull
IL_045E: callvirt virtual System.Object
System.Reflection.MethodBase::Invoke(System.Object obj, System.Object[] parameters)
IL_0463: pop
IL_0464: Label18
IL_0464: Label19
IL_0464: ldloca.s 1 (UnityEngine.Rect)
IL_0466: dup
IL_0467: call System.Single UnityEngine.Rect::get_y()
IL_046C: ldloca.s 1 (UnityEngine.Rect)
IL_046E: call System.Single UnityEngine.Rect::get_height()
IL_0473: add
IL_0474: call System.Void UnityEngine.Rect::set_y(System.Single value)
IL_0479: ldloca.s 2 (UnityEngine.Rect)
IL_047B: dup
IL_047C: call System.Single UnityEngine.Rect::get_y()
IL_0481: ldloca.s 1 (UnityEngine.Rect)
IL_0483: call System.Single UnityEngine.Rect::get_height()
IL_0488: add
IL_0489: call System.Void UnityEngine.Rect::set_y(System.Single value)
IL_048E: ldloca.s 3 (UnityEngine.Rect)
IL_0490: dup
IL_0491: call System.Single UnityEngine.Rect::get_y()
IL_0496: ldloca.s 1 (UnityEngine.Rect)
IL_0498: call System.Single UnityEngine.Rect::get_height()
IL_049D: add
IL_049E: call System.Void UnityEngine.Rect::set_y(System.Single value)
IL_04A3: ldloca.s 4 (UnityEngine.Rect)
IL_04A5: dup
IL_04A6: call System.Single UnityEngine.Rect::get_y()
IL_04AB: ldloca.s 1 (UnityEngine.Rect)
IL_04AD: call System.Single UnityEngine.Rect::get_height()
IL_04B2: add
IL_04B3: call System.Void UnityEngine.Rect::set_y(System.Single value)
IL_04B8: Label0
IL_04B8: ldloca.s 5
(System.Collections.Generic.List`1+Enumerator[Verse.EditWindow_TweakValues+TweakInf
o])
IL_04BA: call virtual System.Boolean
System.Collections.Generic.Enumerator<Verse.TweakInfo>::MoveNext()
IL_04BF: brtrue => Label20
IL_04C4: leave => Label21
IL_04C9: leave => (autogenerated)
} // end try
.finally
{
IL_04CE: ldloca.s 5
(System.Collections.Generic.List`1+Enumerator[Verse.EditWindow_TweakValues+TweakInf
o])
IL_04D0: constrained.
System.Collections.Generic.List`1+Enumerator[Verse.EditWindow_TweakValues+TweakInfo
]
IL_04D6: callvirt abstract virtual System.Void
System.IDisposable::Dispose()
IL_04DB: endfinally
IL_04DC: leave => (autogenerated)
} // end handler
IL_04DD: Label21
IL_04DD: ldloca.s 1
IL_04DF: ldloca.s 2
IL_04E1: ldloca.s 3
IL_04E3: ldloca.s 4
IL_04E5: call static System.Void
AlienRace.HarmonyPatches::TweakValuesInstanceBased(UnityEngine.Rect& refRect2,
UnityEngine.Rect& refRect3, UnityEngine.Rect& refRect4, UnityEngine.Rect& refRect5)
IL_04EA: call static System.Void Verse.Widgets::EndScrollView()
IL_04EF: // end original
IL_04EF: ret
DONE

### Patch: virtual RimWorld.ThoughtState


RimWorld.ThoughtWorker_Woman::CurrentSocialStateInternal(Verse.Pawn p, Verse.Pawn
other)
### Replacement: static RimWorld.ThoughtState
RimWorld.ThoughtWorker_Woman::RimWorld.ThoughtWorker_Woman.CurrentSocialStateIntern
al_Patch0(RimWorld.ThoughtWorker_Woman this, Verse.Pawn p, Verse.Pawn other)
IL_0000: // start original
IL_0000: ldarg.1
IL_0001: callvirt Verse.RaceProperties Verse.Pawn::get_RaceProps()
IL_0006: callvirt System.Boolean Verse.RaceProperties::get_Humanlike()
IL_000B: brtrue => Label0
IL_0010: ldc.i4.0
IL_0011: call static RimWorld.ThoughtState
RimWorld.ThoughtState::op_Implicit(System.Boolean value)
IL_0016: br => Label5
IL_001B: Label0
IL_001B: ldarg.1
IL_001C: ldfld RimWorld.Pawn_StoryTracker Verse.Pawn::story
IL_0021: ldfld RimWorld.TraitSet RimWorld.Pawn_StoryTracker::traits
IL_0026: ldsfld RimWorld.TraitDef RimWorld.TraitDefOf::DislikesWomen
IL_002B: callvirt System.Boolean RimWorld.TraitSet::HasTrait(RimWorld.TraitDef
tDef)
IL_0030: brtrue => Label1
IL_0035: ldc.i4.0
IL_0036: call static RimWorld.ThoughtState
RimWorld.ThoughtState::op_Implicit(System.Boolean value)
IL_003B: br => Label6
IL_0040: Label1
IL_0040: ldarg.1
IL_0041: ldarg.2
IL_0042: call static System.Boolean
RimWorld.RelationsUtility::PawnsKnowEachOther(Verse.Pawn p1, Verse.Pawn p2)
IL_0047: brtrue => Label2
IL_004C: ldc.i4.0
IL_004D: call static RimWorld.ThoughtState
RimWorld.ThoughtState::op_Implicit(System.Boolean value)
IL_0052: br => Label7
IL_0057: Label2
IL_0057: ldarg.2
IL_0058: ldfld Verse.Gender Verse.Pawn::gender
IL_005D: ldc.i4.2
IL_005E: beq => Label4
IL_0063: ldc.i4.0
IL_0064: call static RimWorld.ThoughtState
RimWorld.ThoughtState::op_Implicit(System.Boolean value)
IL_0069: br => Label8
IL_006E: Label4
IL_006E: ldc.i4.1
IL_006F: call static RimWorld.ThoughtState
RimWorld.ThoughtState::op_Implicit(System.Boolean value)
IL_0074: // end original
IL_0074: Label5
IL_0074: Label6
IL_0074: Label7
IL_0074: Label8
IL_0074: ret
DONE

### Patch: virtual RimWorld.ThoughtState


RimWorld.ThoughtWorker_Man::CurrentSocialStateInternal(Verse.Pawn p, Verse.Pawn
other)
### Replacement: static RimWorld.ThoughtState
RimWorld.ThoughtWorker_Man::RimWorld.ThoughtWorker_Man.CurrentSocialStateInternal_P
atch0(RimWorld.ThoughtWorker_Man this, Verse.Pawn p, Verse.Pawn other)
IL_0000: // start original
IL_0000: ldarg.1
IL_0001: callvirt Verse.RaceProperties Verse.Pawn::get_RaceProps()
IL_0006: callvirt System.Boolean Verse.RaceProperties::get_Humanlike()
IL_000B: brtrue => Label0
IL_0010: ldc.i4.0
IL_0011: call static RimWorld.ThoughtState
RimWorld.ThoughtState::op_Implicit(System.Boolean value)
IL_0016: br => Label5
IL_001B: Label0
IL_001B: ldarg.1
IL_001C: ldfld RimWorld.Pawn_StoryTracker Verse.Pawn::story
IL_0021: ldfld RimWorld.TraitSet RimWorld.Pawn_StoryTracker::traits
IL_0026: ldsfld RimWorld.TraitDef RimWorld.TraitDefOf::DislikesMen
IL_002B: callvirt System.Boolean RimWorld.TraitSet::HasTrait(RimWorld.TraitDef
tDef)
IL_0030: brtrue => Label1
IL_0035: ldc.i4.0
IL_0036: call static RimWorld.ThoughtState
RimWorld.ThoughtState::op_Implicit(System.Boolean value)
IL_003B: br => Label6
IL_0040: Label1
IL_0040: ldarg.1
IL_0041: ldarg.2
IL_0042: call static System.Boolean
RimWorld.RelationsUtility::PawnsKnowEachOther(Verse.Pawn p1, Verse.Pawn p2)
IL_0047: brtrue => Label2
IL_004C: ldc.i4.0
IL_004D: call static RimWorld.ThoughtState
RimWorld.ThoughtState::op_Implicit(System.Boolean value)
IL_0052: br => Label7
IL_0057: Label2
IL_0057: ldarg.2
IL_0058: ldfld Verse.Gender Verse.Pawn::gender
IL_005D: ldc.i4.1
IL_005E: beq => Label4
IL_0063: ldc.i4.0
IL_0064: call static RimWorld.ThoughtState
RimWorld.ThoughtState::op_Implicit(System.Boolean value)
IL_0069: br => Label8
IL_006E: Label4
IL_006E: ldc.i4.1
IL_006F: call static RimWorld.ThoughtState
RimWorld.ThoughtState::op_Implicit(System.Boolean value)
IL_0074: // end original
IL_0074: Label5
IL_0074: Label6
IL_0074: Label7
IL_0074: Label8
IL_0074: ret
DONE

### Patch: static System.Boolean RimWorld.EquipmentUtility::CanEquip(Verse.Thing


thing, Verse.Pawn pawn, System.String& cantReason, System.Boolean checkBonded)
### Replacement: static System.Boolean
RimWorld.EquipmentUtility::RimWorld.EquipmentUtility.CanEquip_Patch1(Verse.Thing
thing, Verse.Pawn pawn, System.String& cantReason, System.Boolean checkBonded)
IL_0000: Local var 0: RimWorld.CompBladelinkWeapon
IL_0000: Local var 1: Verse.DevelopmentalStage
IL_0000: Local var 2: System.Boolean
IL_0000: ldc.i4 0
IL_0005: stloc 2 (System.Boolean)
IL_0009: // start original
IL_0009: ldarg.2
IL_000A: ldnull
IL_000B: stind.ref
IL_000C: ldarg.0
IL_000D: call static RimWorld.CompBladelinkWeapon
Verse.ThingCompUtility::TryGetComp(Verse.Thing thing)
IL_0012: stloc.0
IL_0013: ldloc.0
IL_0014: brfalse => Label0
IL_0019: ldloc.0
IL_001A: callvirt virtual System.Boolean
RimWorld.CompBiocodable::get_Biocodable()
IL_001F: brfalse => Label1
IL_0024: ldloc.0
IL_0025: callvirt Verse.Pawn RimWorld.CompBiocodable::get_CodedPawn()
IL_002A: brfalse => Label2
IL_002F: ldloc.0
IL_0030: callvirt Verse.Pawn RimWorld.CompBiocodable::get_CodedPawn()
IL_0035: ldarg.1
IL_0036: beq => Label3
IL_003B: ldarg.2
IL_003C: ldstr "BladelinkBondedToSomeoneElse"
IL_0041: call static Verse.TaggedString
Verse.Translator::Translate(System.String key)
IL_0046: call static System.String
Verse.TaggedString::op_Implicit(Verse.TaggedString taggedString)
IL_004B: stind.ref
IL_004C: ldc.i4.0
IL_004D: br => Label11
IL_0052: Label0
IL_0052: Label1
IL_0052: Label2
IL_0052: Label3
IL_0052: ldarg.0
IL_0053: call static System.Boolean
RimWorld.CompBiocodable::IsBiocoded(Verse.Thing thing)
IL_0058: brfalse => Label4
IL_005D: ldarg.0
IL_005E: ldarg.1
IL_005F: call static System.Boolean
RimWorld.CompBiocodable::IsBiocodedFor(Verse.Thing thing, Verse.Pawn pawn)
IL_0064: brtrue => Label5
IL_0069: ldarg.2
IL_006A: ldstr "BiocodedCodedForSomeoneElse"
IL_006F: call static Verse.TaggedString
Verse.Translator::Translate(System.String key)
IL_0074: call static System.String
Verse.TaggedString::op_Implicit(Verse.TaggedString taggedString)
IL_0079: stind.ref
IL_007A: ldc.i4.0
IL_007B: br => Label12
IL_0080: Label4
IL_0080: Label5
IL_0080: ldarg.3
IL_0081: brfalse => Label6
IL_0086: ldarg.0
IL_0087: ldarg.1
IL_0088: call static System.Boolean
RimWorld.EquipmentUtility::AlreadyBondedToWeapon(Verse.Thing thing, Verse.Pawn
pawn)
IL_008D: brfalse => Label7
IL_0092: ldarg.2
IL_0093: ldstr "BladelinkAlreadyBondedMessage"
IL_0098: ldarg.1
IL_0099: ldstr "PAWN"
IL_009E: call static Verse.NamedArgument
Verse.NamedArgumentUtility::Named(System.Object arg, System.String label)
IL_00A3: ldarg.1
IL_00A4: ldfld Verse.Pawn_EquipmentTracker Verse.Pawn::equipment
IL_00A9: ldfld Verse.Thing Verse.Pawn_EquipmentTracker::bondedWeapon
IL_00AE: ldstr "BONDEDWEAPON"
IL_00B3: call static Verse.NamedArgument
Verse.NamedArgumentUtility::Named(System.Object arg, System.String label)
IL_00B8: call static Verse.TaggedString
Verse.TranslatorFormattedStringExtensions::Translate(System.String key,
Verse.NamedArgument arg1, Verse.NamedArgument arg2)
IL_00BD: call static System.String
Verse.TaggedString::op_Implicit(Verse.TaggedString taggedString)
IL_00C2: stind.ref
IL_00C3: ldc.i4.0
IL_00C4: br => Label13
IL_00C9: Label6
IL_00C9: Label7
IL_00C9: ldarg.1
IL_00CA: ldarg.0
IL_00CB: ldarg.2
IL_00CC: call static System.Boolean
RimWorld.EquipmentUtility::RolePreventsFromUsing(Verse.Pawn pawn, Verse.Thing
thing, System.String& reason)
IL_00D1: brfalse => Label8
IL_00D6: ldc.i4.0
IL_00D7: br => Label14
IL_00DC: Label8
IL_00DC: ldarg.0
IL_00DD: ldfld Verse.ThingDef Verse.Thing::def
IL_00E2: callvirt System.Boolean Verse.ThingDef::get_IsApparel()
IL_00E7: brfalse => Label9
IL_00EC: ldarg.0
IL_00ED: ldfld Verse.ThingDef Verse.Thing::def
IL_00F2: ldfld RimWorld.ApparelProperties Verse.ThingDef::apparel
IL_00F7: ldfld Verse.DevelopmentalStage
RimWorld.ApparelProperties::developmentalStageFilter
IL_00FC: ldarg.1
IL_00FD: callvirt Verse.DevelopmentalStage Verse.Pawn::get_DevelopmentalStage()
IL_0102: call static System.Boolean
Verse.DevelopmentalStageExtensions::Has(Verse.DevelopmentalStage
developmentalStage, Verse.DevelopmentalStage query)
IL_0107: brtrue => Label10
IL_010C: ldarg.2
IL_010D: ldstr "WrongDevelopmentalStageForClothing"
IL_0112: ldarg.1
IL_0113: callvirt Verse.DevelopmentalStage Verse.Pawn::get_DevelopmentalStage()
IL_0118: stloc.1
IL_0119: ldloca.s 1 (Verse.DevelopmentalStage)
IL_011B: constrained. Verse.DevelopmentalStage
IL_0121: callvirt virtual System.String System.Object::ToString()
IL_0126: call static Verse.TaggedString
Verse.Translator::Translate(System.String key)
IL_012B: call static Verse.NamedArgument
Verse.NamedArgument::op_Implicit(Verse.TaggedString value)
IL_0130: call static Verse.LanguageWorker
Verse.Find::get_ActiveLanguageWorker()
IL_0135: ldarg.0
IL_0136: ldfld Verse.ThingDef Verse.Thing::def
IL_013B: ldfld RimWorld.ApparelProperties Verse.ThingDef::apparel
IL_0140: ldfld Verse.DevelopmentalStage
RimWorld.ApparelProperties::developmentalStageFilter
IL_0145: call static System.String
Verse.DevelopmentalStageExtensions::ToCommaListOr(Verse.DevelopmentalStage
developmentalStages)
IL_014A: ldc.i4.0
IL_014B: ldc.i4.0
IL_014C: callvirt System.String
Verse.LanguageWorker::WithIndefiniteArticlePostProcessed(System.String str,
System.Boolean plural, System.Boolean name)
IL_0151: call static Verse.NamedArgument
Verse.NamedArgument::op_Implicit(System.String value)
IL_0156: call static Verse.TaggedString
Verse.TranslatorFormattedStringExtensions::Translate(System.String key,
Verse.NamedArgument arg1, Verse.NamedArgument arg2)
IL_015B: call static System.String
Verse.TaggedString::op_Implicit(Verse.TaggedString taggedString)
IL_0160: stind.ref
IL_0161: ldc.i4.0
IL_0162: br => Label15
IL_0167: Label9
IL_0167: Label10
IL_0167: ldc.i4.1
IL_0168: // end original
IL_0168: Label11
IL_0168: Label12
IL_0168: Label13
IL_0168: Label14
IL_0168: Label15
IL_0168: stloc 2 (System.Boolean)
IL_016C: ldloca 2 (System.Boolean)
IL_0170: ldarg 0
IL_0174: ldarg 1
IL_0178: ldarg 2
IL_017C: call static System.Void
AlienRace.HarmonyPatches::CanEquipPostfix(System.Boolean& __result, Verse.Thing
thing, Verse.Pawn pawn, System.String& cantReason)
IL_0181: ldloc 2 (System.Boolean)
IL_0185: ret
DONE

### Patch: static System.Void


RimWorld.PawnBioAndNameGenerator::GiveShuffledBioTo(Verse.Pawn pawn,
RimWorld.FactionDef factionType, System.String requiredLastName,
System.Collections.Generic.List`1<RimWorld.BackstoryCategoryFilter>
backstoryCategories, System.Boolean forceNoBackstory, System.Boolean forceNoNick,
RimWorld.XenotypeDef xenotype)
### Replacement: static System.Void
RimWorld.PawnBioAndNameGenerator::RimWorld.PawnBioAndNameGenerator.GiveShuffledBioT
o_Patch0(Verse.Pawn pawn, RimWorld.FactionDef factionType, System.String
requiredLastName,
System.Collections.Generic.List`1<RimWorld.BackstoryCategoryFilter>
backstoryCategories, System.Boolean forceNoBackstory, System.Boolean forceNoNick,
RimWorld.XenotypeDef xenotype)
IL_0000: Local var 0: System.Boolean
IL_0000: Local var 1: System.Nullable`1<RimWorld.BackstorySlot>
IL_0000: // start original
IL_0000: ldarg.s 4
IL_0002: brtrue => Label0
IL_0007: ldarg.0
IL_0008: ldfld Verse.Pawn_AgeTracker Verse.Pawn::ageTracker
IL_000D: callvirt System.Single
Verse.Pawn_AgeTracker::get_AgeBiologicalYearsFloat()
IL_0012: ldarg.0
IL_0013: ldc.r4 20
IL_0018: call static System.Single
AlienRace.HarmonyPatches::GetMinAgeForAdulthood(Verse.Pawn pawn, System.Single
value)
IL_001D: clt.un
IL_001F: ldc.i4.0
IL_0020: ceq
IL_0022: stloc.0
IL_0023: ldarg.0
IL_0024: ldc.i4.0
IL_0025: ldarg.3
IL_0026: ldarg.1
IL_0027: ldloc.0
IL_0028: brtrue => Label1
IL_002D: ldloca.s 1 (System.Nullable`1[RimWorld.BackstorySlot])
IL_002F: initobj System.Nullable`1[RimWorld.BackstorySlot]
IL_0035: ldloc.1
IL_0036: br => Label2
IL_003B: Label1
IL_003B: ldc.i4.1
IL_003C: newobj System.Void
System.Nullable`1<RimWorld.BackstorySlot>::.ctor(RimWorld.BackstorySlot value)
IL_0041: Label2
IL_0041: call static System.Void
RimWorld.PawnBioAndNameGenerator::FillBackstorySlotShuffled(Verse.Pawn pawn,
RimWorld.BackstorySlot slot,
System.Collections.Generic.List`1<RimWorld.BackstoryCategoryFilter>
backstoryCategories, RimWorld.FactionDef factionType,
System.Nullable`1<RimWorld.BackstorySlot> mustBeCompatibleTo)
IL_0046: ldloc.0
IL_0047: brfalse => Label3
IL_004C: ldarg.0
IL_004D: ldc.i4.1
IL_004E: ldarg.3
IL_004F: ldarg.1
IL_0050: ldloca.s 1 (System.Nullable`1[RimWorld.BackstorySlot])
IL_0052: initobj System.Nullable`1[RimWorld.BackstorySlot]
IL_0058: ldloc.1
IL_0059: call static System.Void
RimWorld.PawnBioAndNameGenerator::FillBackstorySlotShuffled(Verse.Pawn pawn,
RimWorld.BackstorySlot slot,
System.Collections.Generic.List`1<RimWorld.BackstoryCategoryFilter>
backstoryCategories, RimWorld.FactionDef factionType,
System.Nullable`1<RimWorld.BackstorySlot> mustBeCompatibleTo)
IL_005E: Label0
IL_005E: Label3
IL_005E: ldarg.0
IL_005F: ldarg.0
IL_0060: ldc.i4.0
IL_0061: ldarg.2
IL_0062: ldarg.s 5
IL_0064: ldarg.s 6
IL_0066: call static Verse.Name
RimWorld.PawnBioAndNameGenerator::GeneratePawnName(Verse.Pawn pawn,
RimWorld.NameStyle style, System.String forcedLastName, System.Boolean forceNoNick,
RimWorld.XenotypeDef xenotype)
IL_006B: callvirt System.Void Verse.Pawn::set_Name(Verse.Name value)
IL_0070: // end original
IL_0070: ret
DONE

### Patch: static System.Boolean


RimWorld.PawnBioAndNameGenerator::TryGiveSolidBioTo(Verse.Pawn pawn, System.String
requiredLastName,
System.Collections.Generic.List`1<RimWorld.BackstoryCategoryFilter>
backstoryCategories)
### Replacement: static System.Boolean
RimWorld.PawnBioAndNameGenerator::RimWorld.PawnBioAndNameGenerator.TryGiveSolidBioT
o_Patch0(Verse.Pawn pawn, System.String requiredLastName,
System.Collections.Generic.List`1<RimWorld.BackstoryCategoryFilter>
backstoryCategories)
IL_0000: Local var 0: RimWorld.PawnBio
IL_0000: // start original
IL_0000: ldarg.2
IL_0001: ldarg.0
IL_0002: ldfld Verse.PawnKindDef Verse.Pawn::kindDef
IL_0007: ldarg.0
IL_0008: ldfld Verse.Gender Verse.Pawn::gender
IL_000D: ldarg.1
IL_000E: ldloca.s 0 (RimWorld.PawnBio)
IL_0010: call static System.Boolean
RimWorld.PawnBioAndNameGenerator::TryGetRandomUnusedSolidBioFor(System.Collections.
Generic.List`1<RimWorld.BackstoryCategoryFilter> backstoryCategories,
Verse.PawnKindDef kind, Verse.Gender gender, System.String requiredLastName,
RimWorld.PawnBio& result)
IL_0015: brtrue => Label0
IL_001A: ldc.i4.0
IL_001B: br => Label6
IL_0020: Label0
IL_0020: ldloc.0
IL_0021: ldfld Verse.NameTriple RimWorld.PawnBio::name
IL_0026: callvirt System.String Verse.NameTriple::get_First()
IL_002B: ldstr "Tynan"
IL_0030: call static System.Boolean System.String::op_Equality(System.String
a, System.String b)
IL_0035: brfalse => Label1
IL_003A: ldloc.0
IL_003B: ldfld Verse.NameTriple RimWorld.PawnBio::name
IL_0040: callvirt System.String Verse.NameTriple::get_Last()
IL_0045: ldstr "Sylvester"
IL_004A: call static System.Boolean System.String::op_Equality(System.String
a, System.String b)
IL_004F: brfalse => Label2
IL_0054: call static System.Single Verse.Rand::get_Value()
IL_0059: ldc.r4 0.5
IL_005E: bge.un => Label3
IL_0063: ldarg.2
IL_0064: ldarg.0
IL_0065: ldfld Verse.PawnKindDef Verse.Pawn::kindDef
IL_006A: ldarg.0
IL_006B: ldfld Verse.Gender Verse.Pawn::gender
IL_0070: ldarg.1
IL_0071: ldloca.s 0 (RimWorld.PawnBio)
IL_0073: call static System.Boolean
RimWorld.PawnBioAndNameGenerator::TryGetRandomUnusedSolidBioFor(System.Collections.
Generic.List`1<RimWorld.BackstoryCategoryFilter> backstoryCategories,
Verse.PawnKindDef kind, Verse.Gender gender, System.String requiredLastName,
RimWorld.PawnBio& result)
IL_0078: brtrue => Label4
IL_007D: ldc.i4.0
IL_007E: br => Label7
IL_0083: Label1
IL_0083: Label2
IL_0083: Label3
IL_0083: Label4
IL_0083: ldarg.0
IL_0084: ldloc.0
IL_0085: ldfld Verse.NameTriple RimWorld.PawnBio::name
IL_008A: callvirt System.Void Verse.Pawn::set_Name(Verse.Name value)
IL_008F: ldarg.0
IL_0090: ldfld RimWorld.Pawn_StoryTracker Verse.Pawn::story
IL_0095: ldloc.0
IL_0096: ldfld RimWorld.BackstoryDef RimWorld.PawnBio::childhood
IL_009B: callvirt System.Void
RimWorld.Pawn_StoryTracker::set_Childhood(RimWorld.BackstoryDef value)
IL_00A0: ldarg.0
IL_00A1: ldfld Verse.Pawn_AgeTracker Verse.Pawn::ageTracker
IL_00A6: callvirt System.Single
Verse.Pawn_AgeTracker::get_AgeBiologicalYearsFloat()
IL_00AB: ldarg.0
IL_00AC: ldc.r4 20
IL_00B1: call static System.Single
AlienRace.HarmonyPatches::GetMinAgeForAdulthood(Verse.Pawn pawn, System.Single
value)
IL_00B6: blt.un => Label5
IL_00BB: ldarg.0
IL_00BC: ldfld RimWorld.Pawn_StoryTracker Verse.Pawn::story
IL_00C1: ldloc.0
IL_00C2: ldfld RimWorld.BackstoryDef RimWorld.PawnBio::adulthood
IL_00C7: callvirt System.Void
RimWorld.Pawn_StoryTracker::set_Adulthood(RimWorld.BackstoryDef value)
IL_00CC: Label5
IL_00CC: ldc.i4.1
IL_00CD: // end original
IL_00CD: Label6
IL_00CD: Label7
IL_00CD: ret
DONE

### Patch: System.Void RimWorld.CompRottable::StageChanged()


### Replacement: static System.Void
RimWorld.CompRottable::RimWorld.CompRottable.StageChanged_Patch1(RimWorld.CompRotta
ble this)
IL_0000: Local var 0: Verse.Corpse
IL_0000: Local var 1: System.Boolean
IL_0000: ldc.i4 0
IL_0005: stloc 1 (System.Boolean)
IL_0009: ldc.i4.1
IL_000A: stloc 1 (System.Boolean)
IL_000E: ldloc 1 (System.Boolean)
IL_0012: brfalse => Label1
IL_0017: ldarg.0
IL_0018: ldfld Verse.ThingWithComps Verse.ThingComp::parent
IL_001D: call static System.Void
AlienRace.HarmonyPatches::RottableCompStageChangedPostfix(Verse.ThingWithComps
___parent)
IL_0022: Label1
IL_0022: nop
IL_0023: ldloc 1 (System.Boolean)
IL_0027: brfalse => Label0
IL_002C: // start original
IL_002C: ldarg.0
IL_002D: ldfld Verse.ThingWithComps Verse.ThingComp::parent
IL_0032: isinst Verse.Corpse
IL_0037: stloc.0
IL_0038: ldloc.0
IL_0039: brfalse => Label2
IL_003E: ldloc.0
IL_003F: callvirt System.Void Verse.Corpse::RotStageChanged()
IL_0044: // end original
IL_0044: Label2
IL_0044: Label0
IL_0044: ret
DONE

### Patch: System.Collections.Generic.List`1<RimWorld.WoundAnchor>


RimWorld.PawnWoundDrawer::<WriteCache>g__FindAnchors|7_1(Verse.BodyPartRecord
curPart, RimWorld.<>c__DisplayClass7_0& )
### Replacement: static System.Collections.Generic.List`1<RimWorld.WoundAnchor>
RimWorld.PawnWoundDrawer::RimWorld.PawnWoundDrawer.<WriteCache>g__FindAnchors|
7_1_Patch1(RimWorld.PawnWoundDrawer this, Verse.BodyPartRecord curPart,
RimWorld.<>c__DisplayClass7_0& )
IL_0000: Local var 0: System.Int32
IL_0000: Local var 1:
System.Collections.Generic.List`1/Enumerator<RimWorld.BodyTypeDef/WoundAnchor>
IL_0000: Local var 2: RimWorld.BodyTypeDef/WoundAnchor
IL_0000: Local var 3: RimWorld.BodyTypeDef/WoundAnchor
IL_0000: Local var 4:
System.Collections.Generic.List`1<RimWorld.BodyTypeDef/WoundAnchor>
IL_0000: ldnull
IL_0001: stloc 4
(System.Collections.Generic.List`1[RimWorld.BodyTypeDef+WoundAnchor])
IL_0005: // start original
IL_0005: ldsfld System.Collections.Generic.List`1<RimWorld.WoundAnchor>
RimWorld.PawnWoundDrawer::tmpAnchors
IL_000A: callvirt virtual System.Void
System.Collections.Generic.List`1<RimWorld.WoundAnchor>::Clear()
IL_000F: ldarg.0
IL_0010: ldfld Verse.Pawn RimWorld.PawnOverlayDrawer::pawn
IL_0015: ldfld RimWorld.Pawn_StoryTracker Verse.Pawn::story
IL_001A: brfalse => Label0
IL_001F: ldarg.0
IL_0020: ldfld Verse.Pawn RimWorld.PawnOverlayDrawer::pawn
IL_0025: ldfld RimWorld.Pawn_StoryTracker Verse.Pawn::story
IL_002A: ldfld RimWorld.BodyTypeDef RimWorld.Pawn_StoryTracker::bodyType
IL_002F: brfalse => Label1
IL_0034: ldarg.0
IL_0035: ldfld Verse.Pawn RimWorld.PawnOverlayDrawer::pawn
IL_003A: ldfld RimWorld.Pawn_StoryTracker Verse.Pawn::story
IL_003F: ldfld RimWorld.BodyTypeDef RimWorld.Pawn_StoryTracker::bodyType
IL_0044: ldfld System.Collections.Generic.List`1<RimWorld.WoundAnchor>
RimWorld.BodyTypeDef::woundAnchors
IL_0049: call static System.Boolean
Verse.GenList::NullOrEmpty(System.Collections.Generic.IList`1<RimWorld.WoundAnchor>
list)
IL_004E: brfalse => Label2
IL_0053: Label0
IL_0053: Label1
IL_0053: ldsfld System.Collections.Generic.List`1<RimWorld.WoundAnchor>
RimWorld.PawnWoundDrawer::tmpAnchors
IL_0058: br => Label17
IL_005D: Label2
IL_005D: ldc.i4.0
IL_005E: stloc.0
IL_005F: br => Label3
IL_0064: Label15
IL_0064: ldarg.1
IL_0065: ldfld System.String Verse.BodyPartRecord::woundAnchorTag
IL_006A: brfalse => Label4
IL_006F: ldarg.0
IL_0070: ldfld Verse.Pawn RimWorld.PawnOverlayDrawer::pawn
IL_0075: ldfld RimWorld.Pawn_StoryTracker Verse.Pawn::story
IL_007A: ldfld RimWorld.BodyTypeDef RimWorld.Pawn_StoryTracker::bodyType
IL_007F: ldfld System.Collections.Generic.List`1<RimWorld.WoundAnchor>
RimWorld.BodyTypeDef::woundAnchors
IL_0084: callvirt System.Collections.Generic.Enumerator<RimWorld.WoundAnchor>
System.Collections.Generic.List`1<RimWorld.WoundAnchor>::GetEnumerator()
IL_0089: stloc.1
.try
{
IL_008A: br => Label5
IL_008F: Label7
IL_008F: ldloca.s 1
(System.Collections.Generic.List`1+Enumerator[RimWorld.BodyTypeDef+WoundAnchor])
IL_0091: call virtual RimWorld.WoundAnchor
System.Collections.Generic.Enumerator<RimWorld.WoundAnchor>::get_Current()
IL_0096: stloc.2
IL_0097: ldloc.2
IL_0098: ldfld System.String RimWorld.WoundAnchor::tag
IL_009D: ldarg.1
IL_009E: ldfld System.String Verse.BodyPartRecord::woundAnchorTag
IL_00A3: call static System.Boolean
System.String::op_Equality(System.String a, System.String b)
IL_00A8: brfalse => Label6
IL_00AD: ldsfld System.Collections.Generic.List`1<RimWorld.WoundAnchor>
RimWorld.PawnWoundDrawer::tmpAnchors
IL_00B2: ldloc.2
IL_00B3: callvirt virtual System.Void
System.Collections.Generic.List`1<RimWorld.WoundAnchor>::Add(RimWorld.WoundAnchor
item)
IL_00B8: Label5
IL_00B8: Label6
IL_00B8: ldloca.s 1
(System.Collections.Generic.List`1+Enumerator[RimWorld.BodyTypeDef+WoundAnchor])
IL_00BA: call virtual System.Boolean
System.Collections.Generic.Enumerator<RimWorld.WoundAnchor>::MoveNext()
IL_00BF: brtrue => Label7
IL_00C4: leave => Label8
IL_00C9: leave => (autogenerated)
} // end try
.finally
{
IL_00CE: ldloca.s 1
(System.Collections.Generic.List`1+Enumerator[RimWorld.BodyTypeDef+WoundAnchor])
IL_00D0: constrained.
System.Collections.Generic.List`1+Enumerator[RimWorld.BodyTypeDef+WoundAnchor]
IL_00D6: callvirt abstract virtual System.Void
System.IDisposable::Dispose()
IL_00DB: endfinally
IL_00DC: leave => (autogenerated)
} // end handler
IL_00DD: Label4
IL_00DD: ldarg.0
IL_00DE: ldfld Verse.Pawn RimWorld.PawnOverlayDrawer::pawn
IL_00E3: ldfld RimWorld.Pawn_StoryTracker Verse.Pawn::story
IL_00E8: ldfld RimWorld.BodyTypeDef RimWorld.Pawn_StoryTracker::bodyType
IL_00ED: ldfld System.Collections.Generic.List`1<RimWorld.WoundAnchor>
RimWorld.BodyTypeDef::woundAnchors
IL_00F2: callvirt System.Collections.Generic.Enumerator<RimWorld.WoundAnchor>
System.Collections.Generic.List`1<RimWorld.WoundAnchor>::GetEnumerator()
IL_00F7: stloc.1
.try
{
IL_00F8: br => Label9
IL_00FD: Label11
IL_00FD: ldloca.s 1
(System.Collections.Generic.List`1+Enumerator[RimWorld.BodyTypeDef+WoundAnchor])
IL_00FF: call virtual RimWorld.WoundAnchor
System.Collections.Generic.Enumerator<RimWorld.WoundAnchor>::get_Current()
IL_0104: stloc.3
IL_0105: ldarg.1
IL_0106: ldloc.3
IL_0107: ldfld Verse.BodyPartGroupDef RimWorld.WoundAnchor::group
IL_010C: callvirt System.Boolean
Verse.BodyPartRecord::IsInGroup(Verse.BodyPartGroupDef group)
IL_0111: brfalse => Label10
IL_0116: ldsfld System.Collections.Generic.List`1<RimWorld.WoundAnchor>
RimWorld.PawnWoundDrawer::tmpAnchors
IL_011B: ldloc.3
IL_011C: callvirt virtual System.Void
System.Collections.Generic.List`1<RimWorld.WoundAnchor>::Add(RimWorld.WoundAnchor
item)
IL_0121: Label9
IL_0121: Label10
IL_0121: ldloca.s 1
(System.Collections.Generic.List`1+Enumerator[RimWorld.BodyTypeDef+WoundAnchor])
IL_0123: call virtual System.Boolean
System.Collections.Generic.Enumerator<RimWorld.WoundAnchor>::MoveNext()
IL_0128: brtrue => Label11
IL_012D: leave => Label12
IL_0132: leave => (autogenerated)
} // end try
.finally
{
IL_0137: ldloca.s 1
(System.Collections.Generic.List`1+Enumerator[RimWorld.BodyTypeDef+WoundAnchor])
IL_0139: constrained.
System.Collections.Generic.List`1+Enumerator[RimWorld.BodyTypeDef+WoundAnchor]
IL_013F: callvirt abstract virtual System.Void
System.IDisposable::Dispose()
IL_0144: endfinally
IL_0145: leave => (autogenerated)
} // end handler
IL_0146: Label8
IL_0146: Label12
IL_0146: ldarg.1
IL_0147: ldfld Verse.BodyPartRecord Verse.BodyPartRecord::parent
IL_014C: starg.s 1
IL_014E: ldloc.0
IL_014F: ldc.i4.1
IL_0150: add
IL_0151: stloc.0
IL_0152: Label3
IL_0152: ldsfld System.Collections.Generic.List`1<RimWorld.WoundAnchor>
RimWorld.PawnWoundDrawer::tmpAnchors
IL_0157: callvirt virtual System.Int32
System.Collections.Generic.List`1<RimWorld.WoundAnchor>::get_Count()
IL_015C: brtrue => Label13
IL_0161: ldarg.1
IL_0162: brfalse => Label14
IL_0167: ldloc.0
IL_0168: ldc.i4.s 100
IL_016A: blt => Label15
IL_016F: Label13
IL_016F: Label14
IL_016F: ldloc.0
IL_0170: ldc.i4.s 100
IL_0172: bne.un => Label16
IL_0177: ldstr "PawnWoundDrawer.RenderOverBody.FindAnchors while() loop ran
into iteration limit! This is never supposed to happen! Is there a cyclic body part
parent reference?"
IL_017C: call static System.Void Verse.Log::Error(System.String text)
IL_0181: Label16
IL_0181: ldsfld System.Collections.Generic.List`1<RimWorld.WoundAnchor>
RimWorld.PawnWoundDrawer::tmpAnchors
IL_0186: // end original
IL_0186: Label17
IL_0186: stloc 4
(System.Collections.Generic.List`1[RimWorld.BodyTypeDef+WoundAnchor])
IL_018A: ldloc 4
(System.Collections.Generic.List`1[RimWorld.BodyTypeDef+WoundAnchor])
IL_018E: ldarg.0
IL_018F: ldfld Verse.Pawn RimWorld.PawnOverlayDrawer::pawn
IL_0194: call static System.Collections.Generic.List`1<RimWorld.WoundAnchor>
AlienRace.HarmonyPatches::FindAnchorsPostfix(System.Collections.Generic.List`1<RimW
orld.WoundAnchor> __result, Verse.Pawn ___pawn)
IL_0199: ret
DONE

### Patch: System.Void RimWorld.PawnWoundDrawer::<WriteCache>g__CalcAnchorData|


7_3(RimWorld.WoundAnchor anchor, UnityEngine.Vector3& anchorOffset, System.Single&
range, RimWorld.<>c__DisplayClass7_0& )
### Replacement: static System.Void
RimWorld.PawnWoundDrawer::RimWorld.PawnWoundDrawer.<WriteCache>g__CalcAnchorData|
7_3_Patch1(RimWorld.PawnWoundDrawer this, RimWorld.WoundAnchor anchor,
UnityEngine.Vector3& anchorOffset, System.Single& range,
RimWorld.<>c__DisplayClass7_0& )
IL_0000: Local var 0: System.Nullable`1<Verse.Rot4>
IL_0000: Local var 1: Verse.Rot4
IL_0000: Local var 2: System.Nullable`1<UnityEngine.Vector3>
IL_0000: // start original
IL_0000: ldarg.2
IL_0001: ldarg.1
IL_0002: ldfld UnityEngine.Vector3 RimWorld.WoundAnchor::offset
IL_0007: stobj UnityEngine.Vector3
IL_000C: ldarg.1
IL_000D: ldfld System.Nullable`1<Verse.Rot4> RimWorld.WoundAnchor::rotation
IL_0012: stloc.0
IL_0013: ldarg.s 4
IL_0015: ldflda Verse.Rot4 RimWorld.<>c__DisplayClass7_0::pawnRot
IL_001A: call Verse.Rot4 Verse.Rot4::get_Opposite()
IL_001F: stloc.1
IL_0020: ldloca.s 0 (System.Nullable`1[Verse.Rot4])
IL_0022: call System.Boolean System.Nullable`1<Verse.Rot4>::get_HasValue()
IL_0027: brtrue => Label0
IL_002C: ldc.i4.0
IL_002D: br => Label1
IL_0032: Label0
IL_0032: ldloca.s 0 (System.Nullable`1[Verse.Rot4])
IL_0034: call System.Boolean System.Nullable`1<Verse.Rot4>::get_HasValue()
IL_0039: brtrue => Label2
IL_003E: ldc.i4.1
IL_003F: br => Label3
IL_0044: Label2
IL_0044: ldloca.s 0 (System.Nullable`1[Verse.Rot4])
IL_0046: call Verse.Rot4 System.Nullable`1<Verse.Rot4>::GetValueOrDefault()
IL_004B: ldloc.1
IL_004C: call static System.Boolean Verse.Rot4::op_Equality(Verse.Rot4 a,
Verse.Rot4 b)
IL_0051: Label1
IL_0051: Label3
IL_0051: brfalse => Label4
IL_0056: ldarg.2
IL_0057: ldflda System.Single UnityEngine.Vector3::x
IL_005C: dup
IL_005D: ldind.r4
IL_005E: ldc.r4 -1
IL_0063: mul
IL_0064: stind.r4
IL_0065: Label4
IL_0065: ldarg.1
IL_0066: ldfld System.String RimWorld.WoundAnchor::tag
IL_006B: ldstr "LeftEye"
IL_0070: call static System.Boolean System.String::op_Equality(System.String
a, System.String b)
IL_0075: brtrue => Label5
IL_007A: ldarg.1
IL_007B: ldfld System.String RimWorld.WoundAnchor::tag
IL_0080: ldstr "RightEye"
IL_0085: call static System.Boolean System.String::op_Equality(System.String
a, System.String b)
IL_008A: brfalse => Label6
IL_008F: Label5
IL_008F: ldarg.s 4
IL_0091: ldflda Verse.Rot4 RimWorld.<>c__DisplayClass7_0::pawnRot
IL_0096: call System.Boolean Verse.Rot4::get_IsHorizontal()
IL_009B: brfalse => Label7
IL_00A0: ldarg.0
IL_00A1: ldfld Verse.Pawn RimWorld.PawnOverlayDrawer::pawn
IL_00A6: ldfld RimWorld.Pawn_StoryTracker Verse.Pawn::story
IL_00AB: ldfld Verse.HeadTypeDef RimWorld.Pawn_StoryTracker::headType
IL_00B0: ldfld System.Nullable`1<UnityEngine.Vector3>
Verse.HeadTypeDef::eyeOffsetEastWest
IL_00B5: stloc.2
IL_00B6: ldloca.s 2 (System.Nullable`1[UnityEngine.Vector3])
IL_00B8: call System.Boolean
System.Nullable`1<UnityEngine.Vector3>::get_HasValue()
IL_00BD: brfalse => Label8
IL_00C2: ldarg.s 4
IL_00C4: ldfld Verse.Rot4 RimWorld.<>c__DisplayClass7_0::pawnRot
IL_00C9: ldsfld Verse.Rot4 Verse.Rot4::East
IL_00CE: call static System.Boolean Verse.Rot4::op_Equality(Verse.Rot4 a,
Verse.Rot4 b)
IL_00D3: brfalse => Label9
IL_00D8: ldarg.2
IL_00D9: ldloca.s 2 (System.Nullable`1[UnityEngine.Vector3])
IL_00DB: call UnityEngine.Vector3
System.Nullable`1<UnityEngine.Vector3>::get_Value()
IL_00E0: stobj UnityEngine.Vector3
IL_00E5: br => Label10
IL_00EA: Label9
IL_00EA: ldarg.2
IL_00EB: ldloca.s 2 (System.Nullable`1[UnityEngine.Vector3])
IL_00ED: call UnityEngine.Vector3
System.Nullable`1<UnityEngine.Vector3>::get_Value()
IL_00F2: ldc.r4 -1
IL_00F7: ldc.r4 1
IL_00FC: ldc.r4 1
IL_0101: newobj System.Void UnityEngine.Vector3::.ctor(System.Single x,
System.Single y, System.Single z)
IL_0106: call static UnityEngine.Vector3
Verse.Vector2Utility::ScaledBy(UnityEngine.Vector3 a, UnityEngine.Vector3 b)
IL_010B: stobj UnityEngine.Vector3
IL_0110: Label6
IL_0110: Label7
IL_0110: Label8
IL_0110: Label10
IL_0110: ldarg.2
IL_0111: ldarg.s 4
IL_0113: ldfld UnityEngine.Quaternion RimWorld.<>c__DisplayClass7_0::quat
IL_0118: ldarg.2
IL_0119: ldobj UnityEngine.Vector3
IL_011E: call static UnityEngine.Vector3
UnityEngine.Quaternion::op_Multiply(UnityEngine.Quaternion rotation,
UnityEngine.Vector3 point)
IL_0123: stobj UnityEngine.Vector3
IL_0128: ldarg.3
IL_0129: ldarg.1
IL_012A: ldfld System.Single RimWorld.WoundAnchor::range
IL_012F: stind.r4
IL_0130: // end original
IL_0130: ldarg.0
IL_0131: ldfld Verse.Pawn RimWorld.PawnOverlayDrawer::pawn
IL_0136: ldarg 1
IL_013A: ldarg 2
IL_013E: call static System.Void
AlienRace.HarmonyPatches::CalcAnchorDataPostfix(Verse.Pawn ___pawn,
RimWorld.WoundAnchor anchor, UnityEngine.Vector3& anchorOffset)
IL_0143: ret
DONE

### Patch: virtual System.Void


RimWorld.PawnWoundDrawer::WriteCache(RimWorld.CacheKey key,
System.Collections.Generic.List`1<RimWorld.DrawCall> writeTarget)
### Replacement: static System.Void
RimWorld.PawnWoundDrawer::RimWorld.PawnWoundDrawer.WriteCache_Patch0(RimWorld.PawnW
oundDrawer this, RimWorld.CacheKey key,
System.Collections.Generic.List`1<RimWorld.DrawCall> writeTarget)
IL_0000: Local var 0: RimWorld.PawnWoundDrawer/<>c__DisplayClass7_0
IL_0000: Local var 1: UnityEngine.Vector3
IL_0000: Local var 2: RimWorld.PawnOverlayDrawer/OverlayLayer
IL_0000: Local var 3: System.Collections.Generic.List`1<Verse.Hediff_MissingPart>
IL_0000: Local var 4:
System.Collections.Generic.List`1<RimWorld.BodyTypeDef/WoundAnchor>
IL_0000: Local var 5:
System.Collections.Generic.List`1/Enumerator<RimWorld.BodyTypeDef/WoundAnchor>
IL_0000: Local var 6: RimWorld.BodyTypeDef/WoundAnchor
IL_0000: Local var 7: UnityEngine.Material
IL_0000: Local var 8: UnityEngine.Vector3
IL_0000: Local var 9: System.Single
IL_0000: Local var 10: RimWorld.PawnOverlayDrawer/DrawCall
IL_0000: Local var 11: UnityEngine.Vector3
IL_0000: Local var 12: System.Single
IL_0000: Local var 13: RimWorld.BodyTypeDef/WoundAnchor
IL_0000: Local var 14: UnityEngine.Material
IL_0000: Local var 15: UnityEngine.Vector3
IL_0000: Local var 16: System.Single
IL_0000: Local var 17: UnityEngine.Vector3
IL_0000: Local var 18: System.Single
IL_0000: Local var 19: System.Int32
IL_0000: Local var 20: Verse.Hediff
IL_0000: Local var 21: System.Single
IL_0000: Local var 22: UnityEngine.Vector3
IL_0000: Local var 23: System.String
IL_0000: Local var 24: System.Boolean
IL_0000: Local var 25:
System.Collections.Generic.List`1/Enumerator<RimWorld.Apparel>
IL_0000: Local var 26: RimWorld.Apparel
IL_0000: Local var 27:
System.Collections.Generic.List`1<RimWorld.BodyTypeDef/WoundAnchor>
IL_0000: Local var 28: RimWorld.BodyTypeDef/WoundAnchor
IL_0000: Local var 29: System.Int32
IL_0000: Local var 30: System.Nullable`1<System.Single>
IL_0000: Local var 31: RimWorld.FleshTypeDef/ResolvedWound
IL_0000: Local var 32: Verse.Hediff_Injury
IL_0000: Local var 33: UnityEngine.Vector3
IL_0000: Local var 34: UnityEngine.Vector3
IL_0000: Local var 35: UnityEngine.Vector3
IL_0000: Local var 36: UnityEngine.Vector3
IL_0000: Local var 37: System.Nullable`1<UnityEngine.Vector4>
IL_0000: Local var 38: System.Nullable`1<UnityEngine.Vector4>
IL_0000: Local var 39: UnityEngine.Material
IL_0000: Local var 40: System.Boolean
IL_0000: Local var 41: UnityEngine.Mesh
IL_0000: Local var 42: UnityEngine.Matrix4x4
IL_0000: Local var 43: Verse.MaterialRequest
IL_0000: Local var 44: System.Boolean
IL_0000: Local var 45: UnityEngine.Vector3
IL_0000: Local var 46: UnityEngine.Vector3
IL_0000: Local var 47: UnityEngine.Vector3
IL_0000: Local var 48: UnityEngine.Vector3
IL_0000: Local var 49: UnityEngine.Vector3
IL_0000: Local var 50: UnityEngine.Vector3
IL_0000: Local var 51: UnityEngine.Bounds
IL_0000: // start original
IL_0000: ldloca.s 0 (RimWorld.PawnWoundDrawer+<>c__DisplayClass7_0)
IL_0002: ldarg.0
IL_0003: stfld RimWorld.PawnWoundDrawer
RimWorld.<>c__DisplayClass7_0::<>4__this
IL_0008: ldloca.s 0 (RimWorld.PawnWoundDrawer+<>c__DisplayClass7_0)
IL_000A: ldarg.1
IL_000B: ldfld Verse.Rot4 RimWorld.CacheKey::pawnRot
IL_0010: stfld Verse.Rot4 RimWorld.<>c__DisplayClass7_0::pawnRot
IL_0015: ldloca.s 0 (RimWorld.PawnWoundDrawer+<>c__DisplayClass7_0)
IL_0017: ldarg.1
IL_0018: ldfld UnityEngine.Quaternion RimWorld.CacheKey::quat
IL_001D: stfld UnityEngine.Quaternion RimWorld.<>c__DisplayClass7_0::quat
IL_0022: ldloca.s 0 (RimWorld.PawnWoundDrawer+<>c__DisplayClass7_0)
IL_0024: ldarg.1
IL_0025: ldfld UnityEngine.Mesh RimWorld.CacheKey::bodyMesh
IL_002A: stfld UnityEngine.Mesh RimWorld.<>c__DisplayClass7_0::bodyMesh
IL_002F: ldarg.1
IL_0030: ldfld UnityEngine.Vector3 RimWorld.CacheKey::drawLoc
IL_0035: stloc.1
IL_0036: ldarg.1
IL_0037: ldfld RimWorld.OverlayLayer RimWorld.CacheKey::layer
IL_003C: stloc.2
IL_003D: ldarg.0
IL_003E: ldfld Verse.BodyPartRecord RimWorld.PawnWoundDrawer::debugDrawPart
IL_0043: brfalse => Label0
IL_0048: ldarg.0
IL_0049: ldarg.0
IL_004A: ldfld Verse.BodyPartRecord RimWorld.PawnWoundDrawer::debugDrawPart
IL_004F: ldloca.s 0 (RimWorld.PawnWoundDrawer+<>c__DisplayClass7_0)
IL_0051: call System.Collections.Generic.List`1<RimWorld.WoundAnchor>
RimWorld.PawnWoundDrawer::<WriteCache>g__FindAnchors|7_1(Verse.BodyPartRecord
curPart, RimWorld.<>c__DisplayClass7_0& )
IL_0056: stloc.s 4
(System.Collections.Generic.List`1[RimWorld.BodyTypeDef+WoundAnchor])
IL_0058: ldloc.s 4
(System.Collections.Generic.List`1[RimWorld.BodyTypeDef+WoundAnchor])
IL_005A: callvirt virtual System.Int32
System.Collections.Generic.List`1<RimWorld.WoundAnchor>::get_Count()
IL_005F: ldc.i4.0
IL_0060: ble => Label1
IL_0065: ldloc.s 4
(System.Collections.Generic.List`1[RimWorld.BodyTypeDef+WoundAnchor])
IL_0067: callvirt System.Collections.Generic.Enumerator<RimWorld.WoundAnchor>
System.Collections.Generic.List`1<RimWorld.WoundAnchor>::GetEnumerator()
IL_006C: stloc.s 5
(System.Collections.Generic.List`1+Enumerator[RimWorld.BodyTypeDef+WoundAnchor])
.try
{
IL_006E: br => Label2
IL_0073: Label5
IL_0073: ldloca.s 5
(System.Collections.Generic.List`1+Enumerator[RimWorld.BodyTypeDef+WoundAnchor])
IL_0075: call virtual RimWorld.WoundAnchor
System.Collections.Generic.Enumerator<RimWorld.WoundAnchor>::get_Current()
IL_007A: stloc.s 6 (RimWorld.BodyTypeDef+WoundAnchor)
IL_007C: ldarg.0
IL_007D: ldloc.s 6 (RimWorld.BodyTypeDef+WoundAnchor)
IL_007F: ldloca.s 0 (RimWorld.PawnWoundDrawer+<>c__DisplayClass7_0)
IL_0081: call System.Boolean
RimWorld.PawnWoundDrawer::<WriteCache>g__AnchorUseable|7_0(RimWorld.WoundAnchor
anchor, RimWorld.<>c__DisplayClass7_0& )
IL_0086: brfalse => Label3
IL_008B: ldsfld UnityEngine.Texture2D Verse.BaseContent::WhiteTex
IL_0090: ldsfld UnityEngine.Shader Verse.ShaderDatabase::SolidColor
IL_0095: ldloc.s 6 (RimWorld.BodyTypeDef+WoundAnchor)
IL_0097: ldfld UnityEngine.Color RimWorld.WoundAnchor::debugColor
IL_009C: newobj System.Void
Verse.MaterialRequest::.ctor(UnityEngine.Texture tex, UnityEngine.Shader shader,
UnityEngine.Color color)
IL_00A1: call static UnityEngine.Material
Verse.MaterialPool::MatFrom(Verse.MaterialRequest req)
IL_00A6: stloc.s 7 (UnityEngine.Material)
IL_00A8: ldarg.0
IL_00A9: ldloc.s 6 (RimWorld.BodyTypeDef+WoundAnchor)
IL_00AB: ldloca.s 8 (UnityEngine.Vector3)
IL_00AD: ldloca.s 9 (System.Single)
IL_00AF: ldloca.s 0 (RimWorld.PawnWoundDrawer+<>c__DisplayClass7_0)
IL_00B1: call System.Void
RimWorld.PawnWoundDrawer::<WriteCache>g__CalcAnchorData|7_3(RimWorld.WoundAnchor
anchor, UnityEngine.Vector3& anchorOffset, System.Single& range,
RimWorld.<>c__DisplayClass7_0& )
IL_00B6: ldloc.s 6 (RimWorld.BodyTypeDef+WoundAnchor)
IL_00B8: ldfld RimWorld.OverlayLayer RimWorld.WoundAnchor::layer
IL_00BD: ldloc.2
IL_00BE: bne.un => Label4
IL_00C3: ldarg.2
IL_00C4: ldloca.s 10 (RimWorld.PawnOverlayDrawer+DrawCall)
IL_00C6: initobj RimWorld.PawnOverlayDrawer+DrawCall
IL_00CC: ldloca.s 10 (RimWorld.PawnOverlayDrawer+DrawCall)
IL_00CE: ldloc.s 7 (UnityEngine.Material)
IL_00D0: stfld UnityEngine.Material RimWorld.DrawCall::overlayMat
IL_00D5: ldloca.s 10 (RimWorld.PawnOverlayDrawer+DrawCall)
IL_00D7: ldloc.1
IL_00D8: ldloc.s 8 (UnityEngine.Vector3)
IL_00DA: call static UnityEngine.Vector3
UnityEngine.Vector3::op_Addition(UnityEngine.Vector3 a, UnityEngine.Vector3 b)
IL_00DF: ldloc.0
IL_00E0: ldfld UnityEngine.Quaternion
RimWorld.<>c__DisplayClass7_0::quat
IL_00E5: call static UnityEngine.Vector3 UnityEngine.Vector3::get_one()
IL_00EA: ldloc.s 9 (System.Single)
IL_00EC: call static UnityEngine.Vector3
UnityEngine.Vector3::op_Multiply(UnityEngine.Vector3 a, System.Single d)
IL_00F1: ldarg.0
IL_00F2: ldfld Verse.Pawn RimWorld.PawnOverlayDrawer::pawn
IL_00F7: ldfld RimWorld.Pawn_StoryTracker Verse.Pawn::story
IL_00FC: ldfld RimWorld.BodyTypeDef RimWorld.Pawn_StoryTracker::bodyType
IL_0101: ldfld System.Single RimWorld.BodyTypeDef::woundScale
IL_0106: call static UnityEngine.Vector3
UnityEngine.Vector3::op_Multiply(UnityEngine.Vector3 a, System.Single d)
IL_010B: call static UnityEngine.Matrix4x4
UnityEngine.Matrix4x4::TRS(UnityEngine.Vector3 pos, UnityEngine.Quaternion q,
UnityEngine.Vector3 s)
IL_0110: stfld UnityEngine.Matrix4x4 RimWorld.DrawCall::TRS
IL_0115: ldloca.s 10 (RimWorld.PawnOverlayDrawer+DrawCall)
IL_0117: ldsfld UnityEngine.Mesh Verse.MeshPool::circle
IL_011C: stfld UnityEngine.Mesh RimWorld.DrawCall::overlayMesh
IL_0121: ldloca.s 10 (RimWorld.PawnOverlayDrawer+DrawCall)
IL_0123: ldc.i4.1
IL_0124: stfld System.Boolean RimWorld.DrawCall::displayOverApparel
IL_0129: ldloca.s 10 (RimWorld.PawnOverlayDrawer+DrawCall)
IL_012B: call static UnityEngine.Vector4
UnityEngine.Vector4::get_zero()
IL_0130: newobj System.Void
System.Nullable`1<UnityEngine.Vector4>::.ctor(UnityEngine.Vector4 value)
IL_0135: stfld System.Nullable`1<UnityEngine.Vector4>
RimWorld.DrawCall::maskTexOffset
IL_013A: ldloca.s 10 (RimWorld.PawnOverlayDrawer+DrawCall)
IL_013C: call static UnityEngine.Vector4 UnityEngine.Vector4::get_one()
IL_0141: newobj System.Void
System.Nullable`1<UnityEngine.Vector4>::.ctor(UnityEngine.Vector4 value)
IL_0146: stfld System.Nullable`1<UnityEngine.Vector4>
RimWorld.DrawCall::maskTexScale
IL_014B: ldloc.s 10 (RimWorld.PawnOverlayDrawer+DrawCall)
IL_014D: callvirt virtual System.Void
System.Collections.Generic.List`1<RimWorld.DrawCall>::Add(RimWorld.DrawCall item)
IL_0152: Label2
IL_0152: Label3
IL_0152: Label4
IL_0152: ldloca.s 5
(System.Collections.Generic.List`1+Enumerator[RimWorld.BodyTypeDef+WoundAnchor])
IL_0154: call virtual System.Boolean
System.Collections.Generic.Enumerator<RimWorld.WoundAnchor>::MoveNext()
IL_0159: brtrue => Label5
IL_015E: leave => Label6
IL_0163: leave => (autogenerated)
} // end try
.finally
{
IL_0168: ldloca.s 5
(System.Collections.Generic.List`1+Enumerator[RimWorld.BodyTypeDef+WoundAnchor])
IL_016A: constrained.
System.Collections.Generic.List`1+Enumerator[RimWorld.BodyTypeDef+WoundAnchor]
IL_0170: callvirt abstract virtual System.Void
System.IDisposable::Dispose()
IL_0175: endfinally
IL_0176: leave => (autogenerated)
} // end handler
IL_0177: Label1
IL_0177: ldarg.2
IL_0178: brfalse => Label72
IL_017D: ldarg.0
IL_017E: ldloca.s 11 (UnityEngine.Vector3)
IL_0180: ldloca.s 12 (System.Single)
IL_0182: ldloca.s 0 (RimWorld.PawnWoundDrawer+<>c__DisplayClass7_0)
IL_0184: call System.Void
RimWorld.PawnWoundDrawer::<WriteCache>g__GetDefaultAnchor|7_2(UnityEngine.Vector3&
anchorOffset, System.Single& range, RimWorld.<>c__DisplayClass7_0& )
IL_0189: Label72
IL_0189: ldarg.2
IL_018A: ldloca.s 10 (RimWorld.PawnOverlayDrawer+DrawCall)
IL_018C: initobj RimWorld.PawnOverlayDrawer+DrawCall
IL_0192: ldloca.s 10 (RimWorld.PawnOverlayDrawer+DrawCall)
IL_0194: ldsfld UnityEngine.Material Verse.BaseContent::BadMat
IL_0199: stfld UnityEngine.Material RimWorld.DrawCall::overlayMat
IL_019E: ldloca.s 10 (RimWorld.PawnOverlayDrawer+DrawCall)
IL_01A0: ldloc.1
IL_01A1: ldloc.s 11 (UnityEngine.Vector3)
IL_01A3: call static UnityEngine.Vector3
UnityEngine.Vector3::op_Addition(UnityEngine.Vector3 a, UnityEngine.Vector3 b)
IL_01A8: ldloc.0
IL_01A9: ldfld UnityEngine.Quaternion RimWorld.<>c__DisplayClass7_0::quat
IL_01AE: call static UnityEngine.Vector3 UnityEngine.Vector3::get_one()
IL_01B3: ldloc.s 12 (System.Single)
IL_01B5: call static UnityEngine.Vector3
UnityEngine.Vector3::op_Multiply(UnityEngine.Vector3 a, System.Single d)
IL_01BA: call static UnityEngine.Matrix4x4
UnityEngine.Matrix4x4::TRS(UnityEngine.Vector3 pos, UnityEngine.Quaternion q,
UnityEngine.Vector3 s)
IL_01BF: stfld UnityEngine.Matrix4x4 RimWorld.DrawCall::TRS
IL_01C4: ldloca.s 10 (RimWorld.PawnOverlayDrawer+DrawCall)
IL_01C6: ldsfld UnityEngine.Mesh Verse.MeshPool::circle
IL_01CB: stfld UnityEngine.Mesh RimWorld.DrawCall::overlayMesh
IL_01D0: ldloca.s 10 (RimWorld.PawnOverlayDrawer+DrawCall)
IL_01D2: ldc.i4.1
IL_01D3: stfld System.Boolean RimWorld.DrawCall::displayOverApparel
IL_01D8: ldloca.s 10 (RimWorld.PawnOverlayDrawer+DrawCall)
IL_01DA: call static UnityEngine.Vector4 UnityEngine.Vector4::get_zero()
IL_01DF: newobj System.Void
System.Nullable`1<UnityEngine.Vector4>::.ctor(UnityEngine.Vector4 value)
IL_01E4: stfld System.Nullable`1<UnityEngine.Vector4>
RimWorld.DrawCall::maskTexOffset
IL_01E9: ldloca.s 10 (RimWorld.PawnOverlayDrawer+DrawCall)
IL_01EB: call static UnityEngine.Vector4 UnityEngine.Vector4::get_one()
IL_01F0: newobj System.Void
System.Nullable`1<UnityEngine.Vector4>::.ctor(UnityEngine.Vector4 value)
IL_01F5: stfld System.Nullable`1<UnityEngine.Vector4>
RimWorld.DrawCall::maskTexScale
IL_01FA: ldloc.s 10 (RimWorld.PawnOverlayDrawer+DrawCall)
IL_01FC: callvirt virtual System.Void
System.Collections.Generic.List`1<RimWorld.DrawCall>::Add(RimWorld.DrawCall item)
IL_0201: Label6
IL_0201: br => Label77
IL_0206: Label0
IL_0206: ldarg.0
IL_0207: ldfld System.Boolean RimWorld.PawnWoundDrawer::debugDrawAllParts
IL_020C: brfalse => Label7
IL_0211: ldarg.0
IL_0212: ldfld Verse.Pawn RimWorld.PawnOverlayDrawer::pawn
IL_0217: ldfld RimWorld.Pawn_StoryTracker Verse.Pawn::story
IL_021C: brfalse => Label8
IL_0221: ldarg.0
IL_0222: ldfld Verse.Pawn RimWorld.PawnOverlayDrawer::pawn
IL_0227: ldfld RimWorld.Pawn_StoryTracker Verse.Pawn::story
IL_022C: ldfld RimWorld.BodyTypeDef RimWorld.Pawn_StoryTracker::bodyType
IL_0231: brfalse => Label9
IL_0236: ldarg.0
IL_0237: ldfld Verse.Pawn RimWorld.PawnOverlayDrawer::pawn
IL_023C: ldfld RimWorld.Pawn_StoryTracker Verse.Pawn::story
IL_0241: ldfld RimWorld.BodyTypeDef RimWorld.Pawn_StoryTracker::bodyType
IL_0246: ldfld System.Collections.Generic.List`1<RimWorld.WoundAnchor>
RimWorld.BodyTypeDef::woundAnchors
IL_024B: brfalse => Label10
IL_0250: ldarg.0
IL_0251: ldfld Verse.Pawn RimWorld.PawnOverlayDrawer::pawn
IL_0256: ldfld RimWorld.Pawn_StoryTracker Verse.Pawn::story
IL_025B: ldfld RimWorld.BodyTypeDef RimWorld.Pawn_StoryTracker::bodyType
IL_0260: ldfld System.Collections.Generic.List`1<RimWorld.WoundAnchor>
RimWorld.BodyTypeDef::woundAnchors
IL_0265: callvirt System.Collections.Generic.Enumerator<RimWorld.WoundAnchor>
System.Collections.Generic.List`1<RimWorld.WoundAnchor>::GetEnumerator()
IL_026A: stloc.s 5
(System.Collections.Generic.List`1+Enumerator[RimWorld.BodyTypeDef+WoundAnchor])
.try
{
IL_026C: br => Label11
IL_0271: Label14
IL_0271: ldloca.s 5
(System.Collections.Generic.List`1+Enumerator[RimWorld.BodyTypeDef+WoundAnchor])
IL_0273: call virtual RimWorld.WoundAnchor
System.Collections.Generic.Enumerator<RimWorld.WoundAnchor>::get_Current()
IL_0278: stloc.s 13 (RimWorld.BodyTypeDef+WoundAnchor)
IL_027A: ldarg.0
IL_027B: ldloc.s 13 (RimWorld.BodyTypeDef+WoundAnchor)
IL_027D: ldloca.s 0 (RimWorld.PawnWoundDrawer+<>c__DisplayClass7_0)
IL_027F: call System.Boolean
RimWorld.PawnWoundDrawer::<WriteCache>g__AnchorUseable|7_0(RimWorld.WoundAnchor
anchor, RimWorld.<>c__DisplayClass7_0& )
IL_0284: brfalse => Label12
IL_0289: ldsfld UnityEngine.Texture2D Verse.BaseContent::WhiteTex
IL_028E: ldsfld UnityEngine.Shader Verse.ShaderDatabase::SolidColor
IL_0293: ldloc.s 13 (RimWorld.BodyTypeDef+WoundAnchor)
IL_0295: ldfld UnityEngine.Color RimWorld.WoundAnchor::debugColor
IL_029A: newobj System.Void
Verse.MaterialRequest::.ctor(UnityEngine.Texture tex, UnityEngine.Shader shader,
UnityEngine.Color color)
IL_029F: call static UnityEngine.Material
Verse.MaterialPool::MatFrom(Verse.MaterialRequest req)
IL_02A4: stloc.s 14 (UnityEngine.Material)
IL_02A6: ldarg.0
IL_02A7: ldloc.s 13 (RimWorld.BodyTypeDef+WoundAnchor)
IL_02A9: ldloca.s 15 (UnityEngine.Vector3)
IL_02AB: ldloca.s 16 (System.Single)
IL_02AD: ldloca.s 0 (RimWorld.PawnWoundDrawer+<>c__DisplayClass7_0)
IL_02AF: call System.Void
RimWorld.PawnWoundDrawer::<WriteCache>g__CalcAnchorData|7_3(RimWorld.WoundAnchor
anchor, UnityEngine.Vector3& anchorOffset, System.Single& range,
RimWorld.<>c__DisplayClass7_0& )
IL_02B4: ldloc.s 13 (RimWorld.BodyTypeDef+WoundAnchor)
IL_02B6: ldfld RimWorld.OverlayLayer RimWorld.WoundAnchor::layer
IL_02BB: ldloc.2
IL_02BC: bne.un => Label13
IL_02C1: ldarg.2
IL_02C2: ldloca.s 10 (RimWorld.PawnOverlayDrawer+DrawCall)
IL_02C4: initobj RimWorld.PawnOverlayDrawer+DrawCall
IL_02CA: ldloca.s 10 (RimWorld.PawnOverlayDrawer+DrawCall)
IL_02CC: ldloc.s 14 (UnityEngine.Material)
IL_02CE: stfld UnityEngine.Material RimWorld.DrawCall::overlayMat
IL_02D3: ldloca.s 10 (RimWorld.PawnOverlayDrawer+DrawCall)
IL_02D5: ldloc.1
IL_02D6: ldloc.s 15 (UnityEngine.Vector3)
IL_02D8: call static UnityEngine.Vector3
UnityEngine.Vector3::op_Addition(UnityEngine.Vector3 a, UnityEngine.Vector3 b)
IL_02DD: ldloc.0
IL_02DE: ldfld UnityEngine.Quaternion
RimWorld.<>c__DisplayClass7_0::quat
IL_02E3: call static UnityEngine.Vector3 UnityEngine.Vector3::get_one()
IL_02E8: ldloc.s 16 (System.Single)
IL_02EA: call static UnityEngine.Vector3
UnityEngine.Vector3::op_Multiply(UnityEngine.Vector3 a, System.Single d)
IL_02EF: call static UnityEngine.Matrix4x4
UnityEngine.Matrix4x4::TRS(UnityEngine.Vector3 pos, UnityEngine.Quaternion q,
UnityEngine.Vector3 s)
IL_02F4: stfld UnityEngine.Matrix4x4 RimWorld.DrawCall::TRS
IL_02F9: ldloca.s 10 (RimWorld.PawnOverlayDrawer+DrawCall)
IL_02FB: ldsfld UnityEngine.Mesh Verse.MeshPool::circle
IL_0300: stfld UnityEngine.Mesh RimWorld.DrawCall::overlayMesh
IL_0305: ldloca.s 10 (RimWorld.PawnOverlayDrawer+DrawCall)
IL_0307: ldc.i4.1
IL_0308: stfld System.Boolean RimWorld.DrawCall::displayOverApparel
IL_030D: ldloca.s 10 (RimWorld.PawnOverlayDrawer+DrawCall)
IL_030F: call static UnityEngine.Vector4
UnityEngine.Vector4::get_zero()
IL_0314: newobj System.Void
System.Nullable`1<UnityEngine.Vector4>::.ctor(UnityEngine.Vector4 value)
IL_0319: stfld System.Nullable`1<UnityEngine.Vector4>
RimWorld.DrawCall::maskTexOffset
IL_031E: ldloca.s 10 (RimWorld.PawnOverlayDrawer+DrawCall)
IL_0320: call static UnityEngine.Vector4 UnityEngine.Vector4::get_one()
IL_0325: newobj System.Void
System.Nullable`1<UnityEngine.Vector4>::.ctor(UnityEngine.Vector4 value)
IL_032A: stfld System.Nullable`1<UnityEngine.Vector4>
RimWorld.DrawCall::maskTexScale
IL_032F: ldloc.s 10 (RimWorld.PawnOverlayDrawer+DrawCall)
IL_0331: callvirt virtual System.Void
System.Collections.Generic.List`1<RimWorld.DrawCall>::Add(RimWorld.DrawCall item)
IL_0336: Label11
IL_0336: Label12
IL_0336: Label13
IL_0336: ldloca.s 5
(System.Collections.Generic.List`1+Enumerator[RimWorld.BodyTypeDef+WoundAnchor])
IL_0338: call virtual System.Boolean
System.Collections.Generic.Enumerator<RimWorld.WoundAnchor>::MoveNext()
IL_033D: brtrue => Label14
IL_0342: leave => Label15
IL_0347: leave => (autogenerated)
} // end try
.finally
{
IL_034C: ldloca.s 5
(System.Collections.Generic.List`1+Enumerator[RimWorld.BodyTypeDef+WoundAnchor])
IL_034E: constrained.
System.Collections.Generic.List`1+Enumerator[RimWorld.BodyTypeDef+WoundAnchor]
IL_0354: callvirt abstract virtual System.Void
System.IDisposable::Dispose()
IL_0359: endfinally
IL_035A: leave => (autogenerated)
} // end handler
IL_035B: Label8
IL_035B: Label9
IL_035B: Label10
IL_035B: ldarg.2
IL_035C: brfalse => Label72
IL_0361: ldarg.0
IL_0362: ldloca.s 17 (UnityEngine.Vector3)
IL_0364: ldloca.s 18 (System.Single)
IL_0366: ldloca.s 0 (RimWorld.PawnWoundDrawer+<>c__DisplayClass7_0)
IL_0368: call System.Void
RimWorld.PawnWoundDrawer::<WriteCache>g__GetDefaultAnchor|7_2(UnityEngine.Vector3&
anchorOffset, System.Single& range, RimWorld.<>c__DisplayClass7_0& )
IL_036D: Label72
IL_036D: ldarg.2
IL_036E: ldloca.s 10 (RimWorld.PawnOverlayDrawer+DrawCall)
IL_0370: initobj RimWorld.PawnOverlayDrawer+DrawCall
IL_0376: ldloca.s 10 (RimWorld.PawnOverlayDrawer+DrawCall)
IL_0378: ldsfld UnityEngine.Material Verse.BaseContent::BadMat
IL_037D: stfld UnityEngine.Material RimWorld.DrawCall::overlayMat
IL_0382: ldloca.s 10 (RimWorld.PawnOverlayDrawer+DrawCall)
IL_0384: ldloc.1
IL_0385: ldloc.s 17 (UnityEngine.Vector3)
IL_0387: call static UnityEngine.Vector3
UnityEngine.Vector3::op_Addition(UnityEngine.Vector3 a, UnityEngine.Vector3 b)
IL_038C: ldloc.0
IL_038D: ldfld UnityEngine.Quaternion RimWorld.<>c__DisplayClass7_0::quat
IL_0392: call static UnityEngine.Vector3 UnityEngine.Vector3::get_one()
IL_0397: ldloc.s 18 (System.Single)
IL_0399: call static UnityEngine.Vector3
UnityEngine.Vector3::op_Multiply(UnityEngine.Vector3 a, System.Single d)
IL_039E: call static UnityEngine.Matrix4x4
UnityEngine.Matrix4x4::TRS(UnityEngine.Vector3 pos, UnityEngine.Quaternion q,
UnityEngine.Vector3 s)
IL_03A3: stfld UnityEngine.Matrix4x4 RimWorld.DrawCall::TRS
IL_03A8: ldloca.s 10 (RimWorld.PawnOverlayDrawer+DrawCall)
IL_03AA: ldsfld UnityEngine.Mesh Verse.MeshPool::circle
IL_03AF: stfld UnityEngine.Mesh RimWorld.DrawCall::overlayMesh
IL_03B4: ldloca.s 10 (RimWorld.PawnOverlayDrawer+DrawCall)
IL_03B6: ldc.i4.1
IL_03B7: stfld System.Boolean RimWorld.DrawCall::displayOverApparel
IL_03BC: ldloca.s 10 (RimWorld.PawnOverlayDrawer+DrawCall)
IL_03BE: call static UnityEngine.Vector4 UnityEngine.Vector4::get_zero()
IL_03C3: newobj System.Void
System.Nullable`1<UnityEngine.Vector4>::.ctor(UnityEngine.Vector4 value)
IL_03C8: stfld System.Nullable`1<UnityEngine.Vector4>
RimWorld.DrawCall::maskTexOffset
IL_03CD: ldloca.s 10 (RimWorld.PawnOverlayDrawer+DrawCall)
IL_03CF: call static UnityEngine.Vector4 UnityEngine.Vector4::get_one()
IL_03D4: newobj System.Void
System.Nullable`1<UnityEngine.Vector4>::.ctor(UnityEngine.Vector4 value)
IL_03D9: stfld System.Nullable`1<UnityEngine.Vector4>
RimWorld.DrawCall::maskTexScale
IL_03DE: ldloc.s 10 (RimWorld.PawnOverlayDrawer+DrawCall)
IL_03E0: callvirt virtual System.Void
System.Collections.Generic.List`1<RimWorld.DrawCall>::Add(RimWorld.DrawCall item)
IL_03E5: Label7
IL_03E5: Label15
IL_03E5: ldarg.0
IL_03E6: ldfld Verse.Pawn RimWorld.PawnOverlayDrawer::pawn
IL_03EB: ldfld Verse.Pawn_HealthTracker Verse.Pawn::health
IL_03F0: ldfld Verse.HediffSet Verse.Pawn_HealthTracker::hediffSet
IL_03F5: callvirt System.Collections.Generic.List`1<Verse.Hediff_MissingPart>
Verse.HediffSet::GetMissingPartsCommonAncestors()
IL_03FA: stloc.3
IL_03FB: ldc.i4.0
IL_03FC: stloc.s 19 (System.Int32)
IL_03FE: br => Label16
IL_0403: Label71
IL_0403: ldarg.0
IL_0404: ldfld Verse.Pawn RimWorld.PawnOverlayDrawer::pawn
IL_0409: callvirt Verse.RaceProperties Verse.Pawn::get_RaceProps()
IL_040E: callvirt System.Boolean Verse.RaceProperties::get_Humanlike()
IL_0413: brtrue => Label17
IL_0418: ldarg.2
IL_0419: callvirt virtual System.Int32
System.Collections.Generic.List`1<RimWorld.DrawCall>::get_Count()
IL_041E: ldc.i4.5
IL_041F: bge => Label18
IL_0424: Label17
IL_0424: ldarg.0
IL_0425: ldfld Verse.Pawn RimWorld.PawnOverlayDrawer::pawn
IL_042A: ldfld Verse.Pawn_HealthTracker Verse.Pawn::health
IL_042F: ldfld Verse.HediffSet Verse.Pawn_HealthTracker::hediffSet
IL_0434: ldfld System.Collections.Generic.List`1<Verse.Hediff>
Verse.HediffSet::hediffs
IL_0439: ldloc.s 19 (System.Int32)
IL_043B: callvirt virtual Verse.Hediff
System.Collections.Generic.List`1<Verse.Hediff>::get_Item(System.Int32 index)
IL_0440: stloc.s 20 (Verse.Hediff)
IL_0442: ldloc.s 20 (Verse.Hediff)
IL_0444: callvirt Verse.BodyPartRecord Verse.Hediff::get_Part()
IL_0449: brfalse => Label19
IL_044E: ldloc.s 20 (Verse.Hediff)
IL_0450: callvirt virtual System.Boolean Verse.Hediff::get_Visible()
IL_0455: brfalse => Label20
IL_045A: ldloc.s 20 (Verse.Hediff)
IL_045C: ldfld Verse.HediffDef Verse.Hediff::def
IL_0461: ldfld System.Boolean Verse.HediffDef::displayWound
IL_0466: brfalse => Label21
IL_046B: ldloc.s 20 (Verse.Hediff)
IL_046D: isinst Verse.Hediff_MissingPart
IL_0472: brfalse => Label22
IL_0477: ldloc.3
IL_0478: ldloc.s 20 (Verse.Hediff)
IL_047A: call static System.Boolean
System.Linq.Enumerable::Contains(System.Collections.Generic.IEnumerable`1<Verse.Hed
iff> source, Verse.Hediff value)
IL_047F: brfalse => Label23
IL_0484: Label22
IL_0484: ldloc.s 20 (Verse.Hediff)
IL_0486: isinst Verse.Hediff_AddedPart
IL_048B: brfalse => Label24
IL_0490: ldarg.0
IL_0491: ldfld Verse.Pawn RimWorld.PawnOverlayDrawer::pawn
IL_0496: ldfld RimWorld.Pawn_ApparelTracker Verse.Pawn::apparel
IL_049B: brfalse => Label25
IL_04A0: ldc.i4.0
IL_04A1: stloc.s 24 (System.Boolean)
IL_04A3: ldarg.0
IL_04A4: ldfld Verse.Pawn RimWorld.PawnOverlayDrawer::pawn
IL_04A9: ldfld RimWorld.Pawn_ApparelTracker Verse.Pawn::apparel
IL_04AE: callvirt System.Collections.Generic.List`1<RimWorld.Apparel>
RimWorld.Pawn_ApparelTracker::get_WornApparel()
IL_04B3: callvirt System.Collections.Generic.Enumerator<RimWorld.Apparel>
System.Collections.Generic.List`1<RimWorld.Apparel>::GetEnumerator()
IL_04B8: stloc.s 25
(System.Collections.Generic.List`1+Enumerator[RimWorld.Apparel])
.try
{
IL_04BA: br => Label26
IL_04BF: Label30
IL_04BF: ldloca.s 25
(System.Collections.Generic.List`1+Enumerator[RimWorld.Apparel])
IL_04C1: call virtual RimWorld.Apparel
System.Collections.Generic.Enumerator<RimWorld.Apparel>::get_Current()
IL_04C6: stloc.s 26 (RimWorld.Apparel)
IL_04C8: ldloc.s 26 (RimWorld.Apparel)
IL_04CA: ldfld Verse.ThingDef Verse.Thing::def
IL_04CF: ldfld RimWorld.ApparelProperties Verse.ThingDef::apparel
IL_04D4: ldfld System.Boolean
RimWorld.ApparelProperties::blocksAddedPartWoundGraphics
IL_04D9: brfalse => Label27
IL_04DE: ldloc.s 26 (RimWorld.Apparel)
IL_04E0: ldfld Verse.ThingDef Verse.Thing::def
IL_04E5: ldfld RimWorld.ApparelProperties Verse.ThingDef::apparel
IL_04EA: ldloc.s 20 (Verse.Hediff)
IL_04EC: callvirt Verse.BodyPartRecord Verse.Hediff::get_Part()
IL_04F1: callvirt System.Boolean
RimWorld.ApparelProperties::CoversBodyPart(Verse.BodyPartRecord partRec)
IL_04F6: brfalse => Label28
IL_04FB: ldc.i4.1
IL_04FC: stloc.s 24 (System.Boolean)
IL_04FE: leave => Label29
IL_0503: Label26
IL_0503: Label27
IL_0503: Label28
IL_0503: ldloca.s 25
(System.Collections.Generic.List`1+Enumerator[RimWorld.Apparel])
IL_0505: call virtual System.Boolean
System.Collections.Generic.Enumerator<RimWorld.Apparel>::MoveNext()
IL_050A: brtrue => Label30
IL_050F: leave => Label31
IL_0514: leave => (autogenerated)
} // end try
.finally
{
IL_0519: ldloca.s 25
(System.Collections.Generic.List`1+Enumerator[RimWorld.Apparel])
IL_051B: constrained.
System.Collections.Generic.List`1+Enumerator[RimWorld.Apparel]
IL_0521: callvirt abstract virtual System.Void
System.IDisposable::Dispose()
IL_0526: endfinally
IL_0527: leave => (autogenerated)
} // end handler
IL_0528: Label29
IL_0528: Label31
IL_0528: ldloc.s 24 (System.Boolean)
IL_052A: brtrue => Label32
IL_052F: Label24
IL_052F: Label25
IL_052F: ldc.r4 0
IL_0534: stloc.s 21 (System.Single)
IL_0536: call static UnityEngine.Vector3 UnityEngine.Vector3::get_zero()
IL_053B: stloc.s 22 (UnityEngine.Vector3)
IL_053D: ldnull
IL_053E: stloc.s 23 (System.String)
IL_0540: ldarg.0
IL_0541: ldfld Verse.Pawn RimWorld.PawnOverlayDrawer::pawn
IL_0546: ldfld RimWorld.Pawn_StoryTracker Verse.Pawn::story
IL_054B: brfalse => Label33
IL_0550: ldarg.0
IL_0551: ldfld Verse.Pawn RimWorld.PawnOverlayDrawer::pawn
IL_0556: ldfld RimWorld.Pawn_StoryTracker Verse.Pawn::story
IL_055B: ldfld RimWorld.BodyTypeDef RimWorld.Pawn_StoryTracker::bodyType
IL_0560: brfalse => Label34
IL_0565: ldarg.0
IL_0566: ldfld Verse.Pawn RimWorld.PawnOverlayDrawer::pawn
IL_056B: ldfld RimWorld.Pawn_StoryTracker Verse.Pawn::story
IL_0570: ldfld RimWorld.BodyTypeDef RimWorld.Pawn_StoryTracker::bodyType
IL_0575: ldfld System.Collections.Generic.List`1<RimWorld.WoundAnchor>
RimWorld.BodyTypeDef::woundAnchors
IL_057A: brfalse => Label35
IL_057F: ldarg.0
IL_0580: ldloc.s 20 (Verse.Hediff)
IL_0582: callvirt Verse.BodyPartRecord Verse.Hediff::get_Part()
IL_0587: ldloca.s 0 (RimWorld.PawnWoundDrawer+<>c__DisplayClass7_0)
IL_0589: call System.Collections.Generic.List`1<RimWorld.WoundAnchor>
RimWorld.PawnWoundDrawer::<WriteCache>g__FindAnchors|7_1(Verse.BodyPartRecord
curPart, RimWorld.<>c__DisplayClass7_0& )
IL_058E: stloc.s 27
(System.Collections.Generic.List`1[RimWorld.BodyTypeDef+WoundAnchor])
IL_0590: ldloc.s 27
(System.Collections.Generic.List`1[RimWorld.BodyTypeDef+WoundAnchor])
IL_0592: callvirt virtual System.Int32
System.Collections.Generic.List`1<RimWorld.WoundAnchor>::get_Count()
IL_0597: ldc.i4.0
IL_0598: ble => Label36
IL_059D: ldloc.s 27
(System.Collections.Generic.List`1[RimWorld.BodyTypeDef+WoundAnchor])
IL_059F: callvirt virtual System.Int32
System.Collections.Generic.List`1<RimWorld.WoundAnchor>::get_Count()
IL_05A4: ldc.i4.1
IL_05A5: sub
IL_05A6: stloc.s 29 (System.Int32)
IL_05A8: br => Label37
IL_05AD: Label40
IL_05AD: ldloc.s 27
(System.Collections.Generic.List`1[RimWorld.BodyTypeDef+WoundAnchor])
IL_05AF: ldloc.s 29 (System.Int32)
IL_05B1: callvirt virtual RimWorld.WoundAnchor
System.Collections.Generic.List`1<RimWorld.WoundAnchor>::get_Item(System.Int32
index)
IL_05B6: ldfld RimWorld.OverlayLayer RimWorld.WoundAnchor::layer
IL_05BB: ldloc.2
IL_05BC: bne.un => Label38
IL_05C1: ldarg.0
IL_05C2: ldloc.s 27
(System.Collections.Generic.List`1[RimWorld.BodyTypeDef+WoundAnchor])
IL_05C4: ldloc.s 29 (System.Int32)
IL_05C6: callvirt virtual RimWorld.WoundAnchor
System.Collections.Generic.List`1<RimWorld.WoundAnchor>::get_Item(System.Int32
index)
IL_05CB: ldloca.s 0 (RimWorld.PawnWoundDrawer+<>c__DisplayClass7_0)
IL_05CD: call System.Boolean
RimWorld.PawnWoundDrawer::<WriteCache>g__AnchorUseable|7_0(RimWorld.WoundAnchor
anchor, RimWorld.<>c__DisplayClass7_0& )
IL_05D2: brtrue => Label39
IL_05D7: Label38
IL_05D7: ldloc.s 27
(System.Collections.Generic.List`1[RimWorld.BodyTypeDef+WoundAnchor])
IL_05D9: ldloc.s 29 (System.Int32)
IL_05DB: callvirt virtual System.Void
System.Collections.Generic.List`1<RimWorld.WoundAnchor>::RemoveAt(System.Int32
index)
IL_05E0: Label39
IL_05E0: ldloc.s 29 (System.Int32)
IL_05E2: ldc.i4.1
IL_05E3: sub
IL_05E4: stloc.s 29 (System.Int32)
IL_05E6: Label37
IL_05E6: ldloc.s 29 (System.Int32)
IL_05E8: ldc.i4.0
IL_05E9: bge => Label40
IL_05EE: ldloc.s 27
(System.Collections.Generic.List`1[RimWorld.BodyTypeDef+WoundAnchor])
IL_05F0: callvirt virtual System.Int32
System.Collections.Generic.List`1<RimWorld.WoundAnchor>::get_Count()
IL_05F5: brfalse => Label41
IL_05FA: ldloc.s 27
(System.Collections.Generic.List`1[RimWorld.BodyTypeDef+WoundAnchor])
IL_05FC: call static RimWorld.WoundAnchor
Verse.GenCollection::RandomElement(System.Collections.Generic.IEnumerable`1<RimWorl
d.WoundAnchor> source)
IL_0601: stloc.s 28 (RimWorld.BodyTypeDef+WoundAnchor)
IL_0603: ldarg.0
IL_0604: ldloc.s 28 (RimWorld.BodyTypeDef+WoundAnchor)
IL_0606: ldloca.s 22 (UnityEngine.Vector3)
IL_0608: ldloca.s 21 (System.Single)
IL_060A: ldloca.s 0 (RimWorld.PawnWoundDrawer+<>c__DisplayClass7_0)
IL_060C: call System.Void
RimWorld.PawnWoundDrawer::<WriteCache>g__CalcAnchorData|7_3(RimWorld.WoundAnchor
anchor, UnityEngine.Vector3& anchorOffset, System.Single& range,
RimWorld.<>c__DisplayClass7_0& )
IL_0611: ldloc.s 20 (Verse.Hediff)
IL_0613: ldfld Verse.HediffDef Verse.Hediff::def
IL_0618: ldfld System.Nullable`1<System.Single>
Verse.HediffDef::woundAnchorRange
IL_061D: stloc.s 30 (System.Nullable`1[System.Single])
IL_061F: ldloca.s 30 (System.Nullable`1[System.Single])
IL_0621: call System.Boolean System.Nullable`1<System.Single>::get_HasValue()
IL_0626: brtrue => Label42
IL_062B: ldloc.s 21 (System.Single)
IL_062D: br => Label43
IL_0632: Label42
IL_0632: ldloca.s 30 (System.Nullable`1[System.Single])
IL_0634: call System.Single
System.Nullable`1<System.Single>::GetValueOrDefault()
IL_0639: Label43
IL_0639: stloc.s 21 (System.Single)
IL_063B: ldloc.s 28 (RimWorld.BodyTypeDef+WoundAnchor)
IL_063D: ldfld System.String RimWorld.WoundAnchor::tag
IL_0642: stloc.s 23 (System.String)
IL_0644: br => Label44
IL_0649: Label33
IL_0649: Label34
IL_0649: Label35
IL_0649: ldarg.2
IL_064A: brfalse => Label72
IL_064F: ldarg.0
IL_0650: ldloca.s 22 (UnityEngine.Vector3)
IL_0652: ldloca.s 21 (System.Single)
IL_0654: ldloca.s 0 (RimWorld.PawnWoundDrawer+<>c__DisplayClass7_0)
IL_0656: call System.Void
RimWorld.PawnWoundDrawer::<WriteCache>g__GetDefaultAnchor|7_2(UnityEngine.Vector3&
anchorOffset, System.Single& range, RimWorld.<>c__DisplayClass7_0& )
IL_065B: Label36
IL_065B: Label44
IL_065B: Label72
IL_065B: ldc.i4.0
IL_065C: ldc.i4 360
IL_0661: call static System.Int32 Verse.Rand::Range(System.Int32 min,
System.Int32 max)
IL_0666: conv.r4
IL_0667: call static UnityEngine.Vector3 UnityEngine.Vector3::get_up()
IL_066C: call static UnityEngine.Quaternion
UnityEngine.Quaternion::AngleAxis(System.Single angle, UnityEngine.Vector3 axis)
IL_0671: pop
IL_0672: ldarg.0
IL_0673: ldfld Verse.Pawn RimWorld.PawnOverlayDrawer::pawn
IL_0678: ldfld System.Int32 Verse.Thing::thingIDNumber
IL_067D: ldloc.s 19 (System.Int32)
IL_067F: mul
IL_0680: ldloca.s 0 (RimWorld.PawnWoundDrawer+<>c__DisplayClass7_0)
IL_0682: ldflda Verse.Rot4 RimWorld.<>c__DisplayClass7_0::pawnRot
IL_0687: call System.Int32 Verse.Rot4::get_AsInt()
IL_068C: mul
IL_068D: call static System.Void Verse.Rand::PushState(System.Int32
replacementSeed)
.try
{
IL_0692: ldarg.0
IL_0693: ldfld Verse.Pawn RimWorld.PawnOverlayDrawer::pawn
IL_0698: callvirt Verse.RaceProperties Verse.Pawn::get_RaceProps()
IL_069D: callvirt RimWorld.FleshTypeDef
Verse.RaceProperties::get_FleshType()
IL_06A2: ldloc.s 20 (Verse.Hediff)
IL_06A4: callvirt RimWorld.ResolvedWound
RimWorld.FleshTypeDef::ChooseWoundOverlay(Verse.Hediff hediff)
IL_06A9: stloc.s 31 (RimWorld.FleshTypeDef+ResolvedWound)
IL_06AB: ldloc.s 31 (RimWorld.FleshTypeDef+ResolvedWound)
IL_06AD: brtrue => Label45
IL_06B2: leave => Label46
IL_06B7: Label45
IL_06B7: ldloc.s 31 (RimWorld.FleshTypeDef+ResolvedWound)
IL_06B9: ldfld RimWorld.Wound RimWorld.ResolvedWound::wound
IL_06BE: ldfld System.Boolean RimWorld.Wound::displayPermanent
IL_06C3: brtrue => Label47
IL_06C8: ldloc.s 20 (Verse.Hediff)
IL_06CA: isinst Verse.Hediff_Injury
IL_06CF: dup
IL_06D0: stloc.s 32 (Verse.Hediff_Injury)
IL_06D2: brfalse => Label48
IL_06D7: ldloc.s 32 (Verse.Hediff_Injury)
IL_06D9: call static System.Boolean
Verse.HediffUtility::IsPermanent(Verse.Hediff hd)
IL_06DE: brfalse => Label49
IL_06E3: leave => Label50
IL_06E8: Label47
IL_06E8: Label48
IL_06E8: Label49
IL_06E8: call static UnityEngine.Vector3
Verse.Rand::get_InsideUnitCircleVec3()
IL_06ED: stloc.s 33 (UnityEngine.Vector3)
IL_06EF: ldloc.0
IL_06F0: ldfld Verse.Rot4 RimWorld.<>c__DisplayClass7_0::pawnRot
IL_06F5: ldsfld Verse.Rot4 Verse.Rot4::East
IL_06FA: call static System.Boolean Verse.Rot4::op_Equality(Verse.Rot4
a, Verse.Rot4 b)
IL_06FF: brfalse => Label51
IL_0704: ldloca.s 33 (UnityEngine.Vector3)
IL_0706: ldflda System.Single UnityEngine.Vector3::x
IL_070B: dup
IL_070C: ldind.r4
IL_070D: ldc.r4 -1
IL_0712: mul
IL_0713: stind.r4
IL_0714: Label51
IL_0714: call static UnityEngine.Vector3
UnityEngine.Vector3::get_zero()
IL_0719: stloc.s 34 (UnityEngine.Vector3)
IL_071B: ldloc.s 23 (System.String)
IL_071D: ldstr "LeftEye"
IL_0722: call static System.Boolean
System.String::op_Equality(System.String a, System.String b)
IL_0727: brtrue => Label52
IL_072C: ldloc.s 23 (System.String)
IL_072E: ldstr "RightEye"
IL_0733: call static System.Boolean
System.String::op_Equality(System.String a, System.String b)
IL_0738: brfalse => Label53
IL_073D: Label52
IL_073D: ldarg.0
IL_073E: ldfld Verse.Pawn RimWorld.PawnOverlayDrawer::pawn
IL_0743: callvirt Verse.Pawn_DrawTracker Verse.Pawn::get_Drawer()
IL_0748: ldfld Verse.PawnRenderer Verse.Pawn_DrawTracker::renderer
IL_074D: ldloc.0
IL_074E: ldfld Verse.Rot4 RimWorld.<>c__DisplayClass7_0::pawnRot
IL_0753: callvirt UnityEngine.Vector3
Verse.PawnRenderer::BaseHeadOffsetAt(Verse.Rot4 rotation)
IL_0758: stloc.s 34 (UnityEngine.Vector3)
IL_075A: Label53
IL_075A: ldloc.s 31 (RimWorld.FleshTypeDef+ResolvedWound)
IL_075C: ldfld RimWorld.Wound RimWorld.ResolvedWound::wound
IL_0761: ldfld UnityEngine.Vector3 RimWorld.Wound::drawOffsetSouth
IL_0766: stloc.s 35 (UnityEngine.Vector3)
IL_0768: ldloca.s 0 (RimWorld.PawnWoundDrawer+<>c__DisplayClass7_0)
IL_076A: ldflda Verse.Rot4 RimWorld.<>c__DisplayClass7_0::pawnRot
IL_076F: call System.Boolean Verse.Rot4::get_IsHorizontal()
IL_0774: brfalse => Label54
IL_0779: ldloc.s 31 (RimWorld.FleshTypeDef+ResolvedWound)
IL_077B: ldfld RimWorld.Wound RimWorld.ResolvedWound::wound
IL_0780: ldfld UnityEngine.Vector3 RimWorld.Wound::drawOffsetEastWest
IL_0785: ldloc.0
IL_0786: ldfld Verse.Rot4 RimWorld.<>c__DisplayClass7_0::pawnRot
IL_078B: ldsfld Verse.Rot4 Verse.Rot4::East
IL_0790: call static System.Boolean Verse.Rot4::op_Equality(Verse.Rot4
a, Verse.Rot4 b)
IL_0795: brtrue => Label55
IL_079A: ldc.r4 -1
IL_079F: ldc.r4 1
IL_07A4: ldc.r4 1
IL_07A9: newobj System.Void UnityEngine.Vector3::.ctor(System.Single x,
System.Single y, System.Single z)
IL_07AE: br => Label56
IL_07B3: Label55
IL_07B3: call static UnityEngine.Vector3 UnityEngine.Vector3::get_one()
IL_07B8: Label56
IL_07B8: call static UnityEngine.Vector3
Verse.Vector2Utility::ScaledBy(UnityEngine.Vector3 a, UnityEngine.Vector3 b)
IL_07BD: stloc.s 35 (UnityEngine.Vector3)
IL_07BF: Label54
IL_07BF: ldloc.1
IL_07C0: ldloc.s 34 (UnityEngine.Vector3)
IL_07C2: call static UnityEngine.Vector3
UnityEngine.Vector3::op_Addition(UnityEngine.Vector3 a, UnityEngine.Vector3 b)
IL_07C7: ldloc.s 22 (UnityEngine.Vector3)
IL_07C9: call static UnityEngine.Vector3
UnityEngine.Vector3::op_Addition(UnityEngine.Vector3 a, UnityEngine.Vector3 b)
IL_07CE: ldloc.0
IL_07CF: ldfld UnityEngine.Quaternion
RimWorld.<>c__DisplayClass7_0::quat
IL_07D4: ldloc.s 33 (UnityEngine.Vector3)
IL_07D6: call static UnityEngine.Vector3
UnityEngine.Quaternion::op_Multiply(UnityEngine.Quaternion rotation,
UnityEngine.Vector3 point)
IL_07DB: ldloc.s 21 (System.Single)
IL_07DD: call static UnityEngine.Vector3
UnityEngine.Vector3::op_Multiply(UnityEngine.Vector3 a, System.Single d)
IL_07E2: call static UnityEngine.Vector3
UnityEngine.Vector3::op_Addition(UnityEngine.Vector3 a, UnityEngine.Vector3 b)
IL_07E7: ldloc.0
IL_07E8: ldfld UnityEngine.Quaternion
RimWorld.<>c__DisplayClass7_0::quat
IL_07ED: ldloc.s 35 (UnityEngine.Vector3)
IL_07EF: call static UnityEngine.Vector3
UnityEngine.Quaternion::op_Multiply(UnityEngine.Quaternion rotation,
UnityEngine.Vector3 point)
IL_07F4: call static UnityEngine.Vector3
UnityEngine.Vector3::op_Addition(UnityEngine.Vector3 a, UnityEngine.Vector3 b)
IL_07F9: ldloc.1
IL_07FA: ldloc.s 34 (UnityEngine.Vector3)
IL_07FC: call static UnityEngine.Vector3
UnityEngine.Vector3::op_Addition(UnityEngine.Vector3 a, UnityEngine.Vector3 b)
IL_0801: ldloc.s 22 (UnityEngine.Vector3)
IL_0803: call static UnityEngine.Vector3
UnityEngine.Vector3::op_Addition(UnityEngine.Vector3 a, UnityEngine.Vector3 b)
IL_0808: ldloc.s 33 (UnityEngine.Vector3)
IL_080A: ldloc.s 21 (System.Single)
IL_080C: call static UnityEngine.Vector3
UnityEngine.Vector3::op_Multiply(UnityEngine.Vector3 a, System.Single d)
IL_0811: call static UnityEngine.Vector3
UnityEngine.Vector3::op_Addition(UnityEngine.Vector3 a, UnityEngine.Vector3 b)
IL_0816: ldloc.0
IL_0817: ldfld UnityEngine.Quaternion
RimWorld.<>c__DisplayClass7_0::quat
IL_081C: ldloc.s 35 (UnityEngine.Vector3)
IL_081E: call static UnityEngine.Vector3
UnityEngine.Quaternion::op_Multiply(UnityEngine.Quaternion rotation,
UnityEngine.Vector3 point)
IL_0823: call static UnityEngine.Vector3
UnityEngine.Vector3::op_Addition(UnityEngine.Vector3 a, UnityEngine.Vector3 b)
IL_0828: stloc.s 36 (UnityEngine.Vector3)
IL_082A: ldloca.s 37 (System.Nullable`1[UnityEngine.Vector4])
IL_082C: initobj System.Nullable`1[UnityEngine.Vector4]
IL_0832: ldloca.s 38 (System.Nullable`1[UnityEngine.Vector4])
IL_0834: initobj System.Nullable`1[UnityEngine.Vector4]
IL_083A: ldloc.s 31 (RimWorld.FleshTypeDef+ResolvedWound)
IL_083C: ldloc.0
IL_083D: ldfld Verse.Rot4 RimWorld.<>c__DisplayClass7_0::pawnRot
IL_0842: ldloca.s 40 (System.Boolean)
IL_0844: callvirt UnityEngine.Material
RimWorld.ResolvedWound::GetMaterial(Verse.Rot4 rotation, System.Boolean& flip)
IL_0849: stloc.s 39 (UnityEngine.Material)
IL_084B: ldloc.s 31 (RimWorld.FleshTypeDef+ResolvedWound)
IL_084D: ldfld RimWorld.Wound RimWorld.ResolvedWound::wound
IL_0852: ldfld System.String RimWorld.Wound::flipOnWoundAnchorTag
IL_0857: brfalse => Label57
IL_085C: ldloc.s 31 (RimWorld.FleshTypeDef+ResolvedWound)
IL_085E: ldfld RimWorld.Wound RimWorld.ResolvedWound::wound
IL_0863: ldfld System.String RimWorld.Wound::flipOnWoundAnchorTag
IL_0868: ldloc.s 23 (System.String)
IL_086A: call static System.Boolean
System.String::op_Equality(System.String a, System.String b)
IL_086F: brfalse => Label58
IL_0874: ldloc.s 31 (RimWorld.FleshTypeDef+ResolvedWound)
IL_0876: ldfld RimWorld.Wound RimWorld.ResolvedWound::wound
IL_087B: ldfld Verse.Rot4 RimWorld.Wound::flipOnRotation
IL_0880: ldloc.0
IL_0881: ldfld Verse.Rot4 RimWorld.<>c__DisplayClass7_0::pawnRot
IL_0886: call static System.Boolean Verse.Rot4::op_Equality(Verse.Rot4
a, Verse.Rot4 b)
IL_088B: brfalse => Label59
IL_0890: ldloc.s 40 (System.Boolean)
IL_0892: ldc.i4.0
IL_0893: ceq
IL_0895: stloc.s 40 (System.Boolean)
IL_0897: Label57
IL_0897: Label58
IL_0897: Label59
IL_0897: ldloc.s 40 (System.Boolean)
IL_0899: brtrue => Label60
IL_089E: call static UnityEngine.Vector2 UnityEngine.Vector2::get_one()
IL_08A3: ldc.r4 0.25
IL_08A8: call static UnityEngine.Vector2
UnityEngine.Vector2::op_Multiply(UnityEngine.Vector2 a, System.Single d)
IL_08AD: call static UnityEngine.Mesh
Verse.MeshPool::GridPlane(UnityEngine.Vector2 size)
IL_08B2: br => Label61
IL_08B7: Label60
IL_08B7: call static UnityEngine.Vector2 UnityEngine.Vector2::get_one()
IL_08BC: ldc.r4 0.25
IL_08C1: call static UnityEngine.Vector2
UnityEngine.Vector2::op_Multiply(UnityEngine.Vector2 a, System.Single d)
IL_08C6: call static UnityEngine.Mesh
Verse.MeshPool::GridPlaneFlip(UnityEngine.Vector2 size)
IL_08CB: Label61
IL_08CB: stloc.s 41 (UnityEngine.Mesh)
IL_08CD: ldarg.0
IL_08CE: ldfld Verse.Pawn RimWorld.PawnOverlayDrawer::pawn
IL_08D3: ldfld Verse.ThingDef Verse.Thing::def
IL_08D8: ldfld Verse.RaceProperties Verse.ThingDef::race
IL_08DD: callvirt System.Boolean Verse.RaceProperties::get_Humanlike()
IL_08E2: brtrue => Label62
IL_08E7: ldloca.s 43 (Verse.MaterialRequest)
IL_08E9: initobj Verse.MaterialRequest
IL_08EF: ldarg.0
IL_08F0: ldfld Verse.Pawn RimWorld.PawnOverlayDrawer::pawn
IL_08F5: callvirt Verse.Pawn_DrawTracker Verse.Pawn::get_Drawer()
IL_08FA: ldfld Verse.PawnRenderer Verse.Pawn_DrawTracker::renderer
IL_08FF: ldfld Verse.PawnGraphicSet Verse.PawnRenderer::graphics
IL_0904: ldfld Verse.Graphic Verse.PawnGraphicSet::nakedGraphic
IL_0909: callvirt virtual System.Boolean Verse.Graphic::get_EastFlipped()
IL_090E: brfalse => Label63
IL_0913: ldloc.0
IL_0914: ldfld Verse.Rot4 RimWorld.<>c__DisplayClass7_0::pawnRot
IL_0919: ldsfld Verse.Rot4 Verse.Rot4::East
IL_091E: call static System.Boolean Verse.Rot4::op_Equality(Verse.Rot4
a, Verse.Rot4 b)
IL_0923: brtrue => Label64
IL_0928: Label63
IL_0928: ldarg.0
IL_0929: ldfld Verse.Pawn RimWorld.PawnOverlayDrawer::pawn
IL_092E: callvirt Verse.Pawn_DrawTracker Verse.Pawn::get_Drawer()
IL_0933: ldfld Verse.PawnRenderer Verse.Pawn_DrawTracker::renderer
IL_0938: ldfld Verse.PawnGraphicSet Verse.PawnRenderer::graphics
IL_093D: ldfld Verse.Graphic Verse.PawnGraphicSet::nakedGraphic
IL_0942: callvirt virtual System.Boolean Verse.Graphic::get_WestFlipped()
IL_0947: brfalse => Label65
IL_094C: ldloc.0
IL_094D: ldfld Verse.Rot4 RimWorld.<>c__DisplayClass7_0::pawnRot
IL_0952: ldsfld Verse.Rot4 Verse.Rot4::West
IL_0957: call static System.Boolean Verse.Rot4::op_Equality(Verse.Rot4
a, Verse.Rot4 b)
IL_095C: br => Label66
IL_0961: Label65
IL_0961: ldc.i4.0
IL_0962: br => Label67
IL_0967: Label64
IL_0967: ldc.i4.1
IL_0968: Label66
IL_0968: Label67
IL_0968: stloc.s 44 (System.Boolean)
IL_096A: ldloca.s 43 (Verse.MaterialRequest)
IL_096C: ldarg.0
IL_096D: ldfld Verse.Pawn RimWorld.PawnOverlayDrawer::pawn
IL_0972: callvirt Verse.Pawn_DrawTracker Verse.Pawn::get_Drawer()
IL_0977: ldfld Verse.PawnRenderer Verse.Pawn_DrawTracker::renderer
IL_097C: ldfld Verse.PawnGraphicSet Verse.PawnRenderer::graphics
IL_0981: ldfld Verse.Graphic Verse.PawnGraphicSet::nakedGraphic
IL_0986: ldloc.0
IL_0987: ldfld Verse.Rot4 RimWorld.<>c__DisplayClass7_0::pawnRot
IL_098C: ldnull
IL_098D: callvirt virtual UnityEngine.Material
Verse.Graphic::MatAt(Verse.Rot4 rot, Verse.Thing thing)
IL_0992: callvirt UnityEngine.Texture
UnityEngine.Material::get_mainTexture()
IL_0997: castclass UnityEngine.Texture2D
IL_099C: stfld UnityEngine.Texture2D Verse.MaterialRequest::maskTex
IL_09A1: ldloca.s 43 (Verse.MaterialRequest)
IL_09A3: ldloc.s 39 (UnityEngine.Material)
IL_09A5: callvirt UnityEngine.Texture
UnityEngine.Material::get_mainTexture()
IL_09AA: stfld UnityEngine.Texture Verse.MaterialRequest::mainTex
IL_09AF: ldloca.s 43 (Verse.MaterialRequest)
IL_09B1: ldloc.s 39 (UnityEngine.Material)
IL_09B3: callvirt UnityEngine.Color UnityEngine.Material::get_color()
IL_09B8: stfld UnityEngine.Color Verse.MaterialRequest::color
IL_09BD: ldloca.s 43 (Verse.MaterialRequest)
IL_09BF: ldloc.s 39 (UnityEngine.Material)
IL_09C1: callvirt UnityEngine.Shader UnityEngine.Material::get_shader()
IL_09C6: stfld UnityEngine.Shader Verse.MaterialRequest::shader
IL_09CB: ldloc.s 43 (Verse.MaterialRequest)
IL_09CD: call static UnityEngine.Material
Verse.MaterialPool::MatFrom(Verse.MaterialRequest req)
IL_09D2: stloc.s 39 (UnityEngine.Material)
IL_09D4: ldloc.0
IL_09D5: ldfld UnityEngine.Mesh RimWorld.<>c__DisplayClass7_0::bodyMesh
IL_09DA: callvirt UnityEngine.Bounds UnityEngine.Mesh::get_bounds()
IL_09DF: stloc.s 51 (UnityEngine.Bounds)
IL_09E1: ldloca.s 51 (UnityEngine.Bounds)
IL_09E3: call UnityEngine.Vector3 UnityEngine.Bounds::get_size()
IL_09E8: stloc.s 45 (UnityEngine.Vector3)
IL_09EA: ldloc.0
IL_09EB: ldfld UnityEngine.Mesh RimWorld.<>c__DisplayClass7_0::bodyMesh
IL_09F0: callvirt UnityEngine.Bounds UnityEngine.Mesh::get_bounds()
IL_09F5: stloc.s 51 (UnityEngine.Bounds)
IL_09F7: ldloca.s 51 (UnityEngine.Bounds)
IL_09F9: call UnityEngine.Vector3 UnityEngine.Bounds::get_extents()
IL_09FE: stloc.s 46 (UnityEngine.Vector3)
IL_0A00: ldloc.s 41 (UnityEngine.Mesh)
IL_0A02: callvirt UnityEngine.Bounds UnityEngine.Mesh::get_bounds()
IL_0A07: stloc.s 51 (UnityEngine.Bounds)
IL_0A09: ldloca.s 51 (UnityEngine.Bounds)
IL_0A0B: call UnityEngine.Vector3 UnityEngine.Bounds::get_size()
IL_0A10: stloc.s 47 (UnityEngine.Vector3)
IL_0A12: ldloc.s 41 (UnityEngine.Mesh)
IL_0A14: callvirt UnityEngine.Bounds UnityEngine.Mesh::get_bounds()
IL_0A19: stloc.s 51 (UnityEngine.Bounds)
IL_0A1B: ldloca.s 51 (UnityEngine.Bounds)
IL_0A1D: call UnityEngine.Vector3 UnityEngine.Bounds::get_extents()
IL_0A22: stloc.s 48 (UnityEngine.Vector3)
IL_0A24: ldloc.s 36 (UnityEngine.Vector3)
IL_0A26: ldloc.s 48 (UnityEngine.Vector3)
IL_0A28: call static UnityEngine.Vector3
UnityEngine.Vector3::op_Subtraction(UnityEngine.Vector3 a, UnityEngine.Vector3 b)
IL_0A2D: stloc.s 49 (UnityEngine.Vector3)
IL_0A2F: ldloc.1
IL_0A30: ldloc.s 46 (UnityEngine.Vector3)
IL_0A32: call static UnityEngine.Vector3
UnityEngine.Vector3::op_Subtraction(UnityEngine.Vector3 a, UnityEngine.Vector3 b)
IL_0A37: stloc.s 50 (UnityEngine.Vector3)
IL_0A39: ldloca.s 38 (System.Nullable`1[UnityEngine.Vector4])
IL_0A3B: ldloc.s 47 (UnityEngine.Vector3)
IL_0A3D: ldfld System.Single UnityEngine.Vector3::x
IL_0A42: ldloc.s 45 (UnityEngine.Vector3)
IL_0A44: ldfld System.Single UnityEngine.Vector3::x
IL_0A49: div
IL_0A4A: ldloc.s 47 (UnityEngine.Vector3)
IL_0A4C: ldfld System.Single UnityEngine.Vector3::z
IL_0A51: ldloc.s 45 (UnityEngine.Vector3)
IL_0A53: ldfld System.Single UnityEngine.Vector3::z
IL_0A58: div
IL_0A59: newobj System.Void UnityEngine.Vector4::.ctor(System.Single x,
System.Single y)
IL_0A5E: call System.Void
System.Nullable`1<UnityEngine.Vector4>::.ctor(UnityEngine.Vector4 value)
IL_0A63: ldloca.s 37 (System.Nullable`1[UnityEngine.Vector4])
IL_0A65: ldloc.s 49 (UnityEngine.Vector3)
IL_0A67: ldfld System.Single UnityEngine.Vector3::x
IL_0A6C: ldloc.s 50 (UnityEngine.Vector3)
IL_0A6E: ldfld System.Single UnityEngine.Vector3::x
IL_0A73: sub
IL_0A74: ldloc.s 45 (UnityEngine.Vector3)
IL_0A76: ldfld System.Single UnityEngine.Vector3::x
IL_0A7B: div
IL_0A7C: ldloc.s 49 (UnityEngine.Vector3)
IL_0A7E: ldfld System.Single UnityEngine.Vector3::z
IL_0A83: ldloc.s 50 (UnityEngine.Vector3)
IL_0A85: ldfld System.Single UnityEngine.Vector3::z
IL_0A8A: sub
IL_0A8B: ldloc.s 45 (UnityEngine.Vector3)
IL_0A8D: ldfld System.Single UnityEngine.Vector3::z
IL_0A92: div
IL_0A93: ldloc.s 44 (System.Boolean)
IL_0A95: brtrue => Label68
IL_0A9A: ldc.i4.0
IL_0A9B: br => Label69
IL_0AA0: Label68
IL_0AA0: ldc.i4.1
IL_0AA1: Label69
IL_0AA1: conv.r4
IL_0AA2: newobj System.Void UnityEngine.Vector4::.ctor(System.Single x,
System.Single y, System.Single z)
IL_0AA7: call System.Void
System.Nullable`1<UnityEngine.Vector4>::.ctor(UnityEngine.Vector4 value)
IL_0AAC: Label62
IL_0AAC: ldloc.0
IL_0AAD: ldfld UnityEngine.Quaternion
RimWorld.<>c__DisplayClass7_0::quat
IL_0AB2: call static UnityEngine.Vector3 UnityEngine.Vector3::get_one()
IL_0AB7: ldloc.s 31 (RimWorld.FleshTypeDef+ResolvedWound)
IL_0AB9: ldfld RimWorld.Wound RimWorld.ResolvedWound::wound
IL_0ABE: ldfld System.Single RimWorld.Wound::scale
IL_0AC3: call static UnityEngine.Vector3
UnityEngine.Vector3::op_Multiply(UnityEngine.Vector3 a, System.Single d)
IL_0AC8: call static UnityEngine.Matrix4x4
UnityEngine.Matrix4x4::TRS(UnityEngine.Vector3 pos, UnityEngine.Quaternion q,
UnityEngine.Vector3 s)
IL_0ACD: stloc.s 42 (UnityEngine.Matrix4x4)
IL_0ACF: ldarg.2
IL_0AD0: ldloca.s 10 (RimWorld.PawnOverlayDrawer+DrawCall)
IL_0AD2: initobj RimWorld.PawnOverlayDrawer+DrawCall
IL_0AD8: ldloca.s 10 (RimWorld.PawnOverlayDrawer+DrawCall)
IL_0ADA: ldloc.s 39 (UnityEngine.Material)
IL_0ADC: stfld UnityEngine.Material RimWorld.DrawCall::overlayMat
IL_0AE1: ldloca.s 10 (RimWorld.PawnOverlayDrawer+DrawCall)
IL_0AE3: ldloc.s 42 (UnityEngine.Matrix4x4)
IL_0AE5: stfld UnityEngine.Matrix4x4 RimWorld.DrawCall::TRS
IL_0AEA: ldloca.s 10 (RimWorld.PawnOverlayDrawer+DrawCall)
IL_0AEC: ldloc.s 41 (UnityEngine.Mesh)
IL_0AEE: stfld UnityEngine.Mesh RimWorld.DrawCall::overlayMesh
IL_0AF3: ldloca.s 10 (RimWorld.PawnOverlayDrawer+DrawCall)
IL_0AF5: ldloc.s 31 (RimWorld.FleshTypeDef+ResolvedWound)
IL_0AF7: ldfld RimWorld.Wound RimWorld.ResolvedWound::wound
IL_0AFC: ldfld System.Boolean RimWorld.Wound::displayOverApparel
IL_0B01: stfld System.Boolean RimWorld.DrawCall::displayOverApparel
IL_0B06: ldloca.s 10 (RimWorld.PawnOverlayDrawer+DrawCall)
IL_0B08: ldloc.s 31 (RimWorld.FleshTypeDef+ResolvedWound)
IL_0B0A: ldfld RimWorld.Wound RimWorld.ResolvedWound::wound
IL_0B0F: ldfld System.Boolean RimWorld.Wound::tintWithSkinColor
IL_0B14: stfld System.Boolean RimWorld.DrawCall::useSkinColor
IL_0B19: ldloca.s 10 (RimWorld.PawnOverlayDrawer+DrawCall)
IL_0B1B: ldloc.s 38 (System.Nullable`1[UnityEngine.Vector4])
IL_0B1D: stfld System.Nullable`1<UnityEngine.Vector4>
RimWorld.DrawCall::maskTexScale
IL_0B22: ldloca.s 10 (RimWorld.PawnOverlayDrawer+DrawCall)
IL_0B24: ldloc.s 37 (System.Nullable`1[UnityEngine.Vector4])
IL_0B26: stfld System.Nullable`1<UnityEngine.Vector4>
RimWorld.DrawCall::maskTexOffset
IL_0B2B: ldloc.s 10 (RimWorld.PawnOverlayDrawer+DrawCall)
IL_0B2D: callvirt virtual System.Void
System.Collections.Generic.List`1<RimWorld.DrawCall>::Add(RimWorld.DrawCall item)
IL_0B32: leave => Label70
IL_0B37: leave => (autogenerated)
} // end try
.finally
{
IL_0B3C: call static System.Void Verse.Rand::PopState()
IL_0B41: endfinally
IL_0B42: leave => (autogenerated)
} // end handler
IL_0B43: Label19
IL_0B43: Label20
IL_0B43: Label21
IL_0B43: Label23
IL_0B43: Label32
IL_0B43: Label41
IL_0B43: Label46
IL_0B43: Label50
IL_0B43: Label70
IL_0B43: ldloc.s 19 (System.Int32)
IL_0B45: ldc.i4.1
IL_0B46: add
IL_0B47: stloc.s 19 (System.Int32)
IL_0B49: Label16
IL_0B49: ldloc.s 19 (System.Int32)
IL_0B4B: ldarg.0
IL_0B4C: ldfld Verse.Pawn RimWorld.PawnOverlayDrawer::pawn
IL_0B51: ldfld Verse.Pawn_HealthTracker Verse.Pawn::health
IL_0B56: ldfld Verse.HediffSet Verse.Pawn_HealthTracker::hediffSet
IL_0B5B: ldfld System.Collections.Generic.List`1<Verse.Hediff>
Verse.HediffSet::hediffs
IL_0B60: callvirt virtual System.Int32
System.Collections.Generic.List`1<Verse.Hediff>::get_Count()
IL_0B65: blt => Label71
IL_0B6A: // end original
IL_0B6A: Label18
IL_0B6A: Label77
IL_0B6A: ret
DONE

### Patch: System.Void RimWorld.PawnCacheRenderer::RenderPawn(Verse.Pawn pawn,


UnityEngine.RenderTexture renderTexture, UnityEngine.Vector3 cameraOffset,
System.Single cameraZoom, System.Single angle, Verse.Rot4 rotation, System.Boolean
renderHead, System.Boolean renderBody, System.Boolean renderHeadgear,
System.Boolean renderClothes, System.Boolean portrait, UnityEngine.Vector3
positionOffset, System.Collections.Generic.IReadOnlyDictionary`2<RimWorld.Apparel,
UnityEngine.Color> overrideApparelColor, System.Nullable`1<UnityEngine.Color>
overrideHairColor, System.Boolean stylingStation)
### Replacement: static System.Void
RimWorld.PawnCacheRenderer::RimWorld.PawnCacheRenderer.RenderPawn_Patch2(RimWorld.P
awnCacheRenderer this, Verse.Pawn pawn, UnityEngine.RenderTexture renderTexture,
UnityEngine.Vector3 cameraOffset, System.Single cameraZoom, System.Single angle,
Verse.Rot4 rotation, System.Boolean renderHead, System.Boolean renderBody,
System.Boolean renderHeadgear, System.Boolean renderClothes, System.Boolean
portrait, UnityEngine.Vector3 positionOffset,
System.Collections.Generic.IReadOnlyDictionary`2<RimWorld.Apparel,
UnityEngine.Color> overrideApparelColor, System.Nullable`1<UnityEngine.Color>
overrideHairColor, System.Boolean stylingStation)
IL_0000: Local var 0: UnityEngine.Vector3
IL_0000: Local var 1: System.Single
IL_0000: Local var 2: System.Boolean
IL_0000: ldc.i4 0
IL_0005: stloc 2 (System.Boolean)
IL_0009: ldc.i4.1
IL_000A: stloc 2 (System.Boolean)
IL_000E: ldloc 2 (System.Boolean)
IL_0012: brfalse => Label1
IL_0017: ldarg 1
IL_001B: ldarga 8
IL_001F: ldarga 7
IL_0023: ldarga 9
IL_0027: ldarga 10
IL_002B: ldarg 11
IL_002F: call static System.Void
DubsBadHygiene.Patches.H_RenderPawn::Prefix(Verse.Pawn pawn, System.Boolean&
renderBody, System.Boolean& renderHead, System.Boolean& renderHeadgear,
System.Boolean& renderClothes, System.Boolean portrait)
IL_0034: Label1
IL_0034: nop
IL_0035: ldloc 2 (System.Boolean)
IL_0039: brfalse => Label2
IL_003E: ldarg 1
IL_0042: ldarga 4
IL_0046: ldarg 11
IL_004A: call static System.Void
AlienRace.HarmonyPatches::CacheRenderPawnPrefix(Verse.Pawn pawn, System.Single&
cameraZoom, System.Boolean portrait)
IL_004F: Label2
IL_004F: nop
IL_0050: ldloc 2 (System.Boolean)
IL_0054: brfalse => Label0
IL_0059: // start original
IL_0059: ldarg.0
IL_005A: ldarg.s 6
IL_005C: stfld Verse.Rot4 RimWorld.PawnCacheRenderer::rotation
IL_0061: ldarg.0
IL_0062: ldarg.s 7
IL_0064: stfld System.Boolean RimWorld.PawnCacheRenderer::renderHead
IL_0069: ldarg.0
IL_006A: ldarg.s 8
IL_006C: stfld System.Boolean RimWorld.PawnCacheRenderer::renderBody
IL_0071: ldarg.0
IL_0072: ldarg.s 9
IL_0074: stfld System.Boolean RimWorld.PawnCacheRenderer::renderHeadgear
IL_0079: ldarg.0
IL_007A: ldarg.s 10
IL_007C: stfld System.Boolean RimWorld.PawnCacheRenderer::renderClothes
IL_0081: ldarg.0
IL_0082: ldarg.s 11
IL_0084: stfld System.Boolean RimWorld.PawnCacheRenderer::portrait
IL_0089: ldarg.0
IL_008A: ldarg.s 5
IL_008C: stfld System.Single RimWorld.PawnCacheRenderer::angle
IL_0091: ldarg.0
IL_0092: ldarg.s 12
IL_0094: stfld UnityEngine.Vector3 RimWorld.PawnCacheRenderer::positionOffset
IL_0099: ldarg.0
IL_009A: ldarg.s 13
IL_009C: stfld
System.Collections.Generic.IReadOnlyDictionary`2<RimWorld.Apparel,
UnityEngine.Color> RimWorld.PawnCacheRenderer::overrideApparelColor
IL_00A1: ldarg.0
IL_00A2: ldarg.s 14
IL_00A4: stfld System.Nullable`1<UnityEngine.Color>
RimWorld.PawnCacheRenderer::overrideHairColor
IL_00A9: ldarg.0
IL_00AA: ldarg.s 15
IL_00AC: stfld System.Boolean RimWorld.PawnCacheRenderer::stylingStation
IL_00B1: call static UnityEngine.Camera Verse.Find::get_PawnCacheCamera()
IL_00B6: dup
IL_00B7: callvirt UnityEngine.Transform UnityEngine.Component::get_transform()
IL_00BC: callvirt UnityEngine.Vector3 UnityEngine.Transform::get_position()
IL_00C1: stloc.0
IL_00C2: dup
IL_00C3: callvirt System.Single UnityEngine.Camera::get_orthographicSize()
IL_00C8: stloc.1
IL_00C9: dup
IL_00CA: callvirt UnityEngine.Transform UnityEngine.Component::get_transform()
IL_00CF: dup
IL_00D0: callvirt UnityEngine.Vector3 UnityEngine.Transform::get_position()
IL_00D5: ldarg.3
IL_00D6: call static UnityEngine.Vector3
UnityEngine.Vector3::op_Addition(UnityEngine.Vector3 a, UnityEngine.Vector3 b)
IL_00DB: callvirt System.Void
UnityEngine.Transform::set_position(UnityEngine.Vector3 value)
IL_00E0: dup
IL_00E1: ldc.r4 1
IL_00E6: ldarg.s 4
IL_00E8: div
IL_00E9: callvirt System.Void
UnityEngine.Camera::set_orthographicSize(System.Single value)
IL_00EE: ldarg.0
IL_00EF: ldarg.1
IL_00F0: stfld Verse.Pawn RimWorld.PawnCacheRenderer::pawn
IL_00F5: dup
IL_00F6: ldarg.2
IL_00F7: callvirt UnityEngine.RenderBuffer
UnityEngine.RenderTexture::get_colorBuffer()
IL_00FC: ldarg.2
IL_00FD: callvirt UnityEngine.RenderBuffer
UnityEngine.RenderTexture::get_depthBuffer()
IL_0102: callvirt System.Void
UnityEngine.Camera::SetTargetBuffers(UnityEngine.RenderBuffer colorBuffer,
UnityEngine.RenderBuffer depthBuffer)
IL_0107: dup
IL_0108: callvirt System.Void UnityEngine.Camera::Render()
IL_010D: ldarg.0
IL_010E: ldnull
IL_010F: stfld Verse.Pawn RimWorld.PawnCacheRenderer::pawn
IL_0114: dup
IL_0115: callvirt UnityEngine.Transform UnityEngine.Component::get_transform()
IL_011A: ldloc.0
IL_011B: callvirt System.Void
UnityEngine.Transform::set_position(UnityEngine.Vector3 value)
IL_0120: dup
IL_0121: ldloc.1
IL_0122: callvirt System.Void
UnityEngine.Camera::set_orthographicSize(System.Single value)
IL_0127: ldnull
IL_0128: callvirt System.Void
UnityEngine.Camera::set_targetTexture(UnityEngine.RenderTexture value)
IL_012D: // end original
IL_012D: Label0
IL_012D: ret
DONE

### Patch: System.Void Verse.PawnTextureAtlas::.ctor()


### Replacement: static System.Void
Verse.PawnTextureAtlas::Verse.PawnTextureAtlas..ctor_Patch0(Verse.PawnTextureAtlas
this)
IL_0000: Local var 0: System.Collections.Generic.List`1<UnityEngine.Rect>
IL_0000: Local var 1: System.Int32
IL_0000: Local var 2: System.Int32
IL_0000: Local var 3: Verse.PawnTextureAtlasFrameSet
IL_0000: // start original
IL_0000: ldarg.0
IL_0001: newobj System.Void System.Collections.Generic.Dictionary`2<Verse.Pawn,
Verse.PawnTextureAtlasFrameSet>::.ctor()
IL_0006: stfld System.Collections.Generic.Dictionary`2<Verse.Pawn,
Verse.PawnTextureAtlasFrameSet> Verse.PawnTextureAtlas::frameAssignments
IL_000B: ldarg.0
IL_000C: newobj System.Void
System.Collections.Generic.List`1<Verse.PawnTextureAtlasFrameSet>::.ctor()
IL_0011: stfld
System.Collections.Generic.List`1<Verse.PawnTextureAtlasFrameSet>
Verse.PawnTextureAtlas::freeFrameSets
IL_0016: ldarg.0
IL_0017: call System.Void System.Object::.ctor()
IL_001C: ldarg.0
IL_001D: call static UnityEngine.RenderTexture Fish.FixedTexture::Create()
IL_0022: stfld UnityEngine.RenderTexture Verse.PawnTextureAtlas::texture
IL_0027: ldarg.0
IL_0028: ldfld UnityEngine.RenderTexture Verse.PawnTextureAtlas::texture
IL_002D: ldstr "PawnTextureAtlas_"
IL_0032: ldc.i4 2048
IL_0037: call static System.Int32
AlienRace.HarmonyPatches::GetAtlasSizeForPawn()
IL_003C: mul
IL_003D: box System.Int32
IL_0042: call static System.String System.String::Concat(System.Object arg0,
System.Object arg1)
IL_0047: callvirt System.Void UnityEngine.Object::set_name(System.String value)
IL_004C: newobj System.Void
System.Collections.Generic.List`1<UnityEngine.Rect>::.ctor()
IL_0051: stloc.0
IL_0052: ldc.i4.0
IL_0053: stloc.1
IL_0054: br => Label0
IL_0059: Label3
IL_0059: ldc.i4.0
IL_005A: stloc.2
IL_005B: br => Label1
IL_0060: Label2
IL_0060: ldloc.0
IL_0061: ldloc.1
IL_0062: conv.r4
IL_0063: ldc.r4 2048
IL_0068: call static System.Int32
AlienRace.HarmonyPatches::GetAtlasSizeForPawn()
IL_006D: conv.r4
IL_006E: mul
IL_006F: div
IL_0070: ldloc.2
IL_0071: conv.r4
IL_0072: ldc.r4 2048
IL_0077: call static System.Int32
AlienRace.HarmonyPatches::GetAtlasSizeForPawn()
IL_007C: conv.r4
IL_007D: mul
IL_007E: div
IL_007F: ldc.r4 0.0625
IL_0084: ldc.r4 0.0625
IL_0089: newobj System.Void UnityEngine.Rect::.ctor(System.Single x,
System.Single y, System.Single width, System.Single height)
IL_008E: callvirt virtual System.Void
System.Collections.Generic.List`1<UnityEngine.Rect>::Add(UnityEngine.Rect item)
IL_0093: ldloc.2
IL_0094: ldc.i4 128
IL_0099: call static System.Int32
AlienRace.HarmonyPatches::GetAtlasSizeForPawn()
IL_009E: mul
IL_009F: add
IL_00A0: stloc.2
IL_00A1: Label1
IL_00A1: ldloc.2
IL_00A2: ldc.i4 2048
IL_00A7: call static System.Int32
AlienRace.HarmonyPatches::GetAtlasSizeForPawn()
IL_00AC: mul
IL_00AD: blt => Label2
IL_00B2: ldloc.1
IL_00B3: ldc.i4 128
IL_00B8: call static System.Int32
AlienRace.HarmonyPatches::GetAtlasSizeForPawn()
IL_00BD: mul
IL_00BE: add
IL_00BF: stloc.1
IL_00C0: Label0
IL_00C0: ldloc.1
IL_00C1: ldc.i4 2048
IL_00C6: call static System.Int32
AlienRace.HarmonyPatches::GetAtlasSizeForPawn()
IL_00CB: mul
IL_00CC: blt => Label3
IL_00D1: br => Label4
IL_00D6: Label6
IL_00D6: newobj System.Void Verse.PawnTextureAtlasFrameSet::.ctor()
IL_00DB: stloc.3
IL_00DC: ldloc.3
IL_00DD: ldc.i4.8
IL_00DE: newarr UnityEngine.Rect
IL_00E3: dup
IL_00E4: ldc.i4.0
IL_00E5: ldloc.0
IL_00E6: call static UnityEngine.Rect
Verse.GenCollection::Pop(System.Collections.Generic.List`1<UnityEngine.Rect> list)
IL_00EB: stelem UnityEngine.Rect
IL_00F0: dup
IL_00F1: ldc.i4.1
IL_00F2: ldloc.0
IL_00F3: call static UnityEngine.Rect
Verse.GenCollection::Pop(System.Collections.Generic.List`1<UnityEngine.Rect> list)
IL_00F8: stelem UnityEngine.Rect
IL_00FD: dup
IL_00FE: ldc.i4.2
IL_00FF: ldloc.0
IL_0100: call static UnityEngine.Rect
Verse.GenCollection::Pop(System.Collections.Generic.List`1<UnityEngine.Rect> list)
IL_0105: stelem UnityEngine.Rect
IL_010A: dup
IL_010B: ldc.i4.3
IL_010C: ldloc.0
IL_010D: call static UnityEngine.Rect
Verse.GenCollection::Pop(System.Collections.Generic.List`1<UnityEngine.Rect> list)
IL_0112: stelem UnityEngine.Rect
IL_0117: dup
IL_0118: ldc.i4.4
IL_0119: ldloc.0
IL_011A: call static UnityEngine.Rect
Verse.GenCollection::Pop(System.Collections.Generic.List`1<UnityEngine.Rect> list)
IL_011F: stelem UnityEngine.Rect
IL_0124: dup
IL_0125: ldc.i4.5
IL_0126: ldloc.0
IL_0127: call static UnityEngine.Rect
Verse.GenCollection::Pop(System.Collections.Generic.List`1<UnityEngine.Rect> list)
IL_012C: stelem UnityEngine.Rect
IL_0131: dup
IL_0132: ldc.i4.6
IL_0133: ldloc.0
IL_0134: call static UnityEngine.Rect
Verse.GenCollection::Pop(System.Collections.Generic.List`1<UnityEngine.Rect> list)
IL_0139: stelem UnityEngine.Rect
IL_013E: dup
IL_013F: ldc.i4.7
IL_0140: ldloc.0
IL_0141: call static UnityEngine.Rect
Verse.GenCollection::Pop(System.Collections.Generic.List`1<UnityEngine.Rect> list)
IL_0146: stelem UnityEngine.Rect
IL_014B: stfld UnityEngine.Rect[] Verse.PawnTextureAtlasFrameSet::uvRects
IL_0150: ldloc.3
IL_0151: ldloc.3
IL_0152: ldfld UnityEngine.Rect[] Verse.PawnTextureAtlasFrameSet::uvRects
IL_0157: ldsfld System.Func`2<UnityEngine.Rect, UnityEngine.Mesh>
Verse.<>c::<>9__12_0
IL_015C: dup
IL_015D: brtrue => Label5
IL_0162: pop
IL_0163: ldsfld Verse.<>c Verse.<>c::<>9
IL_0168: ldftn UnityEngine.Mesh Verse.<>c::<.ctor>b__12_0(UnityEngine.Rect u)
IL_016E: newobj System.Void System.Func`2<UnityEngine.Rect,
UnityEngine.Mesh>::.ctor(System.Object object, System.IntPtr method)
IL_0173: dup
IL_0174: stsfld System.Func`2<UnityEngine.Rect, UnityEngine.Mesh>
Verse.<>c::<>9__12_0
IL_0179: Label5
IL_0179: call static
System.Collections.Generic.IEnumerable`1<UnityEngine.Mesh>
System.Linq.Enumerable::Select(System.Collections.Generic.IEnumerable`1<UnityEngine
.Rect> source, System.Func`2<UnityEngine.Rect, UnityEngine.Mesh> selector)
IL_017E: call static UnityEngine.Mesh[]
System.Linq.Enumerable::ToArray(System.Collections.Generic.IEnumerable`1<UnityEngin
e.Mesh> source)
IL_0183: stfld UnityEngine.Mesh[] Verse.PawnTextureAtlasFrameSet::meshes
IL_0188: ldloc.3
IL_0189: ldarg.0
IL_018A: ldfld UnityEngine.RenderTexture Verse.PawnTextureAtlas::texture
IL_018F: stfld UnityEngine.RenderTexture Verse.PawnTextureAtlasFrameSet::atlas
IL_0194: ldarg.0
IL_0195: ldfld
System.Collections.Generic.List`1<Verse.PawnTextureAtlasFrameSet>
Verse.PawnTextureAtlas::freeFrameSets
IL_019A: ldloc.3
IL_019B: callvirt virtual System.Void
System.Collections.Generic.List`1<Verse.PawnTextureAtlasFrameSet>::Add(Verse.PawnTe
xtureAtlasFrameSet item)
IL_01A0: Label4
IL_01A0: ldloc.0
IL_01A1: callvirt virtual System.Int32
System.Collections.Generic.List`1<UnityEngine.Rect>::get_Count()
IL_01A6: ldc.i4.8
IL_01A7: bge => Label6
IL_01AC: // end original
IL_01AC: ret
DONE

### Patch: System.Boolean Verse.PawnTextureAtlas::TryGetFrameSet(Verse.Pawn pawn,


Verse.PawnTextureAtlasFrameSet& frameSet, System.Boolean& createdNew)
### Replacement: static System.Boolean
Verse.PawnTextureAtlas::Verse.PawnTextureAtlas.TryGetFrameSet_Patch0(Verse.PawnText
ureAtlas this, Verse.Pawn pawn, Verse.PawnTextureAtlasFrameSet& frameSet,
System.Boolean& createdNew)
IL_0000: Local var 0: System.Int32
IL_0000: // start original
IL_0000: ldarg.3
IL_0001: ldc.i4.0
IL_0002: stind.i1
IL_0003: ldarg.0
IL_0004: ldfld System.Collections.Generic.Dictionary`2<Verse.Pawn,
Verse.PawnTextureAtlasFrameSet> Verse.PawnTextureAtlas::frameAssignments
IL_0009: ldarg.1
IL_000A: ldarg.2
IL_000B: callvirt virtual System.Boolean
System.Collections.Generic.Dictionary`2<Verse.Pawn,
Verse.PawnTextureAtlasFrameSet>::TryGetValue(Verse.Pawn key,
Verse.PawnTextureAtlasFrameSet& value)
IL_0010: brtrue => Label0
IL_0015: ldarg.0
IL_0016: call System.Int32 Verse.PawnTextureAtlas::get_FreeCount()
IL_001B: brtrue => Label1
IL_0020: ldc.i4.0
IL_0021: br => Label5
IL_0026: Label1
IL_0026: ldarg.0
IL_0027: ldarg.1
IL_0028: ldarg.0
IL_0029: ldfld
System.Collections.Generic.List`1<Verse.PawnTextureAtlasFrameSet>
Verse.PawnTextureAtlas::freeFrameSets
IL_002E: call static System.Boolean
AlienRace.HarmonyPatches::TextureAtlasSameRace(Verse.PawnTextureAtlas atlas,
Verse.Pawn pawn, System.Collections.Generic.List`1<Verse.PawnTextureAtlasFrameSet>
frameSets)
IL_0033: brtrue => Label4
IL_0038: ldc.i4.0
IL_0039: br => Label6
IL_003E: Label4
IL_003E: ldarg.3
IL_003F: ldc.i4.1
IL_0040: stind.i1
IL_0041: ldarg.2
IL_0042: ldarg.0
IL_0043: ldfld
System.Collections.Generic.List`1<Verse.PawnTextureAtlasFrameSet>
Verse.PawnTextureAtlas::freeFrameSets
IL_0048: call static Verse.PawnTextureAtlasFrameSet
Verse.GenCollection::Pop(System.Collections.Generic.List`1<Verse.PawnTextureAtlasFr
ameSet> list)
IL_004D: stind.ref
IL_004E: ldc.i4.0
IL_004F: stloc.0
IL_0050: br => Label2
IL_0055: Label3
IL_0055: ldarg.2
IL_0056: ldind.ref
IL_0057: ldfld System.Boolean[] Verse.PawnTextureAtlasFrameSet::isDirty
IL_005C: ldloc.0
IL_005D: ldc.i4.1
IL_005E: stelem.i1
IL_005F: ldloc.0
IL_0060: ldc.i4.1
IL_0061: add
IL_0062: stloc.0
IL_0063: Label2
IL_0063: ldloc.0
IL_0064: ldarg.2
IL_0065: ldind.ref
IL_0066: ldfld System.Boolean[] Verse.PawnTextureAtlasFrameSet::isDirty
IL_006B: ldlen
IL_006C: conv.i4
IL_006D: blt => Label3
IL_0072: ldarg.0
IL_0073: ldfld System.Collections.Generic.Dictionary`2<Verse.Pawn,
Verse.PawnTextureAtlasFrameSet> Verse.PawnTextureAtlas::frameAssignments
IL_0078: ldarg.1
IL_0079: ldarg.2
IL_007A: ldind.ref
IL_007B: callvirt virtual System.Void
System.Collections.Generic.Dictionary`2<Verse.Pawn,
Verse.PawnTextureAtlasFrameSet>::Add(Verse.Pawn key, Verse.PawnTextureAtlasFrameSet
value)
IL_0080: ldc.i4.1
IL_0081: br => Label7
IL_0086: Label0
IL_0086: ldc.i4.1
IL_0087: // end original
IL_0087: Label5
IL_0087: Label6
IL_0087: Label7
IL_0087: ret
DONE

### Patch: UnityEngine.Mesh Verse.<>c::<.ctor>b__12_0(UnityEngine.Rect u)


### Replacement: static UnityEngine.Mesh
Verse.PawnTextureAtlas+<>c::Verse.PawnTextureAtlas+c.<.ctor>b__12_0_Patch0(Verse.<>
c this, UnityEngine.Rect u)
IL_0000: // start original
IL_0000: ldarg.1
IL_0001: call static System.Single
AlienRace.HarmonyPatches::GetBorderSizeForPawn()
IL_0006: call static UnityEngine.Mesh
Verse.TextureAtlasHelper::CreateMeshForUV(UnityEngine.Rect uv, System.Single scale)
IL_000B: // end original
IL_000B: ret
DONE

### Patch: static System.Boolean


Verse.GlobalTextureAtlasManager::TryGetPawnFrameSet(Verse.Pawn pawn,
Verse.PawnTextureAtlasFrameSet& frameSet, System.Boolean& createdNew,
System.Boolean allowCreatingNew)
### Replacement: static System.Boolean
Verse.GlobalTextureAtlasManager::Verse.GlobalTextureAtlasManager.TryGetPawnFrameSet
_Patch1(Verse.Pawn pawn, Verse.PawnTextureAtlasFrameSet& frameSet, System.Boolean&
createdNew, System.Boolean allowCreatingNew)
IL_0000: Local var 0:
System.Collections.Generic.List`1/Enumerator<Verse.PawnTextureAtlas>
IL_0000: Local var 1: System.Boolean
IL_0000: Local var 2: Verse.PawnTextureAtlas
IL_0000: Local var 3: System.Boolean
IL_0000: Local var 4: System.Boolean
IL_0000: ldc.i4 0
IL_0005: stloc 3 (System.Boolean)
IL_0009: ldc.i4 0
IL_000E: stloc 4 (System.Boolean)
IL_0012: ldc.i4.1
IL_0013: stloc 4 (System.Boolean)
IL_0017: ldloc 4 (System.Boolean)
IL_001B: brfalse => Label1
IL_0020: ldarg 0
IL_0024: call static System.Void
AlienRace.HarmonyPatches::GlobalTextureAtlasGetFrameSetPrefix(Verse.Pawn pawn)
IL_0029: Label1
IL_0029: nop
IL_002A: ldloc 4 (System.Boolean)
IL_002E: brfalse => Label0
IL_0033: // start original
IL_0033: ldsfld System.Collections.Generic.List`1<Verse.PawnTextureAtlas>
Verse.GlobalTextureAtlasManager::pawnTextureAtlases
IL_0038: callvirt System.Collections.Generic.Enumerator<Verse.PawnTextureAtlas>
System.Collections.Generic.List`1<Verse.PawnTextureAtlas>::GetEnumerator()
IL_003D: stloc.0
.try
{
IL_003E: br => Label2
IL_0043: Label5
IL_0043: ldloca.s 0
(System.Collections.Generic.List`1+Enumerator[Verse.PawnTextureAtlas])
IL_0045: call virtual Verse.PawnTextureAtlas
System.Collections.Generic.Enumerator<Verse.PawnTextureAtlas>::get_Current()
IL_004A: ldarg.0
IL_004B: ldarg.1
IL_004C: ldarg.2
IL_004D: callvirt System.Boolean
Verse.PawnTextureAtlas::TryGetFrameSet(Verse.Pawn pawn,
Verse.PawnTextureAtlasFrameSet& frameSet, System.Boolean& createdNew)
IL_0052: brfalse => Label3
IL_0057: ldc.i4.1
IL_0058: stloc.1
IL_0059: leave => Label4
IL_005E: Label2
IL_005E: Label3
IL_005E: ldloca.s 0
(System.Collections.Generic.List`1+Enumerator[Verse.PawnTextureAtlas])
IL_0060: call virtual System.Boolean
System.Collections.Generic.Enumerator<Verse.PawnTextureAtlas>::MoveNext()
IL_0065: brtrue => Label5
IL_006A: leave => Label6
IL_006F: leave => (autogenerated)
} // end try
.finally
{
IL_0074: ldloca.s 0
(System.Collections.Generic.List`1+Enumerator[Verse.PawnTextureAtlas])
IL_0076: constrained.
System.Collections.Generic.List`1+Enumerator[Verse.PawnTextureAtlas]
IL_007C: callvirt abstract virtual System.Void
System.IDisposable::Dispose()
IL_0081: endfinally
IL_0082: leave => (autogenerated)
} // end handler
IL_0083: Label6
IL_0083: ldarg.3
IL_0084: brfalse => Label7
IL_0089: newobj System.Void Verse.PawnTextureAtlas::.ctor()
IL_008E: stloc.2
IL_008F: ldsfld System.Collections.Generic.List`1<Verse.PawnTextureAtlas>
Verse.GlobalTextureAtlasManager::pawnTextureAtlases
IL_0094: ldloc.2
IL_0095: callvirt virtual System.Void
System.Collections.Generic.List`1<Verse.PawnTextureAtlas>::Add(Verse.PawnTextureAtl
as item)
IL_009A: ldloc.2
IL_009B: ldarg.0
IL_009C: ldarg.1
IL_009D: ldarg.2
IL_009E: callvirt System.Boolean
Verse.PawnTextureAtlas::TryGetFrameSet(Verse.Pawn pawn,
Verse.PawnTextureAtlasFrameSet& frameSet, System.Boolean& createdNew)
IL_00A3: br => Label12
IL_00A8: Label7
IL_00A8: ldarg.2
IL_00A9: ldc.i4.0
IL_00AA: stind.i1
IL_00AB: ldarg.1
IL_00AC: ldnull
IL_00AD: stind.ref
IL_00AE: ldc.i4.0
IL_00AF: br => Label13
IL_00B4: Label4
IL_00B4: ldloc.1
IL_00B5: // end original
IL_00B5: Label12
IL_00B5: Label13
IL_00B5: stloc 3 (System.Boolean)
IL_00B9: Label0
IL_00B9: ldloc 3 (System.Boolean)
IL_00BD: ret
DONE

### Patch: static System.Boolean


RimWorld.PawnStyleItemChooser::WantsToUseStyle(Verse.Pawn pawn,
RimWorld.StyleItemDef styleItemDef, System.Nullable`1<RimWorld.TattooType>
tattooType)
### Replacement: static System.Boolean
RimWorld.PawnStyleItemChooser::RimWorld.PawnStyleItemChooser.WantsToUseStyle_Patch2
(Verse.Pawn pawn, RimWorld.StyleItemDef styleItemDef,
System.Nullable`1<RimWorld.TattooType> tattooType)
IL_0000: Local var 0: RimWorld.TattooDef
IL_0000: Local var 1: RimWorld.HairDef
IL_0000: Local var 2: System.Boolean
IL_0000: Local var 3: System.Boolean
IL_0000: ldc.i4 0
IL_0005: stloc 2 (System.Boolean)
IL_0009: ldc.i4 0
IL_000E: stloc 3 (System.Boolean)
IL_0012: ldc.i4.1
IL_0013: stloc 3 (System.Boolean)
IL_0017: ldloc 3 (System.Boolean)
IL_001B: brfalse => Label1
IL_0020: ldarg 0
IL_0024: ldarg 1
IL_0028: ldloca 2 (System.Boolean)
IL_002C: call static System.Boolean
AlienRace.HarmonyPatches::WantsToUseStylePrefix(Verse.Pawn pawn,
RimWorld.StyleItemDef styleItemDef, System.Boolean& __result)
IL_0031: stloc 3 (System.Boolean)
IL_0035: Label1
IL_0035: nop
IL_0036: ldloc 3 (System.Boolean)
IL_003A: brfalse => Label0
IL_003F: // start original
IL_003F: ldarg.0
IL_0040: ldfld RimWorld.Pawn_GeneTracker Verse.Pawn::genes
IL_0045: brfalse => Label2
IL_004A: call static System.Boolean Verse.ModsConfig::get_BiotechActive()
IL_004F: brfalse => Label3
IL_0054: ldarg.0
IL_0055: ldfld RimWorld.Pawn_GeneTracker Verse.Pawn::genes
IL_005A: ldarg.1
IL_005B: callvirt System.Boolean
RimWorld.Pawn_GeneTracker::StyleItemAllowed(RimWorld.StyleItemDef styleItem)
IL_0060: brtrue => Label4
IL_0065: ldc.i4.0
IL_0066: br => Label19
IL_006B: Label2
IL_006B: Label3
IL_006B: Label4
IL_006B: ldarg.1
IL_006C: isinst RimWorld.TattooDef
IL_0071: dup
IL_0072: stloc.0
IL_0073: brfalse => Label5
IL_0078: ldstr "Tattoos"
IL_007D: call static System.Boolean
Verse.ModLister::CheckIdeology(System.String featureNameSingular)
IL_0082: brtrue => Label6
IL_0087: ldc.i4.0
IL_0088: br => Label20
IL_008D: Label6
IL_008D: ldarga.s 2
IL_008F: call System.Boolean
System.Nullable`1<RimWorld.TattooType>::get_HasValue()
IL_0094: brfalse => Label7
IL_0099: ldloc.0
IL_009A: ldfld RimWorld.TattooType RimWorld.TattooDef::tattooType
IL_009F: ldarga.s 2
IL_00A1: call RimWorld.TattooType
System.Nullable`1<RimWorld.TattooType>::get_Value()
IL_00A6: beq => Label8
IL_00AB: ldc.i4.0
IL_00AC: br => Label21
IL_00B1: Label5
IL_00B1: ldarg.1
IL_00B2: isinst RimWorld.BeardDef
IL_00B7: brfalse => Label9
IL_00BC: ldarg.0
IL_00BD: ldfld RimWorld.Pawn_StyleTracker Verse.Pawn::style
IL_00C2: callvirt System.Boolean RimWorld.Pawn_StyleTracker::get_CanWantBeard()
IL_00C7: brtrue => Label10
IL_00CC: ldarg.1
IL_00CD: ldsfld RimWorld.BeardDef RimWorld.BeardDefOf::NoBeard
IL_00D2: ceq
IL_00D4: br => Label22
IL_00D9: Label9
IL_00D9: ldarg.1
IL_00DA: isinst RimWorld.HairDef
IL_00DF: dup
IL_00E0: stloc.1
IL_00E1: brfalse => Label11
IL_00E6: ldarg.0
IL_00E7: ldloc.1
IL_00E8: call static System.Boolean
RimWorld.PawnStyleItemChooser::AgeAppropriateHairStyle(Verse.Pawn pawn,
RimWorld.HairDef hair)
IL_00ED: brtrue => Label12
IL_00F2: ldc.i4.0
IL_00F3: br => Label23
IL_00F8: Label7
IL_00F8: Label8
IL_00F8: Label10
IL_00F8: Label11
IL_00F8: Label12
IL_00F8: ldarg.0
IL_00F9: callvirt RimWorld.Ideo Verse.Pawn::get_Ideo()
IL_00FE: brfalse => Label13
IL_0103: call static RimWorld.IdeoManager Verse.Find::get_IdeoManager()
IL_0108: ldfld System.Boolean RimWorld.IdeoManager::classicMode
IL_010D: brfalse => Label14
IL_0112: Label13
IL_0112: ldc.i4.1
IL_0113: br => Label24
IL_0118: Label14
IL_0118: ldarg.0
IL_0119: callvirt RimWorld.Ideo Verse.Pawn::get_Ideo()
IL_011E: ldfld RimWorld.IdeoStyleTracker RimWorld.Ideo::style
IL_0123: ldarg.1
IL_0124: callvirt RimWorld.StyleItemFrequency
RimWorld.IdeoStyleTracker::GetFrequency(RimWorld.StyleItemDef def)
IL_0129: brfalse => Label15
IL_012E: ldc.i4.1
IL_012F: br => Label25
IL_0134: Label15
IL_0134: ldarg.0
IL_0135: ldfld RimWorld.Pawn_GeneTracker Verse.Pawn::genes
IL_013A: brfalse => Label16
IL_013F: call static System.Boolean Verse.ModsConfig::get_BiotechActive()
IL_0144: brfalse => Label17
IL_0149: ldarg.0
IL_014A: ldfld RimWorld.Pawn_GeneTracker Verse.Pawn::genes
IL_014F: ldarg.1
IL_0150: callvirt System.Boolean
RimWorld.Pawn_GeneTracker::StyleItemAllowed(RimWorld.StyleItemDef styleItem)
IL_0155: brfalse => Label18
IL_015A: ldc.i4.1
IL_015B: br => Label26
IL_0160: Label16
IL_0160: Label17
IL_0160: Label18
IL_0160: ldc.i4.0
IL_0161: // end original
IL_0161: Label19
IL_0161: Label20
IL_0161: Label21
IL_0161: Label22
IL_0161: Label23
IL_0161: Label24
IL_0161: Label25
IL_0161: Label26
IL_0161: stloc 2 (System.Boolean)
IL_0165: Label0
IL_0165: ldarg 0
IL_0169: ldarg 1
IL_016D: ldloca 2 (System.Boolean)
IL_0171: call static System.Void
AlienRace.HarmonyPatches::WantsToUseStylePostfix(Verse.Pawn pawn,
RimWorld.StyleItemDef styleItemDef, System.Boolean& __result)
IL_0176: ldloc 2 (System.Boolean)
IL_017A: ret
DONE

### Patch: virtual System.Void


RimWorld.PreceptComp_SelfTookMemoryThought::Notify_MemberTookAction(RimWorld.Histor
yEvent ev, RimWorld.Precept precept, System.Boolean canApplySelfTookThoughts)
### Replacement: static System.Void
RimWorld.PreceptComp_SelfTookMemoryThought::RimWorld.PreceptComp_SelfTookMemoryThou
ght.Notify_MemberTookAction_Patch0(RimWorld.PreceptComp_SelfTookMemoryThought this,
RimWorld.HistoryEvent ev, RimWorld.Precept precept, System.Boolean
canApplySelfTookThoughts)
IL_0000: Local var 0: Verse.Pawn
IL_0000: Local var 1: RimWorld.Thought_Memory
IL_0000: Local var 2: RimWorld.Thought_KilledInnocentAnimal
IL_0000: Local var 3: Verse.Pawn
IL_0000: Local var 4: RimWorld.Thought_MemoryObservation
IL_0000: Local var 5: Verse.Corpse
IL_0000: Local var 6: RimWorld.ThoughtDef
IL_0000: // start original
IL_0000: ldarg.1
IL_0001: ldfld RimWorld.HistoryEventDef RimWorld.HistoryEvent::def
IL_0006: ldarg.0
IL_0007: ldfld RimWorld.HistoryEventDef
RimWorld.PreceptComp_SelfTookMemoryThought::eventDef
IL_000C: bne.un => Label0
IL_0011: ldarg.3
IL_0012: brtrue => Label1
IL_0017: Label0
IL_0017: br => Label12
IL_001C: Label1
IL_001C: ldarga.s 1
IL_001E: ldflda RimWorld.SignalArgs RimWorld.HistoryEvent::args
IL_0023: ldsfld System.String RimWorld.HistoryEventArgsNames::Doer
IL_0028: call Verse.Pawn RimWorld.SignalArgs::GetArg(System.String name)
IL_002D: stloc.0
IL_002E: ldloc.0
IL_002F: ldfld RimWorld.Pawn_NeedsTracker Verse.Pawn::needs
IL_0034: brfalse => Label2
IL_0039: ldloc.0
IL_003A: ldfld RimWorld.Pawn_NeedsTracker Verse.Pawn::needs
IL_003F: ldfld RimWorld.Need_Mood RimWorld.Pawn_NeedsTracker::mood
IL_0044: brfalse => Label3
IL_0049: ldarg.0
IL_004A: ldfld System.Boolean
RimWorld.PreceptComp_SelfTookMemoryThought::onlyForNonSlaves
IL_004F: brfalse => Label4
IL_0054: ldloc.0
IL_0055: callvirt System.Boolean Verse.Pawn::get_IsSlave()
IL_005A: brtrue => Label5
IL_005F: Label4
IL_005F: ldarg.0
IL_0060: ldfld RimWorld.ThoughtDef RimWorld.PreceptComp_Thought::thought
IL_0065: ldarg.0
IL_0066: ldarg.1
IL_0067: ldarg.2
IL_0068: call static RimWorld.ThoughtDef
AlienRace.HarmonyPatches::SelfTookGetHistoryEventThoughtDefReplacer(RimWorld.Though
tDef thought, RimWorld.PreceptComp_SelfTookMemoryThought comp,
RimWorld.HistoryEvent ev, RimWorld.Precept precept)
IL_006D: stloc 6
IL_0071: ldloc 6
IL_0075: ldfld RimWorld.ExpectationDef RimWorld.ThoughtDef::minExpectation
IL_007A: brfalse => Label6
IL_007F: ldloc.0
IL_0080: call static RimWorld.ExpectationDef
RimWorld.ExpectationsUtility::CurrentExpectationFor(Verse.Pawn p)
IL_0085: ldfld System.Int32 RimWorld.ExpectationDef::order
IL_008A: ldarg.0
IL_008B: ldfld RimWorld.ThoughtDef RimWorld.PreceptComp_Thought::thought
IL_0090: pop
IL_0091: ldloc 6
IL_0095: ldfld RimWorld.ExpectationDef RimWorld.ThoughtDef::minExpectation
IL_009A: ldfld System.Int32 RimWorld.ExpectationDef::order
IL_009F: bge => Label7
IL_00A4: br => Label13
IL_00A9: Label6
IL_00A9: Label7
IL_00A9: ldarg.0
IL_00AA: ldfld RimWorld.ThoughtDef RimWorld.PreceptComp_Thought::thought
IL_00AF: pop
IL_00B0: ldloc 6
IL_00B4: ldarg.2
IL_00B5: call static RimWorld.Thought_Memory
RimWorld.ThoughtMaker::MakeThought(RimWorld.ThoughtDef def, RimWorld.Precept
sourcePrecept)
IL_00BA: stloc.1
IL_00BB: ldloc.1
IL_00BC: isinst RimWorld.Thought_KilledInnocentAnimal
IL_00C1: dup
IL_00C2: stloc.2
IL_00C3: brfalse => Label8
IL_00C8: ldarga.s 1
IL_00CA: ldflda RimWorld.SignalArgs RimWorld.HistoryEvent::args
IL_00CF: ldsfld System.String RimWorld.HistoryEventArgsNames::Victim
IL_00D4: ldloca.s 3 (Verse.Pawn)
IL_00D6: call System.Boolean RimWorld.SignalArgs::TryGetArg(System.String
name, Verse.Pawn& arg)
IL_00DB: brfalse => Label9
IL_00E0: ldloc.2
IL_00E1: ldloc.3
IL_00E2: callvirt System.Void
RimWorld.Thought_KilledInnocentAnimal::SetAnimal(Verse.Pawn animal)
IL_00E7: Label8
IL_00E7: Label9
IL_00E7: ldloc.1
IL_00E8: isinst RimWorld.Thought_MemoryObservation
IL_00ED: dup
IL_00EE: stloc.s 4 (RimWorld.Thought_MemoryObservation)
IL_00F0: brfalse => Label10
IL_00F5: ldarga.s 1
IL_00F7: ldflda RimWorld.SignalArgs RimWorld.HistoryEvent::args
IL_00FC: ldsfld System.String RimWorld.HistoryEventArgsNames::Subject
IL_0101: ldloca.s 5 (Verse.Corpse)
IL_0103: call System.Boolean RimWorld.SignalArgs::TryGetArg(System.String
name, Verse.Corpse& arg)
IL_0108: brfalse => Label11
IL_010D: ldloc.s 4 (RimWorld.Thought_MemoryObservation)
IL_010F: ldloc.s 5 (Verse.Corpse)
IL_0111: callvirt virtual System.Void
RimWorld.Thought_MemoryObservation::set_Target(Verse.Thing value)
IL_0116: Label10
IL_0116: Label11
IL_0116: ldloc.0
IL_0117: ldfld RimWorld.Pawn_NeedsTracker Verse.Pawn::needs
IL_011C: ldfld RimWorld.Need_Mood RimWorld.Pawn_NeedsTracker::mood
IL_0121: ldfld RimWorld.ThoughtHandler RimWorld.Need_Mood::thoughts
IL_0126: ldfld RimWorld.MemoryThoughtHandler RimWorld.ThoughtHandler::memories
IL_012B: ldloc.1
IL_012C: ldnull
IL_012D: callvirt System.Void
RimWorld.MemoryThoughtHandler::TryGainMemory(RimWorld.Thought_Memory newThought,
Verse.Pawn otherPawn)
IL_0132: // end original
IL_0132: Label2
IL_0132: Label3
IL_0132: Label5
IL_0132: Label12
IL_0132: Label13
IL_0132: ret
DONE
### Patch: virtual System.Void
RimWorld.PreceptComp_KnowsMemoryThought::Notify_MemberWitnessedAction(RimWorld.Hist
oryEvent ev, RimWorld.Precept precept, Verse.Pawn member)
### Replacement: static System.Void
RimWorld.PreceptComp_KnowsMemoryThought::RimWorld.PreceptComp_KnowsMemoryThought.No
tify_MemberWitnessedAction_Patch0(RimWorld.PreceptComp_KnowsMemoryThought this,
RimWorld.HistoryEvent ev, RimWorld.Precept precept, Verse.Pawn member)
IL_0000: Local var 0: System.Boolean
IL_0000: Local var 1: Verse.Pawn
IL_0000: Local var 2: System.Boolean
IL_0000: Local var 3:
System.Collections.Generic.List`1/Enumerator<RimWorld.ThoughtStage>
IL_0000: Local var 4: RimWorld.Thought_Memory
IL_0000: Local var 5: System.Int32
IL_0000: Local var 6: RimWorld.Thought_KilledInnocentAnimal
IL_0000: Local var 7: Verse.Pawn
IL_0000: Local var 8: RimWorld.ThoughtDef
IL_0000: // start original
IL_0000: ldarg.1
IL_0001: ldfld RimWorld.HistoryEventDef RimWorld.HistoryEvent::def
IL_0006: ldarg.0
IL_0007: ldfld RimWorld.HistoryEventDef
RimWorld.PreceptComp_KnowsMemoryThought::eventDef
IL_000C: beq => Label0
IL_0011: br => Label25
IL_0016: Label0
IL_0016: ldarg.2
IL_0017: ldfld RimWorld.PreceptDef RimWorld.Precept::def
IL_001C: ldfld System.Boolean RimWorld.PreceptDef::enabledForNPCFactions
IL_0021: brtrue => Label1
IL_0026: ldarg.3
IL_0027: call static System.Boolean
RimWorld.IdeoUtility::CountsAsNonNPCForPrecepts(Verse.Pawn pawn)
IL_002C: brtrue => Label2
IL_0031: br => Label26
IL_0036: Label1
IL_0036: Label2
IL_0036: ldarga.s 1
IL_0038: ldflda RimWorld.SignalArgs RimWorld.HistoryEvent::args
IL_003D: ldsfld System.String RimWorld.HistoryEventArgsNames::Doer
IL_0042: ldloca.s 1 (Verse.Pawn)
IL_0044: call System.Boolean RimWorld.SignalArgs::TryGetArg(System.String
name, Verse.Pawn& arg)
IL_0049: stloc.0
IL_004A: ldarg.0
IL_004B: ldfld RimWorld.ThoughtDef RimWorld.PreceptComp_Thought::thought
IL_0050: ldarg.0
IL_0051: ldarg.1
IL_0052: ldarg.2
IL_0053: call static RimWorld.ThoughtDef
AlienRace.HarmonyPatches::KnowsGetHistoryEventThoughtDefReplacer(RimWorld.ThoughtDe
f thought, RimWorld.PreceptComp_KnowsMemoryThought comp, RimWorld.HistoryEvent ev,
RimWorld.Precept precept)
IL_0058: stloc 8
IL_005C: ldc.i4.0
IL_005D: stloc.2
IL_005E: ldarg.0
IL_005F: ldflda System.Nullable`1<System.Boolean>
RimWorld.PreceptComp_KnowsMemoryThought::doerMustBeMyFaction
IL_0064: call System.Boolean
System.Nullable`1<System.Boolean>::get_HasValue()
IL_0069: brfalse => Label3
IL_006E: ldarg.0
IL_006F: ldflda System.Nullable`1<System.Boolean>
RimWorld.PreceptComp_KnowsMemoryThought::doerMustBeMyFaction
IL_0074: call System.Boolean System.Nullable`1<System.Boolean>::get_Value()
IL_0079: stloc.2
IL_007A: br => Label4
IL_007F: Label3
IL_007F: ldloc.0
IL_0080: brfalse => Label5
IL_0085: ldarg.0
IL_0086: ldfld RimWorld.ThoughtDef RimWorld.PreceptComp_Thought::thought
IL_008B: pop
IL_008C: ldloc 8
IL_0090: ldfld System.Collections.Generic.List`1<RimWorld.ThoughtStage>
RimWorld.ThoughtDef::stages
IL_0095: callvirt System.Collections.Generic.Enumerator<RimWorld.ThoughtStage>
System.Collections.Generic.List`1<RimWorld.ThoughtStage>::GetEnumerator()
IL_009A: stloc.3
.try
{
IL_009B: br => Label6
IL_00A0: Label9
IL_00A0: ldloca.s 3
(System.Collections.Generic.List`1+Enumerator[RimWorld.ThoughtStage])
IL_00A2: call virtual RimWorld.ThoughtStage
System.Collections.Generic.Enumerator<RimWorld.ThoughtStage>::get_Current()
IL_00A7: ldfld System.Single RimWorld.ThoughtStage::baseMoodEffect
IL_00AC: ldc.r4 0
IL_00B1: beq => Label7
IL_00B6: ldc.i4.1
IL_00B7: stloc.2
IL_00B8: leave => Label8
IL_00BD: Label6
IL_00BD: Label7
IL_00BD: ldloca.s 3
(System.Collections.Generic.List`1+Enumerator[RimWorld.ThoughtStage])
IL_00BF: call virtual System.Boolean
System.Collections.Generic.Enumerator<RimWorld.ThoughtStage>::MoveNext()
IL_00C4: brtrue => Label9
IL_00C9: leave => Label10
IL_00CE: leave => (autogenerated)
} // end try
.finally
{
IL_00D3: ldloca.s 3
(System.Collections.Generic.List`1+Enumerator[RimWorld.ThoughtStage])
IL_00D5: constrained.
System.Collections.Generic.List`1+Enumerator[RimWorld.ThoughtStage]
IL_00DB: callvirt abstract virtual System.Void
System.IDisposable::Dispose()
IL_00E0: endfinally
IL_00E1: leave => (autogenerated)
} // end handler
IL_00E2: Label5
IL_00E2: ldc.i4.0
IL_00E3: stloc.2
IL_00E4: Label4
IL_00E4: Label8
IL_00E4: Label10
IL_00E4: ldarg.3
IL_00E5: ldfld RimWorld.Pawn_NeedsTracker Verse.Pawn::needs
IL_00EA: brfalse => Label11
IL_00EF: ldarg.3
IL_00F0: ldfld RimWorld.Pawn_NeedsTracker Verse.Pawn::needs
IL_00F5: ldfld RimWorld.Need_Mood RimWorld.Pawn_NeedsTracker::mood
IL_00FA: brfalse => Label12
IL_00FF: ldloc.2
IL_0100: brfalse => Label13
IL_0105: ldloc.0
IL_0106: brfalse => Label14
IL_010B: ldloc.1
IL_010C: callvirt virtual RimWorld.Faction Verse.Thing::get_Faction()
IL_0111: ldarg.3
IL_0112: callvirt virtual RimWorld.Faction Verse.Thing::get_Faction()
IL_0117: bne.un => Label15
IL_011C: Label13
IL_011C: ldarg.0
IL_011D: ldfld System.Boolean
RimWorld.PreceptComp_KnowsMemoryThought::doerMustBeMyIdeo
IL_0122: brfalse => Label16
IL_0127: ldloc.1
IL_0128: callvirt RimWorld.Ideo Verse.Pawn::get_Ideo()
IL_012D: ldarg.3
IL_012E: callvirt RimWorld.Ideo Verse.Pawn::get_Ideo()
IL_0133: bne.un => Label17
IL_0138: Label16
IL_0138: ldarg.0
IL_0139: ldfld System.Boolean
RimWorld.PreceptComp_KnowsMemoryThought::onlyForNonSlaves
IL_013E: brfalse => Label18
IL_0143: ldarg.3
IL_0144: callvirt System.Boolean Verse.Pawn::get_IsSlave()
IL_0149: brtrue => Label19
IL_014E: Label18
IL_014E: ldtoken RimWorld.Thought_MemorySocial
IL_0153: call static System.Type
System.Type::GetTypeFromHandle(System.RuntimeTypeHandle handle)
IL_0158: ldarg.0
IL_0159: ldfld RimWorld.ThoughtDef RimWorld.PreceptComp_Thought::thought
IL_015E: pop
IL_015F: ldloc 8
IL_0163: ldfld System.Type RimWorld.ThoughtDef::thoughtClass
IL_0168: callvirt virtual System.Boolean
System.Type::IsAssignableFrom(System.Type c)
IL_016D: ldc.i4.0
IL_016E: ceq
IL_0170: ldloc.0
IL_0171: or
IL_0172: brfalse => Label20
IL_0177: ldarg.0
IL_0178: ldfld RimWorld.ThoughtDef RimWorld.PreceptComp_Thought::thought
IL_017D: pop
IL_017E: ldloc 8
IL_0182: ldarg.2
IL_0183: call static RimWorld.Thought_Memory
RimWorld.ThoughtMaker::MakeThought(RimWorld.ThoughtDef def, RimWorld.Precept
sourcePrecept)
IL_0188: stloc.s 4 (RimWorld.Thought_Memory)
IL_018A: ldarga.s 1
IL_018C: ldflda RimWorld.SignalArgs RimWorld.HistoryEvent::args
IL_0191: ldsfld System.String
RimWorld.HistoryEventArgsNames::ExecutionThoughtStage
IL_0196: ldloca.s 5 (System.Int32)
IL_0198: call System.Boolean RimWorld.SignalArgs::TryGetArg(System.String
name, System.Int32& arg)
IL_019D: brfalse => Label21
IL_01A2: ldloc.s 4 (RimWorld.Thought_Memory)
IL_01A4: ldloc.s 5 (System.Int32)
IL_01A6: ldarg.0
IL_01A7: ldfld RimWorld.ThoughtDef RimWorld.PreceptComp_Thought::thought
IL_01AC: pop
IL_01AD: ldloc 8
IL_01B1: ldfld System.Collections.Generic.List`1<RimWorld.ThoughtStage>
RimWorld.ThoughtDef::stages
IL_01B6: callvirt virtual System.Int32
System.Collections.Generic.List`1<RimWorld.ThoughtStage>::get_Count()
IL_01BB: ldc.i4.1
IL_01BC: sub
IL_01BD: call static System.Int32 System.Math::Min(System.Int32 val1,
System.Int32 val2)
IL_01C2: callvirt System.Void
RimWorld.Thought_Memory::SetForcedStage(System.Int32 stageIndex)
IL_01C7: Label21
IL_01C7: ldloc.s 4 (RimWorld.Thought_Memory)
IL_01C9: isinst RimWorld.Thought_KilledInnocentAnimal
IL_01CE: dup
IL_01CF: stloc.s 6 (RimWorld.Thought_KilledInnocentAnimal)
IL_01D1: brfalse => Label22
IL_01D6: ldarga.s 1
IL_01D8: ldflda RimWorld.SignalArgs RimWorld.HistoryEvent::args
IL_01DD: ldsfld System.String RimWorld.HistoryEventArgsNames::Victim
IL_01E2: ldloca.s 7 (Verse.Pawn)
IL_01E4: call System.Boolean RimWorld.SignalArgs::TryGetArg(System.String
name, Verse.Pawn& arg)
IL_01E9: brfalse => Label23
IL_01EE: ldloc.s 6 (RimWorld.Thought_KilledInnocentAnimal)
IL_01F0: ldloc.s 7 (Verse.Pawn)
IL_01F2: callvirt System.Void
RimWorld.Thought_KilledInnocentAnimal::SetAnimal(Verse.Pawn animal)
IL_01F7: Label22
IL_01F7: Label23
IL_01F7: ldarg.3
IL_01F8: ldfld RimWorld.Pawn_NeedsTracker Verse.Pawn::needs
IL_01FD: ldfld RimWorld.Need_Mood RimWorld.Pawn_NeedsTracker::mood
IL_0202: ldfld RimWorld.ThoughtHandler RimWorld.Need_Mood::thoughts
IL_0207: ldfld RimWorld.MemoryThoughtHandler RimWorld.ThoughtHandler::memories
IL_020C: ldloc.s 4 (RimWorld.Thought_Memory)
IL_020E: ldloc.1
IL_020F: callvirt System.Void
RimWorld.MemoryThoughtHandler::TryGainMemory(RimWorld.Thought_Memory newThought,
Verse.Pawn otherPawn)
IL_0214: ldarg.0
IL_0215: ldfld RimWorld.ThoughtDef
RimWorld.PreceptComp_KnowsMemoryThought::removesThought
IL_021A: brfalse => Label24
IL_021F: ldarg.3
IL_0220: ldfld RimWorld.Pawn_NeedsTracker Verse.Pawn::needs
IL_0225: ldfld RimWorld.Need_Mood RimWorld.Pawn_NeedsTracker::mood
IL_022A: ldfld RimWorld.ThoughtHandler RimWorld.Need_Mood::thoughts
IL_022F: ldfld RimWorld.MemoryThoughtHandler RimWorld.ThoughtHandler::memories
IL_0234: ldarg.0
IL_0235: ldfld RimWorld.ThoughtDef
RimWorld.PreceptComp_KnowsMemoryThought::removesThought
IL_023A: callvirt System.Void
RimWorld.MemoryThoughtHandler::RemoveMemoriesOfDef(RimWorld.ThoughtDef def)
IL_023F: // end original
IL_023F: Label11
IL_023F: Label12
IL_023F: Label14
IL_023F: Label15
IL_023F: Label17
IL_023F: Label19
IL_023F: Label20
IL_023F: Label24
IL_023F: Label25
IL_023F: Label26
IL_023F: ret
DONE

### Patch: static System.Single


RimWorld.PawnStyleItemChooser::TotalStyleItemLikelihood(RimWorld.StyleItemDef
styleItem, Verse.Pawn pawn)
### Replacement: static System.Single
RimWorld.PawnStyleItemChooser::RimWorld.PawnStyleItemChooser.TotalStyleItemLikeliho
od_Patch1(RimWorld.StyleItemDef styleItem, Verse.Pawn pawn)
IL_0000: Local var 0: System.Single
IL_0000: ldc.r4 0
IL_0005: stloc 0 (System.Single)
IL_0009: // start original
IL_0009: ldarg.0
IL_000A: ldarg.1
IL_000B: call static System.Single
RimWorld.PawnStyleItemChooser::StyleItemChoiceLikelihoodFor(RimWorld.StyleItemDef
styleItem, Verse.Pawn pawn)
IL_0010: ldarg.1
IL_0011: ldarg.0
IL_0012: call static System.Single
RimWorld.PawnStyleItemChooser::GetFrequencyFromIdeo(Verse.Pawn pawn,
RimWorld.StyleItemDef styleItem)
IL_0017: mul
IL_0018: // end original
IL_0018: stloc 0 (System.Single)
IL_001C: ldloca 0 (System.Single)
IL_0020: call static System.Void
AlienRace.HarmonyPatches::TotalStyleItemLikelihoodPostfix(System.Single& __result)
IL_0025: ldloc 0 (System.Single)
IL_0029: ret
DONE

### Patch: System.Single Verse.Thing::Ingested(Verse.Pawn ingester, System.Single


nutritionWanted)
### Replacement: static System.Single
Verse.Thing::Verse.Thing.Ingested_Patch1(Verse.Thing this, Verse.Pawn ingester,
System.Single nutritionWanted)
IL_0000: Local var 0: System.Boolean
IL_0000: Local var 1: System.Boolean
IL_0000: Local var 2: RimWorld.CompIngredients
IL_0000: Local var 3: System.Int32
IL_0000: Local var 4: System.Single
IL_0000: Local var 5: System.Single
IL_0000: Local var 6: System.Single
IL_0000: Local var 7: System.Collections.Generic.List`1<Verse.Hediff>
IL_0000: Local var 8: System.Boolean
IL_0000: Local var 9:
System.Collections.Generic.List`1<RimWorld.FoodUtility/ThoughtFromIngesting>
IL_0000: Local var 10: System.Int32
IL_0000: Local var 11: RimWorld.Thought_Memory
IL_0000: Local var 12: Thought_FoodEaten
IL_0000: Local var 13: RimWorld.FoodKind
IL_0000: Local var 14: System.Boolean
IL_0000: Local var 15: System.Boolean
IL_0000: Local var 16: System.Boolean
IL_0000: Local var 17: System.Boolean
IL_0000: Local var 18: System.Boolean
IL_0000: Local var 19: System.Int32
IL_0000: Local var 20: RimWorld.JoyKindDef
IL_0000: Local var 21: System.Int32
IL_0000: Local var 22: System.Int32
IL_0000: Local var 23: System.Single
IL_0000: Local var 24: System.Boolean
IL_0000: ldc.r4 0
IL_0005: stloc 23 (System.Single)
IL_0009: ldc.i4 0
IL_000E: stloc 24 (System.Boolean)
IL_0012: ldc.i4.1
IL_0013: stloc 24 (System.Boolean)
IL_0017: ldloc 24 (System.Boolean)
IL_001B: brfalse => Label1
IL_0020: ldarg 1
IL_0024: ldarg.0
IL_0025: call static System.Void
AlienRace.HarmonyPatches::IngestedPrefix(Verse.Pawn ingester, Verse.Thing
__instance)
IL_002A: Label1
IL_002A: nop
IL_002B: ldloc 24 (System.Boolean)
IL_002F: brfalse => Label0
IL_0034: // start original
IL_0034: ldarg.0
IL_0035: call System.Boolean Verse.Thing::get_Destroyed()
IL_003A: brfalse => Label2
IL_003F: ldarg.1
IL_0040: ldstr " ingested destroyed thing "
IL_0045: ldarg.0
IL_0046: call static System.String System.String::Concat(System.Object arg0,
System.Object arg1, System.Object arg2)
IL_004B: call static System.Void Verse.Log::Error(System.String text)
IL_0050: ldc.r4 0
IL_0055: br => Label73
IL_005A: Label2
IL_005A: ldarg.0
IL_005B: callvirt virtual System.Boolean Verse.Thing::get_IngestibleNow()
IL_0060: brtrue => Label3
IL_0065: ldarg.1
IL_0066: ldstr " ingested IngestibleNow=false thing "
IL_006B: ldarg.0
IL_006C: call static System.String System.String::Concat(System.Object arg0,
System.Object arg1, System.Object arg2)
IL_0071: call static System.Void Verse.Log::Error(System.String text)
IL_0076: ldc.r4 0
IL_007B: br => Label74
IL_0080: Label3
IL_0080: ldarg.1
IL_0081: ldfld Verse.AI.Pawn_MindState Verse.Pawn::mindState
IL_0086: call static Verse.TickManager Verse.Find::get_TickManager()
IL_008B: callvirt System.Int32 Verse.TickManager::get_TicksGame()
IL_0090: stfld System.Int32 Verse.AI.Pawn_MindState::lastIngestTick
IL_0095: ldarg.1
IL_0096: ldfld RimWorld.Pawn_NeedsTracker Verse.Pawn::needs
IL_009B: ldfld RimWorld.Need_Mood RimWorld.Pawn_NeedsTracker::mood
IL_00A0: brfalse => Label4
IL_00A5: ldarg.1
IL_00A6: ldarg.0
IL_00A7: ldarg.0
IL_00A8: ldfld Verse.ThingDef Verse.Thing::def
IL_00AD: call static
System.Collections.Generic.List`1<RimWorld.ThoughtFromIngesting>
RimWorld.FoodUtility::ThoughtsFromIngesting(Verse.Pawn ingester, Verse.Thing
foodSource, Verse.ThingDef foodDef)
IL_00B2: stloc.s 9
(System.Collections.Generic.List`1[RimWorld.FoodUtility+ThoughtFromIngesting])
IL_00B4: ldc.i4.0
IL_00B5: stloc.s 10 (System.Int32)
IL_00B7: br => Label5
IL_00BC: Label7
IL_00BC: ldloc.s 9
(System.Collections.Generic.List`1[RimWorld.FoodUtility+ThoughtFromIngesting])
IL_00BE: ldloc.s 10 (System.Int32)
IL_00C0: callvirt virtual RimWorld.ThoughtFromIngesting
System.Collections.Generic.List`1<RimWorld.ThoughtFromIngesting>::get_Item(System.I
nt32 index)
IL_00C5: ldfld RimWorld.ThoughtDef RimWorld.ThoughtFromIngesting::thought
IL_00CA: ldloc.s 9
(System.Collections.Generic.List`1[RimWorld.FoodUtility+ThoughtFromIngesting])
IL_00CC: ldloc.s 10 (System.Int32)
IL_00CE: callvirt virtual RimWorld.ThoughtFromIngesting
System.Collections.Generic.List`1<RimWorld.ThoughtFromIngesting>::get_Item(System.I
nt32 index)
IL_00D3: ldfld RimWorld.Precept RimWorld.ThoughtFromIngesting::fromPrecept
IL_00D8: call static RimWorld.Thought_Memory
RimWorld.ThoughtMaker::MakeThought(RimWorld.ThoughtDef def, RimWorld.Precept
sourcePrecept)
IL_00DD: stloc.s 11 (RimWorld.Thought_Memory)
IL_00DF: ldloc.s 11 (RimWorld.Thought_Memory)
IL_00E1: isinst Thought_FoodEaten
IL_00E6: dup
IL_00E7: stloc.s 12 (Thought_FoodEaten)
IL_00E9: brfalse => Label6
IL_00EE: ldloc.s 12 (Thought_FoodEaten)
IL_00F0: ldarg.0
IL_00F1: callvirt System.Void Thought_FoodEaten::SetFood(Verse.Thing food)
IL_00F6: Label6
IL_00F6: ldarg.1
IL_00F7: ldfld RimWorld.Pawn_NeedsTracker Verse.Pawn::needs
IL_00FC: ldfld RimWorld.Need_Mood RimWorld.Pawn_NeedsTracker::mood
IL_0101: ldfld RimWorld.ThoughtHandler RimWorld.Need_Mood::thoughts
IL_0106: ldfld RimWorld.MemoryThoughtHandler RimWorld.ThoughtHandler::memories
IL_010B: ldloc.s 11 (RimWorld.Thought_Memory)
IL_010D: ldnull
IL_010E: callvirt System.Void
RimWorld.MemoryThoughtHandler::TryGainMemory(RimWorld.Thought_Memory newThought,
Verse.Pawn otherPawn)
IL_0113: ldloc.s 10 (System.Int32)
IL_0115: ldc.i4.1
IL_0116: add
IL_0117: stloc.s 10 (System.Int32)
IL_0119: Label5
IL_0119: ldloc.s 10 (System.Int32)
IL_011B: ldloc.s 9
(System.Collections.Generic.List`1[RimWorld.FoodUtility+ThoughtFromIngesting])
IL_011D: callvirt virtual System.Int32
System.Collections.Generic.List`1<RimWorld.ThoughtFromIngesting>::get_Count()
IL_0122: blt => Label7
IL_0127: Label4
IL_0127: ldarg.1
IL_0128: ldfld RimWorld.Pawn_NeedsTracker Verse.Pawn::needs
IL_012D: ldfld RimWorld.Need_Chemical_Any
RimWorld.Pawn_NeedsTracker::drugsDesire
IL_0132: brfalse => Label8
IL_0137: ldarg.1
IL_0138: ldfld RimWorld.Pawn_NeedsTracker Verse.Pawn::needs
IL_013D: ldfld RimWorld.Need_Chemical_Any
RimWorld.Pawn_NeedsTracker::drugsDesire
IL_0142: ldarg.0
IL_0143: callvirt System.Void
RimWorld.Need_Chemical_Any::Notify_IngestedDrug(Verse.Thing drug)
IL_0148: Label8
IL_0148: ldarg.0
IL_0149: ldarg.0
IL_014A: ldfld Verse.ThingDef Verse.Thing::def
IL_014F: call static System.Boolean
RimWorld.FoodUtility::IsHumanlikeCorpseOrHumanlikeMeat(Verse.Thing source,
Verse.ThingDef foodDef)
IL_0154: stloc.0
IL_0155: ldarg.0
IL_0156: call static System.Boolean
RimWorld.FoodUtility::IsHumanlikeCorpseOrHumanlikeMeatOrIngredient(Verse.Thing
food)
IL_015B: stloc.1
IL_015C: ldloc.0
IL_015D: brfalse => Label9
IL_0162: ldarg.1
IL_0163: callvirt System.Boolean Verse.Pawn::get_IsColonist()
IL_0168: brfalse => Label10
IL_016D: ldsfld RimWorld.TaleDef RimWorld.TaleDefOf::AteRawHumanlikeMeat
IL_0172: ldc.i4.1
IL_0173: newarr System.Object
IL_0178: dup
IL_0179: ldc.i4.0
IL_017A: ldarg.1
IL_017B: stelem.ref
IL_017C: call static RimWorld.Tale
RimWorld.TaleRecorder::RecordTale(RimWorld.TaleDef def, System.Object[] args)
IL_0181: pop
IL_0182: Label9
IL_0182: Label10
IL_0182: ldloc.1
IL_0183: brfalse => Label11
IL_0188: ldarg.1
IL_0189: ldfld Verse.AI.Pawn_MindState Verse.Pawn::mindState
IL_018E: call static Verse.TickManager Verse.Find::get_TickManager()
IL_0193: callvirt System.Int32 Verse.TickManager::get_TicksGame()
IL_0198: stfld System.Int32 Verse.AI.Pawn_MindState::lastHumanMeatIngestedTick
IL_019D: call static RimWorld.HistoryEventsManager
Verse.Find::get_HistoryEventsManager()
IL_01A2: ldsfld RimWorld.HistoryEventDef
RimWorld.HistoryEventDefOf::AteHumanMeat
IL_01A7: ldarg.1
IL_01A8: ldsfld System.String RimWorld.HistoryEventArgsNames::Doer
IL_01AD: call static Verse.NamedArgument
Verse.NamedArgumentUtility::Named(System.Object arg, System.String label)
IL_01B2: newobj System.Void
RimWorld.HistoryEvent::.ctor(RimWorld.HistoryEventDef def, Verse.NamedArgument
arg1)
IL_01B7: ldc.i4.0
IL_01B8: callvirt System.Void
RimWorld.HistoryEventsManager::RecordEvent(RimWorld.HistoryEvent historyEvent,
System.Boolean canApplySelfTookThoughts)
IL_01BD: ldloc.0
IL_01BE: brfalse => Label12
IL_01C3: call static RimWorld.HistoryEventsManager
Verse.Find::get_HistoryEventsManager()
IL_01C8: ldsfld RimWorld.HistoryEventDef
RimWorld.HistoryEventDefOf::AteHumanMeatDirect
IL_01CD: ldarg.1
IL_01CE: ldsfld System.String RimWorld.HistoryEventArgsNames::Doer
IL_01D3: call static Verse.NamedArgument
Verse.NamedArgumentUtility::Named(System.Object arg, System.String label)
IL_01D8: newobj System.Void
RimWorld.HistoryEvent::.ctor(RimWorld.HistoryEventDef def, Verse.NamedArgument
arg1)
IL_01DD: ldc.i4.0
IL_01DE: callvirt System.Void
RimWorld.HistoryEventsManager::RecordEvent(RimWorld.HistoryEvent historyEvent,
System.Boolean canApplySelfTookThoughts)
IL_01E3: br => Label13
IL_01E8: Label11
IL_01E8: call static System.Boolean Verse.ModsConfig::get_IdeologyActive()
IL_01ED: brfalse => Label14
IL_01F2: ldarg.0
IL_01F3: ldfld Verse.ThingDef Verse.Thing::def
IL_01F8: call static System.Boolean
RimWorld.FoodUtility::AcceptableCannibalNonHumanlikeMeatFood(Verse.ThingDef
foodDef)
IL_01FD: brtrue => Label15
IL_0202: call static RimWorld.HistoryEventsManager
Verse.Find::get_HistoryEventsManager()
IL_0207: ldsfld RimWorld.HistoryEventDef
RimWorld.HistoryEventDefOf::AteNonCannibalFood
IL_020C: ldarg.1
IL_020D: ldsfld System.String RimWorld.HistoryEventArgsNames::Doer
IL_0212: call static Verse.NamedArgument
Verse.NamedArgumentUtility::Named(System.Object arg, System.String label)
IL_0217: newobj System.Void
RimWorld.HistoryEvent::.ctor(RimWorld.HistoryEventDef def, Verse.NamedArgument
arg1)
IL_021C: ldc.i4.0
IL_021D: callvirt System.Void
RimWorld.HistoryEventsManager::RecordEvent(RimWorld.HistoryEvent historyEvent,
System.Boolean canApplySelfTookThoughts)
IL_0222: Label12
IL_0222: Label13
IL_0222: Label14
IL_0222: Label15
IL_0222: ldarg.0
IL_0223: ldfld Verse.ThingDef Verse.Thing::def
IL_0228: ldfld RimWorld.IngestibleProperties Verse.ThingDef::ingestible
IL_022D: ldfld RimWorld.HistoryEventDef
RimWorld.IngestibleProperties::ateEvent
IL_0232: brfalse => Label16
IL_0237: call static RimWorld.HistoryEventsManager
Verse.Find::get_HistoryEventsManager()
IL_023C: ldarg.0
IL_023D: ldfld Verse.ThingDef Verse.Thing::def
IL_0242: ldfld RimWorld.IngestibleProperties Verse.ThingDef::ingestible
IL_0247: ldfld RimWorld.HistoryEventDef
RimWorld.IngestibleProperties::ateEvent
IL_024C: ldarg.1
IL_024D: ldsfld System.String RimWorld.HistoryEventArgsNames::Doer
IL_0252: call static Verse.NamedArgument
Verse.NamedArgumentUtility::Named(System.Object arg, System.String label)
IL_0257: newobj System.Void
RimWorld.HistoryEvent::.ctor(RimWorld.HistoryEventDef def, Verse.NamedArgument
arg1)
IL_025C: ldc.i4.0
IL_025D: callvirt System.Void
RimWorld.HistoryEventsManager::RecordEvent(RimWorld.HistoryEvent historyEvent,
System.Boolean canApplySelfTookThoughts)
IL_0262: Label16
IL_0262: call static System.Boolean Verse.ModsConfig::get_IdeologyActive()
IL_0267: brfalse => Label17
IL_026C: ldarg.0
IL_026D: call static RimWorld.FoodKind
RimWorld.FoodUtility::GetFoodKind(Verse.Thing food)
IL_0272: stloc.s 13 (RimWorld.FoodKind)
IL_0274: ldloc.s 13 (RimWorld.FoodKind)
IL_0276: ldc.i4.2
IL_0277: beq => Label18
IL_027C: ldarg.0
IL_027D: ldfld Verse.ThingDef Verse.Thing::def
IL_0282: callvirt System.Boolean Verse.ThingDef::get_IsProcessedFood()
IL_0287: brtrue => Label19
IL_028C: ldloc.s 13 (RimWorld.FoodKind)
IL_028E: brtrue => Label20
IL_0293: ldloc.1
IL_0294: brtrue => Label21
IL_0299: call static RimWorld.HistoryEventsManager
Verse.Find::get_HistoryEventsManager()
IL_029E: ldsfld RimWorld.HistoryEventDef RimWorld.HistoryEventDefOf::AteMeat
IL_02A3: ldarg.1
IL_02A4: ldsfld System.String RimWorld.HistoryEventArgsNames::Doer
IL_02A9: call static Verse.NamedArgument
Verse.NamedArgumentUtility::Named(System.Object arg, System.String label)
IL_02AE: newobj System.Void
RimWorld.HistoryEvent::.ctor(RimWorld.HistoryEventDef def, Verse.NamedArgument
arg1)
IL_02B3: ldc.i4.0
IL_02B4: callvirt System.Void
RimWorld.HistoryEventsManager::RecordEvent(RimWorld.HistoryEvent historyEvent,
System.Boolean canApplySelfTookThoughts)
IL_02B9: br => Label22
IL_02BE: Label20
IL_02BE: ldarg.0
IL_02BF: ldfld Verse.ThingDef Verse.Thing::def
IL_02C4: callvirt System.Boolean Verse.ThingDef::get_IsDrug()
IL_02C9: brtrue => Label23
IL_02CE: ldarg.0
IL_02CF: ldfld Verse.ThingDef Verse.Thing::def
IL_02D4: ldfld RimWorld.IngestibleProperties Verse.ThingDef::ingestible
IL_02D9: callvirt System.Single
RimWorld.IngestibleProperties::get_CachedNutrition()
IL_02DE: ldc.r4 0
IL_02E3: ble.un => Label24
IL_02E8: call static RimWorld.HistoryEventsManager
Verse.Find::get_HistoryEventsManager()
IL_02ED: ldsfld RimWorld.HistoryEventDef RimWorld.HistoryEventDefOf::AteNonMeat
IL_02F2: ldarg.1
IL_02F3: ldsfld System.String RimWorld.HistoryEventArgsNames::Doer
IL_02F8: call static Verse.NamedArgument
Verse.NamedArgumentUtility::Named(System.Object arg, System.String label)
IL_02FD: newobj System.Void
RimWorld.HistoryEvent::.ctor(RimWorld.HistoryEventDef def, Verse.NamedArgument
arg1)
IL_0302: ldc.i4.0
IL_0303: callvirt System.Void
RimWorld.HistoryEventsManager::RecordEvent(RimWorld.HistoryEvent historyEvent,
System.Boolean canApplySelfTookThoughts)
IL_0308: Label18
IL_0308: Label19
IL_0308: Label21
IL_0308: Label22
IL_0308: Label23
IL_0308: Label24
IL_0308: ldarg.0
IL_0309: ldarg.1
IL_030A: call static System.Boolean
RimWorld.FoodUtility::IsVeneratedAnimalMeatOrCorpseOrHasIngredients(Verse.Thing
food, Verse.Pawn ingester)
IL_030F: brfalse => Label25
IL_0314: call static RimWorld.HistoryEventsManager
Verse.Find::get_HistoryEventsManager()
IL_0319: ldsfld RimWorld.HistoryEventDef
RimWorld.HistoryEventDefOf::AteVeneratedAnimalMeat
IL_031E: ldarg.1
IL_031F: ldsfld System.String RimWorld.HistoryEventArgsNames::Doer
IL_0324: call static Verse.NamedArgument
Verse.NamedArgumentUtility::Named(System.Object arg, System.String label)
IL_0329: newobj System.Void
RimWorld.HistoryEvent::.ctor(RimWorld.HistoryEventDef def, Verse.NamedArgument
arg1)
IL_032E: ldc.i4.0
IL_032F: callvirt System.Void
RimWorld.HistoryEventsManager::RecordEvent(RimWorld.HistoryEvent historyEvent,
System.Boolean canApplySelfTookThoughts)
IL_0334: Label25
IL_0334: ldarg.0
IL_0335: ldfld Verse.ThingDef Verse.Thing::def
IL_033A: ldfld System.Collections.Generic.List`1<Verse.ThingCategoryDef>
Verse.ThingDef::thingCategories
IL_033F: brfalse => Label26
IL_0344: ldarg.0
IL_0345: ldfld Verse.ThingDef Verse.Thing::def
IL_034A: ldfld System.Collections.Generic.List`1<Verse.ThingCategoryDef>
Verse.ThingDef::thingCategories
IL_034F: ldsfld Verse.ThingCategoryDef
RimWorld.ThingCategoryDefOf::PlantFoodRaw
IL_0354: callvirt virtual System.Boolean
System.Collections.Generic.List`1<Verse.ThingCategoryDef>::Contains(Verse.ThingCate
goryDef item)
IL_0359: brfalse => Label27
IL_035E: ldarg.0
IL_035F: ldfld Verse.ThingDef Verse.Thing::def
IL_0364: callvirt System.Boolean Verse.ThingDef::get_IsFungus()
IL_0369: brfalse => Label28
IL_036E: call static RimWorld.HistoryEventsManager
Verse.Find::get_HistoryEventsManager()
IL_0373: ldsfld RimWorld.HistoryEventDef RimWorld.HistoryEventDefOf::AteFungus
IL_0378: ldarg.1
IL_0379: ldsfld System.String RimWorld.HistoryEventArgsNames::Doer
IL_037E: call static Verse.NamedArgument
Verse.NamedArgumentUtility::Named(System.Object arg, System.String label)
IL_0383: newobj System.Void
RimWorld.HistoryEvent::.ctor(RimWorld.HistoryEventDef def, Verse.NamedArgument
arg1)
IL_0388: ldc.i4.0
IL_0389: callvirt System.Void
RimWorld.HistoryEventsManager::RecordEvent(RimWorld.HistoryEvent historyEvent,
System.Boolean canApplySelfTookThoughts)
IL_038E: br => Label29
IL_0393: Label28
IL_0393: call static RimWorld.HistoryEventsManager
Verse.Find::get_HistoryEventsManager()
IL_0398: ldsfld RimWorld.HistoryEventDef
RimWorld.HistoryEventDefOf::AteNonFungusPlant
IL_039D: ldarg.1
IL_039E: ldsfld System.String RimWorld.HistoryEventArgsNames::Doer
IL_03A3: call static Verse.NamedArgument
Verse.NamedArgumentUtility::Named(System.Object arg, System.String label)
IL_03A8: newobj System.Void
RimWorld.HistoryEvent::.ctor(RimWorld.HistoryEventDef def, Verse.NamedArgument
arg1)
IL_03AD: ldc.i4.0
IL_03AE: callvirt System.Void
RimWorld.HistoryEventsManager::RecordEvent(RimWorld.HistoryEvent historyEvent,
System.Boolean canApplySelfTookThoughts)
IL_03B3: Label17
IL_03B3: Label26
IL_03B3: Label27
IL_03B3: Label29
IL_03B3: ldarg.0
IL_03B4: call static RimWorld.CompIngredients
Verse.ThingCompUtility::TryGetComp(Verse.Thing thing)
IL_03B9: stloc.2
IL_03BA: ldloc.2
IL_03BB: brfalse => Label30
IL_03C0: ldc.i4.0
IL_03C1: stloc.s 14 (System.Boolean)
IL_03C3: ldc.i4.0
IL_03C4: stloc.s 15 (System.Boolean)
IL_03C6: ldc.i4.0
IL_03C7: stloc.s 16 (System.Boolean)
IL_03C9: ldc.i4.0
IL_03CA: stloc.s 17 (System.Boolean)
IL_03CC: ldc.i4.0
IL_03CD: stloc.s 18 (System.Boolean)
IL_03CF: ldc.i4.0
IL_03D0: stloc.s 19 (System.Int32)
IL_03D2: br => Label31
IL_03D7: Label46
IL_03D7: ldloc.s 14 (System.Boolean)
IL_03D9: brtrue => Label32
IL_03DE: ldloc.2
IL_03DF: ldfld System.Collections.Generic.List`1<Verse.ThingDef>
RimWorld.CompIngredients::ingredients
IL_03E4: ldloc.s 19 (System.Int32)
IL_03E6: callvirt virtual Verse.ThingDef
System.Collections.Generic.List`1<Verse.ThingDef>::get_Item(System.Int32 index)
IL_03EB: call static RimWorld.MeatSourceCategory
RimWorld.FoodUtility::GetMeatSourceCategory(Verse.ThingDef source)
IL_03F0: ldc.i4.4
IL_03F1: bne.un => Label33
IL_03F6: ldarg.1
IL_03F7: ldfld Verse.AI.Pawn_MindState Verse.Pawn::mindState
IL_03FC: call static Verse.TickManager Verse.Find::get_TickManager()
IL_0401: callvirt System.Int32 Verse.TickManager::get_TicksGame()
IL_0406: stfld System.Int32 Verse.AI.Pawn_MindState::lastHumanMeatIngestedTick
IL_040B: call static RimWorld.HistoryEventsManager
Verse.Find::get_HistoryEventsManager()
IL_0410: ldsfld RimWorld.HistoryEventDef
RimWorld.HistoryEventDefOf::AteHumanMeatAsIngredient
IL_0415: ldarg.1
IL_0416: ldsfld System.String RimWorld.HistoryEventArgsNames::Doer
IL_041B: call static Verse.NamedArgument
Verse.NamedArgumentUtility::Named(System.Object arg, System.String label)
IL_0420: newobj System.Void
RimWorld.HistoryEvent::.ctor(RimWorld.HistoryEventDef def, Verse.NamedArgument
arg1)
IL_0425: ldc.i4.0
IL_0426: callvirt System.Void
RimWorld.HistoryEventsManager::RecordEvent(RimWorld.HistoryEvent historyEvent,
System.Boolean canApplySelfTookThoughts)
IL_042B: ldc.i4.1
IL_042C: stloc.s 14 (System.Boolean)
IL_042E: br => Label34
IL_0433: Label32
IL_0433: Label33
IL_0433: ldloc.s 15 (System.Boolean)
IL_0435: brtrue => Label35
IL_043A: ldarg.1
IL_043B: callvirt RimWorld.Ideo Verse.Pawn::get_Ideo()
IL_0440: brfalse => Label36
IL_0445: ldloc.2
IL_0446: ldfld System.Collections.Generic.List`1<Verse.ThingDef>
RimWorld.CompIngredients::ingredients
IL_044B: ldloc.s 19 (System.Int32)
IL_044D: callvirt virtual Verse.ThingDef
System.Collections.Generic.List`1<Verse.ThingDef>::get_Item(System.Int32 index)
IL_0452: callvirt System.Boolean Verse.ThingDef::get_IsMeat()
IL_0457: brfalse => Label37
IL_045C: ldarg.1
IL_045D: callvirt RimWorld.Ideo Verse.Pawn::get_Ideo()
IL_0462: ldloc.2
IL_0463: ldfld System.Collections.Generic.List`1<Verse.ThingDef>
RimWorld.CompIngredients::ingredients
IL_0468: ldloc.s 19 (System.Int32)
IL_046A: callvirt virtual Verse.ThingDef
System.Collections.Generic.List`1<Verse.ThingDef>::get_Item(System.Int32 index)
IL_046F: ldfld RimWorld.IngestibleProperties Verse.ThingDef::ingestible
IL_0474: ldfld Verse.ThingDef RimWorld.IngestibleProperties::sourceDef
IL_0479: callvirt System.Boolean RimWorld.Ideo::IsVeneratedAnimal(Verse.ThingDef
thingDef)
IL_047E: brfalse => Label38
IL_0483: call static RimWorld.HistoryEventsManager
Verse.Find::get_HistoryEventsManager()
IL_0488: ldsfld RimWorld.HistoryEventDef
RimWorld.HistoryEventDefOf::AteVeneratedAnimalMeat
IL_048D: ldarg.1
IL_048E: ldsfld System.String RimWorld.HistoryEventArgsNames::Doer
IL_0493: call static Verse.NamedArgument
Verse.NamedArgumentUtility::Named(System.Object arg, System.String label)
IL_0498: newobj System.Void
RimWorld.HistoryEvent::.ctor(RimWorld.HistoryEventDef def, Verse.NamedArgument
arg1)
IL_049D: ldc.i4.0
IL_049E: callvirt System.Void
RimWorld.HistoryEventsManager::RecordEvent(RimWorld.HistoryEvent historyEvent,
System.Boolean canApplySelfTookThoughts)
IL_04A3: ldc.i4.1
IL_04A4: stloc.s 15 (System.Boolean)
IL_04A6: Label34
IL_04A6: Label35
IL_04A6: Label36
IL_04A6: Label37
IL_04A6: Label38
IL_04A6: ldloc.s 16 (System.Boolean)
IL_04A8: brtrue => Label39
IL_04AD: ldloc.2
IL_04AE: ldfld System.Collections.Generic.List`1<Verse.ThingDef>
RimWorld.CompIngredients::ingredients
IL_04B3: ldloc.s 19 (System.Int32)
IL_04B5: callvirt virtual Verse.ThingDef
System.Collections.Generic.List`1<Verse.ThingDef>::get_Item(System.Int32 index)
IL_04BA: call static RimWorld.MeatSourceCategory
RimWorld.FoodUtility::GetMeatSourceCategory(Verse.ThingDef source)
IL_04BF: ldc.i4.2
IL_04C0: bne.un => Label40
IL_04C5: call static RimWorld.HistoryEventsManager
Verse.Find::get_HistoryEventsManager()
IL_04CA: ldsfld RimWorld.HistoryEventDef
RimWorld.HistoryEventDefOf::AteInsectMeatAsIngredient
IL_04CF: ldarg.1
IL_04D0: ldsfld System.String RimWorld.HistoryEventArgsNames::Doer
IL_04D5: call static Verse.NamedArgument
Verse.NamedArgumentUtility::Named(System.Object arg, System.String label)
IL_04DA: newobj System.Void
RimWorld.HistoryEvent::.ctor(RimWorld.HistoryEventDef def, Verse.NamedArgument
arg1)
IL_04DF: ldc.i4.0
IL_04E0: callvirt System.Void
RimWorld.HistoryEventsManager::RecordEvent(RimWorld.HistoryEvent historyEvent,
System.Boolean canApplySelfTookThoughts)
IL_04E5: ldc.i4.1
IL_04E6: stloc.s 16 (System.Boolean)
IL_04E8: Label39
IL_04E8: Label40
IL_04E8: call static System.Boolean Verse.ModsConfig::get_IdeologyActive()
IL_04ED: brfalse => Label41
IL_04F2: ldloc.s 17 (System.Boolean)
IL_04F4: brtrue => Label42
IL_04F9: ldloc.2
IL_04FA: ldfld System.Collections.Generic.List`1<Verse.ThingDef>
RimWorld.CompIngredients::ingredients
IL_04FF: ldloc.s 19 (System.Int32)
IL_0501: callvirt virtual Verse.ThingDef
System.Collections.Generic.List`1<Verse.ThingDef>::get_Item(System.Int32 index)
IL_0506: ldfld System.Collections.Generic.List`1<Verse.ThingCategoryDef>
Verse.ThingDef::thingCategories
IL_050B: ldsfld Verse.ThingCategoryDef
RimWorld.ThingCategoryDefOf::PlantFoodRaw
IL_0510: callvirt virtual System.Boolean
System.Collections.Generic.List`1<Verse.ThingCategoryDef>::Contains(Verse.ThingCate
goryDef item)
IL_0515: brfalse => Label43
IL_051A: ldloc.2
IL_051B: ldfld System.Collections.Generic.List`1<Verse.ThingDef>
RimWorld.CompIngredients::ingredients
IL_0520: ldloc.s 19 (System.Int32)
IL_0522: callvirt virtual Verse.ThingDef
System.Collections.Generic.List`1<Verse.ThingDef>::get_Item(System.Int32 index)
IL_0527: callvirt System.Boolean Verse.ThingDef::get_IsFungus()
IL_052C: brfalse => Label44
IL_0531: call static RimWorld.HistoryEventsManager
Verse.Find::get_HistoryEventsManager()
IL_0536: ldsfld RimWorld.HistoryEventDef
RimWorld.HistoryEventDefOf::AteFungusAsIngredient
IL_053B: ldarg.1
IL_053C: ldsfld System.String RimWorld.HistoryEventArgsNames::Doer
IL_0541: call static Verse.NamedArgument
Verse.NamedArgumentUtility::Named(System.Object arg, System.String label)
IL_0546: newobj System.Void
RimWorld.HistoryEvent::.ctor(RimWorld.HistoryEventDef def, Verse.NamedArgument
arg1)
IL_054B: ldc.i4.0
IL_054C: callvirt System.Void
RimWorld.HistoryEventsManager::RecordEvent(RimWorld.HistoryEvent historyEvent,
System.Boolean canApplySelfTookThoughts)
IL_0551: ldc.i4.1
IL_0552: stloc.s 17 (System.Boolean)
IL_0554: br => Label45
IL_0559: Label44
IL_0559: ldc.i4.1
IL_055A: stloc.s 18 (System.Boolean)
IL_055C: Label41
IL_055C: Label42
IL_055C: Label43
IL_055C: Label45
IL_055C: ldloc.s 19 (System.Int32)
IL_055E: ldc.i4.1
IL_055F: add
IL_0560: stloc.s 19 (System.Int32)
IL_0562: Label31
IL_0562: ldloc.s 19 (System.Int32)
IL_0564: ldloc.2
IL_0565: ldfld System.Collections.Generic.List`1<Verse.ThingDef>
RimWorld.CompIngredients::ingredients
IL_056A: callvirt virtual System.Int32
System.Collections.Generic.List`1<Verse.ThingDef>::get_Count()
IL_056F: blt => Label46
IL_0574: call static System.Boolean Verse.ModsConfig::get_IdeologyActive()
IL_0579: brfalse => Label47
IL_057E: ldloc.s 17 (System.Boolean)
IL_0580: ldc.i4.0
IL_0581: ceq
IL_0583: br => Label48
IL_0588: Label47
IL_0588: ldc.i4.0
IL_0589: Label48
IL_0589: ldloc.s 18 (System.Boolean)
IL_058B: and
IL_058C: brfalse => Label49
IL_0591: call static RimWorld.HistoryEventsManager
Verse.Find::get_HistoryEventsManager()
IL_0596: ldsfld RimWorld.HistoryEventDef
RimWorld.HistoryEventDefOf::AteNonFungusMealWithPlants
IL_059B: ldarg.1
IL_059C: ldsfld System.String RimWorld.HistoryEventArgsNames::Doer
IL_05A1: call static Verse.NamedArgument
Verse.NamedArgumentUtility::Named(System.Object arg, System.String label)
IL_05A6: newobj System.Void
RimWorld.HistoryEvent::.ctor(RimWorld.HistoryEventDef def, Verse.NamedArgument
arg1)
IL_05AB: ldc.i4.0
IL_05AC: callvirt System.Void
RimWorld.HistoryEventsManager::RecordEvent(RimWorld.HistoryEvent historyEvent,
System.Boolean canApplySelfTookThoughts)
IL_05B1: Label30
IL_05B1: Label49
IL_05B1: ldarg.0
IL_05B2: ldarg.1
IL_05B3: ldarg.2
IL_05B4: ldloca.s 3 (System.Int32)
IL_05B6: ldloca.s 4 (System.Single)
IL_05B8: callvirt virtual System.Void
Verse.Thing::IngestedCalculateAmounts(Verse.Pawn ingester, System.Single
nutritionWanted, System.Int32& numTaken, System.Single& nutritionIngested)
IL_05BD: ldarg.1
IL_05BE: callvirt System.Boolean Verse.Pawn::get_Dead()
IL_05C3: brtrue => Label50
IL_05C8: ldarg.1
IL_05C9: ldfld RimWorld.Pawn_NeedsTracker Verse.Pawn::needs
IL_05CE: ldfld RimWorld.Need_Joy RimWorld.Pawn_NeedsTracker::joy
IL_05D3: brfalse => Label51
IL_05D8: ldarg.0
IL_05D9: ldfld Verse.ThingDef Verse.Thing::def
IL_05DE: ldfld RimWorld.IngestibleProperties Verse.ThingDef::ingestible
IL_05E3: ldfld System.Single RimWorld.IngestibleProperties::joy
IL_05E8: call static System.Single UnityEngine.Mathf::Abs(System.Single f)
IL_05ED: ldc.r4 0.0001
IL_05F2: ble.un => Label52
IL_05F7: ldloc.3
IL_05F8: ldc.i4.0
IL_05F9: ble => Label53
IL_05FE: ldarg.0
IL_05FF: ldfld Verse.ThingDef Verse.Thing::def
IL_0604: ldfld RimWorld.IngestibleProperties Verse.ThingDef::ingestible
IL_0609: ldfld RimWorld.JoyKindDef RimWorld.IngestibleProperties::joyKind
IL_060E: brtrue => Label54
IL_0613: ldsfld RimWorld.JoyKindDef RimWorld.JoyKindDefOf::Gluttonous
IL_0618: br => Label55
IL_061D: Label54
IL_061D: ldarg.0
IL_061E: ldfld Verse.ThingDef Verse.Thing::def
IL_0623: ldfld RimWorld.IngestibleProperties Verse.ThingDef::ingestible
IL_0628: ldfld RimWorld.JoyKindDef RimWorld.IngestibleProperties::joyKind
IL_062D: Label55
IL_062D: stloc.s 20 (RimWorld.JoyKindDef)
IL_062F: ldarg.1
IL_0630: ldfld RimWorld.Pawn_NeedsTracker Verse.Pawn::needs
IL_0635: ldfld RimWorld.Need_Joy RimWorld.Pawn_NeedsTracker::joy
IL_063A: ldloc.3
IL_063B: conv.r4
IL_063C: ldarg.0
IL_063D: ldfld Verse.ThingDef Verse.Thing::def
IL_0642: ldfld RimWorld.IngestibleProperties Verse.ThingDef::ingestible
IL_0647: ldfld System.Single RimWorld.IngestibleProperties::joy
IL_064C: mul
IL_064D: ldloc.s 20 (RimWorld.JoyKindDef)
IL_064F: callvirt System.Void RimWorld.Need_Joy::GainJoy(System.Single amount,
RimWorld.JoyKindDef joyKind)
IL_0654: Label50
IL_0654: Label51
IL_0654: Label52
IL_0654: Label53
IL_0654: ldarg.1
IL_0655: ldarg.0
IL_0656: ldloca.s 6 (System.Single)
IL_0658: call static System.Boolean
RimWorld.FoodUtility::TryGetFoodPoisoningChanceOverrideFromTraits(Verse.Pawn pawn,
Verse.Thing ingestible, System.Single& poisonChanceOverride)
IL_065D: brtrue => Label56
IL_0662: ldarg.0
IL_0663: ldsfld RimWorld.StatDef RimWorld.StatDefOf::FoodPoisonChanceFixedHuman
IL_0668: ldc.i4.1
IL_0669: ldc.i4.m1
IL_066A: call static System.Single
RimWorld.StatExtension::GetStatValue(Verse.Thing thing, RimWorld.StatDef stat,
System.Boolean applyPostProcess, System.Int32 cacheStaleAfterTicks)
IL_066F: ldarg.1
IL_0670: call static System.Single
RimWorld.FoodUtility::GetFoodPoisonChanceFactor(Verse.Pawn ingester)
IL_0675: mul
IL_0676: br => Label57
IL_067B: Label56
IL_067B: ldloc.s 6 (System.Single)
IL_067D: Label57
IL_067D: stloc.s 5 (System.Single)
IL_067F: ldarg.1
IL_0680: callvirt Verse.RaceProperties Verse.Pawn::get_RaceProps()
IL_0685: callvirt System.Boolean Verse.RaceProperties::get_Humanlike()
IL_068A: brfalse => Label58
IL_068F: ldloc.s 5 (System.Single)
IL_0691: call static System.Boolean Verse.Rand::Chance(System.Single chance)
IL_0696: brfalse => Label59
IL_069B: ldarg.1
IL_069C: ldarg.0
IL_069D: ldc.i4.4
IL_069E: call static System.Void
RimWorld.FoodUtility::AddFoodPoisoningHediff(Verse.Pawn pawn, Verse.Thing
ingestible, RimWorld.FoodPoisonCause cause)
IL_06A3: Label58
IL_06A3: Label59
IL_06A3: ldarg.1
IL_06A4: ldfld Verse.Pawn_HealthTracker Verse.Pawn::health
IL_06A9: ldfld Verse.HediffSet Verse.Pawn_HealthTracker::hediffSet
IL_06AE: ldfld System.Collections.Generic.List`1<Verse.Hediff>
Verse.HediffSet::hediffs
IL_06B3: stloc.s 7 (System.Collections.Generic.List`1[Verse.Hediff])
IL_06B5: ldc.i4.0
IL_06B6: stloc.s 21 (System.Int32)
IL_06B8: br => Label60
IL_06BD: Label61
IL_06BD: ldloc.s 7 (System.Collections.Generic.List`1[Verse.Hediff])
IL_06BF: ldloc.s 21 (System.Int32)
IL_06C1: callvirt virtual Verse.Hediff
System.Collections.Generic.List`1<Verse.Hediff>::get_Item(System.Int32 index)
IL_06C6: ldarg.0
IL_06C7: ldloc.3
IL_06C8: callvirt virtual System.Void
Verse.Hediff::Notify_IngestedThing(Verse.Thing thing, System.Int32 amount)
IL_06CD: ldloc.s 21 (System.Int32)
IL_06CF: ldc.i4.1
IL_06D0: add
IL_06D1: stloc.s 21 (System.Int32)
IL_06D3: Label60
IL_06D3: ldloc.s 21 (System.Int32)
IL_06D5: ldloc.s 7 (System.Collections.Generic.List`1[Verse.Hediff])
IL_06D7: callvirt virtual System.Int32
System.Collections.Generic.List`1<Verse.Hediff>::get_Count()
IL_06DC: blt => Label61
IL_06E1: ldarg.1
IL_06E2: ldfld RimWorld.Pawn_GeneTracker Verse.Pawn::genes
IL_06E7: dup
IL_06E8: brtrue => Label62
IL_06ED: pop
IL_06EE: br => Label63
IL_06F3: Label62
IL_06F3: ldarg.0
IL_06F4: ldloc.3
IL_06F5: call System.Void
RimWorld.Pawn_GeneTracker::Notify_IngestedThing(Verse.Thing thing, System.Int32
numTaken)
IL_06FA: Label63
IL_06FA: ldc.i4.0
IL_06FB: stloc.s 8 (System.Boolean)
IL_06FD: ldloc.3
IL_06FE: ldc.i4.0
IL_06FF: ble => Label64
IL_0704: ldarg.0
IL_0705: ldfld System.Int32 Verse.Thing::stackCount
IL_070A: brtrue => Label65
IL_070F: ldarg.0
IL_0710: ldstr " stack count is 0."
IL_0715: call static System.String System.String::Concat(System.Object arg0,
System.Object arg1)
IL_071A: call static System.Void Verse.Log::Error(System.String text)
IL_071F: Label65
IL_071F: ldloc.3
IL_0720: ldarg.0
IL_0721: ldfld System.Int32 Verse.Thing::stackCount
IL_0726: bne.un => Label66
IL_072B: ldc.i4.1
IL_072C: stloc.s 8 (System.Boolean)
IL_072E: br => Label67
IL_0733: Label66
IL_0733: ldarg.0
IL_0734: ldloc.3
IL_0735: callvirt virtual Verse.Thing Verse.Thing::SplitOff(System.Int32 count)
IL_073A: pop
IL_073B: Label64
IL_073B: Label67
IL_073B: ldarg.0
IL_073C: ldarg.1
IL_073D: callvirt virtual System.Void Verse.Thing::PrePostIngested(Verse.Pawn
ingester)
IL_0742: ldloc.s 8 (System.Boolean)
IL_0744: brfalse => Label68
IL_0749: ldarg.1
IL_074A: ldfld Verse.Pawn_CarryTracker Verse.Pawn::carryTracker
IL_074F: ldfld Verse.ThingOwner`1<Verse.Thing>
Verse.Pawn_CarryTracker::innerContainer
IL_0754: ldarg.0
IL_0755: callvirt abstract virtual System.Boolean
Verse.ThingOwner::Remove(Verse.Thing item)
IL_075A: pop
IL_075B: Label68
IL_075B: ldarg.0
IL_075C: ldfld Verse.ThingDef Verse.Thing::def
IL_0761: ldfld RimWorld.IngestibleProperties Verse.ThingDef::ingestible
IL_0766: ldfld
System.Collections.Generic.List`1<RimWorld.IngestionOutcomeDoer>
RimWorld.IngestibleProperties::outcomeDoers
IL_076B: brfalse => Label69
IL_0770: ldc.i4.0
IL_0771: stloc.s 22 (System.Int32)
IL_0773: br => Label70
IL_0778: Label71
IL_0778: ldarg.0
IL_0779: ldfld Verse.ThingDef Verse.Thing::def
IL_077E: ldfld RimWorld.IngestibleProperties Verse.ThingDef::ingestible
IL_0783: ldfld
System.Collections.Generic.List`1<RimWorld.IngestionOutcomeDoer>
RimWorld.IngestibleProperties::outcomeDoers
IL_0788: ldloc.s 22 (System.Int32)
IL_078A: callvirt virtual RimWorld.IngestionOutcomeDoer
System.Collections.Generic.List`1<RimWorld.IngestionOutcomeDoer>::get_Item(System.I
nt32 index)
IL_078F: ldarg.1
IL_0790: ldarg.0
IL_0791: callvirt System.Void
RimWorld.IngestionOutcomeDoer::DoIngestionOutcome(Verse.Pawn pawn, Verse.Thing
ingested)
IL_0796: ldloc.s 22 (System.Int32)
IL_0798: ldc.i4.1
IL_0799: add
IL_079A: stloc.s 22 (System.Int32)
IL_079C: Label70
IL_079C: ldloc.s 22 (System.Int32)
IL_079E: ldarg.0
IL_079F: ldfld Verse.ThingDef Verse.Thing::def
IL_07A4: ldfld RimWorld.IngestibleProperties Verse.ThingDef::ingestible
IL_07A9: ldfld
System.Collections.Generic.List`1<RimWorld.IngestionOutcomeDoer>
RimWorld.IngestibleProperties::outcomeDoers
IL_07AE: callvirt virtual System.Int32
System.Collections.Generic.List`1<RimWorld.IngestionOutcomeDoer>::get_Count()
IL_07B3: blt => Label71
IL_07B8: Label69
IL_07B8: ldloc.s 8 (System.Boolean)
IL_07BA: brfalse => Label72
IL_07BF: ldarg.0
IL_07C0: ldc.i4.0
IL_07C1: callvirt virtual System.Void Verse.Thing::Destroy(Verse.DestroyMode
mode)
IL_07C6: Label72
IL_07C6: ldarg.0
IL_07C7: ldarg.1
IL_07C8: callvirt virtual System.Void Verse.Thing::PostIngested(Verse.Pawn
ingester)
IL_07CD: ldloc.s 4 (System.Single)
IL_07CF: // end original
IL_07CF: Label73
IL_07CF: Label74
IL_07CF: stloc 23 (System.Single)
IL_07D3: Label0
IL_07D3: ldloc 23 (System.Single)
IL_07D7: ret
DONE
### Patch: virtual System.Void
RimWorld.InteractionWorker_RomanceAttempt::Interacted(Verse.Pawn initiator,
Verse.Pawn recipient, System.Collections.Generic.List`1<Verse.RulePackDef>
extraSentencePacks, System.String& letterText, System.String& letterLabel,
Verse.LetterDef& letterDef, Verse.LookTargets& lookTargets)
### Replacement: static System.Void
RimWorld.InteractionWorker_RomanceAttempt::RimWorld.InteractionWorker_RomanceAttemp
t.Interacted_Patch0(RimWorld.InteractionWorker_RomanceAttempt this, Verse.Pawn
initiator, Verse.Pawn recipient,
System.Collections.Generic.List`1<Verse.RulePackDef> extraSentencePacks,
System.String& letterText, System.String& letterLabel, Verse.LetterDef& letterDef,
Verse.LookTargets& lookTargets)
IL_0000: Local var 0: System.Collections.Generic.List`1<Verse.Pawn>
IL_0000: Local var 1: System.Collections.Generic.List`1<Verse.Pawn>
IL_0000: Local var 2: System.Boolean
IL_0000: Local var 3: System.Int32
IL_0000: Local var 4: System.Int32
IL_0000: // start original
IL_0000: ldarg.1
IL_0001: callvirt Verse.AI.Job Verse.Pawn::get_CurJob()
IL_0006: dup
IL_0007: brtrue => Label0
IL_000C: pop
IL_000D: ldnull
IL_000E: br => Label1
IL_0013: Label0
IL_0013: ldfld Verse.JobDef Verse.AI.Job::def
IL_0018: Label1
IL_0018: ldsfld Verse.JobDef RimWorld.JobDefOf::TryRomance
IL_001D: bne.un => Label2
IL_0022: ldarg.1
IL_0023: ldfld RimWorld.Pawn_RelationsTracker Verse.Pawn::relations
IL_0028: call static Verse.TickManager Verse.Find::get_TickManager()
IL_002D: callvirt System.Int32 Verse.TickManager::get_TicksGame()
IL_0032: ldc.i4 900000
IL_0037: add
IL_0038: stfld System.Int32 RimWorld.Pawn_RelationsTracker::romanceEnableTick
IL_003D: Label2
IL_003D: call static System.Single Verse.Rand::get_Value()
IL_0042: ldarg.1
IL_0043: ldarg.2
IL_0044: ldc.r4 0.6
IL_0049: call static System.Single
RimWorld.InteractionWorker_RomanceAttempt::SuccessChance(Verse.Pawn initiator,
Verse.Pawn recipient, System.Single baseChance)
IL_004E: bge.un => Label3
IL_0053: ldarg.0
IL_0054: ldarg.1
IL_0055: ldloca.s 0 (System.Collections.Generic.List`1[Verse.Pawn])
IL_0057: call System.Void
RimWorld.InteractionWorker_RomanceAttempt::BreakLoverAndFianceRelations(Verse.Pawn
pawn, System.Collections.Generic.List`1& oldLoversAndFiances)
IL_005C: ldarg.0
IL_005D: ldarg.2
IL_005E: ldloca.s 1 (System.Collections.Generic.List`1[Verse.Pawn])
IL_0060: call System.Void
RimWorld.InteractionWorker_RomanceAttempt::BreakLoverAndFianceRelations(Verse.Pawn
pawn, System.Collections.Generic.List`1& oldLoversAndFiances)
IL_0065: ldarg.0
IL_0066: ldarg.1
IL_0067: ldarg.2
IL_0068: call System.Void
RimWorld.InteractionWorker_RomanceAttempt::RemoveBrokeUpAndFailedRomanceThoughts(Ve
rse.Pawn pawn, Verse.Pawn otherPawn)
IL_006D: ldarg.0
IL_006E: ldarg.2
IL_006F: ldarg.1
IL_0070: call System.Void
RimWorld.InteractionWorker_RomanceAttempt::RemoveBrokeUpAndFailedRomanceThoughts(Ve
rse.Pawn pawn, Verse.Pawn otherPawn)
IL_0075: ldc.i4.0
IL_0076: stloc.3
IL_0077: br => Label4
IL_007C: Label5
IL_007C: ldarg.0
IL_007D: ldloc.0
IL_007E: ldloc.3
IL_007F: callvirt virtual Verse.Pawn
System.Collections.Generic.List`1<Verse.Pawn>::get_Item(System.Int32 index)
IL_0084: ldarg.1
IL_0085: call System.Void
RimWorld.InteractionWorker_RomanceAttempt::TryAddCheaterThought(Verse.Pawn pawn,
Verse.Pawn cheater)
IL_008A: ldloc.3
IL_008B: ldc.i4.1
IL_008C: add
IL_008D: stloc.3
IL_008E: Label4
IL_008E: ldloc.3
IL_008F: ldloc.0
IL_0090: callvirt virtual System.Int32
System.Collections.Generic.List`1<Verse.Pawn>::get_Count()
IL_0095: blt => Label5
IL_009A: ldc.i4.0
IL_009B: stloc.s 4 (System.Int32)
IL_009D: br => Label6
IL_00A2: Label7
IL_00A2: ldarg.0
IL_00A3: ldloc.1
IL_00A4: ldloc.s 4 (System.Int32)
IL_00A6: callvirt virtual Verse.Pawn
System.Collections.Generic.List`1<Verse.Pawn>::get_Item(System.Int32 index)
IL_00AB: ldarg.2
IL_00AC: call System.Void
RimWorld.InteractionWorker_RomanceAttempt::TryAddCheaterThought(Verse.Pawn pawn,
Verse.Pawn cheater)
IL_00B1: ldloc.s 4 (System.Int32)
IL_00B3: ldc.i4.1
IL_00B4: add
IL_00B5: stloc.s 4 (System.Int32)
IL_00B7: Label6
IL_00B7: ldloc.s 4 (System.Int32)
IL_00B9: ldloc.1
IL_00BA: callvirt virtual System.Int32
System.Collections.Generic.List`1<Verse.Pawn>::get_Count()
IL_00BF: blt => Label7
IL_00C4: ldarg.1
IL_00C5: ldfld RimWorld.Pawn_RelationsTracker Verse.Pawn::relations
IL_00CA: ldsfld RimWorld.PawnRelationDef RimWorld.PawnRelationDefOf::ExLover
IL_00CF: ldarg.2
IL_00D0: callvirt System.Boolean
RimWorld.Pawn_RelationsTracker::TryRemoveDirectRelation(RimWorld.PawnRelationDef
def, Verse.Pawn otherPawn)
IL_00D5: pop
IL_00D6: ldarg.1
IL_00D7: ldfld RimWorld.Pawn_RelationsTracker Verse.Pawn::relations
IL_00DC: ldsfld RimWorld.PawnRelationDef RimWorld.PawnRelationDefOf::Lover
IL_00E1: ldarg.2
IL_00E2: callvirt System.Void
RimWorld.Pawn_RelationsTracker::AddDirectRelation(RimWorld.PawnRelationDef def,
Verse.Pawn otherPawn)
IL_00E7: ldarg.1
IL_00E8: ldarg.2
IL_00E9: call static System.Void
AlienRace.HarmonyPatches::NewLoverHelper(Verse.Pawn initiator, Verse.Pawn
recipient)
IL_00EE: ldsfld RimWorld.TaleDef RimWorld.TaleDefOf::BecameLover
IL_00F3: ldc.i4.2
IL_00F4: newarr System.Object
IL_00F9: dup
IL_00FA: ldc.i4.0
IL_00FB: ldarg.1
IL_00FC: stelem.ref
IL_00FD: dup
IL_00FE: ldc.i4.1
IL_00FF: ldarg.2
IL_0100: stelem.ref
IL_0101: call static RimWorld.Tale
RimWorld.TaleRecorder::RecordTale(RimWorld.TaleDef def, System.Object[] args)
IL_0106: pop
IL_0107: ldc.i4.0
IL_0108: stloc.2
IL_0109: ldarg.1
IL_010A: ldarg.2
IL_010B: call static System.Boolean
RimWorld.InteractionWorker_RomanceAttempt::CanCreatePsychicBondBetween_NewTemp(Vers
e.Pawn initiator, Verse.Pawn recipient)
IL_0110: brfalse => Label8
IL_0115: ldarg.1
IL_0116: ldarg.2
IL_0117: call static System.Boolean
RimWorld.InteractionWorker_RomanceAttempt::TryCreatePsychicBondBetween(Verse.Pawn
initiator, Verse.Pawn recipient)
IL_011C: stloc.2
IL_011D: Label8
IL_011D: ldarg.1
IL_011E: call static System.Boolean
RimWorld.PawnUtility::ShouldSendNotificationAbout(Verse.Pawn p)
IL_0123: brtrue => Label9
IL_0128: ldarg.2
IL_0129: call static System.Boolean
RimWorld.PawnUtility::ShouldSendNotificationAbout(Verse.Pawn p)
IL_012E: brfalse => Label10
IL_0133: Label9
IL_0133: ldarg.0
IL_0134: ldarg.1
IL_0135: ldarg.2
IL_0136: ldloc.0
IL_0137: ldloc.1
IL_0138: ldloc.2
IL_0139: ldarg.s 4
IL_013B: ldarg.s 5
IL_013D: ldarg.s 6
IL_013F: ldarg.s 7
IL_0141: call System.Void
RimWorld.InteractionWorker_RomanceAttempt::GetNewLoversLetter(Verse.Pawn initiator,
Verse.Pawn recipient, System.Collections.Generic.List`1<Verse.Pawn>
initiatorOldLoversAndFiances, System.Collections.Generic.List`1<Verse.Pawn>
recipientOldLoversAndFiances, System.Boolean createdBond, System.String&
letterText, System.String& letterLabel, Verse.LetterDef& letterDef,
Verse.LookTargets& lookTargets)
IL_0146: br => Label11
IL_014B: Label10
IL_014B: ldarg.s 4
IL_014D: ldnull
IL_014E: stind.ref
IL_014F: ldarg.s 5
IL_0151: ldnull
IL_0152: stind.ref
IL_0153: ldarg.s 6
IL_0155: ldnull
IL_0156: stind.ref
IL_0157: ldarg.s 7
IL_0159: ldnull
IL_015A: stind.ref
IL_015B: Label11
IL_015B: ldarg.3
IL_015C: ldsfld Verse.RulePackDef
RimWorld.RulePackDefOf::Sentence_RomanceAttemptAccepted
IL_0161: callvirt virtual System.Void
System.Collections.Generic.List`1<Verse.RulePackDef>::Add(Verse.RulePackDef item)
IL_0166: ldarg.1
IL_0167: ldarg.2
IL_0168: call static System.Void
RimWorld.LovePartnerRelationUtility::TryToShareBed(Verse.Pawn first, Verse.Pawn
second)
IL_016D: br => Label19
IL_0172: Label3
IL_0172: ldarg.1
IL_0173: ldfld RimWorld.Pawn_NeedsTracker Verse.Pawn::needs
IL_0178: ldfld RimWorld.Need_Mood RimWorld.Pawn_NeedsTracker::mood
IL_017D: brfalse => Label12
IL_0182: ldarg.1
IL_0183: ldfld RimWorld.Pawn_NeedsTracker Verse.Pawn::needs
IL_0188: ldfld RimWorld.Need_Mood RimWorld.Pawn_NeedsTracker::mood
IL_018D: ldfld RimWorld.ThoughtHandler RimWorld.Need_Mood::thoughts
IL_0192: ldfld RimWorld.MemoryThoughtHandler RimWorld.ThoughtHandler::memories
IL_0197: ldsfld RimWorld.ThoughtDef
RimWorld.ThoughtDefOf::RebuffedMyRomanceAttempt
IL_019C: ldarg.2
IL_019D: ldnull
IL_019E: callvirt System.Void
RimWorld.MemoryThoughtHandler::TryGainMemory(RimWorld.ThoughtDef def, Verse.Pawn
otherPawn, RimWorld.Precept sourcePrecept)
IL_01A3: Label12
IL_01A3: ldarg.2
IL_01A4: ldfld RimWorld.Pawn_NeedsTracker Verse.Pawn::needs
IL_01A9: ldfld RimWorld.Need_Mood RimWorld.Pawn_NeedsTracker::mood
IL_01AE: brfalse => Label13
IL_01B3: ldarg.2
IL_01B4: ldfld RimWorld.Pawn_NeedsTracker Verse.Pawn::needs
IL_01B9: ldfld RimWorld.Need_Mood RimWorld.Pawn_NeedsTracker::mood
IL_01BE: ldfld RimWorld.ThoughtHandler RimWorld.Need_Mood::thoughts
IL_01C3: ldfld RimWorld.MemoryThoughtHandler RimWorld.ThoughtHandler::memories
IL_01C8: ldsfld RimWorld.ThoughtDef
RimWorld.ThoughtDefOf::FailedRomanceAttemptOnMe
IL_01CD: ldarg.1
IL_01CE: ldnull
IL_01CF: callvirt System.Void
RimWorld.MemoryThoughtHandler::TryGainMemory(RimWorld.ThoughtDef def, Verse.Pawn
otherPawn, RimWorld.Precept sourcePrecept)
IL_01D4: Label13
IL_01D4: ldarg.2
IL_01D5: ldfld RimWorld.Pawn_NeedsTracker Verse.Pawn::needs
IL_01DA: ldfld RimWorld.Need_Mood RimWorld.Pawn_NeedsTracker::mood
IL_01DF: brfalse => Label14
IL_01E4: ldarg.2
IL_01E5: ldfld RimWorld.Pawn_RelationsTracker Verse.Pawn::relations
IL_01EA: ldarg.1
IL_01EB: callvirt System.Int32
RimWorld.Pawn_RelationsTracker::OpinionOf(Verse.Pawn other)
IL_01F0: ldc.i4.0
IL_01F1: bgt => Label15
IL_01F6: ldarg.2
IL_01F7: ldfld RimWorld.Pawn_NeedsTracker Verse.Pawn::needs
IL_01FC: ldfld RimWorld.Need_Mood RimWorld.Pawn_NeedsTracker::mood
IL_0201: ldfld RimWorld.ThoughtHandler RimWorld.Need_Mood::thoughts
IL_0206: ldfld RimWorld.MemoryThoughtHandler RimWorld.ThoughtHandler::memories
IL_020B: ldsfld RimWorld.ThoughtDef
RimWorld.ThoughtDefOf::FailedRomanceAttemptOnMeLowOpinionMood
IL_0210: ldarg.1
IL_0211: ldnull
IL_0212: callvirt System.Void
RimWorld.MemoryThoughtHandler::TryGainMemory(RimWorld.ThoughtDef def, Verse.Pawn
otherPawn, RimWorld.Precept sourcePrecept)
IL_0217: Label14
IL_0217: Label15
IL_0217: ldarg.3
IL_0218: ldsfld Verse.RulePackDef
RimWorld.RulePackDefOf::Sentence_RomanceAttemptRejected
IL_021D: callvirt virtual System.Void
System.Collections.Generic.List`1<Verse.RulePackDef>::Add(Verse.RulePackDef item)
IL_0222: ldarg.s 4
IL_0224: ldnull
IL_0225: stind.ref
IL_0226: ldarg.s 5
IL_0228: ldnull
IL_0229: stind.ref
IL_022A: ldarg.s 6
IL_022C: ldnull
IL_022D: stind.ref
IL_022E: ldarg.s 7
IL_0230: ldnull
IL_0231: stind.ref
IL_0232: ldarg.1
IL_0233: callvirt Verse.AI.Job Verse.Pawn::get_CurJob()
IL_0238: dup
IL_0239: brtrue => Label16
IL_023E: pop
IL_023F: ldnull
IL_0240: br => Label17
IL_0245: Label16
IL_0245: ldfld Verse.JobDef Verse.AI.Job::def
IL_024A: Label17
IL_024A: ldsfld Verse.JobDef RimWorld.JobDefOf::TryRomance
IL_024F: bne.un => Label18
IL_0254: ldstr "TryRomanceFailedMessage"
IL_0259: ldarg.1
IL_025A: call static Verse.NamedArgument
Verse.NamedArgument::op_Implicit(Verse.Thing value)
IL_025F: ldarg.2
IL_0260: call static Verse.NamedArgument
Verse.NamedArgument::op_Implicit(Verse.Thing value)
IL_0265: call static Verse.TaggedString
Verse.TranslatorFormattedStringExtensions::Translate(System.String key,
Verse.NamedArgument arg1, Verse.NamedArgument arg2)
IL_026A: call static System.String
Verse.TaggedString::op_Implicit(Verse.TaggedString taggedString)
IL_026F: ldarg.1
IL_0270: call static Verse.LookTargets
Verse.LookTargets::op_Implicit(Verse.Thing t)
IL_0275: ldsfld Verse.MessageTypeDef RimWorld.MessageTypeDefOf::NegativeEvent
IL_027A: ldc.i4.0
IL_027B: call static System.Void Verse.Messages::Message(System.String text,
Verse.LookTargets lookTargets, Verse.MessageTypeDef def, System.Boolean historical)
IL_0280: // end original
IL_0280: Label18
IL_0280: Label19
IL_0280: ret
DONE

### Patch: static System.Single


RimWorld.InteractionWorker_RomanceAttempt::SuccessChance(Verse.Pawn initiator,
Verse.Pawn recipient, System.Single baseChance)
### Replacement: static System.Single
RimWorld.InteractionWorker_RomanceAttempt::RimWorld.InteractionWorker_RomanceAttemp
t.SuccessChance_Patch2(Verse.Pawn initiator, Verse.Pawn recipient, System.Single
baseChance)
IL_0000: Local var 0: System.Single
IL_0000: ldc.r4 0
IL_0005: stloc 0 (System.Single)
IL_0009: // start original
IL_0009: ldarg.0
IL_000A: ldarg.1
IL_000B: call static System.Boolean
RimWorld.InteractionWorker_RomanceAttempt::CanCreatePsychicBondBetween_NewTemp(Vers
e.Pawn initiator, Verse.Pawn recipient)
IL_0010: brfalse => Label0
IL_0015: ldarg.0
IL_0016: call static System.Boolean
RimWorld.QuestUtility::IsQuestHelper(Verse.Pawn p)
IL_001B: brtrue => Label1
IL_0020: ldarg.1
IL_0021: call static System.Boolean
RimWorld.QuestUtility::IsQuestHelper(Verse.Pawn p)
IL_0026: brfalse => Label2
IL_002B: Label1
IL_002B: ldc.r4 0
IL_0030: br => Label6
IL_0035: Label2
IL_0035: ldc.r4 1
IL_003A: br => Label7
IL_003F: Label0
IL_003F: call static System.Boolean Verse.ModsConfig::get_BiotechActive()
IL_0044: brfalse => Label3
IL_0049: ldarg.0
IL_004A: callvirt Verse.JobDef Verse.Pawn::get_CurJobDef()
IL_004F: ldsfld Verse.JobDef RimWorld.JobDefOf::TryRomance
IL_0054: beq => Label4
IL_0059: Label3
IL_0059: ldarg.2
IL_005A: br => Label5
IL_005F: Label4
IL_005F: ldc.r4 1
IL_0064: Label5
IL_0064: ldarg.1
IL_0065: ldfld RimWorld.Pawn_RelationsTracker Verse.Pawn::relations
IL_006A: ldarg.0
IL_006B: callvirt System.Single
RimWorld.Pawn_RelationsTracker::SecondaryRomanceChanceFactor(Verse.Pawn otherPawn)
IL_0070: mul
IL_0071: ldarg.0
IL_0072: ldarg.1
IL_0073: call static System.Single
RimWorld.InteractionWorker_RomanceAttempt::OpinionFactor(Verse.Pawn initiator,
Verse.Pawn recipient)
IL_0078: mul
IL_0079: ldarg.0
IL_007A: ldarg.1
IL_007B: call static System.Single
RimWorld.InteractionWorker_RomanceAttempt::PartnerFactor(Verse.Pawn initiator,
Verse.Pawn recipient)
IL_0080: mul
IL_0081: call static System.Single UnityEngine.Mathf::Clamp01(System.Single
value)
IL_0086: // end original
IL_0086: Label6
IL_0086: Label7
IL_0086: stloc 0 (System.Single)
IL_008A: ldarg 0
IL_008E: ldarg 1
IL_0092: ldloca 0 (System.Single)
IL_0096: ldarg 2
IL_009A: call static System.Void
ATReforged.SuccessChance_Patch::Listener(Verse.Pawn initiator, Verse.Pawn
recipient, System.Single& __result, System.Single baseChance)
IL_009F: ldarg 0
IL_00A3: ldarg 1
IL_00A7: ldloca 0 (System.Single)
IL_00AB: call static System.Void
AlienRace.HarmonyPatches::RomanceAttemptSuccessChancePostfix(Verse.Pawn initiator,
Verse.Pawn recipient, System.Single& __result)
IL_00B0: ldloc 0 (System.Single)
IL_00B4: ret
DONE

### Patch: static System.Boolean RimWorld.BedUtility::WillingToShareBed(Verse.Pawn


pawn1, Verse.Pawn pawn2)
### Replacement: static System.Boolean
RimWorld.BedUtility::RimWorld.BedUtility.WillingToShareBed_Patch1(Verse.Pawn pawn1,
Verse.Pawn pawn2)
IL_0000: Local var 0: System.Boolean
IL_0000: ldc.i4 0
IL_0005: stloc 0 (System.Boolean)
IL_0009: // start original
IL_0009: ldarg.0
IL_000A: ldarg.1
IL_000B: bne.un => Label0
IL_0010: ldc.i4.1
IL_0011: br => Label8
IL_0016: Label0
IL_0016: ldsfld RimWorld.HistoryEventDef RimWorld.HistoryEventDefOf::SharedBed
IL_001B: ldarg.0
IL_001C: call static System.Boolean
RimWorld.IdeoUtility::DoerWillingToDo(RimWorld.HistoryEventDef def, Verse.Pawn
pawn)
IL_0021: brfalse => Label1
IL_0026: ldsfld RimWorld.HistoryEventDef RimWorld.HistoryEventDefOf::SharedBed
IL_002B: ldarg.1
IL_002C: call static System.Boolean
RimWorld.IdeoUtility::DoerWillingToDo(RimWorld.HistoryEventDef def, Verse.Pawn
pawn)
IL_0031: brtrue => Label2
IL_0036: Label1
IL_0036: ldc.i4.0
IL_0037: br => Label9
IL_003C: Label2
IL_003C: ldarg.0
IL_003D: ldfld RimWorld.Pawn_RelationsTracker Verse.Pawn::relations
IL_0042: ldsfld RimWorld.PawnRelationDef RimWorld.PawnRelationDefOf::Spouse
IL_0047: ldarg.1
IL_0048: callvirt RimWorld.DirectPawnRelation
RimWorld.Pawn_RelationsTracker::GetDirectRelation(RimWorld.PawnRelationDef def,
Verse.Pawn otherPawn)
IL_004D: brfalse => Label3
IL_0052: ldsfld RimWorld.HistoryEventDef
RimWorld.HistoryEventDefOf::SharedBed_Spouse
IL_0057: ldarg.0
IL_0058: call static System.Boolean
RimWorld.IdeoUtility::DoerWillingToDo(RimWorld.HistoryEventDef def, Verse.Pawn
pawn)
IL_005D: brfalse => Label4
IL_0062: ldsfld RimWorld.HistoryEventDef
RimWorld.HistoryEventDefOf::SharedBed_Spouse
IL_0067: ldarg.1
IL_0068: call static System.Boolean
RimWorld.IdeoUtility::DoerWillingToDo(RimWorld.HistoryEventDef def, Verse.Pawn
pawn)
IL_006D: brtrue => Label5
IL_0072: Label4
IL_0072: ldc.i4.0
IL_0073: br => Label10
IL_0078: Label3
IL_0078: ldsfld RimWorld.HistoryEventDef
RimWorld.HistoryEventDefOf::SharedBed_NonSpouse
IL_007D: ldarg.0
IL_007E: call static System.Boolean
RimWorld.IdeoUtility::DoerWillingToDo(RimWorld.HistoryEventDef def, Verse.Pawn
pawn)
IL_0083: brfalse => Label6
IL_0088: ldsfld RimWorld.HistoryEventDef
RimWorld.HistoryEventDefOf::SharedBed_NonSpouse
IL_008D: ldarg.1
IL_008E: call static System.Boolean
RimWorld.IdeoUtility::DoerWillingToDo(RimWorld.HistoryEventDef def, Verse.Pawn
pawn)
IL_0093: brtrue => Label7
IL_0098: Label6
IL_0098: ldc.i4.0
IL_0099: br => Label11
IL_009E: Label5
IL_009E: Label7
IL_009E: ldc.i4.1
IL_009F: // end original
IL_009F: Label8
IL_009F: Label9
IL_009F: Label10
IL_009F: Label11
IL_009F: stloc 0 (System.Boolean)
IL_00A3: ldarg 0
IL_00A7: ldarg 1
IL_00AB: ldloca 0 (System.Boolean)
IL_00AF: call static System.Void
AlienRace.HarmonyPatches::WillingToShareBedPostfix(Verse.Pawn pawn1, Verse.Pawn
pawn2, System.Boolean& __result)
IL_00B4: ldloc 0 (System.Boolean)
IL_00B8: ret
DONE

### Patch: virtual System.Void RimWorld.Tradeable_Pawn::ResolveTrade()


### Replacement: static System.Void
RimWorld.Tradeable_Pawn::RimWorld.Tradeable_Pawn.ResolveTrade_Patch0(RimWorld.Trade
able_Pawn this)
IL_0000: Local var 0: System.Collections.Generic.List`1<Verse.Pawn>
IL_0000: Local var 1: System.Int32
IL_0000: Local var 2: System.Collections.Generic.List`1<Verse.Pawn>
IL_0000: Local var 3: System.Int32
IL_0000: // start original
IL_0000: ldarg.0
IL_0001: call RimWorld.TradeAction RimWorld.Tradeable::get_ActionToDo()
IL_0006: ldc.i4.2
IL_0007: bne.un => Label0
IL_000C: ldarg.0
IL_000D: ldfld System.Collections.Generic.List`1<Verse.Thing>
RimWorld.Tradeable::thingsColony
IL_0012: ldarg.0
IL_0013: call System.Int32
RimWorld.Transferable::get_CountToTransferToDestination()
IL_0018: call static System.Collections.Generic.IEnumerable`1<Verse.Thing>
System.Linq.Enumerable::Take(System.Collections.Generic.IEnumerable`1<Verse.Thing>
source, System.Int32 count)
IL_001D: call static System.Collections.Generic.IEnumerable`1<Verse.Pawn>
System.Linq.Enumerable::Cast(System.Collections.IEnumerable source)
IL_0022: call static System.Collections.Generic.List`1<Verse.Pawn>
System.Linq.Enumerable::ToList(System.Collections.Generic.IEnumerable`1<Verse.Pawn>
source)
IL_0027: stloc.0
IL_0028: ldc.i4.0
IL_0029: stloc.1
IL_002A: br => Label1
IL_002F: Label3
IL_002F: ldloc.0
IL_0030: ldloc.1
IL_0031: callvirt virtual Verse.Pawn
System.Collections.Generic.List`1<Verse.Pawn>::get_Item(System.Int32 index)
IL_0036: ldsfld RimWorld.ITrader RimWorld.TradeSession::trader
IL_003B: callvirt abstract virtual RimWorld.Faction
RimWorld.ITrader::get_Faction()
IL_0040: call static System.Boolean
RimWorld.GuestUtility::IsSellingToSlavery(Verse.Pawn slave, RimWorld.Faction
slaveOwner)
IL_0045: ldsfld Verse.Pawn RimWorld.TradeSession::playerNegotiator
IL_004A: ldloc.0
IL_004B: ldloc.1
IL_004C: call virtual Verse.Pawn
System.Collections.Generic.List`1<Verse.Pawn>::get_Item(System.Int32 index)
IL_0051: call static System.Void
AlienRace.HarmonyPatches::SoldSlave(Verse.Pawn pawn, Verse.Pawn slave)
IL_0056: ldsfld RimWorld.ITrader RimWorld.TradeSession::trader
IL_005B: ldloc.0
IL_005C: ldloc.1
IL_005D: callvirt virtual Verse.Pawn
System.Collections.Generic.List`1<Verse.Pawn>::get_Item(System.Int32 index)
IL_0062: ldc.i4.1
IL_0063: ldsfld Verse.Pawn RimWorld.TradeSession::playerNegotiator
IL_0068: callvirt abstract virtual System.Void
RimWorld.ITrader::GiveSoldThingToTrader(Verse.Thing toGive, System.Int32
countToGive, Verse.Pawn playerNegotiator)
IL_006D: brfalse => Label2
IL_0072: call static RimWorld.HistoryEventsManager
Verse.Find::get_HistoryEventsManager()
IL_0077: ldsfld RimWorld.HistoryEventDef RimWorld.HistoryEventDefOf::SoldSlave
IL_007C: ldsfld Verse.Pawn RimWorld.TradeSession::playerNegotiator
IL_0081: ldsfld System.String RimWorld.HistoryEventArgsNames::Doer
IL_0086: call static Verse.NamedArgument
Verse.NamedArgumentUtility::Named(System.Object arg, System.String label)
IL_008B: newobj System.Void
RimWorld.HistoryEvent::.ctor(RimWorld.HistoryEventDef def, Verse.NamedArgument
arg1)
IL_0090: ldc.i4.1
IL_0091: callvirt System.Void
RimWorld.HistoryEventsManager::RecordEvent(RimWorld.HistoryEvent historyEvent,
System.Boolean canApplySelfTookThoughts)
IL_0096: Label2
IL_0096: ldloc.1
IL_0097: ldc.i4.1
IL_0098: add
IL_0099: stloc.1
IL_009A: Label1
IL_009A: ldloc.1
IL_009B: ldloc.0
IL_009C: callvirt virtual System.Int32
System.Collections.Generic.List`1<Verse.Pawn>::get_Count()
IL_00A1: blt => Label3
IL_00A6: br => Label8
IL_00AB: Label0
IL_00AB: ldarg.0
IL_00AC: call RimWorld.TradeAction RimWorld.Tradeable::get_ActionToDo()
IL_00B1: ldc.i4.1
IL_00B2: bne.un => Label4
IL_00B7: ldarg.0
IL_00B8: ldfld System.Collections.Generic.List`1<Verse.Thing>
RimWorld.Tradeable::thingsTrader
IL_00BD: ldarg.0
IL_00BE: call System.Int32
RimWorld.Transferable::get_CountToTransferToSource()
IL_00C3: call static System.Collections.Generic.IEnumerable`1<Verse.Thing>
System.Linq.Enumerable::Take(System.Collections.Generic.IEnumerable`1<Verse.Thing>
source, System.Int32 count)
IL_00C8: call static System.Collections.Generic.IEnumerable`1<Verse.Pawn>
System.Linq.Enumerable::Cast(System.Collections.IEnumerable source)
IL_00CD: call static System.Collections.Generic.List`1<Verse.Pawn>
System.Linq.Enumerable::ToList(System.Collections.Generic.IEnumerable`1<Verse.Pawn>
source)
IL_00D2: stloc.2
IL_00D3: ldc.i4.0
IL_00D4: stloc.3
IL_00D5: br => Label5
IL_00DA: Label6
IL_00DA: ldsfld RimWorld.ITrader RimWorld.TradeSession::trader
IL_00DF: ldloc.2
IL_00E0: ldloc.3
IL_00E1: callvirt virtual Verse.Pawn
System.Collections.Generic.List`1<Verse.Pawn>::get_Item(System.Int32 index)
IL_00E6: ldc.i4.1
IL_00E7: ldsfld Verse.Pawn RimWorld.TradeSession::playerNegotiator
IL_00EC: callvirt abstract virtual System.Void
RimWorld.ITrader::GiveSoldThingToPlayer(Verse.Thing toGive, System.Int32
countToGive, Verse.Pawn playerNegotiator)
IL_00F1: ldsfld RimWorld.ITrader RimWorld.TradeSession::trader
IL_00F6: isinst Verse.Pawn
IL_00FB: brfalse => Label7
IL_0100: ldsfld RimWorld.ITrader RimWorld.TradeSession::trader
IL_0105: castclass Verse.Pawn
IL_010A: ldloc.2
IL_010B: ldloc.3
IL_010C: call virtual Verse.Pawn
System.Collections.Generic.List`1<Verse.Pawn>::get_Item(System.Int32 index)
IL_0111: call static System.Void
AlienRace.HarmonyPatches::SoldSlave(Verse.Pawn pawn, Verse.Pawn slave)
IL_0116: Label7
IL_0116: nop
IL_0117: ldloc.3
IL_0118: ldc.i4.1
IL_0119: add
IL_011A: stloc.3
IL_011B: Label5
IL_011B: ldloc.3
IL_011C: ldloc.2
IL_011D: callvirt virtual System.Int32
System.Collections.Generic.List`1<Verse.Pawn>::get_Count()
IL_0122: blt => Label6
IL_0127: // end original
IL_0127: Label4
IL_0127: Label8
IL_0127: ret
DONE

### Patch: static System.Void RimWorld.TradeUI::DrawTradeableRow(UnityEngine.Rect


rect, RimWorld.Tradeable trad, System.Int32 index)
### Replacement: static System.Void
RimWorld.TradeUI::RimWorld.TradeUI.DrawTradeableRow_Patch0(UnityEngine.Rect rect,
RimWorld.Tradeable trad, System.Int32 index)
IL_0000: Local var 0: System.Single
IL_0000: Local var 1: System.Int32
IL_0000: Local var 2: UnityEngine.Rect
IL_0000: Local var 3: System.Int32
IL_0000: Local var 4: UnityEngine.Rect
IL_0000: Local var 5: UnityEngine.Rect
IL_0000: Local var 6: System.Boolean
IL_0000: Local var 7: UnityEngine.Rect
IL_0000: Local var 8: UnityEngine.Rect
IL_0000: Local var 9: UnityEngine.Rect
IL_0000: Local var 10: UnityEngine.Rect
IL_0000: // start original
IL_0000: ldarg.2
IL_0001: ldc.i4.2
IL_0002: rem
IL_0003: ldc.i4.1
IL_0004: bne.un => Label0
IL_0009: ldarg.0
IL_000A: call static System.Void
Verse.Widgets::DrawLightHighlight(UnityEngine.Rect rect)
IL_000F: Label0
IL_000F: ldc.i4.1
IL_0010: call static System.Void Verse.Text::set_Font(Verse.GameFont value)
IL_0015: ldarg.0
IL_0016: call static System.Void Verse.Widgets::BeginGroup(UnityEngine.Rect
rect)
IL_001B: ldarga.s 0
IL_001D: call System.Single UnityEngine.Rect::get_width()
IL_0022: stloc.0
IL_0023: ldarg.1
IL_0024: ldc.i4.1
IL_0025: callvirt virtual System.Int32
RimWorld.Tradeable::CountHeldBy(RimWorld.Transactor trans)
IL_002A: stloc.1
IL_002B: ldloc.1
IL_002C: brfalse => Label1
IL_0031: ldarg.1
IL_0032: callvirt virtual System.Boolean RimWorld.Transferable::get_IsThing()
IL_0037: brfalse => Label2
IL_003C: ldloca.s 4 (UnityEngine.Rect)
IL_003E: ldloc.0
IL_003F: ldc.r4 75
IL_0044: sub
IL_0045: ldc.r4 0
IL_004A: ldc.r4 75
IL_004F: ldarga.s 0
IL_0051: call System.Single UnityEngine.Rect::get_height()
IL_0056: call System.Void UnityEngine.Rect::.ctor(System.Single x,
System.Single y, System.Single width, System.Single height)
IL_005B: ldloc.s 4 (UnityEngine.Rect)
IL_005D: call static System.Boolean Verse.Mouse::IsOver(UnityEngine.Rect
rect)
IL_0062: brfalse => Label3
IL_0067: ldloc.s 4 (UnityEngine.Rect)
IL_0069: call static System.Void
Verse.Widgets::DrawHighlight(UnityEngine.Rect rect)
IL_006E: Label3
IL_006E: ldc.i4.5
IL_006F: call static System.Void
Verse.Text::set_Anchor(UnityEngine.TextAnchor value)
IL_0074: ldloc.s 4 (UnityEngine.Rect)
IL_0076: stloc.s 5 (UnityEngine.Rect)
IL_0078: ldloca.s 5 (UnityEngine.Rect)
IL_007A: dup
IL_007B: call System.Single UnityEngine.Rect::get_xMin()
IL_0080: ldc.r4 5
IL_0085: add
IL_0086: call System.Void UnityEngine.Rect::set_xMin(System.Single value)
IL_008B: ldloca.s 5 (UnityEngine.Rect)
IL_008D: dup
IL_008E: call System.Single UnityEngine.Rect::get_xMax()
IL_0093: ldc.r4 5
IL_0098: sub
IL_0099: call System.Void UnityEngine.Rect::set_xMax(System.Single value)
IL_009E: ldloc.s 5 (UnityEngine.Rect)
IL_00A0: ldloc.1
IL_00A1: call static System.String
Verse.GenString::ToStringCached(System.Int32 num)
IL_00A6: call static System.Void Verse.Widgets::Label(UnityEngine.Rect rect,
System.String label)
IL_00AB: ldloc.s 4 (UnityEngine.Rect)
IL_00AD: ldstr "TraderCount"
IL_00B2: call static System.Void
Verse.TooltipHandler::TipRegionByKey(UnityEngine.Rect rect, System.String key)
IL_00B7: ldloca.s 4 (UnityEngine.Rect)
IL_00B9: call System.Single UnityEngine.Rect::get_x()
IL_00BE: ldc.r4 100
IL_00C3: sub
IL_00C4: ldc.r4 0
IL_00C9: ldc.r4 100
IL_00CE: ldarga.s 0
IL_00D0: call System.Single UnityEngine.Rect::get_height()
IL_00D5: newobj System.Void UnityEngine.Rect::.ctor(System.Single x,
System.Single y, System.Single width, System.Single height)
IL_00DA: ldc.i4.5
IL_00DB: call static System.Void
Verse.Text::set_Anchor(UnityEngine.TextAnchor value)
IL_00E0: ldarg.1
IL_00E1: ldc.i4.1
IL_00E2: call static System.Void RimWorld.TradeUI::DrawPrice(UnityEngine.Rect
rect, RimWorld.Tradeable trad, RimWorld.TradeAction action)
IL_00E7: Label1
IL_00E7: Label2
IL_00E7: ldloc.0
IL_00E8: ldc.r4 175
IL_00ED: sub
IL_00EE: stloc.0
IL_00EF: ldloca.s 2 (UnityEngine.Rect)
IL_00F1: ldloc.0
IL_00F2: ldc.r4 240
IL_00F7: sub
IL_00F8: ldc.r4 0
IL_00FD: ldc.r4 240
IL_0102: ldarga.s 0
IL_0104: call System.Single UnityEngine.Rect::get_height()
IL_0109: call System.Void UnityEngine.Rect::.ctor(System.Single x,
System.Single y, System.Single width, System.Single height)
IL_010E: ldarg.1
IL_010F: callvirt virtual System.Boolean
RimWorld.Tradeable::get_TraderWillTrade()
IL_0114: brtrue => Label4
IL_0119: ldloc.2
IL_011A: ldstr "TraderWillNotTrade"
IL_011F: call static Verse.TaggedString
Verse.Translator::Translate(System.String key)
IL_0124: call static System.String
Verse.TaggedString::op_Implicit(Verse.TaggedString taggedString)
IL_0129: call static System.Void
RimWorld.TradeUI::DrawWillNotTradeText(UnityEngine.Rect rect, System.String text)
IL_012E: br => Label5
IL_0133: Label4
IL_0133: call static System.Boolean Verse.ModsConfig::get_IdeologyActive()
IL_0138: brfalse => Label6
IL_013D: ldarg.1
IL_013E: ldsfld RimWorld.ITrader RimWorld.TradeSession::trader
IL_0143: callvirt abstract virtual RimWorld.Faction
RimWorld.ITrader::get_Faction()
IL_0148: call static System.Boolean
RimWorld.TransferableUIUtility::TradeIsPlayerSellingToSlavery(RimWorld.Tradeable
trad, RimWorld.Faction traderFaction)
IL_014D: brfalse => Label7
IL_0152: ldsfld RimWorld.HistoryEventDef RimWorld.HistoryEventDefOf::SoldSlave
IL_0157: ldsfld Verse.Pawn RimWorld.TradeSession::playerNegotiator
IL_015C: ldsfld System.String RimWorld.HistoryEventArgsNames::Doer
IL_0161: call static Verse.NamedArgument
Verse.NamedArgumentUtility::Named(System.Object arg, System.String label)
IL_0166: newobj System.Void
RimWorld.HistoryEvent::.ctor(RimWorld.HistoryEventDef def, Verse.NamedArgument
arg1)
IL_016B: call static System.Boolean
RimWorld.IdeoUtility::DoerWillingToDo(RimWorld.HistoryEvent ev)
IL_0170: brtrue => Label8
IL_0175: ldsfld Verse.Pawn RimWorld.TradeSession::playerNegotiator
IL_017A: ldarg.1
IL_017B: call static System.Boolean
AlienRace.HarmonyPatches::DrawTransferableRowIsWilling(Verse.Pawn doer,
RimWorld.Tradeable trad)
IL_0180: brtrue => Label8
IL_0185: ldloc.2
IL_0186: ldstr "NegotiatorWillNotTradeSlaves"
IL_018B: ldsfld Verse.Pawn RimWorld.TradeSession::playerNegotiator
IL_0190: call static Verse.NamedArgument
Verse.NamedArgument::op_Implicit(Verse.Thing value)
IL_0195: call static Verse.TaggedString
Verse.TranslatorFormattedStringExtensions::Translate(System.String key,
Verse.NamedArgument arg1)
IL_019A: call static System.String
Verse.TaggedString::op_Implicit(Verse.TaggedString taggedString)
IL_019F: call static System.Void
RimWorld.TradeUI::DrawWillNotTradeText(UnityEngine.Rect rect, System.String text)
IL_01A4: ldloc.2
IL_01A5: call static System.Boolean Verse.Mouse::IsOver(UnityEngine.Rect
rect)
IL_01AA: brfalse => Label9
IL_01AF: ldloc.2
IL_01B0: call static System.Void
Verse.Widgets::DrawHighlight(UnityEngine.Rect rect)
IL_01B5: ldloc.2
IL_01B6: ldstr "NegotiatorWillNotTradeSlavesTip"
IL_01BB: ldsfld Verse.Pawn RimWorld.TradeSession::playerNegotiator
IL_01C0: call static Verse.NamedArgument
Verse.NamedArgument::op_Implicit(Verse.Thing value)
IL_01C5: ldsfld Verse.Pawn RimWorld.TradeSession::playerNegotiator
IL_01CA: callvirt RimWorld.Ideo Verse.Pawn::get_Ideo()
IL_01CF: ldfld System.String RimWorld.Ideo::name
IL_01D4: call static Verse.NamedArgument
Verse.NamedArgument::op_Implicit(System.String value)
IL_01D9: call static Verse.TaggedString
Verse.TranslatorFormattedStringExtensions::Translate(System.String key,
Verse.NamedArgument arg1, Verse.NamedArgument arg2)
IL_01DE: call static Verse.TipSignal
Verse.TipSignal::op_Implicit(Verse.TaggedString str)
IL_01E3: call static System.Void
Verse.TooltipHandler::TipRegion(UnityEngine.Rect rect, Verse.TipSignal tip)
IL_01E8: br => Label10
IL_01ED: Label6
IL_01ED: Label7
IL_01ED: Label8
IL_01ED: call static System.Single UnityEngine.Time::get_time()
IL_01F2: ldsfld System.Single RimWorld.Dialog_Trade::lastCurrencyFlashTime
IL_01F7: sub
IL_01F8: ldc.r4 1
IL_01FD: bge.un => Label11
IL_0202: ldarg.1
IL_0203: callvirt virtual System.Boolean RimWorld.Tradeable::get_IsCurrency()
IL_0208: br => Label12
IL_020D: Label11
IL_020D: ldc.i4.0
IL_020E: Label12
IL_020E: stloc.s 6 (System.Boolean)
IL_0210: ldloc.2
IL_0211: ldarg.1
IL_0212: ldarg.2
IL_0213: ldarg.1
IL_0214: callvirt abstract virtual System.Int32
RimWorld.Transferable::GetMinimumToTransfer()
IL_0219: ldarg.1
IL_021A: callvirt abstract virtual System.Int32
RimWorld.Transferable::GetMaximumToTransfer()
IL_021F: ldloc.s 6 (System.Boolean)
IL_0221: ldnull
IL_0222: ldc.i4.0
IL_0223: call static System.Void
RimWorld.TransferableUIUtility::DoCountAdjustInterface(UnityEngine.Rect rect,
RimWorld.Transferable trad, System.Int32 index, System.Int32 min, System.Int32 max,
System.Boolean flash,
System.Collections.Generic.List`1<RimWorld.TransferableCountToTransferStoppingPoint
> extraStoppingPoints, System.Boolean readOnly)
IL_0228: Label5
IL_0228: Label9
IL_0228: Label10
IL_0228: ldloc.0
IL_0229: ldc.r4 240
IL_022E: sub
IL_022F: stloc.0
IL_0230: ldarg.1
IL_0231: ldc.i4.0
IL_0232: callvirt virtual System.Int32
RimWorld.Tradeable::CountHeldBy(RimWorld.Transactor trans)
IL_0237: stloc.3
IL_0238: ldloc.3
IL_0239: brtrue => Label13
IL_023E: ldarg.1
IL_023F: callvirt virtual System.Boolean RimWorld.Tradeable::get_IsCurrency()
IL_0244: brfalse => Label14
IL_0249: Label13
IL_0249: ldloca.s 7 (UnityEngine.Rect)
IL_024B: ldloc.0
IL_024C: ldc.r4 100
IL_0251: sub
IL_0252: ldc.r4 0
IL_0257: ldc.r4 100
IL_025C: ldarga.s 0
IL_025E: call System.Single UnityEngine.Rect::get_height()
IL_0263: call System.Void UnityEngine.Rect::.ctor(System.Single x,
System.Single y, System.Single width, System.Single height)
IL_0268: ldc.i4.3
IL_0269: call static System.Void
Verse.Text::set_Anchor(UnityEngine.TextAnchor value)
IL_026E: ldloc.s 7 (UnityEngine.Rect)
IL_0270: ldarg.1
IL_0271: ldc.i4.2
IL_0272: call static System.Void RimWorld.TradeUI::DrawPrice(UnityEngine.Rect
rect, RimWorld.Tradeable trad, RimWorld.TradeAction action)
IL_0277: ldloca.s 8 (UnityEngine.Rect)
IL_0279: ldloca.s 7 (UnityEngine.Rect)
IL_027B: call System.Single UnityEngine.Rect::get_x()
IL_0280: ldc.r4 75
IL_0285: sub
IL_0286: ldc.r4 0
IL_028B: ldc.r4 75
IL_0290: ldarga.s 0
IL_0292: call System.Single UnityEngine.Rect::get_height()
IL_0297: call System.Void UnityEngine.Rect::.ctor(System.Single x,
System.Single y, System.Single width, System.Single height)
IL_029C: ldloc.s 8 (UnityEngine.Rect)
IL_029E: call static System.Boolean Verse.Mouse::IsOver(UnityEngine.Rect
rect)
IL_02A3: brfalse => Label15
IL_02A8: ldloc.s 8 (UnityEngine.Rect)
IL_02AA: call static System.Void
Verse.Widgets::DrawHighlight(UnityEngine.Rect rect)
IL_02AF: Label15
IL_02AF: ldc.i4.3
IL_02B0: call static System.Void
Verse.Text::set_Anchor(UnityEngine.TextAnchor value)
IL_02B5: ldloc.s 8 (UnityEngine.Rect)
IL_02B7: stloc.s 9 (UnityEngine.Rect)
IL_02B9: ldloca.s 9 (UnityEngine.Rect)
IL_02BB: dup
IL_02BC: call System.Single UnityEngine.Rect::get_xMin()
IL_02C1: ldc.r4 5
IL_02C6: add
IL_02C7: call System.Void UnityEngine.Rect::set_xMin(System.Single value)
IL_02CC: ldloca.s 9 (UnityEngine.Rect)
IL_02CE: dup
IL_02CF: call System.Single UnityEngine.Rect::get_xMax()
IL_02D4: ldc.r4 5
IL_02D9: sub
IL_02DA: call System.Void UnityEngine.Rect::set_xMax(System.Single value)
IL_02DF: ldloc.s 9 (UnityEngine.Rect)
IL_02E1: ldloc.3
IL_02E2: call static System.String
Verse.GenString::ToStringCached(System.Int32 num)
IL_02E7: call static System.Void Verse.Widgets::Label(UnityEngine.Rect rect,
System.String label)
IL_02EC: ldloc.s 8 (UnityEngine.Rect)
IL_02EE: ldstr "ColonyCount"
IL_02F3: call static System.Void
Verse.TooltipHandler::TipRegionByKey(UnityEngine.Rect rect, System.String key)
IL_02F8: Label14
IL_02F8: ldloc.0
IL_02F9: ldc.r4 175
IL_02FE: sub
IL_02FF: stloc.0
IL_0300: ldarg.1
IL_0301: ldarg.0
IL_0302: ldloca.s 0 (System.Single)
IL_0304: call static System.Void
RimWorld.TransferableUIUtility::DoExtraIcons(RimWorld.Transferable trad,
UnityEngine.Rect rect, System.Single& curX)
IL_0309: call static System.Boolean Verse.ModsConfig::get_IdeologyActive()
IL_030E: brfalse => Label16
IL_0313: ldarg.1
IL_0314: ldsfld RimWorld.ITrader RimWorld.TradeSession::trader
IL_0319: ldarg.0
IL_031A: ldloca.s 0 (System.Single)
IL_031C: call static System.Void
RimWorld.TransferableUIUtility::DrawCaptiveTradeInfo(RimWorld.Transferable trad,
RimWorld.ITrader trader, UnityEngine.Rect rect, System.Single& curX)
IL_0321: Label16
IL_0321: ldloca.s 10 (UnityEngine.Rect)
IL_0323: ldc.r4 0
IL_0328: ldc.r4 0
IL_032D: ldloc.0
IL_032E: ldarga.s 0
IL_0330: call System.Single UnityEngine.Rect::get_height()
IL_0335: call System.Void UnityEngine.Rect::.ctor(System.Single x,
System.Single y, System.Single width, System.Single height)
IL_033A: ldarg.1
IL_033B: ldloc.s 10 (UnityEngine.Rect)
IL_033D: ldarg.1
IL_033E: callvirt virtual System.Boolean
RimWorld.Tradeable::get_TraderWillTrade()
IL_0343: brtrue => Label17
IL_0348: ldsfld UnityEngine.Color RimWorld.TradeUI::NoTradeColor
IL_034D: br => Label18
IL_0352: Label17
IL_0352: call static UnityEngine.Color UnityEngine.Color::get_white()
IL_0357: Label18
IL_0357: call static System.Void
RimWorld.TransferableUIUtility::DrawTransferableInfo(RimWorld.Transferable trad,
UnityEngine.Rect idRect, UnityEngine.Color labelColor)
IL_035C: call static System.Void Verse.GenUI::ResetLabelAlign()
IL_0361: call static System.Void Verse.Widgets::EndGroup()
IL_0366: // end original
IL_0366: ret
DONE

### Patch: System.Void Verse.AI.Pawn_MindState::SetupLastHumanMeatTick()


### Replacement: static System.Void
Verse.AI.Pawn_MindState::Verse.AI.Pawn_MindState.SetupLastHumanMeatTick_Patch1(Vers
e.AI.Pawn_MindState this)
IL_0000: Local var 0: Verse.IntRange
IL_0000: Local var 1: System.Boolean
IL_0000: ldc.i4 0
IL_0005: stloc 1 (System.Boolean)
IL_0009: ldc.i4.1
IL_000A: stloc 1 (System.Boolean)
IL_000E: ldloc 1 (System.Boolean)
IL_0012: brfalse => Label1
IL_0017: ldarg.0
IL_0018: ldfld Verse.Pawn Verse.AI.Pawn_MindState::pawn
IL_001D: call static System.Void
AlienRace.HarmonyPatches::SetupLastHumanMeatTickPrefix(Verse.Pawn ___pawn)
IL_0022: Label1
IL_0022: nop
IL_0023: ldloc 1 (System.Boolean)
IL_0027: brfalse => Label0
IL_002C: // start original
IL_002C: ldarg.0
IL_002D: ldfld Verse.Pawn Verse.AI.Pawn_MindState::pawn
IL_0032: callvirt RimWorld.Ideo Verse.Pawn::get_Ideo()
IL_0037: brfalse => Label2
IL_003C: ldarg.0
IL_003D: ldfld Verse.Pawn Verse.AI.Pawn_MindState::pawn
IL_0042: callvirt RimWorld.Ideo Verse.Pawn::get_Ideo()
IL_0047: call static System.Boolean
RimWorld.IdeoUtility::IdeoCausesHumanMeatCravings(RimWorld.Ideo ideo)
IL_004C: brfalse => Label3
IL_0051: ldarg.0
IL_0052: call static Verse.TickManager Verse.Find::get_TickManager()
IL_0057: callvirt System.Int32 Verse.TickManager::get_TicksGame()
IL_005C: stfld System.Int32 Verse.AI.Pawn_MindState::lastHumanMeatIngestedTick
IL_0061: ldarg.0
IL_0062: ldarg.0
IL_0063: ldfld System.Int32 Verse.AI.Pawn_MindState::lastHumanMeatIngestedTick
IL_0068: ldsfld Verse.IntRange
Verse.AI.Pawn_MindState::LastHumanMeatEatenTicksRange
IL_006D: stloc.0
IL_006E: ldloca.s 0 (Verse.IntRange)
IL_0070: call System.Int32 Verse.IntRange::get_RandomInRange()
IL_0075: sub
IL_0076: stfld System.Int32 Verse.AI.Pawn_MindState::lastHumanMeatIngestedTick
IL_007B: // end original
IL_007B: Label2
IL_007B: Label3
IL_007B: Label0
IL_007B: ret
DONE

### Patch: static System.Void


RimWorld.FoodUtility::AddThoughtsFromIdeo(RimWorld.HistoryEventDef eventDef,
Verse.Pawn ingester, Verse.ThingDef foodDef, RimWorld.MeatSourceCategory
meatSourceCategory)
### Replacement: static System.Void
RimWorld.FoodUtility::RimWorld.FoodUtility.AddThoughtsFromIdeo_Patch1(RimWorld.Hist
oryEventDef eventDef, Verse.Pawn ingester, Verse.ThingDef foodDef,
RimWorld.MeatSourceCategory meatSourceCategory)
IL_0000: Local var 0: System.Collections.Generic.List`1<RimWorld.Precept>
IL_0000: Local var 1: System.Int32
IL_0000: Local var 2: System.Collections.Generic.List`1<RimWorld.PreceptComp>
IL_0000: Local var 3: System.Int32
IL_0000: Local var 4: RimWorld.PreceptComp_SelfTookMemoryThought
IL_0000: Local var 5: System.Boolean
IL_0000: ldc.i4 0
IL_0005: stloc 5 (System.Boolean)
IL_0009: ldc.i4.1
IL_000A: stloc 5 (System.Boolean)
IL_000E: ldloc 5 (System.Boolean)
IL_0012: brfalse => Label1
IL_0017: ldarga 0
IL_001B: ldarg 1
IL_001F: ldarg 2
IL_0023: ldarg 3
IL_0027: call static System.Void
AlienRace.HarmonyPatches::FoodUtilityAddThoughtsFromIdeoPrefix(RimWorld.HistoryEven
tDef& eventDef, Verse.Pawn ingester, Verse.ThingDef foodDef,
RimWorld.MeatSourceCategory meatSourceCategory)
IL_002C: Label1
IL_002C: nop
IL_002D: ldloc 5 (System.Boolean)
IL_0031: brfalse => Label0
IL_0036: // start original
IL_0036: ldarg.1
IL_0037: callvirt RimWorld.Ideo Verse.Pawn::get_Ideo()
IL_003C: brtrue => Label2
IL_0041: br => Label9
IL_0046: Label2
IL_0046: ldarg.1
IL_0047: callvirt RimWorld.Ideo Verse.Pawn::get_Ideo()
IL_004C: callvirt System.Collections.Generic.List`1<RimWorld.Precept>
RimWorld.Ideo::get_PreceptsListForReading()
IL_0051: stloc.0
IL_0052: ldc.i4.0
IL_0053: stloc.1
IL_0054: br => Label3
IL_0059: Label8
IL_0059: ldloc.0
IL_005A: ldloc.1
IL_005B: callvirt virtual RimWorld.Precept
System.Collections.Generic.List`1<RimWorld.Precept>::get_Item(System.Int32 index)
IL_0060: ldfld RimWorld.PreceptDef RimWorld.Precept::def
IL_0065: ldfld System.Collections.Generic.List`1<RimWorld.PreceptComp>
RimWorld.PreceptDef::comps
IL_006A: stloc.2
IL_006B: ldc.i4.0
IL_006C: stloc.3
IL_006D: br => Label4
IL_0072: Label7
IL_0072: ldloc.2
IL_0073: ldloc.3
IL_0074: callvirt virtual RimWorld.PreceptComp
System.Collections.Generic.List`1<RimWorld.PreceptComp>::get_Item(System.Int32
index)
IL_0079: isinst RimWorld.PreceptComp_SelfTookMemoryThought
IL_007E: dup
IL_007F: stloc.s 4 (RimWorld.PreceptComp_SelfTookMemoryThought)
IL_0081: brfalse => Label5
IL_0086: ldloc.s 4 (RimWorld.PreceptComp_SelfTookMemoryThought)
IL_0088: ldfld RimWorld.HistoryEventDef
RimWorld.PreceptComp_SelfTookMemoryThought::eventDef
IL_008D: ldarg.0
IL_008E: bne.un => Label6
IL_0093: ldarg.1
IL_0094: ldloc.s 4 (RimWorld.PreceptComp_SelfTookMemoryThought)
IL_0096: ldfld RimWorld.ThoughtDef RimWorld.PreceptComp_Thought::thought
IL_009B: ldloc.0
IL_009C: ldloc.1
IL_009D: callvirt virtual RimWorld.Precept
System.Collections.Generic.List`1<RimWorld.Precept>::get_Item(System.Int32 index)
IL_00A2: ldsfld
System.Collections.Generic.List`1<RimWorld.ThoughtFromIngesting>
RimWorld.FoodUtility::ingestThoughts
IL_00A7: ldarg.2
IL_00A8: ldarg.3
IL_00A9: call static System.Void
RimWorld.FoodUtility::TryAddIngestThought(Verse.Pawn ingester, RimWorld.ThoughtDef
def, RimWorld.Precept fromPrecept,
System.Collections.Generic.List`1<RimWorld.ThoughtFromIngesting> ingestThoughts,
Verse.ThingDef foodDef, RimWorld.MeatSourceCategory meatSourceCategory)
IL_00AE: Label5
IL_00AE: Label6
IL_00AE: ldloc.3
IL_00AF: ldc.i4.1
IL_00B0: add
IL_00B1: stloc.3
IL_00B2: Label4
IL_00B2: ldloc.3
IL_00B3: ldloc.2
IL_00B4: callvirt virtual System.Int32
System.Collections.Generic.List`1<RimWorld.PreceptComp>::get_Count()
IL_00B9: blt => Label7
IL_00BE: ldloc.1
IL_00BF: ldc.i4.1
IL_00C0: add
IL_00C1: stloc.1
IL_00C2: Label3
IL_00C2: ldloc.1
IL_00C3: ldloc.0
IL_00C4: callvirt virtual System.Int32
System.Collections.Generic.List`1<RimWorld.Precept>::get_Count()
IL_00C9: blt => Label8
IL_00CE: // end original
IL_00CE: Label9
IL_00CE: Label0
IL_00CE: ret
DONE

### Patch: virtual System.Boolean


RimWorld.PreceptComp_UnwillingToDo_Gendered::MemberWillingToDo(RimWorld.HistoryEven
t ev)
### Replacement: static System.Boolean
RimWorld.PreceptComp_UnwillingToDo_Gendered::RimWorld.PreceptComp_UnwillingToDo_Gen
dered.MemberWillingToDo_Patch0(RimWorld.PreceptComp_UnwillingToDo_Gendered this,
RimWorld.HistoryEvent ev)
IL_0000: Local var 0: Verse.Pawn
IL_0000: // start original
IL_0000: ldarga.s 1
IL_0002: ldflda RimWorld.SignalArgs RimWorld.HistoryEvent::args
IL_0007: ldsfld System.String RimWorld.HistoryEventArgsNames::Doer
IL_000C: ldloca.s 0 (Verse.Pawn)
IL_000E: call System.Boolean RimWorld.SignalArgs::TryGetArg(System.String
name, Verse.Pawn& arg)
IL_0013: brfalse => Label0
IL_0018: ldloc.0
IL_0019: ldfld Verse.ThingDef Verse.Thing::def
IL_001E: ldfld Verse.RaceProperties Verse.ThingDef::race
IL_0023: ldfld System.Boolean Verse.RaceProperties::hasGenders
IL_0028: brfalse => Label1
IL_002D: ldloc.0
IL_002E: ldfld Verse.Gender Verse.Pawn::gender
IL_0033: ldarg.0
IL_0034: ldfld Verse.Gender
RimWorld.PreceptComp_UnwillingToDo_Gendered::gender
IL_0039: beq => Label1
IL_003E: Label0
IL_003E: ldc.i4.1
IL_003F: br => Label2
IL_0044: Label1
IL_0044: ldarg.0
IL_0045: ldarg.1
IL_0046: call virtual System.Boolean
RimWorld.PreceptComp_UnwillingToDo::MemberWillingToDo(RimWorld.HistoryEvent ev)
IL_004B: // end original
IL_004B: Label2
IL_004B: ret
DONE

### Patch: System.Int32


RimWorld.JobDriver_Lovin::GenerateRandomMinTicksToNextLovin(Verse.Pawn pawn)
### Replacement: static System.Int32
RimWorld.JobDriver_Lovin::RimWorld.JobDriver_Lovin.GenerateRandomMinTicksToNextLovi
n_Patch0(RimWorld.JobDriver_Lovin this, Verse.Pawn pawn)
IL_0000: Local var 0: System.Single
IL_0000: Local var 1: System.Collections.Generic.List`1/Enumerator<Verse.Gene>
IL_0000: Local var 2: Verse.Gene
IL_0000: // start original
IL_0000: ldsfld System.Boolean Verse.DebugSettings::alwaysDoLovin
IL_0005: brfalse => Label0
IL_000A: ldc.i4.s 100
IL_000C: br => Label7
IL_0011: Label0
IL_0011: ldsfld Verse.SimpleCurve
RimWorld.JobDriver_Lovin::LovinIntervalHoursFromAgeCurve
IL_0016: ldarg.1
IL_0017: call static Verse.SimpleCurve
AlienRace.HarmonyPatches::LovinInterval(Verse.SimpleCurve humanDefault, Verse.Pawn
pawn)
IL_001C: ldarg.1
IL_001D: ldfld Verse.Pawn_AgeTracker Verse.Pawn::ageTracker
IL_0022: callvirt System.Single
Verse.Pawn_AgeTracker::get_AgeBiologicalYearsFloat()
IL_0027: callvirt System.Single Verse.SimpleCurve::Evaluate(System.Single x)
IL_002C: stloc.0
IL_002D: call static System.Boolean Verse.ModsConfig::get_BiotechActive()
IL_0032: brfalse => Label1
IL_0037: ldarg.1
IL_0038: ldfld RimWorld.Pawn_GeneTracker Verse.Pawn::genes
IL_003D: brfalse => Label2
IL_0042: ldarg.1
IL_0043: ldfld RimWorld.Pawn_GeneTracker Verse.Pawn::genes
IL_0048: callvirt System.Collections.Generic.List`1<Verse.Gene>
RimWorld.Pawn_GeneTracker::get_GenesListForReading()
IL_004D: callvirt System.Collections.Generic.Enumerator<Verse.Gene>
System.Collections.Generic.List`1<Verse.Gene>::GetEnumerator()
IL_0052: stloc.1
.try
{
IL_0053: br => Label3
IL_0058: Label4
IL_0058: ldloca.s 1
(System.Collections.Generic.List`1+Enumerator[Verse.Gene])
IL_005A: call virtual Verse.Gene
System.Collections.Generic.Enumerator<Verse.Gene>::get_Current()
IL_005F: stloc.2
IL_0060: ldloc.0
IL_0061: ldloc.2
IL_0062: ldfld Verse.GeneDef Verse.Gene::def
IL_0067: ldfld System.Single Verse.GeneDef::lovinMTBFactor
IL_006C: mul
IL_006D: stloc.0
IL_006E: Label3
IL_006E: ldloca.s 1
(System.Collections.Generic.List`1+Enumerator[Verse.Gene])
IL_0070: call virtual System.Boolean
System.Collections.Generic.Enumerator<Verse.Gene>::MoveNext()
IL_0075: brtrue => Label4
IL_007A: leave => Label5
IL_007F: leave => (autogenerated)
} // end try
.finally
{
IL_0084: ldloca.s 1
(System.Collections.Generic.List`1+Enumerator[Verse.Gene])
IL_0086: constrained.
System.Collections.Generic.List`1+Enumerator[Verse.Gene]
IL_008C: callvirt abstract virtual System.Void
System.IDisposable::Dispose()
IL_0091: endfinally
IL_0092: leave => (autogenerated)
} // end handler
IL_0093: Label1
IL_0093: Label2
IL_0093: Label5
IL_0093: ldloc.0
IL_0094: ldc.r4 0.3
IL_0099: call static System.Single Verse.Rand::Gaussian(System.Single
centerX, System.Single widthFactor)
IL_009E: stloc.0
IL_009F: ldloc.0
IL_00A0: ldc.r4 0.5
IL_00A5: bge.un => Label6
IL_00AA: ldc.r4 0.5
IL_00AF: stloc.0
IL_00B0: Label6
IL_00B0: ldloc.0
IL_00B1: ldc.r4 2500
IL_00B6: mul
IL_00B7: conv.i4
IL_00B8: // end original
IL_00B8: Label7
IL_00B8: 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_Patch1(Verse.Pawn pawn)
IL_0000: Local var 0: UnityEngine.Vector2
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 RimWorld.Pawn_StoryTracker Verse.Pawn::story
IL_000B: ldfld Verse.HeadTypeDef RimWorld.Pawn_StoryTracker::headType
IL_0010: ldfld UnityEngine.Vector2 Verse.HeadTypeDef::hairMeshSize
IL_0015: stloc.0
IL_0016: call static System.Boolean Verse.ModsConfig::get_BiotechActive()
IL_001B: brfalse => Label0
IL_0020: ldarg.0
IL_0021: ldfld Verse.Pawn_AgeTracker Verse.Pawn::ageTracker
IL_0026: callvirt RimWorld.LifeStageDef Verse.Pawn_AgeTracker::get_CurLifeStage()
IL_002B: ldflda System.Nullable`1<System.Single>
RimWorld.LifeStageDef::headSizeFactor
IL_0030: call System.Boolean System.Nullable`1<System.Single>::get_HasValue()
IL_0035: brfalse => Label1
IL_003A: ldloc.0
IL_003B: ldarg.0
IL_003C: ldfld Verse.Pawn_AgeTracker Verse.Pawn::ageTracker
IL_0041: callvirt RimWorld.LifeStageDef Verse.Pawn_AgeTracker::get_CurLifeStage()
IL_0046: ldflda System.Nullable`1<System.Single>
RimWorld.LifeStageDef::headSizeFactor
IL_004B: call System.Single System.Nullable`1<System.Single>::get_Value()
IL_0050: call static UnityEngine.Vector2
UnityEngine.Vector2::op_Multiply(UnityEngine.Vector2 a, System.Single d)
IL_0055: stloc.0
IL_0056: Label0
IL_0056: Label1
IL_0056: ldloc.0
IL_0057: ldarg.0
IL_0058: call static UnityEngine.Vector2
AlienRace.HarmonyPatches::GetHumanlikeHairSetForPawnHelper(UnityEngine.Vector2
headFactor, Verse.Pawn pawn)
IL_005D: stloc.0
IL_005E: Label0
IL_005E: Label1
IL_005E: ldloc.0
IL_005F: ldfld System.Single UnityEngine.Vector2::x
IL_0064: ldloc.0
IL_0065: ldfld System.Single UnityEngine.Vector2::y
IL_006A: call static Verse.GraphicMeshSet
Verse.MeshPool::GetMeshSetForWidth(System.Single width, System.Single height)
IL_006F: // end original
IL_006F: stloc 1 (Verse.GraphicMeshSet)
IL_0073: ldarg 0
IL_0077: ldloca 1 (Verse.GraphicMeshSet)
IL_007B: call static System.Void
FacialAnimation.HarmonyPatches::PostfixGetHumanlikeHairSetForPawn(Verse.Pawn pawn,
Verse.GraphicMeshSet& __result)
IL_0080: ldloc 1 (Verse.GraphicMeshSet)
IL_0084: ret
DONE

### Patch: static Verse.GraphicMeshSet


Verse.HumanlikeMeshPoolUtility::GetHumanlikeBeardSetForPawn(Verse.Pawn pawn)
### Replacement: static Verse.GraphicMeshSet
Verse.HumanlikeMeshPoolUtility::Verse.HumanlikeMeshPoolUtility.GetHumanlikeBeardSet
ForPawn_Patch1(Verse.Pawn pawn)
IL_0000: Local var 0: UnityEngine.Vector2
IL_0000: Local var 1: Verse.GraphicMeshSet
IL_0000: Local var 2: System.Boolean
IL_0000: ldnull
IL_0001: stloc 1 (Verse.GraphicMeshSet)
IL_0005: ldc.i4 0
IL_000A: stloc 2 (System.Boolean)
IL_000E: ldc.i4.1
IL_000F: stloc 2 (System.Boolean)
IL_0013: ldloc 2 (System.Boolean)
IL_0017: brfalse => Label1
IL_001C: ldarg 0
IL_0020: ldloca 1 (Verse.GraphicMeshSet)
IL_0024: call static System.Boolean
FacialAnimation.HarmonyPatches::PrefixGetHumanlikeBeardSetForPawn(Verse.Pawn pawn,
Verse.GraphicMeshSet& __result)
IL_0029: stloc 2 (System.Boolean)
IL_002D: Label1
IL_002D: nop
IL_002E: ldloc 2 (System.Boolean)
IL_0032: brfalse => Label0
IL_0037: // start original
IL_0037: ldarg.0
IL_0038: ldfld RimWorld.Pawn_StoryTracker Verse.Pawn::story
IL_003D: ldfld Verse.HeadTypeDef RimWorld.Pawn_StoryTracker::headType
IL_0042: ldfld UnityEngine.Vector2 Verse.HeadTypeDef::beardMeshSize
IL_0047: stloc.0
IL_0048: call static System.Boolean Verse.ModsConfig::get_BiotechActive()
IL_004D: brfalse => Label2
IL_0052: ldarg.0
IL_0053: ldfld Verse.Pawn_AgeTracker Verse.Pawn::ageTracker
IL_0058: callvirt RimWorld.LifeStageDef Verse.Pawn_AgeTracker::get_CurLifeStage()
IL_005D: ldflda System.Nullable`1<System.Single>
RimWorld.LifeStageDef::headSizeFactor
IL_0062: call System.Boolean System.Nullable`1<System.Single>::get_HasValue()
IL_0067: brfalse => Label3
IL_006C: ldloc.0
IL_006D: ldarg.0
IL_006E: ldfld Verse.Pawn_AgeTracker Verse.Pawn::ageTracker
IL_0073: callvirt RimWorld.LifeStageDef Verse.Pawn_AgeTracker::get_CurLifeStage()
IL_0078: ldflda System.Nullable`1<System.Single>
RimWorld.LifeStageDef::headSizeFactor
IL_007D: call System.Single System.Nullable`1<System.Single>::get_Value()
IL_0082: call static UnityEngine.Vector2
UnityEngine.Vector2::op_Multiply(UnityEngine.Vector2 a, System.Single d)
IL_0087: stloc.0
IL_0088: Label2
IL_0088: Label3
IL_0088: ldloc.0
IL_0089: ldarg.0
IL_008A: call static UnityEngine.Vector2
AlienRace.HarmonyPatches::GetHumanlikeHairSetForPawnHelper(UnityEngine.Vector2
headFactor, Verse.Pawn pawn)
IL_008F: stloc.0
IL_0090: Label2
IL_0090: Label3
IL_0090: ldloc.0
IL_0091: ldfld System.Single UnityEngine.Vector2::x
IL_0096: ldloc.0
IL_0097: ldfld System.Single UnityEngine.Vector2::y
IL_009C: call static Verse.GraphicMeshSet
Verse.MeshPool::GetMeshSetForWidth(System.Single width, System.Single height)
IL_00A1: // end original
IL_00A1: stloc 1 (Verse.GraphicMeshSet)
IL_00A5: Label0
IL_00A5: ldloc 1 (Verse.GraphicMeshSet)
IL_00A9: 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.MeshPool::GetMeshSetForWidth(System.Single width, System.Single height)
### Replacement: static Verse.GraphicMeshSet
Verse.MeshPool::Verse.MeshPool.GetMeshSetForWidth_Patch0(System.Single width,
System.Single height)
IL_0000: Local var 0: UnityEngine.Vector2
IL_0000: // start original
IL_0000: ldloca.s 0 (UnityEngine.Vector2)
IL_0002: ldarg.0
IL_0003: ldarg.1
IL_0004: call System.Void UnityEngine.Vector2::.ctor(System.Single x,
System.Single y)
IL_0009: ldsfld System.Collections.Generic.Dictionary`2<UnityEngine.Vector2,
Verse.GraphicMeshSet> Verse.MeshPool::humanlikeMeshSet_Custom
IL_000E: ldloc.0
IL_000F: callvirt virtual System.Boolean
System.Collections.Generic.Dictionary`2<UnityEngine.Vector2,
Verse.GraphicMeshSet>::ContainsKey(UnityEngine.Vector2 key)
IL_0014: brtrue => Label0
IL_0019: ldsfld System.Collections.Generic.Dictionary`2<UnityEngine.Vector2,
Verse.GraphicMeshSet> Verse.MeshPool::humanlikeMeshSet_Custom
IL_001E: ldloc.0
IL_001F: ldarg.0
IL_0020: ldarg.1
IL_0021: newobj System.Void Verse.GraphicMeshSet::.ctor(System.Single width,
System.Single height)
IL_0026: callvirt virtual System.Void
System.Collections.Generic.Dictionary`2<UnityEngine.Vector2,
Verse.GraphicMeshSet>::set_Item(UnityEngine.Vector2 key, Verse.GraphicMeshSet
value)
IL_002B: Label0
IL_002B: ldsfld System.Collections.Generic.Dictionary`2<UnityEngine.Vector2,
Verse.GraphicMeshSet> Verse.MeshPool::humanlikeMeshSet_Custom
IL_0030: ldloc.0
IL_0031: callvirt virtual Verse.GraphicMeshSet
System.Collections.Generic.Dictionary`2<UnityEngine.Vector2,
Verse.GraphicMeshSet>::get_Item(UnityEngine.Vector2 key)
IL_0036: // end original
IL_0036: ret
DONE

### Patch: static System.Void Verse.PawnGenerator::GenerateSkills(Verse.Pawn pawn,


Verse.PawnGenerationRequest request)
### Replacement: static System.Void
Verse.PawnGenerator::Verse.PawnGenerator.GenerateSkills_Patch4(Verse.Pawn pawn,
Verse.PawnGenerationRequest request)
IL_0000: Local var 0: Verse.PawnGenerator/<>c__DisplayClass55_0
IL_0000: Local var 1: System.Collections.Generic.List`1<RimWorld.SkillDef>
IL_0000: Local var 2: System.Single
IL_0000: Local var 3: System.Int32
IL_0000: Local var 4: System.Int32
IL_0000: Local var 5: RimWorld.SkillDef
IL_0000: Local var 6: System.Int32
IL_0000: Local var 7: System.Int32
IL_0000: Local var 8:
System.Collections.Generic.List`1/Enumerator<RimWorld.SkillRecord>
IL_0000: Local var 9: RimWorld.SkillRecord
IL_0000: Local var 10: System.Collections.Generic.List`1/Enumerator<RimWorld.Trait>
IL_0000: Local var 11: System.Int32
IL_0000: Local var 12: System.Int32
IL_0000: Local var 13: System.Int32
IL_0000: Local var 14: RimWorld.SkillDef
IL_0000: Local var 15:
System.Collections.Generic.IEnumerator`1<RimWorld.SkillRecord>
IL_0000: Local var 16: RimWorld.SkillRecord
IL_0000: Local var 17: System.Boolean
IL_0000: Local var 18: System.Boolean
IL_0000: ldc.i4 0
IL_0005: stloc 18 (System.Boolean)
IL_0009: ldc.i4.1
IL_000A: stloc 18 (System.Boolean)
IL_000E: ldloc 18 (System.Boolean)
IL_0012: brfalse => Label1
IL_0017: ldarg 0
IL_001B: ldarg 1
IL_001F: call static System.Boolean
VSE.Passions.PassionPatches::GenerateSkills_Prefix(Verse.Pawn pawn,
Verse.PawnGenerationRequest request)
IL_0024: stloc 18 (System.Boolean)
IL_0028: Label1
IL_0028: nop
IL_0029: ldloc 18 (System.Boolean)
IL_002D: brfalse => Label2
IL_0032: ldarg 0
IL_0036: call static System.Void
AlienRace.HarmonyPatches::GenerateSkillsPrefix(Verse.Pawn pawn)
IL_003B: Label2
IL_003B: nop
IL_003C: ldloc 18 (System.Boolean)
IL_0040: brfalse => Label0
IL_0045: // start original
IL_0045: call static System.Collections.Generic.List`1<RimWorld.SkillDef>
Verse.DefDatabase`1<RimWorld.SkillDef>::get_AllDefsListForReading()
IL_004A: stloc.1
IL_004B: ldc.i4.0
IL_004C: stloc.s 4 (System.Int32)
IL_004E: br => Label3
IL_0053: Label4
IL_0053: ldloc.1
IL_0054: ldloc.s 4 (System.Int32)
IL_0056: callvirt virtual RimWorld.SkillDef
System.Collections.Generic.List`1<RimWorld.SkillDef>::get_Item(System.Int32 index)
IL_005B: stloc.s 5 (RimWorld.SkillDef)
IL_005D: ldarg.0
IL_005E: ldloc.s 5 (RimWorld.SkillDef)
IL_0060: ldarg.1
IL_0061: call static System.Int32
Verse.PawnGenerator::FinalLevelOfSkill(Verse.Pawn pawn, RimWorld.SkillDef sk,
Verse.PawnGenerationRequest request)
IL_0066: stloc.s 6 (System.Int32)
IL_0068: ldarg.0
IL_0069: ldfld RimWorld.Pawn_SkillTracker Verse.Pawn::skills
IL_006E: ldloc.s 5 (RimWorld.SkillDef)
IL_0070: callvirt RimWorld.SkillRecord
RimWorld.Pawn_SkillTracker::GetSkill(RimWorld.SkillDef skillDef)
IL_0075: ldloc.s 6 (System.Int32)
IL_0077: callvirt System.Void RimWorld.SkillRecord::set_Level(System.Int32 value)
IL_007C: ldloc.s 4 (System.Int32)
IL_007E: ldc.i4.1
IL_007F: add
IL_0080: stloc.s 4 (System.Int32)
IL_0082: Label3
IL_0082: ldloc.s 4 (System.Int32)
IL_0084: ldloc.1
IL_0085: callvirt virtual System.Int32
System.Collections.Generic.List`1<RimWorld.SkillDef>::get_Count()
IL_008A: blt => Label4
IL_008F: ldloca.s 0 (Verse.PawnGenerator+<>c__DisplayClass55_0)
IL_0091: ldc.i4.0
IL_0092: stfld System.Int32 Verse.<>c__DisplayClass55_0::minorPassions
IL_0097: ldloca.s 0 (Verse.PawnGenerator+<>c__DisplayClass55_0)
IL_0099: ldc.i4.0
IL_009A: stfld System.Int32 Verse.<>c__DisplayClass55_0::majorPassions
IL_009F: ldc.r4 5
IL_00A4: ldc.r4 0
IL_00A9: ldc.r4 1
IL_00AE: call static System.Single Verse.Rand::Gaussian(System.Single
centerX, System.Single widthFactor)
IL_00B3: ldc.r4 -4
IL_00B8: ldc.r4 4
IL_00BD: call static System.Single UnityEngine.Mathf::Clamp(System.Single
value, System.Single min, System.Single max)
IL_00C2: add
IL_00C3: stloc.2
IL_00C4: br => Label5
IL_00C9: Label9
IL_00C9: ldloc.2
IL_00CA: ldc.r4 1.5
IL_00CF: blt.un => Label6
IL_00D4: call static System.Boolean Verse.Rand::get_Bool()
IL_00D9: brfalse => Label7
IL_00DE: ldloc.0
IL_00DF: ldfld System.Int32 Verse.<>c__DisplayClass55_0::majorPassions
IL_00E4: stloc.s 7 (System.Int32)
IL_00E6: ldloca.s 0 (Verse.PawnGenerator+<>c__DisplayClass55_0)
IL_00E8: ldloc.s 7 (System.Int32)
IL_00EA: ldc.i4.1
IL_00EB: add
IL_00EC: stfld System.Int32 Verse.<>c__DisplayClass55_0::majorPassions
IL_00F1: ldloc.2
IL_00F2: ldc.r4 1.5
IL_00F7: sub
IL_00F8: stloc.2
IL_00F9: br => Label8
IL_00FE: Label6
IL_00FE: Label7
IL_00FE: ldloc.0
IL_00FF: ldfld System.Int32 Verse.<>c__DisplayClass55_0::minorPassions
IL_0104: stloc.s 7 (System.Int32)
IL_0106: ldloca.s 0 (Verse.PawnGenerator+<>c__DisplayClass55_0)
IL_0108: ldloc.s 7 (System.Int32)
IL_010A: ldc.i4.1
IL_010B: add
IL_010C: stfld System.Int32 Verse.<>c__DisplayClass55_0::minorPassions
IL_0111: ldloc.2
IL_0112: ldc.r4 1
IL_0117: sub
IL_0118: stloc.2
IL_0119: Label5
IL_0119: Label8
IL_0119: ldloc.2
IL_011A: ldc.r4 1
IL_011F: bge => Label9
IL_0124: ldarg.0
IL_0125: ldfld RimWorld.Pawn_SkillTracker Verse.Pawn::skills
IL_012A: ldfld System.Collections.Generic.List`1<RimWorld.SkillRecord>
RimWorld.Pawn_SkillTracker::skills
IL_012F: callvirt System.Collections.Generic.Enumerator<RimWorld.SkillRecord>
System.Collections.Generic.List`1<RimWorld.SkillRecord>::GetEnumerator()
IL_0134: stloc.s 8
(System.Collections.Generic.List`1+Enumerator[RimWorld.SkillRecord])
.try
{
IL_0136: br => Label10
IL_013B: Label16
IL_013B: ldloca.s 8
(System.Collections.Generic.List`1+Enumerator[RimWorld.SkillRecord])
IL_013D: call virtual RimWorld.SkillRecord
System.Collections.Generic.Enumerator<RimWorld.SkillRecord>::get_Current()
IL_0142: stloc.s 9 (RimWorld.SkillRecord)
IL_0144: ldloc.s 9 (RimWorld.SkillRecord)
IL_0146: callvirt System.Boolean
RimWorld.SkillRecord::get_TotallyDisabled()
IL_014B: brtrue => Label11
IL_0150: ldarg.0
IL_0151: ldfld RimWorld.Pawn_StoryTracker Verse.Pawn::story
IL_0156: ldfld RimWorld.TraitSet RimWorld.Pawn_StoryTracker::traits
IL_015B: ldfld System.Collections.Generic.List`1<RimWorld.Trait>
RimWorld.TraitSet::allTraits
IL_0160: callvirt System.Collections.Generic.Enumerator<RimWorld.Trait>
System.Collections.Generic.List`1<RimWorld.Trait>::GetEnumerator()
IL_0165: stloc.s 10
(System.Collections.Generic.List`1+Enumerator[RimWorld.Trait])
.try
{
IL_0167: br => Label12
IL_016C: Label14
IL_016C: ldloca.s 10
(System.Collections.Generic.List`1+Enumerator[RimWorld.Trait])
IL_016E: call virtual RimWorld.Trait
System.Collections.Generic.Enumerator<RimWorld.Trait>::get_Current()
IL_0173: ldfld RimWorld.TraitDef RimWorld.Trait::def
IL_0178: ldloc.s 9 (RimWorld.SkillRecord)
IL_017A: ldfld RimWorld.SkillDef RimWorld.SkillRecord::def
IL_017F: callvirt System.Boolean
RimWorld.TraitDef::RequiresPassion(RimWorld.SkillDef passion)
IL_0184: brfalse => Label13
IL_0189: ldloc.s 9 (RimWorld.SkillRecord)
IL_018B: ldc.i4.1
IL_018C: ldloca.s 0 (Verse.PawnGenerator+<>c__DisplayClass55_0)
IL_018E: call static System.Void
Verse.PawnGenerator::<GenerateSkills>g__CreatePassion|55_0(RimWorld.SkillRecord
record, System.Boolean force, Verse.<>c__DisplayClass55_0& )
IL_0193: Label12
IL_0193: Label13
IL_0193: ldloca.s 10
(System.Collections.Generic.List`1+Enumerator[RimWorld.Trait])
IL_0195: call virtual System.Boolean
System.Collections.Generic.Enumerator<RimWorld.Trait>::MoveNext()
IL_019A: brtrue => Label14
IL_019F: leave => Label15
IL_01A4: leave => (autogenerated)
} // end try
.finally
{
IL_01A9: ldloca.s 10
(System.Collections.Generic.List`1+Enumerator[RimWorld.Trait])
IL_01AB: constrained.
System.Collections.Generic.List`1+Enumerator[RimWorld.Trait]
IL_01B1: callvirt abstract virtual System.Void
System.IDisposable::Dispose()
IL_01B6: endfinally
IL_01B7: leave => (autogenerated)
} // end handler
IL_01B8: Label10
IL_01B8: Label11
IL_01B8: Label15
IL_01B8: ldloca.s 8
(System.Collections.Generic.List`1+Enumerator[RimWorld.SkillRecord])
IL_01BA: call virtual System.Boolean
System.Collections.Generic.Enumerator<RimWorld.SkillRecord>::MoveNext()
IL_01BF: brtrue => Label16
IL_01C4: leave => Label17
IL_01C9: leave => (autogenerated)
} // end try
.finally
{
IL_01CE: ldloca.s 8
(System.Collections.Generic.List`1+Enumerator[RimWorld.SkillRecord])
IL_01D0: constrained.
System.Collections.Generic.List`1+Enumerator[RimWorld.SkillRecord]
IL_01D6: callvirt abstract virtual System.Void
System.IDisposable::Dispose()
IL_01DB: endfinally
IL_01DC: leave => (autogenerated)
} // end handler
IL_01DD: Label17
IL_01DD: ldarg.0
IL_01DE: ldfld Verse.Pawn_AgeTracker Verse.Pawn::ageTracker
IL_01E3: callvirt System.Int32 Verse.Pawn_AgeTracker::get_AgeBiologicalYears()
IL_01E8: stloc.3
IL_01E9: ldloc.3
IL_01EA: ldc.i4.s 13
IL_01EC: bge => Label18
IL_01F1: ldc.i4.3
IL_01F2: stloc.s 11 (System.Int32)
IL_01F4: br => Label19
IL_01F9: Label24
IL_01F9: ldloc.s 11 (System.Int32)
IL_01FB: call static System.Boolean
RimWorld.GrowthUtility::IsGrowthBirthday(System.Int32 age)
IL_0200: brfalse => Label20
IL_0205: ldc.i4.0
IL_0206: ldc.i4.3
IL_0207: call static System.Int32 Verse.Rand::RangeInclusive(System.Int32
min, System.Int32 max)
IL_020C: stloc.s 12 (System.Int32)
IL_020E: ldc.i4.0
IL_020F: stloc.s 13 (System.Int32)
IL_0211: br => Label21
IL_0216: Label23
IL_0216: ldarg.0
IL_0217: ldc.i4.1
IL_0218: call static System.Collections.Generic.List`1<RimWorld.SkillDef>
RimWorld.ChoiceLetter_GrowthMoment::PassionOptions(Verse.Pawn pawn, System.Int32
count)
IL_021D: call static RimWorld.SkillDef
System.Linq.Enumerable::FirstOrDefault(System.Collections.Generic.IEnumerable`1<Rim
World.SkillDef> source)
IL_0222: stloc.s 14 (RimWorld.SkillDef)
IL_0224: ldloc.s 14 (RimWorld.SkillDef)
IL_0226: brfalse => Label22
IL_022B: ldarg.0
IL_022C: ldfld RimWorld.Pawn_SkillTracker Verse.Pawn::skills
IL_0231: ldloc.s 14 (RimWorld.SkillDef)
IL_0233: callvirt RimWorld.SkillRecord
RimWorld.Pawn_SkillTracker::GetSkill(RimWorld.SkillDef skillDef)
IL_0238: dup
IL_0239: ldfld RimWorld.Passion RimWorld.SkillRecord::passion
IL_023E: call static RimWorld.Passion
RimWorld.PassionExtension::IncrementPassion(RimWorld.Passion passion)
IL_0243: stfld RimWorld.Passion RimWorld.SkillRecord::passion
IL_0248: Label22
IL_0248: ldloc.s 13 (System.Int32)
IL_024A: ldc.i4.1
IL_024B: add
IL_024C: stloc.s 13 (System.Int32)
IL_024E: Label21
IL_024E: ldloc.s 13 (System.Int32)
IL_0250: ldloc.s 12 (System.Int32)
IL_0252: blt => Label23
IL_0257: Label20
IL_0257: ldloc.s 11 (System.Int32)
IL_0259: ldc.i4.1
IL_025A: add
IL_025B: stloc.s 11 (System.Int32)
IL_025D: Label19
IL_025D: ldloc.s 11 (System.Int32)
IL_025F: ldloc.3
IL_0260: ble => Label24
IL_0265: call static System.Boolean Verse.ModsConfig::get_BiotechActive()
IL_026A: brfalse => Label25
IL_026F: ldarg.0
IL_0270: ldfld Verse.Pawn_AgeTracker Verse.Pawn::ageTracker
IL_0275: callvirt System.Void Verse.Pawn_AgeTracker::TrySimulateGrowthPoints()
IL_027A: br => Label46
IL_027F: Label18
IL_027F: ldarg.0
IL_0280: ldfld RimWorld.Pawn_SkillTracker Verse.Pawn::skills
IL_0285: ldfld System.Collections.Generic.List`1<RimWorld.SkillRecord>
RimWorld.Pawn_SkillTracker::skills
IL_028A: ldsfld System.Func`2<RimWorld.SkillRecord, System.Int32>
Verse.<>c::<>9__55_1
IL_028F: dup
IL_0290: brtrue => Label26
IL_0295: pop
IL_0296: ldsfld Verse.<>c Verse.<>c::<>9
IL_029B: ldftn System.Int32
Verse.<>c::<GenerateSkills>b__55_1(RimWorld.SkillRecord sr)
IL_02A1: newobj System.Void System.Func`2<RimWorld.SkillRecord,
System.Int32>::.ctor(System.Object object, System.IntPtr method)
IL_02A6: dup
IL_02A7: stsfld System.Func`2<RimWorld.SkillRecord, System.Int32>
Verse.<>c::<>9__55_1
IL_02AC: Label26
IL_02AC: call static System.Linq.IOrderedEnumerable`1<RimWorld.SkillRecord>
System.Linq.Enumerable::OrderByDescending(System.Collections.Generic.IEnumerable`1<
RimWorld.SkillRecord> source, System.Func`2<RimWorld.SkillRecord, System.Int32>
keySelector)
IL_02B1: callvirt abstract virtual
System.Collections.Generic.IEnumerator`1<RimWorld.SkillRecord>
System.Collections.Generic.IEnumerable`1<RimWorld.SkillRecord>::GetEnumerator()
IL_02B6: stloc.s 15
(System.Collections.Generic.IEnumerator`1[RimWorld.SkillRecord])
.try
{
IL_02B8: br => Label27
IL_02BD: Label35
IL_02BD: ldloc.s 15
(System.Collections.Generic.IEnumerator`1[RimWorld.SkillRecord])
IL_02BF: callvirt abstract virtual RimWorld.SkillRecord
System.Collections.Generic.IEnumerator`1<RimWorld.SkillRecord>::get_Current()
IL_02C4: stloc.s 16 (RimWorld.SkillRecord)
IL_02C6: ldloc.s 16 (RimWorld.SkillRecord)
IL_02C8: callvirt System.Boolean
RimWorld.SkillRecord::get_TotallyDisabled()
IL_02CD: brtrue => Label28
IL_02D2: ldc.i4.0
IL_02D3: stloc.s 17 (System.Boolean)
IL_02D5: ldarg.0
IL_02D6: ldfld RimWorld.Pawn_StoryTracker Verse.Pawn::story
IL_02DB: ldfld RimWorld.TraitSet RimWorld.Pawn_StoryTracker::traits
IL_02E0: ldfld System.Collections.Generic.List`1<RimWorld.Trait>
RimWorld.TraitSet::allTraits
IL_02E5: callvirt System.Collections.Generic.Enumerator<RimWorld.Trait>
System.Collections.Generic.List`1<RimWorld.Trait>::GetEnumerator()
IL_02EA: stloc.s 10
(System.Collections.Generic.List`1+Enumerator[RimWorld.Trait])
.try
{
IL_02EC: br => Label29
IL_02F1: Label32
IL_02F1: ldloca.s 10
(System.Collections.Generic.List`1+Enumerator[RimWorld.Trait])
IL_02F3: call virtual RimWorld.Trait
System.Collections.Generic.Enumerator<RimWorld.Trait>::get_Current()
IL_02F8: ldfld RimWorld.TraitDef RimWorld.Trait::def
IL_02FD: ldloc.s 16 (RimWorld.SkillRecord)
IL_02FF: ldfld RimWorld.SkillDef RimWorld.SkillRecord::def
IL_0304: callvirt System.Boolean
RimWorld.TraitDef::ConflictsWithPassion(RimWorld.SkillDef passion)
IL_0309: brfalse => Label30
IL_030E: ldc.i4.1
IL_030F: stloc.s 17 (System.Boolean)
IL_0311: leave => Label31
IL_0316: Label29
IL_0316: Label30
IL_0316: ldloca.s 10
(System.Collections.Generic.List`1+Enumerator[RimWorld.Trait])
IL_0318: call virtual System.Boolean
System.Collections.Generic.Enumerator<RimWorld.Trait>::MoveNext()
IL_031D: brtrue => Label32
IL_0322: leave => Label33
IL_0327: leave => (autogenerated)
} // end try
.finally
{
IL_032C: ldloca.s 10
(System.Collections.Generic.List`1+Enumerator[RimWorld.Trait])
IL_032E: constrained.
System.Collections.Generic.List`1+Enumerator[RimWorld.Trait]
IL_0334: callvirt abstract virtual System.Void
System.IDisposable::Dispose()
IL_0339: endfinally
IL_033A: leave => (autogenerated)
} // end handler
IL_033B: Label31
IL_033B: Label33
IL_033B: ldloc.s 17 (System.Boolean)
IL_033D: brtrue => Label34
IL_0342: ldloc.s 16 (RimWorld.SkillRecord)
IL_0344: ldc.i4.0
IL_0345: ldloca.s 0 (Verse.PawnGenerator+<>c__DisplayClass55_0)
IL_0347: call static System.Void
Verse.PawnGenerator::<GenerateSkills>g__CreatePassion|55_0(RimWorld.SkillRecord
record, System.Boolean force, Verse.<>c__DisplayClass55_0& )
IL_034C: Label27
IL_034C: Label28
IL_034C: Label34
IL_034C: ldloc.s 15
(System.Collections.Generic.IEnumerator`1[RimWorld.SkillRecord])
IL_034E: callvirt abstract virtual System.Boolean
System.Collections.IEnumerator::MoveNext()
IL_0353: brtrue => Label35
IL_0358: leave => Label36
IL_035D: leave => (autogenerated)
} // end try
.finally
{
IL_0362: ldloc.s 15
(System.Collections.Generic.IEnumerator`1[RimWorld.SkillRecord])
IL_0364: brfalse => Label37
IL_0369: ldloc.s 15
(System.Collections.Generic.IEnumerator`1[RimWorld.SkillRecord])
IL_036B: callvirt abstract virtual System.Void
System.IDisposable::Dispose()
IL_0370: Label37
IL_0370: endfinally
IL_0371: leave => (autogenerated)
} // end handler
IL_0372: // end original
IL_0372: Label25
IL_0372: Label36
IL_0372: Label46
IL_0372: Label0
IL_0372: ldarg 0
IL_0376: call static System.Void
VFECore.PawnGenerator_GenerateSkills::Postfix(Verse.Pawn pawn)
IL_037B: ldarg 0
IL_037F: call static System.Void
AlienRace.HarmonyPatches::GenerateSkillsPostfix(Verse.Pawn pawn)
IL_0384: ret
DONE

### Patch: static Verse.Pawn


Verse.PawnGenerator::TryGenerateNewPawnInternal(Verse.PawnGenerationRequest&
request, System.String& error, System.Boolean ignoreScenarioRequirements,
System.Boolean ignoreValidator)
### Replacement: static Verse.Pawn
Verse.PawnGenerator::Verse.PawnGenerator.TryGenerateNewPawnInternal_Patch1(Verse.Pa
wnGenerationRequest& request, System.String& error, System.Boolean
ignoreScenarioRequirements, System.Boolean ignoreValidator)
IL_0000: Local var 0: Verse.Pawn
IL_0000: Local var 1: System.Nullable`1<Verse.Gender>
IL_0000: Local var 2: RimWorld.Faction
IL_0000: Local var 3: RimWorld.XenotypeDef
IL_0000: Local var 4: RimWorld.Faction
IL_0000: Local var 5: RimWorld.RoyalTitleDef
IL_0000: Local var 6: RimWorld.Faction
IL_0000: Local var 7: System.Int32
IL_0000: Local var 8: Verse.Hediff_Level
IL_0000: Local var 9: System.Nullable`1<Verse.DamageInfo>
IL_0000: Local var 10: RimWorld.Ideo
IL_0000: Local var 11: System.Int32
IL_0000: Local var 12: Verse.Pawn
IL_0000: Local var 13: System.Collections.Generic.List`1<Verse.SkillRange>
IL_0000: Local var 14: System.Int32
IL_0000: Local var 15: System.Int32
IL_0000: Local var 16: Verse.PawnGenerator/PawnGenerationStatus
IL_0000: Local var 17: Verse.Pawn
IL_0000: ldnull
IL_0001: stloc 17 (Verse.Pawn)
IL_0005: // start original
IL_0005: ldarg.1
IL_0006: ldnull
IL_0007: stind.ref
IL_0008: ldarg.0
IL_0009: call Verse.PawnKindDef Verse.PawnGenerationRequest::get_KindDef()
IL_000E: ldfld Verse.ThingDef Verse.PawnKindDef::race
IL_0013: ldnull
IL_0014: call static Verse.Thing Verse.ThingMaker::MakeThing(Verse.ThingDef
def, Verse.ThingDef stuff)
IL_0019: castclass Verse.Pawn
IL_001E: stloc.0
IL_001F: ldsfld System.Collections.Generic.List`1<Verse.PawnGenerationStatus>
Verse.PawnGenerator::pawnsBeingGenerated
IL_0024: ldloc.0
IL_0025: ldnull
IL_0026: ldarg.0
IL_0027: call System.Boolean Verse.PawnGenerationRequest::get_ForceDead()
IL_002C: brtrue => Label0
IL_0031: ldarg.0
IL_0032: call System.Boolean Verse.PawnGenerationRequest::get_AllowDead()
IL_0037: br => Label1
IL_003C: Label0
IL_003C: ldc.i4.1
IL_003D: Label1
IL_003D: newobj System.Void Verse.PawnGenerationStatus::.ctor(Verse.Pawn pawn,
System.Collections.Generic.List`1<Verse.Pawn> pawnsGeneratedInTheMeantime,
System.Boolean allowsDead)
IL_0042: callvirt virtual System.Void
System.Collections.Generic.List`1<Verse.PawnGenerationStatus>::Add(Verse.PawnGenera
tionStatus item)
.try
{
IL_0047: ldloc.0
IL_0048: ldarg.0
IL_0049: call Verse.PawnKindDef
Verse.PawnGenerationRequest::get_KindDef()
IL_004E: stfld Verse.PawnKindDef Verse.Pawn::kindDef
IL_0053: ldloc.0
IL_0054: ldarg.0
IL_0055: call RimWorld.Faction
Verse.PawnGenerationRequest::get_Faction()
IL_005A: callvirt System.Void
Verse.Thing::SetFactionDirect(RimWorld.Faction newFaction)
IL_005F: ldloc.0
IL_0060: call static System.Void
RimWorld.PawnComponentsUtility::CreateInitialComponents(Verse.Pawn pawn)
IL_0065: ldarg.0
IL_0066: call System.Nullable`1<Verse.Gender>
Verse.PawnGenerationRequest::get_FixedGender()
IL_006B: stloc.1
IL_006C: ldloca.s 1 (System.Nullable`1[Verse.Gender])
IL_006E: call System.Boolean
System.Nullable`1<Verse.Gender>::get_HasValue()
IL_0073: brfalse => Label2
IL_0078: ldloc.0
IL_0079: ldarg.0
IL_007A: call System.Nullable`1<Verse.Gender>
Verse.PawnGenerationRequest::get_FixedGender()
IL_007F: stloc.1
IL_0080: ldloca.s 1 (System.Nullable`1[Verse.Gender])
IL_0082: call Verse.Gender System.Nullable`1<Verse.Gender>::get_Value()
IL_0087: stfld Verse.Gender Verse.Pawn::gender
IL_008C: br => Label3
IL_0091: Label2
IL_0091: ldarg.0
IL_0092: call Verse.PawnKindDef
Verse.PawnGenerationRequest::get_KindDef()
IL_0097: ldflda System.Nullable`1<Verse.Gender>
Verse.PawnKindDef::fixedGender
IL_009C: call System.Boolean
System.Nullable`1<Verse.Gender>::get_HasValue()
IL_00A1: brfalse => Label4
IL_00A6: ldloc.0
IL_00A7: ldarg.0
IL_00A8: call Verse.PawnKindDef
Verse.PawnGenerationRequest::get_KindDef()
IL_00AD: ldflda System.Nullable`1<Verse.Gender>
Verse.PawnKindDef::fixedGender
IL_00B2: call Verse.Gender System.Nullable`1<Verse.Gender>::get_Value()
IL_00B7: stfld Verse.Gender Verse.Pawn::gender
IL_00BC: br => Label5
IL_00C1: Label4
IL_00C1: ldloc.0
IL_00C2: callvirt Verse.RaceProperties Verse.Pawn::get_RaceProps()
IL_00C7: ldfld System.Boolean Verse.RaceProperties::hasGenders
IL_00CC: brfalse => Label6
IL_00D1: call static System.Single Verse.Rand::get_Value()
IL_00D6: ldc.r4 0.5
IL_00DB: bge.un => Label7
IL_00E0: ldloc.0
IL_00E1: ldc.i4.1
IL_00E2: stfld Verse.Gender Verse.Pawn::gender
IL_00E7: br => Label8
IL_00EC: Label7
IL_00EC: ldloc.0
IL_00ED: ldc.i4.2
IL_00EE: stfld Verse.Gender Verse.Pawn::gender
IL_00F3: br => Label9
IL_00F8: Label6
IL_00F8: ldloc.0
IL_00F9: ldc.i4.0
IL_00FA: stfld Verse.Gender Verse.Pawn::gender
IL_00FF: Label3
IL_00FF: Label5
IL_00FF: Label8
IL_00FF: Label9
IL_00FF: ldloc.0
IL_0100: ldarg.0
IL_0101: ldobj Verse.PawnGenerationRequest
IL_0106: call static System.Void
Verse.PawnGenerator::GenerateRandomAge(Verse.Pawn pawn, Verse.PawnGenerationRequest
request)
IL_010B: ldloc.0
IL_010C: ldfld RimWorld.Pawn_NeedsTracker Verse.Pawn::needs
IL_0111: callvirt System.Void
RimWorld.Pawn_NeedsTracker::SetInitialLevels()
IL_0116: ldarg.0
IL_0117: call Verse.DevelopmentalStage
Verse.PawnGenerationRequest::get_AllowedDevelopmentalStages()
IL_011C: call static System.Boolean
Verse.DevelopmentalStageExtensions::Newborn(Verse.DevelopmentalStage
developmentalStage)
IL_0121: brfalse => Label10
IL_0126: ldloc.0
IL_0127: ldfld RimWorld.Pawn_NeedsTracker Verse.Pawn::needs
IL_012C: dup
IL_012D: brtrue => Label11
IL_0132: pop
IL_0133: ldnull
IL_0134: br => Label12
IL_0139: Label11
IL_0139: ldfld RimWorld.Need_Food RimWorld.Pawn_NeedsTracker::food
IL_013E: Label12
IL_013E: brfalse => Label13
IL_0143: ldloc.0
IL_0144: ldfld RimWorld.Pawn_NeedsTracker Verse.Pawn::needs
IL_0149: ldfld RimWorld.Need_Food RimWorld.Pawn_NeedsTracker::food
IL_014E: ldloc.0
IL_014F: ldfld RimWorld.Pawn_NeedsTracker Verse.Pawn::needs
IL_0154: ldfld RimWorld.Need_Food RimWorld.Pawn_NeedsTracker::food
IL_0159: callvirt System.Single
RimWorld.Need_Food::get_PercentageThreshHungry()
IL_015E: ldloc.0
IL_015F: ldfld RimWorld.Pawn_NeedsTracker Verse.Pawn::needs
IL_0164: ldfld RimWorld.Need_Food RimWorld.Pawn_NeedsTracker::food
IL_0169: callvirt System.Single
RimWorld.Need_Food::get_PercentageThreshUrgentlyHungry()
IL_016E: ldc.r4 0.5
IL_0173: call static System.Single
UnityEngine.Mathf::Lerp(System.Single a, System.Single b, System.Single t)
IL_0178: callvirt System.Void
RimWorld.Need::set_CurLevelPercentage(System.Single value)
IL_017D: Label13
IL_017D: ldloc.0
IL_017E: ldfld RimWorld.Pawn_NeedsTracker Verse.Pawn::needs
IL_0183: dup
IL_0184: brtrue => Label14
IL_0189: pop
IL_018A: ldnull
IL_018B: br => Label15
IL_0190: Label14
IL_0190: ldfld RimWorld.Need_Rest RimWorld.Pawn_NeedsTracker::rest
IL_0195: Label15
IL_0195: brfalse => Label16
IL_019A: ldloc.0
IL_019B: ldfld RimWorld.Pawn_NeedsTracker Verse.Pawn::needs
IL_01A0: ldfld RimWorld.Need_Rest RimWorld.Pawn_NeedsTracker::rest
IL_01A5: ldc.r4 0.28
IL_01AA: ldc.r4 0.14
IL_01AF: ldc.r4 0.5
IL_01B4: call static System.Single
UnityEngine.Mathf::Lerp(System.Single a, System.Single b, System.Single t)
IL_01B9: callvirt System.Void
RimWorld.Need::set_CurLevelPercentage(System.Single value)
IL_01BE: Label10
IL_01BE: Label16
IL_01BE: ldloc.0
IL_01BF: callvirt Verse.RaceProperties Verse.Pawn::get_RaceProps()
IL_01C4: callvirt System.Boolean Verse.RaceProperties::get_Humanlike()
IL_01C9: brfalse => Label17
IL_01CE: ldarg.0
IL_01CF: call RimWorld.Faction
Verse.PawnGenerationRequest::get_Faction()
IL_01D4: brfalse => Label18
IL_01D9: ldarg.0
IL_01DA: call RimWorld.Faction
Verse.PawnGenerationRequest::get_Faction()
IL_01DF: stloc.2
IL_01E0: br => Label19
IL_01E5: Label18
IL_01E5: call static RimWorld.FactionManager
Verse.Find::get_FactionManager()
IL_01EA: ldloca.s 4 (RimWorld.Faction)
IL_01EC: ldc.i4.0
IL_01ED: ldc.i4.1
IL_01EE: ldc.i4.0
IL_01EF: ldc.i4.0
IL_01F0: callvirt System.Boolean
RimWorld.FactionManager::TryGetRandomNonColonyHumanlikeFaction(RimWorld.Faction&
faction, System.Boolean tryMedievalOrBetter, System.Boolean allowDefeated,
RimWorld.TechLevel minTechLevel, System.Boolean allowTemporary)
IL_01F5: brfalse => Label20
IL_01FA: ldloc.s 4 (RimWorld.Faction)
IL_01FC: stloc.2
IL_01FD: br => Label21
IL_0202: Label20
IL_0202: call static RimWorld.Faction
RimWorld.Faction::get_OfAncients()
IL_0207: stloc.2
IL_0208: Label19
IL_0208: Label21
IL_0208: ldloc.0
IL_0209: ldfld RimWorld.Pawn_StoryTracker Verse.Pawn::story
IL_020E: ldloc.0
IL_020F: ldfld Verse.PawnKindDef Verse.Pawn::kindDef
IL_0214: ldfld System.Nullable`1<UnityEngine.Color>
Verse.PawnKindDef::skinColorOverride
IL_0219: stfld System.Nullable`1<UnityEngine.Color>
RimWorld.Pawn_StoryTracker::skinColorOverride
IL_021E: ldloc.0
IL_021F: ldfld RimWorld.Pawn_StoryTracker Verse.Pawn::story
IL_0224: call static
System.Collections.Generic.IEnumerable`1<Verse.HeadTypeDef>
Verse.DefDatabase`1<Verse.HeadTypeDef>::get_AllDefs()
IL_0229: ldloc.0
IL_022A: call static
System.Collections.Generic.IEnumerable`1<Verse.HeadTypeDef>
AlienRace.HarmonyPatches::HeadTypeFilter(System.Collections.Generic.IEnumerable`1<V
erse.HeadTypeDef> headTypes, Verse.Pawn pawn)
IL_022F: ldsfld System.Func`2<Verse.HeadTypeDef, System.Boolean>
Verse.<>c::<>9__29_0
IL_0234: dup
IL_0235: brtrue => Label22
IL_023A: pop
IL_023B: ldsfld Verse.<>c Verse.<>c::<>9
IL_0240: ldftn System.Boolean
Verse.<>c::<TryGenerateNewPawnInternal>b__29_0(Verse.HeadTypeDef x)
IL_0246: newobj System.Void System.Func`2<Verse.HeadTypeDef,
System.Boolean>::.ctor(System.Object object, System.IntPtr method)
IL_024B: dup
IL_024C: stsfld System.Func`2<Verse.HeadTypeDef, System.Boolean>
Verse.<>c::<>9__29_0
IL_0251: Label22
IL_0251: call static
System.Collections.Generic.IEnumerable`1<Verse.HeadTypeDef>
System.Linq.Enumerable::Where(System.Collections.Generic.IEnumerable`1<Verse.HeadTy
peDef> source, System.Func`2<Verse.HeadTypeDef, System.Boolean> predicate)
IL_0256: callvirt System.Boolean
RimWorld.Pawn_StoryTracker::TryGetRandomHeadFromSet(System.Collections.Generic.IEnu
merable`1<Verse.HeadTypeDef> options)
IL_025B: pop
IL_025C: call static System.Boolean
Verse.ModsConfig::get_IdeologyActive()
IL_0261: brfalse => Label23
IL_0266: ldarg.0
IL_0267: call Verse.PawnKindDef
Verse.PawnGenerationRequest::get_KindDef()
IL_026C: dup
IL_026D: brtrue => Label24
IL_0272: pop
IL_0273: ldc.i4.0
IL_0274: br => Label25
IL_0279: Label24
IL_0279: ldflda System.Nullable`1<UnityEngine.Color>
Verse.PawnKindDef::favoriteColor
IL_027E: call System.Boolean
System.Nullable`1<UnityEngine.Color>::get_HasValue()
IL_0283: Label25
IL_0283: brfalse => Label26
IL_0288: ldloc.0
IL_0289: ldfld RimWorld.Pawn_StoryTracker Verse.Pawn::story
IL_028E: ldarg.0
IL_028F: call Verse.PawnKindDef
Verse.PawnGenerationRequest::get_KindDef()
IL_0294: ldflda System.Nullable`1<UnityEngine.Color>
Verse.PawnKindDef::favoriteColor
IL_0299: call UnityEngine.Color
System.Nullable`1<UnityEngine.Color>::get_Value()
IL_029E: newobj System.Void
System.Nullable`1<UnityEngine.Color>::.ctor(UnityEngine.Color value)
IL_02A3: stfld System.Nullable`1<UnityEngine.Color>
RimWorld.Pawn_StoryTracker::favoriteColor
IL_02A8: br => Label27
IL_02AD: Label26
IL_02AD: ldloc.0
IL_02AE: ldfld RimWorld.Pawn_StoryTracker Verse.Pawn::story
IL_02B3: call static
System.Collections.Generic.List`1<RimWorld.ColorDef>
Verse.DefDatabase`1<RimWorld.ColorDef>::get_AllDefsListForReading()
IL_02B8: call static RimWorld.ColorDef
Verse.GenCollection::RandomElement(System.Collections.Generic.IEnumerable`1<RimWorl
d.ColorDef> source)
IL_02BD: ldfld UnityEngine.Color RimWorld.ColorDef::color
IL_02C2: newobj System.Void
System.Nullable`1<UnityEngine.Color>::.ctor(UnityEngine.Color value)
IL_02C7: stfld System.Nullable`1<UnityEngine.Color>
RimWorld.Pawn_StoryTracker::favoriteColor
IL_02CC: Label23
IL_02CC: Label27
IL_02CC: call static System.Boolean
Verse.ModsConfig::get_BiotechActive()
IL_02D1: brtrue => Label28
IL_02D6: ldnull
IL_02D7: br => Label29
IL_02DC: Label28
IL_02DC: ldarg.0
IL_02DD: ldobj Verse.PawnGenerationRequest
IL_02E2: call static RimWorld.XenotypeDef
Verse.PawnGenerator::GetXenotypeForGeneratedPawn(Verse.PawnGenerationRequest
request)
IL_02E7: Label29
IL_02E7: stloc.3
IL_02E8: call static System.Boolean
Verse.ModsConfig::get_BiotechActive()
IL_02ED: brfalse => Label30
IL_02F2: ldarg.0
IL_02F3: call RimWorld.Faction
Verse.PawnGenerationRequest::get_Faction()
IL_02F8: brtrue => Label31
IL_02FD: ldloc.3
IL_02FE: ldsfld RimWorld.XenotypeDef RimWorld.XenotypeDefOf::Baseliner
IL_0303: bne.un => Label32
IL_0308: ldarg.0
IL_0309: call RimWorld.CustomXenotype
Verse.PawnGenerationRequest::get_ForcedCustomXenotype()
IL_030E: brtrue => Label33
IL_0313: ldloc.0
IL_0314: ldarg.0
IL_0315: ldloca.s 3 (RimWorld.XenotypeDef)
IL_0317: call static System.Void
Verse.PawnGenerator::AdjustXenotypeForFactionlessPawn(Verse.Pawn pawn,
Verse.PawnGenerationRequest& request, RimWorld.XenotypeDef& xenotype)
IL_031C: Label30
IL_031C: Label31
IL_031C: Label32
IL_031C: Label33
IL_031C: ldloc.0
IL_031D: ldarg.0
IL_031E: call System.String
Verse.PawnGenerationRequest::get_FixedLastName()
IL_0323: ldloc.2
IL_0324: ldfld RimWorld.FactionDef RimWorld.Faction::def
IL_0329: ldarg.0
IL_032A: call System.Boolean
Verse.PawnGenerationRequest::get_ForceNoBackstory()
IL_032F: ldarg.0
IL_0330: call Verse.DevelopmentalStage
Verse.PawnGenerationRequest::get_AllowedDevelopmentalStages()
IL_0335: call static System.Boolean
Verse.DevelopmentalStageExtensions::Newborn(Verse.DevelopmentalStage
developmentalStage)
IL_033A: ldloc.3
IL_033B: call static System.Void
RimWorld.PawnBioAndNameGenerator::GiveAppropriateBioAndNameTo(Verse.Pawn pawn,
System.String requiredLastName, RimWorld.FactionDef factionType, System.Boolean
forceNoBackstory, System.Boolean newborn, RimWorld.XenotypeDef xenotype)
IL_0340: ldloc.0
IL_0341: ldfld RimWorld.Pawn_StoryTracker Verse.Pawn::story
IL_0346: brfalse => Label34
IL_034B: ldarg.0
IL_034C: call System.String
Verse.PawnGenerationRequest::get_FixedBirthName()
IL_0351: brfalse => Label35
IL_0356: ldloc.0
IL_0357: ldfld RimWorld.Pawn_StoryTracker Verse.Pawn::story
IL_035C: ldarg.0
IL_035D: call System.String
Verse.PawnGenerationRequest::get_FixedBirthName()
IL_0362: stfld System.String RimWorld.Pawn_StoryTracker::birthLastName
IL_0367: br => Label36
IL_036C: Label35
IL_036C: ldloc.0
IL_036D: callvirt Verse.Name Verse.Pawn::get_Name()
IL_0372: isinst Verse.NameTriple
IL_0377: brfalse => Label37
IL_037C: ldloc.0
IL_037D: ldfld RimWorld.Pawn_StoryTracker Verse.Pawn::story
IL_0382: ldloc.0
IL_0383: callvirt Verse.Name Verse.Pawn::get_Name()
IL_0388: castclass Verse.NameTriple
IL_038D: callvirt System.String Verse.NameTriple::get_Last()
IL_0392: stfld System.String RimWorld.Pawn_StoryTracker::birthLastName
IL_0397: Label34
IL_0397: Label36
IL_0397: Label37
IL_0397: ldloc.0
IL_0398: ldarg.0
IL_0399: ldobj Verse.PawnGenerationRequest
IL_039E: call static System.Void
Verse.PawnGenerator::GenerateTraits(Verse.Pawn pawn, Verse.PawnGenerationRequest
request)
IL_03A3: ldloc.0
IL_03A4: ldarg.0
IL_03A5: ldobj Verse.PawnGenerationRequest
IL_03AA: call static System.Void
Verse.PawnGenerator::GenerateBodyType(Verse.Pawn pawn, Verse.PawnGenerationRequest
request)
IL_03AF: ldloc.0
IL_03B0: ldloc.3
IL_03B1: ldarg.0
IL_03B2: ldobj Verse.PawnGenerationRequest
IL_03B7: call static System.Void
Verse.PawnGenerator::GenerateGenes(Verse.Pawn pawn, RimWorld.XenotypeDef xenotype,
Verse.PawnGenerationRequest request)
IL_03BC: ldloc.0
IL_03BD: ldarg.0
IL_03BE: ldobj Verse.PawnGenerationRequest
IL_03C3: call static System.Void
Verse.PawnGenerator::GenerateSkills(Verse.Pawn pawn, Verse.PawnGenerationRequest
request)
IL_03C8: Label17
IL_03C8: ldarg.0
IL_03C9: call Verse.DevelopmentalStage
Verse.PawnGenerationRequest::get_AllowedDevelopmentalStages()
IL_03CE: call static System.Boolean
Verse.DevelopmentalStageExtensions::Newborn(Verse.DevelopmentalStage
developmentalStage)
IL_03D3: brtrue => Label38
IL_03D8: ldarg.0
IL_03D9: call System.Boolean
Verse.PawnGenerationRequest::get_CanGeneratePawnRelations()
IL_03DE: brfalse => Label39
IL_03E3: ldloc.0
IL_03E4: ldarg.0
IL_03E5: call static System.Void
Verse.PawnGenerator::GeneratePawnRelations(Verse.Pawn pawn,
Verse.PawnGenerationRequest& request)
IL_03EA: Label38
IL_03EA: Label39
IL_03EA: ldloc.0
IL_03EB: callvirt Verse.RaceProperties Verse.Pawn::get_RaceProps()
IL_03F0: callvirt System.Boolean Verse.RaceProperties::get_Animal()
IL_03F5: brfalse => Label40
IL_03FA: ldarg.0
IL_03FB: call RimWorld.Faction
Verse.PawnGenerationRequest::get_Faction()
IL_0400: dup
IL_0401: brtrue => Label41
IL_0406: pop
IL_0407: ldc.i4.0
IL_0408: br => Label42
IL_040D: Label41
IL_040D: call System.Boolean RimWorld.Faction::get_IsPlayer()
IL_0412: Label42
IL_0412: brfalse => Label43
IL_0417: ldloc.0
IL_0418: ldfld RimWorld.Pawn_TrainingTracker Verse.Pawn::training
IL_041D: ldsfld RimWorld.TrainableDef RimWorld.TrainableDefOf::Tameness
IL_0422: ldc.i4.1
IL_0423: callvirt System.Void
RimWorld.Pawn_TrainingTracker::SetWantedRecursive(RimWorld.TrainableDef td,
System.Boolean checkOn)
IL_0428: ldloc.0
IL_0429: ldfld RimWorld.Pawn_TrainingTracker Verse.Pawn::training
IL_042E: ldsfld RimWorld.TrainableDef RimWorld.TrainableDefOf::Tameness
IL_0433: ldnull
IL_0434: ldc.i4.1
IL_0435: callvirt System.Void
RimWorld.Pawn_TrainingTracker::Train(RimWorld.TrainableDef td, Verse.Pawn trainer,
System.Boolean complete)
IL_043A: Label40
IL_043A: Label43
IL_043A: ldarg.0
IL_043B: call System.Boolean
Verse.PawnGenerationRequest::get_ForbidAnyTitle()
IL_0440: brtrue => Label44
IL_0445: ldloc.0
IL_0446: callvirt virtual RimWorld.Faction Verse.Thing::get_Faction()
IL_044B: brfalse => Label45
IL_0450: ldarg.0
IL_0451: call RimWorld.RoyalTitleDef
Verse.PawnGenerationRequest::get_FixedTitle()
IL_0456: stloc.s 5 (RimWorld.RoyalTitleDef)
IL_0458: ldloc.s 5 (RimWorld.RoyalTitleDef)
IL_045A: brtrue => Label46
IL_045F: ldarg.0
IL_0460: call Verse.PawnKindDef
Verse.PawnGenerationRequest::get_KindDef()
IL_0465: ldfld RimWorld.RoyalTitleDef Verse.PawnKindDef::titleRequired
IL_046A: brfalse => Label47
IL_046F: ldarg.0
IL_0470: call Verse.PawnKindDef
Verse.PawnGenerationRequest::get_KindDef()
IL_0475: ldfld RimWorld.RoyalTitleDef Verse.PawnKindDef::titleRequired
IL_047A: stloc.s 5 (RimWorld.RoyalTitleDef)
IL_047C: br => Label48
IL_0481: Label47
IL_0481: ldarg.0
IL_0482: call Verse.PawnKindDef
Verse.PawnGenerationRequest::get_KindDef()
IL_0487: ldfld System.Collections.Generic.List`1<RimWorld.RoyalTitleDef>
Verse.PawnKindDef::titleSelectOne
IL_048C: call static System.Boolean
Verse.GenList::NullOrEmpty(System.Collections.Generic.IList`1<RimWorld.RoyalTitleDe
f> list)
IL_0491: brtrue => Label49
IL_0496: ldarg.0
IL_0497: call Verse.PawnKindDef
Verse.PawnGenerationRequest::get_KindDef()
IL_049C: ldfld System.Single Verse.PawnKindDef::royalTitleChance
IL_04A1: call static System.Boolean Verse.Rand::Chance(System.Single
chance)
IL_04A6: brfalse => Label50
IL_04AB: ldarg.0
IL_04AC: call Verse.PawnKindDef
Verse.PawnGenerationRequest::get_KindDef()
IL_04B1: ldfld System.Collections.Generic.List`1<RimWorld.RoyalTitleDef>
Verse.PawnKindDef::titleSelectOne
IL_04B6: ldsfld System.Func`2<RimWorld.RoyalTitleDef, System.Single>
Verse.<>c::<>9__29_1
IL_04BB: dup
IL_04BC: brtrue => Label51
IL_04C1: pop
IL_04C2: ldsfld Verse.<>c Verse.<>c::<>9
IL_04C7: ldftn System.Single
Verse.<>c::<TryGenerateNewPawnInternal>b__29_1(RimWorld.RoyalTitleDef t)
IL_04CD: newobj System.Void System.Func`2<RimWorld.RoyalTitleDef,
System.Single>::.ctor(System.Object object, System.IntPtr method)
IL_04D2: dup
IL_04D3: stsfld System.Func`2<RimWorld.RoyalTitleDef, System.Single>
Verse.<>c::<>9__29_1
IL_04D8: Label51
IL_04D8: call static RimWorld.RoyalTitleDef
Verse.GenCollection::RandomElementByWeight(System.Collections.Generic.IEnumerable`1
<RimWorld.RoyalTitleDef> source, System.Func`2<RimWorld.RoyalTitleDef,
System.Single> weightSelector)
IL_04DD: stloc.s 5 (RimWorld.RoyalTitleDef)
IL_04DF: Label46
IL_04DF: Label48
IL_04DF: Label49
IL_04DF: Label50
IL_04DF: ldarg.0
IL_04E0: call Verse.PawnKindDef
Verse.PawnGenerationRequest::get_KindDef()
IL_04E5: ldfld RimWorld.RoyalTitleDef
Verse.PawnKindDef::minTitleRequired
IL_04EA: brfalse => Label52
IL_04EF: ldloc.s 5 (RimWorld.RoyalTitleDef)
IL_04F1: brfalse => Label53
IL_04F6: ldloc.s 5 (RimWorld.RoyalTitleDef)
IL_04F8: ldfld System.Int32 RimWorld.RoyalTitleDef::seniority
IL_04FD: ldarg.0
IL_04FE: call Verse.PawnKindDef
Verse.PawnGenerationRequest::get_KindDef()
IL_0503: ldfld RimWorld.RoyalTitleDef
Verse.PawnKindDef::minTitleRequired
IL_0508: ldfld System.Int32 RimWorld.RoyalTitleDef::seniority
IL_050D: bge => Label54
IL_0512: Label53
IL_0512: ldarg.0
IL_0513: call Verse.PawnKindDef
Verse.PawnGenerationRequest::get_KindDef()
IL_0518: ldfld RimWorld.RoyalTitleDef
Verse.PawnKindDef::minTitleRequired
IL_051D: stloc.s 5 (RimWorld.RoyalTitleDef)
IL_051F: Label52
IL_051F: Label54
IL_051F: ldloc.s 5 (RimWorld.RoyalTitleDef)
IL_0521: brfalse => Label55
IL_0526: ldarg.0
IL_0527: call RimWorld.Faction
Verse.PawnGenerationRequest::get_Faction()
IL_052C: brfalse => Label56
IL_0531: ldarg.0
IL_0532: call RimWorld.Faction
Verse.PawnGenerationRequest::get_Faction()
IL_0537: ldfld RimWorld.FactionDef RimWorld.Faction::def
IL_053C: callvirt System.Boolean RimWorld.FactionDef::get_HasRoyalTitles()
IL_0541: brtrue => Label57
IL_0546: Label56
IL_0546: call static RimWorld.FactionManager
Verse.Find::get_FactionManager()
IL_054B: ldc.i4.0
IL_054C: ldc.i4.0
IL_054D: ldc.i4.1
IL_054E: ldc.i4.0
IL_054F: callvirt RimWorld.Faction
RimWorld.FactionManager::RandomRoyalFaction(System.Boolean allowHidden,
System.Boolean allowDefeated, System.Boolean allowNonHumanlike, RimWorld.TechLevel
minTechLevel)
IL_0554: br => Label58
IL_0559: Label57
IL_0559: ldarg.0
IL_055A: call RimWorld.Faction
Verse.PawnGenerationRequest::get_Faction()
IL_055F: Label58
IL_055F: stloc.s 6 (RimWorld.Faction)
IL_0561: ldloc.0
IL_0562: ldfld RimWorld.Pawn_RoyaltyTracker Verse.Pawn::royalty
IL_0567: ldloc.s 6 (RimWorld.Faction)
IL_0569: ldloc.s 5 (RimWorld.RoyalTitleDef)
IL_056B: ldc.i4.0
IL_056C: ldc.i4.0
IL_056D: ldc.i4.1
IL_056E: callvirt System.Void
RimWorld.Pawn_RoyaltyTracker::SetTitle(RimWorld.Faction faction,
RimWorld.RoyalTitleDef title, System.Boolean grantRewards, System.Boolean
rewardsOnlyForNewestTitle, System.Boolean sendLetter)
IL_0573: ldarg.0
IL_0574: call RimWorld.Faction
Verse.PawnGenerationRequest::get_Faction()
IL_0579: brfalse => Label59
IL_057E: ldarg.0
IL_057F: call RimWorld.Faction
Verse.PawnGenerationRequest::get_Faction()
IL_0584: callvirt System.Boolean RimWorld.Faction::get_IsPlayer()
IL_0589: brtrue => Label60
IL_058E: ldloc.0
IL_058F: ldloc.s 6 (RimWorld.Faction)
IL_0591: call static System.Void
Verse.PawnGenerator::PurchasePermits(Verse.Pawn pawn, RimWorld.Faction faction)
IL_0596: Label59
IL_0596: Label60
IL_0596: ldc.i4.0
IL_0597: stloc.s 7 (System.Int32)
IL_0599: ldloc.s 5 (RimWorld.RoyalTitleDef)
IL_059B: ldloc.s 6 (RimWorld.Faction)
IL_059D: call static RimWorld.RoyalTitleDef
RimWorld.RoyalTitleDefExt::GetNextTitle(RimWorld.RoyalTitleDef currentTitle,
RimWorld.Faction faction)
IL_05A2: brfalse => Label61
IL_05A7: ldc.i4.0
IL_05A8: ldloc.s 5 (RimWorld.RoyalTitleDef)
IL_05AA: ldloc.s 6 (RimWorld.Faction)
IL_05AC: call static RimWorld.RoyalTitleDef
RimWorld.RoyalTitleDefExt::GetNextTitle(RimWorld.RoyalTitleDef currentTitle,
RimWorld.Faction faction)
IL_05B1: ldfld System.Int32 RimWorld.RoyalTitleDef::favorCost
IL_05B6: ldc.i4.1
IL_05B7: sub
IL_05B8: call static System.Int32 Verse.Rand::Range(System.Int32 min,
System.Int32 max)
IL_05BD: stloc.s 7 (System.Int32)
IL_05BF: Label61
IL_05BF: ldloc.0
IL_05C0: ldfld RimWorld.Pawn_RoyaltyTracker Verse.Pawn::royalty
IL_05C5: ldloc.s 6 (RimWorld.Faction)
IL_05C7: ldloc.s 7 (System.Int32)
IL_05C9: ldc.i4.1
IL_05CA: callvirt System.Void
RimWorld.Pawn_RoyaltyTracker::SetFavor(RimWorld.Faction faction, System.Int32
amount, System.Boolean notifyOnFavorChanged)
IL_05CF: ldloc.s 5 (RimWorld.RoyalTitleDef)
IL_05D1: ldfld System.Int32 RimWorld.RoyalTitleDef::maxPsylinkLevel
IL_05D6: ldc.i4.0
IL_05D7: ble => Label62
IL_05DC: ldsfld Verse.HediffDef RimWorld.HediffDefOf::PsychicAmplifier
IL_05E1: ldloc.0
IL_05E2: ldloc.0
IL_05E3: ldfld Verse.Pawn_HealthTracker Verse.Pawn::health
IL_05E8: ldfld Verse.HediffSet Verse.Pawn_HealthTracker::hediffSet
IL_05ED: callvirt Verse.BodyPartRecord Verse.HediffSet::GetBrain()
IL_05F2: call static Verse.Hediff
Verse.HediffMaker::MakeHediff(Verse.HediffDef def, Verse.Pawn pawn,
Verse.BodyPartRecord partRecord)
IL_05F7: isinst Verse.Hediff_Level
IL_05FC: stloc.s 8 (Verse.Hediff_Level)
IL_05FE: ldloc.0
IL_05FF: ldfld Verse.Pawn_HealthTracker Verse.Pawn::health
IL_0604: ldloc.s 8 (Verse.Hediff_Level)
IL_0606: ldnull
IL_0607: ldloca.s 9 (System.Nullable`1[Verse.DamageInfo])
IL_0609: initobj System.Nullable`1[Verse.DamageInfo]
IL_060F: ldloc.s 9 (System.Nullable`1[Verse.DamageInfo])
IL_0611: ldnull
IL_0612: callvirt System.Void
Verse.Pawn_HealthTracker::AddHediff(Verse.Hediff hediff, Verse.BodyPartRecord part,
System.Nullable`1<Verse.DamageInfo> dinfo, Verse.DamageResult result)
IL_0617: ldloc.s 8 (Verse.Hediff_Level)
IL_0619: ldloc.s 5 (RimWorld.RoyalTitleDef)
IL_061B: ldfld System.Int32 RimWorld.RoyalTitleDef::maxPsylinkLevel
IL_0620: callvirt virtual System.Void
Verse.Hediff_Level::SetLevelTo(System.Int32 targetLevel)
IL_0625: Label44
IL_0625: Label45
IL_0625: Label55
IL_0625: Label62
IL_0625: ldloc.0
IL_0626: ldfld RimWorld.Pawn_RoyaltyTracker Verse.Pawn::royalty
IL_062B: brfalse => Label63
IL_0630: ldloc.0
IL_0631: ldfld RimWorld.Pawn_RoyaltyTracker Verse.Pawn::royalty
IL_0636: ldarg.0
IL_0637: call Verse.PawnKindDef
Verse.PawnGenerationRequest::get_KindDef()
IL_063C: ldfld System.Boolean
Verse.PawnKindDef::allowRoyalRoomRequirements
IL_0641: stfld System.Boolean
RimWorld.Pawn_RoyaltyTracker::allowRoomRequirements
IL_0646: ldloc.0
IL_0647: ldfld RimWorld.Pawn_RoyaltyTracker Verse.Pawn::royalty
IL_064C: ldarg.0
IL_064D: call Verse.PawnKindDef
Verse.PawnGenerationRequest::get_KindDef()
IL_0652: ldfld System.Boolean
Verse.PawnKindDef::allowRoyalApparelRequirements
IL_0657: stfld System.Boolean
RimWorld.Pawn_RoyaltyTracker::allowApparelRequirements
IL_065C: Label63
IL_065C: ldloc.0
IL_065D: ldfld RimWorld.Pawn_GuestTracker Verse.Pawn::guest
IL_0662: brfalse => Label64
IL_0667: ldloc.0
IL_0668: ldfld RimWorld.Pawn_GuestTracker Verse.Pawn::guest
IL_066D: callvirt System.Void
RimWorld.Pawn_GuestTracker::RandomizeJoinStatus()
IL_0672: Label64
IL_0672: ldloc.0
IL_0673: ldfld RimWorld.Pawn_WorkSettings Verse.Pawn::workSettings
IL_0678: brfalse => Label65
IL_067D: ldarg.0
IL_067E: call RimWorld.Faction
Verse.PawnGenerationRequest::get_Faction()
IL_0683: dup
IL_0684: brtrue => Label66
IL_0689: pop
IL_068A: ldc.i4.0
IL_068B: br => Label67
IL_0690: Label66
IL_0690: call System.Boolean RimWorld.Faction::get_IsPlayer()
IL_0695: Label67
IL_0695: brfalse => Label68
IL_069A: ldloc.0
IL_069B: ldfld RimWorld.Pawn_WorkSettings Verse.Pawn::workSettings
IL_06A0: callvirt System.Void
RimWorld.Pawn_WorkSettings::EnableAndInitialize()
IL_06A5: Label65
IL_06A5: Label68
IL_06A5: ldarg.0
IL_06A6: call RimWorld.Faction
Verse.PawnGenerationRequest::get_Faction()
IL_06AB: brfalse => Label69
IL_06B0: ldloc.0
IL_06B1: callvirt Verse.RaceProperties Verse.Pawn::get_RaceProps()
IL_06B6: callvirt System.Boolean Verse.RaceProperties::get_Animal()
IL_06BB: brtrue => Label70
IL_06C0: call static System.Boolean
Verse.ModsConfig::get_BiotechActive()
IL_06C5: brfalse => Label71
IL_06CA: ldloc.0
IL_06CB: callvirt Verse.RaceProperties Verse.Pawn::get_RaceProps()
IL_06D0: callvirt System.Boolean Verse.RaceProperties::get_IsMechanoid()
IL_06D5: brfalse => Label72
IL_06DA: Label70
IL_06DA: ldloc.0
IL_06DB: callvirt System.Void Verse.Pawn::GenerateNecessaryName()
IL_06E0: Label69
IL_06E0: Label71
IL_06E0: Label72
IL_06E0: ldloc.0
IL_06E1: ldfld RimWorld.Pawn_IdeoTracker Verse.Pawn::ideo
IL_06E6: brfalse => Label73
IL_06EB: ldloc.0
IL_06EC: callvirt Verse.DevelopmentalStage
Verse.Pawn::get_DevelopmentalStage()
IL_06F1: call static System.Boolean
Verse.DevelopmentalStageExtensions::Baby(Verse.DevelopmentalStage
developmentalStage)
IL_06F6: brtrue => Label74
IL_06FB: ldarg.0
IL_06FC: call RimWorld.Ideo
Verse.PawnGenerationRequest::get_FixedIdeo()
IL_0701: brfalse => Label75
IL_0706: ldloc.0
IL_0707: ldfld RimWorld.Pawn_IdeoTracker Verse.Pawn::ideo
IL_070C: ldarg.0
IL_070D: call RimWorld.Ideo
Verse.PawnGenerationRequest::get_FixedIdeo()
IL_0712: callvirt System.Void
RimWorld.Pawn_IdeoTracker::SetIdeo(RimWorld.Ideo ideo)
IL_0717: br => Label76
IL_071C: Label75
IL_071C: ldarg.0
IL_071D: call RimWorld.Faction
Verse.PawnGenerationRequest::get_Faction()
IL_0722: dup
IL_0723: brtrue => Label77
IL_0728: pop
IL_0729: ldnull
IL_072A: br => Label78
IL_072F: Label77
IL_072F: ldfld RimWorld.FactionIdeosTracker RimWorld.Faction::ideos
IL_0734: Label78
IL_0734: brfalse => Label79
IL_0739: ldloc.0
IL_073A: ldfld RimWorld.Pawn_IdeoTracker Verse.Pawn::ideo
IL_073F: ldarg.0
IL_0740: call RimWorld.Faction
Verse.PawnGenerationRequest::get_Faction()
IL_0745: ldfld RimWorld.FactionIdeosTracker RimWorld.Faction::ideos
IL_074A: callvirt RimWorld.Ideo
RimWorld.FactionIdeosTracker::GetRandomIdeoForNewPawn()
IL_074F: callvirt System.Void
RimWorld.Pawn_IdeoTracker::SetIdeo(RimWorld.Ideo ideo)
IL_0754: br => Label80
IL_0759: Label79
IL_0759: call static RimWorld.IdeoManager Verse.Find::get_IdeoManager()
IL_075E: callvirt System.Collections.Generic.List`1<RimWorld.Ideo>
RimWorld.IdeoManager::get_IdeosListForReading()
IL_0763: ldloca.s 10 (RimWorld.Ideo)
IL_0765: call static System.Boolean
Verse.GenCollection::TryRandomElement(System.Collections.Generic.IEnumerable`1<RimW
orld.Ideo> source, RimWorld.Ideo& result)
IL_076A: brfalse => Label81
IL_076F: ldloc.0
IL_0770: ldfld RimWorld.Pawn_IdeoTracker Verse.Pawn::ideo
IL_0775: ldloc.s 10 (RimWorld.Ideo)
IL_0777: callvirt System.Void
RimWorld.Pawn_IdeoTracker::SetIdeo(RimWorld.Ideo ideo)
IL_077C: Label73
IL_077C: Label74
IL_077C: Label76
IL_077C: Label80
IL_077C: Label81
IL_077C: ldloc.0
IL_077D: ldfld Verse.AI.Pawn_MindState Verse.Pawn::mindState
IL_0782: brfalse => Label82
IL_0787: ldloc.0
IL_0788: ldfld Verse.AI.Pawn_MindState Verse.Pawn::mindState
IL_078D: callvirt System.Void
Verse.AI.Pawn_MindState::SetupLastHumanMeatTick()
IL_0792: Label82
IL_0792: ldloc.0
IL_0793: ldfld RimWorld.Pawn_SurroundingsTracker
Verse.Pawn::surroundings
IL_0798: brfalse => Label83
IL_079D: ldloc.0
IL_079E: ldfld RimWorld.Pawn_SurroundingsTracker
Verse.Pawn::surroundings
IL_07A3: callvirt System.Void RimWorld.Pawn_SurroundingsTracker::Clear()
IL_07A8: Label83
IL_07A8: ldloc.0
IL_07A9: ldarg.0
IL_07AA: ldobj Verse.PawnGenerationRequest
IL_07AF: call static System.Void
Verse.PawnGenerator::GenerateInitialHediffs(Verse.Pawn pawn,
Verse.PawnGenerationRequest request)
IL_07B4: ldarg.0
IL_07B5: call System.Boolean
Verse.PawnGenerationRequest::get_ForceDead()
IL_07BA: brfalse => Label84
IL_07BF: ldloc.0
IL_07C0: ldloca.s 9 (System.Nullable`1[Verse.DamageInfo])
IL_07C2: initobj System.Nullable`1[Verse.DamageInfo]
IL_07C8: ldloc.s 9 (System.Nullable`1[Verse.DamageInfo])
IL_07CA: ldnull
IL_07CB: callvirt virtual System.Void
Verse.Thing::Kill(System.Nullable`1<Verse.DamageInfo> dinfo, Verse.Hediff
exactCulprit)
IL_07D0: Label84
IL_07D0: ldloc.0
IL_07D1: callvirt Verse.RaceProperties Verse.Pawn::get_RaceProps()
IL_07D6: callvirt System.Boolean Verse.RaceProperties::get_Humanlike()
IL_07DB: brfalse => Label85
IL_07E0: ldloc.0
IL_07E1: ldfld RimWorld.Pawn_StoryTracker Verse.Pawn::story
IL_07E6: ldloc.0
IL_07E7: call static RimWorld.HairDef
RimWorld.PawnStyleItemChooser::RandomHairFor(Verse.Pawn pawn)
IL_07EC: stfld RimWorld.HairDef RimWorld.Pawn_StoryTracker::hairDef
IL_07F1: ldloc.0
IL_07F2: ldfld RimWorld.Pawn_StyleTracker Verse.Pawn::style
IL_07F7: brfalse => Label86
IL_07FC: ldloc.0
IL_07FD: ldfld RimWorld.Pawn_StyleTracker Verse.Pawn::style
IL_0802: ldloc.0
IL_0803: call static RimWorld.BeardDef
RimWorld.PawnStyleItemChooser::RandomBeardFor(Verse.Pawn pawn)
IL_0808: stfld RimWorld.BeardDef RimWorld.Pawn_StyleTracker::beardDef
IL_080D: call static System.Boolean
Verse.ModsConfig::get_IdeologyActive()
IL_0812: brfalse => Label87
IL_0817: ldloc.0
IL_0818: callvirt Verse.DevelopmentalStage
Verse.Pawn::get_DevelopmentalStage()
IL_081D: call static System.Boolean
Verse.DevelopmentalStageExtensions::Baby(Verse.DevelopmentalStage
developmentalStage)
IL_0822: brtrue => Label88
IL_0827: ldloc.0
IL_0828: ldfld RimWorld.Pawn_StyleTracker Verse.Pawn::style
IL_082D: ldloc.0
IL_082E: ldc.i4.0
IL_082F: call static RimWorld.TattooDef
RimWorld.PawnStyleItemChooser::RandomTattooFor(Verse.Pawn pawn, RimWorld.TattooType
tattooType)
IL_0834: callvirt System.Void
RimWorld.Pawn_StyleTracker::set_FaceTattoo(RimWorld.TattooDef value)
IL_0839: ldloc.0
IL_083A: ldfld RimWorld.Pawn_StyleTracker Verse.Pawn::style
IL_083F: ldloc.0
IL_0840: ldc.i4.1
IL_0841: call static RimWorld.TattooDef
RimWorld.PawnStyleItemChooser::RandomTattooFor(Verse.Pawn pawn, RimWorld.TattooType
tattooType)
IL_0846: callvirt System.Void
RimWorld.Pawn_StyleTracker::set_BodyTattoo(RimWorld.TattooDef value)
IL_084B: br => Label89
IL_0850: Label87
IL_0850: Label88
IL_0850: ldloc.0
IL_0851: ldfld RimWorld.Pawn_StyleTracker Verse.Pawn::style
IL_0856: callvirt System.Void
RimWorld.Pawn_StyleTracker::SetupTattoos_NoIdeology()
IL_085B: Label85
IL_085B: Label86
IL_085B: Label89
IL_085B: ldarg.0
IL_085C: call Verse.PawnKindDef
Verse.PawnGenerationRequest::get_KindDef()
IL_0861: ldfld System.Collections.Generic.List`1<RimWorld.AbilityDef>
Verse.PawnKindDef::abilities
IL_0866: call static System.Boolean
Verse.GenList::NullOrEmpty(System.Collections.Generic.IList`1<RimWorld.AbilityDef>
list)
IL_086B: brtrue => Label90
IL_0870: ldc.i4.0
IL_0871: stloc.s 11 (System.Int32)
IL_0873: br => Label91
IL_0878: Label92
IL_0878: ldloc.0
IL_0879: ldfld RimWorld.Pawn_AbilityTracker Verse.Pawn::abilities
IL_087E: ldarg.0
IL_087F: call Verse.PawnKindDef
Verse.PawnGenerationRequest::get_KindDef()
IL_0884: ldfld System.Collections.Generic.List`1<RimWorld.AbilityDef>
Verse.PawnKindDef::abilities
IL_0889: ldloc.s 11 (System.Int32)
IL_088B: callvirt virtual RimWorld.AbilityDef
System.Collections.Generic.List`1<RimWorld.AbilityDef>::get_Item(System.Int32
index)
IL_0890: callvirt System.Void
RimWorld.Pawn_AbilityTracker::GainAbility(RimWorld.AbilityDef def)
IL_0895: ldloc.s 11 (System.Int32)
IL_0897: ldc.i4.1
IL_0898: add
IL_0899: stloc.s 11 (System.Int32)
IL_089B: Label91
IL_089B: ldloc.s 11 (System.Int32)
IL_089D: ldarg.0
IL_089E: call Verse.PawnKindDef
Verse.PawnGenerationRequest::get_KindDef()
IL_08A3: ldfld System.Collections.Generic.List`1<RimWorld.AbilityDef>
Verse.PawnKindDef::abilities
IL_08A8: callvirt virtual System.Int32
System.Collections.Generic.List`1<RimWorld.AbilityDef>::get_Count()
IL_08AD: blt => Label92
IL_08B2: Label90
IL_08B2: call static RimWorld.Scenario Verse.Find::get_Scenario()
IL_08B7: brfalse => Label93
IL_08BC: call static RimWorld.Scenario Verse.Find::get_Scenario()
IL_08C1: ldloc.0
IL_08C2: ldarg.0
IL_08C3: call RimWorld.PawnGenerationContext
Verse.PawnGenerationRequest::get_Context()
IL_08C8: callvirt System.Void
RimWorld.Scenario::Notify_NewPawnGenerating(Verse.Pawn pawn,
RimWorld.PawnGenerationContext context)
IL_08CD: Label93
IL_08CD: ldarg.0
IL_08CE: call System.Boolean
Verse.PawnGenerationRequest::get_AllowDead()
IL_08D3: brtrue => Label94
IL_08D8: ldarg.0
IL_08D9: call System.Boolean
Verse.PawnGenerationRequest::get_ForceDead()
IL_08DE: brtrue => Label95
IL_08E3: ldloc.0
IL_08E4: callvirt System.Boolean Verse.Pawn::get_Dead()
IL_08E9: brtrue => Label96
IL_08EE: ldloc.0
IL_08EF: callvirt System.Boolean Verse.Thing::get_Destroyed()
IL_08F4: brfalse => Label97
IL_08F9: Label96
IL_08F9: ldloc.0
IL_08FA: call static System.Void
Verse.PawnGenerator::DiscardGeneratedPawn(Verse.Pawn pawn)
IL_08FF: ldarg.1
IL_0900: ldstr "Generated dead pawn."
IL_0905: stind.ref
IL_0906: ldnull
IL_0907: stloc.s 12 (Verse.Pawn)
IL_0909: leave => Label98
IL_090E: Label94
IL_090E: Label95
IL_090E: Label97
IL_090E: ldarg.0
IL_090F: call System.Boolean
Verse.PawnGenerationRequest::get_AllowDowned()
IL_0914: brtrue => Label99
IL_0919: ldarg.0
IL_091A: call System.Boolean
Verse.PawnGenerationRequest::get_ForceDead()
IL_091F: brtrue => Label100
IL_0924: ldloc.0
IL_0925: callvirt System.Boolean Verse.Pawn::get_Downed()
IL_092A: brfalse => Label101
IL_092F: ldloc.0
IL_0930: call static System.Void
Verse.PawnGenerator::DiscardGeneratedPawn(Verse.Pawn pawn)
IL_0935: ldarg.1
IL_0936: ldstr "Generated downed pawn."
IL_093B: stind.ref
IL_093C: ldnull
IL_093D: stloc.s 12 (Verse.Pawn)
IL_093F: leave => Label102
IL_0944: Label99
IL_0944: Label100
IL_0944: Label101
IL_0944: ldarg.0
IL_0945: call System.Boolean
Verse.PawnGenerationRequest::get_MustBeCapableOfViolence()
IL_094A: brfalse => Label103
IL_094F: ldloc.0
IL_0950: ldfld RimWorld.Pawn_StoryTracker Verse.Pawn::story
IL_0955: brfalse => Label104
IL_095A: ldloc.0
IL_095B: ldc.i4.8
IL_095C: callvirt System.Boolean
Verse.Pawn::WorkTagIsDisabled(Verse.WorkTags w)
IL_0961: brtrue => Label105
IL_0966: Label104
IL_0966: ldloc.0
IL_0967: callvirt Verse.RaceProperties Verse.Pawn::get_RaceProps()
IL_096C: callvirt System.Boolean Verse.RaceProperties::get_IsMechanoid()
IL_0971: brtrue => Label106
IL_0976: ldloc.0
IL_0977: callvirt Verse.RaceProperties Verse.Pawn::get_RaceProps()
IL_097C: callvirt System.Boolean Verse.RaceProperties::get_ToolUser()
IL_0981: brfalse => Label107
IL_0986: ldloc.0
IL_0987: ldfld Verse.Pawn_HealthTracker Verse.Pawn::health
IL_098C: ldfld Verse.PawnCapacitiesHandler
Verse.Pawn_HealthTracker::capacities
IL_0991: ldsfld Verse.PawnCapacityDef
RimWorld.PawnCapacityDefOf::Manipulation
IL_0996: callvirt System.Boolean
Verse.PawnCapacitiesHandler::CapableOf(Verse.PawnCapacityDef capacity)
IL_099B: brtrue => Label108
IL_09A0: Label105
IL_09A0: ldloc.0
IL_09A1: call static System.Void
Verse.PawnGenerator::DiscardGeneratedPawn(Verse.Pawn pawn)
IL_09A6: ldarg.1
IL_09A7: ldstr "Generated pawn incapable of violence."
IL_09AC: stind.ref
IL_09AD: ldnull
IL_09AE: stloc.s 12 (Verse.Pawn)
IL_09B0: leave => Label109
IL_09B5: Label103
IL_09B5: Label106
IL_09B5: Label107
IL_09B5: Label108
IL_09B5: ldarg.0
IL_09B6: call Verse.PawnKindDef
Verse.PawnGenerationRequest::get_KindDef()
IL_09BB: brfalse => Label110
IL_09C0: ldarg.0
IL_09C1: call Verse.PawnKindDef
Verse.PawnGenerationRequest::get_KindDef()
IL_09C6: ldfld System.Collections.Generic.List`1<Verse.SkillRange>
Verse.PawnKindDef::skills
IL_09CB: call static System.Boolean
Verse.GenList::NullOrEmpty(System.Collections.Generic.IList`1<Verse.SkillRange>
list)
IL_09D0: brtrue => Label111
IL_09D5: ldarg.0
IL_09D6: call Verse.PawnKindDef
Verse.PawnGenerationRequest::get_KindDef()
IL_09DB: ldfld System.Collections.Generic.List`1<Verse.SkillRange>
Verse.PawnKindDef::skills
IL_09E0: stloc.s 13 (System.Collections.Generic.List`1[Verse.SkillRange])
IL_09E2: ldc.i4.0
IL_09E3: stloc.s 14 (System.Int32)
IL_09E5: br => Label112
IL_09EA: Label115
IL_09EA: ldloc.0
IL_09EB: ldfld RimWorld.Pawn_SkillTracker Verse.Pawn::skills
IL_09F0: ldloc.s 13 (System.Collections.Generic.List`1[Verse.SkillRange])
IL_09F2: ldloc.s 14 (System.Int32)
IL_09F4: callvirt virtual Verse.SkillRange
System.Collections.Generic.List`1<Verse.SkillRange>::get_Item(System.Int32 index)
IL_09F9: callvirt RimWorld.SkillDef Verse.SkillRange::get_Skill()
IL_09FE: callvirt RimWorld.SkillRecord
RimWorld.Pawn_SkillTracker::GetSkill(RimWorld.SkillDef skillDef)
IL_0A03: callvirt System.Boolean
RimWorld.SkillRecord::get_TotallyDisabled()
IL_0A08: brfalse => Label113
IL_0A0D: ldarg.1
IL_0A0E: ldstr "Generated pawn incapable of required skill: "
IL_0A13: ldloc.s 13 (System.Collections.Generic.List`1[Verse.SkillRange])
IL_0A15: ldloc.s 14 (System.Int32)
IL_0A17: callvirt virtual Verse.SkillRange
System.Collections.Generic.List`1<Verse.SkillRange>::get_Item(System.Int32 index)
IL_0A1C: callvirt RimWorld.SkillDef Verse.SkillRange::get_Skill()
IL_0A21: ldfld System.String Verse.Def::defName
IL_0A26: call static System.String System.String::Concat(System.String
str0, System.String str1)
IL_0A2B: stind.ref
IL_0A2C: ldnull
IL_0A2D: stloc.s 12 (Verse.Pawn)
IL_0A2F: leave => Label114
IL_0A34: Label113
IL_0A34: ldloc.s 14 (System.Int32)
IL_0A36: ldc.i4.1
IL_0A37: add
IL_0A38: stloc.s 14 (System.Int32)
IL_0A3A: Label112
IL_0A3A: ldloc.s 14 (System.Int32)
IL_0A3C: ldloc.s 13 (System.Collections.Generic.List`1[Verse.SkillRange])
IL_0A3E: callvirt virtual System.Int32
System.Collections.Generic.List`1<Verse.SkillRange>::get_Count()
IL_0A43: blt => Label115
IL_0A48: Label110
IL_0A48: Label111
IL_0A48: ldarg.0
IL_0A49: call Verse.PawnKindDef
Verse.PawnGenerationRequest::get_KindDef()
IL_0A4E: ldfld Verse.WorkTags Verse.PawnKindDef::requiredWorkTags
IL_0A53: brfalse => Label116
IL_0A58: ldloc.0
IL_0A59: callvirt Verse.WorkTags Verse.Pawn::get_CombinedDisabledWorkTags()
IL_0A5E: ldarg.0
IL_0A5F: call Verse.PawnKindDef
Verse.PawnGenerationRequest::get_KindDef()
IL_0A64: ldfld Verse.WorkTags Verse.PawnKindDef::requiredWorkTags
IL_0A69: and
IL_0A6A: brfalse => Label117
IL_0A6F: ldloc.0
IL_0A70: call static System.Void
Verse.PawnGenerator::DiscardGeneratedPawn(Verse.Pawn pawn)
IL_0A75: ldarg.1
IL_0A76: ldstr "Generated pawn with disabled requiredWorkTags."
IL_0A7B: stind.ref
IL_0A7C: ldnull
IL_0A7D: stloc.s 12 (Verse.Pawn)
IL_0A7F: leave => Label118
IL_0A84: Label116
IL_0A84: Label117
IL_0A84: ldloc.0
IL_0A85: ldarg.0
IL_0A86: call Verse.PawnKindDef
Verse.PawnGenerationRequest::get_KindDef()
IL_0A8B: call static System.Boolean
Verse.PawnGenerator::HasCorrectMinBestSkillLevel(Verse.Pawn pawn, Verse.PawnKindDef
kind)
IL_0A90: brtrue => Label119
IL_0A95: ldloc.0
IL_0A96: call static System.Void
Verse.PawnGenerator::DiscardGeneratedPawn(Verse.Pawn pawn)
IL_0A9B: ldarg.1
IL_0A9C: ldstr "Generated pawn with too low best skill level."
IL_0AA1: stind.ref
IL_0AA2: ldnull
IL_0AA3: stloc.s 12 (Verse.Pawn)
IL_0AA5: leave => Label120
IL_0AAA: Label119
IL_0AAA: ldloc.0
IL_0AAB: ldarg.0
IL_0AAC: call Verse.PawnKindDef
Verse.PawnGenerationRequest::get_KindDef()
IL_0AB1: call static System.Boolean
Verse.PawnGenerator::HasCorrectMinTotalSkillLevels(Verse.Pawn pawn,
Verse.PawnKindDef kind)
IL_0AB6: brtrue => Label121
IL_0ABB: ldloc.0
IL_0ABC: call static System.Void
Verse.PawnGenerator::DiscardGeneratedPawn(Verse.Pawn pawn)
IL_0AC1: ldarg.1
IL_0AC2: ldstr "Generated pawn with bad skills."
IL_0AC7: stind.ref
IL_0AC8: ldnull
IL_0AC9: stloc.s 12 (Verse.Pawn)
IL_0ACB: leave => Label122
IL_0AD0: Label121
IL_0AD0: ldarg.2
IL_0AD1: brtrue => Label123
IL_0AD6: ldarg.0
IL_0AD7: call RimWorld.PawnGenerationContext
Verse.PawnGenerationRequest::get_Context()
IL_0ADC: ldc.i4.1
IL_0ADD: bne.un => Label124
IL_0AE2: call static RimWorld.Scenario Verse.Find::get_Scenario()
IL_0AE7: brfalse => Label125
IL_0AEC: call static RimWorld.Scenario Verse.Find::get_Scenario()
IL_0AF1: ldloc.0
IL_0AF2: ldc.i4.0
IL_0AF3: ldarg.0
IL_0AF4: ldobj Verse.PawnGenerationRequest
IL_0AF9: callvirt System.Boolean
RimWorld.Scenario::AllowPlayerStartingPawn(Verse.Pawn pawn, System.Boolean
tryingToRedress, Verse.PawnGenerationRequest req)
IL_0AFE: brtrue => Label126
IL_0B03: ldloc.0
IL_0B04: call static System.Void
Verse.PawnGenerator::DiscardGeneratedPawn(Verse.Pawn pawn)
IL_0B09: ldarg.1
IL_0B0A: ldstr "Generated pawn doesn\'t meet scenario requirements."
IL_0B0F: stind.ref
IL_0B10: ldnull
IL_0B11: stloc.s 12 (Verse.Pawn)
IL_0B13: leave => Label127
IL_0B18: Label123
IL_0B18: Label124
IL_0B18: Label125
IL_0B18: Label126
IL_0B18: ldarg.3
IL_0B19: brtrue => Label128
IL_0B1E: ldarg.0
IL_0B1F: call System.Predicate`1<Verse.Pawn>
Verse.PawnGenerationRequest::get_ValidatorPreGear()
IL_0B24: brfalse => Label129
IL_0B29: ldarg.0
IL_0B2A: call System.Predicate`1<Verse.Pawn>
Verse.PawnGenerationRequest::get_ValidatorPreGear()
IL_0B2F: ldloc.0
IL_0B30: callvirt virtual System.Boolean
System.Predicate`1<Verse.Pawn>::Invoke(Verse.Pawn obj)
IL_0B35: brtrue => Label130
IL_0B3A: ldloc.0
IL_0B3B: call static System.Void
Verse.PawnGenerator::DiscardGeneratedPawn(Verse.Pawn pawn)
IL_0B40: ldarg.1
IL_0B41: ldstr "Generated pawn didn\'t pass validator check (pre-gear)."
IL_0B46: stind.ref
IL_0B47: ldnull
IL_0B48: stloc.s 12 (Verse.Pawn)
IL_0B4A: leave => Label131
IL_0B4F: Label128
IL_0B4F: Label129
IL_0B4F: Label130
IL_0B4F: ldarg.0
IL_0B50: call Verse.DevelopmentalStage
Verse.PawnGenerationRequest::get_AllowedDevelopmentalStages()
IL_0B55: call static System.Boolean
Verse.DevelopmentalStageExtensions::Newborn(Verse.DevelopmentalStage
developmentalStage)
IL_0B5A: brfalse => Label132
IL_0B5F: ldloc.0
IL_0B60: callvirt Verse.RaceProperties Verse.Pawn::get_RaceProps()
IL_0B65: callvirt System.Boolean Verse.RaceProperties::get_IsMechanoid()
IL_0B6A: brfalse => Label133
IL_0B6F: Label132
IL_0B6F: ldloc.0
IL_0B70: ldarg.0
IL_0B71: ldobj Verse.PawnGenerationRequest
IL_0B76: call static System.Void
Verse.PawnGenerator::GenerateGearFor(Verse.Pawn pawn, Verse.PawnGenerationRequest
request)
IL_0B7B: Label133
IL_0B7B: ldarg.0
IL_0B7C: call System.Boolean
Verse.PawnGenerationRequest::get_ForceDead()
IL_0B81: brfalse => Label134
IL_0B86: ldloc.0
IL_0B87: callvirt System.Boolean Verse.Pawn::get_Dead()
IL_0B8C: brfalse => Label135
IL_0B91: ldloc.0
IL_0B92: ldfld RimWorld.Pawn_ApparelTracker Verse.Pawn::apparel
IL_0B97: ldloca.s 9 (System.Nullable`1[Verse.DamageInfo])
IL_0B99: initobj System.Nullable`1[Verse.DamageInfo]
IL_0B9F: ldloc.s 9 (System.Nullable`1[Verse.DamageInfo])
IL_0BA1: callvirt System.Void
RimWorld.Pawn_ApparelTracker::Notify_PawnKilled(System.Nullable`1<Verse.DamageInfo>
dinfo)
IL_0BA6: Label134
IL_0BA6: Label135
IL_0BA6: ldarg.3
IL_0BA7: brtrue => Label136
IL_0BAC: ldarg.0
IL_0BAD: call System.Predicate`1<Verse.Pawn>
Verse.PawnGenerationRequest::get_ValidatorPostGear()
IL_0BB2: brfalse => Label137
IL_0BB7: ldarg.0
IL_0BB8: call System.Predicate`1<Verse.Pawn>
Verse.PawnGenerationRequest::get_ValidatorPostGear()
IL_0BBD: ldloc.0
IL_0BBE: callvirt virtual System.Boolean
System.Predicate`1<Verse.Pawn>::Invoke(Verse.Pawn obj)
IL_0BC3: brtrue => Label138
IL_0BC8: ldloc.0
IL_0BC9: call static System.Void
Verse.PawnGenerator::DiscardGeneratedPawn(Verse.Pawn pawn)
IL_0BCE: ldarg.1
IL_0BCF: ldstr "Generated pawn didn\'t pass validator check (post-
gear)."
IL_0BD4: stind.ref
IL_0BD5: ldnull
IL_0BD6: stloc.s 12 (Verse.Pawn)
IL_0BD8: leave => Label139
IL_0BDD: Label136
IL_0BDD: Label137
IL_0BDD: Label138
IL_0BDD: ldc.i4.0
IL_0BDE: stloc.s 15 (System.Int32)
IL_0BE0: br => Label140
IL_0BE5: Label142
IL_0BE5: ldsfld
System.Collections.Generic.List`1<Verse.PawnGenerationStatus>
Verse.PawnGenerator::pawnsBeingGenerated
IL_0BEA: ldloc.s 15 (System.Int32)
IL_0BEC: callvirt virtual Verse.PawnGenerationStatus
System.Collections.Generic.List`1<Verse.PawnGenerationStatus>::get_Item(System.Int3
2 index)
IL_0BF1: stloc.s 16 (Verse.PawnGenerator+PawnGenerationStatus)
IL_0BF3: ldloca.s 16 (Verse.PawnGenerator+PawnGenerationStatus)
IL_0BF5: call System.Collections.Generic.List`1<Verse.Pawn>
Verse.PawnGenerationStatus::get_PawnsGeneratedInTheMeantime()
IL_0BFA: brtrue => Label141
IL_0BFF: ldsfld
System.Collections.Generic.List`1<Verse.PawnGenerationStatus>
Verse.PawnGenerator::pawnsBeingGenerated
IL_0C04: ldloc.s 15 (System.Int32)
IL_0C06: ldsfld
System.Collections.Generic.List`1<Verse.PawnGenerationStatus>
Verse.PawnGenerator::pawnsBeingGenerated
IL_0C0B: ldloc.s 15 (System.Int32)
IL_0C0D: callvirt virtual Verse.PawnGenerationStatus
System.Collections.Generic.List`1<Verse.PawnGenerationStatus>::get_Item(System.Int3
2 index)
IL_0C12: stloc.s 16 (Verse.PawnGenerator+PawnGenerationStatus)
IL_0C14: ldloca.s 16 (Verse.PawnGenerator+PawnGenerationStatus)
IL_0C16: call Verse.Pawn Verse.PawnGenerationStatus::get_Pawn()
IL_0C1B: newobj System.Void
System.Collections.Generic.List`1<Verse.Pawn>::.ctor()
IL_0C20: ldsfld
System.Collections.Generic.List`1<Verse.PawnGenerationStatus>
Verse.PawnGenerator::pawnsBeingGenerated
IL_0C25: ldloc.s 15 (System.Int32)
IL_0C27: callvirt virtual Verse.PawnGenerationStatus
System.Collections.Generic.List`1<Verse.PawnGenerationStatus>::get_Item(System.Int3
2 index)
IL_0C2C: stloc.s 16 (Verse.PawnGenerator+PawnGenerationStatus)
IL_0C2E: ldloca.s 16 (Verse.PawnGenerator+PawnGenerationStatus)
IL_0C30: call System.Boolean
Verse.PawnGenerationStatus::get_AllowsDead()
IL_0C35: newobj System.Void Verse.PawnGenerationStatus::.ctor(Verse.Pawn
pawn, System.Collections.Generic.List`1<Verse.Pawn> pawnsGeneratedInTheMeantime,
System.Boolean allowsDead)
IL_0C3A: callvirt virtual System.Void
System.Collections.Generic.List`1<Verse.PawnGenerationStatus>::set_Item(System.Int3
2 index, Verse.PawnGenerationStatus value)
IL_0C3F: Label141
IL_0C3F: ldsfld
System.Collections.Generic.List`1<Verse.PawnGenerationStatus>
Verse.PawnGenerator::pawnsBeingGenerated
IL_0C44: ldloc.s 15 (System.Int32)
IL_0C46: callvirt virtual Verse.PawnGenerationStatus
System.Collections.Generic.List`1<Verse.PawnGenerationStatus>::get_Item(System.Int3
2 index)
IL_0C4B: stloc.s 16 (Verse.PawnGenerator+PawnGenerationStatus)
IL_0C4D: ldloca.s 16 (Verse.PawnGenerator+PawnGenerationStatus)
IL_0C4F: call System.Collections.Generic.List`1<Verse.Pawn>
Verse.PawnGenerationStatus::get_PawnsGeneratedInTheMeantime()
IL_0C54: ldloc.0
IL_0C55: callvirt virtual System.Void
System.Collections.Generic.List`1<Verse.Pawn>::Add(Verse.Pawn item)
IL_0C5A: ldloc.s 15 (System.Int32)
IL_0C5C: ldc.i4.1
IL_0C5D: add
IL_0C5E: stloc.s 15 (System.Int32)
IL_0C60: Label140
IL_0C60: ldloc.s 15 (System.Int32)
IL_0C62: ldsfld
System.Collections.Generic.List`1<Verse.PawnGenerationStatus>
Verse.PawnGenerator::pawnsBeingGenerated
IL_0C67: callvirt virtual System.Int32
System.Collections.Generic.List`1<Verse.PawnGenerationStatus>::get_Count()
IL_0C6C: ldc.i4.1
IL_0C6D: sub
IL_0C6E: blt => Label142
IL_0C73: ldloc.0
IL_0C74: callvirt virtual RimWorld.Faction Verse.Thing::get_Faction()
IL_0C79: brfalse => Label143
IL_0C7E: ldloc.0
IL_0C7F: callvirt virtual RimWorld.Faction Verse.Thing::get_Faction()
IL_0C84: ldloc.0
IL_0C85: callvirt System.Void
RimWorld.Faction::Notify_PawnJoined(Verse.Pawn p)
IL_0C8A: Label143
IL_0C8A: ldloc.0
IL_0C8B: stloc.s 12 (Verse.Pawn)
IL_0C8D: leave => Label144
IL_0C92: leave => (autogenerated)
} // end try
.finally
{
IL_0C97: ldsfld
System.Collections.Generic.List`1<Verse.PawnGenerationStatus>
Verse.PawnGenerator::pawnsBeingGenerated
IL_0C9C: call static System.Void
Verse.GenCollection::RemoveLast(System.Collections.Generic.List`1<Verse.PawnGenerat
ionStatus> list)
IL_0CA1: endfinally
IL_0CA2: leave => (autogenerated)
} // end handler
IL_0CA3: Label98
IL_0CA3: Label102
IL_0CA3: Label109
IL_0CA3: Label114
IL_0CA3: Label118
IL_0CA3: Label120
IL_0CA3: Label122
IL_0CA3: Label127
IL_0CA3: Label131
IL_0CA3: Label139
IL_0CA3: Label144
IL_0CA3: ldloc.s 12 (Verse.Pawn)
IL_0CA5: // end original
IL_0CA5: stloc 17 (Verse.Pawn)
IL_0CA9: ldloc 17 (Verse.Pawn)
IL_0CAD: ldarg 0
IL_0CB1: ldobj Verse.PawnGenerationRequest
IL_0CB6: call static System.Void
VFEAncients.HarmonyPatches.PowerPatches::AddPowers(Verse.Pawn __result,
Verse.PawnGenerationRequest request)
IL_0CBB: ldloc 17 (Verse.Pawn)
IL_0CBF: ret
DONE

### Patch: System.Void RimWorld.Pawn_GeneTracker::Notify_GenesChanged(Verse.GeneDef


addedOrRemovedGene)
### Replacement: static System.Void
RimWorld.Pawn_GeneTracker::RimWorld.Pawn_GeneTracker.Notify_GenesChanged_Patch1(Rim
World.Pawn_GeneTracker this, Verse.GeneDef addedOrRemovedGene)
IL_0000: Local var 0: RimWorld.Pawn_GeneTracker/<>c__DisplayClass82_0
IL_0000: Local var 1: System.Boolean
IL_0000: Local var 2: Verse.Gene
IL_0000: Local var 3: Verse.Gene
IL_0000: Local var 4: UnityEngine.Color
IL_0000: Local var 5: Verse.Gene
IL_0000: Local var 6: Verse.Gene
IL_0000: Local var 7: UnityEngine.Color
IL_0000: Local var 8: Verse.Gene
IL_0000: Local var 9: Verse.Gene
IL_0000: Local var 10: System.Nullable`1<RimWorld.TattooType>
IL_0000: Local var 11: Verse.Gene
IL_0000: Local var 12: Verse.Gene
IL_0000: // start original
IL_0000: newobj System.Void RimWorld.<>c__DisplayClass82_0::.ctor()
IL_0005: stloc.0
IL_0006: ldloc.0
IL_0007: ldarg.0
IL_0008: stfld RimWorld.Pawn_GeneTracker
RimWorld.<>c__DisplayClass82_0::<>4__this
IL_000D: ldloc.0
IL_000E: ldarg.1
IL_000F: stfld Verse.GeneDef
RimWorld.<>c__DisplayClass82_0::addedOrRemovedGene
IL_0014: ldc.i4.0
IL_0015: stloc.1
IL_0016: ldarg.0
IL_0017: ldnull
IL_0018: stfld System.Collections.Generic.List`1<Verse.Gene>
RimWorld.Pawn_GeneTracker::cachedGenes
IL_001D: ldloc.0
IL_001E: ldarg.0
IL_001F: call System.Collections.Generic.List`1<Verse.Gene>
RimWorld.Pawn_GeneTracker::get_GenesListForReading()
IL_0024: stfld System.Collections.Generic.List`1<Verse.Gene>
RimWorld.<>c__DisplayClass82_0::genes
IL_0029: call static System.Boolean Verse.ModLister::get_BiotechInstalled()
IL_002E: brfalse => Label0
IL_0033: ldloc.0
IL_0034: ldfld Verse.GeneDef
RimWorld.<>c__DisplayClass82_0::addedOrRemovedGene
IL_0039: ldfld Verse.GeneGraphicData Verse.GeneDef::graphicData
IL_003E: brfalse => Label1
IL_0043: ldloc.0
IL_0044: ldfld Verse.GeneDef
RimWorld.<>c__DisplayClass82_0::addedOrRemovedGene
IL_0049: ldfld Verse.GeneGraphicData Verse.GeneDef::graphicData
IL_004E: ldfld System.Boolean Verse.GeneGraphicData::skinIsHairColor
IL_0053: brfalse => Label2
IL_0058: ldloc.0
IL_0059: ldsfld System.Predicate`1<Verse.Gene> RimWorld.<>c::<>9__82_2
IL_005E: dup
IL_005F: brtrue => Label3
IL_0064: pop
IL_0065: ldsfld RimWorld.<>c RimWorld.<>c::<>9
IL_006A: ldftn System.Boolean
RimWorld.<>c::<Notify_GenesChanged>b__82_2(Verse.Gene x)
IL_0070: newobj System.Void System.Predicate`1<Verse.Gene>::.ctor(System.Object
object, System.IntPtr method)
IL_0075: dup
IL_0076: stsfld System.Predicate`1<Verse.Gene> RimWorld.<>c::<>9__82_2
IL_007B: Label3
IL_007B: ldloca.s 2 (Verse.Gene)
IL_007D: callvirt System.Boolean
RimWorld.<>c__DisplayClass82_0::<Notify_GenesChanged>g__SelectGene|
0(System.Predicate`1<Verse.Gene> validator, Verse.Gene& chosen)
IL_0082: brfalse => Label4
IL_0087: ldarg.0
IL_0088: ldfld Verse.Pawn RimWorld.Pawn_GeneTracker::pawn
IL_008D: ldfld RimWorld.Pawn_StoryTracker Verse.Pawn::story
IL_0092: ldarg.0
IL_0093: ldfld Verse.Pawn RimWorld.Pawn_GeneTracker::pawn
IL_0098: ldfld RimWorld.Pawn_StoryTracker Verse.Pawn::story
IL_009D: callvirt UnityEngine.Color RimWorld.Pawn_StoryTracker::get_HairColor()
IL_00A2: newobj System.Void
System.Nullable`1<UnityEngine.Color>::.ctor(UnityEngine.Color value)
IL_00A7: stfld System.Nullable`1<UnityEngine.Color>
RimWorld.Pawn_StoryTracker::skinColorOverride
IL_00AC: ldarg.0
IL_00AD: ldloc.2
IL_00AE: call System.Void
RimWorld.Pawn_GeneTracker::OverrideAllConflicting(Verse.Gene gene)
IL_00B3: br => Label5
IL_00B8: Label4
IL_00B8: ldarg.0
IL_00B9: ldfld Verse.Pawn RimWorld.Pawn_GeneTracker::pawn
IL_00BE: ldfld RimWorld.Pawn_StoryTracker Verse.Pawn::story
IL_00C3: ldflda System.Nullable`1<UnityEngine.Color>
RimWorld.Pawn_StoryTracker::skinColorOverride
IL_00C8: initobj System.Nullable`1[UnityEngine.Color]
IL_00CE: Label5
IL_00CE: ldarg.0
IL_00CF: call System.Void
RimWorld.Pawn_GeneTracker::EnsureCorrectSkinColorOverride()
IL_00D4: ldc.i4.1
IL_00D5: stloc.1
IL_00D6: Label0
IL_00D6: Label1
IL_00D6: Label2
IL_00D6: ldloc.0
IL_00D7: ldfld Verse.GeneDef
RimWorld.<>c__DisplayClass82_0::addedOrRemovedGene
IL_00DC: ldflda System.Nullable`1<UnityEngine.Color>
Verse.GeneDef::hairColorOverride
IL_00E1: call System.Boolean
System.Nullable`1<UnityEngine.Color>::get_HasValue()
IL_00E6: brfalse => Label6
IL_00EB: ldloc.0
IL_00EC: ldsfld System.Predicate`1<Verse.Gene> RimWorld.<>c::<>9__82_3
IL_00F1: dup
IL_00F2: brtrue => Label7
IL_00F7: pop
IL_00F8: ldsfld RimWorld.<>c RimWorld.<>c::<>9
IL_00FD: ldftn System.Boolean
RimWorld.<>c::<Notify_GenesChanged>b__82_3(Verse.Gene g)
IL_0103: newobj System.Void System.Predicate`1<Verse.Gene>::.ctor(System.Object
object, System.IntPtr method)
IL_0108: dup
IL_0109: stsfld System.Predicate`1<Verse.Gene> RimWorld.<>c::<>9__82_3
IL_010E: Label7
IL_010E: ldloca.s 3 (Verse.Gene)
IL_0110: callvirt System.Boolean
RimWorld.<>c__DisplayClass82_0::<Notify_GenesChanged>g__SelectGene|
0(System.Predicate`1<Verse.Gene> validator, Verse.Gene& chosen)
IL_0115: brfalse => Label8
IL_011A: ldloc.3
IL_011B: ldfld Verse.GeneDef Verse.Gene::def
IL_0120: ldflda System.Nullable`1<UnityEngine.Color>
Verse.GeneDef::hairColorOverride
IL_0125: call UnityEngine.Color
System.Nullable`1<UnityEngine.Color>::get_Value()
IL_012A: stloc.s 4 (UnityEngine.Color)
IL_012C: ldloc.3
IL_012D: ldfld Verse.GeneDef Verse.Gene::def
IL_0132: ldfld System.Single Verse.GeneDef::randomBrightnessFactor
IL_0137: ldc.r4 0
IL_013C: beq => Label9
IL_0141: ldloc.s 4 (UnityEngine.Color)
IL_0143: ldc.r4 1
IL_0148: ldloc.3
IL_0149: ldfld Verse.GeneDef Verse.Gene::def
IL_014E: ldfld System.Single Verse.GeneDef::randomBrightnessFactor
IL_0153: neg
IL_0154: ldloc.3
IL_0155: ldfld Verse.GeneDef Verse.Gene::def
IL_015A: ldfld System.Single Verse.GeneDef::randomBrightnessFactor
IL_015F: call static System.Single Verse.Rand::Range(System.Single min,
System.Single max)
IL_0164: add
IL_0165: call static UnityEngine.Color
UnityEngine.Color::op_Multiply(UnityEngine.Color a, System.Single b)
IL_016A: stloc.s 4 (UnityEngine.Color)
IL_016C: Label9
IL_016C: ldarg.0
IL_016D: ldfld Verse.Pawn RimWorld.Pawn_GeneTracker::pawn
IL_0172: ldfld RimWorld.Pawn_StoryTracker Verse.Pawn::story
IL_0177: ldloc.s 4 (UnityEngine.Color)
IL_0179: ldsfld Verse.FloatRange RimWorld.GeneTuning::HairColorValueRange
IL_017E: call static UnityEngine.Color
Verse.GenColor::ClampToValueRange(UnityEngine.Color color, Verse.FloatRange range)
IL_0183: callvirt System.Void
RimWorld.Pawn_StoryTracker::set_HairColor(UnityEngine.Color value)
IL_0188: ldarg.0
IL_0189: ldloc.3
IL_018A: call System.Void
RimWorld.Pawn_GeneTracker::OverrideAllConflicting(Verse.Gene gene)
IL_018F: ldarg.0
IL_0190: call System.Void
RimWorld.Pawn_GeneTracker::EnsureCorrectSkinColorOverride()
IL_0195: ldc.i4.1
IL_0196: stloc.1
IL_0197: Label6
IL_0197: Label8
IL_0197: ldloc.0
IL_0198: ldfld Verse.GeneDef
RimWorld.<>c__DisplayClass82_0::addedOrRemovedGene
IL_019D: ldflda System.Nullable`1<UnityEngine.Color>
Verse.GeneDef::skinColorBase
IL_01A2: call System.Boolean
System.Nullable`1<UnityEngine.Color>::get_HasValue()
IL_01A7: brfalse => Label10
IL_01AC: ldloc.0
IL_01AD: ldsfld System.Predicate`1<Verse.Gene> RimWorld.<>c::<>9__82_4
IL_01B2: dup
IL_01B3: brtrue => Label11
IL_01B8: pop
IL_01B9: ldsfld RimWorld.<>c RimWorld.<>c::<>9
IL_01BE: ldftn System.Boolean
RimWorld.<>c::<Notify_GenesChanged>b__82_4(Verse.Gene g)
IL_01C4: newobj System.Void System.Predicate`1<Verse.Gene>::.ctor(System.Object
object, System.IntPtr method)
IL_01C9: dup
IL_01CA: stsfld System.Predicate`1<Verse.Gene> RimWorld.<>c::<>9__82_4
IL_01CF: Label11
IL_01CF: ldloca.s 5 (Verse.Gene)
IL_01D1: callvirt System.Boolean
RimWorld.<>c__DisplayClass82_0::<Notify_GenesChanged>g__SelectGene|
0(System.Predicate`1<Verse.Gene> validator, Verse.Gene& chosen)
IL_01D6: brfalse => Label12
IL_01DB: ldarg.0
IL_01DC: ldloc.s 5 (Verse.Gene)
IL_01DE: call System.Void
RimWorld.Pawn_GeneTracker::OverrideAllConflicting(Verse.Gene gene)
IL_01E3: ldarg.0
IL_01E4: ldfld Verse.Pawn RimWorld.Pawn_GeneTracker::pawn
IL_01E9: ldfld RimWorld.Pawn_StoryTracker Verse.Pawn::story
IL_01EE: ldloc.s 5 (Verse.Gene)
IL_01F0: ldfld Verse.GeneDef Verse.Gene::def
IL_01F5: ldflda System.Nullable`1<UnityEngine.Color>
Verse.GeneDef::skinColorBase
IL_01FA: call UnityEngine.Color
System.Nullable`1<UnityEngine.Color>::get_Value()
IL_01FF: callvirt System.Void
RimWorld.Pawn_StoryTracker::set_SkinColorBase(UnityEngine.Color value)
IL_0204: ldc.i4.1
IL_0205: stloc.1
IL_0206: Label10
IL_0206: Label12
IL_0206: call static System.Boolean Verse.ModLister::get_BiotechInstalled()
IL_020B: brfalse => Label13
IL_0210: ldloc.0
IL_0211: ldfld Verse.GeneDef
RimWorld.<>c__DisplayClass82_0::addedOrRemovedGene
IL_0216: ldflda System.Nullable`1<UnityEngine.Color>
Verse.GeneDef::skinColorOverride
IL_021B: call System.Boolean
System.Nullable`1<UnityEngine.Color>::get_HasValue()
IL_0220: brfalse => Label14
IL_0225: ldloc.0
IL_0226: ldsfld System.Predicate`1<Verse.Gene> RimWorld.<>c::<>9__82_5
IL_022B: dup
IL_022C: brtrue => Label15
IL_0231: pop
IL_0232: ldsfld RimWorld.<>c RimWorld.<>c::<>9
IL_0237: ldftn System.Boolean
RimWorld.<>c::<Notify_GenesChanged>b__82_5(Verse.Gene g)
IL_023D: newobj System.Void System.Predicate`1<Verse.Gene>::.ctor(System.Object
object, System.IntPtr method)
IL_0242: dup
IL_0243: stsfld System.Predicate`1<Verse.Gene> RimWorld.<>c::<>9__82_5
IL_0248: Label15
IL_0248: ldloca.s 6 (Verse.Gene)
IL_024A: callvirt System.Boolean
RimWorld.<>c__DisplayClass82_0::<Notify_GenesChanged>g__SelectGene|
0(System.Predicate`1<Verse.Gene> validator, Verse.Gene& chosen)
IL_024F: brfalse => Label16
IL_0254: ldloc.s 6 (Verse.Gene)
IL_0256: ldfld Verse.GeneDef Verse.Gene::def
IL_025B: ldflda System.Nullable`1<UnityEngine.Color>
Verse.GeneDef::skinColorOverride
IL_0260: call UnityEngine.Color
System.Nullable`1<UnityEngine.Color>::get_Value()
IL_0265: stloc.s 7 (UnityEngine.Color)
IL_0267: ldloc.s 6 (Verse.Gene)
IL_0269: ldfld Verse.GeneDef Verse.Gene::def
IL_026E: ldfld System.Single Verse.GeneDef::randomBrightnessFactor
IL_0273: ldc.r4 0
IL_0278: beq => Label17
IL_027D: ldloc.s 7 (UnityEngine.Color)
IL_027F: ldc.r4 1
IL_0284: ldloc.s 6 (Verse.Gene)
IL_0286: ldfld Verse.GeneDef Verse.Gene::def
IL_028B: ldfld System.Single Verse.GeneDef::randomBrightnessFactor
IL_0290: neg
IL_0291: ldloc.s 6 (Verse.Gene)
IL_0293: ldfld Verse.GeneDef Verse.Gene::def
IL_0298: ldfld System.Single Verse.GeneDef::randomBrightnessFactor
IL_029D: call static System.Single Verse.Rand::Range(System.Single min,
System.Single max)
IL_02A2: add
IL_02A3: call static UnityEngine.Color
UnityEngine.Color::op_Multiply(UnityEngine.Color a, System.Single b)
IL_02A8: stloc.s 7 (UnityEngine.Color)
IL_02AA: Label17
IL_02AA: ldarg.0
IL_02AB: ldfld Verse.Pawn RimWorld.Pawn_GeneTracker::pawn
IL_02B0: ldfld RimWorld.Pawn_StoryTracker Verse.Pawn::story
IL_02B5: ldloc.s 7 (UnityEngine.Color)
IL_02B7: ldsfld Verse.FloatRange RimWorld.GeneTuning::SkinColorValueRange
IL_02BC: call static UnityEngine.Color
Verse.GenColor::ClampToValueRange(UnityEngine.Color color, Verse.FloatRange range)
IL_02C1: newobj System.Void
System.Nullable`1<UnityEngine.Color>::.ctor(UnityEngine.Color value)
IL_02C6: stfld System.Nullable`1<UnityEngine.Color>
RimWorld.Pawn_StoryTracker::skinColorOverride
IL_02CB: ldarg.0
IL_02CC: ldloc.s 6 (Verse.Gene)
IL_02CE: call System.Void
RimWorld.Pawn_GeneTracker::OverrideAllConflicting(Verse.Gene gene)
IL_02D3: br => Label18
IL_02D8: Label16
IL_02D8: ldarg.0
IL_02D9: ldfld Verse.Pawn RimWorld.Pawn_GeneTracker::pawn
IL_02DE: ldfld RimWorld.Pawn_StoryTracker Verse.Pawn::story
IL_02E3: ldflda System.Nullable`1<UnityEngine.Color>
RimWorld.Pawn_StoryTracker::skinColorOverride
IL_02E8: initobj System.Nullable`1[UnityEngine.Color]
IL_02EE: Label18
IL_02EE: ldarg.0
IL_02EF: call System.Void
RimWorld.Pawn_GeneTracker::EnsureCorrectSkinColorOverride()
IL_02F4: ldc.i4.1
IL_02F5: stloc.1
IL_02F6: Label14
IL_02F6: ldloc.0
IL_02F7: ldfld Verse.GeneDef
RimWorld.<>c__DisplayClass82_0::addedOrRemovedGene
IL_02FC: ldflda System.Nullable`1<Verse.GeneticBodyType>
Verse.GeneDef::bodyType
IL_0301: call System.Boolean
System.Nullable`1<Verse.GeneticBodyType>::get_HasValue()
IL_0306: brfalse => Label19
IL_030B: ldarg.0
IL_030C: ldfld Verse.Pawn RimWorld.Pawn_GeneTracker::pawn
IL_0311: callvirt Verse.DevelopmentalStage Verse.Pawn::get_DevelopmentalStage()
IL_0316: call static System.Boolean
Verse.DevelopmentalStageExtensions::Juvenile(Verse.DevelopmentalStage
developmentalStage)
IL_031B: brtrue => Label20
IL_0320: ldloc.0
IL_0321: ldsfld System.Predicate`1<Verse.Gene> RimWorld.<>c::<>9__82_6
IL_0326: dup
IL_0327: brtrue => Label21
IL_032C: pop
IL_032D: ldsfld RimWorld.<>c RimWorld.<>c::<>9
IL_0332: ldftn System.Boolean
RimWorld.<>c::<Notify_GenesChanged>b__82_6(Verse.Gene g)
IL_0338: newobj System.Void System.Predicate`1<Verse.Gene>::.ctor(System.Object
object, System.IntPtr method)
IL_033D: dup
IL_033E: stsfld System.Predicate`1<Verse.Gene> RimWorld.<>c::<>9__82_6
IL_0343: Label21
IL_0343: ldloca.s 8 (Verse.Gene)
IL_0345: callvirt System.Boolean
RimWorld.<>c__DisplayClass82_0::<Notify_GenesChanged>g__SelectGene|
0(System.Predicate`1<Verse.Gene> validator, Verse.Gene& chosen)
IL_034A: brfalse => Label22
IL_034F: ldarg.0
IL_0350: ldloc.s 8 (Verse.Gene)
IL_0352: call System.Void
RimWorld.Pawn_GeneTracker::OverrideAllConflicting(Verse.Gene gene)
IL_0357: ldarg.0
IL_0358: ldfld Verse.Pawn RimWorld.Pawn_GeneTracker::pawn
IL_035D: ldfld RimWorld.Pawn_StoryTracker Verse.Pawn::story
IL_0362: ldloc.s 8 (Verse.Gene)
IL_0364: ldfld Verse.GeneDef Verse.Gene::def
IL_0369: ldflda System.Nullable`1<Verse.GeneticBodyType>
Verse.GeneDef::bodyType
IL_036E: call Verse.GeneticBodyType
System.Nullable`1<Verse.GeneticBodyType>::get_Value()
IL_0373: ldarg.0
IL_0374: ldfld Verse.Pawn RimWorld.Pawn_GeneTracker::pawn
IL_0379: call static RimWorld.BodyTypeDef
RimWorld.GeneUtility::ToBodyType(Verse.GeneticBodyType bodyType, Verse.Pawn pawn)
IL_037E: stfld RimWorld.BodyTypeDef RimWorld.Pawn_StoryTracker::bodyType
IL_0383: br => Label23
IL_0388: Label22
IL_0388: ldarg.0
IL_0389: ldfld Verse.Pawn RimWorld.Pawn_GeneTracker::pawn
IL_038E: ldfld RimWorld.Pawn_StoryTracker Verse.Pawn::story
IL_0393: ldarg.0
IL_0394: ldfld Verse.Pawn RimWorld.Pawn_GeneTracker::pawn
IL_0399: call static RimWorld.BodyTypeDef
Verse.PawnGenerator::GetBodyTypeFor(Verse.Pawn pawn)
IL_039E: stfld RimWorld.BodyTypeDef RimWorld.Pawn_StoryTracker::bodyType
IL_03A3: Label23
IL_03A3: ldc.i4.1
IL_03A4: stloc.1
IL_03A5: Label19
IL_03A5: Label20
IL_03A5: ldloc.0
IL_03A6: ldfld Verse.GeneDef
RimWorld.<>c__DisplayClass82_0::addedOrRemovedGene
IL_03AB: ldfld System.Collections.Generic.List`1<Verse.HeadTypeDef>
Verse.GeneDef::forcedHeadTypes
IL_03B0: call static System.Boolean
Verse.GenList::NullOrEmpty(System.Collections.Generic.IList`1<Verse.HeadTypeDef>
list)
IL_03B5: brtrue => Label24
IL_03BA: ldloc.0
IL_03BB: ldsfld System.Predicate`1<Verse.Gene> RimWorld.<>c::<>9__82_7
IL_03C0: dup
IL_03C1: brtrue => Label25
IL_03C6: pop
IL_03C7: ldsfld RimWorld.<>c RimWorld.<>c::<>9
IL_03CC: ldftn System.Boolean
RimWorld.<>c::<Notify_GenesChanged>b__82_7(Verse.Gene g)
IL_03D2: newobj System.Void System.Predicate`1<Verse.Gene>::.ctor(System.Object
object, System.IntPtr method)
IL_03D7: dup
IL_03D8: stsfld System.Predicate`1<Verse.Gene> RimWorld.<>c::<>9__82_7
IL_03DD: Label25
IL_03DD: ldloca.s 9 (Verse.Gene)
IL_03DF: callvirt System.Boolean
RimWorld.<>c__DisplayClass82_0::<Notify_GenesChanged>g__SelectGene|
0(System.Predicate`1<Verse.Gene> validator, Verse.Gene& chosen)
IL_03E4: brfalse => Label26
IL_03E9: ldarg.0
IL_03EA: ldloc.s 9 (Verse.Gene)
IL_03EC: call System.Void
RimWorld.Pawn_GeneTracker::OverrideAllConflicting(Verse.Gene gene)
IL_03F1: ldarg.0
IL_03F2: ldfld Verse.Pawn RimWorld.Pawn_GeneTracker::pawn
IL_03F7: ldfld RimWorld.Pawn_StoryTracker Verse.Pawn::story
IL_03FC: ldloc.s 9 (Verse.Gene)
IL_03FE: ldfld Verse.GeneDef Verse.Gene::def
IL_0403: ldfld System.Collections.Generic.List`1<Verse.HeadTypeDef>
Verse.GeneDef::forcedHeadTypes
IL_0408: callvirt System.Boolean
RimWorld.Pawn_StoryTracker::TryGetRandomHeadFromSet(System.Collections.Generic.IEnu
merable`1<Verse.HeadTypeDef> options)
IL_040D: pop
IL_040E: br => Label27
IL_0413: Label26
IL_0413: ldarg.0
IL_0414: ldfld Verse.Pawn RimWorld.Pawn_GeneTracker::pawn
IL_0419: ldfld RimWorld.Pawn_StoryTracker Verse.Pawn::story
IL_041E: call static
System.Collections.Generic.IEnumerable`1<Verse.HeadTypeDef>
Verse.DefDatabase`1<Verse.HeadTypeDef>::get_AllDefs()
IL_0423: ldarg.0
IL_0424: ldfld Verse.Pawn RimWorld.Pawn_GeneTracker::pawn
IL_0429: call static
System.Collections.Generic.IEnumerable`1<Verse.HeadTypeDef>
AlienRace.HarmonyPatches::HeadTypeFilter(System.Collections.Generic.IEnumerable`1<V
erse.HeadTypeDef> headTypes, Verse.Pawn pawn)
IL_042E: ldsfld System.Func`2<Verse.HeadTypeDef, System.Boolean>
RimWorld.<>c::<>9__82_8
IL_0433: dup
IL_0434: brtrue => Label28
IL_0439: pop
IL_043A: ldsfld RimWorld.<>c RimWorld.<>c::<>9
IL_043F: ldftn System.Boolean
RimWorld.<>c::<Notify_GenesChanged>b__82_8(Verse.HeadTypeDef x)
IL_0445: newobj System.Void System.Func`2<Verse.HeadTypeDef,
System.Boolean>::.ctor(System.Object object, System.IntPtr method)
IL_044A: dup
IL_044B: stsfld System.Func`2<Verse.HeadTypeDef, System.Boolean>
RimWorld.<>c::<>9__82_8
IL_0450: Label28
IL_0450: call static
System.Collections.Generic.IEnumerable`1<Verse.HeadTypeDef>
System.Linq.Enumerable::Where(System.Collections.Generic.IEnumerable`1<Verse.HeadTy
peDef> source, System.Func`2<Verse.HeadTypeDef, System.Boolean> predicate)
IL_0455: callvirt System.Boolean
RimWorld.Pawn_StoryTracker::TryGetRandomHeadFromSet(System.Collections.Generic.IEnu
merable`1<Verse.HeadTypeDef> options)
IL_045A: pop
IL_045B: Label27
IL_045B: ldc.i4.1
IL_045C: stloc.1
IL_045D: Label24
IL_045D: ldloc.0
IL_045E: ldfld Verse.GeneDef
RimWorld.<>c__DisplayClass82_0::addedOrRemovedGene
IL_0463: ldfld RimWorld.HairDef Verse.GeneDef::forcedHair
IL_0468: brtrue => Label29
IL_046D: ldloc.0
IL_046E: ldfld Verse.GeneDef
RimWorld.<>c__DisplayClass82_0::addedOrRemovedGene
IL_0473: ldfld Verse.TagFilter Verse.GeneDef::hairTagFilter
IL_0478: brfalse => Label30
IL_047D: Label29
IL_047D: ldarg.0
IL_047E: ldfld Verse.Pawn RimWorld.Pawn_GeneTracker::pawn
IL_0483: ldarg.0
IL_0484: ldfld Verse.Pawn RimWorld.Pawn_GeneTracker::pawn
IL_0489: ldfld RimWorld.Pawn_StoryTracker Verse.Pawn::story
IL_048E: ldfld RimWorld.HairDef RimWorld.Pawn_StoryTracker::hairDef
IL_0493: ldloca.s 10 (System.Nullable`1[RimWorld.TattooType])
IL_0495: initobj System.Nullable`1[RimWorld.TattooType]
IL_049B: ldloc.s 10 (System.Nullable`1[RimWorld.TattooType])
IL_049D: call static System.Boolean
RimWorld.PawnStyleItemChooser::WantsToUseStyle(Verse.Pawn pawn,
RimWorld.StyleItemDef styleItemDef, System.Nullable`1<RimWorld.TattooType>
tattooType)
IL_04A2: brtrue => Label31
IL_04A7: ldarg.0
IL_04A8: ldfld Verse.Pawn RimWorld.Pawn_GeneTracker::pawn
IL_04AD: ldfld RimWorld.Pawn_StoryTracker Verse.Pawn::story
IL_04B2: ldarg.0
IL_04B3: ldfld Verse.Pawn RimWorld.Pawn_GeneTracker::pawn
IL_04B8: call static RimWorld.HairDef
RimWorld.PawnStyleItemChooser::RandomHairFor(Verse.Pawn pawn)
IL_04BD: stfld RimWorld.HairDef RimWorld.Pawn_StoryTracker::hairDef
IL_04C2: ldc.i4.1
IL_04C3: stloc.1
IL_04C4: Label30
IL_04C4: Label31
IL_04C4: ldloc.0
IL_04C5: ldfld Verse.GeneDef
RimWorld.<>c__DisplayClass82_0::addedOrRemovedGene
IL_04CA: ldfld Verse.TagFilter Verse.GeneDef::beardTagFilter
IL_04CF: brfalse => Label32
IL_04D4: ldarg.0
IL_04D5: ldfld Verse.Pawn RimWorld.Pawn_GeneTracker::pawn
IL_04DA: ldfld RimWorld.Pawn_StyleTracker Verse.Pawn::style
IL_04DF: brfalse => Label33
IL_04E4: ldarg.0
IL_04E5: ldfld Verse.Pawn RimWorld.Pawn_GeneTracker::pawn
IL_04EA: ldarg.0
IL_04EB: ldfld Verse.Pawn RimWorld.Pawn_GeneTracker::pawn
IL_04F0: ldfld RimWorld.Pawn_StyleTracker Verse.Pawn::style
IL_04F5: ldfld RimWorld.BeardDef RimWorld.Pawn_StyleTracker::beardDef
IL_04FA: ldloca.s 10 (System.Nullable`1[RimWorld.TattooType])
IL_04FC: initobj System.Nullable`1[RimWorld.TattooType]
IL_0502: ldloc.s 10 (System.Nullable`1[RimWorld.TattooType])
IL_0504: call static System.Boolean
RimWorld.PawnStyleItemChooser::WantsToUseStyle(Verse.Pawn pawn,
RimWorld.StyleItemDef styleItemDef, System.Nullable`1<RimWorld.TattooType>
tattooType)
IL_0509: brtrue => Label34
IL_050E: ldarg.0
IL_050F: ldfld Verse.Pawn RimWorld.Pawn_GeneTracker::pawn
IL_0514: ldfld RimWorld.Pawn_StyleTracker Verse.Pawn::style
IL_0519: ldarg.0
IL_051A: ldfld Verse.Pawn RimWorld.Pawn_GeneTracker::pawn
IL_051F: call static RimWorld.BeardDef
RimWorld.PawnStyleItemChooser::RandomBeardFor(Verse.Pawn pawn)
IL_0524: stfld RimWorld.BeardDef RimWorld.Pawn_StyleTracker::beardDef
IL_0529: ldc.i4.1
IL_052A: stloc.1
IL_052B: Label32
IL_052B: Label33
IL_052B: Label34
IL_052B: ldloc.0
IL_052C: ldfld Verse.GeneDef
RimWorld.<>c__DisplayClass82_0::addedOrRemovedGene
IL_0531: ldfld Verse.GeneGraphicData Verse.GeneDef::graphicData
IL_0536: dup
IL_0537: brtrue => Label35
IL_053C: pop
IL_053D: ldnull
IL_053E: br => Label36
IL_0543: Label35
IL_0543: ldfld RimWorld.FurDef Verse.GeneGraphicData::fur
IL_0548: Label36
IL_0548: brfalse => Label37
IL_054D: ldloc.0
IL_054E: ldsfld System.Predicate`1<Verse.Gene> RimWorld.<>c::<>9__82_9
IL_0553: dup
IL_0554: brtrue => Label38
IL_0559: pop
IL_055A: ldsfld RimWorld.<>c RimWorld.<>c::<>9
IL_055F: ldftn System.Boolean
RimWorld.<>c::<Notify_GenesChanged>b__82_9(Verse.Gene g)
IL_0565: newobj System.Void System.Predicate`1<Verse.Gene>::.ctor(System.Object
object, System.IntPtr method)
IL_056A: dup
IL_056B: stsfld System.Predicate`1<Verse.Gene> RimWorld.<>c::<>9__82_9
IL_0570: Label38
IL_0570: ldloca.s 11 (Verse.Gene)
IL_0572: callvirt System.Boolean
RimWorld.<>c__DisplayClass82_0::<Notify_GenesChanged>g__SelectGene|
0(System.Predicate`1<Verse.Gene> validator, Verse.Gene& chosen)
IL_0577: brfalse => Label39
IL_057C: ldarg.0
IL_057D: ldfld Verse.Pawn RimWorld.Pawn_GeneTracker::pawn
IL_0582: ldfld RimWorld.Pawn_StoryTracker Verse.Pawn::story
IL_0587: ldloc.s 11 (Verse.Gene)
IL_0589: ldfld Verse.GeneDef Verse.Gene::def
IL_058E: ldfld Verse.GeneGraphicData Verse.GeneDef::graphicData
IL_0593: ldfld RimWorld.FurDef Verse.GeneGraphicData::fur
IL_0598: stfld RimWorld.FurDef RimWorld.Pawn_StoryTracker::furDef
IL_059D: ldarg.0
IL_059E: ldloc.s 11 (Verse.Gene)
IL_05A0: call System.Void
RimWorld.Pawn_GeneTracker::OverrideAllConflicting(Verse.Gene gene)
IL_05A5: br => Label40
IL_05AA: Label39
IL_05AA: ldarg.0
IL_05AB: ldfld Verse.Pawn RimWorld.Pawn_GeneTracker::pawn
IL_05B0: ldfld RimWorld.Pawn_StoryTracker Verse.Pawn::story
IL_05B5: ldnull
IL_05B6: stfld RimWorld.FurDef RimWorld.Pawn_StoryTracker::furDef
IL_05BB: Label40
IL_05BB: ldc.i4.1
IL_05BC: stloc.1
IL_05BD: Label37
IL_05BD: ldloc.0
IL_05BE: ldfld Verse.GeneDef
RimWorld.<>c__DisplayClass82_0::addedOrRemovedGene
IL_05C3: callvirt System.Boolean Verse.GeneDef::get_RandomChosen()
IL_05C8: brfalse => Label41
IL_05CD: ldloc.0
IL_05CE: ldloc.0
IL_05CF: ldftn System.Boolean
RimWorld.<>c__DisplayClass82_0::<Notify_GenesChanged>b__10(Verse.Gene g)
IL_05D5: newobj System.Void System.Predicate`1<Verse.Gene>::.ctor(System.Object
object, System.IntPtr method)
IL_05DA: ldloca.s 12 (Verse.Gene)
IL_05DC: callvirt System.Boolean
RimWorld.<>c__DisplayClass82_0::<Notify_GenesChanged>g__SelectGene|
0(System.Predicate`1<Verse.Gene> validator, Verse.Gene& chosen)
IL_05E1: brfalse => Label42
IL_05E6: ldarg.0
IL_05E7: ldloc.s 12 (Verse.Gene)
IL_05E9: call System.Void
RimWorld.Pawn_GeneTracker::OverrideAllConflicting(Verse.Gene gene)
IL_05EE: ldc.i4.1
IL_05EF: stloc.1
IL_05F0: Label41
IL_05F0: Label42
IL_05F0: ldloc.0
IL_05F1: ldfld Verse.GeneDef
RimWorld.<>c__DisplayClass82_0::addedOrRemovedGene
IL_05F6: ldfld Verse.SoundDef Verse.GeneDef::soundCall
IL_05FB: brfalse => Label43
IL_0600: ldarg.0
IL_0601: ldfld Verse.Pawn RimWorld.Pawn_GeneTracker::pawn
IL_0606: ldc.i4.0
IL_0607: call static System.Void
RimWorld.PawnComponentsUtility::AddAndRemoveDynamicComponents(Verse.Pawn pawn,
System.Boolean actAsIfSpawned)
IL_060C: Label43
IL_060C: ldarg.0
IL_060D: ldfld Verse.Pawn RimWorld.Pawn_GeneTracker::pawn
IL_0612: ldfld RimWorld.Pawn_NeedsTracker Verse.Pawn::needs
IL_0617: dup
IL_0618: brtrue => Label44
IL_061D: pop
IL_061E: br => Label45
IL_0623: Label44
IL_0623: call System.Void
RimWorld.Pawn_NeedsTracker::AddOrRemoveNeedsAsAppropriate()
IL_0628: Label45
IL_0628: ldarg.0
IL_0629: ldfld Verse.Pawn RimWorld.Pawn_GeneTracker::pawn
IL_062E: ldfld Verse.Pawn_HealthTracker Verse.Pawn::health
IL_0633: ldfld Verse.HediffSet Verse.Pawn_HealthTracker::hediffSet
IL_0638: callvirt System.Void Verse.HediffSet::DirtyCache()
IL_063D: ldarg.0
IL_063E: ldfld System.Collections.Generic.Dictionary`2<Verse.DamageDef,
System.Single> RimWorld.Pawn_GeneTracker::cachedDamageFactors
IL_0643: callvirt virtual System.Void
System.Collections.Generic.Dictionary`2<Verse.DamageDef, System.Single>::Clear()
IL_0648: ldarg.0
IL_0649: ldfld System.Collections.Generic.Dictionary`2<RimWorld.ChemicalDef,
System.Single> RimWorld.Pawn_GeneTracker::cachedAddictionChanceFactors
IL_064E: callvirt virtual System.Void
System.Collections.Generic.Dictionary`2<RimWorld.ChemicalDef,
System.Single>::Clear()
IL_0653: ldarg.0
IL_0654: ldflda System.Nullable`1<System.Boolean>
RimWorld.Pawn_GeneTracker::cachedGenesAffectAge
IL_0659: initobj System.Nullable`1[System.Boolean]
IL_065F: ldarg.0
IL_0660: ldflda System.Nullable`1<System.Boolean>
RimWorld.Pawn_GeneTracker::cachedHasCustomXenotype
IL_0665: initobj System.Nullable`1[System.Boolean]
IL_066B: ldarg.0
IL_066C: ldnull
IL_066D: stfld RimWorld.CustomXenotype
RimWorld.Pawn_GeneTracker::cachedCustomXenotype
IL_0672: ldarg.0
IL_0673: ldfld Verse.Pawn RimWorld.Pawn_GeneTracker::pawn
IL_0678: ldfld RimWorld.Pawn_SkillTracker Verse.Pawn::skills
IL_067D: dup
IL_067E: brtrue => Label46
IL_0683: pop
IL_0684: br => Label47
IL_0689: Label46
IL_0689: call System.Void RimWorld.Pawn_SkillTracker::Notify_GenesChanged()
IL_068E: Label47
IL_068E: ldarg.0
IL_068F: ldfld Verse.Pawn RimWorld.Pawn_GeneTracker::pawn
IL_0694: callvirt System.Void Verse.Pawn::Notify_DisabledWorkTypesChanged()
IL_0699: Label13
IL_0699: ldloc.1
IL_069A: brfalse => Label48
IL_069F: ldarg.0
IL_06A0: ldfld Verse.Pawn RimWorld.Pawn_GeneTracker::pawn
IL_06A5: callvirt Verse.Pawn_DrawTracker Verse.Pawn::get_Drawer()
IL_06AA: ldfld Verse.PawnRenderer Verse.Pawn_DrawTracker::renderer
IL_06AF: ldfld Verse.PawnGraphicSet Verse.PawnRenderer::graphics
IL_06B4: callvirt System.Void Verse.PawnGraphicSet::SetAllGraphicsDirty()
IL_06B9: // end original
IL_06B9: Label48
IL_06B9: ldarg 1
IL_06BD: ldarg.0
IL_06BE: call static System.Void
BetterPrerequisites.Pawn_GeneTracker_OverrideAllConflicting::Postfix(Verse.GeneDef
addedOrRemovedGene, RimWorld.Pawn_GeneTracker __instance)
IL_06C3: ret
DONE

### Patch: static System.Boolean


RimWorld.GrowthUtility::IsGrowthBirthday(System.Int32 age)
### Replacement: static System.Boolean
RimWorld.GrowthUtility::RimWorld.GrowthUtility.IsGrowthBirthday_Patch0(System.Int32
age)
IL_0000: Local var 0: System.Int32
IL_0000: // start original
IL_0000: ldc.i4.0
IL_0001: stloc.0
IL_0002: br => Label0
IL_0007: Label2
IL_0007: ldarg.0
IL_0008: call static System.Int32[]
AlienRace.HarmonyPatches::GrowthMomentHelper()
IL_000D: ldloc.0
IL_000E: ldelem.i4
IL_000F: bne.un => Label1
IL_0014: ldc.i4.1
IL_0015: br => Label3
IL_001A: Label1
IL_001A: ldloc.0
IL_001B: ldc.i4.1
IL_001C: add
IL_001D: stloc.0
IL_001E: Label0
IL_001E: ldloc.0
IL_001F: call static System.Int32[]
AlienRace.HarmonyPatches::GrowthMomentHelper()
IL_0024: ldlen
IL_0025: conv.i4
IL_0026: blt => Label2
IL_002B: ldc.i4.0
IL_002C: // end original
IL_002C: Label3
IL_002C: ret
DONE

### Patch: System.Void Verse.Pawn_AgeTracker::TryChildGrowthMoment(System.Int32


birthdayAge, System.Int32& newPassionOptions, System.Int32& newTraitOptions,
System.Int32& passionGainsCount)
### Replacement: static System.Void
Verse.Pawn_AgeTracker::Verse.Pawn_AgeTracker.TryChildGrowthMoment_Patch1(Verse.Pawn
_AgeTracker this, System.Int32 birthdayAge, System.Int32& newPassionOptions,
System.Int32& newTraitOptions, System.Int32& passionGainsCount)
IL_0000: Local var 0: System.Int32
IL_0000: Local var 1: System.Boolean
IL_0000: ldc.i4 0
IL_0005: stloc 1 (System.Boolean)
IL_0009: ldc.i4.1
IL_000A: stloc 1 (System.Boolean)
IL_000E: ldloc 1 (System.Boolean)
IL_0012: brfalse => Label1
IL_0017: ldarg.0
IL_0018: ldfld Verse.Pawn Verse.Pawn_AgeTracker::pawn
IL_001D: call static System.Void
AlienRace.HarmonyPatches::TryChildGrowthMomentPrefix(Verse.Pawn ___pawn)
IL_0022: Label1
IL_0022: nop
IL_0023: ldloc 1 (System.Boolean)
IL_0027: brfalse => Label0
IL_002C: // start original
IL_002C: ldarg.2
IL_002D: ldc.i4.0
IL_002E: stind.i4
IL_002F: ldarg.3
IL_0030: ldc.i4.0
IL_0031: stind.i4
IL_0032: ldarg.s 4
IL_0034: ldc.i4.0
IL_0035: stind.i4
IL_0036: call static System.Boolean Verse.ModsConfig::get_BiotechActive()
IL_003B: brfalse => Label2
IL_0040: ldarg.1
IL_0041: call static System.Boolean
RimWorld.GrowthUtility::IsGrowthBirthday(System.Int32 age)
IL_0046: brfalse => Label3
IL_004B: ldarg.0
IL_004C: call System.Int32 Verse.Pawn_AgeTracker::get_GrowthTier()
IL_0051: stloc.0
IL_0052: ldarg.2
IL_0053: ldsfld System.Int32[] RimWorld.GrowthUtility::PassionChoicesPerTier
IL_0058: ldloc.0
IL_0059: ldelem.i4
IL_005A: stind.i4
IL_005B: ldarg.3
IL_005C: ldsfld System.Int32[] RimWorld.GrowthUtility::TraitChoicesPerTier
IL_0061: ldloc.0
IL_0062: ldelem.i4
IL_0063: stind.i4
IL_0064: ldarg.s 4
IL_0066: ldarg.0
IL_0067: ldfld Verse.Pawn Verse.Pawn_AgeTracker::pawn
IL_006C: ldfld RimWorld.Pawn_SkillTracker Verse.Pawn::skills
IL_0071: ldfld System.Collections.Generic.List`1<RimWorld.SkillRecord>
RimWorld.Pawn_SkillTracker::skills
IL_0076: ldsfld System.Predicate`1<RimWorld.SkillRecord> Verse.<>c::<>9__117_0
IL_007B: dup
IL_007C: brtrue => Label4
IL_0081: pop
IL_0082: ldsfld Verse.<>c Verse.<>c::<>9
IL_0087: ldftn System.Boolean
Verse.<>c::<TryChildGrowthMoment>b__117_0(RimWorld.SkillRecord s)
IL_008D: newobj System.Void
System.Predicate`1<RimWorld.SkillRecord>::.ctor(System.Object object, System.IntPtr
method)
IL_0092: dup
IL_0093: stsfld System.Predicate`1<RimWorld.SkillRecord> Verse.<>c::<>9__117_0
IL_0098: Label4
IL_0098: call static System.Int32
Verse.GenCollection::Count(System.Collections.Generic.List`1<RimWorld.SkillRecord>
list, System.Predicate`1<RimWorld.SkillRecord> predicate)
IL_009D: ldsfld System.Int32[] RimWorld.GrowthUtility::PassionGainsPerTier
IL_00A2: ldloc.0
IL_00A3: ldelem.i4
IL_00A4: call static System.Int32 UnityEngine.Mathf::Min(System.Int32 a,
System.Int32 b)
IL_00A9: stind.i4
IL_00AA: // end original
IL_00AA: Label2
IL_00AA: Label3
IL_00AA: Label0
IL_00AA: ret
DONE

### Patch: System.String


RimWorld.Gizmo_GrowthTier::GrowthTierTooltip(UnityEngine.Rect rect, System.Int32
tier)
### Replacement: static System.String
RimWorld.Gizmo_GrowthTier::RimWorld.Gizmo_GrowthTier.GrowthTierTooltip_Patch1(RimWo
rld.Gizmo_GrowthTier this, UnityEngine.Rect rect, System.Int32 tier)
IL_0000: Local var 0: Verse.TaggedString
IL_0000: Local var 1: System.Int32
IL_0000: Local var 2: System.Int32
IL_0000: Local var 3: System.Int32
IL_0000: Local var 4: System.String
IL_0000: Local var 5: System.Boolean
IL_0000: ldnull
IL_0001: stloc 4 (System.String)
IL_0005: ldc.i4 0
IL_000A: stloc 5 (System.Boolean)
IL_000E: ldc.i4.1
IL_000F: stloc 5 (System.Boolean)
IL_0013: ldloc 5 (System.Boolean)
IL_0017: brfalse => Label1
IL_001C: ldarg.0
IL_001D: ldfld Verse.Pawn RimWorld.Gizmo_GrowthTier::child
IL_0022: call static System.Void
AlienRace.HarmonyPatches::GrowthTierTooltipPrefix(Verse.Pawn ___child)
IL_0027: Label1
IL_0027: nop
IL_0028: ldloc 5 (System.Boolean)
IL_002C: brfalse => Label0
IL_0031: // start original
IL_0031: ldc.i4.5
IL_0032: newarr System.Object
IL_0037: dup
IL_0038: ldc.i4.0
IL_0039: ldstr "StatsReport_GrowthTier"
IL_003E: call static Verse.TaggedString
Verse.Translator::Translate(System.String key)
IL_0043: ldstr ": "
IL_0048: call static Verse.TaggedString
Verse.TaggedString::op_Addition(Verse.TaggedString t1, System.String t2)
IL_004D: call static System.String
Verse.ColoredText::AsTipTitle(Verse.TaggedString ts)
IL_0052: stelem.ref
IL_0053: dup
IL_0054: ldc.i4.1
IL_0055: ldarg.2
IL_0056: box System.Int32
IL_005B: stelem.ref
IL_005C: dup
IL_005D: ldc.i4.2
IL_005E: ldstr "\n"
IL_0063: stelem.ref
IL_0064: dup
IL_0065: ldc.i4.3
IL_0066: ldstr "StatsReport_GrowthTierDesc"
IL_006B: call static Verse.TaggedString
Verse.Translator::Translate(System.String key)
IL_0070: ldsfld UnityEngine.Color Verse.ColoredText::SubtleGrayColor
IL_0075: call static System.String
Verse.ColoredText::Colorize(Verse.TaggedString ts, UnityEngine.Color color)
IL_007A: stelem.ref
IL_007B: dup
IL_007C: ldc.i4.4
IL_007D: ldstr "\n\n"
IL_0082: stelem.ref
IL_0083: call static System.String System.String::Concat(System.Object[]
args)
IL_0088: call static Verse.TaggedString
Verse.TaggedString::op_Implicit(System.String str)
IL_008D: stloc.0
IL_008E: ldarg.0
IL_008F: ldfld Verse.Pawn RimWorld.Gizmo_GrowthTier::child
IL_0094: ldfld Verse.Pawn_AgeTracker Verse.Pawn::ageTracker
IL_0099: callvirt System.Boolean Verse.Pawn_AgeTracker::get_AtMaxGrowthTier()
IL_009E: brfalse => Label2
IL_00A3: ldloc.0
IL_00A4: ldstr "MaxTier"
IL_00A9: call static Verse.TaggedString
Verse.Translator::Translate(System.String key)
IL_00AE: ldstr ": "
IL_00B3: call static Verse.TaggedString
Verse.TaggedString::op_Addition(Verse.TaggedString t1, System.String t2)
IL_00B8: call static System.String
Verse.ColoredText::AsTipTitle(Verse.TaggedString ts)
IL_00BD: ldstr "MaxTierDesc"
IL_00C2: ldarg.0
IL_00C3: ldfld Verse.Pawn RimWorld.Gizmo_GrowthTier::child
IL_00C8: ldstr "PAWN"
IL_00CD: call static Verse.NamedArgument
Verse.NamedArgumentUtility::Named(System.Object arg, System.String label)
IL_00D2: call static Verse.TaggedString
Verse.TranslatorFormattedStringExtensions::Translate(System.String key,
Verse.NamedArgument arg1)
IL_00D7: call static Verse.TaggedString
Verse.TaggedString::op_Addition(System.String t1, Verse.TaggedString t2)
IL_00DC: call static Verse.TaggedString
Verse.TaggedString::op_Addition(Verse.TaggedString t1, Verse.TaggedString t2)
IL_00E1: stloc.0
IL_00E2: br => Label3
IL_00E7: Label2
IL_00E7: ldloc.0
IL_00E8: ldc.i4.4
IL_00E9: newarr System.Object
IL_00EE: dup
IL_00EF: ldc.i4.0
IL_00F0: ldstr "ProgressToNextGrowthTier"
IL_00F5: call static Verse.TaggedString
Verse.Translator::Translate(System.String key)
IL_00FA: ldstr ": "
IL_00FF: call static Verse.TaggedString
Verse.TaggedString::op_Addition(Verse.TaggedString t1, System.String t2)
IL_0104: call static System.String
Verse.ColoredText::AsTipTitle(Verse.TaggedString ts)
IL_0109: stelem.ref
IL_010A: dup
IL_010B: ldc.i4.1
IL_010C: ldarg.0
IL_010D: ldfld Verse.Pawn RimWorld.Gizmo_GrowthTier::child
IL_0112: ldfld Verse.Pawn_AgeTracker Verse.Pawn::ageTracker
IL_0117: ldfld System.Single Verse.Pawn_AgeTracker::growthPoints
IL_011C: call static System.Int32 UnityEngine.Mathf::FloorToInt(System.Single
f)
IL_0121: stloc.1
IL_0122: ldloca.s 1 (System.Int32)
IL_0124: call virtual System.String System.Int32::ToString()
IL_0129: stelem.ref
IL_012A: dup
IL_012B: ldc.i4.2
IL_012C: ldstr " / "
IL_0131: stelem.ref
IL_0132: dup
IL_0133: ldc.i4.3
IL_0134: ldsfld System.Single[]
RimWorld.GrowthUtility::GrowthTierPointsRequirements
IL_0139: ldarg.2
IL_013A: ldc.i4.1
IL_013B: add
IL_013C: ldelem.r4
IL_013D: box System.Single
IL_0142: stelem.ref
IL_0143: call static System.String System.String::Concat(System.Object[]
args)
IL_0148: call static Verse.TaggedString
Verse.TaggedString::op_Addition(Verse.TaggedString t1, System.String t2)
IL_014D: stloc.0
IL_014E: ldarg.0
IL_014F: ldfld Verse.Pawn RimWorld.Gizmo_GrowthTier::child
IL_0154: ldfld Verse.Pawn_AgeTracker Verse.Pawn::ageTracker
IL_0159: ldfld System.Boolean Verse.Pawn_AgeTracker::canGainGrowthPoints
IL_015E: brfalse => Label4
IL_0163: ldloc.0
IL_0164: ldstr " (+{0})"
IL_0169: ldstr "PerDay"
IL_016E: ldarg.0
IL_016F: ldfld Verse.Pawn RimWorld.Gizmo_GrowthTier::child
IL_0174: ldfld Verse.Pawn_AgeTracker Verse.Pawn::ageTracker
IL_0179: callvirt System.Single Verse.Pawn_AgeTracker::get_GrowthPointsPerDay()
IL_017E: ldc.i4.5
IL_017F: ldc.i4.1
IL_0180: call static System.String
Verse.GenText::ToStringByStyle(System.Single f, Verse.ToStringStyle style,
Verse.ToStringNumberSense numberSense)
IL_0185: call static Verse.NamedArgument
Verse.NamedArgument::op_Implicit(System.String value)
IL_018A: call static Verse.TaggedString
Verse.TranslatorFormattedStringExtensions::Translate(System.String key,
Verse.NamedArgument arg1)
IL_018F: box Verse.TaggedString
IL_0194: call static System.String System.String::Format(System.String
format, System.Object arg0)
IL_0199: call static Verse.TaggedString
Verse.TaggedString::op_Addition(Verse.TaggedString t1, System.String t2)
IL_019E: stloc.0
IL_019F: Label3
IL_019F: Label4
IL_019F: ldarg.0
IL_01A0: ldfld Verse.Pawn RimWorld.Gizmo_GrowthTier::child
IL_01A5: ldfld Verse.Pawn_AgeTracker Verse.Pawn::ageTracker
IL_01AA: callvirt System.Int32 Verse.Pawn_AgeTracker::get_AgeBiologicalYears()
IL_01AF: ldc.i4.s 13
IL_01B1: bge => Label5
IL_01B6: ldc.i4.0
IL_01B7: stloc.2
IL_01B8: ldarg.0
IL_01B9: ldfld Verse.Pawn RimWorld.Gizmo_GrowthTier::child
IL_01BE: ldfld Verse.Pawn_AgeTracker Verse.Pawn::ageTracker
IL_01C3: callvirt System.Int32 Verse.Pawn_AgeTracker::get_AgeBiologicalYears()
IL_01C8: ldc.i4.1
IL_01C9: add
IL_01CA: stloc.3
IL_01CB: br => Label6
IL_01D0: Label9
IL_01D0: ldloc.3
IL_01D1: call static System.Boolean
RimWorld.GrowthUtility::IsGrowthBirthday(System.Int32 age)
IL_01D6: brfalse => Label7
IL_01DB: ldloc.3
IL_01DC: stloc.2
IL_01DD: br => Label8
IL_01E2: Label7
IL_01E2: ldloc.3
IL_01E3: ldc.i4.1
IL_01E4: add
IL_01E5: stloc.3
IL_01E6: Label6
IL_01E6: ldloc.3
IL_01E7: ldc.i4.s 13
IL_01E9: ble => Label9
IL_01EE: Label8
IL_01EE: ldloc.0
IL_01EF: ldstr "\n\n"
IL_01F4: ldstr "NextGrowthMomentAt"
IL_01F9: call static Verse.TaggedString
Verse.Translator::Translate(System.String key)
IL_01FE: ldstr ": "
IL_0203: call static Verse.TaggedString
Verse.TaggedString::op_Addition(Verse.TaggedString t1, System.String t2)
IL_0208: call static System.String
Verse.ColoredText::AsTipTitle(Verse.TaggedString ts)
IL_020D: ldloc.2
IL_020E: box System.Int32
IL_0213: call static System.String System.String::Concat(System.Object arg0,
System.Object arg1, System.Object arg2)
IL_0218: call static Verse.TaggedString
Verse.TaggedString::op_Addition(Verse.TaggedString t1, System.String t2)
IL_021D: stloc.0
IL_021E: Label5
IL_021E: ldloc.0
IL_021F: ldstr "\n\n"
IL_0224: ldstr "ThisGrowthTier"
IL_0229: ldarg.2
IL_022A: call static Verse.NamedArgument
Verse.NamedArgument::op_Implicit(System.Int32 value)
IL_022F: call static Verse.TaggedString
Verse.TranslatorFormattedStringExtensions::Translate(System.String key,
Verse.NamedArgument arg1)
IL_0234: ldstr ":"
IL_0239: call static Verse.TaggedString
Verse.TaggedString::op_Addition(Verse.TaggedString t1, System.String t2)
IL_023E: call static System.String
Verse.ColoredText::AsTipTitle(Verse.TaggedString ts)
IL_0243: call static System.String System.String::Concat(System.String str0,
System.String str1)
IL_0248: call static Verse.TaggedString
Verse.TaggedString::op_Addition(Verse.TaggedString t1, System.String t2)
IL_024D: stloc.0
IL_024E: ldsfld System.Int32[] RimWorld.GrowthUtility::PassionGainsPerTier
IL_0253: ldarg.2
IL_0254: ldelem.i4
IL_0255: ldc.i4.0
IL_0256: ble => Label10
IL_025B: ldloc.0
IL_025C: ldstr "\n - "
IL_0261: ldstr "NumPassionsFromOptions"
IL_0266: ldsfld System.Int32[] RimWorld.GrowthUtility::PassionGainsPerTier
IL_026B: ldarg.2
IL_026C: ldelem.i4
IL_026D: call static Verse.NamedArgument
Verse.NamedArgument::op_Implicit(System.Int32 value)
IL_0272: ldsfld System.Int32[] RimWorld.GrowthUtility::PassionChoicesPerTier
IL_0277: ldarg.2
IL_0278: ldelem.i4
IL_0279: call static Verse.NamedArgument
Verse.NamedArgument::op_Implicit(System.Int32 value)
IL_027E: call static Verse.TaggedString
Verse.TranslatorFormattedStringExtensions::Translate(System.String key,
Verse.NamedArgument arg1, Verse.NamedArgument arg2)
IL_0283: call static Verse.TaggedString
Verse.TaggedString::op_Addition(System.String t1, Verse.TaggedString t2)
IL_0288: call static Verse.TaggedString
Verse.TaggedString::op_Addition(Verse.TaggedString t1, Verse.TaggedString t2)
IL_028D: stloc.0
IL_028E: Label10
IL_028E: ldloc.0
IL_028F: ldstr "\n - "
IL_0294: ldstr "NumTraitsFromOptions"
IL_0299: ldsfld System.Int32[] RimWorld.GrowthUtility::TraitGainsPerTier
IL_029E: ldarg.2
IL_029F: ldelem.i4
IL_02A0: call static Verse.NamedArgument
Verse.NamedArgument::op_Implicit(System.Int32 value)
IL_02A5: ldsfld System.Int32[] RimWorld.GrowthUtility::TraitChoicesPerTier
IL_02AA: ldarg.2
IL_02AB: ldelem.i4
IL_02AC: call static Verse.NamedArgument
Verse.NamedArgument::op_Implicit(System.Int32 value)
IL_02B1: call static Verse.TaggedString
Verse.TranslatorFormattedStringExtensions::Translate(System.String key,
Verse.NamedArgument arg1, Verse.NamedArgument arg2)
IL_02B6: call static Verse.TaggedString
Verse.TaggedString::op_Addition(System.String t1, Verse.TaggedString t2)
IL_02BB: call static Verse.TaggedString
Verse.TaggedString::op_Addition(Verse.TaggedString t1, Verse.TaggedString t2)
IL_02C0: stloc.0
IL_02C1: ldarg.0
IL_02C2: ldfld Verse.Pawn RimWorld.Gizmo_GrowthTier::child
IL_02C7: ldfld Verse.Pawn_AgeTracker Verse.Pawn::ageTracker
IL_02CC: callvirt System.Boolean Verse.Pawn_AgeTracker::get_AtMaxGrowthTier()
IL_02D1: brtrue => Label11
IL_02D6: ldloc.0
IL_02D7: ldstr "\n\n"
IL_02DC: ldstr "NextGrowthTier"
IL_02E1: ldarg.2
IL_02E2: ldc.i4.1
IL_02E3: add
IL_02E4: call static Verse.NamedArgument
Verse.NamedArgument::op_Implicit(System.Int32 value)
IL_02E9: call static Verse.TaggedString
Verse.TranslatorFormattedStringExtensions::Translate(System.String key,
Verse.NamedArgument arg1)
IL_02EE: ldstr ":"
IL_02F3: call static Verse.TaggedString
Verse.TaggedString::op_Addition(Verse.TaggedString t1, System.String t2)
IL_02F8: call static System.String
Verse.ColoredText::AsTipTitle(Verse.TaggedString ts)
IL_02FD: call static System.String System.String::Concat(System.String str0,
System.String str1)
IL_0302: call static Verse.TaggedString
Verse.TaggedString::op_Addition(Verse.TaggedString t1, System.String t2)
IL_0307: stloc.0
IL_0308: ldsfld System.Int32[] RimWorld.GrowthUtility::PassionGainsPerTier
IL_030D: ldarg.2
IL_030E: ldc.i4.1
IL_030F: add
IL_0310: ldelem.i4
IL_0311: ldc.i4.0
IL_0312: ble => Label12
IL_0317: ldloc.0
IL_0318: ldstr "\n - "
IL_031D: ldstr "NumPassionsFromOptions"
IL_0322: ldsfld System.Int32[] RimWorld.GrowthUtility::PassionGainsPerTier
IL_0327: ldarg.2
IL_0328: ldc.i4.1
IL_0329: add
IL_032A: ldelem.i4
IL_032B: call static Verse.NamedArgument
Verse.NamedArgument::op_Implicit(System.Int32 value)
IL_0330: ldsfld System.Int32[] RimWorld.GrowthUtility::PassionChoicesPerTier
IL_0335: ldarg.2
IL_0336: ldc.i4.1
IL_0337: add
IL_0338: ldelem.i4
IL_0339: call static Verse.NamedArgument
Verse.NamedArgument::op_Implicit(System.Int32 value)
IL_033E: call static Verse.TaggedString
Verse.TranslatorFormattedStringExtensions::Translate(System.String key,
Verse.NamedArgument arg1, Verse.NamedArgument arg2)
IL_0343: call static Verse.TaggedString
Verse.TaggedString::op_Addition(System.String t1, Verse.TaggedString t2)
IL_0348: call static Verse.TaggedString
Verse.TaggedString::op_Addition(Verse.TaggedString t1, Verse.TaggedString t2)
IL_034D: stloc.0
IL_034E: Label12
IL_034E: ldloc.0
IL_034F: ldstr "\n - "
IL_0354: ldstr "NumTraitsFromOptions"
IL_0359: ldsfld System.Int32[] RimWorld.GrowthUtility::TraitGainsPerTier
IL_035E: ldarg.2
IL_035F: ldc.i4.1
IL_0360: add
IL_0361: ldelem.i4
IL_0362: call static Verse.NamedArgument
Verse.NamedArgument::op_Implicit(System.Int32 value)
IL_0367: ldsfld System.Int32[] RimWorld.GrowthUtility::TraitChoicesPerTier
IL_036C: ldarg.2
IL_036D: ldc.i4.1
IL_036E: add
IL_036F: ldelem.i4
IL_0370: call static Verse.NamedArgument
Verse.NamedArgument::op_Implicit(System.Int32 value)
IL_0375: call static Verse.TaggedString
Verse.TranslatorFormattedStringExtensions::Translate(System.String key,
Verse.NamedArgument arg1, Verse.NamedArgument arg2)
IL_037A: call static Verse.TaggedString
Verse.TaggedString::op_Addition(System.String t1, Verse.TaggedString t2)
IL_037F: call static Verse.TaggedString
Verse.TaggedString::op_Addition(Verse.TaggedString t1, Verse.TaggedString t2)
IL_0384: stloc.0
IL_0385: Label11
IL_0385: ldloca.s 0 (Verse.TaggedString)
IL_0387: call System.String Verse.TaggedString::Resolve()
IL_038C: // end original
IL_038C: stloc 4 (System.String)
IL_0390: Label0
IL_0390: ldloc 4 (System.String)
IL_0394: ret
DONE

### Patch: System.Void RimWorld.Pawn_StyleTracker::FinalizeHairColor()


### Replacement: static System.Void
RimWorld.Pawn_StyleTracker::RimWorld.Pawn_StyleTracker.FinalizeHairColor_Patch1(Rim
World.Pawn_StyleTracker this)
IL_0000: // start original
IL_0000: ldarg.0
IL_0001: ldflda System.Nullable`1<UnityEngine.Color>
RimWorld.Pawn_StyleTracker::nextHairColor
IL_0006: call System.Boolean
System.Nullable`1<UnityEngine.Color>::get_HasValue()
IL_000B: brfalse => Label0
IL_0010: ldarg.0
IL_0011: ldfld Verse.Pawn RimWorld.Pawn_StyleTracker::pawn
IL_0016: ldfld RimWorld.Pawn_StoryTracker Verse.Pawn::story
IL_001B: ldarg.0
IL_001C: ldflda System.Nullable`1<UnityEngine.Color>
RimWorld.Pawn_StyleTracker::nextHairColor
IL_0021: call UnityEngine.Color
System.Nullable`1<UnityEngine.Color>::get_Value()
IL_0026: callvirt System.Void
RimWorld.Pawn_StoryTracker::set_HairColor(UnityEngine.Color value)
IL_002B: ldarg.0
IL_002C: ldfld Verse.Pawn RimWorld.Pawn_StyleTracker::pawn
IL_0031: callvirt Verse.Pawn_DrawTracker Verse.Pawn::get_Drawer()
IL_0036: ldfld Verse.PawnRenderer Verse.Pawn_DrawTracker::renderer
IL_003B: ldfld Verse.PawnGraphicSet Verse.PawnRenderer::graphics
IL_0040: callvirt System.Void Verse.PawnGraphicSet::SetAllGraphicsDirty()
IL_0045: ldarg.0
IL_0046: ldfld Verse.Pawn RimWorld.Pawn_StyleTracker::pawn
IL_004B: call static System.Void RimWorld.PortraitsCache::SetDirty(Verse.Pawn
pawn)
IL_0050: // end original
IL_0050: Label0
IL_0050: ldarg.0
IL_0051: call static System.Void
AlienRace.HarmonyPatches::FinalizeHairColorPostfix(RimWorld.Pawn_StyleTracker
__instance)
IL_0056: ret
DONE

### Patch: static Verse.AI.Toil Verse.AI.Toils_StyleChange::FinalizeLookChange()


### Replacement: static Verse.AI.Toil
Verse.AI.Toils_StyleChange::Verse.AI.Toils_StyleChange.FinalizeLookChange_Patch1()
IL_0000: Local var 0: Verse.AI.Toils_StyleChange/<>c__DisplayClass3_0
IL_0000: Local var 1: Verse.AI.Toil
IL_0000: ldnull
IL_0001: stloc 1 (Verse.AI.Toil)
IL_0005: // start original
IL_0005: newobj System.Void Verse.AI.<>c__DisplayClass3_0::.ctor()
IL_000A: stloc.0
IL_000B: ldloc.0
IL_000C: ldstr "FinalizeLookChange"
IL_0011: call static Verse.AI.Toil Verse.ToilMaker::MakeToil(System.String
debugName)
IL_0016: stfld Verse.AI.Toil Verse.AI.<>c__DisplayClass3_0::toil
IL_001B: ldloc.0
IL_001C: ldfld Verse.AI.Toil Verse.AI.<>c__DisplayClass3_0::toil
IL_0021: ldloc.0
IL_0022: ldftn System.Void
Verse.AI.<>c__DisplayClass3_0::<FinalizeLookChange>b__0()
IL_0028: newobj System.Void System.Action::.ctor(System.Object object,
System.IntPtr method)
IL_002D: stfld System.Action Verse.AI.Toil::initAction
IL_0032: ldloc.0
IL_0033: ldfld Verse.AI.Toil Verse.AI.<>c__DisplayClass3_0::toil
IL_0038: // end original
IL_0038: stloc 1 (Verse.AI.Toil)
IL_003C: ldloca 1 (Verse.AI.Toil)
IL_0040: call static System.Void
AlienRace.HarmonyPatches::FinalizeLookChangePostfix(Verse.AI.Toil& __result)
IL_0045: ldloc 1 (Verse.AI.Toil)
IL_0049: ret
DONE

### Patch: System.Single


RimWorld.StatPart_FertilityByGenderAge::AgeFactor(Verse.Pawn pawn)
### Replacement: static System.Single
RimWorld.StatPart_FertilityByGenderAge::RimWorld.StatPart_FertilityByGenderAge.AgeF
actor_Patch0(RimWorld.StatPart_FertilityByGenderAge this, Verse.Pawn pawn)
IL_0000: // start original
IL_0000: ldarg.1
IL_0001: ldfld Verse.Gender Verse.Pawn::gender
IL_0006: ldc.i4.2
IL_0007: beq => Label0
IL_000C: ldarg.0
IL_000D: ldfld Verse.SimpleCurve
RimWorld.StatPart_FertilityByGenderAge::maleFertilityAgeFactor
IL_0012: ldarg.1
IL_0013: ldc.i4.1
IL_0014: call static Verse.SimpleCurve
AlienRace.HarmonyPatches::FertilityCurveHelper(Verse.SimpleCurve original,
Verse.Pawn pawn, Verse.Gender gender)
IL_0019: br => Label1
IL_001E: Label0
IL_001E: ldarg.0
IL_001F: ldfld Verse.SimpleCurve
RimWorld.StatPart_FertilityByGenderAge::femaleFertilityAgeFactor
IL_0024: ldarg.1
IL_0025: ldc.i4.2
IL_0026: call static Verse.SimpleCurve
AlienRace.HarmonyPatches::FertilityCurveHelper(Verse.SimpleCurve original,
Verse.Pawn pawn, Verse.Gender gender)
IL_002B: Label1
IL_002B: ldarg.1
IL_002C: ldfld Verse.Pawn_AgeTracker Verse.Pawn::ageTracker
IL_0031: callvirt System.Single
Verse.Pawn_AgeTracker::get_AgeBiologicalYearsFloat()
IL_0036: callvirt System.Single Verse.SimpleCurve::Evaluate(System.Single x)
IL_003B: // end original
IL_003B: ret
DONE

### Patch: Verse.Gene RimWorld.Pawn_GeneTracker::AddGene(Verse.Gene gene,


System.Boolean addAsXenogene)
### Replacement: static Verse.Gene
RimWorld.Pawn_GeneTracker::RimWorld.Pawn_GeneTracker.AddGene_Patch1(RimWorld.Pawn_G
eneTracker this, Verse.Gene gene, System.Boolean addAsXenogene)
IL_0000: Local var 0: System.Int32
IL_0000: Local var 1: System.Int32
IL_0000: Local var 2: RimWorld.Trait
IL_0000: Local var 3: RimWorld.SkillRecord
IL_0000: Local var 4: Verse.Gene
IL_0000: Local var 5: System.Boolean
IL_0000: ldnull
IL_0001: stloc 4 (Verse.Gene)
IL_0005: ldc.i4 0
IL_000A: stloc 5 (System.Boolean)
IL_000E: ldc.i4.1
IL_000F: stloc 5 (System.Boolean)
IL_0013: ldloc 5 (System.Boolean)
IL_0017: brfalse => Label1
IL_001C: ldarg 1
IL_0020: ldarg.0
IL_0021: ldfld Verse.Pawn RimWorld.Pawn_GeneTracker::pawn
IL_0026: ldloca 4 (Verse.Gene)
IL_002A: call static System.Boolean
AlienRace.HarmonyPatches::AddGenePrefix(Verse.Gene gene, Verse.Pawn ___pawn,
Verse.Gene& __result)
IL_002F: stloc 5 (System.Boolean)
IL_0033: Label1
IL_0033: nop
IL_0034: ldloc 5 (System.Boolean)
IL_0038: brfalse => Label0
IL_003D: // start original
IL_003D: ldarg.2
IL_003E: brfalse => Label2
IL_0043: call static System.Boolean Verse.ModLister::get_BiotechInstalled()
IL_0048: brtrue => Label3
IL_004D: ldnull
IL_004E: br => Label21
IL_0053: Label2
IL_0053: Label3
IL_0053: ldarg.2
IL_0054: brfalse => Label4
IL_0059: ldarg.0
IL_005A: ldfld System.Collections.Generic.List`1<Verse.Gene>
RimWorld.Pawn_GeneTracker::xenogenes
IL_005F: ldarg.1
IL_0060: callvirt virtual System.Void
System.Collections.Generic.List`1<Verse.Gene>::Add(Verse.Gene item)
IL_0065: br => Label5
IL_006A: Label4
IL_006A: ldarg.0
IL_006B: ldfld System.Collections.Generic.List`1<Verse.Gene>
RimWorld.Pawn_GeneTracker::endogenes
IL_0070: ldarg.1
IL_0071: callvirt virtual System.Void
System.Collections.Generic.List`1<Verse.Gene>::Add(Verse.Gene item)
IL_0076: Label5
IL_0076: ldarg.0
IL_0077: ldnull
IL_0078: stfld System.Collections.Generic.List`1<Verse.Gene>
RimWorld.Pawn_GeneTracker::cachedGenes
IL_007D: call static System.Boolean Verse.ModLister::get_BiotechInstalled()
IL_0082: brfalse => Label6
IL_0087: ldarg.0
IL_0088: call System.Void RimWorld.Pawn_GeneTracker::CheckForOverrides()
IL_008D: ldarg.1
IL_008E: ldfld Verse.GeneDef Verse.Gene::def
IL_0093: ldfld System.Collections.Generic.List`1<RimWorld.AbilityDef>
Verse.GeneDef::abilities
IL_0098: call static System.Boolean
Verse.GenList::NullOrEmpty(System.Collections.Generic.IList`1<RimWorld.AbilityDef>
list)
IL_009D: brtrue => Label7
IL_00A2: ldarg.0
IL_00A3: ldfld Verse.Pawn RimWorld.Pawn_GeneTracker::pawn
IL_00A8: ldfld RimWorld.Pawn_AbilityTracker Verse.Pawn::abilities
IL_00AD: brfalse => Label8
IL_00B2: ldc.i4.0
IL_00B3: stloc.0
IL_00B4: br => Label9
IL_00B9: Label10
IL_00B9: ldarg.0
IL_00BA: ldfld Verse.Pawn RimWorld.Pawn_GeneTracker::pawn
IL_00BF: ldfld RimWorld.Pawn_AbilityTracker Verse.Pawn::abilities
IL_00C4: ldarg.1
IL_00C5: ldfld Verse.GeneDef Verse.Gene::def
IL_00CA: ldfld System.Collections.Generic.List`1<RimWorld.AbilityDef>
Verse.GeneDef::abilities
IL_00CF: ldloc.0
IL_00D0: callvirt virtual RimWorld.AbilityDef
System.Collections.Generic.List`1<RimWorld.AbilityDef>::get_Item(System.Int32
index)
IL_00D5: callvirt System.Void
RimWorld.Pawn_AbilityTracker::GainAbility(RimWorld.AbilityDef def)
IL_00DA: ldloc.0
IL_00DB: ldc.i4.1
IL_00DC: add
IL_00DD: stloc.0
IL_00DE: Label9
IL_00DE: ldloc.0
IL_00DF: ldarg.1
IL_00E0: ldfld Verse.GeneDef Verse.Gene::def
IL_00E5: ldfld System.Collections.Generic.List`1<RimWorld.AbilityDef>
Verse.GeneDef::abilities
IL_00EA: callvirt virtual System.Int32
System.Collections.Generic.List`1<RimWorld.AbilityDef>::get_Count()
IL_00EF: blt => Label10
IL_00F4: Label7
IL_00F4: Label8
IL_00F4: ldarg.1
IL_00F5: ldfld Verse.GeneDef Verse.Gene::def
IL_00FA: ldfld System.Collections.Generic.List`1<Verse.GeneticTraitData>
Verse.GeneDef::forcedTraits
IL_00FF: call static System.Boolean
Verse.GenList::NullOrEmpty(System.Collections.Generic.IList`1<Verse.GeneticTraitDat
a> list)
IL_0104: brtrue => Label11
IL_0109: ldarg.0
IL_010A: ldfld Verse.Pawn RimWorld.Pawn_GeneTracker::pawn
IL_010F: ldfld RimWorld.Pawn_StoryTracker Verse.Pawn::story
IL_0114: brfalse => Label12
IL_0119: ldc.i4.0
IL_011A: stloc.1
IL_011B: br => Label13
IL_0120: Label14
IL_0120: ldarg.1
IL_0121: ldfld Verse.GeneDef Verse.Gene::def
IL_0126: ldfld System.Collections.Generic.List`1<Verse.GeneticTraitData>
Verse.GeneDef::forcedTraits
IL_012B: ldloc.1
IL_012C: callvirt virtual Verse.GeneticTraitData
System.Collections.Generic.List`1<Verse.GeneticTraitData>::get_Item(System.Int32
index)
IL_0131: ldfld RimWorld.TraitDef Verse.GeneticTraitData::def
IL_0136: ldarg.1
IL_0137: ldfld Verse.GeneDef Verse.Gene::def
IL_013C: ldfld System.Collections.Generic.List`1<Verse.GeneticTraitData>
Verse.GeneDef::forcedTraits
IL_0141: ldloc.1
IL_0142: callvirt virtual Verse.GeneticTraitData
System.Collections.Generic.List`1<Verse.GeneticTraitData>::get_Item(System.Int32
index)
IL_0147: ldfld System.Int32 Verse.GeneticTraitData::degree
IL_014C: ldc.i4.0
IL_014D: newobj System.Void RimWorld.Trait::.ctor(RimWorld.TraitDef def,
System.Int32 degree, System.Boolean forced)
IL_0152: stloc.2
IL_0153: ldloc.2
IL_0154: ldarg.1
IL_0155: stfld Verse.Gene RimWorld.Trait::sourceGene
IL_015A: ldarg.0
IL_015B: ldfld Verse.Pawn RimWorld.Pawn_GeneTracker::pawn
IL_0160: ldfld RimWorld.Pawn_StoryTracker Verse.Pawn::story
IL_0165: ldfld RimWorld.TraitSet RimWorld.Pawn_StoryTracker::traits
IL_016A: ldloc.2
IL_016B: ldc.i4.1
IL_016C: callvirt System.Void RimWorld.TraitSet::GainTrait(RimWorld.Trait trait,
System.Boolean suppressConflicts)
IL_0171: ldloc.1
IL_0172: ldc.i4.1
IL_0173: add
IL_0174: stloc.1
IL_0175: Label13
IL_0175: ldloc.1
IL_0176: ldarg.1
IL_0177: ldfld Verse.GeneDef Verse.Gene::def
IL_017C: ldfld System.Collections.Generic.List`1<Verse.GeneticTraitData>
Verse.GeneDef::forcedTraits
IL_0181: callvirt virtual System.Int32
System.Collections.Generic.List`1<Verse.GeneticTraitData>::get_Count()
IL_0186: blt => Label14
IL_018B: Label11
IL_018B: Label12
IL_018B: ldarg.1
IL_018C: ldfld Verse.GeneDef Verse.Gene::def
IL_0191: ldfld Verse.PassionMod Verse.GeneDef::passionMod
IL_0196: brfalse => Label15
IL_019B: ldarg.0
IL_019C: ldfld Verse.Pawn RimWorld.Pawn_GeneTracker::pawn
IL_01A1: ldfld RimWorld.Pawn_SkillTracker Verse.Pawn::skills
IL_01A6: ldarg.1
IL_01A7: ldfld Verse.GeneDef Verse.Gene::def
IL_01AC: ldfld Verse.PassionMod Verse.GeneDef::passionMod
IL_01B1: ldfld RimWorld.SkillDef Verse.PassionMod::skill
IL_01B6: callvirt RimWorld.SkillRecord
RimWorld.Pawn_SkillTracker::GetSkill(RimWorld.SkillDef skillDef)
IL_01BB: stloc.3
IL_01BC: ldarg.1
IL_01BD: ldloc.3
IL_01BE: ldfld RimWorld.Passion RimWorld.SkillRecord::passion
IL_01C3: newobj System.Void
System.Nullable`1<RimWorld.Passion>::.ctor(RimWorld.Passion value)
IL_01C8: stfld System.Nullable`1<RimWorld.Passion> Verse.Gene::passionPreAdd
IL_01CD: ldloc.3
IL_01CE: ldarg.1
IL_01CF: ldfld Verse.GeneDef Verse.Gene::def
IL_01D4: ldfld Verse.PassionMod Verse.GeneDef::passionMod
IL_01D9: ldloc.3
IL_01DA: callvirt RimWorld.Passion
Verse.PassionMod::NewPassionFor(RimWorld.SkillRecord skillRecord)
IL_01DF: stfld RimWorld.Passion RimWorld.SkillRecord::passion
IL_01E4: Label15
IL_01E4: ldarg.0
IL_01E5: ldfld Verse.Pawn RimWorld.Pawn_GeneTracker::pawn
IL_01EA: ldfld RimWorld.Pawn_StoryTracker Verse.Pawn::story
IL_01EF: dup
IL_01F0: brtrue => Label16
IL_01F5: pop
IL_01F6: br => Label17
IL_01FB: Label16
IL_01FB: ldfld RimWorld.TraitSet RimWorld.Pawn_StoryTracker::traits
IL_0200: dup
IL_0201: brtrue => Label18
IL_0206: pop
IL_0207: br => Label19
IL_020C: Label18
IL_020C: call System.Void RimWorld.TraitSet::RecalculateSuppression()
IL_0211: Label6
IL_0211: Label17
IL_0211: Label19
IL_0211: ldarg.0
IL_0212: ldarg.1
IL_0213: ldfld Verse.GeneDef Verse.Gene::def
IL_0218: call System.Void
RimWorld.Pawn_GeneTracker::Notify_GenesChanged(Verse.GeneDef addedOrRemovedGene)
IL_021D: call static System.Boolean Verse.ModLister::get_BiotechInstalled()
IL_0222: brfalse => Label20
IL_0227: ldarg.1
IL_0228: callvirt virtual System.Void Verse.Gene::PostAdd()
IL_022D: Label20
IL_022D: ldarg.1
IL_022E: // end original
IL_022E: Label21
IL_022E: stloc 4 (Verse.Gene)
IL_0232: Label0
IL_0232: ldloc 4 (Verse.Gene)
IL_0236: ret
DONE

### Patch: static System.Boolean


RimWorld.ApparelGraphicRecordGetter::TryGetGraphicApparel(RimWorld.Apparel apparel,
RimWorld.BodyTypeDef bodyType, RimWorld.ApparelGraphicRecord& rec)
### Replacement: static System.Boolean
RimWorld.ApparelGraphicRecordGetter::RimWorld.ApparelGraphicRecordGetter.TryGetGrap
hicApparel_Patch0(RimWorld.Apparel apparel, RimWorld.BodyTypeDef bodyType,
RimWorld.ApparelGraphicRecord& rec)
IL_0000: Local var 0: System.String
IL_0000: Local var 1: UnityEngine.Shader
IL_0000: Local var 2: Verse.Graphic
IL_0000: // start original
IL_0000: ldarg.1
IL_0001: brtrue => Label0
IL_0006: ldstr "Getting apparel graphic with undefined body type."
IL_000B: call static System.Void Verse.Log::Error(System.String text)
IL_0010: ldsfld RimWorld.BodyTypeDef RimWorld.BodyTypeDefOf::Male
IL_0015: starg.s 1
IL_0017: Label0
IL_0017: ldarg.0
IL_0018: callvirt System.String RimWorld.Apparel::get_WornGraphicPath()
IL_001D: call static System.Boolean Verse.GenText::NullOrEmpty(System.String
str)
IL_0022: brfalse => Label1
IL_0027: ldarg.2
IL_0028: ldnull
IL_0029: ldnull
IL_002A: newobj System.Void RimWorld.ApparelGraphicRecord::.ctor(Verse.Graphic
graphic, RimWorld.Apparel sourceApparel)
IL_002F: stobj RimWorld.ApparelGraphicRecord
IL_0034: ldc.i4.0
IL_0035: br => Label9
IL_003A: Label1
IL_003A: ldarg.0
IL_003B: ldfld Verse.ThingDef Verse.Thing::def
IL_0040: ldfld RimWorld.ApparelProperties Verse.ThingDef::apparel
IL_0045: callvirt Verse.ApparelLayerDef
RimWorld.ApparelProperties::get_LastLayer()
IL_004A: ldsfld Verse.ApparelLayerDef RimWorld.ApparelLayerDefOf::Overhead
IL_004F: beq => Label2
IL_0054: ldarg.0
IL_0055: ldfld Verse.ThingDef Verse.Thing::def
IL_005A: ldfld RimWorld.ApparelProperties Verse.ThingDef::apparel
IL_005F: callvirt Verse.ApparelLayerDef
RimWorld.ApparelProperties::get_LastLayer()
IL_0064: ldsfld Verse.ApparelLayerDef RimWorld.ApparelLayerDefOf::EyeCover
IL_0069: beq => Label3
IL_006E: ldarg.0
IL_006F: call static System.Boolean
Verse.PawnRenderer::RenderAsPack(RimWorld.Apparel apparel)
IL_0074: brtrue => Label4
IL_0079: ldarg.0
IL_007A: call static System.Boolean
VFECore.Patch_ApparelGraphicRecordGetter_TryGetGraphicApparel_Transpiler::IsUnified
Apparel(RimWorld.Apparel apparel)
IL_007F: brtrue => Label4
IL_0084: ldarg.0
IL_0085: callvirt System.String RimWorld.Apparel::get_WornGraphicPath()
IL_008A: ldsfld System.String Verse.BaseContent::PlaceholderImagePath
IL_008F: call static System.Boolean System.String::op_Equality(System.String
a, System.String b)
IL_0094: brtrue => Label5
IL_0099: ldarg.0
IL_009A: callvirt System.String RimWorld.Apparel::get_WornGraphicPath()
IL_009F: ldsfld System.String Verse.BaseContent::PlaceholderGearImagePath
IL_00A4: call static System.Boolean System.String::op_Equality(System.String
a, System.String b)
IL_00A9: brfalse => Label6
IL_00AE: Label2
IL_00AE: Label3
IL_00AE: Label4
IL_00AE: Label5
IL_00AE: ldarg.0
IL_00AF: callvirt System.String RimWorld.Apparel::get_WornGraphicPath()
IL_00B4: stloc.0
IL_00B5: br => Label7
IL_00BA: Label6
IL_00BA: ldarg.0
IL_00BB: callvirt System.String RimWorld.Apparel::get_WornGraphicPath()
IL_00C0: ldstr "_"
IL_00C5: ldarg.1
IL_00C6: ldfld System.String Verse.Def::defName
IL_00CB: call static System.String System.String::Concat(System.String str0,
System.String str1, System.String str2)
IL_00D0: stloc.0
IL_00D1: Label7
IL_00D1: ldsfld UnityEngine.Shader Verse.ShaderDatabase::Cutout
IL_00D6: stloc.1
IL_00D7: ldarg.0
IL_00D8: ldfld Verse.ThingDef Verse.Thing::def
IL_00DD: ldfld RimWorld.ApparelProperties Verse.ThingDef::apparel
IL_00E2: ldfld System.Boolean RimWorld.ApparelProperties::useWornGraphicMask
IL_00E7: brfalse => Label8
IL_00EC: ldsfld UnityEngine.Shader Verse.ShaderDatabase::CutoutComplex
IL_00F1: stloc.1
IL_00F2: Label8
IL_00F2: ldloc.0
IL_00F3: ldloc.1
IL_00F4: ldarg.0
IL_00F5: ldfld Verse.ThingDef Verse.Thing::def
IL_00FA: ldfld Verse.GraphicData Verse.ThingDef::graphicData
IL_00FF: ldfld UnityEngine.Vector2 Verse.GraphicData::drawSize
IL_0104: ldarg.0
IL_0105: callvirt virtual UnityEngine.Color Verse.Thing::get_DrawColor()
IL_010A: ldarg.0
IL_010B: ldarg.1
IL_010C: call static Verse.Graphic
AlienRace.ApparelGraphics.ApparelGraphicUtility::GetGraphic(System.String path,
UnityEngine.Shader shader, UnityEngine.Vector2 drawSize, UnityEngine.Color color,
RimWorld.Apparel apparel, RimWorld.BodyTypeDef bodyType)
IL_0111: stloc.2
IL_0112: ldarg.2
IL_0113: ldloc.2
IL_0114: ldarg.0
IL_0115: newobj System.Void RimWorld.ApparelGraphicRecord::.ctor(Verse.Graphic
graphic, RimWorld.Apparel sourceApparel)
IL_011A: stobj RimWorld.ApparelGraphicRecord
IL_011F: ldc.i4.1
IL_0120: // end original
IL_0120: Label9
IL_0120: ret
DONE

### Patch: static System.Single


RimWorld.PregnancyUtility::PregnancyChanceForPartners(Verse.Pawn woman, Verse.Pawn
man)
### Replacement: static System.Single
RimWorld.PregnancyUtility::RimWorld.PregnancyUtility.PregnancyChanceForPartners_Pat
ch1(Verse.Pawn woman, Verse.Pawn man)
IL_0000: Local var 0: System.Single
IL_0000: Local var 1: System.Single
IL_0000: Local var 2: System.Boolean
IL_0000: ldc.r4 0
IL_0005: stloc 1 (System.Single)
IL_0009: ldc.i4 0
IL_000E: stloc 2 (System.Boolean)
IL_0012: ldc.i4.1
IL_0013: stloc 2 (System.Boolean)
IL_0017: ldloc 2 (System.Boolean)
IL_001B: brfalse => Label1
IL_0020: ldarg 0
IL_0024: ldarg 1
IL_0028: ldloca 1 (System.Single)
IL_002C: call static System.Boolean
AlienRace.HarmonyPatches::PregnancyChanceForPartnersPrefix(Verse.Pawn woman,
Verse.Pawn man, System.Single& __result)
IL_0031: stloc 2 (System.Boolean)
IL_0035: Label1
IL_0035: nop
IL_0036: ldloc 2 (System.Boolean)
IL_003A: brfalse => Label0
IL_003F: // start original
IL_003F: ldarg.0
IL_0040: ldarg.1
IL_0041: call static System.Single
RimWorld.PregnancyUtility::PregnancyChanceForPartnersWithoutPregnancyApproach(Verse
.Pawn woman, Verse.Pawn man)
IL_0046: ldarg.0
IL_0047: ldfld RimWorld.Pawn_RelationsTracker Verse.Pawn::relations
IL_004C: ldarg.1
IL_004D: callvirt RimWorld.PregnancyApproach
RimWorld.Pawn_RelationsTracker::GetPregnancyApproachForPartner(Verse.Pawn partner)
IL_0052: call static System.Single
RimWorld.PregnancyUtility::GetPregnancyChanceFactor(RimWorld.PregnancyApproach
mode)
IL_0057: stloc.0
IL_0058: ldloc.0
IL_0059: mul
IL_005A: // end original
IL_005A: stloc 1 (System.Single)
IL_005E: Label0
IL_005E: ldloc 1 (System.Single)
IL_0062: ret
DONE

### Patch: static Verse.AcceptanceReport


RimWorld.PregnancyUtility::CanEverProduceChild(Verse.Pawn first, Verse.Pawn second)
### Replacement: static Verse.AcceptanceReport
RimWorld.PregnancyUtility::RimWorld.PregnancyUtility.CanEverProduceChild_Patch1(Ver
se.Pawn first, Verse.Pawn second)
IL_0000: Local var 0: Verse.Pawn
IL_0000: Local var 1: Verse.Pawn
IL_0000: Local var 2: System.Boolean
IL_0000: Local var 3: System.Boolean
IL_0000: Local var 4: System.Boolean
IL_0000: Local var 5: System.Boolean
IL_0000: Local var 6: System.Boolean
IL_0000: Local var 7: System.Boolean
IL_0000: Local var 8: Verse.TaggedString
IL_0000: Local var 9: Verse.AcceptanceReport
IL_0000: ldloca 9 (Verse.AcceptanceReport)
IL_0004: initobj Verse.AcceptanceReport
IL_000A: // start original
IL_000A: ldarg.0
IL_000B: callvirt System.Boolean Verse.Pawn::get_Dead()
IL_0010: brfalse => Label0
IL_0015: ldstr "PawnIsDead"
IL_001A: ldarg.0
IL_001B: ldstr "PAWN"
IL_0020: call static Verse.NamedArgument
Verse.NamedArgumentUtility::Named(System.Object arg, System.String label)
IL_0025: call static Verse.TaggedString
Verse.TranslatorFormattedStringExtensions::Translate(System.String key,
Verse.NamedArgument arg1)
IL_002A: call static Verse.AcceptanceReport
Verse.AcceptanceReport::op_Implicit(Verse.TaggedString value)
IL_002F: br => Label21
IL_0034: Label0
IL_0034: ldarg.1
IL_0035: callvirt System.Boolean Verse.Pawn::get_Dead()
IL_003A: brfalse => Label1
IL_003F: ldstr "PawnIsDead"
IL_0044: ldarg.1
IL_0045: ldstr "PAWN"
IL_004A: call static Verse.NamedArgument
Verse.NamedArgumentUtility::Named(System.Object arg, System.String label)
IL_004F: call static Verse.TaggedString
Verse.TranslatorFormattedStringExtensions::Translate(System.String key,
Verse.NamedArgument arg1)
IL_0054: call static Verse.AcceptanceReport
Verse.AcceptanceReport::op_Implicit(Verse.TaggedString value)
IL_0059: br => Label22
IL_005E: Label1
IL_005E: ldarg.0
IL_005F: ldarg.1
IL_0060: call static System.Boolean
AlienRace.ReproductionSettings::GenderReproductionCheck(Verse.Pawn pawn, Verse.Pawn
partnerPawn)
IL_0065: brtrue => Label2
IL_006A: ldstr "PawnsHaveSameGender"
IL_006F: ldarg.0
IL_0070: ldstr "PAWN1"
IL_0075: call static Verse.NamedArgument
Verse.NamedArgumentUtility::Named(System.Object arg, System.String label)
IL_007A: ldarg.1
IL_007B: ldstr "PAWN2"
IL_0080: call static Verse.NamedArgument
Verse.NamedArgumentUtility::Named(System.Object arg, System.String label)
IL_0085: call static Verse.TaggedString
Verse.TranslatorFormattedStringExtensions::Translate(System.String key,
Verse.NamedArgument arg1, Verse.NamedArgument arg2)
IL_008A: stloc.s 8 (Verse.TaggedString)
IL_008C: ldloca.s 8 (Verse.TaggedString)
IL_008E: call System.String Verse.TaggedString::Resolve()
IL_0093: call static Verse.AcceptanceReport
Verse.AcceptanceReport::op_Implicit(System.String value)
IL_0098: br => Label23
IL_009D: Label2
IL_009D: ldarg.0
IL_009E: ldc.i4.0
IL_009F: call static System.Boolean
AlienRace.ReproductionSettings::ApplicableGender(Verse.Pawn pawn, System.Boolean
gestating)
IL_00A4: brtrue => Label3
IL_00A9: ldarg.1
IL_00AA: br => Label4
IL_00AF: Label3
IL_00AF: ldarg.0
IL_00B0: Label4
IL_00B0: stloc.0
IL_00B1: ldarg.0
IL_00B2: ldc.i4.1
IL_00B3: call static System.Boolean
AlienRace.ReproductionSettings::ApplicableGender(Verse.Pawn pawn, System.Boolean
gestating)
IL_00B8: brtrue => Label5
IL_00BD: ldarg.1
IL_00BE: br => Label6
IL_00C3: Label5
IL_00C3: ldarg.0
IL_00C4: Label6
IL_00C4: stloc.1
IL_00C5: ldloc.0
IL_00C6: ldsfld RimWorld.StatDef RimWorld.StatDefOf::Fertility
IL_00CB: ldc.i4.1
IL_00CC: ldc.i4.m1
IL_00CD: call static System.Single
RimWorld.StatExtension::GetStatValue(Verse.Thing thing, RimWorld.StatDef stat,
System.Boolean applyPostProcess, System.Int32 cacheStaleAfterTicks)
IL_00D2: ldc.r4 0
IL_00D7: cgt.un
IL_00D9: ldc.i4.0
IL_00DA: ceq
IL_00DC: stloc.2
IL_00DD: ldloc.1
IL_00DE: ldsfld RimWorld.StatDef RimWorld.StatDefOf::Fertility
IL_00E3: ldc.i4.1
IL_00E4: ldc.i4.m1
IL_00E5: call static System.Single
RimWorld.StatExtension::GetStatValue(Verse.Thing thing, RimWorld.StatDef stat,
System.Boolean applyPostProcess, System.Int32 cacheStaleAfterTicks)
IL_00EA: ldc.r4 0
IL_00EF: cgt.un
IL_00F1: ldc.i4.0
IL_00F2: ceq
IL_00F4: stloc.3
IL_00F5: ldloc.2
IL_00F6: ldloc.3
IL_00F7: and
IL_00F8: brfalse => Label7
IL_00FD: ldstr "PawnsAreInfertile"
IL_0102: ldloc.0
IL_0103: ldstr "PAWN1"
IL_0108: call static Verse.NamedArgument
Verse.NamedArgumentUtility::Named(System.Object arg, System.String label)
IL_010D: ldloc.1
IL_010E: ldstr "PAWN2"
IL_0113: call static Verse.NamedArgument
Verse.NamedArgumentUtility::Named(System.Object arg, System.String label)
IL_0118: call static Verse.TaggedString
Verse.TranslatorFormattedStringExtensions::Translate(System.String key,
Verse.NamedArgument arg1, Verse.NamedArgument arg2)
IL_011D: stloc.s 8 (Verse.TaggedString)
IL_011F: ldloca.s 8 (Verse.TaggedString)
IL_0121: call System.String Verse.TaggedString::Resolve()
IL_0126: call static Verse.AcceptanceReport
Verse.AcceptanceReport::op_Implicit(System.String value)
IL_012B: br => Label24
IL_0130: Label7
IL_0130: ldloc.2
IL_0131: ldloc.3
IL_0132: beq => Label8
IL_0137: ldstr "PawnIsInfertile"
IL_013C: ldloc.2
IL_013D: brtrue => Label9
IL_0142: ldloc.1
IL_0143: br => Label10
IL_0148: Label9
IL_0148: ldloc.0
IL_0149: Label10
IL_0149: ldstr "PAWN"
IL_014E: call static Verse.NamedArgument
Verse.NamedArgumentUtility::Named(System.Object arg, System.String label)
IL_0153: call static Verse.TaggedString
Verse.TranslatorFormattedStringExtensions::Translate(System.String key,
Verse.NamedArgument arg1)
IL_0158: stloc.s 8 (Verse.TaggedString)
IL_015A: ldloca.s 8 (Verse.TaggedString)
IL_015C: call System.String Verse.TaggedString::Resolve()
IL_0161: call static Verse.AcceptanceReport
Verse.AcceptanceReport::op_Implicit(System.String value)
IL_0166: br => Label25
IL_016B: Label8
IL_016B: ldloc.0
IL_016C: ldfld Verse.Pawn_AgeTracker Verse.Pawn::ageTracker
IL_0171: callvirt RimWorld.LifeStageDef Verse.Pawn_AgeTracker::get_CurLifeStage()
IL_0176: ldfld System.Boolean RimWorld.LifeStageDef::reproductive
IL_017B: ldc.i4.0
IL_017C: ceq
IL_017E: stloc.s 4 (System.Boolean)
IL_0180: ldloc.1
IL_0181: ldfld Verse.Pawn_AgeTracker Verse.Pawn::ageTracker
IL_0186: callvirt RimWorld.LifeStageDef Verse.Pawn_AgeTracker::get_CurLifeStage()
IL_018B: ldfld System.Boolean RimWorld.LifeStageDef::reproductive
IL_0190: ldc.i4.0
IL_0191: ceq
IL_0193: stloc.s 5 (System.Boolean)
IL_0195: ldloc.s 4 (System.Boolean)
IL_0197: ldloc.s 5 (System.Boolean)
IL_0199: and
IL_019A: brfalse => Label11
IL_019F: ldstr "PawnsAreTooYoung"
IL_01A4: ldloc.0
IL_01A5: ldstr "PAWN1"
IL_01AA: call static Verse.NamedArgument
Verse.NamedArgumentUtility::Named(System.Object arg, System.String label)
IL_01AF: ldloc.1
IL_01B0: ldstr "PAWN2"
IL_01B5: call static Verse.NamedArgument
Verse.NamedArgumentUtility::Named(System.Object arg, System.String label)
IL_01BA: call static Verse.TaggedString
Verse.TranslatorFormattedStringExtensions::Translate(System.String key,
Verse.NamedArgument arg1, Verse.NamedArgument arg2)
IL_01BF: stloc.s 8 (Verse.TaggedString)
IL_01C1: ldloca.s 8 (Verse.TaggedString)
IL_01C3: call System.String Verse.TaggedString::Resolve()
IL_01C8: call static Verse.AcceptanceReport
Verse.AcceptanceReport::op_Implicit(System.String value)
IL_01CD: br => Label26
IL_01D2: Label11
IL_01D2: ldloc.s 4 (System.Boolean)
IL_01D4: ldloc.s 5 (System.Boolean)
IL_01D6: beq => Label12
IL_01DB: ldstr "PawnIsTooYoung"
IL_01E0: ldloc.s 4 (System.Boolean)
IL_01E2: brtrue => Label13
IL_01E7: ldloc.1
IL_01E8: br => Label14
IL_01ED: Label13
IL_01ED: ldloc.0
IL_01EE: Label14
IL_01EE: ldstr "PAWN"
IL_01F3: call static Verse.NamedArgument
Verse.NamedArgumentUtility::Named(System.Object arg, System.String label)
IL_01F8: call static Verse.TaggedString
Verse.TranslatorFormattedStringExtensions::Translate(System.String key,
Verse.NamedArgument arg1)
IL_01FD: stloc.s 8 (Verse.TaggedString)
IL_01FF: ldloca.s 8 (Verse.TaggedString)
IL_0201: call System.String Verse.TaggedString::Resolve()
IL_0206: call static Verse.AcceptanceReport
Verse.AcceptanceReport::op_Implicit(System.String value)
IL_020B: br => Label27
IL_0210: Label12
IL_0210: ldloc.1
IL_0211: ldc.i4.0
IL_0212: callvirt System.Boolean Verse.Pawn::Sterile(System.Boolean
forEmbryoImplantation)
IL_0217: brfalse => Label15
IL_021C: ldloc.1
IL_021D: call static Verse.Hediff
RimWorld.PregnancyUtility::GetPregnancyHediff(Verse.Pawn pawn)
IL_0222: ldnull
IL_0223: ceq
IL_0225: br => Label16
IL_022A: Label15
IL_022A: ldc.i4.0
IL_022B: Label16
IL_022B: stloc.s 6 (System.Boolean)
IL_022D: ldloc.0
IL_022E: ldc.i4.0
IL_022F: callvirt System.Boolean Verse.Pawn::Sterile(System.Boolean
forEmbryoImplantation)
IL_0234: stloc.s 7 (System.Boolean)
IL_0236: ldloc.s 7 (System.Boolean)
IL_0238: ldloc.s 6 (System.Boolean)
IL_023A: and
IL_023B: brfalse => Label17
IL_0240: ldstr "PawnsAreSterile"
IL_0245: ldloc.0
IL_0246: ldstr "PAWN1"
IL_024B: call static Verse.NamedArgument
Verse.NamedArgumentUtility::Named(System.Object arg, System.String label)
IL_0250: ldloc.1
IL_0251: ldstr "PAWN2"
IL_0256: call static Verse.NamedArgument
Verse.NamedArgumentUtility::Named(System.Object arg, System.String label)
IL_025B: call static Verse.TaggedString
Verse.TranslatorFormattedStringExtensions::Translate(System.String key,
Verse.NamedArgument arg1, Verse.NamedArgument arg2)
IL_0260: stloc.s 8 (Verse.TaggedString)
IL_0262: ldloca.s 8 (Verse.TaggedString)
IL_0264: call System.String Verse.TaggedString::Resolve()
IL_0269: call static Verse.AcceptanceReport
Verse.AcceptanceReport::op_Implicit(System.String value)
IL_026E: br => Label28
IL_0273: Label17
IL_0273: ldloc.s 7 (System.Boolean)
IL_0275: ldloc.s 6 (System.Boolean)
IL_0277: beq => Label18
IL_027C: ldstr "PawnIsSterile"
IL_0281: ldloc.s 7 (System.Boolean)
IL_0283: brtrue => Label19
IL_0288: ldloc.1
IL_0289: br => Label20
IL_028E: Label19
IL_028E: ldloc.0
IL_028F: Label20
IL_028F: ldstr "PAWN"
IL_0294: call static Verse.NamedArgument
Verse.NamedArgumentUtility::Named(System.Object arg, System.String label)
IL_0299: call static Verse.TaggedString
Verse.TranslatorFormattedStringExtensions::Translate(System.String key,
Verse.NamedArgument arg1)
IL_029E: stloc.s 8 (Verse.TaggedString)
IL_02A0: ldloca.s 8 (Verse.TaggedString)
IL_02A2: call System.String Verse.TaggedString::Resolve()
IL_02A7: call static Verse.AcceptanceReport
Verse.AcceptanceReport::op_Implicit(System.String value)
IL_02AC: br => Label29
IL_02B1: Label18
IL_02B1: ldc.i4.1
IL_02B2: call static Verse.AcceptanceReport
Verse.AcceptanceReport::op_Implicit(System.Boolean value)
IL_02B7: // end original
IL_02B7: Label21
IL_02B7: Label22
IL_02B7: Label23
IL_02B7: Label24
IL_02B7: Label25
IL_02B7: Label26
IL_02B7: Label27
IL_02B7: Label28
IL_02B7: Label29
IL_02B7: stloc 9 (Verse.AcceptanceReport)
IL_02BB: ldarg 0
IL_02BF: ldarg 1
IL_02C3: ldloca 9 (Verse.AcceptanceReport)
IL_02C7: call static System.Void
AlienRace.HarmonyPatches::CanEverProduceChildPostfix(Verse.Pawn first, Verse.Pawn
second, Verse.AcceptanceReport& __result)
IL_02CC: ldloc 9 (Verse.AcceptanceReport)
IL_02D0: ret
DONE

### Patch: virtual Verse.AcceptanceReport


RimWorld.Recipe_ExtractOvum::AvailableReport(Verse.Thing thing,
Verse.BodyPartRecord part)
### Replacement: static Verse.AcceptanceReport
RimWorld.Recipe_ExtractOvum::RimWorld.Recipe_ExtractOvum.AvailableReport_Patch1(Rim
World.Recipe_ExtractOvum this, Verse.Thing thing, Verse.BodyPartRecord part)
IL_0000: Local var 0: Verse.Pawn
IL_0000: Local var 1: System.Nullable`1<Verse.Gender>
IL_0000: Local var 2: Verse.AcceptanceReport
IL_0000: ldloca 2 (Verse.AcceptanceReport)
IL_0004: initobj Verse.AcceptanceReport
IL_000A: // start original
IL_000A: call static RimWorld.Storyteller Verse.Find::get_Storyteller()
IL_000F: ldfld RimWorld.Difficulty RimWorld.Storyteller::difficulty
IL_0014: callvirt System.Boolean RimWorld.Difficulty::get_ChildrenAllowed()
IL_0019: brtrue => Label0
IL_001E: ldc.i4.0
IL_001F: call static Verse.AcceptanceReport
Verse.AcceptanceReport::op_Implicit(System.Boolean value)
IL_0024: br => Label9
IL_0029: Label0
IL_0029: ldarg.1
IL_002A: isinst Verse.Pawn
IL_002F: dup
IL_0030: stloc.0
IL_0031: brtrue => Label1
IL_0036: ldc.i4.0
IL_0037: call static Verse.AcceptanceReport
Verse.AcceptanceReport::op_Implicit(System.Boolean value)
IL_003C: br => Label10
IL_0041: Label1
IL_0041: ldarg.0
IL_0042: ldfld Verse.RecipeDef Verse.RecipeWorker::recipe
IL_0047: ldfld System.Nullable`1<Verse.Gender>
Verse.RecipeDef::genderPrerequisite
IL_004C: stloc.1
IL_004D: ldloca.s 1 (System.Nullable`1[Verse.Gender])
IL_004F: call System.Boolean System.Nullable`1<Verse.Gender>::get_HasValue()
IL_0054: brtrue => Label2
IL_0059: ldloc.0
IL_005A: ldfld Verse.Gender Verse.Pawn::gender
IL_005F: br => Label3
IL_0064: Label2
IL_0064: ldloca.s 1 (System.Nullable`1[Verse.Gender])
IL_0066: call Verse.Gender
System.Nullable`1<Verse.Gender>::GetValueOrDefault()
IL_006B: Label3
IL_006B: ldloc.0
IL_006C: ldfld Verse.Gender Verse.Pawn::gender
IL_0071: beq => Label4
IL_0076: ldc.i4.0
IL_0077: call static Verse.AcceptanceReport
Verse.AcceptanceReport::op_Implicit(System.Boolean value)
IL_007C: br => Label11
IL_0081: Label4
IL_0081: ldloc.0
IL_0082: ldfld Verse.Pawn_HealthTracker Verse.Pawn::health
IL_0087: ldfld Verse.HediffSet Verse.Pawn_HealthTracker::hediffSet
IL_008C: ldsfld Verse.HediffDef RimWorld.HediffDefOf::PregnantHuman
IL_0091: ldc.i4.0
IL_0092: callvirt System.Boolean Verse.HediffSet::HasHediff(Verse.HediffDef def,
System.Boolean mustBeVisible)
IL_0097: brfalse => Label5
IL_009C: ldstr "CannotPregnant"
IL_00A1: call static Verse.TaggedString
Verse.Translator::Translate(System.String key)
IL_00A6: call static Verse.AcceptanceReport
Verse.AcceptanceReport::op_Implicit(Verse.TaggedString value)
IL_00AB: br => Label12
IL_00B0: Label5
IL_00B0: ldloc.0
IL_00B1: ldfld Verse.Pawn_AgeTracker Verse.Pawn::ageTracker
IL_00B6: callvirt System.Int32 Verse.Pawn_AgeTracker::get_AgeBiologicalYears()
IL_00BB: ldarg.0
IL_00BC: ldfld Verse.RecipeDef Verse.RecipeWorker::recipe
IL_00C1: ldfld System.Int32 Verse.RecipeDef::minAllowedAge
IL_00C6: bge => Label6
IL_00CB: ldstr "CannotMustBeAge"
IL_00D0: ldarg.0
IL_00D1: ldfld Verse.RecipeDef Verse.RecipeWorker::recipe
IL_00D6: ldfld System.Int32 Verse.RecipeDef::minAllowedAge
IL_00DB: call static Verse.NamedArgument
Verse.NamedArgument::op_Implicit(System.Int32 value)
IL_00E0: call static Verse.TaggedString
Verse.TranslatorFormattedStringExtensions::Translate(System.String key,
Verse.NamedArgument arg1)
IL_00E5: call static Verse.AcceptanceReport
Verse.AcceptanceReport::op_Implicit(Verse.TaggedString value)
IL_00EA: br => Label13
IL_00EF: Label6
IL_00EF: ldloc.0
IL_00F0: ldc.i4.0
IL_00F1: callvirt System.Boolean Verse.Pawn::Sterile(System.Boolean
forEmbryoImplantation)
IL_00F6: brfalse => Label7
IL_00FB: ldstr "CannotSterile"
IL_0100: call static Verse.TaggedString
Verse.Translator::Translate(System.String key)
IL_0105: call static Verse.AcceptanceReport
Verse.AcceptanceReport::op_Implicit(Verse.TaggedString value)
IL_010A: br => Label14
IL_010F: Label7
IL_010F: ldloc.0
IL_0110: ldfld Verse.Pawn_HealthTracker Verse.Pawn::health
IL_0115: ldfld Verse.HediffSet Verse.Pawn_HealthTracker::hediffSet
IL_011A: ldsfld Verse.HediffDef RimWorld.HediffDefOf::OvumExtracted
IL_011F: ldc.i4.0
IL_0120: callvirt System.Boolean Verse.HediffSet::HasHediff(Verse.HediffDef def,
System.Boolean mustBeVisible)
IL_0125: brfalse => Label8
IL_012A: ldstr "SurgeryDisableReasonOvumExtracted"
IL_012F: call static Verse.TaggedString
Verse.Translator::Translate(System.String key)
IL_0134: call static Verse.AcceptanceReport
Verse.AcceptanceReport::op_Implicit(Verse.TaggedString value)
IL_0139: br => Label15
IL_013E: Label8
IL_013E: ldarg.0
IL_013F: ldarg.1
IL_0140: ldarg.2
IL_0141: call virtual Verse.AcceptanceReport
Verse.RecipeWorker::AvailableReport(Verse.Thing thing, Verse.BodyPartRecord part)
IL_0146: // end original
IL_0146: Label9
IL_0146: Label10
IL_0146: Label11
IL_0146: Label12
IL_0146: Label13
IL_0146: Label14
IL_0146: Label15
IL_0146: stloc 2 (Verse.AcceptanceReport)
IL_014A: ldarg 1
IL_014E: ldloca 2 (Verse.AcceptanceReport)
IL_0152: call static System.Void
AlienRace.HarmonyPatches::ExtractOvumAvailableReportPostfix(Verse.Thing thing,
Verse.AcceptanceReport& __result)
IL_0157: ldloc 2 (Verse.AcceptanceReport)
IL_015B: ret
DONE

### Patch: Verse.AcceptanceReport RimWorld.HumanOvum::CanFertilizeReport(Verse.Pawn


pawn)
### Replacement: static Verse.AcceptanceReport
RimWorld.HumanOvum::RimWorld.HumanOvum.CanFertilizeReport_Patch1(RimWorld.HumanOvum
this, Verse.Pawn pawn)
IL_0000: Local var 0: Verse.TaggedString
IL_0000: Local var 1: Verse.AcceptanceReport
IL_0000: ldloca 1 (Verse.AcceptanceReport)
IL_0004: initobj Verse.AcceptanceReport
IL_000A: // start original
IL_000A: ldarg.1
IL_000B: ldfld Verse.Gender Verse.Pawn::gender
IL_0010: ldc.i4.1
IL_0011: beq => Label0
IL_0016: ldc.i4.0
IL_0017: call static Verse.AcceptanceReport
Verse.AcceptanceReport::op_Implicit(System.Boolean value)
IL_001C: br => Label7
IL_0021: Label0
IL_0021: ldarg.1
IL_0022: call static System.Boolean
RimWorld.QuestUtility::IsQuestLodger(Verse.Pawn p)
IL_0027: brfalse => Label1
IL_002C: ldc.i4.0
IL_002D: call static Verse.AcceptanceReport
Verse.AcceptanceReport::op_Implicit(System.Boolean value)
IL_0032: br => Label8
IL_0037: Label1
IL_0037: ldarg.1
IL_0038: ldarg.0
IL_0039: call static Verse.LocalTargetInfo
Verse.LocalTargetInfo::op_Implicit(Verse.Thing t)
IL_003E: ldc.i4.1
IL_003F: ldc.i4.3
IL_0040: ldc.i4.0
IL_0041: ldc.i4.0
IL_0042: ldc.i4.0
IL_0043: call static System.Boolean
Verse.ReachabilityUtility::CanReach(Verse.Pawn pawn, Verse.LocalTargetInfo dest,
Verse.AI.PathEndMode peMode, Verse.Danger maxDanger, System.Boolean canBashDoors,
System.Boolean canBashFences, Verse.TraverseMode mode)
IL_0048: brtrue => Label2
IL_004D: ldstr "NoPath"
IL_0052: call static Verse.TaggedString
Verse.Translator::Translate(System.String key)
IL_0057: call static Verse.AcceptanceReport
Verse.AcceptanceReport::op_Implicit(Verse.TaggedString value)
IL_005C: br => Label9
IL_0061: Label2
IL_0061: ldarg.1
IL_0062: ldfld Verse.Pawn_AgeTracker Verse.Pawn::ageTracker
IL_0067: callvirt System.Int32 Verse.Pawn_AgeTracker::get_AgeBiologicalYears()
IL_006C: conv.r4
IL_006D: ldc.r4 14
IL_0072: bge.un => Label3
IL_0077: ldstr "CannotMustBeAge"
IL_007C: ldc.r4 14
IL_0081: call static Verse.NamedArgument
Verse.NamedArgument::op_Implicit(System.Single value)
IL_0086: call static Verse.TaggedString
Verse.TranslatorFormattedStringExtensions::Translate(System.String key,
Verse.NamedArgument arg1)
IL_008B: stloc.0
IL_008C: ldloca.s 0 (Verse.TaggedString)
IL_008E: call Verse.TaggedString Verse.TaggedString::CapitalizeFirst()
IL_0093: call static Verse.AcceptanceReport
Verse.AcceptanceReport::op_Implicit(Verse.TaggedString value)
IL_0098: br => Label10
IL_009D: Label3
IL_009D: ldarg.1
IL_009E: ldc.i4.0
IL_009F: callvirt System.Boolean Verse.Pawn::Sterile(System.Boolean
forEmbryoImplantation)
IL_00A4: brfalse => Label4
IL_00A9: ldstr "CannotSterile"
IL_00AE: call static Verse.TaggedString
Verse.Translator::Translate(System.String key)
IL_00B3: call static Verse.AcceptanceReport
Verse.AcceptanceReport::op_Implicit(Verse.TaggedString value)
IL_00B8: br => Label11
IL_00BD: Label4
IL_00BD: ldarg.1
IL_00BE: callvirt System.Boolean Verse.Pawn::get_Downed()
IL_00C3: brtrue => Label5
IL_00C8: ldarg.1
IL_00C9: ldfld Verse.Pawn_HealthTracker Verse.Pawn::health
IL_00CE: ldfld Verse.PawnCapacitiesHandler
Verse.Pawn_HealthTracker::capacities
IL_00D3: ldsfld Verse.PawnCapacityDef RimWorld.PawnCapacityDefOf::Manipulation
IL_00D8: callvirt System.Boolean
Verse.PawnCapacitiesHandler::CapableOf(Verse.PawnCapacityDef capacity)
IL_00DD: brtrue => Label6
IL_00E2: Label5
IL_00E2: ldstr "Incapacitated"
IL_00E7: call static Verse.TaggedString
Verse.Translator::Translate(System.String key)
IL_00EC: stloc.0
IL_00ED: ldloca.s 0 (Verse.TaggedString)
IL_00EF: call Verse.TaggedString Verse.TaggedString::ToLower()
IL_00F4: call static Verse.AcceptanceReport
Verse.AcceptanceReport::op_Implicit(Verse.TaggedString value)
IL_00F9: br => Label12
IL_00FE: Label6
IL_00FE: ldc.i4.1
IL_00FF: call static Verse.AcceptanceReport
Verse.AcceptanceReport::op_Implicit(System.Boolean value)
IL_0104: // end original
IL_0104: Label7
IL_0104: Label8
IL_0104: Label9
IL_0104: Label10
IL_0104: Label11
IL_0104: Label12
IL_0104: stloc 1 (Verse.AcceptanceReport)
IL_0108: ldarg 1
IL_010C: ldloca 1 (Verse.AcceptanceReport)
IL_0110: call static System.Void
AlienRace.HarmonyPatches::HumanOvumCanFertilizeReportPostfix(Verse.Pawn pawn,
Verse.AcceptanceReport& __result)
IL_0115: ldloc 1 (Verse.AcceptanceReport)
IL_0119: ret
DONE

### Patch: System.Boolean RimWorld.HumanEmbryo::ImplantPawnValid(System.Boolean


cancel)
### Replacement: static System.Boolean
RimWorld.HumanEmbryo::RimWorld.HumanEmbryo.ImplantPawnValid_Patch1(RimWorld.HumanEm
bryo this, System.Boolean cancel)
IL_0000: Local var 0: Verse.Pawn
IL_0000: Local var 1: System.Collections.Generic.IEnumerator`1<RimWorld.Bill>
IL_0000: Local var 2: RimWorld.Bill_Medical
IL_0000: Local var 3: System.Collections.Generic.List`1/Enumerator<Verse.Thing>
IL_0000: Local var 4: Verse.Thing
IL_0000: Local var 5: System.Boolean
IL_0000: Local var 6: System.Boolean
IL_0000: Local var 7: System.Boolean
IL_0000: ldc.i4 0
IL_0005: stloc 6 (System.Boolean)
IL_0009: ldc.i4 0
IL_000E: stloc 7 (System.Boolean)
IL_0012: ldc.i4.1
IL_0013: stloc 7 (System.Boolean)
IL_0017: ldloc 7 (System.Boolean)
IL_001B: brfalse => Label1
IL_0020: ldarg.0
IL_0021: ldarga 1
IL_0025: call static System.Void
AlienRace.HarmonyPatches::EmbryoImplantPawnPrefix(RimWorld.HumanEmbryo __instance,
System.Boolean& cancel)
IL_002A: Label1
IL_002A: nop
IL_002B: ldloc 7 (System.Boolean)
IL_002F: brfalse => Label0
IL_0034: // start original
IL_0034: ldarg.0
IL_0035: ldfld Verse.Thing RimWorld.HumanEmbryo::implantTarget
IL_003A: isinst Verse.Pawn
IL_003F: dup
IL_0040: stloc.0
IL_0041: brfalse => Label2
IL_0046: ldloc.0
IL_0047: callvirt virtual RimWorld.BillStack Verse.Pawn::get_BillStack()
IL_004C: callvirt System.Collections.Generic.IEnumerator`1<RimWorld.Bill>
RimWorld.BillStack::GetEnumerator()
IL_0051: stloc.1
.try
{
IL_0052: br => Label3
IL_0057: Label13
IL_0057: ldloc.1
IL_0058: callvirt abstract virtual RimWorld.Bill
System.Collections.Generic.IEnumerator`1<RimWorld.Bill>::get_Current()
IL_005D: isinst RimWorld.Bill_Medical
IL_0062: dup
IL_0063: stloc.2
IL_0064: brfalse => Label4
IL_0069: ldloc.2
IL_006A: ldfld System.Collections.Generic.List`1<Verse.Thing>
RimWorld.Bill_Medical::uniqueRequiredIngredients
IL_006F: call static System.Boolean
Verse.GenList::NullOrEmpty(System.Collections.Generic.IList`1<Verse.Thing> list)
IL_0074: brtrue => Label5
IL_0079: ldloc.2
IL_007A: ldfld System.Collections.Generic.List`1<Verse.Thing>
RimWorld.Bill_Medical::uniqueRequiredIngredients
IL_007F: callvirt System.Collections.Generic.Enumerator<Verse.Thing>
System.Collections.Generic.List`1<Verse.Thing>::GetEnumerator()
IL_0084: stloc.3
.try
{
IL_0085: br => Label6
IL_008A: Label11
IL_008A: ldloca.s 3
(System.Collections.Generic.List`1+Enumerator[Verse.Thing])
IL_008C: call virtual Verse.Thing
System.Collections.Generic.Enumerator<Verse.Thing>::get_Current()
IL_0091: stloc.s 4 (Verse.Thing)
IL_0093: ldarg.0
IL_0094: ldloc.s 4 (Verse.Thing)
IL_0096: bne.un => Label7
IL_009B: ldarg.1
IL_009C: brfalse => Label8
IL_00A1: ldloc.2
IL_00A2: ldfld RimWorld.BillStack RimWorld.Bill::billStack
IL_00A7: ldloc.2
IL_00A8: callvirt System.Void
RimWorld.BillStack::Delete(RimWorld.Bill bill)
IL_00AD: ldarg.0
IL_00AE: ldnull
IL_00AF: stfld Verse.Thing RimWorld.HumanEmbryo::implantTarget
IL_00B4: ldc.i4.0
IL_00B5: stloc.s 5 (System.Boolean)
IL_00B7: leave => Label9
IL_00BC: Label8
IL_00BC: ldc.i4.1
IL_00BD: stloc.s 5 (System.Boolean)
IL_00BF: leave => Label10
IL_00C4: Label6
IL_00C4: Label7
IL_00C4: ldloca.s 3
(System.Collections.Generic.List`1+Enumerator[Verse.Thing])
IL_00C6: call virtual System.Boolean
System.Collections.Generic.Enumerator<Verse.Thing>::MoveNext()
IL_00CB: brtrue => Label11
IL_00D0: leave => Label12
IL_00D5: leave => (autogenerated)
} // end try
.finally
{
IL_00DA: ldloca.s 3
(System.Collections.Generic.List`1+Enumerator[Verse.Thing])
IL_00DC: constrained.
System.Collections.Generic.List`1+Enumerator[Verse.Thing]
IL_00E2: callvirt abstract virtual System.Void
System.IDisposable::Dispose()
IL_00E7: endfinally
IL_00E8: leave => (autogenerated)
} // end handler
IL_00E9: Label3
IL_00E9: Label4
IL_00E9: Label5
IL_00E9: Label12
IL_00E9: ldloc.1
IL_00EA: callvirt abstract virtual System.Boolean
System.Collections.IEnumerator::MoveNext()
IL_00EF: brtrue => Label13
IL_00F4: leave => Label14
IL_00F9: leave => (autogenerated)
} // end try
.finally
{
IL_00FE: ldloc.1
IL_00FF: brfalse => Label15
IL_0104: ldloc.1
IL_0105: callvirt abstract virtual System.Void
System.IDisposable::Dispose()
IL_010A: Label15
IL_010A: endfinally
IL_010B: leave => (autogenerated)
} // end handler
IL_010C: Label2
IL_010C: Label14
IL_010C: ldc.i4.0
IL_010D: br => Label24
IL_0112: Label9
IL_0112: Label10
IL_0112: ldloc.s 5 (System.Boolean)
IL_0114: // end original
IL_0114: Label24
IL_0114: stloc 6 (System.Boolean)
IL_0118: Label0
IL_0118: ldloc 6 (System.Boolean)
IL_011C: ret
DONE

### Patch: Verse.AcceptanceReport RimWorld.HumanEmbryo::CanImplantReport(Verse.Pawn


pawn)
### Replacement: static Verse.AcceptanceReport
RimWorld.HumanEmbryo::RimWorld.HumanEmbryo.CanImplantReport_Patch1(RimWorld.HumanEm
bryo this, Verse.Pawn pawn)
IL_0000: Local var 0: System.Collections.Generic.HashSet`1<Verse.Pawn>
IL_0000: Local var 1: Verse.Pawn
IL_0000: Local var 2: Verse.TaggedString
IL_0000: Local var 3: Verse.AcceptanceReport
IL_0000: ldloca 3 (Verse.AcceptanceReport)
IL_0004: initobj Verse.AcceptanceReport
IL_000A: // start original
IL_000A: ldarg.1
IL_000B: ldfld Verse.Gender Verse.Pawn::gender
IL_0010: ldc.i4.2
IL_0011: beq => Label0
IL_0016: ldc.i4.0
IL_0017: call static Verse.AcceptanceReport
Verse.AcceptanceReport::op_Implicit(System.Boolean value)
IL_001C: br => Label8
IL_0021: Label0
IL_0021: ldarg.1
IL_0022: call static System.Boolean
RimWorld.QuestUtility::IsQuestLodger(Verse.Pawn p)
IL_0027: brfalse => Label1
IL_002C: ldc.i4.0
IL_002D: call static Verse.AcceptanceReport
Verse.AcceptanceReport::op_Implicit(System.Boolean value)
IL_0032: br => Label9
IL_0037: Label1
IL_0037: newobj System.Void
System.Collections.Generic.HashSet`1<Verse.Pawn>::.ctor()
IL_003C: stloc.0
IL_003D: ldarg.0
IL_003E: call virtual Verse.Map Verse.Thing::get_Map()
IL_0043: ldfld Verse.AI.ReservationManager Verse.Map::reservationManager
IL_0048: ldarg.1
IL_0049: call static Verse.LocalTargetInfo
Verse.LocalTargetInfo::op_Implicit(Verse.Thing t)
IL_004E: ldloc.0
IL_004F: callvirt System.Void
Verse.AI.ReservationManager::ReserversOf(Verse.LocalTargetInfo target,
System.Collections.Generic.HashSet`1<Verse.Pawn> reserversOut)
IL_0054: ldloc.0
IL_0055: call static System.Boolean
Verse.GenCollection::Any(System.Collections.Generic.HashSet`1<Verse.Pawn> list)
IL_005A: brfalse => Label2
IL_005F: ldloc.0
IL_0060: call static Verse.Pawn
System.Linq.Enumerable::First(System.Collections.Generic.IEnumerable`1<Verse.Pawn>
source)
IL_0065: stloc.1
IL_0066: ldstr "ReservedBy"
IL_006B: ldloc.1
IL_006C: callvirt virtual System.String Verse.Entity::get_LabelShort()
IL_0071: call static Verse.NamedArgument
Verse.NamedArgument::op_Implicit(System.String value)
IL_0076: ldloc.1
IL_0077: call static Verse.NamedArgument
Verse.NamedArgument::op_Implicit(Verse.Thing value)
IL_007C: call static Verse.TaggedString
Verse.TranslatorFormattedStringExtensions::Translate(System.String key,
Verse.NamedArgument arg1, Verse.NamedArgument arg2)
IL_0081: call static Verse.AcceptanceReport
Verse.AcceptanceReport::op_Implicit(Verse.TaggedString value)
IL_0086: br => Label10
IL_008B: Label2
IL_008B: ldarg.1
IL_008C: callvirt virtual RimWorld.BillStack Verse.Pawn::get_BillStack()
IL_0091: callvirt System.Collections.Generic.List`1<RimWorld.Bill>
RimWorld.BillStack::get_Bills()
IL_0096: ldsfld System.Predicate`1<RimWorld.Bill> RimWorld.<>c::<>9__18_0
IL_009B: dup
IL_009C: brtrue => Label3
IL_00A1: pop
IL_00A2: ldsfld RimWorld.<>c RimWorld.<>c::<>9
IL_00A7: ldftn System.Boolean
RimWorld.<>c::<CanImplantReport>b__18_0(RimWorld.Bill b)
IL_00AD: newobj System.Void
System.Predicate`1<RimWorld.Bill>::.ctor(System.Object object, System.IntPtr
method)
IL_00B2: dup
IL_00B3: stsfld System.Predicate`1<RimWorld.Bill> RimWorld.<>c::<>9__18_0
IL_00B8: Label3
IL_00B8: call static System.Boolean
Verse.GenCollection::Any(System.Collections.Generic.List`1<RimWorld.Bill> list,
System.Predicate`1<RimWorld.Bill> predicate)
IL_00BD: brfalse => Label4
IL_00C2: ldstr "CannotImplantingOtherEmbryo"
IL_00C7: call static Verse.TaggedString
Verse.Translator::Translate(System.String key)
IL_00CC: call static Verse.AcceptanceReport
Verse.AcceptanceReport::op_Implicit(Verse.TaggedString value)
IL_00D1: br => Label11
IL_00D6: Label4
IL_00D6: ldarg.1
IL_00D7: ldfld Verse.Pawn_AgeTracker Verse.Pawn::ageTracker
IL_00DC: callvirt System.Int32 Verse.Pawn_AgeTracker::get_AgeBiologicalYears()
IL_00E1: ldc.i4.s 16
IL_00E3: bge => Label5
IL_00E8: ldstr "CannotMustBeAge"
IL_00ED: ldc.i4.s 16
IL_00EF: call static Verse.NamedArgument
Verse.NamedArgument::op_Implicit(System.Int32 value)
IL_00F4: call static Verse.TaggedString
Verse.TranslatorFormattedStringExtensions::Translate(System.String key,
Verse.NamedArgument arg1)
IL_00F9: stloc.2
IL_00FA: ldloca.s 2 (Verse.TaggedString)
IL_00FC: call Verse.TaggedString Verse.TaggedString::CapitalizeFirst()
IL_0101: call static Verse.AcceptanceReport
Verse.AcceptanceReport::op_Implicit(Verse.TaggedString value)
IL_0106: br => Label12
IL_010B: Label5
IL_010B: ldarg.1
IL_010C: ldfld Verse.Pawn_HealthTracker Verse.Pawn::health
IL_0111: ldfld Verse.HediffSet Verse.Pawn_HealthTracker::hediffSet
IL_0116: ldsfld Verse.HediffDef RimWorld.HediffDefOf::PregnantHuman
IL_011B: ldc.i4.0
IL_011C: callvirt System.Boolean Verse.HediffSet::HasHediff(Verse.HediffDef def,
System.Boolean mustBeVisible)
IL_0121: brfalse => Label6
IL_0126: ldstr "CannotPregnant"
IL_012B: call static Verse.TaggedString
Verse.Translator::Translate(System.String key)
IL_0130: call static Verse.AcceptanceReport
Verse.AcceptanceReport::op_Implicit(Verse.TaggedString value)
IL_0135: br => Label13
IL_013A: Label6
IL_013A: ldarg.1
IL_013B: ldc.i4.1
IL_013C: callvirt System.Boolean Verse.Pawn::Sterile(System.Boolean
forEmbryoImplantation)
IL_0141: brfalse => Label7
IL_0146: ldstr "CannotSterile"
IL_014B: call static Verse.TaggedString
Verse.Translator::Translate(System.String key)
IL_0150: call static Verse.AcceptanceReport
Verse.AcceptanceReport::op_Implicit(Verse.TaggedString value)
IL_0155: br => Label14
IL_015A: Label7
IL_015A: ldc.i4.1
IL_015B: call static Verse.AcceptanceReport
Verse.AcceptanceReport::op_Implicit(System.Boolean value)
IL_0160: // end original
IL_0160: Label8
IL_0160: Label9
IL_0160: Label10
IL_0160: Label11
IL_0160: Label12
IL_0160: Label13
IL_0160: Label14
IL_0160: stloc 3 (Verse.AcceptanceReport)
IL_0164: ldarg.0
IL_0165: ldarg 1
IL_0169: ldloca 3 (Verse.AcceptanceReport)
IL_016D: call static System.Void
AlienRace.HarmonyPatches::EmbryoImplantReportPostfix(RimWorld.HumanEmbryo
__instance, Verse.Pawn pawn, Verse.AcceptanceReport& __result)
IL_0172: ldloc 3 (Verse.AcceptanceReport)
IL_0176: ret
DONE

### Patch: virtual System.Void


RimWorld.LifeStageWorker_HumanlikeChild::Notify_LifeStageStarted(Verse.Pawn pawn,
RimWorld.LifeStageDef previousLifeStage)
### Replacement: static System.Void
RimWorld.LifeStageWorker_HumanlikeChild::RimWorld.LifeStageWorker_HumanlikeChild.No
tify_LifeStageStarted_Patch1(RimWorld.LifeStageWorker_HumanlikeChild this,
Verse.Pawn pawn, RimWorld.LifeStageDef previousLifeStage)
IL_0000: Local var 0: System.Boolean
IL_0000: Local var 1:
System.Collections.Generic.List`1<RimWorld.BackstoryCategoryFilter>
IL_0000: Local var 2: RimWorld.BodyTypeDef
IL_0000: Local var 3: Verse.Pawn
IL_0000: Local var 4: Verse.Pawn
IL_0000: Local var 5: System.Collections.Generic.List`1<Verse.WorkTypeDef>
IL_0000: Local var 6:
System.Collections.Generic.List`1<Verse.LifeStageWorkSettings>
IL_0000: Local var 7: Verse.TaggedString
IL_0000: Local var 8: System.Int32
IL_0000: Local var 9: RimWorld.ChoiceLetter_BabyToChild
IL_0000: Local var 10: Verse.ChoiceLetter
IL_0000: Local var 11: System.Nullable`1<RimWorld.BackstorySlot>
IL_0000: // start original
IL_0000: ldarg.0
IL_0001: ldarg.1
IL_0002: ldarg.2
IL_0003: call virtual System.Void
RimWorld.LifeStageWorker::Notify_LifeStageStarted(Verse.Pawn pawn,
RimWorld.LifeStageDef previousLifeStage)
IL_0008: call static Verse.ProgramState Verse.Current::get_ProgramState()
IL_000D: ldc.i4.2
IL_000E: beq => Label0
IL_0013: br => Label36
IL_0018: Label0
IL_0018: ldarg.2
IL_0019: brtrue => Label1
IL_001E: ldc.i4.1
IL_001F: br => Label2
IL_0024: Label1
IL_0024: ldarg.2
IL_0025: ldfld Verse.DevelopmentalStage
RimWorld.LifeStageDef::developmentalStage
IL_002A: call static System.Boolean
Verse.DevelopmentalStageExtensions::Baby(Verse.DevelopmentalStage
developmentalStage)
IL_002F: ldc.i4.0
IL_0030: ceq
IL_0032: Label2
IL_0032: brfalse => Label3
IL_0037: br => Label37
IL_003C: Label3
IL_003C: ldarg.1
IL_003D: ldfld RimWorld.Pawn_StoryTracker Verse.Pawn::story
IL_0042: ldfld RimWorld.BodyTypeDef RimWorld.Pawn_StoryTracker::bodyType
IL_0047: ldsfld RimWorld.BodyTypeDef RimWorld.BodyTypeDefOf::Child
IL_004C: beq => Label4
IL_0051: ldarg.1
IL_0052: ldfld RimWorld.Pawn_ApparelTracker Verse.Pawn::apparel
IL_0057: dup
IL_0058: brtrue => Label5
IL_005D: pop
IL_005E: br => Label6
IL_0063: Label5
IL_0063: ldsfld System.Predicate`1<RimWorld.Apparel> RimWorld.<>c::<>9__2_0
IL_0068: dup
IL_0069: brtrue => Label7
IL_006E: pop
IL_006F: ldsfld RimWorld.<>c RimWorld.<>c::<>9
IL_0074: ldftn System.Boolean
RimWorld.<>c::<Notify_LifeStageStarted>b__2_0(RimWorld.Apparel apparel)
IL_007A: newobj System.Void
System.Predicate`1<RimWorld.Apparel>::.ctor(System.Object object, System.IntPtr
method)
IL_007F: dup
IL_0080: stsfld System.Predicate`1<RimWorld.Apparel> RimWorld.<>c::<>9__2_0
IL_0085: Label7
IL_0085: call System.Void
RimWorld.Pawn_ApparelTracker::DropAllOrMoveAllToInventory(System.Predicate`1<RimWor
ld.Apparel> selector)
IL_008A: Label6
IL_008A: ldarg.1
IL_008B: call static RimWorld.BodyTypeDef
Verse.PawnGenerator::GetBodyTypeFor(Verse.Pawn pawn)
IL_0090: stloc.2
IL_0091: ldarg.1
IL_0092: ldfld RimWorld.Pawn_StoryTracker Verse.Pawn::story
IL_0097: ldloc.2
IL_0098: stfld RimWorld.BodyTypeDef RimWorld.Pawn_StoryTracker::bodyType
IL_009D: ldarg.1
IL_009E: callvirt Verse.Pawn_DrawTracker Verse.Pawn::get_Drawer()
IL_00A3: ldfld Verse.PawnRenderer Verse.Pawn_DrawTracker::renderer
IL_00A8: ldfld Verse.PawnGraphicSet Verse.PawnRenderer::graphics
IL_00AD: callvirt System.Void Verse.PawnGraphicSet::SetAllGraphicsDirty()
IL_00B2: Label4
IL_00B2: call static System.Boolean Verse.ModsConfig::get_IdeologyActive()
IL_00B7: brfalse => Label8
IL_00BC: ldarg.1
IL_00BD: callvirt virtual RimWorld.Faction Verse.Thing::get_Faction()
IL_00C2: brfalse => Label9
IL_00C7: ldarg.1
IL_00C8: call static Verse.Pawn
RimWorld.ParentRelationUtility::GetMother(Verse.Pawn pawn)
IL_00CD: stloc.3
IL_00CE: ldloc.3
IL_00CF: brtrue => Label10
IL_00D4: ldnull
IL_00D5: br => Label11
IL_00DA: Label10
IL_00DA: ldloc.3
IL_00DB: call virtual RimWorld.Faction Verse.Thing::get_Faction()
IL_00E0: Label11
IL_00E0: ldarg.1
IL_00E1: callvirt virtual RimWorld.Faction Verse.Thing::get_Faction()
IL_00E6: beq => Label12
IL_00EB: ldarg.1
IL_00EC: call static Verse.Pawn
RimWorld.ParentRelationUtility::GetFather(Verse.Pawn pawn)
IL_00F1: dup
IL_00F2: stloc.s 4 (Verse.Pawn)
IL_00F4: brfalse => Label13
IL_00F9: ldloc.s 4 (Verse.Pawn)
IL_00FB: callvirt virtual RimWorld.Faction Verse.Thing::get_Faction()
IL_0100: ldarg.1
IL_0101: callvirt virtual RimWorld.Faction Verse.Thing::get_Faction()
IL_0106: bne.un => Label14
IL_010B: ldloc.s 4 (Verse.Pawn)
IL_010D: stloc.3
IL_010E: br => Label15
IL_0113: Label13
IL_0113: Label14
IL_0113: ldnull
IL_0114: stloc.3
IL_0115: Label12
IL_0115: Label15
IL_0115: ldloc.3
IL_0116: brfalse => Label16
IL_011B: ldloc.3
IL_011C: call System.Boolean Verse.Pawn::get_IsSlave()
IL_0121: brfalse => Label17
IL_0126: ldarg.1
IL_0127: ldfld RimWorld.Pawn_GuestTracker Verse.Pawn::guest
IL_012C: ldarg.1
IL_012D: callvirt virtual RimWorld.Faction Verse.Thing::get_Faction()
IL_0132: ldc.i4.2
IL_0133: callvirt System.Void
RimWorld.Pawn_GuestTracker::SetGuestStatus(RimWorld.Faction newHost,
RimWorld.GuestStatus guestStatus)
IL_0138: Label8
IL_0138: Label9
IL_0138: Label16
IL_0138: Label17
IL_0138: ldarg.1
IL_0139: callvirt RimWorld.Ideo Verse.Pawn::get_Ideo()
IL_013E: brtrue => Label18
IL_0143: ldarg.1
IL_0144: ldfld RimWorld.Pawn_IdeoTracker Verse.Pawn::ideo
IL_0149: callvirt System.Boolean
RimWorld.Pawn_IdeoTracker::TryJoinIdeoFromExposures()
IL_014E: br => Label19
IL_0153: Label18
IL_0153: ldc.i4.0
IL_0154: Label19
IL_0154: stloc.0
IL_0155: call static System.Boolean Verse.ModsConfig::get_IdeologyActive()
IL_015A: brtrue => Label20
IL_015F: ldc.i4.0
IL_0160: stloc.0
IL_0161: Label20
IL_0161: ldarg.1
IL_0162: call static System.Boolean
RimWorld.PawnUtility::ShouldSendNotificationAbout(Verse.Pawn p)
IL_0167: brfalse => Label21
IL_016C: newobj System.Void
System.Collections.Generic.List`1<Verse.WorkTypeDef>::.ctor()
IL_0171: stloc.s 5 (System.Collections.Generic.List`1[Verse.WorkTypeDef])
IL_0173: ldarg.1
IL_0174: callvirt Verse.RaceProperties Verse.Pawn::get_RaceProps()
IL_0179: ldfld System.Collections.Generic.List`1<Verse.LifeStageWorkSettings>
Verse.RaceProperties::lifeStageWorkSettings
IL_017E: stloc.s 6
(System.Collections.Generic.List`1[Verse.LifeStageWorkSettings])
IL_0180: ldc.i4.0
IL_0181: stloc.s 8 (System.Int32)
IL_0183: br => Label22
IL_0188: Label24
IL_0188: ldloc.s 6
(System.Collections.Generic.List`1[Verse.LifeStageWorkSettings])
IL_018A: ldloc.s 8 (System.Int32)
IL_018C: callvirt virtual Verse.LifeStageWorkSettings
System.Collections.Generic.List`1<Verse.LifeStageWorkSettings>::get_Item(System.Int
32 index)
IL_0191: ldfld System.Int32 Verse.LifeStageWorkSettings::minAge
IL_0196: ldarg.1
IL_0197: ldfld Verse.Pawn_AgeTracker Verse.Pawn::ageTracker
IL_019C: callvirt System.Int32 Verse.Pawn_AgeTracker::get_AgeBiologicalYears()
IL_01A1: bgt => Label23
IL_01A6: ldloc.s 5 (System.Collections.Generic.List`1[Verse.WorkTypeDef])
IL_01A8: ldloc.s 6
(System.Collections.Generic.List`1[Verse.LifeStageWorkSettings])
IL_01AA: ldloc.s 8 (System.Int32)
IL_01AC: callvirt virtual Verse.LifeStageWorkSettings
System.Collections.Generic.List`1<Verse.LifeStageWorkSettings>::get_Item(System.Int
32 index)
IL_01B1: ldfld Verse.WorkTypeDef Verse.LifeStageWorkSettings::workType
IL_01B6: callvirt virtual System.Void
System.Collections.Generic.List`1<Verse.WorkTypeDef>::Add(Verse.WorkTypeDef item)
IL_01BB: Label23
IL_01BB: ldloc.s 8 (System.Int32)
IL_01BD: ldc.i4.1
IL_01BE: add
IL_01BF: stloc.s 8 (System.Int32)
IL_01C1: Label22
IL_01C1: ldloc.s 8 (System.Int32)
IL_01C3: ldloc.s 6
(System.Collections.Generic.List`1[Verse.LifeStageWorkSettings])
IL_01C5: callvirt virtual System.Int32
System.Collections.Generic.List`1<Verse.LifeStageWorkSettings>::get_Count()
IL_01CA: blt => Label24
IL_01CF: ldstr "LetterBecameChild"
IL_01D4: ldarg.1
IL_01D5: call static Verse.NamedArgument
Verse.NamedArgument::op_Implicit(Verse.Thing value)
IL_01DA: call static Verse.TaggedString
Verse.TranslatorFormattedStringExtensions::Translate(System.String key,
Verse.NamedArgument arg1)
IL_01DF: ldstr "\n\n"
IL_01E4: call static Verse.TaggedString
Verse.TaggedString::op_Addition(Verse.TaggedString t1, System.String t2)
IL_01E9: ldloc.s 5 (System.Collections.Generic.List`1[Verse.WorkTypeDef])
IL_01EB: ldsfld System.Func`2<Verse.WorkTypeDef, System.String>
RimWorld.<>c::<>9__2_1
IL_01F0: dup
IL_01F1: brtrue => Label25
IL_01F6: pop
IL_01F7: ldsfld RimWorld.<>c RimWorld.<>c::<>9
IL_01FC: ldftn System.String
RimWorld.<>c::<Notify_LifeStageStarted>b__2_1(Verse.WorkTypeDef wt)
IL_0202: newobj System.Void System.Func`2<Verse.WorkTypeDef,
System.String>::.ctor(System.Object object, System.IntPtr method)
IL_0207: dup
IL_0208: stsfld System.Func`2<Verse.WorkTypeDef, System.String>
RimWorld.<>c::<>9__2_1
IL_020D: Label25
IL_020D: call static System.Collections.Generic.IEnumerable`1<System.String>
System.Linq.Enumerable::Select(System.Collections.Generic.IEnumerable`1<Verse.WorkT
ypeDef> source, System.Func`2<Verse.WorkTypeDef, System.String> selector)
IL_0212: ldstr " - "
IL_0217: ldc.i4.0
IL_0218: call static System.String
Verse.GenText::ToLineList(System.Collections.Generic.IEnumerable`1<System.String>
entries, System.String prefix, System.Boolean capitalizeItems)
IL_021D: call static Verse.TaggedString
Verse.TaggedString::op_Addition(Verse.TaggedString t1, System.String t2)
IL_0222: ldstr "\n\n"
IL_0227: call static Verse.TaggedString
Verse.TaggedString::op_Addition(Verse.TaggedString t1, System.String t2)
IL_022C: ldstr "LetterBecameChildChanges"
IL_0231: call static Verse.TaggedString
Verse.Translator::Translate(System.String key)
IL_0236: call static Verse.TaggedString
Verse.TaggedString::op_Addition(Verse.TaggedString t1, Verse.TaggedString t2)
IL_023B: stloc.s 7 (Verse.TaggedString)
IL_023D: call static System.Boolean Verse.ModsConfig::get_IdeologyActive()
IL_0242: brfalse => Label26
IL_0247: ldloc.s 7 (Verse.TaggedString)
IL_0249: ldstr "\n\n"
IL_024E: ldloc.0
IL_024F: brfalse => Label27
IL_0254: call static RimWorld.IdeoManager Verse.Find::get_IdeoManager()
IL_0259: ldfld System.Boolean RimWorld.IdeoManager::classicMode
IL_025E: brfalse => Label28
IL_0263: Label27
IL_0263: call static Verse.TaggedString Verse.TaggedString::get_Empty()
IL_0268: br => Label29
IL_026D: Label28
IL_026D: ldstr "LetterChildFollowIdeo"
IL_0272: ldarg.1
IL_0273: call static Verse.NamedArgument
Verse.NamedArgument::op_Implicit(Verse.Thing value)
IL_0278: ldarg.1
IL_0279: callvirt RimWorld.Ideo Verse.Pawn::get_Ideo()
IL_027E: call static Verse.NamedArgument
Verse.NamedArgument::op_Implicit(RimWorld.Ideo value)
IL_0283: call static Verse.TaggedString
Verse.TranslatorFormattedStringExtensions::Translate(System.String key,
Verse.NamedArgument arg1, Verse.NamedArgument arg2)
IL_0288: ldstr "\n\n"
IL_028D: call static Verse.TaggedString
Verse.TaggedString::op_Addition(Verse.TaggedString t1, System.String t2)
IL_0292: Label29
IL_0292: call static Verse.TaggedString
Verse.TaggedString::op_Addition(System.String t1, Verse.TaggedString t2)
IL_0297: ldstr "LetterChildLegalStatus"
IL_029C: ldarg.1
IL_029D: call static Verse.NamedArgument
Verse.NamedArgument::op_Implicit(Verse.Thing value)
IL_02A2: call static Verse.TaggedString
Verse.TranslatorFormattedStringExtensions::Translate(System.String key,
Verse.NamedArgument arg1)
IL_02A7: call static Verse.TaggedString
Verse.TaggedString::op_Addition(Verse.TaggedString t1, Verse.TaggedString t2)
IL_02AC: call static Verse.TaggedString
Verse.TaggedString::op_Addition(Verse.TaggedString t1, Verse.TaggedString t2)
IL_02B1: stloc.s 7 (Verse.TaggedString)
IL_02B3: ldstr "LetterLabelBecameChild"
IL_02B8: ldarg.1
IL_02B9: call static Verse.NamedArgument
Verse.NamedArgument::op_Implicit(Verse.Thing value)
IL_02BE: call static Verse.TaggedString
Verse.TranslatorFormattedStringExtensions::Translate(System.String key,
Verse.NamedArgument arg1)
IL_02C3: ldloc.s 7 (Verse.TaggedString)
IL_02C5: ldsfld Verse.LetterDef RimWorld.LetterDefOf::BabyToChild
IL_02CA: ldarg.1
IL_02CB: call static Verse.LookTargets
Verse.LookTargets::op_Implicit(Verse.Thing t)
IL_02D0: ldnull
IL_02D1: ldnull
IL_02D2: ldnull
IL_02D3: call static Verse.ChoiceLetter
Verse.LetterMaker::MakeLetter(Verse.TaggedString label, Verse.TaggedString text,
Verse.LetterDef def, Verse.LookTargets lookTargets, RimWorld.Faction
relatedFaction, RimWorld.Quest quest,
System.Collections.Generic.List`1<Verse.ThingDef> hyperlinkThingDefs)
IL_02D8: castclass RimWorld.ChoiceLetter_BabyToChild
IL_02DD: stloc.s 9 (RimWorld.ChoiceLetter_BabyToChild)
IL_02DF: ldloc.s 9 (RimWorld.ChoiceLetter_BabyToChild)
IL_02E1: callvirt System.Void RimWorld.ChoiceLetter_BabyToChild::Start()
IL_02E6: call static Verse.LetterStack Verse.Find::get_LetterStack()
IL_02EB: ldloc.s 9 (RimWorld.ChoiceLetter_BabyToChild)
IL_02ED: ldnull
IL_02EE: callvirt System.Void Verse.LetterStack::ReceiveLetter(Verse.Letter let,
System.String debugInfo)
IL_02F3: br => Label30
IL_02F8: Label26
IL_02F8: ldstr "LetterLabelBecameChild"
IL_02FD: ldarg.1
IL_02FE: call static Verse.NamedArgument
Verse.NamedArgument::op_Implicit(Verse.Thing value)
IL_0303: call static Verse.TaggedString
Verse.TranslatorFormattedStringExtensions::Translate(System.String key,
Verse.NamedArgument arg1)
IL_0308: ldloc.s 7 (Verse.TaggedString)
IL_030A: ldsfld Verse.LetterDef RimWorld.LetterDefOf::PositiveEvent
IL_030F: ldarg.1
IL_0310: call static Verse.LookTargets
Verse.LookTargets::op_Implicit(Verse.Thing t)
IL_0315: ldnull
IL_0316: ldnull
IL_0317: ldnull
IL_0318: call static Verse.ChoiceLetter
Verse.LetterMaker::MakeLetter(Verse.TaggedString label, Verse.TaggedString text,
Verse.LetterDef def, Verse.LookTargets lookTargets, RimWorld.Faction
relatedFaction, RimWorld.Quest quest,
System.Collections.Generic.List`1<Verse.ThingDef> hyperlinkThingDefs)
IL_031D: stloc.s 10 (Verse.ChoiceLetter)
IL_031F: call static Verse.LetterStack Verse.Find::get_LetterStack()
IL_0324: ldloc.s 10 (Verse.ChoiceLetter)
IL_0326: ldnull
IL_0327: callvirt System.Void Verse.LetterStack::ReceiveLetter(Verse.Letter let,
System.String debugInfo)
IL_032C: Label30
IL_032C: ldarg.1
IL_032D: callvirt System.Boolean Verse.Thing::get_Spawned()
IL_0332: brfalse => Label31
IL_0337: ldsfld Verse.EffecterDef RimWorld.EffecterDefOf::Birthday
IL_033C: ldarg.1
IL_033D: ldarg.1
IL_033E: callvirt virtual Verse.Map Verse.Thing::get_Map()
IL_0343: ldc.r4 1
IL_0348: callvirt Verse.Effecter Verse.EffecterDef::SpawnAttached(Verse.Thing
target, Verse.Map map, System.Single scale)
IL_034D: pop
IL_034E: Label21
IL_034E: Label31
IL_034E: ldsfld
System.Collections.Generic.List`1<RimWorld.BackstoryCategoryFilter>
RimWorld.LifeStageWorker_HumanlikeChild::ChildBackstoryFilters
IL_0353: ldarg.1
IL_0354: ldc.i4.0
IL_0355: call static
System.Collections.Generic.List`1<RimWorld.BackstoryCategoryFilter>
AlienRace.HarmonyPatches::LifeStageStartedHelper(System.Collections.Generic.List`1<
RimWorld.BackstoryCategoryFilter> filters, Verse.Pawn pawn, System.Int32
backstoryKind)
IL_035A: stloc.1
IL_035B: ldarg.1
IL_035C: callvirt System.Boolean Verse.Pawn::get_IsColonist()
IL_0361: brfalse => Label32
IL_0366: call static RimWorld.Faction RimWorld.Faction::get_OfPlayer()
IL_036B: ldfld RimWorld.FactionDef RimWorld.Faction::def
IL_0370: ldsfld RimWorld.FactionDef RimWorld.FactionDefOf::PlayerTribe
IL_0375: bne.un => Label33
IL_037A: ldsfld
System.Collections.Generic.List`1<RimWorld.BackstoryCategoryFilter>
RimWorld.LifeStageWorker_HumanlikeChild::ChildTribalBackstoryFilters
IL_037F: stloc.1
IL_0380: Label32
IL_0380: Label33
IL_0380: ldarg.1
IL_0381: ldc.i4.0
IL_0382: ldloc.1
IL_0383: ldarg.1
IL_0384: callvirt virtual RimWorld.Faction Verse.Thing::get_Faction()
IL_0389: dup
IL_038A: brtrue => Label34
IL_038F: pop
IL_0390: ldnull
IL_0391: br => Label35
IL_0396: Label34
IL_0396: ldfld RimWorld.FactionDef RimWorld.Faction::def
IL_039B: Label35
IL_039B: ldloca.s 11 (System.Nullable`1[RimWorld.BackstorySlot])
IL_039D: initobj System.Nullable`1[RimWorld.BackstorySlot]
IL_03A3: ldloc.s 11 (System.Nullable`1[RimWorld.BackstorySlot])
IL_03A5: call static System.Void
RimWorld.PawnBioAndNameGenerator::FillBackstorySlotShuffled(Verse.Pawn pawn,
RimWorld.BackstorySlot slot,
System.Collections.Generic.List`1<RimWorld.BackstoryCategoryFilter>
backstoryCategories, RimWorld.FactionDef factionType,
System.Nullable`1<RimWorld.BackstorySlot> mustBeCompatibleTo)
IL_03AA: // end original
IL_03AA: Label36
IL_03AA: Label37
IL_03AA: ldarg 1
IL_03AE: call static System.Void
AlienRace.HarmonyPatches::ChildLifeStageStartedPostfix(Verse.Pawn pawn)
IL_03B3: ret
DONE

### Patch: virtual System.Void


RimWorld.LifeStageWorker_HumanlikeAdult::Notify_LifeStageStarted(Verse.Pawn pawn,
RimWorld.LifeStageDef previousLifeStage)
### Replacement: static System.Void
RimWorld.LifeStageWorker_HumanlikeAdult::RimWorld.LifeStageWorker_HumanlikeAdult.No
tify_LifeStageStarted_Patch1(RimWorld.LifeStageWorker_HumanlikeAdult this,
Verse.Pawn pawn, RimWorld.LifeStageDef previousLifeStage)
IL_0000: Local var 0: RimWorld.BodyTypeDef
IL_0000: Local var 1:
System.Collections.Generic.List`1<RimWorld.BackstoryCategoryFilter>
IL_0000: Local var 2: System.Nullable`1<RimWorld.BackstorySlot>
IL_0000: // start original
IL_0000: ldarg.0
IL_0001: ldarg.1
IL_0002: ldarg.2
IL_0003: call virtual System.Void
RimWorld.LifeStageWorker::Notify_LifeStageStarted(Verse.Pawn pawn,
RimWorld.LifeStageDef previousLifeStage)
IL_0008: call static Verse.ProgramState Verse.Current::get_ProgramState()
IL_000D: ldc.i4.2
IL_000E: beq => Label0
IL_0013: br => Label25
IL_0018: Label0
IL_0018: ldarg.1
IL_0019: callvirt System.Boolean Verse.Thing::get_Spawned()
IL_001E: brfalse => Label1
IL_0023: ldarg.2
IL_0024: brfalse => Label2
IL_0029: ldarg.2
IL_002A: ldfld Verse.DevelopmentalStage
RimWorld.LifeStageDef::developmentalStage
IL_002F: call static System.Boolean
Verse.DevelopmentalStageExtensions::Juvenile(Verse.DevelopmentalStage
developmentalStage)
IL_0034: brfalse => Label3
IL_0039: ldsfld Verse.EffecterDef RimWorld.EffecterDefOf::Birthday
IL_003E: ldarg.1
IL_003F: ldarg.1
IL_0040: callvirt virtual Verse.Map Verse.Thing::get_Map()
IL_0045: ldc.r4 1
IL_004A: callvirt Verse.Effecter Verse.EffecterDef::SpawnAttached(Verse.Thing
target, Verse.Map map, System.Single scale)
IL_004F: pop
IL_0050: Label1
IL_0050: Label2
IL_0050: Label3
IL_0050: ldarg.1
IL_0051: ldfld RimWorld.Pawn_StoryTracker Verse.Pawn::story
IL_0056: ldfld RimWorld.BodyTypeDef RimWorld.Pawn_StoryTracker::bodyType
IL_005B: ldsfld RimWorld.BodyTypeDef RimWorld.BodyTypeDefOf::Child
IL_0060: beq => Label4
IL_0065: ldarg.1
IL_0066: ldfld RimWorld.Pawn_StoryTracker Verse.Pawn::story
IL_006B: ldfld RimWorld.BodyTypeDef RimWorld.Pawn_StoryTracker::bodyType
IL_0070: ldsfld RimWorld.BodyTypeDef RimWorld.BodyTypeDefOf::Baby
IL_0075: bne.un => Label5
IL_007A: Label4
IL_007A: ldarg.1
IL_007B: ldfld RimWorld.Pawn_ApparelTracker Verse.Pawn::apparel
IL_0080: dup
IL_0081: brtrue => Label6
IL_0086: pop
IL_0087: br => Label7
IL_008C: Label6
IL_008C: ldsfld System.Predicate`1<RimWorld.Apparel> RimWorld.<>c::<>9__4_0
IL_0091: dup
IL_0092: brtrue => Label8
IL_0097: pop
IL_0098: ldsfld RimWorld.<>c RimWorld.<>c::<>9
IL_009D: ldftn System.Boolean
RimWorld.<>c::<Notify_LifeStageStarted>b__4_0(RimWorld.Apparel apparel)
IL_00A3: newobj System.Void
System.Predicate`1<RimWorld.Apparel>::.ctor(System.Object object, System.IntPtr
method)
IL_00A8: dup
IL_00A9: stsfld System.Predicate`1<RimWorld.Apparel> RimWorld.<>c::<>9__4_0
IL_00AE: Label8
IL_00AE: call System.Void
RimWorld.Pawn_ApparelTracker::DropAllOrMoveAllToInventory(System.Predicate`1<RimWor
ld.Apparel> selector)
IL_00B3: Label7
IL_00B3: ldarg.1
IL_00B4: call static RimWorld.BodyTypeDef
Verse.PawnGenerator::GetBodyTypeFor(Verse.Pawn pawn)
IL_00B9: stloc.0
IL_00BA: ldarg.1
IL_00BB: ldfld RimWorld.Pawn_StoryTracker Verse.Pawn::story
IL_00C0: ldloc.0
IL_00C1: stfld RimWorld.BodyTypeDef RimWorld.Pawn_StoryTracker::bodyType
IL_00C6: ldarg.1
IL_00C7: callvirt Verse.Pawn_DrawTracker Verse.Pawn::get_Drawer()
IL_00CC: ldfld Verse.PawnRenderer Verse.Pawn_DrawTracker::renderer
IL_00D1: ldfld Verse.PawnGraphicSet Verse.PawnRenderer::graphics
IL_00D6: callvirt System.Void Verse.PawnGraphicSet::SetAllGraphicsDirty()
IL_00DB: Label5
IL_00DB: ldarg.1
IL_00DC: callvirt System.Boolean Verse.Pawn::get_IsColonist()
IL_00E1: brfalse => Label9
IL_00E6: call static RimWorld.Faction RimWorld.Faction::get_OfPlayer()
IL_00EB: ldfld RimWorld.FactionDef RimWorld.Faction::def
IL_00F0: ldsfld RimWorld.FactionDef RimWorld.FactionDefOf::PlayerTribe
IL_00F5: beq => Label10
IL_00FA: ldsfld
System.Collections.Generic.List`1<RimWorld.BackstoryCategoryFilter>
RimWorld.LifeStageWorker_HumanlikeAdult::BackstoryFiltersColonist
IL_00FF: br => Label11
IL_0104: Label10
IL_0104: ldsfld
System.Collections.Generic.List`1<RimWorld.BackstoryCategoryFilter>
RimWorld.LifeStageWorker_HumanlikeAdult::BackstoryFiltersTribal
IL_0109: Label11
IL_0109: ldarg.1
IL_010A: ldc.i4.1
IL_010B: call static
System.Collections.Generic.List`1<RimWorld.BackstoryCategoryFilter>
AlienRace.HarmonyPatches::LifeStageStartedHelper(System.Collections.Generic.List`1<
RimWorld.BackstoryCategoryFilter> filters, Verse.Pawn pawn, System.Int32
backstoryKind)
IL_0110: stloc.1
IL_0111: ldarg.2
IL_0112: ldfld Verse.DevelopmentalStage
RimWorld.LifeStageDef::developmentalStage
IL_0117: call static System.Boolean
Verse.DevelopmentalStageExtensions::Juvenile(Verse.DevelopmentalStage
developmentalStage)
IL_011C: brfalse => Label12
IL_0121: ldarg.1
IL_0122: ldfld Verse.Pawn_AgeTracker Verse.Pawn::ageTracker
IL_0127: ldfld System.Int64 Verse.Pawn_AgeTracker::vatGrowTicks
IL_012C: ldc.i4 1200000
IL_0131: conv.i8
IL_0132: blt => Label13
IL_0137: ldarg.1
IL_0138: ldc.i4.0
IL_0139: ldsfld
System.Collections.Generic.List`1<RimWorld.BackstoryCategoryFilter>
RimWorld.LifeStageWorker_HumanlikeAdult::VatgrowBackstoryFilter
IL_013E: ldarg.1
IL_013F: ldc.i4.2
IL_0140: call static
System.Collections.Generic.List`1<RimWorld.BackstoryCategoryFilter>
AlienRace.HarmonyPatches::LifeStageStartedHelper(System.Collections.Generic.List`1<
RimWorld.BackstoryCategoryFilter> filters, Verse.Pawn pawn, System.Int32
backstoryKind)
IL_0145: ldarg.1
IL_0146: callvirt virtual RimWorld.Faction Verse.Thing::get_Faction()
IL_014B: dup
IL_014C: brtrue => Label14
IL_0151: pop
IL_0152: ldnull
IL_0153: br => Label15
IL_0158: Label14
IL_0158: ldfld RimWorld.FactionDef RimWorld.Faction::def
IL_015D: Label15
IL_015D: ldloca.s 2 (System.Nullable`1[RimWorld.BackstorySlot])
IL_015F: initobj System.Nullable`1[RimWorld.BackstorySlot]
IL_0165: ldloc.2
IL_0166: call static System.Void
RimWorld.PawnBioAndNameGenerator::FillBackstorySlotShuffled(Verse.Pawn pawn,
RimWorld.BackstorySlot slot,
System.Collections.Generic.List`1<RimWorld.BackstoryCategoryFilter>
backstoryCategories, RimWorld.FactionDef factionType,
System.Nullable`1<RimWorld.BackstorySlot> mustBeCompatibleTo)
IL_016B: br => Label16
IL_0170: Label13
IL_0170: ldarg.1
IL_0171: ldfld RimWorld.Pawn_StoryTracker Verse.Pawn::story
IL_0176: ldc.i4.0
IL_0177: callvirt RimWorld.BackstoryDef
RimWorld.Pawn_StoryTracker::GetBackstory(RimWorld.BackstorySlot slot)
IL_017C: dup
IL_017D: brtrue => Label17
IL_0182: pop
IL_0183: ldc.i4.0
IL_0184: br => Label18
IL_0189: Label17
IL_0189: ldarg.1
IL_018A: call static System.Boolean
AlienRace.HarmonyPatches::IsPlayerColonyChildBackstoryHelper(RimWorld.BackstoryDef
backstory, Verse.Pawn pawn)
IL_018F: Label18
IL_018F: brfalse => Label19
IL_0194: ldarg.1
IL_0195: ldc.i4.0
IL_0196: ldloc.1
IL_0197: ldarg.1
IL_0198: callvirt virtual RimWorld.Faction Verse.Thing::get_Faction()
IL_019D: dup
IL_019E: brtrue => Label20
IL_01A3: pop
IL_01A4: ldnull
IL_01A5: br => Label21
IL_01AA: Label20
IL_01AA: ldfld RimWorld.FactionDef RimWorld.Faction::def
IL_01AF: Label21
IL_01AF: ldloca.s 2 (System.Nullable`1[RimWorld.BackstorySlot])
IL_01B1: initobj System.Nullable`1[RimWorld.BackstorySlot]
IL_01B7: ldloc.2
IL_01B8: call static System.Void
RimWorld.PawnBioAndNameGenerator::FillBackstorySlotShuffled(Verse.Pawn pawn,
RimWorld.BackstorySlot slot,
System.Collections.Generic.List`1<RimWorld.BackstoryCategoryFilter>
backstoryCategories, RimWorld.FactionDef factionType,
System.Nullable`1<RimWorld.BackstorySlot> mustBeCompatibleTo)
IL_01BD: Label12
IL_01BD: Label16
IL_01BD: Label19
IL_01BD: ldarg.1
IL_01BE: ldfld RimWorld.Pawn_StoryTracker Verse.Pawn::story
IL_01C3: ldc.i4.1
IL_01C4: callvirt RimWorld.BackstoryDef
RimWorld.Pawn_StoryTracker::GetBackstory(RimWorld.BackstorySlot slot)
IL_01C9: brtrue => Label22
IL_01CE: ldarg.1
IL_01CF: ldc.i4.1
IL_01D0: ldloc.1
IL_01D1: ldarg.1
IL_01D2: callvirt virtual RimWorld.Faction Verse.Thing::get_Faction()
IL_01D7: dup
IL_01D8: brtrue => Label23
IL_01DD: pop
IL_01DE: ldnull
IL_01DF: br => Label24
IL_01E4: Label23
IL_01E4: ldfld RimWorld.FactionDef RimWorld.Faction::def
IL_01E9: Label24
IL_01E9: ldloca.s 2 (System.Nullable`1[RimWorld.BackstorySlot])
IL_01EB: initobj System.Nullable`1[RimWorld.BackstorySlot]
IL_01F1: ldloc.2
IL_01F2: call static System.Void
RimWorld.PawnBioAndNameGenerator::FillBackstorySlotShuffled(Verse.Pawn pawn,
RimWorld.BackstorySlot slot,
System.Collections.Generic.List`1<RimWorld.BackstoryCategoryFilter>
backstoryCategories, RimWorld.FactionDef factionType,
System.Nullable`1<RimWorld.BackstorySlot> mustBeCompatibleTo)
IL_01F7: // end original
IL_01F7: Label9
IL_01F7: Label22
IL_01F7: Label25
IL_01F7: ldarg 1
IL_01FB: call static System.Void
AlienRace.HarmonyPatches::AdultLifeStageStartedPostfix(Verse.Pawn pawn)
IL_0200: ret
DONE

### Patch: static


System.Collections.Generic.List`1<RimWorld.BackstoryCategoryFilter>
RimWorld.PawnBioAndNameGenerator::GetBackstoryCategoryFiltersFor(Verse.Pawn pawn,
RimWorld.FactionDef faction)
### Replacement: static
System.Collections.Generic.List`1<RimWorld.BackstoryCategoryFilter>
RimWorld.PawnBioAndNameGenerator::RimWorld.PawnBioAndNameGenerator.GetBackstoryCate
goryFiltersFor_Patch1(Verse.Pawn pawn, RimWorld.FactionDef faction)
IL_0000: Local var 0:
System.Collections.Generic.List`1<RimWorld.BackstoryCategoryFilter>
IL_0000: Local var 1: System.Int32
IL_0000: Local var 2: RimWorld.BackstoryCategoryFilter
IL_0000: Local var 3:
System.Collections.Generic.List`1<RimWorld.BackstoryCategoryFilter>
IL_0000: ldnull
IL_0001: stloc 3
(System.Collections.Generic.List`1[RimWorld.BackstoryCategoryFilter])
IL_0005: // start original
IL_0005: ldarg.0
IL_0006: callvirt Verse.DevelopmentalStage Verse.Pawn::get_DevelopmentalStage()
IL_000B: call static System.Boolean
Verse.DevelopmentalStageExtensions::Baby(Verse.DevelopmentalStage
developmentalStage)
IL_0010: brfalse => Label0
IL_0015: newobj System.Void
System.Collections.Generic.List`1<RimWorld.BackstoryCategoryFilter>::.ctor()
IL_001A: dup
IL_001B: ldsfld RimWorld.BackstoryCategoryFilter
RimWorld.PawnBioAndNameGenerator::NewbornCategoryGroup
IL_0020: callvirt virtual System.Void
System.Collections.Generic.List`1<RimWorld.BackstoryCategoryFilter>::Add(RimWorld.B
ackstoryCategoryFilter item)
IL_0025: br => Label11
IL_002A: Label0
IL_002A: ldarg.0
IL_002B: callvirt Verse.DevelopmentalStage Verse.Pawn::get_DevelopmentalStage()
IL_0030: call static System.Boolean
Verse.DevelopmentalStageExtensions::Child(Verse.DevelopmentalStage
developmentalStage)
IL_0035: brfalse => Label1
IL_003A: ldarg.1
IL_003B: ldsfld RimWorld.FactionDef RimWorld.FactionDefOf::PlayerTribe
IL_0040: bne.un => Label2
IL_0045: ldsfld
System.Collections.Generic.List`1<RimWorld.BackstoryCategoryFilter>
RimWorld.LifeStageWorker_HumanlikeChild::ChildTribalBackstoryFilters
IL_004A: br => Label12
IL_004F: Label2
IL_004F: newobj System.Void
System.Collections.Generic.List`1<RimWorld.BackstoryCategoryFilter>::.ctor()
IL_0054: dup
IL_0055: ldsfld RimWorld.BackstoryCategoryFilter
RimWorld.PawnBioAndNameGenerator::ChildCategoryGroup
IL_005A: callvirt virtual System.Void
System.Collections.Generic.List`1<RimWorld.BackstoryCategoryFilter>::Add(RimWorld.B
ackstoryCategoryFilter item)
IL_005F: br => Label13
IL_0064: Label1
IL_0064: ldarg.0
IL_0065: ldfld Verse.PawnKindDef Verse.Pawn::kindDef
IL_006A: ldfld
System.Collections.Generic.List`1<RimWorld.BackstoryCategoryFilter>
Verse.PawnKindDef::backstoryFiltersOverride
IL_006F: call static System.Boolean
Verse.GenList::NullOrEmpty(System.Collections.Generic.IList`1<RimWorld.BackstoryCat
egoryFilter> list)
IL_0074: brtrue => Label3
IL_0079: ldarg.0
IL_007A: ldfld Verse.PawnKindDef Verse.Pawn::kindDef
IL_007F: ldfld
System.Collections.Generic.List`1<RimWorld.BackstoryCategoryFilter>
Verse.PawnKindDef::backstoryFiltersOverride
IL_0084: br => Label14
IL_0089: Label3
IL_0089: newobj System.Void
System.Collections.Generic.List`1<RimWorld.BackstoryCategoryFilter>::.ctor()
IL_008E: stloc.0
IL_008F: ldarg.0
IL_0090: ldfld Verse.PawnKindDef Verse.Pawn::kindDef
IL_0095: ldfld
System.Collections.Generic.List`1<RimWorld.BackstoryCategoryFilter>
Verse.PawnKindDef::backstoryFilters
IL_009A: brfalse => Label4
IL_009F: ldloc.0
IL_00A0: ldarg.0
IL_00A1: ldfld Verse.PawnKindDef Verse.Pawn::kindDef
IL_00A6: ldfld
System.Collections.Generic.List`1<RimWorld.BackstoryCategoryFilter>
Verse.PawnKindDef::backstoryFilters
IL_00AB: callvirt System.Void
System.Collections.Generic.List`1<RimWorld.BackstoryCategoryFilter>::AddRange(Syste
m.Collections.Generic.IEnumerable`1<RimWorld.BackstoryCategoryFilter> collection)
IL_00B0: Label4
IL_00B0: ldarg.1
IL_00B1: brfalse => Label5
IL_00B6: ldarg.1
IL_00B7: ldfld
System.Collections.Generic.List`1<RimWorld.BackstoryCategoryFilter>
RimWorld.FactionDef::backstoryFilters
IL_00BC: call static System.Boolean
Verse.GenList::NullOrEmpty(System.Collections.Generic.IList`1<RimWorld.BackstoryCat
egoryFilter> list)
IL_00C1: brtrue => Label6
IL_00C6: ldc.i4.0
IL_00C7: stloc.1
IL_00C8: br => Label7
IL_00CD: Label9
IL_00CD: ldarg.1
IL_00CE: ldfld
System.Collections.Generic.List`1<RimWorld.BackstoryCategoryFilter>
RimWorld.FactionDef::backstoryFilters
IL_00D3: ldloc.1
IL_00D4: callvirt virtual RimWorld.BackstoryCategoryFilter
System.Collections.Generic.List`1<RimWorld.BackstoryCategoryFilter>::get_Item(Syste
m.Int32 index)
IL_00D9: stloc.2
IL_00DA: ldloc.0
IL_00DB: ldloc.2
IL_00DC: callvirt virtual System.Boolean
System.Collections.Generic.List`1<RimWorld.BackstoryCategoryFilter>::Contains(RimWo
rld.BackstoryCategoryFilter item)
IL_00E1: brtrue => Label8
IL_00E6: ldloc.0
IL_00E7: ldloc.2
IL_00E8: callvirt virtual System.Void
System.Collections.Generic.List`1<RimWorld.BackstoryCategoryFilter>::Add(RimWorld.B
ackstoryCategoryFilter item)
IL_00ED: Label8
IL_00ED: ldloc.1
IL_00EE: ldc.i4.1
IL_00EF: add
IL_00F0: stloc.1
IL_00F1: Label7
IL_00F1: ldloc.1
IL_00F2: ldarg.1
IL_00F3: ldfld
System.Collections.Generic.List`1<RimWorld.BackstoryCategoryFilter>
RimWorld.FactionDef::backstoryFilters
IL_00F8: callvirt virtual System.Int32
System.Collections.Generic.List`1<RimWorld.BackstoryCategoryFilter>::get_Count()
IL_00FD: blt => Label9
IL_0102: Label5
IL_0102: Label6
IL_0102: ldloc.0
IL_0103: call static System.Boolean
Verse.GenList::NullOrEmpty(System.Collections.Generic.IList`1<RimWorld.BackstoryCat
egoryFilter> list)
IL_0108: brtrue => Label10
IL_010D: ldloc.0
IL_010E: br => Label15
IL_0113: Label10
IL_0113: ldc.i4.5
IL_0114: newarr System.Object
IL_0119: dup
IL_011A: ldc.i4.0
IL_011B: ldstr "PawnKind "
IL_0120: stelem.ref
IL_0121: dup
IL_0122: ldc.i4.1
IL_0123: ldarg.0
IL_0124: ldfld Verse.PawnKindDef Verse.Pawn::kindDef
IL_0129: stelem.ref
IL_012A: dup
IL_012B: ldc.i4.2
IL_012C: ldstr " generating with factionDef "
IL_0131: stelem.ref
IL_0132: dup
IL_0133: ldc.i4.3
IL_0134: ldarg.1
IL_0135: stelem.ref
IL_0136: dup
IL_0137: ldc.i4.4
IL_0138: ldstr ": no backstoryCategories in either."
IL_013D: stelem.ref
IL_013E: call static System.String System.String::Concat(System.Object[]
args)
IL_0143: ldc.i4 1871521
IL_0148: call static System.Void Verse.Log::ErrorOnce(System.String text,
System.Int32 key)
IL_014D: newobj System.Void
System.Collections.Generic.List`1<RimWorld.BackstoryCategoryFilter>::.ctor()
IL_0152: dup
IL_0153: ldsfld RimWorld.BackstoryCategoryFilter
RimWorld.PawnBioAndNameGenerator::FallbackCategoryGroup
IL_0158: callvirt virtual System.Void
System.Collections.Generic.List`1<RimWorld.BackstoryCategoryFilter>::Add(RimWorld.B
ackstoryCategoryFilter item)
IL_015D: // end original
IL_015D: Label11
IL_015D: Label12
IL_015D: Label13
IL_015D: Label14
IL_015D: Label15
IL_015D: stloc 3
(System.Collections.Generic.List`1[RimWorld.BackstoryCategoryFilter])
IL_0161: ldarg 0
IL_0165: ldloca 3
(System.Collections.Generic.List`1[RimWorld.BackstoryCategoryFilter])
IL_0169: call static System.Void
AlienRace.HarmonyPatches::GetBackstoryCategoryFiltersForPostfix(Verse.Pawn pawn,
System.Collections.Generic.List`1& __result)
IL_016E: ldloc 3
(System.Collections.Generic.List`1[RimWorld.BackstoryCategoryFilter])
IL_0172: ret
DONE

### Patch: virtual Verse.Pawn


RimWorld.QuestGen.QuestNode_Root_WandererJoin_WalkIn::GeneratePawn()
### Replacement: static Verse.Pawn
RimWorld.QuestGen.QuestNode_Root_WandererJoin_WalkIn::RimWorld.QuestGen.QuestNode_R
oot_WandererJoin_WalkIn.GeneratePawn_Patch0(RimWorld.QuestGen.QuestNode_Root_Wander
erJoin_WalkIn this)
IL_0000: Local var 0: System.Nullable`1<Verse.Gender>
IL_0000: Local var 1: Verse.PawnGenerationRequest
IL_0000: Local var 2: Verse.Pawn
IL_0000: Local var 3: System.Nullable`1<System.Single>
IL_0000: Local var 4: System.Nullable`1<Verse.FloatRange>
IL_0000: // start original
IL_0000: ldsfld RimWorld.QuestGen.Slate RimWorld.QuestGen.QuestGen::slate
IL_0005: ldloca.s 0 (System.Nullable`1[Verse.Gender])
IL_0007: initobj System.Nullable`1[Verse.Gender]
IL_000D: ldstr "overridePawnGenParams"
IL_0012: ldloca.s 1 (Verse.PawnGenerationRequest)
IL_0014: ldc.i4.0
IL_0015: callvirt System.Boolean RimWorld.QuestGen.Slate::TryGet(System.String
name, Verse.PawnGenerationRequest& var, System.Boolean isAbsoluteName)
IL_001A: brtrue => Label0
IL_001F: ldloca.s 1 (Verse.PawnGenerationRequest)
IL_0021: ldsfld Verse.PawnKindDef RimWorld.PawnKindDefOf::Villager
IL_0026: ldnull
IL_0027: ldc.i4.2
IL_0028: ldc.i4.m1
IL_0029: ldc.i4.1
IL_002A: ldc.i4.0
IL_002B: ldc.i4.0
IL_002C: ldc.i4.1
IL_002D: ldc.i4.0
IL_002E: ldc.r4 20
IL_0033: ldc.i4.0
IL_0034: ldc.i4.1
IL_0035: ldc.i4.1
IL_0036: ldc.i4.1
IL_0037: ldc.i4.1
IL_0038: ldc.i4.0
IL_0039: ldc.i4.0
IL_003A: ldc.i4.0
IL_003B: ldc.i4.0
IL_003C: ldc.r4 0
IL_0041: ldc.r4 0
IL_0046: ldnull
IL_0047: ldc.r4 1
IL_004C: ldnull
IL_004D: ldnull
IL_004E: ldnull
IL_004F: ldnull
IL_0050: ldloca.s 3 (System.Nullable`1[System.Single])
IL_0052: initobj System.Nullable`1[System.Single]
IL_0058: ldloc.3
IL_0059: ldloca.s 3 (System.Nullable`1[System.Single])
IL_005B: initobj System.Nullable`1[System.Single]
IL_0061: ldloc.3
IL_0062: ldloca.s 3 (System.Nullable`1[System.Single])
IL_0064: initobj System.Nullable`1[System.Single]
IL_006A: ldloc.3
IL_006B: ldloc.0
IL_006C: ldnull
IL_006D: ldnull
IL_006E: ldnull
IL_006F: ldnull
IL_0070: ldc.i4.0
IL_0071: ldc.i4.0
IL_0072: ldc.i4.0
IL_0073: ldc.i4.0
IL_0074: ldnull
IL_0075: ldnull
IL_0076: ldnull
IL_0077: ldnull
IL_0078: ldnull
IL_0079: ldc.r4 0
IL_007E: ldc.i4.8
IL_007F: ldnull
IL_0080: ldloca.s 4 (System.Nullable`1[Verse.FloatRange])
IL_0082: initobj System.Nullable`1[Verse.FloatRange]
IL_0088: ldloc.s 4 (System.Nullable`1[Verse.FloatRange])
IL_008A: ldloca.s 4 (System.Nullable`1[Verse.FloatRange])
IL_008C: initobj System.Nullable`1[Verse.FloatRange]
IL_0092: ldloc.s 4 (System.Nullable`1[Verse.FloatRange])
IL_0094: ldc.i4.1
IL_0095: call System.Void
Verse.PawnGenerationRequest::.ctor(Verse.PawnKindDef kind, RimWorld.Faction
faction, RimWorld.PawnGenerationContext context, System.Int32 tile, System.Boolean
forceGenerateNewPawn, System.Boolean allowDead, System.Boolean allowDowned,
System.Boolean canGeneratePawnRelations, System.Boolean mustBeCapableOfViolence,
System.Single colonistRelationChanceFactor, System.Boolean
forceAddFreeWarmLayerIfNeeded, System.Boolean allowGay, System.Boolean
allowPregnant, System.Boolean allowFood, System.Boolean allowAddictions,
System.Boolean inhabitant, System.Boolean certainlyBeenInCryptosleep,
System.Boolean forceRedressWorldPawnIfFormerColonist, System.Boolean
worldPawnFactionDoesntMatter, System.Single biocodeWeaponChance, System.Single
biocodeApparelChance, Verse.Pawn extraPawnForExtraRelationChance, System.Single
relationWithExtraPawnChanceFactor, System.Predicate`1<Verse.Pawn> validatorPreGear,
System.Predicate`1<Verse.Pawn> validatorPostGear,
System.Collections.Generic.IEnumerable`1<RimWorld.TraitDef> forcedTraits,
System.Collections.Generic.IEnumerable`1<RimWorld.TraitDef> prohibitedTraits,
System.Nullable`1<System.Single> minChanceToRedressWorldPawn,
System.Nullable`1<System.Single> fixedBiologicalAge,
System.Nullable`1<System.Single> fixedChronologicalAge,
System.Nullable`1<Verse.Gender> fixedGender, System.String fixedLastName,
System.String fixedBirthName, RimWorld.RoyalTitleDef fixedTitle, RimWorld.Ideo
fixedIdeo, System.Boolean forceNoIdeo, System.Boolean forceNoBackstory,
System.Boolean forbidAnyTitle, System.Boolean forceDead,
System.Collections.Generic.List`1<Verse.GeneDef> forcedXenogenes,
System.Collections.Generic.List`1<Verse.GeneDef> forcedEndogenes,
RimWorld.XenotypeDef forcedXenotype, RimWorld.CustomXenotype forcedCustomXenotype,
System.Collections.Generic.List`1<RimWorld.XenotypeDef> allowedXenotypes,
System.Single forceBaselinerChance, Verse.DevelopmentalStage developmentalStages,
System.Func`2<RimWorld.XenotypeDef, Verse.PawnKindDef> pawnKindDefGetter,
System.Nullable`1<Verse.FloatRange> excludeBiologicalAgeRange,
System.Nullable`1<Verse.FloatRange> biologicalAgeRange, System.Boolean
forceRecruitable)
IL_009A: Label0
IL_009A: call static RimWorld.Storyteller Verse.Find::get_Storyteller()
IL_009F: ldfld RimWorld.Difficulty RimWorld.Storyteller::difficulty
IL_00A4: callvirt System.Boolean RimWorld.Difficulty::get_ChildrenAllowed()
IL_00A9: brfalse => Label1
IL_00AE: ldloca.s 1 (Verse.PawnGenerationRequest)
IL_00B0: dup
IL_00B1: call Verse.DevelopmentalStage
Verse.PawnGenerationRequest::get_AllowedDevelopmentalStages()
IL_00B6: ldc.i4.4
IL_00B7: or
IL_00B8: call System.Void
Verse.PawnGenerationRequest::set_AllowedDevelopmentalStages(Verse.DevelopmentalStag
e value)
IL_00BD: Label1
IL_00BD: ldloc.1
IL_00BE: call static Verse.PawnGenerationRequest
AlienRace.HarmonyPatches::WandererJoinHelper(Verse.PawnGenerationRequest request)
IL_00C3: call static Verse.Pawn
Verse.PawnGenerator::GeneratePawn(Verse.PawnGenerationRequest request)
IL_00C8: stloc.2
IL_00C9: ldloc.2
IL_00CA: call static System.Boolean
RimWorld.Planet.WorldPawnsUtility::IsWorldPawn(Verse.Pawn p)
IL_00CF: brtrue => Label2
IL_00D4: call static RimWorld.Planet.WorldPawns Verse.Find::get_WorldPawns()
IL_00D9: ldloc.2
IL_00DA: ldc.i4.0
IL_00DB: callvirt System.Void RimWorld.Planet.WorldPawns::PassToWorld(Verse.Pawn
pawn, RimWorld.Planet.PawnDiscardDecideMode discardMode)
IL_00E0: Label2
IL_00E0: ldloc.2
IL_00E1: // end original
IL_00E1: ret
DONE

### Patch: static Verse.Thing


RimWorld.PregnancyUtility::ApplyBirthOutcome(RimWorld.OutcomeChance outcome,
System.Single quality, RimWorld.Precept_Ritual ritual,
System.Collections.Generic.List`1<Verse.GeneDef> genes, Verse.Pawn geneticMother,
Verse.Thing birtherThing, Verse.Pawn father, Verse.Pawn doctor,
RimWorld.LordJob_Ritual lordJobRitual, RimWorld.RitualRoleAssignments assignments)
### Replacement: static Verse.Thing
RimWorld.PregnancyUtility::RimWorld.PregnancyUtility.ApplyBirthOutcome_Patch0(RimWo
rld.OutcomeChance outcome, System.Single quality, RimWorld.Precept_Ritual ritual,
System.Collections.Generic.List`1<Verse.GeneDef> genes, Verse.Pawn geneticMother,
Verse.Thing birtherThing, Verse.Pawn father, Verse.Pawn doctor,
RimWorld.LordJob_Ritual lordJobRitual, RimWorld.RitualRoleAssignments assignments)
IL_0000: Local var 0: RimWorld.PregnancyUtility/<>c__DisplayClass30_0
IL_0000: Local var 1: RimWorld.Building_GrowthVat
IL_0000: Local var 2: System.Boolean
IL_0000: Local var 3: System.Int32
IL_0000: Local var 4: System.Boolean
IL_0000: Local var 5: Verse.Pawn
IL_0000: Local var 6: RimWorld.XenotypeDef
IL_0000: Local var 7: System.Nullable`1<Verse.IntVec3>
IL_0000: Local var 8: System.Boolean
IL_0000: Local var 9: System.Boolean
IL_0000: Local var 10: Verse.Map
IL_0000: Local var 11: Verse.IntVec3
IL_0000: Local var 12: Verse.Thing
IL_0000: Local var 13: RimWorld.XenotypeDef
IL_0000: Local var 14: System.Nullable`1<System.Single>
IL_0000: Local var 15: System.Nullable`1<Verse.Gender>
IL_0000: Local var 16: System.Nullable`1<Verse.FloatRange>
IL_0000: Local var 17: System.Nullable`1<System.Int32>
IL_0000: Local var 18: Verse.IntVec3
IL_0000: Local var 19: System.Nullable`1<Verse.IntVec3>
IL_0000: Local var 20: Verse.IntRange
IL_0000: Local var 21: System.Nullable`1<Verse.DamageInfo>
IL_0000: Local var 22: System.Nullable`1<System.Boolean>
IL_0000: Local var 23: System.Boolean
IL_0000: Local var 24: System.Nullable`1<System.Boolean>
IL_0000: Local var 25: Verse.AI.Job
IL_0000: Local var 26: System.Nullable`1<Verse.AI.JobTag>
IL_0000: Local var 27: Verse.Hediff
IL_0000: Local var 28: Verse.TaggedString
IL_0000: Local var 29: RimWorld.ChoiceLetter_BabyBirth
IL_0000: Local var 30: RimWorld.RitualOutcomeEffectWorker_ChildBirth
IL_0000: // start original
IL_0000: newobj System.Void RimWorld.<>c__DisplayClass30_0::.ctor()
IL_0005: stloc.0
IL_0006: ldsfld System.Int32 AlienRace.HarmonyPatches::currentBirthCount
IL_000B: ldc.i4 -2147483648
IL_0010: bne.un => Label144
IL_0015: ldarg 4
IL_0019: call static System.Int32
AlienRace.HarmonyPatches::BirthOutcomeMultiplier(Verse.Pawn mother)
IL_001E: stsfld System.Int32 AlienRace.HarmonyPatches::currentBirthCount
IL_0023: Label142
IL_0023: ldsfld System.Int32 AlienRace.HarmonyPatches::currentBirthCount
IL_0028: ldc.i4.1
IL_0029: sub
IL_002A: dup
IL_002B: stsfld System.Int32 AlienRace.HarmonyPatches::currentBirthCount
IL_0030: ldc.i4.0
IL_0031: blt => Label143
IL_0036: ldarg 0
IL_003A: ldarg 1
IL_003E: ldarg 2
IL_0042: ldarg 3
IL_0046: ldarg 4
IL_004A: ldarg 5
IL_004E: ldarg 6
IL_0052: ldarg 7
IL_0056: ldarg 8
IL_005A: ldarg 9
IL_005E: call static Verse.Thing
RimWorld.PregnancyUtility::ApplyBirthOutcome(RimWorld.OutcomeChance outcome,
System.Single quality, RimWorld.Precept_Ritual ritual,
System.Collections.Generic.List`1<Verse.GeneDef> genes, Verse.Pawn geneticMother,
Verse.Thing birtherThing, Verse.Pawn father, Verse.Pawn doctor,
RimWorld.LordJob_Ritual lordJobRitual, RimWorld.RitualRoleAssignments assignments)
IL_0063: br => Label142
IL_0068: Label143
IL_0068: ldc.i4 -2147483648
IL_006D: stsfld System.Int32 AlienRace.HarmonyPatches::currentBirthCount
IL_0072: Label144
IL_0072: nop
IL_0073: ldloc.0
IL_0074: ldarg.s 5
IL_0076: isinst Verse.Pawn
IL_007B: stfld Verse.Pawn RimWorld.<>c__DisplayClass30_0::birtherPawn
IL_0080: ldarg.s 5
IL_0082: isinst RimWorld.Building_GrowthVat
IL_0087: stloc.1
IL_0088: ldarg.s 5
IL_008A: callvirt System.Boolean Verse.Thing::get_Spawned()
IL_008F: brfalse => Label0
IL_0094: ldsfld Verse.EffecterDef RimWorld.EffecterDefOf::Birth
IL_0099: ldarg.s 5
IL_009B: ldarg.s 5
IL_009D: callvirt virtual Verse.Map Verse.Thing::get_Map()
IL_00A2: ldc.r4 1
IL_00A7: callvirt Verse.Effecter Verse.EffecterDef::Spawn(Verse.Thing target,
Verse.Map map, System.Single scale)
IL_00AC: pop
IL_00AD: Label0
IL_00AD: call static RimWorld.Storyteller Verse.Find::get_Storyteller()
IL_00B2: ldfld RimWorld.Difficulty RimWorld.Storyteller::difficulty
IL_00B7: ldfld System.Boolean RimWorld.Difficulty::babiesAreHealthy
IL_00BC: stloc.2
IL_00BD: ldarg.0
IL_00BE: ldfld System.Int32 RimWorld.OutcomeChance::positivityIndex
IL_00C3: stloc.3
IL_00C4: ldloc.0
IL_00C5: ldfld Verse.Pawn RimWorld.<>c__DisplayClass30_0::birtherPawn
IL_00CA: brfalse => Label1
IL_00CF: ldarg.1
IL_00D0: call static System.Single
RimWorld.PregnancyUtility::ChanceMomDiesDuringBirth(System.Single quality)
IL_00D5: call static System.Boolean Verse.Rand::Chance(System.Single chance)
IL_00DA: brfalse => Label2
IL_00DF: ldloc.0
IL_00E0: ldfld Verse.Pawn RimWorld.<>c__DisplayClass30_0::birtherPawn
IL_00E5: ldfld RimWorld.Pawn_GeneTracker Verse.Pawn::genes
IL_00EA: brfalse => Label3
IL_00EF: ldloc.0
IL_00F0: ldfld Verse.Pawn RimWorld.<>c__DisplayClass30_0::birtherPawn
IL_00F5: ldfld RimWorld.Pawn_GeneTracker Verse.Pawn::genes
IL_00FA: ldsfld Verse.GeneDef RimWorld.GeneDefOf::Deathless
IL_00FF: callvirt System.Boolean RimWorld.Pawn_GeneTracker::HasGene(Verse.GeneDef
geneDef)
IL_0104: ldc.i4.0
IL_0105: ceq
IL_0107: br => Label4
IL_010C: Label3
IL_010C: ldc.i4.1
IL_010D: br => Label5
IL_0112: Label1
IL_0112: Label2
IL_0112: ldc.i4.0
IL_0113: Label4
IL_0113: Label5
IL_0113: stloc.s 4 (System.Boolean)
IL_0115: ldarg.s 4
IL_0117: brtrue => Label6
IL_011C: ldnull
IL_011D: br => Label7
IL_0122: Label6
IL_0122: ldarg.s 4
IL_0124: ldarg 6
IL_0128: call static Verse.PawnKindDef
AlienRace.HarmonyPatches::BirthOutcomeHelper(Verse.Pawn mother, Verse.Pawn partner)
IL_012D: Label7
IL_012D: dup
IL_012E: brtrue => Label8
IL_0133: pop
IL_0134: ldsfld Verse.PawnKindDef RimWorld.PawnKindDefOf::Colonist
IL_0139: Label8
IL_0139: ldarg.s 5
IL_013B: callvirt virtual RimWorld.Faction Verse.Thing::get_Faction()
IL_0140: ldc.i4.2
IL_0141: ldc.i4.m1
IL_0142: ldc.i4.0
IL_0143: ldc.i4.0
IL_0144: ldc.i4.1
IL_0145: ldc.i4.1
IL_0146: ldc.i4.0
IL_0147: ldc.r4 1
IL_014C: ldc.i4.0
IL_014D: ldc.i4.1
IL_014E: ldc.i4.0
IL_014F: ldc.i4.1
IL_0150: ldc.i4.1
IL_0151: ldc.i4.0
IL_0152: ldc.i4.0
IL_0153: ldc.i4.0
IL_0154: ldc.i4.0
IL_0155: ldc.r4 0
IL_015A: ldc.r4 0
IL_015F: ldnull
IL_0160: ldc.r4 1
IL_0165: ldnull
IL_0166: ldnull
IL_0167: ldnull
IL_0168: ldnull
IL_0169: ldloca.s 14 (System.Nullable`1[System.Single])
IL_016B: initobj System.Nullable`1[System.Single]
IL_0171: ldloc.s 14 (System.Nullable`1[System.Single])
IL_0173: ldloca.s 14 (System.Nullable`1[System.Single])
IL_0175: initobj System.Nullable`1[System.Single]
IL_017B: ldloc.s 14 (System.Nullable`1[System.Single])
IL_017D: ldloca.s 14 (System.Nullable`1[System.Single])
IL_017F: initobj System.Nullable`1[System.Single]
IL_0185: ldloc.s 14 (System.Nullable`1[System.Single])
IL_0187: ldloca.s 15 (System.Nullable`1[Verse.Gender])
IL_0189: initobj System.Nullable`1[Verse.Gender]
IL_018F: ldloc.s 15 (System.Nullable`1[Verse.Gender])
IL_0191: ldarg.s 4
IL_0193: ldarg.s 5
IL_0195: isinst Verse.Pawn
IL_019A: ldarg.s 6
IL_019C: call static System.String
RimWorld.PregnancyUtility::RandomLastName(Verse.Pawn geneticMother, Verse.Pawn
birthingMother, Verse.Pawn father)
IL_01A1: ldnull
IL_01A2: ldnull
IL_01A3: ldnull
IL_01A4: ldc.i4.1
IL_01A5: ldc.i4.0
IL_01A6: ldc.i4.0
IL_01A7: ldloc.3
IL_01A8: ldc.i4.m1
IL_01A9: ceq
IL_01AB: ldnull
IL_01AC: ldsfld RimWorld.XenotypeDef RimWorld.XenotypeDefOf::Baseliner
IL_01B1: stloc.s 13 (RimWorld.XenotypeDef)
IL_01B3: ldarg.3
IL_01B4: brtrue => Label9
IL_01B9: ldarg.s 6
IL_01BB: ldarg.s 4
IL_01BD: call static System.Collections.Generic.List`1<Verse.GeneDef>
RimWorld.PregnancyUtility::GetInheritedGenes(Verse.Pawn father, Verse.Pawn mother)
IL_01C2: br => Label10
IL_01C7: Label9
IL_01C7: ldarg.3
IL_01C8: Label10
IL_01C8: ldloc.s 13 (RimWorld.XenotypeDef)
IL_01CA: ldnull
IL_01CB: ldnull
IL_01CC: ldc.r4 0
IL_01D1: ldc.i4.1
IL_01D2: ldnull
IL_01D3: ldloca.s 16 (System.Nullable`1[Verse.FloatRange])
IL_01D5: initobj System.Nullable`1[Verse.FloatRange]
IL_01DB: ldloc.s 16 (System.Nullable`1[Verse.FloatRange])
IL_01DD: ldloca.s 16 (System.Nullable`1[Verse.FloatRange])
IL_01DF: initobj System.Nullable`1[Verse.FloatRange]
IL_01E5: ldloc.s 16 (System.Nullable`1[Verse.FloatRange])
IL_01E7: ldc.i4.0
IL_01E8: newobj System.Void
Verse.PawnGenerationRequest::.ctor(Verse.PawnKindDef kind, RimWorld.Faction
faction, RimWorld.PawnGenerationContext context, System.Int32 tile, System.Boolean
forceGenerateNewPawn, System.Boolean allowDead, System.Boolean allowDowned,
System.Boolean canGeneratePawnRelations, System.Boolean mustBeCapableOfViolence,
System.Single colonistRelationChanceFactor, System.Boolean
forceAddFreeWarmLayerIfNeeded, System.Boolean allowGay, System.Boolean
allowPregnant, System.Boolean allowFood, System.Boolean allowAddictions,
System.Boolean inhabitant, System.Boolean certainlyBeenInCryptosleep,
System.Boolean forceRedressWorldPawnIfFormerColonist, System.Boolean
worldPawnFactionDoesntMatter, System.Single biocodeWeaponChance, System.Single
biocodeApparelChance, Verse.Pawn extraPawnForExtraRelationChance, System.Single
relationWithExtraPawnChanceFactor, System.Predicate`1<Verse.Pawn> validatorPreGear,
System.Predicate`1<Verse.Pawn> validatorPostGear,
System.Collections.Generic.IEnumerable`1<RimWorld.TraitDef> forcedTraits,
System.Collections.Generic.IEnumerable`1<RimWorld.TraitDef> prohibitedTraits,
System.Nullable`1<System.Single> minChanceToRedressWorldPawn,
System.Nullable`1<System.Single> fixedBiologicalAge,
System.Nullable`1<System.Single> fixedChronologicalAge,
System.Nullable`1<Verse.Gender> fixedGender, System.String fixedLastName,
System.String fixedBirthName, RimWorld.RoyalTitleDef fixedTitle, RimWorld.Ideo
fixedIdeo, System.Boolean forceNoIdeo, System.Boolean forceNoBackstory,
System.Boolean forbidAnyTitle, System.Boolean forceDead,
System.Collections.Generic.List`1<Verse.GeneDef> forcedXenogenes,
System.Collections.Generic.List`1<Verse.GeneDef> forcedEndogenes,
RimWorld.XenotypeDef forcedXenotype, RimWorld.CustomXenotype forcedCustomXenotype,
System.Collections.Generic.List`1<RimWorld.XenotypeDef> allowedXenotypes,
System.Single forceBaselinerChance, Verse.DevelopmentalStage developmentalStages,
System.Func`2<RimWorld.XenotypeDef, Verse.PawnKindDef> pawnKindDefGetter,
System.Nullable`1<Verse.FloatRange> excludeBiologicalAgeRange,
System.Nullable`1<Verse.FloatRange> biologicalAgeRange, System.Boolean
forceRecruitable)
IL_01ED: call static Verse.Pawn
Verse.PawnGenerator::GeneratePawn(Verse.PawnGenerationRequest request)
IL_01F2: stloc.s 5 (Verse.Pawn)
IL_01F4: ldarg.s 4
IL_01F6: ldarg.s 6
IL_01F8: call static System.Boolean
RimWorld.GeneUtility::SameHeritableXenotype(Verse.Pawn pawn1, Verse.Pawn pawn2)
IL_01FD: brfalse => Label11
IL_0202: ldarg.s 4
IL_0204: ldfld RimWorld.Pawn_GeneTracker Verse.Pawn::genes
IL_0209: callvirt System.Boolean RimWorld.Pawn_GeneTracker::get_UniqueXenotype()
IL_020E: brfalse => Label12
IL_0213: ldloc.s 5 (Verse.Pawn)
IL_0215: ldfld RimWorld.Pawn_GeneTracker Verse.Pawn::genes
IL_021A: ldarg.s 4
IL_021C: ldfld RimWorld.Pawn_GeneTracker Verse.Pawn::genes
IL_0221: ldfld System.String RimWorld.Pawn_GeneTracker::xenotypeName
IL_0226: stfld System.String RimWorld.Pawn_GeneTracker::xenotypeName
IL_022B: ldloc.s 5 (Verse.Pawn)
IL_022D: ldfld RimWorld.Pawn_GeneTracker Verse.Pawn::genes
IL_0232: ldarg.s 4
IL_0234: ldfld RimWorld.Pawn_GeneTracker Verse.Pawn::genes
IL_0239: ldfld RimWorld.XenotypeIconDef RimWorld.Pawn_GeneTracker::iconDef
IL_023E: stfld RimWorld.XenotypeIconDef RimWorld.Pawn_GeneTracker::iconDef
IL_0243: Label11
IL_0243: Label12
IL_0243: ldarg.s 4
IL_0245: ldarg.s 6
IL_0247: ldloca.s 6 (RimWorld.XenotypeDef)
IL_0249: call static System.Boolean
RimWorld.PregnancyUtility::TryGetInheritedXenotype(Verse.Pawn mother, Verse.Pawn
father, RimWorld.XenotypeDef& xenotype)
IL_024E: brfalse => Label13
IL_0253: ldloc.s 5 (Verse.Pawn)
IL_0255: ldfld RimWorld.Pawn_GeneTracker Verse.Pawn::genes
IL_025A: dup
IL_025B: brtrue => Label14
IL_0260: pop
IL_0261: br => Label15
IL_0266: Label14
IL_0266: ldloc.s 6 (RimWorld.XenotypeDef)
IL_0268: call System.Void
RimWorld.Pawn_GeneTracker::SetXenotypeDirect(RimWorld.XenotypeDef xenotype)
IL_026D: br => Label16
IL_0272: Label13
IL_0272: ldarg.s 4
IL_0274: ldarg.s 6
IL_0276: call static System.Boolean
RimWorld.PregnancyUtility::ShouldByHybrid(Verse.Pawn mother, Verse.Pawn father)
IL_027B: brfalse => Label17
IL_0280: ldloc.s 5 (Verse.Pawn)
IL_0282: ldfld RimWorld.Pawn_GeneTracker Verse.Pawn::genes
IL_0287: ldc.i4.1
IL_0288: stfld System.Boolean RimWorld.Pawn_GeneTracker::hybrid
IL_028D: ldloc.s 5 (Verse.Pawn)
IL_028F: ldfld RimWorld.Pawn_GeneTracker Verse.Pawn::genes
IL_0294: ldstr "Hybrid"
IL_0299: call static Verse.TaggedString
Verse.Translator::Translate(System.String key)
IL_029E: call static System.String
Verse.TaggedString::op_Implicit(Verse.TaggedString taggedString)
IL_02A3: stfld System.String RimWorld.Pawn_GeneTracker::xenotypeName
IL_02A8: Label15
IL_02A8: Label16
IL_02A8: Label17
IL_02A8: ldloca.s 7 (System.Nullable`1[Verse.IntVec3])
IL_02AA: initobj System.Nullable`1[Verse.IntVec3]
IL_02B0: ldloc.0
IL_02B1: ldfld Verse.Pawn RimWorld.<>c__DisplayClass30_0::birtherPawn
IL_02B6: dup
IL_02B7: brtrue => Label18
IL_02BC: pop
IL_02BD: ldc.i4.0
IL_02BE: br => Label19
IL_02C3: Label18
IL_02C3: call System.Boolean Verse.Thing::get_Spawned()
IL_02C8: Label19
IL_02C8: brfalse => Label20
IL_02CD: ldloc.0
IL_02CE: ldfld Verse.Pawn RimWorld.<>c__DisplayClass30_0::birtherPawn
IL_02D3: ldloca.s 17 (System.Nullable`1[System.Int32])
IL_02D5: call static RimWorld.Building_Bed
RimWorld.RestUtility::CurrentBed(Verse.Pawn p, System.Nullable`1& sleepingSlot)
IL_02DA: dup
IL_02DB: brtrue => Label21
IL_02E0: pop
IL_02E1: ldloca.s 19 (System.Nullable`1[Verse.IntVec3])
IL_02E3: initobj System.Nullable`1[Verse.IntVec3]
IL_02E9: ldloc.s 19 (System.Nullable`1[Verse.IntVec3])
IL_02EB: br => Label22
IL_02F0: Label21
IL_02F0: ldloca.s 17 (System.Nullable`1[System.Int32])
IL_02F2: call System.Int32 System.Nullable`1<System.Int32>::get_Value()
IL_02F7: call Verse.IntVec3
RimWorld.Building_Bed::GetFootSlotPos(System.Int32 index)
IL_02FC: newobj System.Void
System.Nullable`1<Verse.IntVec3>::.ctor(Verse.IntVec3 value)
IL_0301: Label22
IL_0301: stloc.s 19 (System.Nullable`1[Verse.IntVec3])
IL_0303: ldloca.s 19 (System.Nullable`1[Verse.IntVec3])
IL_0305: call System.Boolean System.Nullable`1<Verse.IntVec3>::get_HasValue()
IL_030A: brtrue => Label23
IL_030F: ldloc.0
IL_0310: ldfld Verse.Pawn RimWorld.<>c__DisplayClass30_0::birtherPawn
IL_0315: callvirt Verse.IntVec3 Verse.Thing::get_PositionHeld()
IL_031A: br => Label24
IL_031F: Label23
IL_031F: ldloca.s 19 (System.Nullable`1[Verse.IntVec3])
IL_0321: call Verse.IntVec3
System.Nullable`1<Verse.IntVec3>::GetValueOrDefault()
IL_0326: Label24
IL_0326: stloc.s 18 (Verse.IntVec3)
IL_0328: ldloca.s 7 (System.Nullable`1[Verse.IntVec3])
IL_032A: ldloc.s 18 (Verse.IntVec3)
IL_032C: ldloc.0
IL_032D: ldfld Verse.Pawn RimWorld.<>c__DisplayClass30_0::birtherPawn
IL_0332: callvirt virtual Verse.Map Verse.Thing::get_Map()
IL_0337: ldc.i4.1
IL_0338: ldloc.0
IL_0339: ldftn System.Boolean
RimWorld.<>c__DisplayClass30_0::<ApplyBirthOutcome>b__0(Verse.IntVec3 cell)
IL_033F: newobj System.Void
System.Predicate`1<Verse.IntVec3>::.ctor(System.Object object, System.IntPtr
method)
IL_0344: call static Verse.IntVec3
Verse.CellFinder::RandomClosewalkCellNear(Verse.IntVec3 root, Verse.Map map,
System.Int32 radius, System.Predicate`1<Verse.IntVec3> extraValidator)
IL_0349: call System.Void
System.Nullable`1<Verse.IntVec3>::.ctor(Verse.IntVec3 value)
IL_034E: ldloc.0
IL_034F: ldfld Verse.Pawn RimWorld.<>c__DisplayClass30_0::birtherPawn
IL_0354: ldloc.s 18 (Verse.IntVec3)
IL_0356: ldsfld Verse.ThingDef RimWorld.ThingDefOf::Filth_AmnioticFluid
IL_035B: ldc.i4.1
IL_035C: call static System.Void
RimWorld.PregnancyUtility::SpawnBirthFilth(Verse.Pawn mother, Verse.IntVec3 center,
Verse.ThingDef filth, System.Int32 radius)
IL_0361: ldloc.s 4 (System.Boolean)
IL_0363: brfalse => Label25
IL_0368: ldloc.0
IL_0369: ldfld Verse.Pawn RimWorld.<>c__DisplayClass30_0::birtherPawn
IL_036E: ldloc.s 18 (Verse.IntVec3)
IL_0370: ldsfld Verse.ThingDef RimWorld.ThingDefOf::Filth_Blood
IL_0375: ldc.i4.2
IL_0376: call static System.Void
RimWorld.PregnancyUtility::SpawnBirthFilth(Verse.Pawn mother, Verse.IntVec3 center,
Verse.ThingDef filth, System.Int32 radius)
IL_037B: Label20
IL_037B: Label25
IL_037B: ldloc.1
IL_037C: brfalse => Label26
IL_0381: ldloca.s 7 (System.Nullable`1[Verse.IntVec3])
IL_0383: ldloc.1
IL_0384: callvirt virtual Verse.IntVec3 Verse.Thing::get_InteractionCell()
IL_0389: call System.Void
System.Nullable`1<Verse.IntVec3>::.ctor(Verse.IntVec3 value)
IL_038E: ldloca.s 7 (System.Nullable`1[Verse.IntVec3])
IL_0390: call Verse.IntVec3 System.Nullable`1<Verse.IntVec3>::get_Value()
IL_0395: ldloc.1
IL_0396: callvirt virtual Verse.Map Verse.Thing::get_Map()
IL_039B: ldsfld Verse.ThingDef RimWorld.ThingDefOf::Filth_AmnioticFluid
IL_03A0: ldsfld Verse.IntRange RimWorld.PregnancyUtility::BirthFilthCount
IL_03A5: stloc.s 20 (Verse.IntRange)
IL_03A7: ldloca.s 20 (Verse.IntRange)
IL_03A9: call System.Int32 Verse.IntRange::get_RandomInRange()
IL_03AE: ldc.i4.0
IL_03AF: ldc.i4.1
IL_03B0: call static System.Boolean
RimWorld.FilthMaker::TryMakeFilth(Verse.IntVec3 c, Verse.Map map, Verse.ThingDef
filthDef, System.Int32 count, RimWorld.FilthSourceFlags additionalFlags,
System.Boolean shouldPropagate)
IL_03B5: pop
IL_03B6: Label26
IL_03B6: ldloc.0
IL_03B7: ldfld Verse.Pawn RimWorld.<>c__DisplayClass30_0::birtherPawn
IL_03BC: brfalse => Label27
IL_03C1: ldloc.0
IL_03C2: ldfld Verse.Pawn RimWorld.<>c__DisplayClass30_0::birtherPawn
IL_03C7: ldfld Verse.Pawn_HealthTracker Verse.Pawn::health
IL_03CC: ldsfld Verse.HediffDef RimWorld.HediffDefOf::PostpartumExhaustion
IL_03D1: ldnull
IL_03D2: ldloca.s 21 (System.Nullable`1[Verse.DamageInfo])
IL_03D4: initobj System.Nullable`1[Verse.DamageInfo]
IL_03DA: ldloc.s 21 (System.Nullable`1[Verse.DamageInfo])
IL_03DC: ldnull
IL_03DD: callvirt Verse.Hediff
Verse.Pawn_HealthTracker::AddHediff(Verse.HediffDef def, Verse.BodyPartRecord part,
System.Nullable`1<Verse.DamageInfo> dinfo, Verse.DamageResult result)
IL_03E2: pop
IL_03E3: ldloc.0
IL_03E4: ldfld Verse.Pawn RimWorld.<>c__DisplayClass30_0::birtherPawn
IL_03E9: ldfld Verse.Pawn_HealthTracker Verse.Pawn::health
IL_03EE: ldsfld Verse.HediffDef RimWorld.HediffDefOf::Lactating
IL_03F3: ldnull
IL_03F4: ldloca.s 21 (System.Nullable`1[Verse.DamageInfo])
IL_03F6: initobj System.Nullable`1[Verse.DamageInfo]
IL_03FC: ldloc.s 21 (System.Nullable`1[Verse.DamageInfo])
IL_03FE: ldnull
IL_03FF: callvirt Verse.Hediff
Verse.Pawn_HealthTracker::AddHediff(Verse.HediffDef def, Verse.BodyPartRecord part,
System.Nullable`1<Verse.DamageInfo> dinfo, Verse.DamageResult result)
IL_0404: pop
IL_0405: Label27
IL_0405: ldloc.s 5 (Verse.Pawn)
IL_0407: callvirt Verse.RaceProperties Verse.Pawn::get_RaceProps()
IL_040C: callvirt System.Boolean Verse.RaceProperties::get_IsFlesh()
IL_0411: brfalse => Label28
IL_0416: ldarg.s 4
IL_0418: brfalse => Label29
IL_041D: ldloc.s 5 (Verse.Pawn)
IL_041F: ldfld RimWorld.Pawn_RelationsTracker Verse.Pawn::relations
IL_0424: ldsfld RimWorld.PawnRelationDef RimWorld.PawnRelationDefOf::Parent
IL_0429: ldarg.s 4
IL_042B: callvirt System.Void
RimWorld.Pawn_RelationsTracker::AddDirectRelation(RimWorld.PawnRelationDef def,
Verse.Pawn otherPawn)
IL_0430: Label29
IL_0430: ldarg.s 6
IL_0432: brfalse => Label30
IL_0437: ldloc.s 5 (Verse.Pawn)
IL_0439: ldfld RimWorld.Pawn_RelationsTracker Verse.Pawn::relations
IL_043E: ldsfld RimWorld.PawnRelationDef RimWorld.PawnRelationDefOf::Parent
IL_0443: ldarg.s 6
IL_0445: callvirt System.Void
RimWorld.Pawn_RelationsTracker::AddDirectRelation(RimWorld.PawnRelationDef def,
Verse.Pawn otherPawn)
IL_044A: Label30
IL_044A: ldloc.0
IL_044B: ldfld Verse.Pawn RimWorld.<>c__DisplayClass30_0::birtherPawn
IL_0450: brfalse => Label31
IL_0455: ldloc.0
IL_0456: ldfld Verse.Pawn RimWorld.<>c__DisplayClass30_0::birtherPawn
IL_045B: ldarg.s 4
IL_045D: beq => Label32
IL_0462: ldloc.s 5 (Verse.Pawn)
IL_0464: ldfld RimWorld.Pawn_RelationsTracker Verse.Pawn::relations
IL_0469: ldsfld RimWorld.PawnRelationDef
RimWorld.PawnRelationDefOf::ParentBirth
IL_046E: ldloc.0
IL_046F: ldfld Verse.Pawn RimWorld.<>c__DisplayClass30_0::birtherPawn
IL_0474: callvirt System.Void
RimWorld.Pawn_RelationsTracker::AddDirectRelation(RimWorld.PawnRelationDef def,
Verse.Pawn otherPawn)
IL_0479: Label28
IL_0479: Label31
IL_0479: Label32
IL_0479: ldc.i4.0
IL_047A: stloc.s 8 (System.Boolean)
IL_047C: ldloc.3
IL_047D: ldc.i4.0
IL_047E: ceq
IL_0480: stloc.s 9 (System.Boolean)
IL_0482: ldloc.3
IL_0483: ldc.i4.0
IL_0484: blt => Label33
IL_0489: ldloc.s 5 (Verse.Pawn)
IL_048B: ldfld RimWorld.Pawn_PlayerSettings Verse.Pawn::playerSettings
IL_0490: brfalse => Label34
IL_0495: ldarg.s 4
IL_0497: brtrue => Label35
IL_049C: ldnull
IL_049D: br => Label36
IL_04A2: Label35
IL_04A2: ldarg.s 4
IL_04A4: ldfld RimWorld.Pawn_PlayerSettings Verse.Pawn::playerSettings
IL_04A9: Label36
IL_04A9: brfalse => Label37
IL_04AE: ldloc.s 5 (Verse.Pawn)
IL_04B0: ldfld RimWorld.Pawn_PlayerSettings Verse.Pawn::playerSettings
IL_04B5: ldarg.s 4
IL_04B7: ldfld RimWorld.Pawn_PlayerSettings Verse.Pawn::playerSettings
IL_04BC: callvirt Verse.Area RimWorld.Pawn_PlayerSettings::get_AreaRestriction()
IL_04C1: callvirt System.Void
RimWorld.Pawn_PlayerSettings::set_AreaRestriction(Verse.Area value)
IL_04C6: Label34
IL_04C6: Label37
IL_04C6: ldloc.s 9 (System.Boolean)
IL_04C8: brfalse => Label38
IL_04CD: ldloc.s 5 (Verse.Pawn)
IL_04CF: ldfld Verse.Pawn_HealthTracker Verse.Pawn::health
IL_04D4: ldsfld Verse.HediffDef RimWorld.HediffDefOf::InfantIllness
IL_04D9: ldnull
IL_04DA: ldloca.s 21 (System.Nullable`1[Verse.DamageInfo])
IL_04DC: initobj System.Nullable`1[Verse.DamageInfo]
IL_04E2: ldloc.s 21 (System.Nullable`1[Verse.DamageInfo])
IL_04E4: ldnull
IL_04E5: callvirt Verse.Hediff
Verse.Pawn_HealthTracker::AddHediff(Verse.HediffDef def, Verse.BodyPartRecord part,
System.Nullable`1<Verse.DamageInfo> dinfo, Verse.DamageResult result)
IL_04EA: pop
IL_04EB: Label38
IL_04EB: ldloc.0
IL_04EC: ldfld Verse.Pawn RimWorld.<>c__DisplayClass30_0::birtherPawn
IL_04F1: brfalse => Label39
IL_04F6: ldsfld RimWorld.TaleDef RimWorld.TaleDefOf::GaveBirth
IL_04FB: ldc.i4.2
IL_04FC: newarr System.Object
IL_0501: dup
IL_0502: ldc.i4.0
IL_0503: ldloc.0
IL_0504: ldfld Verse.Pawn RimWorld.<>c__DisplayClass30_0::birtherPawn
IL_0509: stelem.ref
IL_050A: dup
IL_050B: ldc.i4.1
IL_050C: ldloc.s 5 (Verse.Pawn)
IL_050E: stelem.ref
IL_050F: call static RimWorld.Tale
RimWorld.TaleRecorder::RecordTale(RimWorld.TaleDef def, System.Object[] args)
IL_0514: pop
IL_0515: ldloc.s 5 (Verse.Pawn)
IL_0517: ldfld Verse.AI.Pawn_MindState Verse.Pawn::mindState
IL_051C: ldloc.0
IL_051D: ldfld Verse.Pawn RimWorld.<>c__DisplayClass30_0::birtherPawn
IL_0522: ldc.i4.2
IL_0523: callvirt System.Void Verse.AI.Pawn_MindState::SetAutofeeder(Verse.Pawn
feeder, Verse.AutofeedMode setting)
IL_0528: Label39
IL_0528: ldarg.s 7
IL_052A: brfalse => Label40
IL_052F: ldarg.s 7
IL_0531: call System.Boolean Verse.Thing::get_Spawned()
IL_0536: brfalse => Label41
IL_053B: ldarg.s 7
IL_053D: brfalse => Label42
IL_0542: ldarg.s 7
IL_0544: ldfld Verse.Pawn_CarryTracker Verse.Pawn::carryTracker
IL_0549: dup
IL_054A: brtrue => Label43
IL_054F: pop
IL_0550: ldloca.s 24 (System.Nullable`1[System.Boolean])
IL_0552: initobj System.Nullable`1[System.Boolean]
IL_0558: ldloc.s 24 (System.Nullable`1[System.Boolean])
IL_055A: br => Label44
IL_055F: Label43
IL_055F: ldloc.s 5 (Verse.Pawn)
IL_0561: call System.Boolean
Verse.Pawn_CarryTracker::TryStartCarry(Verse.Thing item)
IL_0566: newobj System.Void
System.Nullable`1<System.Boolean>::.ctor(System.Boolean value)
IL_056B: Label44
IL_056B: stloc.s 22 (System.Nullable`1[System.Boolean])
IL_056D: ldc.i4.1
IL_056E: stloc.s 23 (System.Boolean)
IL_0570: ldloca.s 22 (System.Nullable`1[System.Boolean])
IL_0572: call System.Boolean
System.Nullable`1<System.Boolean>::GetValueOrDefault()
IL_0577: ldloc.s 23 (System.Boolean)
IL_0579: ceq
IL_057B: ldloca.s 22 (System.Nullable`1[System.Boolean])
IL_057D: call System.Boolean
System.Nullable`1<System.Boolean>::get_HasValue()
IL_0582: and
IL_0583: brfalse => Label45
IL_0588: ldloc.0
IL_0589: ldfld Verse.Pawn RimWorld.<>c__DisplayClass30_0::birtherPawn
IL_058E: brfalse => Label46
IL_0593: ldloc.1
IL_0594: brtrue => Label47
IL_0599: ldarg.s 7
IL_059B: ldloc.0
IL_059C: ldfld Verse.Pawn RimWorld.<>c__DisplayClass30_0::birtherPawn
IL_05A1: call static Verse.LocalTargetInfo
Verse.LocalTargetInfo::op_Implicit(Verse.Thing t)
IL_05A6: ldc.i4.2
IL_05A7: call static System.Boolean
Verse.ReachabilityImmediate::CanReachImmediate(Verse.Pawn pawn,
Verse.LocalTargetInfo target, Verse.AI.PathEndMode peMode)
IL_05AC: brfalse => Label48
IL_05B1: Label47
IL_05B1: ldsfld Verse.JobDef RimWorld.JobDefOf::CarryToMomAfterBirth
IL_05B6: ldloc.s 5 (Verse.Pawn)
IL_05B8: call static Verse.LocalTargetInfo
Verse.LocalTargetInfo::op_Implicit(Verse.Thing t)
IL_05BD: ldloc.0
IL_05BE: ldfld Verse.Pawn RimWorld.<>c__DisplayClass30_0::birtherPawn
IL_05C3: call static Verse.LocalTargetInfo
Verse.LocalTargetInfo::op_Implicit(Verse.Thing t)
IL_05C8: call static Verse.AI.Job Verse.JobMaker::MakeJob(Verse.JobDef def,
Verse.LocalTargetInfo targetA, Verse.LocalTargetInfo targetB)
IL_05CD: stloc.s 25 (Verse.AI.Job)
IL_05CF: ldloc.s 25 (Verse.AI.Job)
IL_05D1: ldc.i4.1
IL_05D2: stfld System.Int32 Verse.AI.Job::count
IL_05D7: ldarg.s 7
IL_05D9: ldfld Verse.AI.Pawn_JobTracker Verse.Pawn::jobs
IL_05DE: ldloc.s 25 (Verse.AI.Job)
IL_05E0: ldc.i4.2
IL_05E1: ldnull
IL_05E2: ldc.i4.0
IL_05E3: ldc.i4.1
IL_05E4: ldnull
IL_05E5: ldloca.s 26 (System.Nullable`1[Verse.AI.JobTag])
IL_05E7: initobj System.Nullable`1[Verse.AI.JobTag]
IL_05ED: ldloc.s 26 (System.Nullable`1[Verse.AI.JobTag])
IL_05EF: ldc.i4.0
IL_05F0: ldc.i4.0
IL_05F1: ldc.i4.1
IL_05F2: newobj System.Void
System.Nullable`1<System.Boolean>::.ctor(System.Boolean value)
IL_05F7: ldc.i4.0
IL_05F8: ldc.i4.1
IL_05F9: callvirt System.Void Verse.AI.Pawn_JobTracker::StartJob(Verse.AI.Job
newJob, Verse.AI.JobCondition lastJobEndCondition, Verse.AI.ThinkNode jobGiver,
System.Boolean resumeCurJobAfterwards, System.Boolean cancelBusyStances,
Verse.ThinkTreeDef thinkTree, System.Nullable`1<Verse.AI.JobTag> tag,
System.Boolean fromQueue, System.Boolean canReturnCurJobToPool,
System.Nullable`1<System.Boolean> keepCarryingThingOverride, System.Boolean
continueSleeping, System.Boolean addToJobsThisTick)
IL_05FE: br => Label49
IL_0603: Label40
IL_0603: Label41
IL_0603: Label42
IL_0603: Label45
IL_0603: Label46
IL_0603: Label48
IL_0603: ldloc.s 5 (Verse.Pawn)
IL_0605: ldarg.s 5
IL_0607: ldloc.s 7 (System.Nullable`1[Verse.IntVec3])
IL_0609: call static System.Boolean
RimWorld.PawnUtility::TrySpawnHatchedOrBornPawn(Verse.Pawn pawn, Verse.Thing
motherOrEgg, System.Nullable`1<Verse.IntVec3> positionOverride)
IL_060E: brtrue => Label50
IL_0613: call static RimWorld.Planet.WorldPawns Verse.Find::get_WorldPawns()
IL_0618: ldloc.s 5 (Verse.Pawn)
IL_061A: ldc.i4.2
IL_061B: callvirt System.Void RimWorld.Planet.WorldPawns::PassToWorld(Verse.Pawn
pawn, RimWorld.Planet.PawnDiscardDecideMode discardMode)
IL_0620: Label49
IL_0620: Label50
IL_0620: ldloc.s 9 (System.Boolean)
IL_0622: brtrue => Label51
IL_0627: ldarg.s 6
IL_0629: brfalse => Label52
IL_062E: ldarg.s 6
IL_0630: ldfld RimWorld.Pawn_NeedsTracker Verse.Pawn::needs
IL_0635: dup
IL_0636: brtrue => Label53
IL_063B: pop
IL_063C: br => Label54
IL_0641: Label53
IL_0641: ldfld RimWorld.Need_Mood RimWorld.Pawn_NeedsTracker::mood
IL_0646: dup
IL_0647: brtrue => Label55
IL_064C: pop
IL_064D: br => Label56
IL_0652: Label55
IL_0652: ldfld RimWorld.ThoughtHandler RimWorld.Need_Mood::thoughts
IL_0657: dup
IL_0658: brtrue => Label57
IL_065D: pop
IL_065E: br => Label58
IL_0663: Label57
IL_0663: ldfld RimWorld.MemoryThoughtHandler RimWorld.ThoughtHandler::memories
IL_0668: dup
IL_0669: brtrue => Label59
IL_066E: pop
IL_066F: br => Label60
IL_0674: Label59
IL_0674: ldsfld RimWorld.ThoughtDef RimWorld.ThoughtDefOf::BabyBorn
IL_0679: ldloc.s 5 (Verse.Pawn)
IL_067B: ldnull
IL_067C: call System.Void
RimWorld.MemoryThoughtHandler::TryGainMemory(RimWorld.ThoughtDef def, Verse.Pawn
otherPawn, RimWorld.Precept sourcePrecept)
IL_0681: Label52
IL_0681: Label54
IL_0681: Label56
IL_0681: Label58
IL_0681: Label60
IL_0681: ldarg.s 4
IL_0683: brfalse => Label61
IL_0688: ldarg.s 4
IL_068A: ldfld RimWorld.Pawn_NeedsTracker Verse.Pawn::needs
IL_068F: dup
IL_0690: brtrue => Label62
IL_0695: pop
IL_0696: br => Label63
IL_069B: Label62
IL_069B: ldfld RimWorld.Need_Mood RimWorld.Pawn_NeedsTracker::mood
IL_06A0: dup
IL_06A1: brtrue => Label64
IL_06A6: pop
IL_06A7: br => Label65
IL_06AC: Label64
IL_06AC: ldfld RimWorld.ThoughtHandler RimWorld.Need_Mood::thoughts
IL_06B1: dup
IL_06B2: brtrue => Label66
IL_06B7: pop
IL_06B8: br => Label67
IL_06BD: Label66
IL_06BD: ldfld RimWorld.MemoryThoughtHandler RimWorld.ThoughtHandler::memories
IL_06C2: dup
IL_06C3: brtrue => Label68
IL_06C8: pop
IL_06C9: br => Label69
IL_06CE: Label68
IL_06CE: ldsfld RimWorld.ThoughtDef RimWorld.ThoughtDefOf::BabyBorn
IL_06D3: ldloc.s 5 (Verse.Pawn)
IL_06D5: ldnull
IL_06D6: call System.Void
RimWorld.MemoryThoughtHandler::TryGainMemory(RimWorld.ThoughtDef def, Verse.Pawn
otherPawn, RimWorld.Precept sourcePrecept)
IL_06DB: Label61
IL_06DB: Label63
IL_06DB: Label65
IL_06DB: Label67
IL_06DB: Label69
IL_06DB: ldloc.0
IL_06DC: ldfld Verse.Pawn RimWorld.<>c__DisplayClass30_0::birtherPawn
IL_06E1: dup
IL_06E2: brtrue => Label70
IL_06E7: pop
IL_06E8: br => Label71
IL_06ED: Label70
IL_06ED: ldfld RimWorld.Pawn_NeedsTracker Verse.Pawn::needs
IL_06F2: dup
IL_06F3: brtrue => Label72
IL_06F8: pop
IL_06F9: br => Label73
IL_06FE: Label72
IL_06FE: ldfld RimWorld.Need_Mood RimWorld.Pawn_NeedsTracker::mood
IL_0703: dup
IL_0704: brtrue => Label74
IL_0709: pop
IL_070A: br => Label75
IL_070F: Label74
IL_070F: ldfld RimWorld.ThoughtHandler RimWorld.Need_Mood::thoughts
IL_0714: dup
IL_0715: brtrue => Label76
IL_071A: pop
IL_071B: br => Label77
IL_0720: Label76
IL_0720: ldfld RimWorld.MemoryThoughtHandler RimWorld.ThoughtHandler::memories
IL_0725: dup
IL_0726: brtrue => Label78
IL_072B: pop
IL_072C: br => Label79
IL_0731: Label78
IL_0731: ldsfld RimWorld.ThoughtDef RimWorld.ThoughtDefOf::BabyBorn
IL_0736: ldloc.s 5 (Verse.Pawn)
IL_0738: ldnull
IL_0739: call System.Void
RimWorld.MemoryThoughtHandler::TryGainMemory(RimWorld.ThoughtDef def, Verse.Pawn
otherPawn, RimWorld.Precept sourcePrecept)
IL_073E: br => Label80
IL_0743: Label33
IL_0743: ldloc.s 5 (Verse.Pawn)
IL_0745: ldfld Verse.Pawn_HealthTracker Verse.Pawn::health
IL_074A: ldsfld Verse.HediffDef RimWorld.HediffDefOf::Stillborn
IL_074F: ldnull
IL_0750: ldloca.s 21 (System.Nullable`1[Verse.DamageInfo])
IL_0752: initobj System.Nullable`1[Verse.DamageInfo]
IL_0758: ldloc.s 21 (System.Nullable`1[Verse.DamageInfo])
IL_075A: ldnull
IL_075B: callvirt Verse.Hediff
Verse.Pawn_HealthTracker::AddHediff(Verse.HediffDef def, Verse.BodyPartRecord part,
System.Nullable`1<Verse.DamageInfo> dinfo, Verse.DamageResult result)
IL_0760: stloc.s 27 (Verse.Hediff)
IL_0762: ldc.i4.1
IL_0763: stloc.s 8 (System.Boolean)
IL_0765: ldloc.0
IL_0766: ldfld Verse.Pawn RimWorld.<>c__DisplayClass30_0::birtherPawn
IL_076B: dup
IL_076C: brtrue => Label81
IL_0771: pop
IL_0772: br => Label82
IL_0777: Label81
IL_0777: call RimWorld.Ideo Verse.Pawn::get_Ideo()
IL_077C: dup
IL_077D: brtrue => Label83
IL_0782: pop
IL_0783: br => Label84
IL_0788: Label83
IL_0788: ldloc.s 5 (Verse.Pawn)
IL_078A: call System.Void RimWorld.Ideo::Notify_MemberDied(Verse.Pawn member)
IL_078F: Label82
IL_078F: Label84
IL_078F: ldloc.s 5 (Verse.Pawn)
IL_0791: call static Verse.TickManager Verse.Find::get_TickManager()
IL_0796: callvirt System.Int32 Verse.TickManager::get_TicksGame()
IL_079B: ldc.i4.1
IL_079C: add
IL_079D: stfld System.Int32 Verse.Pawn::babyNamingDeadline
IL_07A2: call static Verse.BattleLog Verse.Find::get_BattleLog()
IL_07A7: ldloc.s 5 (Verse.Pawn)
IL_07A9: ldloc.s 5 (Verse.Pawn)
IL_07AB: callvirt Verse.RaceProperties Verse.Pawn::get_RaceProps()
IL_07B0: callvirt Verse.DeathActionWorker
Verse.RaceProperties::get_DeathActionWorker()
IL_07B5: callvirt virtual Verse.RulePackDef
Verse.DeathActionWorker::get_DeathRules()
IL_07BA: ldnull
IL_07BB: ldloc.s 27 (Verse.Hediff)
IL_07BD: ldnull
IL_07BE: newobj System.Void
Verse.BattleLogEntry_StateTransition::.ctor(Verse.Thing subject, Verse.RulePackDef
transitionDef, Verse.Pawn initiator, Verse.Hediff culpritHediff,
Verse.BodyPartRecord culpritTargetDef)
IL_07C3: callvirt System.Void Verse.BattleLog::Add(Verse.LogEntry entry)
IL_07C8: ldarg.s 5
IL_07CA: callvirt System.Boolean Verse.Thing::get_Spawned()
IL_07CF: brfalse => Label85
IL_07D4: ldloc.s 5 (Verse.Pawn)
IL_07D6: callvirt Verse.Corpse Verse.Pawn::get_Corpse()
IL_07DB: ldloc.s 7 (System.Nullable`1[Verse.IntVec3])
IL_07DD: stloc.s 19 (System.Nullable`1[Verse.IntVec3])
IL_07DF: ldloca.s 19 (System.Nullable`1[Verse.IntVec3])
IL_07E1: call System.Boolean System.Nullable`1<Verse.IntVec3>::get_HasValue()
IL_07E6: brtrue => Label86
IL_07EB: ldarg.s 5
IL_07ED: callvirt Verse.IntVec3 Verse.Thing::get_PositionHeld()
IL_07F2: br => Label87
IL_07F7: Label86
IL_07F7: ldloca.s 19 (System.Nullable`1[Verse.IntVec3])
IL_07F9: call Verse.IntVec3
System.Nullable`1<Verse.IntVec3>::GetValueOrDefault()
IL_07FE: Label87
IL_07FE: ldarg.s 5
IL_0800: callvirt Verse.Map Verse.Thing::get_MapHeld()
IL_0805: ldc.i4.0
IL_0806: call static Verse.Thing Verse.GenSpawn::Spawn(Verse.Thing newThing,
Verse.IntVec3 loc, Verse.Map map, Verse.WipeMode wipeMode)
IL_080B: pop
IL_080C: Label51
IL_080C: Label71
IL_080C: Label73
IL_080C: Label75
IL_080C: Label77
IL_080C: Label79
IL_080C: Label80
IL_080C: Label85
IL_080C: ldloc.s 8 (System.Boolean)
IL_080E: brfalse => Label88
IL_0813: ldarg.s 4
IL_0815: brfalse => Label89
IL_081A: ldarg.s 4
IL_081C: ldfld RimWorld.Pawn_NeedsTracker Verse.Pawn::needs
IL_0821: dup
IL_0822: brtrue => Label90
IL_0827: pop
IL_0828: br => Label91
IL_082D: Label90
IL_082D: ldfld RimWorld.Need_Mood RimWorld.Pawn_NeedsTracker::mood
IL_0832: dup
IL_0833: brtrue => Label92
IL_0838: pop
IL_0839: br => Label93
IL_083E: Label92
IL_083E: ldfld RimWorld.ThoughtHandler RimWorld.Need_Mood::thoughts
IL_0843: dup
IL_0844: brtrue => Label94
IL_0849: pop
IL_084A: br => Label95
IL_084F: Label94
IL_084F: ldfld RimWorld.MemoryThoughtHandler RimWorld.ThoughtHandler::memories
IL_0854: dup
IL_0855: brtrue => Label96
IL_085A: pop
IL_085B: br => Label97
IL_0860: Label96
IL_0860: ldsfld RimWorld.ThoughtDef RimWorld.ThoughtDefOf::Stillbirth
IL_0865: ldnull
IL_0866: ldnull
IL_0867: call System.Void
RimWorld.MemoryThoughtHandler::TryGainMemory(RimWorld.ThoughtDef def, Verse.Pawn
otherPawn, RimWorld.Precept sourcePrecept)
IL_086C: Label89
IL_086C: Label91
IL_086C: Label93
IL_086C: Label95
IL_086C: Label97
IL_086C: ldarg.s 6
IL_086E: brfalse => Label98
IL_0873: ldarg.s 6
IL_0875: ldfld RimWorld.Pawn_NeedsTracker Verse.Pawn::needs
IL_087A: dup
IL_087B: brtrue => Label99
IL_0880: pop
IL_0881: br => Label100
IL_0886: Label99
IL_0886: ldfld RimWorld.Need_Mood RimWorld.Pawn_NeedsTracker::mood
IL_088B: dup
IL_088C: brtrue => Label101
IL_0891: pop
IL_0892: br => Label102
IL_0897: Label101
IL_0897: ldfld RimWorld.ThoughtHandler RimWorld.Need_Mood::thoughts
IL_089C: dup
IL_089D: brtrue => Label103
IL_08A2: pop
IL_08A3: br => Label104
IL_08A8: Label103
IL_08A8: ldfld RimWorld.MemoryThoughtHandler RimWorld.ThoughtHandler::memories
IL_08AD: dup
IL_08AE: brtrue => Label105
IL_08B3: pop
IL_08B4: br => Label106
IL_08B9: Label105
IL_08B9: ldsfld RimWorld.ThoughtDef RimWorld.ThoughtDefOf::Stillbirth
IL_08BE: ldnull
IL_08BF: ldnull
IL_08C0: call System.Void
RimWorld.MemoryThoughtHandler::TryGainMemory(RimWorld.ThoughtDef def, Verse.Pawn
otherPawn, RimWorld.Precept sourcePrecept)
IL_08C5: Label88
IL_08C5: Label98
IL_08C5: Label100
IL_08C5: Label102
IL_08C5: Label104
IL_08C5: Label106
IL_08C5: ldarg.s 5
IL_08C7: callvirt Verse.Map Verse.Thing::get_MapHeld()
IL_08CC: stloc.s 10 (Verse.Map)
IL_08CE: ldarg.s 5
IL_08D0: callvirt Verse.IntVec3 Verse.Thing::get_PositionHeld()
IL_08D5: stloc.s 11 (Verse.IntVec3)
IL_08D7: ldloc.s 4 (System.Boolean)
IL_08D9: brfalse => Label107
IL_08DE: ldloc.0
IL_08DF: ldfld Verse.Pawn RimWorld.<>c__DisplayClass30_0::birtherPawn
IL_08E4: ldloca.s 21 (System.Nullable`1[Verse.DamageInfo])
IL_08E6: initobj System.Nullable`1[Verse.DamageInfo]
IL_08EC: ldloc.s 21 (System.Nullable`1[Verse.DamageInfo])
IL_08EE: ldnull
IL_08EF: callvirt virtual System.Void
Verse.Thing::Kill(System.Nullable`1<Verse.DamageInfo> dinfo, Verse.Hediff
exactCulprit)
IL_08F4: Label107
IL_08F4: ldloc.3
IL_08F5: ldc.i4.0
IL_08F6: bge => Label108
IL_08FB: ldloc.s 5 (Verse.Pawn)
IL_08FD: callvirt Verse.Corpse Verse.Pawn::get_Corpse()
IL_0902: br => Label109
IL_0907: Label108
IL_0907: ldloc.s 5 (Verse.Pawn)
IL_0909: Label109
IL_0909: stloc.s 12 (Verse.Thing)
IL_090B: call static RimWorld.QuestManager Verse.Find::get_QuestManager()
IL_0910: ldloc.s 12 (Verse.Thing)
IL_0912: ldarg.s 5
IL_0914: ldarg.s 4
IL_0916: ldarg.s 6
IL_0918: callvirt System.Void RimWorld.QuestManager::Notify_PawnBorn(Verse.Thing
baby, Verse.Thing birther, Verse.Pawn mother, Verse.Pawn father)
IL_091D: ldarg.2
IL_091E: brfalse => Label110
IL_0923: ldloc.0
IL_0924: ldfld Verse.Pawn RimWorld.<>c__DisplayClass30_0::birtherPawn
IL_0929: brfalse => Label111
IL_092E: ldarg.0
IL_092F: ldfld System.String RimWorld.OutcomeChance::description
IL_0934: ldloc.0
IL_0935: ldfld Verse.Pawn RimWorld.<>c__DisplayClass30_0::birtherPawn
IL_093A: ldstr "MOTHER"
IL_093F: call static Verse.NamedArgument
Verse.NamedArgumentUtility::Named(System.Object arg, System.String label)
IL_0944: call static Verse.TaggedString
Verse.GrammarResolverSimpleStringExtensions::Formatted(System.String str,
Verse.NamedArgument arg1)
IL_0949: stloc.s 28 (Verse.TaggedString)
IL_094B: br => Label112
IL_0950: Label111
IL_0950: ldloc.s 8 (System.Boolean)
IL_0952: brfalse => Label113
IL_0957: ldarg.s 4
IL_0959: brfalse => Label114
IL_095E: ldarg.s 6
IL_0960: brfalse => Label115
IL_0965: ldstr "LetterVatStillborn"
IL_096A: ldarg.s 4
IL_096C: call static Verse.NamedArgument
Verse.NamedArgument::op_Implicit(Verse.Thing value)
IL_0971: ldarg.s 6
IL_0973: call static Verse.NamedArgument
Verse.NamedArgument::op_Implicit(Verse.Thing value)
IL_0978: call static Verse.TaggedString
Verse.TranslatorFormattedStringExtensions::Translate(System.String key,
Verse.NamedArgument arg1, Verse.NamedArgument arg2)
IL_097D: stloc.s 28 (Verse.TaggedString)
IL_097F: br => Label116
IL_0984: Label114
IL_0984: Label115
IL_0984: ldstr "LetterVatSillbornNoParents"
IL_0989: call static Verse.TaggedString
Verse.Translator::Translate(System.String key)
IL_098E: stloc.s 28 (Verse.TaggedString)
IL_0990: br => Label117
IL_0995: Label113
IL_0995: ldloc.s 9 (System.Boolean)
IL_0997: brfalse => Label118
IL_099C: ldarg.s 4
IL_099E: brfalse => Label119
IL_09A3: ldarg.s 6
IL_09A5: brfalse => Label120
IL_09AA: ldstr "LetterVatInfantIllness"
IL_09AF: ldarg.s 4
IL_09B1: call static Verse.NamedArgument
Verse.NamedArgument::op_Implicit(Verse.Thing value)
IL_09B6: ldarg.s 6
IL_09B8: call static Verse.NamedArgument
Verse.NamedArgument::op_Implicit(Verse.Thing value)
IL_09BD: call static Verse.TaggedString
Verse.TranslatorFormattedStringExtensions::Translate(System.String key,
Verse.NamedArgument arg1, Verse.NamedArgument arg2)
IL_09C2: stloc.s 28 (Verse.TaggedString)
IL_09C4: br => Label121
IL_09C9: Label119
IL_09C9: Label120
IL_09C9: ldstr "LetterVatInfantIllnessNoParents"
IL_09CE: call static Verse.TaggedString
Verse.Translator::Translate(System.String key)
IL_09D3: stloc.s 28 (Verse.TaggedString)
IL_09D5: br => Label122
IL_09DA: Label118
IL_09DA: ldarg.s 4
IL_09DC: brfalse => Label123
IL_09E1: ldarg.s 6
IL_09E3: brfalse => Label124
IL_09E8: ldstr "LetterVatHealthyBaby"
IL_09ED: ldarg.s 4
IL_09EF: call static Verse.NamedArgument
Verse.NamedArgument::op_Implicit(Verse.Thing value)
IL_09F4: ldarg.s 6
IL_09F6: call static Verse.NamedArgument
Verse.NamedArgument::op_Implicit(Verse.Thing value)
IL_09FB: call static Verse.TaggedString
Verse.TranslatorFormattedStringExtensions::Translate(System.String key,
Verse.NamedArgument arg1, Verse.NamedArgument arg2)
IL_0A00: stloc.s 28 (Verse.TaggedString)
IL_0A02: br => Label125
IL_0A07: Label123
IL_0A07: Label124
IL_0A07: ldstr "LetterVatHealthyBabyNoParents"
IL_0A0C: call static Verse.TaggedString
Verse.Translator::Translate(System.String key)
IL_0A11: stloc.s 28 (Verse.TaggedString)
IL_0A13: Label112
IL_0A13: Label116
IL_0A13: Label117
IL_0A13: Label121
IL_0A13: Label122
IL_0A13: Label125
IL_0A13: ldloc.s 8 (System.Boolean)
IL_0A15: brtrue => Label126
IL_0A1A: ldloc.0
IL_0A1B: ldfld Verse.Pawn RimWorld.<>c__DisplayClass30_0::birtherPawn
IL_0A20: brfalse => Label127
IL_0A25: ldarg.s 4
IL_0A27: brfalse => Label128
IL_0A2C: ldloc.0
IL_0A2D: ldfld Verse.Pawn RimWorld.<>c__DisplayClass30_0::birtherPawn
IL_0A32: ldarg.s 4
IL_0A34: beq => Label129
IL_0A39: ldarg.s 6
IL_0A3B: brfalse => Label130
IL_0A40: ldloc.s 28 (Verse.TaggedString)
IL_0A42: ldstr "\n\n"
IL_0A47: ldstr "LetterPartSurrogacy"
IL_0A4C: ldarg.s 4
IL_0A4E: call static Verse.NamedArgument
Verse.NamedArgument::op_Implicit(Verse.Thing value)
IL_0A53: ldarg.s 6
IL_0A55: call static Verse.NamedArgument
Verse.NamedArgument::op_Implicit(Verse.Thing value)
IL_0A5A: call static Verse.TaggedString
Verse.TranslatorFormattedStringExtensions::Translate(System.String key,
Verse.NamedArgument arg1, Verse.NamedArgument arg2)
IL_0A5F: call static Verse.TaggedString
Verse.TaggedString::op_Addition(System.String t1, Verse.TaggedString t2)
IL_0A64: call static Verse.TaggedString
Verse.TaggedString::op_Addition(Verse.TaggedString t1, Verse.TaggedString t2)
IL_0A69: stloc.s 28 (Verse.TaggedString)
IL_0A6B: Label126
IL_0A6B: Label127
IL_0A6B: Label128
IL_0A6B: Label129
IL_0A6B: Label130
IL_0A6B: ldloc.0
IL_0A6C: ldfld Verse.Pawn RimWorld.<>c__DisplayClass30_0::birtherPawn
IL_0A71: brfalse => Label131
IL_0A76: ldloc.2
IL_0A77: brtrue => Label132
IL_0A7C: ldsfld RimWorld.RitualOutcomeEffectDef
RimWorld.RitualOutcomeEffectDefOf::ChildBirth
IL_0A81: callvirt RimWorld.RitualOutcomeEffectWorker
RimWorld.RitualOutcomeEffectDef::GetInstance()
IL_0A86: castclass RimWorld.RitualOutcomeEffectWorker_ChildBirth
IL_0A8B: stloc.s 30 (RimWorld.RitualOutcomeEffectWorker_ChildBirth)
IL_0A8D: ldarg.s 8
IL_0A8F: brfalse => Label133
IL_0A94: ldloc.s 28 (Verse.TaggedString)
IL_0A96: ldstr "\n\n"
IL_0A9B: ldloc.s 30 (RimWorld.RitualOutcomeEffectWorker_ChildBirth)
IL_0A9D: ldarg.1
IL_0A9E: ldc.r4 1
IL_0AA3: ldarg.s 8
IL_0AA5: callvirt virtual System.String
RimWorld.RitualOutcomeEffectWorker_FromQuality::OutcomeQualityBreakdownDesc(System.
Single quality, System.Single progress, RimWorld.LordJob_Ritual jobRitual)
IL_0AAA: call static System.String System.String::Concat(System.String str0,
System.String str1)
IL_0AAF: call static Verse.TaggedString
Verse.TaggedString::op_Addition(Verse.TaggedString t1, System.String t2)
IL_0AB4: stloc.s 28 (Verse.TaggedString)
IL_0AB6: br => Label134
IL_0ABB: Label133
IL_0ABB: ldloc.s 28 (Verse.TaggedString)
IL_0ABD: ldstr "\n\n"
IL_0AC2: ldarg.2
IL_0AC3: ldloc.s 11 (Verse.IntVec3)
IL_0AC5: ldloc.s 10 (Verse.Map)
IL_0AC7: ldc.i4.1
IL_0AC8: newobj System.Void Verse.TargetInfo::.ctor(Verse.IntVec3 cell,
Verse.Map map, System.Boolean allowNullMap)
IL_0ACD: ldarg.s 9
IL_0ACF: ldnull
IL_0AD0: call static System.String
RimWorld.RitualUtility::QualityBreakdownAbstract(RimWorld.Precept_Ritual ritual,
Verse.TargetInfo ritualTarget, RimWorld.RitualRoleAssignments assignments,
RimWorld.RitualObligation obligation)
IL_0AD5: call static System.String System.String::Concat(System.String str0,
System.String str1)
IL_0ADA: call static Verse.TaggedString
Verse.TaggedString::op_Addition(Verse.TaggedString t1, System.String t2)
IL_0ADF: stloc.s 28 (Verse.TaggedString)
IL_0AE1: Label134
IL_0AE1: ldloc.2
IL_0AE2: brtrue => Label135
IL_0AE7: ldloc.s 28 (Verse.TaggedString)
IL_0AE9: ldstr "\n\n"
IL_0AEE: ldstr "BirthRitualHealthyBabyChance"
IL_0AF3: ldloc.s 30 (RimWorld.RitualOutcomeEffectWorker_ChildBirth)
IL_0AF5: ldarg.s 8
IL_0AF7: ldloc.s 30 (RimWorld.RitualOutcomeEffectWorker_ChildBirth)
IL_0AF9: ldfld RimWorld.RitualOutcomeEffectDef
RimWorld.RitualOutcomeEffectWorker::def
IL_0AFE: callvirt RimWorld.OutcomeChance
RimWorld.RitualOutcomeEffectDef::get_BestOutcome()
IL_0B03: ldarg.1
IL_0B04: callvirt virtual System.Single
RimWorld.RitualOutcomeEffectWorker_FromQuality::GetOutcomeChanceAtQuality(RimWorld.
LordJob_Ritual ritual, RimWorld.OutcomeChance outcome, System.Single quality)
IL_0B09: call static Verse.NamedArgument
Verse.NamedArgument::op_Implicit(System.Single value)
IL_0B0E: call static Verse.TaggedString
Verse.TranslatorFormattedStringExtensions::Translate(System.String key,
Verse.NamedArgument arg1)
IL_0B13: call static Verse.TaggedString
Verse.TaggedString::op_Addition(System.String t1, Verse.TaggedString t2)
IL_0B18: call static Verse.TaggedString
Verse.TaggedString::op_Addition(Verse.TaggedString t1, Verse.TaggedString t2)
IL_0B1D: stloc.s 28 (Verse.TaggedString)
IL_0B1F: Label135
IL_0B1F: ldloc.s 4 (System.Boolean)
IL_0B21: brfalse => Label136
IL_0B26: ldloc.s 28 (Verse.TaggedString)
IL_0B28: ldstr "\n\n"
IL_0B2D: ldstr "LetterPartColonistDiedAfterChildbirth"
IL_0B32: ldloc.0
IL_0B33: ldfld Verse.Pawn RimWorld.<>c__DisplayClass30_0::birtherPawn
IL_0B38: call static Verse.NamedArgument
Verse.NamedArgument::op_Implicit(Verse.Thing value)
IL_0B3D: call static Verse.TaggedString
Verse.TranslatorFormattedStringExtensions::Translate(System.String key,
Verse.NamedArgument arg1)
IL_0B42: call static Verse.TaggedString
Verse.TaggedString::op_Addition(System.String t1, Verse.TaggedString t2)
IL_0B47: call static Verse.TaggedString
Verse.TaggedString::op_Addition(Verse.TaggedString t1, Verse.TaggedString t2)
IL_0B4C: stloc.s 28 (Verse.TaggedString)
IL_0B4E: Label131
IL_0B4E: Label132
IL_0B4E: Label136
IL_0B4E: ldloc.s 5 (Verse.Pawn)
IL_0B50: ldfld RimWorld.Pawn_GeneTracker Verse.Pawn::genes
IL_0B55: ldsfld Verse.GeneDef RimWorld.GeneDefOf::Inbred
IL_0B5A: callvirt System.Boolean RimWorld.Pawn_GeneTracker::HasGene(Verse.GeneDef
geneDef)
IL_0B5F: brfalse => Label137
IL_0B64: ldloc.s 28 (Verse.TaggedString)
IL_0B66: ldstr "\n\n"
IL_0B6B: ldstr "InbredBabyBorn"
IL_0B70: call static Verse.TaggedString
Verse.Translator::Translate(System.String key)
IL_0B75: call static Verse.TaggedString
Verse.TaggedString::op_Addition(System.String t1, Verse.TaggedString t2)
IL_0B7A: call static Verse.TaggedString
Verse.TaggedString::op_Addition(Verse.TaggedString t1, Verse.TaggedString t2)
IL_0B7F: stloc.s 28 (Verse.TaggedString)
IL_0B81: Label137
IL_0B81: ldloc.s 28 (Verse.TaggedString)
IL_0B83: ldstr "\n\n"
IL_0B88: ldstr "LetterPartTempBabyName"
IL_0B8D: ldloc.s 5 (Verse.Pawn)
IL_0B8F: call static Verse.NamedArgument
Verse.NamedArgument::op_Implicit(Verse.Thing value)
IL_0B94: call static Verse.TaggedString
Verse.TranslatorFormattedStringExtensions::Translate(System.String key,
Verse.NamedArgument arg1)
IL_0B99: call static Verse.TaggedString
Verse.TaggedString::op_Addition(System.String t1, Verse.TaggedString t2)
IL_0B9E: ldstr " "
IL_0BA3: call static Verse.TaggedString
Verse.TaggedString::op_Addition(Verse.TaggedString t1, System.String t2)
IL_0BA8: call static Verse.TaggedString
Verse.TaggedString::op_Addition(Verse.TaggedString t1, Verse.TaggedString t2)
IL_0BAD: stloc.s 28 (Verse.TaggedString)
IL_0BAF: ldloc.s 8 (System.Boolean)
IL_0BB1: brfalse => Label138
IL_0BB6: ldloc.s 28 (Verse.TaggedString)
IL_0BB8: ldstr "LetterPartStillbirthNameDeadline"
IL_0BBD: call static Verse.TaggedString
Verse.Translator::Translate(System.String key)
IL_0BC2: call static Verse.TaggedString
Verse.TaggedString::op_Addition(Verse.TaggedString t1, Verse.TaggedString t2)
IL_0BC7: stloc.s 28 (Verse.TaggedString)
IL_0BC9: br => Label139
IL_0BCE: Label138
IL_0BCE: ldloc.s 28 (Verse.TaggedString)
IL_0BD0: ldstr "LetterPartLiveBirthNameDeadline"
IL_0BD5: ldc.i4 60000
IL_0BDA: ldc.i4.1
IL_0BDB: ldc.i4.0
IL_0BDC: ldc.i4.1
IL_0BDD: ldc.i4.1
IL_0BDE: ldc.i4.0
IL_0BDF: call static System.String
RimWorld.GenDate::ToStringTicksToPeriod(System.Int32 numTicks, System.Boolean
allowSeconds, System.Boolean shortForm, System.Boolean canUseDecimals,
System.Boolean allowYears, System.Boolean canUseDecimalsShortForm)
IL_0BE4: call static Verse.NamedArgument
Verse.NamedArgument::op_Implicit(System.String value)
IL_0BE9: call static Verse.TaggedString
Verse.TranslatorFormattedStringExtensions::Translate(System.String key,
Verse.NamedArgument arg1)
IL_0BEE: call static Verse.TaggedString
Verse.TaggedString::op_Addition(Verse.TaggedString t1, Verse.TaggedString t2)
IL_0BF3: stloc.s 28 (Verse.TaggedString)
IL_0BF5: Label139
IL_0BF5: ldloc.0
IL_0BF6: ldfld Verse.Pawn RimWorld.<>c__DisplayClass30_0::birtherPawn
IL_0BFB: brtrue => Label140
IL_0C00: ldstr "LetterVatBirth"
IL_0C05: ldarg.0
IL_0C06: ldfld System.String RimWorld.OutcomeChance::label
IL_0C0B: call static Verse.NamedArgument
Verse.NamedArgument::op_Implicit(System.String value)
IL_0C10: call static Verse.TaggedString
Verse.TranslatorFormattedStringExtensions::Translate(System.String key,
Verse.NamedArgument arg1)
IL_0C15: br => Label141
IL_0C1A: Label140
IL_0C1A: ldstr "OutcomeLetterLabel"
IL_0C1F: ldarg.0
IL_0C20: ldfld System.String RimWorld.OutcomeChance::label
IL_0C25: ldstr "OUTCOMELABEL"
IL_0C2A: call static Verse.NamedArgument
Verse.NamedArgumentUtility::Named(System.Object arg, System.String label)
IL_0C2F: ldarg.2
IL_0C30: callvirt virtual System.String RimWorld.Precept::get_Label()
IL_0C35: ldstr "RITUALLABEL"
IL_0C3A: call static Verse.NamedArgument
Verse.NamedArgumentUtility::Named(System.Object arg, System.String label)
IL_0C3F: call static Verse.TaggedString
Verse.TranslatorFormattedStringExtensions::Translate(System.String key,
Verse.NamedArgument arg1, Verse.NamedArgument arg2)
IL_0C44: Label141
IL_0C44: ldloc.s 28 (Verse.TaggedString)
IL_0C46: ldsfld Verse.LetterDef RimWorld.LetterDefOf::BabyBirth
IL_0C4B: ldloc.s 5 (Verse.Pawn)
IL_0C4D: call static Verse.LookTargets
Verse.LookTargets::op_Implicit(Verse.Thing t)
IL_0C52: ldnull
IL_0C53: ldnull
IL_0C54: ldnull
IL_0C55: call static Verse.ChoiceLetter
Verse.LetterMaker::MakeLetter(Verse.TaggedString label, Verse.TaggedString text,
Verse.LetterDef def, Verse.LookTargets lookTargets, RimWorld.Faction
relatedFaction, RimWorld.Quest quest,
System.Collections.Generic.List`1<Verse.ThingDef> hyperlinkThingDefs)
IL_0C5A: castclass RimWorld.ChoiceLetter_BabyBirth
IL_0C5F: stloc.s 29 (RimWorld.ChoiceLetter_BabyBirth)
IL_0C61: ldloc.s 29 (RimWorld.ChoiceLetter_BabyBirth)
IL_0C63: callvirt System.Void RimWorld.ChoiceLetter_BabyBirth::Start()
IL_0C68: call static Verse.LetterStack Verse.Find::get_LetterStack()
IL_0C6D: ldloc.s 29 (RimWorld.ChoiceLetter_BabyBirth)
IL_0C6F: ldnull
IL_0C70: callvirt System.Void Verse.LetterStack::ReceiveLetter(Verse.Letter let,
System.String debugInfo)
IL_0C75: Label110
IL_0C75: ldloc.s 12 (Verse.Thing)
IL_0C77: // end original
IL_0C77: ret
DONE

### Patch: virtual System.Boolean Verse.<ConfigErrors>d__144::MoveNext()


### Replacement: static System.Boolean
Verse.VerbProperties+<ConfigErrors>d__144::Verse.VerbProperties+<ConfigErrors>d__14
4.MoveNext_Patch0(Verse.<ConfigErrors>d__144 this)
IL_0000: Local var 0: System.Int32
IL_0000: Local var 1: Verse.VerbProperties
IL_0000: // start original
IL_0000: ldarg.0
IL_0001: ldfld System.Int32 Verse.<ConfigErrors>d__144::<>1__state
IL_0006: stloc.0
IL_0007: ldarg.0
IL_0008: ldfld Verse.VerbProperties Verse.<ConfigErrors>d__144::<>4__this
IL_000D: stloc.1
IL_000E: ldloc.0
IL_000F: switch => Labels0,1,2
IL_0020: ldc.i4.0
IL_0021: br => Label9
IL_0026: Label0
IL_0026: ldarg.0
IL_0027: ldc.i4.m1
IL_0028: stfld System.Int32 Verse.<ConfigErrors>d__144::<>1__state
IL_002D: ldarg.0
IL_002E: ldfld Verse.ThingDef Verse.<ConfigErrors>d__144::parent
IL_0033: ldfld Verse.RaceProperties Verse.ThingDef::race
IL_0038: brfalse => Label3
IL_003D: ldloc.1
IL_003E: ldfld Verse.BodyPartGroupDef
Verse.VerbProperties::linkedBodyPartsGroup
IL_0043: brfalse => Label4
IL_0048: ldarg.0
IL_0049: ldfld Verse.ThingDef Verse.<ConfigErrors>d__144::parent
IL_004E: ldfld Verse.RaceProperties Verse.ThingDef::race
IL_0053: ldfld Verse.BodyDef Verse.RaceProperties::body
IL_0058: callvirt System.Collections.Generic.List`1<Verse.BodyPartRecord>
Verse.BodyDef::get_AllParts()
IL_005D: ldloc.1
IL_005E: ldftn System.Boolean
Verse.VerbProperties::<ConfigErrors>b__144_0(Verse.BodyPartRecord part)
IL_0064: newobj System.Void
System.Predicate`1<Verse.BodyPartRecord>::.ctor(System.Object object, System.IntPtr
method)
IL_0069: call static System.Boolean
Verse.GenCollection::Any(System.Collections.Generic.List`1<Verse.BodyPartRecord>
list, System.Predicate`1<Verse.BodyPartRecord> predicate)
IL_006E: brtrue => Label5
IL_0073: ldarg.0
IL_0074: ldc.i4.5
IL_0075: newarr System.Object
IL_007A: dup
IL_007B: ldc.i4.0
IL_007C: ldstr "has verb with linkedBodyPartsGroup "
IL_0081: stelem.ref
IL_0082: dup
IL_0083: ldc.i4.1
IL_0084: ldloc.1
IL_0085: ldfld Verse.BodyPartGroupDef
Verse.VerbProperties::linkedBodyPartsGroup
IL_008A: stelem.ref
IL_008B: dup
IL_008C: ldc.i4.2
IL_008D: ldstr " but body "
IL_0092: stelem.ref
IL_0093: dup
IL_0094: ldc.i4.3
IL_0095: ldarg.0
IL_0096: ldfld Verse.ThingDef Verse.<ConfigErrors>d__144::parent
IL_009B: ldfld Verse.RaceProperties Verse.ThingDef::race
IL_00A0: ldfld Verse.BodyDef Verse.RaceProperties::body
IL_00A5: stelem.ref
IL_00A6: dup
IL_00A7: ldc.i4.4
IL_00A8: ldstr " has no parts with that group."
IL_00AD: stelem.ref
IL_00AE: call static System.String System.String::Concat(System.Object[]
args)
IL_00B3: stfld System.String Verse.<ConfigErrors>d__144::<>2__current
IL_00B8: ldarg.0
IL_00B9: ldc.i4.1
IL_00BA: stfld System.Int32 Verse.<ConfigErrors>d__144::<>1__state
IL_00BF: ldc.i4.1
IL_00C0: br => Label10
IL_00C5: Label1
IL_00C5: ldarg.0
IL_00C6: ldc.i4.m1
IL_00C7: stfld System.Int32 Verse.<ConfigErrors>d__144::<>1__state
IL_00CC: Label3
IL_00CC: Label4
IL_00CC: Label5
IL_00CC: ldloc.1
IL_00CD: call System.Boolean Verse.VerbProperties::get_LaunchesProjectile()
IL_00D2: brfalse => Label6
IL_00D7: ldloc.1
IL_00D8: ldfld Verse.ThingDef Verse.VerbProperties::defaultProjectile
IL_00DD: brfalse => Label7
IL_00E2: ldloc.1
IL_00E3: ldfld System.Single Verse.VerbProperties::forcedMissRadius
IL_00E8: ldc.r4 0
IL_00ED: cgt
IL_00EF: ldloc.1
IL_00F0: call System.Boolean Verse.VerbProperties::get_CausesExplosion()
IL_00F5: beq => Label8
IL_00FA: ldarg.0
IL_00FB: ldstr "has incorrect forcedMiss settings; explosive projectiles and
only explosive projectiles should have forced miss enabled"
IL_0100: stfld System.String Verse.<ConfigErrors>d__144::<>2__current
IL_0105: ldarg.0
IL_0106: ldc.i4.2
IL_0107: stfld System.Int32 Verse.<ConfigErrors>d__144::<>1__state
IL_010C: ldc.i4.1
IL_010D: br => Label11
IL_0112: Label2
IL_0112: ldarg.0
IL_0113: ldc.i4.m1
IL_0114: stfld System.Int32 Verse.<ConfigErrors>d__144::<>1__state
IL_0119: Label6
IL_0119: Label7
IL_0119: Label8
IL_0119: ldc.i4.0
IL_011A: // end original
IL_011A: Label9
IL_011A: Label10
IL_011A: Label11
IL_011A: ret
DONE

### Patch: virtual System.Boolean Verse.<ConfigErrors>d__113::MoveNext()


### Replacement: static System.Boolean
Verse.PawnKindDef+<ConfigErrors>d__113::Verse.PawnKindDef+<ConfigErrors>d__113.Move
Next_Patch0(Verse.<ConfigErrors>d__113 this)
IL_0000: Local var 0: System.Boolean
IL_0000: Local var 1: System.Int32
IL_0000: Local var 2: Verse.PawnKindDef
IL_0000: Local var 3: System.String
IL_0000: Local var 4: System.Single
IL_0000: Local var 5: Verse.PawnKindDef/<>c__DisplayClass113_0
IL_0000: Local var 6: System.Collections.Generic.IEnumerable`1<Verse.ThingDef>
IL_0000: Local var 7: System.Int32
IL_0000: // start original
.try
{
IL_0000: ldarg.0
IL_0001: ldfld System.Int32 Verse.<ConfigErrors>d__113::<>1__state
IL_0006: stloc.1
IL_0007: ldarg.0
IL_0008: ldfld Verse.PawnKindDef Verse.<ConfigErrors>d__113::<>4__this
IL_000D: stloc.2
IL_000E: ldloc.1
IL_000F: switch => Labels0,1,2,3,4,5,6,7,8,9,10
IL_0040: ldc.i4.0
IL_0041: stloc.0
IL_0042: leave => Label11
IL_0047: Label0
IL_0047: ldarg.0
IL_0048: ldc.i4.m1
IL_0049: stfld System.Int32 Verse.<ConfigErrors>d__113::<>1__state
IL_004E: ldarg.0
IL_004F: ldloc.2
IL_0050: call System.Collections.Generic.IEnumerable`1<System.String>
Verse.PawnKindDef::<>n__0()
IL_0055: callvirt abstract virtual
System.Collections.Generic.IEnumerator`1<System.String>
System.Collections.Generic.IEnumerable`1<System.String>::GetEnumerator()
IL_005A: stfld System.Collections.Generic.IEnumerator`1<System.String>
Verse.<ConfigErrors>d__113::<>7__wrap1
IL_005F: ldarg.0
IL_0060: ldc.i4.s -3
IL_0062: stfld System.Int32 Verse.<ConfigErrors>d__113::<>1__state
IL_0067: br => Label12
IL_006C: Label14
IL_006C: ldarg.0
IL_006D: ldfld System.Collections.Generic.IEnumerator`1<System.String>
Verse.<ConfigErrors>d__113::<>7__wrap1
IL_0072: callvirt abstract virtual System.String
System.Collections.Generic.IEnumerator`1<System.String>::get_Current()
IL_0077: stloc.3
IL_0078: ldarg.0
IL_0079: ldloc.3
IL_007A: stfld System.String Verse.<ConfigErrors>d__113::<>2__current
IL_007F: ldarg.0
IL_0080: ldc.i4.1
IL_0081: stfld System.Int32 Verse.<ConfigErrors>d__113::<>1__state
IL_0086: ldc.i4.1
IL_0087: stloc.0
IL_0088: leave => Label13
IL_008D: Label1
IL_008D: ldarg.0
IL_008E: ldc.i4.s -3
IL_0090: stfld System.Int32 Verse.<ConfigErrors>d__113::<>1__state
IL_0095: Label12
IL_0095: ldarg.0
IL_0096: ldfld System.Collections.Generic.IEnumerator`1<System.String>
Verse.<ConfigErrors>d__113::<>7__wrap1
IL_009B: callvirt abstract virtual System.Boolean
System.Collections.IEnumerator::MoveNext()
IL_00A0: brtrue => Label14
IL_00A5: ldarg.0
IL_00A6: call System.Void Verse.<ConfigErrors>d__113::<>m__Finally1()
IL_00AB: ldarg.0
IL_00AC: ldnull
IL_00AD: stfld System.Collections.Generic.IEnumerator`1<System.String>
Verse.<ConfigErrors>d__113::<>7__wrap1
IL_00B2: ldloc.2
IL_00B3: ldfld
System.Collections.Generic.List`1<RimWorld.BackstoryCategoryFilter>
Verse.PawnKindDef::backstoryFilters
IL_00B8: brfalse => Label15
IL_00BD: ldloc.2
IL_00BE: ldfld
System.Collections.Generic.List`1<RimWorld.BackstoryCategoryFilter>
Verse.PawnKindDef::backstoryFiltersOverride
IL_00C3: brfalse => Label16
IL_00C8: ldarg.0
IL_00C9: ldstr "both backstoryCategories and backstoryCategoriesOverride
are defined"
IL_00CE: stfld System.String Verse.<ConfigErrors>d__113::<>2__current
IL_00D3: ldarg.0
IL_00D4: ldc.i4.2
IL_00D5: stfld System.Int32 Verse.<ConfigErrors>d__113::<>1__state
IL_00DA: ldc.i4.1
IL_00DB: stloc.0
IL_00DC: leave => Label17
IL_00E1: Label2
IL_00E1: ldarg.0
IL_00E2: ldc.i4.m1
IL_00E3: stfld System.Int32 Verse.<ConfigErrors>d__113::<>1__state
IL_00E8: Label15
IL_00E8: Label16
IL_00E8: ldloc.2
IL_00E9: ldfld Verse.ThingDef Verse.PawnKindDef::race
IL_00EE: brtrue => Label18
IL_00F3: ldarg.0
IL_00F4: ldstr "no race"
IL_00F9: stfld System.String Verse.<ConfigErrors>d__113::<>2__current
IL_00FE: ldarg.0
IL_00FF: ldc.i4.3
IL_0100: stfld System.Int32 Verse.<ConfigErrors>d__113::<>1__state
IL_0105: ldc.i4.1
IL_0106: stloc.0
IL_0107: leave => Label19
IL_010C: Label3
IL_010C: ldarg.0
IL_010D: ldc.i4.m1
IL_010E: stfld System.Int32 Verse.<ConfigErrors>d__113::<>1__state
IL_0113: Label18
IL_0113: ldloc.2
IL_0114: ldfld System.Single Verse.PawnKindDef::combatPower
IL_0119: ldc.r4 0
IL_011E: bge.un => Label20
IL_0123: ldarg.0
IL_0124: ldloc.2
IL_0125: ldfld System.String Verse.Def::defName
IL_012A: ldstr " has no combatPower."
IL_012F: call static System.String System.String::Concat(System.String
str0, System.String str1)
IL_0134: stfld System.String Verse.<ConfigErrors>d__113::<>2__current
IL_0139: ldarg.0
IL_013A: ldc.i4.4
IL_013B: stfld System.Int32 Verse.<ConfigErrors>d__113::<>1__state
IL_0140: ldc.i4.1
IL_0141: stloc.0
IL_0142: leave => Label21
IL_0147: Label4
IL_0147: ldarg.0
IL_0148: ldc.i4.m1
IL_0149: stfld System.Int32 Verse.<ConfigErrors>d__113::<>1__state
IL_014E: Label20
IL_014E: ldloc.2
IL_014F: ldfld Verse.FloatRange Verse.PawnKindDef::weaponMoney
IL_0154: call static Verse.FloatRange Verse.FloatRange::get_Zero()
IL_0159: call static System.Boolean
Verse.FloatRange::op_Inequality(Verse.FloatRange a, Verse.FloatRange b)
IL_015E: brfalse => Label22
IL_0163: ldc.r4 999999
IL_0168: stloc.s 4 (System.Single)
IL_016A: newobj System.Void Verse.<>c__DisplayClass113_0::.ctor()
IL_016F: stloc.s 5 (Verse.PawnKindDef+<>c__DisplayClass113_0)
IL_0171: ldloc.s 5 (Verse.PawnKindDef+<>c__DisplayClass113_0)
IL_0173: ldloc.2
IL_0174: stfld Verse.PawnKindDef Verse.<>c__DisplayClass113_0::<>4__this
IL_0179: ldloc.s 5 (Verse.PawnKindDef+<>c__DisplayClass113_0)
IL_017B: ldc.i4.0
IL_017C: stfld System.Int32 Verse.<>c__DisplayClass113_0::i
IL_0181: br => Label23
IL_0186: Label26
IL_0186: call static
System.Collections.Generic.IEnumerable`1<Verse.ThingDef>
Verse.DefDatabase`1<Verse.ThingDef>::get_AllDefs()
IL_018B: ldloc.s 5 (Verse.PawnKindDef+<>c__DisplayClass113_0)
IL_018D: ldftn System.Boolean
Verse.<>c__DisplayClass113_0::<ConfigErrors>b__0(Verse.ThingDef d)
IL_0193: newobj System.Void System.Func`2<Verse.ThingDef,
System.Boolean>::.ctor(System.Object object, System.IntPtr method)
IL_0198: call static
System.Collections.Generic.IEnumerable`1<Verse.ThingDef>
System.Linq.Enumerable::Where(System.Collections.Generic.IEnumerable`1<Verse.ThingD
ef> source, System.Func`2<Verse.ThingDef, System.Boolean> predicate)
IL_019D: stloc.s 6
(System.Collections.Generic.IEnumerable`1[Verse.ThingDef])
IL_019F: ldloc.s 6
(System.Collections.Generic.IEnumerable`1[Verse.ThingDef])
IL_01A1: call static System.Boolean
System.Linq.Enumerable::Any(System.Collections.Generic.IEnumerable`1<Verse.ThingDef
> source)
IL_01A6: brfalse => Label24
IL_01AB: ldloc.s 4 (System.Single)
IL_01AD: ldloc.s 6
(System.Collections.Generic.IEnumerable`1[Verse.ThingDef])
IL_01AF: ldsfld System.Func`2<Verse.ThingDef, System.Single>
Verse.<>c::<>9__113_1
IL_01B4: dup
IL_01B5: brtrue => Label25
IL_01BA: pop
IL_01BB: ldsfld Verse.<>c Verse.<>c::<>9
IL_01C0: ldftn System.Single
Verse.<>c::<ConfigErrors>b__113_1(Verse.ThingDef d)
IL_01C6: newobj System.Void System.Func`2<Verse.ThingDef,
System.Single>::.ctor(System.Object object, System.IntPtr method)
IL_01CB: dup
IL_01CC: stsfld System.Func`2<Verse.ThingDef, System.Single>
Verse.<>c::<>9__113_1
IL_01D1: Label25
IL_01D1: call static System.Single
System.Linq.Enumerable::Min(System.Collections.Generic.IEnumerable`1<Verse.ThingDef
> source, System.Func`2<Verse.ThingDef, System.Single> selector)
IL_01D6: call static System.Single UnityEngine.Mathf::Min(System.Single
a, System.Single b)
IL_01DB: stloc.s 4 (System.Single)
IL_01DD: Label24
IL_01DD: ldloc.s 5 (Verse.PawnKindDef+<>c__DisplayClass113_0)
IL_01DF: ldfld System.Int32 Verse.<>c__DisplayClass113_0::i
IL_01E4: stloc.s 7 (System.Int32)
IL_01E6: ldloc.s 5 (Verse.PawnKindDef+<>c__DisplayClass113_0)
IL_01E8: ldloc.s 7 (System.Int32)
IL_01EA: ldc.i4.1
IL_01EB: add
IL_01EC: stfld System.Int32 Verse.<>c__DisplayClass113_0::i
IL_01F1: Label23
IL_01F1: ldloc.s 5 (Verse.PawnKindDef+<>c__DisplayClass113_0)
IL_01F3: ldfld System.Int32 Verse.<>c__DisplayClass113_0::i
IL_01F8: ldloc.2
IL_01F9: ldfld System.Collections.Generic.List`1<System.String>
Verse.PawnKindDef::weaponTags
IL_01FE: callvirt virtual System.Int32
System.Collections.Generic.List`1<System.String>::get_Count()
IL_0203: blt => Label26
IL_0208: ldloc.s 4 (System.Single)
IL_020A: ldc.r4 999999
IL_020F: bge.un => Label27
IL_0214: ldloc.s 4 (System.Single)
IL_0216: ldloc.2
IL_0217: ldflda Verse.FloatRange Verse.PawnKindDef::weaponMoney
IL_021C: ldfld System.Single Verse.FloatRange::min
IL_0221: ble.un => Label28
IL_0226: ldarg.0
IL_0227: ldc.i4.5
IL_0228: newarr System.Object
IL_022D: dup
IL_022E: ldc.i4.0
IL_022F: ldstr "Cheapest weapon with one of my weaponTags costs "
IL_0234: stelem.ref
IL_0235: dup
IL_0236: ldc.i4.1
IL_0237: ldloc.s 4 (System.Single)
IL_0239: box System.Single
IL_023E: stelem.ref
IL_023F: dup
IL_0240: ldc.i4.2
IL_0241: ldstr " but weaponMoney min is "
IL_0246: stelem.ref
IL_0247: dup
IL_0248: ldc.i4.3
IL_0249: ldloc.2
IL_024A: ldflda Verse.FloatRange Verse.PawnKindDef::weaponMoney
IL_024F: ldfld System.Single Verse.FloatRange::min
IL_0254: box System.Single
IL_0259: stelem.ref
IL_025A: dup
IL_025B: ldc.i4.4
IL_025C: ldstr ", so could end up weaponless."
IL_0261: stelem.ref
IL_0262: call static System.String
System.String::Concat(System.Object[] args)
IL_0267: stfld System.String Verse.<ConfigErrors>d__113::<>2__current
IL_026C: ldarg.0
IL_026D: ldc.i4.5
IL_026E: stfld System.Int32 Verse.<ConfigErrors>d__113::<>1__state
IL_0273: ldc.i4.1
IL_0274: stloc.0
IL_0275: leave => Label29
IL_027A: Label5
IL_027A: ldarg.0
IL_027B: ldc.i4.m1
IL_027C: stfld System.Int32 Verse.<ConfigErrors>d__113::<>1__state
IL_0281: Label22
IL_0281: Label27
IL_0281: Label28
IL_0281: ldloc.2
IL_0282: call Verse.RaceProperties Verse.PawnKindDef::get_RaceProps()
IL_0287: callvirt System.Boolean Verse.RaceProperties::get_Humanlike()
IL_028C: brtrue => Label30
IL_0291: ldloc.2
IL_0292: ldfld
System.Collections.Generic.List`1<Verse.PawnKindLifeStage>
Verse.PawnKindDef::lifeStages
IL_0297: callvirt virtual System.Int32
System.Collections.Generic.List`1<Verse.PawnKindLifeStage>::get_Count()
IL_029C: ldloc.2
IL_029D: call Verse.RaceProperties Verse.PawnKindDef::get_RaceProps()
IL_02A2: ldfld System.Collections.Generic.List`1<Verse.LifeStageAge>
Verse.RaceProperties::lifeStageAges
IL_02A7: callvirt virtual System.Int32
System.Collections.Generic.List`1<Verse.LifeStageAge>::get_Count()
IL_02AC: beq => Label31
IL_02B1: ldarg.0
IL_02B2: ldc.i4.4
IL_02B3: newarr System.Object
IL_02B8: dup
IL_02B9: ldc.i4.0
IL_02BA: ldstr "PawnKindDef defines "
IL_02BF: stelem.ref
IL_02C0: dup
IL_02C1: ldc.i4.1
IL_02C2: ldloc.2
IL_02C3: ldfld
System.Collections.Generic.List`1<Verse.PawnKindLifeStage>
Verse.PawnKindDef::lifeStages
IL_02C8: callvirt virtual System.Int32
System.Collections.Generic.List`1<Verse.PawnKindLifeStage>::get_Count()
IL_02CD: box System.Int32
IL_02D2: stelem.ref
IL_02D3: dup
IL_02D4: ldc.i4.2
IL_02D5: ldstr " lifeStages while race def defines "
IL_02DA: stelem.ref
IL_02DB: dup
IL_02DC: ldc.i4.3
IL_02DD: ldloc.2
IL_02DE: call Verse.RaceProperties Verse.PawnKindDef::get_RaceProps()
IL_02E3: ldfld System.Collections.Generic.List`1<Verse.LifeStageAge>
Verse.RaceProperties::lifeStageAges
IL_02E8: callvirt virtual System.Int32
System.Collections.Generic.List`1<Verse.LifeStageAge>::get_Count()
IL_02ED: box System.Int32
IL_02F2: stelem.ref
IL_02F3: call static System.String
System.String::Concat(System.Object[] args)
IL_02F8: stfld System.String Verse.<ConfigErrors>d__113::<>2__current
IL_02FD: ldarg.0
IL_02FE: ldc.i4.6
IL_02FF: stfld System.Int32 Verse.<ConfigErrors>d__113::<>1__state
IL_0304: ldc.i4.1
IL_0305: stloc.0
IL_0306: leave => Label32
IL_030B: Label6
IL_030B: ldarg.0
IL_030C: ldc.i4.m1
IL_030D: stfld System.Int32 Verse.<ConfigErrors>d__113::<>1__state
IL_0312: Label30
IL_0312: Label31
IL_0312: ldloc.2
IL_0313: ldfld System.Collections.Generic.List`1<Verse.ThingDef>
Verse.PawnKindDef::apparelRequired
IL_0318: brfalse => Label33
IL_031D: ldarg.0
IL_031E: ldc.i4.0
IL_031F: stfld System.Int32 Verse.<ConfigErrors>d__113::<i>5__3
IL_0324: br => Label34
IL_0329: Label39
IL_0329: ldarg.0
IL_032A: ldarg.0
IL_032B: ldfld System.Int32 Verse.<ConfigErrors>d__113::<i>5__3
IL_0330: ldc.i4.1
IL_0331: add
IL_0332: stfld System.Int32 Verse.<ConfigErrors>d__113::<j>5__4
IL_0337: br => Label35
IL_033C: Label38
IL_033C: ldloc.2
IL_033D: ldfld System.Collections.Generic.List`1<Verse.ThingDef>
Verse.PawnKindDef::apparelRequired
IL_0342: ldarg.0
IL_0343: ldfld System.Int32 Verse.<ConfigErrors>d__113::<i>5__3
IL_0348: callvirt virtual Verse.ThingDef
System.Collections.Generic.List`1<Verse.ThingDef>::get_Item(System.Int32 index)
IL_034D: ldloc.2
IL_034E: ldfld System.Collections.Generic.List`1<Verse.ThingDef>
Verse.PawnKindDef::apparelRequired
IL_0353: ldarg.0
IL_0354: ldfld System.Int32 Verse.<ConfigErrors>d__113::<j>5__4
IL_0359: callvirt virtual Verse.ThingDef
System.Collections.Generic.List`1<Verse.ThingDef>::get_Item(System.Int32 index)
IL_035E: ldloc.2
IL_035F: ldfld Verse.ThingDef Verse.PawnKindDef::race
IL_0364: ldfld Verse.RaceProperties Verse.ThingDef::race
IL_0369: ldfld Verse.BodyDef Verse.RaceProperties::body
IL_036E: call static System.Boolean
RimWorld.ApparelUtility::CanWearTogether(Verse.ThingDef A, Verse.ThingDef B,
Verse.BodyDef body)
IL_0373: brtrue => Label36
IL_0378: ldarg.0
IL_0379: ldc.i4.5
IL_037A: newarr System.Object
IL_037F: dup
IL_0380: ldc.i4.0
IL_0381: ldstr "required apparel can\'t be worn together ("
IL_0386: stelem.ref
IL_0387: dup
IL_0388: ldc.i4.1
IL_0389: ldloc.2
IL_038A: ldfld System.Collections.Generic.List`1<Verse.ThingDef>
Verse.PawnKindDef::apparelRequired
IL_038F: ldarg.0
IL_0390: ldfld System.Int32 Verse.<ConfigErrors>d__113::<i>5__3
IL_0395: callvirt virtual Verse.ThingDef
System.Collections.Generic.List`1<Verse.ThingDef>::get_Item(System.Int32 index)
IL_039A: stelem.ref
IL_039B: dup
IL_039C: ldc.i4.2
IL_039D: ldstr ", "
IL_03A2: stelem.ref
IL_03A3: dup
IL_03A4: ldc.i4.3
IL_03A5: ldloc.2
IL_03A6: ldfld System.Collections.Generic.List`1<Verse.ThingDef>
Verse.PawnKindDef::apparelRequired
IL_03AB: ldarg.0
IL_03AC: ldfld System.Int32 Verse.<ConfigErrors>d__113::<j>5__4
IL_03B1: callvirt virtual Verse.ThingDef
System.Collections.Generic.List`1<Verse.ThingDef>::get_Item(System.Int32 index)
IL_03B6: stelem.ref
IL_03B7: dup
IL_03B8: ldc.i4.4
IL_03B9: ldstr ")"
IL_03BE: stelem.ref
IL_03BF: call static System.String
System.String::Concat(System.Object[] args)
IL_03C4: stfld System.String Verse.<ConfigErrors>d__113::<>2__current
IL_03C9: ldarg.0
IL_03CA: ldc.i4.7
IL_03CB: stfld System.Int32 Verse.<ConfigErrors>d__113::<>1__state
IL_03D0: ldc.i4.1
IL_03D1: stloc.0
IL_03D2: leave => Label37
IL_03D7: Label7
IL_03D7: ldarg.0
IL_03D8: ldc.i4.m1
IL_03D9: stfld System.Int32 Verse.<ConfigErrors>d__113::<>1__state
IL_03DE: Label36
IL_03DE: ldarg.0
IL_03DF: ldfld System.Int32 Verse.<ConfigErrors>d__113::<j>5__4
IL_03E4: stloc.s 7 (System.Int32)
IL_03E6: ldarg.0
IL_03E7: ldloc.s 7 (System.Int32)
IL_03E9: ldc.i4.1
IL_03EA: add
IL_03EB: stfld System.Int32 Verse.<ConfigErrors>d__113::<j>5__4
IL_03F0: Label35
IL_03F0: ldarg.0
IL_03F1: ldfld System.Int32 Verse.<ConfigErrors>d__113::<j>5__4
IL_03F6: ldloc.2
IL_03F7: ldfld System.Collections.Generic.List`1<Verse.ThingDef>
Verse.PawnKindDef::apparelRequired
IL_03FC: callvirt virtual System.Int32
System.Collections.Generic.List`1<Verse.ThingDef>::get_Count()
IL_0401: blt => Label38
IL_0406: ldarg.0
IL_0407: ldfld System.Int32 Verse.<ConfigErrors>d__113::<i>5__3
IL_040C: stloc.s 7 (System.Int32)
IL_040E: ldarg.0
IL_040F: ldloc.s 7 (System.Int32)
IL_0411: ldc.i4.1
IL_0412: add
IL_0413: stfld System.Int32 Verse.<ConfigErrors>d__113::<i>5__3
IL_0418: Label34
IL_0418: ldarg.0
IL_0419: ldfld System.Int32 Verse.<ConfigErrors>d__113::<i>5__3
IL_041E: ldloc.2
IL_041F: ldfld System.Collections.Generic.List`1<Verse.ThingDef>
Verse.PawnKindDef::apparelRequired
IL_0424: callvirt virtual System.Int32
System.Collections.Generic.List`1<Verse.ThingDef>::get_Count()
IL_0429: blt => Label39
IL_042E: Label33
IL_042E: ldloc.2
IL_042F: ldfld System.Collections.Generic.List`1<Verse.AlternateGraphic>
Verse.PawnKindDef::alternateGraphics
IL_0434: brfalse => Label40
IL_0439: ldarg.0
IL_043A: ldloc.2
IL_043B: ldfld System.Collections.Generic.List`1<Verse.AlternateGraphic>
Verse.PawnKindDef::alternateGraphics
IL_0440: callvirt
System.Collections.Generic.Enumerator<Verse.AlternateGraphic>
System.Collections.Generic.List`1<Verse.AlternateGraphic>::GetEnumerator()
IL_0445: stfld
System.Collections.Generic.Enumerator<Verse.AlternateGraphic>
Verse.<ConfigErrors>d__113::<>7__wrap4
IL_044A: ldarg.0
IL_044B: ldc.i4.s -4
IL_044D: stfld System.Int32 Verse.<ConfigErrors>d__113::<>1__state
IL_0452: br => Label41
IL_0457: Label44
IL_0457: ldarg.0
IL_0458: ldflda
System.Collections.Generic.Enumerator<Verse.AlternateGraphic>
Verse.<ConfigErrors>d__113::<>7__wrap4
IL_045D: call virtual Verse.AlternateGraphic
System.Collections.Generic.Enumerator<Verse.AlternateGraphic>::get_Current()
IL_0462: callvirt System.Single Verse.AlternateGraphic::get_Weight()
IL_0467: ldc.r4 0
IL_046C: bge.un => Label42
IL_0471: ldarg.0
IL_0472: ldstr "alternate graphic has negative weight."
IL_0477: stfld System.String Verse.<ConfigErrors>d__113::<>2__current
IL_047C: ldarg.0
IL_047D: ldc.i4.8
IL_047E: stfld System.Int32 Verse.<ConfigErrors>d__113::<>1__state
IL_0483: ldc.i4.1
IL_0484: stloc.0
IL_0485: leave => Label43
IL_048A: Label8
IL_048A: ldarg.0
IL_048B: ldc.i4.s -4
IL_048D: stfld System.Int32 Verse.<ConfigErrors>d__113::<>1__state
IL_0492: Label41
IL_0492: Label42
IL_0492: ldarg.0
IL_0493: ldflda
System.Collections.Generic.Enumerator<Verse.AlternateGraphic>
Verse.<ConfigErrors>d__113::<>7__wrap4
IL_0498: call virtual System.Boolean
System.Collections.Generic.Enumerator<Verse.AlternateGraphic>::MoveNext()
IL_049D: brtrue => Label44
IL_04A2: ldarg.0
IL_04A3: call System.Void Verse.<ConfigErrors>d__113::<>m__Finally2()
IL_04A8: ldarg.0
IL_04A9: ldflda
System.Collections.Generic.Enumerator<Verse.AlternateGraphic>
Verse.<ConfigErrors>d__113::<>7__wrap4
IL_04AE: initobj
System.Collections.Generic.List`1+Enumerator[Verse.AlternateGraphic]
IL_04B4: Label40
IL_04B4: ldloc.2
IL_04B5: call Verse.RaceProperties Verse.PawnKindDef::get_RaceProps()
IL_04BA: callvirt System.Boolean Verse.RaceProperties::get_Humanlike()
IL_04BF: brfalse => Label45
IL_04C4: ldloc.2
IL_04C5: ldflda System.Nullable`1<Verse.FloatRange>
Verse.PawnKindDef::initialResistanceRange
IL_04CA: call System.Boolean
System.Nullable`1<Verse.FloatRange>::get_HasValue()
IL_04CF: brtrue => Label46
IL_04D4: ldarg.0
IL_04D5: ldstr "initial resistance range is undefined for humanlike pawn
kind."
IL_04DA: stfld System.String Verse.<ConfigErrors>d__113::<>2__current
IL_04DF: ldarg.0
IL_04E0: ldc.i4.s 9
IL_04E2: stfld System.Int32 Verse.<ConfigErrors>d__113::<>1__state
IL_04E7: ldc.i4.1
IL_04E8: stloc.0
IL_04E9: leave => Label47
IL_04EE: Label9
IL_04EE: ldarg.0
IL_04EF: ldc.i4.m1
IL_04F0: stfld System.Int32 Verse.<ConfigErrors>d__113::<>1__state
IL_04F5: Label45
IL_04F5: Label46
IL_04F5: ldloc.2
IL_04F6: call Verse.RaceProperties Verse.PawnKindDef::get_RaceProps()
IL_04FB: callvirt System.Boolean Verse.RaceProperties::get_Humanlike()
IL_0500: brfalse => Label48
IL_0505: ldloc.2
IL_0506: ldflda System.Nullable`1<Verse.FloatRange>
Verse.PawnKindDef::initialWillRange
IL_050B: call System.Boolean
System.Nullable`1<Verse.FloatRange>::get_HasValue()
IL_0510: brtrue => Label49
IL_0515: ldarg.0
IL_0516: ldstr "initial will range is undefined for humanlike pawn
kind."
IL_051B: stfld System.String Verse.<ConfigErrors>d__113::<>2__current
IL_0520: ldarg.0
IL_0521: ldc.i4.s 10
IL_0523: stfld System.Int32 Verse.<ConfigErrors>d__113::<>1__state
IL_0528: ldc.i4.1
IL_0529: stloc.0
IL_052A: leave => Label50
IL_052F: Label10
IL_052F: ldarg.0
IL_0530: ldc.i4.m1
IL_0531: stfld System.Int32 Verse.<ConfigErrors>d__113::<>1__state
IL_0536: Label48
IL_0536: Label49
IL_0536: ldc.i4.0
IL_0537: stloc.0
IL_0538: leave => Label51
IL_053D: leave => (autogenerated)
} // end try
.fault
{
IL_0542: ldarg.0
IL_0543: call virtual System.Void
Verse.<ConfigErrors>d__113::System.IDisposable.Dispose()
IL_0548: endfinally
IL_0549: leave => (autogenerated)
} // end handler
IL_054E: Label11
IL_054E: Label13
IL_054E: Label17
IL_054E: Label19
IL_054E: Label21
IL_054E: Label29
IL_054E: Label32
IL_054E: Label37
IL_054E: Label43
IL_054E: Label47
IL_054E: Label50
IL_054E: Label51
IL_054E: ldloc.0
IL_054F: // end original
IL_054F: ret
DONE

### Patch: virtual System.Boolean Verse.<ConfigErrors>d__352::MoveNext()


### Replacement: static System.Boolean
Verse.ThingDef+<ConfigErrors>d__352::Verse.ThingDef+<ConfigErrors>d__352.MoveNext_P
atch0(Verse.<ConfigErrors>d__352 this)
IL_0000: Local var 0: System.Boolean
IL_0000: Local var 1: System.Int32
IL_0000: Local var 2: Verse.ThingDef
IL_0000: Local var 3: System.String
IL_0000: Local var 4: System.String
IL_0000: Local var 5: System.String
IL_0000: Local var 6: Verse.ThingDef/<>c__DisplayClass352_0
IL_0000: Local var 7: Verse.ThingDefCountClass
IL_0000: Local var 8: Verse.ThingCategoryDef
IL_0000: Local var 9: Verse.ThingDef/<>c__DisplayClass352_2
IL_0000: Local var 10: System.String
IL_0000: Local var 11: System.Int32
IL_0000: Local var 12: System.String
IL_0000: Local var 13: System.String
IL_0000: Local var 14: System.String
IL_0000: Local var 15: System.String
IL_0000: Local var 16: System.String
IL_0000: Local var 17: System.String
IL_0000: Local var 18: Verse.Tool
IL_0000: Local var 19: Verse.Tool
IL_0000: Local var 20: System.String
IL_0000: // start original
.try
{
IL_0000: ldarg.0
IL_0001: ldfld System.Int32 Verse.<ConfigErrors>d__352::<>1__state
IL_0006: stloc.1
IL_0007: ldarg.0
IL_0008: ldfld Verse.ThingDef Verse.<ConfigErrors>d__352::<>4__this
IL_000D: stloc.2
IL_000E: ldloc.1
IL_000F: switch =>
Labels0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,
29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51
IL_00E4: ldc.i4.0
IL_00E5: stloc.0
IL_00E6: leave => Label52
IL_00EB: Label0
IL_00EB: ldarg.0
IL_00EC: ldc.i4.m1
IL_00ED: stfld System.Int32 Verse.<ConfigErrors>d__352::<>1__state
IL_00F2: ldarg.0
IL_00F3: ldloc.2
IL_00F4: call System.Collections.Generic.IEnumerable`1<System.String>
Verse.ThingDef::<>n__0()
IL_00F9: callvirt abstract virtual
System.Collections.Generic.IEnumerator`1<System.String>
System.Collections.Generic.IEnumerable`1<System.String>::GetEnumerator()
IL_00FE: stfld System.Collections.Generic.IEnumerator`1<System.String>
Verse.<ConfigErrors>d__352::<>7__wrap1
IL_0103: ldarg.0
IL_0104: ldc.i4.s -3
IL_0106: stfld System.Int32 Verse.<ConfigErrors>d__352::<>1__state
IL_010B: br => Label53
IL_0110: Label55
IL_0110: ldarg.0
IL_0111: ldfld System.Collections.Generic.IEnumerator`1<System.String>
Verse.<ConfigErrors>d__352::<>7__wrap1
IL_0116: callvirt abstract virtual System.String
System.Collections.Generic.IEnumerator`1<System.String>::get_Current()
IL_011B: stloc.3
IL_011C: ldarg.0
IL_011D: ldloc.3
IL_011E: stfld System.String Verse.<ConfigErrors>d__352::<>2__current
IL_0123: ldarg.0
IL_0124: ldc.i4.1
IL_0125: stfld System.Int32 Verse.<ConfigErrors>d__352::<>1__state
IL_012A: ldc.i4.1
IL_012B: stloc.0
IL_012C: leave => Label54
IL_0131: Label1
IL_0131: ldarg.0
IL_0132: ldc.i4.s -3
IL_0134: stfld System.Int32 Verse.<ConfigErrors>d__352::<>1__state
IL_0139: Label53
IL_0139: ldarg.0
IL_013A: ldfld System.Collections.Generic.IEnumerator`1<System.String>
Verse.<ConfigErrors>d__352::<>7__wrap1
IL_013F: callvirt abstract virtual System.Boolean
System.Collections.IEnumerator::MoveNext()
IL_0144: brtrue => Label55
IL_0149: ldarg.0
IL_014A: call System.Void Verse.<ConfigErrors>d__352::<>m__Finally1()
IL_014F: ldarg.0
IL_0150: ldnull
IL_0151: stfld System.Collections.Generic.IEnumerator`1<System.String>
Verse.<ConfigErrors>d__352::<>7__wrap1
IL_0156: ldloc.2
IL_0157: ldfld Verse.ThingCategory Verse.ThingDef::category
IL_015C: ldc.i4.s 10
IL_015E: beq => Label56
IL_0163: ldloc.2
IL_0164: ldfld System.String Verse.Def::label
IL_0169: call static System.Boolean
Verse.GenText::NullOrEmpty(System.String str)
IL_016E: brfalse => Label57
IL_0173: ldarg.0
IL_0174: ldstr "no label"
IL_0179: stfld System.String Verse.<ConfigErrors>d__352::<>2__current
IL_017E: ldarg.0
IL_017F: ldc.i4.2
IL_0180: stfld System.Int32 Verse.<ConfigErrors>d__352::<>1__state
IL_0185: ldc.i4.1
IL_0186: stloc.0
IL_0187: leave => Label58
IL_018C: Label2
IL_018C: ldarg.0
IL_018D: ldc.i4.m1
IL_018E: stfld System.Int32 Verse.<ConfigErrors>d__352::<>1__state
IL_0193: Label56
IL_0193: Label57
IL_0193: ldloc.2
IL_0194: ldfld Verse.GraphicData Verse.ThingDef::graphicData
IL_0199: brfalse => Label59
IL_019E: ldarg.0
IL_019F: ldloc.2
IL_01A0: ldfld Verse.GraphicData Verse.ThingDef::graphicData
IL_01A5: ldloc.2
IL_01A6: callvirt System.Collections.Generic.IEnumerable`1<System.String>
Verse.GraphicData::ConfigErrors(Verse.ThingDef thingDef)
IL_01AB: callvirt abstract virtual
System.Collections.Generic.IEnumerator`1<System.String>
System.Collections.Generic.IEnumerable`1<System.String>::GetEnumerator()
IL_01B0: stfld System.Collections.Generic.IEnumerator`1<System.String>
Verse.<ConfigErrors>d__352::<>7__wrap1
IL_01B5: ldarg.0
IL_01B6: ldc.i4.s -4
IL_01B8: stfld System.Int32 Verse.<ConfigErrors>d__352::<>1__state
IL_01BD: br => Label60
IL_01C2: Label62
IL_01C2: ldarg.0
IL_01C3: ldfld System.Collections.Generic.IEnumerator`1<System.String>
Verse.<ConfigErrors>d__352::<>7__wrap1
IL_01C8: callvirt abstract virtual System.String
System.Collections.Generic.IEnumerator`1<System.String>::get_Current()
IL_01CD: stloc.s 4 (System.String)
IL_01CF: ldarg.0
IL_01D0: ldloc.s 4 (System.String)
IL_01D2: stfld System.String Verse.<ConfigErrors>d__352::<>2__current
IL_01D7: ldarg.0
IL_01D8: ldc.i4.3
IL_01D9: stfld System.Int32 Verse.<ConfigErrors>d__352::<>1__state
IL_01DE: ldc.i4.1
IL_01DF: stloc.0
IL_01E0: leave => Label61
IL_01E5: Label3
IL_01E5: ldarg.0
IL_01E6: ldc.i4.s -4
IL_01E8: stfld System.Int32 Verse.<ConfigErrors>d__352::<>1__state
IL_01ED: Label60
IL_01ED: ldarg.0
IL_01EE: ldfld System.Collections.Generic.IEnumerator`1<System.String>
Verse.<ConfigErrors>d__352::<>7__wrap1
IL_01F3: callvirt abstract virtual System.Boolean
System.Collections.IEnumerator::MoveNext()
IL_01F8: brtrue => Label62
IL_01FD: ldarg.0
IL_01FE: call System.Void Verse.<ConfigErrors>d__352::<>m__Finally2()
IL_0203: ldarg.0
IL_0204: ldnull
IL_0205: stfld System.Collections.Generic.IEnumerator`1<System.String>
Verse.<ConfigErrors>d__352::<>7__wrap1
IL_020A: Label59
IL_020A: ldloc.2
IL_020B: ldfld Verse.ProjectileProperties Verse.ThingDef::projectile
IL_0210: brfalse => Label63
IL_0215: ldarg.0
IL_0216: ldloc.2
IL_0217: ldfld Verse.ProjectileProperties Verse.ThingDef::projectile
IL_021C: ldloc.2
IL_021D: callvirt System.Collections.Generic.IEnumerable`1<System.String>
Verse.ProjectileProperties::ConfigErrors(Verse.ThingDef parent)
IL_0222: callvirt abstract virtual
System.Collections.Generic.IEnumerator`1<System.String>
System.Collections.Generic.IEnumerable`1<System.String>::GetEnumerator()
IL_0227: stfld System.Collections.Generic.IEnumerator`1<System.String>
Verse.<ConfigErrors>d__352::<>7__wrap1
IL_022C: ldarg.0
IL_022D: ldc.i4.s -5
IL_022F: stfld System.Int32 Verse.<ConfigErrors>d__352::<>1__state
IL_0234: br => Label64
IL_0239: Label66
IL_0239: ldarg.0
IL_023A: ldfld System.Collections.Generic.IEnumerator`1<System.String>
Verse.<ConfigErrors>d__352::<>7__wrap1
IL_023F: callvirt abstract virtual System.String
System.Collections.Generic.IEnumerator`1<System.String>::get_Current()
IL_0244: stloc.s 5 (System.String)
IL_0246: ldarg.0
IL_0247: ldloc.s 5 (System.String)
IL_0249: stfld System.String Verse.<ConfigErrors>d__352::<>2__current
IL_024E: ldarg.0
IL_024F: ldc.i4.4
IL_0250: stfld System.Int32 Verse.<ConfigErrors>d__352::<>1__state
IL_0255: ldc.i4.1
IL_0256: stloc.0
IL_0257: leave => Label65
IL_025C: Label4
IL_025C: ldarg.0
IL_025D: ldc.i4.s -5
IL_025F: stfld System.Int32 Verse.<ConfigErrors>d__352::<>1__state
IL_0264: Label64
IL_0264: ldarg.0
IL_0265: ldfld System.Collections.Generic.IEnumerator`1<System.String>
Verse.<ConfigErrors>d__352::<>7__wrap1
IL_026A: callvirt abstract virtual System.Boolean
System.Collections.IEnumerator::MoveNext()
IL_026F: brtrue => Label66
IL_0274: ldarg.0
IL_0275: call System.Void Verse.<ConfigErrors>d__352::<>m__Finally3()
IL_027A: ldarg.0
IL_027B: ldnull
IL_027C: stfld System.Collections.Generic.IEnumerator`1<System.String>
Verse.<ConfigErrors>d__352::<>7__wrap1
IL_0281: Label63
IL_0281: ldloc.2
IL_0282: ldfld System.Collections.Generic.List`1<RimWorld.StatModifier>
Verse.BuildableDef::statBases
IL_0287: brfalse => Label67
IL_028C: ldarg.0
IL_028D: ldloc.2
IL_028E: ldfld System.Collections.Generic.List`1<RimWorld.StatModifier>
Verse.BuildableDef::statBases
IL_0293: callvirt
System.Collections.Generic.Enumerator<RimWorld.StatModifier>
System.Collections.Generic.List`1<RimWorld.StatModifier>::GetEnumerator()
IL_0298: stfld
System.Collections.Generic.Enumerator<RimWorld.StatModifier>
Verse.<ConfigErrors>d__352::<>7__wrap2
IL_029D: ldarg.0
IL_029E: ldc.i4.s -6
IL_02A0: stfld System.Int32 Verse.<ConfigErrors>d__352::<>1__state
IL_02A5: br => Label68
IL_02AA: Label71
IL_02AA: newobj System.Void Verse.<>c__DisplayClass352_0::.ctor()
IL_02AF: stloc.s 6 (Verse.ThingDef+<>c__DisplayClass352_0)
IL_02B1: ldloc.s 6 (Verse.ThingDef+<>c__DisplayClass352_0)
IL_02B3: ldarg.0
IL_02B4: ldflda
System.Collections.Generic.Enumerator<RimWorld.StatModifier>
Verse.<ConfigErrors>d__352::<>7__wrap2
IL_02B9: call virtual RimWorld.StatModifier
System.Collections.Generic.Enumerator<RimWorld.StatModifier>::get_Current()
IL_02BE: stfld RimWorld.StatModifier
Verse.<>c__DisplayClass352_0::statBase
IL_02C3: ldloc.2
IL_02C4: ldfld System.Collections.Generic.List`1<RimWorld.StatModifier>
Verse.BuildableDef::statBases
IL_02C9: ldloc.s 6 (Verse.ThingDef+<>c__DisplayClass352_0)
IL_02CB: ldftn System.Boolean
Verse.<>c__DisplayClass352_0::<ConfigErrors>b__3(RimWorld.StatModifier st)
IL_02D1: newobj System.Void System.Func`2<RimWorld.StatModifier,
System.Boolean>::.ctor(System.Object object, System.IntPtr method)
IL_02D6: call static
System.Collections.Generic.IEnumerable`1<RimWorld.StatModifier>
System.Linq.Enumerable::Where(System.Collections.Generic.IEnumerable`1<RimWorld.Sta
tModifier> source, System.Func`2<RimWorld.StatModifier, System.Boolean> predicate)
IL_02DB: call static System.Int32
System.Linq.Enumerable::Count(System.Collections.Generic.IEnumerable`1<RimWorld.Sta
tModifier> source)
IL_02E0: ldc.i4.1
IL_02E1: ble => Label69
IL_02E6: ldarg.0
IL_02E7: ldstr "defines the stat base "
IL_02EC: ldloc.s 6 (Verse.ThingDef+<>c__DisplayClass352_0)
IL_02EE: ldfld RimWorld.StatModifier
Verse.<>c__DisplayClass352_0::statBase
IL_02F3: ldfld RimWorld.StatDef RimWorld.StatModifier::stat
IL_02F8: ldstr " more than once."
IL_02FD: call static System.String System.String::Concat(System.Object
arg0, System.Object arg1, System.Object arg2)
IL_0302: stfld System.String Verse.<ConfigErrors>d__352::<>2__current
IL_0307: ldarg.0
IL_0308: ldc.i4.5
IL_0309: stfld System.Int32 Verse.<ConfigErrors>d__352::<>1__state
IL_030E: ldc.i4.1
IL_030F: stloc.0
IL_0310: leave => Label70
IL_0315: Label5
IL_0315: ldarg.0
IL_0316: ldc.i4.s -6
IL_0318: stfld System.Int32 Verse.<ConfigErrors>d__352::<>1__state
IL_031D: Label68
IL_031D: Label69
IL_031D: ldarg.0
IL_031E: ldflda
System.Collections.Generic.Enumerator<RimWorld.StatModifier>
Verse.<ConfigErrors>d__352::<>7__wrap2
IL_0323: call virtual System.Boolean
System.Collections.Generic.Enumerator<RimWorld.StatModifier>::MoveNext()
IL_0328: brtrue => Label71
IL_032D: ldarg.0
IL_032E: call System.Void Verse.<ConfigErrors>d__352::<>m__Finally4()
IL_0333: ldarg.0
IL_0334: ldflda
System.Collections.Generic.Enumerator<RimWorld.StatModifier>
Verse.<ConfigErrors>d__352::<>7__wrap2
IL_0339: initobj
System.Collections.Generic.List`1+Enumerator[RimWorld.StatModifier]
IL_033F: Label67
IL_033F: ldloc.2
IL_0340: ldfld Verse.ThingCategory Verse.ThingDef::category
IL_0345: call static System.Boolean
RimWorld.BeautyUtility::BeautyRelevant(Verse.ThingCategory cat)
IL_034A: brtrue => Label72
IL_034F: ldloc.2
IL_0350: ldsfld RimWorld.StatDef RimWorld.StatDefOf::Beauty
IL_0355: call static System.Boolean
RimWorld.StatExtension::StatBaseDefined(Verse.BuildableDef def, RimWorld.StatDef
stat)
IL_035A: brfalse => Label73
IL_035F: ldarg.0
IL_0360: ldstr "Beauty stat base is defined, but Things of category "
IL_0365: ldloc.2
IL_0366: ldfld Verse.ThingCategory Verse.ThingDef::category
IL_036B: box Verse.ThingCategory
IL_0370: ldstr " cannot have beauty."
IL_0375: call static System.String System.String::Concat(System.Object
arg0, System.Object arg1, System.Object arg2)
IL_037A: stfld System.String Verse.<ConfigErrors>d__352::<>2__current
IL_037F: ldarg.0
IL_0380: ldc.i4.6
IL_0381: stfld System.Int32 Verse.<ConfigErrors>d__352::<>1__state
IL_0386: ldc.i4.1
IL_0387: stloc.0
IL_0388: leave => Label74
IL_038D: Label6
IL_038D: ldarg.0
IL_038E: ldc.i4.m1
IL_038F: stfld System.Int32 Verse.<ConfigErrors>d__352::<>1__state
IL_0394: Label72
IL_0394: Label73
IL_0394: ldloc.2
IL_0395: ldfld Verse.ThingCategory Verse.ThingDef::category
IL_039A: call static System.Boolean
RimWorld.BeautyUtility::BeautyRelevant(Verse.ThingCategory cat)
IL_039F: brtrue => Label75
IL_03A4: ldloc.2
IL_03A5: ldsfld RimWorld.StatDef RimWorld.StatDefOf::BeautyOutdoors
IL_03AA: call static System.Boolean
RimWorld.StatExtension::StatBaseDefined(Verse.BuildableDef def, RimWorld.StatDef
stat)
IL_03AF: brfalse => Label76
IL_03B4: ldarg.0
IL_03B5: ldstr "BeautyOutdoors stat base is defined, but Things of
category "
IL_03BA: ldloc.2
IL_03BB: ldfld Verse.ThingCategory Verse.ThingDef::category
IL_03C0: box Verse.ThingCategory
IL_03C5: ldstr " cannot have beauty."
IL_03CA: call static System.String System.String::Concat(System.Object
arg0, System.Object arg1, System.Object arg2)
IL_03CF: stfld System.String Verse.<ConfigErrors>d__352::<>2__current
IL_03D4: ldarg.0
IL_03D5: ldc.i4.7
IL_03D6: stfld System.Int32 Verse.<ConfigErrors>d__352::<>1__state
IL_03DB: ldc.i4.1
IL_03DC: stloc.0
IL_03DD: leave => Label77
IL_03E2: Label7
IL_03E2: ldarg.0
IL_03E3: ldc.i4.m1
IL_03E4: stfld System.Int32 Verse.<ConfigErrors>d__352::<>1__state
IL_03E9: Label75
IL_03E9: Label76
IL_03E9: ldloc.2
IL_03EA: ldfld System.String Verse.Def::defName
IL_03EF: ldloc.2
IL_03F0: ldfld System.String Verse.Def::defName
IL_03F5: callvirt System.Int32 System.String::get_Length()
IL_03FA: ldc.i4.1
IL_03FB: sub
IL_03FC: callvirt System.Char System.String::get_Chars(System.Int32 index)
IL_0401: call static System.Boolean System.Char::IsNumber(System.Char
c)
IL_0406: brfalse => Label78
IL_040B: ldarg.0
IL_040C: ldstr "ends with a numerical digit, which is not allowed on
ThingDefs."
IL_0411: stfld System.String Verse.<ConfigErrors>d__352::<>2__current
IL_0416: ldarg.0
IL_0417: ldc.i4.8
IL_0418: stfld System.Int32 Verse.<ConfigErrors>d__352::<>1__state
IL_041D: ldc.i4.1
IL_041E: stloc.0
IL_041F: leave => Label79
IL_0424: Label8
IL_0424: ldarg.0
IL_0425: ldc.i4.m1
IL_0426: stfld System.Int32 Verse.<ConfigErrors>d__352::<>1__state
IL_042B: Label78
IL_042B: ldloc.2
IL_042C: ldfld System.Type Verse.ThingDef::thingClass
IL_0431: ldnull
IL_0432: call static System.Boolean
System.Type::op_Equality(System.Type left, System.Type right)
IL_0437: brfalse => Label80
IL_043C: ldarg.0
IL_043D: ldstr "has null thingClass."
IL_0442: stfld System.String Verse.<ConfigErrors>d__352::<>2__current
IL_0447: ldarg.0
IL_0448: ldc.i4.s 9
IL_044A: stfld System.Int32 Verse.<ConfigErrors>d__352::<>1__state
IL_044F: ldc.i4.1
IL_0450: stloc.0
IL_0451: leave => Label81
IL_0456: Label9
IL_0456: ldarg.0
IL_0457: ldc.i4.m1
IL_0458: stfld System.Int32 Verse.<ConfigErrors>d__352::<>1__state
IL_045D: Label80
IL_045D: ldloc.2
IL_045E: ldfld System.Collections.Generic.List`1<Verse.CompProperties>
Verse.ThingDef::comps
IL_0463: callvirt virtual System.Int32
System.Collections.Generic.List`1<Verse.CompProperties>::get_Count()
IL_0468: ldc.i4.0
IL_0469: ble => Label82
IL_046E: ldtoken Verse.ThingWithComps
IL_0473: call static System.Type
System.Type::GetTypeFromHandle(System.RuntimeTypeHandle handle)
IL_0478: ldloc.2
IL_0479: ldfld System.Type Verse.ThingDef::thingClass
IL_047E: callvirt virtual System.Boolean
System.Type::IsAssignableFrom(System.Type c)
IL_0483: brtrue => Label83
IL_0488: ldarg.0
IL_0489: ldstr "has components but it\'s thingClass is not a
ThingWithComps"
IL_048E: stfld System.String Verse.<ConfigErrors>d__352::<>2__current
IL_0493: ldarg.0
IL_0494: ldc.i4.s 10
IL_0496: stfld System.Int32 Verse.<ConfigErrors>d__352::<>1__state
IL_049B: ldc.i4.1
IL_049C: stloc.0
IL_049D: leave => Label84
IL_04A2: Label10
IL_04A2: ldarg.0
IL_04A3: ldc.i4.m1
IL_04A4: stfld System.Int32 Verse.<ConfigErrors>d__352::<>1__state
IL_04A9: Label82
IL_04A9: Label83
IL_04A9: ldloc.2
IL_04AA: call System.Boolean Verse.ThingDef::get_ConnectToPower()
IL_04AF: brfalse => Label85
IL_04B4: ldloc.2
IL_04B5: ldfld Verse.DrawerType Verse.ThingDef::drawerType
IL_04BA: ldc.i4.1
IL_04BB: bne.un => Label86
IL_04C0: ldloc.2
IL_04C1: call System.Boolean Verse.ThingDef::get_IsFrame()
IL_04C6: brfalse => Label87
IL_04CB: ldarg.0
IL_04CC: ldstr "connects to power but does not add to map mesh. Will not
create wire meshes."
IL_04D1: stfld System.String Verse.<ConfigErrors>d__352::<>2__current
IL_04D6: ldarg.0
IL_04D7: ldc.i4.s 11
IL_04D9: stfld System.Int32 Verse.<ConfigErrors>d__352::<>1__state
IL_04DE: ldc.i4.1
IL_04DF: stloc.0
IL_04E0: leave => Label88
IL_04E5: Label11
IL_04E5: ldarg.0
IL_04E6: ldc.i4.m1
IL_04E7: stfld System.Int32 Verse.<ConfigErrors>d__352::<>1__state
IL_04EC: Label85
IL_04EC: Label86
IL_04EC: Label87
IL_04EC: ldloc.2
IL_04ED: ldfld
System.Collections.Generic.List`1<Verse.ThingDefCountClass>
Verse.BuildableDef::costList
IL_04F2: brfalse => Label89
IL_04F7: ldarg.0
IL_04F8: ldloc.2
IL_04F9: ldfld
System.Collections.Generic.List`1<Verse.ThingDefCountClass>
Verse.BuildableDef::costList
IL_04FE: callvirt
System.Collections.Generic.Enumerator<Verse.ThingDefCountClass>
System.Collections.Generic.List`1<Verse.ThingDefCountClass>::GetEnumerator()
IL_0503: stfld
System.Collections.Generic.Enumerator<Verse.ThingDefCountClass>
Verse.<ConfigErrors>d__352::<>7__wrap3
IL_0508: ldarg.0
IL_0509: ldc.i4.s -7
IL_050B: stfld System.Int32 Verse.<ConfigErrors>d__352::<>1__state
IL_0510: br => Label90
IL_0515: Label93
IL_0515: ldarg.0
IL_0516: ldflda
System.Collections.Generic.Enumerator<Verse.ThingDefCountClass>
Verse.<ConfigErrors>d__352::<>7__wrap3
IL_051B: call virtual Verse.ThingDefCountClass
System.Collections.Generic.Enumerator<Verse.ThingDefCountClass>::get_Current()
IL_0520: stloc.s 7 (Verse.ThingDefCountClass)
IL_0522: ldloc.s 7 (Verse.ThingDefCountClass)
IL_0524: ldfld System.Int32 Verse.ThingDefCountClass::count
IL_0529: brtrue => Label91
IL_052E: ldarg.0
IL_052F: ldstr "cost in "
IL_0534: ldloc.s 7 (Verse.ThingDefCountClass)
IL_0536: ldfld Verse.ThingDef Verse.ThingDefCountClass::thingDef
IL_053B: ldstr " is zero."
IL_0540: call static System.String System.String::Concat(System.Object
arg0, System.Object arg1, System.Object arg2)
IL_0545: stfld System.String Verse.<ConfigErrors>d__352::<>2__current
IL_054A: ldarg.0
IL_054B: ldc.i4.s 12
IL_054D: stfld System.Int32 Verse.<ConfigErrors>d__352::<>1__state
IL_0552: ldc.i4.1
IL_0553: stloc.0
IL_0554: leave => Label92
IL_0559: Label12
IL_0559: ldarg.0
IL_055A: ldc.i4.s -7
IL_055C: stfld System.Int32 Verse.<ConfigErrors>d__352::<>1__state
IL_0561: Label90
IL_0561: Label91
IL_0561: ldarg.0
IL_0562: ldflda
System.Collections.Generic.Enumerator<Verse.ThingDefCountClass>
Verse.<ConfigErrors>d__352::<>7__wrap3
IL_0567: call virtual System.Boolean
System.Collections.Generic.Enumerator<Verse.ThingDefCountClass>::MoveNext()
IL_056C: brtrue => Label93
IL_0571: ldarg.0
IL_0572: call System.Void Verse.<ConfigErrors>d__352::<>m__Finally5()
IL_0577: ldarg.0
IL_0578: ldflda
System.Collections.Generic.Enumerator<Verse.ThingDefCountClass>
Verse.<ConfigErrors>d__352::<>7__wrap3
IL_057D: initobj
System.Collections.Generic.List`1+Enumerator[Verse.ThingDefCountClass]
IL_0583: Label89
IL_0583: ldloc.2
IL_0584: ldfld System.Collections.Generic.List`1<Verse.ThingCategoryDef>
Verse.ThingDef::thingCategories
IL_0589: brfalse => Label94
IL_058E: ldloc.2
IL_058F: ldfld System.Collections.Generic.List`1<Verse.ThingCategoryDef>
Verse.ThingDef::thingCategories
IL_0594: ldloc.2
IL_0595: ldftn System.Boolean
Verse.ThingDef::<ConfigErrors>b__352_4(Verse.ThingCategoryDef cat)
IL_059B: newobj System.Void
System.Predicate`1<Verse.ThingCategoryDef>::.ctor(System.Object object,
System.IntPtr method)
IL_05A0: call static Verse.ThingCategoryDef
Verse.GenCollection::FirstOrDefault(System.Collections.Generic.List`1<Verse.ThingCa
tegoryDef> list, System.Predicate`1<Verse.ThingCategoryDef> predicate)
IL_05A5: stloc.s 8 (Verse.ThingCategoryDef)
IL_05A7: ldloc.s 8 (Verse.ThingCategoryDef)
IL_05A9: brfalse => Label95
IL_05AE: ldarg.0
IL_05AF: ldstr "has duplicate thingCategory "
IL_05B4: ldloc.s 8 (Verse.ThingCategoryDef)
IL_05B6: ldstr "."
IL_05BB: call static System.String System.String::Concat(System.Object
arg0, System.Object arg1, System.Object arg2)
IL_05C0: stfld System.String Verse.<ConfigErrors>d__352::<>2__current
IL_05C5: ldarg.0
IL_05C6: ldc.i4.s 13
IL_05C8: stfld System.Int32 Verse.<ConfigErrors>d__352::<>1__state
IL_05CD: ldc.i4.1
IL_05CE: stloc.0
IL_05CF: leave => Label96
IL_05D4: Label13
IL_05D4: ldarg.0
IL_05D5: ldc.i4.m1
IL_05D6: stfld System.Int32 Verse.<ConfigErrors>d__352::<>1__state
IL_05DB: Label94
IL_05DB: Label95
IL_05DB: ldloc.2
IL_05DC: call Verse.FillCategory Verse.ThingDef::get_Fillage()
IL_05E1: ldc.i4.2
IL_05E2: bne.un => Label97
IL_05E7: ldloc.2
IL_05E8: ldfld Verse.ThingCategory Verse.ThingDef::category
IL_05ED: ldc.i4.3
IL_05EE: beq => Label98
IL_05F3: ldarg.0
IL_05F4: ldstr "gives full cover but is not a building."
IL_05F9: stfld System.String Verse.<ConfigErrors>d__352::<>2__current
IL_05FE: ldarg.0
IL_05FF: ldc.i4.s 14
IL_0601: stfld System.Int32 Verse.<ConfigErrors>d__352::<>1__state
IL_0606: ldc.i4.1
IL_0607: stloc.0
IL_0608: leave => Label99
IL_060D: Label14
IL_060D: ldarg.0
IL_060E: ldc.i4.m1
IL_060F: stfld System.Int32 Verse.<ConfigErrors>d__352::<>1__state
IL_0614: Label97
IL_0614: Label98
IL_0614: ldloc.2
IL_0615: ldfld Verse.EquipmentType Verse.ThingDef::equipmentType
IL_061A: brfalse => Label100
IL_061F: ldloc.2
IL_0620: ldfld RimWorld.TechLevel Verse.ThingDef::techLevel
IL_0625: brtrue => Label101
IL_062A: ldloc.2
IL_062B: ldfld System.Boolean Verse.ThingDef::destroyOnDrop
IL_0630: brtrue => Label102
IL_0635: ldarg.0
IL_0636: ldstr "is equipment but has no tech level."
IL_063B: stfld System.String Verse.<ConfigErrors>d__352::<>2__current
IL_0640: ldarg.0
IL_0641: ldc.i4.s 15
IL_0643: stfld System.Int32 Verse.<ConfigErrors>d__352::<>1__state
IL_0648: ldc.i4.1
IL_0649: stloc.0
IL_064A: leave => Label103
IL_064F: Label15
IL_064F: ldarg.0
IL_0650: ldc.i4.m1
IL_0651: stfld System.Int32 Verse.<ConfigErrors>d__352::<>1__state
IL_0656: Label101
IL_0656: Label102
IL_0656: ldloc.2
IL_0657: ldfld System.Collections.Generic.List`1<Verse.CompProperties>
Verse.ThingDef::comps
IL_065C: ldsfld System.Predicate`1<Verse.CompProperties>
Verse.<>c::<>9__352_0
IL_0661: dup
IL_0662: brtrue => Label104
IL_0667: pop
IL_0668: ldsfld Verse.<>c Verse.<>c::<>9
IL_066D: ldftn System.Boolean
Verse.<>c::<ConfigErrors>b__352_0(Verse.CompProperties c)
IL_0673: newobj System.Void
System.Predicate`1<Verse.CompProperties>::.ctor(System.Object object, System.IntPtr
method)
IL_0678: dup
IL_0679: stsfld System.Predicate`1<Verse.CompProperties>
Verse.<>c::<>9__352_0
IL_067E: Label104
IL_067E: call static System.Boolean
Verse.GenCollection::Any(System.Collections.Generic.List`1<Verse.CompProperties>
list, System.Predicate`1<Verse.CompProperties> predicate)
IL_0683: brtrue => Label105
IL_0688: ldarg.0
IL_0689: ldstr "is equipment but has no CompEquippable"
IL_068E: stfld System.String Verse.<ConfigErrors>d__352::<>2__current
IL_0693: ldarg.0
IL_0694: ldc.i4.s 16
IL_0696: stfld System.Int32 Verse.<ConfigErrors>d__352::<>1__state
IL_069B: ldc.i4.1
IL_069C: stloc.0
IL_069D: leave => Label106
IL_06A2: Label16
IL_06A2: ldarg.0
IL_06A3: ldc.i4.m1
IL_06A4: stfld System.Int32 Verse.<ConfigErrors>d__352::<>1__state
IL_06A9: Label100
IL_06A9: Label105
IL_06A9: ldloc.2
IL_06AA: ldfld System.Type Verse.ThingDef::thingClass
IL_06AF: ldtoken RimWorld.Bullet
IL_06B4: call static System.Type
System.Type::GetTypeFromHandle(System.RuntimeTypeHandle handle)
IL_06B9: call static System.Boolean
System.Type::op_Equality(System.Type left, System.Type right)
IL_06BE: brfalse => Label107
IL_06C3: ldloc.2
IL_06C4: ldfld Verse.ProjectileProperties Verse.ThingDef::projectile
IL_06C9: ldfld Verse.DamageDef Verse.ProjectileProperties::damageDef
IL_06CE: brtrue => Label108
IL_06D3: ldarg.0
IL_06D4: ldstr " is a bullet but has no damageDef."
IL_06D9: stfld System.String Verse.<ConfigErrors>d__352::<>2__current
IL_06DE: ldarg.0
IL_06DF: ldc.i4.s 17
IL_06E1: stfld System.Int32 Verse.<ConfigErrors>d__352::<>1__state
IL_06E6: ldc.i4.1
IL_06E7: stloc.0
IL_06E8: leave => Label109
IL_06ED: Label17
IL_06ED: ldarg.0
IL_06EE: ldc.i4.m1
IL_06EF: stfld System.Int32 Verse.<ConfigErrors>d__352::<>1__state
IL_06F4: Label107
IL_06F4: Label108
IL_06F4: ldloc.2
IL_06F5: ldfld System.Boolean Verse.ThingDef::destroyOnDrop
IL_06FA: brfalse => Label110
IL_06FF: ldloc.2
IL_0700: ldfld RimWorld.Tradeability Verse.ThingDef::tradeability
IL_0705: brfalse => Label111
IL_070A: ldarg.0
IL_070B: ldstr "destroyOnDrop but tradeability is "
IL_0710: ldloc.2
IL_0711: ldfld RimWorld.Tradeability Verse.ThingDef::tradeability
IL_0716: box RimWorld.Tradeability
IL_071B: call static System.String System.String::Concat(System.Object
arg0, System.Object arg1)
IL_0720: stfld System.String Verse.<ConfigErrors>d__352::<>2__current
IL_0725: ldarg.0
IL_0726: ldc.i4.s 18
IL_0728: stfld System.Int32 Verse.<ConfigErrors>d__352::<>1__state
IL_072D: ldc.i4.1
IL_072E: stloc.0
IL_072F: leave => Label112
IL_0734: Label18
IL_0734: ldarg.0
IL_0735: ldc.i4.m1
IL_0736: stfld System.Int32 Verse.<ConfigErrors>d__352::<>1__state
IL_073B: Label110
IL_073B: Label111
IL_073B: ldloc.2
IL_073C: ldfld System.Int32 Verse.ThingDef::stackLimit
IL_0741: ldc.i4.1
IL_0742: ble => Label113
IL_0747: ldloc.2
IL_0748: ldfld System.Boolean Verse.ThingDef::drawGUIOverlay
IL_074D: brtrue => Label114
IL_0752: ldarg.0
IL_0753: ldstr "has stackLimit > 1 but also has drawGUIOverlay = false."
IL_0758: stfld System.String Verse.<ConfigErrors>d__352::<>2__current
IL_075D: ldarg.0
IL_075E: ldc.i4.s 19
IL_0760: stfld System.Int32 Verse.<ConfigErrors>d__352::<>1__state
IL_0765: ldc.i4.1
IL_0766: stloc.0
IL_0767: leave => Label115
IL_076C: Label19
IL_076C: ldarg.0
IL_076D: ldc.i4.m1
IL_076E: stfld System.Int32 Verse.<ConfigErrors>d__352::<>1__state
IL_0773: Label113
IL_0773: Label114
IL_0773: ldloc.2
IL_0774: ldfld System.Collections.Generic.List`1<Verse.DamageMultiplier>
Verse.ThingDef::damageMultipliers
IL_0779: brfalse => Label116
IL_077E: ldarg.0
IL_077F: ldloc.2
IL_0780: ldfld System.Collections.Generic.List`1<Verse.DamageMultiplier>
Verse.ThingDef::damageMultipliers
IL_0785: callvirt
System.Collections.Generic.Enumerator<Verse.DamageMultiplier>
System.Collections.Generic.List`1<Verse.DamageMultiplier>::GetEnumerator()
IL_078A: stfld
System.Collections.Generic.Enumerator<Verse.DamageMultiplier>
Verse.<ConfigErrors>d__352::<>7__wrap4
IL_078F: ldarg.0
IL_0790: ldc.i4.s -8
IL_0792: stfld System.Int32 Verse.<ConfigErrors>d__352::<>1__state
IL_0797: br => Label117
IL_079C: Label121
IL_079C: newobj System.Void Verse.<>c__DisplayClass352_2::.ctor()
IL_07A1: stloc.s 9 (Verse.ThingDef+<>c__DisplayClass352_2)
IL_07A3: ldloc.s 9 (Verse.ThingDef+<>c__DisplayClass352_2)
IL_07A5: ldarg.0
IL_07A6: ldflda
System.Collections.Generic.Enumerator<Verse.DamageMultiplier>
Verse.<ConfigErrors>d__352::<>7__wrap4
IL_07AB: call virtual Verse.DamageMultiplier
System.Collections.Generic.Enumerator<Verse.DamageMultiplier>::get_Current()
IL_07B0: stfld Verse.DamageMultiplier Verse.<>c__DisplayClass352_2::mult
IL_07B5: ldloc.2
IL_07B6: ldfld System.Collections.Generic.List`1<Verse.DamageMultiplier>
Verse.ThingDef::damageMultipliers
IL_07BB: ldloc.s 9 (Verse.ThingDef+<>c__DisplayClass352_2)
IL_07BD: ldftn System.Boolean
Verse.<>c__DisplayClass352_2::<ConfigErrors>b__6(Verse.DamageMultiplier m)
IL_07C3: newobj System.Void System.Func`2<Verse.DamageMultiplier,
System.Boolean>::.ctor(System.Object object, System.IntPtr method)
IL_07C8: call static
System.Collections.Generic.IEnumerable`1<Verse.DamageMultiplier>
System.Linq.Enumerable::Where(System.Collections.Generic.IEnumerable`1<Verse.Damage
Multiplier> source, System.Func`2<Verse.DamageMultiplier, System.Boolean>
predicate)
IL_07CD: call static System.Int32
System.Linq.Enumerable::Count(System.Collections.Generic.IEnumerable`1<Verse.Damage
Multiplier> source)
IL_07D2: ldc.i4.1
IL_07D3: ble => Label118
IL_07D8: ldarg.0
IL_07D9: ldstr "has multiple damage multipliers for damageDef "
IL_07DE: ldloc.s 9 (Verse.ThingDef+<>c__DisplayClass352_2)
IL_07E0: ldfld Verse.DamageMultiplier Verse.<>c__DisplayClass352_2::mult
IL_07E5: ldfld Verse.DamageDef Verse.DamageMultiplier::damageDef
IL_07EA: call static System.String System.String::Concat(System.Object
arg0, System.Object arg1)
IL_07EF: stfld System.String Verse.<ConfigErrors>d__352::<>2__current
IL_07F4: ldarg.0
IL_07F5: ldc.i4.s 20
IL_07F7: stfld System.Int32 Verse.<ConfigErrors>d__352::<>1__state
IL_07FC: ldc.i4.1
IL_07FD: stloc.0
IL_07FE: leave => Label119
IL_0803: Label20
IL_0803: ldarg.0
IL_0804: ldc.i4.s -8
IL_0806: stfld System.Int32 Verse.<ConfigErrors>d__352::<>1__state
IL_080B: br => Label120
IL_0810: Label117
IL_0810: Label118
IL_0810: ldarg.0
IL_0811: ldflda
System.Collections.Generic.Enumerator<Verse.DamageMultiplier>
Verse.<ConfigErrors>d__352::<>7__wrap4
IL_0816: call virtual System.Boolean
System.Collections.Generic.Enumerator<Verse.DamageMultiplier>::MoveNext()
IL_081B: brtrue => Label121
IL_0820: Label120
IL_0820: ldarg.0
IL_0821: call System.Void Verse.<ConfigErrors>d__352::<>m__Finally6()
IL_0826: ldarg.0
IL_0827: ldflda
System.Collections.Generic.Enumerator<Verse.DamageMultiplier>
Verse.<ConfigErrors>d__352::<>7__wrap4
IL_082C: initobj
System.Collections.Generic.List`1+Enumerator[Verse.DamageMultiplier]
IL_0832: Label116
IL_0832: ldloc.2
IL_0833: call Verse.FillCategory Verse.ThingDef::get_Fillage()
IL_0838: ldc.i4.2
IL_0839: bne.un => Label122
IL_083E: ldloc.2
IL_083F: call static System.Boolean
Verse.EdificeUtility::IsEdifice(Verse.BuildableDef def)
IL_0844: brtrue => Label123
IL_0849: ldarg.0
IL_084A: ldstr "fillPercent is 1.00 but is not edifice"
IL_084F: stfld System.String Verse.<ConfigErrors>d__352::<>2__current
IL_0854: ldarg.0
IL_0855: ldc.i4.s 21
IL_0857: stfld System.Int32 Verse.<ConfigErrors>d__352::<>1__state
IL_085C: ldc.i4.1
IL_085D: stloc.0
IL_085E: leave => Label124
IL_0863: Label21
IL_0863: ldarg.0
IL_0864: ldc.i4.m1
IL_0865: stfld System.Int32 Verse.<ConfigErrors>d__352::<>1__state
IL_086A: Label122
IL_086A: Label123
IL_086A: ldloc.2
IL_086B: call System.Boolean Verse.BuildableDef::get_MadeFromStuff()
IL_0870: brfalse => Label125
IL_0875: ldloc.2
IL_0876: ldfld Verse.EffecterDef Verse.BuildableDef::constructEffect
IL_087B: brfalse => Label126
IL_0880: ldarg.0
IL_0881: ldstr "madeFromStuff but has a defined constructEffect (which
will always be overridden by stuff\'s construct animation)."
IL_0886: stfld System.String Verse.<ConfigErrors>d__352::<>2__current
IL_088B: ldarg.0
IL_088C: ldc.i4.s 22
IL_088E: stfld System.Int32 Verse.<ConfigErrors>d__352::<>1__state
IL_0893: ldc.i4.1
IL_0894: stloc.0
IL_0895: leave => Label127
IL_089A: Label22
IL_089A: ldarg.0
IL_089B: ldc.i4.m1
IL_089C: stfld System.Int32 Verse.<ConfigErrors>d__352::<>1__state
IL_08A1: Label125
IL_08A1: Label126
IL_08A1: ldloc.2
IL_08A2: call System.Boolean Verse.BuildableDef::get_MadeFromStuff()
IL_08A7: brfalse => Label128
IL_08AC: ldloc.2
IL_08AD: ldfld
System.Collections.Generic.List`1<RimWorld.StuffCategoryDef>
Verse.BuildableDef::stuffCategories
IL_08B2: call static System.Boolean
Verse.GenList::NullOrEmpty(System.Collections.Generic.IList`1<RimWorld.StuffCategor
yDef> list)
IL_08B7: brfalse => Label129
IL_08BC: ldarg.0
IL_08BD: ldstr "madeFromStuff but has no stuffCategories."
IL_08C2: stfld System.String Verse.<ConfigErrors>d__352::<>2__current
IL_08C7: ldarg.0
IL_08C8: ldc.i4.s 23
IL_08CA: stfld System.Int32 Verse.<ConfigErrors>d__352::<>1__state
IL_08CF: ldc.i4.1
IL_08D0: stloc.0
IL_08D1: leave => Label130
IL_08D6: Label23
IL_08D6: ldarg.0
IL_08D7: ldc.i4.m1
IL_08D8: stfld System.Int32 Verse.<ConfigErrors>d__352::<>1__state
IL_08DD: Label128
IL_08DD: Label129
IL_08DD: ldloc.2
IL_08DE: ldfld
System.Collections.Generic.List`1<Verse.ThingDefCountClass>
Verse.BuildableDef::costList
IL_08E3: call static System.Boolean
Verse.GenList::NullOrEmpty(System.Collections.Generic.IList`1<Verse.ThingDefCountCl
ass> list)
IL_08E8: brfalse => Label131
IL_08ED: ldloc.2
IL_08EE: ldfld System.Int32 Verse.BuildableDef::costStuffCount
IL_08F3: ldc.i4.0
IL_08F4: bgt => Label132
IL_08F9: ldloc.2
IL_08FA: ldfld Verse.RecipeMakerProperties Verse.ThingDef::recipeMaker
IL_08FF: brfalse => Label133
IL_0904: ldarg.0
IL_0905: ldstr "has a recipeMaker but no costList or costStuffCount."
IL_090A: stfld System.String Verse.<ConfigErrors>d__352::<>2__current
IL_090F: ldarg.0
IL_0910: ldc.i4.s 24
IL_0912: stfld System.Int32 Verse.<ConfigErrors>d__352::<>1__state
IL_0917: ldc.i4.1
IL_0918: stloc.0
IL_0919: leave => Label134
IL_091E: Label24
IL_091E: ldarg.0
IL_091F: ldc.i4.m1
IL_0920: stfld System.Int32 Verse.<ConfigErrors>d__352::<>1__state
IL_0925: Label131
IL_0925: Label132
IL_0925: Label133
IL_0925: ldloc.2
IL_0926: ldsfld RimWorld.StatDef RimWorld.StatDefOf::DeteriorationRate
IL_092B: ldnull
IL_092C: call static System.Single
RimWorld.StatExtension::GetStatValueAbstract(Verse.BuildableDef def,
RimWorld.StatDef stat, Verse.ThingDef stuff)
IL_0931: ldc.r4 1E-05
IL_0936: ble.un => Label135
IL_093B: ldloc.2
IL_093C: call System.Boolean Verse.ThingDef::get_CanEverDeteriorate()
IL_0941: brtrue => Label136
IL_0946: ldloc.2
IL_0947: ldfld System.Boolean Verse.ThingDef::destroyOnDrop
IL_094C: brtrue => Label137
IL_0951: ldarg.0
IL_0952: ldstr "has >0 DeteriorationRate but can\'t deteriorate."
IL_0957: stfld System.String Verse.<ConfigErrors>d__352::<>2__current
IL_095C: ldarg.0
IL_095D: ldc.i4.s 25
IL_095F: stfld System.Int32 Verse.<ConfigErrors>d__352::<>1__state
IL_0964: ldc.i4.1
IL_0965: stloc.0
IL_0966: leave => Label138
IL_096B: Label25
IL_096B: ldarg.0
IL_096C: ldc.i4.m1
IL_096D: stfld System.Int32 Verse.<ConfigErrors>d__352::<>1__state
IL_0972: Label135
IL_0972: Label136
IL_0972: Label137
IL_0972: ldloc.2
IL_0973: ldfld
System.Collections.Generic.List`1<Verse.ThingDefCountClass>
Verse.ThingDef::smeltProducts
IL_0978: brfalse => Label139
IL_097D: ldloc.2
IL_097E: ldfld System.Boolean Verse.ThingDef::smeltable
IL_0983: brtrue => Label140
IL_0988: ldarg.0
IL_0989: ldstr "has smeltProducts but has smeltable=false"
IL_098E: stfld System.String Verse.<ConfigErrors>d__352::<>2__current
IL_0993: ldarg.0
IL_0994: ldc.i4.s 26
IL_0996: stfld System.Int32 Verse.<ConfigErrors>d__352::<>1__state
IL_099B: ldc.i4.1
IL_099C: stloc.0
IL_099D: leave => Label141
IL_09A2: Label26
IL_09A2: ldarg.0
IL_09A3: ldc.i4.m1
IL_09A4: stfld System.Int32 Verse.<ConfigErrors>d__352::<>1__state
IL_09A9: Label139
IL_09A9: Label140
IL_09A9: ldloc.2
IL_09AA: ldfld System.Boolean Verse.ThingDef::smeltable
IL_09AF: brfalse => Label142
IL_09B4: ldloc.2
IL_09B5: ldfld
System.Collections.Generic.List`1<Verse.ThingDefCountClass>
Verse.ThingDef::smeltProducts
IL_09BA: call static System.Boolean
Verse.GenList::NullOrEmpty(System.Collections.Generic.IList`1<Verse.ThingDefCountCl
ass> list)
IL_09BF: brfalse => Label143
IL_09C4: ldloc.2
IL_09C5: call
System.Collections.Generic.List`1<Verse.ThingDefCountClass>
Verse.BuildableDef::get_CostList()
IL_09CA: call static System.Boolean
Verse.GenList::NullOrEmpty(System.Collections.Generic.IList`1<Verse.ThingDefCountCl
ass> list)
IL_09CF: brfalse => Label144
IL_09D4: ldloc.2
IL_09D5: call System.Boolean Verse.ThingDef::get_IsStuff()
IL_09DA: brtrue => Label145
IL_09DF: ldloc.2
IL_09E0: call System.Boolean Verse.BuildableDef::get_MadeFromStuff()
IL_09E5: brtrue => Label146
IL_09EA: ldloc.2
IL_09EB: ldfld System.Boolean Verse.ThingDef::destroyOnDrop
IL_09F0: brtrue => Label147
IL_09F5: ldarg.0
IL_09F6: ldstr "is smeltable but does not give anything for smelting."
IL_09FB: stfld System.String Verse.<ConfigErrors>d__352::<>2__current
IL_0A00: ldarg.0
IL_0A01: ldc.i4.s 27
IL_0A03: stfld System.Int32 Verse.<ConfigErrors>d__352::<>1__state
IL_0A08: ldc.i4.1
IL_0A09: stloc.0
IL_0A0A: leave => Label148
IL_0A0F: Label27
IL_0A0F: ldarg.0
IL_0A10: ldc.i4.m1
IL_0A11: stfld System.Int32 Verse.<ConfigErrors>d__352::<>1__state
IL_0A16: Label142
IL_0A16: Label143
IL_0A16: Label144
IL_0A16: Label145
IL_0A16: Label146
IL_0A16: Label147
IL_0A16: ldloc.2
IL_0A17: ldfld Verse.EquipmentType Verse.ThingDef::equipmentType
IL_0A1C: brfalse => Label149
IL_0A21: ldloc.2
IL_0A22: ldfld System.Collections.Generic.List`1<Verse.VerbProperties>
Verse.ThingDef::verbs
IL_0A27: call static System.Boolean
Verse.GenList::NullOrEmpty(System.Collections.Generic.IList`1<Verse.VerbProperties>
list)
IL_0A2C: brfalse => Label150
IL_0A31: ldloc.2
IL_0A32: ldfld System.Collections.Generic.List`1<Verse.Tool>
Verse.ThingDef::tools
IL_0A37: call static System.Boolean
Verse.GenList::NullOrEmpty(System.Collections.Generic.IList`1<Verse.Tool> list)
IL_0A3C: brfalse => Label151
IL_0A41: ldarg.0
IL_0A42: ldstr "is equipment but has no verbs or tools"
IL_0A47: stfld System.String Verse.<ConfigErrors>d__352::<>2__current
IL_0A4C: ldarg.0
IL_0A4D: ldc.i4.s 28
IL_0A4F: stfld System.Int32 Verse.<ConfigErrors>d__352::<>1__state
IL_0A54: ldc.i4.1
IL_0A55: stloc.0
IL_0A56: leave => Label152
IL_0A5B: Label28
IL_0A5B: ldarg.0
IL_0A5C: ldc.i4.m1
IL_0A5D: stfld System.Int32 Verse.<ConfigErrors>d__352::<>1__state
IL_0A62: Label149
IL_0A62: Label150
IL_0A62: Label151
IL_0A62: ldloc.2
IL_0A63: call System.Boolean Verse.ThingDef::get_Minifiable()
IL_0A68: brfalse => Label153
IL_0A6D: ldloc.2
IL_0A6E: ldfld System.Collections.Generic.List`1<Verse.ThingCategoryDef>
Verse.ThingDef::thingCategories
IL_0A73: call static System.Boolean
Verse.GenList::NullOrEmpty(System.Collections.Generic.IList`1<Verse.ThingCategoryDe
f> list)
IL_0A78: brfalse => Label154
IL_0A7D: ldarg.0
IL_0A7E: ldstr "is minifiable but not in any thing category"
IL_0A83: stfld System.String Verse.<ConfigErrors>d__352::<>2__current
IL_0A88: ldarg.0
IL_0A89: ldc.i4.s 29
IL_0A8B: stfld System.Int32 Verse.<ConfigErrors>d__352::<>1__state
IL_0A90: ldc.i4.1
IL_0A91: stloc.0
IL_0A92: leave => Label155
IL_0A97: Label29
IL_0A97: ldarg.0
IL_0A98: ldc.i4.m1
IL_0A99: stfld System.Int32 Verse.<ConfigErrors>d__352::<>1__state
IL_0A9E: Label153
IL_0A9E: Label154
IL_0A9E: ldloc.2
IL_0A9F: ldfld Verse.ThingCategory Verse.ThingDef::category
IL_0AA4: ldc.i4.3
IL_0AA5: bne.un => Label156
IL_0AAA: ldloc.2
IL_0AAB: call System.Boolean Verse.ThingDef::get_Minifiable()
IL_0AB0: brtrue => Label157
IL_0AB5: ldloc.2
IL_0AB6: ldfld System.Collections.Generic.List`1<Verse.ThingCategoryDef>
Verse.ThingDef::thingCategories
IL_0ABB: call static System.Boolean
Verse.GenList::NullOrEmpty(System.Collections.Generic.IList`1<Verse.ThingCategoryDe
f> list)
IL_0AC0: brtrue => Label158
IL_0AC5: ldarg.0
IL_0AC6: ldstr "is not minifiable yet has thing categories (could be
confusing in thing filters because it can\'t be moved/stored anyway)"
IL_0ACB: stfld System.String Verse.<ConfigErrors>d__352::<>2__current
IL_0AD0: ldarg.0
IL_0AD1: ldc.i4.s 30
IL_0AD3: stfld System.Int32 Verse.<ConfigErrors>d__352::<>1__state
IL_0AD8: ldc.i4.1
IL_0AD9: stloc.0
IL_0ADA: leave => Label159
IL_0ADF: Label30
IL_0ADF: ldarg.0
IL_0AE0: ldc.i4.m1
IL_0AE1: stfld System.Int32 Verse.<ConfigErrors>d__352::<>1__state
IL_0AE6: Label156
IL_0AE6: Label157
IL_0AE6: Label158
IL_0AE6: ldloc.2
IL_0AE7: ldfld System.Boolean Verse.ThingDef::destroyOnDrop
IL_0AEC: brtrue => Label160
IL_0AF1: ldloc.2
IL_0AF2: ldsfld Verse.ThingDef RimWorld.ThingDefOf::MinifiedThing
IL_0AF7: beq => Label161
IL_0AFC: ldloc.2
IL_0AFD: ldsfld Verse.ThingDef RimWorld.ThingDefOf::MinifiedTree
IL_0B02: beq => Label162
IL_0B07: ldloc.2
IL_0B08: call System.Boolean Verse.ThingDef::get_EverHaulable()
IL_0B0D: brtrue => Label163
IL_0B12: ldloc.2
IL_0B13: call System.Boolean Verse.ThingDef::get_Minifiable()
IL_0B18: brfalse => Label164
IL_0B1D: Label163
IL_0B1D: ldloc.2
IL_0B1E: ldfld System.Collections.Generic.List`1<RimWorld.StatModifier>
Verse.BuildableDef::statBases
IL_0B23: call static System.Boolean
Verse.GenList::NullOrEmpty(System.Collections.Generic.IList`1<RimWorld.StatModifier
> list)
IL_0B28: brtrue => Label165
IL_0B2D: ldloc.2
IL_0B2E: ldfld System.Collections.Generic.List`1<RimWorld.StatModifier>
Verse.BuildableDef::statBases
IL_0B33: ldsfld System.Predicate`1<RimWorld.StatModifier>
Verse.<>c::<>9__352_1
IL_0B38: dup
IL_0B39: brtrue => Label166
IL_0B3E: pop
IL_0B3F: ldsfld Verse.<>c Verse.<>c::<>9
IL_0B44: ldftn System.Boolean
Verse.<>c::<ConfigErrors>b__352_1(RimWorld.StatModifier s)
IL_0B4A: newobj System.Void
System.Predicate`1<RimWorld.StatModifier>::.ctor(System.Object object,
System.IntPtr method)
IL_0B4F: dup
IL_0B50: stsfld System.Predicate`1<RimWorld.StatModifier>
Verse.<>c::<>9__352_1
IL_0B55: Label166
IL_0B55: call static System.Boolean
Verse.GenCollection::Any(System.Collections.Generic.List`1<RimWorld.StatModifier>
list, System.Predicate`1<RimWorld.StatModifier> predicate)
IL_0B5A: brtrue => Label167
IL_0B5F: Label165
IL_0B5F: ldarg.0
IL_0B60: ldstr "is haulable, but does not have an authored mass value"
IL_0B65: stfld System.String Verse.<ConfigErrors>d__352::<>2__current
IL_0B6A: ldarg.0
IL_0B6B: ldc.i4.s 31
IL_0B6D: stfld System.Int32 Verse.<ConfigErrors>d__352::<>1__state
IL_0B72: ldc.i4.1
IL_0B73: stloc.0
IL_0B74: leave => Label168
IL_0B79: Label31
IL_0B79: ldarg.0
IL_0B7A: ldc.i4.m1
IL_0B7B: stfld System.Int32 Verse.<ConfigErrors>d__352::<>1__state
IL_0B80: Label160
IL_0B80: Label161
IL_0B80: Label162
IL_0B80: Label164
IL_0B80: Label167
IL_0B80: ldloc.2
IL_0B81: ldfld RimWorld.IngestibleProperties Verse.ThingDef::ingestible
IL_0B86: brtrue => Label169
IL_0B8B: ldloc.2
IL_0B8C: ldsfld RimWorld.StatDef RimWorld.StatDefOf::Nutrition
IL_0B91: ldnull
IL_0B92: call static System.Single
RimWorld.StatExtension::GetStatValueAbstract(Verse.BuildableDef def,
RimWorld.StatDef stat, Verse.ThingDef stuff)
IL_0B97: ldc.r4 0
IL_0B9C: beq => Label170
IL_0BA1: ldarg.0
IL_0BA2: ldstr "has nutrition but ingestible properties are null"
IL_0BA7: stfld System.String Verse.<ConfigErrors>d__352::<>2__current
IL_0BAC: ldarg.0
IL_0BAD: ldc.i4.s 32
IL_0BAF: stfld System.Int32 Verse.<ConfigErrors>d__352::<>1__state
IL_0BB4: ldc.i4.1
IL_0BB5: stloc.0
IL_0BB6: leave => Label171
IL_0BBB: Label32
IL_0BBB: ldarg.0
IL_0BBC: ldc.i4.m1
IL_0BBD: stfld System.Int32 Verse.<ConfigErrors>d__352::<>1__state
IL_0BC2: Label169
IL_0BC2: Label170
IL_0BC2: ldloc.2
IL_0BC3: call System.Single Verse.ThingDef::get_BaseFlammability()
IL_0BC8: ldc.r4 0
IL_0BCD: beq => Label172
IL_0BD2: ldloc.2
IL_0BD3: ldfld System.Boolean Verse.ThingDef::useHitPoints
IL_0BD8: brtrue => Label173
IL_0BDD: ldloc.2
IL_0BDE: ldfld Verse.ThingCategory Verse.ThingDef::category
IL_0BE3: ldc.i4.1
IL_0BE4: beq => Label174
IL_0BE9: ldloc.2
IL_0BEA: ldfld System.Boolean Verse.ThingDef::destroyOnDrop
IL_0BEF: brtrue => Label175
IL_0BF4: ldarg.0
IL_0BF5: ldstr "flammable but has no hitpoints (will burn indefinitely)"
IL_0BFA: stfld System.String Verse.<ConfigErrors>d__352::<>2__current
IL_0BFF: ldarg.0
IL_0C00: ldc.i4.s 33
IL_0C02: stfld System.Int32 Verse.<ConfigErrors>d__352::<>1__state
IL_0C07: ldc.i4.1
IL_0C08: stloc.0
IL_0C09: leave => Label176
IL_0C0E: Label33
IL_0C0E: ldarg.0
IL_0C0F: ldc.i4.m1
IL_0C10: stfld System.Int32 Verse.<ConfigErrors>d__352::<>1__state
IL_0C15: Label172
IL_0C15: Label173
IL_0C15: Label174
IL_0C15: Label175
IL_0C15: ldloc.2
IL_0C16: ldfld Verse.GraphicData Verse.ThingDef::graphicData
IL_0C1B: brfalse => Label177
IL_0C20: ldloc.2
IL_0C21: ldfld Verse.GraphicData Verse.ThingDef::graphicData
IL_0C26: ldfld Verse.ShadowData Verse.GraphicData::shadowData
IL_0C2B: brfalse => Label178
IL_0C30: ldloc.2
IL_0C31: ldfld System.Single Verse.ThingDef::staticSunShadowHeight
IL_0C36: ldc.r4 0
IL_0C3B: ble.un => Label179
IL_0C40: ldarg.0
IL_0C41: ldstr "graphicData defines a shadowInfo but
staticSunShadowHeight > 0"
IL_0C46: stfld System.String Verse.<ConfigErrors>d__352::<>2__current
IL_0C4B: ldarg.0
IL_0C4C: ldc.i4.s 34
IL_0C4E: stfld System.Int32 Verse.<ConfigErrors>d__352::<>1__state
IL_0C53: ldc.i4.1
IL_0C54: stloc.0
IL_0C55: leave => Label180
IL_0C5A: Label34
IL_0C5A: ldarg.0
IL_0C5B: ldc.i4.m1
IL_0C5C: stfld System.Int32 Verse.<ConfigErrors>d__352::<>1__state
IL_0C61: Label177
IL_0C61: Label178
IL_0C61: Label179
IL_0C61: ldloc.2
IL_0C62: ldfld System.Boolean Verse.ThingDef::saveCompressible
IL_0C67: brfalse => Label181
IL_0C6C: ldloc.2
IL_0C6D: call System.Boolean Verse.ThingDef::get_Claimable()
IL_0C72: brfalse => Label182
IL_0C77: ldarg.0
IL_0C78: ldstr "claimable item is compressible; faction will be unset
after load"
IL_0C7D: stfld System.String Verse.<ConfigErrors>d__352::<>2__current
IL_0C82: ldarg.0
IL_0C83: ldc.i4.s 35
IL_0C85: stfld System.Int32 Verse.<ConfigErrors>d__352::<>1__state
IL_0C8A: ldc.i4.1
IL_0C8B: stloc.0
IL_0C8C: leave => Label183
IL_0C91: Label35
IL_0C91: ldarg.0
IL_0C92: ldc.i4.m1
IL_0C93: stfld System.Int32 Verse.<ConfigErrors>d__352::<>1__state
IL_0C98: Label181
IL_0C98: Label182
IL_0C98: ldloc.2
IL_0C99: ldfld System.Single Verse.ThingDef::deepCommonality
IL_0C9E: ldc.r4 0
IL_0CA3: cgt
IL_0CA5: ldloc.2
IL_0CA6: ldflda Verse.IntRange Verse.ThingDef::deepLumpSizeRange
IL_0CAB: call System.Int32 Verse.IntRange::get_TrueMax()
IL_0CB0: ldc.i4.0
IL_0CB1: cgt
IL_0CB3: beq => Label184
IL_0CB8: ldarg.0
IL_0CB9: ldstr "if deepCommonality or deepLumpSizeRange is set, the
other also must be set"
IL_0CBE: stfld System.String Verse.<ConfigErrors>d__352::<>2__current
IL_0CC3: ldarg.0
IL_0CC4: ldc.i4.s 36
IL_0CC6: stfld System.Int32 Verse.<ConfigErrors>d__352::<>1__state
IL_0CCB: ldc.i4.1
IL_0CCC: stloc.0
IL_0CCD: leave => Label185
IL_0CD2: Label36
IL_0CD2: ldarg.0
IL_0CD3: ldc.i4.m1
IL_0CD4: stfld System.Int32 Verse.<ConfigErrors>d__352::<>1__state
IL_0CD9: Label184
IL_0CD9: ldloc.2
IL_0CDA: ldfld System.Single Verse.ThingDef::deepCommonality
IL_0CDF: ldc.r4 0
IL_0CE4: ble.un => Label186
IL_0CE9: ldloc.2
IL_0CEA: ldfld System.Int32 Verse.ThingDef::deepCountPerPortion
IL_0CEF: ldc.i4.0
IL_0CF0: bgt => Label187
IL_0CF5: ldarg.0
IL_0CF6: ldstr "deepCommonality > 0 but deepCountPerPortion is not set"
IL_0CFB: stfld System.String Verse.<ConfigErrors>d__352::<>2__current
IL_0D00: ldarg.0
IL_0D01: ldc.i4.s 37
IL_0D03: stfld System.Int32 Verse.<ConfigErrors>d__352::<>1__state
IL_0D08: ldc.i4.1
IL_0D09: stloc.0
IL_0D0A: leave => Label188
IL_0D0F: Label37
IL_0D0F: ldarg.0
IL_0D10: ldc.i4.m1
IL_0D11: stfld System.Int32 Verse.<ConfigErrors>d__352::<>1__state
IL_0D16: Label186
IL_0D16: Label187
IL_0D16: ldloc.2
IL_0D17: ldfld System.Collections.Generic.List`1<Verse.VerbProperties>
Verse.ThingDef::verbs
IL_0D1C: brfalse => Label189
IL_0D21: ldarg.0
IL_0D22: ldc.i4.0
IL_0D23: stfld System.Int32 Verse.<ConfigErrors>d__352::<i>5__6
IL_0D28: br => Label190
IL_0D2D: Label194
IL_0D2D: ldarg.0
IL_0D2E: ldloc.2
IL_0D2F: ldfld System.Collections.Generic.List`1<Verse.VerbProperties>
Verse.ThingDef::verbs
IL_0D34: ldarg.0
IL_0D35: ldfld System.Int32 Verse.<ConfigErrors>d__352::<i>5__6
IL_0D3A: callvirt virtual Verse.VerbProperties
System.Collections.Generic.List`1<Verse.VerbProperties>::get_Item(System.Int32
index)
IL_0D3F: ldloc.2
IL_0D40: callvirt System.Collections.Generic.IEnumerable`1<System.String>
Verse.VerbProperties::ConfigErrors(Verse.ThingDef parent)
IL_0D45: callvirt abstract virtual
System.Collections.Generic.IEnumerator`1<System.String>
System.Collections.Generic.IEnumerable`1<System.String>::GetEnumerator()
IL_0D4A: stfld System.Collections.Generic.IEnumerator`1<System.String>
Verse.<ConfigErrors>d__352::<>7__wrap1
IL_0D4F: ldarg.0
IL_0D50: ldc.i4.s -9
IL_0D52: stfld System.Int32 Verse.<ConfigErrors>d__352::<>1__state
IL_0D57: br => Label191
IL_0D5C: Label193
IL_0D5C: ldarg.0
IL_0D5D: ldfld System.Collections.Generic.IEnumerator`1<System.String>
Verse.<ConfigErrors>d__352::<>7__wrap1
IL_0D62: callvirt abstract virtual System.String
System.Collections.Generic.IEnumerator`1<System.String>::get_Current()
IL_0D67: stloc.s 10 (System.String)
IL_0D69: ldarg.0
IL_0D6A: ldstr "verb {0}: {1}"
IL_0D6F: ldarg.0
IL_0D70: ldfld System.Int32 Verse.<ConfigErrors>d__352::<i>5__6
IL_0D75: box System.Int32
IL_0D7A: ldloc.s 10 (System.String)
IL_0D7C: call static System.String System.String::Format(System.String
format, System.Object arg0, System.Object arg1)
IL_0D81: stfld System.String Verse.<ConfigErrors>d__352::<>2__current
IL_0D86: ldarg.0
IL_0D87: ldc.i4.s 38
IL_0D89: stfld System.Int32 Verse.<ConfigErrors>d__352::<>1__state
IL_0D8E: ldc.i4.1
IL_0D8F: stloc.0
IL_0D90: leave => Label192
IL_0D95: Label38
IL_0D95: ldarg.0
IL_0D96: ldc.i4.s -9
IL_0D98: stfld System.Int32 Verse.<ConfigErrors>d__352::<>1__state
IL_0D9D: Label191
IL_0D9D: ldarg.0
IL_0D9E: ldfld System.Collections.Generic.IEnumerator`1<System.String>
Verse.<ConfigErrors>d__352::<>7__wrap1
IL_0DA3: callvirt abstract virtual System.Boolean
System.Collections.IEnumerator::MoveNext()
IL_0DA8: brtrue => Label193
IL_0DAD: ldarg.0
IL_0DAE: call System.Void Verse.<ConfigErrors>d__352::<>m__Finally7()
IL_0DB3: ldarg.0
IL_0DB4: ldnull
IL_0DB5: stfld System.Collections.Generic.IEnumerator`1<System.String>
Verse.<ConfigErrors>d__352::<>7__wrap1
IL_0DBA: ldarg.0
IL_0DBB: ldfld System.Int32 Verse.<ConfigErrors>d__352::<i>5__6
IL_0DC0: stloc.s 11 (System.Int32)
IL_0DC2: ldarg.0
IL_0DC3: ldloc.s 11 (System.Int32)
IL_0DC5: ldc.i4.1
IL_0DC6: add
IL_0DC7: stfld System.Int32 Verse.<ConfigErrors>d__352::<i>5__6
IL_0DCC: Label190
IL_0DCC: ldarg.0
IL_0DCD: ldfld System.Int32 Verse.<ConfigErrors>d__352::<i>5__6
IL_0DD2: ldloc.2
IL_0DD3: ldfld System.Collections.Generic.List`1<Verse.VerbProperties>
Verse.ThingDef::verbs
IL_0DD8: callvirt virtual System.Int32
System.Collections.Generic.List`1<Verse.VerbProperties>::get_Count()
IL_0DDD: blt => Label194
IL_0DE2: Label189
IL_0DE2: ldloc.2
IL_0DE3: ldfld RimWorld.BuildingProperties Verse.ThingDef::building
IL_0DE8: brfalse => Label195
IL_0DED: ldarg.0
IL_0DEE: ldloc.2
IL_0DEF: ldfld RimWorld.BuildingProperties Verse.ThingDef::building
IL_0DF4: ldloc.2
IL_0DF5: callvirt System.Collections.Generic.IEnumerable`1<System.String>
RimWorld.BuildingProperties::ConfigErrors(Verse.ThingDef parent)
IL_0DFA: callvirt abstract virtual
System.Collections.Generic.IEnumerator`1<System.String>
System.Collections.Generic.IEnumerable`1<System.String>::GetEnumerator()
IL_0DFF: stfld System.Collections.Generic.IEnumerator`1<System.String>
Verse.<ConfigErrors>d__352::<>7__wrap1
IL_0E04: ldarg.0
IL_0E05: ldc.i4.s -10
IL_0E07: stfld System.Int32 Verse.<ConfigErrors>d__352::<>1__state
IL_0E0C: br => Label196
IL_0E11: Label198
IL_0E11: ldarg.0
IL_0E12: ldfld System.Collections.Generic.IEnumerator`1<System.String>
Verse.<ConfigErrors>d__352::<>7__wrap1
IL_0E17: callvirt abstract virtual System.String
System.Collections.Generic.IEnumerator`1<System.String>::get_Current()
IL_0E1C: stloc.s 12 (System.String)
IL_0E1E: ldarg.0
IL_0E1F: ldloc.s 12 (System.String)
IL_0E21: stfld System.String Verse.<ConfigErrors>d__352::<>2__current
IL_0E26: ldarg.0
IL_0E27: ldc.i4.s 39
IL_0E29: stfld System.Int32 Verse.<ConfigErrors>d__352::<>1__state
IL_0E2E: ldc.i4.1
IL_0E2F: stloc.0
IL_0E30: leave => Label197
IL_0E35: Label39
IL_0E35: ldarg.0
IL_0E36: ldc.i4.s -10
IL_0E38: stfld System.Int32 Verse.<ConfigErrors>d__352::<>1__state
IL_0E3D: Label196
IL_0E3D: ldarg.0
IL_0E3E: ldfld System.Collections.Generic.IEnumerator`1<System.String>
Verse.<ConfigErrors>d__352::<>7__wrap1
IL_0E43: callvirt abstract virtual System.Boolean
System.Collections.IEnumerator::MoveNext()
IL_0E48: brtrue => Label198
IL_0E4D: ldarg.0
IL_0E4E: call System.Void Verse.<ConfigErrors>d__352::<>m__Finally8()
IL_0E53: ldarg.0
IL_0E54: ldnull
IL_0E55: stfld System.Collections.Generic.IEnumerator`1<System.String>
Verse.<ConfigErrors>d__352::<>7__wrap1
IL_0E5A: Label195
IL_0E5A: ldloc.2
IL_0E5B: ldfld RimWorld.ApparelProperties Verse.ThingDef::apparel
IL_0E60: brfalse => Label199
IL_0E65: ldarg.0
IL_0E66: ldloc.2
IL_0E67: ldfld RimWorld.ApparelProperties Verse.ThingDef::apparel
IL_0E6C: ldloc.2
IL_0E6D: callvirt System.Collections.Generic.IEnumerable`1<System.String>
RimWorld.ApparelProperties::ConfigErrors(Verse.ThingDef parentDef)
IL_0E72: callvirt abstract virtual
System.Collections.Generic.IEnumerator`1<System.String>
System.Collections.Generic.IEnumerable`1<System.String>::GetEnumerator()
IL_0E77: stfld System.Collections.Generic.IEnumerator`1<System.String>
Verse.<ConfigErrors>d__352::<>7__wrap1
IL_0E7C: ldarg.0
IL_0E7D: ldc.i4.s -11
IL_0E7F: stfld System.Int32 Verse.<ConfigErrors>d__352::<>1__state
IL_0E84: br => Label200
IL_0E89: Label202
IL_0E89: ldarg.0
IL_0E8A: ldfld System.Collections.Generic.IEnumerator`1<System.String>
Verse.<ConfigErrors>d__352::<>7__wrap1
IL_0E8F: callvirt abstract virtual System.String
System.Collections.Generic.IEnumerator`1<System.String>::get_Current()
IL_0E94: stloc.s 13 (System.String)
IL_0E96: ldarg.0
IL_0E97: ldloc.s 13 (System.String)
IL_0E99: stfld System.String Verse.<ConfigErrors>d__352::<>2__current
IL_0E9E: ldarg.0
IL_0E9F: ldc.i4.s 40
IL_0EA1: stfld System.Int32 Verse.<ConfigErrors>d__352::<>1__state
IL_0EA6: ldc.i4.1
IL_0EA7: stloc.0
IL_0EA8: leave => Label201
IL_0EAD: Label40
IL_0EAD: ldarg.0
IL_0EAE: ldc.i4.s -11
IL_0EB0: stfld System.Int32 Verse.<ConfigErrors>d__352::<>1__state
IL_0EB5: Label200
IL_0EB5: ldarg.0
IL_0EB6: ldfld System.Collections.Generic.IEnumerator`1<System.String>
Verse.<ConfigErrors>d__352::<>7__wrap1
IL_0EBB: callvirt abstract virtual System.Boolean
System.Collections.IEnumerator::MoveNext()
IL_0EC0: brtrue => Label202
IL_0EC5: ldarg.0
IL_0EC6: call System.Void Verse.<ConfigErrors>d__352::<>m__Finally9()
IL_0ECB: ldarg.0
IL_0ECC: ldnull
IL_0ECD: stfld System.Collections.Generic.IEnumerator`1<System.String>
Verse.<ConfigErrors>d__352::<>7__wrap1
IL_0ED2: Label199
IL_0ED2: ldloc.2
IL_0ED3: ldfld System.Collections.Generic.List`1<Verse.CompProperties>
Verse.ThingDef::comps
IL_0ED8: brfalse => Label203
IL_0EDD: ldarg.0
IL_0EDE: ldc.i4.0
IL_0EDF: stfld System.Int32 Verse.<ConfigErrors>d__352::<i>5__6
IL_0EE4: br => Label204
IL_0EE9: Label208
IL_0EE9: ldarg.0
IL_0EEA: ldloc.2
IL_0EEB: ldfld System.Collections.Generic.List`1<Verse.CompProperties>
Verse.ThingDef::comps
IL_0EF0: ldarg.0
IL_0EF1: ldfld System.Int32 Verse.<ConfigErrors>d__352::<i>5__6
IL_0EF6: callvirt virtual Verse.CompProperties
System.Collections.Generic.List`1<Verse.CompProperties>::get_Item(System.Int32
index)
IL_0EFB: ldloc.2
IL_0EFC: callvirt virtual
System.Collections.Generic.IEnumerable`1<System.String>
Verse.CompProperties::ConfigErrors(Verse.ThingDef parentDef)
IL_0F01: callvirt abstract virtual
System.Collections.Generic.IEnumerator`1<System.String>
System.Collections.Generic.IEnumerable`1<System.String>::GetEnumerator()
IL_0F06: stfld System.Collections.Generic.IEnumerator`1<System.String>
Verse.<ConfigErrors>d__352::<>7__wrap1
IL_0F0B: ldarg.0
IL_0F0C: ldc.i4.s -12
IL_0F0E: stfld System.Int32 Verse.<ConfigErrors>d__352::<>1__state
IL_0F13: br => Label205
IL_0F18: Label207
IL_0F18: ldarg.0
IL_0F19: ldfld System.Collections.Generic.IEnumerator`1<System.String>
Verse.<ConfigErrors>d__352::<>7__wrap1
IL_0F1E: callvirt abstract virtual System.String
System.Collections.Generic.IEnumerator`1<System.String>::get_Current()
IL_0F23: stloc.s 14 (System.String)
IL_0F25: ldarg.0
IL_0F26: ldloc.s 14 (System.String)
IL_0F28: stfld System.String Verse.<ConfigErrors>d__352::<>2__current
IL_0F2D: ldarg.0
IL_0F2E: ldc.i4.s 41
IL_0F30: stfld System.Int32 Verse.<ConfigErrors>d__352::<>1__state
IL_0F35: ldc.i4.1
IL_0F36: stloc.0
IL_0F37: leave => Label206
IL_0F3C: Label41
IL_0F3C: ldarg.0
IL_0F3D: ldc.i4.s -12
IL_0F3F: stfld System.Int32 Verse.<ConfigErrors>d__352::<>1__state
IL_0F44: Label205
IL_0F44: ldarg.0
IL_0F45: ldfld System.Collections.Generic.IEnumerator`1<System.String>
Verse.<ConfigErrors>d__352::<>7__wrap1
IL_0F4A: callvirt abstract virtual System.Boolean
System.Collections.IEnumerator::MoveNext()
IL_0F4F: brtrue => Label207
IL_0F54: ldarg.0
IL_0F55: call System.Void Verse.<ConfigErrors>d__352::<>m__Finally10()
IL_0F5A: ldarg.0
IL_0F5B: ldnull
IL_0F5C: stfld System.Collections.Generic.IEnumerator`1<System.String>
Verse.<ConfigErrors>d__352::<>7__wrap1
IL_0F61: ldarg.0
IL_0F62: ldfld System.Int32 Verse.<ConfigErrors>d__352::<i>5__6
IL_0F67: stloc.s 11 (System.Int32)
IL_0F69: ldarg.0
IL_0F6A: ldloc.s 11 (System.Int32)
IL_0F6C: ldc.i4.1
IL_0F6D: add
IL_0F6E: stfld System.Int32 Verse.<ConfigErrors>d__352::<i>5__6
IL_0F73: Label204
IL_0F73: ldarg.0
IL_0F74: ldfld System.Int32 Verse.<ConfigErrors>d__352::<i>5__6
IL_0F79: ldloc.2
IL_0F7A: ldfld System.Collections.Generic.List`1<Verse.CompProperties>
Verse.ThingDef::comps
IL_0F7F: callvirt virtual System.Int32
System.Collections.Generic.List`1<Verse.CompProperties>::get_Count()
IL_0F84: blt => Label208
IL_0F89: Label203
IL_0F89: ldloc.2
IL_0F8A: ldfld Verse.RaceProperties Verse.ThingDef::race
IL_0F8F: brfalse => Label209
IL_0F94: ldarg.0
IL_0F95: ldloc.2
IL_0F96: ldfld Verse.RaceProperties Verse.ThingDef::race
IL_0F9B: ldloc.2
IL_0F9C: callvirt System.Collections.Generic.IEnumerable`1<System.String>
Verse.RaceProperties::ConfigErrors(Verse.ThingDef thingDef)
IL_0FA1: callvirt abstract virtual
System.Collections.Generic.IEnumerator`1<System.String>
System.Collections.Generic.IEnumerable`1<System.String>::GetEnumerator()
IL_0FA6: stfld System.Collections.Generic.IEnumerator`1<System.String>
Verse.<ConfigErrors>d__352::<>7__wrap1
IL_0FAB: ldarg.0
IL_0FAC: ldc.i4.s -13
IL_0FAE: stfld System.Int32 Verse.<ConfigErrors>d__352::<>1__state
IL_0FB3: br => Label210
IL_0FB8: Label212
IL_0FB8: ldarg.0
IL_0FB9: ldfld System.Collections.Generic.IEnumerator`1<System.String>
Verse.<ConfigErrors>d__352::<>7__wrap1
IL_0FBE: callvirt abstract virtual System.String
System.Collections.Generic.IEnumerator`1<System.String>::get_Current()
IL_0FC3: stloc.s 15 (System.String)
IL_0FC5: ldarg.0
IL_0FC6: ldloc.s 15 (System.String)
IL_0FC8: stfld System.String Verse.<ConfigErrors>d__352::<>2__current
IL_0FCD: ldarg.0
IL_0FCE: ldc.i4.s 42
IL_0FD0: stfld System.Int32 Verse.<ConfigErrors>d__352::<>1__state
IL_0FD5: ldc.i4.1
IL_0FD6: stloc.0
IL_0FD7: leave => Label211
IL_0FDC: Label42
IL_0FDC: ldarg.0
IL_0FDD: ldc.i4.s -13
IL_0FDF: stfld System.Int32 Verse.<ConfigErrors>d__352::<>1__state
IL_0FE4: Label210
IL_0FE4: ldarg.0
IL_0FE5: ldfld System.Collections.Generic.IEnumerator`1<System.String>
Verse.<ConfigErrors>d__352::<>7__wrap1
IL_0FEA: callvirt abstract virtual System.Boolean
System.Collections.IEnumerator::MoveNext()
IL_0FEF: brtrue => Label212
IL_0FF4: ldarg.0
IL_0FF5: call System.Void Verse.<ConfigErrors>d__352::<>m__Finally11()
IL_0FFA: ldarg.0
IL_0FFB: ldnull
IL_0FFC: stfld System.Collections.Generic.IEnumerator`1<System.String>
Verse.<ConfigErrors>d__352::<>7__wrap1
IL_1001: ldloc.2
IL_1002: ldfld Verse.RaceProperties Verse.ThingDef::race
IL_1007: ldfld Verse.BodyDef Verse.RaceProperties::body
IL_100C: brfalse => Label213
IL_1011: ldloc.2
IL_1012: ldfld Verse.RaceProperties Verse.ThingDef::race
IL_1017: brfalse => Label214
IL_101C: ldloc.2
IL_101D: ldfld System.Collections.Generic.List`1<Verse.Tool>
Verse.ThingDef::tools
IL_1022: brfalse => Label215
IL_1027: ldarg.0
IL_1028: newobj System.Void Verse.<>c__DisplayClass352_3::.ctor()
IL_102D: stfld Verse.<>c__DisplayClass352_3
Verse.<ConfigErrors>d__352::<>8__1
IL_1032: ldarg.0
IL_1033: ldfld Verse.<>c__DisplayClass352_3
Verse.<ConfigErrors>d__352::<>8__1
IL_1038: ldloc.2
IL_1039: stfld Verse.ThingDef Verse.<>c__DisplayClass352_3::<>4__this
IL_103E: ldarg.0
IL_103F: ldfld Verse.<>c__DisplayClass352_3
Verse.<ConfigErrors>d__352::<>8__1
IL_1044: ldc.i4.0
IL_1045: stfld System.Int32 Verse.<>c__DisplayClass352_3::i
IL_104A: br => Label216
IL_104F: Label220
IL_104F: ldloc.2
IL_1050: ldfld System.Collections.Generic.List`1<Verse.Tool>
Verse.ThingDef::tools
IL_1055: ldarg.0
IL_1056: ldfld Verse.<>c__DisplayClass352_3
Verse.<ConfigErrors>d__352::<>8__1
IL_105B: ldfld System.Int32 Verse.<>c__DisplayClass352_3::i
IL_1060: callvirt virtual Verse.Tool
System.Collections.Generic.List`1<Verse.Tool>::get_Item(System.Int32 index)
IL_1065: ldfld Verse.BodyPartGroupDef Verse.Tool::linkedBodyPartsGroup
IL_106A: brfalse => Label217
IL_106F: ldloc.2
IL_1070: ldfld Verse.RaceProperties Verse.ThingDef::race
IL_1075: ldfld Verse.BodyDef Verse.RaceProperties::body
IL_107A: callvirt System.Collections.Generic.List`1<Verse.BodyPartRecord>
Verse.BodyDef::get_AllParts()
IL_107F: ldarg.0
IL_1080: ldfld Verse.<>c__DisplayClass352_3
Verse.<ConfigErrors>d__352::<>8__1
IL_1085: ldftn System.Boolean
Verse.<>c__DisplayClass352_3::<ConfigErrors>b__7(Verse.BodyPartRecord part)
IL_108B: newobj System.Void
System.Predicate`1<Verse.BodyPartRecord>::.ctor(System.Object object, System.IntPtr
method)
IL_1090: call static System.Boolean
Verse.GenCollection::Any(System.Collections.Generic.List`1<Verse.BodyPartRecord>
list, System.Predicate`1<Verse.BodyPartRecord> predicate)
IL_1095: brtrue => Label218
IL_109A: ldarg.0
IL_109B: ldc.i4.5
IL_109C: newarr System.Object
IL_10A1: dup
IL_10A2: ldc.i4.0
IL_10A3: ldstr "has tool with linkedBodyPartsGroup "
IL_10A8: stelem.ref
IL_10A9: dup
IL_10AA: ldc.i4.1
IL_10AB: ldloc.2
IL_10AC: ldfld System.Collections.Generic.List`1<Verse.Tool>
Verse.ThingDef::tools
IL_10B1: ldarg.0
IL_10B2: ldfld Verse.<>c__DisplayClass352_3
Verse.<ConfigErrors>d__352::<>8__1
IL_10B7: ldfld System.Int32 Verse.<>c__DisplayClass352_3::i
IL_10BC: callvirt virtual Verse.Tool
System.Collections.Generic.List`1<Verse.Tool>::get_Item(System.Int32 index)
IL_10C1: ldfld Verse.BodyPartGroupDef Verse.Tool::linkedBodyPartsGroup
IL_10C6: stelem.ref
IL_10C7: dup
IL_10C8: ldc.i4.2
IL_10C9: ldstr " but body "
IL_10CE: stelem.ref
IL_10CF: dup
IL_10D0: ldc.i4.3
IL_10D1: ldloc.2
IL_10D2: ldfld Verse.RaceProperties Verse.ThingDef::race
IL_10D7: ldfld Verse.BodyDef Verse.RaceProperties::body
IL_10DC: stelem.ref
IL_10DD: dup
IL_10DE: ldc.i4.4
IL_10DF: ldstr " has no parts with that group."
IL_10E4: stelem.ref
IL_10E5: call static System.String
System.String::Concat(System.Object[] args)
IL_10EA: stfld System.String Verse.<ConfigErrors>d__352::<>2__current
IL_10EF: ldarg.0
IL_10F0: ldc.i4.s 43
IL_10F2: stfld System.Int32 Verse.<ConfigErrors>d__352::<>1__state
IL_10F7: ldc.i4.1
IL_10F8: stloc.0
IL_10F9: leave => Label219
IL_10FE: Label43
IL_10FE: ldarg.0
IL_10FF: ldc.i4.m1
IL_1100: stfld System.Int32 Verse.<ConfigErrors>d__352::<>1__state
IL_1105: Label217
IL_1105: Label218
IL_1105: ldarg.0
IL_1106: ldfld Verse.<>c__DisplayClass352_3
Verse.<ConfigErrors>d__352::<>8__1
IL_110B: ldfld System.Int32 Verse.<>c__DisplayClass352_3::i
IL_1110: stloc.s 11 (System.Int32)
IL_1112: ldarg.0
IL_1113: ldfld Verse.<>c__DisplayClass352_3
Verse.<ConfigErrors>d__352::<>8__1
IL_1118: ldloc.s 11 (System.Int32)
IL_111A: ldc.i4.1
IL_111B: add
IL_111C: stfld System.Int32 Verse.<>c__DisplayClass352_3::i
IL_1121: Label216
IL_1121: ldarg.0
IL_1122: ldfld Verse.<>c__DisplayClass352_3
Verse.<ConfigErrors>d__352::<>8__1
IL_1127: ldfld System.Int32 Verse.<>c__DisplayClass352_3::i
IL_112C: ldloc.2
IL_112D: ldfld System.Collections.Generic.List`1<Verse.Tool>
Verse.ThingDef::tools
IL_1132: callvirt virtual System.Int32
System.Collections.Generic.List`1<Verse.Tool>::get_Count()
IL_1137: blt => Label220
IL_113C: ldarg.0
IL_113D: ldnull
IL_113E: stfld Verse.<>c__DisplayClass352_3
Verse.<ConfigErrors>d__352::<>8__1
IL_1143: Label209
IL_1143: Label213
IL_1143: Label214
IL_1143: Label215
IL_1143: ldloc.2
IL_1144: ldfld RimWorld.IngestibleProperties Verse.ThingDef::ingestible
IL_1149: brfalse => Label221
IL_114E: ldarg.0
IL_114F: ldloc.2
IL_1150: ldfld RimWorld.IngestibleProperties Verse.ThingDef::ingestible
IL_1155: callvirt System.Collections.Generic.IEnumerable`1<System.String>
RimWorld.IngestibleProperties::ConfigErrors()
IL_115A: callvirt abstract virtual
System.Collections.Generic.IEnumerator`1<System.String>
System.Collections.Generic.IEnumerable`1<System.String>::GetEnumerator()
IL_115F: stfld System.Collections.Generic.IEnumerator`1<System.String>
Verse.<ConfigErrors>d__352::<>7__wrap1
IL_1164: ldarg.0
IL_1165: ldc.i4.s -14
IL_1167: stfld System.Int32 Verse.<ConfigErrors>d__352::<>1__state
IL_116C: br => Label222
IL_1171: Label224
IL_1171: ldarg.0
IL_1172: ldfld System.Collections.Generic.IEnumerator`1<System.String>
Verse.<ConfigErrors>d__352::<>7__wrap1
IL_1177: callvirt abstract virtual System.String
System.Collections.Generic.IEnumerator`1<System.String>::get_Current()
IL_117C: stloc.s 16 (System.String)
IL_117E: ldarg.0
IL_117F: ldloc.s 16 (System.String)
IL_1181: stfld System.String Verse.<ConfigErrors>d__352::<>2__current
IL_1186: ldarg.0
IL_1187: ldc.i4.s 44
IL_1189: stfld System.Int32 Verse.<ConfigErrors>d__352::<>1__state
IL_118E: ldc.i4.1
IL_118F: stloc.0
IL_1190: leave => Label223
IL_1195: Label44
IL_1195: ldarg.0
IL_1196: ldc.i4.s -14
IL_1198: stfld System.Int32 Verse.<ConfigErrors>d__352::<>1__state
IL_119D: Label222
IL_119D: ldarg.0
IL_119E: ldfld System.Collections.Generic.IEnumerator`1<System.String>
Verse.<ConfigErrors>d__352::<>7__wrap1
IL_11A3: callvirt abstract virtual System.Boolean
System.Collections.IEnumerator::MoveNext()
IL_11A8: brtrue => Label224
IL_11AD: ldarg.0
IL_11AE: call System.Void Verse.<ConfigErrors>d__352::<>m__Finally12()
IL_11B3: ldarg.0
IL_11B4: ldnull
IL_11B5: stfld System.Collections.Generic.IEnumerator`1<System.String>
Verse.<ConfigErrors>d__352::<>7__wrap1
IL_11BA: Label221
IL_11BA: ldloc.2
IL_11BB: ldfld RimWorld.PlantProperties Verse.ThingDef::plant
IL_11C0: brfalse => Label225
IL_11C5: ldarg.0
IL_11C6: ldloc.2
IL_11C7: ldfld RimWorld.PlantProperties Verse.ThingDef::plant
IL_11CC: callvirt System.Collections.Generic.IEnumerable`1<System.String>
RimWorld.PlantProperties::ConfigErrors()
IL_11D1: callvirt abstract virtual
System.Collections.Generic.IEnumerator`1<System.String>
System.Collections.Generic.IEnumerable`1<System.String>::GetEnumerator()
IL_11D6: stfld System.Collections.Generic.IEnumerator`1<System.String>
Verse.<ConfigErrors>d__352::<>7__wrap1
IL_11DB: ldarg.0
IL_11DC: ldc.i4.s -15
IL_11DE: stfld System.Int32 Verse.<ConfigErrors>d__352::<>1__state
IL_11E3: br => Label226
IL_11E8: Label228
IL_11E8: ldarg.0
IL_11E9: ldfld System.Collections.Generic.IEnumerator`1<System.String>
Verse.<ConfigErrors>d__352::<>7__wrap1
IL_11EE: callvirt abstract virtual System.String
System.Collections.Generic.IEnumerator`1<System.String>::get_Current()
IL_11F3: stloc.s 17 (System.String)
IL_11F5: ldarg.0
IL_11F6: ldloc.s 17 (System.String)
IL_11F8: stfld System.String Verse.<ConfigErrors>d__352::<>2__current
IL_11FD: ldarg.0
IL_11FE: ldc.i4.s 45
IL_1200: stfld System.Int32 Verse.<ConfigErrors>d__352::<>1__state
IL_1205: ldc.i4.1
IL_1206: stloc.0
IL_1207: leave => Label227
IL_120C: Label45
IL_120C: ldarg.0
IL_120D: ldc.i4.s -15
IL_120F: stfld System.Int32 Verse.<ConfigErrors>d__352::<>1__state
IL_1214: Label226
IL_1214: ldarg.0
IL_1215: ldfld System.Collections.Generic.IEnumerator`1<System.String>
Verse.<ConfigErrors>d__352::<>7__wrap1
IL_121A: callvirt abstract virtual System.Boolean
System.Collections.IEnumerator::MoveNext()
IL_121F: brtrue => Label228
IL_1224: ldarg.0
IL_1225: call System.Void Verse.<ConfigErrors>d__352::<>m__Finally13()
IL_122A: ldarg.0
IL_122B: ldnull
IL_122C: stfld System.Collections.Generic.IEnumerator`1<System.String>
Verse.<ConfigErrors>d__352::<>7__wrap1
IL_1231: Label225
IL_1231: ldloc.2
IL_1232: ldfld System.Collections.Generic.List`1<Verse.Tool>
Verse.ThingDef::tools
IL_1237: brfalse => Label229
IL_123C: ldloc.2
IL_123D: ldfld System.Collections.Generic.List`1<Verse.Tool>
Verse.ThingDef::tools
IL_1242: ldloc.2
IL_1243: ldftn System.Collections.Generic.IEnumerable`1<Verse.Tool>
Verse.ThingDef::<ConfigErrors>b__352_8(Verse.Tool lhs)
IL_1249: newobj System.Void System.Func`2<Verse.Tool,
System.Collections.Generic.IEnumerable`1<Verse.Tool>>::.ctor(System.Object object,
System.IntPtr method)
IL_124E: call static
System.Collections.Generic.IEnumerable`1<Verse.Tool>
System.Linq.Enumerable::SelectMany(System.Collections.Generic.IEnumerable`1<Verse.T
ool> source, System.Func`2<Verse.Tool,
System.Collections.Generic.IEnumerable`1<Verse.Tool>> selector)
IL_1253: call static Verse.Tool
System.Linq.Enumerable::FirstOrDefault(System.Collections.Generic.IEnumerable`1<Ver
se.Tool> source)
IL_1258: stloc.s 18 (Verse.Tool)
IL_125A: ldloc.s 18 (Verse.Tool)
IL_125C: brfalse => Label230
IL_1261: ldarg.0
IL_1262: ldstr "duplicate thingdef tool id {0}"
IL_1267: ldloc.s 18 (Verse.Tool)
IL_1269: ldfld System.String Verse.Tool::id
IL_126E: call static System.String System.String::Format(System.String
format, System.Object arg0)
IL_1273: stfld System.String Verse.<ConfigErrors>d__352::<>2__current
IL_1278: ldarg.0
IL_1279: ldc.i4.s 46
IL_127B: stfld System.Int32 Verse.<ConfigErrors>d__352::<>1__state
IL_1280: ldc.i4.1
IL_1281: stloc.0
IL_1282: leave => Label231
IL_1287: Label46
IL_1287: ldarg.0
IL_1288: ldc.i4.m1
IL_1289: stfld System.Int32 Verse.<ConfigErrors>d__352::<>1__state
IL_128E: Label230
IL_128E: ldarg.0
IL_128F: ldloc.2
IL_1290: ldfld System.Collections.Generic.List`1<Verse.Tool>
Verse.ThingDef::tools
IL_1295: callvirt System.Collections.Generic.Enumerator<Verse.Tool>
System.Collections.Generic.List`1<Verse.Tool>::GetEnumerator()
IL_129A: stfld System.Collections.Generic.Enumerator<Verse.Tool>
Verse.<ConfigErrors>d__352::<>7__wrap6
IL_129F: ldarg.0
IL_12A0: ldc.i4.s -16
IL_12A2: stfld System.Int32 Verse.<ConfigErrors>d__352::<>1__state
IL_12A7: br => Label232
IL_12AC: Label236
IL_12AC: ldarg.0
IL_12AD: ldflda System.Collections.Generic.Enumerator<Verse.Tool>
Verse.<ConfigErrors>d__352::<>7__wrap6
IL_12B2: call virtual Verse.Tool
System.Collections.Generic.Enumerator<Verse.Tool>::get_Current()
IL_12B7: stloc.s 19 (Verse.Tool)
IL_12B9: ldarg.0
IL_12BA: ldloc.s 19 (Verse.Tool)
IL_12BC: callvirt System.Collections.Generic.IEnumerable`1<System.String>
Verse.Tool::ConfigErrors()
IL_12C1: callvirt abstract virtual
System.Collections.Generic.IEnumerator`1<System.String>
System.Collections.Generic.IEnumerable`1<System.String>::GetEnumerator()
IL_12C6: stfld System.Collections.Generic.IEnumerator`1<System.String>
Verse.<ConfigErrors>d__352::<>7__wrap1
IL_12CB: ldarg.0
IL_12CC: ldc.i4.s -17
IL_12CE: stfld System.Int32 Verse.<ConfigErrors>d__352::<>1__state
IL_12D3: br => Label233
IL_12D8: Label235
IL_12D8: ldarg.0
IL_12D9: ldfld System.Collections.Generic.IEnumerator`1<System.String>
Verse.<ConfigErrors>d__352::<>7__wrap1
IL_12DE: callvirt abstract virtual System.String
System.Collections.Generic.IEnumerator`1<System.String>::get_Current()
IL_12E3: stloc.s 20 (System.String)
IL_12E5: ldarg.0
IL_12E6: ldloc.s 20 (System.String)
IL_12E8: stfld System.String Verse.<ConfigErrors>d__352::<>2__current
IL_12ED: ldarg.0
IL_12EE: ldc.i4.s 47
IL_12F0: stfld System.Int32 Verse.<ConfigErrors>d__352::<>1__state
IL_12F5: ldc.i4.1
IL_12F6: stloc.0
IL_12F7: leave => Label234
IL_12FC: Label47
IL_12FC: ldarg.0
IL_12FD: ldc.i4.s -17
IL_12FF: stfld System.Int32 Verse.<ConfigErrors>d__352::<>1__state
IL_1304: Label233
IL_1304: ldarg.0
IL_1305: ldfld System.Collections.Generic.IEnumerator`1<System.String>
Verse.<ConfigErrors>d__352::<>7__wrap1
IL_130A: callvirt abstract virtual System.Boolean
System.Collections.IEnumerator::MoveNext()
IL_130F: brtrue => Label235
IL_1314: ldarg.0
IL_1315: call System.Void Verse.<ConfigErrors>d__352::<>m__Finally15()
IL_131A: ldarg.0
IL_131B: ldnull
IL_131C: stfld System.Collections.Generic.IEnumerator`1<System.String>
Verse.<ConfigErrors>d__352::<>7__wrap1
IL_1321: Label232
IL_1321: ldarg.0
IL_1322: ldflda System.Collections.Generic.Enumerator<Verse.Tool>
Verse.<ConfigErrors>d__352::<>7__wrap6
IL_1327: call virtual System.Boolean
System.Collections.Generic.Enumerator<Verse.Tool>::MoveNext()
IL_132C: brtrue => Label236
IL_1331: ldarg.0
IL_1332: call System.Void Verse.<ConfigErrors>d__352::<>m__Finally14()
IL_1337: ldarg.0
IL_1338: ldflda System.Collections.Generic.Enumerator<Verse.Tool>
Verse.<ConfigErrors>d__352::<>7__wrap6
IL_133D: initobj System.Collections.Generic.List`1+Enumerator[Verse.Tool]
IL_1343: Label229
IL_1343: ldloc.2
IL_1344: ldfld System.Collections.Generic.List`1<Verse.ThingStyleChance>
Verse.ThingDef::randomStyle
IL_1349: call static System.Boolean
Verse.GenList::NullOrEmpty(System.Collections.Generic.IList`1<Verse.ThingStyleChanc
e> list)
IL_134E: brtrue => Label237
IL_1353: ldarg.0
IL_1354: ldloc.2
IL_1355: ldfld System.Collections.Generic.List`1<Verse.ThingStyleChance>
Verse.ThingDef::randomStyle
IL_135A: callvirt
System.Collections.Generic.Enumerator<Verse.ThingStyleChance>
System.Collections.Generic.List`1<Verse.ThingStyleChance>::GetEnumerator()
IL_135F: stfld
System.Collections.Generic.Enumerator<Verse.ThingStyleChance>
Verse.<ConfigErrors>d__352::<>7__wrap7
IL_1364: ldarg.0
IL_1365: ldc.i4.s -18
IL_1367: stfld System.Int32 Verse.<ConfigErrors>d__352::<>1__state
IL_136C: br => Label238
IL_1371: Label241
IL_1371: ldarg.0
IL_1372: ldflda
System.Collections.Generic.Enumerator<Verse.ThingStyleChance>
Verse.<ConfigErrors>d__352::<>7__wrap7
IL_1377: call virtual Verse.ThingStyleChance
System.Collections.Generic.Enumerator<Verse.ThingStyleChance>::get_Current()
IL_137C: callvirt System.Single Verse.ThingStyleChance::get_Chance()
IL_1381: ldc.r4 0
IL_1386: bgt.un => Label239
IL_138B: ldarg.0
IL_138C: ldstr "style chance <= 0."
IL_1391: stfld System.String Verse.<ConfigErrors>d__352::<>2__current
IL_1396: ldarg.0
IL_1397: ldc.i4.s 48
IL_1399: stfld System.Int32 Verse.<ConfigErrors>d__352::<>1__state
IL_139E: ldc.i4.1
IL_139F: stloc.0
IL_13A0: leave => Label240
IL_13A5: Label48
IL_13A5: ldarg.0
IL_13A6: ldc.i4.s -18
IL_13A8: stfld System.Int32 Verse.<ConfigErrors>d__352::<>1__state
IL_13AD: Label238
IL_13AD: Label239
IL_13AD: ldarg.0
IL_13AE: ldflda
System.Collections.Generic.Enumerator<Verse.ThingStyleChance>
Verse.<ConfigErrors>d__352::<>7__wrap7
IL_13B3: call virtual System.Boolean
System.Collections.Generic.Enumerator<Verse.ThingStyleChance>::MoveNext()
IL_13B8: brtrue => Label241
IL_13BD: ldarg.0
IL_13BE: call System.Void Verse.<ConfigErrors>d__352::<>m__Finally16()
IL_13C3: ldarg.0
IL_13C4: ldflda
System.Collections.Generic.Enumerator<Verse.ThingStyleChance>
Verse.<ConfigErrors>d__352::<>7__wrap7
IL_13C9: initobj
System.Collections.Generic.List`1+Enumerator[Verse.ThingStyleChance]
IL_13CF: ldloc.2
IL_13D0: ldfld System.Collections.Generic.List`1<Verse.CompProperties>
Verse.ThingDef::comps
IL_13D5: ldsfld System.Predicate`1<Verse.CompProperties>
Verse.<>c::<>9__352_2
IL_13DA: dup
IL_13DB: brtrue => Label242
IL_13E0: pop
IL_13E1: ldsfld Verse.<>c Verse.<>c::<>9
IL_13E6: ldftn System.Boolean
Verse.<>c::<ConfigErrors>b__352_2(Verse.CompProperties c)
IL_13EC: newobj System.Void
System.Predicate`1<Verse.CompProperties>::.ctor(System.Object object, System.IntPtr
method)
IL_13F1: dup
IL_13F2: stsfld System.Predicate`1<Verse.CompProperties>
Verse.<>c::<>9__352_2
IL_13F7: Label242
IL_13F7: call static System.Boolean
Verse.GenCollection::Any(System.Collections.Generic.List`1<Verse.CompProperties>
list, System.Predicate`1<Verse.CompProperties> predicate)
IL_13FC: brtrue => Label243
IL_1401: ldarg.0
IL_1402: ldstr "random style assigned, but missing CompStyleable!"
IL_1407: stfld System.String Verse.<ConfigErrors>d__352::<>2__current
IL_140C: ldarg.0
IL_140D: ldc.i4.s 49
IL_140F: stfld System.Int32 Verse.<ConfigErrors>d__352::<>1__state
IL_1414: ldc.i4.1
IL_1415: stloc.0
IL_1416: leave => Label244
IL_141B: Label49
IL_141B: ldarg.0
IL_141C: ldc.i4.m1
IL_141D: stfld System.Int32 Verse.<ConfigErrors>d__352::<>1__state
IL_1422: Label237
IL_1422: Label243
IL_1422: ldloc.2
IL_1423: ldfld System.Single Verse.ThingDef::relicChance
IL_1428: ldc.r4 0
IL_142D: ble.un => Label245
IL_1432: ldloc.2
IL_1433: ldfld Verse.ThingCategory Verse.ThingDef::category
IL_1438: ldc.i4.2
IL_1439: beq => Label246
IL_143E: ldarg.0
IL_143F: ldstr "relic chance > 0 but category != item"
IL_1444: stfld System.String Verse.<ConfigErrors>d__352::<>2__current
IL_1449: ldarg.0
IL_144A: ldc.i4.s 50
IL_144C: stfld System.Int32 Verse.<ConfigErrors>d__352::<>1__state
IL_1451: ldc.i4.1
IL_1452: stloc.0
IL_1453: leave => Label247
IL_1458: Label50
IL_1458: ldarg.0
IL_1459: ldc.i4.m1
IL_145A: stfld System.Int32 Verse.<ConfigErrors>d__352::<>1__state
IL_145F: Label245
IL_145F: Label246
IL_145F: ldloc.2
IL_1460: ldfld System.Boolean Verse.ThingDef::hasInteractionCell
IL_1465: brfalse => Label248
IL_146A: ldloc.2
IL_146B: ldfld System.Collections.Generic.List`1<Verse.IntVec3>
Verse.ThingDef::multipleInteractionCellOffsets
IL_1470: call static System.Boolean
Verse.GenList::NullOrEmpty(System.Collections.Generic.IList`1<Verse.IntVec3> list)
IL_1475: brtrue => Label249
IL_147A: ldarg.0
IL_147B: ldstr "both single and multiple interaction cells are defined,
it should be one or the other"
IL_1480: stfld System.String Verse.<ConfigErrors>d__352::<>2__current
IL_1485: ldarg.0
IL_1486: ldc.i4.s 51
IL_1488: stfld System.Int32 Verse.<ConfigErrors>d__352::<>1__state
IL_148D: ldc.i4.1
IL_148E: stloc.0
IL_148F: leave => Label250
IL_1494: Label51
IL_1494: ldarg.0
IL_1495: ldc.i4.m1
IL_1496: stfld System.Int32 Verse.<ConfigErrors>d__352::<>1__state
IL_149B: Label248
IL_149B: Label249
IL_149B: ldc.i4.0
IL_149C: stloc.0
IL_149D: leave => Label251
IL_14A2: leave => (autogenerated)
} // end try
.fault
{
IL_14A7: ldarg.0
IL_14A8: call virtual System.Void
Verse.<ConfigErrors>d__352::System.IDisposable.Dispose()
IL_14AD: endfinally
IL_14AE: leave => (autogenerated)
} // end handler
IL_14B3: Label52
IL_14B3: Label54
IL_14B3: Label58
IL_14B3: Label61
IL_14B3: Label65
IL_14B3: Label70
IL_14B3: Label74
IL_14B3: Label77
IL_14B3: Label79
IL_14B3: Label81
IL_14B3: Label84
IL_14B3: Label88
IL_14B3: Label92
IL_14B3: Label96
IL_14B3: Label99
IL_14B3: Label103
IL_14B3: Label106
IL_14B3: Label109
IL_14B3: Label112
IL_14B3: Label115
IL_14B3: Label119
IL_14B3: Label124
IL_14B3: Label127
IL_14B3: Label130
IL_14B3: Label134
IL_14B3: Label138
IL_14B3: Label141
IL_14B3: Label148
IL_14B3: Label152
IL_14B3: Label155
IL_14B3: Label159
IL_14B3: Label168
IL_14B3: Label171
IL_14B3: Label176
IL_14B3: Label180
IL_14B3: Label183
IL_14B3: Label185
IL_14B3: Label188
IL_14B3: Label192
IL_14B3: Label197
IL_14B3: Label201
IL_14B3: Label206
IL_14B3: Label211
IL_14B3: Label219
IL_14B3: Label223
IL_14B3: Label227
IL_14B3: Label231
IL_14B3: Label234
IL_14B3: Label240
IL_14B3: Label244
IL_14B3: Label247
IL_14B3: Label250
IL_14B3: Label251
IL_14B3: ldloc.0
IL_14B4: // end original
IL_14B4: ret
DONE

### Patch: virtual Verse.BodyDef Verse.BattleLogEntry_DamageTaken::DamagedBody()


### Replacement: static Verse.BodyDef
Verse.BattleLogEntry_DamageTaken::Verse.BattleLogEntry_DamageTaken.DamagedBody_Patc
h0(Verse.BattleLogEntry_DamageTaken this)
IL_0000: // start original
IL_0000: ldarg.0
IL_0001: ldfld Verse.Pawn Verse.BattleLogEntry_DamageTaken::recipientPawn
IL_0006: brtrue => Label0
IL_000B: ldnull
IL_000C: br => Label1
IL_0011: Label0
IL_0011: ldarg.0
IL_0012: ldfld Verse.Pawn Verse.BattleLogEntry_DamageTaken::recipientPawn
IL_0017: call static Verse.BodyDef
AlienRace.HarmonyPatches::ReplacedBody(Verse.Pawn pawn)
IL_001C: // end original
IL_001C: Label1
IL_001C: ret
DONE

### Patch: virtual Verse.BodyDef


Verse.BattleLogEntry_ExplosionImpact::DamagedBody()
### Replacement: static Verse.BodyDef
Verse.BattleLogEntry_ExplosionImpact::Verse.BattleLogEntry_ExplosionImpact.DamagedB
ody_Patch0(Verse.BattleLogEntry_ExplosionImpact this)
IL_0000: // start original
IL_0000: ldarg.0
IL_0001: ldfld Verse.Pawn Verse.BattleLogEntry_ExplosionImpact::recipientPawn
IL_0006: brtrue => Label0
IL_000B: ldnull
IL_000C: br => Label1
IL_0011: Label0
IL_0011: ldarg.0
IL_0012: ldfld Verse.Pawn Verse.BattleLogEntry_ExplosionImpact::recipientPawn
IL_0017: call static Verse.BodyDef
AlienRace.HarmonyPatches::ReplacedBody(Verse.Pawn pawn)
IL_001C: // end original
IL_001C: Label1
IL_001C: ret
DONE

### Patch: virtual Verse.BodyDef Verse.BattleLogEntry_MeleeCombat::DamagedBody()


### Replacement: static Verse.BodyDef
Verse.BattleLogEntry_MeleeCombat::Verse.BattleLogEntry_MeleeCombat.DamagedBody_Patc
h0(Verse.BattleLogEntry_MeleeCombat this)
IL_0000: // start original
IL_0000: ldarg.0
IL_0001: ldfld Verse.Pawn Verse.BattleLogEntry_MeleeCombat::recipientPawn
IL_0006: brtrue => Label0
IL_000B: ldnull
IL_000C: br => Label1
IL_0011: Label0
IL_0011: ldarg.0
IL_0012: ldfld Verse.Pawn Verse.BattleLogEntry_MeleeCombat::recipientPawn
IL_0017: call static Verse.BodyDef
AlienRace.HarmonyPatches::ReplacedBody(Verse.Pawn pawn)
IL_001C: // end original
IL_001C: Label1
IL_001C: ret
DONE

### Patch: virtual Verse.BodyDef Verse.BattleLogEntry_RangedImpact::DamagedBody()


### Replacement: static Verse.BodyDef
Verse.BattleLogEntry_RangedImpact::Verse.BattleLogEntry_RangedImpact.DamagedBody_Pa
tch0(Verse.BattleLogEntry_RangedImpact this)
IL_0000: // start original
IL_0000: ldarg.0
IL_0001: ldfld Verse.Pawn Verse.BattleLogEntry_RangedImpact::recipientPawn
IL_0006: brtrue => Label0
IL_000B: ldnull
IL_000C: br => Label1
IL_0011: Label0
IL_0011: ldarg.0
IL_0012: ldfld Verse.Pawn Verse.BattleLogEntry_RangedImpact::recipientPawn
IL_0017: call static Verse.BodyDef
AlienRace.HarmonyPatches::ReplacedBody(Verse.Pawn pawn)
IL_001C: // end original
IL_001C: Label1
IL_001C: ret
DONE

### Patch: System.Void Verse.PawnRenderer::DrawHeadHair(UnityEngine.Vector3


rootLoc, UnityEngine.Vector3 headOffset, System.Single angle, Verse.Rot4
bodyFacing, Verse.Rot4 headFacing, Verse.RotDrawMode bodyDrawType,
Verse.PawnRenderFlags flags, System.Boolean bodyDrawn)
### Replacement: static System.Void
Verse.PawnRenderer::Verse.PawnRenderer.DrawHeadHair_Patch0(Verse.PawnRenderer this,
UnityEngine.Vector3 rootLoc, UnityEngine.Vector3 headOffset, System.Single angle,
Verse.Rot4 bodyFacing, Verse.Rot4 headFacing, Verse.RotDrawMode bodyDrawType,
Verse.PawnRenderFlags flags, System.Boolean bodyDrawn)
IL_0000: Local var 0: Verse.PawnRenderer/<>c__DisplayClass54_0
IL_0000: Local var 1:
System.Collections.Generic.List`1<RimWorld.ApparelGraphicRecord>
IL_0000: Local var 2: System.Boolean
IL_0000: Local var 3: System.Boolean
IL_0000: Local var 4: System.Boolean
IL_0000: Local var 5: System.Boolean
IL_0000: Local var 6: System.Boolean
IL_0000: Local var 7: System.Int32
IL_0000: Local var 8: UnityEngine.Vector3
IL_0000: Local var 9: System.Collections.Generic.List`1/Enumerator<Verse.Hediff>
IL_0000: Local var 10: Verse.Hediff
IL_0000: Local var 11: Verse.GraphicData
IL_0000: Local var 12: System.Boolean
IL_0000: Local var 13: UnityEngine.Vector3
IL_0000: Local var 14: UnityEngine.Mesh
IL_0000: Local var 15: UnityEngine.Material
IL_0000: Local var 16: System.Int32
IL_0000: Local var 17: UnityEngine.Mesh
IL_0000: Local var 18: UnityEngine.Material
IL_0000: Local var 19: System.Int32
IL_0000: // start original
IL_0000: newobj System.Void Verse.<>c__DisplayClass54_0::.ctor()
IL_0005: stloc.0
IL_0006: ldloc.0
IL_0007: ldarg.0
IL_0008: stfld Verse.PawnRenderer Verse.<>c__DisplayClass54_0::<>4__this
IL_000D: ldloc.0
IL_000E: ldarg.s 5
IL_0010: stfld Verse.Rot4 Verse.<>c__DisplayClass54_0::headFacing
IL_0015: ldloc.0
IL_0016: ldarg.s 4
IL_0018: stfld Verse.Rot4 Verse.<>c__DisplayClass54_0::bodyFacing
IL_001D: ldloc.0
IL_001E: ldarg.s 7
IL_0020: stfld Verse.PawnRenderFlags Verse.<>c__DisplayClass54_0::flags
IL_0025: ldloc.0
IL_0026: ldarg.1
IL_0027: stfld UnityEngine.Vector3 Verse.<>c__DisplayClass54_0::rootLoc
IL_002C: ldloc.0
IL_002D: ldarg.2
IL_002E: stfld UnityEngine.Vector3 Verse.<>c__DisplayClass54_0::headOffset
IL_0033: ldloc.0
IL_0034: ldarg.s 6
IL_0036: stfld Verse.RotDrawMode Verse.<>c__DisplayClass54_0::bodyDrawType
IL_003B: ldarg.0
IL_003C: ldloc.0
IL_003D: ldfld Verse.PawnRenderFlags Verse.<>c__DisplayClass54_0::flags
IL_0042: call System.Boolean
Verse.PawnRenderer::ShellFullyCoversHead(Verse.PawnRenderFlags flags)
IL_0047: ldarg.s 8
IL_0049: and
IL_004A: brfalse => Label0
IL_004F: br => Label78
IL_0054: Label0
IL_0054: ldloc.0
IL_0055: ldloc.0
IL_0056: ldfld UnityEngine.Vector3 Verse.<>c__DisplayClass54_0::rootLoc
IL_005B: ldloc.0
IL_005C: ldfld UnityEngine.Vector3 Verse.<>c__DisplayClass54_0::headOffset
IL_0061: call static UnityEngine.Vector3
UnityEngine.Vector3::op_Addition(UnityEngine.Vector3 a, UnityEngine.Vector3 b)
IL_0066: stfld UnityEngine.Vector3 Verse.<>c__DisplayClass54_0::onHeadLoc
IL_006B: ldloc.0
IL_006C: ldflda UnityEngine.Vector3 Verse.<>c__DisplayClass54_0::onHeadLoc
IL_0071: ldflda System.Single UnityEngine.Vector3::y
IL_0076: dup
IL_0077: ldind.r4
IL_0078: ldc.r4 0.02895753
IL_007D: add
IL_007E: stind.r4
IL_007F: ldarg.0
IL_0080: ldfld Verse.PawnGraphicSet Verse.PawnRenderer::graphics
IL_0085: ldfld
System.Collections.Generic.List`1<RimWorld.ApparelGraphicRecord>
Verse.PawnGraphicSet::apparelGraphics
IL_008A: stloc.1
IL_008B: ldloc.0
IL_008C: ldarg.0
IL_008D: ldfld Verse.PawnGraphicSet Verse.PawnRenderer::graphics
IL_0092: ldfld System.Collections.Generic.List`1<Verse.GeneGraphicRecord>
Verse.PawnGraphicSet::geneGraphics
IL_0097: stfld System.Collections.Generic.List`1<Verse.GeneGraphicRecord>
Verse.<>c__DisplayClass54_0::geneGraphics
IL_009C: ldloc.0
IL_009D: ldarg.3
IL_009E: call static UnityEngine.Vector3 UnityEngine.Vector3::get_up()
IL_00A3: call static UnityEngine.Quaternion
UnityEngine.Quaternion::AngleAxis(System.Single angle, UnityEngine.Vector3 axis)
IL_00A8: stfld UnityEngine.Quaternion Verse.<>c__DisplayClass54_0::quat
IL_00AD: ldarg.0
IL_00AE: ldfld Verse.Pawn Verse.PawnRenderer::pawn
IL_00B3: callvirt Verse.DevelopmentalStage Verse.Pawn::get_DevelopmentalStage()
IL_00B8: call static System.Boolean
Verse.DevelopmentalStageExtensions::Baby(Verse.DevelopmentalStage
developmentalStage)
IL_00BD: brtrue => Label1
IL_00C2: ldloc.0
IL_00C3: ldfld Verse.RotDrawMode Verse.<>c__DisplayClass54_0::bodyDrawType
IL_00C8: ldc.i4.2
IL_00C9: beq => Label2
IL_00CE: ldloc.0
IL_00CF: ldfld Verse.PawnRenderFlags Verse.<>c__DisplayClass54_0::flags
IL_00D4: ldc.i4.2
IL_00D5: call static System.Boolean
Verse.PawnRenderFlagsExtension::FlagSet(Verse.PawnRenderFlags flags,
Verse.PawnRenderFlags flag)
IL_00DA: br => Label3
IL_00DF: Label1
IL_00DF: Label2
IL_00DF: ldc.i4.1
IL_00E0: Label3
IL_00E0: dup
IL_00E1: brfalse => Label4
IL_00E6: ldarg.0
IL_00E7: ldfld Verse.Pawn Verse.PawnRenderer::pawn
IL_00EC: ldfld RimWorld.Pawn_StoryTracker Verse.Pawn::story
IL_00F1: dup
IL_00F2: brtrue => Label5
IL_00F7: pop
IL_00F8: ldnull
IL_00F9: br => Label6
IL_00FE: Label5
IL_00FE: ldfld RimWorld.HairDef RimWorld.Pawn_StoryTracker::hairDef
IL_0103: Label6
IL_0103: brfalse => Label7
IL_0108: ldarg.0
IL_0109: ldfld Verse.Pawn Verse.PawnRenderer::pawn
IL_010E: ldfld RimWorld.Pawn_StoryTracker Verse.Pawn::story
IL_0113: ldfld RimWorld.HairDef RimWorld.Pawn_StoryTracker::hairDef
IL_0118: ldfld System.Boolean RimWorld.StyleItemDef::noGraphic
IL_011D: br => Label8
IL_0122: Label4
IL_0122: Label7
IL_0122: ldc.i4.1
IL_0123: Label8
IL_0123: stloc.2
IL_0124: brtrue => Label9
IL_0129: ldloc.0
IL_012A: ldfld Verse.Rot4 Verse.<>c__DisplayClass54_0::bodyFacing
IL_012F: ldsfld Verse.Rot4 Verse.Rot4::North
IL_0134: call static System.Boolean Verse.Rot4::op_Inequality(Verse.Rot4 a,
Verse.Rot4 b)
IL_0139: brfalse => Label10
IL_013E: ldarg.0
IL_013F: ldfld Verse.Pawn Verse.PawnRenderer::pawn
IL_0144: callvirt Verse.DevelopmentalStage Verse.Pawn::get_DevelopmentalStage()
IL_0149: call static System.Boolean
Verse.DevelopmentalStageExtensions::Adult(Verse.DevelopmentalStage
developmentalStage)
IL_014E: brfalse => Label11
IL_0153: ldarg.0
IL_0154: ldfld Verse.Pawn Verse.PawnRenderer::pawn
IL_0159: ldfld RimWorld.Pawn_StyleTracker Verse.Pawn::style
IL_015E: dup
IL_015F: brtrue => Label12
IL_0164: pop
IL_0165: ldnull
IL_0166: br => Label13
IL_016B: Label12
IL_016B: ldfld RimWorld.BeardDef RimWorld.Pawn_StyleTracker::beardDef
IL_0170: Label13
IL_0170: dup
IL_0171: brtrue => Label14
IL_0176: pop
IL_0177: ldsfld RimWorld.BeardDef RimWorld.BeardDefOf::NoBeard
IL_017C: Label14
IL_017C: ldsfld RimWorld.BeardDef RimWorld.BeardDefOf::NoBeard
IL_0181: ceq
IL_0183: ldc.i4.0
IL_0184: ceq
IL_0186: br => Label15
IL_018B: Label9
IL_018B: Label10
IL_018B: Label11
IL_018B: ldc.i4.0
IL_018C: Label15
IL_018C: stloc.3
IL_018D: ldloc.0
IL_018E: ldc.i4.0
IL_018F: stfld System.Boolean Verse.<>c__DisplayClass54_0::allFaceCovered
IL_0194: ldloc.0
IL_0195: ldc.i4.1
IL_0196: stfld System.Boolean Verse.<>c__DisplayClass54_0::drawEyes
IL_019B: ldloc.0
IL_019C: ldc.i4.0
IL_019D: stfld System.Boolean Verse.<>c__DisplayClass54_0::middleFaceCovered
IL_01A2: ldarg.0
IL_01A3: ldfld Verse.Pawn Verse.PawnRenderer::pawn
IL_01A8: call static RimWorld.Building_Bed
RimWorld.RestUtility::CurrentBed(Verse.Pawn p)
IL_01AD: brfalse => Label16
IL_01B2: ldarg.0
IL_01B3: ldfld Verse.Pawn Verse.PawnRenderer::pawn
IL_01B8: call static RimWorld.Building_Bed
RimWorld.RestUtility::CurrentBed(Verse.Pawn p)
IL_01BD: ldfld Verse.ThingDef Verse.Thing::def
IL_01C2: ldfld RimWorld.BuildingProperties Verse.ThingDef::building
IL_01C7: ldfld System.Boolean RimWorld.BuildingProperties::bed_showSleeperBody
IL_01CC: ldc.i4.0
IL_01CD: ceq
IL_01CF: br => Label17
IL_01D4: Label16
IL_01D4: ldc.i4.0
IL_01D5: Label17
IL_01D5: stloc.s 4 (System.Boolean)
IL_01D7: ldarg.0
IL_01D8: ldfld Verse.Pawn Verse.PawnRenderer::pawn
IL_01DD: ldloca.s 4
IL_01DF: call static System.Void
VFEPirates.HarmonyPatches.PawnRenderer_DrawHeadHair_Patch::ShowHeadGearAlways(Verse
.Pawn pawn, System.Boolean& flag4)
IL_01E4: ldloc.0
IL_01E5: ldfld Verse.PawnRenderFlags Verse.<>c__DisplayClass54_0::flags
IL_01EA: ldc.i4.1
IL_01EB: call static System.Boolean
Verse.PawnRenderFlagsExtension::FlagSet(Verse.PawnRenderFlags flags,
Verse.PawnRenderFlags flag)
IL_01F0: ldc.i4.0
IL_01F1: ceq
IL_01F3: ldloc.s 4 (System.Boolean)
IL_01F5: and
IL_01F6: stloc.s 5 (System.Boolean)
IL_01F8: ldloc.0
IL_01F9: ldfld Verse.PawnRenderFlags Verse.<>c__DisplayClass54_0::flags
IL_01FE: ldc.i4.s 32
IL_0200: call static System.Boolean
Verse.PawnRenderFlagsExtension::FlagSet(Verse.PawnRenderFlags flags,
Verse.PawnRenderFlags flag)
IL_0205: brfalse => Label18
IL_020A: ldloc.0
IL_020B: ldfld Verse.PawnRenderFlags Verse.<>c__DisplayClass54_0::flags
IL_0210: ldc.i4.1
IL_0211: call static System.Boolean
Verse.PawnRenderFlagsExtension::FlagSet(Verse.PawnRenderFlags flags,
Verse.PawnRenderFlags flag)
IL_0216: brfalse => Label19
IL_021B: call static System.Boolean Verse.Prefs::get_HatsOnlyOnMap()
IL_0220: brfalse => Label20
IL_0225: ldloc.0
IL_0226: ldfld Verse.PawnRenderFlags Verse.<>c__DisplayClass54_0::flags
IL_022B: ldc.i4 256
IL_0230: call static System.Boolean
Verse.PawnRenderFlagsExtension::FlagSet(Verse.PawnRenderFlags flags,
Verse.PawnRenderFlags flag)
IL_0235: br => Label21
IL_023A: Label19
IL_023A: Label20
IL_023A: ldc.i4.1
IL_023B: br => Label22
IL_0240: Label18
IL_0240: ldc.i4.0
IL_0241: Label21
IL_0241: Label22
IL_0241: stloc.s 6 (System.Boolean)
IL_0243: ldarg.0
IL_0244: ldfld Verse.BodyPartRecord Verse.PawnRenderer::leftEyeCached
IL_0249: brtrue => Label23
IL_024E: ldarg.0
IL_024F: ldarg.0
IL_0250: ldfld Verse.Pawn Verse.PawnRenderer::pawn
IL_0255: call static Verse.BodyDef
AlienRace.HarmonyPatches::ReplacedBody(Verse.Pawn pawn)
IL_025A: callvirt System.Collections.Generic.List`1<Verse.BodyPartRecord>
Verse.BodyDef::get_AllParts()
IL_025F: ldsfld System.Predicate`1<Verse.BodyPartRecord> Verse.<>c::<>9__54_0
IL_0264: dup
IL_0265: brtrue => Label24
IL_026A: pop
IL_026B: ldsfld Verse.<>c Verse.<>c::<>9
IL_0270: ldftn System.Boolean
Verse.<>c::<DrawHeadHair>b__54_0(Verse.BodyPartRecord p)
IL_0276: newobj System.Void
System.Predicate`1<Verse.BodyPartRecord>::.ctor(System.Object object, System.IntPtr
method)
IL_027B: dup
IL_027C: stsfld System.Predicate`1<Verse.BodyPartRecord> Verse.<>c::<>9__54_0
IL_0281: Label24
IL_0281: call static Verse.BodyPartRecord
Verse.GenCollection::FirstOrDefault(System.Collections.Generic.List`1<Verse.BodyPar
tRecord> list, System.Predicate`1<Verse.BodyPartRecord> predicate)
IL_0286: stfld Verse.BodyPartRecord Verse.PawnRenderer::leftEyeCached
IL_028B: Label23
IL_028B: ldarg.0
IL_028C: ldfld Verse.BodyPartRecord Verse.PawnRenderer::rightEyeCached
IL_0291: brtrue => Label25
IL_0296: ldarg.0
IL_0297: ldarg.0
IL_0298: ldfld Verse.Pawn Verse.PawnRenderer::pawn
IL_029D: call static Verse.BodyDef
AlienRace.HarmonyPatches::ReplacedBody(Verse.Pawn pawn)
IL_02A2: callvirt System.Collections.Generic.List`1<Verse.BodyPartRecord>
Verse.BodyDef::get_AllParts()
IL_02A7: ldsfld System.Predicate`1<Verse.BodyPartRecord> Verse.<>c::<>9__54_1
IL_02AC: dup
IL_02AD: brtrue => Label26
IL_02B2: pop
IL_02B3: ldsfld Verse.<>c Verse.<>c::<>9
IL_02B8: ldftn System.Boolean
Verse.<>c::<DrawHeadHair>b__54_1(Verse.BodyPartRecord p)
IL_02BE: newobj System.Void
System.Predicate`1<Verse.BodyPartRecord>::.ctor(System.Object object, System.IntPtr
method)
IL_02C3: dup
IL_02C4: stsfld System.Predicate`1<Verse.BodyPartRecord> Verse.<>c::<>9__54_1
IL_02C9: Label26
IL_02C9: call static Verse.BodyPartRecord
Verse.GenCollection::FirstOrDefault(System.Collections.Generic.List`1<Verse.BodyPar
tRecord> list, System.Predicate`1<Verse.BodyPartRecord> predicate)
IL_02CE: stfld Verse.BodyPartRecord Verse.PawnRenderer::rightEyeCached
IL_02D3: Label25
IL_02D3: ldloc.0
IL_02D4: ldarg.0
IL_02D5: ldfld Verse.BodyPartRecord Verse.PawnRenderer::leftEyeCached
IL_02DA: brfalse => Label27
IL_02DF: ldarg.0
IL_02E0: ldfld Verse.Pawn Verse.PawnRenderer::pawn
IL_02E5: ldfld Verse.Pawn_HealthTracker Verse.Pawn::health
IL_02EA: ldfld Verse.HediffSet Verse.Pawn_HealthTracker::hediffSet
IL_02EF: ldarg.0
IL_02F0: ldfld Verse.BodyPartRecord Verse.PawnRenderer::leftEyeCached
IL_02F5: callvirt System.Boolean
Verse.HediffSet::PartIsMissing(Verse.BodyPartRecord part)
IL_02FA: ldc.i4.0
IL_02FB: ceq
IL_02FD: br => Label28
IL_0302: Label27
IL_0302: ldc.i4.0
IL_0303: Label28
IL_0303: stfld System.Boolean Verse.<>c__DisplayClass54_0::hasLeftEye
IL_0308: ldloc.0
IL_0309: ldarg.0
IL_030A: ldfld Verse.BodyPartRecord Verse.PawnRenderer::rightEyeCached
IL_030F: brfalse => Label29
IL_0314: ldarg.0
IL_0315: ldfld Verse.Pawn Verse.PawnRenderer::pawn
IL_031A: ldfld Verse.Pawn_HealthTracker Verse.Pawn::health
IL_031F: ldfld Verse.HediffSet Verse.Pawn_HealthTracker::hediffSet
IL_0324: ldarg.0
IL_0325: ldfld Verse.BodyPartRecord Verse.PawnRenderer::rightEyeCached
IL_032A: callvirt System.Boolean
Verse.HediffSet::PartIsMissing(Verse.BodyPartRecord part)
IL_032F: ldc.i4.0
IL_0330: ceq
IL_0332: br => Label30
IL_0337: Label29
IL_0337: ldc.i4.0
IL_0338: Label30
IL_0338: stfld System.Boolean Verse.<>c__DisplayClass54_0::hasRightEye
IL_033D: ldloc.s 6 (System.Boolean)
IL_033F: brfalse => Label31
IL_0344: ldc.i4.0
IL_0345: stloc.s 7 (System.Int32)
IL_0347: br => Label32
IL_034C: Label42
IL_034C: ldloc.s 5 (System.Boolean)
IL_034E: brfalse => Label33
IL_0353: ldloc.1
IL_0354: ldloc.s 7 (System.Int32)
IL_0356: callvirt virtual RimWorld.ApparelGraphicRecord
System.Collections.Generic.List`1<RimWorld.ApparelGraphicRecord>::get_Item(System.I
nt32 index)
IL_035B: ldfld RimWorld.Apparel RimWorld.ApparelGraphicRecord::sourceApparel
IL_0360: ldfld Verse.ThingDef Verse.Thing::def
IL_0365: ldfld RimWorld.ApparelProperties Verse.ThingDef::apparel
IL_036A: ldfld System.Boolean
RimWorld.ApparelProperties::hatRenderedFrontOfFace
IL_036F: brfalse => Label34
IL_0374: Label33
IL_0374: ldloc.1
IL_0375: ldloc.s 7 (System.Int32)
IL_0377: callvirt virtual RimWorld.ApparelGraphicRecord
System.Collections.Generic.List`1<RimWorld.ApparelGraphicRecord>::get_Item(System.I
nt32 index)
IL_037C: ldfld RimWorld.Apparel RimWorld.ApparelGraphicRecord::sourceApparel
IL_0381: ldfld Verse.ThingDef Verse.Thing::def
IL_0386: ldfld RimWorld.ApparelProperties Verse.ThingDef::apparel
IL_038B: callvirt Verse.ApparelLayerDef
RimWorld.ApparelProperties::get_LastLayer()
IL_0390: ldsfld Verse.ApparelLayerDef RimWorld.ApparelLayerDefOf::Overhead
IL_0395: beq => Label35
IL_039A: ldloc.1
IL_039B: ldloc.s 7 (System.Int32)
IL_039D: callvirt virtual RimWorld.ApparelGraphicRecord
System.Collections.Generic.List`1<RimWorld.ApparelGraphicRecord>::get_Item(System.I
nt32 index)
IL_03A2: ldfld RimWorld.Apparel RimWorld.ApparelGraphicRecord::sourceApparel
IL_03A7: ldfld Verse.ThingDef Verse.Thing::def
IL_03AC: ldfld RimWorld.ApparelProperties Verse.ThingDef::apparel
IL_03B1: callvirt Verse.ApparelLayerDef
RimWorld.ApparelProperties::get_LastLayer()
IL_03B6: ldsfld Verse.ApparelLayerDef RimWorld.ApparelLayerDefOf::EyeCover
IL_03BB: bne.un => Label36
IL_03C0: Label35
IL_03C0: ldloc.1
IL_03C1: ldloc.s 7 (System.Int32)
IL_03C3: callvirt virtual RimWorld.ApparelGraphicRecord
System.Collections.Generic.List`1<RimWorld.ApparelGraphicRecord>::get_Item(System.I
nt32 index)
IL_03C8: ldfld RimWorld.Apparel RimWorld.ApparelGraphicRecord::sourceApparel
IL_03CD: ldfld Verse.ThingDef Verse.Thing::def
IL_03D2: ldfld RimWorld.ApparelProperties Verse.ThingDef::apparel
IL_03D7: ldfld System.Collections.Generic.List`1<Verse.BodyPartGroupDef>
RimWorld.ApparelProperties::bodyPartGroups
IL_03DC: ldsfld Verse.BodyPartGroupDef RimWorld.BodyPartGroupDefOf::FullHead
IL_03E1: callvirt virtual System.Boolean
System.Collections.Generic.List`1<Verse.BodyPartGroupDef>::Contains(Verse.BodyPartG
roupDef item)
IL_03E6: brfalse => Label37
IL_03EB: ldc.i4.0
IL_03EC: stloc.3
IL_03ED: ldloc.0
IL_03EE: ldc.i4.1
IL_03EF: stfld System.Boolean Verse.<>c__DisplayClass54_0::allFaceCovered
IL_03F4: ldloc.1
IL_03F5: ldloc.s 7 (System.Int32)
IL_03F7: callvirt virtual RimWorld.ApparelGraphicRecord
System.Collections.Generic.List`1<RimWorld.ApparelGraphicRecord>::get_Item(System.I
nt32 index)
IL_03FC: ldfld RimWorld.Apparel RimWorld.ApparelGraphicRecord::sourceApparel
IL_0401: ldfld Verse.ThingDef Verse.Thing::def
IL_0406: ldfld RimWorld.ApparelProperties Verse.ThingDef::apparel
IL_040B: ldfld System.Collections.Generic.List`1<System.Int32>
RimWorld.ApparelProperties::forceEyesVisibleForRotations
IL_0410: ldloc.0
IL_0411: ldflda Verse.Rot4 Verse.<>c__DisplayClass54_0::headFacing
IL_0416: call System.Int32 Verse.Rot4::get_AsInt()
IL_041B: callvirt virtual System.Boolean
System.Collections.Generic.List`1<System.Int32>::Contains(System.Int32 item)
IL_0420: brtrue => Label38
IL_0425: ldloc.0
IL_0426: ldc.i4.0
IL_0427: stfld System.Boolean Verse.<>c__DisplayClass54_0::drawEyes
IL_042C: Label37
IL_042C: Label38
IL_042C: ldloc.1
IL_042D: ldloc.s 7 (System.Int32)
IL_042F: callvirt virtual RimWorld.ApparelGraphicRecord
System.Collections.Generic.List`1<RimWorld.ApparelGraphicRecord>::get_Item(System.I
nt32 index)
IL_0434: ldfld RimWorld.Apparel RimWorld.ApparelGraphicRecord::sourceApparel
IL_0439: ldfld Verse.ThingDef Verse.Thing::def
IL_043E: ldfld RimWorld.ApparelProperties Verse.ThingDef::apparel
IL_0443: ldfld System.Boolean
RimWorld.ApparelProperties::hatRenderedFrontOfFace
IL_0448: brtrue => Label39
IL_044D: ldloc.1
IL_044E: ldloc.s 7 (System.Int32)
IL_0450: callvirt virtual RimWorld.ApparelGraphicRecord
System.Collections.Generic.List`1<RimWorld.ApparelGraphicRecord>::get_Item(System.I
nt32 index)
IL_0455: ldfld RimWorld.Apparel RimWorld.ApparelGraphicRecord::sourceApparel
IL_045A: ldfld Verse.ThingDef Verse.Thing::def
IL_045F: ldfld RimWorld.ApparelProperties Verse.ThingDef::apparel
IL_0464: ldfld System.Boolean RimWorld.ApparelProperties::forceRenderUnderHair
IL_0469: brtrue => Label40
IL_046E: ldc.i4.0
IL_046F: stloc.2
IL_0470: Label39
IL_0470: Label40
IL_0470: ldloc.1
IL_0471: ldloc.s 7 (System.Int32)
IL_0473: callvirt virtual RimWorld.ApparelGraphicRecord
System.Collections.Generic.List`1<RimWorld.ApparelGraphicRecord>::get_Item(System.I
nt32 index)
IL_0478: ldfld RimWorld.Apparel RimWorld.ApparelGraphicRecord::sourceApparel
IL_047D: ldfld Verse.ThingDef Verse.Thing::def
IL_0482: ldfld RimWorld.ApparelProperties Verse.ThingDef::apparel
IL_0487: ldfld System.Boolean RimWorld.ApparelProperties::coversHeadMiddle
IL_048C: brfalse => Label41
IL_0491: ldloc.0
IL_0492: ldc.i4.1
IL_0493: stfld System.Boolean Verse.<>c__DisplayClass54_0::middleFaceCovered
IL_0498: Label34
IL_0498: Label36
IL_0498: Label41
IL_0498: ldloc.s 7 (System.Int32)
IL_049A: ldc.i4.1
IL_049B: add
IL_049C: stloc.s 7 (System.Int32)
IL_049E: Label32
IL_049E: ldloc.s 7 (System.Int32)
IL_04A0: ldloc.1
IL_04A1: callvirt virtual System.Int32
System.Collections.Generic.List`1<RimWorld.ApparelGraphicRecord>::get_Count()
IL_04A6: blt => Label42
IL_04AB: Label31
IL_04AB: ldloc.0
IL_04AC: ldc.i4.1
IL_04AD: callvirt System.Void
Verse.<>c__DisplayClass54_0::<DrawHeadHair>g__TryDrawGenes|3(Verse.GeneDrawLayer
layer)
IL_04B2: call static System.Boolean Verse.ModsConfig::get_IdeologyActive()
IL_04B7: brfalse => Label43
IL_04BC: ldarg.0
IL_04BD: ldfld Verse.PawnGraphicSet Verse.PawnRenderer::graphics
IL_04C2: ldfld Verse.Graphic Verse.PawnGraphicSet::faceTattooGraphic
IL_04C7: brfalse => Label44
IL_04CC: ldloc.0
IL_04CD: ldfld Verse.RotDrawMode Verse.<>c__DisplayClass54_0::bodyDrawType
IL_04D2: ldc.i4.2
IL_04D3: beq => Label45
IL_04D8: ldloc.0
IL_04D9: ldfld Verse.PawnRenderFlags Verse.<>c__DisplayClass54_0::flags
IL_04DE: ldc.i4.2
IL_04DF: call static System.Boolean
Verse.PawnRenderFlagsExtension::FlagSet(Verse.PawnRenderFlags flags,
Verse.PawnRenderFlags flag)
IL_04E4: brtrue => Label46
IL_04E9: ldloc.0
IL_04EA: ldfld Verse.Rot4 Verse.<>c__DisplayClass54_0::bodyFacing
IL_04EF: ldsfld Verse.Rot4 Verse.Rot4::North
IL_04F4: call static System.Boolean Verse.Rot4::op_Inequality(Verse.Rot4 a,
Verse.Rot4 b)
IL_04F9: brtrue => Label47
IL_04FE: ldarg.0
IL_04FF: ldfld Verse.Pawn Verse.PawnRenderer::pawn
IL_0504: ldfld RimWorld.Pawn_StyleTracker Verse.Pawn::style
IL_0509: callvirt RimWorld.TattooDef RimWorld.Pawn_StyleTracker::get_FaceTattoo()
IL_050E: ldfld System.Boolean RimWorld.TattooDef::visibleNorth
IL_0513: brfalse => Label48
IL_0518: Label47
IL_0518: ldloc.0
IL_0519: ldfld UnityEngine.Vector3 Verse.<>c__DisplayClass54_0::rootLoc
IL_051E: ldloc.0
IL_051F: ldfld UnityEngine.Vector3 Verse.<>c__DisplayClass54_0::headOffset
IL_0524: call static UnityEngine.Vector3
UnityEngine.Vector3::op_Addition(UnityEngine.Vector3 a, UnityEngine.Vector3 b)
IL_0529: stloc.s 8 (UnityEngine.Vector3)
IL_052B: ldloca.s 8 (UnityEngine.Vector3)
IL_052D: ldflda System.Single UnityEngine.Vector3::y
IL_0532: dup
IL_0533: ldind.r4
IL_0534: ldc.r4 0.02316602
IL_0539: add
IL_053A: stind.r4
IL_053B: ldloc.0
IL_053C: ldfld Verse.Rot4 Verse.<>c__DisplayClass54_0::bodyFacing
IL_0541: ldsfld Verse.Rot4 Verse.Rot4::North
IL_0546: call static System.Boolean Verse.Rot4::op_Equality(Verse.Rot4 a,
Verse.Rot4 b)
IL_054B: brfalse => Label49
IL_0550: ldloca.s 8 (UnityEngine.Vector3)
IL_0552: ldflda System.Single UnityEngine.Vector3::y
IL_0557: dup
IL_0558: ldind.r4
IL_0559: ldc.r4 0.001
IL_055E: sub
IL_055F: stind.r4
IL_0560: br => Label50
IL_0565: Label49
IL_0565: ldloca.s 8 (UnityEngine.Vector3)
IL_0567: ldflda System.Single UnityEngine.Vector3::y
IL_056C: dup
IL_056D: ldind.r4
IL_056E: ldc.r4 0.001
IL_0573: add
IL_0574: stind.r4
IL_0575: Label50
IL_0575: ldarg.0
IL_0576: ldfld Verse.PawnGraphicSet Verse.PawnRenderer::graphics
IL_057B: callvirt Verse.GraphicMeshSet Verse.PawnGraphicSet::get_HairMeshSet()
IL_0580: ldloc.0
IL_0581: ldfld Verse.Rot4 Verse.<>c__DisplayClass54_0::headFacing
IL_0586: callvirt UnityEngine.Mesh Verse.GraphicMeshSet::MeshAt(Verse.Rot4 rot)
IL_058B: ldloc.s 8 (UnityEngine.Vector3)
IL_058D: ldloc.0
IL_058E: ldfld UnityEngine.Quaternion Verse.<>c__DisplayClass54_0::quat
IL_0593: ldarg.0
IL_0594: ldfld Verse.PawnGraphicSet Verse.PawnRenderer::graphics
IL_0599: ldfld Verse.Graphic Verse.PawnGraphicSet::faceTattooGraphic
IL_059E: ldloc.0
IL_059F: ldfld Verse.Rot4 Verse.<>c__DisplayClass54_0::headFacing
IL_05A4: ldnull
IL_05A5: callvirt virtual UnityEngine.Material Verse.Graphic::MatAt(Verse.Rot4
rot, Verse.Thing thing)
IL_05AA: ldloc.0
IL_05AB: ldfld Verse.PawnRenderFlags Verse.<>c__DisplayClass54_0::flags
IL_05B0: ldc.i4.8
IL_05B1: call static System.Boolean
Verse.PawnRenderFlagsExtension::FlagSet(Verse.PawnRenderFlags flags,
Verse.PawnRenderFlags flag)
IL_05B6: call static System.Void
Verse.GenDraw::DrawMeshNowOrLater(UnityEngine.Mesh mesh, UnityEngine.Vector3 loc,
UnityEngine.Quaternion quat, UnityEngine.Material mat, System.Boolean drawNow)
IL_05BB: Label43
IL_05BB: Label44
IL_05BB: Label45
IL_05BB: Label46
IL_05BB: Label48
IL_05BB: ldloc.0
IL_05BC: ldc.i4.2
IL_05BD: callvirt System.Void
Verse.<>c__DisplayClass54_0::<DrawHeadHair>g__TryDrawGenes|3(Verse.GeneDrawLayer
layer)
IL_05C2: ldloc.0
IL_05C3: ldfld Verse.Rot4 Verse.<>c__DisplayClass54_0::headFacing
IL_05C8: ldsfld Verse.Rot4 Verse.Rot4::North
IL_05CD: call static System.Boolean Verse.Rot4::op_Inequality(Verse.Rot4 a,
Verse.Rot4 b)
IL_05D2: brfalse => Label51
IL_05D7: ldloc.0
IL_05D8: ldfld System.Boolean Verse.<>c__DisplayClass54_0::allFaceCovered
IL_05DD: ldc.i4.0
IL_05DE: ceq
IL_05E0: ldloc.0
IL_05E1: ldfld System.Boolean Verse.<>c__DisplayClass54_0::drawEyes
IL_05E6: or
IL_05E7: brfalse => Label52
IL_05EC: ldarg.0
IL_05ED: ldfld Verse.Pawn Verse.PawnRenderer::pawn
IL_05F2: ldfld Verse.Pawn_HealthTracker Verse.Pawn::health
IL_05F7: ldfld Verse.HediffSet Verse.Pawn_HealthTracker::hediffSet
IL_05FC: ldfld System.Collections.Generic.List`1<Verse.Hediff>
Verse.HediffSet::hediffs
IL_0601: callvirt System.Collections.Generic.Enumerator<Verse.Hediff>
System.Collections.Generic.List`1<Verse.Hediff>::GetEnumerator()
IL_0606: stloc.s 9 (System.Collections.Generic.List`1+Enumerator[Verse.Hediff])
.try
{
IL_0608: br => Label53
IL_060D: Label58
IL_060D: ldloca.s 9
(System.Collections.Generic.List`1+Enumerator[Verse.Hediff])
IL_060F: call virtual Verse.Hediff
System.Collections.Generic.Enumerator<Verse.Hediff>::get_Current()
IL_0614: stloc.s 10 (Verse.Hediff)
IL_0616: ldloc.s 10 (Verse.Hediff)
IL_0618: ldfld Verse.HediffDef Verse.Hediff::def
IL_061D: ldfld Verse.GraphicData Verse.HediffDef::eyeGraphicSouth
IL_0622: brfalse => Label54
IL_0627: ldloc.s 10 (Verse.Hediff)
IL_0629: ldfld Verse.HediffDef Verse.Hediff::def
IL_062E: ldfld Verse.GraphicData Verse.HediffDef::eyeGraphicEast
IL_0633: brfalse => Label55
IL_0638: ldloc.0
IL_0639: ldflda Verse.Rot4 Verse.<>c__DisplayClass54_0::headFacing
IL_063E: call System.Boolean Verse.Rot4::get_IsHorizontal()
IL_0643: brtrue => Label56
IL_0648: ldloc.s 10 (Verse.Hediff)
IL_064A: ldfld Verse.HediffDef Verse.Hediff::def
IL_064F: ldfld Verse.GraphicData Verse.HediffDef::eyeGraphicSouth
IL_0654: br => Label57
IL_0659: Label56
IL_0659: ldloc.s 10 (Verse.Hediff)
IL_065B: ldfld Verse.HediffDef Verse.Hediff::def
IL_0660: ldfld Verse.GraphicData Verse.HediffDef::eyeGraphicEast
IL_0665: Label57
IL_0665: stloc.s 11 (Verse.GraphicData)
IL_0667: ldloc.s 10 (Verse.Hediff)
IL_0669: callvirt Verse.BodyPartRecord Verse.Hediff::get_Part()
IL_066E: ldfld System.String Verse.BodyPartRecord::woundAnchorTag
IL_0673: ldstr "LeftEye"
IL_0678: call static System.Boolean
System.String::op_Equality(System.String a, System.String b)
IL_067D: stloc.s 12 (System.Boolean)
IL_067F: ldloc.0
IL_0680: ldloc.s 11 (Verse.GraphicData)
IL_0682: callvirt Verse.Graphic Verse.GraphicData::get_Graphic()
IL_0687: ldloc.s 10 (Verse.Hediff)
IL_0689: ldfld Verse.HediffDef Verse.Hediff::def
IL_068E: ldfld System.Single Verse.HediffDef::eyeGraphicScale
IL_0693: ldarg.0
IL_0694: ldfld Verse.Pawn Verse.PawnRenderer::pawn
IL_0699: ldfld Verse.Pawn_AgeTracker Verse.Pawn::ageTracker
IL_069E: callvirt RimWorld.LifeStageDef
Verse.Pawn_AgeTracker::get_CurLifeStage()
IL_06A3: ldflda System.Nullable`1<System.Single>
RimWorld.LifeStageDef::eyeSizeFactor
IL_06A8: ldc.r4 1
IL_06AD: call System.Single
System.Nullable`1<System.Single>::GetValueOrDefault(System.Single defaultValue)
IL_06B2: mul
IL_06B3: ldc.r4 0.0014
IL_06B8: ldloc.s 12 (System.Boolean)
IL_06BA: ldloc.s 12 (System.Boolean)
IL_06BC: ldc.i4.0
IL_06BD: ceq
IL_06BF: callvirt System.Void
Verse.<>c__DisplayClass54_0::<DrawHeadHair>g__DrawExtraEyeGraphic|6(Verse.Graphic
graphic, System.Single scale, System.Single yOffset, System.Boolean drawLeft,
System.Boolean drawRight)
IL_06C4: Label53
IL_06C4: Label54
IL_06C4: Label55
IL_06C4: ldloca.s 9
(System.Collections.Generic.List`1+Enumerator[Verse.Hediff])
IL_06C6: call virtual System.Boolean
System.Collections.Generic.Enumerator<Verse.Hediff>::MoveNext()
IL_06CB: brtrue => Label58
IL_06D0: leave => Label59
IL_06D5: leave => (autogenerated)
} // end try
.finally
{
IL_06DA: ldloca.s 9
(System.Collections.Generic.List`1+Enumerator[Verse.Hediff])
IL_06DC: constrained.
System.Collections.Generic.List`1+Enumerator[Verse.Hediff]
IL_06E2: callvirt abstract virtual System.Void
System.IDisposable::Dispose()
IL_06E7: endfinally
IL_06E8: leave => (autogenerated)
} // end handler
IL_06E9: Label51
IL_06E9: Label52
IL_06E9: Label59
IL_06E9: ldloc.3
IL_06EA: brfalse => Label60
IL_06EF: ldloc.0
IL_06F0: ldfld UnityEngine.Vector3 Verse.<>c__DisplayClass54_0::rootLoc
IL_06F5: ldloc.0
IL_06F6: ldfld UnityEngine.Vector3 Verse.<>c__DisplayClass54_0::headOffset
IL_06FB: call static UnityEngine.Vector3
UnityEngine.Vector3::op_Addition(UnityEngine.Vector3 a, UnityEngine.Vector3 b)
IL_0700: ldloc.0
IL_0701: ldfld UnityEngine.Quaternion Verse.<>c__DisplayClass54_0::quat
IL_0706: ldarg.0
IL_0707: ldarg.0
IL_0708: ldfld Verse.Pawn Verse.PawnRenderer::pawn
IL_070D: ldfld RimWorld.Pawn_StyleTracker Verse.Pawn::style
IL_0712: ldfld RimWorld.BeardDef RimWorld.Pawn_StyleTracker::beardDef
IL_0717: ldarg.0
IL_0718: ldfld Verse.Pawn Verse.PawnRenderer::pawn
IL_071D: ldfld RimWorld.Pawn_StoryTracker Verse.Pawn::story
IL_0722: ldfld Verse.HeadTypeDef RimWorld.Pawn_StoryTracker::headType
IL_0727: ldloc.0
IL_0728: ldfld Verse.Rot4 Verse.<>c__DisplayClass54_0::headFacing
IL_072D: call static UnityEngine.Vector3 UnityEngine.Vector3::get_zero()
IL_0732: call UnityEngine.Vector3
Verse.PawnRenderer::OffsetBeardLocationForHead(RimWorld.BeardDef beardDef,
Verse.HeadTypeDef head, Verse.Rot4 headFacing, UnityEngine.Vector3 beardLoc)
IL_0737: call static UnityEngine.Vector3
UnityEngine.Quaternion::op_Multiply(UnityEngine.Quaternion rotation,
UnityEngine.Vector3 point)
IL_073C: call static UnityEngine.Vector3
UnityEngine.Vector3::op_Addition(UnityEngine.Vector3 a, UnityEngine.Vector3 b)
IL_0741: stloc.s 13 (UnityEngine.Vector3)
IL_0743: ldarg.0
IL_0744: ldfld Verse.PawnGraphicSet Verse.PawnRenderer::graphics
IL_0749: callvirt Verse.GraphicMeshSet Verse.PawnGraphicSet::get_BeardMeshSet()
IL_074E: ldloc.0
IL_074F: ldfld Verse.Rot4 Verse.<>c__DisplayClass54_0::headFacing
IL_0754: callvirt UnityEngine.Mesh Verse.GraphicMeshSet::MeshAt(Verse.Rot4 rot)
IL_0759: stloc.s 14 (UnityEngine.Mesh)
IL_075B: ldarg.0
IL_075C: ldfld Verse.PawnGraphicSet Verse.PawnRenderer::graphics
IL_0761: ldloc.0
IL_0762: ldfld Verse.Rot4 Verse.<>c__DisplayClass54_0::headFacing
IL_0767: ldloc.0
IL_0768: ldfld Verse.PawnRenderFlags Verse.<>c__DisplayClass54_0::flags
IL_076D: ldc.i4.1
IL_076E: call static System.Boolean
Verse.PawnRenderFlagsExtension::FlagSet(Verse.PawnRenderFlags flags,
Verse.PawnRenderFlags flag)
IL_0773: ldloc.0
IL_0774: ldfld Verse.PawnRenderFlags Verse.<>c__DisplayClass54_0::flags
IL_0779: ldc.i4.s 16
IL_077B: call static System.Boolean
Verse.PawnRenderFlagsExtension::FlagSet(Verse.PawnRenderFlags flags,
Verse.PawnRenderFlags flag)
IL_0780: callvirt UnityEngine.Material
Verse.PawnGraphicSet::BeardMatAt(Verse.Rot4 facing, System.Boolean portrait,
System.Boolean cached)
IL_0785: stloc.s 15 (UnityEngine.Material)
IL_0787: ldloc.s 15 (UnityEngine.Material)
IL_0789: ldnull
IL_078A: call static System.Boolean
UnityEngine.Object::op_Inequality(UnityEngine.Object x, UnityEngine.Object y)
IL_078F: brfalse => Label61
IL_0794: ldloc.s 14 (UnityEngine.Mesh)
IL_0796: ldloc.s 13 (UnityEngine.Vector3)
IL_0798: ldloc.0
IL_0799: ldfld UnityEngine.Quaternion Verse.<>c__DisplayClass54_0::quat
IL_079E: ldloc.s 15 (UnityEngine.Material)
IL_07A0: ldloc.0
IL_07A1: ldfld Verse.PawnRenderFlags Verse.<>c__DisplayClass54_0::flags
IL_07A6: ldc.i4.8
IL_07A7: call static System.Boolean
Verse.PawnRenderFlagsExtension::FlagSet(Verse.PawnRenderFlags flags,
Verse.PawnRenderFlags flag)
IL_07AC: call static System.Void
Verse.GenDraw::DrawMeshNowOrLater(UnityEngine.Mesh mesh, UnityEngine.Vector3 loc,
UnityEngine.Quaternion quat, UnityEngine.Material mat, System.Boolean drawNow)
IL_07B1: Label60
IL_07B1: Label61
IL_07B1: ldloc.s 6 (System.Boolean)
IL_07B3: brfalse => Label62
IL_07B8: ldc.i4.0
IL_07B9: stloc.s 16 (System.Int32)
IL_07BB: br => Label63
IL_07C0: Label67
IL_07C0: ldloc.s 5 (System.Boolean)
IL_07C2: brfalse => Label64
IL_07C7: ldloc.1
IL_07C8: ldloc.s 16 (System.Int32)
IL_07CA: callvirt virtual RimWorld.ApparelGraphicRecord
System.Collections.Generic.List`1<RimWorld.ApparelGraphicRecord>::get_Item(System.I
nt32 index)
IL_07CF: ldfld RimWorld.Apparel RimWorld.ApparelGraphicRecord::sourceApparel
IL_07D4: ldfld Verse.ThingDef Verse.Thing::def
IL_07D9: ldfld RimWorld.ApparelProperties Verse.ThingDef::apparel
IL_07DE: ldfld System.Boolean
RimWorld.ApparelProperties::hatRenderedFrontOfFace
IL_07E3: brfalse => Label65
IL_07E8: Label64
IL_07E8: ldloc.1
IL_07E9: ldloc.s 16 (System.Int32)
IL_07EB: callvirt virtual RimWorld.ApparelGraphicRecord
System.Collections.Generic.List`1<RimWorld.ApparelGraphicRecord>::get_Item(System.I
nt32 index)
IL_07F0: ldfld RimWorld.Apparel RimWorld.ApparelGraphicRecord::sourceApparel
IL_07F5: ldfld Verse.ThingDef Verse.Thing::def
IL_07FA: ldfld RimWorld.ApparelProperties Verse.ThingDef::apparel
IL_07FF: ldfld System.Boolean RimWorld.ApparelProperties::forceRenderUnderHair
IL_0804: brfalse => Label66
IL_0809: ldloc.0
IL_080A: ldloc.1
IL_080B: ldloc.s 16 (System.Int32)
IL_080D: callvirt virtual RimWorld.ApparelGraphicRecord
System.Collections.Generic.List`1<RimWorld.ApparelGraphicRecord>::get_Item(System.I
nt32 index)
IL_0812: callvirt System.Void
Verse.<>c__DisplayClass54_0::<DrawHeadHair>g__DrawApparel|
2(RimWorld.ApparelGraphicRecord apparelRecord)
IL_0817: Label65
IL_0817: Label66
IL_0817: ldloc.s 16 (System.Int32)
IL_0819: ldc.i4.1
IL_081A: add
IL_081B: stloc.s 16 (System.Int32)
IL_081D: Label63
IL_081D: ldloc.s 16 (System.Int32)
IL_081F: ldloc.1
IL_0820: callvirt virtual System.Int32
System.Collections.Generic.List`1<RimWorld.ApparelGraphicRecord>::get_Count()
IL_0825: blt => Label67
IL_082A: Label62
IL_082A: ldloc.2
IL_082B: brfalse => Label68
IL_0830: ldarg.0
IL_0831: ldfld Verse.PawnGraphicSet Verse.PawnRenderer::graphics
IL_0836: callvirt Verse.GraphicMeshSet Verse.PawnGraphicSet::get_HairMeshSet()
IL_083B: ldloc.0
IL_083C: ldfld Verse.Rot4 Verse.<>c__DisplayClass54_0::headFacing
IL_0841: callvirt UnityEngine.Mesh Verse.GraphicMeshSet::MeshAt(Verse.Rot4 rot)
IL_0846: stloc.s 17 (UnityEngine.Mesh)
IL_0848: ldarg.0
IL_0849: ldfld Verse.PawnGraphicSet Verse.PawnRenderer::graphics
IL_084E: ldloc.0
IL_084F: ldfld Verse.Rot4 Verse.<>c__DisplayClass54_0::headFacing
IL_0854: ldloc.0
IL_0855: ldfld Verse.PawnRenderFlags Verse.<>c__DisplayClass54_0::flags
IL_085A: ldc.i4.1
IL_085B: call static System.Boolean
Verse.PawnRenderFlagsExtension::FlagSet(Verse.PawnRenderFlags flags,
Verse.PawnRenderFlags flag)
IL_0860: ldloc.0
IL_0861: ldfld Verse.PawnRenderFlags Verse.<>c__DisplayClass54_0::flags
IL_0866: ldc.i4.s 16
IL_0868: call static System.Boolean
Verse.PawnRenderFlagsExtension::FlagSet(Verse.PawnRenderFlags flags,
Verse.PawnRenderFlags flag)
IL_086D: callvirt UnityEngine.Material Verse.PawnGraphicSet::HairMatAt(Verse.Rot4
facing, System.Boolean portrait, System.Boolean cached)
IL_0872: stloc.s 18 (UnityEngine.Material)
IL_0874: ldloc.s 18 (UnityEngine.Material)
IL_0876: ldnull
IL_0877: call static System.Boolean
UnityEngine.Object::op_Inequality(UnityEngine.Object x, UnityEngine.Object y)
IL_087C: brfalse => Label69
IL_0881: ldloc.s 17 (UnityEngine.Mesh)
IL_0883: ldloc.0
IL_0884: ldfld UnityEngine.Vector3 Verse.<>c__DisplayClass54_0::onHeadLoc
IL_0889: ldloc.0
IL_088A: ldfld UnityEngine.Quaternion Verse.<>c__DisplayClass54_0::quat
IL_088F: ldloc.s 18 (UnityEngine.Material)
IL_0891: ldloc.0
IL_0892: ldfld Verse.PawnRenderFlags Verse.<>c__DisplayClass54_0::flags
IL_0897: ldc.i4.8
IL_0898: call static System.Boolean
Verse.PawnRenderFlagsExtension::FlagSet(Verse.PawnRenderFlags flags,
Verse.PawnRenderFlags flag)
IL_089D: call static System.Void
Verse.GenDraw::DrawMeshNowOrLater(UnityEngine.Mesh mesh, UnityEngine.Vector3 loc,
UnityEngine.Quaternion quat, UnityEngine.Material mat, System.Boolean drawNow)
IL_08A2: Label68
IL_08A2: Label69
IL_08A2: ldloc.0
IL_08A3: ldc.i4.3
IL_08A4: callvirt System.Void
Verse.<>c__DisplayClass54_0::<DrawHeadHair>g__TryDrawGenes|3(Verse.GeneDrawLayer
layer)
IL_08A9: ldloc.s 6 (System.Boolean)
IL_08AB: brfalse => Label70
IL_08B0: ldc.i4.0
IL_08B1: stloc.s 19 (System.Int32)
IL_08B3: br => Label71
IL_08B8: Label77
IL_08B8: ldloc.s 5 (System.Boolean)
IL_08BA: brfalse => Label72
IL_08BF: ldloc.1
IL_08C0: ldloc.s 19 (System.Int32)
IL_08C2: callvirt virtual RimWorld.ApparelGraphicRecord
System.Collections.Generic.List`1<RimWorld.ApparelGraphicRecord>::get_Item(System.I
nt32 index)
IL_08C7: ldfld RimWorld.Apparel RimWorld.ApparelGraphicRecord::sourceApparel
IL_08CC: ldfld Verse.ThingDef Verse.Thing::def
IL_08D1: ldfld RimWorld.ApparelProperties Verse.ThingDef::apparel
IL_08D6: ldfld System.Boolean
RimWorld.ApparelProperties::hatRenderedFrontOfFace
IL_08DB: brfalse => Label73
IL_08E0: Label72
IL_08E0: ldloc.1
IL_08E1: ldloc.s 19 (System.Int32)
IL_08E3: callvirt virtual RimWorld.ApparelGraphicRecord
System.Collections.Generic.List`1<RimWorld.ApparelGraphicRecord>::get_Item(System.I
nt32 index)
IL_08E8: ldfld RimWorld.Apparel RimWorld.ApparelGraphicRecord::sourceApparel
IL_08ED: ldfld Verse.ThingDef Verse.Thing::def
IL_08F2: ldfld RimWorld.ApparelProperties Verse.ThingDef::apparel
IL_08F7: callvirt Verse.ApparelLayerDef
RimWorld.ApparelProperties::get_LastLayer()
IL_08FC: ldsfld Verse.ApparelLayerDef RimWorld.ApparelLayerDefOf::Overhead
IL_0901: beq => Label74
IL_0906: ldloc.1
IL_0907: ldloc.s 19 (System.Int32)
IL_0909: callvirt virtual RimWorld.ApparelGraphicRecord
System.Collections.Generic.List`1<RimWorld.ApparelGraphicRecord>::get_Item(System.I
nt32 index)
IL_090E: ldfld RimWorld.Apparel RimWorld.ApparelGraphicRecord::sourceApparel
IL_0913: ldfld Verse.ThingDef Verse.Thing::def
IL_0918: ldfld RimWorld.ApparelProperties Verse.ThingDef::apparel
IL_091D: callvirt Verse.ApparelLayerDef
RimWorld.ApparelProperties::get_LastLayer()
IL_0922: ldsfld Verse.ApparelLayerDef RimWorld.ApparelLayerDefOf::EyeCover
IL_0927: bne.un => Label75
IL_092C: Label74
IL_092C: ldloc.1
IL_092D: ldloc.s 19 (System.Int32)
IL_092F: callvirt virtual RimWorld.ApparelGraphicRecord
System.Collections.Generic.List`1<RimWorld.ApparelGraphicRecord>::get_Item(System.I
nt32 index)
IL_0934: ldfld RimWorld.Apparel RimWorld.ApparelGraphicRecord::sourceApparel
IL_0939: ldfld Verse.ThingDef Verse.Thing::def
IL_093E: ldfld RimWorld.ApparelProperties Verse.ThingDef::apparel
IL_0943: ldfld System.Boolean RimWorld.ApparelProperties::forceRenderUnderHair
IL_0948: brtrue => Label76
IL_094D: ldloc.0
IL_094E: ldloc.1
IL_094F: ldloc.s 19 (System.Int32)
IL_0951: callvirt virtual RimWorld.ApparelGraphicRecord
System.Collections.Generic.List`1<RimWorld.ApparelGraphicRecord>::get_Item(System.I
nt32 index)
IL_0956: callvirt System.Void
Verse.<>c__DisplayClass54_0::<DrawHeadHair>g__DrawApparel|
2(RimWorld.ApparelGraphicRecord apparelRecord)
IL_095B: Label73
IL_095B: Label75
IL_095B: Label76
IL_095B: ldloc.s 19 (System.Int32)
IL_095D: ldc.i4.1
IL_095E: add
IL_095F: stloc.s 19 (System.Int32)
IL_0961: Label71
IL_0961: ldloc.s 19 (System.Int32)
IL_0963: ldloc.1
IL_0964: callvirt virtual System.Int32
System.Collections.Generic.List`1<RimWorld.ApparelGraphicRecord>::get_Count()
IL_0969: blt => Label77
IL_096E: Label70
IL_096E: ldloc.0
IL_096F: ldc.i4.4
IL_0970: callvirt System.Void
Verse.<>c__DisplayClass54_0::<DrawHeadHair>g__TryDrawGenes|3(Verse.GeneDrawLayer
layer)
IL_0975: // end original
IL_0975: Label78
IL_0975: ret
DONE

### Patch: System.Void


Verse.DamageWorker_AddInjury::ApplySmallPawnDamagePropagation(Verse.DamageInfo
dinfo, Verse.Pawn pawn, Verse.DamageResult result)
### Replacement: static System.Void
Verse.DamageWorker_AddInjury::Verse.DamageWorker_AddInjury.ApplySmallPawnDamageProp
agation_Patch0(Verse.DamageWorker_AddInjury this, Verse.DamageInfo dinfo,
Verse.Pawn pawn, Verse.DamageResult result)
IL_0000: Local var 0: Verse.DamageInfo
IL_0000: // start original
IL_0000: ldarga.s 1
IL_0002: call System.Boolean Verse.DamageInfo::get_AllowDamagePropagation()
IL_0007: brtrue => Label0
IL_000C: br => Label9
IL_0011: Label0
IL_0011: ldarg.3
IL_0012: callvirt Verse.BodyPartRecord Verse.DamageResult::get_LastHitPart()
IL_0017: brfalse => Label1
IL_001C: ldarga.s 1
IL_001E: call Verse.DamageDef Verse.DamageInfo::get_Def()
IL_0023: ldfld System.Boolean Verse.DamageDef::harmsHealth
IL_0028: brfalse => Label2
IL_002D: ldarg.3
IL_002E: callvirt Verse.BodyPartRecord Verse.DamageResult::get_LastHitPart()
IL_0033: ldarg.2
IL_0034: call static Verse.BodyDef
AlienRace.HarmonyPatches::ReplacedBody(Verse.Pawn pawn)
IL_0039: ldfld Verse.BodyPartRecord Verse.BodyDef::corePart
IL_003E: beq => Label3
IL_0043: ldarg.3
IL_0044: callvirt Verse.BodyPartRecord Verse.DamageResult::get_LastHitPart()
IL_0049: ldfld Verse.BodyPartRecord Verse.BodyPartRecord::parent
IL_004E: brfalse => Label4
IL_0053: ldarg.2
IL_0054: ldfld Verse.Pawn_HealthTracker Verse.Pawn::health
IL_0059: ldfld Verse.HediffSet Verse.Pawn_HealthTracker::hediffSet
IL_005E: ldarg.3
IL_005F: callvirt Verse.BodyPartRecord Verse.DamageResult::get_LastHitPart()
IL_0064: ldfld Verse.BodyPartRecord Verse.BodyPartRecord::parent
IL_0069: callvirt System.Single
Verse.HediffSet::GetPartHealth(Verse.BodyPartRecord part)
IL_006E: ldc.r4 0
IL_0073: ble.un => Label5
IL_0078: ldarg.3
IL_0079: callvirt Verse.BodyPartRecord Verse.DamageResult::get_LastHitPart()
IL_007E: ldfld Verse.BodyPartRecord Verse.BodyPartRecord::parent
IL_0083: ldfld System.Single Verse.BodyPartRecord::coverageAbs
IL_0088: ldc.r4 0
IL_008D: ble.un => Label6
IL_0092: ldarga.s 1
IL_0094: call System.Single Verse.DamageInfo::get_Amount()
IL_0099: ldc.r4 10
IL_009E: blt.un => Label7
IL_00A3: ldarg.2
IL_00A4: callvirt System.Single Verse.Pawn::get_HealthScale()
IL_00A9: ldc.r4 0.5001
IL_00AE: bgt.un => Label8
IL_00B3: ldarg.1
IL_00B4: stloc.0
IL_00B5: ldloca.s 0 (Verse.DamageInfo)
IL_00B7: ldarg.3
IL_00B8: callvirt Verse.BodyPartRecord Verse.DamageResult::get_LastHitPart()
IL_00BD: ldfld Verse.BodyPartRecord Verse.BodyPartRecord::parent
IL_00C2: call System.Void Verse.DamageInfo::SetHitPart(Verse.BodyPartRecord
forceHitPart)
IL_00C7: ldarg.0
IL_00C8: ldloc.0
IL_00C9: ldarg.2
IL_00CA: ldarg.3
IL_00CB: call System.Void
Verse.DamageWorker_AddInjury::ApplyDamageToPart(Verse.DamageInfo dinfo, Verse.Pawn
pawn, Verse.DamageResult result)
IL_00D0: // end original
IL_00D0: Label1
IL_00D0: Label2
IL_00D0: Label3
IL_00D0: Label4
IL_00D0: Label5
IL_00D0: Label6
IL_00D0: Label7
IL_00D0: Label8
IL_00D0: Label9
IL_00D0: ret
DONE

### Patch: System.String Verse.<>c::<StunChances>b__2_0(Verse.ThingDef d,


System.Single dam, System.Boolean onHead)
### Replacement: static System.String
Verse.DamageWorker_Blunt+<>c::Verse.DamageWorker_Blunt+c.<StunChances>b__2_0_Patch0
(Verse.<>c this, Verse.ThingDef d, System.Single dam, System.Boolean onHead)
IL_0000: Local var 0: Verse.Pawn
IL_0000: Local var 1: System.Single
IL_0000: Local var 2: System.Nullable`1<System.Single>
IL_0000: Local var 3: System.Nullable`1<Verse.Gender>
IL_0000: Local var 4: System.Nullable`1<Verse.FloatRange>
IL_0000: // start original
IL_0000: ldarg.3
IL_0001: brtrue => Label0
IL_0006: ldsfld Verse.DamageDef RimWorld.DamageDefOf::Blunt
IL_000B: ldfld Verse.SimpleCurve
Verse.DamageDef::bluntStunChancePerDamagePctOfCorePartToBodyCurve
IL_0010: br => Label1
IL_0015: Label0
IL_0015: ldsfld Verse.DamageDef RimWorld.DamageDefOf::Blunt
IL_001A: ldfld Verse.SimpleCurve
Verse.DamageDef::bluntStunChancePerDamagePctOfCorePartToHeadCurve
IL_001F: Label1
IL_001F: ldarg.1
IL_0020: ldfld Verse.RaceProperties Verse.ThingDef::race
IL_0025: callvirt Verse.PawnKindDef Verse.RaceProperties::get_AnyPawnKind()
IL_002A: call static RimWorld.FactionManager Verse.Find::get_FactionManager()
IL_002F: ldarg.1
IL_0030: ldfld Verse.RaceProperties Verse.ThingDef::race
IL_0035: callvirt Verse.PawnKindDef Verse.RaceProperties::get_AnyPawnKind()
IL_003A: ldfld RimWorld.FactionDef Verse.PawnKindDef::defaultFactionType
IL_003F: callvirt RimWorld.Faction
RimWorld.FactionManager::FirstFactionOfDef(RimWorld.FactionDef facDef)
IL_0044: ldc.i4.2
IL_0045: ldc.i4.m1
IL_0046: ldc.i4.1
IL_0047: ldc.i4.0
IL_0048: ldc.i4.0
IL_0049: ldc.i4.1
IL_004A: ldc.i4.0
IL_004B: ldc.r4 1
IL_0050: ldc.i4.0
IL_0051: ldc.i4.1
IL_0052: ldc.i4.0
IL_0053: ldc.i4.1
IL_0054: ldc.i4.1
IL_0055: ldc.i4.0
IL_0056: ldc.i4.0
IL_0057: ldc.i4.0
IL_0058: ldc.i4.0
IL_0059: ldc.r4 0
IL_005E: ldc.r4 0
IL_0063: ldnull
IL_0064: ldc.r4 1
IL_0069: ldnull
IL_006A: ldnull
IL_006B: ldnull
IL_006C: ldnull
IL_006D: ldloca.s 2 (System.Nullable`1[System.Single])
IL_006F: initobj System.Nullable`1[System.Single]
IL_0075: ldloc.2
IL_0076: ldloca.s 2 (System.Nullable`1[System.Single])
IL_0078: initobj System.Nullable`1[System.Single]
IL_007E: ldloc.2
IL_007F: ldloca.s 2 (System.Nullable`1[System.Single])
IL_0081: initobj System.Nullable`1[System.Single]
IL_0087: ldloc.2
IL_0088: ldloca.s 3 (System.Nullable`1[Verse.Gender])
IL_008A: initobj System.Nullable`1[Verse.Gender]
IL_0090: ldloc.3
IL_0091: ldnull
IL_0092: ldnull
IL_0093: ldnull
IL_0094: ldnull
IL_0095: ldc.i4.0
IL_0096: ldc.i4.0
IL_0097: ldc.i4.0
IL_0098: ldc.i4.0
IL_0099: ldnull
IL_009A: ldnull
IL_009B: ldnull
IL_009C: ldnull
IL_009D: ldnull
IL_009E: ldc.r4 0
IL_00A3: ldc.i4.8
IL_00A4: ldnull
IL_00A5: ldloca.s 4 (System.Nullable`1[Verse.FloatRange])
IL_00A7: initobj System.Nullable`1[Verse.FloatRange]
IL_00AD: ldloc.s 4 (System.Nullable`1[Verse.FloatRange])
IL_00AF: ldloca.s 4 (System.Nullable`1[Verse.FloatRange])
IL_00B1: initobj System.Nullable`1[Verse.FloatRange]
IL_00B7: ldloc.s 4 (System.Nullable`1[Verse.FloatRange])
IL_00B9: ldc.i4.0
IL_00BA: newobj System.Void
Verse.PawnGenerationRequest::.ctor(Verse.PawnKindDef kind, RimWorld.Faction
faction, RimWorld.PawnGenerationContext context, System.Int32 tile, System.Boolean
forceGenerateNewPawn, System.Boolean allowDead, System.Boolean allowDowned,
System.Boolean canGeneratePawnRelations, System.Boolean mustBeCapableOfViolence,
System.Single colonistRelationChanceFactor, System.Boolean
forceAddFreeWarmLayerIfNeeded, System.Boolean allowGay, System.Boolean
allowPregnant, System.Boolean allowFood, System.Boolean allowAddictions,
System.Boolean inhabitant, System.Boolean certainlyBeenInCryptosleep,
System.Boolean forceRedressWorldPawnIfFormerColonist, System.Boolean
worldPawnFactionDoesntMatter, System.Single biocodeWeaponChance, System.Single
biocodeApparelChance, Verse.Pawn extraPawnForExtraRelationChance, System.Single
relationWithExtraPawnChanceFactor, System.Predicate`1<Verse.Pawn> validatorPreGear,
System.Predicate`1<Verse.Pawn> validatorPostGear,
System.Collections.Generic.IEnumerable`1<RimWorld.TraitDef> forcedTraits,
System.Collections.Generic.IEnumerable`1<RimWorld.TraitDef> prohibitedTraits,
System.Nullable`1<System.Single> minChanceToRedressWorldPawn,
System.Nullable`1<System.Single> fixedBiologicalAge,
System.Nullable`1<System.Single> fixedChronologicalAge,
System.Nullable`1<Verse.Gender> fixedGender, System.String fixedLastName,
System.String fixedBirthName, RimWorld.RoyalTitleDef fixedTitle, RimWorld.Ideo
fixedIdeo, System.Boolean forceNoIdeo, System.Boolean forceNoBackstory,
System.Boolean forbidAnyTitle, System.Boolean forceDead,
System.Collections.Generic.List`1<Verse.GeneDef> forcedXenogenes,
System.Collections.Generic.List`1<Verse.GeneDef> forcedEndogenes,
RimWorld.XenotypeDef forcedXenotype, RimWorld.CustomXenotype forcedCustomXenotype,
System.Collections.Generic.List`1<RimWorld.XenotypeDef> allowedXenotypes,
System.Single forceBaselinerChance, Verse.DevelopmentalStage developmentalStages,
System.Func`2<RimWorld.XenotypeDef, Verse.PawnKindDef> pawnKindDefGetter,
System.Nullable`1<Verse.FloatRange> excludeBiologicalAgeRange,
System.Nullable`1<Verse.FloatRange> biologicalAgeRange, System.Boolean
forceRecruitable)
IL_00BF: call static Verse.Pawn
Verse.PawnGenerator::GeneratePawn(Verse.PawnGenerationRequest request)
IL_00C4: stloc.0
IL_00C5: ldarg.2
IL_00C6: ldarg.1
IL_00C7: ldfld Verse.RaceProperties Verse.ThingDef::race
IL_00CC: ldfld Verse.BodyDef Verse.RaceProperties::body
IL_00D1: ldfld Verse.BodyPartRecord Verse.BodyDef::corePart
IL_00D6: ldfld Verse.BodyPartDef Verse.BodyPartRecord::def
IL_00DB: ldloc.0
IL_00DC: callvirt System.Single Verse.BodyPartDef::GetMaxHealth(Verse.Pawn pawn)
IL_00E1: div
IL_00E2: stloc.1
IL_00E3: call static RimWorld.Planet.WorldPawns Verse.Find::get_WorldPawns()
IL_00E8: ldloc.0
IL_00E9: ldc.i4.2
IL_00EA: callvirt System.Void RimWorld.Planet.WorldPawns::PassToWorld(Verse.Pawn
pawn, RimWorld.Planet.PawnDiscardDecideMode discardMode)
IL_00EF: ldloc.1
IL_00F0: callvirt System.Single Verse.SimpleCurve::Evaluate(System.Single x)
IL_00F5: call static System.Single UnityEngine.Mathf::Clamp01(System.Single
value)
IL_00FA: call static System.String
Verse.GenText::ToStringPercent(System.Single f)
IL_00FF: // end original
IL_00FF: ret
DONE

### Patch: System.Single Verse.<>c::<StunChances>b__2_5(Verse.ThingDef d)


### Replacement: static System.Single
Verse.DamageWorker_Blunt+<>c::Verse.DamageWorker_Blunt+c.<StunChances>b__2_5_Patch0
(Verse.<>c this, Verse.ThingDef d)
IL_0000: Local var 0: Verse.Pawn
IL_0000: Local var 1: System.Nullable`1<System.Single>
IL_0000: Local var 2: System.Nullable`1<Verse.Gender>
IL_0000: Local var 3: System.Nullable`1<Verse.FloatRange>
IL_0000: // start original
IL_0000: ldarg.1
IL_0001: ldfld Verse.RaceProperties Verse.ThingDef::race
IL_0006: callvirt Verse.PawnKindDef Verse.RaceProperties::get_AnyPawnKind()
IL_000B: call static RimWorld.FactionManager Verse.Find::get_FactionManager()
IL_0010: ldarg.1
IL_0011: ldfld Verse.RaceProperties Verse.ThingDef::race
IL_0016: callvirt Verse.PawnKindDef Verse.RaceProperties::get_AnyPawnKind()
IL_001B: ldfld RimWorld.FactionDef Verse.PawnKindDef::defaultFactionType
IL_0020: callvirt RimWorld.Faction
RimWorld.FactionManager::FirstFactionOfDef(RimWorld.FactionDef facDef)
IL_0025: ldc.i4.2
IL_0026: ldc.i4.m1
IL_0027: ldc.i4.1
IL_0028: ldc.i4.0
IL_0029: ldc.i4.0
IL_002A: ldc.i4.1
IL_002B: ldc.i4.0
IL_002C: ldc.r4 1
IL_0031: ldc.i4.0
IL_0032: ldc.i4.1
IL_0033: ldc.i4.0
IL_0034: ldc.i4.1
IL_0035: ldc.i4.1
IL_0036: ldc.i4.0
IL_0037: ldc.i4.0
IL_0038: ldc.i4.0
IL_0039: ldc.i4.0
IL_003A: ldc.r4 0
IL_003F: ldc.r4 0
IL_0044: ldnull
IL_0045: ldc.r4 1
IL_004A: ldnull
IL_004B: ldnull
IL_004C: ldnull
IL_004D: ldnull
IL_004E: ldloca.s 1 (System.Nullable`1[System.Single])
IL_0050: initobj System.Nullable`1[System.Single]
IL_0056: ldloc.1
IL_0057: ldloca.s 1 (System.Nullable`1[System.Single])
IL_0059: initobj System.Nullable`1[System.Single]
IL_005F: ldloc.1
IL_0060: ldloca.s 1 (System.Nullable`1[System.Single])
IL_0062: initobj System.Nullable`1[System.Single]
IL_0068: ldloc.1
IL_0069: ldloca.s 2 (System.Nullable`1[Verse.Gender])
IL_006B: initobj System.Nullable`1[Verse.Gender]
IL_0071: ldloc.2
IL_0072: ldnull
IL_0073: ldnull
IL_0074: ldnull
IL_0075: ldnull
IL_0076: ldc.i4.0
IL_0077: ldc.i4.0
IL_0078: ldc.i4.0
IL_0079: ldc.i4.0
IL_007A: ldnull
IL_007B: ldnull
IL_007C: ldnull
IL_007D: ldnull
IL_007E: ldnull
IL_007F: ldc.r4 0
IL_0084: ldc.i4.8
IL_0085: ldnull
IL_0086: ldloca.s 3 (System.Nullable`1[Verse.FloatRange])
IL_0088: initobj System.Nullable`1[Verse.FloatRange]
IL_008E: ldloc.3
IL_008F: ldloca.s 3 (System.Nullable`1[Verse.FloatRange])
IL_0091: initobj System.Nullable`1[Verse.FloatRange]
IL_0097: ldloc.3
IL_0098: ldc.i4.0
IL_0099: newobj System.Void
Verse.PawnGenerationRequest::.ctor(Verse.PawnKindDef kind, RimWorld.Faction
faction, RimWorld.PawnGenerationContext context, System.Int32 tile, System.Boolean
forceGenerateNewPawn, System.Boolean allowDead, System.Boolean allowDowned,
System.Boolean canGeneratePawnRelations, System.Boolean mustBeCapableOfViolence,
System.Single colonistRelationChanceFactor, System.Boolean
forceAddFreeWarmLayerIfNeeded, System.Boolean allowGay, System.Boolean
allowPregnant, System.Boolean allowFood, System.Boolean allowAddictions,
System.Boolean inhabitant, System.Boolean certainlyBeenInCryptosleep,
System.Boolean forceRedressWorldPawnIfFormerColonist, System.Boolean
worldPawnFactionDoesntMatter, System.Single biocodeWeaponChance, System.Single
biocodeApparelChance, Verse.Pawn extraPawnForExtraRelationChance, System.Single
relationWithExtraPawnChanceFactor, System.Predicate`1<Verse.Pawn> validatorPreGear,
System.Predicate`1<Verse.Pawn> validatorPostGear,
System.Collections.Generic.IEnumerable`1<RimWorld.TraitDef> forcedTraits,
System.Collections.Generic.IEnumerable`1<RimWorld.TraitDef> prohibitedTraits,
System.Nullable`1<System.Single> minChanceToRedressWorldPawn,
System.Nullable`1<System.Single> fixedBiologicalAge,
System.Nullable`1<System.Single> fixedChronologicalAge,
System.Nullable`1<Verse.Gender> fixedGender, System.String fixedLastName,
System.String fixedBirthName, RimWorld.RoyalTitleDef fixedTitle, RimWorld.Ideo
fixedIdeo, System.Boolean forceNoIdeo, System.Boolean forceNoBackstory,
System.Boolean forbidAnyTitle, System.Boolean forceDead,
System.Collections.Generic.List`1<Verse.GeneDef> forcedXenogenes,
System.Collections.Generic.List`1<Verse.GeneDef> forcedEndogenes,
RimWorld.XenotypeDef forcedXenotype, RimWorld.CustomXenotype forcedCustomXenotype,
System.Collections.Generic.List`1<RimWorld.XenotypeDef> allowedXenotypes,
System.Single forceBaselinerChance, Verse.DevelopmentalStage developmentalStages,
System.Func`2<RimWorld.XenotypeDef, Verse.PawnKindDef> pawnKindDefGetter,
System.Nullable`1<Verse.FloatRange> excludeBiologicalAgeRange,
System.Nullable`1<Verse.FloatRange> biologicalAgeRange, System.Boolean
forceRecruitable)
IL_009E: call static Verse.Pawn
Verse.PawnGenerator::GeneratePawn(Verse.PawnGenerationRequest request)
IL_00A3: stloc.0
IL_00A4: ldarg.1
IL_00A5: ldfld Verse.RaceProperties Verse.ThingDef::race
IL_00AA: ldfld Verse.BodyDef Verse.RaceProperties::body
IL_00AF: ldfld Verse.BodyPartRecord Verse.BodyDef::corePart
IL_00B4: ldfld Verse.BodyPartDef Verse.BodyPartRecord::def
IL_00B9: ldloc.0
IL_00BA: callvirt System.Single Verse.BodyPartDef::GetMaxHealth(Verse.Pawn pawn)
IL_00BF: call static RimWorld.Planet.WorldPawns Verse.Find::get_WorldPawns()
IL_00C4: ldloc.0
IL_00C5: ldc.i4.2
IL_00C6: callvirt System.Void RimWorld.Planet.WorldPawns::PassToWorld(Verse.Pawn
pawn, RimWorld.Planet.PawnDiscardDecideMode discardMode)
IL_00CB: // end original
IL_00CB: ret
DONE

### Patch: virtual System.Void


Verse.DamageWorker_Blunt::ApplySpecialEffectsToPart(Verse.Pawn pawn, System.Single
totalDamage, Verse.DamageInfo dinfo, Verse.DamageResult result)
### Replacement: static System.Void
Verse.DamageWorker_Blunt::Verse.DamageWorker_Blunt.ApplySpecialEffectsToPart_Patch0
(Verse.DamageWorker_Blunt this, Verse.Pawn pawn, System.Single totalDamage,
Verse.DamageInfo dinfo, Verse.DamageResult result)
IL_0000: Local var 0: Verse.DamageWorker_Blunt/<>c__DisplayClass1_0
IL_0000: Local var 1: System.Boolean
IL_0000: Local var 2: System.Single
IL_0000: Local var 3: System.Single
IL_0000: Local var 4: Verse.BodyPartRecord
IL_0000: Local var 5: Verse.BodyPartRecord
IL_0000: Local var 6: Verse.DamageInfo
IL_0000: Local var 7: System.Single
IL_0000: Local var 8: Verse.SimpleCurve
IL_0000: Local var 9:
System.Collections.Generic.List`1/Enumerator<Verse.BodyPartRecord>
IL_0000: Local var 10: Verse.BodyPartRecord
IL_0000: Local var 11: System.Single
IL_0000: Local var 12: Verse.DamageInfo
IL_0000: // start original
IL_0000: newobj System.Void Verse.<>c__DisplayClass1_0::.ctor()
IL_0005: stloc.0
IL_0006: ldloc.0
IL_0007: ldarg.1
IL_0008: stfld Verse.Pawn Verse.<>c__DisplayClass1_0::pawn
IL_000D: ldarg.0
IL_000E: ldfld Verse.DamageDef Verse.DamageWorker::def
IL_0013: ldfld System.Single Verse.DamageDef::bluntInnerHitChance
IL_0018: call static System.Boolean Verse.Rand::Chance(System.Single chance)
IL_001D: stloc.1
IL_001E: ldloc.1
IL_001F: brtrue => Label0
IL_0024: ldc.r4 0
IL_0029: br => Label1
IL_002E: Label0
IL_002E: ldarg.0
IL_002F: ldfld Verse.DamageDef Verse.DamageWorker::def
IL_0034: ldflda Verse.FloatRange
Verse.DamageDef::bluntInnerHitDamageFractionToConvert
IL_0039: call System.Single Verse.FloatRange::get_RandomInRange()
IL_003E: Label1
IL_003E: stloc.2
IL_003F: ldarg.2
IL_0040: ldc.r4 1
IL_0045: ldloc.2
IL_0046: sub
IL_0047: mul
IL_0048: stloc.3
IL_0049: ldloc.0
IL_004A: ldarg.3
IL_004B: stfld Verse.DamageInfo Verse.<>c__DisplayClass1_0::lastInfo
IL_0050: Label5
IL_0050: ldloc.3
IL_0051: ldarg.0
IL_0052: ldloc.0
IL_0053: ldfld Verse.Pawn Verse.<>c__DisplayClass1_0::pawn
IL_0058: ldloc.3
IL_0059: ldloc.0
IL_005A: ldfld Verse.DamageInfo Verse.<>c__DisplayClass1_0::lastInfo
IL_005F: ldarg.s 4
IL_0061: call System.Single
Verse.DamageWorker_AddInjury::FinalizeAndAddInjury(Verse.Pawn pawn, System.Single
totalDamage, Verse.DamageInfo dinfo, Verse.DamageResult result)
IL_0066: sub
IL_0067: stloc.3
IL_0068: ldloc.0
IL_0069: ldfld Verse.Pawn Verse.<>c__DisplayClass1_0::pawn
IL_006E: ldfld Verse.Pawn_HealthTracker Verse.Pawn::health
IL_0073: ldfld Verse.HediffSet Verse.Pawn_HealthTracker::hediffSet
IL_0078: ldloc.0
IL_0079: ldflda Verse.DamageInfo Verse.<>c__DisplayClass1_0::lastInfo
IL_007E: call Verse.BodyPartRecord Verse.DamageInfo::get_HitPart()
IL_0083: callvirt System.Boolean
Verse.HediffSet::PartIsMissing(Verse.BodyPartRecord part)
IL_0088: brfalse => Label2
IL_008D: ldloc.3
IL_008E: ldc.r4 1
IL_0093: ble => Label3
IL_0098: ldloc.0
IL_0099: ldflda Verse.DamageInfo Verse.<>c__DisplayClass1_0::lastInfo
IL_009E: call Verse.BodyPartRecord Verse.DamageInfo::get_HitPart()
IL_00A3: ldfld Verse.BodyPartRecord Verse.BodyPartRecord::parent
IL_00A8: stloc.s 4 (Verse.BodyPartRecord)
IL_00AA: ldloc.s 4 (Verse.BodyPartRecord)
IL_00AC: brfalse => Label4
IL_00B1: ldloc.0
IL_00B2: ldflda Verse.DamageInfo Verse.<>c__DisplayClass1_0::lastInfo
IL_00B7: ldloc.s 4 (Verse.BodyPartRecord)
IL_00B9: call System.Void Verse.DamageInfo::SetHitPart(Verse.BodyPartRecord
forceHitPart)
IL_00BE: br => Label5
IL_00C3: Label2
IL_00C3: Label3
IL_00C3: Label4
IL_00C3: ldloc.1
IL_00C4: brfalse => Label6
IL_00C9: ldloc.0
IL_00CA: ldflda Verse.DamageInfo Verse.<>c__DisplayClass1_0::lastInfo
IL_00CF: call Verse.BodyPartRecord Verse.DamageInfo::get_HitPart()
IL_00D4: ldfld Verse.BodyPartDef Verse.BodyPartRecord::def
IL_00D9: ldloc.0
IL_00DA: ldflda Verse.DamageInfo Verse.<>c__DisplayClass1_0::lastInfo
IL_00DF: call Verse.BodyPartRecord Verse.DamageInfo::get_HitPart()
IL_00E4: ldloc.0
IL_00E5: ldfld Verse.Pawn Verse.<>c__DisplayClass1_0::pawn
IL_00EA: ldfld Verse.Pawn_HealthTracker Verse.Pawn::health
IL_00EF: ldfld Verse.HediffSet Verse.Pawn_HealthTracker::hediffSet
IL_00F4: ldfld System.Collections.Generic.List`1<Verse.Hediff>
Verse.HediffSet::hediffs
IL_00F9: callvirt System.Boolean Verse.BodyPartDef::IsSolid(Verse.BodyPartRecord
part, System.Collections.Generic.List`1<Verse.Hediff> hediffs)
IL_00FE: brtrue => Label7
IL_0103: ldloc.0
IL_0104: ldflda Verse.DamageInfo Verse.<>c__DisplayClass1_0::lastInfo
IL_0109: call Verse.BodyPartRecord Verse.DamageInfo::get_HitPart()
IL_010E: ldfld Verse.BodyPartDepth Verse.BodyPartRecord::depth
IL_0113: ldc.i4.2
IL_0114: bne.un => Label8
IL_0119: ldloc.0
IL_011A: ldfld Verse.Pawn Verse.<>c__DisplayClass1_0::pawn
IL_011F: ldfld Verse.Pawn_HealthTracker Verse.Pawn::health
IL_0124: ldfld Verse.HediffSet Verse.Pawn_HealthTracker::hediffSet
IL_0129: ldc.i4.0
IL_012A: ldc.i4.0
IL_012B: ldnull
IL_012C: ldnull
IL_012D: callvirt System.Collections.Generic.IEnumerable`1<Verse.BodyPartRecord>
Verse.HediffSet::GetNotMissingParts(Verse.BodyPartHeight height,
Verse.BodyPartDepth depth, Verse.BodyPartTagDef tag, Verse.BodyPartRecord
partParent)
IL_0132: ldloc.0
IL_0133: ldftn System.Boolean
Verse.<>c__DisplayClass1_0::<ApplySpecialEffectsToPart>b__0(Verse.BodyPartRecord x)
IL_0139: newobj System.Void System.Func`2<Verse.BodyPartRecord,
System.Boolean>::.ctor(System.Object object, System.IntPtr method)
IL_013E: call static
System.Collections.Generic.IEnumerable`1<Verse.BodyPartRecord>
System.Linq.Enumerable::Where(System.Collections.Generic.IEnumerable`1<Verse.BodyPa
rtRecord> source, System.Func`2<Verse.BodyPartRecord, System.Boolean> predicate)
IL_0143: ldsfld System.Func`2<Verse.BodyPartRecord, System.Single>
Verse.<>c::<>9__1_1
IL_0148: dup
IL_0149: brtrue => Label9
IL_014E: pop
IL_014F: ldsfld Verse.<>c Verse.<>c::<>9
IL_0154: ldftn System.Single
Verse.<>c::<ApplySpecialEffectsToPart>b__1_1(Verse.BodyPartRecord x)
IL_015A: newobj System.Void System.Func`2<Verse.BodyPartRecord,
System.Single>::.ctor(System.Object object, System.IntPtr method)
IL_015F: dup
IL_0160: stsfld System.Func`2<Verse.BodyPartRecord, System.Single>
Verse.<>c::<>9__1_1
IL_0165: Label9
IL_0165: ldloca.s 5 (Verse.BodyPartRecord)
IL_0167: call static System.Boolean
Verse.GenCollection::TryRandomElementByWeight(System.Collections.Generic.IEnumerabl
e`1<Verse.BodyPartRecord> source, System.Func`2<Verse.BodyPartRecord,
System.Single> weightSelector, Verse.BodyPartRecord& result)
IL_016C: brfalse => Label10
IL_0171: ldloc.0
IL_0172: ldfld Verse.DamageInfo Verse.<>c__DisplayClass1_0::lastInfo
IL_0177: stloc.s 6 (Verse.DamageInfo)
IL_0179: ldloca.s 6 (Verse.DamageInfo)
IL_017B: ldloc.s 5 (Verse.BodyPartRecord)
IL_017D: call System.Void Verse.DamageInfo::SetHitPart(Verse.BodyPartRecord
forceHitPart)
IL_0182: ldarg.2
IL_0183: ldloc.2
IL_0184: mul
IL_0185: ldarg.2
IL_0186: ldarg.0
IL_0187: ldfld Verse.DamageDef Verse.DamageWorker::def
IL_018C: ldflda Verse.FloatRange
Verse.DamageDef::bluntInnerHitDamageFractionToAdd
IL_0191: call System.Single Verse.FloatRange::get_RandomInRange()
IL_0196: mul
IL_0197: add
IL_0198: stloc.s 7 (System.Single)
IL_019A: ldarg.0
IL_019B: ldloc.0
IL_019C: ldfld Verse.Pawn Verse.<>c__DisplayClass1_0::pawn
IL_01A1: ldloc.s 7 (System.Single)
IL_01A3: ldloc.s 6 (Verse.DamageInfo)
IL_01A5: ldarg.s 4
IL_01A7: call System.Single
Verse.DamageWorker_AddInjury::FinalizeAndAddInjury(Verse.Pawn pawn, System.Single
totalDamage, Verse.DamageInfo dinfo, Verse.DamageResult result)
IL_01AC: pop
IL_01AD: Label6
IL_01AD: Label7
IL_01AD: Label8
IL_01AD: Label10
IL_01AD: ldloc.0
IL_01AE: ldfld Verse.Pawn Verse.<>c__DisplayClass1_0::pawn
IL_01B3: callvirt System.Boolean Verse.Pawn::get_Dead()
IL_01B8: brtrue => Label11
IL_01BD: ldnull
IL_01BE: stloc.s 8 (Verse.SimpleCurve)
IL_01C0: ldloc.0
IL_01C1: ldflda Verse.DamageInfo Verse.<>c__DisplayClass1_0::lastInfo
IL_01C6: call Verse.BodyPartRecord Verse.DamageInfo::get_HitPart()
IL_01CB: ldfld Verse.BodyPartRecord Verse.BodyPartRecord::parent
IL_01D0: brtrue => Label12
IL_01D5: ldarg.0
IL_01D6: ldfld Verse.DamageDef Verse.DamageWorker::def
IL_01DB: ldfld Verse.SimpleCurve
Verse.DamageDef::bluntStunChancePerDamagePctOfCorePartToBodyCurve
IL_01E0: stloc.s 8 (Verse.SimpleCurve)
IL_01E2: br => Label13
IL_01E7: Label12
IL_01E7: ldloc.0
IL_01E8: ldfld Verse.Pawn Verse.<>c__DisplayClass1_0::pawn
IL_01ED: call static Verse.BodyDef
AlienRace.HarmonyPatches::ReplacedBody(Verse.Pawn pawn)
IL_01F2: ldsfld Verse.BodyPartTagDef
RimWorld.BodyPartTagDefOf::ConsciousnessSource
IL_01F7: callvirt System.Collections.Generic.List`1<Verse.BodyPartRecord>
Verse.BodyDef::GetPartsWithTag(Verse.BodyPartTagDef tag)
IL_01FC: callvirt System.Collections.Generic.Enumerator<Verse.BodyPartRecord>
System.Collections.Generic.List`1<Verse.BodyPartRecord>::GetEnumerator()
IL_0201: stloc.s 9
(System.Collections.Generic.List`1+Enumerator[Verse.BodyPartRecord])
.try
{
IL_0203: br => Label14
IL_0208: Label17
IL_0208: ldloca.s 9
(System.Collections.Generic.List`1+Enumerator[Verse.BodyPartRecord])
IL_020A: call virtual Verse.BodyPartRecord
System.Collections.Generic.Enumerator<Verse.BodyPartRecord>::get_Current()
IL_020F: stloc.s 10 (Verse.BodyPartRecord)
IL_0211: ldarg.0
IL_0212: ldloc.s 10 (Verse.BodyPartRecord)
IL_0214: ldloc.0
IL_0215: ldflda Verse.DamageInfo Verse.<>c__DisplayClass1_0::lastInfo
IL_021A: call Verse.BodyPartRecord Verse.DamageInfo::get_HitPart()
IL_021F: call System.Boolean
Verse.DamageWorker_Blunt::InSameBranch(Verse.BodyPartRecord lhs,
Verse.BodyPartRecord rhs)
IL_0224: brfalse => Label15
IL_0229: ldarg.0
IL_022A: ldfld Verse.DamageDef Verse.DamageWorker::def
IL_022F: ldfld Verse.SimpleCurve
Verse.DamageDef::bluntStunChancePerDamagePctOfCorePartToHeadCurve
IL_0234: stloc.s 8 (Verse.SimpleCurve)
IL_0236: leave => Label16
IL_023B: Label14
IL_023B: Label15
IL_023B: ldloca.s 9
(System.Collections.Generic.List`1+Enumerator[Verse.BodyPartRecord])
IL_023D: call virtual System.Boolean
System.Collections.Generic.Enumerator<Verse.BodyPartRecord>::MoveNext()
IL_0242: brtrue => Label17
IL_0247: leave => Label18
IL_024C: leave => (autogenerated)
} // end try
.finally
{
IL_0251: ldloca.s 9
(System.Collections.Generic.List`1+Enumerator[Verse.BodyPartRecord])
IL_0253: constrained.
System.Collections.Generic.List`1+Enumerator[Verse.BodyPartRecord]
IL_0259: callvirt abstract virtual System.Void
System.IDisposable::Dispose()
IL_025E: endfinally
IL_025F: leave => (autogenerated)
} // end handler
IL_0260: Label13
IL_0260: Label16
IL_0260: Label18
IL_0260: ldloc.s 8 (Verse.SimpleCurve)
IL_0262: brfalse => Label19
IL_0267: ldarg.2
IL_0268: ldloc.0
IL_0269: ldfld Verse.Pawn Verse.<>c__DisplayClass1_0::pawn
IL_026E: call static Verse.BodyDef
AlienRace.HarmonyPatches::ReplacedBody(Verse.Pawn pawn)
IL_0273: ldfld Verse.BodyPartRecord Verse.BodyDef::corePart
IL_0278: ldfld Verse.BodyPartDef Verse.BodyPartRecord::def
IL_027D: ldloc.0
IL_027E: ldfld Verse.Pawn Verse.<>c__DisplayClass1_0::pawn
IL_0283: callvirt System.Single Verse.BodyPartDef::GetMaxHealth(Verse.Pawn pawn)
IL_0288: div
IL_0289: stloc.s 11 (System.Single)
IL_028B: ldloc.s 8 (Verse.SimpleCurve)
IL_028D: ldloc.s 11 (System.Single)
IL_028F: callvirt System.Single Verse.SimpleCurve::Evaluate(System.Single x)
IL_0294: call static System.Boolean Verse.Rand::Chance(System.Single chance)
IL_0299: brfalse => Label20
IL_029E: ldarg.3
IL_029F: stloc.s 12 (Verse.DamageInfo)
IL_02A1: ldloca.s 12 (Verse.DamageInfo)
IL_02A3: ldsfld Verse.DamageDef RimWorld.DamageDefOf::Stun
IL_02A8: call System.Void Verse.DamageInfo::set_Def(Verse.DamageDef value)
IL_02AD: ldloca.s 12 (Verse.DamageInfo)
IL_02AF: ldarg.0
IL_02B0: ldfld Verse.DamageDef Verse.DamageWorker::def
IL_02B5: ldfld System.Single Verse.DamageDef::bluntStunDuration
IL_02BA: call static System.Int32
Verse.GenTicks::SecondsToTicks(System.Single numSeconds)
IL_02BF: conv.r4
IL_02C0: ldc.r4 30
IL_02C5: div
IL_02C6: call System.Void Verse.DamageInfo::SetAmount(System.Single
newAmount)
IL_02CB: ldloc.0
IL_02CC: ldfld Verse.Pawn Verse.<>c__DisplayClass1_0::pawn
IL_02D1: ldloc.s 12 (Verse.DamageInfo)
IL_02D3: callvirt Verse.DamageResult Verse.Thing::TakeDamage(Verse.DamageInfo
dinfo)
IL_02D8: pop
IL_02D9: // end original
IL_02D9: Label11
IL_02D9: Label19
IL_02D9: Label20
IL_02D9: ret
DONE

### Patch: static System.Boolean


Verse.HealthUtility::ShouldRandomSurgeryInjuriesAvoidDestroying(Verse.BodyPartRecor
d part, Verse.Pawn pawn)
### Replacement: static System.Boolean
Verse.HealthUtility::Verse.HealthUtility.ShouldRandomSurgeryInjuriesAvoidDestroying
_Patch0(Verse.BodyPartRecord part, Verse.Pawn pawn)
IL_0000: Local var 0: System.Int32
IL_0000: // start original
IL_0000: ldarg.0
IL_0001: ldarg.1
IL_0002: call static Verse.BodyDef
AlienRace.HarmonyPatches::ReplacedBody(Verse.Pawn pawn)
IL_0007: ldfld Verse.BodyPartRecord Verse.BodyDef::corePart
IL_000C: bne.un => Label0
IL_0011: ldc.i4.1
IL_0012: br => Label6
IL_0017: Label0
IL_0017: ldarg.0
IL_0018: ldfld Verse.BodyPartDef Verse.BodyPartRecord::def
IL_001D: ldfld System.Collections.Generic.List`1<Verse.BodyPartTagDef>
Verse.BodyPartDef::tags
IL_0022: ldsfld System.Predicate`1<Verse.BodyPartTagDef> Verse.<>c::<>9__14_0
IL_0027: dup
IL_0028: brtrue => Label1
IL_002D: pop
IL_002E: ldsfld Verse.<>c Verse.<>c::<>9
IL_0033: ldftn System.Boolean
Verse.<>c::<ShouldRandomSurgeryInjuriesAvoidDestroying>b__14_0(Verse.BodyPartTagDef
x)
IL_0039: newobj System.Void
System.Predicate`1<Verse.BodyPartTagDef>::.ctor(System.Object object, System.IntPtr
method)
IL_003E: dup
IL_003F: stsfld System.Predicate`1<Verse.BodyPartTagDef> Verse.<>c::<>9__14_0
IL_0044: Label1
IL_0044: call static System.Boolean
Verse.GenCollection::Any(System.Collections.Generic.List`1<Verse.BodyPartTagDef>
list, System.Predicate`1<Verse.BodyPartTagDef> predicate)
IL_0049: brfalse => Label2
IL_004E: ldc.i4.1
IL_004F: br => Label7
IL_0054: Label2
IL_0054: ldc.i4.0
IL_0055: stloc.0
IL_0056: br => Label3
IL_005B: Label5
IL_005B: ldarg.0
IL_005C: ldfld System.Collections.Generic.List`1<Verse.BodyPartRecord>
Verse.BodyPartRecord::parts
IL_0061: ldloc.0
IL_0062: callvirt virtual Verse.BodyPartRecord
System.Collections.Generic.List`1<Verse.BodyPartRecord>::get_Item(System.Int32
index)
IL_0067: ldarg.1
IL_0068: call static System.Boolean
Verse.HealthUtility::ShouldRandomSurgeryInjuriesAvoidDestroying(Verse.BodyPartRecor
d part, Verse.Pawn pawn)
IL_006D: brfalse => Label4
IL_0072: ldc.i4.1
IL_0073: br => Label8
IL_0078: Label4
IL_0078: ldloc.0
IL_0079: ldc.i4.1
IL_007A: add
IL_007B: stloc.0
IL_007C: Label3
IL_007C: ldloc.0
IL_007D: ldarg.0
IL_007E: ldfld System.Collections.Generic.List`1<Verse.BodyPartRecord>
Verse.BodyPartRecord::parts
IL_0083: callvirt virtual System.Int32
System.Collections.Generic.List`1<Verse.BodyPartRecord>::get_Count()
IL_0088: blt => Label5
IL_008D: ldc.i4.0
IL_008E: // end original
IL_008E: Label6
IL_008E: Label7
IL_008E: Label8
IL_008E: ret
DONE

### Patch: static Verse.TaggedString


Verse.HealthUtility::FixWorstHealthCondition(Verse.Pawn pawn)
### Replacement: static Verse.TaggedString
Verse.HealthUtility::Verse.HealthUtility.FixWorstHealthCondition_Patch0(Verse.Pawn
pawn)
IL_0000: Local var 0: Verse.Hediff
IL_0000: Local var 1: System.Single
IL_0000: Local var 2: Verse.BodyPartRecord
IL_0000: Local var 3: Verse.Hediff_Injury
IL_0000: Local var 4: Verse.Hediff
IL_0000: Local var 5: Verse.Hediff
IL_0000: Local var 6: Verse.Hediff
IL_0000: Local var 7: Verse.BodyPartRecord
IL_0000: Local var 8: RimWorld.Hediff_Addiction
IL_0000: Local var 9: Verse.Hediff_Injury
IL_0000: Local var 10: Verse.Hediff_Injury
IL_0000: Local var 11: Verse.Hediff
IL_0000: Local var 12: Verse.Hediff_Injury
IL_0000: Local var 13: Verse.Hediff_Injury
IL_0000: // start original
IL_0000: ldarg.0
IL_0001: call static Verse.Hediff
Verse.HealthUtility::FindLifeThreateningHediff(Verse.Pawn pawn)
IL_0006: stloc.0
IL_0007: ldloc.0
IL_0008: brfalse => Label0
IL_000D: ldloc.0
IL_000E: call static Verse.TaggedString
Verse.HealthUtility::Cure(Verse.Hediff hediff)
IL_0013: br => Label17
IL_0018: Label0
IL_0018: ldarg.0
IL_0019: call static System.Int32
Verse.HealthUtility::TicksUntilDeathDueToBloodLoss(Verse.Pawn pawn)
IL_001E: ldc.i4 2500
IL_0023: bge => Label1
IL_0028: ldarg.0
IL_0029: call static Verse.Hediff
Verse.HealthUtility::FindMostBleedingHediff(Verse.Pawn pawn)
IL_002E: stloc.s 11 (Verse.Hediff)
IL_0030: ldloc.s 11 (Verse.Hediff)
IL_0032: brfalse => Label2
IL_0037: ldloc.s 11 (Verse.Hediff)
IL_0039: call static Verse.TaggedString
Verse.HealthUtility::Cure(Verse.Hediff hediff)
IL_003E: br => Label18
IL_0043: Label1
IL_0043: Label2
IL_0043: ldarg.0
IL_0044: ldfld Verse.Pawn_HealthTracker Verse.Pawn::health
IL_0049: ldfld Verse.HediffSet Verse.Pawn_HealthTracker::hediffSet
IL_004E: callvirt Verse.BodyPartRecord Verse.HediffSet::GetBrain()
IL_0053: brfalse => Label3
IL_0058: ldarg.0
IL_0059: ldarg.0
IL_005A: ldfld Verse.Pawn_HealthTracker Verse.Pawn::health
IL_005F: ldfld Verse.HediffSet Verse.Pawn_HealthTracker::hediffSet
IL_0064: callvirt Verse.BodyPartRecord Verse.HediffSet::GetBrain()
IL_0069: call static
System.Collections.Generic.IEnumerable`1<Verse.BodyPartRecord>
Verse.Gen::YieldSingle(Verse.BodyPartRecord val)
IL_006E: call static Verse.Hediff_Injury
Verse.HealthUtility::FindPermanentInjury(Verse.Pawn pawn,
System.Collections.Generic.IEnumerable`1<Verse.BodyPartRecord> allowedBodyParts)
IL_0073: stloc.s 12 (Verse.Hediff_Injury)
IL_0075: ldloc.s 12 (Verse.Hediff_Injury)
IL_0077: brfalse => Label4
IL_007C: ldloc.s 12 (Verse.Hediff_Injury)
IL_007E: call static Verse.TaggedString
Verse.HealthUtility::Cure(Verse.Hediff hediff)
IL_0083: br => Label19
IL_0088: Label3
IL_0088: Label4
IL_0088: ldsfld Verse.ThingDef RimWorld.ThingDefOf::Human
IL_008D: ldfld Verse.RaceProperties Verse.ThingDef::race
IL_0092: ldfld Verse.BodyDef Verse.RaceProperties::body
IL_0097: ldsfld Verse.BodyPartDef RimWorld.BodyPartDefOf::Hand
IL_009C: callvirt System.Collections.Generic.List`1<Verse.BodyPartRecord>
Verse.BodyDef::GetPartsWithDef(Verse.BodyPartDef def)
IL_00A1: call static Verse.BodyPartRecord
System.Linq.Enumerable::First(System.Collections.Generic.IEnumerable`1<Verse.BodyPa
rtRecord> source)
IL_00A6: ldfld System.Single Verse.BodyPartRecord::coverageAbsWithChildren
IL_00AB: stloc.1
IL_00AC: ldarg.0
IL_00AD: ldloc.1
IL_00AE: call static Verse.BodyPartRecord
Verse.HealthUtility::FindBiggestMissingBodyPart(Verse.Pawn pawn, System.Single
minCoverage)
IL_00B3: stloc.2
IL_00B4: ldloc.2
IL_00B5: brfalse => Label5
IL_00BA: ldloc.2
IL_00BB: ldarg.0
IL_00BC: call static Verse.TaggedString
Verse.HealthUtility::Cure(Verse.BodyPartRecord part, Verse.Pawn pawn)
IL_00C1: br => Label20
IL_00C6: Label5
IL_00C6: ldarg.0
IL_00C7: ldarg.0
IL_00C8: ldfld Verse.Pawn_HealthTracker Verse.Pawn::health
IL_00CD: ldfld Verse.HediffSet Verse.Pawn_HealthTracker::hediffSet
IL_00D2: ldc.i4.0
IL_00D3: ldc.i4.0
IL_00D4: ldnull
IL_00D5: ldnull
IL_00D6: callvirt System.Collections.Generic.IEnumerable`1<Verse.BodyPartRecord>
Verse.HediffSet::GetNotMissingParts(Verse.BodyPartHeight height,
Verse.BodyPartDepth depth, Verse.BodyPartTagDef tag, Verse.BodyPartRecord
partParent)
IL_00DB: ldsfld System.Func`2<Verse.BodyPartRecord, System.Boolean>
Verse.<>c::<>9__26_0
IL_00E0: dup
IL_00E1: brtrue => Label6
IL_00E6: pop
IL_00E7: ldsfld Verse.<>c Verse.<>c::<>9
IL_00EC: ldftn System.Boolean
Verse.<>c::<FixWorstHealthCondition>b__26_0(Verse.BodyPartRecord x)
IL_00F2: newobj System.Void System.Func`2<Verse.BodyPartRecord,
System.Boolean>::.ctor(System.Object object, System.IntPtr method)
IL_00F7: dup
IL_00F8: stsfld System.Func`2<Verse.BodyPartRecord, System.Boolean>
Verse.<>c::<>9__26_0
IL_00FD: Label6
IL_00FD: call static
System.Collections.Generic.IEnumerable`1<Verse.BodyPartRecord>
System.Linq.Enumerable::Where(System.Collections.Generic.IEnumerable`1<Verse.BodyPa
rtRecord> source, System.Func`2<Verse.BodyPartRecord, System.Boolean> predicate)
IL_0102: call static Verse.Hediff_Injury
Verse.HealthUtility::FindPermanentInjury(Verse.Pawn pawn,
System.Collections.Generic.IEnumerable`1<Verse.BodyPartRecord> allowedBodyParts)
IL_0107: stloc.3
IL_0108: ldloc.3
IL_0109: brfalse => Label7
IL_010E: ldloc.3
IL_010F: call static Verse.TaggedString
Verse.HealthUtility::Cure(Verse.Hediff hediff)
IL_0114: br => Label21
IL_0119: Label7
IL_0119: ldarg.0
IL_011A: call static Verse.Hediff
Verse.HealthUtility::FindImmunizableHediffWhichCanKill(Verse.Pawn pawn)
IL_011F: stloc.s 4 (Verse.Hediff)
IL_0121: ldloc.s 4 (Verse.Hediff)
IL_0123: brfalse => Label8
IL_0128: ldloc.s 4 (Verse.Hediff)
IL_012A: call static Verse.TaggedString
Verse.HealthUtility::Cure(Verse.Hediff hediff)
IL_012F: br => Label22
IL_0134: Label8
IL_0134: ldarg.0
IL_0135: ldc.i4.1
IL_0136: call static Verse.Hediff
Verse.HealthUtility::FindNonInjuryMiscBadHediff(Verse.Pawn pawn, System.Boolean
onlyIfCanKill)
IL_013B: stloc.s 5 (Verse.Hediff)
IL_013D: ldloc.s 5 (Verse.Hediff)
IL_013F: brfalse => Label9
IL_0144: ldloc.s 5 (Verse.Hediff)
IL_0146: call static Verse.TaggedString
Verse.HealthUtility::Cure(Verse.Hediff hediff)
IL_014B: br => Label23
IL_0150: Label9
IL_0150: ldarg.0
IL_0151: ldc.i4.0
IL_0152: call static Verse.Hediff
Verse.HealthUtility::FindNonInjuryMiscBadHediff(Verse.Pawn pawn, System.Boolean
onlyIfCanKill)
IL_0157: stloc.s 6 (Verse.Hediff)
IL_0159: ldloc.s 6 (Verse.Hediff)
IL_015B: brfalse => Label10
IL_0160: ldloc.s 6 (Verse.Hediff)
IL_0162: call static Verse.TaggedString
Verse.HealthUtility::Cure(Verse.Hediff hediff)
IL_0167: br => Label24
IL_016C: Label10
IL_016C: ldarg.0
IL_016D: ldfld Verse.Pawn_HealthTracker Verse.Pawn::health
IL_0172: ldfld Verse.HediffSet Verse.Pawn_HealthTracker::hediffSet
IL_0177: callvirt Verse.BodyPartRecord Verse.HediffSet::GetBrain()
IL_017C: brfalse => Label11
IL_0181: ldarg.0
IL_0182: ldarg.0
IL_0183: ldfld Verse.Pawn_HealthTracker Verse.Pawn::health
IL_0188: ldfld Verse.HediffSet Verse.Pawn_HealthTracker::hediffSet
IL_018D: callvirt Verse.BodyPartRecord Verse.HediffSet::GetBrain()
IL_0192: call static
System.Collections.Generic.IEnumerable`1<Verse.BodyPartRecord>
Verse.Gen::YieldSingle(Verse.BodyPartRecord val)
IL_0197: call static Verse.Hediff_Injury
Verse.HealthUtility::FindInjury(Verse.Pawn pawn,
System.Collections.Generic.IEnumerable`1<Verse.BodyPartRecord> allowedBodyParts)
IL_019C: stloc.s 13 (Verse.Hediff_Injury)
IL_019E: ldloc.s 13 (Verse.Hediff_Injury)
IL_01A0: brfalse => Label12
IL_01A5: ldloc.s 13 (Verse.Hediff_Injury)
IL_01A7: call static Verse.TaggedString
Verse.HealthUtility::Cure(Verse.Hediff hediff)
IL_01AC: br => Label25
IL_01B1: Label11
IL_01B1: Label12
IL_01B1: ldarg.0
IL_01B2: ldc.r4 0
IL_01B7: call static Verse.BodyPartRecord
Verse.HealthUtility::FindBiggestMissingBodyPart(Verse.Pawn pawn, System.Single
minCoverage)
IL_01BC: stloc.s 7 (Verse.BodyPartRecord)
IL_01BE: ldloc.s 7 (Verse.BodyPartRecord)
IL_01C0: brfalse => Label13
IL_01C5: ldloc.s 7 (Verse.BodyPartRecord)
IL_01C7: ldarg.0
IL_01C8: call static Verse.TaggedString
Verse.HealthUtility::Cure(Verse.BodyPartRecord part, Verse.Pawn pawn)
IL_01CD: br => Label26
IL_01D2: Label13
IL_01D2: ldarg.0
IL_01D3: call static RimWorld.Hediff_Addiction
Verse.HealthUtility::FindAddiction(Verse.Pawn pawn)
IL_01D8: stloc.s 8 (RimWorld.Hediff_Addiction)
IL_01DA: ldloc.s 8 (RimWorld.Hediff_Addiction)
IL_01DC: brfalse => Label14
IL_01E1: ldloc.s 8 (RimWorld.Hediff_Addiction)
IL_01E3: call static Verse.TaggedString
Verse.HealthUtility::Cure(Verse.Hediff hediff)
IL_01E8: br => Label27
IL_01ED: Label14
IL_01ED: ldarg.0
IL_01EE: ldnull
IL_01EF: call static Verse.Hediff_Injury
Verse.HealthUtility::FindPermanentInjury(Verse.Pawn pawn,
System.Collections.Generic.IEnumerable`1<Verse.BodyPartRecord> allowedBodyParts)
IL_01F4: stloc.s 9 (Verse.Hediff_Injury)
IL_01F6: ldloc.s 9 (Verse.Hediff_Injury)
IL_01F8: brfalse => Label15
IL_01FD: ldloc.s 9 (Verse.Hediff_Injury)
IL_01FF: call static Verse.TaggedString
Verse.HealthUtility::Cure(Verse.Hediff hediff)
IL_0204: br => Label28
IL_0209: Label15
IL_0209: ldarg.0
IL_020A: ldnull
IL_020B: call static Verse.Hediff_Injury
Verse.HealthUtility::FindInjury(Verse.Pawn pawn,
System.Collections.Generic.IEnumerable`1<Verse.BodyPartRecord> allowedBodyParts)
IL_0210: stloc.s 10 (Verse.Hediff_Injury)
IL_0212: ldloc.s 10 (Verse.Hediff_Injury)
IL_0214: brfalse => Label16
IL_0219: ldloc.s 10 (Verse.Hediff_Injury)
IL_021B: call static Verse.TaggedString
Verse.HealthUtility::Cure(Verse.Hediff hediff)
IL_0220: br => Label29
IL_0225: Label16
IL_0225: ldnull
IL_0226: call static Verse.TaggedString
Verse.TaggedString::op_Implicit(System.String str)
IL_022B: // end original
IL_022B: Label17
IL_022B: Label18
IL_022B: Label19
IL_022B: Label20
IL_022B: Label21
IL_022B: Label22
IL_022B: Label23
IL_022B: Label24
IL_022B: Label25
IL_022B: Label26
IL_022B: Label27
IL_022B: Label28
IL_022B: Label29
IL_022B: ret
DONE

### Patch: virtual System.Void Verse.Hediff::Tick()


### Replacement: static System.Void
Verse.Hediff::Verse.Hediff.Tick_Patch0(Verse.Hediff this)
IL_0000: Local var 0: Verse.HediffStage
IL_0000: Local var 1: System.Int32
IL_0000: Local var 2: System.Int32
IL_0000: Local var 3: System.Int32
IL_0000: Local var 4: Verse.MentalStateGiver
IL_0000: Local var 5: System.Nullable`1<Verse.AI.JobTag>
IL_0000: Local var 6: System.Nullable`1<System.Boolean>
IL_0000: Local var 7: RimWorld.Thought_Memory
IL_0000: Local var 8: System.Nullable`1<Verse.DamageInfo>
IL_0000: // start original
IL_0000: ldarg.0
IL_0001: ldarg.0
IL_0002: ldfld System.Int32 Verse.Hediff::ageTicks
IL_0007: ldc.i4.1
IL_0008: add
IL_0009: stfld System.Int32 Verse.Hediff::ageTicks
IL_000E: ldarg.0
IL_000F: ldfld Verse.HediffDef Verse.Hediff::def
IL_0014: ldfld System.Collections.Generic.List`1<Verse.HediffGiver>
Verse.HediffDef::hediffGivers
IL_0019: brfalse => Label0
IL_001E: ldarg.0
IL_001F: ldfld Verse.Pawn Verse.Hediff::pawn
IL_0024: ldc.i4.s 60
IL_0026: call static System.Boolean Verse.Gen::IsHashIntervalTick(Verse.Thing
t, System.Int32 interval)
IL_002B: brfalse => Label1
IL_0030: ldc.i4.0
IL_0031: stloc.1
IL_0032: br => Label2
IL_0037: Label3
IL_0037: ldarg.0
IL_0038: ldfld Verse.HediffDef Verse.Hediff::def
IL_003D: ldfld System.Collections.Generic.List`1<Verse.HediffGiver>
Verse.HediffDef::hediffGivers
IL_0042: ldloc.1
IL_0043: callvirt virtual Verse.HediffGiver
System.Collections.Generic.List`1<Verse.HediffGiver>::get_Item(System.Int32 index)
IL_0048: ldarg.0
IL_0049: ldfld Verse.Pawn Verse.Hediff::pawn
IL_004E: ldarg.0
IL_004F: callvirt virtual System.Void
Verse.HediffGiver::OnIntervalPassed(Verse.Pawn pawn, Verse.Hediff cause)
IL_0054: ldloc.1
IL_0055: ldc.i4.1
IL_0056: add
IL_0057: stloc.1
IL_0058: Label2
IL_0058: ldloc.1
IL_0059: ldarg.0
IL_005A: ldfld Verse.HediffDef Verse.Hediff::def
IL_005F: ldfld System.Collections.Generic.List`1<Verse.HediffGiver>
Verse.HediffDef::hediffGivers
IL_0064: callvirt virtual System.Int32
System.Collections.Generic.List`1<Verse.HediffGiver>::get_Count()
IL_0069: blt => Label3
IL_006E: Label0
IL_006E: Label1
IL_006E: ldarg.0
IL_006F: callvirt virtual System.Boolean Verse.Hediff::get_Visible()
IL_0074: brfalse => Label4
IL_0079: ldarg.0
IL_007A: ldfld System.Boolean Verse.Hediff::visible
IL_007F: brtrue => Label5
IL_0084: ldarg.0
IL_0085: ldc.i4.1
IL_0086: stfld System.Boolean Verse.Hediff::visible
IL_008B: ldarg.0
IL_008C: ldfld Verse.HediffDef Verse.Hediff::def
IL_0091: ldfld RimWorld.TaleDef Verse.HediffDef::taleOnVisible
IL_0096: brfalse => Label6
IL_009B: ldarg.0
IL_009C: ldfld Verse.HediffDef Verse.Hediff::def
IL_00A1: ldfld RimWorld.TaleDef Verse.HediffDef::taleOnVisible
IL_00A6: ldc.i4.2
IL_00A7: newarr System.Object
IL_00AC: dup
IL_00AD: ldc.i4.0
IL_00AE: ldarg.0
IL_00AF: ldfld Verse.Pawn Verse.Hediff::pawn
IL_00B4: stelem.ref
IL_00B5: dup
IL_00B6: ldc.i4.1
IL_00B7: ldarg.0
IL_00B8: ldfld Verse.HediffDef Verse.Hediff::def
IL_00BD: stelem.ref
IL_00BE: call static RimWorld.Tale
RimWorld.TaleRecorder::RecordTale(RimWorld.TaleDef def, System.Object[] args)
IL_00C3: pop
IL_00C4: Label4
IL_00C4: Label5
IL_00C4: Label6
IL_00C4: ldarg.0
IL_00C5: callvirt virtual Verse.HediffStage Verse.Hediff::get_CurStage()
IL_00CA: stloc.0
IL_00CB: ldloc.0
IL_00CC: brfalse => Label7
IL_00D1: ldloc.0
IL_00D2: ldfld System.Collections.Generic.List`1<Verse.HediffGiver>
Verse.HediffStage::hediffGivers
IL_00D7: brfalse => Label8
IL_00DC: ldarg.0
IL_00DD: ldfld Verse.Pawn Verse.Hediff::pawn
IL_00E2: ldc.i4.s 60
IL_00E4: call static System.Boolean Verse.Gen::IsHashIntervalTick(Verse.Thing
t, System.Int32 interval)
IL_00E9: brfalse => Label9
IL_00EE: ldc.i4.0
IL_00EF: stloc.2
IL_00F0: br => Label10
IL_00F5: Label11
IL_00F5: ldloc.0
IL_00F6: ldfld System.Collections.Generic.List`1<Verse.HediffGiver>
Verse.HediffStage::hediffGivers
IL_00FB: ldloc.2
IL_00FC: callvirt virtual Verse.HediffGiver
System.Collections.Generic.List`1<Verse.HediffGiver>::get_Item(System.Int32 index)
IL_0101: ldarg.0
IL_0102: ldfld Verse.Pawn Verse.Hediff::pawn
IL_0107: ldarg.0
IL_0108: callvirt virtual System.Void
Verse.HediffGiver::OnIntervalPassed(Verse.Pawn pawn, Verse.Hediff cause)
IL_010D: ldloc.2
IL_010E: ldc.i4.1
IL_010F: add
IL_0110: stloc.2
IL_0111: Label10
IL_0111: ldloc.2
IL_0112: ldloc.0
IL_0113: ldfld System.Collections.Generic.List`1<Verse.HediffGiver>
Verse.HediffStage::hediffGivers
IL_0118: callvirt virtual System.Int32
System.Collections.Generic.List`1<Verse.HediffGiver>::get_Count()
IL_011D: blt => Label11
IL_0122: Label8
IL_0122: Label9
IL_0122: ldloc.0
IL_0123: ldfld System.Collections.Generic.List`1<Verse.MentalStateGiver>
Verse.HediffStage::mentalStateGivers
IL_0128: brfalse => Label12
IL_012D: ldarg.0
IL_012E: ldfld Verse.Pawn Verse.Hediff::pawn
IL_0133: ldc.i4.s 60
IL_0135: call static System.Boolean Verse.Gen::IsHashIntervalTick(Verse.Thing
t, System.Int32 interval)
IL_013A: brfalse => Label13
IL_013F: ldarg.0
IL_0140: ldfld Verse.Pawn Verse.Hediff::pawn
IL_0145: callvirt System.Boolean Verse.Pawn::get_InMentalState()
IL_014A: brtrue => Label14
IL_014F: ldc.i4.0
IL_0150: stloc.3
IL_0151: br => Label15
IL_0156: Label17
IL_0156: ldloc.0
IL_0157: ldfld System.Collections.Generic.List`1<Verse.MentalStateGiver>
Verse.HediffStage::mentalStateGivers
IL_015C: ldloc.3
IL_015D: callvirt virtual Verse.MentalStateGiver
System.Collections.Generic.List`1<Verse.MentalStateGiver>::get_Item(System.Int32
index)
IL_0162: stloc.s 4 (Verse.MentalStateGiver)
IL_0164: ldloc.s 4 (Verse.MentalStateGiver)
IL_0166: ldfld System.Single Verse.MentalStateGiver::mtbDays
IL_016B: ldc.r4 60000
IL_0170: ldc.r4 60
IL_0175: call static System.Boolean Verse.Rand::MTBEventOccurs(System.Single
mtb, System.Single mtbUnit, System.Single checkDuration)
IL_017A: brfalse => Label16
IL_017F: ldarg.0
IL_0180: ldfld Verse.Pawn Verse.Hediff::pawn
IL_0185: ldfld Verse.AI.Pawn_MindState Verse.Pawn::mindState
IL_018A: ldfld Verse.AI.MentalStateHandler
Verse.AI.Pawn_MindState::mentalStateHandler
IL_018F: ldloc.s 4 (Verse.MentalStateGiver)
IL_0191: ldfld Verse.MentalStateDef Verse.MentalStateGiver::mentalState
IL_0196: ldstr "MentalStateReason_Hediff"
IL_019B: ldarg.0
IL_019C: callvirt virtual System.String Verse.Hediff::get_Label()
IL_01A1: call static Verse.NamedArgument
Verse.NamedArgument::op_Implicit(System.String value)
IL_01A6: call static Verse.TaggedString
Verse.TranslatorFormattedStringExtensions::Translate(System.String key,
Verse.NamedArgument arg1)
IL_01AB: call static System.String
Verse.TaggedString::op_Implicit(Verse.TaggedString taggedString)
IL_01B0: ldc.i4.0
IL_01B1: ldc.i4.0
IL_01B2: ldnull
IL_01B3: ldc.i4.0
IL_01B4: ldc.i4.0
IL_01B5: ldc.i4.0
IL_01B6: callvirt System.Boolean
Verse.AI.MentalStateHandler::TryStartMentalState(Verse.MentalStateDef stateDef,
System.String reason, System.Boolean forceWake, System.Boolean causedByMood,
Verse.Pawn otherPawn, System.Boolean transitionSilently, System.Boolean
causedByDamage, System.Boolean causedByPsycast)
IL_01BB: pop
IL_01BC: Label16
IL_01BC: ldloc.3
IL_01BD: ldc.i4.1
IL_01BE: add
IL_01BF: stloc.3
IL_01C0: Label15
IL_01C0: ldloc.3
IL_01C1: ldloc.0
IL_01C2: ldfld System.Collections.Generic.List`1<Verse.MentalStateGiver>
Verse.HediffStage::mentalStateGivers
IL_01C7: callvirt virtual System.Int32
System.Collections.Generic.List`1<Verse.MentalStateGiver>::get_Count()
IL_01CC: blt => Label17
IL_01D1: Label12
IL_01D1: Label13
IL_01D1: Label14
IL_01D1: ldloc.0
IL_01D2: ldfld System.Single Verse.HediffStage::mentalBreakMtbDays
IL_01D7: ldc.r4 0
IL_01DC: ble.un => Label18
IL_01E1: ldarg.0
IL_01E2: ldfld Verse.Pawn Verse.Hediff::pawn
IL_01E7: ldc.i4.s 60
IL_01E9: call static System.Boolean Verse.Gen::IsHashIntervalTick(Verse.Thing
t, System.Int32 interval)
IL_01EE: brfalse => Label19
IL_01F3: ldarg.0
IL_01F4: ldfld Verse.Pawn Verse.Hediff::pawn
IL_01F9: callvirt System.Boolean Verse.Pawn::get_InMentalState()
IL_01FE: brtrue => Label20
IL_0203: ldarg.0
IL_0204: ldfld Verse.Pawn Verse.Hediff::pawn
IL_0209: callvirt System.Boolean Verse.Pawn::get_Downed()
IL_020E: brtrue => Label21
IL_0213: ldloc.0
IL_0214: ldfld System.Single Verse.HediffStage::mentalBreakMtbDays
IL_0219: ldc.r4 60000
IL_021E: ldc.r4 60
IL_0223: call static System.Boolean Verse.Rand::MTBEventOccurs(System.Single
mtb, System.Single mtbUnit, System.Single checkDuration)
IL_0228: brfalse => Label22
IL_022D: ldarg.0
IL_022E: call System.Void Verse.Hediff::TryDoRandomMentalBreak()
IL_0233: Label18
IL_0233: Label19
IL_0233: Label20
IL_0233: Label21
IL_0233: Label22
IL_0233: ldloc.0
IL_0234: ldfld System.Single Verse.HediffStage::vomitMtbDays
IL_0239: ldc.r4 0
IL_023E: ble.un => Label23
IL_0243: ldarg.0
IL_0244: ldfld Verse.Pawn Verse.Hediff::pawn
IL_0249: ldc.i4 600
IL_024E: call static System.Boolean Verse.Gen::IsHashIntervalTick(Verse.Thing
t, System.Int32 interval)
IL_0253: brfalse => Label24
IL_0258: ldloc.0
IL_0259: ldfld System.Single Verse.HediffStage::vomitMtbDays
IL_025E: ldc.r4 60000
IL_0263: ldc.r4 600
IL_0268: call static System.Boolean Verse.Rand::MTBEventOccurs(System.Single
mtb, System.Single mtbUnit, System.Single checkDuration)
IL_026D: brfalse => Label25
IL_0272: ldarg.0
IL_0273: ldfld Verse.Pawn Verse.Hediff::pawn
IL_0278: callvirt System.Boolean Verse.Thing::get_Spawned()
IL_027D: brfalse => Label26
IL_0282: ldarg.0
IL_0283: ldfld Verse.Pawn Verse.Hediff::pawn
IL_0288: call static System.Boolean RimWorld.RestUtility::Awake(Verse.Pawn p)
IL_028D: brfalse => Label27
IL_0292: ldarg.0
IL_0293: ldfld Verse.Pawn Verse.Hediff::pawn
IL_0298: callvirt Verse.RaceProperties Verse.Pawn::get_RaceProps()
IL_029D: callvirt System.Boolean Verse.RaceProperties::get_IsFlesh()
IL_02A2: brfalse => Label28
IL_02A7: ldarg.0
IL_02A8: ldfld Verse.Pawn Verse.Hediff::pawn
IL_02AD: ldfld Verse.AI.Pawn_JobTracker Verse.Pawn::jobs
IL_02B2: ldsfld Verse.JobDef RimWorld.JobDefOf::Vomit
IL_02B7: call static Verse.AI.Job Verse.JobMaker::MakeJob(Verse.JobDef def)
IL_02BC: ldc.i4.5
IL_02BD: ldnull
IL_02BE: ldc.i4.1
IL_02BF: ldc.i4.1
IL_02C0: ldnull
IL_02C1: ldloca.s 5 (System.Nullable`1[Verse.AI.JobTag])
IL_02C3: initobj System.Nullable`1[Verse.AI.JobTag]
IL_02C9: ldloc.s 5 (System.Nullable`1[Verse.AI.JobTag])
IL_02CB: ldc.i4.0
IL_02CC: ldc.i4.0
IL_02CD: ldloca.s 6 (System.Nullable`1[System.Boolean])
IL_02CF: initobj System.Nullable`1[System.Boolean]
IL_02D5: ldloc.s 6 (System.Nullable`1[System.Boolean])
IL_02D7: ldc.i4.0
IL_02D8: ldc.i4.1
IL_02D9: callvirt System.Void Verse.AI.Pawn_JobTracker::StartJob(Verse.AI.Job
newJob, Verse.AI.JobCondition lastJobEndCondition, Verse.AI.ThinkNode jobGiver,
System.Boolean resumeCurJobAfterwards, System.Boolean cancelBusyStances,
Verse.ThinkTreeDef thinkTree, System.Nullable`1<Verse.AI.JobTag> tag,
System.Boolean fromQueue, System.Boolean canReturnCurJobToPool,
System.Nullable`1<System.Boolean> keepCarryingThingOverride, System.Boolean
continueSleeping, System.Boolean addToJobsThisTick)
IL_02DE: Label23
IL_02DE: Label24
IL_02DE: Label25
IL_02DE: Label26
IL_02DE: Label27
IL_02DE: Label28
IL_02DE: ldloc.0
IL_02DF: ldfld System.Single Verse.HediffStage::forgetMemoryThoughtMtbDays
IL_02E4: ldc.r4 0
IL_02E9: ble.un => Label29
IL_02EE: ldarg.0
IL_02EF: ldfld Verse.Pawn Verse.Hediff::pawn
IL_02F4: ldfld RimWorld.Pawn_NeedsTracker Verse.Pawn::needs
IL_02F9: brfalse => Label30
IL_02FE: ldarg.0
IL_02FF: ldfld Verse.Pawn Verse.Hediff::pawn
IL_0304: ldfld RimWorld.Pawn_NeedsTracker Verse.Pawn::needs
IL_0309: ldfld RimWorld.Need_Mood RimWorld.Pawn_NeedsTracker::mood
IL_030E: brfalse => Label31
IL_0313: ldarg.0
IL_0314: ldfld Verse.Pawn Verse.Hediff::pawn
IL_0319: ldc.i4 400
IL_031E: call static System.Boolean Verse.Gen::IsHashIntervalTick(Verse.Thing
t, System.Int32 interval)
IL_0323: brfalse => Label32
IL_0328: ldloc.0
IL_0329: ldfld System.Single Verse.HediffStage::forgetMemoryThoughtMtbDays
IL_032E: ldc.r4 60000
IL_0333: ldc.r4 400
IL_0338: call static System.Boolean Verse.Rand::MTBEventOccurs(System.Single
mtb, System.Single mtbUnit, System.Single checkDuration)
IL_033D: brfalse => Label33
IL_0342: ldarg.0
IL_0343: ldfld Verse.Pawn Verse.Hediff::pawn
IL_0348: ldfld RimWorld.Pawn_NeedsTracker Verse.Pawn::needs
IL_034D: ldfld RimWorld.Need_Mood RimWorld.Pawn_NeedsTracker::mood
IL_0352: ldfld RimWorld.ThoughtHandler RimWorld.Need_Mood::thoughts
IL_0357: ldfld RimWorld.MemoryThoughtHandler RimWorld.ThoughtHandler::memories
IL_035C: callvirt System.Collections.Generic.List`1<RimWorld.Thought_Memory>
RimWorld.MemoryThoughtHandler::get_Memories()
IL_0361: ldloca.s 7 (RimWorld.Thought_Memory)
IL_0363: call static System.Boolean
Verse.GenCollection::TryRandomElement(System.Collections.Generic.IEnumerable`1<RimW
orld.Thought_Memory> source, RimWorld.Thought_Memory& result)
IL_0368: brfalse => Label34
IL_036D: ldarg.0
IL_036E: ldfld Verse.Pawn Verse.Hediff::pawn
IL_0373: ldfld RimWorld.Pawn_NeedsTracker Verse.Pawn::needs
IL_0378: ldfld RimWorld.Need_Mood RimWorld.Pawn_NeedsTracker::mood
IL_037D: ldfld RimWorld.ThoughtHandler RimWorld.Need_Mood::thoughts
IL_0382: ldfld RimWorld.MemoryThoughtHandler RimWorld.ThoughtHandler::memories
IL_0387: ldloc.s 7 (RimWorld.Thought_Memory)
IL_0389: callvirt System.Void
RimWorld.MemoryThoughtHandler::RemoveMemory(RimWorld.Thought_Memory th)
IL_038E: Label29
IL_038E: Label30
IL_038E: Label31
IL_038E: Label32
IL_038E: Label33
IL_038E: Label34
IL_038E: ldarg.0
IL_038F: ldfld System.Boolean Verse.Hediff::recordedTale
IL_0394: brtrue => Label35
IL_0399: ldloc.0
IL_039A: ldfld RimWorld.TaleDef Verse.HediffStage::tale
IL_039F: brfalse => Label36
IL_03A4: ldloc.0
IL_03A5: ldfld RimWorld.TaleDef Verse.HediffStage::tale
IL_03AA: ldc.i4.1
IL_03AB: newarr System.Object
IL_03B0: dup
IL_03B1: ldc.i4.0
IL_03B2: ldarg.0
IL_03B3: ldfld Verse.Pawn Verse.Hediff::pawn
IL_03B8: stelem.ref
IL_03B9: call static RimWorld.Tale
RimWorld.TaleRecorder::RecordTale(RimWorld.TaleDef def, System.Object[] args)
IL_03BE: pop
IL_03BF: ldarg.0
IL_03C0: ldc.i4.1
IL_03C1: stfld System.Boolean Verse.Hediff::recordedTale
IL_03C6: Label35
IL_03C6: Label36
IL_03C6: ldloc.0
IL_03C7: ldfld System.Boolean Verse.HediffStage::destroyPart
IL_03CC: brfalse => Label37
IL_03D1: ldarg.0
IL_03D2: call Verse.BodyPartRecord Verse.Hediff::get_Part()
IL_03D7: brfalse => Label38
IL_03DC: ldarg.0
IL_03DD: call Verse.BodyPartRecord Verse.Hediff::get_Part()
IL_03E2: ldarg.0
IL_03E3: ldfld Verse.Pawn Verse.Hediff::pawn
IL_03E8: call static Verse.BodyDef
AlienRace.HarmonyPatches::ReplacedBody(Verse.Pawn pawn)
IL_03ED: ldfld Verse.BodyPartRecord Verse.BodyDef::corePart
IL_03F2: beq => Label39
IL_03F7: ldarg.0
IL_03F8: ldfld Verse.Pawn Verse.Hediff::pawn
IL_03FD: ldfld Verse.Pawn_HealthTracker Verse.Pawn::health
IL_0402: ldsfld Verse.HediffDef RimWorld.HediffDefOf::MissingBodyPart
IL_0407: ldarg.0
IL_0408: call Verse.BodyPartRecord Verse.Hediff::get_Part()
IL_040D: ldloca.s 8 (System.Nullable`1[Verse.DamageInfo])
IL_040F: initobj System.Nullable`1[Verse.DamageInfo]
IL_0415: ldloc.s 8 (System.Nullable`1[Verse.DamageInfo])
IL_0417: ldnull
IL_0418: callvirt Verse.Hediff
Verse.Pawn_HealthTracker::AddHediff(Verse.HediffDef def, Verse.BodyPartRecord part,
System.Nullable`1<Verse.DamageInfo> dinfo, Verse.DamageResult result)
IL_041D: pop
IL_041E: Label37
IL_041E: Label38
IL_041E: Label39
IL_041E: ldloc.0
IL_041F: ldfld System.Single Verse.HediffStage::deathMtbDays
IL_0424: ldc.r4 0
IL_0429: ble.un => Label40
IL_042E: ldarg.0
IL_042F: ldfld Verse.Pawn Verse.Hediff::pawn
IL_0434: ldc.i4 200
IL_0439: call static System.Boolean Verse.Gen::IsHashIntervalTick(Verse.Thing
t, System.Int32 interval)
IL_043E: brfalse => Label41
IL_0443: ldloc.0
IL_0444: ldfld System.Single Verse.HediffStage::deathMtbDays
IL_0449: ldc.r4 60000
IL_044E: ldc.r4 200
IL_0453: call static System.Boolean Verse.Rand::MTBEventOccurs(System.Single
mtb, System.Single mtbUnit, System.Single checkDuration)
IL_0458: brfalse => Label42
IL_045D: ldarg.0
IL_045E: call System.Void Verse.Hediff::DoMTBDeath()
IL_0463: // end original
IL_0463: Label7
IL_0463: Label40
IL_0463: Label41
IL_0463: Label42
IL_0463: ret
DONE

### Patch: System.Void Verse.HediffComp_ReactOnDamage::React()


### Replacement: static System.Void
Verse.HediffComp_ReactOnDamage::Verse.HediffComp_ReactOnDamage.React_Patch0(Verse.H
ediffComp_ReactOnDamage this)
IL_0000: Local var 0: Verse.BodyPartRecord
IL_0000: Local var 1: System.Nullable`1<Verse.DamageInfo>
IL_0000: Local var 2: System.Nullable`1<Verse.AI.JobTag>
IL_0000: Local var 3: System.Nullable`1<System.Boolean>
IL_0000: // start original
IL_0000: ldarg.0
IL_0001: call Verse.HediffCompProperties_ReactOnDamage
Verse.HediffComp_ReactOnDamage::get_Props()
IL_0006: ldfld Verse.HediffDef
Verse.HediffCompProperties_ReactOnDamage::createHediff
IL_000B: brfalse => Label0
IL_0010: ldarg.0
IL_0011: ldfld Verse.HediffWithComps Verse.HediffComp::parent
IL_0016: callvirt Verse.BodyPartRecord Verse.Hediff::get_Part()
IL_001B: stloc.0
IL_001C: ldarg.0
IL_001D: call Verse.HediffCompProperties_ReactOnDamage
Verse.HediffComp_ReactOnDamage::get_Props()
IL_0022: ldfld Verse.BodyPartDef
Verse.HediffCompProperties_ReactOnDamage::createHediffOn
IL_0027: brfalse => Label1
IL_002C: ldarg.0
IL_002D: ldfld Verse.HediffWithComps Verse.HediffComp::parent
IL_0032: ldfld Verse.Pawn Verse.Hediff::pawn
IL_0037: call static Verse.BodyDef
AlienRace.HarmonyPatches::ReplacedBody(Verse.Pawn pawn)
IL_003C: callvirt System.Collections.Generic.List`1<Verse.BodyPartRecord>
Verse.BodyDef::get_AllParts()
IL_0041: ldarg.0
IL_0042: ldftn System.Boolean
Verse.HediffComp_ReactOnDamage::<React>b__3_0(Verse.BodyPartRecord p)
IL_0048: newobj System.Void System.Func`2<Verse.BodyPartRecord,
System.Boolean>::.ctor(System.Object object, System.IntPtr method)
IL_004D: ldnull
IL_004E: call static Verse.BodyPartRecord
Verse.GenCollection::FirstOrFallback(System.Collections.Generic.IEnumerable`1<Verse
.BodyPartRecord> source, System.Func`2<Verse.BodyPartRecord, System.Boolean>
predicate, Verse.BodyPartRecord fallback)
IL_0053: stloc.0
IL_0054: Label1
IL_0054: ldarg.0
IL_0055: ldfld Verse.HediffWithComps Verse.HediffComp::parent
IL_005A: ldfld Verse.Pawn Verse.Hediff::pawn
IL_005F: ldfld Verse.Pawn_HealthTracker Verse.Pawn::health
IL_0064: ldarg.0
IL_0065: call Verse.HediffCompProperties_ReactOnDamage
Verse.HediffComp_ReactOnDamage::get_Props()
IL_006A: ldfld Verse.HediffDef
Verse.HediffCompProperties_ReactOnDamage::createHediff
IL_006F: ldloc.0
IL_0070: ldloca.s 1 (System.Nullable`1[Verse.DamageInfo])
IL_0072: initobj System.Nullable`1[Verse.DamageInfo]
IL_0078: ldloc.1
IL_0079: ldnull
IL_007A: callvirt Verse.Hediff
Verse.Pawn_HealthTracker::AddHediff(Verse.HediffDef def, Verse.BodyPartRecord part,
System.Nullable`1<Verse.DamageInfo> dinfo, Verse.DamageResult result)
IL_007F: pop
IL_0080: Label0
IL_0080: ldarg.0
IL_0081: call Verse.HediffCompProperties_ReactOnDamage
Verse.HediffComp_ReactOnDamage::get_Props()
IL_0086: ldfld System.Boolean Verse.HediffCompProperties_ReactOnDamage::vomit
IL_008B: brfalse => Label2
IL_0090: ldarg.0
IL_0091: ldfld Verse.HediffWithComps Verse.HediffComp::parent
IL_0096: ldfld Verse.Pawn Verse.Hediff::pawn
IL_009B: ldfld Verse.AI.Pawn_JobTracker Verse.Pawn::jobs
IL_00A0: ldsfld Verse.JobDef RimWorld.JobDefOf::Vomit
IL_00A5: call static Verse.AI.Job Verse.JobMaker::MakeJob(Verse.JobDef def)
IL_00AA: ldc.i4.5
IL_00AB: ldnull
IL_00AC: ldc.i4.1
IL_00AD: ldc.i4.1
IL_00AE: ldnull
IL_00AF: ldloca.s 2 (System.Nullable`1[Verse.AI.JobTag])
IL_00B1: initobj System.Nullable`1[Verse.AI.JobTag]
IL_00B7: ldloc.2
IL_00B8: ldc.i4.0
IL_00B9: ldc.i4.0
IL_00BA: ldloca.s 3 (System.Nullable`1[System.Boolean])
IL_00BC: initobj System.Nullable`1[System.Boolean]
IL_00C2: ldloc.3
IL_00C3: ldc.i4.0
IL_00C4: ldc.i4.1
IL_00C5: callvirt System.Void Verse.AI.Pawn_JobTracker::StartJob(Verse.AI.Job
newJob, Verse.AI.JobCondition lastJobEndCondition, Verse.AI.ThinkNode jobGiver,
System.Boolean resumeCurJobAfterwards, System.Boolean cancelBusyStances,
Verse.ThinkTreeDef thinkTree, System.Nullable`1<Verse.AI.JobTag> tag,
System.Boolean fromQueue, System.Boolean canReturnCurJobToPool,
System.Nullable`1<System.Boolean> keepCarryingThingOverride, System.Boolean
continueSleeping, System.Boolean addToJobsThisTick)
IL_00CA: // end original
IL_00CA: Label2
IL_00CA: ret
DONE

### Patch: virtual System.Void


Verse.HediffGiver_Hypothermia::OnIntervalPassed(Verse.Pawn pawn, Verse.Hediff
cause)
### Replacement: static System.Void
Verse.HediffGiver_Hypothermia::Verse.HediffGiver_Hypothermia.OnIntervalPassed_Patch
0(Verse.HediffGiver_Hypothermia this, Verse.Pawn pawn, Verse.Hediff cause)
IL_0000: Local var 0: Verse.HediffGiver_Hypothermia/<>c__DisplayClass1_0
IL_0000: Local var 1: System.Single
IL_0000: Local var 2: Verse.FloatRange
IL_0000: Local var 3: Verse.FloatRange
IL_0000: Local var 4: Verse.HediffDef
IL_0000: Local var 5: Verse.Hediff
IL_0000: Local var 6: System.Single
IL_0000: Local var 7: System.Single
IL_0000: Local var 8: System.Single
IL_0000: Local var 9: Verse.BodyPartRecord
IL_0000: Local var 10: System.Int32
IL_0000: Local var 11: Verse.DamageInfo
IL_0000: // start original
IL_0000: newobj System.Void Verse.<>c__DisplayClass1_0::.ctor()
IL_0005: stloc.0
IL_0006: ldarg.1
IL_0007: callvirt System.Single Verse.Thing::get_AmbientTemperature()
IL_000C: stloc.1
IL_000D: ldarg.1
IL_000E: call static Verse.FloatRange
Verse.GenTemperature::ComfortableTemperatureRange(Verse.Pawn p)
IL_0013: stloc.2
IL_0014: ldarg.1
IL_0015: call static Verse.FloatRange
Verse.GenTemperature::SafeTemperatureRange(Verse.Pawn p)
IL_001A: stloc.3
IL_001B: ldloc.0
IL_001C: ldarg.1
IL_001D: ldfld Verse.Pawn_HealthTracker Verse.Pawn::health
IL_0022: ldfld Verse.HediffSet Verse.Pawn_HealthTracker::hediffSet
IL_0027: stfld Verse.HediffSet Verse.<>c__DisplayClass1_0::hediffSet
IL_002C: ldarg.1
IL_002D: callvirt Verse.RaceProperties Verse.Pawn::get_RaceProps()
IL_0032: callvirt RimWorld.FleshTypeDef Verse.RaceProperties::get_FleshType()
IL_0037: ldsfld RimWorld.FleshTypeDef RimWorld.FleshTypeDefOf::Insectoid
IL_003C: beq => Label0
IL_0041: ldarg.0
IL_0042: ldfld Verse.HediffDef Verse.HediffGiver::hediff
IL_0047: br => Label1
IL_004C: Label0
IL_004C: ldarg.0
IL_004D: ldfld Verse.HediffDef Verse.HediffGiver_Hypothermia::hediffInsectoid
IL_0052: Label1
IL_0052: stloc.s 4 (Verse.HediffDef)
IL_0054: ldloc.0
IL_0055: ldfld Verse.HediffSet Verse.<>c__DisplayClass1_0::hediffSet
IL_005A: ldloc.s 4 (Verse.HediffDef)
IL_005C: ldc.i4.0
IL_005D: callvirt Verse.Hediff
Verse.HediffSet::GetFirstHediffOfDef(Verse.HediffDef def, System.Boolean
mustBeVisible)
IL_0062: stloc.s 5 (Verse.Hediff)
IL_0064: ldloc.1
IL_0065: ldloc.3
IL_0066: ldfld System.Single Verse.FloatRange::min
IL_006B: bge.un => Label2
IL_0070: ldloc.1
IL_0071: ldloc.3
IL_0072: ldfld System.Single Verse.FloatRange::min
IL_0077: sub
IL_0078: call static System.Single UnityEngine.Mathf::Abs(System.Single f)
IL_007D: ldc.r4 6.45E-05
IL_0082: mul
IL_0083: stloc.s 6 (System.Single)
IL_0085: ldloc.s 6 (System.Single)
IL_0087: ldc.r4 0.00075
IL_008C: call static System.Single UnityEngine.Mathf::Max(System.Single a,
System.Single b)
IL_0091: stloc.s 6 (System.Single)
IL_0093: ldarg.1
IL_0094: ldloc.s 4 (Verse.HediffDef)
IL_0096: ldloc.s 6 (System.Single)
IL_0098: call static System.Void
Verse.HealthUtility::AdjustSeverity(Verse.Pawn pawn, Verse.HediffDef hdDef,
System.Single sevOffset)
IL_009D: ldarg.1
IL_009E: callvirt System.Boolean Verse.Pawn::get_Dead()
IL_00A3: brfalse => Label3
IL_00A8: br => Label12
IL_00AD: Label2
IL_00AD: Label3
IL_00AD: ldloc.s 5 (Verse.Hediff)
IL_00AF: brfalse => Label4
IL_00B4: ldloc.1
IL_00B5: ldloc.2
IL_00B6: ldfld System.Single Verse.FloatRange::min
IL_00BB: ble.un => Label5
IL_00C0: ldloc.s 5 (Verse.Hediff)
IL_00C2: callvirt virtual System.Single Verse.Hediff::get_Severity()
IL_00C7: ldc.r4 0.027
IL_00CC: mul
IL_00CD: stloc.s 7 (System.Single)
IL_00CF: ldloc.s 7 (System.Single)
IL_00D1: ldc.r4 0.0015
IL_00D6: ldc.r4 0.015
IL_00DB: call static System.Single UnityEngine.Mathf::Clamp(System.Single
value, System.Single min, System.Single max)
IL_00E0: stloc.s 7 (System.Single)
IL_00E2: ldloc.s 5 (Verse.Hediff)
IL_00E4: dup
IL_00E5: callvirt virtual System.Single Verse.Hediff::get_Severity()
IL_00EA: ldloc.s 7 (System.Single)
IL_00EC: sub
IL_00ED: callvirt virtual System.Void Verse.Hediff::set_Severity(System.Single
value)
IL_00F2: br => Label13
IL_00F7: Label5
IL_00F7: ldarg.1
IL_00F8: callvirt Verse.RaceProperties Verse.Pawn::get_RaceProps()
IL_00FD: callvirt RimWorld.FleshTypeDef Verse.RaceProperties::get_FleshType()
IL_0102: ldsfld RimWorld.FleshTypeDef RimWorld.FleshTypeDefOf::Insectoid
IL_0107: beq => Label6
IL_010C: ldloc.1
IL_010D: ldc.r4 0
IL_0112: bge.un => Label7
IL_0117: ldloc.s 5 (Verse.Hediff)
IL_0119: callvirt virtual System.Single Verse.Hediff::get_Severity()
IL_011E: ldc.r4 0.37
IL_0123: ble.un => Label8
IL_0128: ldc.r4 0.025
IL_012D: ldloc.s 5 (Verse.Hediff)
IL_012F: callvirt virtual System.Single Verse.Hediff::get_Severity()
IL_0134: mul
IL_0135: stloc.s 8 (System.Single)
IL_0137: call static System.Single Verse.Rand::get_Value()
IL_013C: ldloc.s 8 (System.Single)
IL_013E: bge.un => Label9
IL_0143: ldarg.1
IL_0144: call static Verse.BodyDef
AlienRace.HarmonyPatches::ReplacedBody(Verse.Pawn pawn)
IL_0149: callvirt System.Collections.Generic.List`1<Verse.BodyPartRecord>
Verse.BodyDef::get_AllPartsVulnerableToFrostbite()
IL_014E: ldloc.0
IL_014F: ldftn System.Boolean
Verse.<>c__DisplayClass1_0::<OnIntervalPassed>b__0(Verse.BodyPartRecord x)
IL_0155: newobj System.Void System.Func`2<Verse.BodyPartRecord,
System.Boolean>::.ctor(System.Object object, System.IntPtr method)
IL_015A: call static
System.Collections.Generic.IEnumerable`1<Verse.BodyPartRecord>
System.Linq.Enumerable::Where(System.Collections.Generic.IEnumerable`1<Verse.BodyPa
rtRecord> source, System.Func`2<Verse.BodyPartRecord, System.Boolean> predicate)
IL_015F: ldsfld System.Func`2<Verse.BodyPartRecord, System.Single>
Verse.<>c::<>9__1_1
IL_0164: dup
IL_0165: brtrue => Label10
IL_016A: pop
IL_016B: ldsfld Verse.<>c Verse.<>c::<>9
IL_0170: ldftn System.Single
Verse.<>c::<OnIntervalPassed>b__1_1(Verse.BodyPartRecord x)
IL_0176: newobj System.Void System.Func`2<Verse.BodyPartRecord,
System.Single>::.ctor(System.Object object, System.IntPtr method)
IL_017B: dup
IL_017C: stsfld System.Func`2<Verse.BodyPartRecord, System.Single>
Verse.<>c::<>9__1_1
IL_0181: Label10
IL_0181: ldloca.s 9 (Verse.BodyPartRecord)
IL_0183: call static System.Boolean
Verse.GenCollection::TryRandomElementByWeight(System.Collections.Generic.IEnumerabl
e`1<Verse.BodyPartRecord> source, System.Func`2<Verse.BodyPartRecord,
System.Single> weightSelector, Verse.BodyPartRecord& result)
IL_0188: brfalse => Label11
IL_018D: ldloc.s 9 (Verse.BodyPartRecord)
IL_018F: ldfld Verse.BodyPartDef Verse.BodyPartRecord::def
IL_0194: ldfld System.Int32 Verse.BodyPartDef::hitPoints
IL_0199: conv.r4
IL_019A: ldc.r4 0.5
IL_019F: mul
IL_01A0: call static System.Int32 UnityEngine.Mathf::CeilToInt(System.Single
f)
IL_01A5: stloc.s 10 (System.Int32)
IL_01A7: ldloca.s 11 (Verse.DamageInfo)
IL_01A9: ldsfld Verse.DamageDef RimWorld.DamageDefOf::Frostbite
IL_01AE: ldloc.s 10 (System.Int32)
IL_01B0: conv.r4
IL_01B1: ldc.r4 0
IL_01B6: ldc.r4 -1
IL_01BB: ldnull
IL_01BC: ldloc.s 9 (Verse.BodyPartRecord)
IL_01BE: ldnull
IL_01BF: ldc.i4.0
IL_01C0: ldnull
IL_01C1: ldc.i4.1
IL_01C2: ldc.i4.1
IL_01C3: call System.Void Verse.DamageInfo::.ctor(Verse.DamageDef def,
System.Single amount, System.Single armorPenetration, System.Single angle,
Verse.Thing instigator, Verse.BodyPartRecord hitPart, Verse.ThingDef weapon,
Verse.SourceCategory category, Verse.Thing intendedTarget, System.Boolean
instigatorGuilty, System.Boolean spawnFilth)
IL_01C8: ldarg.1
IL_01C9: ldloc.s 11 (Verse.DamageInfo)
IL_01CB: callvirt Verse.DamageResult Verse.Thing::TakeDamage(Verse.DamageInfo
dinfo)
IL_01D0: pop
IL_01D1: // end original
IL_01D1: Label4
IL_01D1: Label6
IL_01D1: Label7
IL_01D1: Label8
IL_01D1: Label9
IL_01D1: Label11
IL_01D1: Label12
IL_01D1: Label13
IL_01D1: ret
DONE

### Patch: virtual System.Boolean Verse.<GetNotMissingParts>d__51::MoveNext()


### Replacement: static System.Boolean
Verse.HediffSet+<GetNotMissingParts>d__51::Verse.HediffSet+<GetNotMissingParts>d__5
1.MoveNext_Patch0(Verse.<GetNotMissingParts>d__51 this)
IL_0000: Local var 0: System.Int32
IL_0000: Local var 1: Verse.HediffSet
IL_0000: Local var 2: Verse.BodyPartRecord
IL_0000: Local var 3: System.Int32
IL_0000: // start original
IL_0000: ldarg.0
IL_0001: ldfld System.Int32 Verse.<GetNotMissingParts>d__51::<>1__state
IL_0006: stloc.0
IL_0007: ldarg.0
IL_0008: ldfld Verse.HediffSet Verse.<GetNotMissingParts>d__51::<>4__this
IL_000D: stloc.1
IL_000E: ldloc.0
IL_000F: brfalse => Label0
IL_0014: ldloc.0
IL_0015: ldc.i4.1
IL_0016: beq => Label1
IL_001B: ldc.i4.0
IL_001C: br => Label13
IL_0021: Label0
IL_0021: ldarg.0
IL_0022: ldc.i4.m1
IL_0023: stfld System.Int32 Verse.<GetNotMissingParts>d__51::<>1__state
IL_0028: ldarg.0
IL_0029: ldloc.1
IL_002A: ldfld Verse.Pawn Verse.HediffSet::pawn
IL_002F: call static Verse.BodyDef
AlienRace.HarmonyPatches::ReplacedBody(Verse.Pawn pawn)
IL_0034: callvirt System.Collections.Generic.List`1<Verse.BodyPartRecord>
Verse.BodyDef::get_AllParts()
IL_0039: stfld System.Collections.Generic.List`1<Verse.BodyPartRecord>
Verse.<GetNotMissingParts>d__51::<allPartsList>5__2
IL_003E: ldarg.0
IL_003F: ldc.i4.0
IL_0040: stfld System.Int32 Verse.<GetNotMissingParts>d__51::<i>5__3
IL_0045: br => Label2
IL_004A: Label12
IL_004A: ldarg.0
IL_004B: ldfld System.Collections.Generic.List`1<Verse.BodyPartRecord>
Verse.<GetNotMissingParts>d__51::<allPartsList>5__2
IL_0050: ldarg.0
IL_0051: ldfld System.Int32 Verse.<GetNotMissingParts>d__51::<i>5__3
IL_0056: callvirt virtual Verse.BodyPartRecord
System.Collections.Generic.List`1<Verse.BodyPartRecord>::get_Item(System.Int32
index)
IL_005B: stloc.2
IL_005C: ldloc.1
IL_005D: ldloc.2
IL_005E: call System.Boolean
Verse.HediffSet::PartIsMissing(Verse.BodyPartRecord part)
IL_0063: brtrue => Label3
IL_0068: ldarg.0
IL_0069: ldfld Verse.BodyPartHeight Verse.<GetNotMissingParts>d__51::height
IL_006E: brfalse => Label4
IL_0073: ldloc.2
IL_0074: ldfld Verse.BodyPartHeight Verse.BodyPartRecord::height
IL_0079: ldarg.0
IL_007A: ldfld Verse.BodyPartHeight Verse.<GetNotMissingParts>d__51::height
IL_007F: bne.un => Label5
IL_0084: Label4
IL_0084: ldarg.0
IL_0085: ldfld Verse.BodyPartDepth Verse.<GetNotMissingParts>d__51::depth
IL_008A: brfalse => Label6
IL_008F: ldloc.2
IL_0090: ldfld Verse.BodyPartDepth Verse.BodyPartRecord::depth
IL_0095: ldarg.0
IL_0096: ldfld Verse.BodyPartDepth Verse.<GetNotMissingParts>d__51::depth
IL_009B: bne.un => Label7
IL_00A0: Label6
IL_00A0: ldarg.0
IL_00A1: ldfld Verse.BodyPartTagDef Verse.<GetNotMissingParts>d__51::tag
IL_00A6: brfalse => Label8
IL_00AB: ldloc.2
IL_00AC: ldfld Verse.BodyPartDef Verse.BodyPartRecord::def
IL_00B1: ldfld System.Collections.Generic.List`1<Verse.BodyPartTagDef>
Verse.BodyPartDef::tags
IL_00B6: ldarg.0
IL_00B7: ldfld Verse.BodyPartTagDef Verse.<GetNotMissingParts>d__51::tag
IL_00BC: callvirt virtual System.Boolean
System.Collections.Generic.List`1<Verse.BodyPartTagDef>::Contains(Verse.BodyPartTag
Def item)
IL_00C1: brfalse => Label9
IL_00C6: Label8
IL_00C6: ldarg.0
IL_00C7: ldfld Verse.BodyPartRecord
Verse.<GetNotMissingParts>d__51::partParent
IL_00CC: brfalse => Label10
IL_00D1: ldloc.2
IL_00D2: ldfld Verse.BodyPartRecord Verse.BodyPartRecord::parent
IL_00D7: ldarg.0
IL_00D8: ldfld Verse.BodyPartRecord
Verse.<GetNotMissingParts>d__51::partParent
IL_00DD: bne.un => Label11
IL_00E2: Label10
IL_00E2: ldarg.0
IL_00E3: ldloc.2
IL_00E4: stfld Verse.BodyPartRecord
Verse.<GetNotMissingParts>d__51::<>2__current
IL_00E9: ldarg.0
IL_00EA: ldc.i4.1
IL_00EB: stfld System.Int32 Verse.<GetNotMissingParts>d__51::<>1__state
IL_00F0: ldc.i4.1
IL_00F1: br => Label14
IL_00F6: Label1
IL_00F6: ldarg.0
IL_00F7: ldc.i4.m1
IL_00F8: stfld System.Int32 Verse.<GetNotMissingParts>d__51::<>1__state
IL_00FD: Label3
IL_00FD: Label5
IL_00FD: Label7
IL_00FD: Label9
IL_00FD: Label11
IL_00FD: ldarg.0
IL_00FE: ldfld System.Int32 Verse.<GetNotMissingParts>d__51::<i>5__3
IL_0103: stloc.3
IL_0104: ldarg.0
IL_0105: ldloc.3
IL_0106: ldc.i4.1
IL_0107: add
IL_0108: stfld System.Int32 Verse.<GetNotMissingParts>d__51::<i>5__3
IL_010D: Label2
IL_010D: ldarg.0
IL_010E: ldfld System.Int32 Verse.<GetNotMissingParts>d__51::<i>5__3
IL_0113: ldarg.0
IL_0114: ldfld System.Collections.Generic.List`1<Verse.BodyPartRecord>
Verse.<GetNotMissingParts>d__51::<allPartsList>5__2
IL_0119: callvirt virtual System.Int32
System.Collections.Generic.List`1<Verse.BodyPartRecord>::get_Count()
IL_011E: blt => Label12
IL_0123: ldc.i4.0
IL_0124: // end original
IL_0124: Label13
IL_0124: Label14
IL_0124: ret
DONE

### Patch: System.Void Verse.HediffSet::AddDirect(Verse.Hediff hediff,


System.Nullable`1<Verse.DamageInfo> dinfo, Verse.DamageResult damageResult)
### Replacement: static System.Void
Verse.HediffSet::Verse.HediffSet.AddDirect_Patch0(Verse.HediffSet this,
Verse.Hediff hediff, System.Nullable`1<Verse.DamageInfo> dinfo, Verse.DamageResult
damageResult)
IL_0000: Local var 0: System.Boolean
IL_0000: Local var 1: System.Boolean
IL_0000: Local var 2: System.Int32
IL_0000: Local var 3: System.Boolean
IL_0000: Local var 4: Verse.Hediff_MissingPart
IL_0000: Local var 5: Verse.DamageInfo
IL_0000: // start original
IL_0000: ldarg.1
IL_0001: ldfld Verse.HediffDef Verse.Hediff::def
IL_0006: brtrue => Label0
IL_000B: ldstr "Tried to add health diff with null def. Canceling."
IL_0010: call static System.Void Verse.Log::Error(System.String text)
IL_0015: br => Label22
IL_001A: Label0
IL_001A: ldarg.1
IL_001B: callvirt Verse.BodyPartRecord Verse.Hediff::get_Part()
IL_0020: brfalse => Label1
IL_0025: ldarg.0
IL_0026: ldc.i4.0
IL_0027: ldc.i4.0
IL_0028: ldnull
IL_0029: ldnull
IL_002A: call System.Collections.Generic.IEnumerable`1<Verse.BodyPartRecord>
Verse.HediffSet::GetNotMissingParts(Verse.BodyPartHeight height,
Verse.BodyPartDepth depth, Verse.BodyPartTagDef tag, Verse.BodyPartRecord
partParent)
IL_002F: ldarg.1
IL_0030: callvirt Verse.BodyPartRecord Verse.Hediff::get_Part()
IL_0035: call static System.Boolean
System.Linq.Enumerable::Contains(System.Collections.Generic.IEnumerable`1<Verse.Bod
yPartRecord> source, Verse.BodyPartRecord value)
IL_003A: brtrue => Label2
IL_003F: ldstr "Tried to add health diff to missing part "
IL_0044: ldarg.1
IL_0045: callvirt Verse.BodyPartRecord Verse.Hediff::get_Part()
IL_004A: call static System.String System.String::Concat(System.Object arg0,
System.Object arg1)
IL_004F: call static System.Void Verse.Log::Error(System.String text)
IL_0054: br => Label23
IL_0059: Label1
IL_0059: Label2
IL_0059: ldarg.1
IL_005A: ldc.i4.0
IL_005B: stfld System.Int32 Verse.Hediff::ageTicks
IL_0060: ldarg.1
IL_0061: ldarg.0
IL_0062: ldfld Verse.Pawn Verse.HediffSet::pawn
IL_0067: stfld Verse.Pawn Verse.Hediff::pawn
IL_006C: ldc.i4.0
IL_006D: stloc.1
IL_006E: ldc.i4.0
IL_006F: stloc.2
IL_0070: br => Label3
IL_0075: Label5
IL_0075: ldarg.0
IL_0076: ldfld System.Collections.Generic.List`1<Verse.Hediff>
Verse.HediffSet::hediffs
IL_007B: ldloc.2
IL_007C: callvirt virtual Verse.Hediff
System.Collections.Generic.List`1<Verse.Hediff>::get_Item(System.Int32 index)
IL_0081: ldarg.1
IL_0082: callvirt virtual System.Boolean Verse.Hediff::TryMergeWith(Verse.Hediff
other)
IL_0087: brfalse => Label4
IL_008C: ldc.i4.1
IL_008D: stloc.1
IL_008E: Label4
IL_008E: ldloc.2
IL_008F: ldc.i4.1
IL_0090: add
IL_0091: stloc.2
IL_0092: Label3
IL_0092: ldloc.2
IL_0093: ldarg.0
IL_0094: ldfld System.Collections.Generic.List`1<Verse.Hediff>
Verse.HediffSet::hediffs
IL_0099: callvirt virtual System.Int32
System.Collections.Generic.List`1<Verse.Hediff>::get_Count()
IL_009E: blt => Label5
IL_00A3: ldloc.1
IL_00A4: brtrue => Label6
IL_00A9: ldarg.0
IL_00AA: ldfld System.Collections.Generic.List`1<Verse.Hediff>
Verse.HediffSet::hediffs
IL_00AF: ldarg.1
IL_00B0: callvirt virtual System.Void
System.Collections.Generic.List`1<Verse.Hediff>::Add(Verse.Hediff item)
IL_00B5: ldarg.1
IL_00B6: ldarg.2
IL_00B7: callvirt virtual System.Void
Verse.Hediff::PostAdd(System.Nullable`1<Verse.DamageInfo> dinfo)
IL_00BC: ldarg.0
IL_00BD: ldfld Verse.Pawn Verse.HediffSet::pawn
IL_00C2: ldfld RimWorld.Pawn_NeedsTracker Verse.Pawn::needs
IL_00C7: brfalse => Label7
IL_00CC: ldarg.0
IL_00CD: ldfld Verse.Pawn Verse.HediffSet::pawn
IL_00D2: ldfld RimWorld.Pawn_NeedsTracker Verse.Pawn::needs
IL_00D7: ldfld RimWorld.Need_Mood RimWorld.Pawn_NeedsTracker::mood
IL_00DC: brfalse => Label8
IL_00E1: ldarg.0
IL_00E2: ldfld Verse.Pawn Verse.HediffSet::pawn
IL_00E7: ldfld RimWorld.Pawn_NeedsTracker Verse.Pawn::needs
IL_00EC: ldfld RimWorld.Need_Mood RimWorld.Pawn_NeedsTracker::mood
IL_00F1: ldfld RimWorld.ThoughtHandler RimWorld.Need_Mood::thoughts
IL_00F6: ldfld RimWorld.SituationalThoughtHandler
RimWorld.ThoughtHandler::situational
IL_00FB: callvirt System.Void
RimWorld.SituationalThoughtHandler::Notify_SituationalThoughtsDirty()
IL_0100: Label6
IL_0100: Label7
IL_0100: Label8
IL_0100: ldarg.1
IL_0101: isinst Verse.Hediff_MissingPart
IL_0106: ldnull
IL_0107: cgt.un
IL_0109: stloc.0
IL_010A: ldarg.1
IL_010B: isinst Verse.Hediff_MissingPart
IL_0110: brtrue => Label9
IL_0115: ldarg.1
IL_0116: callvirt Verse.BodyPartRecord Verse.Hediff::get_Part()
IL_011B: brfalse => Label10
IL_0120: ldarg.1
IL_0121: callvirt Verse.BodyPartRecord Verse.Hediff::get_Part()
IL_0126: ldarg.0
IL_0127: ldfld Verse.Pawn Verse.HediffSet::pawn
IL_012C: call static Verse.BodyDef
AlienRace.HarmonyPatches::ReplacedBody(Verse.Pawn pawn)
IL_0131: ldfld Verse.BodyPartRecord Verse.BodyDef::corePart
IL_0136: beq => Label11
IL_013B: ldarg.0
IL_013C: ldarg.1
IL_013D: callvirt Verse.BodyPartRecord Verse.Hediff::get_Part()
IL_0142: call System.Single
Verse.HediffSet::GetPartHealth(Verse.BodyPartRecord part)
IL_0147: ldc.r4 0
IL_014C: bne.un => Label12
IL_0151: ldarg.1
IL_0152: callvirt Verse.BodyPartRecord Verse.Hediff::get_Part()
IL_0157: ldarg.0
IL_0158: ldfld Verse.Pawn Verse.HediffSet::pawn
IL_015D: call static Verse.BodyDef
AlienRace.HarmonyPatches::ReplacedBody(Verse.Pawn pawn)
IL_0162: ldfld Verse.BodyPartRecord Verse.BodyDef::corePart
IL_0167: beq => Label13
IL_016C: ldarg.0
IL_016D: ldarg.1
IL_016E: callvirt Verse.BodyPartRecord Verse.Hediff::get_Part()
IL_0173: call System.Boolean
Verse.HediffSet::HasDirectlyAddedPartFor(Verse.BodyPartRecord part)
IL_0178: stloc.3
IL_0179: ldsfld Verse.HediffDef RimWorld.HediffDefOf::MissingBodyPart
IL_017E: ldarg.0
IL_017F: ldfld Verse.Pawn Verse.HediffSet::pawn
IL_0184: ldnull
IL_0185: call static Verse.Hediff
Verse.HediffMaker::MakeHediff(Verse.HediffDef def, Verse.Pawn pawn,
Verse.BodyPartRecord partRecord)
IL_018A: castclass Verse.Hediff_MissingPart
IL_018F: stloc.s 4 (Verse.Hediff_MissingPart)
IL_0191: ldloc.s 4 (Verse.Hediff_MissingPart)
IL_0193: ldloc.3
IL_0194: ldc.i4.0
IL_0195: ceq
IL_0197: callvirt System.Void
Verse.Hediff_MissingPart::set_IsFresh(System.Boolean value)
IL_019C: ldloc.s 4 (Verse.Hediff_MissingPart)
IL_019E: ldarg.1
IL_019F: ldfld Verse.HediffDef Verse.Hediff::def
IL_01A4: stfld Verse.HediffDef Verse.Hediff_MissingPart::lastInjury
IL_01A9: ldarg.0
IL_01AA: ldfld Verse.Pawn Verse.HediffSet::pawn
IL_01AF: ldfld Verse.Pawn_HealthTracker Verse.Pawn::health
IL_01B4: ldloc.s 4 (Verse.Hediff_MissingPart)
IL_01B6: ldarg.1
IL_01B7: callvirt Verse.BodyPartRecord Verse.Hediff::get_Part()
IL_01BC: ldarg.2
IL_01BD: ldnull
IL_01BE: callvirt System.Void Verse.Pawn_HealthTracker::AddHediff(Verse.Hediff
hediff, Verse.BodyPartRecord part, System.Nullable`1<Verse.DamageInfo> dinfo,
Verse.DamageResult result)
IL_01C3: ldarg.3
IL_01C4: brfalse => Label14
IL_01C9: ldarg.3
IL_01CA: ldloc.s 4 (Verse.Hediff_MissingPart)
IL_01CC: callvirt System.Void Verse.DamageResult::AddHediff(Verse.Hediff hediff)
IL_01D1: Label14
IL_01D1: ldloc.3
IL_01D2: brfalse => Label15
IL_01D7: ldarga.s 2
IL_01D9: call System.Boolean
System.Nullable`1<Verse.DamageInfo>::get_HasValue()
IL_01DE: brfalse => Label16
IL_01E3: ldloc.s 4 (Verse.Hediff_MissingPart)
IL_01E5: ldarga.s 2
IL_01E7: call Verse.DamageInfo
System.Nullable`1<Verse.DamageInfo>::get_Value()
IL_01EC: stloc.s 5 (Verse.DamageInfo)
IL_01EE: ldloca.s 5 (Verse.DamageInfo)
IL_01F0: call Verse.DamageDef Verse.DamageInfo::get_Def()
IL_01F5: ldarg.0
IL_01F6: ldfld Verse.Pawn Verse.HediffSet::pawn
IL_01FB: ldarg.1
IL_01FC: callvirt Verse.BodyPartRecord Verse.Hediff::get_Part()
IL_0201: call static Verse.HediffDef
Verse.HealthUtility::GetHediffDefFromDamage(Verse.DamageDef dam, Verse.Pawn pawn,
Verse.BodyPartRecord part)
IL_0206: stfld Verse.HediffDef Verse.Hediff_MissingPart::lastInjury
IL_020B: br => Label17
IL_0210: Label16
IL_0210: ldloc.s 4 (Verse.Hediff_MissingPart)
IL_0212: ldnull
IL_0213: stfld Verse.HediffDef Verse.Hediff_MissingPart::lastInjury
IL_0218: Label15
IL_0218: Label17
IL_0218: ldc.i4.1
IL_0219: stloc.0
IL_021A: Label9
IL_021A: Label10
IL_021A: Label11
IL_021A: Label12
IL_021A: Label13
IL_021A: ldarg.0
IL_021B: call System.Void Verse.HediffSet::DirtyCache()
IL_0220: ldloc.0
IL_0221: brfalse => Label18
IL_0226: ldarg.0
IL_0227: ldfld Verse.Pawn Verse.HediffSet::pawn
IL_022C: ldfld RimWorld.Pawn_ApparelTracker Verse.Pawn::apparel
IL_0231: brfalse => Label19
IL_0236: ldarg.0
IL_0237: ldfld Verse.Pawn Verse.HediffSet::pawn
IL_023C: ldfld RimWorld.Pawn_ApparelTracker Verse.Pawn::apparel
IL_0241: callvirt System.Void RimWorld.Pawn_ApparelTracker::Notify_LostBodyPart()
IL_0246: Label18
IL_0246: Label19
IL_0246: ldarg.1
IL_0247: ldfld Verse.HediffDef Verse.Hediff::def
IL_024C: ldfld RimWorld.NeedDef Verse.HediffDef::causesNeed
IL_0251: brfalse => Label20
IL_0256: ldarg.0
IL_0257: ldfld Verse.Pawn Verse.HediffSet::pawn
IL_025C: callvirt System.Boolean Verse.Pawn::get_Dead()
IL_0261: brtrue => Label21
IL_0266: ldarg.0
IL_0267: ldfld Verse.Pawn Verse.HediffSet::pawn
IL_026C: ldfld RimWorld.Pawn_NeedsTracker Verse.Pawn::needs
IL_0271: callvirt System.Void
RimWorld.Pawn_NeedsTracker::AddOrRemoveNeedsAsAppropriate()
IL_0276: // end original
IL_0276: Label20
IL_0276: Label21
IL_0276: Label22
IL_0276: Label23
IL_0276: ret
DONE

### Patch: System.Void Verse.HediffSet::CacheMissingPartsCommonAncestors()


### Replacement: static System.Void
Verse.HediffSet::Verse.HediffSet.CacheMissingPartsCommonAncestors_Patch0(Verse.Hedi
ffSet this)
IL_0000: Local var 0: Verse.BodyPartRecord
IL_0000: Local var 1: Verse.Hediff_MissingPart
IL_0000: Local var 2: System.Int32
IL_0000: // start original
IL_0000: ldarg.0
IL_0001: ldfld System.Collections.Generic.List`1<Verse.Hediff_MissingPart>
Verse.HediffSet::cachedMissingPartsCommonAncestors
IL_0006: brtrue => Label0
IL_000B: ldarg.0
IL_000C: newobj System.Void
System.Collections.Generic.List`1<Verse.Hediff_MissingPart>::.ctor()
IL_0011: stfld System.Collections.Generic.List`1<Verse.Hediff_MissingPart>
Verse.HediffSet::cachedMissingPartsCommonAncestors
IL_0016: br => Label1
IL_001B: Label0
IL_001B: ldarg.0
IL_001C: ldfld System.Collections.Generic.List`1<Verse.Hediff_MissingPart>
Verse.HediffSet::cachedMissingPartsCommonAncestors
IL_0021: callvirt virtual System.Void
System.Collections.Generic.List`1<Verse.Hediff_MissingPart>::Clear()
IL_0026: Label1
IL_0026: ldarg.0
IL_0027: ldfld System.Collections.Generic.Queue`1<Verse.BodyPartRecord>
Verse.HediffSet::missingPartsCommonAncestorsQueue
IL_002C: callvirt System.Void
System.Collections.Generic.Queue`1<Verse.BodyPartRecord>::Clear()
IL_0031: ldarg.0
IL_0032: ldfld System.Collections.Generic.Queue`1<Verse.BodyPartRecord>
Verse.HediffSet::missingPartsCommonAncestorsQueue
IL_0037: ldarg.0
IL_0038: ldfld Verse.Pawn Verse.HediffSet::pawn
IL_003D: call static Verse.BodyDef
AlienRace.HarmonyPatches::ReplacedBody(Verse.Pawn pawn)
IL_0042: ldfld Verse.BodyPartRecord Verse.BodyDef::corePart
IL_0047: callvirt System.Void
System.Collections.Generic.Queue`1<Verse.BodyPartRecord>::Enqueue(Verse.BodyPartRec
ord item)
IL_004C: br => Label2
IL_0051: Label8
IL_0051: ldarg.0
IL_0052: ldfld System.Collections.Generic.Queue`1<Verse.BodyPartRecord>
Verse.HediffSet::missingPartsCommonAncestorsQueue
IL_0057: callvirt Verse.BodyPartRecord
System.Collections.Generic.Queue`1<Verse.BodyPartRecord>::Dequeue()
IL_005C: stloc.0
IL_005D: ldarg.0
IL_005E: ldloc.0
IL_005F: call System.Boolean
Verse.HediffSet::PartOrAnyAncestorHasDirectlyAddedParts(Verse.BodyPartRecord part)
IL_0064: brtrue => Label3
IL_0069: ldarg.0
IL_006A: ldloc.0
IL_006B: call Verse.Hediff_MissingPart
Verse.HediffSet::GetFirstHediffMatchingPart(Verse.BodyPartRecord part)
IL_0070: stloc.1
IL_0071: ldloc.1
IL_0072: brfalse => Label4
IL_0077: ldarg.0
IL_0078: ldfld System.Collections.Generic.List`1<Verse.Hediff_MissingPart>
Verse.HediffSet::cachedMissingPartsCommonAncestors
IL_007D: ldloc.1
IL_007E: callvirt virtual System.Void
System.Collections.Generic.List`1<Verse.Hediff_MissingPart>::Add(Verse.Hediff_Missi
ngPart item)
IL_0083: br => Label5
IL_0088: Label4
IL_0088: ldc.i4.0
IL_0089: stloc.2
IL_008A: br => Label6
IL_008F: Label7
IL_008F: ldarg.0
IL_0090: ldfld System.Collections.Generic.Queue`1<Verse.BodyPartRecord>
Verse.HediffSet::missingPartsCommonAncestorsQueue
IL_0095: ldloc.0
IL_0096: ldfld System.Collections.Generic.List`1<Verse.BodyPartRecord>
Verse.BodyPartRecord::parts
IL_009B: ldloc.2
IL_009C: callvirt virtual Verse.BodyPartRecord
System.Collections.Generic.List`1<Verse.BodyPartRecord>::get_Item(System.Int32
index)
IL_00A1: callvirt System.Void
System.Collections.Generic.Queue`1<Verse.BodyPartRecord>::Enqueue(Verse.BodyPartRec
ord item)
IL_00A6: ldloc.2
IL_00A7: ldc.i4.1
IL_00A8: add
IL_00A9: stloc.2
IL_00AA: Label6
IL_00AA: ldloc.2
IL_00AB: ldloc.0
IL_00AC: ldfld System.Collections.Generic.List`1<Verse.BodyPartRecord>
Verse.BodyPartRecord::parts
IL_00B1: callvirt virtual System.Int32
System.Collections.Generic.List`1<Verse.BodyPartRecord>::get_Count()
IL_00B6: blt => Label7
IL_00BB: Label2
IL_00BB: Label3
IL_00BB: Label5
IL_00BB: ldarg.0
IL_00BC: ldfld System.Collections.Generic.Queue`1<Verse.BodyPartRecord>
Verse.HediffSet::missingPartsCommonAncestorsQueue
IL_00C1: callvirt virtual System.Int32
System.Collections.Generic.Queue`1<Verse.BodyPartRecord>::get_Count()
IL_00C6: brtrue => Label8
IL_00CB: // end original
IL_00CB: ret
DONE

### Patch: static System.Single


Verse.PawnCapacityUtility::CalculateTagEfficiency(Verse.HediffSet diffSet,
Verse.BodyPartTagDef tag, System.Single maximum, Verse.FloatRange lerp,
System.Collections.Generic.List`1<Verse.CapacityImpactor> impactors, System.Single
bestPartEfficiencySpecialWeight)
### Replacement: static System.Single
Verse.PawnCapacityUtility::Verse.PawnCapacityUtility.CalculateTagEfficiency_Patch0(
Verse.HediffSet diffSet, Verse.BodyPartTagDef tag, System.Single maximum,
Verse.FloatRange lerp, System.Collections.Generic.List`1<Verse.CapacityImpactor>
impactors, System.Single bestPartEfficiencySpecialWeight)
IL_0000: Local var 0: System.Single
IL_0000: Local var 1: System.Int32
IL_0000: Local var 2: System.Single
IL_0000: Local var 3:
System.Collections.Generic.List`1<Verse.PawnCapacityUtility/CapacityImpactor>
IL_0000: Local var 4: System.Single
IL_0000: Local var 5: System.Single
IL_0000: Local var 6:
System.Collections.Generic.List`1/Enumerator<Verse.BodyPartRecord>
IL_0000: Local var 7: Verse.BodyPartRecord
IL_0000: Local var 8: System.Single
IL_0000: Local var 9: Verse.FloatRange
IL_0000: // start original
IL_0000: ldarg.0
IL_0001: ldfld Verse.Pawn Verse.HediffSet::pawn
IL_0006: call static Verse.BodyDef
AlienRace.HarmonyPatches::ReplacedBody(Verse.Pawn pawn)
IL_000B: ldc.r4 0
IL_0010: stloc.0
IL_0011: ldc.i4.0
IL_0012: stloc.1
IL_0013: ldc.r4 0
IL_0018: stloc.2
IL_0019: ldnull
IL_001A: stloc.3
IL_001B: ldarg.1
IL_001C: callvirt System.Collections.Generic.List`1<Verse.BodyPartRecord>
Verse.BodyDef::GetPartsWithTag(Verse.BodyPartTagDef tag)
IL_0021: callvirt System.Collections.Generic.Enumerator<Verse.BodyPartRecord>
System.Collections.Generic.List`1<Verse.BodyPartRecord>::GetEnumerator()
IL_0026: stloc.s 6
(System.Collections.Generic.List`1+Enumerator[Verse.BodyPartRecord])
.try
{
IL_0028: br => Label0
IL_002D: Label4
IL_002D: ldloca.s 6
(System.Collections.Generic.List`1+Enumerator[Verse.BodyPartRecord])
IL_002F: call virtual Verse.BodyPartRecord
System.Collections.Generic.Enumerator<Verse.BodyPartRecord>::get_Current()
IL_0034: stloc.s 7 (Verse.BodyPartRecord)
IL_0036: ldarg.0
IL_0037: ldloc.s 7 (Verse.BodyPartRecord)
IL_0039: ldc.i4.0
IL_003A: ldloc.3
IL_003B: call static System.Single
Verse.PawnCapacityUtility::CalculatePartEfficiency(Verse.HediffSet diffSet,
Verse.BodyPartRecord part, System.Boolean ignoreAddedParts,
System.Collections.Generic.List`1<Verse.CapacityImpactor> impactors)
IL_0040: stloc.s 8 (System.Single)
IL_0042: ldarg.s 4
IL_0044: brfalse => Label1
IL_0049: ldloc.s 8 (System.Single)
IL_004B: ldc.r4 1
IL_0050: beq => Label2
IL_0055: ldloc.3
IL_0056: brtrue => Label3
IL_005B: newobj System.Void
System.Collections.Generic.List`1<Verse.CapacityImpactor>::.ctor()
IL_0060: stloc.3
IL_0061: ldarg.0
IL_0062: ldloc.s 7 (Verse.BodyPartRecord)
IL_0064: ldc.i4.0
IL_0065: ldloc.3
IL_0066: call static System.Single
Verse.PawnCapacityUtility::CalculatePartEfficiency(Verse.HediffSet diffSet,
Verse.BodyPartRecord part, System.Boolean ignoreAddedParts,
System.Collections.Generic.List`1<Verse.CapacityImpactor> impactors)
IL_006B: pop
IL_006C: Label1
IL_006C: Label2
IL_006C: Label3
IL_006C: ldloc.0
IL_006D: ldloc.s 8 (System.Single)
IL_006F: add
IL_0070: stloc.0
IL_0071: ldloc.2
IL_0072: ldloc.s 8 (System.Single)
IL_0074: call static System.Single UnityEngine.Mathf::Max(System.Single
a, System.Single b)
IL_0079: stloc.2
IL_007A: ldloc.1
IL_007B: ldc.i4.1
IL_007C: add
IL_007D: stloc.1
IL_007E: Label0
IL_007E: ldloca.s 6
(System.Collections.Generic.List`1+Enumerator[Verse.BodyPartRecord])
IL_0080: call virtual System.Boolean
System.Collections.Generic.Enumerator<Verse.BodyPartRecord>::MoveNext()
IL_0085: brtrue => Label4
IL_008A: leave => Label5
IL_008F: leave => (autogenerated)
} // end try
.finally
{
IL_0094: ldloca.s 6
(System.Collections.Generic.List`1+Enumerator[Verse.BodyPartRecord])
IL_0096: constrained.
System.Collections.Generic.List`1+Enumerator[Verse.BodyPartRecord]
IL_009C: callvirt abstract virtual System.Void
System.IDisposable::Dispose()
IL_00A1: endfinally
IL_00A2: leave => (autogenerated)
} // end handler
IL_00A3: Label5
IL_00A3: ldloc.1
IL_00A4: brtrue => Label6
IL_00A9: ldc.r4 1
IL_00AE: br => Label20
IL_00B3: Label6
IL_00B3: ldarg.s 5
IL_00B5: ldc.r4 0
IL_00BA: blt.un => Label7
IL_00BF: ldloc.1
IL_00C0: ldc.i4.2
IL_00C1: blt => Label8
IL_00C6: ldloc.2
IL_00C7: ldarg.s 5
IL_00C9: mul
IL_00CA: ldloc.0
IL_00CB: ldloc.2
IL_00CC: sub
IL_00CD: ldloc.1
IL_00CE: ldc.i4.1
IL_00CF: sub
IL_00D0: conv.r4
IL_00D1: div
IL_00D2: ldc.r4 1
IL_00D7: ldarg.s 5
IL_00D9: sub
IL_00DA: mul
IL_00DB: add
IL_00DC: stloc.s 4 (System.Single)
IL_00DE: br => Label9
IL_00E3: Label7
IL_00E3: Label8
IL_00E3: ldloc.0
IL_00E4: ldloc.1
IL_00E5: conv.r4
IL_00E6: div
IL_00E7: stloc.s 4 (System.Single)
IL_00E9: Label9
IL_00E9: ldloc.s 4 (System.Single)
IL_00EB: stloc.s 5 (System.Single)
IL_00ED: ldarg.3
IL_00EE: ldloca.s 9 (Verse.FloatRange)
IL_00F0: initobj Verse.FloatRange
IL_00F6: ldloc.s 9 (Verse.FloatRange)
IL_00F8: call static System.Boolean
Verse.FloatRange::op_Inequality(Verse.FloatRange a, Verse.FloatRange b)
IL_00FD: brfalse => Label10
IL_0102: ldarga.s 3
IL_0104: ldloc.s 5 (System.Single)
IL_0106: call System.Single Verse.FloatRange::LerpThroughRange(System.Single
lerpPct)
IL_010B: stloc.s 5 (System.Single)
IL_010D: Label10
IL_010D: ldloc.s 5 (System.Single)
IL_010F: ldarg.2
IL_0110: call static System.Single UnityEngine.Mathf::Min(System.Single a,
System.Single b)
IL_0115: stloc.s 5 (System.Single)
IL_0117: ldarg.s 4
IL_0119: brfalse => Label11
IL_011E: ldloc.3
IL_011F: brfalse => Label12
IL_0124: ldarg.2
IL_0125: ldc.r4 1
IL_012A: bne.un => Label13
IL_012F: ldloc.s 4 (System.Single)
IL_0131: ldc.r4 1
IL_0136: ble => Label14
IL_013B: ldloc.s 5 (System.Single)
IL_013D: ldc.r4 1
IL_0142: bne.un => Label15
IL_0147: Label13
IL_0147: Label14
IL_0147: ldarg.s 4
IL_0149: ldloc.3
IL_014A: callvirt System.Void
System.Collections.Generic.List`1<Verse.CapacityImpactor>::AddRange(System.Collecti
ons.Generic.IEnumerable`1<Verse.CapacityImpactor> collection)
IL_014F: Label11
IL_014F: Label12
IL_014F: Label15
IL_014F: ldloc.s 5 (System.Single)
IL_0151: // end original
IL_0151: Label20
IL_0151: ret
DONE

### Patch: static System.Single


Verse.PawnCapacityUtility::CalculateLimbEfficiency(Verse.HediffSet diffSet,
Verse.BodyPartTagDef limbCoreTag, Verse.BodyPartTagDef limbSegmentTag,
Verse.BodyPartTagDef limbDigitTag, System.Single appendageWeight, System.Single&
functionalPercentage, System.Collections.Generic.List`1<Verse.CapacityImpactor>
impactors)
### Replacement: static System.Single
Verse.PawnCapacityUtility::Verse.PawnCapacityUtility.CalculateLimbEfficiency_Patch0
(Verse.HediffSet diffSet, Verse.BodyPartTagDef limbCoreTag, Verse.BodyPartTagDef
limbSegmentTag, Verse.BodyPartTagDef limbDigitTag, System.Single appendageWeight,
System.Single& functionalPercentage,
System.Collections.Generic.List`1<Verse.CapacityImpactor> impactors)
IL_0000: Local var 0: Verse.PawnCapacityUtility/<>c__DisplayClass12_0
IL_0000: Local var 1: System.Single
IL_0000: Local var 2: System.Int32
IL_0000: Local var 3: System.Int32
IL_0000: Local var 4:
System.Collections.Generic.List`1/Enumerator<Verse.BodyPartRecord>
IL_0000: Local var 5: Verse.BodyPartRecord
IL_0000: Local var 6: System.Single
IL_0000: Local var 7:
System.Collections.Generic.IEnumerator`1<Verse.BodyPartRecord>
IL_0000: Local var 8: Verse.BodyPartRecord
IL_0000: Local var 9: System.Func`2<Verse.BodyPartRecord,System.Single>
IL_0000: // start original
IL_0000: newobj System.Void Verse.<>c__DisplayClass12_0::.ctor()
IL_0005: stloc.0
IL_0006: ldloc.0
IL_0007: ldarg.0
IL_0008: stfld Verse.HediffSet Verse.<>c__DisplayClass12_0::diffSet
IL_000D: ldloc.0
IL_000E: ldarg.s 6
IL_0010: stfld System.Collections.Generic.List`1<Verse.CapacityImpactor>
Verse.<>c__DisplayClass12_0::impactors
IL_0015: ldloc.0
IL_0016: ldfld Verse.HediffSet Verse.<>c__DisplayClass12_0::diffSet
IL_001B: ldfld Verse.Pawn Verse.HediffSet::pawn
IL_0020: call static Verse.BodyDef
AlienRace.HarmonyPatches::ReplacedBody(Verse.Pawn pawn)
IL_0025: ldc.r4 0
IL_002A: stloc.1
IL_002B: ldc.i4.0
IL_002C: stloc.2
IL_002D: ldc.i4.0
IL_002E: stloc.3
IL_002F: ldarg.1
IL_0030: callvirt System.Collections.Generic.List`1<Verse.BodyPartRecord>
Verse.BodyDef::GetPartsWithTag(Verse.BodyPartTagDef tag)
IL_0035: callvirt System.Collections.Generic.Enumerator<Verse.BodyPartRecord>
System.Collections.Generic.List`1<Verse.BodyPartRecord>::GetEnumerator()
IL_003A: stloc.s 4
(System.Collections.Generic.List`1+Enumerator[Verse.BodyPartRecord])
.try
{
IL_003C: br => Label0
IL_0041: Label8
IL_0041: ldloca.s 4
(System.Collections.Generic.List`1+Enumerator[Verse.BodyPartRecord])
IL_0043: call virtual Verse.BodyPartRecord
System.Collections.Generic.Enumerator<Verse.BodyPartRecord>::get_Current()
IL_0048: stloc.s 5 (Verse.BodyPartRecord)
IL_004A: ldloc.0
IL_004B: ldfld Verse.HediffSet Verse.<>c__DisplayClass12_0::diffSet
IL_0050: ldloc.s 5 (Verse.BodyPartRecord)
IL_0052: ldloc.0
IL_0053: ldfld System.Collections.Generic.List`1<Verse.CapacityImpactor>
Verse.<>c__DisplayClass12_0::impactors
IL_0058: call static System.Single
Verse.PawnCapacityUtility::CalculateImmediatePartEfficiencyAndRecord(Verse.HediffSe
t diffSet, Verse.BodyPartRecord part,
System.Collections.Generic.List`1<Verse.CapacityImpactor> impactors)
IL_005D: stloc.s 6 (System.Single)
IL_005F: ldloc.s 5 (Verse.BodyPartRecord)
IL_0061: ldarg.2
IL_0062: callvirt
System.Collections.Generic.IEnumerable`1<Verse.BodyPartRecord>
Verse.BodyPartRecord::GetConnectedParts(Verse.BodyPartTagDef tag)
IL_0067: callvirt abstract virtual
System.Collections.Generic.IEnumerator`1<Verse.BodyPartRecord>
System.Collections.Generic.IEnumerable`1<Verse.BodyPartRecord>::GetEnumerator()
IL_006C: stloc.s 7
(System.Collections.Generic.IEnumerator`1[Verse.BodyPartRecord])
.try
{
IL_006E: br => Label1
IL_0073: Label2
IL_0073: ldloc.s 7
(System.Collections.Generic.IEnumerator`1[Verse.BodyPartRecord])
IL_0075: callvirt abstract virtual Verse.BodyPartRecord
System.Collections.Generic.IEnumerator`1<Verse.BodyPartRecord>::get_Current()
IL_007A: stloc.s 8 (Verse.BodyPartRecord)
IL_007C: ldloc.s 6 (System.Single)
IL_007E: ldloc.0
IL_007F: ldfld Verse.HediffSet
Verse.<>c__DisplayClass12_0::diffSet
IL_0084: ldloc.s 8 (Verse.BodyPartRecord)
IL_0086: ldloc.0
IL_0087: ldfld
System.Collections.Generic.List`1<Verse.CapacityImpactor>
Verse.<>c__DisplayClass12_0::impactors
IL_008C: call static System.Single
Verse.PawnCapacityUtility::CalculateImmediatePartEfficiencyAndRecord(Verse.HediffSe
t diffSet, Verse.BodyPartRecord part,
System.Collections.Generic.List`1<Verse.CapacityImpactor> impactors)
IL_0091: mul
IL_0092: stloc.s 6 (System.Single)
IL_0094: Label1
IL_0094: ldloc.s 7
(System.Collections.Generic.IEnumerator`1[Verse.BodyPartRecord])
IL_0096: callvirt abstract virtual System.Boolean
System.Collections.IEnumerator::MoveNext()
IL_009B: brtrue => Label2
IL_00A0: leave => Label3
IL_00A5: leave => (autogenerated)
} // end try
.finally
{
IL_00AA: ldloc.s 7
(System.Collections.Generic.IEnumerator`1[Verse.BodyPartRecord])
IL_00AC: brfalse => Label4
IL_00B1: ldloc.s 7
(System.Collections.Generic.IEnumerator`1[Verse.BodyPartRecord])
IL_00B3: callvirt abstract virtual System.Void
System.IDisposable::Dispose()
IL_00B8: Label4
IL_00B8: endfinally
IL_00B9: leave => (autogenerated)
} // end handler
IL_00BA: Label3
IL_00BA: ldloc.s 5 (Verse.BodyPartRecord)
IL_00BC: ldarg.3
IL_00BD: callvirt System.Boolean
Verse.BodyPartRecord::HasChildParts(Verse.BodyPartTagDef tag)
IL_00C2: brfalse => Label5
IL_00C7: ldloc.s 6 (System.Single)
IL_00C9: ldloc.s 6 (System.Single)
IL_00CB: ldloc.s 5 (Verse.BodyPartRecord)
IL_00CD: ldarg.3
IL_00CE: callvirt
System.Collections.Generic.IEnumerable`1<Verse.BodyPartRecord>
Verse.BodyPartRecord::GetChildParts(Verse.BodyPartTagDef tag)
IL_00D3: ldloc.0
IL_00D4: ldfld System.Func`2<Verse.BodyPartRecord, System.Single>
Verse.<>c__DisplayClass12_0::<>9__0
IL_00D9: dup
IL_00DA: brtrue => Label6
IL_00DF: pop
IL_00E0: ldloc.0
IL_00E1: ldloc.0
IL_00E2: ldftn System.Single
Verse.<>c__DisplayClass12_0::<CalculateLimbEfficiency>b__0(Verse.BodyPartRecord
digitPart)
IL_00E8: newobj System.Void System.Func`2<Verse.BodyPartRecord,
System.Single>::.ctor(System.Object object, System.IntPtr method)
IL_00ED: dup
IL_00EE: stloc.s 9 (System.Func`2[Verse.BodyPartRecord,System.Single])
IL_00F0: stfld System.Func`2<Verse.BodyPartRecord, System.Single>
Verse.<>c__DisplayClass12_0::<>9__0
IL_00F5: ldloc.s 9 (System.Func`2[Verse.BodyPartRecord,System.Single])
IL_00F7: Label6
IL_00F7: call static System.Single
System.Linq.Enumerable::Average(System.Collections.Generic.IEnumerable`1<Verse.Body
PartRecord> source, System.Func`2<Verse.BodyPartRecord, System.Single> selector)
IL_00FC: mul
IL_00FD: ldarg.s 4
IL_00FF: call static System.Single
UnityEngine.Mathf::Lerp(System.Single a, System.Single b, System.Single t)
IL_0104: stloc.s 6 (System.Single)
IL_0106: Label5
IL_0106: ldloc.1
IL_0107: ldloc.s 6 (System.Single)
IL_0109: add
IL_010A: stloc.1
IL_010B: ldloc.2
IL_010C: ldc.i4.1
IL_010D: add
IL_010E: stloc.2
IL_010F: ldloc.s 6 (System.Single)
IL_0111: ldc.r4 0
IL_0116: ble.un => Label7
IL_011B: ldloc.3
IL_011C: ldc.i4.1
IL_011D: add
IL_011E: stloc.3
IL_011F: Label0
IL_011F: Label7
IL_011F: ldloca.s 4
(System.Collections.Generic.List`1+Enumerator[Verse.BodyPartRecord])
IL_0121: call virtual System.Boolean
System.Collections.Generic.Enumerator<Verse.BodyPartRecord>::MoveNext()
IL_0126: brtrue => Label8
IL_012B: leave => Label9
IL_0130: leave => (autogenerated)
} // end try
.finally
{
IL_0135: ldloca.s 4
(System.Collections.Generic.List`1+Enumerator[Verse.BodyPartRecord])
IL_0137: constrained.
System.Collections.Generic.List`1+Enumerator[Verse.BodyPartRecord]
IL_013D: callvirt abstract virtual System.Void
System.IDisposable::Dispose()
IL_0142: endfinally
IL_0143: leave => (autogenerated)
} // end handler
IL_0144: Label9
IL_0144: ldloc.2
IL_0145: brtrue => Label10
IL_014A: ldarg.s 5
IL_014C: ldc.r4 0
IL_0151: stind.r4
IL_0152: ldc.r4 0
IL_0157: br => Label19
IL_015C: Label10
IL_015C: ldarg.s 5
IL_015E: ldloc.3
IL_015F: conv.r4
IL_0160: ldloc.2
IL_0161: conv.r4
IL_0162: div
IL_0163: stind.r4
IL_0164: ldloc.1
IL_0165: ldloc.2
IL_0166: conv.r4
IL_0167: div
IL_0168: // end original
IL_0168: Label19
IL_0168: ret
DONE

### Patch: static System.Void Verse.PawnGenerator::AddBlindness(Verse.Pawn pawn)


### Replacement: static System.Void
Verse.PawnGenerator::Verse.PawnGenerator.AddBlindness_Patch0(Verse.Pawn pawn)
IL_0000: Local var 0:
System.Collections.Generic.List`1/Enumerator<Verse.BodyPartRecord>
IL_0000: Local var 1: Verse.BodyPartRecord
IL_0000: Local var 2: Verse.Hediff_MissingPart
IL_0000: Local var 3: System.Nullable`1<Verse.DamageInfo>
IL_0000: // start original
IL_0000: ldarg.0
IL_0001: ldfld RimWorld.Pawn_IdeoTracker Verse.Pawn::ideo
IL_0006: brfalse => Label0
IL_000B: ldarg.0
IL_000C: ldfld RimWorld.Pawn_IdeoTracker Verse.Pawn::ideo
IL_0011: callvirt RimWorld.Ideo RimWorld.Pawn_IdeoTracker::get_Ideo()
IL_0016: brfalse => Label1
IL_001B: ldarg.0
IL_001C: ldfld Verse.Pawn_HealthTracker Verse.Pawn::health
IL_0021: brtrue => Label2
IL_0026: Label0
IL_0026: Label1
IL_0026: br => Label8
IL_002B: Label2
IL_002B: ldarg.0
IL_002C: ldfld RimWorld.Pawn_IdeoTracker Verse.Pawn::ideo
IL_0031: callvirt RimWorld.Ideo RimWorld.Pawn_IdeoTracker::get_Ideo()
IL_0036: callvirt System.Single RimWorld.Ideo::get_BlindPawnChance()
IL_003B: call static System.Boolean Verse.Rand::Chance(System.Single chance)
IL_0040: brfalse => Label3
IL_0045: ldarg.0
IL_0046: call static Verse.BodyDef
AlienRace.HarmonyPatches::ReplacedBody(Verse.Pawn pawn)
IL_004B: ldsfld Verse.BodyPartTagDef RimWorld.BodyPartTagDefOf::SightSource
IL_0050: callvirt System.Collections.Generic.List`1<Verse.BodyPartRecord>
Verse.BodyDef::GetPartsWithTag(Verse.BodyPartTagDef tag)
IL_0055: callvirt System.Collections.Generic.Enumerator<Verse.BodyPartRecord>
System.Collections.Generic.List`1<Verse.BodyPartRecord>::GetEnumerator()
IL_005A: stloc.0
.try
{
IL_005B: br => Label4
IL_0060: Label6
IL_0060: ldloca.s 0
(System.Collections.Generic.List`1+Enumerator[Verse.BodyPartRecord])
IL_0062: call virtual Verse.BodyPartRecord
System.Collections.Generic.Enumerator<Verse.BodyPartRecord>::get_Current()
IL_0067: stloc.1
IL_0068: ldarg.0
IL_0069: ldfld Verse.Pawn_HealthTracker Verse.Pawn::health
IL_006E: ldfld Verse.HediffSet Verse.Pawn_HealthTracker::hediffSet
IL_0073: ldloc.1
IL_0074: callvirt System.Boolean
Verse.HediffSet::PartIsMissing(Verse.BodyPartRecord part)
IL_0079: brtrue => Label5
IL_007E: ldsfld Verse.HediffDef RimWorld.HediffDefOf::MissingBodyPart
IL_0083: ldarg.0
IL_0084: ldnull
IL_0085: call static Verse.Hediff
Verse.HediffMaker::MakeHediff(Verse.HediffDef def, Verse.Pawn pawn,
Verse.BodyPartRecord partRecord)
IL_008A: castclass Verse.Hediff_MissingPart
IL_008F: stloc.2
IL_0090: ldloc.2
IL_0091: ldsfld Verse.HediffDef RimWorld.HediffDefOf::Cut
IL_0096: stfld Verse.HediffDef Verse.Hediff_MissingPart::lastInjury
IL_009B: ldloc.2
IL_009C: ldloc.1
IL_009D: callvirt System.Void Verse.Hediff::set_Part(Verse.BodyPartRecord
value)
IL_00A2: ldloc.2
IL_00A3: ldc.i4.0
IL_00A4: callvirt System.Void
Verse.Hediff_MissingPart::set_IsFresh(System.Boolean value)
IL_00A9: ldarg.0
IL_00AA: ldfld Verse.Pawn_HealthTracker Verse.Pawn::health
IL_00AF: ldloc.2
IL_00B0: ldloc.1
IL_00B1: ldloca.s 3 (System.Nullable`1[Verse.DamageInfo])
IL_00B3: initobj System.Nullable`1[Verse.DamageInfo]
IL_00B9: ldloc.3
IL_00BA: ldnull
IL_00BB: callvirt System.Void
Verse.Pawn_HealthTracker::AddHediff(Verse.Hediff hediff, Verse.BodyPartRecord part,
System.Nullable`1<Verse.DamageInfo> dinfo, Verse.DamageResult result)
IL_00C0: Label4
IL_00C0: Label5
IL_00C0: ldloca.s 0
(System.Collections.Generic.List`1+Enumerator[Verse.BodyPartRecord])
IL_00C2: call virtual System.Boolean
System.Collections.Generic.Enumerator<Verse.BodyPartRecord>::MoveNext()
IL_00C7: brtrue => Label6
IL_00CC: leave => Label7
IL_00D1: leave => (autogenerated)
} // end try
.finally
{
IL_00D6: ldloca.s 0
(System.Collections.Generic.List`1+Enumerator[Verse.BodyPartRecord])
IL_00D8: constrained.
System.Collections.Generic.List`1+Enumerator[Verse.BodyPartRecord]
IL_00DE: callvirt abstract virtual System.Void
System.IDisposable::Dispose()
IL_00E3: endfinally
IL_00E4: leave => (autogenerated)
} // end handler
IL_00E5: // end original
IL_00E5: Label3
IL_00E5: Label7
IL_00E5: Label8
IL_00E5: ret
DONE

### Patch: System.Boolean Verse.Pawn_HealthTracker::ShouldBeDead()


### Replacement: static System.Boolean
Verse.Pawn_HealthTracker::Verse.Pawn_HealthTracker.ShouldBeDead_Patch1(Verse.Pawn_H
ealthTracker this)
IL_0000: Local var 0: System.Int32
IL_0000: Local var 1: System.Boolean
IL_0000: ldc.i4 0
IL_0005: stloc 1 (System.Boolean)
IL_0009: // start original
IL_0009: ldarg.0
IL_000A: call System.Boolean Verse.Pawn_HealthTracker::get_Dead()
IL_000F: brfalse => Label0
IL_0014: ldc.i4.1
IL_0015: br => Label8
IL_001A: Label0
IL_001A: ldc.i4.0
IL_001B: stloc.0
IL_001C: br => Label1
IL_0021: Label3
IL_0021: ldarg.0
IL_0022: ldfld Verse.HediffSet Verse.Pawn_HealthTracker::hediffSet
IL_0027: ldfld System.Collections.Generic.List`1<Verse.Hediff>
Verse.HediffSet::hediffs
IL_002C: ldloc.0
IL_002D: callvirt virtual Verse.Hediff
System.Collections.Generic.List`1<Verse.Hediff>::get_Item(System.Int32 index)
IL_0032: callvirt virtual System.Boolean Verse.Hediff::CauseDeathNow()
IL_0037: brfalse => Label2
IL_003C: ldc.i4.1
IL_003D: br => Label9
IL_0042: Label2
IL_0042: ldloc.0
IL_0043: ldc.i4.1
IL_0044: add
IL_0045: stloc.0
IL_0046: Label1
IL_0046: ldloc.0
IL_0047: ldarg.0
IL_0048: ldfld Verse.HediffSet Verse.Pawn_HealthTracker::hediffSet
IL_004D: ldfld System.Collections.Generic.List`1<Verse.Hediff>
Verse.HediffSet::hediffs
IL_0052: callvirt virtual System.Int32
System.Collections.Generic.List`1<Verse.Hediff>::get_Count()
IL_0057: blt => Label3
IL_005C: ldarg.0
IL_005D: call Verse.PawnCapacityDef
Verse.Pawn_HealthTracker::ShouldBeDeadFromRequiredCapacity()
IL_0062: brfalse => Label4
IL_0067: ldc.i4.1
IL_0068: br => Label10
IL_006D: Label4
IL_006D: ldarg.0
IL_006E: ldfld Verse.HediffSet Verse.Pawn_HealthTracker::hediffSet
IL_0073: ldarg.0
IL_0074: ldfld Verse.Pawn Verse.Pawn_HealthTracker::pawn
IL_0079: call static Verse.BodyDef
AlienRace.HarmonyPatches::ReplacedBody(Verse.Pawn pawn)
IL_007E: ldfld Verse.BodyPartRecord Verse.BodyDef::corePart
IL_0083: ldc.i4.0
IL_0084: ldnull
IL_0085: call static System.Single
Verse.PawnCapacityUtility::CalculatePartEfficiency(Verse.HediffSet diffSet,
Verse.BodyPartRecord part, System.Boolean ignoreAddedParts,
System.Collections.Generic.List`1<Verse.CapacityImpactor> impactors)
IL_008A: ldc.r4 0.0001
IL_008F: bgt.un => Label5
IL_0094: ldsfld System.Boolean Verse.DebugViewSettings::logCauseOfDeath
IL_0099: brfalse => Label6
IL_009E: ldstr "CauseOfDeath: zero efficiency of "
IL_00A3: ldarg.0
IL_00A4: ldfld Verse.Pawn Verse.Pawn_HealthTracker::pawn
IL_00A9: call static Verse.BodyDef
AlienRace.HarmonyPatches::ReplacedBody(Verse.Pawn pawn)
IL_00AE: ldfld Verse.BodyPartRecord Verse.BodyDef::corePart
IL_00B3: callvirt System.String Verse.BodyPartRecord::get_Label()
IL_00B8: call static System.String System.String::Concat(System.String str0,
System.String str1)
IL_00BD: call static System.Void Verse.Log::Message(System.String text)
IL_00C2: Label6
IL_00C2: ldc.i4.1
IL_00C3: br => Label11
IL_00C8: Label5
IL_00C8: ldarg.0
IL_00C9: call System.Boolean
Verse.Pawn_HealthTracker::ShouldBeDeadFromLethalDamageThreshold()
IL_00CE: brfalse => Label7
IL_00D3: ldc.i4.1
IL_00D4: br => Label12
IL_00D9: Label7
IL_00D9: ldc.i4.0
IL_00DA: // end original
IL_00DA: Label8
IL_00DA: Label9
IL_00DA: Label10
IL_00DA: Label11
IL_00DA: Label12
IL_00DA: stloc 1 (System.Boolean)
IL_00DE: ldloca 1 (System.Boolean)
IL_00E2: ldarg.0
IL_00E3: ldfld Verse.Pawn Verse.Pawn_HealthTracker::pawn
IL_00E8: call static System.Void
ATReforged.DeadSurrogatesBrain_Patch::Listener(System.Boolean& __result, Verse.Pawn
___pawn)
IL_00ED: ldloc 1 (System.Boolean)
IL_00F1: ret
DONE

### Patch: System.Collections.Generic.HashSet`1<Verse.Hediff>


Verse.Pawn_HealthTracker::CalculateMissingPartHediffsFromInjury(Verse.Hediff
hediff)
### Replacement: static System.Collections.Generic.HashSet`1<Verse.Hediff>
Verse.Pawn_HealthTracker::Verse.Pawn_HealthTracker.CalculateMissingPartHediffsFromI
njury_Patch0(Verse.Pawn_HealthTracker this, Verse.Hediff hediff)
IL_0000: Local var 0: Verse.Pawn_HealthTracker/<>c__DisplayClass49_0
IL_0000: // start original
IL_0000: ldloca.s 0 (Verse.Pawn_HealthTracker+<>c__DisplayClass49_0)
IL_0002: ldarg.0
IL_0003: stfld Verse.Pawn_HealthTracker Verse.<>c__DisplayClass49_0::<>4__this
IL_0008: ldloca.s 0 (Verse.Pawn_HealthTracker+<>c__DisplayClass49_0)
IL_000A: ldarg.1
IL_000B: stfld Verse.Hediff Verse.<>c__DisplayClass49_0::hediff
IL_0010: ldloca.s 0 (Verse.Pawn_HealthTracker+<>c__DisplayClass49_0)
IL_0012: ldnull
IL_0013: stfld System.Collections.Generic.HashSet`1<Verse.Hediff>
Verse.<>c__DisplayClass49_0::missing
IL_0018: ldloc.0
IL_0019: ldfld Verse.Hediff Verse.<>c__DisplayClass49_0::hediff
IL_001E: callvirt Verse.BodyPartRecord Verse.Hediff::get_Part()
IL_0023: brfalse => Label0
IL_0028: ldloc.0
IL_0029: ldfld Verse.Hediff Verse.<>c__DisplayClass49_0::hediff
IL_002E: callvirt Verse.BodyPartRecord Verse.Hediff::get_Part()
IL_0033: ldarg.0
IL_0034: ldfld Verse.Pawn Verse.Pawn_HealthTracker::pawn
IL_0039: call static Verse.BodyDef
AlienRace.HarmonyPatches::ReplacedBody(Verse.Pawn pawn)
IL_003E: ldfld Verse.BodyPartRecord Verse.BodyDef::corePart
IL_0043: beq => Label1
IL_0048: ldloc.0
IL_0049: ldfld Verse.Hediff Verse.<>c__DisplayClass49_0::hediff
IL_004E: callvirt virtual System.Single Verse.Hediff::get_Severity()
IL_0053: ldarg.0
IL_0054: ldfld Verse.HediffSet Verse.Pawn_HealthTracker::hediffSet
IL_0059: ldloc.0
IL_005A: ldfld Verse.Hediff Verse.<>c__DisplayClass49_0::hediff
IL_005F: callvirt Verse.BodyPartRecord Verse.Hediff::get_Part()
IL_0064: callvirt System.Single
Verse.HediffSet::GetPartHealth(Verse.BodyPartRecord part)
IL_0069: blt.un => Label2
IL_006E: ldloca.s 0 (Verse.Pawn_HealthTracker+<>c__DisplayClass49_0)
IL_0070: newobj System.Void
System.Collections.Generic.HashSet`1<Verse.Hediff>::.ctor()
IL_0075: stfld System.Collections.Generic.HashSet`1<Verse.Hediff>
Verse.<>c__DisplayClass49_0::missing
IL_007A: ldarg.0
IL_007B: ldloc.0
IL_007C: ldfld Verse.Hediff Verse.<>c__DisplayClass49_0::hediff
IL_0081: callvirt Verse.BodyPartRecord Verse.Hediff::get_Part()
IL_0086: ldloca.s 0 (Verse.Pawn_HealthTracker+<>c__DisplayClass49_0)
IL_0088: call System.Void
Verse.Pawn_HealthTracker::<CalculateMissingPartHediffsFromInjury>g__AddAllParts|
49_0(Verse.BodyPartRecord part, Verse.<>c__DisplayClass49_0& )
IL_008D: Label0
IL_008D: Label1
IL_008D: Label2
IL_008D: ldloc.0
IL_008E: ldfld System.Collections.Generic.HashSet`1<Verse.Hediff>
Verse.<>c__DisplayClass49_0::missing
IL_0093: // end original
IL_0093: ret
DONE

### Patch: virtual System.Void Verse.Corpse::IngestedCalculateAmounts(Verse.Pawn


ingester, System.Single nutritionWanted, System.Int32& numTaken, System.Single&
nutritionIngested)
### Replacement: static System.Void
Verse.Corpse::Verse.Corpse.IngestedCalculateAmounts_Patch0(Verse.Corpse this,
Verse.Pawn ingester, System.Single nutritionWanted, System.Int32& numTaken,
System.Single& nutritionIngested)
IL_0000: Local var 0: Verse.BodyPartRecord
IL_0000: Local var 1: System.Single
IL_0000: Local var 2: Verse.TaggedString
IL_0000: Local var 3: Verse.Hediff_MissingPart
IL_0000: Local var 4: System.Nullable`1<Verse.DamageInfo>
IL_0000: // start original
IL_0000: ldarg.0
IL_0001: ldarg.1
IL_0002: ldarg.2
IL_0003: call Verse.BodyPartRecord
Verse.Corpse::GetBestBodyPartToEat(Verse.Pawn ingester, System.Single
nutritionWanted)
IL_0008: stloc.0
IL_0009: ldloc.0
IL_000A: brtrue => Label0
IL_000F: ldc.i4.4
IL_0010: newarr System.Object
IL_0015: dup
IL_0016: ldc.i4.0
IL_0017: ldarg.1
IL_0018: stelem.ref
IL_0019: dup
IL_001A: ldc.i4.1
IL_001B: ldstr " ate "
IL_0020: stelem.ref
IL_0021: dup
IL_0022: ldc.i4.2
IL_0023: ldarg.0
IL_0024: stelem.ref
IL_0025: dup
IL_0026: ldc.i4.3
IL_0027: ldstr " but no body part was found. Replacing with core part."
IL_002C: stelem.ref
IL_002D: call static System.String System.String::Concat(System.Object[]
args)
IL_0032: call static System.Void Verse.Log::Error(System.String text)
IL_0037: ldarg.0
IL_0038: call Verse.Pawn Verse.Corpse::get_InnerPawn()
IL_003D: call static Verse.BodyDef
AlienRace.HarmonyPatches::ReplacedBody(Verse.Pawn pawn)
IL_0042: ldfld Verse.BodyPartRecord Verse.BodyDef::corePart
IL_0047: stloc.0
IL_0048: Label0
IL_0048: ldarg.0
IL_0049: ldloc.0
IL_004A: call static System.Single
RimWorld.FoodUtility::GetBodyPartNutrition(Verse.Corpse corpse,
Verse.BodyPartRecord part)
IL_004F: stloc.1
IL_0050: ldloc.0
IL_0051: ldarg.0
IL_0052: call Verse.Pawn Verse.Corpse::get_InnerPawn()
IL_0057: call static Verse.BodyDef
AlienRace.HarmonyPatches::ReplacedBody(Verse.Pawn pawn)
IL_005C: ldfld Verse.BodyPartRecord Verse.BodyDef::corePart
IL_0061: bne.un => Label1
IL_0066: ldarg.0
IL_0067: call Verse.Pawn Verse.Corpse::get_InnerPawn()
IL_006C: call static System.Boolean
RimWorld.PawnUtility::ShouldSendNotificationAbout(Verse.Pawn p)
IL_0071: brfalse => Label2
IL_0076: ldarg.0
IL_0077: call Verse.Pawn Verse.Corpse::get_InnerPawn()
IL_007C: callvirt Verse.RaceProperties Verse.Pawn::get_RaceProps()
IL_0081: callvirt System.Boolean Verse.RaceProperties::get_Humanlike()
IL_0086: brfalse => Label3
IL_008B: ldstr "MessageEatenByPredator"
IL_0090: ldarg.0
IL_0091: call Verse.Pawn Verse.Corpse::get_InnerPawn()
IL_0096: callvirt virtual System.String Verse.Entity::get_LabelShort()
IL_009B: call static Verse.NamedArgument
Verse.NamedArgument::op_Implicit(System.String value)
IL_00A0: ldarg.1
IL_00A1: ldstr "PREDATOR"
IL_00A6: call static Verse.NamedArgument
Verse.NamedArgumentUtility::Named(System.Object arg, System.String label)
IL_00AB: ldarg.0
IL_00AC: call Verse.Pawn Verse.Corpse::get_InnerPawn()
IL_00B1: ldstr "EATEN"
IL_00B6: call static Verse.NamedArgument
Verse.NamedArgumentUtility::Named(System.Object arg, System.String label)
IL_00BB: call static Verse.TaggedString
Verse.TranslatorFormattedStringExtensions::Translate(System.String key,
Verse.NamedArgument arg1, Verse.NamedArgument arg2, Verse.NamedArgument arg3)
IL_00C0: stloc.2
IL_00C1: ldloca.s 2 (Verse.TaggedString)
IL_00C3: call Verse.TaggedString Verse.TaggedString::CapitalizeFirst()
IL_00C8: call static System.String
Verse.TaggedString::op_Implicit(Verse.TaggedString taggedString)
IL_00CD: ldarg.1
IL_00CE: call static Verse.LookTargets
Verse.LookTargets::op_Implicit(Verse.Thing t)
IL_00D3: ldsfld Verse.MessageTypeDef RimWorld.MessageTypeDefOf::NegativeEvent
IL_00D8: ldc.i4.1
IL_00D9: call static System.Void Verse.Messages::Message(System.String text,
Verse.LookTargets lookTargets, Verse.MessageTypeDef def, System.Boolean historical)
IL_00DE: Label2
IL_00DE: Label3
IL_00DE: ldarg.3
IL_00DF: ldc.i4.1
IL_00E0: stind.i4
IL_00E1: br => Label4
IL_00E6: Label1
IL_00E6: ldsfld Verse.HediffDef RimWorld.HediffDefOf::MissingBodyPart
IL_00EB: ldarg.0
IL_00EC: call Verse.Pawn Verse.Corpse::get_InnerPawn()
IL_00F1: ldloc.0
IL_00F2: call static Verse.Hediff
Verse.HediffMaker::MakeHediff(Verse.HediffDef def, Verse.Pawn pawn,
Verse.BodyPartRecord partRecord)
IL_00F7: castclass Verse.Hediff_MissingPart
IL_00FC: stloc.3
IL_00FD: ldloc.3
IL_00FE: ldsfld Verse.HediffDef RimWorld.HediffDefOf::Bite
IL_0103: stfld Verse.HediffDef Verse.Hediff_MissingPart::lastInjury
IL_0108: ldloc.3
IL_0109: ldc.i4.1
IL_010A: callvirt System.Void
Verse.Hediff_MissingPart::set_IsFresh(System.Boolean value)
IL_010F: ldarg.0
IL_0110: call Verse.Pawn Verse.Corpse::get_InnerPawn()
IL_0115: ldfld Verse.Pawn_HealthTracker Verse.Pawn::health
IL_011A: ldloc.3
IL_011B: ldnull
IL_011C: ldloca.s 4 (System.Nullable`1[Verse.DamageInfo])
IL_011E: initobj System.Nullable`1[Verse.DamageInfo]
IL_0124: ldloc.s 4 (System.Nullable`1[Verse.DamageInfo])
IL_0126: ldnull
IL_0127: callvirt System.Void Verse.Pawn_HealthTracker::AddHediff(Verse.Hediff
hediff, Verse.BodyPartRecord part, System.Nullable`1<Verse.DamageInfo> dinfo,
Verse.DamageResult result)
IL_012C: ldarg.3
IL_012D: ldc.i4.0
IL_012E: stind.i4
IL_012F: Label4
IL_012F: ldarg.s 4
IL_0131: ldloc.1
IL_0132: stind.r4
IL_0133: // end original
IL_0133: ret
DONE

### Patch: virtual System.String Verse.Corpse::GetInspectString()


### Replacement: static System.String
Verse.Corpse::Verse.Corpse.GetInspectString_Patch1(Verse.Corpse this)
IL_0000: Local var 0: System.Text.StringBuilder
IL_0000: Local var 1: System.Single
IL_0000: Local var 2: System.String
IL_0000: ldnull
IL_0001: stloc 2 (System.String)
IL_0005: // start original
IL_0005: newobj System.Void System.Text.StringBuilder::.ctor()
IL_000A: stloc.0
IL_000B: ldarg.0
IL_000C: call Verse.Pawn Verse.Corpse::get_InnerPawn()
IL_0011: callvirt virtual RimWorld.Faction Verse.Thing::get_Faction()
IL_0016: brfalse => Label0
IL_001B: ldloc.0
IL_001C: ldstr "Faction"
IL_0021: call static Verse.TaggedString
Verse.Translator::Translate(System.String key)
IL_0026: ldstr ": "
IL_002B: call static Verse.TaggedString
Verse.TaggedString::op_Addition(Verse.TaggedString t1, System.String t2)
IL_0030: ldarg.0
IL_0031: call Verse.Pawn Verse.Corpse::get_InnerPawn()
IL_0036: callvirt virtual RimWorld.Faction Verse.Thing::get_Faction()
IL_003B: callvirt Verse.TaggedString RimWorld.Faction::get_NameColored()
IL_0040: call static Verse.TaggedString
Verse.TaggedString::op_Addition(Verse.TaggedString t1, Verse.TaggedString t2)
IL_0045: call static System.Text.StringBuilder
Verse.ColoredText::AppendLineTagged(System.Text.StringBuilder sb,
Verse.TaggedString taggedString)
IL_004A: pop
IL_004B: Label0
IL_004B: ldloc.0
IL_004C: ldstr "DeadTime"
IL_0051: ldarg.0
IL_0052: call System.Int32 Verse.Corpse::get_Age()
IL_0057: ldc.i4.1
IL_0058: ldc.i4.0
IL_0059: call static System.String
RimWorld.GenDate::ToStringTicksToPeriodVague(System.Int32 numTicks, System.Boolean
vagueMin, System.Boolean vagueMax)
IL_005E: call static Verse.NamedArgument
Verse.NamedArgument::op_Implicit(System.String value)
IL_0063: call static Verse.TaggedString
Verse.TranslatorFormattedStringExtensions::Translate(System.String key,
Verse.NamedArgument arg1)
IL_0068: call static System.String
Verse.TaggedString::op_Implicit(Verse.TaggedString taggedString)
IL_006D: callvirt System.Text.StringBuilder
System.Text.StringBuilder::AppendLine(System.String value)
IL_0072: pop
IL_0073: ldc.r4 1
IL_0078: ldarg.0
IL_0079: call Verse.Pawn Verse.Corpse::get_InnerPawn()
IL_007E: ldfld Verse.Pawn_HealthTracker Verse.Pawn::health
IL_0083: ldfld Verse.HediffSet Verse.Pawn_HealthTracker::hediffSet
IL_0088: ldarg.0
IL_0089: call Verse.Pawn Verse.Corpse::get_InnerPawn()
IL_008E: call static Verse.BodyDef
AlienRace.HarmonyPatches::ReplacedBody(Verse.Pawn pawn)
IL_0093: ldfld Verse.BodyPartRecord Verse.BodyDef::corePart
IL_0098: callvirt System.Single
Verse.HediffSet::GetCoverageOfNotMissingNaturalParts(Verse.BodyPartRecord part)
IL_009D: sub
IL_009E: stloc.1
IL_009F: ldloc.1
IL_00A0: ldc.r4 0
IL_00A5: beq => Label1
IL_00AA: ldloc.0
IL_00AB: ldstr "CorpsePercentMissing"
IL_00B0: call static Verse.TaggedString
Verse.Translator::Translate(System.String key)
IL_00B5: ldstr ": "
IL_00BA: call static Verse.TaggedString
Verse.TaggedString::op_Addition(Verse.TaggedString t1, System.String t2)
IL_00BF: ldloc.1
IL_00C0: call static System.String
Verse.GenText::ToStringPercent(System.Single f)
IL_00C5: call static Verse.TaggedString
Verse.TaggedString::op_Addition(Verse.TaggedString t1, System.String t2)
IL_00CA: call static System.String
Verse.TaggedString::op_Implicit(Verse.TaggedString taggedString)
IL_00CF: callvirt System.Text.StringBuilder
System.Text.StringBuilder::AppendLine(System.String value)
IL_00D4: pop
IL_00D5: Label1
IL_00D5: ldloc.0
IL_00D6: ldarg.0
IL_00D7: call virtual System.String Verse.ThingWithComps::GetInspectString()
IL_00DC: callvirt System.Text.StringBuilder
System.Text.StringBuilder::AppendLine(System.String value)
IL_00E1: pop
IL_00E2: ldloc.0
IL_00E3: callvirt virtual System.String System.Object::ToString()
IL_00E8: call static System.String
Verse.GenText::TrimEndNewlines(System.String s)
IL_00ED: // end original
IL_00ED: stloc 2 (System.String)
IL_00F1: ldarg.0
IL_00F2: ldloca 2 (System.String)
IL_00F6: call static System.Void
VFEAncients.PowerWorker_Resurrect::AddResInfo(Verse.Corpse __instance,
System.String& __result)
IL_00FB: ldloc 2 (System.String)
IL_00FF: ret
DONE

### Patch: static System.Void Verse.DebugToolsPawns::Do10DamageUntilDead()


### Replacement: static System.Void
Verse.DebugToolsPawns::Verse.DebugToolsPawns.Do10DamageUntilDead_Patch0()
IL_0000: Local var 0: System.Collections.Generic.List`1/Enumerator<Verse.Thing>
IL_0000: Local var 1: Verse.Thing
IL_0000: Local var 2: System.Int32
IL_0000: Local var 3: Verse.DamageInfo
IL_0000: Local var 4: System.String
IL_0000: Local var 5: Verse.Pawn
IL_0000: Local var 6: System.Single
IL_0000: Local var 7: Verse.PawnCapacityDef
IL_0000: // start original
IL_0000: call static Verse.Map Verse.Find::get_CurrentMap()
IL_0005: ldfld Verse.ThingGrid Verse.Map::thingGrid
IL_000A: call static Verse.IntVec3 Verse.UI::MouseCell()
IL_000F: callvirt System.Collections.Generic.IEnumerable`1<Verse.Thing>
Verse.ThingGrid::ThingsAt(Verse.IntVec3 c)
IL_0014: call static System.Collections.Generic.List`1<Verse.Thing>
System.Linq.Enumerable::ToList(System.Collections.Generic.IEnumerable`1<Verse.Thing
> source)
IL_0019: callvirt System.Collections.Generic.Enumerator<Verse.Thing>
System.Collections.Generic.List`1<Verse.Thing>::GetEnumerator()
IL_001E: stloc.0
.try
{
IL_001F: br => Label0
IL_0024: Label11
IL_0024: ldloca.s 0
(System.Collections.Generic.List`1+Enumerator[Verse.Thing])
IL_0026: call virtual Verse.Thing
System.Collections.Generic.Enumerator<Verse.Thing>::get_Current()
IL_002B: stloc.1
IL_002C: ldc.i4.0
IL_002D: stloc.2
IL_002E: br => Label1
IL_0033: Label10
IL_0033: ldloca.s 3 (Verse.DamageInfo)
IL_0035: ldsfld Verse.DamageDef RimWorld.DamageDefOf::Crush
IL_003A: ldc.r4 10
IL_003F: ldc.r4 0
IL_0044: ldc.r4 -1
IL_0049: ldnull
IL_004A: ldnull
IL_004B: ldnull
IL_004C: ldc.i4.0
IL_004D: ldnull
IL_004E: ldc.i4.1
IL_004F: ldc.i4.1
IL_0050: call System.Void Verse.DamageInfo::.ctor(Verse.DamageDef def,
System.Single amount, System.Single armorPenetration, System.Single angle,
Verse.Thing instigator, Verse.BodyPartRecord hitPart, Verse.ThingDef weapon,
Verse.SourceCategory category, Verse.Thing intendedTarget, System.Boolean
instigatorGuilty, System.Boolean spawnFilth)
IL_0055: ldloca.s 3 (Verse.DamageInfo)
IL_0057: ldc.i4.1
IL_0058: call System.Void
Verse.DamageInfo::SetIgnoreInstantKillProtection(System.Boolean ignore)
IL_005D: ldloc.1
IL_005E: ldloc.3
IL_005F: callvirt Verse.DamageResult
Verse.Thing::TakeDamage(Verse.DamageInfo dinfo)
IL_0064: pop
IL_0065: ldloc.1
IL_0066: callvirt System.Boolean Verse.Thing::get_Destroyed()
IL_006B: brfalse => Label2
IL_0070: ldstr "Took "
IL_0075: ldloc.2
IL_0076: ldc.i4.1
IL_0077: add
IL_0078: box System.Int32
IL_007D: ldstr " hits"
IL_0082: call static System.String System.String::Concat(System.Object
arg0, System.Object arg1, System.Object arg2)
IL_0087: stloc.s 4 (System.String)
IL_0089: ldloc.1
IL_008A: isinst Verse.Pawn
IL_008F: stloc.s 5 (Verse.Pawn)
IL_0091: ldloc.s 5 (Verse.Pawn)
IL_0093: brfalse => Label3
IL_0098: ldloc.s 5 (Verse.Pawn)
IL_009A: ldfld Verse.Pawn_HealthTracker Verse.Pawn::health
IL_009F: callvirt System.Boolean
Verse.Pawn_HealthTracker::ShouldBeDeadFromLethalDamageThreshold()
IL_00A4: brfalse => Label4
IL_00A9: ldloc.s 4 (System.String)
IL_00AB: ldstr " (reached lethal damage threshold of "
IL_00B0: ldloc.s 5 (Verse.Pawn)
IL_00B2: ldfld Verse.Pawn_HealthTracker Verse.Pawn::health
IL_00B7: callvirt System.Single
Verse.Pawn_HealthTracker::get_LethalDamageThreshold()
IL_00BC: stloc.s 6 (System.Single)
IL_00BE: ldloca.s 6 (System.Single)
IL_00C0: ldstr "0.#"
IL_00C5: call System.String System.Single::ToString(System.String
format)
IL_00CA: ldstr ")"
IL_00CF: call static System.String System.String::Concat(System.String
str0, System.String str1, System.String str2, System.String str3)
IL_00D4: stloc.s 4 (System.String)
IL_00D6: br => Label5
IL_00DB: Label4
IL_00DB: ldloc.s 5 (Verse.Pawn)
IL_00DD: ldfld Verse.Pawn_HealthTracker Verse.Pawn::health
IL_00E2: ldfld Verse.HediffSet Verse.Pawn_HealthTracker::hediffSet
IL_00E7: ldloc.s 5 (Verse.Pawn)
IL_00E9: call static Verse.BodyDef
AlienRace.HarmonyPatches::ReplacedBody(Verse.Pawn pawn)
IL_00EE: ldfld Verse.BodyPartRecord Verse.BodyDef::corePart
IL_00F3: ldc.i4.0
IL_00F4: ldnull
IL_00F5: call static System.Single
Verse.PawnCapacityUtility::CalculatePartEfficiency(Verse.HediffSet diffSet,
Verse.BodyPartRecord part, System.Boolean ignoreAddedParts,
System.Collections.Generic.List`1<Verse.CapacityImpactor> impactors)
IL_00FA: ldc.r4 0.0001
IL_00FF: bgt.un => Label6
IL_0104: ldloc.s 4 (System.String)
IL_0106: ldstr " (core part hp reached 0)"
IL_010B: call static System.String System.String::Concat(System.String
str0, System.String str1)
IL_0110: stloc.s 4 (System.String)
IL_0112: br => Label7
IL_0117: Label6
IL_0117: ldloc.s 5 (Verse.Pawn)
IL_0119: ldfld Verse.Pawn_HealthTracker Verse.Pawn::health
IL_011E: callvirt Verse.PawnCapacityDef
Verse.Pawn_HealthTracker::ShouldBeDeadFromRequiredCapacity()
IL_0123: stloc.s 7 (Verse.PawnCapacityDef)
IL_0125: ldloc.s 7 (Verse.PawnCapacityDef)
IL_0127: brfalse => Label8
IL_012C: ldloc.s 4 (System.String)
IL_012E: ldstr " (incapable of "
IL_0133: ldloc.s 7 (Verse.PawnCapacityDef)
IL_0135: ldfld System.String Verse.Def::defName
IL_013A: ldstr ")"
IL_013F: call static System.String System.String::Concat(System.String
str0, System.String str1, System.String str2, System.String str3)
IL_0144: stloc.s 4 (System.String)
IL_0146: Label3
IL_0146: Label5
IL_0146: Label7
IL_0146: Label8
IL_0146: ldloc.s 4 (System.String)
IL_0148: ldstr "."
IL_014D: call static System.String System.String::Concat(System.String
str0, System.String str1)
IL_0152: call static System.Void Verse.Log::Message(System.String text)
IL_0157: br => Label9
IL_015C: Label2
IL_015C: ldloc.2
IL_015D: ldc.i4.1
IL_015E: add
IL_015F: stloc.2
IL_0160: Label1
IL_0160: ldloc.2
IL_0161: ldc.i4 1000
IL_0166: blt => Label10
IL_016B: Label0
IL_016B: Label9
IL_016B: ldloca.s 0
(System.Collections.Generic.List`1+Enumerator[Verse.Thing])
IL_016D: call virtual System.Boolean
System.Collections.Generic.Enumerator<Verse.Thing>::MoveNext()
IL_0172: brtrue => Label11
IL_0177: leave => Label12
IL_017C: leave => (autogenerated)
} // end try
.finally
{
IL_0181: ldloca.s 0
(System.Collections.Generic.List`1+Enumerator[Verse.Thing])
IL_0183: constrained.
System.Collections.Generic.List`1+Enumerator[Verse.Thing]
IL_0189: callvirt abstract virtual System.Void
System.IDisposable::Dispose()
IL_018E: endfinally
IL_018F: leave => (autogenerated)
} // end handler
IL_0190: // end original
IL_0190: Label12
IL_0190: ret
DONE

### Patch: System.Collections.Generic.IEnumerable`1<Verse.BodyPartRecord>


Verse.<>c__DisplayClass5_0::<Prosthetics>b__13(Verse.BodyPartDef bpd)
### Replacement: static
System.Collections.Generic.IEnumerable`1<Verse.BodyPartRecord>
Verse.DebugOutputsHealth+<>c__DisplayClass5_0::Verse.DebugOutputsHealth+c__DisplayC
lass5_0.<Prosthetics>b__13_Patch0(Verse.<>c__DisplayClass5_0 this,
Verse.BodyPartDef bpd)
IL_0000: // start original
IL_0000: ldarg.0
IL_0001: ldfld Verse.Pawn Verse.<>c__DisplayClass5_0::pawn
IL_0006: call static Verse.BodyDef
AlienRace.HarmonyPatches::ReplacedBody(Verse.Pawn pawn)
IL_000B: ldarg.1
IL_000C: callvirt System.Collections.Generic.List`1<Verse.BodyPartRecord>
Verse.BodyDef::GetPartsWithDef(Verse.BodyPartDef def)
IL_0011: // end original
IL_0011: ret
DONE

### Patch: System.Collections.Generic.IEnumerable`1<Verse.BodyPartRecord>


Verse.<>c__DisplayClass5_0::<Prosthetics>b__14(Verse.BodyPartGroupDef g)
### Replacement: static
System.Collections.Generic.IEnumerable`1<Verse.BodyPartRecord>
Verse.DebugOutputsHealth+<>c__DisplayClass5_0::Verse.DebugOutputsHealth+c__DisplayC
lass5_0.<Prosthetics>b__14_Patch0(Verse.<>c__DisplayClass5_0 this,
Verse.BodyPartGroupDef g)
IL_0000: Local var 0: Verse.DebugOutputsHealth/<>c__DisplayClass5_1
IL_0000: // start original
IL_0000: newobj System.Void Verse.<>c__DisplayClass5_1::.ctor()
IL_0005: stloc.0
IL_0006: ldloc.0
IL_0007: ldarg.1
IL_0008: stfld Verse.BodyPartGroupDef Verse.<>c__DisplayClass5_1::g
IL_000D: ldarg.0
IL_000E: ldfld Verse.Pawn Verse.<>c__DisplayClass5_0::pawn
IL_0013: call static Verse.BodyDef
AlienRace.HarmonyPatches::ReplacedBody(Verse.Pawn pawn)
IL_0018: callvirt System.Collections.Generic.List`1<Verse.BodyPartRecord>
Verse.BodyDef::get_AllParts()
IL_001D: ldloc.0
IL_001E: ldftn System.Boolean
Verse.<>c__DisplayClass5_1::<Prosthetics>b__15(Verse.BodyPartRecord r)
IL_0024: newobj System.Void System.Func`2<Verse.BodyPartRecord,
System.Boolean>::.ctor(System.Object object, System.IntPtr method)
IL_0029: call static
System.Collections.Generic.IEnumerable`1<Verse.BodyPartRecord>
System.Linq.Enumerable::Where(System.Collections.Generic.IEnumerable`1<Verse.BodyPa
rtRecord> source, System.Func`2<Verse.BodyPartRecord, System.Boolean> predicate)
IL_002E: // end original
IL_002E: ret
DONE

### Patch: System.Void Verse.<>c__DisplayClass0_5::<FlavorfulCombatTest>b__22()


### Replacement: static System.Void
Verse.DebugOutputsTextGen+<>c__DisplayClass0_5::Verse.DebugOutputsTextGen+c__Displa
yClass0_5.<FlavorfulCombatTest>b__22_Patch0(Verse.<>c__DisplayClass0_5 this)
IL_0000: Local var 0: System.Text.StringBuilder
IL_0000: Local var 1: System.Int32
IL_0000: Local var 2: Verse.Pawn
IL_0000: Local var 3: Verse.Pawn
IL_0000: Local var 4: Verse.BodyPartRecord
IL_0000: Local var 5: Verse.BattleLogEntry_StateTransition
IL_0000: // start original
IL_0000: newobj System.Void System.Text.StringBuilder::.ctor()
IL_0005: stloc.0
IL_0006: ldc.i4.0
IL_0007: stloc.1
IL_0008: br => Label0
IL_000D: Label1
IL_000D: call static Verse.Pawn
Verse.DebugOutputsTextGen::RandomPawnForCombat()
IL_0012: stloc.2
IL_0013: call static Verse.Pawn
Verse.DebugOutputsTextGen::RandomPawnForCombat()
IL_0018: stloc.3
IL_0019: ldloc.2
IL_001A: ldfld Verse.Pawn_HealthTracker Verse.Pawn::health
IL_001F: ldfld Verse.HediffSet Verse.Pawn_HealthTracker::hediffSet
IL_0024: ldc.i4.0
IL_0025: ldc.i4.0
IL_0026: ldnull
IL_0027: ldnull
IL_0028: callvirt System.Collections.Generic.IEnumerable`1<Verse.BodyPartRecord>
Verse.HediffSet::GetNotMissingParts(Verse.BodyPartHeight height,
Verse.BodyPartDepth depth, Verse.BodyPartTagDef tag, Verse.BodyPartRecord
partParent)
IL_002D: call static Verse.BodyPartRecord
Verse.GenCollection::RandomElement(System.Collections.Generic.IEnumerable`1<Verse.B
odyPartRecord> source)
IL_0032: stloc.s 4 (Verse.BodyPartRecord)
IL_0034: ldloc.2
IL_0035: ldarg.0
IL_0036: ldfld Verse.RulePackDef Verse.<>c__DisplayClass0_5::transition
IL_003B: ldloc.3
IL_003C: call static System.Collections.Generic.List`1<Verse.HediffDef>
Verse.DefDatabase`1<Verse.HediffDef>::get_AllDefsListForReading()
IL_0041: call static Verse.HediffDef
Verse.GenCollection::RandomElement(System.Collections.Generic.IEnumerable`1<Verse.H
ediffDef> source)
IL_0046: ldloc.2
IL_0047: ldloc.s 4 (Verse.BodyPartRecord)
IL_0049: call static Verse.Hediff
Verse.HediffMaker::MakeHediff(Verse.HediffDef def, Verse.Pawn pawn,
Verse.BodyPartRecord partRecord)
IL_004E: ldloc.2
IL_004F: call static Verse.BodyDef
AlienRace.HarmonyPatches::ReplacedBody(Verse.Pawn pawn)
IL_0054: callvirt System.Collections.Generic.List`1<Verse.BodyPartRecord>
Verse.BodyDef::get_AllParts()
IL_0059: call static Verse.BodyPartRecord
Verse.GenCollection::RandomElement(System.Collections.Generic.IEnumerable`1<Verse.B
odyPartRecord> source)
IL_005E: newobj System.Void
Verse.BattleLogEntry_StateTransition::.ctor(Verse.Thing subject, Verse.RulePackDef
transitionDef, Verse.Pawn initiator, Verse.Hediff culpritHediff,
Verse.BodyPartRecord culpritTargetDef)
IL_0063: stloc.s 5 (Verse.BattleLogEntry_StateTransition)
IL_0065: ldloc.s 5 (Verse.BattleLogEntry_StateTransition)
IL_0067: call static System.Int32 Verse.Rand::get_Int()
IL_006C: callvirt System.Void Verse.LogEntry::Debug_OverrideTicks(System.Int32
newTicks)
IL_0071: ldloc.0
IL_0072: ldloc.s 5 (Verse.BattleLogEntry_StateTransition)
IL_0074: ldnull
IL_0075: ldc.i4.0
IL_0076: callvirt System.String Verse.LogEntry::ToGameStringFromPOV(Verse.Thing
pov, System.Boolean forceLog)
IL_007B: callvirt System.Text.StringBuilder
System.Text.StringBuilder::AppendLine(System.String value)
IL_0080: pop
IL_0081: ldloc.1
IL_0082: ldc.i4.1
IL_0083: add
IL_0084: stloc.1
IL_0085: Label0
IL_0085: ldloc.1
IL_0086: ldc.i4.s 100
IL_0088: blt => Label1
IL_008D: ldloc.0
IL_008E: callvirt virtual System.String System.Object::ToString()
IL_0093: call static System.Void Verse.Log::Message(System.String text)
IL_0098: // end original
IL_0098: ret
DONE

### Patch: static System.Collections.Generic.List`1<Verse.DebugMenuOption>


Verse.DebugTools_Health::Options_Damage_BodyParts(Verse.Pawn p, Verse.DamageDef
def)
### Replacement: static System.Collections.Generic.List`1<Verse.DebugMenuOption>
Verse.DebugTools_Health::Verse.DebugTools_Health.Options_Damage_BodyParts_Patch0(Ve
rse.Pawn p, Verse.DamageDef def)
IL_0000: Local var 0: Verse.DebugTools_Health/<>c__DisplayClass2_0
IL_0000: Local var 1: System.Collections.Generic.List`1<Verse.DebugMenuOption>
IL_0000: Local var 2:
System.Collections.Generic.List`1/Enumerator<Verse.BodyPartRecord>
IL_0000: Local var 3: Verse.BodyPartRecord
IL_0000: Local var 4: Verse.DebugTools_Health/<>c__DisplayClass2_1
IL_0000: // start original
IL_0000: newobj System.Void Verse.<>c__DisplayClass2_0::.ctor()
IL_0005: stloc.0
IL_0006: ldloc.0
IL_0007: ldarg.0
IL_0008: stfld Verse.Pawn Verse.<>c__DisplayClass2_0::p
IL_000D: ldloc.0
IL_000E: ldarg.1
IL_000F: stfld Verse.DamageDef Verse.<>c__DisplayClass2_0::def
IL_0014: ldloc.0
IL_0015: ldfld Verse.Pawn Verse.<>c__DisplayClass2_0::p
IL_001A: brtrue => Label0
IL_001F: ldstr "p"
IL_0024: newobj System.Void System.ArgumentNullException::.ctor(System.String
paramName)
IL_0029: throw
IL_002A: Label0
IL_002A: newobj System.Void
System.Collections.Generic.List`1<Verse.DebugMenuOption>::.ctor()
IL_002F: stloc.1
IL_0030: ldloc.1
IL_0031: ldstr "(no body part)"
IL_0036: ldc.i4.0
IL_0037: ldloc.0
IL_0038: ldftn System.Void
Verse.<>c__DisplayClass2_0::<Options_Damage_BodyParts>b__0()
IL_003E: newobj System.Void System.Action::.ctor(System.Object object,
System.IntPtr method)
IL_0043: newobj System.Void Verse.DebugMenuOption::.ctor(System.String label,
Verse.DebugMenuOptionMode mode, System.Action method)
IL_0048: callvirt virtual System.Void
System.Collections.Generic.List`1<Verse.DebugMenuOption>::Add(Verse.DebugMenuOption
item)
IL_004D: ldloc.0
IL_004E: ldfld Verse.Pawn Verse.<>c__DisplayClass2_0::p
IL_0053: call static Verse.BodyDef
AlienRace.HarmonyPatches::ReplacedBody(Verse.Pawn pawn)
IL_0058: callvirt System.Collections.Generic.List`1<Verse.BodyPartRecord>
Verse.BodyDef::get_AllParts()
IL_005D: callvirt System.Collections.Generic.Enumerator<Verse.BodyPartRecord>
System.Collections.Generic.List`1<Verse.BodyPartRecord>::GetEnumerator()
IL_0062: stloc.2
.try
{
IL_0063: br => Label1
IL_0068: Label2
IL_0068: ldloca.s 2
(System.Collections.Generic.List`1+Enumerator[Verse.BodyPartRecord])
IL_006A: call virtual Verse.BodyPartRecord
System.Collections.Generic.Enumerator<Verse.BodyPartRecord>::get_Current()
IL_006F: stloc.3
IL_0070: newobj System.Void Verse.<>c__DisplayClass2_1::.ctor()
IL_0075: stloc.s 4 (Verse.DebugTools_Health+<>c__DisplayClass2_1)
IL_0077: ldloc.s 4 (Verse.DebugTools_Health+<>c__DisplayClass2_1)
IL_0079: ldloc.0
IL_007A: stfld Verse.<>c__DisplayClass2_0
Verse.<>c__DisplayClass2_1::CS$<>8__locals1
IL_007F: ldloc.s 4 (Verse.DebugTools_Health+<>c__DisplayClass2_1)
IL_0081: ldloc.3
IL_0082: stfld Verse.BodyPartRecord
Verse.<>c__DisplayClass2_1::localPart
IL_0087: ldloc.1
IL_0088: ldloc.s 4 (Verse.DebugTools_Health+<>c__DisplayClass2_1)
IL_008A: ldfld Verse.BodyPartRecord
Verse.<>c__DisplayClass2_1::localPart
IL_008F: callvirt System.String Verse.BodyPartRecord::get_LabelCap()
IL_0094: ldc.i4.0
IL_0095: ldloc.s 4 (Verse.DebugTools_Health+<>c__DisplayClass2_1)
IL_0097: ldftn System.Void
Verse.<>c__DisplayClass2_1::<Options_Damage_BodyParts>b__1()
IL_009D: newobj System.Void System.Action::.ctor(System.Object object,
System.IntPtr method)
IL_00A2: newobj System.Void Verse.DebugMenuOption::.ctor(System.String
label, Verse.DebugMenuOptionMode mode, System.Action method)
IL_00A7: callvirt virtual System.Void
System.Collections.Generic.List`1<Verse.DebugMenuOption>::Add(Verse.DebugMenuOption
item)
IL_00AC: Label1
IL_00AC: ldloca.s 2
(System.Collections.Generic.List`1+Enumerator[Verse.BodyPartRecord])
IL_00AE: call virtual System.Boolean
System.Collections.Generic.Enumerator<Verse.BodyPartRecord>::MoveNext()
IL_00B3: brtrue => Label2
IL_00B8: leave => Label3
IL_00BD: leave => (autogenerated)
} // end try
.finally
{
IL_00C2: ldloca.s 2
(System.Collections.Generic.List`1+Enumerator[Verse.BodyPartRecord])
IL_00C4: constrained.
System.Collections.Generic.List`1+Enumerator[Verse.BodyPartRecord]
IL_00CA: callvirt abstract virtual System.Void
System.IDisposable::Dispose()
IL_00CF: endfinally
IL_00D0: leave => (autogenerated)
} // end handler
IL_00D1: Label3
IL_00D1: ldloc.1
IL_00D2: // end original
IL_00D2: ret
DONE

### Patch: static System.Collections.Generic.List`1<Verse.DebugMenuOption>


Verse.DebugTools_Health::Options_Hediff_BodyParts(Verse.Pawn p, Verse.HediffDef
def)
### Replacement: static System.Collections.Generic.List`1<Verse.DebugMenuOption>
Verse.DebugTools_Health::Verse.DebugTools_Health.Options_Hediff_BodyParts_Patch0(Ve
rse.Pawn p, Verse.HediffDef def)
IL_0000: Local var 0: Verse.DebugTools_Health/<>c__DisplayClass4_0
IL_0000: Local var 1: System.Collections.Generic.List`1<Verse.DebugMenuOption>
IL_0000: Local var 2:
System.Collections.Generic.IEnumerator`1<Verse.BodyPartRecord>
IL_0000: Local var 3: Verse.BodyPartRecord
IL_0000: Local var 4: Verse.DebugTools_Health/<>c__DisplayClass4_1
IL_0000: // start original
IL_0000: newobj System.Void Verse.<>c__DisplayClass4_0::.ctor()
IL_0005: stloc.0
IL_0006: ldloc.0
IL_0007: ldarg.0
IL_0008: stfld Verse.Pawn Verse.<>c__DisplayClass4_0::p
IL_000D: ldloc.0
IL_000E: ldarg.1
IL_000F: stfld Verse.HediffDef Verse.<>c__DisplayClass4_0::def
IL_0014: ldloc.0
IL_0015: ldfld Verse.Pawn Verse.<>c__DisplayClass4_0::p
IL_001A: brtrue => Label0
IL_001F: ldstr "p"
IL_0024: newobj System.Void System.ArgumentNullException::.ctor(System.String
paramName)
IL_0029: throw
IL_002A: Label0
IL_002A: newobj System.Void
System.Collections.Generic.List`1<Verse.DebugMenuOption>::.ctor()
IL_002F: stloc.1
IL_0030: ldloc.1
IL_0031: ldstr "(no body part)"
IL_0036: ldc.i4.0
IL_0037: ldloc.0
IL_0038: ldftn System.Void
Verse.<>c__DisplayClass4_0::<Options_Hediff_BodyParts>b__0()
IL_003E: newobj System.Void System.Action::.ctor(System.Object object,
System.IntPtr method)
IL_0043: newobj System.Void Verse.DebugMenuOption::.ctor(System.String label,
Verse.DebugMenuOptionMode mode, System.Action method)
IL_0048: callvirt virtual System.Void
System.Collections.Generic.List`1<Verse.DebugMenuOption>::Add(Verse.DebugMenuOption
item)
IL_004D: ldloc.0
IL_004E: ldfld Verse.Pawn Verse.<>c__DisplayClass4_0::p
IL_0053: call static Verse.BodyDef
AlienRace.HarmonyPatches::ReplacedBody(Verse.Pawn pawn)
IL_0058: callvirt System.Collections.Generic.List`1<Verse.BodyPartRecord>
Verse.BodyDef::get_AllParts()
IL_005D: ldsfld System.Func`2<Verse.BodyPartRecord, System.String>
Verse.<>c::<>9__4_1
IL_0062: dup
IL_0063: brtrue => Label1
IL_0068: pop
IL_0069: ldsfld Verse.<>c Verse.<>c::<>9
IL_006E: ldftn System.String
Verse.<>c::<Options_Hediff_BodyParts>b__4_1(Verse.BodyPartRecord pa)
IL_0074: newobj System.Void System.Func`2<Verse.BodyPartRecord,
System.String>::.ctor(System.Object object, System.IntPtr method)
IL_0079: dup
IL_007A: stsfld System.Func`2<Verse.BodyPartRecord, System.String>
Verse.<>c::<>9__4_1
IL_007F: Label1
IL_007F: call static System.Linq.IOrderedEnumerable`1<Verse.BodyPartRecord>
System.Linq.Enumerable::OrderBy(System.Collections.Generic.IEnumerable`1<Verse.Body
PartRecord> source, System.Func`2<Verse.BodyPartRecord, System.String> keySelector)
IL_0084: callvirt abstract virtual
System.Collections.Generic.IEnumerator`1<Verse.BodyPartRecord>
System.Collections.Generic.IEnumerable`1<Verse.BodyPartRecord>::GetEnumerator()
IL_0089: stloc.2
.try
{
IL_008A: br => Label2
IL_008F: Label3
IL_008F: ldloc.2
IL_0090: callvirt abstract virtual Verse.BodyPartRecord
System.Collections.Generic.IEnumerator`1<Verse.BodyPartRecord>::get_Current()
IL_0095: stloc.3
IL_0096: newobj System.Void Verse.<>c__DisplayClass4_1::.ctor()
IL_009B: stloc.s 4 (Verse.DebugTools_Health+<>c__DisplayClass4_1)
IL_009D: ldloc.s 4 (Verse.DebugTools_Health+<>c__DisplayClass4_1)
IL_009F: ldloc.0
IL_00A0: stfld Verse.<>c__DisplayClass4_0
Verse.<>c__DisplayClass4_1::CS$<>8__locals1
IL_00A5: ldloc.s 4 (Verse.DebugTools_Health+<>c__DisplayClass4_1)
IL_00A7: ldloc.3
IL_00A8: stfld Verse.BodyPartRecord
Verse.<>c__DisplayClass4_1::localPart
IL_00AD: ldloc.1
IL_00AE: ldloc.s 4 (Verse.DebugTools_Health+<>c__DisplayClass4_1)
IL_00B0: ldfld Verse.BodyPartRecord
Verse.<>c__DisplayClass4_1::localPart
IL_00B5: callvirt System.String Verse.BodyPartRecord::get_LabelCap()
IL_00BA: ldc.i4.0
IL_00BB: ldloc.s 4 (Verse.DebugTools_Health+<>c__DisplayClass4_1)
IL_00BD: ldftn System.Void
Verse.<>c__DisplayClass4_1::<Options_Hediff_BodyParts>b__2()
IL_00C3: newobj System.Void System.Action::.ctor(System.Object object,
System.IntPtr method)
IL_00C8: newobj System.Void Verse.DebugMenuOption::.ctor(System.String
label, Verse.DebugMenuOptionMode mode, System.Action method)
IL_00CD: callvirt virtual System.Void
System.Collections.Generic.List`1<Verse.DebugMenuOption>::Add(Verse.DebugMenuOption
item)
IL_00D2: Label2
IL_00D2: ldloc.2
IL_00D3: callvirt abstract virtual System.Boolean
System.Collections.IEnumerator::MoveNext()
IL_00D8: brtrue => Label3
IL_00DD: leave => Label4
IL_00E2: leave => (autogenerated)
} // end try
.finally
{
IL_00E7: ldloc.2
IL_00E8: brfalse => Label5
IL_00ED: ldloc.2
IL_00EE: callvirt abstract virtual System.Void
System.IDisposable::Dispose()
IL_00F3: Label5
IL_00F3: endfinally
IL_00F4: leave => (autogenerated)
} // end handler
IL_00F5: Label4
IL_00F5: ldloc.1
IL_00F6: // end original
IL_00F6: ret
DONE

### Patch: virtual System.Void


Verse.BackCompatibilityConverter_0_18::PostExposeData(System.Object obj)
### Replacement: static System.Void
Verse.BackCompatibilityConverter_0_18::Verse.BackCompatibilityConverter_0_18.PostEx
poseData_Patch0(Verse.BackCompatibilityConverter_0_18 this, System.Object obj)
IL_0000: Local var 0: Verse.Map
IL_0000: Local var 1: Verse.Thing
IL_0000: Local var 2: Verse.Pawn
IL_0000: Local var 3: RimWorld.History
IL_0000: Local var 4: RimWorld.Planet.WorldInfo
IL_0000: Local var 5: RimWorld.Planet.Caravan
IL_0000: Local var 6: RimWorld.PlaySettings
IL_0000: Local var 7: Verse.Hediff
IL_0000: Local var 8: RimWorld.Bill_Medical
IL_0000: Local var 9: Verse.HediffComp_GetsPermanent
IL_0000: Local var 10: RimWorld.Planet.WorldFeature
IL_0000: Local var 11: System.Boolean
IL_0000: Local var 12: RimWorld.UniqueIDsManager
IL_0000: Local var 13: UnityEngine.Vector2
IL_0000: Local var 14: UnityEngine.Vector2
IL_0000: Local var 15: Verse.Hediff
IL_0000: Local var 16: RimWorld.Bill_Medical
IL_0000: // start original
IL_0000: ldsfld Verse.LoadSaveMode Verse.Scribe::mode
IL_0005: ldc.i4.4
IL_0006: bne.un => Label0
IL_000B: ldarg.1
IL_000C: isinst Verse.Map
IL_0011: stloc.0
IL_0012: ldloc.0
IL_0013: brfalse => Label1
IL_0018: ldloc.0
IL_0019: ldfld RimWorld.RetainedCaravanData Verse.Map::retainedCaravanData
IL_001E: brtrue => Label2
IL_0023: ldloc.0
IL_0024: ldloc.0
IL_0025: newobj System.Void RimWorld.RetainedCaravanData::.ctor(Verse.Map map)
IL_002A: stfld RimWorld.RetainedCaravanData Verse.Map::retainedCaravanData
IL_002F: Label2
IL_002F: ldloc.0
IL_0030: ldfld RimWorld.WildAnimalSpawner Verse.Map::wildAnimalSpawner
IL_0035: brtrue => Label3
IL_003A: ldloc.0
IL_003B: ldloc.0
IL_003C: newobj System.Void RimWorld.WildAnimalSpawner::.ctor(Verse.Map map)
IL_0041: stfld RimWorld.WildAnimalSpawner Verse.Map::wildAnimalSpawner
IL_0046: Label3
IL_0046: ldloc.0
IL_0047: ldfld RimWorld.WildPlantSpawner Verse.Map::wildPlantSpawner
IL_004C: brtrue => Label4
IL_0051: ldloc.0
IL_0052: ldloc.0
IL_0053: newobj System.Void RimWorld.WildPlantSpawner::.ctor(Verse.Map map)
IL_0058: stfld RimWorld.WildPlantSpawner Verse.Map::wildPlantSpawner
IL_005D: Label1
IL_005D: Label4
IL_005D: ldarg.1
IL_005E: isinst Verse.Thing
IL_0063: stloc.1
IL_0064: ldloc.1
IL_0065: brfalse => Label5
IL_006A: ldloc.1
IL_006B: ldfld Verse.ThingDef Verse.Thing::def
IL_0070: ldfld System.Boolean Verse.ThingDef::useHitPoints
IL_0075: brfalse => Label6
IL_007A: ldloc.1
IL_007B: callvirt System.Int32 Verse.Thing::get_MaxHitPoints()
IL_0080: ldloc.1
IL_0081: callvirt virtual System.Int32 Verse.Thing::get_HitPoints()
IL_0086: beq => Label7
IL_008B: ldloc.1
IL_008C: callvirt virtual System.Int32 Verse.Thing::get_HitPoints()
IL_0091: conv.r4
IL_0092: ldloc.1
IL_0093: callvirt System.Int32 Verse.Thing::get_MaxHitPoints()
IL_0098: conv.r4
IL_0099: div
IL_009A: ldc.r4 0.617
IL_009F: sub
IL_00A0: call static System.Single UnityEngine.Mathf::Abs(System.Single f)
IL_00A5: ldc.r4 0.02
IL_00AA: bge.un => Label8
IL_00AF: ldloc.1
IL_00B0: callvirt Verse.ThingDef Verse.Thing::get_Stuff()
IL_00B5: ldsfld Verse.ThingDef RimWorld.ThingDefOf::WoodLog
IL_00BA: bne.un => Label9
IL_00BF: ldloc.1
IL_00C0: ldloc.1
IL_00C1: callvirt System.Int32 Verse.Thing::get_MaxHitPoints()
IL_00C6: callvirt virtual System.Void Verse.Thing::set_HitPoints(System.Int32
value)
IL_00CB: Label5
IL_00CB: Label6
IL_00CB: Label7
IL_00CB: Label8
IL_00CB: Label9
IL_00CB: ldarg.1
IL_00CC: isinst Verse.Pawn
IL_00D1: stloc.2
IL_00D2: ldloc.2
IL_00D3: brfalse => Label10
IL_00D8: ldloc.2
IL_00D9: callvirt System.Boolean Verse.Thing::get_Destroyed()
IL_00DE: brtrue => Label11
IL_00E3: ldloc.2
IL_00E4: callvirt System.Boolean Verse.Pawn::get_Dead()
IL_00E9: brtrue => Label12
IL_00EE: ldloc.2
IL_00EF: ldfld RimWorld.Pawn_NeedsTracker Verse.Pawn::needs
IL_00F4: brtrue => Label13
IL_00F9: ldloc.2
IL_00FA: call static System.String Verse.Gen::ToStringSafe(Verse.Pawn obj)
IL_00FF: ldstr " has null needs tracker even though he\'s not dead. Fixing..."
IL_0104: call static System.String System.String::Concat(System.String str0,
System.String str1)
IL_0109: call static System.Void Verse.Log::Error(System.String text)
IL_010E: ldloc.2
IL_010F: ldloc.2
IL_0110: newobj System.Void RimWorld.Pawn_NeedsTracker::.ctor(Verse.Pawn
newPawn)
IL_0115: stfld RimWorld.Pawn_NeedsTracker Verse.Pawn::needs
IL_011A: ldloc.2
IL_011B: ldfld RimWorld.Pawn_NeedsTracker Verse.Pawn::needs
IL_0120: callvirt System.Void RimWorld.Pawn_NeedsTracker::SetInitialLevels()
IL_0125: Label10
IL_0125: Label11
IL_0125: Label12
IL_0125: Label13
IL_0125: ldarg.1
IL_0126: isinst RimWorld.History
IL_012B: stloc.3
IL_012C: ldloc.3
IL_012D: brfalse => Label14
IL_0132: ldloc.3
IL_0133: ldfld RimWorld.Archive RimWorld.History::archive
IL_0138: brtrue => Label15
IL_013D: ldloc.3
IL_013E: newobj System.Void RimWorld.Archive::.ctor()
IL_0143: stfld RimWorld.Archive RimWorld.History::archive
IL_0148: Label14
IL_0148: Label15
IL_0148: ldarg.1
IL_0149: isinst RimWorld.Planet.WorldInfo
IL_014E: stloc.s 4 (RimWorld.Planet.WorldInfo)
IL_0150: ldloc.s 4 (RimWorld.Planet.WorldInfo)
IL_0152: brfalse => Label16
IL_0157: ldloc.s 4 (RimWorld.Planet.WorldInfo)
IL_0159: ldfld System.Int32 RimWorld.Planet.WorldInfo::persistentRandomValue
IL_015E: brtrue => Label17
IL_0163: ldloc.s 4 (RimWorld.Planet.WorldInfo)
IL_0165: call static System.Int32 Verse.Rand::get_Int()
IL_016A: stfld System.Int32 RimWorld.Planet.WorldInfo::persistentRandomValue
IL_016F: Label16
IL_016F: Label17
IL_016F: ldarg.1
IL_0170: isinst RimWorld.Planet.Caravan
IL_0175: stloc.s 5 (RimWorld.Planet.Caravan)
IL_0177: ldloc.s 5 (RimWorld.Planet.Caravan)
IL_0179: brfalse => Label18
IL_017E: ldloc.s 5 (RimWorld.Planet.Caravan)
IL_0180: ldfld RimWorld.Planet.Caravan_ForageTracker
RimWorld.Planet.Caravan::forage
IL_0185: brtrue => Label19
IL_018A: ldloc.s 5 (RimWorld.Planet.Caravan)
IL_018C: ldloc.s 5 (RimWorld.Planet.Caravan)
IL_018E: newobj System.Void
RimWorld.Planet.Caravan_ForageTracker::.ctor(RimWorld.Planet.Caravan caravan)
IL_0193: stfld RimWorld.Planet.Caravan_ForageTracker
RimWorld.Planet.Caravan::forage
IL_0198: Label19
IL_0198: ldloc.s 5 (RimWorld.Planet.Caravan)
IL_019A: ldfld RimWorld.Planet.Caravan_NeedsTracker
RimWorld.Planet.Caravan::needs
IL_019F: brtrue => Label20
IL_01A4: ldloc.s 5 (RimWorld.Planet.Caravan)
IL_01A6: ldloc.s 5 (RimWorld.Planet.Caravan)
IL_01A8: newobj System.Void
RimWorld.Planet.Caravan_NeedsTracker::.ctor(RimWorld.Planet.Caravan caravan)
IL_01AD: stfld RimWorld.Planet.Caravan_NeedsTracker
RimWorld.Planet.Caravan::needs
IL_01B2: Label20
IL_01B2: ldloc.s 5 (RimWorld.Planet.Caravan)
IL_01B4: ldfld RimWorld.Planet.Caravan_CarryTracker
RimWorld.Planet.Caravan::carryTracker
IL_01B9: brtrue => Label21
IL_01BE: ldloc.s 5 (RimWorld.Planet.Caravan)
IL_01C0: ldloc.s 5 (RimWorld.Planet.Caravan)
IL_01C2: newobj System.Void
RimWorld.Planet.Caravan_CarryTracker::.ctor(RimWorld.Planet.Caravan caravan)
IL_01C7: stfld RimWorld.Planet.Caravan_CarryTracker
RimWorld.Planet.Caravan::carryTracker
IL_01CC: Label21
IL_01CC: ldloc.s 5 (RimWorld.Planet.Caravan)
IL_01CE: ldfld RimWorld.Planet.Caravan_BedsTracker
RimWorld.Planet.Caravan::beds
IL_01D3: brtrue => Label22
IL_01D8: ldloc.s 5 (RimWorld.Planet.Caravan)
IL_01DA: ldloc.s 5 (RimWorld.Planet.Caravan)
IL_01DC: newobj System.Void
RimWorld.Planet.Caravan_BedsTracker::.ctor(RimWorld.Planet.Caravan caravan)
IL_01E1: stfld RimWorld.Planet.Caravan_BedsTracker
RimWorld.Planet.Caravan::beds
IL_01E6: Label18
IL_01E6: Label22
IL_01E6: ldarg.1
IL_01E7: isinst RimWorld.PlaySettings
IL_01EC: stloc.s 6 (RimWorld.PlaySettings)
IL_01EE: ldloc.s 6 (RimWorld.PlaySettings)
IL_01F0: brfalse => Label23
IL_01F5: ldloc.s 6 (RimWorld.PlaySettings)
IL_01F7: ldc.i4.4
IL_01F8: stfld RimWorld.MedicalCareCategory
RimWorld.PlaySettings::defaultCareForColonyHumanlike
IL_01FD: ldloc.s 6 (RimWorld.PlaySettings)
IL_01FF: ldc.i4.2
IL_0200: stfld RimWorld.MedicalCareCategory
RimWorld.PlaySettings::defaultCareForColonyAnimal
IL_0205: ldloc.s 6 (RimWorld.PlaySettings)
IL_0207: ldc.i4.2
IL_0208: stfld RimWorld.MedicalCareCategory
RimWorld.PlaySettings::defaultCareForColonyPrisoner
IL_020D: ldloc.s 6 (RimWorld.PlaySettings)
IL_020F: ldc.i4.2
IL_0210: stfld RimWorld.MedicalCareCategory
RimWorld.PlaySettings::defaultCareForNeutralFaction
IL_0215: ldloc.s 6 (RimWorld.PlaySettings)
IL_0217: ldc.i4.2
IL_0218: stfld RimWorld.MedicalCareCategory
RimWorld.PlaySettings::defaultCareForNeutralAnimal
IL_021D: ldloc.s 6 (RimWorld.PlaySettings)
IL_021F: ldc.i4.2
IL_0220: stfld RimWorld.MedicalCareCategory
RimWorld.PlaySettings::defaultCareForHostileFaction
IL_0225: Label0
IL_0225: Label23
IL_0225: ldsfld Verse.LoadSaveMode Verse.Scribe::mode
IL_022A: ldc.i4.2
IL_022B: bne.un => Label24
IL_0230: ldarg.1
IL_0231: isinst Verse.Hediff
IL_0236: stloc.s 7 (Verse.Hediff)
IL_0238: ldloc.s 7 (Verse.Hediff)
IL_023A: brfalse => Label25
IL_023F: ldloc.s 7 (Verse.Hediff)
IL_0241: ldflda System.Int32 Verse.Hediff::temp_partIndexToSetLater
IL_0246: ldstr "partIndex"
IL_024B: ldc.i4.m1
IL_024C: ldc.i4.0
IL_024D: call static System.Void Verse.Scribe_Values::Look(System.Int32&
value, System.String label, System.Int32 defaultValue, System.Boolean forceSave)
IL_0252: Label25
IL_0252: ldarg.1
IL_0253: isinst RimWorld.Bill_Medical
IL_0258: stloc.s 8 (RimWorld.Bill_Medical)
IL_025A: ldloc.s 8 (RimWorld.Bill_Medical)
IL_025C: brfalse => Label26
IL_0261: ldloc.s 8 (RimWorld.Bill_Medical)
IL_0263: ldflda System.Int32 RimWorld.Bill_Medical::temp_partIndexToSetLater
IL_0268: ldstr "partIndex"
IL_026D: ldc.i4.m1
IL_026E: ldc.i4.0
IL_026F: call static System.Void Verse.Scribe_Values::Look(System.Int32&
value, System.String label, System.Int32 defaultValue, System.Boolean forceSave)
IL_0274: Label26
IL_0274: ldarg.1
IL_0275: isinst Verse.HediffComp_GetsPermanent
IL_027A: stloc.s 9 (Verse.HediffComp_GetsPermanent)
IL_027C: ldloc.s 9 (Verse.HediffComp_GetsPermanent)
IL_027E: brfalse => Label27
IL_0283: ldc.i4.0
IL_0284: stloc.s 11 (System.Boolean)
IL_0286: ldloca.s 11 (System.Boolean)
IL_0288: ldstr "isOld"
IL_028D: ldc.i4.0
IL_028E: ldc.i4.0
IL_028F: call static System.Void Verse.Scribe_Values::Look(System.Boolean&
value, System.String label, System.Boolean defaultValue, System.Boolean forceSave)
IL_0294: ldloc.s 11 (System.Boolean)
IL_0296: brfalse => Label28
IL_029B: ldloc.s 9 (Verse.HediffComp_GetsPermanent)
IL_029D: ldc.i4.1
IL_029E: stfld System.Boolean Verse.HediffComp_GetsPermanent::isPermanentInt
IL_02A3: Label27
IL_02A3: Label28
IL_02A3: ldarg.1
IL_02A4: isinst RimWorld.Planet.World
IL_02A9: brfalse => Label29
IL_02AE: ldnull
IL_02AF: stloc.s 12 (RimWorld.UniqueIDsManager)
IL_02B1: ldloca.s 12 (RimWorld.UniqueIDsManager)
IL_02B3: ldstr "uniqueIDsManager"
IL_02B8: call static System.Object[] System.Array::Empty()
IL_02BD: call static System.Void
Verse.Scribe_Deep::Look(RimWorld.UniqueIDsManager& target, System.String label,
System.Object[] ctorArgs)
IL_02C2: ldloc.s 12 (RimWorld.UniqueIDsManager)
IL_02C4: brfalse => Label30
IL_02C9: call static Verse.Game Verse.Current::get_Game()
IL_02CE: ldloc.s 12 (RimWorld.UniqueIDsManager)
IL_02D0: stfld RimWorld.UniqueIDsManager Verse.Game::uniqueIDsManager
IL_02D5: Label29
IL_02D5: Label30
IL_02D5: ldarg.1
IL_02D6: isinst RimWorld.Planet.WorldFeature
IL_02DB: stloc.s 10 (RimWorld.Planet.WorldFeature)
IL_02DD: ldloc.s 10 (RimWorld.Planet.WorldFeature)
IL_02DF: brfalse => Label31
IL_02E4: ldloc.s 10 (RimWorld.Planet.WorldFeature)
IL_02E6: ldfld System.Single RimWorld.Planet.WorldFeature::maxDrawSizeInTiles
IL_02EB: ldc.r4 0
IL_02F0: bne.un => Label32
IL_02F5: call static UnityEngine.Vector2 UnityEngine.Vector2::get_zero()
IL_02FA: stloc.s 13 (UnityEngine.Vector2)
IL_02FC: ldloca.s 13 (UnityEngine.Vector2)
IL_02FE: ldstr "maxDrawSizeInTiles"
IL_0303: ldloca.s 14 (UnityEngine.Vector2)
IL_0305: initobj UnityEngine.Vector2
IL_030B: ldloc.s 14 (UnityEngine.Vector2)
IL_030D: ldc.i4.0
IL_030E: call static System.Void
Verse.Scribe_Values::Look(UnityEngine.Vector2& value, System.String label,
UnityEngine.Vector2 defaultValue, System.Boolean forceSave)
IL_0313: ldloc.s 10 (RimWorld.Planet.WorldFeature)
IL_0315: ldloc.s 13 (UnityEngine.Vector2)
IL_0317: ldfld System.Single UnityEngine.Vector2::x
IL_031C: stfld System.Single RimWorld.Planet.WorldFeature::maxDrawSizeInTiles
IL_0321: Label24
IL_0321: Label31
IL_0321: Label32
IL_0321: ldsfld Verse.LoadSaveMode Verse.Scribe::mode
IL_0326: ldc.i4.3
IL_0327: bne.un => Label33
IL_032C: ldarg.1
IL_032D: isinst Verse.Hediff
IL_0332: stloc.s 15 (Verse.Hediff)
IL_0334: ldloc.s 15 (Verse.Hediff)
IL_0336: brfalse => Label34
IL_033B: ldloc.s 15 (Verse.Hediff)
IL_033D: ldfld System.Int32 Verse.Hediff::temp_partIndexToSetLater
IL_0342: ldc.i4.0
IL_0343: blt => Label35
IL_0348: ldloc.s 15 (Verse.Hediff)
IL_034A: ldfld Verse.Pawn Verse.Hediff::pawn
IL_034F: brfalse => Label36
IL_0354: ldloc.s 15 (Verse.Hediff)
IL_0356: ldfld System.Int32 Verse.Hediff::temp_partIndexToSetLater
IL_035B: brtrue => Label37
IL_0360: ldloc.s 15 (Verse.Hediff)
IL_0362: ldloc.s 15 (Verse.Hediff)
IL_0364: ldfld Verse.Pawn Verse.Hediff::pawn
IL_0369: call static Verse.BodyDef
AlienRace.HarmonyPatches::ReplacedBody(Verse.Pawn pawn)
IL_036E: ldloc.s 15 (Verse.Hediff)
IL_0370: ldfld System.Int32 Verse.Hediff::temp_partIndexToSetLater
IL_0375: callvirt Verse.BodyPartRecord Verse.BodyDef::GetPartAtIndex(System.Int32
index)
IL_037A: callvirt System.Void Verse.Hediff::set_Part(Verse.BodyPartRecord value)
IL_037F: br => Label38
IL_0384: Label37
IL_0384: ldloc.s 15 (Verse.Hediff)
IL_0386: ldfld Verse.Pawn Verse.Hediff::pawn
IL_038B: ldfld Verse.Pawn_HealthTracker Verse.Pawn::health
IL_0390: ldfld Verse.HediffSet Verse.Pawn_HealthTracker::hediffSet
IL_0395: ldfld System.Collections.Generic.List`1<Verse.Hediff>
Verse.HediffSet::hediffs
IL_039A: ldloc.s 15 (Verse.Hediff)
IL_039C: callvirt virtual System.Boolean
System.Collections.Generic.List`1<Verse.Hediff>::Remove(Verse.Hediff item)
IL_03A1: pop
IL_03A2: Label38
IL_03A2: ldloc.s 15 (Verse.Hediff)
IL_03A4: ldc.i4.m1
IL_03A5: stfld System.Int32 Verse.Hediff::temp_partIndexToSetLater
IL_03AA: Label34
IL_03AA: Label35
IL_03AA: Label36
IL_03AA: ldarg.1
IL_03AB: isinst RimWorld.Bill_Medical
IL_03B0: stloc.s 16 (RimWorld.Bill_Medical)
IL_03B2: ldloc.s 16 (RimWorld.Bill_Medical)
IL_03B4: brfalse => Label39
IL_03B9: ldloc.s 16 (RimWorld.Bill_Medical)
IL_03BB: ldfld System.Int32 RimWorld.Bill_Medical::temp_partIndexToSetLater
IL_03C0: brtrue => Label40
IL_03C5: ldloc.s 16 (RimWorld.Bill_Medical)
IL_03C7: ldloc.s 16 (RimWorld.Bill_Medical)
IL_03C9: callvirt Verse.Pawn RimWorld.Bill_Medical::get_GiverPawn()
IL_03CE: call static Verse.BodyDef
AlienRace.HarmonyPatches::ReplacedBody(Verse.Pawn pawn)
IL_03D3: ldloc.s 16 (RimWorld.Bill_Medical)
IL_03D5: ldfld System.Int32 RimWorld.Bill_Medical::temp_partIndexToSetLater
IL_03DA: callvirt Verse.BodyPartRecord Verse.BodyDef::GetPartAtIndex(System.Int32
index)
IL_03DF: callvirt System.Void
RimWorld.Bill_Medical::set_Part(Verse.BodyPartRecord value)
IL_03E4: br => Label41
IL_03E9: Label40
IL_03E9: ldloc.s 16 (RimWorld.Bill_Medical)
IL_03EB: callvirt Verse.Pawn RimWorld.Bill_Medical::get_GiverPawn()
IL_03F0: callvirt virtual RimWorld.BillStack Verse.Pawn::get_BillStack()
IL_03F5: callvirt System.Collections.Generic.List`1<RimWorld.Bill>
RimWorld.BillStack::get_Bills()
IL_03FA: ldloc.s 16 (RimWorld.Bill_Medical)
IL_03FC: callvirt virtual System.Boolean
System.Collections.Generic.List`1<RimWorld.Bill>::Remove(RimWorld.Bill item)
IL_0401: pop
IL_0402: Label41
IL_0402: ldloc.s 16 (RimWorld.Bill_Medical)
IL_0404: ldc.i4.m1
IL_0405: stfld System.Int32 RimWorld.Bill_Medical::temp_partIndexToSetLater
IL_040A: // end original
IL_040A: Label33
IL_040A: Label39
IL_040A: ret
DONE

### Patch: static System.Single


RimWorld.FoodUtility::GetBodyPartNutrition(System.Single currentCorpseNutrition,
Verse.Pawn pawn, Verse.BodyPartRecord part)
### Replacement: static System.Single
RimWorld.FoodUtility::RimWorld.FoodUtility.GetBodyPartNutrition_Patch0(System.Singl
e currentCorpseNutrition, Verse.Pawn pawn, Verse.BodyPartRecord part)
IL_0000: Local var 0: Verse.HediffSet
IL_0000: Local var 1: System.Single
IL_0000: Local var 2: System.Single
IL_0000: // start original
IL_0000: ldarg.1
IL_0001: ldfld Verse.Pawn_HealthTracker Verse.Pawn::health
IL_0006: ldfld Verse.HediffSet Verse.Pawn_HealthTracker::hediffSet
IL_000B: stloc.0
IL_000C: ldloc.0
IL_000D: ldarg.1
IL_000E: call static Verse.BodyDef
AlienRace.HarmonyPatches::ReplacedBody(Verse.Pawn pawn)
IL_0013: ldfld Verse.BodyPartRecord Verse.BodyDef::corePart
IL_0018: callvirt System.Single
Verse.HediffSet::GetCoverageOfNotMissingNaturalParts(Verse.BodyPartRecord part)
IL_001D: stloc.1
IL_001E: ldloc.1
IL_001F: ldc.r4 0
IL_0024: bgt.un => Label0
IL_0029: ldc.r4 0
IL_002E: br => Label1
IL_0033: Label0
IL_0033: ldloc.0
IL_0034: ldarg.2
IL_0035: callvirt System.Single
Verse.HediffSet::GetCoverageOfNotMissingNaturalParts(Verse.BodyPartRecord part)
IL_003A: ldloc.1
IL_003B: div
IL_003C: stloc.2
IL_003D: ldarg.0
IL_003E: ldloc.2
IL_003F: mul
IL_0040: // end original
IL_0040: Label1
IL_0040: ret
DONE

### Patch: virtual System.Void RimWorld.JobDriver_Wear::Notify_Starting()


### Replacement: static System.Void
RimWorld.JobDriver_Wear::RimWorld.JobDriver_Wear.Notify_Starting_Patch0(RimWorld.Jo
bDriver_Wear this)
IL_0000: Local var 0: RimWorld.Apparel
IL_0000: Local var 1: System.Collections.Generic.List`1<RimWorld.Apparel>
IL_0000: Local var 2: System.Int32
IL_0000: // start original
IL_0000: ldarg.0
IL_0001: call virtual System.Void Verse.AI.JobDriver::Notify_Starting()
IL_0006: ldarg.0
IL_0007: ldarg.0
IL_0008: call RimWorld.Apparel RimWorld.JobDriver_Wear::get_Apparel()
IL_000D: ldsfld RimWorld.StatDef RimWorld.StatDefOf::EquipDelay
IL_0012: ldc.i4.1
IL_0013: ldc.i4.m1
IL_0014: call static System.Single
RimWorld.StatExtension::GetStatValue(Verse.Thing thing, RimWorld.StatDef stat,
System.Boolean applyPostProcess, System.Int32 cacheStaleAfterTicks)
IL_0019: ldc.r4 60
IL_001E: mul
IL_001F: conv.i4
IL_0020: stfld System.Int32 RimWorld.JobDriver_Wear::duration
IL_0025: ldarg.0
IL_0026: call RimWorld.Apparel RimWorld.JobDriver_Wear::get_Apparel()
IL_002B: stloc.0
IL_002C: ldarg.0
IL_002D: ldfld Verse.Pawn Verse.AI.JobDriver::pawn
IL_0032: ldfld RimWorld.Pawn_ApparelTracker Verse.Pawn::apparel
IL_0037: callvirt System.Collections.Generic.List`1<RimWorld.Apparel>
RimWorld.Pawn_ApparelTracker::get_WornApparel()
IL_003C: stloc.1
IL_003D: ldloc.1
IL_003E: callvirt virtual System.Int32
System.Collections.Generic.List`1<RimWorld.Apparel>::get_Count()
IL_0043: ldc.i4.1
IL_0044: sub
IL_0045: stloc.2
IL_0046: br => Label0
IL_004B: Label2
IL_004B: ldloc.0
IL_004C: ldfld Verse.ThingDef Verse.Thing::def
IL_0051: ldloc.1
IL_0052: ldloc.2
IL_0053: callvirt virtual RimWorld.Apparel
System.Collections.Generic.List`1<RimWorld.Apparel>::get_Item(System.Int32 index)
IL_0058: ldfld Verse.ThingDef Verse.Thing::def
IL_005D: ldarg.0
IL_005E: ldfld Verse.Pawn Verse.AI.JobDriver::pawn
IL_0063: call static Verse.BodyDef
AlienRace.HarmonyPatches::ReplacedBody(Verse.Pawn pawn)
IL_0068: call static System.Boolean
RimWorld.ApparelUtility::CanWearTogether(Verse.ThingDef A, Verse.ThingDef B,
Verse.BodyDef body)
IL_006D: brtrue => Label1
IL_0072: ldarg.0
IL_0073: ldarg.0
IL_0074: ldfld System.Int32 RimWorld.JobDriver_Wear::duration
IL_0079: ldloc.1
IL_007A: ldloc.2
IL_007B: callvirt virtual RimWorld.Apparel
System.Collections.Generic.List`1<RimWorld.Apparel>::get_Item(System.Int32 index)
IL_0080: ldsfld RimWorld.StatDef RimWorld.StatDefOf::EquipDelay
IL_0085: ldc.i4.1
IL_0086: ldc.i4.m1
IL_0087: call static System.Single
RimWorld.StatExtension::GetStatValue(Verse.Thing thing, RimWorld.StatDef stat,
System.Boolean applyPostProcess, System.Int32 cacheStaleAfterTicks)
IL_008C: ldc.r4 60
IL_0091: mul
IL_0092: conv.i4
IL_0093: add
IL_0094: stfld System.Int32 RimWorld.JobDriver_Wear::duration
IL_0099: Label1
IL_0099: ldloc.2
IL_009A: ldc.i4.1
IL_009B: sub
IL_009C: stloc.2
IL_009D: Label0
IL_009D: ldloc.2
IL_009E: ldc.i4.0
IL_009F: bge => Label2
IL_00A4: // end original
IL_00A4: ret
DONE

### Patch: System.Void RimWorld.JobDriver_Wear::TryUnequipSomething()


### Replacement: static System.Void
RimWorld.JobDriver_Wear::RimWorld.JobDriver_Wear.TryUnequipSomething_Patch0(RimWorl
d.JobDriver_Wear this)
IL_0000: Local var 0: RimWorld.Apparel
IL_0000: Local var 1: System.Collections.Generic.List`1<RimWorld.Apparel>
IL_0000: Local var 2: System.Int32
IL_0000: Local var 3: System.Int32
IL_0000: Local var 4: System.Boolean
IL_0000: Local var 5: RimWorld.Apparel
IL_0000: // start original
IL_0000: ldarg.0
IL_0001: call RimWorld.Apparel RimWorld.JobDriver_Wear::get_Apparel()
IL_0006: stloc.0
IL_0007: ldarg.0
IL_0008: ldfld Verse.Pawn Verse.AI.JobDriver::pawn
IL_000D: ldfld RimWorld.Pawn_ApparelTracker Verse.Pawn::apparel
IL_0012: callvirt System.Collections.Generic.List`1<RimWorld.Apparel>
RimWorld.Pawn_ApparelTracker::get_WornApparel()
IL_0017: stloc.1
IL_0018: ldloc.1
IL_0019: callvirt virtual System.Int32
System.Collections.Generic.List`1<RimWorld.Apparel>::get_Count()
IL_001E: ldc.i4.1
IL_001F: sub
IL_0020: stloc.2
IL_0021: br => Label0
IL_0026: Label6
IL_0026: ldloc.0
IL_0027: ldfld Verse.ThingDef Verse.Thing::def
IL_002C: ldloc.1
IL_002D: ldloc.2
IL_002E: callvirt virtual RimWorld.Apparel
System.Collections.Generic.List`1<RimWorld.Apparel>::get_Item(System.Int32 index)
IL_0033: ldfld Verse.ThingDef Verse.Thing::def
IL_0038: ldarg.0
IL_0039: ldfld Verse.Pawn Verse.AI.JobDriver::pawn
IL_003E: call static Verse.BodyDef
AlienRace.HarmonyPatches::ReplacedBody(Verse.Pawn pawn)
IL_0043: call static System.Boolean
RimWorld.ApparelUtility::CanWearTogether(Verse.ThingDef A, Verse.ThingDef B,
Verse.BodyDef body)
IL_0048: brtrue => Label1
IL_004D: ldloc.1
IL_004E: ldloc.2
IL_004F: callvirt virtual RimWorld.Apparel
System.Collections.Generic.List`1<RimWorld.Apparel>::get_Item(System.Int32 index)
IL_0054: ldsfld RimWorld.StatDef RimWorld.StatDefOf::EquipDelay
IL_0059: ldc.i4.1
IL_005A: ldc.i4.m1
IL_005B: call static System.Single
RimWorld.StatExtension::GetStatValue(Verse.Thing thing, RimWorld.StatDef stat,
System.Boolean applyPostProcess, System.Int32 cacheStaleAfterTicks)
IL_0060: ldc.r4 60
IL_0065: mul
IL_0066: conv.i4
IL_0067: stloc.3
IL_0068: ldarg.0
IL_0069: ldfld System.Int32 RimWorld.JobDriver_Wear::unequipBuffer
IL_006E: ldloc.3
IL_006F: blt => Label2
IL_0074: ldarg.0
IL_0075: ldfld Verse.Pawn Verse.AI.JobDriver::pawn
IL_007A: callvirt virtual RimWorld.Faction Verse.Thing::get_Faction()
IL_007F: brfalse => Label3
IL_0084: ldarg.0
IL_0085: ldfld Verse.Pawn Verse.AI.JobDriver::pawn
IL_008A: callvirt virtual RimWorld.Faction Verse.Thing::get_Faction()
IL_008F: call static RimWorld.Faction RimWorld.Faction::get_OfPlayer()
IL_0094: call static System.Boolean
RimWorld.FactionUtility::HostileTo(RimWorld.Faction fac, RimWorld.Faction other)
IL_0099: br => Label4
IL_009E: Label3
IL_009E: ldc.i4.0
IL_009F: Label4
IL_009F: stloc.s 4 (System.Boolean)
IL_00A1: ldarg.0
IL_00A2: ldfld Verse.Pawn Verse.AI.JobDriver::pawn
IL_00A7: ldfld RimWorld.Pawn_ApparelTracker Verse.Pawn::apparel
IL_00AC: ldloc.1
IL_00AD: ldloc.2
IL_00AE: callvirt virtual RimWorld.Apparel
System.Collections.Generic.List`1<RimWorld.Apparel>::get_Item(System.Int32 index)
IL_00B3: ldloca.s 5 (RimWorld.Apparel)
IL_00B5: ldarg.0
IL_00B6: ldfld Verse.Pawn Verse.AI.JobDriver::pawn
IL_00BB: callvirt Verse.IntVec3 Verse.Thing::get_PositionHeld()
IL_00C0: ldloc.s 4 (System.Boolean)
IL_00C2: callvirt System.Boolean
RimWorld.Pawn_ApparelTracker::TryDrop(RimWorld.Apparel ap, RimWorld.Apparel&
resultingAp, Verse.IntVec3 pos, System.Boolean forbid)
IL_00C7: brtrue => Label5
IL_00CC: ldarg.0
IL_00CD: ldfld Verse.Pawn Verse.AI.JobDriver::pawn
IL_00D2: ldstr " could not drop "
IL_00D7: ldloc.1
IL_00D8: ldloc.2
IL_00D9: callvirt virtual RimWorld.Apparel
System.Collections.Generic.List`1<RimWorld.Apparel>::get_Item(System.Int32 index)
IL_00DE: call static System.String Verse.Gen::ToStringSafe(RimWorld.Apparel
obj)
IL_00E3: call static System.String System.String::Concat(System.Object arg0,
System.Object arg1, System.Object arg2)
IL_00E8: call static System.Void Verse.Log::Error(System.String text)
IL_00ED: ldarg.0
IL_00EE: ldc.i4.7
IL_00EF: call System.Void
Verse.AI.JobDriver::EndJobWith(Verse.AI.JobCondition condition)
IL_00F4: br => Label7
IL_00F9: Label1
IL_00F9: ldloc.2
IL_00FA: ldc.i4.1
IL_00FB: sub
IL_00FC: stloc.2
IL_00FD: Label0
IL_00FD: ldloc.2
IL_00FE: ldc.i4.0
IL_00FF: bge => Label6
IL_0104: // end original
IL_0104: Label2
IL_0104: Label5
IL_0104: Label7
IL_0104: ret
DONE

### Patch: static System.Single


RimWorld.JobGiver_OptimizeApparel::ApparelScoreGain(Verse.Pawn pawn,
RimWorld.Apparel ap, System.Collections.Generic.List`1<System.Single>
wornScoresCache)
### Replacement: static System.Single
RimWorld.JobGiver_OptimizeApparel::RimWorld.JobGiver_OptimizeApparel.ApparelScoreGa
in_Patch1(Verse.Pawn pawn, RimWorld.Apparel ap,
System.Collections.Generic.List`1<System.Single> wornScoresCache)
IL_0000: Local var 0: System.Single
IL_0000: Local var 1: System.Collections.Generic.List`1<RimWorld.Apparel>
IL_0000: Local var 2: System.Boolean
IL_0000: Local var 3: System.Int32
IL_0000: Local var 4: System.Single
IL_0000: ldc.r4 0
IL_0005: stloc 4 (System.Single)
IL_0009: // start original
IL_0009: ldarg.1
IL_000A: ldfld Verse.ThingDef Verse.Thing::def
IL_000F: ldsfld Verse.ThingDef RimWorld.ThingDefOf::Apparel_ShieldBelt
IL_0014: bne.un => Label0
IL_0019: ldarg.0
IL_001A: ldfld Verse.Pawn_EquipmentTracker Verse.Pawn::equipment
IL_001F: callvirt Verse.ThingWithComps Verse.Pawn_EquipmentTracker::get_Primary()
IL_0024: brfalse => Label1
IL_0029: ldarg.0
IL_002A: ldfld Verse.Pawn_EquipmentTracker Verse.Pawn::equipment
IL_002F: callvirt Verse.ThingWithComps Verse.Pawn_EquipmentTracker::get_Primary()
IL_0034: ldfld Verse.ThingDef Verse.Thing::def
IL_0039: callvirt System.Boolean Verse.ThingDef::get_IsWeaponUsingProjectiles()
IL_003E: brfalse => Label2
IL_0043: ldc.r4 -1000
IL_0048: br => Label11
IL_004D: Label0
IL_004D: Label1
IL_004D: Label2
IL_004D: ldarg.1
IL_004E: ldfld Verse.ThingDef Verse.Thing::def
IL_0053: ldfld RimWorld.ApparelProperties Verse.ThingDef::apparel
IL_0058: ldfld System.Boolean RimWorld.ApparelProperties::ignoredByNonViolent
IL_005D: brfalse => Label3
IL_0062: ldarg.0
IL_0063: ldc.i4.8
IL_0064: callvirt System.Boolean Verse.Pawn::WorkTagIsDisabled(Verse.WorkTags w)
IL_0069: brfalse => Label4
IL_006E: ldc.r4 -1000
IL_0073: br => Label12
IL_0078: Label3
IL_0078: Label4
IL_0078: ldarg.0
IL_0079: ldarg.1
IL_007A: call static System.Single
RimWorld.JobGiver_OptimizeApparel::ApparelScoreRaw(Verse.Pawn pawn,
RimWorld.Apparel ap)
IL_007F: stloc.0
IL_0080: ldarg.0
IL_0081: ldfld RimWorld.Pawn_ApparelTracker Verse.Pawn::apparel
IL_0086: callvirt System.Collections.Generic.List`1<RimWorld.Apparel>
RimWorld.Pawn_ApparelTracker::get_WornApparel()
IL_008B: stloc.1
IL_008C: ldc.i4.0
IL_008D: stloc.2
IL_008E: ldc.i4.0
IL_008F: stloc.3
IL_0090: br => Label5
IL_0095: Label9
IL_0095: ldloc.1
IL_0096: ldloc.3
IL_0097: callvirt virtual RimWorld.Apparel
System.Collections.Generic.List`1<RimWorld.Apparel>::get_Item(System.Int32 index)
IL_009C: ldfld Verse.ThingDef Verse.Thing::def
IL_00A1: ldarg.1
IL_00A2: ldfld Verse.ThingDef Verse.Thing::def
IL_00A7: ldarg.0
IL_00A8: call static Verse.BodyDef
AlienRace.HarmonyPatches::ReplacedBody(Verse.Pawn pawn)
IL_00AD: call static System.Boolean
RimWorld.ApparelUtility::CanWearTogether(Verse.ThingDef A, Verse.ThingDef B,
Verse.BodyDef body)
IL_00B2: brtrue => Label6
IL_00B7: ldarg.0
IL_00B8: ldfld RimWorld.Pawn_OutfitTracker Verse.Pawn::outfits
IL_00BD: ldfld RimWorld.OutfitForcedHandler
RimWorld.Pawn_OutfitTracker::forcedHandler
IL_00C2: ldloc.1
IL_00C3: ldloc.3
IL_00C4: callvirt virtual RimWorld.Apparel
System.Collections.Generic.List`1<RimWorld.Apparel>::get_Item(System.Int32 index)
IL_00C9: callvirt System.Boolean
RimWorld.OutfitForcedHandler::AllowedToAutomaticallyDrop(RimWorld.Apparel ap)
IL_00CE: brfalse => Label7
IL_00D3: ldarg.0
IL_00D4: ldfld RimWorld.Pawn_ApparelTracker Verse.Pawn::apparel
IL_00D9: ldloc.1
IL_00DA: ldloc.3
IL_00DB: callvirt virtual RimWorld.Apparel
System.Collections.Generic.List`1<RimWorld.Apparel>::get_Item(System.Int32 index)
IL_00E0: callvirt System.Boolean
RimWorld.Pawn_ApparelTracker::IsLocked(RimWorld.Apparel apparel)
IL_00E5: brfalse => Label8
IL_00EA: Label7
IL_00EA: ldc.r4 -1000
IL_00EF: br => Label13
IL_00F4: Label8
IL_00F4: ldloc.0
IL_00F5: ldarg.2
IL_00F6: ldloc.3
IL_00F7: callvirt virtual System.Single
System.Collections.Generic.List`1<System.Single>::get_Item(System.Int32 index)
IL_00FC: sub
IL_00FD: stloc.0
IL_00FE: ldc.i4.1
IL_00FF: stloc.2
IL_0100: Label6
IL_0100: ldloc.3
IL_0101: ldc.i4.1
IL_0102: add
IL_0103: stloc.3
IL_0104: Label5
IL_0104: ldloc.3
IL_0105: ldloc.1
IL_0106: callvirt virtual System.Int32
System.Collections.Generic.List`1<RimWorld.Apparel>::get_Count()
IL_010B: blt => Label9
IL_0110: ldloc.2
IL_0111: brtrue => Label10
IL_0116: ldloc.0
IL_0117: ldc.r4 10
IL_011C: mul
IL_011D: stloc.0
IL_011E: Label10
IL_011E: ldloc.0
IL_011F: // end original
IL_011F: Label11
IL_011F: Label12
IL_011F: Label13
IL_011F: stloc 4 (System.Single)
IL_0123: ldarg 0
IL_0127: ldarg 1
IL_012B: ldloca 4 (System.Single)
IL_012F: call static System.Void
AlienRace.HarmonyPatches::ApparelScoreGainPostFix(Verse.Pawn pawn, RimWorld.Apparel
ap, System.Single& __result)
IL_0134: ldloc 4 (System.Single)
IL_0138: ret
DONE

### Patch: virtual RimWorld.ThoughtState


RimWorld.ThoughtWorker_MissingTongue::CurrentStateInternal(Verse.Pawn p)
### Replacement: static RimWorld.ThoughtState
RimWorld.ThoughtWorker_MissingTongue::RimWorld.ThoughtWorker_MissingTongue.CurrentS
tateInternal_Patch0(RimWorld.ThoughtWorker_MissingTongue this, Verse.Pawn p)
IL_0000: Local var 0: System.Collections.Generic.List`1<Verse.BodyPartRecord>
IL_0000: Local var 1:
System.Collections.Generic.List`1/Enumerator<Verse.BodyPartRecord>
IL_0000: Local var 2: Verse.BodyPartRecord
IL_0000: Local var 3: RimWorld.ThoughtState
IL_0000: // start original
IL_0000: ldarg.1
IL_0001: call static Verse.BodyDef
AlienRace.HarmonyPatches::ReplacedBody(Verse.Pawn pawn)
IL_0006: ldsfld Verse.BodyPartTagDef RimWorld.BodyPartTagDefOf::Tongue
IL_000B: callvirt System.Collections.Generic.List`1<Verse.BodyPartRecord>
Verse.BodyDef::GetPartsWithTag(Verse.BodyPartTagDef tag)
IL_0010: stloc.0
IL_0011: ldloc.0
IL_0012: call static System.Boolean
Verse.GenCollection::Any(System.Collections.Generic.List`1<Verse.BodyPartRecord>
list)
IL_0017: brtrue => Label0
IL_001C: call static RimWorld.ThoughtState
RimWorld.ThoughtState::get_Inactive()
IL_0021: br => Label7
IL_0026: Label0
IL_0026: ldloc.0
IL_0027: callvirt System.Collections.Generic.Enumerator<Verse.BodyPartRecord>
System.Collections.Generic.List`1<Verse.BodyPartRecord>::GetEnumerator()
IL_002C: stloc.1
.try
{
IL_002D: br => Label1
IL_0032: Label5
IL_0032: ldloca.s 1
(System.Collections.Generic.List`1+Enumerator[Verse.BodyPartRecord])
IL_0034: call virtual Verse.BodyPartRecord
System.Collections.Generic.Enumerator<Verse.BodyPartRecord>::get_Current()
IL_0039: stloc.2
IL_003A: ldarg.1
IL_003B: ldfld Verse.Pawn_HealthTracker Verse.Pawn::health
IL_0040: ldfld Verse.HediffSet Verse.Pawn_HealthTracker::hediffSet
IL_0045: ldloc.2
IL_0046: callvirt System.Boolean
Verse.HediffSet::PartOrAnyAncestorHasDirectlyAddedParts(Verse.BodyPartRecord part)
IL_004B: brtrue => Label2
IL_0050: ldarg.1
IL_0051: ldfld Verse.Pawn_HealthTracker Verse.Pawn::health
IL_0056: ldfld Verse.HediffSet Verse.Pawn_HealthTracker::hediffSet
IL_005B: ldloc.2
IL_005C: callvirt System.Boolean
Verse.HediffSet::PartIsMissing(Verse.BodyPartRecord part)
IL_0061: brfalse => Label3
IL_0066: ldc.i4.1
IL_0067: call static RimWorld.ThoughtState
RimWorld.ThoughtState::op_Implicit(System.Boolean value)
IL_006C: stloc.3
IL_006D: leave => Label4
IL_0072: Label1
IL_0072: Label2
IL_0072: Label3
IL_0072: ldloca.s 1
(System.Collections.Generic.List`1+Enumerator[Verse.BodyPartRecord])
IL_0074: call virtual System.Boolean
System.Collections.Generic.Enumerator<Verse.BodyPartRecord>::MoveNext()
IL_0079: brtrue => Label5
IL_007E: leave => Label6
IL_0083: leave => (autogenerated)
} // end try
.finally
{
IL_0088: ldloca.s 1
(System.Collections.Generic.List`1+Enumerator[Verse.BodyPartRecord])
IL_008A: constrained.
System.Collections.Generic.List`1+Enumerator[Verse.BodyPartRecord]
IL_0090: callvirt abstract virtual System.Void
System.IDisposable::Dispose()
IL_0095: endfinally
IL_0096: leave => (autogenerated)
} // end handler
IL_0097: Label6
IL_0097: call static RimWorld.ThoughtState
RimWorld.ThoughtState::get_Inactive()
IL_009C: br => Label12
IL_00A1: Label4
IL_00A1: ldloc.3
IL_00A2: // end original
IL_00A2: Label7
IL_00A2: Label12
IL_00A2: ret
DONE

### Patch: static System.Void RimWorld.PawnWoundDrawer::WoundDebug()


### Replacement: static System.Void
RimWorld.PawnWoundDrawer::RimWorld.PawnWoundDrawer.WoundDebug_Patch0()
IL_0000: Local var 0: RimWorld.PawnWoundDrawer/<>c__DisplayClass5_0
IL_0000: Local var 1: Verse.IntVec3
IL_0000: Local var 2: System.Collections.Generic.List`1<Verse.DebugMenuOption>
IL_0000: Local var 3: System.Collections.Generic.List`1<Verse.BodyPartRecord>
IL_0000: Local var 4: System.Int32
IL_0000: Local var 5: RimWorld.PawnWoundDrawer/<>c__DisplayClass5_1
IL_0000: // start original
IL_0000: newobj System.Void RimWorld.<>c__DisplayClass5_0::.ctor()
IL_0005: stloc.0
IL_0006: call static Verse.IntVec3 Verse.UI::MouseCell()
IL_000B: stloc.1
IL_000C: ldloc.0
IL_000D: ldloc.1
IL_000E: call static Verse.Map Verse.Find::get_CurrentMap()
IL_0013: call static Verse.Pawn
Verse.GridsUtility::GetFirstPawn(Verse.IntVec3 c, Verse.Map map)
IL_0018: stfld Verse.Pawn RimWorld.<>c__DisplayClass5_0::pawn
IL_001D: ldloc.0
IL_001E: ldfld Verse.Pawn RimWorld.<>c__DisplayClass5_0::pawn
IL_0023: brfalse => Label0
IL_0028: ldloc.0
IL_0029: ldfld Verse.Pawn RimWorld.<>c__DisplayClass5_0::pawn
IL_002E: ldfld Verse.ThingDef Verse.Thing::def
IL_0033: ldfld Verse.RaceProperties Verse.ThingDef::race
IL_0038: brfalse => Label1
IL_003D: ldloc.0
IL_003E: ldfld Verse.Pawn RimWorld.<>c__DisplayClass5_0::pawn
IL_0043: call static Verse.BodyDef
AlienRace.HarmonyPatches::ReplacedBody(Verse.Pawn pawn)
IL_0048: brtrue => Label2
IL_004D: Label0
IL_004D: Label1
IL_004D: br => Label5
IL_0052: Label2
IL_0052: newobj System.Void
System.Collections.Generic.List`1<Verse.DebugMenuOption>::.ctor()
IL_0057: stloc.2
IL_0058: ldloc.2
IL_0059: ldstr "All"
IL_005E: ldc.i4.0
IL_005F: ldloc.0
IL_0060: ldftn System.Void RimWorld.<>c__DisplayClass5_0::<WoundDebug>b__0()
IL_0066: newobj System.Void System.Action::.ctor(System.Object object,
System.IntPtr method)
IL_006B: newobj System.Void Verse.DebugMenuOption::.ctor(System.String label,
Verse.DebugMenuOptionMode mode, System.Action method)
IL_0070: callvirt virtual System.Void
System.Collections.Generic.List`1<Verse.DebugMenuOption>::Add(Verse.DebugMenuOption
item)
IL_0075: ldloc.0
IL_0076: ldfld Verse.Pawn RimWorld.<>c__DisplayClass5_0::pawn
IL_007B: call static Verse.BodyDef
AlienRace.HarmonyPatches::ReplacedBody(Verse.Pawn pawn)
IL_0080: callvirt System.Collections.Generic.List`1<Verse.BodyPartRecord>
Verse.BodyDef::get_AllParts()
IL_0085: stloc.3
IL_0086: ldc.i4.0
IL_0087: stloc.s 4 (System.Int32)
IL_0089: br => Label3
IL_008E: Label4
IL_008E: newobj System.Void RimWorld.<>c__DisplayClass5_1::.ctor()
IL_0093: stloc.s 5 (RimWorld.PawnWoundDrawer+<>c__DisplayClass5_1)
IL_0095: ldloc.s 5 (RimWorld.PawnWoundDrawer+<>c__DisplayClass5_1)
IL_0097: ldloc.0
IL_0098: stfld RimWorld.<>c__DisplayClass5_0
RimWorld.<>c__DisplayClass5_1::CS$<>8__locals1
IL_009D: ldloc.s 5 (RimWorld.PawnWoundDrawer+<>c__DisplayClass5_1)
IL_009F: ldloc.3
IL_00A0: ldloc.s 4 (System.Int32)
IL_00A2: callvirt virtual Verse.BodyPartRecord
System.Collections.Generic.List`1<Verse.BodyPartRecord>::get_Item(System.Int32
index)
IL_00A7: stfld Verse.BodyPartRecord RimWorld.<>c__DisplayClass5_1::part
IL_00AC: ldloc.2
IL_00AD: ldloc.s 5 (RimWorld.PawnWoundDrawer+<>c__DisplayClass5_1)
IL_00AF: ldfld Verse.BodyPartRecord RimWorld.<>c__DisplayClass5_1::part
IL_00B4: callvirt System.String Verse.BodyPartRecord::get_LabelCap()
IL_00B9: ldc.i4.0
IL_00BA: ldloc.s 5 (RimWorld.PawnWoundDrawer+<>c__DisplayClass5_1)
IL_00BC: ldftn System.Void RimWorld.<>c__DisplayClass5_1::<WoundDebug>b__1()
IL_00C2: newobj System.Void System.Action::.ctor(System.Object object,
System.IntPtr method)
IL_00C7: newobj System.Void Verse.DebugMenuOption::.ctor(System.String label,
Verse.DebugMenuOptionMode mode, System.Action method)
IL_00CC: callvirt virtual System.Void
System.Collections.Generic.List`1<Verse.DebugMenuOption>::Add(Verse.DebugMenuOption
item)
IL_00D1: ldloc.s 4 (System.Int32)
IL_00D3: ldc.i4.1
IL_00D4: add
IL_00D5: stloc.s 4 (System.Int32)
IL_00D7: Label3
IL_00D7: ldloc.s 4 (System.Int32)
IL_00D9: ldloc.3
IL_00DA: callvirt virtual System.Int32
System.Collections.Generic.List`1<Verse.BodyPartRecord>::get_Count()
IL_00DF: blt => Label4
IL_00E4: call static Verse.WindowStack Verse.Find::get_WindowStack()
IL_00E9: ldloc.2
IL_00EA: newobj System.Void
Verse.Dialog_DebugOptionListLister::.ctor(System.Collections.Generic.IEnumerable`1<
Verse.DebugMenuOption> options)
IL_00EF: callvirt System.Void Verse.WindowStack::Add(Verse.Window window)
IL_00F4: // end original
IL_00F4: Label5
IL_00F4: ret
DONE

### Patch: virtual System.Boolean RimWorld.<GetFixedPartsToApplyOn>d__5::MoveNext()


### Replacement: static System.Boolean
RimWorld.MedicalRecipesUtility+<GetFixedPartsToApplyOn>d__5::RimWorld.MedicalRecipe
sUtility+<GetFixedPartsToApplyOn>d__5.MoveNext_Patch0(RimWorld.<GetFixedPartsToAppl
yOn>d__5 this)
IL_0000: Local var 0: System.Int32
IL_0000: Local var 1: Verse.BodyPartRecord
IL_0000: Local var 2: System.Int32
IL_0000: Local var 3: Verse.BodyPartRecord
IL_0000: // start original
IL_0000: ldarg.0
IL_0001: ldfld System.Int32 RimWorld.<GetFixedPartsToApplyOn>d__5::<>1__state
IL_0006: stloc.0
IL_0007: ldloc.0
IL_0008: switch => Labels0,1,2
IL_0019: ldc.i4.0
IL_001A: br => Label18
IL_001F: Label0
IL_001F: ldarg.0
IL_0020: ldc.i4.m1
IL_0021: stfld System.Int32 RimWorld.<GetFixedPartsToApplyOn>d__5::<>1__state
IL_0026: ldarg.0
IL_0027: ldc.i4.0
IL_0028: stfld System.Int32 RimWorld.<GetFixedPartsToApplyOn>d__5::<i>5__2
IL_002D: br => Label3
IL_0032: Label9
IL_0032: ldarg.0
IL_0033: ldarg.0
IL_0034: ldfld Verse.RecipeDef RimWorld.<GetFixedPartsToApplyOn>d__5::recipe
IL_0039: ldfld System.Collections.Generic.List`1<Verse.BodyPartDef>
Verse.RecipeDef::appliedOnFixedBodyParts
IL_003E: ldarg.0
IL_003F: ldfld System.Int32 RimWorld.<GetFixedPartsToApplyOn>d__5::<i>5__2
IL_0044: callvirt virtual Verse.BodyPartDef
System.Collections.Generic.List`1<Verse.BodyPartDef>::get_Item(System.Int32 index)
IL_0049: stfld Verse.BodyPartDef
RimWorld.<GetFixedPartsToApplyOn>d__5::<part>5__3
IL_004E: ldarg.0
IL_004F: ldarg.0
IL_0050: ldfld Verse.Pawn RimWorld.<GetFixedPartsToApplyOn>d__5::pawn
IL_0055: call static Verse.BodyDef
AlienRace.HarmonyPatches::ReplacedBody(Verse.Pawn pawn)
IL_005A: callvirt System.Collections.Generic.List`1<Verse.BodyPartRecord>
Verse.BodyDef::get_AllParts()
IL_005F: stfld System.Collections.Generic.List`1<Verse.BodyPartRecord>
RimWorld.<GetFixedPartsToApplyOn>d__5::<bpList>5__4
IL_0064: ldarg.0
IL_0065: ldc.i4.0
IL_0066: stfld System.Int32 RimWorld.<GetFixedPartsToApplyOn>d__5::<j>5__5
IL_006B: br => Label4
IL_0070: Label8
IL_0070: ldarg.0
IL_0071: ldfld System.Collections.Generic.List`1<Verse.BodyPartRecord>
RimWorld.<GetFixedPartsToApplyOn>d__5::<bpList>5__4
IL_0076: ldarg.0
IL_0077: ldfld System.Int32 RimWorld.<GetFixedPartsToApplyOn>d__5::<j>5__5
IL_007C: callvirt virtual Verse.BodyPartRecord
System.Collections.Generic.List`1<Verse.BodyPartRecord>::get_Item(System.Int32
index)
IL_0081: stloc.1
IL_0082: ldloc.1
IL_0083: ldfld Verse.BodyPartDef Verse.BodyPartRecord::def
IL_0088: ldarg.0
IL_0089: ldfld Verse.BodyPartDef
RimWorld.<GetFixedPartsToApplyOn>d__5::<part>5__3
IL_008E: bne.un => Label5
IL_0093: ldarg.0
IL_0094: ldfld System.Func`2<Verse.BodyPartRecord, System.Boolean>
RimWorld.<GetFixedPartsToApplyOn>d__5::validator
IL_0099: brfalse => Label6
IL_009E: ldarg.0
IL_009F: ldfld System.Func`2<Verse.BodyPartRecord, System.Boolean>
RimWorld.<GetFixedPartsToApplyOn>d__5::validator
IL_00A4: ldloc.1
IL_00A5: callvirt virtual System.Boolean System.Func`2<Verse.BodyPartRecord,
System.Boolean>::Invoke(Verse.BodyPartRecord arg)
IL_00AA: brfalse => Label7
IL_00AF: Label6
IL_00AF: ldarg.0
IL_00B0: ldloc.1
IL_00B1: stfld Verse.BodyPartRecord
RimWorld.<GetFixedPartsToApplyOn>d__5::<>2__current
IL_00B6: ldarg.0
IL_00B7: ldc.i4.1
IL_00B8: stfld System.Int32 RimWorld.<GetFixedPartsToApplyOn>d__5::<>1__state
IL_00BD: ldc.i4.1
IL_00BE: br => Label19
IL_00C3: Label1
IL_00C3: ldarg.0
IL_00C4: ldc.i4.m1
IL_00C5: stfld System.Int32 RimWorld.<GetFixedPartsToApplyOn>d__5::<>1__state
IL_00CA: Label5
IL_00CA: Label7
IL_00CA: ldarg.0
IL_00CB: ldfld System.Int32 RimWorld.<GetFixedPartsToApplyOn>d__5::<j>5__5
IL_00D0: stloc.2
IL_00D1: ldarg.0
IL_00D2: ldloc.2
IL_00D3: ldc.i4.1
IL_00D4: add
IL_00D5: stfld System.Int32 RimWorld.<GetFixedPartsToApplyOn>d__5::<j>5__5
IL_00DA: Label4
IL_00DA: ldarg.0
IL_00DB: ldfld System.Int32 RimWorld.<GetFixedPartsToApplyOn>d__5::<j>5__5
IL_00E0: ldarg.0
IL_00E1: ldfld System.Collections.Generic.List`1<Verse.BodyPartRecord>
RimWorld.<GetFixedPartsToApplyOn>d__5::<bpList>5__4
IL_00E6: callvirt virtual System.Int32
System.Collections.Generic.List`1<Verse.BodyPartRecord>::get_Count()
IL_00EB: blt => Label8
IL_00F0: ldarg.0
IL_00F1: ldnull
IL_00F2: stfld Verse.BodyPartDef
RimWorld.<GetFixedPartsToApplyOn>d__5::<part>5__3
IL_00F7: ldarg.0
IL_00F8: ldnull
IL_00F9: stfld System.Collections.Generic.List`1<Verse.BodyPartRecord>
RimWorld.<GetFixedPartsToApplyOn>d__5::<bpList>5__4
IL_00FE: ldarg.0
IL_00FF: ldfld System.Int32 RimWorld.<GetFixedPartsToApplyOn>d__5::<i>5__2
IL_0104: ldc.i4.1
IL_0105: add
IL_0106: stloc.2
IL_0107: ldarg.0
IL_0108: ldloc.2
IL_0109: stfld System.Int32 RimWorld.<GetFixedPartsToApplyOn>d__5::<i>5__2
IL_010E: Label3
IL_010E: ldarg.0
IL_010F: ldfld System.Int32 RimWorld.<GetFixedPartsToApplyOn>d__5::<i>5__2
IL_0114: ldarg.0
IL_0115: ldfld Verse.RecipeDef RimWorld.<GetFixedPartsToApplyOn>d__5::recipe
IL_011A: ldfld System.Collections.Generic.List`1<Verse.BodyPartDef>
Verse.RecipeDef::appliedOnFixedBodyParts
IL_011F: callvirt virtual System.Int32
System.Collections.Generic.List`1<Verse.BodyPartDef>::get_Count()
IL_0124: blt => Label9
IL_0129: ldarg.0
IL_012A: ldc.i4.0
IL_012B: stfld System.Int32 RimWorld.<GetFixedPartsToApplyOn>d__5::<i>5__2
IL_0130: br => Label10
IL_0135: Label17
IL_0135: ldarg.0
IL_0136: ldarg.0
IL_0137: ldfld Verse.RecipeDef RimWorld.<GetFixedPartsToApplyOn>d__5::recipe
IL_013C: ldfld System.Collections.Generic.List`1<Verse.BodyPartGroupDef>
Verse.RecipeDef::appliedOnFixedBodyPartGroups
IL_0141: ldarg.0
IL_0142: ldfld System.Int32 RimWorld.<GetFixedPartsToApplyOn>d__5::<i>5__2
IL_0147: callvirt virtual Verse.BodyPartGroupDef
System.Collections.Generic.List`1<Verse.BodyPartGroupDef>::get_Item(System.Int32
index)
IL_014C: stfld Verse.BodyPartGroupDef
RimWorld.<GetFixedPartsToApplyOn>d__5::<group>5__6
IL_0151: ldarg.0
IL_0152: ldarg.0
IL_0153: ldfld Verse.Pawn RimWorld.<GetFixedPartsToApplyOn>d__5::pawn
IL_0158: call static Verse.BodyDef
AlienRace.HarmonyPatches::ReplacedBody(Verse.Pawn pawn)
IL_015D: callvirt System.Collections.Generic.List`1<Verse.BodyPartRecord>
Verse.BodyDef::get_AllParts()
IL_0162: stfld System.Collections.Generic.List`1<Verse.BodyPartRecord>
RimWorld.<GetFixedPartsToApplyOn>d__5::<bpList>5__4
IL_0167: ldarg.0
IL_0168: ldc.i4.0
IL_0169: stfld System.Int32 RimWorld.<GetFixedPartsToApplyOn>d__5::<j>5__5
IL_016E: br => Label11
IL_0173: Label16
IL_0173: ldarg.0
IL_0174: ldfld System.Collections.Generic.List`1<Verse.BodyPartRecord>
RimWorld.<GetFixedPartsToApplyOn>d__5::<bpList>5__4
IL_0179: ldarg.0
IL_017A: ldfld System.Int32 RimWorld.<GetFixedPartsToApplyOn>d__5::<j>5__5
IL_017F: callvirt virtual Verse.BodyPartRecord
System.Collections.Generic.List`1<Verse.BodyPartRecord>::get_Item(System.Int32
index)
IL_0184: stloc.3
IL_0185: ldloc.3
IL_0186: ldfld System.Collections.Generic.List`1<Verse.BodyPartGroupDef>
Verse.BodyPartRecord::groups
IL_018B: brfalse => Label12
IL_0190: ldloc.3
IL_0191: ldfld System.Collections.Generic.List`1<Verse.BodyPartGroupDef>
Verse.BodyPartRecord::groups
IL_0196: ldarg.0
IL_0197: ldfld Verse.BodyPartGroupDef
RimWorld.<GetFixedPartsToApplyOn>d__5::<group>5__6
IL_019C: callvirt virtual System.Boolean
System.Collections.Generic.List`1<Verse.BodyPartGroupDef>::Contains(Verse.BodyPartG
roupDef item)
IL_01A1: brfalse => Label13
IL_01A6: ldarg.0
IL_01A7: ldfld System.Func`2<Verse.BodyPartRecord, System.Boolean>
RimWorld.<GetFixedPartsToApplyOn>d__5::validator
IL_01AC: brfalse => Label14
IL_01B1: ldarg.0
IL_01B2: ldfld System.Func`2<Verse.BodyPartRecord, System.Boolean>
RimWorld.<GetFixedPartsToApplyOn>d__5::validator
IL_01B7: ldloc.3
IL_01B8: callvirt virtual System.Boolean System.Func`2<Verse.BodyPartRecord,
System.Boolean>::Invoke(Verse.BodyPartRecord arg)
IL_01BD: brfalse => Label15
IL_01C2: Label14
IL_01C2: ldarg.0
IL_01C3: ldloc.3
IL_01C4: stfld Verse.BodyPartRecord
RimWorld.<GetFixedPartsToApplyOn>d__5::<>2__current
IL_01C9: ldarg.0
IL_01CA: ldc.i4.2
IL_01CB: stfld System.Int32 RimWorld.<GetFixedPartsToApplyOn>d__5::<>1__state
IL_01D0: ldc.i4.1
IL_01D1: br => Label20
IL_01D6: Label2
IL_01D6: ldarg.0
IL_01D7: ldc.i4.m1
IL_01D8: stfld System.Int32 RimWorld.<GetFixedPartsToApplyOn>d__5::<>1__state
IL_01DD: Label12
IL_01DD: Label13
IL_01DD: Label15
IL_01DD: ldarg.0
IL_01DE: ldfld System.Int32 RimWorld.<GetFixedPartsToApplyOn>d__5::<j>5__5
IL_01E3: stloc.2
IL_01E4: ldarg.0
IL_01E5: ldloc.2
IL_01E6: ldc.i4.1
IL_01E7: add
IL_01E8: stfld System.Int32 RimWorld.<GetFixedPartsToApplyOn>d__5::<j>5__5
IL_01ED: Label11
IL_01ED: ldarg.0
IL_01EE: ldfld System.Int32 RimWorld.<GetFixedPartsToApplyOn>d__5::<j>5__5
IL_01F3: ldarg.0
IL_01F4: ldfld System.Collections.Generic.List`1<Verse.BodyPartRecord>
RimWorld.<GetFixedPartsToApplyOn>d__5::<bpList>5__4
IL_01F9: callvirt virtual System.Int32
System.Collections.Generic.List`1<Verse.BodyPartRecord>::get_Count()
IL_01FE: blt => Label16
IL_0203: ldarg.0
IL_0204: ldnull
IL_0205: stfld Verse.BodyPartGroupDef
RimWorld.<GetFixedPartsToApplyOn>d__5::<group>5__6
IL_020A: ldarg.0
IL_020B: ldnull
IL_020C: stfld System.Collections.Generic.List`1<Verse.BodyPartRecord>
RimWorld.<GetFixedPartsToApplyOn>d__5::<bpList>5__4
IL_0211: ldarg.0
IL_0212: ldfld System.Int32 RimWorld.<GetFixedPartsToApplyOn>d__5::<i>5__2
IL_0217: ldc.i4.1
IL_0218: add
IL_0219: stloc.2
IL_021A: ldarg.0
IL_021B: ldloc.2
IL_021C: stfld System.Int32 RimWorld.<GetFixedPartsToApplyOn>d__5::<i>5__2
IL_0221: Label10
IL_0221: ldarg.0
IL_0222: ldfld System.Int32 RimWorld.<GetFixedPartsToApplyOn>d__5::<i>5__2
IL_0227: ldarg.0
IL_0228: ldfld Verse.RecipeDef RimWorld.<GetFixedPartsToApplyOn>d__5::recipe
IL_022D: ldfld System.Collections.Generic.List`1<Verse.BodyPartGroupDef>
Verse.RecipeDef::appliedOnFixedBodyPartGroups
IL_0232: callvirt virtual System.Int32
System.Collections.Generic.List`1<Verse.BodyPartGroupDef>::get_Count()
IL_0237: blt => Label17
IL_023C: ldc.i4.0
IL_023D: // end original
IL_023D: Label18
IL_023D: Label19
IL_023D: Label20
IL_023D: ret
DONE

### Patch: virtual System.Boolean RimWorld.<GetPartsToApplyOn>d__2::MoveNext()


### Replacement: static System.Boolean
RimWorld.Recipe_RemoveBodyPart+<GetPartsToApplyOn>d__2::RimWorld.Recipe_RemoveBodyP
art+<GetPartsToApplyOn>d__2.MoveNext_Patch0(RimWorld.<GetPartsToApplyOn>d__2 this)
IL_0000: Local var 0: System.Boolean
IL_0000: Local var 1: System.Int32
IL_0000: Local var 2:
System.Collections.Generic.IEnumerable`1<Verse.BodyPartRecord>
IL_0000: Local var 3: RimWorld.Recipe_RemoveBodyPart/<>c__DisplayClass2_0
IL_0000: // start original
.try
{
IL_0000: ldarg.0
IL_0001: ldfld System.Int32 RimWorld.<GetPartsToApplyOn>d__2::<>1__state
IL_0006: stloc.1
IL_0007: ldloc.1
IL_0008: switch => Labels0,1,2,3,4
IL_0021: ldc.i4.0
IL_0022: stloc.0
IL_0023: leave => Label5
IL_0028: Label0
IL_0028: ldarg.0
IL_0029: ldc.i4.m1
IL_002A: stfld System.Int32 RimWorld.<GetPartsToApplyOn>d__2::<>1__state
IL_002F: ldarg.0
IL_0030: ldfld Verse.Pawn RimWorld.<GetPartsToApplyOn>d__2::pawn
IL_0035: ldfld Verse.Pawn_HealthTracker Verse.Pawn::health
IL_003A: ldfld Verse.HediffSet Verse.Pawn_HealthTracker::hediffSet
IL_003F: ldc.i4.0
IL_0040: ldc.i4.0
IL_0041: ldnull
IL_0042: ldnull
IL_0043: callvirt
System.Collections.Generic.IEnumerable`1<Verse.BodyPartRecord>
Verse.HediffSet::GetNotMissingParts(Verse.BodyPartHeight height,
Verse.BodyPartDepth depth, Verse.BodyPartTagDef tag, Verse.BodyPartRecord
partParent)
IL_0048: stloc.2
IL_0049: ldarg.0
IL_004A: ldloc.2
IL_004B: callvirt abstract virtual
System.Collections.Generic.IEnumerator`1<Verse.BodyPartRecord>
System.Collections.Generic.IEnumerable`1<Verse.BodyPartRecord>::GetEnumerator()
IL_0050: stfld
System.Collections.Generic.IEnumerator`1<Verse.BodyPartRecord>
RimWorld.<GetPartsToApplyOn>d__2::<>7__wrap1
IL_0055: ldarg.0
IL_0056: ldc.i4.s -3
IL_0058: stfld System.Int32 RimWorld.<GetPartsToApplyOn>d__2::<>1__state
IL_005D: br => Label6
IL_0062: Label20
IL_0062: newobj System.Void RimWorld.<>c__DisplayClass2_0::.ctor()
IL_0067: stloc.3
IL_0068: ldloc.3
IL_0069: ldarg.0
IL_006A: ldfld
System.Collections.Generic.IEnumerator`1<Verse.BodyPartRecord>
RimWorld.<GetPartsToApplyOn>d__2::<>7__wrap1
IL_006F: callvirt abstract virtual Verse.BodyPartRecord
System.Collections.Generic.IEnumerator`1<Verse.BodyPartRecord>::get_Current()
IL_0074: stfld Verse.BodyPartRecord RimWorld.<>c__DisplayClass2_0::part
IL_0079: ldarg.0
IL_007A: ldfld Verse.Pawn RimWorld.<GetPartsToApplyOn>d__2::pawn
IL_007F: ldfld Verse.Pawn_HealthTracker Verse.Pawn::health
IL_0084: ldfld Verse.HediffSet Verse.Pawn_HealthTracker::hediffSet
IL_0089: ldloc.3
IL_008A: ldfld Verse.BodyPartRecord RimWorld.<>c__DisplayClass2_0::part
IL_008F: callvirt System.Boolean
Verse.HediffSet::HasDirectlyAddedPartFor(Verse.BodyPartRecord part)
IL_0094: brfalse => Label7
IL_0099: ldarg.0
IL_009A: ldloc.3
IL_009B: ldfld Verse.BodyPartRecord RimWorld.<>c__DisplayClass2_0::part
IL_00A0: stfld Verse.BodyPartRecord
RimWorld.<GetPartsToApplyOn>d__2::<>2__current
IL_00A5: ldarg.0
IL_00A6: ldc.i4.1
IL_00A7: stfld System.Int32 RimWorld.<GetPartsToApplyOn>d__2::<>1__state
IL_00AC: ldc.i4.1
IL_00AD: stloc.0
IL_00AE: leave => Label8
IL_00B3: Label1
IL_00B3: ldarg.0
IL_00B4: ldc.i4.s -3
IL_00B6: stfld System.Int32 RimWorld.<GetPartsToApplyOn>d__2::<>1__state
IL_00BB: br => Label9
IL_00C0: Label7
IL_00C0: ldarg.0
IL_00C1: ldfld Verse.Pawn RimWorld.<GetPartsToApplyOn>d__2::pawn
IL_00C6: ldloc.3
IL_00C7: ldfld Verse.BodyPartRecord RimWorld.<>c__DisplayClass2_0::part
IL_00CC: call static System.Boolean
RimWorld.MedicalRecipesUtility::IsCleanAndDroppable(Verse.Pawn pawn,
Verse.BodyPartRecord part)
IL_00D1: brfalse => Label10
IL_00D6: ldarg.0
IL_00D7: ldloc.3
IL_00D8: ldfld Verse.BodyPartRecord RimWorld.<>c__DisplayClass2_0::part
IL_00DD: stfld Verse.BodyPartRecord
RimWorld.<GetPartsToApplyOn>d__2::<>2__current
IL_00E2: ldarg.0
IL_00E3: ldc.i4.2
IL_00E4: stfld System.Int32 RimWorld.<GetPartsToApplyOn>d__2::<>1__state
IL_00E9: ldc.i4.1
IL_00EA: stloc.0
IL_00EB: leave => Label11
IL_00F0: Label2
IL_00F0: ldarg.0
IL_00F1: ldc.i4.s -3
IL_00F3: stfld System.Int32 RimWorld.<GetPartsToApplyOn>d__2::<>1__state
IL_00F8: br => Label12
IL_00FD: Label10
IL_00FD: ldloc.3
IL_00FE: ldfld Verse.BodyPartRecord RimWorld.<>c__DisplayClass2_0::part
IL_0103: ldarg.0
IL_0104: ldfld Verse.Pawn RimWorld.<GetPartsToApplyOn>d__2::pawn
IL_0109: call static Verse.BodyDef
AlienRace.HarmonyPatches::ReplacedBody(Verse.Pawn pawn)
IL_010E: ldfld Verse.BodyPartRecord Verse.BodyDef::corePart
IL_0113: beq => Label13
IL_0118: ldloc.3
IL_0119: ldfld Verse.BodyPartRecord RimWorld.<>c__DisplayClass2_0::part
IL_011E: ldfld Verse.BodyPartDef Verse.BodyPartRecord::def
IL_0123: ldfld System.Boolean Verse.BodyPartDef::canSuggestAmputation
IL_0128: brfalse => Label14
IL_012D: ldarg.0
IL_012E: ldfld Verse.Pawn RimWorld.<GetPartsToApplyOn>d__2::pawn
IL_0133: ldfld Verse.Pawn_HealthTracker Verse.Pawn::health
IL_0138: ldfld Verse.HediffSet Verse.Pawn_HealthTracker::hediffSet
IL_013D: ldfld System.Collections.Generic.List`1<Verse.Hediff>
Verse.HediffSet::hediffs
IL_0142: ldloc.3
IL_0143: ldftn System.Boolean
RimWorld.<>c__DisplayClass2_0::<GetPartsToApplyOn>b__0(Verse.Hediff d)
IL_0149: newobj System.Void
System.Predicate`1<Verse.Hediff>::.ctor(System.Object object, System.IntPtr method)
IL_014E: call static System.Boolean
Verse.GenCollection::Any(System.Collections.Generic.List`1<Verse.Hediff> list,
System.Predicate`1<Verse.Hediff> predicate)
IL_0153: brfalse => Label15
IL_0158: ldarg.0
IL_0159: ldloc.3
IL_015A: ldfld Verse.BodyPartRecord RimWorld.<>c__DisplayClass2_0::part
IL_015F: stfld Verse.BodyPartRecord
RimWorld.<GetPartsToApplyOn>d__2::<>2__current
IL_0164: ldarg.0
IL_0165: ldc.i4.3
IL_0166: stfld System.Int32 RimWorld.<GetPartsToApplyOn>d__2::<>1__state
IL_016B: ldc.i4.1
IL_016C: stloc.0
IL_016D: leave => Label16
IL_0172: Label3
IL_0172: ldarg.0
IL_0173: ldc.i4.s -3
IL_0175: stfld System.Int32 RimWorld.<GetPartsToApplyOn>d__2::<>1__state
IL_017A: br => Label17
IL_017F: Label13
IL_017F: Label14
IL_017F: Label15
IL_017F: ldloc.3
IL_0180: ldfld Verse.BodyPartRecord RimWorld.<>c__DisplayClass2_0::part
IL_0185: ldfld Verse.BodyPartDef Verse.BodyPartRecord::def
IL_018A: ldfld System.Boolean Verse.BodyPartDef::forceAlwaysRemovable
IL_018F: brfalse => Label18
IL_0194: ldarg.0
IL_0195: ldloc.3
IL_0196: ldfld Verse.BodyPartRecord RimWorld.<>c__DisplayClass2_0::part
IL_019B: stfld Verse.BodyPartRecord
RimWorld.<GetPartsToApplyOn>d__2::<>2__current
IL_01A0: ldarg.0
IL_01A1: ldc.i4.4
IL_01A2: stfld System.Int32 RimWorld.<GetPartsToApplyOn>d__2::<>1__state
IL_01A7: ldc.i4.1
IL_01A8: stloc.0
IL_01A9: leave => Label19
IL_01AE: Label4
IL_01AE: ldarg.0
IL_01AF: ldc.i4.s -3
IL_01B1: stfld System.Int32 RimWorld.<GetPartsToApplyOn>d__2::<>1__state
IL_01B6: Label6
IL_01B6: Label9
IL_01B6: Label12
IL_01B6: Label17
IL_01B6: Label18
IL_01B6: ldarg.0
IL_01B7: ldfld
System.Collections.Generic.IEnumerator`1<Verse.BodyPartRecord>
RimWorld.<GetPartsToApplyOn>d__2::<>7__wrap1
IL_01BC: callvirt abstract virtual System.Boolean
System.Collections.IEnumerator::MoveNext()
IL_01C1: brtrue => Label20
IL_01C6: ldarg.0
IL_01C7: call System.Void
RimWorld.<GetPartsToApplyOn>d__2::<>m__Finally1()
IL_01CC: ldarg.0
IL_01CD: ldnull
IL_01CE: stfld
System.Collections.Generic.IEnumerator`1<Verse.BodyPartRecord>
RimWorld.<GetPartsToApplyOn>d__2::<>7__wrap1
IL_01D3: ldc.i4.0
IL_01D4: stloc.0
IL_01D5: leave => Label21
IL_01DA: leave => (autogenerated)
} // end try
.fault
{
IL_01DF: ldarg.0
IL_01E0: call virtual System.Void
RimWorld.<GetPartsToApplyOn>d__2::System.IDisposable.Dispose()
IL_01E5: endfinally
IL_01E6: leave => (autogenerated)
} // end handler
IL_01EB: Label5
IL_01EB: Label8
IL_01EB: Label11
IL_01EB: Label16
IL_01EB: Label19
IL_01EB: Label21
IL_01EB: ldloc.0
IL_01EC: // end original
IL_01EC: ret
DONE

### Patch: virtual System.Single


RimWorld.PawnCapacityWorker_BloodFiltration::CalculateCapacityLevel(Verse.HediffSet
diffSet, System.Collections.Generic.List`1<Verse.CapacityImpactor> impactors)
### Replacement: static System.Single
RimWorld.PawnCapacityWorker_BloodFiltration::RimWorld.PawnCapacityWorker_BloodFiltr
ation.CalculateCapacityLevel_Patch0(RimWorld.PawnCapacityWorker_BloodFiltration
this, Verse.HediffSet diffSet,
System.Collections.Generic.List`1<Verse.CapacityImpactor> impactors)
IL_0000: Local var 0: Verse.FloatRange
IL_0000: // start original
IL_0000: ldarg.1
IL_0001: ldfld Verse.Pawn Verse.HediffSet::pawn
IL_0006: call static Verse.BodyDef
AlienRace.HarmonyPatches::ReplacedBody(Verse.Pawn pawn)
IL_000B: ldsfld Verse.BodyPartTagDef
RimWorld.BodyPartTagDefOf::BloodFiltrationKidney
IL_0010: callvirt System.Boolean
Verse.BodyDef::HasPartWithTag(Verse.BodyPartTagDef tag)
IL_0015: brfalse => Label0
IL_001A: ldarg.1
IL_001B: ldsfld Verse.BodyPartTagDef
RimWorld.BodyPartTagDefOf::BloodFiltrationKidney
IL_0020: ldc.r4 3.402823E+38
IL_0025: ldloca.s 0 (Verse.FloatRange)
IL_0027: initobj Verse.FloatRange
IL_002D: ldloc.0
IL_002E: ldarg.2
IL_002F: ldc.r4 -1
IL_0034: call static System.Single
Verse.PawnCapacityUtility::CalculateTagEfficiency(Verse.HediffSet diffSet,
Verse.BodyPartTagDef tag, System.Single maximum, Verse.FloatRange lerp,
System.Collections.Generic.List`1<Verse.CapacityImpactor> impactors, System.Single
bestPartEfficiencySpecialWeight)
IL_0039: ldarg.1
IL_003A: ldsfld Verse.BodyPartTagDef
RimWorld.BodyPartTagDefOf::BloodFiltrationLiver
IL_003F: ldc.r4 3.402823E+38
IL_0044: ldloca.s 0 (Verse.FloatRange)
IL_0046: initobj Verse.FloatRange
IL_004C: ldloc.0
IL_004D: ldarg.2
IL_004E: ldc.r4 -1
IL_0053: call static System.Single
Verse.PawnCapacityUtility::CalculateTagEfficiency(Verse.HediffSet diffSet,
Verse.BodyPartTagDef tag, System.Single maximum, Verse.FloatRange lerp,
System.Collections.Generic.List`1<Verse.CapacityImpactor> impactors, System.Single
bestPartEfficiencySpecialWeight)
IL_0058: mul
IL_0059: br => Label1
IL_005E: Label0
IL_005E: ldarg.1
IL_005F: ldsfld Verse.BodyPartTagDef
RimWorld.BodyPartTagDefOf::BloodFiltrationSource
IL_0064: ldc.r4 3.402823E+38
IL_0069: ldloca.s 0 (Verse.FloatRange)
IL_006B: initobj Verse.FloatRange
IL_0071: ldloc.0
IL_0072: ldarg.2
IL_0073: ldc.r4 -1
IL_0078: call static System.Single
Verse.PawnCapacityUtility::CalculateTagEfficiency(Verse.HediffSet diffSet,
Verse.BodyPartTagDef tag, System.Single maximum, Verse.FloatRange lerp,
System.Collections.Generic.List`1<Verse.CapacityImpactor> impactors, System.Single
bestPartEfficiencySpecialWeight)
IL_007D: // end original
IL_007D: Label1
IL_007D: ret
DONE

### Patch: System.Void RimWorld.PossibleApparelSet::Reset(Verse.Pawn pawn)


### Replacement: static System.Void
RimWorld.PawnApparelGenerator+PossibleApparelSet::RimWorld.PawnApparelGenerator+Pos
sibleApparelSet.Reset_Patch0(RimWorld.PossibleApparelSet this, Verse.Pawn pawn)
IL_0000: // start original
IL_0000: ldarg.0
IL_0001: ldfld System.Collections.Generic.List`1<RimWorld.ThingStuffPair>
RimWorld.PossibleApparelSet::aps
IL_0006: callvirt virtual System.Void
System.Collections.Generic.List`1<RimWorld.ThingStuffPair>::Clear()
IL_000B: ldarg.0
IL_000C: ldfld System.Collections.Generic.HashSet`1<RimWorld.LayerGroupPair>
RimWorld.PossibleApparelSet::lgps
IL_0011: callvirt virtual System.Void
System.Collections.Generic.HashSet`1<RimWorld.LayerGroupPair>::Clear()
IL_0016: ldarg.0
IL_0017: ldarg.1
IL_0018: stfld Verse.Pawn RimWorld.PossibleApparelSet::pawn
IL_001D: ldarg.0
IL_001E: ldarg.1
IL_001F: brtrue => Label0
IL_0024: ldnull
IL_0025: br => Label1
IL_002A: Label0
IL_002A: ldarg.1
IL_002B: call Verse.RaceProperties Verse.Pawn::get_RaceProps()
IL_0030: dup
IL_0031: brtrue => Label2
IL_0036: pop
IL_0037: ldnull
IL_0038: br => Label3
IL_003D: Label2
IL_003D: ldfld Verse.BodyDef Verse.RaceProperties::body
IL_0042: Label1
IL_0042: Label3
IL_0042: stfld Verse.BodyDef RimWorld.PossibleApparelSet::body
IL_0047: ldarg.0
IL_0048: ldarg.1
IL_0049: brtrue => Label4
IL_004E: ldnull
IL_004F: br => Label5
IL_0054: Label4
IL_0054: ldarg.1
IL_0055: ldfld Verse.ThingDef Verse.Thing::def
IL_005A: Label5
IL_005A: stfld Verse.ThingDef RimWorld.PossibleApparelSet::raceDef
IL_005F: // end original
IL_005F: ret
DONE

### Patch: System.Void RimWorld.PossibleApparelSet::GiveToPawn(Verse.Pawn pawn)


### Replacement: static System.Void
RimWorld.PawnApparelGenerator+PossibleApparelSet::RimWorld.PawnApparelGenerator+Pos
sibleApparelSet.GiveToPawn_Patch0(RimWorld.PossibleApparelSet this, Verse.Pawn
pawn)
IL_0000: Local var 0: System.Int32
IL_0000: Local var 1: RimWorld.Apparel
IL_0000: Local var 2: System.Int32
IL_0000: Local var 3: System.Int32
IL_0000: // start original
IL_0000: ldc.i4.0
IL_0001: stloc.0
IL_0002: br => Label0
IL_0007: Label2
IL_0007: ldarg.0
IL_0008: ldfld System.Collections.Generic.List`1<RimWorld.ThingStuffPair>
RimWorld.PossibleApparelSet::aps
IL_000D: ldloc.0
IL_000E: callvirt virtual RimWorld.ThingStuffPair
System.Collections.Generic.List`1<RimWorld.ThingStuffPair>::get_Item(System.Int32
index)
IL_0013: ldfld Verse.ThingDef RimWorld.ThingStuffPair::thing
IL_0018: ldarg.0
IL_0019: ldfld System.Collections.Generic.List`1<RimWorld.ThingStuffPair>
RimWorld.PossibleApparelSet::aps
IL_001E: ldloc.0
IL_001F: callvirt virtual RimWorld.ThingStuffPair
System.Collections.Generic.List`1<RimWorld.ThingStuffPair>::get_Item(System.Int32
index)
IL_0024: ldfld Verse.ThingDef RimWorld.ThingStuffPair::stuff
IL_0029: call static Verse.Thing Verse.ThingMaker::MakeThing(Verse.ThingDef
def, Verse.ThingDef stuff)
IL_002E: castclass RimWorld.Apparel
IL_0033: stloc.1
IL_0034: ldloc.1
IL_0035: ldarg.1
IL_0036: call static System.Void
Verse.PawnGenerator::PostProcessGeneratedGear(Verse.Thing gear, Verse.Pawn pawn)
IL_003B: ldarg.1
IL_003C: ldloc.1
IL_003D: ldfld Verse.ThingDef Verse.Thing::def
IL_0042: call static System.Boolean
RimWorld.ApparelUtility::HasPartsToWear(Verse.Pawn p, Verse.ThingDef apparel)
IL_0047: brfalse => Label1
IL_004C: ldarg.1
IL_004D: ldfld RimWorld.Pawn_ApparelTracker Verse.Pawn::apparel
IL_0052: ldloc.1
IL_0053: ldc.i4.0
IL_0054: ldc.i4.0
IL_0055: callvirt System.Void RimWorld.Pawn_ApparelTracker::Wear(RimWorld.Apparel
newApparel, System.Boolean dropReplacedApparel, System.Boolean locked)
IL_005A: Label1
IL_005A: ldloc.0
IL_005B: ldc.i4.1
IL_005C: add
IL_005D: stloc.0
IL_005E: Label0
IL_005E: ldloc.0
IL_005F: ldarg.0
IL_0060: ldfld System.Collections.Generic.List`1<RimWorld.ThingStuffPair>
RimWorld.PossibleApparelSet::aps
IL_0065: callvirt virtual System.Int32
System.Collections.Generic.List`1<RimWorld.ThingStuffPair>::get_Count()
IL_006A: blt => Label2
IL_006F: ldc.i4.0
IL_0070: stloc.2
IL_0071: br => Label3
IL_0076: Label8
IL_0076: ldc.i4.0
IL_0077: stloc.3
IL_0078: br => Label4
IL_007D: Label7
IL_007D: ldloc.2
IL_007E: ldloc.3
IL_007F: beq => Label5
IL_0084: ldarg.0
IL_0085: ldfld System.Collections.Generic.List`1<RimWorld.ThingStuffPair>
RimWorld.PossibleApparelSet::aps
IL_008A: ldloc.2
IL_008B: callvirt virtual RimWorld.ThingStuffPair
System.Collections.Generic.List`1<RimWorld.ThingStuffPair>::get_Item(System.Int32
index)
IL_0090: ldfld Verse.ThingDef RimWorld.ThingStuffPair::thing
IL_0095: ldarg.0
IL_0096: ldfld System.Collections.Generic.List`1<RimWorld.ThingStuffPair>
RimWorld.PossibleApparelSet::aps
IL_009B: ldloc.3
IL_009C: callvirt virtual RimWorld.ThingStuffPair
System.Collections.Generic.List`1<RimWorld.ThingStuffPair>::get_Item(System.Int32
index)
IL_00A1: ldfld Verse.ThingDef RimWorld.ThingStuffPair::thing
IL_00A6: ldarg.1
IL_00A7: call static Verse.BodyDef
AlienRace.HarmonyPatches::ReplacedBody(Verse.Pawn pawn)
IL_00AC: call static System.Boolean
RimWorld.ApparelUtility::CanWearTogether(Verse.ThingDef A, Verse.ThingDef B,
Verse.BodyDef body)
IL_00B1: brtrue => Label6
IL_00B6: ldc.i4.5
IL_00B7: newarr System.Object
IL_00BC: dup
IL_00BD: ldc.i4.0
IL_00BE: ldarg.1
IL_00BF: stelem.ref
IL_00C0: dup
IL_00C1: ldc.i4.1
IL_00C2: ldstr " generated with apparel that cannot be worn together: "
IL_00C7: stelem.ref
IL_00C8: dup
IL_00C9: ldc.i4.2
IL_00CA: ldarg.0
IL_00CB: ldfld System.Collections.Generic.List`1<RimWorld.ThingStuffPair>
RimWorld.PossibleApparelSet::aps
IL_00D0: ldloc.2
IL_00D1: callvirt virtual RimWorld.ThingStuffPair
System.Collections.Generic.List`1<RimWorld.ThingStuffPair>::get_Item(System.Int32
index)
IL_00D6: box RimWorld.ThingStuffPair
IL_00DB: stelem.ref
IL_00DC: dup
IL_00DD: ldc.i4.3
IL_00DE: ldstr ", "
IL_00E3: stelem.ref
IL_00E4: dup
IL_00E5: ldc.i4.4
IL_00E6: ldarg.0
IL_00E7: ldfld System.Collections.Generic.List`1<RimWorld.ThingStuffPair>
RimWorld.PossibleApparelSet::aps
IL_00EC: ldloc.3
IL_00ED: callvirt virtual RimWorld.ThingStuffPair
System.Collections.Generic.List`1<RimWorld.ThingStuffPair>::get_Item(System.Int32
index)
IL_00F2: box RimWorld.ThingStuffPair
IL_00F7: stelem.ref
IL_00F8: call static System.String System.String::Concat(System.Object[]
args)
IL_00FD: call static System.Void Verse.Log::Error(System.String text)
IL_0102: br => Label9
IL_0107: Label5
IL_0107: Label6
IL_0107: ldloc.3
IL_0108: ldc.i4.1
IL_0109: add
IL_010A: stloc.3
IL_010B: Label4
IL_010B: ldloc.3
IL_010C: ldarg.0
IL_010D: ldfld System.Collections.Generic.List`1<RimWorld.ThingStuffPair>
RimWorld.PossibleApparelSet::aps
IL_0112: callvirt virtual System.Int32
System.Collections.Generic.List`1<RimWorld.ThingStuffPair>::get_Count()
IL_0117: blt => Label7
IL_011C: ldloc.2
IL_011D: ldc.i4.1
IL_011E: add
IL_011F: stloc.2
IL_0120: Label3
IL_0120: ldloc.2
IL_0121: ldarg.0
IL_0122: ldfld System.Collections.Generic.List`1<RimWorld.ThingStuffPair>
RimWorld.PossibleApparelSet::aps
IL_0127: callvirt virtual System.Int32
System.Collections.Generic.List`1<RimWorld.ThingStuffPair>::get_Count()
IL_012C: blt => Label8
IL_0131: // end original
IL_0131: Label9
IL_0131: ret
DONE

### Patch: static System.Void


RimWorld.PawnTechHediffsGenerator::InstallPart(Verse.Pawn pawn, Verse.ThingDef
partDef)
### Replacement: static System.Void
RimWorld.PawnTechHediffsGenerator::RimWorld.PawnTechHediffsGenerator.InstallPart_Pa
tch0(Verse.Pawn pawn, Verse.ThingDef partDef)
IL_0000: Local var 0: RimWorld.PawnTechHediffsGenerator/<>c__DisplayClass3_0
IL_0000: Local var 1: System.Collections.Generic.IEnumerable`1<Verse.RecipeDef>
IL_0000: Local var 2: Verse.RecipeDef
IL_0000: Local var 3: RimWorld.CompProperties_UseEffectInstallImplant
IL_0000: Local var 4: System.Collections.Generic.List`1<Verse.BodyPartRecord>
IL_0000: Local var 5: System.Nullable`1<Verse.DamageInfo>
IL_0000: // start original
IL_0000: newobj System.Void RimWorld.<>c__DisplayClass3_0::.ctor()
IL_0005: stloc.0
IL_0006: ldloc.0
IL_0007: ldarg.1
IL_0008: stfld Verse.ThingDef RimWorld.<>c__DisplayClass3_0::partDef
IL_000D: ldloc.0
IL_000E: ldarg.0
IL_000F: stfld Verse.Pawn RimWorld.<>c__DisplayClass3_0::pawn
IL_0014: call static
System.Collections.Generic.IEnumerable`1<Verse.RecipeDef>
Verse.DefDatabase`1<Verse.RecipeDef>::get_AllDefs()
IL_0019: ldloc.0
IL_001A: ldftn System.Boolean
RimWorld.<>c__DisplayClass3_0::<InstallPart>b__0(Verse.RecipeDef x)
IL_0020: newobj System.Void System.Func`2<Verse.RecipeDef,
System.Boolean>::.ctor(System.Object object, System.IntPtr method)
IL_0025: call static
System.Collections.Generic.IEnumerable`1<Verse.RecipeDef>
System.Linq.Enumerable::Where(System.Collections.Generic.IEnumerable`1<Verse.Recipe
Def> source, System.Func`2<Verse.RecipeDef, System.Boolean> predicate)
IL_002A: stloc.1
IL_002B: ldloc.1
IL_002C: call static System.Boolean
System.Linq.Enumerable::Any(System.Collections.Generic.IEnumerable`1<Verse.RecipeDe
f> source)
IL_0031: brfalse => Label0
IL_0036: ldloc.1
IL_0037: call static Verse.RecipeDef
Verse.GenCollection::RandomElement(System.Collections.Generic.IEnumerable`1<Verse.R
ecipeDef> source)
IL_003C: stloc.2
IL_003D: ldloc.2
IL_003E: callvirt Verse.RecipeWorker Verse.RecipeDef::get_Worker()
IL_0043: ldloc.0
IL_0044: ldfld Verse.Pawn RimWorld.<>c__DisplayClass3_0::pawn
IL_0049: ldloc.2
IL_004A: callvirt virtual
System.Collections.Generic.IEnumerable`1<Verse.BodyPartRecord>
Verse.RecipeWorker::GetPartsToApplyOn(Verse.Pawn pawn, Verse.RecipeDef recipe)
IL_004F: call static System.Boolean
System.Linq.Enumerable::Any(System.Collections.Generic.IEnumerable`1<Verse.BodyPart
Record> source)
IL_0054: brfalse => Label1
IL_0059: ldloc.2
IL_005A: callvirt Verse.RecipeWorker Verse.RecipeDef::get_Worker()
IL_005F: ldloc.0
IL_0060: ldfld Verse.Pawn RimWorld.<>c__DisplayClass3_0::pawn
IL_0065: ldloc.2
IL_0066: callvirt Verse.RecipeWorker Verse.RecipeDef::get_Worker()
IL_006B: ldloc.0
IL_006C: ldfld Verse.Pawn RimWorld.<>c__DisplayClass3_0::pawn
IL_0071: ldloc.2
IL_0072: callvirt virtual
System.Collections.Generic.IEnumerable`1<Verse.BodyPartRecord>
Verse.RecipeWorker::GetPartsToApplyOn(Verse.Pawn pawn, Verse.RecipeDef recipe)
IL_0077: call static Verse.BodyPartRecord
Verse.GenCollection::RandomElement(System.Collections.Generic.IEnumerable`1<Verse.B
odyPartRecord> source)
IL_007C: ldnull
IL_007D: ldsfld System.Collections.Generic.List`1<Verse.Thing>
RimWorld.PawnTechHediffsGenerator::emptyIngredientsList
IL_0082: ldnull
IL_0083: callvirt virtual System.Void Verse.RecipeWorker::ApplyOnPawn(Verse.Pawn
pawn, Verse.BodyPartRecord part, Verse.Pawn billDoer,
System.Collections.Generic.List`1<Verse.Thing> ingredients, RimWorld.Bill bill)
IL_0088: br => Label5
IL_008D: Label0
IL_008D: ldloc.0
IL_008E: ldfld Verse.ThingDef RimWorld.<>c__DisplayClass3_0::partDef
IL_0093: callvirt RimWorld.CompProperties_UseEffectInstallImplant
Verse.ThingDef::GetCompProperties()
IL_0098: stloc.3
IL_0099: ldloc.3
IL_009A: brfalse => Label2
IL_009F: ldloc.0
IL_00A0: ldfld Verse.Pawn RimWorld.<>c__DisplayClass3_0::pawn
IL_00A5: call static Verse.BodyDef
AlienRace.HarmonyPatches::ReplacedBody(Verse.Pawn pawn)
IL_00AA: ldloc.3
IL_00AB: ldfld Verse.BodyPartDef
RimWorld.CompProperties_UseEffectInstallImplant::bodyPart
IL_00B0: callvirt System.Collections.Generic.List`1<Verse.BodyPartRecord>
Verse.BodyDef::GetPartsWithDef(Verse.BodyPartDef def)
IL_00B5: stloc.s 4 (System.Collections.Generic.List`1[Verse.BodyPartRecord])
IL_00B7: ldloc.0
IL_00B8: ldfld Verse.Pawn RimWorld.<>c__DisplayClass3_0::pawn
IL_00BD: ldfld Verse.Pawn_HealthTracker Verse.Pawn::health
IL_00C2: ldloc.3
IL_00C3: ldfld Verse.HediffDef
RimWorld.CompProperties_UseEffectInstallImplant::hediffDef
IL_00C8: ldloc.s 4 (System.Collections.Generic.List`1[Verse.BodyPartRecord])
IL_00CA: call static System.Boolean
Verse.GenList::NullOrEmpty(System.Collections.Generic.IList`1<Verse.BodyPartRecord>
list)
IL_00CF: brtrue => Label3
IL_00D4: ldloc.s 4 (System.Collections.Generic.List`1[Verse.BodyPartRecord])
IL_00D6: call static Verse.BodyPartRecord
Verse.GenCollection::RandomElement(System.Collections.Generic.IEnumerable`1<Verse.B
odyPartRecord> source)
IL_00DB: br => Label4
IL_00E0: Label3
IL_00E0: ldnull
IL_00E1: Label4
IL_00E1: ldloca.s 5 (System.Nullable`1[Verse.DamageInfo])
IL_00E3: initobj System.Nullable`1[Verse.DamageInfo]
IL_00E9: ldloc.s 5 (System.Nullable`1[Verse.DamageInfo])
IL_00EB: ldnull
IL_00EC: callvirt Verse.Hediff
Verse.Pawn_HealthTracker::AddHediff(Verse.HediffDef def, Verse.BodyPartRecord part,
System.Nullable`1<Verse.DamageInfo> dinfo, Verse.DamageResult result)
IL_00F1: pop
IL_00F2: // end original
IL_00F2: Label1
IL_00F2: Label2
IL_00F2: Label5
IL_00F2: ret
DONE

### Patch: System.Boolean


RimWorld.Pawn_ApparelTracker::CanWearWithoutDroppingAnything(Verse.ThingDef apDef)
### Replacement: static System.Boolean
RimWorld.Pawn_ApparelTracker::RimWorld.Pawn_ApparelTracker.CanWearWithoutDroppingAn
ything_Patch0(RimWorld.Pawn_ApparelTracker this, Verse.ThingDef apDef)
IL_0000: Local var 0: System.Int32
IL_0000: // start original
IL_0000: ldc.i4.0
IL_0001: stloc.0
IL_0002: br => Label0
IL_0007: Label2
IL_0007: ldarg.1
IL_0008: ldarg.0
IL_0009: ldfld Verse.ThingOwner`1<RimWorld.Apparel>
RimWorld.Pawn_ApparelTracker::wornApparel
IL_000E: ldloc.0
IL_000F: callvirt RimWorld.Apparel
Verse.ThingOwner`1<RimWorld.Apparel>::get_Item(System.Int32 index)
IL_0014: ldfld Verse.ThingDef Verse.Thing::def
IL_0019: ldarg.0
IL_001A: ldfld Verse.Pawn RimWorld.Pawn_ApparelTracker::pawn
IL_001F: call static Verse.BodyDef
AlienRace.HarmonyPatches::ReplacedBody(Verse.Pawn pawn)
IL_0024: call static System.Boolean
RimWorld.ApparelUtility::CanWearTogether(Verse.ThingDef A, Verse.ThingDef B,
Verse.BodyDef body)
IL_0029: brtrue => Label1
IL_002E: ldc.i4.0
IL_002F: br => Label3
IL_0034: Label1
IL_0034: ldloc.0
IL_0035: ldc.i4.1
IL_0036: add
IL_0037: stloc.0
IL_0038: Label0
IL_0038: ldloc.0
IL_0039: ldarg.0
IL_003A: ldfld Verse.ThingOwner`1<RimWorld.Apparel>
RimWorld.Pawn_ApparelTracker::wornApparel
IL_003F: callvirt abstract virtual System.Int32 Verse.ThingOwner::get_Count()
IL_0044: blt => Label2
IL_0049: ldc.i4.1
IL_004A: // end original
IL_004A: Label3
IL_004A: ret
DONE

### Patch: System.Void RimWorld.Pawn_ApparelTracker::Wear(RimWorld.Apparel


newApparel, System.Boolean dropReplacedApparel, System.Boolean locked)
### Replacement: static System.Void
RimWorld.Pawn_ApparelTracker::RimWorld.Pawn_ApparelTracker.Wear_Patch2(RimWorld.Paw
n_ApparelTracker this, RimWorld.Apparel newApparel, System.Boolean
dropReplacedApparel, System.Boolean locked)
IL_0000: Local var 0: RimWorld.CompBiocodable
IL_0000: Local var 1: System.Int32
IL_0000: Local var 2: RimWorld.Apparel
IL_0000: Local var 3: System.Boolean
IL_0000: Local var 4: RimWorld.Apparel
IL_0000: // start original
IL_0000: ldarg.1
IL_0001: ldc.i4.0
IL_0002: callvirt System.Boolean Verse.Thing::DeSpawnOrDeselect(Verse.DestroyMode
mode)
IL_0007: pop
IL_0008: ldarg.0
IL_0009: ldfld Verse.Pawn RimWorld.Pawn_ApparelTracker::pawn
IL_000E: ldarg.1
IL_000F: ldfld Verse.ThingDef Verse.Thing::def
IL_0014: call static System.Boolean
RimWorld.ApparelUtility::HasPartsToWear(Verse.Pawn p, Verse.ThingDef apparel)
IL_0019: brtrue => Label0
IL_001E: ldc.i4.4
IL_001F: newarr System.Object
IL_0024: dup
IL_0025: ldc.i4.0
IL_0026: ldarg.0
IL_0027: ldfld Verse.Pawn RimWorld.Pawn_ApparelTracker::pawn
IL_002C: stelem.ref
IL_002D: dup
IL_002E: ldc.i4.1
IL_002F: ldstr " tried to wear "
IL_0034: stelem.ref
IL_0035: dup
IL_0036: ldc.i4.2
IL_0037: ldarg.1
IL_0038: stelem.ref
IL_0039: dup
IL_003A: ldc.i4.3
IL_003B: ldstr " but he has no body parts required to wear it."
IL_0040: stelem.ref
IL_0041: call static System.String System.String::Concat(System.Object[]
args)
IL_0046: call static System.Void Verse.Log::Warning(System.String text)
IL_004B: br => Label13
IL_0050: Label0
IL_0050: ldarg.1
IL_0051: call static System.Boolean
RimWorld.CompBiocodable::IsBiocoded(Verse.Thing thing)
IL_0056: brfalse => Label1
IL_005B: ldarg.1
IL_005C: ldarg.0
IL_005D: ldfld Verse.Pawn RimWorld.Pawn_ApparelTracker::pawn
IL_0062: call static System.Boolean
RimWorld.CompBiocodable::IsBiocodedFor(Verse.Thing thing, Verse.Pawn pawn)
IL_0067: brtrue => Label2
IL_006C: ldarg.1
IL_006D: call static RimWorld.CompBiocodable
Verse.ThingCompUtility::TryGetComp(Verse.Thing thing)
IL_0072: stloc.0
IL_0073: ldc.i4.6
IL_0074: newarr System.Object
IL_0079: dup
IL_007A: ldc.i4.0
IL_007B: ldarg.0
IL_007C: ldfld Verse.Pawn RimWorld.Pawn_ApparelTracker::pawn
IL_0081: stelem.ref
IL_0082: dup
IL_0083: ldc.i4.1
IL_0084: ldstr " tried to wear "
IL_0089: stelem.ref
IL_008A: dup
IL_008B: ldc.i4.2
IL_008C: ldarg.1
IL_008D: stelem.ref
IL_008E: dup
IL_008F: ldc.i4.3
IL_0090: ldstr " but it is biocoded for "
IL_0095: stelem.ref
IL_0096: dup
IL_0097: ldc.i4.4
IL_0098: ldloc.0
IL_0099: callvirt System.String RimWorld.CompBiocodable::get_CodedPawnLabel()
IL_009E: stelem.ref
IL_009F: dup
IL_00A0: ldc.i4.5
IL_00A1: ldstr " ."
IL_00A6: stelem.ref
IL_00A7: call static System.String System.String::Concat(System.Object[]
args)
IL_00AC: call static System.Void Verse.Log::Warning(System.String text)
IL_00B1: br => Label14
IL_00B6: Label1
IL_00B6: Label2
IL_00B6: ldarg.1
IL_00B7: ldarg.0
IL_00B8: ldfld Verse.Pawn RimWorld.Pawn_ApparelTracker::pawn
IL_00BD: ldc.i4.1
IL_00BE: callvirt System.Boolean RimWorld.Apparel::PawnCanWear(Verse.Pawn pawn,
System.Boolean ignoreGender)
IL_00C3: brtrue => Label3
IL_00C8: ldc.i4.4
IL_00C9: newarr System.Object
IL_00CE: dup
IL_00CF: ldc.i4.0
IL_00D0: ldarg.0
IL_00D1: ldfld Verse.Pawn RimWorld.Pawn_ApparelTracker::pawn
IL_00D6: stelem.ref
IL_00D7: dup
IL_00D8: ldc.i4.1
IL_00D9: ldstr " tried to wear "
IL_00DE: stelem.ref
IL_00DF: dup
IL_00E0: ldc.i4.2
IL_00E1: ldarg.1
IL_00E2: stelem.ref
IL_00E3: dup
IL_00E4: ldc.i4.3
IL_00E5: ldstr " but is not allowed to."
IL_00EA: stelem.ref
IL_00EB: call static System.String System.String::Concat(System.Object[]
args)
IL_00F0: call static System.Void Verse.Log::Warning(System.String text)
IL_00F5: br => Label15
IL_00FA: Label3
IL_00FA: ldarg.0
IL_00FB: ldfld Verse.ThingOwner`1<RimWorld.Apparel>
RimWorld.Pawn_ApparelTracker::wornApparel
IL_0100: callvirt abstract virtual System.Int32 Verse.ThingOwner::get_Count()
IL_0105: ldc.i4.1
IL_0106: sub
IL_0107: stloc.1
IL_0108: br => Label4
IL_010D: Label10
IL_010D: ldarg.0
IL_010E: ldfld Verse.ThingOwner`1<RimWorld.Apparel>
RimWorld.Pawn_ApparelTracker::wornApparel
IL_0113: ldloc.1
IL_0114: callvirt RimWorld.Apparel
Verse.ThingOwner`1<RimWorld.Apparel>::get_Item(System.Int32 index)
IL_0119: stloc.2
IL_011A: ldarg.1
IL_011B: ldfld Verse.ThingDef Verse.Thing::def
IL_0120: ldloc.2
IL_0121: ldfld Verse.ThingDef Verse.Thing::def
IL_0126: ldarg.0
IL_0127: ldfld Verse.Pawn RimWorld.Pawn_ApparelTracker::pawn
IL_012C: call static Verse.BodyDef
AlienRace.HarmonyPatches::ReplacedBody(Verse.Pawn pawn)
IL_0131: call static System.Boolean
RimWorld.ApparelUtility::CanWearTogether(Verse.ThingDef A, Verse.ThingDef B,
Verse.BodyDef body)
IL_0136: brtrue => Label5
IL_013B: ldarg.2
IL_013C: brfalse => Label6
IL_0141: ldarg.0
IL_0142: ldfld Verse.Pawn RimWorld.Pawn_ApparelTracker::pawn
IL_0147: callvirt virtual RimWorld.Faction Verse.Thing::get_Faction()
IL_014C: brfalse => Label7
IL_0151: ldarg.0
IL_0152: ldfld Verse.Pawn RimWorld.Pawn_ApparelTracker::pawn
IL_0157: callvirt virtual RimWorld.Faction Verse.Thing::get_Faction()
IL_015C: call static RimWorld.Faction RimWorld.Faction::get_OfPlayer()
IL_0161: call static System.Boolean
RimWorld.FactionUtility::HostileTo(RimWorld.Faction fac, RimWorld.Faction other)
IL_0166: br => Label8
IL_016B: Label7
IL_016B: ldc.i4.0
IL_016C: Label8
IL_016C: stloc.3
IL_016D: ldarg.0
IL_016E: ldloc.2
IL_016F: ldloca.s 4 (RimWorld.Apparel)
IL_0171: ldarg.0
IL_0172: ldfld Verse.Pawn RimWorld.Pawn_ApparelTracker::pawn
IL_0177: callvirt Verse.IntVec3 Verse.Thing::get_PositionHeld()
IL_017C: ldloc.3
IL_017D: call System.Boolean
RimWorld.Pawn_ApparelTracker::TryDrop(RimWorld.Apparel ap, RimWorld.Apparel&
resultingAp, Verse.IntVec3 pos, System.Boolean forbid)
IL_0182: brtrue => Label9
IL_0187: ldarg.0
IL_0188: ldfld Verse.Pawn RimWorld.Pawn_ApparelTracker::pawn
IL_018D: ldstr " could not drop "
IL_0192: ldloc.2
IL_0193: call static System.String System.String::Concat(System.Object arg0,
System.Object arg1, System.Object arg2)
IL_0198: call static System.Void Verse.Log::Error(System.String text)
IL_019D: br => Label16
IL_01A2: Label6
IL_01A2: ldarg.0
IL_01A3: ldloc.2
IL_01A4: call System.Void
RimWorld.Pawn_ApparelTracker::Remove(RimWorld.Apparel ap)
IL_01A9: Label5
IL_01A9: Label9
IL_01A9: ldloc.1
IL_01AA: ldc.i4.1
IL_01AB: sub
IL_01AC: stloc.1
IL_01AD: Label4
IL_01AD: ldloc.1
IL_01AE: ldc.i4.0
IL_01AF: bge => Label10
IL_01B4: ldarg.1
IL_01B5: callvirt Verse.Pawn RimWorld.Apparel::get_Wearer()
IL_01BA: brfalse => Label11
IL_01BF: ldc.i4.6
IL_01C0: newarr System.Object
IL_01C5: dup
IL_01C6: ldc.i4.0
IL_01C7: ldarg.0
IL_01C8: ldfld Verse.Pawn RimWorld.Pawn_ApparelTracker::pawn
IL_01CD: stelem.ref
IL_01CE: dup
IL_01CF: ldc.i4.1
IL_01D0: ldstr " is trying to wear "
IL_01D5: stelem.ref
IL_01D6: dup
IL_01D7: ldc.i4.2
IL_01D8: ldarg.1
IL_01D9: stelem.ref
IL_01DA: dup
IL_01DB: ldc.i4.3
IL_01DC: ldstr " but this apparel already has a wearer ("
IL_01E1: stelem.ref
IL_01E2: dup
IL_01E3: ldc.i4.4
IL_01E4: ldarg.1
IL_01E5: callvirt Verse.Pawn RimWorld.Apparel::get_Wearer()
IL_01EA: stelem.ref
IL_01EB: dup
IL_01EC: ldc.i4.5
IL_01ED: ldstr "). This may or may not cause bugs."
IL_01F2: stelem.ref
IL_01F3: call static System.String System.String::Concat(System.Object[]
args)
IL_01F8: call static System.Void Verse.Log::Warning(System.String text)
IL_01FD: Label11
IL_01FD: ldarg.0
IL_01FE: ldfld Verse.ThingOwner`1<RimWorld.Apparel>
RimWorld.Pawn_ApparelTracker::wornApparel
IL_0203: ldarg.1
IL_0204: ldc.i4.0
IL_0205: callvirt abstract virtual System.Boolean
Verse.ThingOwner::TryAdd(Verse.Thing item, System.Boolean
canMergeWithExistingStacks)
IL_020A: pop
IL_020B: ldarg.3
IL_020C: brfalse => Label12
IL_0211: ldarg.0
IL_0212: ldarg.1
IL_0213: call System.Void RimWorld.Pawn_ApparelTracker::Lock(RimWorld.Apparel
apparel)
IL_0218: // end original
IL_0218: Label12
IL_0218: Label13
IL_0218: Label14
IL_0218: Label15
IL_0218: Label16
IL_0218: ldarg 1
IL_021C: ldarg.0
IL_021D: call static System.Void
VanillaApparelExpanded.ApparelTracker_Wear::Postfix(RimWorld.Apparel newApparel,
RimWorld.Pawn_ApparelTracker __instance)
IL_0222: ldarg.0
IL_0223: ldarg 1
IL_0227: ldarg 2
IL_022B: ldarg 3
IL_022F: call static System.Void
VFECore.Pawn_ApparelTracker_Wear_Patch::Postfix(RimWorld.Pawn_ApparelTracker
__instance, RimWorld.Apparel newApparel, System.Boolean dropReplacedApparel,
System.Boolean locked)
IL_0234: ret
DONE

### Patch: System.Boolean


RimWorld.Pawn_ApparelTracker::WouldReplaceLockedApparel(RimWorld.Apparel
newApparel)
### Replacement: static System.Boolean
RimWorld.Pawn_ApparelTracker::RimWorld.Pawn_ApparelTracker.WouldReplaceLockedAppare
l_Patch0(RimWorld.Pawn_ApparelTracker this, RimWorld.Apparel newApparel)
IL_0000: Local var 0: System.Int32
IL_0000: // start original
IL_0000: ldarg.0
IL_0001: call System.Boolean
RimWorld.Pawn_ApparelTracker::get_AnyApparelLocked()
IL_0006: brtrue => Label0
IL_000B: ldc.i4.0
IL_000C: br => Label4
IL_0011: Label0
IL_0011: ldc.i4.0
IL_0012: stloc.0
IL_0013: br => Label1
IL_0018: Label3
IL_0018: ldarg.1
IL_0019: ldfld Verse.ThingDef Verse.Thing::def
IL_001E: ldarg.0
IL_001F: ldfld System.Collections.Generic.List`1<RimWorld.Apparel>
RimWorld.Pawn_ApparelTracker::lockedApparel
IL_0024: ldloc.0
IL_0025: callvirt virtual RimWorld.Apparel
System.Collections.Generic.List`1<RimWorld.Apparel>::get_Item(System.Int32 index)
IL_002A: ldfld Verse.ThingDef Verse.Thing::def
IL_002F: ldarg.0
IL_0030: ldfld Verse.Pawn RimWorld.Pawn_ApparelTracker::pawn
IL_0035: call static Verse.BodyDef
AlienRace.HarmonyPatches::ReplacedBody(Verse.Pawn pawn)
IL_003A: call static System.Boolean
RimWorld.ApparelUtility::CanWearTogether(Verse.ThingDef A, Verse.ThingDef B,
Verse.BodyDef body)
IL_003F: brtrue => Label2
IL_0044: ldc.i4.1
IL_0045: br => Label5
IL_004A: Label2
IL_004A: ldloc.0
IL_004B: ldc.i4.1
IL_004C: add
IL_004D: stloc.0
IL_004E: Label1
IL_004E: ldloc.0
IL_004F: ldarg.0
IL_0050: ldfld System.Collections.Generic.List`1<RimWorld.Apparel>
RimWorld.Pawn_ApparelTracker::lockedApparel
IL_0055: callvirt virtual System.Int32
System.Collections.Generic.List`1<RimWorld.Apparel>::get_Count()
IL_005A: blt => Label3
IL_005F: ldc.i4.0
IL_0060: // end original
IL_0060: Label4
IL_0060: Label5
IL_0060: ret
DONE

### Patch: static RimWorld.Apparel


RimWorld.ApparelUtility::GetApparelReplacedByNewApparel(Verse.Pawn pawn,
RimWorld.Apparel newApparel)
### Replacement: static RimWorld.Apparel
RimWorld.ApparelUtility::RimWorld.ApparelUtility.GetApparelReplacedByNewApparel_Pat
ch0(Verse.Pawn pawn, RimWorld.Apparel newApparel)
IL_0000: Local var 0: System.Int32
IL_0000: // start original
IL_0000: ldc.i4.0
IL_0001: stloc.0
IL_0002: br => Label0
IL_0007: Label2
IL_0007: ldarg.1
IL_0008: ldfld Verse.ThingDef Verse.Thing::def
IL_000D: ldarg.0
IL_000E: ldfld RimWorld.Pawn_ApparelTracker Verse.Pawn::apparel
IL_0013: callvirt System.Collections.Generic.List`1<RimWorld.Apparel>
RimWorld.Pawn_ApparelTracker::get_WornApparel()
IL_0018: ldloc.0
IL_0019: callvirt virtual RimWorld.Apparel
System.Collections.Generic.List`1<RimWorld.Apparel>::get_Item(System.Int32 index)
IL_001E: ldfld Verse.ThingDef Verse.Thing::def
IL_0023: ldarg.0
IL_0024: call static Verse.BodyDef
AlienRace.HarmonyPatches::ReplacedBody(Verse.Pawn pawn)
IL_0029: call static System.Boolean
RimWorld.ApparelUtility::CanWearTogether(Verse.ThingDef A, Verse.ThingDef B,
Verse.BodyDef body)
IL_002E: brtrue => Label1
IL_0033: ldarg.0
IL_0034: ldfld RimWorld.Pawn_ApparelTracker Verse.Pawn::apparel
IL_0039: callvirt System.Collections.Generic.List`1<RimWorld.Apparel>
RimWorld.Pawn_ApparelTracker::get_WornApparel()
IL_003E: ldloc.0
IL_003F: callvirt virtual RimWorld.Apparel
System.Collections.Generic.List`1<RimWorld.Apparel>::get_Item(System.Int32 index)
IL_0044: br => Label3
IL_0049: Label1
IL_0049: ldloc.0
IL_004A: ldc.i4.1
IL_004B: add
IL_004C: stloc.0
IL_004D: Label0
IL_004D: ldloc.0
IL_004E: ldarg.0
IL_004F: ldfld RimWorld.Pawn_ApparelTracker Verse.Pawn::apparel
IL_0054: callvirt System.Collections.Generic.List`1<RimWorld.Apparel>
RimWorld.Pawn_ApparelTracker::get_WornApparel()
IL_0059: callvirt virtual System.Int32
System.Collections.Generic.List`1<RimWorld.Apparel>::get_Count()
IL_005E: blt => Label2
IL_0063: ldnull
IL_0064: // end original
IL_0064: Label3
IL_0064: ret
DONE

### Patch: virtual System.Void


RimWorld.PreceptComp_Apparel_Desired::Notify_MemberGenerated(Verse.Pawn pawn,
RimWorld.Precept precept, System.Boolean newborn)
### Replacement: static System.Void
RimWorld.PreceptComp_Apparel_Desired::RimWorld.PreceptComp_Apparel_Desired.Notify_M
emberGenerated_Patch0(RimWorld.PreceptComp_Apparel_Desired this, Verse.Pawn pawn,
RimWorld.Precept precept, System.Boolean newborn)
IL_0000: Local var 0: RimWorld.Precept_Apparel
IL_0000: Local var 1:
System.Collections.Generic.List`1/Enumerator<RimWorld.Apparel>
IL_0000: Local var 2: RimWorld.Apparel
IL_0000: // start original
IL_0000: ldarg.3
IL_0001: brtrue => Label0
IL_0006: ldarg.0
IL_0007: ldarg.1
IL_0008: ldarg.2
IL_0009: call System.Boolean
RimWorld.PreceptComp_Apparel::AppliesToPawn(Verse.Pawn pawn, RimWorld.Precept
precept)
IL_000E: brtrue => Label1
IL_0013: Label0
IL_0013: br => Label9
IL_0018: Label1
IL_0018: ldarg.2
IL_0019: castclass RimWorld.Precept_Apparel
IL_001E: stloc.0
IL_001F: ldarg.1
IL_0020: ldfld RimWorld.Pawn_ApparelTracker Verse.Pawn::apparel
IL_0025: callvirt System.Collections.Generic.List`1<RimWorld.Apparel>
RimWorld.Pawn_ApparelTracker::get_WornApparel()
IL_002A: callvirt System.Collections.Generic.Enumerator<RimWorld.Apparel>
System.Collections.Generic.List`1<RimWorld.Apparel>::GetEnumerator()
IL_002F: stloc.1
.try
{
IL_0030: br => Label2
IL_0035: Label7
IL_0035: ldloca.s 1
(System.Collections.Generic.List`1+Enumerator[RimWorld.Apparel])
IL_0037: call virtual RimWorld.Apparel
System.Collections.Generic.Enumerator<RimWorld.Apparel>::get_Current()
IL_003C: stloc.2
IL_003D: ldloc.2
IL_003E: ldfld Verse.ThingDef Verse.Thing::def
IL_0043: ldloc.0
IL_0044: ldfld Verse.ThingDef RimWorld.Precept_Apparel::apparelDef
IL_0049: ldarg.1
IL_004A: call static Verse.BodyDef
AlienRace.HarmonyPatches::ReplacedBody(Verse.Pawn pawn)
IL_004F: call static System.Boolean
RimWorld.ApparelUtility::CanWearTogether(Verse.ThingDef A, Verse.ThingDef B,
Verse.BodyDef body)
IL_0054: brtrue => Label3
IL_0059: ldloc.2
IL_005A: ldsfld Verse.ThingCategoryDef
RimWorld.ThingCategoryDefOf::ArmorHeadgear
IL_005F: call static System.Boolean
Verse.ThingUtility::HasThingCategory(Verse.Thing thing, Verse.ThingCategoryDef
thingCategory)
IL_0064: brtrue => Label4
IL_0069: ldloc.2
IL_006A: ldsfld Verse.ThingCategoryDef
RimWorld.ThingCategoryDefOf::ApparelArmor
IL_006F: call static System.Boolean
Verse.ThingUtility::HasThingCategory(Verse.Thing thing, Verse.ThingCategoryDef
thingCategory)
IL_0074: brfalse => Label5
IL_0079: Label4
IL_0079: leave => Label6
IL_007E: Label2
IL_007E: Label3
IL_007E: Label5
IL_007E: ldloca.s 1
(System.Collections.Generic.List`1+Enumerator[RimWorld.Apparel])
IL_0080: call virtual System.Boolean
System.Collections.Generic.Enumerator<RimWorld.Apparel>::MoveNext()
IL_0085: brtrue => Label7
IL_008A: leave => Label8
IL_008F: leave => (autogenerated)
} // end try
.finally
{
IL_0094: ldloca.s 1
(System.Collections.Generic.List`1+Enumerator[RimWorld.Apparel])
IL_0096: constrained.
System.Collections.Generic.List`1+Enumerator[RimWorld.Apparel]
IL_009C: callvirt abstract virtual System.Void
System.IDisposable::Dispose()
IL_00A1: endfinally
IL_00A2: leave => (autogenerated)
} // end handler
IL_00A3: Label8
IL_00A3: ldarg.0
IL_00A4: ldarg.1
IL_00A5: ldloc.0
IL_00A6: call System.Void
RimWorld.PreceptComp_Apparel::GiveApparelToPawn(Verse.Pawn pawn,
RimWorld.Precept_Apparel precept)
IL_00AB: // end original
IL_00AB: Label6
IL_00AB: Label9
IL_00AB: ret
DONE
### Patch: System.Void RimWorld.CompMechPowerCell::KillPowerProcessor()
### Replacement: static System.Void
RimWorld.CompMechPowerCell::RimWorld.CompMechPowerCell.KillPowerProcessor_Patch0(Ri
mWorld.CompMechPowerCell this)
IL_0000: Local var 0: Verse.Pawn
IL_0000: Local var 1: System.Collections.Generic.List`1<Verse.BodyPartRecord>
IL_0000: Local var 2: System.Int32
IL_0000: Local var 3: Verse.BodyPartRecord
IL_0000: Local var 4: System.Nullable`1<Verse.DamageInfo>
IL_0000: // start original
IL_0000: ldarg.0
IL_0001: ldfld Verse.ThingWithComps Verse.ThingComp::parent
IL_0006: castclass Verse.Pawn
IL_000B: stloc.0
IL_000C: ldloc.0
IL_000D: call static Verse.BodyDef
AlienRace.HarmonyPatches::ReplacedBody(Verse.Pawn pawn)
IL_0012: callvirt System.Collections.Generic.List`1<Verse.BodyPartRecord>
Verse.BodyDef::get_AllParts()
IL_0017: stloc.1
IL_0018: ldc.i4.0
IL_0019: stloc.2
IL_001A: br => Label0
IL_001F: Label2
IL_001F: ldloc.1
IL_0020: ldloc.2
IL_0021: callvirt virtual Verse.BodyPartRecord
System.Collections.Generic.List`1<Verse.BodyPartRecord>::get_Item(System.Int32
index)
IL_0026: stloc.3
IL_0027: ldloc.3
IL_0028: ldfld Verse.BodyPartDef Verse.BodyPartRecord::def
IL_002D: ldfld System.Collections.Generic.List`1<Verse.BodyPartTagDef>
Verse.BodyPartDef::tags
IL_0032: ldsfld Verse.BodyPartTagDef
RimWorld.BodyPartTagDefOf::BloodPumpingSource
IL_0037: callvirt virtual System.Boolean
System.Collections.Generic.List`1<Verse.BodyPartTagDef>::Contains(Verse.BodyPartTag
Def item)
IL_003C: brfalse => Label1
IL_0041: ldloc.0
IL_0042: ldfld Verse.Pawn_HealthTracker Verse.Pawn::health
IL_0047: ldsfld Verse.HediffDef RimWorld.HediffDefOf::MissingBodyPart
IL_004C: ldloc.3
IL_004D: ldloca.s 4 (System.Nullable`1[Verse.DamageInfo])
IL_004F: initobj System.Nullable`1[Verse.DamageInfo]
IL_0055: ldloc.s 4 (System.Nullable`1[Verse.DamageInfo])
IL_0057: ldnull
IL_0058: callvirt Verse.Hediff
Verse.Pawn_HealthTracker::AddHediff(Verse.HediffDef def, Verse.BodyPartRecord part,
System.Nullable`1<Verse.DamageInfo> dinfo, Verse.DamageResult result)
IL_005D: pop
IL_005E: Label1
IL_005E: ldloc.2
IL_005F: ldc.i4.1
IL_0060: add
IL_0061: stloc.2
IL_0062: Label0
IL_0062: ldloc.2
IL_0063: ldloc.1
IL_0064: callvirt virtual System.Int32
System.Collections.Generic.List`1<Verse.BodyPartRecord>::get_Count()
IL_0069: blt => Label2
IL_006E: ldloc.0
IL_006F: callvirt System.Boolean Verse.Pawn::get_Dead()
IL_0074: brtrue => Label3
IL_0079: ldloc.0
IL_007A: ldloca.s 4 (System.Nullable`1[Verse.DamageInfo])
IL_007C: initobj System.Nullable`1[Verse.DamageInfo]
IL_0082: ldloc.s 4 (System.Nullable`1[Verse.DamageInfo])
IL_0084: ldnull
IL_0085: callvirt virtual System.Void
Verse.Thing::Kill(System.Nullable`1<Verse.DamageInfo> dinfo, Verse.Hediff
exactCulprit)
IL_008A: // end original
IL_008A: Label3
IL_008A: ret
DONE

### Patch: virtual System.Void


RimWorld.CompTargetEffect_PsychicShock::DoEffectOn(Verse.Pawn user, Verse.Thing
target)
### Replacement: static System.Void
RimWorld.CompTargetEffect_PsychicShock::RimWorld.CompTargetEffect_PsychicShock.DoEf
fectOn_Patch0(RimWorld.CompTargetEffect_PsychicShock this, Verse.Pawn user,
Verse.Thing target)
IL_0000: Local var 0: Verse.Pawn
IL_0000: Local var 1: Verse.Hediff
IL_0000: Local var 2: Verse.BodyPartRecord
IL_0000: Local var 3: Verse.BattleLogEntry_ItemUsed
IL_0000: Local var 4: System.Nullable`1<Verse.DamageInfo>
IL_0000: // start original
IL_0000: ldarg.2
IL_0001: castclass Verse.Pawn
IL_0006: stloc.0
IL_0007: ldloc.0
IL_0008: callvirt System.Boolean Verse.Pawn::get_Dead()
IL_000D: brfalse => Label0
IL_0012: br => Label1
IL_0017: Label0
IL_0017: ldsfld Verse.HediffDef RimWorld.HediffDefOf::PsychicShock
IL_001C: ldloc.0
IL_001D: ldnull
IL_001E: call static Verse.Hediff
Verse.HediffMaker::MakeHediff(Verse.HediffDef def, Verse.Pawn pawn,
Verse.BodyPartRecord partRecord)
IL_0023: stloc.1
IL_0024: ldnull
IL_0025: stloc.2
IL_0026: ldloc.0
IL_0027: call static Verse.BodyDef
AlienRace.HarmonyPatches::ReplacedBody(Verse.Pawn pawn)
IL_002C: ldsfld Verse.BodyPartTagDef
RimWorld.BodyPartTagDefOf::ConsciousnessSource
IL_0031: callvirt System.Collections.Generic.List`1<Verse.BodyPartRecord>
Verse.BodyDef::GetPartsWithTag(Verse.BodyPartTagDef tag)
IL_0036: ldloca.s 2 (Verse.BodyPartRecord)
IL_0038: call static System.Boolean
Verse.GenCollection::TryRandomElement(System.Collections.Generic.IEnumerable`1<Vers
e.BodyPartRecord> source, Verse.BodyPartRecord& result)
IL_003D: pop
IL_003E: ldarg.1
IL_003F: ldarg.2
IL_0040: ldarg.0
IL_0041: ldfld Verse.ThingWithComps Verse.ThingComp::parent
IL_0046: ldfld Verse.ThingDef Verse.Thing::def
IL_004B: ldsfld Verse.RulePackDef RimWorld.RulePackDefOf::Event_ItemUsed
IL_0050: newobj System.Void Verse.BattleLogEntry_ItemUsed::.ctor(Verse.Pawn
caster, Verse.Thing target, Verse.ThingDef itemUsed, Verse.RulePackDef eventDef)
IL_0055: stloc.3
IL_0056: ldloc.1
IL_0057: ldloc.3
IL_0058: newobj System.Void
Verse.WeakReference`1<Verse.LogEntry>::.ctor(Verse.LogEntry target)
IL_005D: stfld Verse.WeakReference`1<Verse.LogEntry>
Verse.Hediff::combatLogEntry
IL_0062: ldloc.1
IL_0063: ldloc.3
IL_0064: ldnull
IL_0065: ldc.i4.0
IL_0066: callvirt System.String Verse.LogEntry::ToGameStringFromPOV(Verse.Thing
pov, System.Boolean forceLog)
IL_006B: stfld System.String Verse.Hediff::combatLogText
IL_0070: ldloc.0
IL_0071: ldfld Verse.Pawn_HealthTracker Verse.Pawn::health
IL_0076: ldloc.1
IL_0077: ldloc.2
IL_0078: ldloca.s 4 (System.Nullable`1[Verse.DamageInfo])
IL_007A: initobj System.Nullable`1[Verse.DamageInfo]
IL_0080: ldloc.s 4 (System.Nullable`1[Verse.DamageInfo])
IL_0082: ldnull
IL_0083: callvirt System.Void Verse.Pawn_HealthTracker::AddHediff(Verse.Hediff
hediff, Verse.BodyPartRecord part, System.Nullable`1<Verse.DamageInfo> dinfo,
Verse.DamageResult result)
IL_0088: call static Verse.BattleLog Verse.Find::get_BattleLog()
IL_008D: ldloc.3
IL_008E: callvirt System.Void Verse.BattleLog::Add(Verse.LogEntry entry)
IL_0093: // end original
IL_0093: Label1
IL_0093: ret
DONE

### Patch: virtual System.Void


RimWorld.CompUseEffect_InstallImplant::DoEffect(Verse.Pawn user)
### Replacement: static System.Void
RimWorld.CompUseEffect_InstallImplant::RimWorld.CompUseEffect_InstallImplant.DoEffe
ct_Patch0(RimWorld.CompUseEffect_InstallImplant this, Verse.Pawn user)
IL_0000: Local var 0: Verse.BodyPartRecord
IL_0000: Local var 1: Verse.Hediff
IL_0000: Local var 2: System.Nullable`1<Verse.DamageInfo>
IL_0000: // start original
IL_0000: ldarg.1
IL_0001: call static Verse.BodyDef
AlienRace.HarmonyPatches::ReplacedBody(Verse.Pawn pawn)
IL_0006: ldarg.0
IL_0007: call RimWorld.CompProperties_UseEffectInstallImplant
RimWorld.CompUseEffect_InstallImplant::get_Props()
IL_000C: ldfld Verse.BodyPartDef
RimWorld.CompProperties_UseEffectInstallImplant::bodyPart
IL_0011: callvirt System.Collections.Generic.List`1<Verse.BodyPartRecord>
Verse.BodyDef::GetPartsWithDef(Verse.BodyPartDef def)
IL_0016: ldnull
IL_0017: call static Verse.BodyPartRecord
Verse.GenCollection::FirstOrFallback(System.Collections.Generic.IEnumerable`1<Verse
.BodyPartRecord> source, Verse.BodyPartRecord fallback)
IL_001C: stloc.0
IL_001D: ldloc.0
IL_001E: brtrue => Label0
IL_0023: br => Label4
IL_0028: Label0
IL_0028: ldarg.1
IL_0029: ldfld Verse.Pawn_HealthTracker Verse.Pawn::health
IL_002E: ldfld Verse.HediffSet Verse.Pawn_HealthTracker::hediffSet
IL_0033: ldarg.0
IL_0034: call RimWorld.CompProperties_UseEffectInstallImplant
RimWorld.CompUseEffect_InstallImplant::get_Props()
IL_0039: ldfld Verse.HediffDef
RimWorld.CompProperties_UseEffectInstallImplant::hediffDef
IL_003E: ldc.i4.0
IL_003F: callvirt Verse.Hediff
Verse.HediffSet::GetFirstHediffOfDef(Verse.HediffDef def, System.Boolean
mustBeVisible)
IL_0044: stloc.1
IL_0045: ldloc.1
IL_0046: brtrue => Label1
IL_004B: ldarg.0
IL_004C: call RimWorld.CompProperties_UseEffectInstallImplant
RimWorld.CompUseEffect_InstallImplant::get_Props()
IL_0051: ldfld System.Boolean
RimWorld.CompProperties_UseEffectInstallImplant::requiresExistingHediff
IL_0056: brtrue => Label2
IL_005B: ldarg.1
IL_005C: ldfld Verse.Pawn_HealthTracker Verse.Pawn::health
IL_0061: ldarg.0
IL_0062: call RimWorld.CompProperties_UseEffectInstallImplant
RimWorld.CompUseEffect_InstallImplant::get_Props()
IL_0067: ldfld Verse.HediffDef
RimWorld.CompProperties_UseEffectInstallImplant::hediffDef
IL_006C: ldloc.0
IL_006D: ldloca.s 2 (System.Nullable`1[Verse.DamageInfo])
IL_006F: initobj System.Nullable`1[Verse.DamageInfo]
IL_0075: ldloc.2
IL_0076: ldnull
IL_0077: callvirt Verse.Hediff
Verse.Pawn_HealthTracker::AddHediff(Verse.HediffDef def, Verse.BodyPartRecord part,
System.Nullable`1<Verse.DamageInfo> dinfo, Verse.DamageResult result)
IL_007C: pop
IL_007D: br => Label5
IL_0082: Label1
IL_0082: Label2
IL_0082: ldarg.0
IL_0083: call RimWorld.CompProperties_UseEffectInstallImplant
RimWorld.CompUseEffect_InstallImplant::get_Props()
IL_0088: ldfld System.Boolean
RimWorld.CompProperties_UseEffectInstallImplant::canUpgrade
IL_008D: brfalse => Label3
IL_0092: ldloc.1
IL_0093: castclass Verse.Hediff_Level
IL_0098: ldc.i4.1
IL_0099: callvirt virtual System.Void
Verse.Hediff_Level::ChangeLevel(System.Int32 levelOffset)
IL_009E: // end original
IL_009E: Label3
IL_009E: Label4
IL_009E: Label5
IL_009E: ret
DONE

### Patch: virtual System.Boolean


RimWorld.CompUseEffect_InstallImplant::CanBeUsedBy(Verse.Pawn p, System.String&
failReason)
### Replacement: static System.Boolean
RimWorld.CompUseEffect_InstallImplant::RimWorld.CompUseEffect_InstallImplant.CanBeU
sedBy_Patch0(RimWorld.CompUseEffect_InstallImplant this, Verse.Pawn p,
System.String& failReason)
IL_0000: Local var 0: Verse.Hediff
IL_0000: Local var 1: Verse.Hediff_Level
IL_0000: // start original
IL_0000: ldarg.1
IL_0001: callvirt System.Boolean Verse.Pawn::get_IsFreeColonist()
IL_0006: brfalse => Label0
IL_000B: ldarg.1
IL_000C: ldnull
IL_000D: call static System.Boolean
RimWorld.QuestUtility::HasExtraHomeFaction(Verse.Pawn p, RimWorld.Quest forQuest)
IL_0012: brfalse => Label1
IL_0017: Label0
IL_0017: ldarg.0
IL_0018: call RimWorld.CompProperties_UseEffectInstallImplant
RimWorld.CompUseEffect_InstallImplant::get_Props()
IL_001D: ldfld System.Boolean
RimWorld.CompProperties_UseEffectInstallImplant::allowNonColonists
IL_0022: brtrue => Label2
IL_0027: ldarg.2
IL_0028: ldstr "InstallImplantNotAllowedForNonColonists"
IL_002D: call static Verse.TaggedString
Verse.Translator::Translate(System.String key)
IL_0032: call static System.String
Verse.TaggedString::op_Implicit(Verse.TaggedString taggedString)
IL_0037: stind.ref
IL_0038: ldc.i4.0
IL_0039: br => Label13
IL_003E: Label1
IL_003E: Label2
IL_003E: ldarg.1
IL_003F: call static Verse.BodyDef
AlienRace.HarmonyPatches::ReplacedBody(Verse.Pawn pawn)
IL_0044: ldarg.0
IL_0045: call RimWorld.CompProperties_UseEffectInstallImplant
RimWorld.CompUseEffect_InstallImplant::get_Props()
IL_004A: ldfld Verse.BodyPartDef
RimWorld.CompProperties_UseEffectInstallImplant::bodyPart
IL_004F: callvirt System.Collections.Generic.List`1<Verse.BodyPartRecord>
Verse.BodyDef::GetPartsWithDef(Verse.BodyPartDef def)
IL_0054: ldnull
IL_0055: call static Verse.BodyPartRecord
Verse.GenCollection::FirstOrFallback(System.Collections.Generic.IEnumerable`1<Verse
.BodyPartRecord> source, Verse.BodyPartRecord fallback)
IL_005A: brtrue => Label3
IL_005F: ldarg.2
IL_0060: ldstr "InstallImplantNoBodyPart"
IL_0065: call static Verse.TaggedString
Verse.Translator::Translate(System.String key)
IL_006A: ldstr ": "
IL_006F: call static Verse.TaggedString
Verse.TaggedString::op_Addition(Verse.TaggedString t1, System.String t2)
IL_0074: ldarg.0
IL_0075: call RimWorld.CompProperties_UseEffectInstallImplant
RimWorld.CompUseEffect_InstallImplant::get_Props()
IL_007A: ldfld Verse.BodyPartDef
RimWorld.CompProperties_UseEffectInstallImplant::bodyPart
IL_007F: callvirt System.String Verse.BodyPartDef::get_LabelShort()
IL_0084: call static Verse.TaggedString
Verse.TaggedString::op_Addition(Verse.TaggedString t1, System.String t2)
IL_0089: call static System.String
Verse.TaggedString::op_Implicit(Verse.TaggedString taggedString)
IL_008E: stind.ref
IL_008F: ldc.i4.0
IL_0090: br => Label14
IL_0095: Label3
IL_0095: ldarg.0
IL_0096: call RimWorld.CompProperties_UseEffectInstallImplant
RimWorld.CompUseEffect_InstallImplant::get_Props()
IL_009B: ldfld System.Boolean
RimWorld.CompProperties_UseEffectInstallImplant::requiresPsychicallySensitive
IL_00A0: brfalse => Label4
IL_00A5: ldarg.1
IL_00A6: ldfld RimWorld.Pawn_PsychicEntropyTracker Verse.Pawn::psychicEntropy
IL_00AB: callvirt System.Boolean
RimWorld.Pawn_PsychicEntropyTracker::get_IsPsychicallySensitive()
IL_00B0: brtrue => Label5
IL_00B5: ldarg.2
IL_00B6: ldstr "InstallImplantPsychicallyDeaf"
IL_00BB: call static Verse.TaggedString
Verse.Translator::Translate(System.String key)
IL_00C0: call static System.String
Verse.TaggedString::op_Implicit(Verse.TaggedString taggedString)
IL_00C5: stind.ref
IL_00C6: ldc.i4.0
IL_00C7: br => Label15
IL_00CC: Label4
IL_00CC: Label5
IL_00CC: ldarg.0
IL_00CD: ldarg.1
IL_00CE: call Verse.Hediff
RimWorld.CompUseEffect_InstallImplant::GetExistingImplant(Verse.Pawn p)
IL_00D3: stloc.0
IL_00D4: ldarg.0
IL_00D5: call RimWorld.CompProperties_UseEffectInstallImplant
RimWorld.CompUseEffect_InstallImplant::get_Props()
IL_00DA: ldfld System.Boolean
RimWorld.CompProperties_UseEffectInstallImplant::requiresExistingHediff
IL_00DF: brfalse => Label6
IL_00E4: ldloc.0
IL_00E5: brtrue => Label7
IL_00EA: ldarg.2
IL_00EB: ldstr "InstallImplantHediffRequired"
IL_00F0: ldarg.0
IL_00F1: call RimWorld.CompProperties_UseEffectInstallImplant
RimWorld.CompUseEffect_InstallImplant::get_Props()
IL_00F6: ldfld Verse.HediffDef
RimWorld.CompProperties_UseEffectInstallImplant::hediffDef
IL_00FB: ldfld System.String Verse.Def::label
IL_0100: call static Verse.NamedArgument
Verse.NamedArgument::op_Implicit(System.String value)
IL_0105: call static Verse.TaggedString
Verse.TranslatorFormattedStringExtensions::Translate(System.String key,
Verse.NamedArgument arg1)
IL_010A: call static System.String
Verse.TaggedString::op_Implicit(Verse.TaggedString taggedString)
IL_010F: stind.ref
IL_0110: ldc.i4.0
IL_0111: br => Label16
IL_0116: Label6
IL_0116: Label7
IL_0116: ldloc.0
IL_0117: brfalse => Label8
IL_011C: ldarg.0
IL_011D: call RimWorld.CompProperties_UseEffectInstallImplant
RimWorld.CompUseEffect_InstallImplant::get_Props()
IL_0122: ldfld System.Boolean
RimWorld.CompProperties_UseEffectInstallImplant::canUpgrade
IL_0127: brfalse => Label9
IL_012C: ldloc.0
IL_012D: castclass Verse.Hediff_Level
IL_0132: stloc.1
IL_0133: ldloc.1
IL_0134: ldfld System.Int32 Verse.Hediff_Level::level
IL_0139: conv.r4
IL_013A: ldloc.1
IL_013B: ldfld Verse.HediffDef Verse.Hediff::def
IL_0140: ldfld System.Single Verse.HediffDef::maxSeverity
IL_0145: blt.un => Label10
IL_014A: ldarg.2
IL_014B: ldstr "InstallImplantAlreadyMaxLevel"
IL_0150: call static Verse.TaggedString
Verse.Translator::Translate(System.String key)
IL_0155: call static System.String
Verse.TaggedString::op_Implicit(Verse.TaggedString taggedString)
IL_015A: stind.ref
IL_015B: ldc.i4.0
IL_015C: br => Label17
IL_0161: Label10
IL_0161: ldarg.0
IL_0162: call RimWorld.CompProperties_UseEffectInstallImplant
RimWorld.CompUseEffect_InstallImplant::get_Props()
IL_0167: ldfld System.Single
RimWorld.CompProperties_UseEffectInstallImplant::maxSeverity
IL_016C: ldloc.1
IL_016D: ldfld System.Int32 Verse.Hediff_Level::level
IL_0172: conv.r4
IL_0173: bgt.un => Label11
IL_0178: ldarg.2
IL_0179: ldstr "InstallImplantAlreadyMaxLevel"
IL_017E: call static Verse.TaggedString
Verse.Translator::Translate(System.String key)
IL_0183: ldstr " "
IL_0188: call static Verse.TaggedString
Verse.TaggedString::op_Addition(Verse.TaggedString t1, System.String t2)
IL_018D: call static System.String
Verse.TaggedString::op_Implicit(Verse.TaggedString taggedString)
IL_0192: ldarg.0
IL_0193: call RimWorld.CompProperties_UseEffectInstallImplant
RimWorld.CompUseEffect_InstallImplant::get_Props()
IL_0198: ldfld System.Single
RimWorld.CompProperties_UseEffectInstallImplant::maxSeverity
IL_019D: box System.Single
IL_01A2: call static System.String System.String::Concat(System.Object arg0,
System.Object arg1)
IL_01A7: stind.ref
IL_01A8: ldc.i4.0
IL_01A9: br => Label18
IL_01AE: Label11
IL_01AE: ldarg.0
IL_01AF: call RimWorld.CompProperties_UseEffectInstallImplant
RimWorld.CompUseEffect_InstallImplant::get_Props()
IL_01B4: ldfld System.Single
RimWorld.CompProperties_UseEffectInstallImplant::minSeverity
IL_01B9: ldloc.1
IL_01BA: ldfld System.Int32 Verse.Hediff_Level::level
IL_01BF: conv.r4
IL_01C0: ble.un => Label12
IL_01C5: ldarg.2
IL_01C6: ldstr "InstallImplantMinLevel"
IL_01CB: ldarg.0
IL_01CC: call RimWorld.CompProperties_UseEffectInstallImplant
RimWorld.CompUseEffect_InstallImplant::get_Props()
IL_01D1: ldfld System.Single
RimWorld.CompProperties_UseEffectInstallImplant::minSeverity
IL_01D6: call static Verse.NamedArgument
Verse.NamedArgument::op_Implicit(System.Single value)
IL_01DB: call static Verse.TaggedString
Verse.TranslatorFormattedStringExtensions::Translate(System.String key,
Verse.NamedArgument arg1)
IL_01E0: call static System.String
Verse.TaggedString::op_Implicit(Verse.TaggedString taggedString)
IL_01E5: stind.ref
IL_01E6: ldc.i4.0
IL_01E7: br => Label19
IL_01EC: Label9
IL_01EC: ldarg.2
IL_01ED: ldstr "InstallImplantAlreadyInstalled"
IL_01F2: call static Verse.TaggedString
Verse.Translator::Translate(System.String key)
IL_01F7: call static System.String
Verse.TaggedString::op_Implicit(Verse.TaggedString taggedString)
IL_01FC: stind.ref
IL_01FD: ldc.i4.0
IL_01FE: br => Label20
IL_0203: Label8
IL_0203: Label12
IL_0203: ldarg.2
IL_0204: ldnull
IL_0205: stind.ref
IL_0206: ldc.i4.1
IL_0207: // end original
IL_0207: Label13
IL_0207: Label14
IL_0207: Label15
IL_0207: Label16
IL_0207: Label17
IL_0207: Label18
IL_0207: Label19
IL_0207: Label20
IL_0207: ret
DONE

### Patch: Verse.Hediff


RimWorld.CompUseEffect_InstallImplant::GetExistingImplant(Verse.Pawn p)
### Replacement: static Verse.Hediff
RimWorld.CompUseEffect_InstallImplant::RimWorld.CompUseEffect_InstallImplant.GetExi
stingImplant_Patch0(RimWorld.CompUseEffect_InstallImplant this, Verse.Pawn p)
IL_0000: Local var 0: System.Int32
IL_0000: Local var 1: Verse.Hediff
IL_0000: // start original
IL_0000: ldc.i4.0
IL_0001: stloc.0
IL_0002: br => Label0
IL_0007: Label3
IL_0007: ldarg.1
IL_0008: ldfld Verse.Pawn_HealthTracker Verse.Pawn::health
IL_000D: ldfld Verse.HediffSet Verse.Pawn_HealthTracker::hediffSet
IL_0012: ldfld System.Collections.Generic.List`1<Verse.Hediff>
Verse.HediffSet::hediffs
IL_0017: ldloc.0
IL_0018: callvirt virtual Verse.Hediff
System.Collections.Generic.List`1<Verse.Hediff>::get_Item(System.Int32 index)
IL_001D: stloc.1
IL_001E: ldloc.1
IL_001F: ldfld Verse.HediffDef Verse.Hediff::def
IL_0024: ldarg.0
IL_0025: call RimWorld.CompProperties_UseEffectInstallImplant
RimWorld.CompUseEffect_InstallImplant::get_Props()
IL_002A: ldfld Verse.HediffDef
RimWorld.CompProperties_UseEffectInstallImplant::hediffDef
IL_002F: bne.un => Label1
IL_0034: ldloc.1
IL_0035: callvirt Verse.BodyPartRecord Verse.Hediff::get_Part()
IL_003A: ldarg.1
IL_003B: call static Verse.BodyDef
AlienRace.HarmonyPatches::ReplacedBody(Verse.Pawn pawn)
IL_0040: ldarg.0
IL_0041: call RimWorld.CompProperties_UseEffectInstallImplant
RimWorld.CompUseEffect_InstallImplant::get_Props()
IL_0046: ldfld Verse.BodyPartDef
RimWorld.CompProperties_UseEffectInstallImplant::bodyPart
IL_004B: callvirt System.Collections.Generic.List`1<Verse.BodyPartRecord>
Verse.BodyDef::GetPartsWithDef(Verse.BodyPartDef def)
IL_0050: ldnull
IL_0051: call static Verse.BodyPartRecord
Verse.GenCollection::FirstOrFallback(System.Collections.Generic.IEnumerable`1<Verse
.BodyPartRecord> source, Verse.BodyPartRecord fallback)
IL_0056: bne.un => Label2
IL_005B: ldloc.1
IL_005C: br => Label4
IL_0061: Label1
IL_0061: Label2
IL_0061: ldloc.0
IL_0062: ldc.i4.1
IL_0063: add
IL_0064: stloc.0
IL_0065: Label0
IL_0065: ldloc.0
IL_0066: ldarg.1
IL_0067: ldfld Verse.Pawn_HealthTracker Verse.Pawn::health
IL_006C: ldfld Verse.HediffSet Verse.Pawn_HealthTracker::hediffSet
IL_0071: ldfld System.Collections.Generic.List`1<Verse.Hediff>
Verse.HediffSet::hediffs
IL_0076: callvirt virtual System.Int32
System.Collections.Generic.List`1<Verse.Hediff>::get_Count()
IL_007B: blt => Label3
IL_0080: ldnull
IL_0081: // end original
IL_0081: Label4
IL_0081: ret
DONE

### Patch: virtual Verse.TaggedString


RimWorld.Alert_LifeThreateningHediff::GetExplanation()
### Replacement: static Verse.TaggedString
RimWorld.Alert_LifeThreateningHediff::RimWorld.Alert_LifeThreateningHediff.GetExpla
nation_Patch0(RimWorld.Alert_LifeThreateningHediff this)
IL_0000: Local var 0: System.Text.StringBuilder
IL_0000: Local var 1: System.Boolean
IL_0000: Local var 2: System.Collections.Generic.List`1/Enumerator<Verse.Pawn>
IL_0000: Local var 3: Verse.Pawn
IL_0000: Local var 4: Verse.TaggedString
IL_0000: Local var 5: System.Collections.Generic.List`1/Enumerator<Verse.Hediff>
IL_0000: Local var 6: Verse.Hediff
IL_0000: // start original
IL_0000: newobj System.Void System.Text.StringBuilder::.ctor()
IL_0005: stloc.0
IL_0006: ldc.i4.0
IL_0007: stloc.1
IL_0008: ldarg.0
IL_0009: call System.Collections.Generic.List`1<Verse.Pawn>
RimWorld.Alert_LifeThreateningHediff::get_SickPawns()
IL_000E: callvirt System.Collections.Generic.Enumerator<Verse.Pawn>
System.Collections.Generic.List`1<Verse.Pawn>::GetEnumerator()
IL_0013: stloc.2
.try
{
IL_0014: br => Label0
IL_0019: Label9
IL_0019: ldloca.s 2
(System.Collections.Generic.List`1+Enumerator[Verse.Pawn])
IL_001B: call virtual Verse.Pawn
System.Collections.Generic.Enumerator<Verse.Pawn>::get_Current()
IL_0020: stloc.3
IL_0021: ldloc.0
IL_0022: ldstr " - "
IL_0027: ldloc.3
IL_0028: callvirt Verse.TaggedString Verse.Pawn::get_NameShortColored()
IL_002D: stloc.s 4 (Verse.TaggedString)
IL_002F: ldloca.s 4 (Verse.TaggedString)
IL_0031: call System.String Verse.TaggedString::Resolve()
IL_0036: call static System.String System.String::Concat(System.String
str0, System.String str1)
IL_003B: callvirt System.Text.StringBuilder
System.Text.StringBuilder::AppendLine(System.String value)
IL_0040: pop
IL_0041: ldloc.3
IL_0042: ldfld Verse.Pawn_HealthTracker Verse.Pawn::health
IL_0047: ldfld Verse.HediffSet Verse.Pawn_HealthTracker::hediffSet
IL_004C: ldfld System.Collections.Generic.List`1<Verse.Hediff>
Verse.HediffSet::hediffs
IL_0051: callvirt System.Collections.Generic.Enumerator<Verse.Hediff>
System.Collections.Generic.List`1<Verse.Hediff>::GetEnumerator()
IL_0056: stloc.s 5
(System.Collections.Generic.List`1+Enumerator[Verse.Hediff])
.try
{
IL_0058: br => Label1
IL_005D: Label7
IL_005D: ldloca.s 5
(System.Collections.Generic.List`1+Enumerator[Verse.Hediff])
IL_005F: call virtual Verse.Hediff
System.Collections.Generic.Enumerator<Verse.Hediff>::get_Current()
IL_0064: stloc.s 6 (Verse.Hediff)
IL_0066: ldloc.s 6 (Verse.Hediff)
IL_0068: callvirt virtual Verse.HediffStage
Verse.Hediff::get_CurStage()
IL_006D: brfalse => Label2
IL_0072: ldloc.s 6 (Verse.Hediff)
IL_0074: callvirt virtual Verse.HediffStage
Verse.Hediff::get_CurStage()
IL_0079: ldfld System.Boolean Verse.HediffStage::lifeThreatening
IL_007E: brfalse => Label3
IL_0083: ldloc.s 6 (Verse.Hediff)
IL_0085: callvirt Verse.BodyPartRecord Verse.Hediff::get_Part()
IL_008A: brfalse => Label4
IL_008F: ldloc.s 6 (Verse.Hediff)
IL_0091: callvirt Verse.BodyPartRecord Verse.Hediff::get_Part()
IL_0096: ldloc.3
IL_0097: call static Verse.BodyDef
AlienRace.HarmonyPatches::ReplacedBody(Verse.Pawn pawn)
IL_009C: ldfld Verse.BodyPartRecord Verse.BodyDef::corePart
IL_00A1: beq => Label5
IL_00A6: ldc.i4.1
IL_00A7: stloc.1
IL_00A8: leave => Label6
IL_00AD: Label1
IL_00AD: Label2
IL_00AD: Label3
IL_00AD: Label4
IL_00AD: Label5
IL_00AD: ldloca.s 5
(System.Collections.Generic.List`1+Enumerator[Verse.Hediff])
IL_00AF: call virtual System.Boolean
System.Collections.Generic.Enumerator<Verse.Hediff>::MoveNext()
IL_00B4: brtrue => Label7
IL_00B9: leave => Label8
IL_00BE: leave => (autogenerated)
} // end try
.finally
{
IL_00C3: ldloca.s 5
(System.Collections.Generic.List`1+Enumerator[Verse.Hediff])
IL_00C5: constrained.
System.Collections.Generic.List`1+Enumerator[Verse.Hediff]
IL_00CB: callvirt abstract virtual System.Void
System.IDisposable::Dispose()
IL_00D0: endfinally
IL_00D1: leave => (autogenerated)
} // end handler
IL_00D2: Label0
IL_00D2: Label6
IL_00D2: Label8
IL_00D2: ldloca.s 2
(System.Collections.Generic.List`1+Enumerator[Verse.Pawn])
IL_00D4: call virtual System.Boolean
System.Collections.Generic.Enumerator<Verse.Pawn>::MoveNext()
IL_00D9: brtrue => Label9
IL_00DE: leave => Label10
IL_00E3: leave => (autogenerated)
} // end try
.finally
{
IL_00E8: ldloca.s 2
(System.Collections.Generic.List`1+Enumerator[Verse.Pawn])
IL_00EA: constrained.
System.Collections.Generic.List`1+Enumerator[Verse.Pawn]
IL_00F0: callvirt abstract virtual System.Void
System.IDisposable::Dispose()
IL_00F5: endfinally
IL_00F6: leave => (autogenerated)
} // end handler
IL_00F7: Label10
IL_00F7: ldloc.1
IL_00F8: brfalse => Label11
IL_00FD: ldstr "PawnsWithLifeThreateningDiseaseAmputationDesc"
IL_0102: ldloc.0
IL_0103: callvirt virtual System.String System.Object::ToString()
IL_0108: call static Verse.NamedArgument
Verse.NamedArgument::op_Implicit(System.String value)
IL_010D: call static Verse.TaggedString
Verse.TranslatorFormattedStringExtensions::Translate(System.String key,
Verse.NamedArgument arg1)
IL_0112: br => Label20
IL_0117: Label11
IL_0117: ldstr "PawnsWithLifeThreateningDiseaseDesc"
IL_011C: ldloc.0
IL_011D: callvirt virtual System.String System.Object::ToString()
IL_0122: call static Verse.NamedArgument
Verse.NamedArgument::op_Implicit(System.String value)
IL_0127: call static Verse.TaggedString
Verse.TranslatorFormattedStringExtensions::Translate(System.String key,
Verse.NamedArgument arg1)
IL_012C: // end original
IL_012C: Label20
IL_012C: ret
DONE

### Patch: System.Boolean


RimWorld.Alert_MechMissingBodyPart::HasMissingBodyPart(Verse.Pawn pawn)
### Replacement: static System.Boolean
RimWorld.Alert_MechMissingBodyPart::RimWorld.Alert_MechMissingBodyPart.HasMissingBo
dyPart_Patch0(RimWorld.Alert_MechMissingBodyPart this, Verse.Pawn pawn)
IL_0000: Local var 0: System.Collections.Generic.List`1<Verse.BodyPartRecord>
IL_0000: Local var 1: System.Collections.Generic.List`1<Verse.Hediff>
IL_0000: Local var 2: System.Int32
IL_0000: Local var 3: Verse.Hediff_MissingPart
IL_0000: // start original
IL_0000: ldarg.1
IL_0001: call static Verse.BodyDef
AlienRace.HarmonyPatches::ReplacedBody(Verse.Pawn pawn)
IL_0006: callvirt System.Collections.Generic.List`1<Verse.BodyPartRecord>
Verse.BodyDef::get_AllParts()
IL_000B: stloc.0
IL_000C: ldarg.1
IL_000D: ldfld Verse.Pawn_HealthTracker Verse.Pawn::health
IL_0012: ldfld Verse.HediffSet Verse.Pawn_HealthTracker::hediffSet
IL_0017: ldfld System.Collections.Generic.List`1<Verse.Hediff>
Verse.HediffSet::hediffs
IL_001C: stloc.1
IL_001D: ldc.i4.0
IL_001E: stloc.2
IL_001F: br => Label0
IL_0024: Label4
IL_0024: ldloc.1
IL_0025: ldloc.2
IL_0026: callvirt virtual Verse.Hediff
System.Collections.Generic.List`1<Verse.Hediff>::get_Item(System.Int32 index)
IL_002B: isinst Verse.Hediff_MissingPart
IL_0030: dup
IL_0031: stloc.3
IL_0032: brfalse => Label1
IL_0037: ldloc.1
IL_0038: ldloc.2
IL_0039: callvirt virtual Verse.Hediff
System.Collections.Generic.List`1<Verse.Hediff>::get_Item(System.Int32 index)
IL_003E: ldfld System.Int32 Verse.Hediff::ageTicks
IL_0043: ldc.i4 240000
IL_0048: ble => Label2
IL_004D: ldloc.0
IL_004E: ldloc.3
IL_004F: callvirt Verse.BodyPartRecord Verse.Hediff::get_Part()
IL_0054: callvirt virtual System.Boolean
System.Collections.Generic.List`1<Verse.BodyPartRecord>::Contains(Verse.BodyPartRec
ord item)
IL_0059: brfalse => Label3
IL_005E: ldc.i4.1
IL_005F: br => Label5
IL_0064: Label1
IL_0064: Label2
IL_0064: Label3
IL_0064: ldloc.2
IL_0065: ldc.i4.1
IL_0066: add
IL_0067: stloc.2
IL_0068: Label0
IL_0068: ldloc.2
IL_0069: ldloc.1
IL_006A: callvirt virtual System.Int32
System.Collections.Generic.List`1<Verse.Hediff>::get_Count()
IL_006F: blt => Label4
IL_0074: ldc.i4.0
IL_0075: // end original
IL_0075: Label5
IL_0075: ret
DONE

### Patch: System.Void RimWorld.<>c__DisplayClass43_0::<DoDebugOptions>b__3()


### Replacement: static System.Void
RimWorld.HealthCardUtility+<>c__DisplayClass43_0::RimWorld.HealthCardUtility+c__Dis
playClass43_0.<DoDebugOptions>b__3_Patch0(RimWorld.<>c__DisplayClass43_0 this)
IL_0000: Local var 0: RimWorld.HealthCardUtility/<>c__DisplayClass43_1
IL_0000: Local var 1: System.Func`2<Verse.BodyPartRecord,System.String>
IL_0000: // start original
IL_0000: newobj System.Void RimWorld.<>c__DisplayClass43_1::.ctor()
IL_0005: stloc.0
IL_0006: ldloc.0
IL_0007: ldarg.0
IL_0008: stfld RimWorld.<>c__DisplayClass43_0
RimWorld.<>c__DisplayClass43_1::CS$<>8__locals1
IL_000D: ldloc.0
IL_000E: ldsfld RimWorld.StatDef RimWorld.StatDefOf::Nutrition
IL_0013: callvirt RimWorld.StatWorker RimWorld.StatDef::get_Worker()
IL_0018: ldarg.0
IL_0019: ldfld Verse.Pawn RimWorld.<>c__DisplayClass43_0::pawn
IL_001E: callvirt Verse.RaceProperties Verse.Pawn::get_RaceProps()
IL_0023: ldfld Verse.ThingDef Verse.RaceProperties::corpseDef
IL_0028: ldnull
IL_0029: callvirt System.Single
RimWorld.StatWorker::GetValueAbstract(Verse.BuildableDef def, Verse.ThingDef
stuffDef)
IL_002E: stfld System.Single
RimWorld.<>c__DisplayClass43_1::totalCorpseNutrition
IL_0033: ldarg.0
IL_0034: ldfld Verse.Pawn RimWorld.<>c__DisplayClass43_0::pawn
IL_0039: call static Verse.BodyDef
AlienRace.HarmonyPatches::ReplacedBody(Verse.Pawn pawn)
IL_003E: callvirt System.Collections.Generic.List`1<Verse.BodyPartRecord>
Verse.BodyDef::get_AllParts()
IL_0043: ldc.i4.s 10
IL_0045: newarr Verse.TableDataGetter`1[Verse.BodyPartRecord]
IL_004A: dup
IL_004B: ldc.i4.0
IL_004C: ldstr "defName"
IL_0051: ldsfld System.Func`2<Verse.BodyPartRecord, System.String>
RimWorld.<>c::<>9__43_7
IL_0056: dup
IL_0057: brtrue => Label0
IL_005C: pop
IL_005D: ldsfld RimWorld.<>c RimWorld.<>c::<>9
IL_0062: ldftn System.String
RimWorld.<>c::<DoDebugOptions>b__43_7(Verse.BodyPartRecord b)
IL_0068: newobj System.Void System.Func`2<Verse.BodyPartRecord,
System.String>::.ctor(System.Object object, System.IntPtr method)
IL_006D: dup
IL_006E: stsfld System.Func`2<Verse.BodyPartRecord, System.String>
RimWorld.<>c::<>9__43_7
IL_0073: Label0
IL_0073: newobj System.Void
Verse.TableDataGetter`1<Verse.BodyPartRecord>::.ctor(System.String label,
System.Func`2<Verse.BodyPartRecord, System.String> getter)
IL_0078: stelem.ref
IL_0079: dup
IL_007A: ldc.i4.1
IL_007B: ldstr "Coverage"
IL_0080: ldarg.0
IL_0081: ldfld System.Func`2<Verse.BodyPartRecord, System.String>
RimWorld.<>c__DisplayClass43_0::<>9__8
IL_0086: dup
IL_0087: brtrue => Label1
IL_008C: pop
IL_008D: ldarg.0
IL_008E: ldarg.0
IL_008F: ldftn System.String
RimWorld.<>c__DisplayClass43_0::<DoDebugOptions>b__8(Verse.BodyPartRecord b)
IL_0095: newobj System.Void System.Func`2<Verse.BodyPartRecord,
System.String>::.ctor(System.Object object, System.IntPtr method)
IL_009A: dup
IL_009B: stloc.1
IL_009C: stfld System.Func`2<Verse.BodyPartRecord, System.String>
RimWorld.<>c__DisplayClass43_0::<>9__8
IL_00A1: ldloc.1
IL_00A2: Label1
IL_00A2: newobj System.Void
Verse.TableDataGetter`1<Verse.BodyPartRecord>::.ctor(System.String label,
System.Func`2<Verse.BodyPartRecord, System.String> getter)
IL_00A7: stelem.ref
IL_00A8: dup
IL_00A9: ldc.i4.2
IL_00AA: ldstr "Hit chance\n(this or any child)"
IL_00AF: ldsfld System.Func`2<Verse.BodyPartRecord, System.String>
RimWorld.<>c::<>9__43_9
IL_00B4: dup
IL_00B5: brtrue => Label2
IL_00BA: pop
IL_00BB: ldsfld RimWorld.<>c RimWorld.<>c::<>9
IL_00C0: ldftn System.String
RimWorld.<>c::<DoDebugOptions>b__43_9(Verse.BodyPartRecord b)
IL_00C6: newobj System.Void System.Func`2<Verse.BodyPartRecord,
System.String>::.ctor(System.Object object, System.IntPtr method)
IL_00CB: dup
IL_00CC: stsfld System.Func`2<Verse.BodyPartRecord, System.String>
RimWorld.<>c::<>9__43_9
IL_00D1: Label2
IL_00D1: newobj System.Void
Verse.TableDataGetter`1<Verse.BodyPartRecord>::.ctor(System.String label,
System.Func`2<Verse.BodyPartRecord, System.String> getter)
IL_00D6: stelem.ref
IL_00D7: dup
IL_00D8: ldc.i4.3
IL_00D9: ldstr "Hit chance\n(this part)"
IL_00DE: ldsfld System.Func`2<Verse.BodyPartRecord, System.String>
RimWorld.<>c::<>9__43_10
IL_00E3: dup
IL_00E4: brtrue => Label3
IL_00E9: pop
IL_00EA: ldsfld RimWorld.<>c RimWorld.<>c::<>9
IL_00EF: ldftn System.String
RimWorld.<>c::<DoDebugOptions>b__43_10(Verse.BodyPartRecord b)
IL_00F5: newobj System.Void System.Func`2<Verse.BodyPartRecord,
System.String>::.ctor(System.Object object, System.IntPtr method)
IL_00FA: dup
IL_00FB: stsfld System.Func`2<Verse.BodyPartRecord, System.String>
RimWorld.<>c::<>9__43_10
IL_0100: Label3
IL_0100: newobj System.Void
Verse.TableDataGetter`1<Verse.BodyPartRecord>::.ctor(System.String label,
System.Func`2<Verse.BodyPartRecord, System.String> getter)
IL_0105: stelem.ref
IL_0106: dup
IL_0107: ldc.i4.4
IL_0108: ldstr "Efficiency"
IL_010D: ldarg.0
IL_010E: ldfld System.Func`2<Verse.BodyPartRecord, System.String>
RimWorld.<>c__DisplayClass43_0::<>9__11
IL_0113: dup
IL_0114: brtrue => Label4
IL_0119: pop
IL_011A: ldarg.0
IL_011B: ldarg.0
IL_011C: ldftn System.String
RimWorld.<>c__DisplayClass43_0::<DoDebugOptions>b__11(Verse.BodyPartRecord b)
IL_0122: newobj System.Void System.Func`2<Verse.BodyPartRecord,
System.String>::.ctor(System.Object object, System.IntPtr method)
IL_0127: dup
IL_0128: stloc.1
IL_0129: stfld System.Func`2<Verse.BodyPartRecord, System.String>
RimWorld.<>c__DisplayClass43_0::<>9__11
IL_012E: ldloc.1
IL_012F: Label4
IL_012F: newobj System.Void
Verse.TableDataGetter`1<Verse.BodyPartRecord>::.ctor(System.String label,
System.Func`2<Verse.BodyPartRecord, System.String> getter)
IL_0134: stelem.ref
IL_0135: dup
IL_0136: ldc.i4.5
IL_0137: ldstr "Nutrition"
IL_013C: ldloc.0
IL_013D: ldftn System.Single
RimWorld.<>c__DisplayClass43_1::<DoDebugOptions>b__12(Verse.BodyPartRecord b)
IL_0143: newobj System.Void System.Func`2<Verse.BodyPartRecord,
System.Single>::.ctor(System.Object object, System.IntPtr method)
IL_0148: newobj System.Void
Verse.TableDataGetter`1<Verse.BodyPartRecord>::.ctor(System.String label,
System.Func`2<Verse.BodyPartRecord, System.Single> getter)
IL_014D: stelem.ref
IL_014E: dup
IL_014F: ldc.i4.6
IL_0150: ldstr "Solid"
IL_0155: ldarg.0
IL_0156: ldfld System.Func`2<Verse.BodyPartRecord, System.String>
RimWorld.<>c__DisplayClass43_0::<>9__13
IL_015B: dup
IL_015C: brtrue => Label5
IL_0161: pop
IL_0162: ldarg.0
IL_0163: ldarg.0
IL_0164: ldftn System.String
RimWorld.<>c__DisplayClass43_0::<DoDebugOptions>b__13(Verse.BodyPartRecord b)
IL_016A: newobj System.Void System.Func`2<Verse.BodyPartRecord,
System.String>::.ctor(System.Object object, System.IntPtr method)
IL_016F: dup
IL_0170: stloc.1
IL_0171: stfld System.Func`2<Verse.BodyPartRecord, System.String>
RimWorld.<>c__DisplayClass43_0::<>9__13
IL_0176: ldloc.1
IL_0177: Label5
IL_0177: newobj System.Void
Verse.TableDataGetter`1<Verse.BodyPartRecord>::.ctor(System.String label,
System.Func`2<Verse.BodyPartRecord, System.String> getter)
IL_017C: stelem.ref
IL_017D: dup
IL_017E: ldc.i4.7
IL_017F: ldstr "Skin covered"
IL_0184: ldarg.0
IL_0185: ldfld System.Func`2<Verse.BodyPartRecord, System.String>
RimWorld.<>c__DisplayClass43_0::<>9__14
IL_018A: dup
IL_018B: brtrue => Label6
IL_0190: pop
IL_0191: ldarg.0
IL_0192: ldarg.0
IL_0193: ldftn System.String
RimWorld.<>c__DisplayClass43_0::<DoDebugOptions>b__14(Verse.BodyPartRecord b)
IL_0199: newobj System.Void System.Func`2<Verse.BodyPartRecord,
System.String>::.ctor(System.Object object, System.IntPtr method)
IL_019E: dup
IL_019F: stloc.1
IL_01A0: stfld System.Func`2<Verse.BodyPartRecord, System.String>
RimWorld.<>c__DisplayClass43_0::<>9__14
IL_01A5: ldloc.1
IL_01A6: Label6
IL_01A6: newobj System.Void
Verse.TableDataGetter`1<Verse.BodyPartRecord>::.ctor(System.String label,
System.Func`2<Verse.BodyPartRecord, System.String> getter)
IL_01AB: stelem.ref
IL_01AC: dup
IL_01AD: ldc.i4.8
IL_01AE: ldstr "Is missing"
IL_01B3: ldarg.0
IL_01B4: ldfld System.Func`2<Verse.BodyPartRecord, System.String>
RimWorld.<>c__DisplayClass43_0::<>9__15
IL_01B9: dup
IL_01BA: brtrue => Label7
IL_01BF: pop
IL_01C0: ldarg.0
IL_01C1: ldarg.0
IL_01C2: ldftn System.String
RimWorld.<>c__DisplayClass43_0::<DoDebugOptions>b__15(Verse.BodyPartRecord b)
IL_01C8: newobj System.Void System.Func`2<Verse.BodyPartRecord,
System.String>::.ctor(System.Object object, System.IntPtr method)
IL_01CD: dup
IL_01CE: stloc.1
IL_01CF: stfld System.Func`2<Verse.BodyPartRecord, System.String>
RimWorld.<>c__DisplayClass43_0::<>9__15
IL_01D4: ldloc.1
IL_01D5: Label7
IL_01D5: newobj System.Void
Verse.TableDataGetter`1<Verse.BodyPartRecord>::.ctor(System.String label,
System.Func`2<Verse.BodyPartRecord, System.String> getter)
IL_01DA: stelem.ref
IL_01DB: dup
IL_01DC: ldc.i4.s 9
IL_01DE: ldstr "Is missing parts"
IL_01E3: ldarg.0
IL_01E4: ldfld System.Func`2<Verse.BodyPartRecord, System.String>
RimWorld.<>c__DisplayClass43_0::<>9__16
IL_01E9: dup
IL_01EA: brtrue => Label8
IL_01EF: pop
IL_01F0: ldarg.0
IL_01F1: ldarg.0
IL_01F2: ldftn System.String
RimWorld.<>c__DisplayClass43_0::<DoDebugOptions>b__16(Verse.BodyPartRecord b)
IL_01F8: newobj System.Void System.Func`2<Verse.BodyPartRecord,
System.String>::.ctor(System.Object object, System.IntPtr method)
IL_01FD: dup
IL_01FE: stloc.1
IL_01FF: stfld System.Func`2<Verse.BodyPartRecord, System.String>
RimWorld.<>c__DisplayClass43_0::<>9__16
IL_0204: ldloc.1
IL_0205: Label8
IL_0205: newobj System.Void
Verse.TableDataGetter`1<Verse.BodyPartRecord>::.ctor(System.String label,
System.Func`2<Verse.BodyPartRecord, System.String> getter)
IL_020A: stelem.ref
IL_020B: call static System.Void
Verse.DebugTables::MakeTablesDialog(System.Collections.Generic.IEnumerable`1<Verse.
BodyPartRecord> dataSources, Verse.TableDataGetter`1[] getters)
IL_0210: // end original
IL_0210: ret
DONE

### Patch: System.Boolean


RimWorld.<>c__DisplayClass43_0::<DoDebugOptions>b__17(Verse.BodyPartGroupDef x)
### Replacement: static System.Boolean
RimWorld.HealthCardUtility+<>c__DisplayClass43_0::RimWorld.HealthCardUtility+c__Dis
playClass43_0.<DoDebugOptions>b__17_Patch0(RimWorld.<>c__DisplayClass43_0 this,
Verse.BodyPartGroupDef x)
IL_0000: Local var 0: RimWorld.HealthCardUtility/<>c__DisplayClass43_2
IL_0000: // start original
IL_0000: newobj System.Void RimWorld.<>c__DisplayClass43_2::.ctor()
IL_0005: stloc.0
IL_0006: ldloc.0
IL_0007: ldarg.1
IL_0008: stfld Verse.BodyPartGroupDef RimWorld.<>c__DisplayClass43_2::x
IL_000D: ldarg.0
IL_000E: ldfld Verse.Pawn RimWorld.<>c__DisplayClass43_0::pawn
IL_0013: call static Verse.BodyDef
AlienRace.HarmonyPatches::ReplacedBody(Verse.Pawn pawn)
IL_0018: callvirt System.Collections.Generic.List`1<Verse.BodyPartRecord>
Verse.BodyDef::get_AllParts()
IL_001D: ldloc.0
IL_001E: ldftn System.Boolean
RimWorld.<>c__DisplayClass43_2::<DoDebugOptions>b__20(Verse.BodyPartRecord y)
IL_0024: newobj System.Void
System.Predicate`1<Verse.BodyPartRecord>::.ctor(System.Object object, System.IntPtr
method)
IL_0029: call static System.Boolean
Verse.GenCollection::Any(System.Collections.Generic.List`1<Verse.BodyPartRecord>
list, System.Predicate`1<Verse.BodyPartRecord> predicate)
IL_002E: // end original
IL_002E: ret
DONE

### Patch: static System.Single


RimWorld.HealthCardUtility::DrawOverviewTab(UnityEngine.Rect leftRect, Verse.Pawn
pawn, System.Single curY)
### Replacement: static System.Single
RimWorld.HealthCardUtility::RimWorld.HealthCardUtility.DrawOverviewTab_Patch0(Unity
Engine.Rect leftRect, Verse.Pawn pawn, System.Single curY)
IL_0000: Local var 0: RimWorld.HealthCardUtility/<>c__DisplayClass29_0
IL_0000: Local var 1: System.String
IL_0000: Local var 2: UnityEngine.Rect
IL_0000: Local var 3: UnityEngine.Rect
IL_0000: Local var 4: System.Nullable`1<UnityEngine.TextAnchor>
IL_0000: Local var 5: System.Collections.Generic.List`1<Verse.FloatMenuOption>
IL_0000: Local var 6: System.Collections.Generic.List`1<RimWorld.FoodRestriction>
IL_0000: Local var 7: System.Int32
IL_0000: Local var 8: RimWorld.HealthCardUtility/<>c__DisplayClass29_1
IL_0000: Local var 9: System.Boolean
IL_0000: Local var 10: UnityEngine.Rect
IL_0000: Local var 11: Verse.TaggedString
IL_0000: Local var 12: Verse.Pair`2<System.String,UnityEngine.Color>
IL_0000: Local var 13: System.String
IL_0000: Local var 14:
System.Collections.Generic.IEnumerable`1<Verse.PawnCapacityDef>
IL_0000: Local var 15:
System.Collections.Generic.IEnumerator`1<Verse.PawnCapacityDef>
IL_0000: Local var 16: Verse.PawnCapacityDef
IL_0000: Local var 17: RimWorld.HealthCardUtility/<>c__DisplayClass29_2
IL_0000: Local var 18: Verse.Pair`2<System.String,UnityEngine.Color>
IL_0000: Local var 19: System.Func`1<System.String>
IL_0000: // start original
IL_0000: newobj System.Void RimWorld.<>c__DisplayClass29_0::.ctor()
IL_0005: stloc.0
IL_0006: ldloc.0
IL_0007: ldarg.1
IL_0008: stfld Verse.Pawn RimWorld.<>c__DisplayClass29_0::pawn
IL_000D: ldarg.2
IL_000E: ldc.r4 4
IL_0013: add
IL_0014: starg.s 2
IL_0016: ldc.i4.0
IL_0017: call static System.Void Verse.Text::set_Font(Verse.GameFont value)
IL_001C: ldc.i4.0
IL_001D: call static System.Void
Verse.Text::set_Anchor(UnityEngine.TextAnchor value)
IL_0022: ldc.r4 0.9
IL_0027: ldc.r4 0.9
IL_002C: ldc.r4 0.9
IL_0031: newobj System.Void UnityEngine.Color::.ctor(System.Single r,
System.Single g, System.Single b)
IL_0036: call static System.Void UnityEngine.GUI::set_color(UnityEngine.Color
value)
IL_003B: ldloc.0
IL_003C: ldfld Verse.Pawn RimWorld.<>c__DisplayClass29_0::pawn
IL_0041: ldfld Verse.Gender Verse.Pawn::gender
IL_0046: brfalse => Label0
IL_004B: ldstr "PawnSummaryWithGender"
IL_0050: ldloc.0
IL_0051: ldfld Verse.Pawn RimWorld.<>c__DisplayClass29_0::pawn
IL_0056: ldstr "PAWN"
IL_005B: call static Verse.NamedArgument
Verse.NamedArgumentUtility::Named(System.Object arg, System.String label)
IL_0060: call static Verse.TaggedString
Verse.TranslatorFormattedStringExtensions::Translate(System.String key,
Verse.NamedArgument arg1)
IL_0065: call static System.String
Verse.TaggedString::op_Implicit(Verse.TaggedString taggedString)
IL_006A: stloc.1
IL_006B: br => Label1
IL_0070: Label0
IL_0070: ldstr "PawnSummary"
IL_0075: ldloc.0
IL_0076: ldfld Verse.Pawn RimWorld.<>c__DisplayClass29_0::pawn
IL_007B: ldstr "PAWN"
IL_0080: call static Verse.NamedArgument
Verse.NamedArgumentUtility::Named(System.Object arg, System.String label)
IL_0085: call static Verse.TaggedString
Verse.TranslatorFormattedStringExtensions::Translate(System.String key,
Verse.NamedArgument arg1)
IL_008A: call static System.String
Verse.TaggedString::op_Implicit(Verse.TaggedString taggedString)
IL_008F: stloc.1
IL_0090: Label1
IL_0090: ldloca.s 2 (UnityEngine.Rect)
IL_0092: ldc.r4 0
IL_0097: ldarg.2
IL_0098: ldarga.s 0
IL_009A: call System.Single UnityEngine.Rect::get_width()
IL_009F: ldc.r4 34
IL_00A4: call System.Void UnityEngine.Rect::.ctor(System.Single x,
System.Single y, System.Single width, System.Single height)
IL_00A9: ldloc.2
IL_00AA: ldloc.1
IL_00AB: call static System.String
Verse.GenText::CapitalizeFirst(System.String str)
IL_00B0: call static System.Void Verse.Widgets::Label(UnityEngine.Rect rect,
System.String label)
IL_00B5: ldloc.2
IL_00B6: call static System.Boolean Verse.Mouse::IsOver(UnityEngine.Rect
rect)
IL_00BB: brfalse => Label2
IL_00C0: ldloc.2
IL_00C1: ldloc.0
IL_00C2: ldftn System.String
RimWorld.<>c__DisplayClass29_0::<DrawOverviewTab>b__0()
IL_00C8: newobj System.Void System.Func`1<System.String>::.ctor(System.Object
object, System.IntPtr method)
IL_00CD: ldc.i4 73412
IL_00D2: call static System.Void
Verse.TooltipHandler::TipRegion(UnityEngine.Rect rect, System.Func`1<System.String>
textGetter, System.Int32 uniqueId)
IL_00D7: ldloc.2
IL_00D8: call static System.Void
Verse.Widgets::DrawHighlight(UnityEngine.Rect rect)
IL_00DD: Label2
IL_00DD: call static UnityEngine.Color UnityEngine.Color::get_white()
IL_00E2: call static System.Void UnityEngine.GUI::set_color(UnityEngine.Color
value)
IL_00E7: ldarg.2
IL_00E8: ldc.r4 34
IL_00ED: add
IL_00EE: starg.s 2
IL_00F0: ldloc.0
IL_00F1: ldfld Verse.Pawn RimWorld.<>c__DisplayClass29_0::pawn
IL_00F6: ldfld RimWorld.Pawn_FoodRestrictionTracker
Verse.Pawn::foodRestriction
IL_00FB: brfalse => Label3
IL_0100: ldloc.0
IL_0101: ldfld Verse.Pawn RimWorld.<>c__DisplayClass29_0::pawn
IL_0106: ldfld RimWorld.Pawn_FoodRestrictionTracker
Verse.Pawn::foodRestriction
IL_010B: callvirt System.Boolean
RimWorld.Pawn_FoodRestrictionTracker::get_Configurable()
IL_0110: brfalse => Label4
IL_0115: ldloc.0
IL_0116: ldfld Verse.Pawn RimWorld.<>c__DisplayClass29_0::pawn
IL_011B: callvirt Verse.DevelopmentalStage Verse.Pawn::get_DevelopmentalStage()
IL_0120: call static System.Boolean
Verse.DevelopmentalStageExtensions::Baby(Verse.DevelopmentalStage
developmentalStage)
IL_0125: brtrue => Label5
IL_012A: ldloca.s 3 (UnityEngine.Rect)
IL_012C: ldc.r4 0
IL_0131: ldarg.2
IL_0132: ldarga.s 0
IL_0134: call System.Single UnityEngine.Rect::get_width()
IL_0139: ldc.r4 0.42
IL_013E: mul
IL_013F: ldc.r4 23
IL_0144: call System.Void UnityEngine.Rect::.ctor(System.Single x,
System.Single y, System.Single width, System.Single height)
IL_0149: ldc.i4.3
IL_014A: call static System.Void
Verse.Text::set_Anchor(UnityEngine.TextAnchor value)
IL_014F: ldloc.3
IL_0150: call static System.Boolean Verse.Text::get_TinyFontSupported()
IL_0155: brtrue => Label6
IL_015A: ldstr "FoodRestrictionShort"
IL_015F: call static Verse.TaggedString
Verse.Translator::Translate(System.String key)
IL_0164: br => Label7
IL_0169: Label6
IL_0169: ldstr "FoodRestriction"
IL_016E: call static Verse.TaggedString
Verse.Translator::Translate(System.String key)
IL_0173: Label7
IL_0173: call static System.Void Verse.Widgets::Label(UnityEngine.Rect rect,
Verse.TaggedString label)
IL_0178: call static System.Void Verse.GenUI::ResetLabelAlign()
IL_017D: ldloca.s 3 (UnityEngine.Rect)
IL_017F: call System.Single UnityEngine.Rect::get_width()
IL_0184: ldarg.2
IL_0185: ldarga.s 0
IL_0187: call System.Single UnityEngine.Rect::get_width()
IL_018C: ldloca.s 3 (UnityEngine.Rect)
IL_018E: call System.Single UnityEngine.Rect::get_width()
IL_0193: sub
IL_0194: ldc.r4 23
IL_0199: newobj System.Void UnityEngine.Rect::.ctor(System.Single x,
System.Single y, System.Single width, System.Single height)
IL_019E: ldloc.0
IL_019F: ldfld Verse.Pawn RimWorld.<>c__DisplayClass29_0::pawn
IL_01A4: ldfld RimWorld.Pawn_FoodRestrictionTracker
Verse.Pawn::foodRestriction
IL_01A9: callvirt RimWorld.FoodRestriction
RimWorld.Pawn_FoodRestrictionTracker::get_CurrentFoodRestriction()
IL_01AE: ldfld System.String RimWorld.FoodRestriction::label
IL_01B3: ldc.i4.1
IL_01B4: ldc.i4.1
IL_01B5: ldc.i4.1
IL_01B6: ldloca.s 4 (System.Nullable`1[UnityEngine.TextAnchor])
IL_01B8: initobj System.Nullable`1[UnityEngine.TextAnchor]
IL_01BE: ldloc.s 4 (System.Nullable`1[UnityEngine.TextAnchor])
IL_01C0: call static System.Boolean
Verse.Widgets::ButtonText(UnityEngine.Rect rect, System.String label,
System.Boolean drawBackground, System.Boolean doMouseoverSound, System.Boolean
active, System.Nullable`1<UnityEngine.TextAnchor> overrideTextAnchor)
IL_01C5: brfalse => Label8
IL_01CA: newobj System.Void
System.Collections.Generic.List`1<Verse.FloatMenuOption>::.ctor()
IL_01CF: stloc.s 5 (System.Collections.Generic.List`1[Verse.FloatMenuOption])
IL_01D1: call static Verse.Game Verse.Current::get_Game()
IL_01D6: ldfld RimWorld.FoodRestrictionDatabase
Verse.Game::foodRestrictionDatabase
IL_01DB: callvirt System.Collections.Generic.List`1<RimWorld.FoodRestriction>
RimWorld.FoodRestrictionDatabase::get_AllFoodRestrictions()
IL_01E0: stloc.s 6 (System.Collections.Generic.List`1[RimWorld.FoodRestriction])
IL_01E2: ldc.i4.0
IL_01E3: stloc.s 7 (System.Int32)
IL_01E5: br => Label9
IL_01EA: Label10
IL_01EA: newobj System.Void RimWorld.<>c__DisplayClass29_1::.ctor()
IL_01EF: stloc.s 8 (RimWorld.HealthCardUtility+<>c__DisplayClass29_1)
IL_01F1: ldloc.s 8 (RimWorld.HealthCardUtility+<>c__DisplayClass29_1)
IL_01F3: ldloc.0
IL_01F4: stfld RimWorld.<>c__DisplayClass29_0
RimWorld.<>c__DisplayClass29_1::CS$<>8__locals1
IL_01F9: ldloc.s 8 (RimWorld.HealthCardUtility+<>c__DisplayClass29_1)
IL_01FB: ldloc.s 6 (System.Collections.Generic.List`1[RimWorld.FoodRestriction])
IL_01FD: ldloc.s 7 (System.Int32)
IL_01FF: callvirt virtual RimWorld.FoodRestriction
System.Collections.Generic.List`1<RimWorld.FoodRestriction>::get_Item(System.Int32
index)
IL_0204: stfld RimWorld.FoodRestriction
RimWorld.<>c__DisplayClass29_1::localRestriction
IL_0209: ldloc.s 5 (System.Collections.Generic.List`1[Verse.FloatMenuOption])
IL_020B: ldloc.s 8 (RimWorld.HealthCardUtility+<>c__DisplayClass29_1)
IL_020D: ldfld RimWorld.FoodRestriction
RimWorld.<>c__DisplayClass29_1::localRestriction
IL_0212: ldfld System.String RimWorld.FoodRestriction::label
IL_0217: ldloc.s 8 (RimWorld.HealthCardUtility+<>c__DisplayClass29_1)
IL_0219: ldftn System.Void
RimWorld.<>c__DisplayClass29_1::<DrawOverviewTab>b__2()
IL_021F: newobj System.Void System.Action::.ctor(System.Object object,
System.IntPtr method)
IL_0224: ldc.i4.4
IL_0225: ldnull
IL_0226: ldnull
IL_0227: ldc.r4 0
IL_022C: ldnull
IL_022D: ldnull
IL_022E: ldc.i4.1
IL_022F: ldc.i4.0
IL_0230: newobj System.Void Verse.FloatMenuOption::.ctor(System.String label,
System.Action action, Verse.MenuOptionPriority priority,
System.Action`1<UnityEngine.Rect> mouseoverGuiAction, Verse.Thing
revalidateClickTarget, System.Single extraPartWidth,
System.Func`2<UnityEngine.Rect, System.Boolean> extraPartOnGUI,
RimWorld.Planet.WorldObject revalidateWorldClickTarget, System.Boolean
playSelectionSound, System.Int32 orderInPriority)
IL_0235: callvirt virtual System.Void
System.Collections.Generic.List`1<Verse.FloatMenuOption>::Add(Verse.FloatMenuOption
item)
IL_023A: ldloc.s 7 (System.Int32)
IL_023C: ldc.i4.1
IL_023D: add
IL_023E: stloc.s 7 (System.Int32)
IL_0240: Label9
IL_0240: ldloc.s 7 (System.Int32)
IL_0242: ldloc.s 6 (System.Collections.Generic.List`1[RimWorld.FoodRestriction])
IL_0244: callvirt virtual System.Int32
System.Collections.Generic.List`1<RimWorld.FoodRestriction>::get_Count()
IL_0249: blt => Label10
IL_024E: ldloc.s 5 (System.Collections.Generic.List`1[Verse.FloatMenuOption])
IL_0250: ldstr "ManageFoodRestrictions"
IL_0255: call static Verse.TaggedString
Verse.Translator::Translate(System.String key)
IL_025A: call static System.String
Verse.TaggedString::op_Implicit(Verse.TaggedString taggedString)
IL_025F: ldsfld System.Action RimWorld.<>c::<>9__29_1
IL_0264: dup
IL_0265: brtrue => Label11
IL_026A: pop
IL_026B: ldsfld RimWorld.<>c RimWorld.<>c::<>9
IL_0270: ldftn System.Void RimWorld.<>c::<DrawOverviewTab>b__29_1()
IL_0276: newobj System.Void System.Action::.ctor(System.Object object,
System.IntPtr method)
IL_027B: dup
IL_027C: stsfld System.Action RimWorld.<>c::<>9__29_1
IL_0281: Label11
IL_0281: ldc.i4.4
IL_0282: ldnull
IL_0283: ldnull
IL_0284: ldc.r4 0
IL_0289: ldnull
IL_028A: ldnull
IL_028B: ldc.i4.1
IL_028C: ldc.i4.0
IL_028D: newobj System.Void Verse.FloatMenuOption::.ctor(System.String label,
System.Action action, Verse.MenuOptionPriority priority,
System.Action`1<UnityEngine.Rect> mouseoverGuiAction, Verse.Thing
revalidateClickTarget, System.Single extraPartWidth,
System.Func`2<UnityEngine.Rect, System.Boolean> extraPartOnGUI,
RimWorld.Planet.WorldObject revalidateWorldClickTarget, System.Boolean
playSelectionSound, System.Int32 orderInPriority)
IL_0292: callvirt virtual System.Void
System.Collections.Generic.List`1<Verse.FloatMenuOption>::Add(Verse.FloatMenuOption
item)
IL_0297: call static Verse.WindowStack Verse.Find::get_WindowStack()
IL_029C: ldloc.s 5 (System.Collections.Generic.List`1[Verse.FloatMenuOption])
IL_029E: newobj System.Void
Verse.FloatMenu::.ctor(System.Collections.Generic.List`1<Verse.FloatMenuOption>
options)
IL_02A3: callvirt System.Void Verse.WindowStack::Add(Verse.Window window)
IL_02A8: Label8
IL_02A8: ldarg.2
IL_02A9: ldc.r4 23
IL_02AE: add
IL_02AF: starg.s 2
IL_02B1: Label3
IL_02B1: Label4
IL_02B1: Label5
IL_02B1: ldloc.0
IL_02B2: ldfld Verse.Pawn RimWorld.<>c__DisplayClass29_0::pawn
IL_02B7: callvirt System.Boolean Verse.Pawn::get_IsColonist()
IL_02BC: brfalse => Label12
IL_02C1: ldloc.0
IL_02C2: ldfld Verse.Pawn RimWorld.<>c__DisplayClass29_0::pawn
IL_02C7: callvirt System.Boolean Verse.Pawn::get_Dead()
IL_02CC: brtrue => Label13
IL_02D1: ldloc.0
IL_02D2: ldfld Verse.Pawn RimWorld.<>c__DisplayClass29_0::pawn
IL_02D7: callvirt Verse.DevelopmentalStage Verse.Pawn::get_DevelopmentalStage()
IL_02DC: call static System.Boolean
Verse.DevelopmentalStageExtensions::Baby(Verse.DevelopmentalStage
developmentalStage)
IL_02E1: brtrue => Label14
IL_02E6: ldloc.0
IL_02E7: ldfld Verse.Pawn RimWorld.<>c__DisplayClass29_0::pawn
IL_02EC: ldfld RimWorld.Pawn_PlayerSettings Verse.Pawn::playerSettings
IL_02F1: ldfld System.Boolean RimWorld.Pawn_PlayerSettings::selfTend
IL_02F6: stloc.s 9 (System.Boolean)
IL_02F8: ldloca.s 10 (UnityEngine.Rect)
IL_02FA: ldc.r4 0
IL_02FF: ldarg.2
IL_0300: ldarga.s 0
IL_0302: call System.Single UnityEngine.Rect::get_width()
IL_0307: ldc.r4 24
IL_030C: call System.Void UnityEngine.Rect::.ctor(System.Single x,
System.Single y, System.Single width, System.Single height)
IL_0311: ldloc.s 10 (UnityEngine.Rect)
IL_0313: ldstr "SelfTend"
IL_0318: call static Verse.TaggedString
Verse.Translator::Translate(System.String key)
IL_031D: call static System.String
Verse.TaggedString::op_Implicit(Verse.TaggedString taggedString)
IL_0322: ldloc.0
IL_0323: ldfld Verse.Pawn RimWorld.<>c__DisplayClass29_0::pawn
IL_0328: ldfld RimWorld.Pawn_PlayerSettings Verse.Pawn::playerSettings
IL_032D: ldflda System.Boolean RimWorld.Pawn_PlayerSettings::selfTend
IL_0332: ldc.i4.0
IL_0333: ldnull
IL_0334: ldnull
IL_0335: ldc.i4.0
IL_0336: call static System.Void
Verse.Widgets::CheckboxLabeled(UnityEngine.Rect rect, System.String label,
System.Boolean& checkOn, System.Boolean disabled, UnityEngine.Texture2D texChecked,
UnityEngine.Texture2D texUnchecked, System.Boolean placeCheckboxNearText)
IL_033B: ldloc.0
IL_033C: ldfld Verse.Pawn RimWorld.<>c__DisplayClass29_0::pawn
IL_0341: ldfld RimWorld.Pawn_PlayerSettings Verse.Pawn::playerSettings
IL_0346: ldfld System.Boolean RimWorld.Pawn_PlayerSettings::selfTend
IL_034B: brfalse => Label15
IL_0350: ldloc.s 9 (System.Boolean)
IL_0352: brtrue => Label16
IL_0357: ldloc.0
IL_0358: ldfld Verse.Pawn RimWorld.<>c__DisplayClass29_0::pawn
IL_035D: ldsfld Verse.WorkTypeDef RimWorld.WorkTypeDefOf::Doctor
IL_0362: callvirt System.Boolean Verse.Pawn::WorkTypeIsDisabled(Verse.WorkTypeDef
w)
IL_0367: brfalse => Label17
IL_036C: ldloc.0
IL_036D: ldfld Verse.Pawn RimWorld.<>c__DisplayClass29_0::pawn
IL_0372: ldfld RimWorld.Pawn_PlayerSettings Verse.Pawn::playerSettings
IL_0377: ldc.i4.0
IL_0378: stfld System.Boolean RimWorld.Pawn_PlayerSettings::selfTend
IL_037D: ldstr "MessageCannotSelfTendEver"
IL_0382: ldloc.0
IL_0383: ldfld Verse.Pawn RimWorld.<>c__DisplayClass29_0::pawn
IL_0388: callvirt virtual System.String Verse.Entity::get_LabelShort()
IL_038D: call static Verse.NamedArgument
Verse.NamedArgument::op_Implicit(System.String value)
IL_0392: ldloc.0
IL_0393: ldfld Verse.Pawn RimWorld.<>c__DisplayClass29_0::pawn
IL_0398: call static Verse.NamedArgument
Verse.NamedArgument::op_Implicit(Verse.Thing value)
IL_039D: call static Verse.TaggedString
Verse.TranslatorFormattedStringExtensions::Translate(System.String key,
Verse.NamedArgument arg1, Verse.NamedArgument arg2)
IL_03A2: call static System.String
Verse.TaggedString::op_Implicit(Verse.TaggedString taggedString)
IL_03A7: ldsfld Verse.MessageTypeDef RimWorld.MessageTypeDefOf::RejectInput
IL_03AC: ldc.i4.0
IL_03AD: call static System.Void Verse.Messages::Message(System.String text,
Verse.MessageTypeDef def, System.Boolean historical)
IL_03B2: br => Label18
IL_03B7: Label17
IL_03B7: ldloc.0
IL_03B8: ldfld Verse.Pawn RimWorld.<>c__DisplayClass29_0::pawn
IL_03BD: ldfld RimWorld.Pawn_WorkSettings Verse.Pawn::workSettings
IL_03C2: ldsfld Verse.WorkTypeDef RimWorld.WorkTypeDefOf::Doctor
IL_03C7: callvirt System.Int32
RimWorld.Pawn_WorkSettings::GetPriority(Verse.WorkTypeDef w)
IL_03CC: brtrue => Label19
IL_03D1: ldstr "MessageSelfTendUnsatisfied"
IL_03D6: ldloc.0
IL_03D7: ldfld Verse.Pawn RimWorld.<>c__DisplayClass29_0::pawn
IL_03DC: callvirt virtual System.String Verse.Entity::get_LabelShort()
IL_03E1: call static Verse.NamedArgument
Verse.NamedArgument::op_Implicit(System.String value)
IL_03E6: ldloc.0
IL_03E7: ldfld Verse.Pawn RimWorld.<>c__DisplayClass29_0::pawn
IL_03EC: call static Verse.NamedArgument
Verse.NamedArgument::op_Implicit(Verse.Thing value)
IL_03F1: call static Verse.TaggedString
Verse.TranslatorFormattedStringExtensions::Translate(System.String key,
Verse.NamedArgument arg1, Verse.NamedArgument arg2)
IL_03F6: call static System.String
Verse.TaggedString::op_Implicit(Verse.TaggedString taggedString)
IL_03FB: ldsfld Verse.MessageTypeDef RimWorld.MessageTypeDefOf::CautionInput
IL_0400: ldc.i4.0
IL_0401: call static System.Void Verse.Messages::Message(System.String text,
Verse.MessageTypeDef def, System.Boolean historical)
IL_0406: Label15
IL_0406: Label16
IL_0406: Label18
IL_0406: Label19
IL_0406: ldloc.s 10 (UnityEngine.Rect)
IL_0408: call static System.Boolean Verse.Mouse::IsOver(UnityEngine.Rect
rect)
IL_040D: brfalse => Label20
IL_0412: ldloc.s 10 (UnityEngine.Rect)
IL_0414: ldstr "SelfTendTip"
IL_0419: call static RimWorld.Faction RimWorld.Faction::get_OfPlayer()
IL_041E: ldfld RimWorld.FactionDef RimWorld.Faction::def
IL_0423: ldfld System.String RimWorld.FactionDef::pawnsPlural
IL_0428: call static Verse.NamedArgument
Verse.NamedArgument::op_Implicit(System.String value)
IL_042D: ldc.r4 0.7
IL_0432: call static System.String
Verse.GenText::ToStringPercent(System.Single f)
IL_0437: call static Verse.NamedArgument
Verse.NamedArgument::op_Implicit(System.String value)
IL_043C: call static Verse.TaggedString
Verse.TranslatorFormattedStringExtensions::Translate(System.String key,
Verse.NamedArgument arg1, Verse.NamedArgument arg2)
IL_0441: stloc.s 11 (Verse.TaggedString)
IL_0443: ldloca.s 11 (Verse.TaggedString)
IL_0445: call Verse.TaggedString Verse.TaggedString::CapitalizeFirst()
IL_044A: call static Verse.TipSignal
Verse.TipSignal::op_Implicit(Verse.TaggedString str)
IL_044F: call static System.Void
Verse.TooltipHandler::TipRegion(UnityEngine.Rect rect, Verse.TipSignal tip)
IL_0454: Label20
IL_0454: ldarg.2
IL_0455: ldc.r4 28
IL_045A: add
IL_045B: starg.s 2
IL_045D: Label12
IL_045D: Label13
IL_045D: Label14
IL_045D: ldloc.0
IL_045E: ldfld Verse.Pawn RimWorld.<>c__DisplayClass29_0::pawn
IL_0463: callvirt Verse.RaceProperties Verse.Pawn::get_RaceProps()
IL_0468: callvirt System.Boolean Verse.RaceProperties::get_IsFlesh()
IL_046D: brfalse => Label21
IL_0472: ldloc.0
IL_0473: ldfld Verse.Pawn RimWorld.<>c__DisplayClass29_0::pawn
IL_0478: callvirt virtual RimWorld.Faction Verse.Thing::get_Faction()
IL_047D: call static RimWorld.Faction RimWorld.Faction::get_OfPlayer()
IL_0482: beq => Label22
IL_0487: ldloc.0
IL_0488: ldfld Verse.Pawn RimWorld.<>c__DisplayClass29_0::pawn
IL_048D: callvirt RimWorld.Faction Verse.Pawn::get_HostFaction()
IL_0492: call static RimWorld.Faction RimWorld.Faction::get_OfPlayer()
IL_0497: beq => Label23
IL_049C: ldloc.0
IL_049D: ldfld Verse.Pawn RimWorld.<>c__DisplayClass29_0::pawn
IL_04A2: call static System.Boolean
Verse.WildManUtility::NonHumanlikeOrWildMan(Verse.Pawn p)
IL_04A7: brfalse => Label24
IL_04AC: ldloc.0
IL_04AD: ldfld Verse.Pawn RimWorld.<>c__DisplayClass29_0::pawn
IL_04B2: call static System.Boolean RimWorld.RestUtility::InBed(Verse.Pawn p)
IL_04B7: brfalse => Label25
IL_04BC: ldloc.0
IL_04BD: ldfld Verse.Pawn RimWorld.<>c__DisplayClass29_0::pawn
IL_04C2: call static RimWorld.Building_Bed
RimWorld.RestUtility::CurrentBed(Verse.Pawn p)
IL_04C7: callvirt virtual RimWorld.Faction Verse.Thing::get_Faction()
IL_04CC: call static RimWorld.Faction RimWorld.Faction::get_OfPlayer()
IL_04D1: ceq
IL_04D3: br => Label26
IL_04D8: Label24
IL_04D8: Label25
IL_04D8: ldc.i4.0
IL_04D9: br => Label27
IL_04DE: Label22
IL_04DE: Label23
IL_04DE: ldc.i4.1
IL_04DF: br => Label28
IL_04E4: Label21
IL_04E4: ldc.i4.0
IL_04E5: Label26
IL_04E5: Label27
IL_04E5: Label28
IL_04E5: brfalse => Label29
IL_04EA: ldloc.0
IL_04EB: ldfld Verse.Pawn RimWorld.<>c__DisplayClass29_0::pawn
IL_04F0: ldfld RimWorld.Pawn_PlayerSettings Verse.Pawn::playerSettings
IL_04F5: brfalse => Label30
IL_04FA: ldloc.0
IL_04FB: ldfld Verse.Pawn RimWorld.<>c__DisplayClass29_0::pawn
IL_0500: callvirt System.Boolean Verse.Pawn::get_Dead()
IL_0505: brtrue => Label31
IL_050A: call static Verse.ProgramState Verse.Current::get_ProgramState()
IL_050F: ldc.i4.2
IL_0510: bne.un => Label32
IL_0515: ldc.r4 0
IL_051A: ldarg.2
IL_051B: ldc.r4 140
IL_0520: ldc.r4 28
IL_0525: newobj System.Void UnityEngine.Rect::.ctor(System.Single x,
System.Single y, System.Single width, System.Single height)
IL_052A: ldloc.0
IL_052B: ldfld Verse.Pawn RimWorld.<>c__DisplayClass29_0::pawn
IL_0530: ldfld RimWorld.Pawn_PlayerSettings Verse.Pawn::playerSettings
IL_0535: ldflda RimWorld.MedicalCareCategory
RimWorld.Pawn_PlayerSettings::medCare
IL_053A: call static System.Void
RimWorld.MedicalCareUtility::MedicalCareSetter(UnityEngine.Rect rect,
RimWorld.MedicalCareCategory& medCare)
IL_053F: ldarga.s 0
IL_0541: call System.Single UnityEngine.Rect::get_width()
IL_0546: ldc.r4 70
IL_054B: sub
IL_054C: ldarg.2
IL_054D: ldc.r4 70
IL_0552: ldc.r4 28
IL_0557: newobj System.Void UnityEngine.Rect::.ctor(System.Single x,
System.Single y, System.Single width, System.Single height)
IL_055C: ldstr "MedGroupDefaults"
IL_0561: call static Verse.TaggedString
Verse.Translator::Translate(System.String key)
IL_0566: call static System.String
Verse.TaggedString::op_Implicit(Verse.TaggedString taggedString)
IL_056B: ldc.i4.1
IL_056C: ldc.i4.1
IL_056D: ldc.i4.1
IL_056E: ldloca.s 4 (System.Nullable`1[UnityEngine.TextAnchor])
IL_0570: initobj System.Nullable`1[UnityEngine.TextAnchor]
IL_0576: ldloc.s 4 (System.Nullable`1[UnityEngine.TextAnchor])
IL_0578: call static System.Boolean
Verse.Widgets::ButtonText(UnityEngine.Rect rect, System.String label,
System.Boolean drawBackground, System.Boolean doMouseoverSound, System.Boolean
active, System.Nullable`1<UnityEngine.TextAnchor> overrideTextAnchor)
IL_057D: brfalse => Label33
IL_0582: call static Verse.WindowStack Verse.Find::get_WindowStack()
IL_0587: newobj System.Void RimWorld.Dialog_MedicalDefaults::.ctor()
IL_058C: callvirt System.Void Verse.WindowStack::Add(Verse.Window window)
IL_0591: Label33
IL_0591: ldarg.2
IL_0592: ldc.r4 32
IL_0597: add
IL_0598: starg.s 2
IL_059A: ldarg.0
IL_059B: ldarg.1
IL_059C: ldarga.s 2
IL_059E: call static System.Void
SmartMedicine.SurgeryUnlimited.SurgergyUnlimitedPawnSettings::DrawSurgeryOption(Uni
tyEngine.Rect leftRect, Verse.Pawn pawn, System.Single& curY)
IL_05A3: Label29
IL_05A3: Label30
IL_05A3: Label31
IL_05A3: Label32
IL_05A3: ldc.i4.1
IL_05A4: call static System.Void Verse.Text::set_Font(Verse.GameFont value)
IL_05A9: ldloc.0
IL_05AA: ldfld Verse.Pawn RimWorld.<>c__DisplayClass29_0::pawn
IL_05AF: ldfld Verse.ThingDef Verse.Thing::def
IL_05B4: ldfld Verse.RaceProperties Verse.ThingDef::race
IL_05B9: callvirt System.Boolean Verse.RaceProperties::get_IsFlesh()
IL_05BE: brfalse => Label34
IL_05C3: ldloc.0
IL_05C4: ldfld Verse.Pawn RimWorld.<>c__DisplayClass29_0::pawn
IL_05C9: call static Verse.Pair`2<System.String, UnityEngine.Color>
RimWorld.HealthCardUtility::GetPainLabel(Verse.Pawn pawn)
IL_05CE: stloc.s 12 (Verse.Pair`2[System.String,UnityEngine.Color])
IL_05D0: ldloc.0
IL_05D1: ldfld Verse.Pawn RimWorld.<>c__DisplayClass29_0::pawn
IL_05D6: call static System.String
RimWorld.HealthCardUtility::GetPainTip(Verse.Pawn pawn)
IL_05DB: stloc.s 13 (System.String)
IL_05DD: ldarg.0
IL_05DE: ldarg.2
IL_05DF: ldstr "PainLevel"
IL_05E4: call static Verse.TaggedString
Verse.Translator::Translate(System.String key)
IL_05E9: call static System.String
Verse.TaggedString::op_Implicit(Verse.TaggedString taggedString)
IL_05EE: ldloca.s 12 (Verse.Pair`2[System.String,UnityEngine.Color])
IL_05F0: call System.String Verse.Pair`2<System.String,
UnityEngine.Color>::get_First()
IL_05F5: ldloca.s 12 (Verse.Pair`2[System.String,UnityEngine.Color])
IL_05F7: call UnityEngine.Color Verse.Pair`2<System.String,
UnityEngine.Color>::get_Second()
IL_05FC: ldloc.s 13 (System.String)
IL_05FE: call static Verse.TipSignal
Verse.TipSignal::op_Implicit(System.String str)
IL_0603: call static System.Single
RimWorld.HealthCardUtility::DrawLeftRow(UnityEngine.Rect leftRect, System.Single
curY, System.String leftLabel, System.String rightLabel, UnityEngine.Color
rightLabelColor, Verse.TipSignal tipSignal)
IL_0608: starg.s 2
IL_060A: Label34
IL_060A: ldloc.0
IL_060B: ldfld Verse.Pawn RimWorld.<>c__DisplayClass29_0::pawn
IL_0610: callvirt System.Boolean Verse.Pawn::get_Dead()
IL_0615: brtrue => Label35
IL_061A: ldloc.0
IL_061B: ldfld Verse.Pawn RimWorld.<>c__DisplayClass29_0::pawn
IL_0620: ldfld Verse.ThingDef Verse.Thing::def
IL_0625: ldfld Verse.RaceProperties Verse.ThingDef::race
IL_062A: callvirt System.Boolean Verse.RaceProperties::get_Humanlike()
IL_062F: brfalse => Label36
IL_0634: call static
System.Collections.Generic.IEnumerable`1<Verse.PawnCapacityDef>
Verse.DefDatabase`1<Verse.PawnCapacityDef>::get_AllDefs()
IL_0639: ldsfld System.Func`2<Verse.PawnCapacityDef, System.Boolean>
RimWorld.<>c::<>9__29_3
IL_063E: dup
IL_063F: brtrue => Label37
IL_0644: pop
IL_0645: ldsfld RimWorld.<>c RimWorld.<>c::<>9
IL_064A: ldftn System.Boolean
RimWorld.<>c::<DrawOverviewTab>b__29_3(Verse.PawnCapacityDef x)
IL_0650: newobj System.Void System.Func`2<Verse.PawnCapacityDef,
System.Boolean>::.ctor(System.Object object, System.IntPtr method)
IL_0655: dup
IL_0656: stsfld System.Func`2<Verse.PawnCapacityDef, System.Boolean>
RimWorld.<>c::<>9__29_3
IL_065B: Label37
IL_065B: call static
System.Collections.Generic.IEnumerable`1<Verse.PawnCapacityDef>
System.Linq.Enumerable::Where(System.Collections.Generic.IEnumerable`1<Verse.PawnCa
pacityDef> source, System.Func`2<Verse.PawnCapacityDef, System.Boolean> predicate)
IL_0660: stloc.s 14
(System.Collections.Generic.IEnumerable`1[Verse.PawnCapacityDef])
IL_0662: br => Label38
IL_0667: Label36
IL_0667: ldloc.0
IL_0668: ldfld Verse.Pawn RimWorld.<>c__DisplayClass29_0::pawn
IL_066D: ldfld Verse.ThingDef Verse.Thing::def
IL_0672: ldfld Verse.RaceProperties Verse.ThingDef::race
IL_0677: callvirt System.Boolean Verse.RaceProperties::get_Animal()
IL_067C: brfalse => Label39
IL_0681: call static
System.Collections.Generic.IEnumerable`1<Verse.PawnCapacityDef>
Verse.DefDatabase`1<Verse.PawnCapacityDef>::get_AllDefs()
IL_0686: ldsfld System.Func`2<Verse.PawnCapacityDef, System.Boolean>
RimWorld.<>c::<>9__29_4
IL_068B: dup
IL_068C: brtrue => Label40
IL_0691: pop
IL_0692: ldsfld RimWorld.<>c RimWorld.<>c::<>9
IL_0697: ldftn System.Boolean
RimWorld.<>c::<DrawOverviewTab>b__29_4(Verse.PawnCapacityDef x)
IL_069D: newobj System.Void System.Func`2<Verse.PawnCapacityDef,
System.Boolean>::.ctor(System.Object object, System.IntPtr method)
IL_06A2: dup
IL_06A3: stsfld System.Func`2<Verse.PawnCapacityDef, System.Boolean>
RimWorld.<>c::<>9__29_4
IL_06A8: Label40
IL_06A8: call static
System.Collections.Generic.IEnumerable`1<Verse.PawnCapacityDef>
System.Linq.Enumerable::Where(System.Collections.Generic.IEnumerable`1<Verse.PawnCa
pacityDef> source, System.Func`2<Verse.PawnCapacityDef, System.Boolean> predicate)
IL_06AD: stloc.s 14
(System.Collections.Generic.IEnumerable`1[Verse.PawnCapacityDef])
IL_06AF: br => Label41
IL_06B4: Label39
IL_06B4: call static
System.Collections.Generic.IEnumerable`1<Verse.PawnCapacityDef>
Verse.DefDatabase`1<Verse.PawnCapacityDef>::get_AllDefs()
IL_06B9: ldsfld System.Func`2<Verse.PawnCapacityDef, System.Boolean>
RimWorld.<>c::<>9__29_5
IL_06BE: dup
IL_06BF: brtrue => Label42
IL_06C4: pop
IL_06C5: ldsfld RimWorld.<>c RimWorld.<>c::<>9
IL_06CA: ldftn System.Boolean
RimWorld.<>c::<DrawOverviewTab>b__29_5(Verse.PawnCapacityDef x)
IL_06D0: newobj System.Void System.Func`2<Verse.PawnCapacityDef,
System.Boolean>::.ctor(System.Object object, System.IntPtr method)
IL_06D5: dup
IL_06D6: stsfld System.Func`2<Verse.PawnCapacityDef, System.Boolean>
RimWorld.<>c::<>9__29_5
IL_06DB: Label42
IL_06DB: call static
System.Collections.Generic.IEnumerable`1<Verse.PawnCapacityDef>
System.Linq.Enumerable::Where(System.Collections.Generic.IEnumerable`1<Verse.PawnCa
pacityDef> source, System.Func`2<Verse.PawnCapacityDef, System.Boolean> predicate)
IL_06E0: stloc.s 14
(System.Collections.Generic.IEnumerable`1[Verse.PawnCapacityDef])
IL_06E2: Label38
IL_06E2: Label41
IL_06E2: ldloc.s 14
(System.Collections.Generic.IEnumerable`1[Verse.PawnCapacityDef])
IL_06E4: ldsfld System.Func`2<Verse.PawnCapacityDef, System.Int32>
RimWorld.<>c::<>9__29_6
IL_06E9: dup
IL_06EA: brtrue => Label43
IL_06EF: pop
IL_06F0: ldsfld RimWorld.<>c RimWorld.<>c::<>9
IL_06F5: ldftn System.Int32
RimWorld.<>c::<DrawOverviewTab>b__29_6(Verse.PawnCapacityDef act)
IL_06FB: newobj System.Void System.Func`2<Verse.PawnCapacityDef,
System.Int32>::.ctor(System.Object object, System.IntPtr method)
IL_0700: dup
IL_0701: stsfld System.Func`2<Verse.PawnCapacityDef, System.Int32>
RimWorld.<>c::<>9__29_6
IL_0706: Label43
IL_0706: call static System.Linq.IOrderedEnumerable`1<Verse.PawnCapacityDef>
System.Linq.Enumerable::OrderBy(System.Collections.Generic.IEnumerable`1<Verse.Pawn
CapacityDef> source, System.Func`2<Verse.PawnCapacityDef, System.Int32>
keySelector)
IL_070B: callvirt abstract virtual
System.Collections.Generic.IEnumerator`1<Verse.PawnCapacityDef>
System.Collections.Generic.IEnumerable`1<Verse.PawnCapacityDef>::GetEnumerator()
IL_0710: stloc.s 15
(System.Collections.Generic.IEnumerator`1[Verse.PawnCapacityDef])
.try
{
IL_0712: br => Label44
IL_0717: Label46
IL_0717: ldloc.s 15
(System.Collections.Generic.IEnumerator`1[Verse.PawnCapacityDef])
IL_0719: callvirt abstract virtual Verse.PawnCapacityDef
System.Collections.Generic.IEnumerator`1<Verse.PawnCapacityDef>::get_Current()
IL_071E: stloc.s 16 (Verse.PawnCapacityDef)
IL_0720: newobj System.Void RimWorld.<>c__DisplayClass29_2::.ctor()
IL_0725: stloc.s 17 (RimWorld.HealthCardUtility+<>c__DisplayClass29_2)
IL_0727: ldloc.s 17 (RimWorld.HealthCardUtility+<>c__DisplayClass29_2)
IL_0729: ldloc.0
IL_072A: stfld RimWorld.<>c__DisplayClass29_0
RimWorld.<>c__DisplayClass29_2::CS$<>8__locals2
IL_072F: ldloc.s 17 (RimWorld.HealthCardUtility+<>c__DisplayClass29_2)
IL_0731: ldfld RimWorld.<>c__DisplayClass29_0
RimWorld.<>c__DisplayClass29_2::CS$<>8__locals2
IL_0736: ldfld Verse.Pawn RimWorld.<>c__DisplayClass29_0::pawn
IL_073B: call static Verse.BodyDef
AlienRace.HarmonyPatches::ReplacedBody(Verse.Pawn pawn)
IL_0740: ldloc.s 16 (Verse.PawnCapacityDef)
IL_0742: call static System.Boolean
Verse.PawnCapacityUtility::BodyCanEverDoCapacity(Verse.BodyDef bodyDef,
Verse.PawnCapacityDef capacity)
IL_0747: brfalse => Label45
IL_074C: ldloc.s 17 (RimWorld.HealthCardUtility+<>c__DisplayClass29_2)
IL_074E: ldloc.s 16 (Verse.PawnCapacityDef)
IL_0750: stfld Verse.PawnCapacityDef
RimWorld.<>c__DisplayClass29_2::activityLocal
IL_0755: ldloc.s 17 (RimWorld.HealthCardUtility+<>c__DisplayClass29_2)
IL_0757: ldfld RimWorld.<>c__DisplayClass29_0
RimWorld.<>c__DisplayClass29_2::CS$<>8__locals2
IL_075C: ldfld Verse.Pawn RimWorld.<>c__DisplayClass29_0::pawn
IL_0761: ldloc.s 16 (Verse.PawnCapacityDef)
IL_0763: call static Verse.Pair`2<System.String, UnityEngine.Color>
RimWorld.HealthCardUtility::GetEfficiencyLabel(Verse.Pawn pawn,
Verse.PawnCapacityDef activity)
IL_0768: stloc.s 18 (Verse.Pair`2[System.String,UnityEngine.Color])
IL_076A: ldloc.s 17 (RimWorld.HealthCardUtility+<>c__DisplayClass29_2)
IL_076C: ldftn System.String
RimWorld.<>c__DisplayClass29_2::<DrawOverviewTab>b__7()
IL_0772: newobj System.Void
System.Func`1<System.String>::.ctor(System.Object object, System.IntPtr method)
IL_0777: stloc.s 19 (System.Func`1[System.String])
IL_0779: ldarg.0
IL_077A: ldarg.2
IL_077B: ldloc.s 16 (Verse.PawnCapacityDef)
IL_077D: ldloc.s 17 (RimWorld.HealthCardUtility+<>c__DisplayClass29_2)
IL_077F: ldfld RimWorld.<>c__DisplayClass29_0
RimWorld.<>c__DisplayClass29_2::CS$<>8__locals2
IL_0784: ldfld Verse.Pawn RimWorld.<>c__DisplayClass29_0::pawn
IL_0789: callvirt Verse.RaceProperties Verse.Pawn::get_RaceProps()
IL_078E: callvirt System.Boolean Verse.RaceProperties::get_IsFlesh()
IL_0793: ldloc.s 17 (RimWorld.HealthCardUtility+<>c__DisplayClass29_2)
IL_0795: ldfld RimWorld.<>c__DisplayClass29_0
RimWorld.<>c__DisplayClass29_2::CS$<>8__locals2
IL_079A: ldfld Verse.Pawn RimWorld.<>c__DisplayClass29_0::pawn
IL_079F: callvirt Verse.RaceProperties Verse.Pawn::get_RaceProps()
IL_07A4: callvirt System.Boolean Verse.RaceProperties::get_Humanlike()
IL_07A9: callvirt System.String
Verse.PawnCapacityDef::GetLabelFor(System.Boolean isFlesh, System.Boolean
isHumanlike)
IL_07AE: call static System.String
Verse.GenText::CapitalizeFirst(System.String str)
IL_07B3: ldloca.s 18 (Verse.Pair`2[System.String,UnityEngine.Color])
IL_07B5: call System.String Verse.Pair`2<System.String,
UnityEngine.Color>::get_First()
IL_07BA: ldloca.s 18 (Verse.Pair`2[System.String,UnityEngine.Color])
IL_07BC: call UnityEngine.Color Verse.Pair`2<System.String,
UnityEngine.Color>::get_Second()
IL_07C1: ldloc.s 19 (System.Func`1[System.String])
IL_07C3: ldloc.s 17 (RimWorld.HealthCardUtility+<>c__DisplayClass29_2)
IL_07C5: ldfld RimWorld.<>c__DisplayClass29_0
RimWorld.<>c__DisplayClass29_2::CS$<>8__locals2
IL_07CA: ldfld Verse.Pawn RimWorld.<>c__DisplayClass29_0::pawn
IL_07CF: ldfld System.Int32 Verse.Thing::thingIDNumber
IL_07D4: ldloc.s 16 (Verse.PawnCapacityDef)
IL_07D6: ldfld System.UInt16 Verse.Def::index
IL_07DB: xor
IL_07DC: newobj System.Void
Verse.TipSignal::.ctor(System.Func`1<System.String> textGetter, System.Int32
uniqueId)
IL_07E1: call static System.Single
RimWorld.HealthCardUtility::DrawLeftRow(UnityEngine.Rect leftRect, System.Single
curY, System.String leftLabel, System.String rightLabel, UnityEngine.Color
rightLabelColor, Verse.TipSignal tipSignal)
IL_07E6: starg.s 2
IL_07E8: Label44
IL_07E8: Label45
IL_07E8: ldloc.s 15
(System.Collections.Generic.IEnumerator`1[Verse.PawnCapacityDef])
IL_07EA: callvirt abstract virtual System.Boolean
System.Collections.IEnumerator::MoveNext()
IL_07EF: brtrue => Label46
IL_07F4: leave => Label47
IL_07F9: leave => (autogenerated)
} // end try
.finally
{
IL_07FE: ldloc.s 15
(System.Collections.Generic.IEnumerator`1[Verse.PawnCapacityDef])
IL_0800: brfalse => Label48
IL_0805: ldloc.s 15
(System.Collections.Generic.IEnumerator`1[Verse.PawnCapacityDef])
IL_0807: callvirt abstract virtual System.Void
System.IDisposable::Dispose()
IL_080C: Label48
IL_080C: endfinally
IL_080D: leave => (autogenerated)
} // end handler
IL_080E: Label35
IL_080E: Label47
IL_080E: ldarg.2
IL_080F: // end original
IL_080F: ret
DONE

### Patch: System.Void RimWorld.ITab_Pawn_Gear::TryDrawOverallArmor(System.Single&


curY, System.Single width, RimWorld.StatDef stat, System.String label)
### Replacement: static System.Void
RimWorld.ITab_Pawn_Gear::RimWorld.ITab_Pawn_Gear.TryDrawOverallArmor_Patch0(RimWorl
d.ITab_Pawn_Gear this, System.Single& curY, System.Single width, RimWorld.StatDef
stat, System.String label)
IL_0000: Local var 0: System.Single
IL_0000: Local var 1: System.Single
IL_0000: Local var 2: System.Collections.Generic.List`1<Verse.BodyPartRecord>
IL_0000: Local var 3: System.Collections.Generic.List`1<RimWorld.Apparel>
IL_0000: Local var 4: UnityEngine.Rect
IL_0000: Local var 5: System.Int32
IL_0000: Local var 6: System.Single
IL_0000: Local var 7: System.Int32
IL_0000: Local var 8: System.Single
IL_0000: // start original
IL_0000: ldc.r4 0
IL_0005: stloc.0
IL_0006: ldarg.0
IL_0007: call Verse.Pawn RimWorld.ITab_Pawn_Gear::get_SelPawnForGear()
IL_000C: ldarg.3
IL_000D: ldc.i4.1
IL_000E: ldc.i4.m1
IL_000F: call static System.Single
RimWorld.StatExtension::GetStatValue(Verse.Thing thing, RimWorld.StatDef stat,
System.Boolean applyPostProcess, System.Int32 cacheStaleAfterTicks)
IL_0014: ldc.r4 2
IL_0019: div
IL_001A: call static System.Single UnityEngine.Mathf::Clamp01(System.Single
value)
IL_001F: stloc.1
IL_0020: ldarg.0
IL_0021: call Verse.Pawn RimWorld.ITab_Pawn_Gear::get_SelPawnForGear()
IL_0026: call static Verse.BodyDef
AlienRace.HarmonyPatches::ReplacedBody(Verse.Pawn pawn)
IL_002B: callvirt System.Collections.Generic.List`1<Verse.BodyPartRecord>
Verse.BodyDef::get_AllParts()
IL_0030: stloc.2
IL_0031: ldarg.0
IL_0032: call Verse.Pawn RimWorld.ITab_Pawn_Gear::get_SelPawnForGear()
IL_0037: ldfld RimWorld.Pawn_ApparelTracker Verse.Pawn::apparel
IL_003C: brtrue => Label0
IL_0041: ldnull
IL_0042: br => Label1
IL_0047: Label0
IL_0047: ldarg.0
IL_0048: call Verse.Pawn RimWorld.ITab_Pawn_Gear::get_SelPawnForGear()
IL_004D: ldfld RimWorld.Pawn_ApparelTracker Verse.Pawn::apparel
IL_0052: callvirt System.Collections.Generic.List`1<RimWorld.Apparel>
RimWorld.Pawn_ApparelTracker::get_WornApparel()
IL_0057: Label1
IL_0057: stloc.3
IL_0058: ldc.i4.0
IL_0059: stloc.s 5 (System.Int32)
IL_005B: br => Label2
IL_0060: Label7
IL_0060: ldc.r4 1
IL_0065: ldloc.1
IL_0066: sub
IL_0067: stloc.s 6 (System.Single)
IL_0069: ldloc.3
IL_006A: brfalse => Label3
IL_006F: ldc.i4.0
IL_0070: stloc.s 7 (System.Int32)
IL_0072: br => Label4
IL_0077: Label6
IL_0077: ldloc.3
IL_0078: ldloc.s 7 (System.Int32)
IL_007A: callvirt virtual RimWorld.Apparel
System.Collections.Generic.List`1<RimWorld.Apparel>::get_Item(System.Int32 index)
IL_007F: ldfld Verse.ThingDef Verse.Thing::def
IL_0084: ldfld RimWorld.ApparelProperties Verse.ThingDef::apparel
IL_0089: ldloc.2
IL_008A: ldloc.s 5 (System.Int32)
IL_008C: callvirt virtual Verse.BodyPartRecord
System.Collections.Generic.List`1<Verse.BodyPartRecord>::get_Item(System.Int32
index)
IL_0091: callvirt System.Boolean
RimWorld.ApparelProperties::CoversBodyPart(Verse.BodyPartRecord partRec)
IL_0096: brfalse => Label5
IL_009B: ldloc.3
IL_009C: ldloc.s 7 (System.Int32)
IL_009E: callvirt virtual RimWorld.Apparel
System.Collections.Generic.List`1<RimWorld.Apparel>::get_Item(System.Int32 index)
IL_00A3: ldarg.3
IL_00A4: ldc.i4.1
IL_00A5: ldc.i4.m1
IL_00A6: call static System.Single
RimWorld.StatExtension::GetStatValue(Verse.Thing thing, RimWorld.StatDef stat,
System.Boolean applyPostProcess, System.Int32 cacheStaleAfterTicks)
IL_00AB: ldc.r4 2
IL_00B0: div
IL_00B1: call static System.Single UnityEngine.Mathf::Clamp01(System.Single
value)
IL_00B6: stloc.s 8 (System.Single)
IL_00B8: ldloc.s 6 (System.Single)
IL_00BA: ldc.r4 1
IL_00BF: ldloc.s 8 (System.Single)
IL_00C1: sub
IL_00C2: mul
IL_00C3: stloc.s 6 (System.Single)
IL_00C5: Label5
IL_00C5: ldloca.s 6
IL_00C7: ldarg.3
IL_00C8: ldloc.3
IL_00C9: ldloc.s 7
IL_00CB: callvirt virtual RimWorld.Apparel
System.Collections.Generic.List`1<RimWorld.Apparel>::get_Item(System.Int32 index)
IL_00D0: ldloc.2
IL_00D1: ldloc.s 5
IL_00D3: callvirt virtual Verse.BodyPartRecord
System.Collections.Generic.List`1<Verse.BodyPartRecord>::get_Item(System.Int32
index)
IL_00D8: call static System.Void
VFECore.TryDrawOverallArmor::ShieldFromApparel(System.Single& armourImportance,
RimWorld.StatDef stat, RimWorld.Apparel apparel, Verse.BodyPartRecord part)
IL_00DD: ldloc.s 7 (System.Int32)
IL_00DF: ldc.i4.1
IL_00E0: add
IL_00E1: stloc.s 7 (System.Int32)
IL_00E3: Label4
IL_00E3: ldloc.s 7 (System.Int32)
IL_00E5: ldloc.3
IL_00E6: callvirt virtual System.Int32
System.Collections.Generic.List`1<RimWorld.Apparel>::get_Count()
IL_00EB: blt => Label6
IL_00F0: Label3
IL_00F0: ldloca.s 6
IL_00F2: ldarg.3
IL_00F3: ldloc.2
IL_00F4: ldloc.s 5
IL_00F6: callvirt virtual Verse.BodyPartRecord
System.Collections.Generic.List`1<Verse.BodyPartRecord>::get_Item(System.Int32
index)
IL_00FB: ldarg.0
IL_00FC: call Verse.Pawn RimWorld.ITab_Pawn_Gear::get_SelPawnForGear()
IL_0101: call static System.Void
VFECore.TryDrawOverallArmor::ShieldFromEquipment(System.Single& armourImportance,
RimWorld.StatDef stat, Verse.BodyPartRecord part, Verse.Pawn pawn)
IL_0106: ldloc.0
IL_0107: ldloc.2
IL_0108: ldloc.s 5 (System.Int32)
IL_010A: callvirt virtual Verse.BodyPartRecord
System.Collections.Generic.List`1<Verse.BodyPartRecord>::get_Item(System.Int32
index)
IL_010F: ldfld System.Single Verse.BodyPartRecord::coverageAbs
IL_0114: ldc.r4 1
IL_0119: ldloc.s 6 (System.Single)
IL_011B: sub
IL_011C: mul
IL_011D: add
IL_011E: stloc.0
IL_011F: ldloc.s 5 (System.Int32)
IL_0121: ldc.i4.1
IL_0122: add
IL_0123: stloc.s 5 (System.Int32)
IL_0125: Label2
IL_0125: ldloc.s 5 (System.Int32)
IL_0127: ldloc.2
IL_0128: callvirt virtual System.Int32
System.Collections.Generic.List`1<Verse.BodyPartRecord>::get_Count()
IL_012D: blt => Label7
IL_0132: ldloc.0
IL_0133: ldc.r4 2
IL_0138: mul
IL_0139: ldc.r4 0
IL_013E: ldc.r4 2
IL_0143: call static System.Single UnityEngine.Mathf::Clamp(System.Single
value, System.Single min, System.Single max)
IL_0148: stloc.0
IL_0149: ldloca.s 4 (UnityEngine.Rect)
IL_014B: ldc.r4 0
IL_0150: ldarg.1
IL_0151: ldind.r4
IL_0152: ldarg.2
IL_0153: ldc.r4 100
IL_0158: call System.Void UnityEngine.Rect::.ctor(System.Single x,
System.Single y, System.Single width, System.Single height)
IL_015D: ldloc.s 4 (UnityEngine.Rect)
IL_015F: ldarg.s 4
IL_0161: ldc.r4 120
IL_0166: ldnull
IL_0167: call static System.String Verse.GenText::Truncate(System.String str,
System.Single width, System.Collections.Generic.Dictionary`2<System.String,
System.String> cache)
IL_016C: call static System.Void Verse.Widgets::Label(UnityEngine.Rect rect,
System.String label)
IL_0171: ldloca.s 4 (UnityEngine.Rect)
IL_0173: dup
IL_0174: call System.Single UnityEngine.Rect::get_xMin()
IL_0179: ldc.r4 120
IL_017E: add
IL_017F: call System.Void UnityEngine.Rect::set_xMin(System.Single value)
IL_0184: ldloc.s 4 (UnityEngine.Rect)
IL_0186: ldloc.0
IL_0187: call static System.String
Verse.GenText::ToStringPercent(System.Single f)
IL_018C: call static System.Void Verse.Widgets::Label(UnityEngine.Rect rect,
System.String label)
IL_0191: ldarg.1
IL_0192: ldarg.1
IL_0193: ldind.r4
IL_0194: ldc.r4 22
IL_0199: add
IL_019A: stind.r4
IL_019B: // end original
IL_019B: ret
DONE

### Patch: System.Boolean


RimWorld.StatPart_BlindPsychicSensitivityOffset::ConsideredBlind(Verse.Pawn pawn)
### Replacement: static System.Boolean
RimWorld.StatPart_BlindPsychicSensitivityOffset::RimWorld.StatPart_BlindPsychicSens
itivityOffset.ConsideredBlind_Patch0(RimWorld.StatPart_BlindPsychicSensitivityOffse
t this, Verse.Pawn pawn)
IL_0000: Local var 0:
System.Collections.Generic.List`1/Enumerator<Verse.BodyPartRecord>
IL_0000: Local var 1: Verse.BodyPartRecord
IL_0000: Local var 2: System.Boolean
IL_0000: // start original
IL_0000: ldarg.1
IL_0001: call static Verse.BodyDef
AlienRace.HarmonyPatches::ReplacedBody(Verse.Pawn pawn)
IL_0006: ldsfld Verse.BodyPartTagDef RimWorld.BodyPartTagDefOf::SightSource
IL_000B: callvirt System.Collections.Generic.List`1<Verse.BodyPartRecord>
Verse.BodyDef::GetPartsWithTag(Verse.BodyPartTagDef tag)
IL_0010: callvirt System.Collections.Generic.Enumerator<Verse.BodyPartRecord>
System.Collections.Generic.List`1<Verse.BodyPartRecord>::GetEnumerator()
IL_0015: stloc.0
.try
{
IL_0016: br => Label0
IL_001B: Label3
IL_001B: ldloca.s 0
(System.Collections.Generic.List`1+Enumerator[Verse.BodyPartRecord])
IL_001D: call virtual Verse.BodyPartRecord
System.Collections.Generic.Enumerator<Verse.BodyPartRecord>::get_Current()
IL_0022: stloc.1
IL_0023: ldarg.1
IL_0024: ldfld Verse.Pawn_HealthTracker Verse.Pawn::health
IL_0029: ldfld Verse.HediffSet Verse.Pawn_HealthTracker::hediffSet
IL_002E: ldloc.1
IL_002F: callvirt System.Boolean
Verse.HediffSet::PartIsMissing(Verse.BodyPartRecord part)
IL_0034: brtrue => Label1
IL_0039: ldc.i4.0
IL_003A: stloc.2
IL_003B: leave => Label2
IL_0040: Label0
IL_0040: Label1
IL_0040: ldloca.s 0
(System.Collections.Generic.List`1+Enumerator[Verse.BodyPartRecord])
IL_0042: call virtual System.Boolean
System.Collections.Generic.Enumerator<Verse.BodyPartRecord>::MoveNext()
IL_0047: brtrue => Label3
IL_004C: leave => Label4
IL_0051: leave => (autogenerated)
} // end try
.finally
{
IL_0056: ldloca.s 0
(System.Collections.Generic.List`1+Enumerator[Verse.BodyPartRecord])
IL_0058: constrained.
System.Collections.Generic.List`1+Enumerator[Verse.BodyPartRecord]
IL_005E: callvirt abstract virtual System.Void
System.IDisposable::Dispose()
IL_0063: endfinally
IL_0064: leave => (autogenerated)
} // end handler
IL_0065: Label4
IL_0065: ldc.i4.1
IL_0066: br => Label9
IL_006B: Label2
IL_006B: ldloc.2
IL_006C: // end original
IL_006C: Label9
IL_006C: ret
DONE

### Patch: System.Single RimWorld.<>c::<TryGetValue>b__2_0(Verse.Pawn x)


### Replacement: static System.Single
RimWorld.StatPart_NaturalNotMissingBodyPartsCoverage+<>c::RimWorld.StatPart_Natural
NotMissingBodyPartsCoverage+c.<TryGetValue>b__2_0_Patch0(RimWorld.<>c this,
Verse.Pawn x)
IL_0000: // start original
IL_0000: ldarg.1
IL_0001: ldfld Verse.Pawn_HealthTracker Verse.Pawn::health
IL_0006: ldfld Verse.HediffSet Verse.Pawn_HealthTracker::hediffSet
IL_000B: ldarg.1
IL_000C: call static Verse.BodyDef
AlienRace.HarmonyPatches::ReplacedBody(Verse.Pawn pawn)
IL_0011: ldfld Verse.BodyPartRecord Verse.BodyDef::corePart
IL_0016: callvirt System.Single
Verse.HediffSet::GetCoverageOfNotMissingNaturalParts(Verse.BodyPartRecord part)
IL_001B: // end original
IL_001B: ret
DONE

### Patch: virtual System.Void


RimWorld.HediffComp_DissolveGearOnDeath::Notify_PawnDied()
### Replacement: static System.Void
RimWorld.HediffComp_DissolveGearOnDeath::RimWorld.HediffComp_DissolveGearOnDeath.No
tify_PawnDied_Patch0(RimWorld.HediffComp_DissolveGearOnDeath this)
IL_0000: Local var 0: System.Collections.Generic.List`1<Verse.BodyPartRecord>
IL_0000: Local var 1: System.Int32
IL_0000: Local var 2: System.Int32
IL_0000: Local var 3: System.Int32
IL_0000: Local var 4: Verse.BodyPartRecord
IL_0000: Local var 5: System.Nullable`1<Verse.DamageInfo>
IL_0000: // start original
IL_0000: ldarg.0
IL_0001: call virtual System.Void Verse.HediffComp::Notify_PawnDied()
IL_0006: ldarg.0
IL_0007: call RimWorld.HediffCompProperties_DissolveGearOnDeath
RimWorld.HediffComp_DissolveGearOnDeath::get_Props()
IL_000C: ldfld Verse.HediffDef
RimWorld.HediffCompProperties_DissolveGearOnDeath::injuryCreatedOnDeath
IL_0011: brfalse => Label0
IL_0016: ldarg.0
IL_0017: call Verse.Pawn Verse.HediffComp::get_Pawn()
IL_001C: call static Verse.BodyDef
AlienRace.HarmonyPatches::ReplacedBody(Verse.Pawn pawn)
IL_0021: callvirt System.Collections.Generic.List`1<Verse.BodyPartRecord>
Verse.BodyDef::get_AllParts()
IL_0026: ldarg.0
IL_0027: ldftn System.Boolean
RimWorld.HediffComp_DissolveGearOnDeath::<Notify_PawnDied>b__2_0(Verse.BodyPartReco
rd part)
IL_002D: newobj System.Void System.Func`2<Verse.BodyPartRecord,
System.Boolean>::.ctor(System.Object object, System.IntPtr method)
IL_0032: call static
System.Collections.Generic.IEnumerable`1<Verse.BodyPartRecord>
System.Linq.Enumerable::Where(System.Collections.Generic.IEnumerable`1<Verse.BodyPa
rtRecord> source, System.Func`2<Verse.BodyPartRecord, System.Boolean> predicate)
IL_0037: newobj System.Void
System.Collections.Generic.List`1<Verse.BodyPartRecord>::.ctor(System.Collections.G
eneric.IEnumerable`1<Verse.BodyPartRecord> collection)
IL_003C: stloc.0
IL_003D: ldarg.0
IL_003E: call RimWorld.HediffCompProperties_DissolveGearOnDeath
RimWorld.HediffComp_DissolveGearOnDeath::get_Props()
IL_0043: ldflda Verse.IntRange
RimWorld.HediffCompProperties_DissolveGearOnDeath::injuryCount
IL_0048: call System.Int32 Verse.IntRange::get_RandomInRange()
IL_004D: ldloc.0
IL_004E: callvirt virtual System.Int32
System.Collections.Generic.List`1<Verse.BodyPartRecord>::get_Count()
IL_0053: call static System.Int32 UnityEngine.Mathf::Min(System.Int32 a,
System.Int32 b)
IL_0058: stloc.1
IL_0059: ldc.i4.0
IL_005A: stloc.2
IL_005B: br => Label1
IL_0060: Label2
IL_0060: ldc.i4.0
IL_0061: ldloc.0
IL_0062: callvirt virtual System.Int32
System.Collections.Generic.List`1<Verse.BodyPartRecord>::get_Count()
IL_0067: call static System.Int32 Verse.Rand::Range(System.Int32 min,
System.Int32 max)
IL_006C: stloc.3
IL_006D: ldloc.0
IL_006E: ldloc.3
IL_006F: callvirt virtual Verse.BodyPartRecord
System.Collections.Generic.List`1<Verse.BodyPartRecord>::get_Item(System.Int32
index)
IL_0074: stloc.s 4 (Verse.BodyPartRecord)
IL_0076: ldloc.0
IL_0077: ldloc.3
IL_0078: callvirt virtual System.Void
System.Collections.Generic.List`1<Verse.BodyPartRecord>::RemoveAt(System.Int32
index)
IL_007D: ldarg.0
IL_007E: call Verse.Pawn Verse.HediffComp::get_Pawn()
IL_0083: ldfld Verse.Pawn_HealthTracker Verse.Pawn::health
IL_0088: ldarg.0
IL_0089: call RimWorld.HediffCompProperties_DissolveGearOnDeath
RimWorld.HediffComp_DissolveGearOnDeath::get_Props()
IL_008E: ldfld Verse.HediffDef
RimWorld.HediffCompProperties_DissolveGearOnDeath::injuryCreatedOnDeath
IL_0093: ldloc.s 4 (Verse.BodyPartRecord)
IL_0095: ldloca.s 5 (System.Nullable`1[Verse.DamageInfo])
IL_0097: initobj System.Nullable`1[Verse.DamageInfo]
IL_009D: ldloc.s 5 (System.Nullable`1[Verse.DamageInfo])
IL_009F: ldnull
IL_00A0: callvirt Verse.Hediff
Verse.Pawn_HealthTracker::AddHediff(Verse.HediffDef def, Verse.BodyPartRecord part,
System.Nullable`1<Verse.DamageInfo> dinfo, Verse.DamageResult result)
IL_00A5: pop
IL_00A6: ldloc.2
IL_00A7: ldc.i4.1
IL_00A8: add
IL_00A9: stloc.2
IL_00AA: Label1
IL_00AA: ldloc.2
IL_00AB: ldloc.1
IL_00AC: blt => Label2
IL_00B1: // end original
IL_00B1: Label0
IL_00B1: ret
DONE

### Patch: System.Void


RimWorld.Planet.WITab_Caravan_Gear::TryEquipDraggedItem(Verse.Pawn p)
### Replacement: static System.Void
RimWorld.Planet.WITab_Caravan_Gear::RimWorld.Planet.WITab_Caravan_Gear.TryEquipDrag
gedItem_Patch0(RimWorld.Planet.WITab_Caravan_Gear this, Verse.Pawn p)
IL_0000: Local var 0: RimWorld.Planet.WITab_Caravan_Gear/<>c__DisplayClass41_0
IL_0000: Local var 1: System.String
IL_0000: Local var 2: RimWorld.Apparel
IL_0000: Local var 3: System.Int32
IL_0000: Local var 4: Verse.Pawn
IL_0000: Local var 5: System.String
IL_0000: // start original
IL_0000: newobj System.Void RimWorld.Planet.<>c__DisplayClass41_0::.ctor()
IL_0005: stloc.0
IL_0006: ldloc.0
IL_0007: ldarg.1
IL_0008: stfld Verse.Pawn RimWorld.Planet.<>c__DisplayClass41_0::p
IL_000D: ldloc.0
IL_000E: ldarg.0
IL_000F: stfld RimWorld.Planet.WITab_Caravan_Gear
RimWorld.Planet.<>c__DisplayClass41_0::<>4__this
IL_0014: ldarg.0
IL_0015: ldc.i4.0
IL_0016: stfld System.Boolean
RimWorld.Planet.WITab_Caravan_Gear::droppedDraggedItem
IL_001B: ldarg.0
IL_001C: ldfld Verse.Thing RimWorld.Planet.WITab_Caravan_Gear::draggedItem
IL_0021: ldloc.0
IL_0022: ldfld Verse.Pawn RimWorld.Planet.<>c__DisplayClass41_0::p
IL_0027: ldloca.s 1 (System.String)
IL_0029: ldc.i4.1
IL_002A: call static System.Boolean
RimWorld.EquipmentUtility::CanEquip(Verse.Thing thing, Verse.Pawn pawn,
System.String& cantReason, System.Boolean checkBonded)
IL_002F: brtrue => Label0
IL_0034: ldstr "MessageCantEquipCustom"
IL_0039: ldloc.1
IL_003A: call static System.String
Verse.GenText::CapitalizeFirst(System.String str)
IL_003F: call static Verse.NamedArgument
Verse.NamedArgument::op_Implicit(System.String value)
IL_0044: call static Verse.TaggedString
Verse.TranslatorFormattedStringExtensions::Translate(System.String key,
Verse.NamedArgument arg1)
IL_0049: call static System.String
Verse.TaggedString::op_Implicit(Verse.TaggedString taggedString)
IL_004E: ldloc.0
IL_004F: ldfld Verse.Pawn RimWorld.Planet.<>c__DisplayClass41_0::p
IL_0054: call static Verse.LookTargets
Verse.LookTargets::op_Implicit(Verse.Thing t)
IL_0059: ldsfld Verse.MessageTypeDef RimWorld.MessageTypeDefOf::RejectInput
IL_005E: ldc.i4.0
IL_005F: call static System.Void Verse.Messages::Message(System.String text,
Verse.LookTargets lookTargets, Verse.MessageTypeDef def, System.Boolean historical)
IL_0064: ldarg.0
IL_0065: ldnull
IL_0066: stfld Verse.Thing RimWorld.Planet.WITab_Caravan_Gear::draggedItem
IL_006B: br => Label24
IL_0070: Label0
IL_0070: ldarg.0
IL_0071: ldfld Verse.Thing RimWorld.Planet.WITab_Caravan_Gear::draggedItem
IL_0076: ldfld Verse.ThingDef Verse.Thing::def
IL_007B: callvirt System.Boolean Verse.ThingDef::get_IsWeapon()
IL_0080: brfalse => Label1
IL_0085: ldloc.0
IL_0086: ldfld Verse.Pawn RimWorld.Planet.<>c__DisplayClass41_0::p
IL_008B: ldfld RimWorld.Pawn_GuestTracker Verse.Pawn::guest
IL_0090: callvirt System.Boolean RimWorld.Pawn_GuestTracker::get_IsPrisoner()
IL_0095: brfalse => Label2
IL_009A: ldstr "MessageCantEquipCustom"
IL_009F: ldstr "MessagePrisonerCannotEquipWeapon"
IL_00A4: ldloc.0
IL_00A5: ldfld Verse.Pawn RimWorld.Planet.<>c__DisplayClass41_0::p
IL_00AA: ldstr "PAWN"
IL_00AF: call static Verse.NamedArgument
Verse.NamedArgumentUtility::Named(System.Object arg, System.String label)
IL_00B4: call static Verse.TaggedString
Verse.TranslatorFormattedStringExtensions::Translate(System.String key,
Verse.NamedArgument arg1)
IL_00B9: call static Verse.NamedArgument
Verse.NamedArgument::op_Implicit(Verse.TaggedString value)
IL_00BE: call static Verse.TaggedString
Verse.TranslatorFormattedStringExtensions::Translate(System.String key,
Verse.NamedArgument arg1)
IL_00C3: call static System.String
Verse.TaggedString::op_Implicit(Verse.TaggedString taggedString)
IL_00C8: ldloc.0
IL_00C9: ldfld Verse.Pawn RimWorld.Planet.<>c__DisplayClass41_0::p
IL_00CE: call static Verse.LookTargets
Verse.LookTargets::op_Implicit(Verse.Thing t)
IL_00D3: ldsfld Verse.MessageTypeDef RimWorld.MessageTypeDefOf::RejectInput
IL_00D8: ldc.i4.0
IL_00D9: call static System.Void Verse.Messages::Message(System.String text,
Verse.LookTargets lookTargets, Verse.MessageTypeDef def, System.Boolean historical)
IL_00DE: ldarg.0
IL_00DF: ldnull
IL_00E0: stfld Verse.Thing RimWorld.Planet.WITab_Caravan_Gear::draggedItem
IL_00E5: br => Label25
IL_00EA: Label2
IL_00EA: ldloc.0
IL_00EB: ldfld Verse.Pawn RimWorld.Planet.<>c__DisplayClass41_0::p
IL_00F0: ldc.i4.8
IL_00F1: callvirt System.Boolean Verse.Pawn::WorkTagIsDisabled(Verse.WorkTags w)
IL_00F6: brfalse => Label3
IL_00FB: ldstr "MessageCantEquipIncapableOfViolence"
IL_0100: ldloc.0
IL_0101: ldfld Verse.Pawn RimWorld.Planet.<>c__DisplayClass41_0::p
IL_0106: callvirt virtual System.String Verse.Entity::get_LabelShort()
IL_010B: call static Verse.NamedArgument
Verse.NamedArgument::op_Implicit(System.String value)
IL_0110: ldloc.0
IL_0111: ldfld Verse.Pawn RimWorld.Planet.<>c__DisplayClass41_0::p
IL_0116: call static Verse.NamedArgument
Verse.NamedArgument::op_Implicit(Verse.Thing value)
IL_011B: call static Verse.TaggedString
Verse.TranslatorFormattedStringExtensions::Translate(System.String key,
Verse.NamedArgument arg1, Verse.NamedArgument arg2)
IL_0120: call static System.String
Verse.TaggedString::op_Implicit(Verse.TaggedString taggedString)
IL_0125: ldloc.0
IL_0126: ldfld Verse.Pawn RimWorld.Planet.<>c__DisplayClass41_0::p
IL_012B: call static Verse.LookTargets
Verse.LookTargets::op_Implicit(Verse.Thing t)
IL_0130: ldsfld Verse.MessageTypeDef RimWorld.MessageTypeDefOf::RejectInput
IL_0135: ldc.i4.0
IL_0136: call static System.Void Verse.Messages::Message(System.String text,
Verse.LookTargets lookTargets, Verse.MessageTypeDef def, System.Boolean historical)
IL_013B: ldarg.0
IL_013C: ldnull
IL_013D: stfld Verse.Thing RimWorld.Planet.WITab_Caravan_Gear::draggedItem
IL_0142: br => Label26
IL_0147: Label3
IL_0147: ldloc.0
IL_0148: ldfld Verse.Pawn RimWorld.Planet.<>c__DisplayClass41_0::p
IL_014D: ldc.i4 524288
IL_0152: callvirt System.Boolean Verse.Pawn::WorkTagIsDisabled(Verse.WorkTags w)
IL_0157: brfalse => Label4
IL_015C: ldarg.0
IL_015D: ldfld Verse.Thing RimWorld.Planet.WITab_Caravan_Gear::draggedItem
IL_0162: ldfld Verse.ThingDef Verse.Thing::def
IL_0167: callvirt System.Boolean Verse.ThingDef::get_IsRangedWeapon()
IL_016C: brfalse => Label5
IL_0171: ldstr "MessageCantEquipIncapableOfShooting"
IL_0176: ldloc.0
IL_0177: ldfld Verse.Pawn RimWorld.Planet.<>c__DisplayClass41_0::p
IL_017C: callvirt virtual System.String Verse.Entity::get_LabelShort()
IL_0181: call static Verse.NamedArgument
Verse.NamedArgument::op_Implicit(System.String value)
IL_0186: ldloc.0
IL_0187: ldfld Verse.Pawn RimWorld.Planet.<>c__DisplayClass41_0::p
IL_018C: call static Verse.NamedArgument
Verse.NamedArgument::op_Implicit(Verse.Thing value)
IL_0191: call static Verse.TaggedString
Verse.TranslatorFormattedStringExtensions::Translate(System.String key,
Verse.NamedArgument arg1, Verse.NamedArgument arg2)
IL_0196: call static System.String
Verse.TaggedString::op_Implicit(Verse.TaggedString taggedString)
IL_019B: ldloc.0
IL_019C: ldfld Verse.Pawn RimWorld.Planet.<>c__DisplayClass41_0::p
IL_01A1: call static Verse.LookTargets
Verse.LookTargets::op_Implicit(Verse.Thing t)
IL_01A6: ldsfld Verse.MessageTypeDef RimWorld.MessageTypeDefOf::RejectInput
IL_01AB: ldc.i4.0
IL_01AC: call static System.Void Verse.Messages::Message(System.String text,
Verse.LookTargets lookTargets, Verse.MessageTypeDef def, System.Boolean historical)
IL_01B1: ldarg.0
IL_01B2: ldnull
IL_01B3: stfld Verse.Thing RimWorld.Planet.WITab_Caravan_Gear::draggedItem
IL_01B8: br => Label27
IL_01BD: Label4
IL_01BD: Label5
IL_01BD: ldloc.0
IL_01BE: ldfld Verse.Pawn RimWorld.Planet.<>c__DisplayClass41_0::p
IL_01C3: ldfld Verse.Pawn_HealthTracker Verse.Pawn::health
IL_01C8: ldfld Verse.PawnCapacitiesHandler
Verse.Pawn_HealthTracker::capacities
IL_01CD: ldsfld Verse.PawnCapacityDef RimWorld.PawnCapacityDefOf::Manipulation
IL_01D2: callvirt System.Boolean
Verse.PawnCapacitiesHandler::CapableOf(Verse.PawnCapacityDef capacity)
IL_01D7: brtrue => Label6
IL_01DC: ldstr "MessageCantEquipIncapableOfManipulation"
IL_01E1: call static Verse.TaggedString
Verse.Translator::Translate(System.String key)
IL_01E6: call static System.String
Verse.TaggedString::op_Implicit(Verse.TaggedString taggedString)
IL_01EB: ldloc.0
IL_01EC: ldfld Verse.Pawn RimWorld.Planet.<>c__DisplayClass41_0::p
IL_01F1: call static Verse.LookTargets
Verse.LookTargets::op_Implicit(Verse.Thing t)
IL_01F6: ldsfld Verse.MessageTypeDef RimWorld.MessageTypeDefOf::RejectInput
IL_01FB: ldc.i4.0
IL_01FC: call static System.Void Verse.Messages::Message(System.String text,
Verse.LookTargets lookTargets, Verse.MessageTypeDef def, System.Boolean historical)
IL_0201: ldarg.0
IL_0202: ldnull
IL_0203: stfld Verse.Thing RimWorld.Planet.WITab_Caravan_Gear::draggedItem
IL_0208: br => Label28
IL_020D: Label1
IL_020D: Label6
IL_020D: ldarg.0
IL_020E: ldfld Verse.Thing RimWorld.Planet.WITab_Caravan_Gear::draggedItem
IL_0213: isinst RimWorld.Apparel
IL_0218: stloc.2
IL_0219: ldloc.0
IL_021A: ldarg.0
IL_021B: ldfld Verse.Thing RimWorld.Planet.WITab_Caravan_Gear::draggedItem
IL_0220: isinst Verse.ThingWithComps
IL_0225: stfld Verse.ThingWithComps
RimWorld.Planet.<>c__DisplayClass41_0::thingWithComps
IL_022A: ldloc.2
IL_022B: brfalse => Label7
IL_0230: ldloc.0
IL_0231: ldfld Verse.Pawn RimWorld.Planet.<>c__DisplayClass41_0::p
IL_0236: ldfld RimWorld.Pawn_ApparelTracker Verse.Pawn::apparel
IL_023B: brfalse => Label8
IL_0240: ldloc.0
IL_0241: ldfld Verse.Pawn RimWorld.Planet.<>c__DisplayClass41_0::p
IL_0246: ldloc.2
IL_0247: ldfld Verse.ThingDef Verse.Thing::def
IL_024C: call static System.Boolean
RimWorld.ApparelUtility::HasPartsToWear(Verse.Pawn p, Verse.ThingDef apparel)
IL_0251: brtrue => Label9
IL_0256: ldstr "MessageCantWearApparelMissingBodyParts"
IL_025B: ldloc.0
IL_025C: ldfld Verse.Pawn RimWorld.Planet.<>c__DisplayClass41_0::p
IL_0261: callvirt virtual System.String Verse.Entity::get_LabelShort()
IL_0266: call static Verse.NamedArgument
Verse.NamedArgument::op_Implicit(System.String value)
IL_026B: ldloc.0
IL_026C: ldfld Verse.Pawn RimWorld.Planet.<>c__DisplayClass41_0::p
IL_0271: call static Verse.NamedArgument
Verse.NamedArgument::op_Implicit(Verse.Thing value)
IL_0276: call static Verse.TaggedString
Verse.TranslatorFormattedStringExtensions::Translate(System.String key,
Verse.NamedArgument arg1, Verse.NamedArgument arg2)
IL_027B: call static System.String
Verse.TaggedString::op_Implicit(Verse.TaggedString taggedString)
IL_0280: ldloc.0
IL_0281: ldfld Verse.Pawn RimWorld.Planet.<>c__DisplayClass41_0::p
IL_0286: call static Verse.LookTargets
Verse.LookTargets::op_Implicit(Verse.Thing t)
IL_028B: ldsfld Verse.MessageTypeDef RimWorld.MessageTypeDefOf::RejectInput
IL_0290: ldc.i4.0
IL_0291: call static System.Void Verse.Messages::Message(System.String text,
Verse.LookTargets lookTargets, Verse.MessageTypeDef def, System.Boolean historical)
IL_0296: ldarg.0
IL_0297: ldnull
IL_0298: stfld Verse.Thing RimWorld.Planet.WITab_Caravan_Gear::draggedItem
IL_029D: br => Label29
IL_02A2: Label9
IL_02A2: ldarg.0
IL_02A3: ldloc.2
IL_02A4: call Verse.Pawn
RimWorld.Planet.WITab_Caravan_Gear::CurrentWearerOf(Verse.Thing t)
IL_02A9: brfalse => Label10
IL_02AE: ldarg.0
IL_02AF: ldloc.2
IL_02B0: call Verse.Pawn
RimWorld.Planet.WITab_Caravan_Gear::CurrentWearerOf(Verse.Thing t)
IL_02B5: ldfld RimWorld.Pawn_ApparelTracker Verse.Pawn::apparel
IL_02BA: ldloc.2
IL_02BB: callvirt System.Boolean
RimWorld.Pawn_ApparelTracker::IsLocked(RimWorld.Apparel apparel)
IL_02C0: brfalse => Label11
IL_02C5: ldstr "MessageCantUnequipLockedApparel"
IL_02CA: call static Verse.TaggedString
Verse.Translator::Translate(System.String key)
IL_02CF: call static System.String
Verse.TaggedString::op_Implicit(Verse.TaggedString taggedString)
IL_02D4: ldloc.0
IL_02D5: ldfld Verse.Pawn RimWorld.Planet.<>c__DisplayClass41_0::p
IL_02DA: call static Verse.LookTargets
Verse.LookTargets::op_Implicit(Verse.Thing t)
IL_02DF: ldsfld Verse.MessageTypeDef RimWorld.MessageTypeDefOf::RejectInput
IL_02E4: ldc.i4.0
IL_02E5: call static System.Void Verse.Messages::Message(System.String text,
Verse.LookTargets lookTargets, Verse.MessageTypeDef def, System.Boolean historical)
IL_02EA: ldarg.0
IL_02EB: ldnull
IL_02EC: stfld Verse.Thing RimWorld.Planet.WITab_Caravan_Gear::draggedItem
IL_02F1: br => Label30
IL_02F6: Label10
IL_02F6: Label11
IL_02F6: ldloc.0
IL_02F7: ldfld Verse.Pawn RimWorld.Planet.<>c__DisplayClass41_0::p
IL_02FC: ldfld RimWorld.Pawn_ApparelTracker Verse.Pawn::apparel
IL_0301: ldloc.2
IL_0302: callvirt System.Boolean
RimWorld.Pawn_ApparelTracker::WouldReplaceLockedApparel(RimWorld.Apparel
newApparel)
IL_0307: brfalse => Label12
IL_030C: ldstr "MessageWouldReplaceLockedApparel"
IL_0311: ldloc.0
IL_0312: ldfld Verse.Pawn RimWorld.Planet.<>c__DisplayClass41_0::p
IL_0317: callvirt virtual System.String Verse.Entity::get_LabelShort()
IL_031C: call static Verse.NamedArgument
Verse.NamedArgument::op_Implicit(System.String value)
IL_0321: ldloc.0
IL_0322: ldfld Verse.Pawn RimWorld.Planet.<>c__DisplayClass41_0::p
IL_0327: call static Verse.NamedArgument
Verse.NamedArgument::op_Implicit(Verse.Thing value)
IL_032C: call static Verse.TaggedString
Verse.TranslatorFormattedStringExtensions::Translate(System.String key,
Verse.NamedArgument arg1, Verse.NamedArgument arg2)
IL_0331: call static System.String
Verse.TaggedString::op_Implicit(Verse.TaggedString taggedString)
IL_0336: ldloc.0
IL_0337: ldfld Verse.Pawn RimWorld.Planet.<>c__DisplayClass41_0::p
IL_033C: call static Verse.LookTargets
Verse.LookTargets::op_Implicit(Verse.Thing t)
IL_0341: ldsfld Verse.MessageTypeDef RimWorld.MessageTypeDefOf::RejectInput
IL_0346: ldc.i4.0
IL_0347: call static System.Void Verse.Messages::Message(System.String text,
Verse.LookTargets lookTargets, Verse.MessageTypeDef def, System.Boolean historical)
IL_034C: ldarg.0
IL_034D: ldnull
IL_034E: stfld Verse.Thing RimWorld.Planet.WITab_Caravan_Gear::draggedItem
IL_0353: br => Label31
IL_0358: Label12
IL_0358: ldsfld System.Collections.Generic.List`1<RimWorld.Apparel>
RimWorld.Planet.WITab_Caravan_Gear::tmpExistingApparel
IL_035D: callvirt virtual System.Void
System.Collections.Generic.List`1<RimWorld.Apparel>::Clear()
IL_0362: ldsfld System.Collections.Generic.List`1<RimWorld.Apparel>
RimWorld.Planet.WITab_Caravan_Gear::tmpExistingApparel
IL_0367: ldloc.0
IL_0368: ldfld Verse.Pawn RimWorld.Planet.<>c__DisplayClass41_0::p
IL_036D: ldfld RimWorld.Pawn_ApparelTracker Verse.Pawn::apparel
IL_0372: callvirt System.Collections.Generic.List`1<RimWorld.Apparel>
RimWorld.Pawn_ApparelTracker::get_WornApparel()
IL_0377: callvirt System.Void
System.Collections.Generic.List`1<RimWorld.Apparel>::AddRange(System.Collections.Ge
neric.IEnumerable`1<RimWorld.Apparel> collection)
IL_037C: ldc.i4.0
IL_037D: stloc.3
IL_037E: br => Label13
IL_0383: Label17
IL_0383: ldloc.2
IL_0384: ldfld Verse.ThingDef Verse.Thing::def
IL_0389: ldsfld System.Collections.Generic.List`1<RimWorld.Apparel>
RimWorld.Planet.WITab_Caravan_Gear::tmpExistingApparel
IL_038E: ldloc.3
IL_038F: callvirt virtual RimWorld.Apparel
System.Collections.Generic.List`1<RimWorld.Apparel>::get_Item(System.Int32 index)
IL_0394: ldfld Verse.ThingDef Verse.Thing::def
IL_0399: ldloc.0
IL_039A: ldfld Verse.Pawn RimWorld.Planet.<>c__DisplayClass41_0::p
IL_039F: call static Verse.BodyDef
AlienRace.HarmonyPatches::ReplacedBody(Verse.Pawn pawn)
IL_03A4: call static System.Boolean
RimWorld.ApparelUtility::CanWearTogether(Verse.ThingDef A, Verse.ThingDef B,
Verse.BodyDef body)
IL_03A9: brtrue => Label14
IL_03AE: ldloc.0
IL_03AF: ldfld Verse.Pawn RimWorld.Planet.<>c__DisplayClass41_0::p
IL_03B4: ldfld RimWorld.Pawn_ApparelTracker Verse.Pawn::apparel
IL_03B9: ldsfld System.Collections.Generic.List`1<RimWorld.Apparel>
RimWorld.Planet.WITab_Caravan_Gear::tmpExistingApparel
IL_03BE: ldloc.3
IL_03BF: callvirt virtual RimWorld.Apparel
System.Collections.Generic.List`1<RimWorld.Apparel>::get_Item(System.Int32 index)
IL_03C4: callvirt System.Void
RimWorld.Pawn_ApparelTracker::Remove(RimWorld.Apparel ap)
IL_03C9: ldsfld System.Collections.Generic.List`1<RimWorld.Apparel>
RimWorld.Planet.WITab_Caravan_Gear::tmpExistingApparel
IL_03CE: ldloc.3
IL_03CF: callvirt virtual RimWorld.Apparel
System.Collections.Generic.List`1<RimWorld.Apparel>::get_Item(System.Int32 index)
IL_03D4: ldarg.0
IL_03D5: call System.Collections.Generic.List`1<Verse.Pawn>
RimWorld.Planet.WITab_Caravan_Gear::get_Pawns()
IL_03DA: ldnull
IL_03DB: ldnull
IL_03DC: call static Verse.Pawn
RimWorld.Planet.CaravanInventoryUtility::FindPawnToMoveInventoryTo(Verse.Thing
item, System.Collections.Generic.List`1<Verse.Pawn> candidates,
System.Collections.Generic.List`1<Verse.Pawn> ignoreCandidates, Verse.Pawn
currentItemOwner)
IL_03E1: stloc.s 4 (Verse.Pawn)
IL_03E3: ldloc.s 4 (Verse.Pawn)
IL_03E5: brfalse => Label15
IL_03EA: ldloc.s 4 (Verse.Pawn)
IL_03EC: ldfld Verse.Pawn_InventoryTracker Verse.Pawn::inventory
IL_03F1: ldfld Verse.ThingOwner`1<Verse.Thing>
Verse.Pawn_InventoryTracker::innerContainer
IL_03F6: ldsfld System.Collections.Generic.List`1<RimWorld.Apparel>
RimWorld.Planet.WITab_Caravan_Gear::tmpExistingApparel
IL_03FB: ldloc.3
IL_03FC: callvirt virtual RimWorld.Apparel
System.Collections.Generic.List`1<RimWorld.Apparel>::get_Item(System.Int32 index)
IL_0401: ldc.i4.1
IL_0402: callvirt abstract virtual System.Boolean
Verse.ThingOwner::TryAdd(Verse.Thing item, System.Boolean
canMergeWithExistingStacks)
IL_0407: pop
IL_0408: br => Label16
IL_040D: Label15
IL_040D: ldstr "Could not find any pawn to move "
IL_0412: ldsfld System.Collections.Generic.List`1<RimWorld.Apparel>
RimWorld.Planet.WITab_Caravan_Gear::tmpExistingApparel
IL_0417: ldloc.3
IL_0418: callvirt virtual RimWorld.Apparel
System.Collections.Generic.List`1<RimWorld.Apparel>::get_Item(System.Int32 index)
IL_041D: ldstr " to."
IL_0422: call static System.String System.String::Concat(System.Object arg0,
System.Object arg1, System.Object arg2)
IL_0427: call static System.Void Verse.Log::Warning(System.String text)
IL_042C: ldsfld System.Collections.Generic.List`1<RimWorld.Apparel>
RimWorld.Planet.WITab_Caravan_Gear::tmpExistingApparel
IL_0431: ldloc.3
IL_0432: callvirt virtual RimWorld.Apparel
System.Collections.Generic.List`1<RimWorld.Apparel>::get_Item(System.Int32 index)
IL_0437: ldc.i4.0
IL_0438: callvirt virtual System.Void Verse.Thing::Destroy(Verse.DestroyMode
mode)
IL_043D: Label14
IL_043D: Label16
IL_043D: ldloc.3
IL_043E: ldc.i4.1
IL_043F: add
IL_0440: stloc.3
IL_0441: Label13
IL_0441: ldloc.3
IL_0442: ldsfld System.Collections.Generic.List`1<RimWorld.Apparel>
RimWorld.Planet.WITab_Caravan_Gear::tmpExistingApparel
IL_0447: callvirt virtual System.Int32
System.Collections.Generic.List`1<RimWorld.Apparel>::get_Count()
IL_044C: blt => Label17
IL_0451: ldloc.0
IL_0452: ldfld Verse.Pawn RimWorld.Planet.<>c__DisplayClass41_0::p
IL_0457: ldfld RimWorld.Pawn_ApparelTracker Verse.Pawn::apparel
IL_045C: ldloc.2
IL_045D: ldc.i4.1
IL_045E: callvirt virtual Verse.Thing Verse.Thing::SplitOff(System.Int32 count)
IL_0463: castclass RimWorld.Apparel
IL_0468: ldc.i4.0
IL_0469: ldc.i4.0
IL_046A: callvirt System.Void RimWorld.Pawn_ApparelTracker::Wear(RimWorld.Apparel
newApparel, System.Boolean dropReplacedApparel, System.Boolean locked)
IL_046F: ldloc.0
IL_0470: ldfld Verse.Pawn RimWorld.Planet.<>c__DisplayClass41_0::p
IL_0475: ldfld RimWorld.Pawn_OutfitTracker Verse.Pawn::outfits
IL_047A: brfalse => Label18
IL_047F: ldloc.0
IL_0480: ldfld Verse.Pawn RimWorld.Planet.<>c__DisplayClass41_0::p
IL_0485: ldfld RimWorld.Pawn_OutfitTracker Verse.Pawn::outfits
IL_048A: ldfld RimWorld.OutfitForcedHandler
RimWorld.Pawn_OutfitTracker::forcedHandler
IL_048F: ldloc.2
IL_0490: ldc.i4.1
IL_0491: callvirt System.Void
RimWorld.OutfitForcedHandler::SetForced(RimWorld.Apparel ap, System.Boolean forced)
IL_0496: br => Label19
IL_049B: Label7
IL_049B: Label8
IL_049B: ldloc.0
IL_049C: ldfld Verse.ThingWithComps
RimWorld.Planet.<>c__DisplayClass41_0::thingWithComps
IL_04A1: brfalse => Label20
IL_04A6: ldloc.0
IL_04A7: ldfld Verse.Pawn RimWorld.Planet.<>c__DisplayClass41_0::p
IL_04AC: ldfld Verse.Pawn_EquipmentTracker Verse.Pawn::equipment
IL_04B1: brfalse => Label21
IL_04B6: ldarg.0
IL_04B7: ldfld Verse.Thing RimWorld.Planet.WITab_Caravan_Gear::draggedItem
IL_04BC: ldloc.0
IL_04BD: ldfld Verse.Pawn RimWorld.Planet.<>c__DisplayClass41_0::p
IL_04C2: call static System.String
RimWorld.EquipmentUtility::GetPersonaWeaponConfirmationText(Verse.Thing item,
Verse.Pawn p)
IL_04C7: stloc.s 5 (System.String)
IL_04C9: ldloc.s 5 (System.String)
IL_04CB: call static System.Boolean Verse.GenText::NullOrEmpty(System.String
str)
IL_04D0: brtrue => Label22
IL_04D5: ldarg.0
IL_04D6: ldfld Verse.Thing RimWorld.Planet.WITab_Caravan_Gear::draggedItem
IL_04DB: pop
IL_04DC: call static Verse.WindowStack Verse.Find::get_WindowStack()
IL_04E1: ldloc.s 5 (System.String)
IL_04E3: call static Verse.TaggedString
Verse.TaggedString::op_Implicit(System.String str)
IL_04E8: ldstr "Yes"
IL_04ED: call static Verse.TaggedString
Verse.Translator::Translate(System.String key)
IL_04F2: call static System.String
Verse.TaggedString::op_Implicit(Verse.TaggedString taggedString)
IL_04F7: ldloc.0
IL_04F8: ldftn System.Void
RimWorld.Planet.<>c__DisplayClass41_0::<TryEquipDraggedItem>b__1()
IL_04FE: newobj System.Void System.Action::.ctor(System.Object object,
System.IntPtr method)
IL_0503: ldstr "No"
IL_0508: call static Verse.TaggedString
Verse.Translator::Translate(System.String key)
IL_050D: call static System.String
Verse.TaggedString::op_Implicit(Verse.TaggedString taggedString)
IL_0512: ldnull
IL_0513: ldnull
IL_0514: ldc.i4.0
IL_0515: ldnull
IL_0516: ldnull
IL_0517: ldc.i4.1
IL_0518: newobj System.Void Verse.Dialog_MessageBox::.ctor(Verse.TaggedString
text, System.String buttonAText, System.Action buttonAAction, System.String
buttonBText, System.Action buttonBAction, System.String title, System.Boolean
buttonADestructive, System.Action acceptAction, System.Action cancelAction,
Verse.WindowLayer layer)
IL_051D: callvirt System.Void Verse.WindowStack::Add(Verse.Window window)
IL_0522: ldarg.0
IL_0523: ldnull
IL_0524: stfld Verse.Thing RimWorld.Planet.WITab_Caravan_Gear::draggedItem
IL_0529: br => Label32
IL_052E: Label22
IL_052E: ldloc.0
IL_052F: callvirt System.Void
RimWorld.Planet.<>c__DisplayClass41_0::<TryEquipDraggedItem>g__AddEquipment|0()
IL_0534: br => Label23
IL_0539: Label20
IL_0539: Label21
IL_0539: ldc.i4.4
IL_053A: newarr System.Object
IL_053F: dup
IL_0540: ldc.i4.0
IL_0541: ldstr "Could not make "
IL_0546: stelem.ref
IL_0547: dup
IL_0548: ldc.i4.1
IL_0549: ldloc.0
IL_054A: ldfld Verse.Pawn RimWorld.Planet.<>c__DisplayClass41_0::p
IL_054F: stelem.ref
IL_0550: dup
IL_0551: ldc.i4.2
IL_0552: ldstr " equip or wear "
IL_0557: stelem.ref
IL_0558: dup
IL_0559: ldc.i4.3
IL_055A: ldarg.0
IL_055B: ldfld Verse.Thing RimWorld.Planet.WITab_Caravan_Gear::draggedItem
IL_0560: stelem.ref
IL_0561: call static System.String System.String::Concat(System.Object[]
args)
IL_0566: call static System.Void Verse.Log::Warning(System.String text)
IL_056B: Label18
IL_056B: Label19
IL_056B: Label23
IL_056B: ldarg.0
IL_056C: ldnull
IL_056D: stfld Verse.Thing RimWorld.Planet.WITab_Caravan_Gear::draggedItem
IL_0572: // end original
IL_0572: Label24
IL_0572: Label25
IL_0572: Label26
IL_0572: Label27
IL_0572: Label28
IL_0572: Label29
IL_0572: Label30
IL_0572: Label31
IL_0572: Label32
IL_0572: ret
DONE
### Patch: System.Void RimWorld.Planet.WITab_Caravan_Health::DoRow(UnityEngine.Rect
rect, Verse.Pawn p)
### Replacement: static System.Void
RimWorld.Planet.WITab_Caravan_Health::RimWorld.Planet.WITab_Caravan_Health.DoRow_Pa
tch0(RimWorld.Planet.WITab_Caravan_Health this, UnityEngine.Rect rect, Verse.Pawn
p)
IL_0000: Local var 0: UnityEngine.Rect
IL_0000: Local var 1: UnityEngine.Rect
IL_0000: Local var 2: UnityEngine.Rect
IL_0000: Local var 3: System.Single
IL_0000: Local var 4: System.Nullable`1<Verse.Rot4>
IL_0000: Local var 5: System.Collections.Generic.List`1<Verse.PawnCapacityDef>
IL_0000: Local var 6: UnityEngine.Rect
IL_0000: Local var 7: System.Int32
IL_0000: Local var 8: UnityEngine.Rect
IL_0000: Local var 9: UnityEngine.Vector2
IL_0000: // start original
IL_0000: ldarg.1
IL_0001: call static System.Void Verse.Widgets::BeginGroup(UnityEngine.Rect
rect)
IL_0006: ldarg.1
IL_0007: call static UnityEngine.Rect Verse.GenUI::AtZero(UnityEngine.Rect
rect)
IL_000C: stloc.0
IL_000D: ldloc.0
IL_000E: ldarg.2
IL_000F: ldarg.0
IL_0010: call RimWorld.Planet.Caravan RimWorld.Planet.WITab::get_SelCaravan()
IL_0015: call static System.Void
RimWorld.Planet.CaravanThingsTabUtility::DoAbandonButton(UnityEngine.Rect rowRect,
Verse.Thing t, RimWorld.Planet.Caravan caravan)
IL_001A: ldloca.s 0 (UnityEngine.Rect)
IL_001C: dup
IL_001D: call System.Single UnityEngine.Rect::get_width()
IL_0022: ldc.r4 24
IL_0027: sub
IL_0028: call System.Void UnityEngine.Rect::set_width(System.Single value)
IL_002D: ldloca.s 0 (UnityEngine.Rect)
IL_002F: call System.Single UnityEngine.Rect::get_width()
IL_0034: ldc.r4 24
IL_0039: sub
IL_003A: ldarga.s 1
IL_003C: call System.Single UnityEngine.Rect::get_height()
IL_0041: ldc.r4 24
IL_0046: sub
IL_0047: ldc.r4 2
IL_004C: div
IL_004D: ldarg.2
IL_004E: call static System.Boolean
Verse.Widgets::InfoCardButton(System.Single x, System.Single y, Verse.Thing thing)
IL_0053: pop
IL_0054: ldloca.s 0 (UnityEngine.Rect)
IL_0056: dup
IL_0057: call System.Single UnityEngine.Rect::get_width()
IL_005C: ldc.r4 24
IL_0061: sub
IL_0062: call System.Void UnityEngine.Rect::set_width(System.Single value)
IL_0067: ldloc.0
IL_0068: ldarg.2
IL_0069: ldarg.0
IL_006A: ldflda Verse.Pawn
RimWorld.Planet.WITab_Caravan_Health::specificHealthTabForPawn
IL_006F: call static System.Void
RimWorld.Planet.CaravanThingsTabUtility::DoOpenSpecificTabButton(UnityEngine.Rect
rowRect, Verse.Pawn p, Verse.Pawn& specificTabForPawn)
IL_0074: ldloca.s 0 (UnityEngine.Rect)
IL_0076: dup
IL_0077: call System.Single UnityEngine.Rect::get_width()
IL_007C: ldc.r4 24
IL_0081: sub
IL_0082: call System.Void UnityEngine.Rect::set_width(System.Single value)
IL_0087: ldloc.0
IL_0088: call static System.Boolean Verse.Mouse::IsOver(UnityEngine.Rect
rect)
IL_008D: brfalse => Label0
IL_0092: ldloc.0
IL_0093: call static System.Void
Verse.Widgets::DrawHighlight(UnityEngine.Rect rect)
IL_0098: Label0
IL_0098: ldloca.s 1 (UnityEngine.Rect)
IL_009A: ldc.r4 4
IL_009F: ldarga.s 1
IL_00A1: call System.Single UnityEngine.Rect::get_height()
IL_00A6: ldc.r4 27
IL_00AB: sub
IL_00AC: ldc.r4 2
IL_00B1: div
IL_00B2: ldc.r4 27
IL_00B7: ldc.r4 27
IL_00BC: call System.Void UnityEngine.Rect::.ctor(System.Single x,
System.Single y, System.Single width, System.Single height)
IL_00C1: ldloc.1
IL_00C2: ldarg.2
IL_00C3: ldc.r4 1
IL_00C8: ldloca.s 4 (System.Nullable`1[Verse.Rot4])
IL_00CA: initobj System.Nullable`1[Verse.Rot4]
IL_00D0: ldloc.s 4 (System.Nullable`1[Verse.Rot4])
IL_00D2: ldc.i4.0
IL_00D3: call static System.Void Verse.Widgets::ThingIcon(UnityEngine.Rect
rect, Verse.Thing thing, System.Single alpha, System.Nullable`1<Verse.Rot4> rot,
System.Boolean stackOfOne)
IL_00D8: ldloca.s 2 (UnityEngine.Rect)
IL_00DA: ldloca.s 1 (UnityEngine.Rect)
IL_00DC: call System.Single UnityEngine.Rect::get_xMax()
IL_00E1: ldc.r4 4
IL_00E6: add
IL_00E7: ldc.r4 11
IL_00EC: ldc.r4 100
IL_00F1: ldc.r4 18
IL_00F6: call System.Void UnityEngine.Rect::.ctor(System.Single x,
System.Single y, System.Single width, System.Single height)
IL_00FB: ldarg.2
IL_00FC: ldloc.2
IL_00FD: ldc.r4 1
IL_0102: ldc.r4 100
IL_0107: ldnull
IL_0108: ldc.i4.1
IL_0109: ldc.i4.0
IL_010A: ldc.i4.0
IL_010B: call static System.Void Verse.GenMapUI::DrawPawnLabel(Verse.Pawn
pawn, UnityEngine.Rect bgRect, System.Single alpha, System.Single truncateToWidth,
System.Collections.Generic.Dictionary`2<System.String, System.String>
truncatedLabelsCache, Verse.GameFont font, System.Boolean alwaysDrawBg,
System.Boolean alignCenter)
IL_0110: ldloca.s 2 (UnityEngine.Rect)
IL_0112: call System.Single UnityEngine.Rect::get_xMax()
IL_0117: stloc.3
IL_0118: ldarg.0
IL_0119: ldfld System.Boolean
RimWorld.Planet.WITab_Caravan_Health::compactMode
IL_011E: brtrue => Label1
IL_0123: ldarg.2
IL_0124: callvirt Verse.RaceProperties Verse.Pawn::get_RaceProps()
IL_0129: callvirt System.Boolean Verse.RaceProperties::get_IsFlesh()
IL_012E: brfalse => Label2
IL_0133: ldloca.s 6 (UnityEngine.Rect)
IL_0135: ldloc.3
IL_0136: ldc.r4 0
IL_013B: ldc.r4 100
IL_0140: ldc.r4 40
IL_0145: call System.Void UnityEngine.Rect::.ctor(System.Single x,
System.Single y, System.Single width, System.Single height)
IL_014A: ldarg.0
IL_014B: ldloc.s 6 (UnityEngine.Rect)
IL_014D: ldarg.2
IL_014E: call System.Void
RimWorld.Planet.WITab_Caravan_Health::DoPain(UnityEngine.Rect rect, Verse.Pawn
pawn)
IL_0153: Label2
IL_0153: ldloc.3
IL_0154: ldc.r4 100
IL_0159: add
IL_015A: stloc.3
IL_015B: ldarg.0
IL_015C: call System.Collections.Generic.List`1<Verse.PawnCapacityDef>
RimWorld.Planet.WITab_Caravan_Health::get_CapacitiesToDisplay()
IL_0161: stloc.s 5 (System.Collections.Generic.List`1[Verse.PawnCapacityDef])
IL_0163: ldc.i4.0
IL_0164: stloc.s 7 (System.Int32)
IL_0166: br => Label3
IL_016B: Label12
IL_016B: ldloca.s 8 (UnityEngine.Rect)
IL_016D: ldloc.3
IL_016E: ldc.r4 0
IL_0173: ldc.r4 100
IL_0178: ldc.r4 40
IL_017D: call System.Void UnityEngine.Rect::.ctor(System.Single x,
System.Single y, System.Single width, System.Single height)
IL_0182: ldarg.2
IL_0183: callvirt Verse.RaceProperties Verse.Pawn::get_RaceProps()
IL_0188: callvirt System.Boolean Verse.RaceProperties::get_Humanlike()
IL_018D: brfalse => Label4
IL_0192: ldloc.s 5 (System.Collections.Generic.List`1[Verse.PawnCapacityDef])
IL_0194: ldloc.s 7 (System.Int32)
IL_0196: callvirt virtual Verse.PawnCapacityDef
System.Collections.Generic.List`1<Verse.PawnCapacityDef>::get_Item(System.Int32
index)
IL_019B: ldfld System.Boolean Verse.PawnCapacityDef::showOnHumanlikes
IL_01A0: brfalse => Label5
IL_01A5: Label4
IL_01A5: ldarg.2
IL_01A6: callvirt Verse.RaceProperties Verse.Pawn::get_RaceProps()
IL_01AB: callvirt System.Boolean Verse.RaceProperties::get_Animal()
IL_01B0: brfalse => Label6
IL_01B5: ldloc.s 5 (System.Collections.Generic.List`1[Verse.PawnCapacityDef])
IL_01B7: ldloc.s 7 (System.Int32)
IL_01B9: callvirt virtual Verse.PawnCapacityDef
System.Collections.Generic.List`1<Verse.PawnCapacityDef>::get_Item(System.Int32
index)
IL_01BE: ldfld System.Boolean Verse.PawnCapacityDef::showOnAnimals
IL_01C3: brfalse => Label7
IL_01C8: Label6
IL_01C8: ldarg.2
IL_01C9: callvirt Verse.RaceProperties Verse.Pawn::get_RaceProps()
IL_01CE: callvirt System.Boolean Verse.RaceProperties::get_IsMechanoid()
IL_01D3: brfalse => Label8
IL_01D8: ldloc.s 5 (System.Collections.Generic.List`1[Verse.PawnCapacityDef])
IL_01DA: ldloc.s 7 (System.Int32)
IL_01DC: callvirt virtual Verse.PawnCapacityDef
System.Collections.Generic.List`1<Verse.PawnCapacityDef>::get_Item(System.Int32
index)
IL_01E1: ldfld System.Boolean Verse.PawnCapacityDef::showOnMechanoids
IL_01E6: brfalse => Label9
IL_01EB: Label8
IL_01EB: ldarg.2
IL_01EC: call static Verse.BodyDef
AlienRace.HarmonyPatches::ReplacedBody(Verse.Pawn pawn)
IL_01F1: ldloc.s 5 (System.Collections.Generic.List`1[Verse.PawnCapacityDef])
IL_01F3: ldloc.s 7 (System.Int32)
IL_01F5: callvirt virtual Verse.PawnCapacityDef
System.Collections.Generic.List`1<Verse.PawnCapacityDef>::get_Item(System.Int32
index)
IL_01FA: call static System.Boolean
Verse.PawnCapacityUtility::BodyCanEverDoCapacity(Verse.BodyDef bodyDef,
Verse.PawnCapacityDef capacity)
IL_01FF: brtrue => Label10
IL_0204: Label5
IL_0204: Label7
IL_0204: Label9
IL_0204: ldloc.3
IL_0205: ldc.r4 100
IL_020A: add
IL_020B: stloc.3
IL_020C: br => Label11
IL_0211: Label10
IL_0211: ldarg.0
IL_0212: ldloc.s 8 (UnityEngine.Rect)
IL_0214: ldarg.2
IL_0215: ldloc.s 5 (System.Collections.Generic.List`1[Verse.PawnCapacityDef])
IL_0217: ldloc.s 7 (System.Int32)
IL_0219: callvirt virtual Verse.PawnCapacityDef
System.Collections.Generic.List`1<Verse.PawnCapacityDef>::get_Item(System.Int32
index)
IL_021E: call System.Void
RimWorld.Planet.WITab_Caravan_Health::DoCapacity(UnityEngine.Rect rect, Verse.Pawn
pawn, Verse.PawnCapacityDef capacity)
IL_0223: ldloc.3
IL_0224: ldc.r4 100
IL_0229: add
IL_022A: stloc.3
IL_022B: Label11
IL_022B: ldloc.s 7 (System.Int32)
IL_022D: ldc.i4.1
IL_022E: add
IL_022F: stloc.s 7 (System.Int32)
IL_0231: Label3
IL_0231: ldloc.s 7 (System.Int32)
IL_0233: ldloc.s 5 (System.Collections.Generic.List`1[Verse.PawnCapacityDef])
IL_0235: callvirt virtual System.Int32
System.Collections.Generic.List`1<Verse.PawnCapacityDef>::get_Count()
IL_023A: blt => Label12
IL_023F: Label1
IL_023F: ldarg.0
IL_0240: ldfld System.Boolean
RimWorld.Planet.WITab_Caravan_Health::compactMode
IL_0245: brtrue => Label13
IL_024A: ldloca.s 9 (UnityEngine.Vector2)
IL_024C: ldloc.3
IL_024D: ldc.r4 8
IL_0252: add
IL_0253: ldc.r4 8
IL_0258: call System.Void UnityEngine.Vector2::.ctor(System.Single x,
System.Single y)
IL_025D: ldloc.s 9 (UnityEngine.Vector2)
IL_025F: ldarg.2
IL_0260: ldfld Verse.Pawn_HealthTracker Verse.Pawn::health
IL_0265: ldflda System.Boolean
Verse.Pawn_HealthTracker::beCarriedByCaravanIfSick
IL_026A: ldc.r4 24
IL_026F: ldc.i4.0
IL_0270: ldc.i4.1
IL_0271: ldnull
IL_0272: ldnull
IL_0273: call static System.Void Verse.Widgets::Checkbox(UnityEngine.Vector2
topLeft, System.Boolean& checkOn, System.Single size, System.Boolean disabled,
System.Boolean paintable, UnityEngine.Texture2D texChecked, UnityEngine.Texture2D
texUnchecked)
IL_0278: ldloc.s 9 (UnityEngine.Vector2)
IL_027A: ldc.r4 24
IL_027F: ldc.r4 24
IL_0284: newobj System.Void UnityEngine.Vector2::.ctor(System.Single x,
System.Single y)
IL_0289: newobj System.Void UnityEngine.Rect::.ctor(UnityEngine.Vector2
position, UnityEngine.Vector2 size)
IL_028E: ldstr "BeCarriedIfSickTip"
IL_0293: call static System.Void
Verse.TooltipHandler::TipRegionByKey(UnityEngine.Rect rect, System.String key)
IL_0298: ldloc.3
IL_0299: ldc.r4 40
IL_029E: add
IL_029F: stloc.3
IL_02A0: Label13
IL_02A0: ldarg.2
IL_02A1: callvirt System.Boolean Verse.Pawn::get_Downed()
IL_02A6: brfalse => Label14
IL_02AB: ldarg.2
IL_02AC: ldfld Verse.Pawn_AgeTracker Verse.Pawn::ageTracker
IL_02B1: callvirt RimWorld.LifeStageDef Verse.Pawn_AgeTracker::get_CurLifeStage()
IL_02B6: ldfld System.Boolean RimWorld.LifeStageDef::alwaysDowned
IL_02BB: brtrue => Label15
IL_02C0: ldc.r4 1
IL_02C5: ldc.r4 0
IL_02CA: ldc.r4 0
IL_02CF: ldc.r4 0.5
IL_02D4: newobj System.Void UnityEngine.Color::.ctor(System.Single r,
System.Single g, System.Single b, System.Single a)
IL_02D9: call static System.Void UnityEngine.GUI::set_color(UnityEngine.Color
value)
IL_02DE: ldc.r4 0
IL_02E3: ldarga.s 1
IL_02E5: call System.Single UnityEngine.Rect::get_height()
IL_02EA: ldc.r4 2
IL_02EF: div
IL_02F0: ldarga.s 1
IL_02F2: call System.Single UnityEngine.Rect::get_width()
IL_02F7: call static System.Void
Verse.Widgets::DrawLineHorizontal(System.Single x, System.Single y, System.Single
length)
IL_02FC: call static UnityEngine.Color UnityEngine.Color::get_white()
IL_0301: call static System.Void UnityEngine.GUI::set_color(UnityEngine.Color
value)
IL_0306: Label14
IL_0306: Label15
IL_0306: call static System.Void Verse.Widgets::EndGroup()
IL_030B: // end original
IL_030B: ret
DONE

### Patch: System.Void Verse.PawnRenderer::RenderPawnAt(UnityEngine.Vector3


drawLoc, System.Nullable`1<Verse.Rot4> rotOverride, System.Boolean neverAimWeapon)
### Replacement: static System.Void
Verse.PawnRenderer::Verse.PawnRenderer.RenderPawnAt_Patch2(Verse.PawnRenderer this,
UnityEngine.Vector3 drawLoc, System.Nullable`1<Verse.Rot4> rotOverride,
System.Boolean neverAimWeapon)
IL_0000: Local var 0: Verse.Rot4
IL_0000: Local var 1: Verse.PawnRenderFlags
IL_0000: Local var 2: Verse.RotDrawMode
IL_0000: Local var 3: System.Boolean
IL_0000: Local var 4: Verse.PawnTextureAtlasFrameSet
IL_0000: Local var 5: System.Nullable`1<Verse.Rot4>
IL_0000: Local var 6: System.Boolean
IL_0000: Local var 7: UnityEngine.Material
IL_0000: Local var 8: UnityEngine.Vector3
IL_0000: Local var 9: System.Boolean
IL_0000: Local var 10: System.Single
IL_0000: Local var 11: Verse.Rot4
IL_0000: Local var 12: UnityEngine.Material
IL_0000: Local var 13: System.Boolean
IL_0000: ldc.i4 0
IL_0005: stloc 13 (System.Boolean)
IL_0009: ldc.i4.1
IL_000A: stloc 13 (System.Boolean)
IL_000E: ldloc 13 (System.Boolean)
IL_0012: brfalse => Label1
IL_0017: ldarg.0
IL_0018: ldfld Verse.Pawn Verse.PawnRenderer::pawn
IL_001D: call static System.Boolean
CameraPlus.PawnRenderer_RenderPawnAt_Patch::Prefix(Verse.Pawn ___pawn)
IL_0022: stloc 13 (System.Boolean)
IL_0026: Label1
IL_0026: nop
IL_0027: ldloc 13 (System.Boolean)
IL_002B: brfalse => Label0
IL_0030: // start original
IL_0030: ldarg.0
IL_0031: ldfld Verse.PawnGraphicSet Verse.PawnRenderer::graphics
IL_0036: callvirt System.Boolean Verse.PawnGraphicSet::get_AllResolved()
IL_003B: brtrue => Label2
IL_0040: ldarg.0
IL_0041: ldfld Verse.PawnGraphicSet Verse.PawnRenderer::graphics
IL_0046: callvirt System.Void Verse.PawnGraphicSet::ResolveAllGraphics()
IL_004B: Label2
IL_004B: ldarg.2
IL_004C: stloc.s 5 (System.Nullable`1[Verse.Rot4])
IL_004E: ldloca.s 5 (System.Nullable`1[Verse.Rot4])
IL_0050: call System.Boolean System.Nullable`1<Verse.Rot4>::get_HasValue()
IL_0055: brtrue => Label3
IL_005A: ldarg.0
IL_005B: ldfld Verse.Pawn Verse.PawnRenderer::pawn
IL_0060: callvirt Verse.Rot4 Verse.Thing::get_Rotation()
IL_0065: br => Label4
IL_006A: Label3
IL_006A: ldloca.s 5 (System.Nullable`1[Verse.Rot4])
IL_006C: call Verse.Rot4 System.Nullable`1<Verse.Rot4>::GetValueOrDefault()
IL_0071: Label4
IL_0071: stloc.0
IL_0072: ldarg.0
IL_0073: ldarg.0
IL_0074: ldfld Verse.Pawn Verse.PawnRenderer::pawn
IL_0079: call Verse.PawnRenderFlags
Verse.PawnRenderer::GetDefaultRenderFlags(Verse.Pawn pawn)
IL_007E: stloc.1
IL_007F: ldloc.1
IL_0080: ldc.i4.s 64
IL_0082: or
IL_0083: stloc.1
IL_0084: ldloc.1
IL_0085: ldc.i4.s 32
IL_0087: or
IL_0088: stloc.1
IL_0089: ldarg.3
IL_008A: brfalse => Label5
IL_008F: ldloc.1
IL_0090: ldc.i4 128
IL_0095: or
IL_0096: stloc.1
IL_0097: Label5
IL_0097: ldarg.0
IL_0098: call Verse.RotDrawMode Verse.PawnRenderer::get_CurRotDrawMode()
IL_009D: stloc.2
IL_009E: ldarg.0
IL_009F: ldfld Verse.Pawn Verse.PawnRenderer::pawn
IL_00A4: callvirt Verse.RaceProperties Verse.Pawn::get_RaceProps()
IL_00A9: callvirt System.Boolean Verse.RaceProperties::get_Humanlike()
IL_00AE: ldarg.0
IL_00AF: ldfld Verse.Pawn Verse.PawnRenderer::pawn
IL_00B4: call static System.Boolean
VFECore.Patch_RenderPawnAt::ShouldDisableCaching(Verse.Pawn pawn)
IL_00B9: ldc.i4.0
IL_00BA: ceq
IL_00BC: and
IL_00BD: ldloc.1
IL_00BE: call static Verse.PawnRenderFlags
VFECore.Patch_RenderPawnAt::ChangeFlags(Verse.PawnRenderFlags pawnRenderFlags)
IL_00C3: stloc.1
IL_00C4: brfalse => Label6
IL_00C9: call static Verse.CameraDriver Verse.Find::get_CameraDriver()
IL_00CE: callvirt System.Single Verse.CameraDriver::get_ZoomRootSize()
IL_00D3: pop
IL_00D4: ldc.r4 Infinity
IL_00D9: ldc.r4 18
IL_00DE: ble.un => Label7
IL_00E3: ldloc.2
IL_00E4: ldc.i4.2
IL_00E5: beq => Label8
IL_00EA: ldarg.0
IL_00EB: ldfld Verse.Pawn Verse.PawnRenderer::pawn
IL_00F0: call static System.Boolean
RimWorld.PawnUtility::IsInvisible(Verse.Pawn pawn)
IL_00F5: brtrue => Label9
IL_00FA: ldloc.1
IL_00FB: ldc.i4.1
IL_00FC: call static System.Boolean
Verse.PawnRenderFlagsExtension::FlagSet(Verse.PawnRenderFlags flags,
Verse.PawnRenderFlags flag)
IL_0101: ldc.i4.0
IL_0102: ceq
IL_0104: br => Label10
IL_0109: Label6
IL_0109: Label7
IL_0109: Label8
IL_0109: Label9
IL_0109: ldc.i4.0
IL_010A: Label10
IL_010A: stloc.3
IL_010B: ldarg.0
IL_010C: ldfld Verse.Pawn Verse.PawnRenderer::pawn
IL_0111: ldloca 3
IL_0115: ldloca 1
IL_0119: call static System.Void
VFEAncients.HarmonyPatches.MetaMorphPatches::CheckMetaMorphForDraw(Verse.Pawn pawn,
System.Boolean& useCache, Verse.PawnRenderFlags& pawnRenderFlags)
IL_011E: ldnull
IL_011F: stloc.s 4 (Verse.PawnTextureAtlasFrameSet)
IL_0121: ldloc.3
IL_0122: brfalse => Label11
IL_0127: ldarg.0
IL_0128: ldfld Verse.Pawn Verse.PawnRenderer::pawn
IL_012D: ldloca.s 4 (Verse.PawnTextureAtlasFrameSet)
IL_012F: ldloca.s 6 (System.Boolean)
IL_0131: ldc.i4.1
IL_0132: call static System.Boolean
Verse.GlobalTextureAtlasManager::TryGetPawnFrameSet(Verse.Pawn pawn,
Verse.PawnTextureAtlasFrameSet& frameSet, System.Boolean& createdNew,
System.Boolean allowCreatingNew)
IL_0137: brtrue => Label12
IL_013C: ldc.i4.0
IL_013D: stloc.3
IL_013E: Label11
IL_013E: Label12
IL_013E: ldarg.0
IL_013F: ldfld Verse.Pawn Verse.PawnRenderer::pawn
IL_0144: ldloc.3
IL_0145: call static System.Boolean
FacialAnimation.HarmonyPatches::HasDrawFaceGraphicsComp(Verse.Pawn pawn,
System.Boolean original)
IL_014A: stloc.3
IL_014B: ldarg.0
IL_014C: ldfld Verse.Pawn Verse.PawnRenderer::pawn
IL_0151: call static RimWorld.PawnPosture
AlienRace.HarmonyPatches::PostureTweak(Verse.Pawn pawn)
IL_0156: brtrue => Label13
IL_015B: ldloc.3
IL_015C: brfalse => Label14
IL_0161: ldloc.s 4 (Verse.PawnTextureAtlasFrameSet)
IL_0163: ldfld UnityEngine.RenderTexture Verse.PawnTextureAtlasFrameSet::atlas
IL_0168: ldsfld UnityEngine.Shader Verse.ShaderDatabase::Cutout
IL_016D: newobj System.Void Verse.MaterialRequest::.ctor(UnityEngine.Texture
tex, UnityEngine.Shader shader)
IL_0172: call static UnityEngine.Material
Verse.MaterialPool::MatFrom(Verse.MaterialRequest req)
IL_0177: stloc.s 7 (UnityEngine.Material)
IL_0179: ldarg.0
IL_017A: ldloc.s 7 (UnityEngine.Material)
IL_017C: ldarg.0
IL_017D: ldfld Verse.Pawn Verse.PawnRenderer::pawn
IL_0182: ldc.i4.0
IL_0183: call UnityEngine.Material
Verse.PawnRenderer::OverrideMaterialIfNeeded(UnityEngine.Material original,
Verse.Pawn pawn, System.Boolean portrait)
IL_0188: stloc.s 7 (UnityEngine.Material)
IL_018A: ldarg.0
IL_018B: ldloc.s 4 (Verse.PawnTextureAtlasFrameSet)
IL_018D: ldloc.0
IL_018E: ldc.i4.0
IL_018F: call UnityEngine.Mesh
Verse.PawnRenderer::GetBlitMeshUpdatedFrame(Verse.PawnTextureAtlasFrameSet
frameSet, Verse.Rot4 rotation, Verse.PawnDrawMode drawMode)
IL_0194: ldarg.1
IL_0195: ldc.r4 0
IL_019A: call static UnityEngine.Vector3 UnityEngine.Vector3::get_up()
IL_019F: call static UnityEngine.Quaternion
UnityEngine.Quaternion::AngleAxis(System.Single angle, UnityEngine.Vector3 axis)
IL_01A4: ldloc.s 7 (UnityEngine.Material)
IL_01A6: ldc.i4.0
IL_01A7: call static System.Void
Verse.GenDraw::DrawMeshNowOrLater(UnityEngine.Mesh mesh, UnityEngine.Vector3 loc,
UnityEngine.Quaternion quat, UnityEngine.Material mat, System.Boolean drawNow)
IL_01AC: ldarg.0
IL_01AD: ldarg.1
IL_01AE: ldc.r4 0
IL_01B3: ldloc.0
IL_01B4: ldloc.1
IL_01B5: call System.Void
Verse.PawnRenderer::DrawDynamicParts(UnityEngine.Vector3 rootLoc, System.Single
angle, Verse.Rot4 pawnRotation, Verse.PawnRenderFlags flags)
IL_01BA: br => Label15
IL_01BF: Label14
IL_01BF: ldarg.0
IL_01C0: ldarg.1
IL_01C1: ldc.r4 0
IL_01C6: ldc.i4.1
IL_01C7: ldloc.0
IL_01C8: ldloc.2
IL_01C9: ldloc.1
IL_01CA: call System.Void
Verse.PawnRenderer::RenderPawnInternal(UnityEngine.Vector3 rootLoc, System.Single
angle, System.Boolean renderBody, Verse.Rot4 bodyFacing, Verse.RotDrawMode
bodyDrawType, Verse.PawnRenderFlags flags)
IL_01CF: Label15
IL_01CF: ldarg.0
IL_01D0: ldarg.1
IL_01D1: call System.Void
Verse.PawnRenderer::DrawCarriedThing(UnityEngine.Vector3 drawLoc)
IL_01D6: ldloc.1
IL_01D7: ldc.i4.4
IL_01D8: call static System.Boolean
Verse.PawnRenderFlagsExtension::FlagSet(Verse.PawnRenderFlags flags,
Verse.PawnRenderFlags flag)
IL_01DD: brtrue => Label16
IL_01E2: ldarg.0
IL_01E3: ldarg.1
IL_01E4: call System.Void
Verse.PawnRenderer::DrawInvisibleShadow(UnityEngine.Vector3 drawLoc)
IL_01E9: br => Label17
IL_01EE: Label13
IL_01EE: ldarg.0
IL_01EF: ldarg.1
IL_01F0: ldloca.s 9 (System.Boolean)
IL_01F2: call UnityEngine.Vector3
Verse.PawnRenderer::GetBodyPos(UnityEngine.Vector3 drawLoc, System.Boolean&
showBody)
IL_01F7: stloc.s 8 (UnityEngine.Vector3)
IL_01F9: ldarg.0
IL_01FA: call System.Single Verse.PawnRenderer::BodyAngle()
IL_01FF: stloc.s 10 (System.Single)
IL_0201: ldarg.0
IL_0202: call Verse.Rot4 Verse.PawnRenderer::LayingFacing()
IL_0207: stloc.s 11 (Verse.Rot4)
IL_0209: ldloc.3
IL_020A: brfalse => Label18
IL_020F: ldloc.s 4 (Verse.PawnTextureAtlasFrameSet)
IL_0211: ldfld UnityEngine.RenderTexture Verse.PawnTextureAtlasFrameSet::atlas
IL_0216: ldsfld UnityEngine.Shader Verse.ShaderDatabase::Cutout
IL_021B: newobj System.Void Verse.MaterialRequest::.ctor(UnityEngine.Texture
tex, UnityEngine.Shader shader)
IL_0220: call static UnityEngine.Material
Verse.MaterialPool::MatFrom(Verse.MaterialRequest req)
IL_0225: stloc.s 12 (UnityEngine.Material)
IL_0227: ldarg.0
IL_0228: ldloc.s 12 (UnityEngine.Material)
IL_022A: ldarg.0
IL_022B: ldfld Verse.Pawn Verse.PawnRenderer::pawn
IL_0230: ldc.i4.0
IL_0231: call UnityEngine.Material
Verse.PawnRenderer::OverrideMaterialIfNeeded(UnityEngine.Material original,
Verse.Pawn pawn, System.Boolean portrait)
IL_0236: stloc.s 12 (UnityEngine.Material)
IL_0238: ldarg.0
IL_0239: ldloc.s 4 (Verse.PawnTextureAtlasFrameSet)
IL_023B: ldloc.s 11 (Verse.Rot4)
IL_023D: ldloc.s 9 (System.Boolean)
IL_023F: brtrue => Label19
IL_0244: ldc.i4.1
IL_0245: br => Label20
IL_024A: Label19
IL_024A: ldc.i4.0
IL_024B: Label20
IL_024B: call UnityEngine.Mesh
Verse.PawnRenderer::GetBlitMeshUpdatedFrame(Verse.PawnTextureAtlasFrameSet
frameSet, Verse.Rot4 rotation, Verse.PawnDrawMode drawMode)
IL_0250: ldloc.s 8 (UnityEngine.Vector3)
IL_0252: ldloc.s 10 (System.Single)
IL_0254: call static UnityEngine.Vector3 UnityEngine.Vector3::get_up()
IL_0259: call static UnityEngine.Quaternion
UnityEngine.Quaternion::AngleAxis(System.Single angle, UnityEngine.Vector3 axis)
IL_025E: ldloc.s 12 (UnityEngine.Material)
IL_0260: ldc.i4.0
IL_0261: call static System.Void
Verse.GenDraw::DrawMeshNowOrLater(UnityEngine.Mesh mesh, UnityEngine.Vector3 loc,
UnityEngine.Quaternion quat, UnityEngine.Material mat, System.Boolean drawNow)
IL_0266: ldarg.0
IL_0267: ldloc.s 8 (UnityEngine.Vector3)
IL_0269: ldloc.s 10 (System.Single)
IL_026B: ldloc.0
IL_026C: ldloc.1
IL_026D: call System.Void
Verse.PawnRenderer::DrawDynamicParts(UnityEngine.Vector3 rootLoc, System.Single
angle, Verse.Rot4 pawnRotation, Verse.PawnRenderFlags flags)
IL_0272: br => Label21
IL_0277: Label18
IL_0277: ldarg.0
IL_0278: ldloc.s 8 (UnityEngine.Vector3)
IL_027A: ldloc.s 10 (System.Single)
IL_027C: ldloc.s 9 (System.Boolean)
IL_027E: ldloc.s 11 (Verse.Rot4)
IL_0280: ldloc.2
IL_0281: ldloc.1
IL_0282: call System.Void
Verse.PawnRenderer::RenderPawnInternal(UnityEngine.Vector3 rootLoc, System.Single
angle, System.Boolean renderBody, Verse.Rot4 bodyFacing, Verse.RotDrawMode
bodyDrawType, Verse.PawnRenderFlags flags)
IL_0287: Label21
IL_0287: ldarg.0
IL_0288: ldloc.s 8 (UnityEngine.Vector3)
IL_028A: call System.Void
Verse.PawnRenderer::DrawCarriedThing(UnityEngine.Vector3 drawLoc)
IL_028F: Label16
IL_028F: Label17
IL_028F: ldarg.0
IL_0290: ldfld Verse.Pawn Verse.PawnRenderer::pawn
IL_0295: callvirt System.Boolean Verse.Thing::get_Spawned()
IL_029A: brfalse => Label22
IL_029F: ldarg.0
IL_02A0: ldfld Verse.Pawn Verse.PawnRenderer::pawn
IL_02A5: callvirt System.Boolean Verse.Pawn::get_Dead()
IL_02AA: brtrue => Label23
IL_02AF: ldarg.0
IL_02B0: ldfld Verse.Pawn Verse.PawnRenderer::pawn
IL_02B5: ldfld Verse.Pawn_StanceTracker Verse.Pawn::stances
IL_02BA: callvirt System.Void Verse.Pawn_StanceTracker::StanceTrackerDraw()
IL_02BF: ldarg.0
IL_02C0: ldfld Verse.Pawn Verse.PawnRenderer::pawn
IL_02C5: ldfld Verse.AI.Pawn_PathFollower Verse.Pawn::pather
IL_02CA: callvirt System.Void Verse.AI.Pawn_PathFollower::PatherDraw()
IL_02CF: ldarg.0
IL_02D0: ldfld Verse.Pawn Verse.PawnRenderer::pawn
IL_02D5: ldfld RimWorld.Pawn_RopeTracker Verse.Pawn::roping
IL_02DA: callvirt System.Void RimWorld.Pawn_RopeTracker::RopingDraw()
IL_02DF: Label22
IL_02DF: Label23
IL_02DF: ldarg.0
IL_02E0: call System.Void Verse.PawnRenderer::DrawDebug()
IL_02E5: // end original
IL_02E5: Label0
IL_02E5: ldarg.0
IL_02E6: ldfld Verse.Pawn Verse.PawnRenderer::pawn
IL_02EB: call static System.Void
CameraPlus.PawnRenderer_RenderPawnAt_Patch::Postfix(Verse.Pawn ___pawn)
IL_02F0: ret
DONE

### Patch: Verse.Rot4 Verse.PawnRenderer::LayingFacing()


### Replacement: static Verse.Rot4
Verse.PawnRenderer::Verse.PawnRenderer.LayingFacing_Patch0(Verse.PawnRenderer this)
IL_0000: Local var 0: Verse.Rot4
IL_0000: Local var 1: RimWorld.PawnPosture
IL_0000: Local var 2: Verse.Pawn_CarryTracker
IL_0000: Local var 3: System.Int32
IL_0000: // start original
IL_0000: ldarg.0
IL_0001: call Verse.Rot4 Verse.PawnRenderer::RotationForcedByJob()
IL_0006: stloc.0
IL_0007: ldloca.s 0 (Verse.Rot4)
IL_0009: call System.Boolean Verse.Rot4::get_IsValid()
IL_000E: brfalse => Label0
IL_0013: ldloc.0
IL_0014: br => Label19
IL_0019: Label0
IL_0019: ldarg.0
IL_001A: ldfld Verse.Pawn Verse.PawnRenderer::pawn
IL_001F: call static RimWorld.PawnPosture
AlienRace.HarmonyPatches::PostureTweak(Verse.Pawn pawn)
IL_0024: stloc.1
IL_0025: ldloc.1
IL_0026: ldc.i4.3
IL_0027: beq => Label1
IL_002C: ldarg.0
IL_002D: ldfld Verse.Pawn Verse.PawnRenderer::pawn
IL_0032: callvirt System.Boolean Verse.Pawn::get_Deathresting()
IL_0037: brfalse => Label2
IL_003C: Label1
IL_003C: ldsfld Verse.Rot4 Verse.Rot4::South
IL_0041: br => Label20
IL_0046: Label2
IL_0046: ldarg.0
IL_0047: ldfld Verse.Pawn Verse.PawnRenderer::pawn
IL_004C: callvirt Verse.RaceProperties Verse.Pawn::get_RaceProps()
IL_0051: callvirt System.Boolean Verse.RaceProperties::get_Humanlike()
IL_0056: brfalse => Label3
IL_005B: ldarg.0
IL_005C: ldfld Verse.Pawn Verse.PawnRenderer::pawn
IL_0061: callvirt Verse.DevelopmentalStage Verse.Pawn::get_DevelopmentalStage()
IL_0066: call static System.Boolean
Verse.DevelopmentalStageExtensions::Baby(Verse.DevelopmentalStage
developmentalStage)
IL_006B: brfalse => Label4
IL_0070: ldarg.0
IL_0071: ldfld Verse.Pawn Verse.PawnRenderer::pawn
IL_0076: callvirt virtual Verse.IThingHolder Verse.Thing::get_ParentHolder()
IL_007B: isinst Verse.Pawn_CarryTracker
IL_0080: dup
IL_0081: stloc.2
IL_0082: brfalse => Label5
IL_0087: ldloc.2
IL_0088: ldfld Verse.Pawn Verse.Pawn_CarryTracker::pawn
IL_008D: callvirt Verse.Rot4 Verse.Thing::get_Rotation()
IL_0092: ldsfld Verse.Rot4 Verse.Rot4::West
IL_0097: call static System.Boolean Verse.Rot4::op_Equality(Verse.Rot4 a,
Verse.Rot4 b)
IL_009C: brtrue => Label6
IL_00A1: ldsfld Verse.Rot4 Verse.Rot4::West
IL_00A6: br => Label21
IL_00AB: Label6
IL_00AB: ldsfld Verse.Rot4 Verse.Rot4::East
IL_00B0: br => Label22
IL_00B5: Label4
IL_00B5: Label5
IL_00B5: ldloc.1
IL_00B6: call static System.Boolean
RimWorld.PawnPostureUtility::FaceUp(RimWorld.PawnPosture posture)
IL_00BB: brfalse => Label7
IL_00C0: ldarg.0
IL_00C1: ldfld Verse.Pawn Verse.PawnRenderer::pawn
IL_00C6: call static RimWorld.Building_Bed
RimWorld.RestUtility::CurrentBed(Verse.Pawn p)
IL_00CB: brfalse => Label8
IL_00D0: ldsfld Verse.Rot4 Verse.Rot4::South
IL_00D5: br => Label23
IL_00DA: Label7
IL_00DA: Label8
IL_00DA: ldarg.0
IL_00DB: ldfld Verse.Pawn Verse.PawnRenderer::pawn
IL_00E0: ldfld System.Int32 Verse.Thing::thingIDNumber
IL_00E5: ldc.i4.4
IL_00E6: rem
IL_00E7: stloc.3
IL_00E8: ldloc.3
IL_00E9: switch => Labels9,10,11,12
IL_00FE: br => Label13
IL_0103: Label9
IL_0103: ldsfld Verse.Rot4 Verse.Rot4::South
IL_0108: br => Label24
IL_010D: Label10
IL_010D: ldsfld Verse.Rot4 Verse.Rot4::South
IL_0112: br => Label25
IL_0117: Label11
IL_0117: ldsfld Verse.Rot4 Verse.Rot4::East
IL_011C: br => Label26
IL_0121: Label12
IL_0121: ldsfld Verse.Rot4 Verse.Rot4::West
IL_0126: br => Label27
IL_012B: Label3
IL_012B: ldarg.0
IL_012C: ldfld Verse.Pawn Verse.PawnRenderer::pawn
IL_0131: ldfld System.Int32 Verse.Thing::thingIDNumber
IL_0136: ldc.i4.4
IL_0137: rem
IL_0138: stloc.3
IL_0139: ldloc.3
IL_013A: switch => Labels14,15,16,17
IL_014F: br => Label18
IL_0154: Label14
IL_0154: ldsfld Verse.Rot4 Verse.Rot4::South
IL_0159: br => Label28
IL_015E: Label15
IL_015E: ldsfld Verse.Rot4 Verse.Rot4::East
IL_0163: br => Label29
IL_0168: Label16
IL_0168: ldsfld Verse.Rot4 Verse.Rot4::West
IL_016D: br => Label30
IL_0172: Label17
IL_0172: ldsfld Verse.Rot4 Verse.Rot4::West
IL_0177: br => Label31
IL_017C: Label13
IL_017C: Label18
IL_017C: call static Verse.Rot4 Verse.Rot4::get_Random()
IL_0181: // end original
IL_0181: Label19
IL_0181: Label20
IL_0181: Label21
IL_0181: Label22
IL_0181: Label23
IL_0181: Label24
IL_0181: Label25
IL_0181: Label26
IL_0181: Label27
IL_0181: Label28
IL_0181: Label29
IL_0181: Label30
IL_0181: Label31
IL_0181: ret
DONE

### Patch: System.Single Verse.PawnRenderer::BodyAngle()


### Replacement: static System.Single
Verse.PawnRenderer::Verse.PawnRenderer.BodyAngle_Patch1(Verse.PawnRenderer this)
IL_0000: Local var 0: RimWorld.Building_Bed
IL_0000: Local var 1: Verse.Rot4
IL_0000: Local var 2: Verse.IThingHolderWithDrawnPawn
IL_0000: Local var 3: Verse.Pawn_CarryTracker
IL_0000: Local var 4: Verse.Rot4
IL_0000: Local var 5: Verse.Rot4
IL_0000: Local var 6: Verse.Rot4
IL_0000: Local var 7: System.Int32
IL_0000: Local var 8: System.Single
IL_0000: ldc.r4 0
IL_0005: stloc 8 (System.Single)
IL_0009: // start original
IL_0009: ldarg.0
IL_000A: ldfld Verse.Pawn Verse.PawnRenderer::pawn
IL_000F: call static RimWorld.PawnPosture
AlienRace.HarmonyPatches::PostureTweak(Verse.Pawn pawn)
IL_0014: brtrue => Label0
IL_0019: ldc.r4 0
IL_001E: br => Label17
IL_0023: Label0
IL_0023: ldarg.0
IL_0024: ldfld Verse.Pawn Verse.PawnRenderer::pawn
IL_0029: call static RimWorld.Building_Bed
RimWorld.RestUtility::CurrentBed(Verse.Pawn p)
IL_002E: stloc.0
IL_002F: ldloc.0
IL_0030: brfalse => Label1
IL_0035: ldarg.0
IL_0036: ldfld Verse.Pawn Verse.PawnRenderer::pawn
IL_003B: callvirt Verse.RaceProperties Verse.Pawn::get_RaceProps()
IL_0040: callvirt System.Boolean Verse.RaceProperties::get_Humanlike()
IL_0045: brfalse => Label2
IL_004A: ldloc.0
IL_004B: callvirt Verse.Rot4 Verse.Thing::get_Rotation()
IL_0050: stloc.1
IL_0051: ldloca.s 1 (Verse.Rot4)
IL_0053: dup
IL_0054: call System.Int32 Verse.Rot4::get_AsInt()
IL_0059: ldc.i4.2
IL_005A: add
IL_005B: call System.Void Verse.Rot4::set_AsInt(System.Int32 value)
IL_0060: ldloca.s 1 (Verse.Rot4)
IL_0062: call System.Single Verse.Rot4::get_AsAngle()
IL_0067: br => Label18
IL_006C: Label1
IL_006C: Label2
IL_006C: ldarg.0
IL_006D: ldfld Verse.Pawn Verse.PawnRenderer::pawn
IL_0072: callvirt virtual Verse.IThingHolder Verse.Thing::get_ParentHolder()
IL_0077: isinst Verse.IThingHolderWithDrawnPawn
IL_007C: dup
IL_007D: stloc.2
IL_007E: brfalse => Label3
IL_0083: ldloc.2
IL_0084: callvirt abstract virtual System.Single
Verse.IThingHolderWithDrawnPawn::get_HeldPawnBodyAngle()
IL_0089: br => Label19
IL_008E: Label3
IL_008E: ldarg.0
IL_008F: ldfld Verse.Pawn Verse.PawnRenderer::pawn
IL_0094: callvirt Verse.RaceProperties Verse.Pawn::get_RaceProps()
IL_0099: callvirt System.Boolean Verse.RaceProperties::get_Humanlike()
IL_009E: brfalse => Label4
IL_00A3: ldarg.0
IL_00A4: ldfld Verse.Pawn Verse.PawnRenderer::pawn
IL_00A9: callvirt Verse.DevelopmentalStage Verse.Pawn::get_DevelopmentalStage()
IL_00AE: call static System.Boolean
Verse.DevelopmentalStageExtensions::Baby(Verse.DevelopmentalStage
developmentalStage)
IL_00B3: brfalse => Label5
IL_00B8: ldarg.0
IL_00B9: ldfld Verse.Pawn Verse.PawnRenderer::pawn
IL_00BE: callvirt virtual Verse.IThingHolder Verse.Thing::get_ParentHolder()
IL_00C3: isinst Verse.Pawn_CarryTracker
IL_00C8: dup
IL_00C9: stloc.3
IL_00CA: brfalse => Label6
IL_00CF: ldloc.3
IL_00D0: ldfld Verse.Pawn Verse.Pawn_CarryTracker::pawn
IL_00D5: callvirt Verse.Rot4 Verse.Thing::get_Rotation()
IL_00DA: ldsfld Verse.Rot4 Verse.Rot4::West
IL_00DF: call static System.Boolean Verse.Rot4::op_Equality(Verse.Rot4 a,
Verse.Rot4 b)
IL_00E4: brtrue => Label7
IL_00E9: ldc.r4 70
IL_00EE: br => Label8
IL_00F3: Label7
IL_00F3: ldc.r4 290
IL_00F8: Label8
IL_00F8: ldloc.3
IL_00F9: ldfld Verse.Pawn Verse.Pawn_CarryTracker::pawn
IL_00FE: callvirt Verse.Pawn_DrawTracker Verse.Pawn::get_Drawer()
IL_0103: ldfld Verse.PawnRenderer Verse.Pawn_DrawTracker::renderer
IL_0108: callvirt System.Single Verse.PawnRenderer::BodyAngle()
IL_010D: add
IL_010E: br => Label20
IL_0113: Label4
IL_0113: Label5
IL_0113: Label6
IL_0113: ldarg.0
IL_0114: ldfld Verse.Pawn Verse.PawnRenderer::pawn
IL_0119: callvirt System.Boolean Verse.Pawn::get_Downed()
IL_011E: brtrue => Label9
IL_0123: ldarg.0
IL_0124: ldfld Verse.Pawn Verse.PawnRenderer::pawn
IL_0129: callvirt System.Boolean Verse.Pawn::get_Dead()
IL_012E: brfalse => Label10
IL_0133: Label9
IL_0133: ldarg.0
IL_0134: ldfld Verse.PawnDownedWiggler Verse.PawnRenderer::wiggler
IL_0139: ldfld System.Single Verse.PawnDownedWiggler::downedAngle
IL_013E: br => Label21
IL_0143: Label10
IL_0143: ldarg.0
IL_0144: ldfld Verse.Pawn Verse.PawnRenderer::pawn
IL_0149: callvirt Verse.RaceProperties Verse.Pawn::get_RaceProps()
IL_014E: callvirt System.Boolean Verse.RaceProperties::get_Humanlike()
IL_0153: brfalse => Label11
IL_0158: ldarg.0
IL_0159: call Verse.Rot4 Verse.PawnRenderer::LayingFacing()
IL_015E: stloc.s 4 (Verse.Rot4)
IL_0160: ldloca.s 4 (Verse.Rot4)
IL_0162: call System.Single Verse.Rot4::get_AsAngle()
IL_0167: br => Label22
IL_016C: Label11
IL_016C: ldarg.0
IL_016D: call Verse.Rot4 Verse.PawnRenderer::RotationForcedByJob()
IL_0172: stloc.s 5 (Verse.Rot4)
IL_0174: ldloca.s 5 (Verse.Rot4)
IL_0176: call System.Boolean Verse.Rot4::get_IsValid()
IL_017B: brfalse => Label12
IL_0180: ldc.r4 0
IL_0185: br => Label23
IL_018A: Label12
IL_018A: ldsfld Verse.Rot4 Verse.Rot4::West
IL_018F: stloc.s 6 (Verse.Rot4)
IL_0191: ldarg.0
IL_0192: ldfld Verse.Pawn Verse.PawnRenderer::pawn
IL_0197: ldfld System.Int32 Verse.Thing::thingIDNumber
IL_019C: ldc.i4.2
IL_019D: rem
IL_019E: stloc.s 7 (System.Int32)
IL_01A0: ldloc.s 7 (System.Int32)
IL_01A2: brfalse => Label13
IL_01A7: ldloc.s 7 (System.Int32)
IL_01A9: ldc.i4.1
IL_01AA: beq => Label14
IL_01AF: br => Label15
IL_01B4: Label13
IL_01B4: ldsfld Verse.Rot4 Verse.Rot4::West
IL_01B9: stloc.s 6 (Verse.Rot4)
IL_01BB: br => Label16
IL_01C0: Label14
IL_01C0: ldsfld Verse.Rot4 Verse.Rot4::East
IL_01C5: stloc.s 6 (Verse.Rot4)
IL_01C7: Label15
IL_01C7: Label16
IL_01C7: ldloca.s 6 (Verse.Rot4)
IL_01C9: call System.Single Verse.Rot4::get_AsAngle()
IL_01CE: // end original
IL_01CE: Label17
IL_01CE: Label18
IL_01CE: Label19
IL_01CE: Label20
IL_01CE: Label21
IL_01CE: Label22
IL_01CE: Label23
IL_01CE: stloc 8 (System.Single)
IL_01D2: ldarg.0
IL_01D3: ldloca 8 (System.Single)
IL_01D7: call static System.Void
DubsBadHygiene.Patches.H_BodyAngle::Postfix(Verse.PawnRenderer __instance,
System.Single& __result)
IL_01DC: ldloc 8 (System.Single)
IL_01E0: ret
DONE
### Patch: static System.Boolean
AlienRace.HarmonyPatches::TextureAtlasSameRace(Verse.PawnTextureAtlas atlas,
Verse.Pawn pawn, System.Collections.Generic.List`1<Verse.PawnTextureAtlasFrameSet>
frameSets)
### Replacement: static System.Boolean
AlienRace.HarmonyPatches::AlienRace.HarmonyPatches.TextureAtlasSameRace_Patch0(Vers
e.PawnTextureAtlas atlas, Verse.Pawn pawn,
System.Collections.Generic.List`1<Verse.PawnTextureAtlasFrameSet> frameSets)
IL_0000: Local var 0: AlienRace.HarmonyPatches/<>c__DisplayClass76_0
IL_0000: Local var 1:
System.Collections.Generic.Dictionary`2/KeyCollection<Verse.Pawn,Verse.PawnTextureA
tlasFrameSet>
IL_0000: // start original
IL_0000: newobj System.Void AlienRace.<>c__DisplayClass76_0::.ctor()
IL_0005: stloc.0
IL_0006: ldloc.0
IL_0007: ldarg.1
IL_0008: stfld Verse.Pawn AlienRace.<>c__DisplayClass76_0::pawn
IL_000D: ldsfld HarmonyLib.FieldRef`2<Verse.PawnTextureAtlas,
System.Collections.Generic.Dictionary`2<Verse.Pawn,
Verse.PawnTextureAtlasFrameSet>>
AlienRace.CachedData::pawnTextureAtlasFrameAssignments
IL_0012: ldarg.0
IL_0013: callvirt virtual System.Collections.Generic.Dictionary`2&
HarmonyLib.FieldRef`2<Verse.PawnTextureAtlas,
System.Collections.Generic.Dictionary`2<Verse.Pawn,
Verse.PawnTextureAtlasFrameSet>>::Invoke(Verse.PawnTextureAtlas instance)
IL_0018: ldind.ref
IL_0019: callvirt System.Collections.Generic.KeyCollection<Verse.Pawn,
Verse.PawnTextureAtlasFrameSet> System.Collections.Generic.Dictionary`2<Verse.Pawn,
Verse.PawnTextureAtlasFrameSet>::get_Keys()
IL_001E: stloc.1
IL_001F: ldloc.0
IL_0020: ldloc.0
IL_0021: ldfld Verse.Pawn AlienRace.<>c__DisplayClass76_0::pawn
IL_0026: ldfld Verse.ThingDef Verse.Thing::def
IL_002B: isinst AlienRace.ThingDef_AlienRace
IL_0030: dup
IL_0031: brtrue => Label0
IL_0036: pop
IL_0037: ldc.i4.1
IL_0038: br => Label1
IL_003D: Label0
IL_003D: ldfld AlienRace.AlienSettings AlienRace.ThingDef_AlienRace::alienRace
IL_0042: ldfld AlienRace.GeneralSettings
AlienRace.AlienSettings::generalSettings
IL_0047: ldfld AlienRace.AlienPartGenerator
AlienRace.GeneralSettings::alienPartGenerator
IL_004C: ldfld System.Int32 AlienRace.AlienPartGenerator::atlasScale
IL_0051: Label1
IL_0051: stfld System.Int32 AlienRace.<>c__DisplayClass76_0::atlasScale
IL_0056: ldloc.0
IL_0057: ldloc.0
IL_0058: ldfld Verse.Pawn AlienRace.<>c__DisplayClass76_0::pawn
IL_005D: ldfld Verse.ThingDef Verse.Thing::def
IL_0062: isinst AlienRace.ThingDef_AlienRace
IL_0067: dup
IL_0068: brtrue => Label2
IL_006D: pop
IL_006E: ldc.r4 1
IL_0073: br => Label3
IL_0078: Label2
IL_0078: ldfld AlienRace.AlienSettings AlienRace.ThingDef_AlienRace::alienRace
IL_007D: ldfld AlienRace.GeneralSettings
AlienRace.AlienSettings::generalSettings
IL_0082: ldfld AlienRace.AlienPartGenerator
AlienRace.GeneralSettings::alienPartGenerator
IL_0087: ldfld System.Single AlienRace.AlienPartGenerator::borderScale
IL_008C: Label3
IL_008C: stfld System.Single AlienRace.<>c__DisplayClass76_0::borderScale
IL_0091: ldloc.1
IL_0092: callvirt virtual System.Int32
System.Collections.Generic.KeyCollection<Verse.Pawn,
Verse.PawnTextureAtlasFrameSet>::get_Count()
IL_0097: brtrue => Label4
IL_009C: ldarg.0
IL_009D: callvirt UnityEngine.RenderTexture
Verse.PawnTextureAtlas::get_RawTexture()
IL_00A2: callvirt virtual System.Int32 UnityEngine.Texture::get_width()
IL_00A7: ldc.i4 2048
IL_00AC: ldloc.0
IL_00AD: ldfld System.Int32 AlienRace.<>c__DisplayClass76_0::atlasScale
IL_00B2: mul
IL_00B3: pop
IL_00B4: dup
IL_00B5: bne.un => Label5
IL_00BA: ldarg.2
IL_00BB: call static Verse.PawnTextureAtlasFrameSet
System.Linq.Enumerable::First(System.Collections.Generic.IEnumerable`1<Verse.PawnTe
xtureAtlasFrameSet> source)
IL_00C0: ldfld UnityEngine.Mesh[] Verse.PawnTextureAtlasFrameSet::meshes
IL_00C5: call static UnityEngine.Mesh
System.Linq.Enumerable::First(System.Collections.Generic.IEnumerable`1<UnityEngine.
Mesh> source)
IL_00CA: callvirt UnityEngine.Vector3[] UnityEngine.Mesh::get_vertices()
IL_00CF: call static UnityEngine.Vector3
System.Linq.Enumerable::First(System.Collections.Generic.IEnumerable`1<UnityEngine.
Vector3> source)
IL_00D4: ldfld System.Single UnityEngine.Vector3::x
IL_00D9: ldloc.0
IL_00DA: ldfld System.Single AlienRace.<>c__DisplayClass76_0::borderScale
IL_00DF: add
IL_00E0: call static System.Single System.Math::Abs(System.Single value)
IL_00E5: ldc.r4 0.01
IL_00EA: bge.un => Label6
IL_00EF: ldc.i4.1
IL_00F0: br => Label8
IL_00F5: Label4
IL_00F5: ldloc.1
IL_00F6: ldloc.0
IL_00F7: ldftn System.Boolean
AlienRace.<>c__DisplayClass76_0::<TextureAtlasSameRace>b__0(Verse.Pawn p)
IL_00FD: newobj System.Void System.Func`2<Verse.Pawn,
System.Boolean>::.ctor(System.Object object, System.IntPtr method)
IL_0102: call static System.Boolean
System.Linq.Enumerable::Any(System.Collections.Generic.IEnumerable`1<Verse.Pawn>
source, System.Func`2<Verse.Pawn, System.Boolean> predicate)
IL_0107: brfalse => Label7
IL_010C: ldc.i4.1
IL_010D: br => Label9
IL_0112: Label5
IL_0112: Label6
IL_0112: Label7
IL_0112: ldc.i4.0
IL_0113: // end original
IL_0113: Label8
IL_0113: Label9
IL_0113: ret
DONE

### Patch: System.Boolean


AlienRace.<>c__DisplayClass76_0::<TextureAtlasSameRace>b__0(Verse.Pawn p)
### Replacement: static System.Boolean
AlienRace.HarmonyPatches+<>c__DisplayClass76_0::AlienRace.HarmonyPatches+c__Display
Class76_0.<TextureAtlasSameRace>b__0_Patch0(AlienRace.<>c__DisplayClass76_0 this,
Verse.Pawn p)
IL_0000: // start original
IL_0000: ldarg.1
IL_0001: ldfld Verse.ThingDef Verse.Thing::def
IL_0006: ldarg.0
IL_0007: ldfld Verse.Pawn AlienRace.<>c__DisplayClass76_0::pawn
IL_000C: ldfld Verse.ThingDef Verse.Thing::def
IL_0011: beq => Label0
IL_0016: ldarg.1
IL_0017: ldfld Verse.ThingDef Verse.Thing::def
IL_001C: isinst AlienRace.ThingDef_AlienRace
IL_0021: dup
IL_0022: brtrue => Label1
IL_0027: pop
IL_0028: ldc.i4.1
IL_0029: br => Label2
IL_002E: Label1
IL_002E: ldfld AlienRace.AlienSettings AlienRace.ThingDef_AlienRace::alienRace
IL_0033: ldfld AlienRace.GeneralSettings
AlienRace.AlienSettings::generalSettings
IL_0038: ldfld AlienRace.AlienPartGenerator
AlienRace.GeneralSettings::alienPartGenerator
IL_003D: ldfld System.Int32 AlienRace.AlienPartGenerator::atlasScale
IL_0042: Label2
IL_0042: ldarg.0
IL_0043: ldfld System.Int32 AlienRace.<>c__DisplayClass76_0::atlasScale
IL_0048: pop
IL_0049: dup
IL_004A: bne.un => Label3
IL_004F: ldarg.1
IL_0050: ldfld Verse.ThingDef Verse.Thing::def
IL_0055: isinst AlienRace.ThingDef_AlienRace
IL_005A: dup
IL_005B: brtrue => Label4
IL_0060: pop
IL_0061: ldc.r4 1
IL_0066: br => Label5
IL_006B: Label4
IL_006B: ldfld AlienRace.AlienSettings AlienRace.ThingDef_AlienRace::alienRace
IL_0070: ldfld AlienRace.GeneralSettings
AlienRace.AlienSettings::generalSettings
IL_0075: ldfld AlienRace.AlienPartGenerator
AlienRace.GeneralSettings::alienPartGenerator
IL_007A: ldfld System.Single AlienRace.AlienPartGenerator::borderScale
IL_007F: Label5
IL_007F: ldarg.0
IL_0080: ldfld System.Single AlienRace.<>c__DisplayClass76_0::borderScale
IL_0085: sub
IL_0086: call static System.Single System.Math::Abs(System.Single value)
IL_008B: conv.r8
IL_008C: ldc.r8 0.01
IL_0095: clt
IL_0097: br => Label6
IL_009C: Label3
IL_009C: ldc.i4.0
IL_009D: br => Label7
IL_00A2: Label0
IL_00A2: ldc.i4.1
IL_00A3: // end original
IL_00A3: Label6
IL_00A3: Label7
IL_00A3: ret
DONE

### Harmony id=ItemTeleporter.Mod, version=2.2.2.0, location=C:\Program Files


(x86)\Steam\steamapps\common\data-000002130553D010, env/clr=4.0.30319.42000,
platform=Win32NT, ptrsize:runtime/env=8/Bits64, Windows
### Started from static System.Void ItemTeleporter.ItemTeleporterStartup::.cctor(),
location C:\Program Files (x86)\Steam\steamapps\common\data-0000021308E732A0
### At 2023-02-17 06.57.31
### Patch: virtual System.Void Verse.Thing::DrawGUIOverlay()
### Replacement: static System.Void
Verse.Thing::Verse.Thing.DrawGUIOverlay_Patch2(Verse.Thing this)
IL_0000: Local var 0: RimWorld.QualityCategory
IL_0000: Local var 1: System.Boolean
IL_0000: ldc.i4 0
IL_0005: stloc 1 (System.Boolean)
IL_0009: ldc.i4.1
IL_000A: stloc 1 (System.Boolean)
IL_000E: ldloc 1 (System.Boolean)
IL_0012: brfalse => Label1
IL_0017: ldarg.0
IL_0018: call static System.Boolean
ExtendedStorage.Patches.Thing_DrawGUIOverlay::Prefix(Verse.Thing __instance)
IL_001D: stloc 1 (System.Boolean)
IL_0021: Label1
IL_0021: nop
IL_0022: ldloc 1 (System.Boolean)
IL_0026: brfalse => Label2
IL_002B: ldarg.0
IL_002C: call static System.Boolean
ItemTeleporter.Thing_DrawGUIOverlay_Patch::Prefix(Verse.Thing __instance)
IL_0031: stloc 1 (System.Boolean)
IL_0035: Label2
IL_0035: nop
IL_0036: ldloc 1 (System.Boolean)
IL_003A: brfalse => Label0
IL_003F: // start original
IL_003F: call static Verse.CameraDriver Verse.Find::get_CameraDriver()
IL_0044: callvirt Verse.CameraZoomRange Verse.CameraDriver::get_CurrentZoom()
IL_0049: brtrue => Label3
IL_004E: ldarg.0
IL_004F: ldfld Verse.ThingDef Verse.Thing::def
IL_0054: ldfld System.Int32 Verse.ThingDef::stackLimit
IL_0059: ldc.i4.1
IL_005A: ble => Label4
IL_005F: ldarg.0
IL_0060: ldarg.0
IL_0061: ldfld System.Int32 Verse.Thing::stackCount
IL_0066: call static System.String
Verse.GenString::ToStringCached(System.Int32 num)
IL_006B: call static System.Void Verse.GenMapUI::DrawThingLabel(Verse.Thing
thing, System.String text)
IL_0070: br => Label7
IL_0075: Label4
IL_0075: ldarg.0
IL_0076: ldfld Verse.ThingDef Verse.Thing::def
IL_007B: ldfld System.Boolean Verse.ThingDef::drawGUIOverlayQuality
IL_0080: brfalse => Label5
IL_0085: ldarg.0
IL_0086: ldloca.s 0 (RimWorld.QualityCategory)
IL_0088: call static System.Boolean
RimWorld.QualityUtility::TryGetQuality(Verse.Thing t, RimWorld.QualityCategory& qc)
IL_008D: brfalse => Label6
IL_0092: ldarg.0
IL_0093: ldloc.0
IL_0094: call static System.String
RimWorld.QualityUtility::GetLabelShort(RimWorld.QualityCategory cat)
IL_0099: call static System.Void Verse.GenMapUI::DrawThingLabel(Verse.Thing
thing, System.String text)
IL_009E: // end original
IL_009E: Label3
IL_009E: Label5
IL_009E: Label6
IL_009E: Label7
IL_009E: Label0
IL_009E: ret
DONE

### Patch: virtual System.Void Verse.Thing::Print(Verse.SectionLayer layer)


### Replacement: static System.Void
Verse.Thing::Verse.Thing.Print_Patch1(Verse.Thing this, Verse.SectionLayer layer)
IL_0000: Local var 0: System.Boolean
IL_0000: ldc.i4 0
IL_0005: stloc 0 (System.Boolean)
IL_0009: ldc.i4.1
IL_000A: stloc 0 (System.Boolean)
IL_000E: ldloc 0 (System.Boolean)
IL_0012: brfalse => Label1
IL_0017: ldarg.0
IL_0018: call static System.Boolean
ItemTeleporter.Thing_Print_Patch::Prefix(Verse.Thing __instance)
IL_001D: stloc 0 (System.Boolean)
IL_0021: Label1
IL_0021: nop
IL_0022: ldloc 0 (System.Boolean)
IL_0026: brfalse => Label0
IL_002B: // start original
IL_002B: ldarg.0
IL_002C: callvirt virtual Verse.Graphic Verse.Thing::get_Graphic()
IL_0031: ldarg.1
IL_0032: ldarg.0
IL_0033: ldc.r4 0
IL_0038: callvirt virtual System.Void Verse.Graphic::Print(Verse.SectionLayer
layer, Verse.Thing thing, System.Single extraRotation)
IL_003D: // end original
IL_003D: Label0
IL_003D: ret
DONE

### Patch: System.Void Verse.AI.Pawn_JobTracker::StartJob(Verse.AI.Job newJob,


Verse.AI.JobCondition lastJobEndCondition, Verse.AI.ThinkNode jobGiver,
System.Boolean resumeCurJobAfterwards, System.Boolean cancelBusyStances,
Verse.ThinkTreeDef thinkTree, System.Nullable`1<Verse.AI.JobTag> tag,
System.Boolean fromQueue, System.Boolean canReturnCurJobToPool,
System.Nullable`1<System.Boolean> keepCarryingThingOverride, System.Boolean
continueSleeping, System.Boolean addToJobsThisTick)
### Replacement: static System.Void
Verse.AI.Pawn_JobTracker::Verse.AI.Pawn_JobTracker.StartJob_Patch2(Verse.AI.Pawn_Jo
bTracker this, Verse.AI.Job newJob, Verse.AI.JobCondition lastJobEndCondition,
Verse.AI.ThinkNode jobGiver, System.Boolean resumeCurJobAfterwards, System.Boolean
cancelBusyStances, Verse.ThinkTreeDef thinkTree, System.Nullable`1<Verse.AI.JobTag>
tag, System.Boolean fromQueue, System.Boolean canReturnCurJobToPool,
System.Nullable`1<System.Boolean> keepCarryingThingOverride, System.Boolean
continueSleeping, System.Boolean addToJobsThisTick)
IL_0000: Local var 0: Verse.AI.Job
IL_0000: Local var 1: System.Boolean
IL_0000: Local var 2: System.Boolean
IL_0000: Local var 3: System.String
IL_0000: Local var 4: System.Nullable`1<System.Boolean>
IL_0000: Local var 5: Verse.AI.Job
IL_0000: Local var 6: System.Nullable`1<Verse.AI.JobTag>
IL_0000: Local var 7: Verse.AI.JobTag
IL_0000: Local var 8: System.Collections.Generic.IEnumerator`1<Verse.Pawn>
IL_0000: Local var 9: Verse.Thing
IL_0000: Local var 10: System.Boolean
IL_0000: ldc.i4 0
IL_0005: stloc 10 (System.Boolean)
IL_0009: ldc.i4.1
IL_000A: stloc 10 (System.Boolean)
IL_000E: ldloc 10 (System.Boolean)
IL_0012: brfalse => Label1
IL_0017: ldarg.0
IL_0018: ldarg.0
IL_0019: ldfld Verse.Pawn Verse.AI.Pawn_JobTracker::pawn
IL_001E: ldarg 1
IL_0022: ldarg 7
IL_0026: call static System.Boolean
VFEPirates.Pawn_JobTracker_StartJob_Patch::Prefix(Verse.AI.Pawn_JobTracker
__instance, Verse.Pawn ___pawn, Verse.AI.Job newJob,
System.Nullable`1<Verse.AI.JobTag> tag)
IL_002B: stloc 10 (System.Boolean)
IL_002F: Label1
IL_002F: nop
IL_0030: ldloc 10 (System.Boolean)
IL_0034: brfalse => Label2
IL_0039: ldarg.0
IL_003A: ldfld Verse.Pawn Verse.AI.Pawn_JobTracker::pawn
IL_003F: ldarg 1
IL_0043: ldarg 2
IL_0047: ldarg 3
IL_004B: ldarg 4
IL_004F: ldarg 5
IL_0053: ldarg 6
IL_0057: ldarg 7
IL_005B: ldarg 8
IL_005F: ldarg 9
IL_0063: call static System.Boolean
ItemTeleporter.Pawn_JobTracker_StartJob_Patch::Prefix(Verse.Pawn ___pawn,
Verse.AI.Job newJob, Verse.AI.JobCondition lastJobEndCondition, Verse.AI.ThinkNode
jobGiver, System.Boolean resumeCurJobAfterwards, System.Boolean cancelBusyStances,
Verse.ThinkTreeDef thinkTree, System.Nullable`1<Verse.AI.JobTag> tag,
System.Boolean fromQueue, System.Boolean canReturnCurJobToPool)
IL_0068: stloc 10 (System.Boolean)
IL_006C: Label2
IL_006C: nop
IL_006D: ldloc 10 (System.Boolean)
IL_0071: brfalse => Label0
IL_0076: // start original
IL_0076: ldarg.0
IL_0077: ldc.i4.1
IL_0078: stfld System.Boolean Verse.AI.Pawn_JobTracker::startingNewJob
IL_007D: ldnull
IL_007E: stloc.0
.try
{
IL_007F: ldarg.s 12
IL_0081: brfalse => Label3
IL_0086: ldarg.s 8
IL_0088: brtrue => Label4
IL_008D: call static Verse.TickManager Verse.Find::get_TickManager()
IL_0092: callvirt System.Boolean Verse.TickManager::get_Paused()
IL_0097: brfalse => Label5
IL_009C: ldarg.0
IL_009D: ldfld System.Int32
Verse.AI.Pawn_JobTracker::lastJobGivenAtFrame
IL_00A2: ldsfld System.Int32 Verse.RealTime::frameCount
IL_00A7: bne.un => Label6
IL_00AC: Label5
IL_00AC: ldarg.0
IL_00AD: ldarg.0
IL_00AE: ldfld System.Int32 Verse.AI.Pawn_JobTracker::jobsGivenThisTick
IL_00B3: ldc.i4.1
IL_00B4: add
IL_00B5: stfld System.Int32 Verse.AI.Pawn_JobTracker::jobsGivenThisTick
IL_00BA: call static System.Boolean Verse.Prefs::get_DevMode()
IL_00BF: brfalse => Label7
IL_00C4: ldarg.0
IL_00C5: ldarg.0
IL_00C6: ldfld System.String
Verse.AI.Pawn_JobTracker::jobsGivenThisTickTextual
IL_00CB: ldstr "("
IL_00D0: ldarg.1
IL_00D1: callvirt virtual System.String System.Object::ToString()
IL_00D6: ldstr ") "
IL_00DB: call static System.String System.String::Concat(System.String
str0, System.String str1, System.String str2, System.String str3)
IL_00E0: stfld System.String
Verse.AI.Pawn_JobTracker::jobsGivenThisTickTextual
IL_00E5: Label3
IL_00E5: Label4
IL_00E5: Label6
IL_00E5: Label7
IL_00E5: ldarg.0
IL_00E6: ldsfld System.Int32 Verse.RealTime::frameCount
IL_00EB: stfld System.Int32
Verse.AI.Pawn_JobTracker::lastJobGivenAtFrame
IL_00F0: ldarg.0
IL_00F1: ldfld System.Int32 Verse.AI.Pawn_JobTracker::jobsGivenThisTick
IL_00F6: ldc.i4.s 10
IL_00F8: ble => Label8
IL_00FD: ldarg.0
IL_00FE: ldfld System.String
Verse.AI.Pawn_JobTracker::jobsGivenThisTickTextual
IL_0103: stloc.3
IL_0104: ldarg.0
IL_0105: ldc.i4.0
IL_0106: stfld System.Int32 Verse.AI.Pawn_JobTracker::jobsGivenThisTick
IL_010B: ldarg.0
IL_010C: ldstr ""
IL_0111: stfld System.String
Verse.AI.Pawn_JobTracker::jobsGivenThisTickTextual
IL_0116: ldarg.0
IL_0117: ldc.i4.0
IL_0118: stfld System.Boolean Verse.AI.Pawn_JobTracker::startingNewJob
IL_011D: ldarg.0
IL_011E: ldfld Verse.Pawn Verse.AI.Pawn_JobTracker::pawn
IL_0123: ldarg.1
IL_0124: callvirt System.Void
Verse.Pawn::ClearReservationsForJob(Verse.AI.Job job)
IL_0129: ldarg.0
IL_012A: ldfld Verse.Pawn Verse.AI.Pawn_JobTracker::pawn
IL_012F: ldc.i4.7
IL_0130: newarr System.String
IL_0135: dup
IL_0136: ldc.i4.0
IL_0137: ldarg.0
IL_0138: ldfld Verse.Pawn Verse.AI.Pawn_JobTracker::pawn
IL_013D: call static System.String Verse.Gen::ToStringSafe(Verse.Pawn
obj)
IL_0142: stelem.ref
IL_0143: dup
IL_0144: ldc.i4.1
IL_0145: ldstr " started 10 jobs in one tick. newJob="
IL_014A: stelem.ref
IL_014B: dup
IL_014C: ldc.i4.2
IL_014D: ldarg.1
IL_014E: call static System.String Verse.Gen::ToStringSafe(Verse.AI.Job
obj)
IL_0153: stelem.ref
IL_0154: dup
IL_0155: ldc.i4.3
IL_0156: ldstr " jobGiver="
IL_015B: stelem.ref
IL_015C: dup
IL_015D: ldc.i4.4
IL_015E: ldarg.3
IL_015F: call static System.String
Verse.Gen::ToStringSafe(Verse.AI.ThinkNode obj)
IL_0164: stelem.ref
IL_0165: dup
IL_0166: ldc.i4.5
IL_0167: ldstr " jobList="
IL_016C: stelem.ref
IL_016D: dup
IL_016E: ldc.i4.6
IL_016F: ldloc.3
IL_0170: stelem.ref
IL_0171: call static System.String
System.String::Concat(System.String[] values)
IL_0176: ldnull
IL_0177: ldnull
IL_0178: call static System.Void
Verse.AI.JobUtility::TryStartErrorRecoverJob(Verse.Pawn pawn, System.String
message, System.Exception exception, Verse.AI.JobDriver concreteDriver)
IL_017D: leave => Label9
IL_0182: Label8
IL_0182: ldarg.0
IL_0183: ldfld System.Boolean Verse.AI.Pawn_JobTracker::debugLog
IL_0188: brfalse => Label10
IL_018D: ldarg.0
IL_018E: ldc.i4.8
IL_018F: newarr System.Object
IL_0194: dup
IL_0195: ldc.i4.0
IL_0196: ldstr "StartJob ["
IL_019B: stelem.ref
IL_019C: dup
IL_019D: ldc.i4.1
IL_019E: ldarg.1
IL_019F: stelem.ref
IL_01A0: dup
IL_01A1: ldc.i4.2
IL_01A2: ldstr "] lastJobEndCondition="
IL_01A7: stelem.ref
IL_01A8: dup
IL_01A9: ldc.i4.3
IL_01AA: ldarg.2
IL_01AB: box Verse.AI.JobCondition
IL_01B0: stelem.ref
IL_01B1: dup
IL_01B2: ldc.i4.4
IL_01B3: ldstr ", jobGiver="
IL_01B8: stelem.ref
IL_01B9: dup
IL_01BA: ldc.i4.5
IL_01BB: ldarg.3
IL_01BC: stelem.ref
IL_01BD: dup
IL_01BE: ldc.i4.6
IL_01BF: ldstr ", cancelBusyStances="
IL_01C4: stelem.ref
IL_01C5: dup
IL_01C6: ldc.i4.7
IL_01C7: ldarga.s 5
IL_01C9: call virtual System.String System.Boolean::ToString()
IL_01CE: stelem.ref
IL_01CF: call static System.String
System.String::Concat(System.Object[] args)
IL_01D4: call System.Void
Verse.AI.Pawn_JobTracker::DebugLogEvent(System.String s)
IL_01D9: Label10
IL_01D9: ldarg.s 5
IL_01DB: brfalse => Label11
IL_01E0: ldarg.0
IL_01E1: ldfld Verse.Pawn Verse.AI.Pawn_JobTracker::pawn
IL_01E6: ldfld Verse.Pawn_StanceTracker Verse.Pawn::stances
IL_01EB: callvirt System.Boolean
Verse.Pawn_StanceTracker::get_FullBodyBusy()
IL_01F0: brfalse => Label12
IL_01F5: ldarg.0
IL_01F6: ldfld Verse.Pawn Verse.AI.Pawn_JobTracker::pawn
IL_01FB: ldfld Verse.Pawn_StanceTracker Verse.Pawn::stances
IL_0200: callvirt System.Void
Verse.Pawn_StanceTracker::CancelBusyStanceHard()
IL_0205: Label11
IL_0205: Label12
IL_0205: ldarg.s 11
IL_0207: brfalse => Label13
IL_020C: ldarg.0
IL_020D: ldfld Verse.AI.JobDriver Verse.AI.Pawn_JobTracker::curDriver
IL_0212: dup
IL_0213: brtrue => Label14
IL_0218: pop
IL_0219: ldc.i4.0
IL_021A: br => Label15
IL_021F: Label14
IL_021F: ldfld System.Boolean Verse.AI.JobDriver::asleep
IL_0224: br => Label16
IL_0229: Label13
IL_0229: ldc.i4.0
IL_022A: Label15
IL_022A: Label16
IL_022A: stloc.1
IL_022B: ldarg.0
IL_022C: ldfld Verse.AI.Job Verse.AI.Pawn_JobTracker::curJob
IL_0231: brfalse => Label17
IL_0236: ldarg.2
IL_0237: brtrue => Label18
IL_023C: ldc.i4.8
IL_023D: newarr System.Object
IL_0242: dup
IL_0243: ldc.i4.0
IL_0244: ldarg.0
IL_0245: ldfld Verse.Pawn Verse.AI.Pawn_JobTracker::pawn
IL_024A: stelem.ref
IL_024B: dup
IL_024C: ldc.i4.1
IL_024D: ldstr " starting job "
IL_0252: stelem.ref
IL_0253: dup
IL_0254: ldc.i4.2
IL_0255: ldarg.1
IL_0256: stelem.ref
IL_0257: dup
IL_0258: ldc.i4.3
IL_0259: ldstr " from JobGiver "
IL_025E: stelem.ref
IL_025F: dup
IL_0260: ldc.i4.4
IL_0261: ldarg.1
IL_0262: ldfld Verse.AI.ThinkNode Verse.AI.Job::jobGiver
IL_0267: stelem.ref
IL_0268: dup
IL_0269: ldc.i4.5
IL_026A: ldstr " while already having job "
IL_026F: stelem.ref
IL_0270: dup
IL_0271: ldc.i4.6
IL_0272: ldarg.0
IL_0273: ldfld Verse.AI.Job Verse.AI.Pawn_JobTracker::curJob
IL_0278: stelem.ref
IL_0279: dup
IL_027A: ldc.i4.7
IL_027B: ldstr " without a specific job end condition."
IL_0280: stelem.ref
IL_0281: call static System.String
System.String::Concat(System.Object[] args)
IL_0286: call static System.Void Verse.Log::Warning(System.String text)
IL_028B: ldc.i4.5
IL_028C: starg.s 2
IL_028E: Label18
IL_028E: ldarg.s 4
IL_0290: brfalse => Label19
IL_0295: ldarg.0
IL_0296: ldfld Verse.AI.Job Verse.AI.Pawn_JobTracker::curJob
IL_029B: ldfld Verse.JobDef Verse.AI.Job::def
IL_02A0: ldfld System.Boolean Verse.JobDef::suspendable
IL_02A5: brfalse => Label20
IL_02AA: ldarg.0
IL_02AB: ldarg.2
IL_02AC: ldarg.s 5
IL_02AE: ldarg.s 10
IL_02B0: call System.Void
Verse.AI.Pawn_JobTracker::SuspendCurrentJob(Verse.AI.JobCondition jobPauseReason,
System.Boolean cancelBusyStances, System.Nullable`1<System.Boolean>
carryThingAfterJobOverride)
IL_02B5: br => Label21
IL_02BA: Label19
IL_02BA: Label20
IL_02BA: ldarg.0
IL_02BB: ldfld Verse.AI.JobDriver Verse.AI.Pawn_JobTracker::curDriver
IL_02C0: ldarg.2
IL_02C1: callvirt Verse.AI.Job
Verse.AI.JobDriver::GetFinalizerJob(Verse.AI.JobCondition condition)
IL_02C6: stloc.0
IL_02C7: ldloc.0
IL_02C8: brfalse => Label22
IL_02CD: ldarg.s 10
IL_02CF: stloc.s 4 (System.Nullable`1[System.Boolean])
IL_02D1: ldloca.s 4 (System.Nullable`1[System.Boolean])
IL_02D3: call System.Boolean
System.Nullable`1<System.Boolean>::get_HasValue()
IL_02D8: brtrue => Label23
IL_02DD: ldc.i4.1
IL_02DE: br => Label24
IL_02E3: Label23
IL_02E3: ldloca.s 4 (System.Nullable`1[System.Boolean])
IL_02E5: call System.Boolean
System.Nullable`1<System.Boolean>::GetValueOrDefault()
IL_02EA: Label24
IL_02EA: newobj System.Void
System.Nullable`1<System.Boolean>::.ctor(System.Boolean value)
IL_02EF: starg.s 10
IL_02F1: Label22
IL_02F1: ldarg.0
IL_02F2: ldarg.2
IL_02F3: ldc.i4.1
IL_02F4: ldarg.s 5
IL_02F6: ldarg.s 9
IL_02F8: ldarg.s 10
IL_02FA: call System.Void
Verse.AI.Pawn_JobTracker::CleanupCurrentJob(Verse.AI.JobCondition condition,
System.Boolean releaseReservations, System.Boolean cancelBusyStancesSoft,
System.Boolean canReturnToPool, System.Nullable`1<System.Boolean>
carryThingAfterJobOverride)
IL_02FF: Label17
IL_02FF: Label21
IL_02FF: ldarg.1
IL_0300: brtrue => Label25
IL_0305: ldarg.0
IL_0306: ldfld Verse.Pawn Verse.AI.Pawn_JobTracker::pawn
IL_030B: ldstr " tried to start doing a null job."
IL_0310: call static System.String System.String::Concat(System.Object
arg0, System.Object arg1)
IL_0315: call static System.Void Verse.Log::Warning(System.String text)
IL_031A: leave => Label26
IL_031F: Label25
IL_031F: ldarg.1
IL_0320: call static Verse.TickManager Verse.Find::get_TickManager()
IL_0325: callvirt System.Int32 Verse.TickManager::get_TicksGame()
IL_032A: stfld System.Int32 Verse.AI.Job::startTick
IL_032F: ldarg.0
IL_0330: ldfld Verse.Pawn Verse.AI.Pawn_JobTracker::pawn
IL_0335: callvirt System.Boolean Verse.Pawn::get_Drafted()
IL_033A: brtrue => Label27
IL_033F: ldarg.1
IL_0340: ldfld System.Boolean Verse.AI.Job::playerForced
IL_0345: brfalse => Label28
IL_034A: Label27
IL_034A: ldarg.1
IL_034B: ldc.i4.1
IL_034C: stfld System.Boolean Verse.AI.Job::ignoreForbidden
IL_0351: ldarg.1
IL_0352: ldc.i4.1
IL_0353: stfld System.Boolean Verse.AI.Job::ignoreDesignations
IL_0358: Label28
IL_0358: ldarg.0
IL_0359: ldarg.1
IL_035A: stfld Verse.AI.Job Verse.AI.Pawn_JobTracker::curJob
IL_035F: ldarg.0
IL_0360: ldfld Verse.AI.Job Verse.AI.Pawn_JobTracker::curJob
IL_0365: ldarg.s 6
IL_0367: stfld Verse.ThinkTreeDef Verse.AI.Job::jobGiverThinkTree
IL_036C: ldarg.0
IL_036D: ldfld Verse.AI.Job Verse.AI.Pawn_JobTracker::curJob
IL_0372: ldarg.3
IL_0373: stfld Verse.AI.ThinkNode Verse.AI.Job::jobGiver
IL_0378: ldarg.0
IL_0379: ldarg.0
IL_037A: ldfld Verse.AI.Job Verse.AI.Pawn_JobTracker::curJob
IL_037F: ldarg.0
IL_0380: ldfld Verse.Pawn Verse.AI.Pawn_JobTracker::pawn
IL_0385: callvirt Verse.AI.JobDriver Verse.AI.Job::MakeDriver(Verse.Pawn
driverPawn)
IL_038A: stfld Verse.AI.JobDriver Verse.AI.Pawn_JobTracker::curDriver
IL_038F: ldarg.0
IL_0390: ldfld Verse.AI.JobDriver Verse.AI.Pawn_JobTracker::curDriver
IL_0395: ldloc.1
IL_0396: stfld System.Boolean Verse.AI.JobDriver::asleep
IL_039B: ldarg.s 8
IL_039D: stloc.2
IL_039E: ldarg.0
IL_039F: ldfld Verse.AI.JobDriver Verse.AI.Pawn_JobTracker::curDriver
IL_03A4: ldloc.2
IL_03A5: ldc.i4.0
IL_03A6: ceq
IL_03A8: callvirt abstract virtual System.Boolean
Verse.AI.JobDriver::TryMakePreToilReservations(System.Boolean errorOnFailed)
IL_03AD: brfalse => Label29
IL_03B2: ldarg.0
IL_03B3: ldloc.0
IL_03B4: ldarg.1
IL_03B5: call Verse.AI.Job
Verse.AI.Pawn_JobTracker::TryOpportunisticJob(Verse.AI.Job finalizerJob,
Verse.AI.Job job)
IL_03BA: stloc.s 5 (Verse.AI.Job)
IL_03BC: ldloc.s 5 (Verse.AI.Job)
IL_03BE: brfalse => Label30
IL_03C3: ldarg.0
IL_03C4: ldfld Verse.AI.JobQueue Verse.AI.Pawn_JobTracker::jobQueue
IL_03C9: ldarg.1
IL_03CA: ldloca.s 6 (System.Nullable`1[Verse.AI.JobTag])
IL_03CC: initobj System.Nullable`1[Verse.AI.JobTag]
IL_03D2: ldloc.s 6 (System.Nullable`1[Verse.AI.JobTag])
IL_03D4: callvirt System.Void Verse.AI.JobQueue::EnqueueFirst(Verse.AI.Job
j, System.Nullable`1<Verse.AI.JobTag> tag)
IL_03D9: ldarg.0
IL_03DA: ldnull
IL_03DB: stfld Verse.AI.Job Verse.AI.Pawn_JobTracker::curJob
IL_03E0: ldarg.0
IL_03E1: call System.Void Verse.AI.Pawn_JobTracker::ClearDriver()
IL_03E6: ldarg.0
IL_03E7: ldloc.s 5 (Verse.AI.Job)
IL_03E9: ldc.i4.0
IL_03EA: ldnull
IL_03EB: ldc.i4.0
IL_03EC: ldc.i4.1
IL_03ED: ldnull
IL_03EE: ldloca.s 6 (System.Nullable`1[Verse.AI.JobTag])
IL_03F0: initobj System.Nullable`1[Verse.AI.JobTag]
IL_03F6: ldloc.s 6 (System.Nullable`1[Verse.AI.JobTag])
IL_03F8: ldc.i4.0
IL_03F9: ldc.i4.0
IL_03FA: ldarg.s 10
IL_03FC: ldc.i4.0
IL_03FD: ldc.i4.1
IL_03FE: call System.Void
Verse.AI.Pawn_JobTracker::StartJob(Verse.AI.Job newJob, Verse.AI.JobCondition
lastJobEndCondition, Verse.AI.ThinkNode jobGiver, System.Boolean
resumeCurJobAfterwards, System.Boolean cancelBusyStances, Verse.ThinkTreeDef
thinkTree, System.Nullable`1<Verse.AI.JobTag> tag, System.Boolean fromQueue,
System.Boolean canReturnCurJobToPool, System.Nullable`1<System.Boolean>
keepCarryingThingOverride, System.Boolean continueSleeping, System.Boolean
addToJobsThisTick)
IL_0403: leave => Label31
IL_0408: Label30
IL_0408: ldarga.s 7
IL_040A: call System.Boolean
System.Nullable`1<Verse.AI.JobTag>::get_HasValue()
IL_040F: brfalse => Label32
IL_0414: ldarg.s 7
IL_0416: stloc.s 6 (System.Nullable`1[Verse.AI.JobTag])
IL_0418: ldc.i4.2
IL_0419: stloc.s 7 (Verse.AI.JobTag)
IL_041B: ldloca.s 6 (System.Nullable`1[Verse.AI.JobTag])
IL_041D: call Verse.AI.JobTag
System.Nullable`1<Verse.AI.JobTag>::GetValueOrDefault()
IL_0422: ldloc.s 7 (Verse.AI.JobTag)
IL_0424: ceq
IL_0426: ldloca.s 6 (System.Nullable`1[Verse.AI.JobTag])
IL_0428: call System.Boolean
System.Nullable`1<Verse.AI.JobTag>::get_HasValue()
IL_042D: and
IL_042E: brfalse => Label33
IL_0433: ldarg.0
IL_0434: ldfld Verse.Pawn Verse.AI.Pawn_JobTracker::pawn
IL_0439: ldfld Verse.AI.Pawn_MindState Verse.Pawn::mindState
IL_043E: ldfld Verse.AI.JobTag Verse.AI.Pawn_MindState::lastJobTag
IL_0443: ldarg.s 7
IL_0445: stloc.s 6 (System.Nullable`1[Verse.AI.JobTag])
IL_0447: ldloca.s 6 (System.Nullable`1[Verse.AI.JobTag])
IL_0449: call Verse.AI.JobTag
System.Nullable`1<Verse.AI.JobTag>::GetValueOrDefault()
IL_044E: ceq
IL_0450: ldloca.s 6 (System.Nullable`1[Verse.AI.JobTag])
IL_0452: call System.Boolean
System.Nullable`1<Verse.AI.JobTag>::get_HasValue()
IL_0457: and
IL_0458: brtrue => Label34
IL_045D: ldarg.0
IL_045E: ldfld Verse.Pawn Verse.AI.Pawn_JobTracker::pawn
IL_0463: call static
System.Collections.Generic.IEnumerable`1<Verse.Pawn>
RimWorld.PawnUtility::SpawnedMasteredPawns(Verse.Pawn master)
IL_0468: callvirt abstract virtual
System.Collections.Generic.IEnumerator`1<Verse.Pawn>
System.Collections.Generic.IEnumerable`1<Verse.Pawn>::GetEnumerator()
IL_046D: stloc.s 8 (System.Collections.Generic.IEnumerator`1[Verse.Pawn])
.try
{
IL_046F: br => Label35
IL_0474: Label36
IL_0474: ldloc.s 8
(System.Collections.Generic.IEnumerator`1[Verse.Pawn])
IL_0476: callvirt abstract virtual Verse.Pawn
System.Collections.Generic.IEnumerator`1<Verse.Pawn>::get_Current()
IL_047B: ldfld Verse.AI.Pawn_JobTracker Verse.Pawn::jobs
IL_0480: callvirt System.Void
Verse.AI.Pawn_JobTracker::Notify_MasterStartedFieldWork()
IL_0485: Label35
IL_0485: ldloc.s 8
(System.Collections.Generic.IEnumerator`1[Verse.Pawn])
IL_0487: callvirt abstract virtual System.Boolean
System.Collections.IEnumerator::MoveNext()
IL_048C: brtrue => Label36
IL_0491: leave => Label37
IL_0496: leave => (autogenerated)
} // end try
.finally
{
IL_049B: ldloc.s 8
(System.Collections.Generic.IEnumerator`1[Verse.Pawn])
IL_049D: brfalse => Label38
IL_04A2: ldloc.s 8
(System.Collections.Generic.IEnumerator`1[Verse.Pawn])
IL_04A4: callvirt abstract virtual System.Void
System.IDisposable::Dispose()
IL_04A9: Label38
IL_04A9: endfinally
IL_04AA: leave => (autogenerated)
} // end handler
IL_04AB: Label33
IL_04AB: Label34
IL_04AB: Label37
IL_04AB: ldarg.0
IL_04AC: ldfld Verse.Pawn Verse.AI.Pawn_JobTracker::pawn
IL_04B1: ldfld Verse.AI.Pawn_MindState Verse.Pawn::mindState
IL_04B6: ldarga.s 7
IL_04B8: call Verse.AI.JobTag
System.Nullable`1<Verse.AI.JobTag>::get_Value()
IL_04BD: stfld Verse.AI.JobTag Verse.AI.Pawn_MindState::lastJobTag
IL_04C2: Label32
IL_04C2: ldarg.0
IL_04C3: ldfld Verse.Pawn Verse.AI.Pawn_JobTracker::pawn
IL_04C8: call static System.Boolean
RimWorld.PawnUtility::IsCarrying(Verse.Pawn pawn)
IL_04CD: brfalse => Label39
IL_04D2: ldarg.s 10
IL_04D4: stloc.s 4 (System.Nullable`1[System.Boolean])
IL_04D6: ldloca.s 4 (System.Nullable`1[System.Boolean])
IL_04D8: call System.Boolean
System.Nullable`1<System.Boolean>::get_HasValue()
IL_04DD: brtrue => Label40
IL_04E2: ldarg.0
IL_04E3: ldfld Verse.AI.Job Verse.AI.Pawn_JobTracker::curJob
IL_04E8: ldfld Verse.JobDef Verse.AI.Job::def
IL_04ED: ldfld System.Boolean Verse.JobDef::dropThingBeforeJob
IL_04F2: ldc.i4.0
IL_04F3: ceq
IL_04F5: br => Label41
IL_04FA: Label40
IL_04FA: ldloca.s 4 (System.Nullable`1[System.Boolean])
IL_04FC: call System.Boolean
System.Nullable`1<System.Boolean>::GetValueOrDefault()
IL_0501: Label41
IL_0501: brtrue => Label42
IL_0506: ldsfld System.Boolean
Verse.DebugViewSettings::logCarriedBetweenJobs
IL_050B: brfalse => Label43
IL_0510: ldstr "Dropping {0} before starting job {1}"
IL_0515: ldarg.0
IL_0516: ldfld Verse.Pawn Verse.AI.Pawn_JobTracker::pawn
IL_051B: ldfld Verse.Pawn_CarryTracker Verse.Pawn::carryTracker
IL_0520: callvirt Verse.Thing Verse.Pawn_CarryTracker::get_CarriedThing()
IL_0525: ldarg.1
IL_0526: call static System.String System.String::Format(System.String
format, System.Object arg0, System.Object arg1)
IL_052B: call static System.Void Verse.Log::Message(System.String text)
IL_0530: Label43
IL_0530: ldarg.0
IL_0531: ldfld Verse.Pawn Verse.AI.Pawn_JobTracker::pawn
IL_0536: ldfld Verse.Pawn_CarryTracker Verse.Pawn::carryTracker
IL_053B: ldarg.0
IL_053C: ldfld Verse.Pawn Verse.AI.Pawn_JobTracker::pawn
IL_0541: callvirt virtual Verse.IntVec3 Verse.Thing::get_Position()
IL_0546: ldc.i4.1
IL_0547: ldloca.s 9 (Verse.Thing)
IL_0549: ldnull
IL_054A: callvirt System.Boolean
Verse.Pawn_CarryTracker::TryDropCarriedThing(Verse.IntVec3 dropLoc,
Verse.ThingPlaceMode mode, Verse.Thing& resultingThing,
System.Action`2<Verse.Thing, System.Int32> placedAction)
IL_054F: pop
IL_0550: Label39
IL_0550: Label42
IL_0550: ldarg.0
IL_0551: ldfld Verse.AI.JobDriver Verse.AI.Pawn_JobTracker::curDriver
IL_0556: callvirt virtual System.Void
Verse.AI.JobDriver::SetInitialPosture()
IL_055B: ldarg.0
IL_055C: ldfld Verse.AI.JobDriver Verse.AI.Pawn_JobTracker::curDriver
IL_0561: callvirt virtual System.Void Verse.AI.JobDriver::Notify_Starting()
IL_0566: ldarg.0
IL_0567: ldfld Verse.AI.JobDriver Verse.AI.Pawn_JobTracker::curDriver
IL_056C: callvirt System.Void Verse.AI.JobDriver::SetupToils()
IL_0571: ldarg.0
IL_0572: ldfld Verse.AI.JobDriver Verse.AI.Pawn_JobTracker::curDriver
IL_0577: callvirt System.Void Verse.AI.JobDriver::ReadyForNextToil()
IL_057C: leave => Label44
IL_0581: Label29
IL_0581: ldloc.2
IL_0582: brfalse => Label45
IL_0587: ldarg.0
IL_0588: ldc.i4.6
IL_0589: ldc.i4.1
IL_058A: ldc.i4.1
IL_058B: call System.Void
Verse.AI.Pawn_JobTracker::EndCurrentJob(Verse.AI.JobCondition condition,
System.Boolean startNewJob, System.Boolean canReturnToPool)
IL_0590: leave => Label46
IL_0595: Label45
IL_0595: ldstr "TryMakePreToilReservations() returned false for a non-
queued job right after StartJob(). This should have been checked before. curJob="
IL_059A: ldarg.0
IL_059B: ldfld Verse.AI.Job Verse.AI.Pawn_JobTracker::curJob
IL_05A0: call static System.String Verse.Gen::ToStringSafe(Verse.AI.Job
obj)
IL_05A5: call static System.String System.String::Concat(System.String
str0, System.String str1)
IL_05AA: call static System.Void Verse.Log::Warning(System.String text)
IL_05AF: ldarg.0
IL_05B0: ldc.i4.7
IL_05B1: ldc.i4.1
IL_05B2: ldc.i4.1
IL_05B3: call System.Void
Verse.AI.Pawn_JobTracker::EndCurrentJob(Verse.AI.JobCondition condition,
System.Boolean startNewJob, System.Boolean canReturnToPool)
IL_05B8: leave => Label47
IL_05BD: leave => (autogenerated)
} // end try
.finally
{
IL_05C2: ldarg.0
IL_05C3: ldc.i4.0
IL_05C4: stfld System.Boolean Verse.AI.Pawn_JobTracker::startingNewJob
IL_05C9: endfinally
IL_05CA: leave => (autogenerated)
} // end handler
IL_05CB: // end original
IL_05CB: Label9
IL_05CB: Label26
IL_05CB: Label31
IL_05CB: Label44
IL_05CB: Label46
IL_05CB: Label47
IL_05CB: Label0
IL_05CB: ret
DONE

### Patch: System.Void Verse.PawnRenderer::RenderPawnInternal(UnityEngine.Vector3


rootLoc, System.Single angle, System.Boolean renderBody, Verse.Rot4 bodyFacing,
Verse.RotDrawMode bodyDrawType, Verse.PawnRenderFlags flags)
### Replacement: static System.Void
Verse.PawnRenderer::Verse.PawnRenderer.RenderPawnInternal_Patch4(Verse.PawnRenderer
this, UnityEngine.Vector3 rootLoc, System.Single angle, System.Boolean renderBody,
Verse.Rot4 bodyFacing, Verse.RotDrawMode bodyDrawType, Verse.PawnRenderFlags flags)
IL_0000: Local var 0: UnityEngine.Quaternion
IL_0000: Local var 1: UnityEngine.Vector3
IL_0000: Local var 2: UnityEngine.Vector3
IL_0000: Local var 3: UnityEngine.Vector3
IL_0000: Local var 4: UnityEngine.Vector3
IL_0000: Local var 5: UnityEngine.Mesh
IL_0000: Local var 6: UnityEngine.Vector3
IL_0000: Local var 7: UnityEngine.Vector3
IL_0000: Local var 8: UnityEngine.Vector3
IL_0000: Local var 9: Verse.Rot4
IL_0000: Local var 10: UnityEngine.Mesh
IL_0000: Local var 11: UnityEngine.Material
IL_0000: Local var 12: System.Nullable`1<System.Boolean>
IL_0000: Local var 13: UnityEngine.Vector3
IL_0000: Local var 14: System.Boolean
IL_0000: ldc.i4 0
IL_0005: stloc 14 (System.Boolean)
IL_0009: ldc.i4.1
IL_000A: stloc 14 (System.Boolean)
IL_000E: ldloc 14 (System.Boolean)
IL_0012: brfalse => Label1
IL_0017: ldarg.0
IL_0018: ldfld Verse.Pawn Verse.PawnRenderer::pawn
IL_001D: ldarg 6
IL_0021: call static System.Void
AlienRace.HarmonyPatches::RenderPawnInternalPrefix(Verse.Pawn ___pawn,
Verse.PawnRenderFlags flags)
IL_0026: Label1
IL_0026: nop
IL_0027: ldloc 14 (System.Boolean)
IL_002B: brfalse => Label2
IL_0030: ldarg.0
IL_0031: ldarga 1
IL_0035: ldarg 6
IL_0039: call static System.Boolean
ItemTeleporter.PawnRenderer_RenderPawnInternal_Patch::Prefix(Verse.PawnRenderer
__instance, UnityEngine.Vector3& rootLoc, Verse.PawnRenderFlags flags)
IL_003E: stloc 14 (System.Boolean)
IL_0042: Label2
IL_0042: nop
IL_0043: ldloc 14 (System.Boolean)
IL_0047: brfalse => Label3
IL_004C: ldarg 4
IL_0050: ldarg 5
IL_0054: ldarga 6
IL_0058: ldarg.0
IL_0059: ldflda Verse.Pawn Verse.PawnRenderer::pawn
IL_005E: call static System.Boolean
FacialAnimation.HarmonyPatches::PrefixRenderPawnInternal(Verse.Rot4 bodyFacing,
Verse.RotDrawMode bodyDrawType, Verse.PawnRenderFlags& flags, Verse.Pawn& ___pawn)
IL_0063: stloc 14 (System.Boolean)
IL_0067: Label3
IL_0067: nop
IL_0068: ldloc 14 (System.Boolean)
IL_006C: brfalse => Label0
IL_0071: // start original
IL_0071: ldarg.0
IL_0072: ldfld Verse.PawnGraphicSet Verse.PawnRenderer::graphics
IL_0077: callvirt System.Boolean Verse.PawnGraphicSet::get_AllResolved()
IL_007C: brtrue => Label4
IL_0081: ldarg.0
IL_0082: ldfld Verse.PawnGraphicSet Verse.PawnRenderer::graphics
IL_0087: callvirt System.Void Verse.PawnGraphicSet::ResolveAllGraphics()
IL_008C: Label4
IL_008C: ldarg.2
IL_008D: call static UnityEngine.Vector3 UnityEngine.Vector3::get_up()
IL_0092: call static UnityEngine.Quaternion
UnityEngine.Quaternion::AngleAxis(System.Single angle, UnityEngine.Vector3 axis)
IL_0097: stloc.0
IL_0098: ldarg.1
IL_0099: stloc.1
IL_009A: ldarg.0
IL_009B: ldfld Verse.Pawn Verse.PawnRenderer::pawn
IL_00A0: ldfld Verse.Pawn_AgeTracker Verse.Pawn::ageTracker
IL_00A5: callvirt RimWorld.LifeStageDef Verse.Pawn_AgeTracker::get_CurLifeStage()
IL_00AA: ldflda System.Nullable`1<UnityEngine.Vector3>
RimWorld.LifeStageDef::bodyDrawOffset
IL_00AF: call System.Boolean
System.Nullable`1<UnityEngine.Vector3>::get_HasValue()
IL_00B4: brfalse => Label5
IL_00B9: ldloc.1
IL_00BA: ldarg.0
IL_00BB: ldfld Verse.Pawn Verse.PawnRenderer::pawn
IL_00C0: ldfld Verse.Pawn_AgeTracker Verse.Pawn::ageTracker
IL_00C5: callvirt RimWorld.LifeStageDef Verse.Pawn_AgeTracker::get_CurLifeStage()
IL_00CA: ldflda System.Nullable`1<UnityEngine.Vector3>
RimWorld.LifeStageDef::bodyDrawOffset
IL_00CF: call UnityEngine.Vector3
System.Nullable`1<UnityEngine.Vector3>::get_Value()
IL_00D4: call static UnityEngine.Vector3
UnityEngine.Vector3::op_Addition(UnityEngine.Vector3 a, UnityEngine.Vector3 b)
IL_00D9: stloc.1
IL_00DA: Label5
IL_00DA: ldloc.1
IL_00DB: stloc.2
IL_00DC: ldloc.1
IL_00DD: stloc.3
IL_00DE: ldarg.s 4
IL_00E0: ldsfld Verse.Rot4 Verse.Rot4::North
IL_00E5: call static System.Boolean Verse.Rot4::op_Inequality(Verse.Rot4 a,
Verse.Rot4 b)
IL_00EA: brfalse => Label6
IL_00EF: ldloca.s 3 (UnityEngine.Vector3)
IL_00F1: ldflda System.Single UnityEngine.Vector3::y
IL_00F6: dup
IL_00F7: ldind.r4
IL_00F8: ldc.r4 0.02316602
IL_00FD: add
IL_00FE: stind.r4
IL_00FF: ldloca.s 2 (UnityEngine.Vector3)
IL_0101: ldflda System.Single UnityEngine.Vector3::y
IL_0106: dup
IL_0107: ldind.r4
IL_0108: ldc.r4 0.02027027
IL_010D: add
IL_010E: stind.r4
IL_010F: br => Label7
IL_0114: Label6
IL_0114: ldloca.s 3 (UnityEngine.Vector3)
IL_0116: ldflda System.Single UnityEngine.Vector3::y
IL_011B: dup
IL_011C: ldind.r4
IL_011D: ldc.r4 0.02027027
IL_0122: add
IL_0123: stind.r4
IL_0124: ldloca.s 2 (UnityEngine.Vector3)
IL_0126: ldflda System.Single UnityEngine.Vector3::y
IL_012B: dup
IL_012C: ldind.r4
IL_012D: ldc.r4 0.02316602
IL_0132: add
IL_0133: stind.r4
IL_0134: Label7
IL_0134: ldloc.1
IL_0135: stloc.s 4 (UnityEngine.Vector3)
IL_0137: ldloca.s 4 (UnityEngine.Vector3)
IL_0139: ldflda System.Single UnityEngine.Vector3::y
IL_013E: dup
IL_013F: ldind.r4
IL_0140: ldarg.s 4
IL_0142: ldsfld Verse.Rot4 Verse.Rot4::South
IL_0147: call static System.Boolean Verse.Rot4::op_Equality(Verse.Rot4 a,
Verse.Rot4 b)
IL_014C: brtrue => Label8
IL_0151: ldc.r4 0.02895753
IL_0156: br => Label9
IL_015B: Label8
IL_015B: ldc.r4 0.005791505
IL_0160: Label9
IL_0160: add
IL_0161: stind.r4
IL_0162: ldnull
IL_0163: stloc.s 5 (UnityEngine.Mesh)
IL_0165: ldarg.3
IL_0166: brfalse => Label10
IL_016B: ldarg.0
IL_016C: ldloc.1
IL_016D: ldarg.2
IL_016E: ldarg.s 4
IL_0170: ldarg.s 5
IL_0172: ldarg.s 6
IL_0174: ldloca.s 5 (UnityEngine.Mesh)
IL_0176: call System.Void
Verse.PawnRenderer::DrawPawnBody(UnityEngine.Vector3 rootLoc, System.Single angle,
Verse.Rot4 facing, Verse.RotDrawMode bodyDrawType, Verse.PawnRenderFlags flags,
UnityEngine.Mesh& bodyMesh)
IL_017B: ldarg.s 5
IL_017D: brtrue => Label11
IL_0182: ldarg.0
IL_0183: ldfld Verse.PawnGraphicSet Verse.PawnRenderer::graphics
IL_0188: ldfld Verse.Graphic Verse.PawnGraphicSet::furCoveredGraphic
IL_018D: brfalse => Label12
IL_0192: ldloc.1
IL_0193: stloc.s 7 (UnityEngine.Vector3)
IL_0195: ldloca.s 7 (UnityEngine.Vector3)
IL_0197: ldflda System.Single UnityEngine.Vector3::y
IL_019C: dup
IL_019D: ldind.r4
IL_019E: ldc.r4 0.009187258
IL_01A3: add
IL_01A4: stind.r4
IL_01A5: ldarg.0
IL_01A6: ldloc.s 7 (UnityEngine.Vector3)
IL_01A8: ldarg.s 4
IL_01AA: ldloc.0
IL_01AB: ldarg.s 6
IL_01AD: call System.Void Verse.PawnRenderer::DrawPawnFur(UnityEngine.Vector3
shellLoc, Verse.Rot4 facing, UnityEngine.Quaternion quat, Verse.PawnRenderFlags
flags)
IL_01B2: Label11
IL_01B2: Label12
IL_01B2: ldloc.1
IL_01B3: stloc.s 6 (UnityEngine.Vector3)
IL_01B5: ldloca.s 6 (UnityEngine.Vector3)
IL_01B7: ldflda System.Single UnityEngine.Vector3::y
IL_01BC: dup
IL_01BD: ldind.r4
IL_01BE: ldc.r4 0.009687258
IL_01C3: add
IL_01C4: stind.r4
IL_01C5: ldarg.s 5
IL_01C7: brtrue => Label13
IL_01CC: ldarg.0
IL_01CD: ldfld RimWorld.PawnWoundDrawer Verse.PawnRenderer::woundOverlays
IL_01D2: ldloc.s 6 (UnityEngine.Vector3)
IL_01D4: ldloc.s 5 (UnityEngine.Mesh)
IL_01D6: ldloc.0
IL_01D7: ldarg.s 6
IL_01D9: ldc.i4.8
IL_01DA: call static System.Boolean
Verse.PawnRenderFlagsExtension::FlagSet(Verse.PawnRenderFlags flags,
Verse.PawnRenderFlags flag)
IL_01DF: ldc.i4.0
IL_01E0: ldarg.s 4
IL_01E2: ldc.i4.0
IL_01E3: newobj System.Void
System.Nullable`1<System.Boolean>::.ctor(System.Boolean value)
IL_01E8: callvirt System.Void
RimWorld.PawnOverlayDrawer::RenderPawnOverlay(UnityEngine.Vector3 drawLoc,
UnityEngine.Mesh bodyMesh, UnityEngine.Quaternion quat, System.Boolean drawNow,
RimWorld.OverlayLayer layer, Verse.Rot4 pawnRot, System.Nullable`1<System.Boolean>
overApparel)
IL_01ED: Label13
IL_01ED: ldarg.s 6
IL_01EF: ldc.i4.s 64
IL_01F1: call static System.Boolean
Verse.PawnRenderFlagsExtension::FlagSet(Verse.PawnRenderFlags flags,
Verse.PawnRenderFlags flag)
IL_01F6: brfalse => Label14
IL_01FB: ldarg.0
IL_01FC: ldloc.2
IL_01FD: ldloc.s 4 (UnityEngine.Vector3)
IL_01FF: ldloc.s 5 (UnityEngine.Mesh)
IL_0201: ldarg.2
IL_0202: ldarg.s 4
IL_0204: ldarg.s 6
IL_0206: call System.Void
Verse.PawnRenderer::DrawBodyApparel(UnityEngine.Vector3 shellLoc,
UnityEngine.Vector3 utilityLoc, UnityEngine.Mesh bodyMesh, System.Single angle,
Verse.Rot4 bodyFacing, Verse.PawnRenderFlags flags)
IL_020B: Label14
IL_020B: ldarg.0
IL_020C: ldfld Verse.Pawn Verse.PawnRenderer::pawn
IL_0211: call static System.Boolean
RimWorld.ChildcareUtility::SwaddleBaby(Verse.Pawn baby)
IL_0216: brfalse => Label15
IL_021B: ldarg.0
IL_021C: ldloc.2
IL_021D: ldarg.s 4
IL_021F: ldloc.0
IL_0220: ldarg.s 6
IL_0222: call System.Void Verse.PawnRenderer::SwaddleBaby(UnityEngine.Vector3
shellLoc, Verse.Rot4 facing, UnityEngine.Quaternion quat, Verse.PawnRenderFlags
flags)
IL_0227: Label15
IL_0227: call static System.Boolean Verse.ModLister::get_BiotechInstalled()
IL_022C: brfalse => Label16
IL_0231: ldarg.0
IL_0232: ldfld Verse.Pawn Verse.PawnRenderer::pawn
IL_0237: ldfld RimWorld.Pawn_GeneTracker Verse.Pawn::genes
IL_023C: brfalse => Label17
IL_0241: ldarg.0
IL_0242: ldloc.1
IL_0243: ldloc.0
IL_0244: ldarg.2
IL_0245: ldarg.s 4
IL_0247: ldarg.s 5
IL_0249: ldarg.s 6
IL_024B: call System.Void
Verse.PawnRenderer::DrawBodyGenes(UnityEngine.Vector3 rootLoc,
UnityEngine.Quaternion quat, System.Single angle, Verse.Rot4 bodyFacing,
Verse.RotDrawMode bodyDrawType, Verse.PawnRenderFlags flags)
IL_0250: Label16
IL_0250: Label17
IL_0250: ldloc.1
IL_0251: stloc.s 6 (UnityEngine.Vector3)
IL_0253: ldloca.s 6 (UnityEngine.Vector3)
IL_0255: ldflda System.Single UnityEngine.Vector3::y
IL_025A: dup
IL_025B: ldind.r4
IL_025C: ldc.r4 0.02216602
IL_0261: add
IL_0262: stind.r4
IL_0263: ldarg.s 5
IL_0265: brtrue => Label18
IL_026A: ldarg.0
IL_026B: ldfld RimWorld.PawnWoundDrawer Verse.PawnRenderer::woundOverlays
IL_0270: ldloc.s 6 (UnityEngine.Vector3)
IL_0272: ldloc.s 5 (UnityEngine.Mesh)
IL_0274: ldloc.0
IL_0275: ldarg.s 6
IL_0277: ldc.i4.8
IL_0278: call static System.Boolean
Verse.PawnRenderFlagsExtension::FlagSet(Verse.PawnRenderFlags flags,
Verse.PawnRenderFlags flag)
IL_027D: ldc.i4.0
IL_027E: ldarg.s 4
IL_0280: ldc.i4.1
IL_0281: newobj System.Void
System.Nullable`1<System.Boolean>::.ctor(System.Boolean value)
IL_0286: callvirt System.Void
RimWorld.PawnOverlayDrawer::RenderPawnOverlay(UnityEngine.Vector3 drawLoc,
UnityEngine.Mesh bodyMesh, UnityEngine.Quaternion quat, System.Boolean drawNow,
RimWorld.OverlayLayer layer, Verse.Rot4 pawnRot, System.Nullable`1<System.Boolean>
overApparel)
IL_028B: Label10
IL_028B: Label18
IL_028B: call static UnityEngine.Vector3 UnityEngine.Vector3::get_zero()
IL_0290: stloc.s 8 (UnityEngine.Vector3)
IL_0292: ldloc.1
IL_0293: stloc.s 6 (UnityEngine.Vector3)
IL_0295: ldloca.s 6 (UnityEngine.Vector3)
IL_0297: ldflda System.Single UnityEngine.Vector3::y
IL_029C: dup
IL_029D: ldind.r4
IL_029E: ldc.r4 0.02895753
IL_02A3: add
IL_02A4: stind.r4
IL_02A5: ldarg.s 4
IL_02A7: stloc.s 9 (Verse.Rot4)
IL_02A9: ldnull
IL_02AA: stloc.s 10 (UnityEngine.Mesh)
IL_02AC: ldarg.0
IL_02AD: ldfld Verse.PawnGraphicSet Verse.PawnRenderer::graphics
IL_02B2: ldfld Verse.Graphic Verse.PawnGraphicSet::headGraphic
IL_02B7: brfalse => Label19
IL_02BC: ldloc.0
IL_02BD: ldarg.0
IL_02BE: ldloc.s 9 (Verse.Rot4)
IL_02C0: call UnityEngine.Vector3
Verse.PawnRenderer::BaseHeadOffsetAt(Verse.Rot4 rotation)
IL_02C5: call static UnityEngine.Vector3
UnityEngine.Quaternion::op_Multiply(UnityEngine.Quaternion rotation,
UnityEngine.Vector3 point)
IL_02CA: stloc.s 8 (UnityEngine.Vector3)
IL_02CC: ldarg.0
IL_02CD: ldfld Verse.PawnGraphicSet Verse.PawnRenderer::graphics
IL_02D2: ldloc.s 9 (Verse.Rot4)
IL_02D4: ldarg.s 5
IL_02D6: ldarg.s 6
IL_02D8: ldc.i4.2
IL_02D9: call static System.Boolean
Verse.PawnRenderFlagsExtension::FlagSet(Verse.PawnRenderFlags flags,
Verse.PawnRenderFlags flag)
IL_02DE: ldarg.s 6
IL_02E0: ldc.i4.1
IL_02E1: call static System.Boolean
Verse.PawnRenderFlagsExtension::FlagSet(Verse.PawnRenderFlags flags,
Verse.PawnRenderFlags flag)
IL_02E6: ldarg.s 6
IL_02E8: ldc.i4.s 16
IL_02EA: call static System.Boolean
Verse.PawnRenderFlagsExtension::FlagSet(Verse.PawnRenderFlags flags,
Verse.PawnRenderFlags flag)
IL_02EF: ldc.i4.0
IL_02F0: ceq
IL_02F2: callvirt UnityEngine.Material Verse.PawnGraphicSet::HeadMatAt(Verse.Rot4
facing, Verse.RotDrawMode bodyCondition, System.Boolean stump, System.Boolean
portrait, System.Boolean allowOverride)
IL_02F7: stloc.s 11 (UnityEngine.Material)
IL_02F9: ldloc.s 11 (UnityEngine.Material)
IL_02FB: ldnull
IL_02FC: call static System.Boolean
UnityEngine.Object::op_Inequality(UnityEngine.Object x, UnityEngine.Object y)
IL_0301: brfalse => Label20
IL_0306: ldarg.0
IL_0307: ldfld Verse.Pawn Verse.PawnRenderer::pawn
IL_030C: call static Verse.GraphicMeshSet
Verse.HumanlikeMeshPoolUtility::GetHumanlikeHeadSetForPawn(Verse.Pawn pawn)
IL_0311: ldloc.s 9 (Verse.Rot4)
IL_0313: callvirt UnityEngine.Mesh Verse.GraphicMeshSet::MeshAt(Verse.Rot4 rot)
IL_0318: stloc.s 10 (UnityEngine.Mesh)
IL_031A: ldloc.s 10 (UnityEngine.Mesh)
IL_031C: ldloc.3
IL_031D: ldloc.s 8 (UnityEngine.Vector3)
IL_031F: call static UnityEngine.Vector3
UnityEngine.Vector3::op_Addition(UnityEngine.Vector3 a, UnityEngine.Vector3 b)
IL_0324: ldloc.0
IL_0325: ldloc.s 11 (UnityEngine.Material)
IL_0327: ldarg.s 6
IL_0329: ldc.i4.8
IL_032A: call static System.Boolean
Verse.PawnRenderFlagsExtension::FlagSet(Verse.PawnRenderFlags flags,
Verse.PawnRenderFlags flag)
IL_032F: call static System.Void
FacialAnimation.HarmonyPatches::DrawFace(UnityEngine.Mesh mesh, UnityEngine.Vector3
pos, UnityEngine.Quaternion quaternion, UnityEngine.Material mat, System.Boolean
portrait)
IL_0334: Label19
IL_0334: Label20
IL_0334: ldarg.s 5
IL_0336: brtrue => Label21
IL_033B: ldarg.0
IL_033C: ldfld RimWorld.PawnWoundDrawer Verse.PawnRenderer::woundOverlays
IL_0341: ldloc.s 6 (UnityEngine.Vector3)
IL_0343: ldloc.s 5 (UnityEngine.Mesh)
IL_0345: ldloc.0
IL_0346: ldarg.s 6
IL_0348: ldc.i4.8
IL_0349: call static System.Boolean
Verse.PawnRenderFlagsExtension::FlagSet(Verse.PawnRenderFlags flags,
Verse.PawnRenderFlags flag)
IL_034E: ldc.i4.1
IL_034F: ldloc.s 9 (Verse.Rot4)
IL_0351: ldloca.s 12 (System.Nullable`1[System.Boolean])
IL_0353: initobj System.Nullable`1[System.Boolean]
IL_0359: ldloc.s 12 (System.Nullable`1[System.Boolean])
IL_035B: callvirt System.Void
RimWorld.PawnOverlayDrawer::RenderPawnOverlay(UnityEngine.Vector3 drawLoc,
UnityEngine.Mesh bodyMesh, UnityEngine.Quaternion quat, System.Boolean drawNow,
RimWorld.OverlayLayer layer, Verse.Rot4 pawnRot, System.Nullable`1<System.Boolean>
overApparel)
IL_0360: Label21
IL_0360: ldarg.0
IL_0361: ldfld Verse.PawnGraphicSet Verse.PawnRenderer::graphics
IL_0366: ldfld Verse.Graphic Verse.PawnGraphicSet::headGraphic
IL_036B: brfalse => Label22
IL_0370: ldarg.0
IL_0371: ldloc.1
IL_0372: ldloc.s 8 (UnityEngine.Vector3)
IL_0374: ldarg.2
IL_0375: ldarg.s 4
IL_0377: ldloc.s 9 (Verse.Rot4)
IL_0379: ldarg.s 5
IL_037B: ldarg.s 6
IL_037D: ldarg.3
IL_037E: call System.Void
Verse.PawnRenderer::DrawHeadHair(UnityEngine.Vector3 rootLoc, UnityEngine.Vector3
headOffset, System.Single angle, Verse.Rot4 bodyFacing, Verse.Rot4 headFacing,
Verse.RotDrawMode bodyDrawType, Verse.PawnRenderFlags flags, System.Boolean
bodyDrawn)
IL_0383: Label22
IL_0383: ldarg.s 6
IL_0385: dup
IL_0386: ldloc.1
IL_0387: ldloc.s 8
IL_0389: ldarg.0
IL_038A: ldfld Verse.Pawn Verse.PawnRenderer::pawn
IL_038F: ldloc.0
IL_0390: ldarg.s 4
IL_0392: call static System.Void
AlienRace.HarmonyPatches::DrawAddons(Verse.PawnRenderFlags renderFlags,
UnityEngine.Vector3 vector, UnityEngine.Vector3 headOffset, Verse.Pawn pawn,
UnityEngine.Quaternion quat, Verse.Rot4 rotation)
IL_0397: ldc.i4.1
IL_0398: call static System.Boolean
Verse.PawnRenderFlagsExtension::FlagSet(Verse.PawnRenderFlags flags,
Verse.PawnRenderFlags flag)
IL_039D: brtrue => Label23
IL_03A2: ldarg.0
IL_03A3: ldfld Verse.Pawn Verse.PawnRenderer::pawn
IL_03A8: callvirt Verse.RaceProperties Verse.Pawn::get_RaceProps()
IL_03AD: callvirt System.Boolean Verse.RaceProperties::get_Animal()
IL_03B2: brfalse => Label24
IL_03B7: ldarg.0
IL_03B8: ldfld Verse.Pawn Verse.PawnRenderer::pawn
IL_03BD: ldfld Verse.Pawn_InventoryTracker Verse.Pawn::inventory
IL_03C2: brfalse => Label25
IL_03C7: ldarg.0
IL_03C8: ldfld Verse.Pawn Verse.PawnRenderer::pawn
IL_03CD: ldfld Verse.Pawn_InventoryTracker Verse.Pawn::inventory
IL_03D2: ldfld Verse.ThingOwner`1<Verse.Thing>
Verse.Pawn_InventoryTracker::innerContainer
IL_03D7: callvirt abstract virtual System.Int32 Verse.ThingOwner::get_Count()
IL_03DC: ldc.i4.0
IL_03DD: ble => Label26
IL_03E2: ldarg.0
IL_03E3: ldfld Verse.PawnGraphicSet Verse.PawnRenderer::graphics
IL_03E8: ldfld Verse.Graphic Verse.PawnGraphicSet::packGraphic
IL_03ED: brfalse => Label27
IL_03F2: ldloc.s 5 (UnityEngine.Mesh)
IL_03F4: ldloc.2
IL_03F5: ldloc.0
IL_03F6: call static UnityEngine.Vector3 UnityEngine.Vector3::get_one()
IL_03FB: call static UnityEngine.Matrix4x4
UnityEngine.Matrix4x4::TRS(UnityEngine.Vector3 pos, UnityEngine.Quaternion q,
UnityEngine.Vector3 s)
IL_0400: ldarg.0
IL_0401: ldfld Verse.PawnGraphicSet Verse.PawnRenderer::graphics
IL_0406: ldfld Verse.Graphic Verse.PawnGraphicSet::packGraphic
IL_040B: ldarg.s 4
IL_040D: ldnull
IL_040E: callvirt virtual UnityEngine.Material Verse.Graphic::MatAt(Verse.Rot4
rot, Verse.Thing thing)
IL_0413: ldarg.s 6
IL_0415: ldc.i4.8
IL_0416: call static System.Boolean
Verse.PawnRenderFlagsExtension::FlagSet(Verse.PawnRenderFlags flags,
Verse.PawnRenderFlags flag)
IL_041B: call static System.Void
Verse.GenDraw::DrawMeshNowOrLater(UnityEngine.Mesh mesh, UnityEngine.Matrix4x4
matrix, UnityEngine.Material mat, System.Boolean drawNow)
IL_0420: Label23
IL_0420: Label24
IL_0420: Label25
IL_0420: Label26
IL_0420: Label27
IL_0420: ldarg.s 5
IL_0422: brtrue => Label28
IL_0427: ldarg.0
IL_0428: ldfld RimWorld.PawnFirefoamDrawer
Verse.PawnRenderer::firefoamOverlays
IL_042D: ldfld System.Boolean RimWorld.PawnFirefoamDrawer::IsCoveredInFoam
IL_0432: brfalse => Label29
IL_0437: ldloc.1
IL_0438: stloc.s 13 (UnityEngine.Vector3)
IL_043A: ldloca.s 13 (UnityEngine.Vector3)
IL_043C: ldflda System.Single UnityEngine.Vector3::y
IL_0441: dup
IL_0442: ldind.r4
IL_0443: ldc.r4 0.03330116
IL_0448: add
IL_0449: stind.r4
IL_044A: ldarg.3
IL_044B: brfalse => Label30
IL_0450: ldarg.0
IL_0451: ldfld RimWorld.PawnFirefoamDrawer
Verse.PawnRenderer::firefoamOverlays
IL_0456: ldloc.s 13 (UnityEngine.Vector3)
IL_0458: ldloc.s 5 (UnityEngine.Mesh)
IL_045A: ldloc.0
IL_045B: ldarg.s 6
IL_045D: ldc.i4.8
IL_045E: call static System.Boolean
Verse.PawnRenderFlagsExtension::FlagSet(Verse.PawnRenderFlags flags,
Verse.PawnRenderFlags flag)
IL_0463: ldc.i4.0
IL_0464: ldarg.s 4
IL_0466: ldloca.s 12 (System.Nullable`1[System.Boolean])
IL_0468: initobj System.Nullable`1[System.Boolean]
IL_046E: ldloc.s 12 (System.Nullable`1[System.Boolean])
IL_0470: callvirt System.Void
RimWorld.PawnOverlayDrawer::RenderPawnOverlay(UnityEngine.Vector3 drawLoc,
UnityEngine.Mesh bodyMesh, UnityEngine.Quaternion quat, System.Boolean drawNow,
RimWorld.OverlayLayer layer, Verse.Rot4 pawnRot, System.Nullable`1<System.Boolean>
overApparel)
IL_0475: Label30
IL_0475: ldloc.s 10 (UnityEngine.Mesh)
IL_0477: ldnull
IL_0478: call static System.Boolean
UnityEngine.Object::op_Inequality(UnityEngine.Object x, UnityEngine.Object y)
IL_047D: brfalse => Label31
IL_0482: ldloc.3
IL_0483: ldloc.s 8 (UnityEngine.Vector3)
IL_0485: call static UnityEngine.Vector3
UnityEngine.Vector3::op_Addition(UnityEngine.Vector3 a, UnityEngine.Vector3 b)
IL_048A: stloc.s 13 (UnityEngine.Vector3)
IL_048C: ldloca.s 13 (UnityEngine.Vector3)
IL_048E: ldflda System.Single UnityEngine.Vector3::y
IL_0493: dup
IL_0494: ldind.r4
IL_0495: ldc.r4 0.03330116
IL_049A: add
IL_049B: stind.r4
IL_049C: ldarg.0
IL_049D: ldfld RimWorld.PawnFirefoamDrawer
Verse.PawnRenderer::firefoamOverlays
IL_04A2: ldloc.s 13 (UnityEngine.Vector3)
IL_04A4: ldloc.s 10 (UnityEngine.Mesh)
IL_04A6: ldloc.0
IL_04A7: ldarg.s 6
IL_04A9: ldc.i4.8
IL_04AA: call static System.Boolean
Verse.PawnRenderFlagsExtension::FlagSet(Verse.PawnRenderFlags flags,
Verse.PawnRenderFlags flag)
IL_04AF: ldc.i4.1
IL_04B0: ldarg.s 4
IL_04B2: ldloca.s 12 (System.Nullable`1[System.Boolean])
IL_04B4: initobj System.Nullable`1[System.Boolean]
IL_04BA: ldloc.s 12 (System.Nullable`1[System.Boolean])
IL_04BC: callvirt System.Void
RimWorld.PawnOverlayDrawer::RenderPawnOverlay(UnityEngine.Vector3 drawLoc,
UnityEngine.Mesh bodyMesh, UnityEngine.Quaternion quat, System.Boolean drawNow,
RimWorld.OverlayLayer layer, Verse.Rot4 pawnRot, System.Nullable`1<System.Boolean>
overApparel)
IL_04C1: Label28
IL_04C1: Label29
IL_04C1: Label31
IL_04C1: ldarg.s 6
IL_04C3: ldc.i4.1
IL_04C4: call static System.Boolean
Verse.PawnRenderFlagsExtension::FlagSet(Verse.PawnRenderFlags flags,
Verse.PawnRenderFlags flag)
IL_04C9: brtrue => Label32
IL_04CE: ldarg.s 6
IL_04D0: ldc.i4.s 16
IL_04D2: call static System.Boolean
Verse.PawnRenderFlagsExtension::FlagSet(Verse.PawnRenderFlags flags,
Verse.PawnRenderFlags flag)
IL_04D7: brtrue => Label33
IL_04DC: ldarg.0
IL_04DD: ldloc.1
IL_04DE: ldarg.2
IL_04DF: ldarg.s 4
IL_04E1: ldarg.s 6
IL_04E3: call System.Void
Verse.PawnRenderer::DrawDynamicParts(UnityEngine.Vector3 rootLoc, System.Single
angle, Verse.Rot4 pawnRotation, Verse.PawnRenderFlags flags)
IL_04E8: // end original
IL_04E8: Label32
IL_04E8: Label33
IL_04E8: Label0
IL_04E8: call static System.Void
FacialAnimation.HarmonyPatches::PostfixRenderPawnInternal()
IL_04ED: ret
DONE

### Patch: System.Void


RimWorld.SteadyEnvironmentEffects::TryDoDeteriorate(Verse.Thing t, System.Boolean
roofed, System.Boolean roomUsesOutdoorTemperature, Verse.TerrainDef terrain)
### Replacement: static System.Void
RimWorld.SteadyEnvironmentEffects::RimWorld.SteadyEnvironmentEffects.TryDoDeteriora
te_Patch1(RimWorld.SteadyEnvironmentEffects this, Verse.Thing t, System.Boolean
roofed, System.Boolean roomUsesOutdoorTemperature, Verse.TerrainDef terrain)
IL_0000: Local var 0: Verse.Corpse
IL_0000: Local var 1: System.Single
IL_0000: Local var 2: System.Collections.Generic.List`1<RimWorld.Apparel>
IL_0000: Local var 3: System.Int32
IL_0000: Local var 4: Verse.IntVec3
IL_0000: Local var 5: Verse.Map
IL_0000: Local var 6: System.Boolean
IL_0000: Local var 7: System.Boolean
IL_0000: ldc.i4 0
IL_0005: stloc 7 (System.Boolean)
IL_0009: ldc.i4.1
IL_000A: stloc 7 (System.Boolean)
IL_000E: ldloc 7 (System.Boolean)
IL_0012: brfalse => Label1
IL_0017: ldarg 1
IL_001B: call static System.Boolean
ItemTeleporter.TryDoDeteriorate_Patch::Prefix(Verse.Thing t)
IL_0020: stloc 7 (System.Boolean)
IL_0024: Label1
IL_0024: nop
IL_0025: ldloc 7 (System.Boolean)
IL_0029: brfalse => Label0
IL_002E: // start original
IL_002E: ldarg.1
IL_002F: isinst Verse.Corpse
IL_0034: stloc.0
IL_0035: ldloc.0
IL_0036: brfalse => Label2
IL_003B: ldloc.0
IL_003C: callvirt Verse.Pawn Verse.Corpse::get_InnerPawn()
IL_0041: ldfld RimWorld.Pawn_ApparelTracker Verse.Pawn::apparel
IL_0046: brfalse => Label3
IL_004B: ldloc.0
IL_004C: callvirt Verse.Pawn Verse.Corpse::get_InnerPawn()
IL_0051: ldfld RimWorld.Pawn_ApparelTracker Verse.Pawn::apparel
IL_0056: callvirt System.Collections.Generic.List`1<RimWorld.Apparel>
RimWorld.Pawn_ApparelTracker::get_WornApparel()
IL_005B: stloc.2
IL_005C: ldc.i4.0
IL_005D: stloc.3
IL_005E: br => Label4
IL_0063: Label5
IL_0063: ldarg.0
IL_0064: ldloc.2
IL_0065: ldloc.3
IL_0066: callvirt virtual RimWorld.Apparel
System.Collections.Generic.List`1<RimWorld.Apparel>::get_Item(System.Int32 index)
IL_006B: ldarg.2
IL_006C: ldarg.3
IL_006D: ldarg.s 4
IL_006F: call System.Void
RimWorld.SteadyEnvironmentEffects::TryDoDeteriorate(Verse.Thing t, System.Boolean
roofed, System.Boolean roomUsesOutdoorTemperature, Verse.TerrainDef terrain)
IL_0074: ldloc.3
IL_0075: ldc.i4.1
IL_0076: add
IL_0077: stloc.3
IL_0078: Label4
IL_0078: ldloc.3
IL_0079: ldloc.2
IL_007A: callvirt virtual System.Int32
System.Collections.Generic.List`1<RimWorld.Apparel>::get_Count()
IL_007F: blt => Label5
IL_0084: Label2
IL_0084: Label3
IL_0084: ldarg.1
IL_0085: ldarg.2
IL_0086: ldarg.3
IL_0087: ldarg.s 4
IL_0089: ldnull
IL_008A: call static System.Single
RimWorld.SteadyEnvironmentEffects::FinalDeteriorationRate(Verse.Thing t,
System.Boolean roofed, System.Boolean roomUsesOutdoorTemperature, Verse.TerrainDef
terrain, System.Collections.Generic.List`1<System.String> reasons)
IL_008F: stloc.1
IL_0090: ldloc.1
IL_0091: ldc.r4 0.001
IL_0096: bge.un => Label6
IL_009B: br => Label8
IL_00A0: Label6
IL_00A0: ldloc.1
IL_00A1: ldc.r4 36
IL_00A6: div
IL_00A7: call static System.Boolean Verse.Rand::Chance(System.Single chance)
IL_00AC: brfalse => Label7
IL_00B1: ldarg.1
IL_00B2: callvirt virtual Verse.IntVec3 Verse.Thing::get_Position()
IL_00B7: stloc.s 4 (Verse.IntVec3)
IL_00B9: ldarg.1
IL_00BA: callvirt virtual Verse.Map Verse.Thing::get_Map()
IL_00BF: stloc.s 5 (Verse.Map)
IL_00C1: ldarg.1
IL_00C2: call static System.Boolean
RimWorld.StoreUtility::IsInAnyStorage(Verse.Thing t)
IL_00C7: stloc.s 6 (System.Boolean)
IL_00C9: ldarg.1
IL_00CA: ldloc.s 4 (Verse.IntVec3)
IL_00CC: ldloc.s 5 (Verse.Map)
IL_00CE: ldloc.s 6 (System.Boolean)
IL_00D0: call static System.Void
RimWorld.SteadyEnvironmentEffects::DoDeteriorationDamage(Verse.Thing t,
Verse.IntVec3 pos, Verse.Map map, System.Boolean sendMessage)
IL_00D5: // end original
IL_00D5: Label7
IL_00D5: Label8
IL_00D5: Label0
IL_00D5: ret
DONE

### Patch: System.Boolean RimWorld.CompRottable::get_Active()


### Replacement: static System.Boolean
RimWorld.CompRottable::RimWorld.CompRottable.get_Active_Patch1(RimWorld.CompRottabl
e this)
IL_0000: Local var 0: RimWorld.CompHatcher
IL_0000: Local var 1: System.Boolean
IL_0000: Local var 2: System.Boolean
IL_0000: ldc.i4 0
IL_0005: stloc 1 (System.Boolean)
IL_0009: ldc.i4 0
IL_000E: stloc 2 (System.Boolean)
IL_0012: ldc.i4.1
IL_0013: stloc 2 (System.Boolean)
IL_0017: ldloc 2 (System.Boolean)
IL_001B: brfalse => Label1
IL_0020: ldarg.0
IL_0021: ldloca 1 (System.Boolean)
IL_0025: call static System.Boolean
ItemTeleporter.Active_Patch::Prefix(RimWorld.CompRottable __instance,
System.Boolean& __result)
IL_002A: stloc 2 (System.Boolean)
IL_002E: Label1
IL_002E: nop
IL_002F: ldloc 2 (System.Boolean)
IL_0033: brfalse => Label0
IL_0038: // start original
IL_0038: ldarg.0
IL_0039: call RimWorld.CompProperties_Rottable
RimWorld.CompRottable::get_PropsRot()
IL_003E: ldfld System.Boolean
RimWorld.CompProperties_Rottable::disableIfHatcher
IL_0043: brfalse => Label2
IL_0048: ldarg.0
IL_0049: ldfld Verse.ThingWithComps Verse.ThingComp::parent
IL_004E: call static RimWorld.CompHatcher
Verse.ThingCompUtility::TryGetComp(Verse.Thing thing)
IL_0053: stloc.0
IL_0054: ldloc.0
IL_0055: brfalse => Label3
IL_005A: ldloc.0
IL_005B: callvirt System.Boolean RimWorld.CompHatcher::get_TemperatureDamaged()
IL_0060: brtrue => Label4
IL_0065: ldc.i4.0
IL_0066: br => Label5
IL_006B: Label2
IL_006B: Label3
IL_006B: Label4
IL_006B: ldc.i4.1
IL_006C: // end original
IL_006C: Label5
IL_006C: stloc 1 (System.Boolean)
IL_0070: Label0
IL_0070: ldloc 1 (System.Boolean)
IL_0074: ret
DONE

### Harmony id=com.github.bc.rimworld.mod.moodbar, version=2.2.2.0, location=C:\


Program Files (x86)\Steam\steamapps\common\data-000002130553D010,
env/clr=4.0.30319.42000, platform=Win32NT, ptrsize:runtime/env=8/Bits64, Windows
### Started from static System.Void ColoredMoodBar13.Main::.cctor(), location C:\
Program Files (x86)\Steam\steamapps\common\data-0000021308F4B6F0
### At 2023-02-17 06.57.31
### Patch: System.Void RimWorld.ColonistBarColonistDrawer::Notify_RecachedEntries()
### Replacement: static System.Void
RimWorld.ColonistBarColonistDrawer::RimWorld.ColonistBarColonistDrawer.Notify_Recac
hedEntries_Patch1(RimWorld.ColonistBarColonistDrawer this)
IL_0000: Local var 0: System.Boolean
IL_0000: ldc.i4 0
IL_0005: stloc 0 (System.Boolean)
IL_0009: ldc.i4.1
IL_000A: stloc 0 (System.Boolean)
IL_000E: ldloc 0 (System.Boolean)
IL_0012: brfalse => Label1
IL_0017: ldarg.0
IL_0018: call static System.Boolean
ColoredMoodBar13.VanillaNotifyRecachedEntries::Prefix(RimWorld.ColonistBarColonistD
rawer __instance)
IL_001D: stloc 0 (System.Boolean)
IL_0021: Label1
IL_0021: nop
IL_0022: ldloc 0 (System.Boolean)
IL_0026: brfalse => Label0
IL_002B: // start original
IL_002B: ldarg.0
IL_002C: ldfld System.Collections.Generic.Dictionary`2<System.String,
System.String> RimWorld.ColonistBarColonistDrawer::pawnLabelsCache
IL_0031: callvirt virtual System.Void
System.Collections.Generic.Dictionary`2<System.String, System.String>::Clear()
IL_0036: // end original
IL_0036: Label0
IL_0036: ret
DONE

### Patch: System.Void


RimWorld.ColonistBarColonistDrawer::DrawColonist(UnityEngine.Rect rect, Verse.Pawn
colonist, Verse.Map pawnMap, System.Boolean highlight, System.Boolean reordering)
### Replacement: static System.Void
RimWorld.ColonistBarColonistDrawer::RimWorld.ColonistBarColonistDrawer.DrawColonist
_Patch2(RimWorld.ColonistBarColonistDrawer this, UnityEngine.Rect rect, Verse.Pawn
colonist, Verse.Map pawnMap, System.Boolean highlight, System.Boolean reordering)
IL_0000: Local var 0: System.Single
IL_0000: Local var 1: UnityEngine.Color
IL_0000: Local var 2: UnityEngine.Rect
IL_0000: Local var 3: System.Single
IL_0000: Local var 4: UnityEngine.Vector2
IL_0000: Local var 5: UnityEngine.Rect
IL_0000: Local var 6: System.Single
IL_0000: Local var 7: System.Int32
IL_0000: Local var 8: System.Nullable`1<UnityEngine.Color>
IL_0000: Local var 9: System.Nullable`1<Verse.PawnHealthState>
IL_0000: Local var 10: System.Boolean
IL_0000: ldc.i4 0
IL_0005: stloc 10 (System.Boolean)
IL_0009: ldc.i4.1
IL_000A: stloc 10 (System.Boolean)
IL_000E: ldloc 10 (System.Boolean)
IL_0012: brfalse => Label1
IL_0017: ldarg.0
IL_0018: ldarga 1
IL_001C: ldarga 2
IL_0020: ldarga 3
IL_0024: ldarga 4
IL_0028: ldarga 5
IL_002C: call static System.Boolean
ColoredMoodBar13.VanillaDrawColonist::Prefix(RimWorld.ColonistBarColonistDrawer
__instance, UnityEngine.Rect& rect, Verse.Pawn& colonist, Verse.Map& pawnMap,
System.Boolean& highlight, System.Boolean& reordering)
IL_0031: stloc 10 (System.Boolean)
IL_0035: Label1
IL_0035: nop
IL_0036: ldloc 10 (System.Boolean)
IL_003A: brfalse => Label0
IL_003F: // start original
IL_003F: ldarg.0
IL_0040: call RimWorld.ColonistBar
RimWorld.ColonistBarColonistDrawer::get_ColonistBar()
IL_0045: ldarg.1
IL_0046: callvirt System.Single
RimWorld.ColonistBar::GetEntryRectAlpha(UnityEngine.Rect rect)
IL_004B: stloc.0
IL_004C: ldarg.0
IL_004D: ldarg.3
IL_004E: ldloca.s 0 (System.Single)
IL_0050: call System.Void
RimWorld.ColonistBarColonistDrawer::ApplyEntryInAnotherMapAlphaFactor(Verse.Map
map, System.Single& alpha)
IL_0055: ldarg.s 5
IL_0057: brfalse => Label2
IL_005C: ldloc.0
IL_005D: ldc.r4 0.5
IL_0062: mul
IL_0063: stloc.0
IL_0064: Label2
IL_0064: ldloca.s 1 (UnityEngine.Color)
IL_0066: ldc.r4 1
IL_006B: ldc.r4 1
IL_0070: ldc.r4 1
IL_0075: ldloc.0
IL_0076: call System.Void UnityEngine.Color::.ctor(System.Single r,
System.Single g, System.Single b, System.Single a)
IL_007B: ldloc.1
IL_007C: call static System.Void UnityEngine.GUI::set_color(UnityEngine.Color
value)
IL_0081: ldarg.1
IL_0082: ldsfld UnityEngine.Texture2D RimWorld.ColonistBar::BGTex
IL_0087: call static System.Void
UnityEngine.GUI::DrawTexture(UnityEngine.Rect position, UnityEngine.Texture image)
IL_008C: ldarg.2
IL_008D: ldfld RimWorld.Pawn_NeedsTracker Verse.Pawn::needs
IL_0092: brfalse => Label3
IL_0097: ldarg.2
IL_0098: ldfld RimWorld.Pawn_NeedsTracker Verse.Pawn::needs
IL_009D: ldfld RimWorld.Need_Mood RimWorld.Pawn_NeedsTracker::mood
IL_00A2: brfalse => Label4
IL_00A7: ldarg.1
IL_00A8: ldc.r4 2
IL_00AD: call static UnityEngine.Rect
Verse.GenUI::ContractedBy(UnityEngine.Rect rect, System.Single margin)
IL_00B2: stloc.s 5 (UnityEngine.Rect)
IL_00B4: ldloca.s 5 (UnityEngine.Rect)
IL_00B6: call System.Single UnityEngine.Rect::get_height()
IL_00BB: ldarg.2
IL_00BC: ldfld RimWorld.Pawn_NeedsTracker Verse.Pawn::needs
IL_00C1: ldfld RimWorld.Need_Mood RimWorld.Pawn_NeedsTracker::mood
IL_00C6: callvirt System.Single RimWorld.Need::get_CurLevelPercentage()
IL_00CB: mul
IL_00CC: stloc.s 6 (System.Single)
IL_00CE: ldloca.s 5 (UnityEngine.Rect)
IL_00D0: ldloca.s 5 (UnityEngine.Rect)
IL_00D2: call System.Single UnityEngine.Rect::get_yMax()
IL_00D7: ldloc.s 6 (System.Single)
IL_00D9: sub
IL_00DA: call System.Void UnityEngine.Rect::set_yMin(System.Single value)
IL_00DF: ldloca.s 5 (UnityEngine.Rect)
IL_00E1: ldloc.s 6 (System.Single)
IL_00E3: call System.Void UnityEngine.Rect::set_height(System.Single value)
IL_00E8: ldloc.s 5 (UnityEngine.Rect)
IL_00EA: ldsfld UnityEngine.Texture2D
RimWorld.ColonistBarColonistDrawer::MoodBGTex
IL_00EF: call static System.Void
UnityEngine.GUI::DrawTexture(UnityEngine.Rect position, UnityEngine.Texture image)
IL_00F4: Label3
IL_00F4: Label4
IL_00F4: ldarg.s 4
IL_00F6: brfalse => Label5
IL_00FB: ldarga.s 1
IL_00FD: call System.Single UnityEngine.Rect::get_width()
IL_0102: ldc.r4 22
IL_0107: ble => Label6
IL_010C: ldc.i4.3
IL_010D: br => Label7
IL_0112: Label6
IL_0112: ldc.i4.2
IL_0113: Label7
IL_0113: stloc.s 7 (System.Int32)
IL_0115: call static UnityEngine.Color UnityEngine.Color::get_white()
IL_011A: call static System.Void UnityEngine.GUI::set_color(UnityEngine.Color
value)
IL_011F: ldarg.1
IL_0120: ldloc.s 7 (System.Int32)
IL_0122: ldnull
IL_0123: call static System.Void Verse.Widgets::DrawBox(UnityEngine.Rect
rect, System.Int32 thickness, UnityEngine.Texture2D lineTexture)
IL_0128: ldloc.1
IL_0129: call static System.Void UnityEngine.GUI::set_color(UnityEngine.Color
value)
IL_012E: Label5
IL_012E: ldarg.1
IL_012F: ldc.r4 -2
IL_0134: ldarg.0
IL_0135: call RimWorld.ColonistBar
RimWorld.ColonistBarColonistDrawer::get_ColonistBar()
IL_013A: callvirt System.Single RimWorld.ColonistBar::get_Scale()
IL_013F: mul
IL_0140: call static UnityEngine.Rect
Verse.GenUI::ContractedBy(UnityEngine.Rect rect, System.Single margin)
IL_0145: stloc.2
IL_0146: ldarg.2
IL_0147: callvirt System.Boolean Verse.Pawn::get_Dead()
IL_014C: brtrue => Label8
IL_0151: call static RimWorld.Selector Verse.Find::get_Selector()
IL_0156: callvirt System.Collections.Generic.List`1<System.Object>
RimWorld.Selector::get_SelectedObjects()
IL_015B: ldarg.2
IL_015C: callvirt virtual System.Boolean
System.Collections.Generic.List`1<System.Object>::Contains(System.Object item)
IL_0161: br => Label9
IL_0166: Label8
IL_0166: call static RimWorld.Selector Verse.Find::get_Selector()
IL_016B: callvirt System.Collections.Generic.List`1<System.Object>
RimWorld.Selector::get_SelectedObjects()
IL_0170: ldarg.2
IL_0171: callvirt Verse.Corpse Verse.Pawn::get_Corpse()
IL_0176: callvirt virtual System.Boolean
System.Collections.Generic.List`1<System.Object>::Contains(System.Object item)
IL_017B: Label9
IL_017B: brfalse => Label10
IL_0180: call static System.Boolean
RimWorld.Planet.WorldRendererUtility::get_WorldRenderedNow()
IL_0185: brtrue => Label11
IL_018A: ldarg.0
IL_018B: ldarg.2
IL_018C: ldloc.2
IL_018D: call System.Void
RimWorld.ColonistBarColonistDrawer::DrawSelectionOverlayOnGUI(Verse.Pawn colonist,
UnityEngine.Rect rect)
IL_0192: br => Label12
IL_0197: Label10
IL_0197: Label11
IL_0197: call static System.Boolean
RimWorld.Planet.WorldRendererUtility::get_WorldRenderedNow()
IL_019C: brfalse => Label13
IL_01A1: ldarg.2
IL_01A2: call static System.Boolean
RimWorld.Planet.CaravanUtility::IsCaravanMember(Verse.Pawn pawn)
IL_01A7: brfalse => Label14
IL_01AC: call static RimWorld.Planet.WorldSelector
Verse.Find::get_WorldSelector()
IL_01B1: ldarg.2
IL_01B2: call static RimWorld.Planet.Caravan
RimWorld.Planet.CaravanUtility::GetCaravan(Verse.Pawn pawn)
IL_01B7: callvirt System.Boolean
RimWorld.Planet.WorldSelector::IsSelected(RimWorld.Planet.WorldObject obj)
IL_01BC: brfalse => Label15
IL_01C1: ldarg.0
IL_01C2: ldarg.2
IL_01C3: call static RimWorld.Planet.Caravan
RimWorld.Planet.CaravanUtility::GetCaravan(Verse.Pawn pawn)
IL_01C8: ldloc.2
IL_01C9: call System.Void
RimWorld.ColonistBarColonistDrawer::DrawCaravanSelectionOverlayOnGUI(RimWorld.Plane
t.Caravan caravan, UnityEngine.Rect rect)
IL_01CE: Label12
IL_01CE: Label13
IL_01CE: Label14
IL_01CE: Label15
IL_01CE: ldarg.0
IL_01CF: ldarga.s 1
IL_01D1: call UnityEngine.Vector2 UnityEngine.Rect::get_position()
IL_01D6: call UnityEngine.Rect
RimWorld.ColonistBarColonistDrawer::GetPawnTextureRect(UnityEngine.Vector2 pos)
IL_01DB: ldarg.2
IL_01DC: ldsfld UnityEngine.Vector2
RimWorld.ColonistBarColonistDrawer::PawnTextureSize
IL_01E1: ldsfld Verse.Rot4 Verse.Rot4::South
IL_01E6: ldsfld UnityEngine.Vector3
RimWorld.ColonistBarColonistDrawer::PawnTextureCameraOffset
IL_01EB: ldc.r4 1.28205
IL_01F0: ldc.i4.1
IL_01F1: ldc.i4.1
IL_01F2: ldc.i4.1
IL_01F3: ldc.i4.1
IL_01F4: ldnull
IL_01F5: ldloca.s 8 (System.Nullable`1[UnityEngine.Color])
IL_01F7: initobj System.Nullable`1[UnityEngine.Color]
IL_01FD: ldloc.s 8 (System.Nullable`1[UnityEngine.Color])
IL_01FF: ldc.i4.0
IL_0200: ldloca.s 9 (System.Nullable`1[Verse.PawnHealthState])
IL_0202: initobj System.Nullable`1[Verse.PawnHealthState]
IL_0208: ldloc.s 9 (System.Nullable`1[Verse.PawnHealthState])
IL_020A: call static UnityEngine.RenderTexture
RimWorld.PortraitsCache::Get(Verse.Pawn pawn, UnityEngine.Vector2 size, Verse.Rot4
rotation, UnityEngine.Vector3 cameraOffset, System.Single cameraZoom,
System.Boolean supersample, System.Boolean compensateForUIScale, System.Boolean
renderHeadgear, System.Boolean renderClothes,
System.Collections.Generic.IReadOnlyDictionary`2<RimWorld.Apparel,
UnityEngine.Color> overrideApparelColors, System.Nullable`1<UnityEngine.Color>
overrideHairColor, System.Boolean stylingStation,
System.Nullable`1<Verse.PawnHealthState> healthStateOverride)
IL_020F: call static System.Void
UnityEngine.GUI::DrawTexture(UnityEngine.Rect position, UnityEngine.Texture image)
IL_0214: ldc.r4 1
IL_0219: ldc.r4 1
IL_021E: ldc.r4 1
IL_0223: ldloc.0
IL_0224: ldc.r4 0.8
IL_0229: mul
IL_022A: newobj System.Void UnityEngine.Color::.ctor(System.Single r,
System.Single g, System.Single b, System.Single a)
IL_022F: call static System.Void UnityEngine.GUI::set_color(UnityEngine.Color
value)
IL_0234: ldarg.0
IL_0235: ldarg.1
IL_0236: ldarg.2
IL_0237: call System.Void
RimWorld.ColonistBarColonistDrawer::DrawIcons(UnityEngine.Rect rect, Verse.Pawn
colonist)
IL_023C: ldloc.1
IL_023D: call static System.Void UnityEngine.GUI::set_color(UnityEngine.Color
value)
IL_0242: ldarg.2
IL_0243: callvirt System.Boolean Verse.Pawn::get_Dead()
IL_0248: brfalse => Label16
IL_024D: ldarg.1
IL_024E: ldsfld UnityEngine.Texture2D
RimWorld.ColonistBarColonistDrawer::DeadColonistTex
IL_0253: call static System.Void
UnityEngine.GUI::DrawTexture(UnityEngine.Rect position, UnityEngine.Texture image)
IL_0258: Label16
IL_0258: ldc.r4 4
IL_025D: ldarg.0
IL_025E: call RimWorld.ColonistBar
RimWorld.ColonistBarColonistDrawer::get_ColonistBar()
IL_0263: callvirt System.Single RimWorld.ColonistBar::get_Scale()
IL_0268: mul
IL_0269: stloc.3
IL_026A: ldloca.s 4 (UnityEngine.Vector2)
IL_026C: ldarga.s 1
IL_026E: call UnityEngine.Vector2 UnityEngine.Rect::get_center()
IL_0273: ldfld System.Single UnityEngine.Vector2::x
IL_0278: ldarga.s 1
IL_027A: call System.Single UnityEngine.Rect::get_yMax()
IL_027F: ldloc.3
IL_0280: sub
IL_0281: call System.Void UnityEngine.Vector2::.ctor(System.Single x,
System.Single y)
IL_0286: ldarg.2
IL_0287: ldloc.s 4 (UnityEngine.Vector2)
IL_0289: ldloc.0
IL_028A: ldarga.s 1
IL_028C: call System.Single UnityEngine.Rect::get_width()
IL_0291: ldarg.0
IL_0292: call RimWorld.ColonistBar
RimWorld.ColonistBarColonistDrawer::get_ColonistBar()
IL_0297: callvirt System.Single
RimWorld.ColonistBar::get_SpaceBetweenColonistsHorizontal()
IL_029C: add
IL_029D: ldc.r4 2
IL_02A2: sub
IL_02A3: ldarg.0
IL_02A4: ldfld System.Collections.Generic.Dictionary`2<System.String,
System.String> RimWorld.ColonistBarColonistDrawer::pawnLabelsCache
IL_02A9: ldc.i4.0
IL_02AA: ldc.i4.1
IL_02AB: ldc.i4.1
IL_02AC: call static System.Void Verse.GenMapUI::DrawPawnLabel(Verse.Pawn
pawn, UnityEngine.Vector2 pos, System.Single alpha, System.Single truncateToWidth,
System.Collections.Generic.Dictionary`2<System.String, System.String>
truncatedLabelsCache, Verse.GameFont font, System.Boolean alwaysDrawBg,
System.Boolean alignCenter)
IL_02B1: ldc.i4.1
IL_02B2: call static System.Void Verse.Text::set_Font(Verse.GameFont value)
IL_02B7: call static UnityEngine.Color UnityEngine.Color::get_white()
IL_02BC: call static System.Void UnityEngine.GUI::set_color(UnityEngine.Color
value)
IL_02C1: // end original
IL_02C1: Label0
IL_02C1: ldarg 1
IL_02C5: ldarg 2
IL_02C9: ldarg 3
IL_02CD: ldarg 4
IL_02D1: ldarg 5
IL_02D5: call static System.Void
JobInBar.ColonistBarColonistDrawer_DrawColonist_Patch::Postfix(UnityEngine.Rect
rect, Verse.Pawn colonist, Verse.Map pawnMap, System.Boolean highlight,
System.Boolean reordering)
IL_02DA: ret
DONE

### Harmony id=Krafs.LevelUp, version=2.2.2.0, location=C:\Program Files (x86)\


Steam\steamapps\common\data-000002130553D010, env/clr=4.0.30319.42000,
platform=Win32NT, ptrsize:runtime/env=8/Bits64, Windows
### Started from static System.Void LevelUp.Patcher::.cctor(), location C:\Program
Files (x86)\Steam\steamapps\common\data-0000021308F68110
### At 2023-02-17 06.57.32
### Patch: System.Void RimWorld.SkillRecord::Learn(System.Single xp, System.Boolean
direct)
### Replacement: static System.Void
RimWorld.SkillRecord::RimWorld.SkillRecord.Learn_Patch3(RimWorld.SkillRecord this,
System.Single xp, System.Boolean direct)
IL_0000: Local var 0: System.Boolean
IL_0000: Local var 1: System.Nullable`1<UnityEngine.Vector3>
IL_0000: Local var 2: Verse.IntVec3
IL_0000: Local var 3: System.Boolean
IL_0000: ldc.i4 0
IL_0005: stloc 3 (System.Boolean)
IL_0009: ldc.i4.1
IL_000A: stloc 3 (System.Boolean)
IL_000E: ldloc 3 (System.Boolean)
IL_0012: brfalse => Label1
IL_0017: ldarg.0
IL_0018: ldarg.0
IL_0019: ldfld Verse.Pawn RimWorld.SkillRecord::pawn
IL_001E: ldarga 1
IL_0022: ldarg 2
IL_0026: call static System.Void
VanillaApparelExpanded.SkillRecord_Learn_Patch::Prefix(RimWorld.SkillRecord
__instance, Verse.Pawn ___pawn, System.Single& xp, System.Boolean direct)
IL_002B: Label1
IL_002B: nop
IL_002C: ldloc 3 (System.Boolean)
IL_0030: brfalse => Label0
IL_0035: // start original
IL_0035: ldarg.0
IL_0036: call System.Boolean RimWorld.SkillRecord::get_TotallyDisabled()
IL_003B: brfalse => Label2
IL_0040: br => Label25
IL_0045: Label2
IL_0045: ldarg.1
IL_0046: ldc.r4 0
IL_004B: bge.un => Label3
IL_0050: ldarg.0
IL_0051: ldfld System.Int32 RimWorld.SkillRecord::levelInt
IL_0056: brtrue => Label4
IL_005B: br => Label26
IL_0060: Label3
IL_0060: Label4
IL_0060: ldc.i4.0
IL_0061: stloc.0
IL_0062: ldarg.1
IL_0063: ldc.r4 0
IL_0068: ble.un => Label5
IL_006D: ldarg.1
IL_006E: ldarg.0
IL_006F: ldarg.2
IL_0070: call System.Single
RimWorld.SkillRecord::LearnRateFactor(System.Boolean direct)
IL_0075: mul
IL_0076: starg.s 1
IL_0078: Label5
IL_0078: ldarg.0
IL_0079: ldarg.0
IL_007A: ldfld System.Single RimWorld.SkillRecord::xpSinceLastLevel
IL_007F: ldarg.1
IL_0080: add
IL_0081: stfld System.Single RimWorld.SkillRecord::xpSinceLastLevel
IL_0086: ldarg.2
IL_0087: brtrue => Label6
IL_008C: ldarg.0
IL_008D: ldarg.0
IL_008E: ldfld System.Single RimWorld.SkillRecord::xpSinceMidnight
IL_0093: ldarg.1
IL_0094: add
IL_0095: stfld System.Single RimWorld.SkillRecord::xpSinceMidnight
IL_009A: Label6
IL_009A: ldarg.0
IL_009B: ldfld System.Int32 RimWorld.SkillRecord::levelInt
IL_00A0: ldc.i4.s 20
IL_00A2: bne.un => Label7
IL_00A7: ldarg.0
IL_00A8: ldfld System.Single RimWorld.SkillRecord::xpSinceLastLevel
IL_00AD: ldarg.0
IL_00AE: call System.Single RimWorld.SkillRecord::get_XpRequiredForLevelUp()
IL_00B3: ldc.r4 1
IL_00B8: sub
IL_00B9: ble.un => Label8
IL_00BE: ldarg.0
IL_00BF: ldarg.0
IL_00C0: call System.Single RimWorld.SkillRecord::get_XpRequiredForLevelUp()
IL_00C5: ldc.r4 1
IL_00CA: sub
IL_00CB: stfld System.Single RimWorld.SkillRecord::xpSinceLastLevel
IL_00D0: br => Label9
IL_00D5: Label15
IL_00D5: ldarg.0
IL_00D6: ldarg.0
IL_00D7: ldfld System.Single RimWorld.SkillRecord::xpSinceLastLevel
IL_00DC: ldarg.0
IL_00DD: call System.Single RimWorld.SkillRecord::get_XpRequiredForLevelUp()
IL_00E2: sub
IL_00E3: stfld System.Single RimWorld.SkillRecord::xpSinceLastLevel
IL_00E8: ldarg.0
IL_00E9: ldarg.0
IL_00EA: ldfld System.Int32 RimWorld.SkillRecord::levelInt
IL_00EF: ldc.i4.1
IL_00F0: add
IL_00F1: stfld System.Int32 RimWorld.SkillRecord::levelInt
IL_00F6: ldarg.0
IL_00F7: dup
IL_00F8: ldfld Verse.Pawn RimWorld.SkillRecord::pawn
IL_00FD: call static System.Void
LevelUp.Patcher::OnLevelUp(RimWorld.SkillRecord skillRecord, Verse.Pawn pawn)
IL_0102: ldc.i4.1
IL_0103: stloc.0
IL_0104: ldarg.0
IL_0105: ldfld System.Int32 RimWorld.SkillRecord::levelInt
IL_010A: ldc.i4.s 14
IL_010C: bne.un => Label10
IL_0111: ldarg.0
IL_0112: ldfld RimWorld.Passion RimWorld.SkillRecord::passion
IL_0117: call static VSE.Passions.PassionDef
VSE.Passions.PassionManager::PassionToDef(RimWorld.Passion passion)
IL_011C: ldfld System.Boolean VSE.Passions.PassionDef::isBad
IL_0121: brfalse => Label11
IL_0126: ldsfld RimWorld.TaleDef
RimWorld.TaleDefOf::GainedMasterSkillWithoutPassion
IL_012B: ldc.i4.2
IL_012C: newarr System.Object
IL_0131: dup
IL_0132: ldc.i4.0
IL_0133: ldarg.0
IL_0134: ldfld Verse.Pawn RimWorld.SkillRecord::pawn
IL_0139: stelem.ref
IL_013A: dup
IL_013B: ldc.i4.1
IL_013C: ldarg.0
IL_013D: ldfld RimWorld.SkillDef RimWorld.SkillRecord::def
IL_0142: stelem.ref
IL_0143: call static RimWorld.Tale
RimWorld.TaleRecorder::RecordTale(RimWorld.TaleDef def, System.Object[] args)
IL_0148: pop
IL_0149: br => Label12
IL_014E: Label11
IL_014E: ldsfld RimWorld.TaleDef
RimWorld.TaleDefOf::GainedMasterSkillWithPassion
IL_0153: ldc.i4.2
IL_0154: newarr System.Object
IL_0159: dup
IL_015A: ldc.i4.0
IL_015B: ldarg.0
IL_015C: ldfld Verse.Pawn RimWorld.SkillRecord::pawn
IL_0161: stelem.ref
IL_0162: dup
IL_0163: ldc.i4.1
IL_0164: ldarg.0
IL_0165: ldfld RimWorld.SkillDef RimWorld.SkillRecord::def
IL_016A: stelem.ref
IL_016B: call static RimWorld.Tale
RimWorld.TaleRecorder::RecordTale(RimWorld.TaleDef def, System.Object[] args)
IL_0170: pop
IL_0171: Label10
IL_0171: Label12
IL_0171: ldarg.0
IL_0172: ldfld System.Int32 RimWorld.SkillRecord::levelInt
IL_0177: ldc.i4.s 20
IL_0179: blt => Label13
IL_017E: ldarg.0
IL_017F: ldc.i4.s 20
IL_0181: stfld System.Int32 RimWorld.SkillRecord::levelInt
IL_0186: ldarg.0
IL_0187: ldarg.0
IL_0188: ldfld System.Single RimWorld.SkillRecord::xpSinceLastLevel
IL_018D: ldc.r4 0
IL_0192: ldarg.0
IL_0193: call System.Single RimWorld.SkillRecord::get_XpRequiredForLevelUp()
IL_0198: ldc.r4 1
IL_019D: sub
IL_019E: call static System.Single UnityEngine.Mathf::Clamp(System.Single
value, System.Single min, System.Single max)
IL_01A3: stfld System.Single RimWorld.SkillRecord::xpSinceLastLevel
IL_01A8: br => Label14
IL_01AD: Label7
IL_01AD: Label8
IL_01AD: Label9
IL_01AD: Label13
IL_01AD: ldarg.0
IL_01AE: ldfld System.Single RimWorld.SkillRecord::xpSinceLastLevel
IL_01B3: ldarg.0
IL_01B4: call System.Single RimWorld.SkillRecord::get_XpRequiredForLevelUp()
IL_01B9: bge => Label15
IL_01BE: br => Label16
IL_01C3: Label19
IL_01C3: ldarg.0
IL_01C4: ldarg.0
IL_01C5: ldfld System.Int32 RimWorld.SkillRecord::levelInt
IL_01CA: ldc.i4.1
IL_01CB: sub
IL_01CC: stfld System.Int32 RimWorld.SkillRecord::levelInt
IL_01D1: ldarg.0
IL_01D2: dup
IL_01D3: ldfld Verse.Pawn RimWorld.SkillRecord::pawn
IL_01D8: call static System.Void
LevelUp.Patcher::OnLevelDown(RimWorld.SkillRecord skillRecord, Verse.Pawn pawn)
IL_01DD: ldarg.0
IL_01DE: ldarg.0
IL_01DF: ldfld System.Single RimWorld.SkillRecord::xpSinceLastLevel
IL_01E4: ldarg.0
IL_01E5: call System.Single RimWorld.SkillRecord::get_XpRequiredForLevelUp()
IL_01EA: add
IL_01EB: stfld System.Single RimWorld.SkillRecord::xpSinceLastLevel
IL_01F0: ldarg.0
IL_01F1: ldfld System.Int32 RimWorld.SkillRecord::levelInt
IL_01F6: ldc.i4.0
IL_01F7: bgt => Label17
IL_01FC: ldarg.0
IL_01FD: ldc.i4.0
IL_01FE: stfld System.Int32 RimWorld.SkillRecord::levelInt
IL_0203: ldarg.0
IL_0204: ldc.r4 0
IL_0209: stfld System.Single RimWorld.SkillRecord::xpSinceLastLevel
IL_020E: br => Label18
IL_0213: Label14
IL_0213: Label16
IL_0213: Label17
IL_0213: ldarg.0
IL_0214: ldfld System.Single RimWorld.SkillRecord::xpSinceLastLevel
IL_0219: ldc.r4 -1000
IL_021E: ble => Label19
IL_0223: Label18
IL_0223: ldloc.0
IL_0224: brfalse => Label20
IL_0229: ldarg.0
IL_022A: ldfld Verse.Pawn RimWorld.SkillRecord::pawn
IL_022F: callvirt System.Boolean Verse.Pawn::get_IsColonist()
IL_0234: brfalse => Label21
IL_0239: ldarg.0
IL_023A: ldfld Verse.Pawn RimWorld.SkillRecord::pawn
IL_023F: callvirt System.Boolean Verse.Thing::get_SpawnedOrAnyParentSpawned()
IL_0244: brfalse => Label22
IL_0249: ldarg.0
IL_024A: ldfld Verse.Pawn RimWorld.SkillRecord::pawn
IL_024F: callvirt System.Nullable`1<UnityEngine.Vector3>
Verse.Thing::get_DrawPosHeld()
IL_0254: stloc.1
IL_0255: ldloca.s 1 (System.Nullable`1[UnityEngine.Vector3])
IL_0257: call System.Boolean
System.Nullable`1<UnityEngine.Vector3>::get_HasValue()
IL_025C: brtrue => Label23
IL_0261: ldarg.0
IL_0262: ldfld Verse.Pawn RimWorld.SkillRecord::pawn
IL_0267: callvirt Verse.IntVec3 Verse.Thing::get_PositionHeld()
IL_026C: stloc.2
IL_026D: ldloca.s 2 (Verse.IntVec3)
IL_026F: call UnityEngine.Vector3 Verse.IntVec3::ToVector3Shifted()
IL_0274: br => Label24
IL_0279: Label23
IL_0279: ldloca.s 1 (System.Nullable`1[UnityEngine.Vector3])
IL_027B: call UnityEngine.Vector3
System.Nullable`1<UnityEngine.Vector3>::GetValueOrDefault()
IL_0280: Label24
IL_0280: ldarg.0
IL_0281: ldfld Verse.Pawn RimWorld.SkillRecord::pawn
IL_0286: callvirt Verse.Map Verse.Thing::get_MapHeld()
IL_028B: ldarg.0
IL_028C: ldfld RimWorld.SkillDef RimWorld.SkillRecord::def
IL_0291: callvirt virtual Verse.TaggedString Verse.Def::get_LabelCap()
IL_0296: ldstr "\n"
IL_029B: call static Verse.TaggedString
Verse.TaggedString::op_Addition(Verse.TaggedString t1, System.String t2)
IL_02A0: ldstr "TextMote_SkillUp"
IL_02A5: ldarg.0
IL_02A6: call System.Int32 RimWorld.SkillRecord::get_Level()
IL_02AB: call static Verse.NamedArgument
Verse.NamedArgument::op_Implicit(System.Int32 value)
IL_02B0: call static Verse.TaggedString
Verse.TranslatorFormattedStringExtensions::Translate(System.String key,
Verse.NamedArgument arg1)
IL_02B5: call static Verse.TaggedString
Verse.TaggedString::op_Addition(Verse.TaggedString t1, Verse.TaggedString t2)
IL_02BA: call static System.String
Verse.TaggedString::op_Implicit(Verse.TaggedString taggedString)
IL_02BF: ldc.r4 -1
IL_02C4: call static System.Void
LevelUp.Patcher::MoteThrowTextProxy(UnityEngine.Vector3 loc, Verse.Map map,
System.String text, System.Single timeBeforeStartFadeout)
IL_02C9: // end original
IL_02C9: Label20
IL_02C9: Label21
IL_02C9: Label22
IL_02C9: Label25
IL_02C9: Label26
IL_02C9: Label0
IL_02C9: ldarg.0
IL_02CA: ldarg 1
IL_02CE: call static System.Void
TD_Enhancement_Pack.Learn_Patch::Postfix(RimWorld.SkillRecord __instance,
System.Single xp)
IL_02D3: ldarg.0
IL_02D4: ldarg 1
IL_02D8: call static System.Void
VSE.Expertise.ExpertisePatches::PostLearn(RimWorld.SkillRecord __instance,
System.Single xp)
IL_02DD: ret
DONE

### Harmony id=InfoCardPatches.Mod, version=2.2.2.0, location=C:\Program Files


(x86)\Steam\steamapps\common\data-000002130553D010, env/clr=4.0.30319.42000,
platform=Win32NT, ptrsize:runtime/env=8/Bits64, Windows
### Started from static System.Void InfoCardPatches.Startup::.cctor(), location C:\
Program Files (x86)\Steam\steamapps\common\data-0000021308F7A540
### At 2023-02-17 06.57.32
### Patch: virtual System.Boolean
RimWorld.StatWorker::ShouldShowFor(RimWorld.StatRequest req)
### Replacement: static System.Boolean
RimWorld.StatWorker::RimWorld.StatWorker.ShouldShowFor_Patch1(RimWorld.StatWorker
this, RimWorld.StatRequest req)
IL_0000: Local var 0: Verse.Def
IL_0000: Local var 1: Verse.Pawn
IL_0000: Local var 2: Verse.ThingDef
IL_0000: Local var 3: System.Int32
IL_0000: Local var 4: Verse.Pawn
IL_0000: Local var 5: Verse.Pawn
IL_0000: Local var 6: Verse.Pawn
IL_0000: Local var 7: System.Boolean
IL_0000: Local var 8: System.Boolean
IL_0000: ldc.i4 0
IL_0005: stloc 7 (System.Boolean)
IL_0009: ldc.i4 0
IL_000E: stloc 8 (System.Boolean)
IL_0012: ldc.i4.1
IL_0013: stloc 8 (System.Boolean)
IL_0017: ldloc 8 (System.Boolean)
IL_001B: brfalse => Label1
IL_0020: ldloca 7 (System.Boolean)
IL_0024: ldarg.0
IL_0025: ldarg 1
IL_0029: call static System.Boolean
InfoCardPatches.StatWorker_ShouldShowFor_Patch::Prefix(System.Boolean& __result,
RimWorld.StatWorker __instance, RimWorld.StatRequest req)
IL_002E: stloc 8 (System.Boolean)
IL_0032: Label1
IL_0032: nop
IL_0033: ldloc 8 (System.Boolean)
IL_0037: brfalse => Label0
IL_003C: // start original
IL_003C: ldarg.0
IL_003D: ldfld RimWorld.StatDef RimWorld.StatWorker::stat
IL_0042: ldfld System.Boolean RimWorld.StatDef::alwaysHide
IL_0047: brfalse => Label2
IL_004C: ldc.i4.0
IL_004D: br => Label74
IL_0052: Label2
IL_0052: ldarga.s 1
IL_0054: call Verse.Def RimWorld.StatRequest::get_Def()
IL_0059: stloc.0
IL_005A: ldarg.0
IL_005B: ldfld RimWorld.StatDef RimWorld.StatWorker::stat
IL_0060: ldfld System.Boolean RimWorld.StatDef::showIfUndefined
IL_0065: brtrue => Label3
IL_006A: ldarga.s 1
IL_006C: call System.Collections.Generic.List`1<RimWorld.StatModifier>
RimWorld.StatRequest::get_StatBases()
IL_0071: ldarg.0
IL_0072: ldfld RimWorld.StatDef RimWorld.StatWorker::stat
IL_0077: call static System.Boolean
RimWorld.StatUtility::StatListContains(System.Collections.Generic.List`1<RimWorld.S
tatModifier> modList, RimWorld.StatDef stat)
IL_007C: brtrue => Label4
IL_0081: ldc.i4.0
IL_0082: br => Label75
IL_0087: Label3
IL_0087: Label4
IL_0087: ldarg.0
IL_0088: ldfld RimWorld.StatDef RimWorld.StatWorker::stat
IL_008D: callvirt System.Boolean RimWorld.StatDef::CanShowWithLoadedMods()
IL_0092: brtrue => Label5
IL_0097: ldc.i4.0
IL_0098: br => Label76
IL_009D: Label5
IL_009D: ldarg.0
IL_009E: ldfld RimWorld.StatDef RimWorld.StatWorker::stat
IL_00A3: ldfld System.Boolean RimWorld.StatDef::hideInClassicMode
IL_00A8: brfalse => Label6
IL_00AD: call static RimWorld.IdeoManager Verse.Find::get_IdeoManager()
IL_00B2: ldfld System.Boolean RimWorld.IdeoManager::classicMode
IL_00B7: brfalse => Label7
IL_00BC: ldc.i4.0
IL_00BD: br => Label77
IL_00C2: Label6
IL_00C2: Label7
IL_00C2: ldarga.s 1
IL_00C4: call Verse.Thing RimWorld.StatRequest::get_Thing()
IL_00C9: isinst Verse.Pawn
IL_00CE: dup
IL_00CF: stloc.1
IL_00D0: brfalse => Label8
IL_00D5: ldloc.1
IL_00D6: ldfld Verse.Pawn_HealthTracker Verse.Pawn::health
IL_00DB: brfalse => Label9
IL_00E0: ldarg.0
IL_00E1: ldfld RimWorld.StatDef RimWorld.StatWorker::stat
IL_00E6: ldfld System.Collections.Generic.List`1<Verse.HediffDef>
RimWorld.StatDef::showIfHediffsPresent
IL_00EB: call static System.Boolean
Verse.GenList::NullOrEmpty(System.Collections.Generic.IList`1<Verse.HediffDef>
list)
IL_00F0: brtrue => Label10
IL_00F5: ldc.i4.0
IL_00F6: stloc.3
IL_00F7: br => Label11
IL_00FC: Label13
IL_00FC: ldloc.1
IL_00FD: ldfld Verse.Pawn_HealthTracker Verse.Pawn::health
IL_0102: ldfld Verse.HediffSet Verse.Pawn_HealthTracker::hediffSet
IL_0107: ldarg.0
IL_0108: ldfld RimWorld.StatDef RimWorld.StatWorker::stat
IL_010D: ldfld System.Collections.Generic.List`1<Verse.HediffDef>
RimWorld.StatDef::showIfHediffsPresent
IL_0112: ldloc.3
IL_0113: callvirt virtual Verse.HediffDef
System.Collections.Generic.List`1<Verse.HediffDef>::get_Item(System.Int32 index)
IL_0118: ldc.i4.0
IL_0119: callvirt System.Boolean Verse.HediffSet::HasHediff(Verse.HediffDef def,
System.Boolean mustBeVisible)
IL_011E: brtrue => Label12
IL_0123: ldc.i4.0
IL_0124: br => Label78
IL_0129: Label12
IL_0129: ldloc.3
IL_012A: ldc.i4.1
IL_012B: add
IL_012C: stloc.3
IL_012D: Label11
IL_012D: ldloc.3
IL_012E: ldarg.0
IL_012F: ldfld RimWorld.StatDef RimWorld.StatWorker::stat
IL_0134: ldfld System.Collections.Generic.List`1<Verse.HediffDef>
RimWorld.StatDef::showIfHediffsPresent
IL_0139: callvirt virtual System.Int32
System.Collections.Generic.List`1<Verse.HediffDef>::get_Count()
IL_013E: blt => Label13
IL_0143: Label9
IL_0143: Label10
IL_0143: ldarg.0
IL_0144: ldfld RimWorld.StatDef RimWorld.StatWorker::stat
IL_0149: ldfld System.Boolean RimWorld.StatDef::showOnSlavesOnly
IL_014E: brfalse => Label14
IL_0153: ldloc.1
IL_0154: callvirt System.Boolean Verse.Pawn::get_IsSlave()
IL_0159: brtrue => Label15
IL_015E: ldc.i4.0
IL_015F: br => Label79
IL_0164: Label8
IL_0164: Label14
IL_0164: Label15
IL_0164: ldarg.0
IL_0165: ldfld RimWorld.StatDef RimWorld.StatWorker::stat
IL_016A: ldsfld RimWorld.StatDef RimWorld.StatDefOf::MaxHitPoints
IL_016F: bne.un => Label16
IL_0174: ldarga.s 1
IL_0176: call System.Boolean RimWorld.StatRequest::get_HasThing()
IL_017B: brfalse => Label17
IL_0180: ldc.i4.0
IL_0181: br => Label80
IL_0186: Label16
IL_0186: Label17
IL_0186: ldarg.0
IL_0187: ldfld RimWorld.StatDef RimWorld.StatWorker::stat
IL_018C: ldfld System.Boolean RimWorld.StatDef::showOnUntradeables
IL_0191: brtrue => Label18
IL_0196: ldarg.1
IL_0197: call static System.Boolean
RimWorld.StatWorker::DisplayTradeStats(RimWorld.StatRequest req)
IL_019C: brtrue => Label19
IL_01A1: ldc.i4.0
IL_01A2: br => Label81
IL_01A7: Label18
IL_01A7: Label19
IL_01A7: ldloc.0
IL_01A8: isinst Verse.ThingDef
IL_01AD: stloc.2
IL_01AE: ldloc.2
IL_01AF: brfalse => Label20
IL_01B4: ldloc.2
IL_01B5: ldfld Verse.ThingCategory Verse.ThingDef::category
IL_01BA: ldc.i4.1
IL_01BB: bne.un => Label21
IL_01C0: ldarg.0
IL_01C1: ldfld RimWorld.StatDef RimWorld.StatWorker::stat
IL_01C6: ldfld System.Boolean RimWorld.StatDef::showOnPawns
IL_01CB: brtrue => Label22
IL_01D0: ldc.i4.0
IL_01D1: br => Label82
IL_01D6: Label22
IL_01D6: ldarg.0
IL_01D7: ldfld RimWorld.StatDef RimWorld.StatWorker::stat
IL_01DC: ldfld System.Boolean RimWorld.StatDef::showOnHumanlikes
IL_01E1: brtrue => Label23
IL_01E6: ldloc.2
IL_01E7: ldfld Verse.RaceProperties Verse.ThingDef::race
IL_01EC: callvirt System.Boolean Verse.RaceProperties::get_Humanlike()
IL_01F1: brfalse => Label24
IL_01F6: ldc.i4.0
IL_01F7: br => Label83
IL_01FC: Label23
IL_01FC: Label24
IL_01FC: ldarg.0
IL_01FD: ldfld RimWorld.StatDef RimWorld.StatWorker::stat
IL_0202: ldfld System.Boolean RimWorld.StatDef::showOnNonWildManHumanlikes
IL_0207: brtrue => Label25
IL_020C: ldloc.2
IL_020D: ldfld Verse.RaceProperties Verse.ThingDef::race
IL_0212: callvirt System.Boolean Verse.RaceProperties::get_Humanlike()
IL_0217: brfalse => Label26
IL_021C: ldarga.s 1
IL_021E: call Verse.Thing RimWorld.StatRequest::get_Thing()
IL_0223: isinst Verse.Pawn
IL_0228: stloc.s 4 (Verse.Pawn)
IL_022A: ldloc.s 4 (Verse.Pawn)
IL_022C: brfalse => Label27
IL_0231: ldloc.s 4 (Verse.Pawn)
IL_0233: call static System.Boolean
Verse.WildManUtility::IsWildMan(Verse.Pawn p)
IL_0238: br => Label28
IL_023D: Label27
IL_023D: ldc.i4.0
IL_023E: Label28
IL_023E: brtrue => Label29
IL_0243: ldc.i4.0
IL_0244: br => Label84
IL_0249: Label25
IL_0249: Label26
IL_0249: Label29
IL_0249: ldarg.0
IL_024A: ldfld RimWorld.StatDef RimWorld.StatWorker::stat
IL_024F: ldfld System.Boolean RimWorld.StatDef::showOnAnimals
IL_0254: brtrue => Label30
IL_0259: ldloc.2
IL_025A: ldfld Verse.RaceProperties Verse.ThingDef::race
IL_025F: callvirt System.Boolean Verse.RaceProperties::get_Animal()
IL_0264: brfalse => Label31
IL_0269: ldc.i4.0
IL_026A: br => Label85
IL_026F: Label30
IL_026F: Label31
IL_026F: ldarg.0
IL_0270: ldfld RimWorld.StatDef RimWorld.StatWorker::stat
IL_0275: ldfld System.Boolean RimWorld.StatDef::showOnMechanoids
IL_027A: brtrue => Label32
IL_027F: ldloc.2
IL_0280: ldfld Verse.RaceProperties Verse.ThingDef::race
IL_0285: callvirt System.Boolean Verse.RaceProperties::get_IsMechanoid()
IL_028A: brfalse => Label33
IL_028F: ldc.i4.0
IL_0290: br => Label86
IL_0295: Label32
IL_0295: Label33
IL_0295: ldarga.s 1
IL_0297: call Verse.Thing RimWorld.StatRequest::get_Thing()
IL_029C: isinst Verse.Pawn
IL_02A1: dup
IL_02A2: stloc.s 5 (Verse.Pawn)
IL_02A4: brfalse => Label34
IL_02A9: ldarg.0
IL_02AA: ldfld RimWorld.StatDef RimWorld.StatWorker::stat
IL_02AF: ldfld Verse.DevelopmentalStage
RimWorld.StatDef::showDevelopmentalStageFilter
IL_02B4: ldloc.s 5 (Verse.Pawn)
IL_02B6: callvirt Verse.DevelopmentalStage Verse.Pawn::get_DevelopmentalStage()
IL_02BB: call static System.Boolean
Verse.DevelopmentalStageExtensions::Has(Verse.DevelopmentalStage
developmentalStage, Verse.DevelopmentalStage query)
IL_02C0: brtrue => Label35
IL_02C5: ldc.i4.0
IL_02C6: br => Label87
IL_02CB: Label21
IL_02CB: Label34
IL_02CB: Label35
IL_02CB: ldarg.0
IL_02CC: ldfld RimWorld.StatDef RimWorld.StatWorker::stat
IL_02D1: ldfld System.Boolean RimWorld.StatDef::showOnUnhaulables
IL_02D6: brtrue => Label36
IL_02DB: ldloc.2
IL_02DC: callvirt System.Boolean Verse.ThingDef::get_EverHaulable()
IL_02E1: brtrue => Label37
IL_02E6: ldloc.2
IL_02E7: callvirt System.Boolean Verse.ThingDef::get_Minifiable()
IL_02EC: brtrue => Label38
IL_02F1: ldc.i4.0
IL_02F2: br => Label88
IL_02F7: Label20
IL_02F7: Label36
IL_02F7: Label37
IL_02F7: Label38
IL_02F7: ldarg.0
IL_02F8: ldfld RimWorld.StatDef RimWorld.StatWorker::stat
IL_02FD: ldfld RimWorld.StatCategoryDef RimWorld.StatDef::category
IL_0302: ldsfld RimWorld.StatCategoryDef RimWorld.StatCategoryDefOf::BasicsPawn
IL_0307: beq => Label39
IL_030C: ldarg.0
IL_030D: ldfld RimWorld.StatDef RimWorld.StatWorker::stat
IL_0312: ldfld RimWorld.StatCategoryDef RimWorld.StatDef::category
IL_0317: ldsfld RimWorld.StatCategoryDef
RimWorld.StatCategoryDefOf::BasicsPawnImportant
IL_031C: beq => Label40
IL_0321: ldarg.0
IL_0322: ldfld RimWorld.StatDef RimWorld.StatWorker::stat
IL_0327: ldfld RimWorld.StatCategoryDef RimWorld.StatDef::category
IL_032C: ldsfld RimWorld.StatCategoryDef RimWorld.StatCategoryDefOf::PawnCombat
IL_0331: bne.un => Label41
IL_0336: Label39
IL_0336: Label40
IL_0336: ldloc.2
IL_0337: brfalse => Label42
IL_033C: ldloc.2
IL_033D: ldfld Verse.ThingCategory Verse.ThingDef::category
IL_0342: ldc.i4.1
IL_0343: ceq
IL_0345: br => Label89
IL_034A: Label42
IL_034A: ldc.i4.0
IL_034B: br => Label90
IL_0350: Label41
IL_0350: ldarg.0
IL_0351: ldfld RimWorld.StatDef RimWorld.StatWorker::stat
IL_0356: ldfld RimWorld.StatCategoryDef RimWorld.StatDef::category
IL_035B: ldsfld RimWorld.StatCategoryDef RimWorld.StatCategoryDefOf::PawnMisc
IL_0360: beq => Label43
IL_0365: ldarg.0
IL_0366: ldfld RimWorld.StatDef RimWorld.StatWorker::stat
IL_036B: ldfld RimWorld.StatCategoryDef RimWorld.StatDef::category
IL_0370: ldsfld RimWorld.StatCategoryDef RimWorld.StatCategoryDefOf::PawnSocial
IL_0375: beq => Label44
IL_037A: ldarg.0
IL_037B: ldfld RimWorld.StatDef RimWorld.StatWorker::stat
IL_0380: ldfld RimWorld.StatCategoryDef RimWorld.StatDef::category
IL_0385: ldsfld RimWorld.StatCategoryDef RimWorld.StatCategoryDefOf::PawnWork
IL_038A: bne.un => Label45
IL_038F: Label43
IL_038F: Label44
IL_038F: ldloc.2
IL_0390: brfalse => Label46
IL_0395: ldloc.2
IL_0396: ldfld Verse.ThingCategory Verse.ThingDef::category
IL_039B: ldc.i4.1
IL_039C: beq => Label47
IL_03A1: Label46
IL_03A1: ldc.i4.0
IL_03A2: br => Label91
IL_03A7: Label47
IL_03A7: ldarga.s 1
IL_03A9: call Verse.Thing RimWorld.StatRequest::get_Thing()
IL_03AE: isinst Verse.Pawn
IL_03B3: dup
IL_03B4: stloc.s 6 (Verse.Pawn)
IL_03B6: brfalse => Label48
IL_03BB: ldloc.s 6 (Verse.Pawn)
IL_03BD: callvirt System.Boolean Verse.Pawn::get_IsColonyMech()
IL_03C2: brfalse => Label49
IL_03C7: ldarg.0
IL_03C8: ldfld RimWorld.StatDef RimWorld.StatWorker::stat
IL_03CD: ldfld System.Boolean RimWorld.StatDef::showOnPlayerMechanoids
IL_03D2: brfalse => Label50
IL_03D7: ldc.i4.1
IL_03D8: br => Label92
IL_03DD: Label49
IL_03DD: Label50
IL_03DD: ldarg.0
IL_03DE: ldfld RimWorld.StatDef RimWorld.StatWorker::stat
IL_03E3: ldfld System.Collections.Generic.List`1<Verse.PawnKindDef>
RimWorld.StatDef::showOnPawnKind
IL_03E8: ldloc.s 6 (Verse.Pawn)
IL_03EA: ldfld Verse.PawnKindDef Verse.Pawn::kindDef
IL_03EF: call static System.Boolean
Verse.GenList::NotNullAndContains(System.Collections.Generic.IList`1<Verse.PawnKind
Def> list, Verse.PawnKindDef element)
IL_03F4: brfalse => Label51
IL_03F9: ldc.i4.1
IL_03FA: br => Label93
IL_03FF: Label48
IL_03FF: Label51
IL_03FF: ldloc.2
IL_0400: ldfld Verse.RaceProperties Verse.ThingDef::race
IL_0405: callvirt System.Boolean Verse.RaceProperties::get_Humanlike()
IL_040A: br => Label94
IL_040F: Label45
IL_040F: ldarg.0
IL_0410: ldfld RimWorld.StatDef RimWorld.StatWorker::stat
IL_0415: ldfld RimWorld.StatCategoryDef RimWorld.StatDef::category
IL_041A: ldsfld RimWorld.StatCategoryDef RimWorld.StatCategoryDefOf::Building
IL_041F: bne.un => Label52
IL_0424: ldloc.2
IL_0425: brtrue => Label53
IL_042A: ldc.i4.0
IL_042B: br => Label95
IL_0430: Label53
IL_0430: ldarg.0
IL_0431: ldfld RimWorld.StatDef RimWorld.StatWorker::stat
IL_0436: ldsfld RimWorld.StatDef RimWorld.StatDefOf::DoorOpenSpeed
IL_043B: bne.un => Label54
IL_0440: ldloc.2
IL_0441: callvirt System.Boolean Verse.ThingDef::get_IsDoor()
IL_0446: br => Label96
IL_044B: Label54
IL_044B: ldarg.0
IL_044C: ldfld RimWorld.StatDef RimWorld.StatWorker::stat
IL_0451: ldfld System.Boolean RimWorld.StatDef::showOnNonWorkTables
IL_0456: brtrue => Label55
IL_045B: ldloc.2
IL_045C: callvirt System.Boolean Verse.ThingDef::get_IsWorkTable()
IL_0461: brtrue => Label56
IL_0466: ldc.i4.0
IL_0467: br => Label97
IL_046C: Label55
IL_046C: Label56
IL_046C: ldloc.2
IL_046D: ldfld Verse.ThingCategory Verse.ThingDef::category
IL_0472: ldc.i4.3
IL_0473: ceq
IL_0475: br => Label98
IL_047A: Label52
IL_047A: ldarg.0
IL_047B: ldfld RimWorld.StatDef RimWorld.StatWorker::stat
IL_0480: ldfld RimWorld.StatCategoryDef RimWorld.StatDef::category
IL_0485: ldsfld RimWorld.StatCategoryDef RimWorld.StatCategoryDefOf::Apparel
IL_048A: bne.un => Label57
IL_048F: ldloc.2
IL_0490: brfalse => Label58
IL_0495: ldloc.2
IL_0496: callvirt System.Boolean Verse.ThingDef::get_IsApparel()
IL_049B: brtrue => Label59
IL_04A0: ldloc.2
IL_04A1: ldfld Verse.ThingCategory Verse.ThingDef::category
IL_04A6: ldc.i4.1
IL_04A7: ceq
IL_04A9: br => Label99
IL_04AE: Label59
IL_04AE: ldc.i4.1
IL_04AF: br => Label100
IL_04B4: Label58
IL_04B4: ldc.i4.0
IL_04B5: br => Label101
IL_04BA: Label57
IL_04BA: ldarg.0
IL_04BB: ldfld RimWorld.StatDef RimWorld.StatWorker::stat
IL_04C0: ldfld RimWorld.StatCategoryDef RimWorld.StatDef::category
IL_04C5: ldsfld RimWorld.StatCategoryDef RimWorld.StatCategoryDefOf::Weapon
IL_04CA: bne.un => Label60
IL_04CF: ldloc.2
IL_04D0: brfalse => Label61
IL_04D5: ldloc.2
IL_04D6: callvirt System.Boolean Verse.ThingDef::get_IsMeleeWeapon()
IL_04DB: brtrue => Label62
IL_04E0: ldloc.2
IL_04E1: callvirt System.Boolean Verse.ThingDef::get_IsRangedWeapon()
IL_04E6: br => Label102
IL_04EB: Label62
IL_04EB: ldc.i4.1
IL_04EC: br => Label103
IL_04F1: Label61
IL_04F1: ldc.i4.0
IL_04F2: br => Label104
IL_04F7: Label60
IL_04F7: ldarg.0
IL_04F8: ldfld RimWorld.StatDef RimWorld.StatWorker::stat
IL_04FD: ldfld RimWorld.StatCategoryDef RimWorld.StatDef::category
IL_0502: ldsfld RimWorld.StatCategoryDef
RimWorld.StatCategoryDefOf::Weapon_Ranged
IL_0507: bne.un => Label63
IL_050C: ldloc.2
IL_050D: brfalse => Label64
IL_0512: ldloc.2
IL_0513: callvirt System.Boolean Verse.ThingDef::get_IsRangedWeapon()
IL_0518: br => Label105
IL_051D: Label64
IL_051D: ldc.i4.0
IL_051E: br => Label106
IL_0523: Label63
IL_0523: ldarg.0
IL_0524: ldfld RimWorld.StatDef RimWorld.StatWorker::stat
IL_0529: ldfld RimWorld.StatCategoryDef RimWorld.StatDef::category
IL_052E: ldsfld RimWorld.StatCategoryDef
RimWorld.StatCategoryDefOf::Weapon_Melee
IL_0533: bne.un => Label65
IL_0538: ldloc.2
IL_0539: brfalse => Label66
IL_053E: ldloc.2
IL_053F: callvirt System.Boolean Verse.ThingDef::get_IsMeleeWeapon()
IL_0544: br => Label107
IL_0549: Label66
IL_0549: ldc.i4.0
IL_054A: br => Label108
IL_054F: Label65
IL_054F: ldarg.0
IL_0550: ldfld RimWorld.StatDef RimWorld.StatWorker::stat
IL_0555: ldfld RimWorld.StatCategoryDef RimWorld.StatDef::category
IL_055A: ldsfld RimWorld.StatCategoryDef
RimWorld.StatCategoryDefOf::BasicsNonPawn
IL_055F: beq => Label67
IL_0564: ldarg.0
IL_0565: ldfld RimWorld.StatDef RimWorld.StatWorker::stat
IL_056A: ldfld RimWorld.StatCategoryDef RimWorld.StatDef::category
IL_056F: ldsfld RimWorld.StatCategoryDef
RimWorld.StatCategoryDefOf::BasicsNonPawnImportant
IL_0574: bne.un => Label68
IL_0579: Label67
IL_0579: ldloc.2
IL_057A: brfalse => Label69
IL_057F: ldloc.2
IL_0580: ldfld Verse.ThingCategory Verse.ThingDef::category
IL_0585: ldc.i4.1
IL_0586: beq => Label70
IL_058B: Label69
IL_058B: ldarga.s 1
IL_058D: call System.Boolean RimWorld.StatRequest::get_ForAbility()
IL_0592: ldc.i4.0
IL_0593: ceq
IL_0595: br => Label109
IL_059A: Label70
IL_059A: ldc.i4.0
IL_059B: br => Label110
IL_05A0: Label68
IL_05A0: ldarg.0
IL_05A1: ldfld RimWorld.StatDef RimWorld.StatWorker::stat
IL_05A6: ldfld RimWorld.StatCategoryDef RimWorld.StatDef::category
IL_05AB: ldsfld RimWorld.StatCategoryDef RimWorld.StatCategoryDefOf::Terrain
IL_05B0: bne.un => Label71
IL_05B5: ldloc.0
IL_05B6: isinst Verse.TerrainDef
IL_05BB: ldnull
IL_05BC: cgt.un
IL_05BE: br => Label111
IL_05C3: Label71
IL_05C3: ldarga.s 1
IL_05C5: call System.Boolean RimWorld.StatRequest::get_ForAbility()
IL_05CA: brfalse => Label72
IL_05CF: ldarg.0
IL_05D0: ldfld RimWorld.StatDef RimWorld.StatWorker::stat
IL_05D5: ldfld RimWorld.StatCategoryDef RimWorld.StatDef::category
IL_05DA: ldsfld RimWorld.StatCategoryDef RimWorld.StatCategoryDefOf::Ability
IL_05DF: ceq
IL_05E1: br => Label112
IL_05E6: Label72
IL_05E6: ldarg.0
IL_05E7: ldfld RimWorld.StatDef RimWorld.StatWorker::stat
IL_05EC: ldfld RimWorld.StatCategoryDef RimWorld.StatDef::category
IL_05F1: ldfld System.Boolean RimWorld.StatCategoryDef::displayAllByDefault
IL_05F6: brfalse => Label73
IL_05FB: ldc.i4.1
IL_05FC: br => Label113
IL_0601: Label73
IL_0601: ldc.i4.4
IL_0602: newarr System.Object
IL_0607: dup
IL_0608: ldc.i4.0
IL_0609: ldstr "Unhandled case: "
IL_060E: stelem.ref
IL_060F: dup
IL_0610: ldc.i4.1
IL_0611: ldarg.0
IL_0612: ldfld RimWorld.StatDef RimWorld.StatWorker::stat
IL_0617: stelem.ref
IL_0618: dup
IL_0619: ldc.i4.2
IL_061A: ldstr ", "
IL_061F: stelem.ref
IL_0620: dup
IL_0621: ldc.i4.3
IL_0622: ldloc.0
IL_0623: stelem.ref
IL_0624: call static System.String System.String::Concat(System.Object[]
args)
IL_0629: call static System.Void Verse.Log::Error(System.String text)
IL_062E: ldc.i4.0
IL_062F: // end original
IL_062F: Label74
IL_062F: Label75
IL_062F: Label76
IL_062F: Label77
IL_062F: Label78
IL_062F: Label79
IL_062F: Label80
IL_062F: Label81
IL_062F: Label82
IL_062F: Label83
IL_062F: Label84
IL_062F: Label85
IL_062F: Label86
IL_062F: Label87
IL_062F: Label88
IL_062F: Label89
IL_062F: Label90
IL_062F: Label91
IL_062F: Label92
IL_062F: Label93
IL_062F: Label94
IL_062F: Label95
IL_062F: Label96
IL_062F: Label97
IL_062F: Label98
IL_062F: Label99
IL_062F: Label100
IL_062F: Label101
IL_062F: Label102
IL_062F: Label103
IL_062F: Label104
IL_062F: Label105
IL_062F: Label106
IL_062F: Label107
IL_062F: Label108
IL_062F: Label109
IL_062F: Label110
IL_062F: Label111
IL_062F: Label112
IL_062F: Label113
IL_062F: stloc 7 (System.Boolean)
IL_0633: Label0
IL_0633: ldloc 7 (System.Boolean)
IL_0637: ret
DONE

### Patch: System.Collections.Generic.IEnumerable`1<RimWorld.StatDrawEntry>


RimWorld.PlantProperties::SpecialDisplayStats()
### Replacement: static
System.Collections.Generic.IEnumerable`1<RimWorld.StatDrawEntry>
RimWorld.PlantProperties::RimWorld.PlantProperties.SpecialDisplayStats_Patch1(RimWo
rld.PlantProperties this)
IL_0000: Local var 0:
System.Collections.Generic.IEnumerable`1<RimWorld.StatDrawEntry>
IL_0000: Local var 1: System.Boolean
IL_0000: ldnull
IL_0001: stloc 0
(System.Collections.Generic.IEnumerable`1[RimWorld.StatDrawEntry])
IL_0005: ldc.i4 0
IL_000A: stloc 1 (System.Boolean)
IL_000E: ldc.i4.1
IL_000F: stloc 1 (System.Boolean)
IL_0013: ldloc 1 (System.Boolean)
IL_0017: brfalse => Label1
IL_001C: ldloca 0
(System.Collections.Generic.IEnumerable`1[RimWorld.StatDrawEntry])
IL_0020: ldarg.0
IL_0021: call static System.Boolean
InfoCardPatches.PlantProperties_SpecialDisplayStats_Patch::Prefix(System.Collection
s.Generic.IEnumerable`1& __result, RimWorld.PlantProperties __instance)
IL_0026: stloc 1 (System.Boolean)
IL_002A: Label1
IL_002A: nop
IL_002B: ldloc 1 (System.Boolean)
IL_002F: brfalse => Label0
IL_0034: // start original
IL_0034: ldc.i4.s -2
IL_0036: newobj System.Void
RimWorld.<SpecialDisplayStats>d__88::.ctor(System.Int32 <>1__state)
IL_003B: dup
IL_003C: ldarg.0
IL_003D: stfld RimWorld.PlantProperties
RimWorld.<SpecialDisplayStats>d__88::<>4__this
IL_0042: // end original
IL_0042: stloc 0
(System.Collections.Generic.IEnumerable`1[RimWorld.StatDrawEntry])
IL_0046: Label0
IL_0046: ldloc 0
(System.Collections.Generic.IEnumerable`1[RimWorld.StatDrawEntry])
IL_004A: ret
DONE

### Patch: virtual System.String


RimWorld.StatWorker::GetExplanationFinalizePart(RimWorld.StatRequest req,
Verse.ToStringNumberSense numberSense, System.Single finalVal)
### Replacement: static System.String
RimWorld.StatWorker::RimWorld.StatWorker.GetExplanationFinalizePart_Patch1(RimWorld
.StatWorker this, RimWorld.StatRequest req, Verse.ToStringNumberSense numberSense,
System.Single finalVal)
IL_0000: Local var 0: System.Text.StringBuilder
IL_0000: Local var 1: System.Single
IL_0000: Local var 2: System.Int32
IL_0000: Local var 3: System.String
IL_0000: Local var 4: System.Single
IL_0000: Local var 5: System.Single
IL_0000: Local var 6: System.String
IL_0000: Local var 7: System.String
IL_0000: Local var 8: System.Text.StringBuilder
IL_0000: Local var 9: System.Int32
IL_0000: Local var 10: RimWorld.StatDef
IL_0000: Local var 11: System.String
IL_0000: Local var 12: System.Boolean
IL_0000: ldnull
IL_0001: stloc 11 (System.String)
IL_0005: ldc.i4 0
IL_000A: stloc 12 (System.Boolean)
IL_000E: ldc.i4.1
IL_000F: stloc 12 (System.Boolean)
IL_0013: ldloc 12 (System.Boolean)
IL_0017: brfalse => Label1
IL_001C: ldloca 11 (System.String)
IL_0020: ldarg.0
IL_0021: ldarg 1
IL_0025: ldarg 2
IL_0029: ldarg 3
IL_002D: call static System.Boolean
InfoCardPatches.StatWorker_GetExplanationFinalizePart_Patch::Prefix(System.String&
__result, RimWorld.StatWorker __instance, RimWorld.StatRequest req,
Verse.ToStringNumberSense numberSense, System.Single finalVal)
IL_0032: stloc 12 (System.Boolean)
IL_0036: Label1
IL_0036: nop
IL_0037: ldloc 12 (System.Boolean)
IL_003B: brfalse => Label0
IL_0040: // start original
IL_0040: newobj System.Void System.Text.StringBuilder::.ctor()
IL_0045: stloc.0
IL_0046: ldarg.0
IL_0047: ldfld RimWorld.StatDef RimWorld.StatWorker::stat
IL_004C: ldfld System.Collections.Generic.List`1<RimWorld.StatPart>
RimWorld.StatDef::parts
IL_0051: brfalse => Label2
IL_0056: ldc.i4.0
IL_0057: stloc.2
IL_0058: br => Label3
IL_005D: Label5
IL_005D: ldarg.0
IL_005E: ldfld RimWorld.StatDef RimWorld.StatWorker::stat
IL_0063: ldfld System.Collections.Generic.List`1<RimWorld.StatPart>
RimWorld.StatDef::parts
IL_0068: ldloc.2
IL_0069: callvirt virtual RimWorld.StatPart
System.Collections.Generic.List`1<RimWorld.StatPart>::get_Item(System.Int32 index)
IL_006E: ldarg.1
IL_006F: callvirt abstract virtual System.String
RimWorld.StatPart::ExplanationPart(RimWorld.StatRequest req)
IL_0074: stloc.3
IL_0075: ldloc.3
IL_0076: call static System.Boolean Verse.GenText::NullOrEmpty(System.String
str)
IL_007B: brtrue => Label4
IL_0080: ldloc.0
IL_0081: ldloc.3
IL_0082: callvirt System.Text.StringBuilder
System.Text.StringBuilder::AppendLine(System.String value)
IL_0087: pop
IL_0088: Label4
IL_0088: ldloc.2
IL_0089: ldc.i4.1
IL_008A: add
IL_008B: stloc.2
IL_008C: Label3
IL_008C: ldloc.2
IL_008D: ldarg.0
IL_008E: ldfld RimWorld.StatDef RimWorld.StatWorker::stat
IL_0093: ldfld System.Collections.Generic.List`1<RimWorld.StatPart>
RimWorld.StatDef::parts
IL_0098: callvirt virtual System.Int32
System.Collections.Generic.List`1<RimWorld.StatPart>::get_Count()
IL_009D: blt => Label5
IL_00A2: Label2
IL_00A2: ldarg.0
IL_00A3: ldfld RimWorld.StatDef RimWorld.StatWorker::stat
IL_00A8: ldfld Verse.SimpleCurve RimWorld.StatDef::postProcessCurve
IL_00AD: brfalse => Label6
IL_00B2: ldarg.0
IL_00B3: ldarg.1
IL_00B4: ldc.i4.0
IL_00B5: call System.Single
RimWorld.StatWorker::GetValue(RimWorld.StatRequest req, System.Boolean
applyPostProcess)
IL_00BA: stloc.s 4 (System.Single)
IL_00BC: ldarg.0
IL_00BD: ldfld RimWorld.StatDef RimWorld.StatWorker::stat
IL_00C2: ldfld Verse.SimpleCurve RimWorld.StatDef::postProcessCurve
IL_00C7: ldloc.s 4 (System.Single)
IL_00C9: callvirt System.Single Verse.SimpleCurve::Evaluate(System.Single x)
IL_00CE: stloc.s 5 (System.Single)
IL_00D0: ldloc.s 4 (System.Single)
IL_00D2: ldloc.s 5 (System.Single)
IL_00D4: call static System.Boolean
UnityEngine.Mathf::Approximately(System.Single a, System.Single b)
IL_00D9: brtrue => Label7
IL_00DE: ldarg.0
IL_00DF: ldloc.s 4 (System.Single)
IL_00E1: ldc.i4.0
IL_00E2: ldc.i4.1
IL_00E3: callvirt virtual System.String
RimWorld.StatWorker::ValueToString(System.Single val, System.Boolean finalized,
Verse.ToStringNumberSense numberSense)
IL_00E8: stloc.s 6 (System.String)
IL_00EA: ldarg.0
IL_00EB: ldfld RimWorld.StatDef RimWorld.StatWorker::stat
IL_00F0: ldloc.s 5 (System.Single)
IL_00F2: ldarg.2
IL_00F3: ldc.i4.1
IL_00F4: callvirt System.String RimWorld.StatDef::ValueToString(System.Single
val, Verse.ToStringNumberSense numberSense, System.Boolean finalized)
IL_00F9: stloc.s 7 (System.String)
IL_00FB: ldloc.0
IL_00FC: ldstr "StatsReport_PostProcessed"
IL_0101: call static Verse.TaggedString
Verse.Translator::Translate(System.String key)
IL_0106: ldstr ": "
IL_010B: call static Verse.TaggedString
Verse.TaggedString::op_Addition(Verse.TaggedString t1, System.String t2)
IL_0110: ldloc.s 6 (System.String)
IL_0112: call static Verse.TaggedString
Verse.TaggedString::op_Addition(Verse.TaggedString t1, System.String t2)
IL_0117: ldstr " => "
IL_011C: call static Verse.TaggedString
Verse.TaggedString::op_Addition(Verse.TaggedString t1, System.String t2)
IL_0121: ldloc.s 7 (System.String)
IL_0123: call static Verse.TaggedString
Verse.TaggedString::op_Addition(Verse.TaggedString t1, System.String t2)
IL_0128: call static System.String
Verse.TaggedString::op_Implicit(Verse.TaggedString taggedString)
IL_012D: callvirt System.Text.StringBuilder
System.Text.StringBuilder::AppendLine(System.String value)
IL_0132: pop
IL_0133: Label6
IL_0133: Label7
IL_0133: ldarg.0
IL_0134: ldfld RimWorld.StatDef RimWorld.StatWorker::stat
IL_0139: ldfld System.Collections.Generic.List`1<RimWorld.StatDef>
RimWorld.StatDef::postProcessStatFactors
IL_013E: brfalse => Label8
IL_0143: newobj System.Void System.Text.StringBuilder::.ctor()
IL_0148: stloc.s 8 (System.Text.StringBuilder)
IL_014A: ldc.i4.0
IL_014B: stloc.s 9 (System.Int32)
IL_014D: br => Label9
IL_0152: Label11
IL_0152: ldarg.0
IL_0153: ldfld RimWorld.StatDef RimWorld.StatWorker::stat
IL_0158: ldfld System.Collections.Generic.List`1<RimWorld.StatDef>
RimWorld.StatDef::postProcessStatFactors
IL_015D: ldloc.s 9 (System.Int32)
IL_015F: callvirt virtual RimWorld.StatDef
System.Collections.Generic.List`1<RimWorld.StatDef>::get_Item(System.Int32 index)
IL_0164: callvirt RimWorld.StatWorker RimWorld.StatDef::get_Worker()
IL_0169: ldarg.1
IL_016A: callvirt virtual System.Boolean
RimWorld.StatWorker::ShouldShowFor(RimWorld.StatRequest req)
IL_016F: brfalse => Label10
IL_0174: ldarg.0
IL_0175: ldfld RimWorld.StatDef RimWorld.StatWorker::stat
IL_017A: ldfld System.Collections.Generic.List`1<RimWorld.StatDef>
RimWorld.StatDef::postProcessStatFactors
IL_017F: ldloc.s 9 (System.Int32)
IL_0181: callvirt virtual RimWorld.StatDef
System.Collections.Generic.List`1<RimWorld.StatDef>::get_Item(System.Int32 index)
IL_0186: stloc.s 10 (RimWorld.StatDef)
IL_0188: ldloc.s 8 (System.Text.StringBuilder)
IL_018A: ldstr " {0}: x{1}"
IL_018F: ldloc.s 10 (RimWorld.StatDef)
IL_0191: callvirt virtual Verse.TaggedString Verse.Def::get_LabelCap()
IL_0196: box Verse.TaggedString
IL_019B: ldloc.s 10 (RimWorld.StatDef)
IL_019D: callvirt RimWorld.StatWorker RimWorld.StatDef::get_Worker()
IL_01A2: ldarg.1
IL_01A3: ldc.i4.1
IL_01A4: callvirt System.Single
RimWorld.StatWorker::GetValue(RimWorld.StatRequest req, System.Boolean
applyPostProcess)
IL_01A9: call static System.String
Verse.GenText::ToStringPercent(System.Single f)
IL_01AE: call static System.String System.String::Format(System.String
format, System.Object arg0, System.Object arg1)
IL_01B3: callvirt System.Text.StringBuilder
System.Text.StringBuilder::AppendLine(System.String value)
IL_01B8: pop
IL_01B9: Label10
IL_01B9: ldloc.s 9 (System.Int32)
IL_01BB: ldc.i4.1
IL_01BC: add
IL_01BD: stloc.s 9 (System.Int32)
IL_01BF: Label9
IL_01BF: ldloc.s 9 (System.Int32)
IL_01C1: ldarg.0
IL_01C2: ldfld RimWorld.StatDef RimWorld.StatWorker::stat
IL_01C7: ldfld System.Collections.Generic.List`1<RimWorld.StatDef>
RimWorld.StatDef::postProcessStatFactors
IL_01CC: callvirt virtual System.Int32
System.Collections.Generic.List`1<RimWorld.StatDef>::get_Count()
IL_01D1: blt => Label11
IL_01D6: ldloc.s 8 (System.Text.StringBuilder)
IL_01D8: callvirt System.Int32 System.Text.StringBuilder::get_Length()
IL_01DD: ldc.i4.0
IL_01DE: ble => Label12
IL_01E3: ldloc.0
IL_01E4: ldstr "StatsReport_OtherStats"
IL_01E9: call static Verse.TaggedString
Verse.Translator::Translate(System.String key)
IL_01EE: call static System.String
Verse.TaggedString::op_Implicit(Verse.TaggedString taggedString)
IL_01F3: callvirt System.Text.StringBuilder
System.Text.StringBuilder::AppendLine(System.String value)
IL_01F8: pop
IL_01F9: ldloc.0
IL_01FA: ldloc.s 8 (System.Text.StringBuilder)
IL_01FC: callvirt virtual System.String System.Object::ToString()
IL_0201: callvirt System.Text.StringBuilder
System.Text.StringBuilder::AppendLine(System.String value)
IL_0206: pop
IL_0207: Label8
IL_0207: Label12
IL_0207: call static RimWorld.Scenario Verse.Find::get_Scenario()
IL_020C: ldarg.0
IL_020D: ldfld RimWorld.StatDef RimWorld.StatWorker::stat
IL_0212: callvirt System.Single RimWorld.Scenario::GetStatFactor(RimWorld.StatDef
stat)
IL_0217: stloc.1
IL_0218: ldloc.1
IL_0219: ldc.r4 1
IL_021E: beq => Label13
IL_0223: ldloc.0
IL_0224: ldstr "StatsReport_ScenarioFactor"
IL_0229: call static Verse.TaggedString
Verse.Translator::Translate(System.String key)
IL_022E: ldstr ": "
IL_0233: call static Verse.TaggedString
Verse.TaggedString::op_Addition(Verse.TaggedString t1, System.String t2)
IL_0238: ldloc.1
IL_0239: call static System.String
Verse.GenText::ToStringPercent(System.Single f)
IL_023E: call static Verse.TaggedString
Verse.TaggedString::op_Addition(Verse.TaggedString t1, System.String t2)
IL_0243: call static System.String
Verse.TaggedString::op_Implicit(Verse.TaggedString taggedString)
IL_0248: callvirt System.Text.StringBuilder
System.Text.StringBuilder::AppendLine(System.String value)
IL_024D: pop
IL_024E: Label13
IL_024E: ldloc.0
IL_024F: ldstr "StatsReport_FinalValue"
IL_0254: call static Verse.TaggedString
Verse.Translator::Translate(System.String key)
IL_0259: ldstr ": "
IL_025E: call static Verse.TaggedString
Verse.TaggedString::op_Addition(Verse.TaggedString t1, System.String t2)
IL_0263: ldarg.0
IL_0264: ldfld RimWorld.StatDef RimWorld.StatWorker::stat
IL_0269: ldarg.3
IL_026A: ldarg.0
IL_026B: ldfld RimWorld.StatDef RimWorld.StatWorker::stat
IL_0270: ldfld Verse.ToStringNumberSense RimWorld.StatDef::toStringNumberSense
IL_0275: ldc.i4.1
IL_0276: callvirt System.String RimWorld.StatDef::ValueToString(System.Single
val, Verse.ToStringNumberSense numberSense, System.Boolean finalized)
IL_027B: call static Verse.TaggedString
Verse.TaggedString::op_Addition(Verse.TaggedString t1, System.String t2)
IL_0280: call static System.String
Verse.TaggedString::op_Implicit(Verse.TaggedString taggedString)
IL_0285: callvirt System.Text.StringBuilder
System.Text.StringBuilder::Append(System.String value)
IL_028A: pop
IL_028B: ldloc.0
IL_028C: callvirt virtual System.String System.Object::ToString()
IL_0291: // end original
IL_0291: stloc 11 (System.String)
IL_0295: Label0
IL_0295: ldloc 11 (System.String)
IL_0299: ret
DONE

### Patch: System.Collections.Generic.IEnumerable`1<RimWorld.StatDrawEntry>


Verse.RaceProperties::SpecialDisplayStats(Verse.ThingDef parentDef,
RimWorld.StatRequest req)
### Replacement: static
System.Collections.Generic.IEnumerable`1<RimWorld.StatDrawEntry>
Verse.RaceProperties::Verse.RaceProperties.SpecialDisplayStats_Patch3(Verse.RacePro
perties this, Verse.ThingDef parentDef, RimWorld.StatRequest req)
IL_0000: Local var 0:
System.Collections.Generic.IEnumerable`1<RimWorld.StatDrawEntry>
IL_0000: Local var 1: System.Boolean
IL_0000: ldnull
IL_0001: stloc 0
(System.Collections.Generic.IEnumerable`1[RimWorld.StatDrawEntry])
IL_0005: ldc.i4 0
IL_000A: stloc 1 (System.Boolean)
IL_000E: ldc.i4.1
IL_000F: stloc 1 (System.Boolean)
IL_0013: ldloc 1 (System.Boolean)
IL_0017: brfalse => Label1
IL_001C: ldloca 0
(System.Collections.Generic.IEnumerable`1[RimWorld.StatDrawEntry])
IL_0020: ldarg.0
IL_0021: ldarg 1
IL_0025: ldarg 2
IL_0029: call static System.Boolean
InfoCardPatches.RaceProperties_SpecialDisplayStats_Patch::Prefix(System.Collections
.Generic.IEnumerable`1& __result, Verse.RaceProperties __instance, Verse.ThingDef
parentDef, RimWorld.StatRequest req)
IL_002E: stloc 1 (System.Boolean)
IL_0032: Label1
IL_0032: nop
IL_0033: ldloc 1 (System.Boolean)
IL_0037: brfalse => Label0
IL_003C: // start original
IL_003C: ldc.i4.s -2
IL_003E: newobj System.Void
Verse.<SpecialDisplayStats>d__127::.ctor(System.Int32 <>1__state)
IL_0043: dup
IL_0044: ldarg.0
IL_0045: stfld Verse.RaceProperties
Verse.<SpecialDisplayStats>d__127::<>4__this
IL_004A: dup
IL_004B: ldarg.1
IL_004C: stfld Verse.ThingDef
Verse.<SpecialDisplayStats>d__127::<>3__parentDef
IL_0051: dup
IL_0052: ldarg.2
IL_0053: stfld RimWorld.StatRequest
Verse.<SpecialDisplayStats>d__127::<>3__req
IL_0058: // end original
IL_0058: stloc 0
(System.Collections.Generic.IEnumerable`1[RimWorld.StatDrawEntry])
IL_005C: Label0
IL_005C: ldarg 1
IL_0060: ldloca 0
(System.Collections.Generic.IEnumerable`1[RimWorld.StatDrawEntry])
IL_0064: call static System.Void
NocturnalAnimals.Patch_SpecialDisplayStats::Postfix(Verse.ThingDef parentDef,
System.Collections.Generic.IEnumerable`1& __result)
IL_0069: ldloc 0
(System.Collections.Generic.IEnumerable`1[RimWorld.StatDrawEntry])
IL_006D: ldarg 1
IL_0071: call static
System.Collections.Generic.IEnumerable`1<RimWorld.StatDrawEntry>
BiomesCore.Patches.ExtraStatInfo::Animals(System.Collections.Generic.IEnumerable`1<
RimWorld.StatDrawEntry> __result, Verse.ThingDef parentDef)
IL_0076: ret
DONE

### Patch: System.Collections.Generic.IEnumerable`1<RimWorld.StatDrawEntry>


RimWorld.BuildingProperties::SpecialDisplayStats(Verse.ThingDef parentDef,
RimWorld.StatRequest req)
### Replacement: static
System.Collections.Generic.IEnumerable`1<RimWorld.StatDrawEntry>
RimWorld.BuildingProperties::RimWorld.BuildingProperties.SpecialDisplayStats_Patch1
(RimWorld.BuildingProperties this, Verse.ThingDef parentDef, RimWorld.StatRequest
req)
IL_0000: Local var 0:
System.Collections.Generic.IEnumerable`1<RimWorld.StatDrawEntry>
IL_0000: Local var 1: System.Boolean
IL_0000: ldnull
IL_0001: stloc 0
(System.Collections.Generic.IEnumerable`1[RimWorld.StatDrawEntry])
IL_0005: ldc.i4 0
IL_000A: stloc 1 (System.Boolean)
IL_000E: ldc.i4.1
IL_000F: stloc 1 (System.Boolean)
IL_0013: ldloc 1 (System.Boolean)
IL_0017: brfalse => Label1
IL_001C: ldloca 0
(System.Collections.Generic.IEnumerable`1[RimWorld.StatDrawEntry])
IL_0020: ldarg.0
IL_0021: ldarg 1
IL_0025: ldarg 2
IL_0029: call static System.Boolean
InfoCardPatches.BuildingProperties_SpecialDisplayStats_Patch::Prefix(System.Collect
ions.Generic.IEnumerable`1& __result, RimWorld.BuildingProperties __instance,
Verse.ThingDef parentDef, RimWorld.StatRequest req)
IL_002E: stloc 1 (System.Boolean)
IL_0032: Label1
IL_0032: nop
IL_0033: ldloc 1 (System.Boolean)
IL_0037: brfalse => Label0
IL_003C: // start original
IL_003C: ldc.i4.s -2
IL_003E: newobj System.Void
RimWorld.<SpecialDisplayStats>d__162::.ctor(System.Int32 <>1__state)
IL_0043: dup
IL_0044: ldarg.0
IL_0045: stfld RimWorld.BuildingProperties
RimWorld.<SpecialDisplayStats>d__162::<>4__this
IL_004A: dup
IL_004B: ldarg.1
IL_004C: stfld Verse.ThingDef
RimWorld.<SpecialDisplayStats>d__162::<>3__parentDef
IL_0051: dup
IL_0052: ldarg.2
IL_0053: stfld RimWorld.StatRequest
RimWorld.<SpecialDisplayStats>d__162::<>3__req
IL_0058: // end original
IL_0058: stloc 0
(System.Collections.Generic.IEnumerable`1[RimWorld.StatDrawEntry])
IL_005C: Label0
IL_005C: ldloc 0
(System.Collections.Generic.IEnumerable`1[RimWorld.StatDrawEntry])
IL_0060: ret
DONE

### Patch: static System.Void RimWorld.StatsReportUtility::Reset()


### Replacement: static System.Void
RimWorld.StatsReportUtility::RimWorld.StatsReportUtility.Reset_Patch1()
IL_0000: Local var 0: System.Boolean
IL_0000: ldc.i4 0
IL_0005: stloc 0 (System.Boolean)
IL_0009: ldc.i4.1
IL_000A: stloc 0 (System.Boolean)
IL_000E: ldloc 0 (System.Boolean)
IL_0012: brfalse => Label1
IL_0017: call static System.Boolean
InfoCardPatches.StatsReportUtility_Reset_Patch::Prefix()
IL_001C: stloc 0 (System.Boolean)
IL_0020: Label1
IL_0020: nop
IL_0021: ldloc 0 (System.Boolean)
IL_0025: brfalse => Label0
IL_002A: // start original
IL_002A: ldsflda UnityEngine.Vector2 RimWorld.StatsReportUtility::scrollPosition
IL_002F: initobj UnityEngine.Vector2
IL_0035: ldsflda UnityEngine.Vector2
RimWorld.StatsReportUtility::scrollPositionRightPanel
IL_003A: initobj UnityEngine.Vector2
IL_0040: ldnull
IL_0041: stsfld RimWorld.StatDrawEntry
RimWorld.StatsReportUtility::selectedEntry
IL_0046: ldsfld Verse.ScrollPositioner
RimWorld.StatsReportUtility::scrollPositioner
IL_004B: ldc.i4.0
IL_004C: callvirt System.Void Verse.ScrollPositioner::Arm(System.Boolean armed)
IL_0051: ldnull
IL_0052: stsfld RimWorld.StatDrawEntry
RimWorld.StatsReportUtility::mousedOverEntry
IL_0057: ldsfld System.Collections.Generic.List`1<RimWorld.StatDrawEntry>
RimWorld.StatsReportUtility::cachedDrawEntries
IL_005C: callvirt virtual System.Void
System.Collections.Generic.List`1<RimWorld.StatDrawEntry>::Clear()
IL_0061: ldsfld System.Collections.Generic.List`1<System.String>
RimWorld.StatsReportUtility::cachedEntryValues
IL_0066: callvirt virtual System.Void
System.Collections.Generic.List`1<System.String>::Clear()
IL_006B: ldsfld RimWorld.QuickSearchWidget
RimWorld.StatsReportUtility::quickSearchWidget
IL_0070: callvirt System.Void RimWorld.QuickSearchWidget::Reset()
IL_0075: ldnull
IL_0076: stsfld RimWorld.RoyalTitlePermitDef
RimWorld.PermitsCardUtility::selectedPermit
IL_007B: call static System.Boolean Verse.ModLister::get_RoyaltyInstalled()
IL_0080: brfalse => Label2
IL_0085: call static Verse.ProgramState Verse.Current::get_ProgramState()
IL_008A: ldc.i4.2
IL_008B: beq => Label3
IL_0090: Label2
IL_0090: ldnull
IL_0091: br => Label4
IL_0096: Label3
IL_0096: call static RimWorld.Faction RimWorld.Faction::get_OfEmpire()
IL_009B: Label4
IL_009B: stsfld RimWorld.Faction RimWorld.PermitsCardUtility::selectedFaction
IL_00A0: // end original
IL_00A0: Label0
IL_00A0: ret
DONE

### Harmony id=MakeAnythingCraftable.Mod, version=2.2.2.0, location=C:\Program


Files (x86)\Steam\steamapps\common\data-000002130553D010, env/clr=4.0.30319.42000,
platform=Win32NT, ptrsize:runtime/env=8/Bits64, Windows
### Started from static System.Void MakeAnythingCraftable.Utils::.cctor(), location
C:\Program Files (x86)\Steam\steamapps\common\data-0000021308F91D80
### At 2023-02-17 06.57.32
### Patch: System.Void Verse.Game::FinalizeInit()
### Replacement: static System.Void
Verse.Game::Verse.Game.FinalizeInit_Patch5(Verse.Game this)
IL_0000: call static System.Void
MakeAnythingCraftable.ThingDef_AllRecipes_Patch::Prefix()
IL_0005: // start original
IL_0005: call static System.Void Verse.LogSimple::FlushToFileAndOpen()
IL_000A: ldarg.0
IL_000B: ldfld RimWorld.ResearchManager Verse.Game::researchManager
IL_0010: callvirt System.Void RimWorld.ResearchManager::ReapplyAllMods()
IL_0015: call static System.Void Verse.MessagesRepeatAvoider::Reset()
IL_001A: call static System.Void Verse.GameComponentUtility::FinalizeInit()
IL_001F: ldc.i4.2
IL_0020: call static System.Void
Verse.Current::set_ProgramState(Verse.ProgramState value)
IL_0025: call static Verse.Game Verse.Current::get_Game()
IL_002A: callvirt RimWorld.Planet.World Verse.Game::get_World()
IL_002F: ldfld RimWorld.IdeoManager RimWorld.Planet.World::ideoManager
IL_0034: callvirt System.Void RimWorld.IdeoManager::Notify_GameStarted()
IL_0039: call static System.Void
RimWorld.RecipeDefGenerator::ResetRecipeIngredientsForDifficulty()
IL_003E: // end original
IL_003E: call static System.Void
Merthsoft.DesignatorShapes.Patches.Game_FinalizeInit::Postfix()
IL_0043: call static System.Void
HugsLib.Patches.Game_FinalizeInit_Patch::WorldLoadedHook()
IL_0048: call static System.Void
ResourceDictionary.Game_FinalizeInit_Patch::Postfix()
IL_004D: call static System.Void
RimHUD.Patch.Verse_Game_FinalizeInit::Postfix()
IL_0052: ret
DONE

### Harmony id=com.megafauna, version=2.2.2.0, location=C:\Program Files (x86)\


Steam\steamapps\common\data-000002130553D010, env/clr=4.0.30319.42000,
platform=Win32NT, ptrsize:runtime/env=8/Bits64, Windows
### Started from static System.Void Megafauna.Main::.cctor(), location C:\Program
Files (x86)\Steam\steamapps\common\data-0000021308FC1C90
### At 2023-02-17 06.57.32
### Patch: System.Single RimWorld.BiomeDef::CommonalityOfAnimal(Verse.PawnKindDef
animalDef)
### Replacement: static System.Single
RimWorld.BiomeDef::RimWorld.BiomeDef.CommonalityOfAnimal_Patch1(RimWorld.BiomeDef
this, Verse.PawnKindDef animalDef)
IL_0000: Local var 0: System.Single
IL_0000: Local var 1: System.Int32
IL_0000: Local var 2: System.Collections.Generic.IEnumerator`1<Verse.PawnKindDef>
IL_0000: Local var 3: Verse.PawnKindDef
IL_0000: Local var 4: System.Int32
IL_0000: Local var 5: System.Single
IL_0000: ldc.r4 0
IL_0005: stloc 5 (System.Single)
IL_0009: // start original
IL_0009: ldarg.0
IL_000A: ldfld System.Collections.Generic.Dictionary`2<Verse.PawnKindDef,
System.Single> RimWorld.BiomeDef::cachedAnimalCommonalities
IL_000F: brtrue => Label0
IL_0014: ldarg.0
IL_0015: newobj System.Void
System.Collections.Generic.Dictionary`2<Verse.PawnKindDef, System.Single>::.ctor()
IL_001A: stfld System.Collections.Generic.Dictionary`2<Verse.PawnKindDef,
System.Single> RimWorld.BiomeDef::cachedAnimalCommonalities
IL_001F: ldc.i4.0
IL_0020: stloc.1
IL_0021: br => Label1
IL_0026: Label2
IL_0026: ldarg.0
IL_0027: ldfld System.Collections.Generic.Dictionary`2<Verse.PawnKindDef,
System.Single> RimWorld.BiomeDef::cachedAnimalCommonalities
IL_002C: ldarg.0
IL_002D: ldfld System.Collections.Generic.List`1<RimWorld.BiomeAnimalRecord>
RimWorld.BiomeDef::wildAnimals
IL_0032: ldloc.1
IL_0033: callvirt virtual RimWorld.BiomeAnimalRecord
System.Collections.Generic.List`1<RimWorld.BiomeAnimalRecord>::get_Item(System.Int3
2 index)
IL_0038: ldfld Verse.PawnKindDef RimWorld.BiomeAnimalRecord::animal
IL_003D: ldarg.0
IL_003E: ldfld System.Collections.Generic.List`1<RimWorld.BiomeAnimalRecord>
RimWorld.BiomeDef::wildAnimals
IL_0043: ldloc.1
IL_0044: callvirt virtual RimWorld.BiomeAnimalRecord
System.Collections.Generic.List`1<RimWorld.BiomeAnimalRecord>::get_Item(System.Int3
2 index)
IL_0049: ldfld System.Single RimWorld.BiomeAnimalRecord::commonality
IL_004E: callvirt virtual System.Void
System.Collections.Generic.Dictionary`2<Verse.PawnKindDef,
System.Single>::Add(Verse.PawnKindDef key, System.Single value)
IL_0053: ldloc.1
IL_0054: ldc.i4.1
IL_0055: add
IL_0056: stloc.1
IL_0057: Label1
IL_0057: ldloc.1
IL_0058: ldarg.0
IL_0059: ldfld System.Collections.Generic.List`1<RimWorld.BiomeAnimalRecord>
RimWorld.BiomeDef::wildAnimals
IL_005E: callvirt virtual System.Int32
System.Collections.Generic.List`1<RimWorld.BiomeAnimalRecord>::get_Count()
IL_0063: blt => Label2
IL_0068: call static
System.Collections.Generic.IEnumerable`1<Verse.PawnKindDef>
Verse.DefDatabase`1<Verse.PawnKindDef>::get_AllDefs()
IL_006D: callvirt abstract virtual
System.Collections.Generic.IEnumerator`1<Verse.PawnKindDef>
System.Collections.Generic.IEnumerable`1<Verse.PawnKindDef>::GetEnumerator()
IL_0072: stloc.2
.try
{
IL_0073: br => Label3
IL_0078: Label8
IL_0078: ldloc.2
IL_0079: callvirt abstract virtual Verse.PawnKindDef
System.Collections.Generic.IEnumerator`1<Verse.PawnKindDef>::get_Current()
IL_007E: stloc.3
IL_007F: ldloc.3
IL_0080: callvirt Verse.RaceProperties Verse.PawnKindDef::get_RaceProps()
IL_0085: ldfld
System.Collections.Generic.List`1<RimWorld.AnimalBiomeRecord>
Verse.RaceProperties::wildBiomes
IL_008A: brfalse => Label4
IL_008F: ldc.i4.0
IL_0090: stloc.s 4 (System.Int32)
IL_0092: br => Label5
IL_0097: Label7
IL_0097: ldloc.3
IL_0098: callvirt Verse.RaceProperties Verse.PawnKindDef::get_RaceProps()
IL_009D: ldfld
System.Collections.Generic.List`1<RimWorld.AnimalBiomeRecord>
Verse.RaceProperties::wildBiomes
IL_00A2: ldloc.s 4 (System.Int32)
IL_00A4: callvirt virtual RimWorld.AnimalBiomeRecord
System.Collections.Generic.List`1<RimWorld.AnimalBiomeRecord>::get_Item(System.Int3
2 index)
IL_00A9: ldfld RimWorld.BiomeDef RimWorld.AnimalBiomeRecord::biome
IL_00AE: ldarg.0
IL_00AF: bne.un => Label6
IL_00B4: ldarg.0
IL_00B5: ldfld
System.Collections.Generic.Dictionary`2<Verse.PawnKindDef, System.Single>
RimWorld.BiomeDef::cachedAnimalCommonalities
IL_00BA: ldloc.3
IL_00BB: ldloc.3
IL_00BC: callvirt Verse.RaceProperties Verse.PawnKindDef::get_RaceProps()
IL_00C1: ldfld
System.Collections.Generic.List`1<RimWorld.AnimalBiomeRecord>
Verse.RaceProperties::wildBiomes
IL_00C6: ldloc.s 4 (System.Int32)
IL_00C8: callvirt virtual RimWorld.AnimalBiomeRecord
System.Collections.Generic.List`1<RimWorld.AnimalBiomeRecord>::get_Item(System.Int3
2 index)
IL_00CD: ldfld System.Single RimWorld.AnimalBiomeRecord::commonality
IL_00D2: callvirt virtual System.Void
System.Collections.Generic.Dictionary`2<Verse.PawnKindDef,
System.Single>::Add(Verse.PawnKindDef key, System.Single value)
IL_00D7: Label6
IL_00D7: ldloc.s 4 (System.Int32)
IL_00D9: ldc.i4.1
IL_00DA: add
IL_00DB: stloc.s 4 (System.Int32)
IL_00DD: Label5
IL_00DD: ldloc.s 4 (System.Int32)
IL_00DF: ldloc.3
IL_00E0: callvirt Verse.RaceProperties Verse.PawnKindDef::get_RaceProps()
IL_00E5: ldfld
System.Collections.Generic.List`1<RimWorld.AnimalBiomeRecord>
Verse.RaceProperties::wildBiomes
IL_00EA: callvirt virtual System.Int32
System.Collections.Generic.List`1<RimWorld.AnimalBiomeRecord>::get_Count()
IL_00EF: blt => Label7
IL_00F4: Label3
IL_00F4: Label4
IL_00F4: ldloc.2
IL_00F5: callvirt abstract virtual System.Boolean
System.Collections.IEnumerator::MoveNext()
IL_00FA: brtrue => Label8
IL_00FF: leave => Label9
IL_0104: leave => (autogenerated)
} // end try
.finally
{
IL_0109: ldloc.2
IL_010A: brfalse => Label10
IL_010F: ldloc.2
IL_0110: callvirt abstract virtual System.Void
System.IDisposable::Dispose()
IL_0115: Label10
IL_0115: endfinally
IL_0116: leave => (autogenerated)
} // end handler
IL_0117: Label0
IL_0117: Label9
IL_0117: ldarg.0
IL_0118: ldfld System.Collections.Generic.Dictionary`2<Verse.PawnKindDef,
System.Single> RimWorld.BiomeDef::cachedAnimalCommonalities
IL_011D: ldarg.1
IL_011E: ldloca.s 0 (System.Single)
IL_0120: callvirt virtual System.Boolean
System.Collections.Generic.Dictionary`2<Verse.PawnKindDef,
System.Single>::TryGetValue(Verse.PawnKindDef key, System.Single& value)
IL_0125: brfalse => Label11
IL_012A: ldloc.0
IL_012B: br => Label16
IL_0130: Label11
IL_0130: ldc.r4 0
IL_0135: // end original
IL_0135: Label16
IL_0135: stloc 5 (System.Single)
IL_0139: ldarg 1
IL_013D: ldloca 5 (System.Single)
IL_0141: call static System.Void
Megafauna.Megafauna_BiomeDef_CommonalityOfAnimal_Patch::MultiplyAlphaAnimalCommonal
ity(Verse.PawnKindDef animalDef, System.Single& __result)
IL_0146: ldloc 5 (System.Single)
IL_014A: ret
DONE

### Patch: System.Boolean Verse.MapTemperature::SeasonAcceptableFor(Verse.ThingDef


animalRace)
### Replacement: static System.Boolean
Verse.MapTemperature::Verse.MapTemperature.SeasonAcceptableFor_Patch2(Verse.MapTemp
erature this, Verse.ThingDef animalRace)
IL_0000: Local var 0: System.Boolean
IL_0000: ldc.i4 0
IL_0005: stloc 0 (System.Boolean)
IL_0009: // start original
IL_0009: call static RimWorld.Planet.World Verse.Find::get_World()
IL_000E: ldfld RimWorld.Planet.TileTemperaturesComp
RimWorld.Planet.World::tileTemperatures
IL_0013: ldarg.0
IL_0014: ldfld Verse.Map Verse.MapTemperature::map
IL_0019: callvirt virtual System.Int32 Verse.Map::get_Tile()
IL_001E: ldarg.1
IL_001F: callvirt System.Boolean
RimWorld.Planet.TileTemperaturesComp::SeasonAcceptableFor(System.Int32 tile,
Verse.ThingDef animalRace)
IL_0024: // end original
IL_0024: stloc 0 (System.Boolean)
IL_0028: ldarg 1
IL_002C: ldloca 0 (System.Boolean)
IL_0030: call static System.Void
AnimalBehaviours.VanillaExpandedFramework_MapTemperature_SeasonAcceptableFor_Patch:
:AllowAnimalSpawns(Verse.ThingDef animalRace, System.Boolean& __result)
IL_0035: ldarg 1
IL_0039: ldloca 0 (System.Boolean)
IL_003D: call static System.Void
Megafauna.Megafauna_MapTemperature_SeasonAcceptableFor_Patch::AllowAnimalSpawns(Ver
se.ThingDef animalRace, System.Boolean& __result)
IL_0042: ldloc 0 (System.Boolean)
IL_0046: ret
DONE

### Harmony id=ModErrorChecker, version=2.2.2.0, location=C:\Program Files (x86)\


Steam\steamapps\common\data-000002130553D010, env/clr=4.0.30319.42000,
platform=Win32NT, ptrsize:runtime/env=8/Bits64, Windows
### Started from static System.Void ModErrorChecker.ModErrorChecker::.cctor(),
location C:\Program Files (x86)\Steam\steamapps\common\data-0000021309006830
### At 2023-02-17 06.57.32
### Harmony id=com.arquebus.rimworld.mod.moregenecomplexity, version=2.2.2.0,
location=C:\Program Files (x86)\Steam\steamapps\common\data-000002130553D010,
env/clr=4.0.30319.42000, platform=Win32NT, ptrsize:runtime/env=8/Bits64, Windows
### Started from static System.Void
MoreGeneComplexity.MoreGeneComplexityPatches::.cctor(), location C:\Program Files
(x86)\Steam\steamapps\common\data-00000213090F1260
### At 2023-02-17 06.57.32
### Patch: System.Int32 RimWorld.Building_GeneAssembler::MaxComplexity()
### Replacement: static System.Int32
RimWorld.Building_GeneAssembler::RimWorld.Building_GeneAssembler.MaxComplexity_Patc
h1(RimWorld.Building_GeneAssembler this)
IL_0000: Local var 0: System.Int32
IL_0000: Local var 1: System.Collections.Generic.List`1<Verse.Thing>
IL_0000: Local var 2: System.Collections.Generic.List`1/Enumerator<Verse.Thing>
IL_0000: Local var 3: Verse.Thing
IL_0000: Local var 4: RimWorld.CompPowerTrader
IL_0000: Local var 5: System.Int32
IL_0000: ldc.i4 0
IL_0005: stloc 5 (System.Int32)
IL_0009: // start original
IL_0009: ldc.i4.6
IL_000A: stloc.0
IL_000B: ldarg.0
IL_000C: call System.Collections.Generic.List`1<Verse.Thing>
RimWorld.Building_GeneAssembler::get_ConnectedFacilities()
IL_0011: stloc.1
IL_0012: ldloc.1
IL_0013: brfalse => Label0
IL_0018: ldloc.1
IL_0019: callvirt System.Collections.Generic.Enumerator<Verse.Thing>
System.Collections.Generic.List`1<Verse.Thing>::GetEnumerator()
IL_001E: stloc.2
.try
{
IL_001F: br => Label1
IL_0024: Label4
IL_0024: ldloca.s 2
(System.Collections.Generic.List`1+Enumerator[Verse.Thing])
IL_0026: call virtual Verse.Thing
System.Collections.Generic.Enumerator<Verse.Thing>::get_Current()
IL_002B: stloc.3
IL_002C: ldloc.3
IL_002D: call static RimWorld.CompPowerTrader
Verse.ThingCompUtility::TryGetComp(Verse.Thing thing)
IL_0032: stloc.s 4 (RimWorld.CompPowerTrader)
IL_0034: ldloc.s 4 (RimWorld.CompPowerTrader)
IL_0036: brfalse => Label2
IL_003B: ldloc.s 4 (RimWorld.CompPowerTrader)
IL_003D: callvirt System.Boolean RimWorld.CompPowerTrader::get_PowerOn()
IL_0042: brfalse => Label3
IL_0047: Label2
IL_0047: ldloc.0
IL_0048: ldloc.3
IL_0049: ldsfld RimWorld.StatDef
RimWorld.StatDefOf::GeneticComplexityIncrease
IL_004E: ldc.i4.1
IL_004F: ldc.i4.m1
IL_0050: call static System.Single
RimWorld.StatExtension::GetStatValue(Verse.Thing thing, RimWorld.StatDef stat,
System.Boolean applyPostProcess, System.Int32 cacheStaleAfterTicks)
IL_0055: conv.i4
IL_0056: add
IL_0057: stloc.0
IL_0058: Label1
IL_0058: Label3
IL_0058: ldloca.s 2
(System.Collections.Generic.List`1+Enumerator[Verse.Thing])
IL_005A: call virtual System.Boolean
System.Collections.Generic.Enumerator<Verse.Thing>::MoveNext()
IL_005F: brtrue => Label4
IL_0064: leave => Label5
IL_0069: leave => (autogenerated)
} // end try
.finally
{
IL_006E: ldloca.s 2
(System.Collections.Generic.List`1+Enumerator[Verse.Thing])
IL_0070: constrained.
System.Collections.Generic.List`1+Enumerator[Verse.Thing]
IL_0076: callvirt abstract virtual System.Void
System.IDisposable::Dispose()
IL_007B: endfinally
IL_007C: leave => (autogenerated)
} // end handler
IL_007D: Label0
IL_007D: Label5
IL_007D: ldloc.0
IL_007E: // end original
IL_007E: stloc 5 (System.Int32)
IL_0082: ldloca 5 (System.Int32)
IL_0086: call static System.Void
MoreGeneComplexity.GeneComplexityPatch::Postfix(System.Int32& __result)
IL_008B: ldloc 5 (System.Int32)
IL_008F: ret
DONE

### Patch: System.Void System.Object::.ctor()


### Replacement: static System.Void
System.Object::System.Object..ctor_Patch2(System.Object this)
IL_0000: // start original
IL_0000: // end original
IL_0000: ldarg.0
IL_0001: call static System.Void
VSE.ExpertiseTrackers::CreateExpertise(RimWorld.Pawn_SkillTracker __instance)
IL_0006: call static System.Void
MoreGeneComplexity.GeneTuningBioStatMinPatch::Postfix()
IL_000B: ret
DONE

### Harmony id=OptimizationLeather.Mod, version=2.2.2.0, location=C:\Program Files


(x86)\Steam\steamapps\common\data-000002130553D010, env/clr=4.0.30319.42000,
platform=Win32NT, ptrsize:runtime/env=8/Bits64, Windows
### Started from static System.Void OptimizationLeather.HarmonyPatches::.cctor(),
location C:\Program Files (x86)\Steam\steamapps\common\data-0000021309324450
### At 2023-02-17 06.57.32
### Patch: System.Void Verse.Thing::SetStuffDirect(Verse.ThingDef newStuff)
### Replacement: static System.Void
Verse.Thing::Verse.Thing.SetStuffDirect_Patch1(Verse.Thing this, Verse.ThingDef
newStuff)
IL_0000: Local var 0: System.Boolean
IL_0000: ldc.i4 0
IL_0005: stloc 0 (System.Boolean)
IL_0009: ldc.i4.1
IL_000A: stloc 0 (System.Boolean)
IL_000E: ldloc 0 (System.Boolean)
IL_0012: brfalse => Label1
IL_0017: ldarg.0
IL_0018: ldarga 1
IL_001C: call static System.Void
OptimizationLeather.Patch_SetStuffDirect::Prefix(Verse.Thing __instance,
Verse.ThingDef& newStuff)
IL_0021: Label1
IL_0021: nop
IL_0022: ldloc 0 (System.Boolean)
IL_0026: brfalse => Label0
IL_002B: // start original
IL_002B: ldarg.0
IL_002C: ldarg.1
IL_002D: stfld Verse.ThingDef Verse.Thing::stuffInt
IL_0032: // end original
IL_0032: Label0
IL_0032: ret
DONE

### Harmony id=com.ogliss.rimworld.mod.quarry, version=2.2.2.0, location=C:\Program


Files (x86)\Steam\steamapps\common\data-000002130553D010, env/clr=4.0.30319.42000,
platform=Win32NT, ptrsize:runtime/env=8/Bits64, Windows
### Started from static System.Void Quarry.HarmonyInstance::.cctor(), location C:\
Program Files (x86)\Steam\steamapps\common\data-000002130935FAE0
### At 2023-02-17 06.57.32
### Patch: System.Void Verse.FogGrid::Notify_FogBlockerRemoved(Verse.IntVec3 c)
### Replacement: static System.Void
Verse.FogGrid::Verse.FogGrid.Notify_FogBlockerRemoved_Patch1(Verse.FogGrid this,
Verse.IntVec3 c)
IL_0000: Local var 0: System.Boolean
IL_0000: Local var 1: System.Int32
IL_0000: Local var 2: Verse.IntVec3
IL_0000: // start original
IL_0000: call static Verse.ProgramState Verse.Current::get_ProgramState()
IL_0005: ldc.i4.2
IL_0006: beq => Label0
IL_000B: br => Label7
IL_0010: Label0
IL_0010: ldc.i4.0
IL_0011: stloc.0
IL_0012: ldc.i4.0
IL_0013: stloc.1
IL_0014: br => Label1
IL_0019: Label5
IL_0019: ldarg.1
IL_001A: ldsfld Verse.IntVec3[] Verse.GenAdj::AdjacentCells
IL_001F: ldloc.1
IL_0020: ldelem Verse.IntVec3
IL_0025: call static Verse.IntVec3 Verse.IntVec3::op_Addition(Verse.IntVec3
a, Verse.IntVec3 b)
IL_002A: stloc.2
IL_002B: ldloc.2
IL_002C: ldarg.0
IL_002D: ldfld Verse.Map Verse.FogGrid::map
IL_0032: call static System.Boolean Verse.GenGrid::InBounds(Verse.IntVec3 c,
Verse.Map map)
IL_0037: brfalse => Label2
IL_003C: ldarg.0
IL_003D: ldloc.2
IL_003E: call System.Boolean Verse.FogGrid::IsFogged(Verse.IntVec3 c)
IL_0043: brtrue => Label3
IL_0048: ldc.i4.1
IL_0049: stloc.0
IL_004A: br => Label4
IL_004F: Label2
IL_004F: Label3
IL_004F: ldloc.1
IL_0050: ldc.i4.1
IL_0051: add
IL_0052: stloc.1
IL_0053: Label1
IL_0053: ldloc.1
IL_0054: ldc.i4.8
IL_0055: blt => Label5
IL_005A: Label4
IL_005A: ldloc.0
IL_005B: brtrue => Label6
IL_0060: br => Label8
IL_0065: Label6
IL_0065: ldarg.0
IL_0066: ldarg.1
IL_0067: ldc.i4.1
IL_0068: call System.Void Verse.FogGrid::FloodUnfogAdjacent(Verse.IntVec3 c,
System.Boolean sendLetters)
IL_006D: // end original
IL_006D: Label7
IL_006D: Label8
IL_006D: call static System.Void
Quarry.FogGrid_Notify_FogBlockerRemoved_Patch::Postfix()
IL_0072: ret
DONE
### Patch: System.Void
Verse.FogGrid::Notify_PawnEnteringDoor(RimWorld.Building_Door door, Verse.Pawn
pawn)
### Replacement: static System.Void
Verse.FogGrid::Verse.FogGrid.Notify_PawnEnteringDoor_Patch1(Verse.FogGrid this,
RimWorld.Building_Door door, Verse.Pawn pawn)
IL_0000: // start original
IL_0000: ldarg.2
IL_0001: callvirt virtual RimWorld.Faction Verse.Thing::get_Faction()
IL_0006: call static RimWorld.Faction RimWorld.Faction::get_OfPlayer()
IL_000B: beq => Label0
IL_0010: ldarg.2
IL_0011: callvirt RimWorld.Faction Verse.Pawn::get_HostFaction()
IL_0016: call static RimWorld.Faction RimWorld.Faction::get_OfPlayer()
IL_001B: beq => Label1
IL_0020: br => Label2
IL_0025: Label0
IL_0025: Label1
IL_0025: ldarg.0
IL_0026: ldarg.1
IL_0027: callvirt virtual Verse.IntVec3 Verse.Thing::get_Position()
IL_002C: ldc.i4.0
IL_002D: call System.Void Verse.FogGrid::FloodUnfogAdjacent(Verse.IntVec3 c,
System.Boolean sendLetters)
IL_0032: // end original
IL_0032: Label2
IL_0032: call static System.Void
Quarry.FogGrid_Notify_PawnEnteringDoor_Patch::Postfix()
IL_0037: ret
DONE

### Patch: static System.Void


DubsMintMenus.Patch_BillStack_DoListing::Doink(UnityEngine.Rect innyrek,
System.Collections.Generic.List`1<Verse.RecipeDef> wam,
System.Collections.Generic.HashSet`1<Verse.Building> selectedTables)
### Replacement: static System.Void
DubsMintMenus.Patch_BillStack_DoListing::DubsMintMenus.Patch_BillStack_DoListing.Do
ink_Patch0(UnityEngine.Rect innyrek,
System.Collections.Generic.List`1<Verse.RecipeDef> wam,
System.Collections.Generic.HashSet`1<Verse.Building> selectedTables)
IL_0000: Local var 0: System.Collections.Generic.List`1/Enumerator<Verse.RecipeDef>
IL_0000: Local var 1: Verse.RecipeDef
IL_0000: Local var 2: System.Collections.Generic.IEnumerator`1<RimWorld.Ideo>
IL_0000: Local var 3:
System.Collections.Generic.HashSet`1/Enumerator<RimWorld.Precept_Building>
IL_0000: Local var 4: RimWorld.Precept_Building
IL_0000: // start original
IL_0000: ldarg.1
IL_0001: call static System.Boolean
Verse.GenList::NullOrEmpty(System.Collections.Generic.IList`1<Verse.RecipeDef>
list)
IL_0006: brfalse => Label0
IL_000B: br => Label17
IL_0010: Label0
IL_0010: ldarg.1
IL_0011: ldsfld System.Predicate`1<Verse.RecipeDef>
DubsMintMenus.<>c::<>9__30_0
IL_0016: dup
IL_0017: brtrue => Label1
IL_001C: pop
IL_001D: ldsfld DubsMintMenus.<>c DubsMintMenus.<>c::<>9
IL_0022: ldftn System.Boolean
DubsMintMenus.<>c::<Doink>b__30_0(Verse.RecipeDef p)
IL_0028: newobj System.Void
System.Predicate`1<Verse.RecipeDef>::.ctor(System.Object object, System.IntPtr
method)
IL_002D: dup
IL_002E: stsfld System.Predicate`1<Verse.RecipeDef>
DubsMintMenus.<>c::<>9__30_0
IL_0033: Label1
IL_0033: callvirt System.Int32
System.Collections.Generic.List`1<Verse.RecipeDef>::RemoveAll(System.Predicate`1<Ve
rse.RecipeDef> match)
IL_0038: pop
IL_0039: call static DubsMintMenus.Settings
DubsMintMenus.DubsMintMenusMod::get_Settings()
IL_003E: ldfld System.Boolean DubsMintMenus.Settings::OrderBillsAz
IL_0043: brfalse => Label2
IL_0048: ldarg.1
IL_0049: ldsfld System.Func`2<Verse.RecipeDef, System.String>
DubsMintMenus.<>c::<>9__30_1
IL_004E: dup
IL_004F: brtrue => Label3
IL_0054: pop
IL_0055: ldsfld DubsMintMenus.<>c DubsMintMenus.<>c::<>9
IL_005A: ldftn System.String DubsMintMenus.<>c::<Doink>b__30_1(Verse.RecipeDef
p)
IL_0060: newobj System.Void System.Func`2<Verse.RecipeDef,
System.String>::.ctor(System.Object object, System.IntPtr method)
IL_0065: dup
IL_0066: stsfld System.Func`2<Verse.RecipeDef, System.String>
DubsMintMenus.<>c::<>9__30_1
IL_006B: Label3
IL_006B: call static System.Linq.IOrderedEnumerable`1<Verse.RecipeDef>
System.Linq.Enumerable::OrderBy(System.Collections.Generic.IEnumerable`1<Verse.Reci
peDef> source, System.Func`2<Verse.RecipeDef, System.String> keySelector)
IL_0070: call static System.Collections.Generic.List`1<Verse.RecipeDef>
System.Linq.Enumerable::ToList(System.Collections.Generic.IEnumerable`1<Verse.Recip
eDef> source)
IL_0075: starg.s 1
IL_0077: Label2
IL_0077: newobj System.Void Verse.Listing_Standard::.ctor()
IL_007C: dup
IL_007D: ldc.i4.1
IL_007E: stfld System.Boolean Verse.Listing::maxOneColumn
IL_0083: stsfld Verse.Listing_Standard
DubsMintMenus.Patch_BillStack_DoListing::lister
IL_0088: ldsfld Verse.Listing_Standard
DubsMintMenus.Patch_BillStack_DoListing::lister
IL_008D: ldarg.0
IL_008E: callvirt virtual System.Void Verse.Listing::Begin(UnityEngine.Rect rect)
IL_0093: ldarg.1
IL_0094: callvirt System.Collections.Generic.Enumerator<Verse.RecipeDef>
System.Collections.Generic.List`1<Verse.RecipeDef>::GetEnumerator()
IL_0099: stloc.0
.try
{
IL_009A: br => Label4
IL_009F: Label15
IL_009F: ldloca.s 0
(System.Collections.Generic.List`1+Enumerator[Verse.RecipeDef])
IL_00A1: call virtual Verse.RecipeDef
System.Collections.Generic.Enumerator<Verse.RecipeDef>::get_Current()
IL_00A6: stloc.1
.try
{
IL_00A7: ldloc.1
IL_00A8: ldarg.2
IL_00A9: ldnull
IL_00AA: call static System.Void
DubsMintMenus.Patch_BillStack_DoListing::DoRow(Verse.RecipeDef recipe,
System.Collections.Generic.HashSet`1<Verse.Building> selectedTables,
RimWorld.Precept_Building shittyPrecept)
IL_00AF: ldsfld Verse.Listing_Standard
DubsMintMenus.Patch_BillStack_DoListing::lister
IL_00B4: ldc.r4 2
IL_00B9: callvirt System.Void Verse.Listing::GapLine(System.Single
gapHeight)
IL_00BE: call static RimWorld.Faction
RimWorld.Faction::get_OfPlayer()
IL_00C3: ldfld RimWorld.FactionIdeosTracker
RimWorld.Faction::ideos
IL_00C8: callvirt
System.Collections.Generic.IEnumerable`1<RimWorld.Ideo>
RimWorld.FactionIdeosTracker::get_AllIdeos()
IL_00CD: callvirt abstract virtual
System.Collections.Generic.IEnumerator`1<RimWorld.Ideo>
System.Collections.Generic.IEnumerable`1<RimWorld.Ideo>::GetEnumerator()
IL_00D2: stloc.2
.try
{
IL_00D3: br => Label5
IL_00D8: Label10
IL_00D8: ldloc.2
IL_00D9: callvirt abstract virtual RimWorld.Ideo
System.Collections.Generic.IEnumerator`1<RimWorld.Ideo>::get_Current()
IL_00DE: ldfld
System.Collections.Generic.HashSet`1<RimWorld.Precept_Building>
RimWorld.Ideo::cachedPossibleBuildings
IL_00E3: callvirt
System.Collections.Generic.Enumerator<RimWorld.Precept_Building>
System.Collections.Generic.HashSet`1<RimWorld.Precept_Building>::GetEnumerator()
IL_00E8: stloc.3
.try
{
IL_00E9: br => Label6
IL_00EE: Label8
IL_00EE: ldloca.s 3
(System.Collections.Generic.HashSet`1+Enumerator[RimWorld.Precept_Building])
IL_00F0: call virtual RimWorld.Precept_Building
System.Collections.Generic.Enumerator<RimWorld.Precept_Building>::get_Current()
IL_00F5: stloc.s 4 (RimWorld.Precept_Building)
IL_00F7: ldloc.s 4 (RimWorld.Precept_Building)
IL_00F9: callvirt Verse.ThingDef
RimWorld.Precept_ThingDef::get_ThingDef()
IL_00FE: ldloc.1
IL_00FF: callvirt Verse.ThingDef
Verse.RecipeDef::get_ProducedThingDef()
IL_0104: bne.un => Label7
IL_0109: ldloc.1
IL_010A: ldarg.2
IL_010B: ldloc.s 4 (RimWorld.Precept_Building)
IL_010D: call static System.Void
DubsMintMenus.Patch_BillStack_DoListing::DoRow(Verse.RecipeDef recipe,
System.Collections.Generic.HashSet`1<Verse.Building> selectedTables,
RimWorld.Precept_Building shittyPrecept)
IL_0112: ldsfld Verse.Listing_Standard
DubsMintMenus.Patch_BillStack_DoListing::lister
IL_0117: ldc.r4 2
IL_011C: callvirt System.Void
Verse.Listing::GapLine(System.Single gapHeight)
IL_0121: Label6
IL_0121: Label7
IL_0121: ldloca.s 3
(System.Collections.Generic.HashSet`1+Enumerator[RimWorld.Precept_Building])
IL_0123: call virtual System.Boolean
System.Collections.Generic.Enumerator<RimWorld.Precept_Building>::MoveNext()
IL_0128: brtrue => Label8
IL_012D: leave => Label9
IL_0132: leave => (autogenerated)
} // end try
.finally
{
IL_0137: ldloca.s 3
(System.Collections.Generic.HashSet`1+Enumerator[RimWorld.Precept_Building])
IL_0139: constrained.
System.Collections.Generic.HashSet`1+Enumerator[RimWorld.Precept_Building]
IL_013F: callvirt abstract virtual System.Void
System.IDisposable::Dispose()
IL_0144: endfinally
IL_0145: leave => (autogenerated)
} // end handler
IL_0146: Label5
IL_0146: Label9
IL_0146: ldloc.2
IL_0147: callvirt abstract virtual System.Boolean
System.Collections.IEnumerator::MoveNext()
IL_014C: brtrue => Label10
IL_0151: leave => Label11
IL_0156: leave => (autogenerated)
} // end try
.finally
{
IL_015B: ldloc.2
IL_015C: brfalse => Label12
IL_0161: ldloc.2
IL_0162: callvirt abstract virtual System.Void
System.IDisposable::Dispose()
IL_0167: Label12
IL_0167: endfinally
IL_0168: leave => (autogenerated)
} // end handler
IL_0169: Label11
IL_0169: leave => Label13
IL_016E: leave => (autogenerated)
} // end try
.catch System.Exception
{
IL_0173: callvirt virtual System.String System.Object::ToString()
IL_0178: call static System.Void Verse.Log::Warning(System.String
text)
IL_017D: leave => Label14
IL_0182: leave => (autogenerated)
} // end handler
IL_0187: Label4
IL_0187: Label13
IL_0187: Label14
IL_0187: ldloca.s 0
(System.Collections.Generic.List`1+Enumerator[Verse.RecipeDef])
IL_0189: call virtual System.Boolean
System.Collections.Generic.Enumerator<Verse.RecipeDef>::MoveNext()
IL_018E: brtrue => Label15
IL_0193: leave => Label16
IL_0198: leave => (autogenerated)
} // end try
.finally
{
IL_019D: ldloca.s 0
(System.Collections.Generic.List`1+Enumerator[Verse.RecipeDef])
IL_019F: constrained.
System.Collections.Generic.List`1+Enumerator[Verse.RecipeDef]
IL_01A5: callvirt abstract virtual System.Void
System.IDisposable::Dispose()
IL_01AA: endfinally
IL_01AB: leave => (autogenerated)
} // end handler
IL_01AC: Label16
IL_01AC: ldsfld Verse.Listing_Standard
DubsMintMenus.Patch_BillStack_DoListing::lister
IL_01B1: ldarg.2
IL_01B2: call static System.Void
PeteTimesSix.ResearchReinvented.HarmonyPatches.ModCompatibility.Dubs_Mint_Menus.DMM
_Patch_BillStack_DoListing_Patches::AddPrototypeRows(Verse.Listing_Standard lister,
System.Collections.Generic.HashSet`1<Verse.Building> selectedTables)
IL_01B7: ldsfld Verse.Listing_Standard
DubsMintMenus.Patch_BillStack_DoListing::lister
IL_01BC: callvirt System.Single Verse.Listing::get_CurHeight()
IL_01C1: stsfld System.Single
DubsMintMenus.Patch_BillStack_DoListing::RecipesScrollHeight
IL_01C6: ldsfld Verse.Listing_Standard
DubsMintMenus.Patch_BillStack_DoListing::lister
IL_01CB: callvirt virtual System.Void Verse.Listing::End()
IL_01D0: // end original
IL_01D0: Label17
IL_01D0: ret
DONE

### Patch: static System.Void


DubsMintMenus.Patch_BillStack_DoListing::DoRow(Verse.RecipeDef recipe,
System.Collections.Generic.HashSet`1<Verse.Building> selectedTables,
RimWorld.Precept_Building shittyPrecept)
### Replacement: static System.Void
DubsMintMenus.Patch_BillStack_DoListing::DubsMintMenus.Patch_BillStack_DoListing.Do
Row_Patch0(Verse.RecipeDef recipe,
System.Collections.Generic.HashSet`1<Verse.Building> selectedTables,
RimWorld.Precept_Building shittyPrecept)
IL_0000: Local var 0: UnityEngine.Rect
IL_0000: Local var 1: UnityEngine.Texture2D
IL_0000: Local var 2: System.String
IL_0000: Local var 3: UnityEngine.Rect
IL_0000: Local var 4: UnityEngine.Rect
IL_0000: Local var 5: UnityEngine.Rect
IL_0000: Local var 6: System.Int32
IL_0000: Local var 7: UnityEngine.Rect
IL_0000: Local var 8: System.Single
IL_0000: Local var 9: UnityEngine.Rect
IL_0000: Local var 10: System.String
IL_0000: Local var 11: System.Int32
IL_0000: Local var 12: Verse.IngredientCount
IL_0000: Local var 13: Verse.ThingDef
IL_0000: Local var 14: System.String
IL_0000: Local var 15: UnityEngine.Rect
IL_0000: Local var 16: Verse.TaggedString
IL_0000: Local var 17:
System.Collections.Generic.HashSet`1/Enumerator<Verse.Building>
IL_0000: Local var 18: Verse.Building
IL_0000: Local var 19: RimWorld.IBillGiver
IL_0000: // start original
IL_0000: call static DubsMintMenus.Settings
DubsMintMenus.DubsMintMenusMod::get_Settings()
IL_0005: ldfld System.Boolean DubsMintMenus.Settings::ShowBillIngredientIcons
IL_000A: brtrue => Label0
IL_000F: call static DubsMintMenus.Settings
DubsMintMenus.DubsMintMenusMod::get_Settings()
IL_0014: ldfld System.Boolean DubsMintMenus.Settings::ShowBillWorkIcons
IL_0019: brfalse => Label1
IL_001E: Label0
IL_001E: ldsfld Verse.Listing_Standard
DubsMintMenus.Patch_BillStack_DoListing::lister
IL_0023: call static DubsMintMenus.Settings
DubsMintMenus.DubsMintMenusMod::get_Settings()
IL_0028: ldfld System.Single DubsMintMenus.Settings::bBoxSizeY
IL_002D: ldc.r4 1
IL_0032: callvirt UnityEngine.Rect Verse.Listing::GetRect(System.Single height,
System.Single widthPct)
IL_0037: stloc.0
IL_0038: br => Label2
IL_003D: Label1
IL_003D: ldsfld Verse.Listing_Standard
DubsMintMenus.Patch_BillStack_DoListing::lister
IL_0042: call static DubsMintMenus.Settings
DubsMintMenus.DubsMintMenusMod::get_Settings()
IL_0047: ldfld System.Single DubsMintMenus.Settings::bBoxSizeY
IL_004C: ldarg.0
IL_004D: call static System.String
DubsMintMenus.Patch_BillStack_DoListing::GetIngredientCache(Verse.RecipeDef recipe)
IL_0052: ldc.r4 9999
IL_0057: call static System.Single Verse.Text::CalcHeight(System.String text,
System.Single width)
IL_005C: call static System.Single UnityEngine.Mathf::Max(System.Single a,
System.Single b)
IL_0061: ldc.r4 1
IL_0066: callvirt UnityEngine.Rect Verse.Listing::GetRect(System.Single height,
System.Single widthPct)
IL_006B: stloc.0
IL_006C: Label2
IL_006C: ldloca.s 0 (UnityEngine.Rect)
IL_006E: ldsfld UnityEngine.Rect
DubsMintMenus.Patch_BillStack_DoListing::GizmoListRect
IL_0073: call System.Boolean UnityEngine.Rect::Overlaps(UnityEngine.Rect
other)
IL_0078: brtrue => Label3
IL_007D: br => Label35
IL_0082: Label3
IL_0082: ldloc.0
IL_0083: call static System.Boolean Verse.Mouse::IsOver(UnityEngine.Rect
rect)
IL_0088: brfalse => Label4
IL_008D: ldloc.0
IL_008E: call static System.Void
Verse.Widgets::DrawHighlight(UnityEngine.Rect rect)
IL_0093: ldarg.0
IL_0094: ldsfld Verse.RecipeDef
DubsMintMenus.Patch_BillStack_DoListing::hoverDef
IL_0099: beq => Label5
IL_009E: ldsfld DubsMintMenus.Mint_StatsReporter
DubsMintMenus.Mint_StatsReportUtility::MintStatHover
IL_00A3: callvirt System.Void DubsMintMenus.Mint_StatsReporter::Reset()
IL_00A8: ldarg.0
IL_00A9: stsfld Verse.RecipeDef
DubsMintMenus.Patch_BillStack_DoListing::hoverDef
IL_00AE: Label4
IL_00AE: Label5
IL_00AE: ldarg.0
IL_00AF: callvirt Verse.ThingDef Verse.RecipeDef::get_ProducedThingDef()
IL_00B4: brfalse => Label6
IL_00B9: ldarg.0
IL_00BA: callvirt Verse.ThingDef Verse.RecipeDef::get_ProducedThingDef()
IL_00BF: callvirt System.String Verse.ThingDef::get_DescriptionDetailed()
IL_00C4: stloc.2
IL_00C5: ldarg.0
IL_00C6: callvirt Verse.ThingDef Verse.RecipeDef::get_UIIconThing()
IL_00CB: ldfld UnityEngine.Texture2D Verse.BuildableDef::uiIcon
IL_00D0: stloc.1
IL_00D1: ldarg.0
IL_00D2: callvirt Verse.ThingDef Verse.RecipeDef::get_UIIconThing()
IL_00D7: ldfld UnityEngine.Color Verse.BuildableDef::uiIconColor
IL_00DC: call static System.Void UnityEngine.GUI::set_color(UnityEngine.Color
value)
IL_00E1: br => Label7
IL_00E6: Label6
IL_00E6: ldarg.0
IL_00E7: ldfld System.String Verse.Def::description
IL_00EC: stloc.2
IL_00ED: ldsfld UnityEngine.Texture2D
DubsMintMenus.Patch_BillStack_DoListing::work
IL_00F2: stloc.1
IL_00F3: Label7
IL_00F3: ldloc.0
IL_00F4: stloc.3
IL_00F5: ldloca.s 3 (UnityEngine.Rect)
IL_00F7: dup
IL_00F8: call System.Single UnityEngine.Rect::get_width()
IL_00FD: ldc.r4 0.1
IL_0102: mul
IL_0103: call System.Void UnityEngine.Rect::set_width(System.Single value)
IL_0108: ldloc.3
IL_0109: ldc.r4 1
IL_010E: call static UnityEngine.Rect
Verse.GenUI::ContractedBy(UnityEngine.Rect rect, System.Single margin)
IL_0113: ldloc.1
IL_0114: ldc.r4 1
IL_0119: call static System.Void
Verse.Widgets::DrawTextureFitted(UnityEngine.Rect outerRect, UnityEngine.Texture
tex, System.Single scale)
IL_011E: call static UnityEngine.Color UnityEngine.Color::get_white()
IL_0123: call static System.Void UnityEngine.GUI::set_color(UnityEngine.Color
value)
IL_0128: ldloc.0
IL_0129: stloc.s 4 (UnityEngine.Rect)
IL_012B: ldloca.s 4 (UnityEngine.Rect)
IL_012D: ldloca.s 3 (UnityEngine.Rect)
IL_012F: call System.Single UnityEngine.Rect::get_xMax()
IL_0134: call System.Void UnityEngine.Rect::set_x(System.Single value)
IL_0139: ldloca.s 4 (UnityEngine.Rect)
IL_013B: dup
IL_013C: call System.Single UnityEngine.Rect::get_width()
IL_0141: ldloca.s 3 (UnityEngine.Rect)
IL_0143: call System.Single UnityEngine.Rect::get_width()
IL_0148: sub
IL_0149: call System.Void UnityEngine.Rect::set_width(System.Single value)
IL_014E: call static DubsMintMenus.Settings
DubsMintMenus.DubsMintMenusMod::get_Settings()
IL_0153: ldfld System.Boolean DubsMintMenus.Settings::ShowBillIngredientIcons
IL_0158: brtrue => Label8
IL_015D: call static DubsMintMenus.Settings
DubsMintMenus.DubsMintMenusMod::get_Settings()
IL_0162: ldfld System.Boolean DubsMintMenus.Settings::ShowBillWorkIcons
IL_0167: brfalse => Label9
IL_016C: Label8
IL_016C: ldc.i4.0
IL_016D: call static System.Void Verse.Text::set_Font(Verse.GameFont value)
IL_0172: ldc.i4.0
IL_0173: stloc.s 6 (System.Int32)
IL_0175: call static DubsMintMenus.Settings
DubsMintMenus.DubsMintMenusMod::get_Settings()
IL_017A: ldfld System.Boolean DubsMintMenus.Settings::ShowBillIngredientIcons
IL_017F: brfalse => Label10
IL_0184: ldloc.s 6 (System.Int32)
IL_0186: ldarg.0
IL_0187: ldfld System.Collections.Generic.List`1<Verse.IngredientCount>
Verse.RecipeDef::ingredients
IL_018C: callvirt virtual System.Int32
System.Collections.Generic.List`1<Verse.IngredientCount>::get_Count()
IL_0191: add
IL_0192: stloc.s 6 (System.Int32)
IL_0194: Label10
IL_0194: call static DubsMintMenus.Settings
DubsMintMenus.DubsMintMenusMod::get_Settings()
IL_0199: ldfld System.Boolean DubsMintMenus.Settings::ShowBillWorkIcons
IL_019E: brfalse => Label11
IL_01A3: ldloc.s 6 (System.Int32)
IL_01A5: ldc.i4.1
IL_01A6: add
IL_01A7: stloc.s 6 (System.Int32)
IL_01A9: Label11
IL_01A9: ldloc.0
IL_01AA: ldc.r4 0.4
IL_01AF: call static UnityEngine.Rect Verse.GenUI::RightPart(UnityEngine.Rect
rect, System.Single pct)
IL_01B4: stloc.s 7 (UnityEngine.Rect)
IL_01B6: ldc.r4 35
IL_01BB: ldloc.s 6 (System.Int32)
IL_01BD: conv.r4
IL_01BE: mul
IL_01BF: ldloca.s 7 (UnityEngine.Rect)
IL_01C1: call System.Single UnityEngine.Rect::get_width()
IL_01C6: call static System.Single UnityEngine.Mathf::Min(System.Single a,
System.Single b)
IL_01CB: stloc.s 8 (System.Single)
IL_01CD: ldloca.s 4 (UnityEngine.Rect)
IL_01CF: dup
IL_01D0: call System.Single UnityEngine.Rect::get_width()
IL_01D5: ldloc.s 8 (System.Single)
IL_01D7: sub
IL_01D8: call System.Void UnityEngine.Rect::set_width(System.Single value)
IL_01DD: ldloc.0
IL_01DE: ldloc.s 8 (System.Single)
IL_01E0: ldloc.s 6 (System.Int32)
IL_01E2: conv.r4
IL_01E3: div
IL_01E4: call static UnityEngine.Rect
Verse.GenUI::RightPartPixels(UnityEngine.Rect rect, System.Single width)
IL_01E9: stloc.s 9 (UnityEngine.Rect)
IL_01EB: call static DubsMintMenus.Settings
DubsMintMenus.DubsMintMenusMod::get_Settings()
IL_01F0: ldfld System.Boolean DubsMintMenus.Settings::ShowBillWorkIcons
IL_01F5: brfalse => Label12
IL_01FA: ldarg.0
IL_01FB: ldnull
IL_01FC: callvirt System.Single Verse.RecipeDef::WorkAmountTotal(Verse.ThingDef
stuffDef)
IL_0201: call static System.String
Verse.GenText::ToStringWorkAmount(System.Single workAmount)
IL_0206: stloc.s 10 (System.String)
IL_0208: ldloc.s 9 (UnityEngine.Rect)
IL_020A: ldsfld UnityEngine.Texture2D
DubsMintMenus.Patch_BillStack_DoListing::work_icon
IL_020F: ldc.r4 1
IL_0214: call static System.Void
Verse.Widgets::DrawTextureFitted(UnityEngine.Rect outerRect, UnityEngine.Texture
tex, System.Single scale)
IL_0219: call static UnityEngine.Color UnityEngine.Color::get_white()
IL_021E: call static System.Void UnityEngine.GUI::set_color(UnityEngine.Color
value)
IL_0223: ldc.i4.7
IL_0224: call static System.Void
Verse.Text::set_Anchor(UnityEngine.TextAnchor value)
IL_0229: ldloc.s 9 (UnityEngine.Rect)
IL_022B: ldloc.s 10 (System.String)
IL_022D: call static System.Void Verse.Widgets::Label(UnityEngine.Rect rect,
System.String label)
IL_0232: ldc.i4.0
IL_0233: call static System.Void
Verse.Text::set_Anchor(UnityEngine.TextAnchor value)
IL_0238: ldloc.s 9 (UnityEngine.Rect)
IL_023A: ldstr "WorkAmount"
IL_023F: call static Verse.TaggedString
Verse.Translator::Translate(System.String key)
IL_0244: ldstr ": "
IL_0249: call static Verse.TaggedString
Verse.TaggedString::op_Addition(Verse.TaggedString t1, System.String t2)
IL_024E: ldloc.s 10 (System.String)
IL_0250: call static Verse.TaggedString
Verse.TaggedString::op_Addition(Verse.TaggedString t1, System.String t2)
IL_0255: call static Verse.TipSignal
Verse.TipSignal::op_Implicit(Verse.TaggedString str)
IL_025A: call static System.Void
Verse.TooltipHandler::TipRegion(UnityEngine.Rect rect, Verse.TipSignal tip)
IL_025F: ldloca.s 9 (UnityEngine.Rect)
IL_0261: dup
IL_0262: call System.Single UnityEngine.Rect::get_x()
IL_0267: ldloca.s 9 (UnityEngine.Rect)
IL_0269: call System.Single UnityEngine.Rect::get_width()
IL_026E: sub
IL_026F: call System.Void UnityEngine.Rect::set_x(System.Single value)
IL_0274: Label12
IL_0274: call static DubsMintMenus.Settings
DubsMintMenus.DubsMintMenusMod::get_Settings()
IL_0279: ldfld System.Boolean DubsMintMenus.Settings::ShowBillIngredientIcons
IL_027E: brfalse => Label13
IL_0283: ldarg.0
IL_0284: ldfld System.Collections.Generic.List`1<Verse.IngredientCount>
Verse.RecipeDef::ingredients
IL_0289: call static System.Boolean
Verse.GenList::NullOrEmpty(System.Collections.Generic.IList`1<Verse.IngredientCount
> list)
IL_028E: brtrue => Label14
IL_0293: ldarg.0
IL_0294: ldfld System.Collections.Generic.List`1<Verse.IngredientCount>
Verse.RecipeDef::ingredients
IL_0299: callvirt virtual System.Int32
System.Collections.Generic.List`1<Verse.IngredientCount>::get_Count()
IL_029E: ldc.i4.1
IL_029F: sub
IL_02A0: stloc.s 11 (System.Int32)
IL_02A2: br => Label15
IL_02A7: Label22
IL_02A7: nop
.try
{
IL_02A8: ldarg.0
IL_02A9: ldfld System.Collections.Generic.List`1<Verse.IngredientCount>
Verse.RecipeDef::ingredients
IL_02AE: ldloc.s 11 (System.Int32)
IL_02B0: callvirt virtual Verse.IngredientCount
System.Collections.Generic.List`1<Verse.IngredientCount>::get_Item(System.Int32
index)
IL_02B5: stloc.s 12 (Verse.IngredientCount)
IL_02B7: ldloc.s 12 (Verse.IngredientCount)
IL_02B9: callvirt System.Boolean
Verse.IngredientCount::get_IsFixedIngredient()
IL_02BE: brfalse => Label16
IL_02C3: ldloc.s 12 (Verse.IngredientCount)
IL_02C5: callvirt Verse.ThingDef
Verse.IngredientCount::get_FixedIngredient()
IL_02CA: stloc.s 13 (Verse.ThingDef)
IL_02CC: br => Label17
IL_02D1: Label16
IL_02D1: ldloc.s 12 (Verse.IngredientCount)
IL_02D3: ldfld Verse.ThingFilter Verse.IngredientCount::filter
IL_02D8: callvirt Verse.ThingDef Verse.ThingFilter::get_AnyAllowedDef()
IL_02DD: stloc.s 13 (Verse.ThingDef)
IL_02DF: Label17
IL_02DF: ldloc.s 13 (Verse.ThingDef)
IL_02E1: ldfld UnityEngine.Texture2D Verse.BuildableDef::uiIcon
IL_02E6: ldsfld UnityEngine.Texture2D Verse.BaseContent::BadTex
IL_02EB: call static System.Boolean
UnityEngine.Object::op_Equality(UnityEngine.Object x, UnityEngine.Object y)
IL_02F0: brfalse => Label18
IL_02F5: ldloc.s 9 (UnityEngine.Rect)
IL_02F7: ldsfld UnityEngine.Texture2D
DubsMintMenus.Patch_BillStack_DoListing::work_icon
IL_02FC: ldc.r4 1
IL_0301: call static System.Void
Verse.Widgets::DrawTextureFitted(UnityEngine.Rect outerRect, UnityEngine.Texture
tex, System.Single scale)
IL_0306: br => Label19
IL_030B: Label18
IL_030B: ldloc.s 13 (Verse.ThingDef)
IL_030D: ldfld UnityEngine.Color Verse.BuildableDef::uiIconColor
IL_0312: call static System.Void
UnityEngine.GUI::set_color(UnityEngine.Color value)
IL_0317: ldloc.s 9 (UnityEngine.Rect)
IL_0319: ldloc.s 13 (Verse.ThingDef)
IL_031B: ldfld UnityEngine.Texture2D Verse.BuildableDef::uiIcon
IL_0320: ldloc.s 13 (Verse.ThingDef)
IL_0322: ldfld System.Single Verse.ThingDef::uiIconScale
IL_0327: call static System.Void
Verse.Widgets::DrawTextureFitted(UnityEngine.Rect outerRect, UnityEngine.Texture
tex, System.Single scale)
IL_032C: Label19
IL_032C: call static UnityEngine.Color UnityEngine.Color::get_white()
IL_0331: call static System.Void
UnityEngine.GUI::set_color(UnityEngine.Color value)
IL_0336: ldc.i4.7
IL_0337: call static System.Void
Verse.Text::set_Anchor(UnityEngine.TextAnchor value)
IL_033C: ldloc.s 9 (UnityEngine.Rect)
IL_033E: ldarg.0
IL_033F: ldloc.s 12 (Verse.IngredientCount)
IL_0341: call static System.String
DubsMintMenus.Patch_BillStack_DoListing::IngredientNum(Verse.RecipeDef r,
Verse.IngredientCount ing)
IL_0346: call static System.Void Verse.Widgets::Label(UnityEngine.Rect
rect, System.String label)
IL_034B: ldc.i4.0
IL_034C: call static System.Void
Verse.Text::set_Anchor(UnityEngine.TextAnchor value)
IL_0351: ldloc.s 9 (UnityEngine.Rect)
IL_0353: ldarg.0
IL_0354: call static System.String
DubsMintMenus.Patch_BillStack_DoListing::GetIngredientCache(Verse.RecipeDef recipe)
IL_0359: call static Verse.TipSignal
Verse.TipSignal::op_Implicit(System.String str)
IL_035E: call static System.Void
Verse.TooltipHandler::TipRegion(UnityEngine.Rect rect, Verse.TipSignal tip)
IL_0363: ldloca.s 9 (UnityEngine.Rect)
IL_0365: dup
IL_0366: call System.Single UnityEngine.Rect::get_x()
IL_036B: ldloca.s 9 (UnityEngine.Rect)
IL_036D: call System.Single UnityEngine.Rect::get_width()
IL_0372: sub
IL_0373: call System.Void UnityEngine.Rect::set_x(System.Single value)
IL_0378: leave => Label20
IL_037D: leave => (autogenerated)
} // end try
.catch System.Exception
{
IL_0382: pop
IL_0383: leave => Label21
IL_0388: leave => (autogenerated)
} // end handler
IL_038D: Label20
IL_038D: Label21
IL_038D: ldloc.s 11 (System.Int32)
IL_038F: ldc.i4.1
IL_0390: sub
IL_0391: stloc.s 11 (System.Int32)
IL_0393: Label15
IL_0393: ldloc.s 11 (System.Int32)
IL_0395: ldc.i4.0
IL_0396: bge => Label22
IL_039B: br => Label23
IL_03A0: Label9
IL_03A0: ldarg.0
IL_03A1: call static System.String
DubsMintMenus.Patch_BillStack_DoListing::GetIngredientCache(Verse.RecipeDef recipe)
IL_03A6: stloc.s 14 (System.String)
IL_03A8: ldloc.s 4 (UnityEngine.Rect)
IL_03AA: ldc.r4 0.4
IL_03AF: call static UnityEngine.Rect Verse.GenUI::RightPart(UnityEngine.Rect
rect, System.Single pct)
IL_03B4: stloc.s 15 (UnityEngine.Rect)
IL_03B6: ldc.i4.0
IL_03B7: call static System.Void Verse.Text::set_Font(Verse.GameFont value)
IL_03BC: ldloc.s 15 (UnityEngine.Rect)
IL_03BE: ldc.r4 1
IL_03C3: call static UnityEngine.Rect
Verse.GenUI::ContractedBy(UnityEngine.Rect rect, System.Single margin)
IL_03C8: ldloc.s 14 (System.String)
IL_03CA: call static System.Void Verse.Widgets::Label(UnityEngine.Rect rect,
System.String label)
IL_03CF: ldloca.s 4 (UnityEngine.Rect)
IL_03D1: dup
IL_03D2: call System.Single UnityEngine.Rect::get_width()
IL_03D7: ldloca.s 15 (UnityEngine.Rect)
IL_03D9: call System.Single UnityEngine.Rect::get_width()
IL_03DE: sub
IL_03DF: call System.Void UnityEngine.Rect::set_width(System.Single value)
IL_03E4: Label13
IL_03E4: Label14
IL_03E4: Label23
IL_03E4: ldc.i4.1
IL_03E5: call static System.Void Verse.Text::set_Font(Verse.GameFont value)
IL_03EA: ldc.i4.3
IL_03EB: call static System.Void
Verse.Text::set_Anchor(UnityEngine.TextAnchor value)
IL_03F0: ldloc.s 4 (UnityEngine.Rect)
IL_03F2: ldc.r4 1
IL_03F7: call static UnityEngine.Rect
Verse.GenUI::ContractedBy(UnityEngine.Rect rect, System.Single margin)
IL_03FC: ldarg.2
IL_03FD: brtrue => Label24
IL_0402: ldarg.0
IL_0403: callvirt virtual Verse.TaggedString Verse.Def::get_LabelCap()
IL_0408: br => Label25
IL_040D: Label24
IL_040D: ldstr "RecipeMake"
IL_0412: ldarg.2
IL_0413: callvirt System.String RimWorld.Precept::get_LabelCap()
IL_0418: call static Verse.NamedArgument
Verse.NamedArgument::op_Implicit(System.String value)
IL_041D: call static Verse.TaggedString
Verse.TranslatorFormattedStringExtensions::Translate(System.String key,
Verse.NamedArgument arg1)
IL_0422: stloc.s 16 (Verse.TaggedString)
IL_0424: ldloca.s 16 (Verse.TaggedString)
IL_0426: call Verse.TaggedString Verse.TaggedString::CapitalizeFirst()
IL_042B: Label25
IL_042B: call static System.Void Verse.Widgets::Label(UnityEngine.Rect rect,
Verse.TaggedString label)
IL_0430: ldloc.s 4 (UnityEngine.Rect)
IL_0432: ldloc.2
IL_0433: call static Verse.TipSignal
Verse.TipSignal::op_Implicit(System.String str)
IL_0438: call static System.Void
Verse.TooltipHandler::TipRegion(UnityEngine.Rect rect, Verse.TipSignal tip)
IL_043D: ldloc.0
IL_043E: stloc.s 5 (UnityEngine.Rect)
IL_0440: ldloca.s 5 (UnityEngine.Rect)
IL_0442: ldloca.s 4 (UnityEngine.Rect)
IL_0444: call System.Single UnityEngine.Rect::get_xMax()
IL_0449: call System.Void UnityEngine.Rect::set_x(System.Single value)
IL_044E: ldloca.s 5 (UnityEngine.Rect)
IL_0450: dup
IL_0451: call System.Single UnityEngine.Rect::get_width()
IL_0456: ldc.r4 0.4
IL_045B: mul
IL_045C: call System.Void UnityEngine.Rect::set_width(System.Single value)
IL_0461: call static System.Boolean
PeteTimesSix.ResearchReinvented.HarmonyPatches.ModCompatibility.Dubs_Mint_Menus.DMM
_Patch_BillStack_DoListing_Patches::ShouldDoNormalButton()
IL_0466: brfalse => Label26
IL_046B: ldloc.0
IL_046C: ldc.i4.1
IL_046D: call static System.Boolean
Verse.Widgets::ButtonInvisible(UnityEngine.Rect butRect, System.Boolean
doMouseoverSound)
IL_0472: brfalse => Label26
IL_0477: ldarg.1
IL_0478: call static System.Boolean
Verse.GenCollection::Any(System.Collections.Generic.HashSet`1<Verse.Building> list)
IL_047D: brfalse => Label27
IL_0482: ldarg.1
IL_0483: callvirt System.Collections.Generic.Enumerator<Verse.Building>
System.Collections.Generic.HashSet`1<Verse.Building>::GetEnumerator()
IL_0488: stloc.s 17
(System.Collections.Generic.HashSet`1+Enumerator[Verse.Building])
.try
{
IL_048A: br => Label28
IL_048F: Label33
IL_048F: ldloca.s 17
(System.Collections.Generic.HashSet`1+Enumerator[Verse.Building])
IL_0491: call virtual Verse.Building
System.Collections.Generic.Enumerator<Verse.Building>::get_Current()
IL_0496: stloc.s 18 (Verse.Building)
IL_0498: ldloc.s 18 (Verse.Building)
IL_049A: isinst RimWorld.IBillGiver
IL_049F: stloc.s 19 (RimWorld.IBillGiver)
IL_04A1: ldloc.s 19 (RimWorld.IBillGiver)
IL_04A3: brfalse => Label29
IL_04A8: ldloc.s 18 (Verse.Building)
IL_04AA: call static System.Collections.Generic.List`1<Verse.RecipeDef>
DubsMintMenus.Patch_BillStack_DoListing::GetBills(Verse.Thing table)
IL_04AF: ldarg.0
IL_04B0: callvirt virtual System.Boolean
System.Collections.Generic.List`1<Verse.RecipeDef>::Contains(Verse.RecipeDef item)
IL_04B5: brfalse => Label30
IL_04BA: ldloc.s 19 (RimWorld.IBillGiver)
IL_04BC: callvirt abstract virtual RimWorld.BillStack
RimWorld.IBillGiver::get_BillStack()
IL_04C1: ldarg.0
IL_04C2: ldarg.2
IL_04C3: call static RimWorld.Bill
RimWorld.BillUtility::MakeNewBill(Verse.RecipeDef recipe,
RimWorld.Precept_ThingStyle precept)
IL_04C8: callvirt System.Void RimWorld.BillStack::AddBill(RimWorld.Bill
bill)
IL_04CD: ldsfld DubsMintMenus.MainTabWindow_MintBillMenu
DubsMintMenus.MainTabWindow_MintBillMenu::_instance
IL_04D2: dup
IL_04D3: brtrue => Label31
IL_04D8: pop
IL_04D9: br => Label32
IL_04DE: Label31
IL_04DE: ldfld System.Collections.Generic.HashSet`1<Verse.Building>
DubsMintMenus.MainTabWindow_MintBillMenu::OpenTables
IL_04E3: ldloc.s 18 (Verse.Building)
IL_04E5: callvirt virtual System.Boolean
System.Collections.Generic.HashSet`1<Verse.Building>::Add(Verse.Building item)
IL_04EA: pop
IL_04EB: Label28
IL_04EB: Label29
IL_04EB: Label30
IL_04EB: Label32
IL_04EB: ldloca.s 17
(System.Collections.Generic.HashSet`1+Enumerator[Verse.Building])
IL_04ED: call virtual System.Boolean
System.Collections.Generic.Enumerator<Verse.Building>::MoveNext()
IL_04F2: brtrue => Label33
IL_04F7: leave => Label34
IL_04FC: leave => (autogenerated)
} // end try
.finally
{
IL_0501: ldloca.s 17
(System.Collections.Generic.HashSet`1+Enumerator[Verse.Building])
IL_0503: constrained.
System.Collections.Generic.HashSet`1+Enumerator[Verse.Building]
IL_0509: callvirt abstract virtual System.Void
System.IDisposable::Dispose()
IL_050E: endfinally
IL_050F: leave => (autogenerated)
} // end handler
IL_0510: Label34
IL_0510: ldsfld Verse.SoundDef RimWorld.SoundDefOf::Tick_High
IL_0515: ldnull
IL_0516: call static System.Void
Verse.Sound.SoundStarter::PlayOneShotOnCamera(Verse.SoundDef soundDef, Verse.Map
onlyThisMap)
IL_051B: br => Label44
IL_0520: Label27
IL_0520: ldstr "Mint.SelectABenchToAddBills"
IL_0525: call static Verse.TaggedString
Verse.Translator::Translate(System.String key)
IL_052A: call static System.String
Verse.TaggedString::op_Implicit(Verse.TaggedString taggedString)
IL_052F: ldsfld Verse.MessageTypeDef RimWorld.MessageTypeDefOf::NegativeEvent
IL_0534: ldc.i4.0
IL_0535: call static System.Void Verse.Messages::Message(System.String text,
Verse.MessageTypeDef def, System.Boolean historical)
IL_053A: ldsfld Verse.SoundDef RimWorld.SoundDefOf::Tick_High
IL_053F: ldnull
IL_0540: call static System.Void
Verse.Sound.SoundStarter::PlayOneShotOnCamera(Verse.SoundDef soundDef, Verse.Map
onlyThisMap)
IL_0545: // end original
IL_0545: Label26
IL_0545: Label35
IL_0545: Label44
IL_0545: ret
DONE

### Harmony id=Uuugggg.rimworld.Replace_Stuff.main, version=2.2.2.0, location=C:\


Program Files (x86)\Steam\steamapps\common\data-000002130553D010,
env/clr=4.0.30319.42000, platform=Win32NT, ptrsize:runtime/env=8/Bits64, Windows
### Started from static System.Void Replace_Stuff.Replace.ReserveSharing::.cctor(),
location C:\Program Files (x86)\Steam\steamapps\common\data-00000213093F7580
### At 2023-02-17 06.57.33
### Patch: System.Void
Verse.AI.ReservationManager::ReserversOf(Verse.LocalTargetInfo target,
System.Collections.Generic.HashSet`1<Verse.Pawn> reserversOut)
### Replacement: static System.Void
Verse.AI.ReservationManager::Verse.AI.ReservationManager.ReserversOf_Patch1(Verse.A
I.ReservationManager this, Verse.LocalTargetInfo target,
System.Collections.Generic.HashSet`1<Verse.Pawn> reserversOut)
IL_0000: Local var 0: System.Int32
IL_0000: Local var 1: Verse.AI.ReservationManager/Reservation
IL_0000: Local var 2: System.Boolean
IL_0000: ldc.i4 0
IL_0005: stloc 2 (System.Boolean)
IL_0009: ldc.i4.1
IL_000A: stloc 2 (System.Boolean)
IL_000E: ldloc 2 (System.Boolean)
IL_0012: brfalse => Label1
IL_0017: ldarga 1
IL_001B: call static System.Void
Replace_Stuff.Replace.ReserveSharing::Prefix(Verse.LocalTargetInfo& target)
IL_0020: Label1
IL_0020: nop
IL_0021: ldloc 2 (System.Boolean)
IL_0025: brfalse => Label0
IL_002A: // start original
IL_002A: ldarg.0
IL_002B: ldfld Verse.Map Verse.AI.ReservationManager::map
IL_0030: ldfld Verse.PhysicalInteractionReservationManager
Verse.Map::physicalInteractionReservationManager
IL_0035: ldarg.1
IL_0036: ldarg.2
IL_0037: callvirt System.Void
Verse.PhysicalInteractionReservationManager::ReserversOf(Verse.LocalTargetInfo
target, System.Collections.Generic.HashSet`1<Verse.Pawn> reserversOut)
IL_003C: ldc.i4.0
IL_003D: stloc.0
IL_003E: br => Label2
IL_0043: Label4
IL_0043: ldarg.0
IL_0044: ldfld System.Collections.Generic.List`1<Verse.AI.Reservation>
Verse.AI.ReservationManager::reservations
IL_0049: ldloc.0
IL_004A: callvirt virtual Verse.AI.Reservation
System.Collections.Generic.List`1<Verse.AI.Reservation>::get_Item(System.Int32
index)
IL_004F: stloc.1
IL_0050: ldloc.1
IL_0051: callvirt Verse.LocalTargetInfo Verse.AI.Reservation::get_Target()
IL_0056: ldarg.1
IL_0057: call static System.Boolean
Verse.LocalTargetInfo::op_Equality(Verse.LocalTargetInfo a, Verse.LocalTargetInfo
b)
IL_005C: brfalse => Label3
IL_0061: ldarg.2
IL_0062: ldloc.1
IL_0063: callvirt Verse.Pawn Verse.AI.Reservation::get_Claimant()
IL_0068: callvirt virtual System.Boolean
System.Collections.Generic.HashSet`1<Verse.Pawn>::Add(Verse.Pawn item)
IL_006D: pop
IL_006E: Label3
IL_006E: ldloc.0
IL_006F: ldc.i4.1
IL_0070: add
IL_0071: stloc.0
IL_0072: Label2
IL_0072: ldloc.0
IL_0073: ldarg.0
IL_0074: ldfld System.Collections.Generic.List`1<Verse.AI.Reservation>
Verse.AI.ReservationManager::reservations
IL_0079: callvirt virtual System.Int32
System.Collections.Generic.List`1<Verse.AI.Reservation>::get_Count()
IL_007E: blt => Label4
IL_0083: // end original
IL_0083: Label0
IL_0083: ret
DONE

### Patch: System.Boolean Verse.AI.ReservationManager::CanReserve(Verse.Pawn


claimant, Verse.LocalTargetInfo target, System.Int32 maxPawns, System.Int32
stackCount, Verse.ReservationLayerDef layer, System.Boolean
ignoreOtherReservations)
### Replacement: static System.Boolean
Verse.AI.ReservationManager::Verse.AI.ReservationManager.CanReserve_Patch2(Verse.AI
.ReservationManager this, Verse.Pawn claimant, Verse.LocalTargetInfo target,
System.Int32 maxPawns, System.Int32 stackCount, Verse.ReservationLayerDef layer,
System.Boolean ignoreOtherReservations)
IL_0000: Local var 0: System.Int32
IL_0000: Local var 1: System.Int32
IL_0000: Local var 2: System.Int32
IL_0000: Local var 3: System.Int32
IL_0000: Local var 4: System.Int32
IL_0000: Local var 5: Verse.AI.ReservationManager/Reservation
IL_0000: Local var 6: System.Int32
IL_0000: Local var 7: Verse.AI.ReservationManager/Reservation
IL_0000: Local var 8: System.Boolean
IL_0000: Local var 9: System.Boolean
IL_0000: ldc.i4 0
IL_0005: stloc 8 (System.Boolean)
IL_0009: ldc.i4 0
IL_000E: stloc 9 (System.Boolean)
IL_0012: ldc.i4.1
IL_0013: stloc 9 (System.Boolean)
IL_0017: ldloc 9 (System.Boolean)
IL_001B: brfalse => Label1
IL_0020: ldarg 1
IL_0024: ldarg 2
IL_0028: ldloca 8 (System.Boolean)
IL_002C: call static System.Boolean
Share_The_Load.CanReserve_Patch::Prefix(Verse.Pawn claimant, Verse.LocalTargetInfo
target, System.Boolean& __result)
IL_0031: stloc 9 (System.Boolean)
IL_0035: Label1
IL_0035: nop
IL_0036: ldloc 9 (System.Boolean)
IL_003A: brfalse => Label2
IL_003F: ldarga 2
IL_0043: call static System.Void
Replace_Stuff.Replace.ReserveSharing::Prefix(Verse.LocalTargetInfo& target)
IL_0048: Label2
IL_0048: nop
IL_0049: ldloc 9 (System.Boolean)
IL_004D: brfalse => Label0
IL_0052: // start original
IL_0052: ldarg.1
IL_0053: brtrue => Label3
IL_0058: ldstr "CanReserve with null claimant"
IL_005D: call static System.Void Verse.Log::Error(System.String text)
IL_0062: ldc.i4.0
IL_0063: br => Label37
IL_0068: Label3
IL_0068: ldarg.1
IL_0069: callvirt System.Boolean Verse.Thing::get_Spawned()
IL_006E: brfalse => Label4
IL_0073: ldarg.1
IL_0074: callvirt virtual Verse.Map Verse.Thing::get_Map()
IL_0079: ldarg.0
IL_007A: ldfld Verse.Map Verse.AI.ReservationManager::map
IL_007F: beq => Label5
IL_0084: Label4
IL_0084: ldc.i4.0
IL_0085: br => Label38
IL_008A: Label5
IL_008A: ldarga.s 2
IL_008C: call System.Boolean Verse.LocalTargetInfo::get_IsValid()
IL_0091: brfalse => Label6
IL_0096: ldarga.s 2
IL_0098: call System.Boolean Verse.LocalTargetInfo::get_ThingDestroyed()
IL_009D: brfalse => Label7
IL_00A2: Label6
IL_00A2: ldc.i4.0
IL_00A3: br => Label39
IL_00A8: Label7
IL_00A8: ldarga.s 2
IL_00AA: call System.Boolean Verse.LocalTargetInfo::get_HasThing()
IL_00AF: brfalse => Label8
IL_00B4: ldarga.s 2
IL_00B6: call Verse.Thing Verse.LocalTargetInfo::get_Thing()
IL_00BB: callvirt System.Boolean Verse.Thing::get_SpawnedOrAnyParentSpawned()
IL_00C0: brfalse => Label9
IL_00C5: ldarga.s 2
IL_00C7: call Verse.Thing Verse.LocalTargetInfo::get_Thing()
IL_00CC: callvirt Verse.Map Verse.Thing::get_MapHeld()
IL_00D1: ldarg.0
IL_00D2: ldfld Verse.Map Verse.AI.ReservationManager::map
IL_00D7: beq => Label10
IL_00DC: ldc.i4.0
IL_00DD: br => Label40
IL_00E2: Label8
IL_00E2: Label9
IL_00E2: Label10
IL_00E2: ldarga.s 2
IL_00E4: call System.Boolean Verse.LocalTargetInfo::get_HasThing()
IL_00E9: brtrue => Label11
IL_00EE: ldc.i4.1
IL_00EF: br => Label12
IL_00F4: Label11
IL_00F4: ldarga.s 2
IL_00F6: call Verse.Thing Verse.LocalTargetInfo::get_Thing()
IL_00FB: ldfld System.Int32 Verse.Thing::stackCount
IL_0100: Label12
IL_0100: stloc.0
IL_0101: ldarg.s 4
IL_0103: ldc.i4.m1
IL_0104: beq => Label13
IL_0109: ldarg.s 4
IL_010B: br => Label14
IL_0110: Label13
IL_0110: ldloc.0
IL_0111: Label14
IL_0111: stloc.1
IL_0112: ldloc.1
IL_0113: ldloc.0
IL_0114: ble => Label15
IL_0119: ldc.i4.0
IL_011A: br => Label41
IL_011F: Label15
IL_011F: ldarg.s 6
IL_0121: brtrue => Label16
IL_0126: ldarg.0
IL_0127: ldfld Verse.Map Verse.AI.ReservationManager::map
IL_012C: ldfld Verse.PhysicalInteractionReservationManager
Verse.Map::physicalInteractionReservationManager
IL_0131: ldarg.2
IL_0132: callvirt System.Boolean
Verse.PhysicalInteractionReservationManager::IsReserved(Verse.LocalTargetInfo
target)
IL_0137: brfalse => Label17
IL_013C: ldarg.0
IL_013D: ldfld Verse.Map Verse.AI.ReservationManager::map
IL_0142: ldfld Verse.PhysicalInteractionReservationManager
Verse.Map::physicalInteractionReservationManager
IL_0147: ldarg.1
IL_0148: ldarg.2
IL_0149: callvirt System.Boolean
Verse.PhysicalInteractionReservationManager::IsReservedBy(Verse.Pawn claimant,
Verse.LocalTargetInfo target)
IL_014E: brtrue => Label18
IL_0153: ldc.i4.0
IL_0154: br => Label42
IL_0159: Label17
IL_0159: Label18
IL_0159: ldc.i4.0
IL_015A: stloc.s 4 (System.Int32)
IL_015C: br => Label19
IL_0161: Label25
IL_0161: ldarg.0
IL_0162: ldfld System.Collections.Generic.List`1<Verse.AI.Reservation>
Verse.AI.ReservationManager::reservations
IL_0167: ldloc.s 4 (System.Int32)
IL_0169: callvirt virtual Verse.AI.Reservation
System.Collections.Generic.List`1<Verse.AI.Reservation>::get_Item(System.Int32
index)
IL_016E: stloc.s 5 (Verse.AI.ReservationManager+Reservation)
IL_0170: ldloc.s 5 (Verse.AI.ReservationManager+Reservation)
IL_0172: callvirt Verse.LocalTargetInfo Verse.AI.Reservation::get_Target()
IL_0177: ldarg.2
IL_0178: call static System.Boolean
Verse.LocalTargetInfo::op_Equality(Verse.LocalTargetInfo a, Verse.LocalTargetInfo
b)
IL_017D: brfalse => Label20
IL_0182: ldloc.s 5 (Verse.AI.ReservationManager+Reservation)
IL_0184: callvirt Verse.ReservationLayerDef Verse.AI.Reservation::get_Layer()
IL_0189: ldarg.s 5
IL_018B: bne.un => Label21
IL_0190: ldloc.s 5 (Verse.AI.ReservationManager+Reservation)
IL_0192: callvirt Verse.Pawn Verse.AI.Reservation::get_Claimant()
IL_0197: ldarg.1
IL_0198: bne.un => Label22
IL_019D: ldloc.s 5 (Verse.AI.ReservationManager+Reservation)
IL_019F: callvirt System.Int32 Verse.AI.Reservation::get_StackCount()
IL_01A4: ldc.i4.m1
IL_01A5: beq => Label23
IL_01AA: ldloc.s 5 (Verse.AI.ReservationManager+Reservation)
IL_01AC: callvirt System.Int32 Verse.AI.Reservation::get_StackCount()
IL_01B1: ldloc.1
IL_01B2: blt => Label24
IL_01B7: Label23
IL_01B7: ldc.i4.1
IL_01B8: br => Label43
IL_01BD: Label20
IL_01BD: Label21
IL_01BD: Label22
IL_01BD: Label24
IL_01BD: ldloc.s 4 (System.Int32)
IL_01BF: ldc.i4.1
IL_01C0: add
IL_01C1: stloc.s 4 (System.Int32)
IL_01C3: Label19
IL_01C3: ldloc.s 4 (System.Int32)
IL_01C5: ldarg.0
IL_01C6: ldfld System.Collections.Generic.List`1<Verse.AI.Reservation>
Verse.AI.ReservationManager::reservations
IL_01CB: callvirt virtual System.Int32
System.Collections.Generic.List`1<Verse.AI.Reservation>::get_Count()
IL_01D0: blt => Label25
IL_01D5: ldc.i4.0
IL_01D6: stloc.2
IL_01D7: ldc.i4.0
IL_01D8: stloc.3
IL_01D9: ldc.i4.0
IL_01DA: stloc.s 6 (System.Int32)
IL_01DC: br => Label26
IL_01E1: Label36
IL_01E1: ldarg.0
IL_01E2: ldfld System.Collections.Generic.List`1<Verse.AI.Reservation>
Verse.AI.ReservationManager::reservations
IL_01E7: ldloc.s 6 (System.Int32)
IL_01E9: callvirt virtual Verse.AI.Reservation
System.Collections.Generic.List`1<Verse.AI.Reservation>::get_Item(System.Int32
index)
IL_01EE: stloc.s 7 (Verse.AI.ReservationManager+Reservation)
IL_01F0: ldloc.s 7 (Verse.AI.ReservationManager+Reservation)
IL_01F2: callvirt Verse.LocalTargetInfo Verse.AI.Reservation::get_Target()
IL_01F7: ldarg.2
IL_01F8: call static System.Boolean
Verse.LocalTargetInfo::op_Inequality(Verse.LocalTargetInfo a, Verse.LocalTargetInfo
b)
IL_01FD: brtrue => Label27
IL_0202: ldloc.s 7 (Verse.AI.ReservationManager+Reservation)
IL_0204: callvirt Verse.ReservationLayerDef Verse.AI.Reservation::get_Layer()
IL_0209: ldarg.s 5
IL_020B: bne.un => Label28
IL_0210: ldloc.s 7 (Verse.AI.ReservationManager+Reservation)
IL_0212: callvirt Verse.Pawn Verse.AI.Reservation::get_Claimant()
IL_0217: ldarg.1
IL_0218: beq => Label29
IL_021D: ldarg.1
IL_021E: ldloc.s 7 (Verse.AI.ReservationManager+Reservation)
IL_0220: callvirt Verse.Pawn Verse.AI.Reservation::get_Claimant()
IL_0225: call static System.Boolean
Verse.AI.ReservationManager::RespectsReservationsOf(Verse.Pawn newClaimant,
Verse.Pawn oldClaimant)
IL_022A: brfalse => Label30
IL_022F: ldloc.s 7 (Verse.AI.ReservationManager+Reservation)
IL_0231: callvirt System.Int32 Verse.AI.Reservation::get_MaxPawns()
IL_0236: ldarg.3
IL_0237: beq => Label31
IL_023C: ldc.i4.0
IL_023D: br => Label44
IL_0242: Label31
IL_0242: ldloc.2
IL_0243: ldc.i4.1
IL_0244: add
IL_0245: stloc.2
IL_0246: ldloc.s 7 (Verse.AI.ReservationManager+Reservation)
IL_0248: callvirt System.Int32 Verse.AI.Reservation::get_StackCount()
IL_024D: ldc.i4.m1
IL_024E: bne.un => Label32
IL_0253: ldloc.3
IL_0254: ldloc.0
IL_0255: add
IL_0256: stloc.3
IL_0257: br => Label33
IL_025C: Label32
IL_025C: ldloc.3
IL_025D: ldloc.s 7 (Verse.AI.ReservationManager+Reservation)
IL_025F: callvirt System.Int32 Verse.AI.Reservation::get_StackCount()
IL_0264: add
IL_0265: stloc.3
IL_0266: Label33
IL_0266: ldloc.2
IL_0267: ldarg.3
IL_0268: bge => Label34
IL_026D: ldloc.1
IL_026E: ldloc.3
IL_026F: add
IL_0270: ldloc.0
IL_0271: ble => Label35
IL_0276: Label34
IL_0276: ldc.i4.0
IL_0277: br => Label45
IL_027C: Label27
IL_027C: Label28
IL_027C: Label29
IL_027C: Label30
IL_027C: Label35
IL_027C: ldloc.s 6 (System.Int32)
IL_027E: ldc.i4.1
IL_027F: add
IL_0280: stloc.s 6 (System.Int32)
IL_0282: Label26
IL_0282: ldloc.s 6 (System.Int32)
IL_0284: ldarg.0
IL_0285: ldfld System.Collections.Generic.List`1<Verse.AI.Reservation>
Verse.AI.ReservationManager::reservations
IL_028A: callvirt virtual System.Int32
System.Collections.Generic.List`1<Verse.AI.Reservation>::get_Count()
IL_028F: blt => Label36
IL_0294: Label16
IL_0294: ldc.i4.1
IL_0295: // end original
IL_0295: Label37
IL_0295: Label38
IL_0295: Label39
IL_0295: Label40
IL_0295: Label41
IL_0295: Label42
IL_0295: Label43
IL_0295: Label44
IL_0295: Label45
IL_0295: stloc 8 (System.Boolean)
IL_0299: Label0
IL_0299: ldloc 8 (System.Boolean)
IL_029D: ret
DONE

### Patch: System.Int32 Verse.AI.ReservationManager::CanReserveStack(Verse.Pawn


claimant, Verse.LocalTargetInfo target, System.Int32 maxPawns,
Verse.ReservationLayerDef layer, System.Boolean ignoreOtherReservations)
### Replacement: static System.Int32
Verse.AI.ReservationManager::Verse.AI.ReservationManager.CanReserveStack_Patch1(Ver
se.AI.ReservationManager this, Verse.Pawn claimant, Verse.LocalTargetInfo target,
System.Int32 maxPawns, Verse.ReservationLayerDef layer, System.Boolean
ignoreOtherReservations)
IL_0000: Local var 0: System.Int32
IL_0000: Local var 1: System.Int32
IL_0000: Local var 2: System.Int32
IL_0000: Local var 3: System.Int32
IL_0000: Local var 4: Verse.AI.ReservationManager/Reservation
IL_0000: Local var 5: System.Int32
IL_0000: Local var 6: System.Boolean
IL_0000: ldc.i4 0
IL_0005: stloc 5 (System.Int32)
IL_0009: ldc.i4 0
IL_000E: stloc 6 (System.Boolean)
IL_0012: ldc.i4.1
IL_0013: stloc 6 (System.Boolean)
IL_0017: ldloc 6 (System.Boolean)
IL_001B: brfalse => Label1
IL_0020: ldarga 2
IL_0024: call static System.Void
Replace_Stuff.Replace.ReserveSharing::Prefix(Verse.LocalTargetInfo& target)
IL_0029: Label1
IL_0029: nop
IL_002A: ldloc 6 (System.Boolean)
IL_002E: brfalse => Label0
IL_0033: // start original
IL_0033: ldarg.1
IL_0034: brtrue => Label2
IL_0039: ldstr "CanReserve with null claimant"
IL_003E: call static System.Void Verse.Log::Error(System.String text)
IL_0043: ldc.i4.0
IL_0044: br => Label26
IL_0049: Label2
IL_0049: ldarg.1
IL_004A: callvirt System.Boolean Verse.Thing::get_Spawned()
IL_004F: brfalse => Label3
IL_0054: ldarg.1
IL_0055: callvirt virtual Verse.Map Verse.Thing::get_Map()
IL_005A: ldarg.0
IL_005B: ldfld Verse.Map Verse.AI.ReservationManager::map
IL_0060: beq => Label4
IL_0065: Label3
IL_0065: ldc.i4.0
IL_0066: br => Label27
IL_006B: Label4
IL_006B: ldarga.s 2
IL_006D: call System.Boolean Verse.LocalTargetInfo::get_IsValid()
IL_0072: brfalse => Label5
IL_0077: ldarga.s 2
IL_0079: call System.Boolean Verse.LocalTargetInfo::get_ThingDestroyed()
IL_007E: brfalse => Label6
IL_0083: Label5
IL_0083: ldc.i4.0
IL_0084: br => Label28
IL_0089: Label6
IL_0089: ldarga.s 2
IL_008B: call System.Boolean Verse.LocalTargetInfo::get_HasThing()
IL_0090: brfalse => Label7
IL_0095: ldarga.s 2
IL_0097: call Verse.Thing Verse.LocalTargetInfo::get_Thing()
IL_009C: callvirt System.Boolean Verse.Thing::get_SpawnedOrAnyParentSpawned()
IL_00A1: brfalse => Label8
IL_00A6: ldarga.s 2
IL_00A8: call Verse.Thing Verse.LocalTargetInfo::get_Thing()
IL_00AD: callvirt Verse.Map Verse.Thing::get_MapHeld()
IL_00B2: ldarg.0
IL_00B3: ldfld Verse.Map Verse.AI.ReservationManager::map
IL_00B8: beq => Label9
IL_00BD: ldc.i4.0
IL_00BE: br => Label29
IL_00C3: Label7
IL_00C3: Label8
IL_00C3: Label9
IL_00C3: ldarga.s 2
IL_00C5: call System.Boolean Verse.LocalTargetInfo::get_HasThing()
IL_00CA: brtrue => Label10
IL_00CF: ldc.i4.1
IL_00D0: br => Label11
IL_00D5: Label10
IL_00D5: ldarga.s 2
IL_00D7: call Verse.Thing Verse.LocalTargetInfo::get_Thing()
IL_00DC: ldfld System.Int32 Verse.Thing::stackCount
IL_00E1: Label11
IL_00E1: stloc.0
IL_00E2: ldc.i4.0
IL_00E3: stloc.1
IL_00E4: ldarg.s 5
IL_00E6: brtrue => Label12
IL_00EB: ldarg.0
IL_00EC: ldfld Verse.Map Verse.AI.ReservationManager::map
IL_00F1: ldfld Verse.PhysicalInteractionReservationManager
Verse.Map::physicalInteractionReservationManager
IL_00F6: ldarg.2
IL_00F7: callvirt System.Boolean
Verse.PhysicalInteractionReservationManager::IsReserved(Verse.LocalTargetInfo
target)
IL_00FC: brfalse => Label13
IL_0101: ldarg.0
IL_0102: ldfld Verse.Map Verse.AI.ReservationManager::map
IL_0107: ldfld Verse.PhysicalInteractionReservationManager
Verse.Map::physicalInteractionReservationManager
IL_010C: ldarg.1
IL_010D: ldarg.2
IL_010E: callvirt System.Boolean
Verse.PhysicalInteractionReservationManager::IsReservedBy(Verse.Pawn claimant,
Verse.LocalTargetInfo target)
IL_0113: brtrue => Label14
IL_0118: ldc.i4.0
IL_0119: br => Label30
IL_011E: Label13
IL_011E: Label14
IL_011E: ldc.i4.0
IL_011F: stloc.2
IL_0120: ldc.i4.0
IL_0121: stloc.3
IL_0122: br => Label15
IL_0127: Label25
IL_0127: ldarg.0
IL_0128: ldfld System.Collections.Generic.List`1<Verse.AI.Reservation>
Verse.AI.ReservationManager::reservations
IL_012D: ldloc.3
IL_012E: callvirt virtual Verse.AI.Reservation
System.Collections.Generic.List`1<Verse.AI.Reservation>::get_Item(System.Int32
index)
IL_0133: stloc.s 4 (Verse.AI.ReservationManager+Reservation)
IL_0135: ldloc.s 4 (Verse.AI.ReservationManager+Reservation)
IL_0137: callvirt Verse.LocalTargetInfo Verse.AI.Reservation::get_Target()
IL_013C: ldarg.2
IL_013D: call static System.Boolean
Verse.LocalTargetInfo::op_Inequality(Verse.LocalTargetInfo a, Verse.LocalTargetInfo
b)
IL_0142: brtrue => Label16
IL_0147: ldloc.s 4 (Verse.AI.ReservationManager+Reservation)
IL_0149: callvirt Verse.ReservationLayerDef Verse.AI.Reservation::get_Layer()
IL_014E: ldarg.s 4
IL_0150: bne.un => Label17
IL_0155: ldloc.s 4 (Verse.AI.ReservationManager+Reservation)
IL_0157: callvirt Verse.Pawn Verse.AI.Reservation::get_Claimant()
IL_015C: ldarg.1
IL_015D: beq => Label18
IL_0162: ldarg.1
IL_0163: ldloc.s 4 (Verse.AI.ReservationManager+Reservation)
IL_0165: callvirt Verse.Pawn Verse.AI.Reservation::get_Claimant()
IL_016A: call static System.Boolean
Verse.AI.ReservationManager::RespectsReservationsOf(Verse.Pawn newClaimant,
Verse.Pawn oldClaimant)
IL_016F: brfalse => Label19
IL_0174: ldloc.s 4 (Verse.AI.ReservationManager+Reservation)
IL_0176: callvirt System.Int32 Verse.AI.Reservation::get_MaxPawns()
IL_017B: ldarg.3
IL_017C: beq => Label20
IL_0181: ldc.i4.0
IL_0182: br => Label31
IL_0187: Label20
IL_0187: ldloc.2
IL_0188: ldc.i4.1
IL_0189: add
IL_018A: stloc.2
IL_018B: ldloc.s 4 (Verse.AI.ReservationManager+Reservation)
IL_018D: callvirt System.Int32 Verse.AI.Reservation::get_StackCount()
IL_0192: ldc.i4.m1
IL_0193: bne.un => Label21
IL_0198: ldloc.1
IL_0199: ldloc.0
IL_019A: add
IL_019B: stloc.1
IL_019C: br => Label22
IL_01A1: Label21
IL_01A1: ldloc.1
IL_01A2: ldloc.s 4 (Verse.AI.ReservationManager+Reservation)
IL_01A4: callvirt System.Int32 Verse.AI.Reservation::get_StackCount()
IL_01A9: add
IL_01AA: stloc.1
IL_01AB: Label22
IL_01AB: ldloc.2
IL_01AC: ldarg.3
IL_01AD: bge => Label23
IL_01B2: ldloc.1
IL_01B3: ldloc.0
IL_01B4: blt => Label24
IL_01B9: Label23
IL_01B9: ldc.i4.0
IL_01BA: br => Label32
IL_01BF: Label16
IL_01BF: Label17
IL_01BF: Label18
IL_01BF: Label19
IL_01BF: Label24
IL_01BF: ldloc.3
IL_01C0: ldc.i4.1
IL_01C1: add
IL_01C2: stloc.3
IL_01C3: Label15
IL_01C3: ldloc.3
IL_01C4: ldarg.0
IL_01C5: ldfld System.Collections.Generic.List`1<Verse.AI.Reservation>
Verse.AI.ReservationManager::reservations
IL_01CA: callvirt virtual System.Int32
System.Collections.Generic.List`1<Verse.AI.Reservation>::get_Count()
IL_01CF: blt => Label25
IL_01D4: Label12
IL_01D4: ldloc.0
IL_01D5: ldloc.1
IL_01D6: sub
IL_01D7: ldc.i4.0
IL_01D8: call static System.Int32 UnityEngine.Mathf::Max(System.Int32 a,
System.Int32 b)
IL_01DD: // end original
IL_01DD: Label26
IL_01DD: Label27
IL_01DD: Label28
IL_01DD: Label29
IL_01DD: Label30
IL_01DD: Label31
IL_01DD: Label32
IL_01DD: stloc 5 (System.Int32)
IL_01E1: Label0
IL_01E1: ldloc 5 (System.Int32)
IL_01E5: ret
DONE

### Patch: System.Boolean Verse.AI.ReservationManager::Reserve(Verse.Pawn claimant,


Verse.AI.Job job, Verse.LocalTargetInfo target, System.Int32 maxPawns, System.Int32
stackCount, Verse.ReservationLayerDef layer, System.Boolean errorOnFailed)
### Replacement: static System.Boolean
Verse.AI.ReservationManager::Verse.AI.ReservationManager.Reserve_Patch2(Verse.AI.Re
servationManager this, Verse.Pawn claimant, Verse.AI.Job job, Verse.LocalTargetInfo
target, System.Int32 maxPawns, System.Int32 stackCount, Verse.ReservationLayerDef
layer, System.Boolean errorOnFailed)
IL_0000: Local var 0: System.Int32
IL_0000: Local var 1: System.Int32
IL_0000: Local var 2: System.Int32
IL_0000: Local var 3: Verse.AI.ReservationManager/Reservation
IL_0000: Local var 4:
System.Collections.Generic.List`1/Enumerator<Verse.AI.ReservationManager/
Reservation>
IL_0000: Local var 5: Verse.AI.ReservationManager/Reservation
IL_0000: Local var 6: System.Boolean
IL_0000: Local var 7: System.Boolean
IL_0000: ldc.i4 0
IL_0005: stloc 6 (System.Boolean)
IL_0009: ldc.i4 0
IL_000E: stloc 7 (System.Boolean)
IL_0012: ldc.i4.1
IL_0013: stloc 7 (System.Boolean)
IL_0017: ldloc 7 (System.Boolean)
IL_001B: brfalse => Label1
IL_0020: ldarg 1
IL_0024: ldarg 2
IL_0028: ldarg 3
IL_002C: ldloca 6 (System.Boolean)
IL_0030: call static System.Boolean
Share_The_Load.Reserve_Patch::Prefix(Verse.Pawn claimant, Verse.AI.Job job,
Verse.LocalTargetInfo target, System.Boolean& __result)
IL_0035: stloc 7 (System.Boolean)
IL_0039: Label1
IL_0039: nop
IL_003A: ldloc 7 (System.Boolean)
IL_003E: brfalse => Label2
IL_0043: ldarga 3
IL_0047: call static System.Void
Replace_Stuff.Replace.ReserveSharing::Prefix(Verse.LocalTargetInfo& target)
IL_004C: Label2
IL_004C: nop
IL_004D: ldloc 7 (System.Boolean)
IL_0051: brfalse => Label0
IL_0056: // start original
IL_0056: ldarg.s 4
IL_0058: ldc.i4.1
IL_0059: ble => Label3
IL_005E: ldarg.s 5
IL_0060: ldc.i4.m1
IL_0061: bne.un => Label4
IL_0066: ldstr "Reserving with maxPawns > 1 and stackCount = All; this will
not have a useful effect (suppressing future warnings)"
IL_006B: ldc.i4 83269
IL_0070: call static System.Void Verse.Log::ErrorOnce(System.String text,
System.Int32 key)
IL_0075: Label3
IL_0075: Label4
IL_0075: ldarg.2
IL_0076: brtrue => Label5
IL_007B: ldarg.1
IL_007C: call static System.String Verse.Gen::ToStringSafe(Verse.Pawn obj)
IL_0081: ldstr " tried to reserve thing "
IL_0086: ldarg.3
IL_0087: call static System.String
Verse.Gen::ToStringSafe(Verse.LocalTargetInfo obj)
IL_008C: ldstr " without a valid job"
IL_0091: call static System.String System.String::Concat(System.String str0,
System.String str1, System.String str2, System.String str3)
IL_0096: call static System.Void Verse.Log::Warning(System.String text)
IL_009B: ldc.i4.0
IL_009C: br => Label32
IL_00A1: Label5
IL_00A1: ldarga.s 3
IL_00A3: call System.Boolean Verse.LocalTargetInfo::get_HasThing()
IL_00A8: brtrue => Label6
IL_00AD: ldc.i4.1
IL_00AE: br => Label7
IL_00B3: Label6
IL_00B3: ldarga.s 3
IL_00B5: call Verse.Thing Verse.LocalTargetInfo::get_Thing()
IL_00BA: ldfld System.Int32 Verse.Thing::stackCount
IL_00BF: Label7
IL_00BF: stloc.0
IL_00C0: ldarg.s 5
IL_00C2: ldc.i4.m1
IL_00C3: beq => Label8
IL_00C8: ldarg.s 5
IL_00CA: br => Label9
IL_00CF: Label8
IL_00CF: ldloc.0
IL_00D0: Label9
IL_00D0: stloc.1
IL_00D1: ldc.i4.0
IL_00D2: stloc.2
IL_00D3: br => Label10
IL_00D8: Label17
IL_00D8: ldarg.0
IL_00D9: ldfld System.Collections.Generic.List`1<Verse.AI.Reservation>
Verse.AI.ReservationManager::reservations
IL_00DE: ldloc.2
IL_00DF: callvirt virtual Verse.AI.Reservation
System.Collections.Generic.List`1<Verse.AI.Reservation>::get_Item(System.Int32
index)
IL_00E4: stloc.3
IL_00E5: ldloc.3
IL_00E6: callvirt Verse.LocalTargetInfo Verse.AI.Reservation::get_Target()
IL_00EB: ldarg.3
IL_00EC: call static System.Boolean
Verse.LocalTargetInfo::op_Equality(Verse.LocalTargetInfo a, Verse.LocalTargetInfo
b)
IL_00F1: brfalse => Label11
IL_00F6: ldloc.3
IL_00F7: callvirt Verse.Pawn Verse.AI.Reservation::get_Claimant()
IL_00FC: ldarg.1
IL_00FD: bne.un => Label12
IL_0102: ldloc.3
IL_0103: callvirt Verse.AI.Job Verse.AI.Reservation::get_Job()
IL_0108: ldarg.2
IL_0109: bne.un => Label13
IL_010E: ldloc.3
IL_010F: callvirt Verse.ReservationLayerDef Verse.AI.Reservation::get_Layer()
IL_0114: ldarg.s 6
IL_0116: bne.un => Label14
IL_011B: ldloc.3
IL_011C: callvirt System.Int32 Verse.AI.Reservation::get_StackCount()
IL_0121: ldc.i4.m1
IL_0122: beq => Label15
IL_0127: ldloc.3
IL_0128: callvirt System.Int32 Verse.AI.Reservation::get_StackCount()
IL_012D: ldloc.1
IL_012E: blt => Label16
IL_0133: Label15
IL_0133: ldc.i4.1
IL_0134: br => Label33
IL_0139: Label11
IL_0139: Label12
IL_0139: Label13
IL_0139: Label14
IL_0139: Label16
IL_0139: ldloc.2
IL_013A: ldc.i4.1
IL_013B: add
IL_013C: stloc.2
IL_013D: Label10
IL_013D: ldloc.2
IL_013E: ldarg.0
IL_013F: ldfld System.Collections.Generic.List`1<Verse.AI.Reservation>
Verse.AI.ReservationManager::reservations
IL_0144: callvirt virtual System.Int32
System.Collections.Generic.List`1<Verse.AI.Reservation>::get_Count()
IL_0149: blt => Label17
IL_014E: ldarga.s 3
IL_0150: call System.Boolean Verse.LocalTargetInfo::get_IsValid()
IL_0155: brfalse => Label18
IL_015A: ldarga.s 3
IL_015C: call System.Boolean Verse.LocalTargetInfo::get_ThingDestroyed()
IL_0161: brfalse => Label19
IL_0166: Label18
IL_0166: ldc.i4.0
IL_0167: br => Label34
IL_016C: Label19
IL_016C: ldarg.0
IL_016D: ldarg.1
IL_016E: ldarg.3
IL_016F: ldarg.s 4
IL_0171: ldarg.s 5
IL_0173: ldarg.s 6
IL_0175: ldc.i4.0
IL_0176: call System.Boolean
Verse.AI.ReservationManager::CanReserve(Verse.Pawn claimant, Verse.LocalTargetInfo
target, System.Int32 maxPawns, System.Int32 stackCount, Verse.ReservationLayerDef
layer, System.Boolean ignoreOtherReservations)
IL_017B: brtrue => Label20
IL_0180: ldarg.2
IL_0181: brfalse => Label21
IL_0186: ldarg.2
IL_0187: ldfld System.Boolean Verse.AI.Job::playerForced
IL_018C: brfalse => Label22
IL_0191: ldarg.0
IL_0192: ldarg.1
IL_0193: ldarg.3
IL_0194: ldarg.s 4
IL_0196: ldarg.s 5
IL_0198: ldarg.s 6
IL_019A: ldc.i4.1
IL_019B: call System.Boolean
Verse.AI.ReservationManager::CanReserve(Verse.Pawn claimant, Verse.LocalTargetInfo
target, System.Int32 maxPawns, System.Int32 stackCount, Verse.ReservationLayerDef
layer, System.Boolean ignoreOtherReservations)
IL_01A0: brfalse => Label23
IL_01A5: ldarg.0
IL_01A6: ldfld System.Collections.Generic.List`1<Verse.AI.Reservation>
Verse.AI.ReservationManager::reservations
IL_01AB: ldarg.1
IL_01AC: ldarg.2
IL_01AD: ldarg.s 4
IL_01AF: ldarg.s 5
IL_01B1: ldarg.3
IL_01B2: ldarg.s 6
IL_01B4: newobj System.Void Verse.AI.Reservation::.ctor(Verse.Pawn claimant,
Verse.AI.Job job, System.Int32 maxPawns, System.Int32 stackCount,
Verse.LocalTargetInfo target, Verse.ReservationLayerDef layer)
IL_01B9: callvirt virtual System.Void
System.Collections.Generic.List`1<Verse.AI.Reservation>::Add(Verse.AI.Reservation
item)
IL_01BE: ldarg.0
IL_01BF: ldfld System.Collections.Generic.List`1<Verse.AI.Reservation>
Verse.AI.ReservationManager::reservations
IL_01C4: call static System.Collections.Generic.List`1<Verse.AI.Reservation>
System.Linq.Enumerable::ToList(System.Collections.Generic.IEnumerable`1<Verse.AI.Re
servation> source)
IL_01C9: callvirt System.Collections.Generic.Enumerator<Verse.AI.Reservation>
System.Collections.Generic.List`1<Verse.AI.Reservation>::GetEnumerator()
IL_01CE: stloc.s 4
(System.Collections.Generic.List`1+Enumerator[Verse.AI.ReservationManager+Reservati
on])
.try
{
IL_01D0: br => Label24
IL_01D5: Label29
IL_01D5: ldloca.s 4
(System.Collections.Generic.List`1+Enumerator[Verse.AI.ReservationManager+Reservati
on])
IL_01D7: call virtual Verse.AI.Reservation
System.Collections.Generic.Enumerator<Verse.AI.Reservation>::get_Current()
IL_01DC: stloc.s 5 (Verse.AI.ReservationManager+Reservation)
IL_01DE: ldloc.s 5 (Verse.AI.ReservationManager+Reservation)
IL_01E0: callvirt Verse.LocalTargetInfo Verse.AI.Reservation::get_Target()
IL_01E5: ldarg.3
IL_01E6: call static System.Boolean
Verse.LocalTargetInfo::op_Equality(Verse.LocalTargetInfo a, Verse.LocalTargetInfo
b)
IL_01EB: brfalse => Label25
IL_01F0: ldloc.s 5 (Verse.AI.ReservationManager+Reservation)
IL_01F2: callvirt Verse.Pawn Verse.AI.Reservation::get_Claimant()
IL_01F7: ldarg.1
IL_01F8: beq => Label26
IL_01FD: ldloc.s 5 (Verse.AI.ReservationManager+Reservation)
IL_01FF: callvirt Verse.ReservationLayerDef
Verse.AI.Reservation::get_Layer()
IL_0204: ldarg.s 6
IL_0206: bne.un => Label27
IL_020B: ldarg.1
IL_020C: ldloc.s 5 (Verse.AI.ReservationManager+Reservation)
IL_020E: callvirt Verse.Pawn Verse.AI.Reservation::get_Claimant()
IL_0213: call static System.Boolean
Verse.AI.ReservationManager::RespectsReservationsOf(Verse.Pawn newClaimant,
Verse.Pawn oldClaimant)
IL_0218: brfalse => Label28
IL_021D: ldloc.s 5 (Verse.AI.ReservationManager+Reservation)
IL_021F: callvirt Verse.Pawn Verse.AI.Reservation::get_Claimant()
IL_0224: ldfld Verse.AI.Pawn_JobTracker Verse.Pawn::jobs
IL_0229: ldloc.s 5 (Verse.AI.ReservationManager+Reservation)
IL_022B: callvirt Verse.AI.Job Verse.AI.Reservation::get_Job()
IL_0230: ldc.i4.5
IL_0231: ldc.i4.1
IL_0232: callvirt System.Void
Verse.AI.Pawn_JobTracker::EndCurrentOrQueuedJob(Verse.AI.Job job,
Verse.AI.JobCondition condition, System.Boolean canReturnToPool)
IL_0237: Label24
IL_0237: Label25
IL_0237: Label26
IL_0237: Label27
IL_0237: Label28
IL_0237: ldloca.s 4
(System.Collections.Generic.List`1+Enumerator[Verse.AI.ReservationManager+Reservati
on])
IL_0239: call virtual System.Boolean
System.Collections.Generic.Enumerator<Verse.AI.Reservation>::MoveNext()
IL_023E: brtrue => Label29
IL_0243: leave => Label30
IL_0248: leave => (autogenerated)
} // end try
.finally
{
IL_024D: ldloca.s 4
(System.Collections.Generic.List`1+Enumerator[Verse.AI.ReservationManager+Reservati
on])
IL_024F: constrained.
System.Collections.Generic.List`1+Enumerator[Verse.AI.ReservationManager+Reservatio
n]
IL_0255: callvirt abstract virtual System.Void
System.IDisposable::Dispose()
IL_025A: endfinally
IL_025B: leave => (autogenerated)
} // end handler
IL_025C: Label30
IL_025C: ldc.i4.1
IL_025D: br => Label39
IL_0262: Label21
IL_0262: Label22
IL_0262: Label23
IL_0262: ldarg.s 7
IL_0264: brfalse => Label31
IL_0269: ldarg.0
IL_026A: ldarg.1
IL_026B: ldarg.2
IL_026C: ldarg.3
IL_026D: ldarg.s 4
IL_026F: ldarg.s 5
IL_0271: ldarg.s 6
IL_0273: call System.Void
Verse.AI.ReservationManager::LogCouldNotReserveError(Verse.Pawn claimant,
Verse.AI.Job job, Verse.LocalTargetInfo target, System.Int32 maxPawns, System.Int32
stackCount, Verse.ReservationLayerDef layer)
IL_0278: Label31
IL_0278: ldc.i4.0
IL_0279: br => Label40
IL_027E: Label20
IL_027E: ldarg.0
IL_027F: ldfld System.Collections.Generic.List`1<Verse.AI.Reservation>
Verse.AI.ReservationManager::reservations
IL_0284: ldarg.1
IL_0285: ldarg.2
IL_0286: ldarg.s 4
IL_0288: ldarg.s 5
IL_028A: ldarg.3
IL_028B: ldarg.s 6
IL_028D: newobj System.Void Verse.AI.Reservation::.ctor(Verse.Pawn claimant,
Verse.AI.Job job, System.Int32 maxPawns, System.Int32 stackCount,
Verse.LocalTargetInfo target, Verse.ReservationLayerDef layer)
IL_0292: callvirt virtual System.Void
System.Collections.Generic.List`1<Verse.AI.Reservation>::Add(Verse.AI.Reservation
item)
IL_0297: ldc.i4.1
IL_0298: // end original
IL_0298: Label32
IL_0298: Label33
IL_0298: Label34
IL_0298: Label39
IL_0298: Label40
IL_0298: stloc 6 (System.Boolean)
IL_029C: Label0
IL_029C: ldloc 6 (System.Boolean)
IL_02A0: ret
DONE

### Patch: System.Void Verse.AI.ReservationManager::Release(Verse.LocalTargetInfo


target, Verse.Pawn claimant, Verse.AI.Job job)
### Replacement: static System.Void
Verse.AI.ReservationManager::Verse.AI.ReservationManager.Release_Patch2(Verse.AI.Re
servationManager this, Verse.LocalTargetInfo target, Verse.Pawn claimant,
Verse.AI.Job job)
IL_0000: Local var 0: Verse.AI.ReservationManager/Reservation
IL_0000: Local var 1: System.Int32
IL_0000: Local var 2: Verse.AI.ReservationManager/Reservation
IL_0000: Local var 3: System.Boolean
IL_0000: ldc.i4 0
IL_0005: stloc 3 (System.Boolean)
IL_0009: ldc.i4.1
IL_000A: stloc 3 (System.Boolean)
IL_000E: ldloc 3 (System.Boolean)
IL_0012: brfalse => Label1
IL_0017: ldarg 1
IL_001B: ldarg 2
IL_001F: ldarg 3
IL_0023: call static System.Void
Share_The_Load.Release_Patch::Prefix(Verse.LocalTargetInfo target, Verse.Pawn
claimant, Verse.AI.Job job)
IL_0028: Label1
IL_0028: nop
IL_0029: ldloc 3 (System.Boolean)
IL_002D: brfalse => Label2
IL_0032: ldarga 1
IL_0036: call static System.Void
Replace_Stuff.Replace.ReserveSharing::Prefix(Verse.LocalTargetInfo& target)
IL_003B: Label2
IL_003B: nop
IL_003C: ldloc 3 (System.Boolean)
IL_0040: brfalse => Label0
IL_0045: // start original
IL_0045: ldarga.s 1
IL_0047: call System.Boolean Verse.LocalTargetInfo::get_ThingDestroyed()
IL_004C: brfalse => Label3
IL_0051: ldc.i4.4
IL_0052: newarr System.Object
IL_0057: dup
IL_0058: ldc.i4.0
IL_0059: ldstr "Releasing destroyed thing "
IL_005E: stelem.ref
IL_005F: dup
IL_0060: ldc.i4.1
IL_0061: ldarg.1
IL_0062: box Verse.LocalTargetInfo
IL_0067: stelem.ref
IL_0068: dup
IL_0069: ldc.i4.2
IL_006A: ldstr " for "
IL_006F: stelem.ref
IL_0070: dup
IL_0071: ldc.i4.3
IL_0072: ldarg.2
IL_0073: stelem.ref
IL_0074: call static System.String System.String::Concat(System.Object[]
args)
IL_0079: call static System.Void Verse.Log::Warning(System.String text)
IL_007E: Label3
IL_007E: ldnull
IL_007F: stloc.0
IL_0080: ldc.i4.0
IL_0081: stloc.1
IL_0082: br => Label4
IL_0087: Label9
IL_0087: ldarg.0
IL_0088: ldfld System.Collections.Generic.List`1<Verse.AI.Reservation>
Verse.AI.ReservationManager::reservations
IL_008D: ldloc.1
IL_008E: callvirt virtual Verse.AI.Reservation
System.Collections.Generic.List`1<Verse.AI.Reservation>::get_Item(System.Int32
index)
IL_0093: stloc.2
IL_0094: ldloc.2
IL_0095: callvirt Verse.LocalTargetInfo Verse.AI.Reservation::get_Target()
IL_009A: ldarg.1
IL_009B: call static System.Boolean
Verse.LocalTargetInfo::op_Equality(Verse.LocalTargetInfo a, Verse.LocalTargetInfo
b)
IL_00A0: brfalse => Label5
IL_00A5: ldloc.2
IL_00A6: callvirt Verse.Pawn Verse.AI.Reservation::get_Claimant()
IL_00AB: ldarg.2
IL_00AC: bne.un => Label6
IL_00B1: ldloc.2
IL_00B2: callvirt Verse.AI.Job Verse.AI.Reservation::get_Job()
IL_00B7: ldarg.3
IL_00B8: bne.un => Label7
IL_00BD: ldloc.2
IL_00BE: stloc.0
IL_00BF: br => Label8
IL_00C4: Label5
IL_00C4: Label6
IL_00C4: Label7
IL_00C4: ldloc.1
IL_00C5: ldc.i4.1
IL_00C6: add
IL_00C7: stloc.1
IL_00C8: Label4
IL_00C8: ldloc.1
IL_00C9: ldarg.0
IL_00CA: ldfld System.Collections.Generic.List`1<Verse.AI.Reservation>
Verse.AI.ReservationManager::reservations
IL_00CF: callvirt virtual System.Int32
System.Collections.Generic.List`1<Verse.AI.Reservation>::get_Count()
IL_00D4: blt => Label9
IL_00D9: Label8
IL_00D9: ldloc.0
IL_00DA: brtrue => Label10
IL_00DF: ldarga.s 1
IL_00E1: call System.Boolean Verse.LocalTargetInfo::get_ThingDestroyed()
IL_00E6: brtrue => Label11
IL_00EB: ldc.i4.5
IL_00EC: newarr System.Object
IL_00F1: dup
IL_00F2: ldc.i4.0
IL_00F3: ldstr "Tried to release "
IL_00F8: stelem.ref
IL_00F9: dup
IL_00FA: ldc.i4.1
IL_00FB: ldarg.1
IL_00FC: box Verse.LocalTargetInfo
IL_0101: stelem.ref
IL_0102: dup
IL_0103: ldc.i4.2
IL_0104: ldstr " that wasn\'t reserved by "
IL_0109: stelem.ref
IL_010A: dup
IL_010B: ldc.i4.3
IL_010C: ldarg.2
IL_010D: stelem.ref
IL_010E: dup
IL_010F: ldc.i4.4
IL_0110: ldstr "."
IL_0115: stelem.ref
IL_0116: call static System.String System.String::Concat(System.Object[]
args)
IL_011B: call static System.Void Verse.Log::Error(System.String text)
IL_0120: br => Label12
IL_0125: Label10
IL_0125: Label11
IL_0125: ldarg.0
IL_0126: ldfld System.Collections.Generic.List`1<Verse.AI.Reservation>
Verse.AI.ReservationManager::reservations
IL_012B: ldloc.0
IL_012C: callvirt virtual System.Boolean
System.Collections.Generic.List`1<Verse.AI.Reservation>::Remove(Verse.AI.Reservatio
n item)
IL_0131: pop
IL_0132: // end original
IL_0132: Label12
IL_0132: Label0
IL_0132: ret
DONE

### Patch: System.Boolean


Verse.AI.ReservationManager::IsReservedByAnyoneOf(Verse.LocalTargetInfo target,
RimWorld.Faction faction)
### Replacement: static System.Boolean
Verse.AI.ReservationManager::Verse.AI.ReservationManager.IsReservedByAnyoneOf_Patch
1(Verse.AI.ReservationManager this, Verse.LocalTargetInfo target, RimWorld.Faction
faction)
IL_0000: Local var 0: System.Int32
IL_0000: Local var 1: Verse.AI.ReservationManager/Reservation
IL_0000: Local var 2: System.Boolean
IL_0000: Local var 3: System.Boolean
IL_0000: ldc.i4 0
IL_0005: stloc 2 (System.Boolean)
IL_0009: ldc.i4 0
IL_000E: stloc 3 (System.Boolean)
IL_0012: ldc.i4.1
IL_0013: stloc 3 (System.Boolean)
IL_0017: ldloc 3 (System.Boolean)
IL_001B: brfalse => Label1
IL_0020: ldarga 1
IL_0024: call static System.Void
Replace_Stuff.Replace.ReserveSharing::Prefix(Verse.LocalTargetInfo& target)
IL_0029: Label1
IL_0029: nop
IL_002A: ldloc 3 (System.Boolean)
IL_002E: brfalse => Label0
IL_0033: // start original
IL_0033: ldarga.s 1
IL_0035: call System.Boolean Verse.LocalTargetInfo::get_IsValid()
IL_003A: brtrue => Label2
IL_003F: ldc.i4.0
IL_0040: br => Label7
IL_0045: Label2
IL_0045: ldc.i4.0
IL_0046: stloc.0
IL_0047: br => Label3
IL_004C: Label6
IL_004C: ldarg.0
IL_004D: ldfld System.Collections.Generic.List`1<Verse.AI.Reservation>
Verse.AI.ReservationManager::reservations
IL_0052: ldloc.0
IL_0053: callvirt virtual Verse.AI.Reservation
System.Collections.Generic.List`1<Verse.AI.Reservation>::get_Item(System.Int32
index)
IL_0058: stloc.1
IL_0059: ldloc.1
IL_005A: callvirt Verse.LocalTargetInfo Verse.AI.Reservation::get_Target()
IL_005F: ldarg.1
IL_0060: call static System.Boolean
Verse.LocalTargetInfo::op_Equality(Verse.LocalTargetInfo a, Verse.LocalTargetInfo
b)
IL_0065: brfalse => Label4
IL_006A: ldloc.1
IL_006B: callvirt Verse.Pawn Verse.AI.Reservation::get_Claimant()
IL_0070: callvirt virtual RimWorld.Faction Verse.Thing::get_Faction()
IL_0075: ldarg.2
IL_0076: bne.un => Label5
IL_007B: ldc.i4.1
IL_007C: br => Label8
IL_0081: Label4
IL_0081: Label5
IL_0081: ldloc.0
IL_0082: ldc.i4.1
IL_0083: add
IL_0084: stloc.0
IL_0085: Label3
IL_0085: ldloc.0
IL_0086: ldarg.0
IL_0087: ldfld System.Collections.Generic.List`1<Verse.AI.Reservation>
Verse.AI.ReservationManager::reservations
IL_008C: callvirt virtual System.Int32
System.Collections.Generic.List`1<Verse.AI.Reservation>::get_Count()
IL_0091: blt => Label6
IL_0096: ldc.i4.0
IL_0097: // end original
IL_0097: Label7
IL_0097: Label8
IL_0097: stloc 2 (System.Boolean)
IL_009B: Label0
IL_009B: ldloc 2 (System.Boolean)
IL_009F: ret
DONE

### Patch: System.Boolean


Verse.AI.ReservationManager::IsReservedAndRespected(Verse.LocalTargetInfo target,
Verse.Pawn claimant)
### Replacement: static System.Boolean
Verse.AI.ReservationManager::Verse.AI.ReservationManager.IsReservedAndRespected_Pat
ch1(Verse.AI.ReservationManager this, Verse.LocalTargetInfo target, Verse.Pawn
claimant)
IL_0000: Local var 0: System.Boolean
IL_0000: Local var 1: System.Boolean
IL_0000: ldc.i4 0
IL_0005: stloc 0 (System.Boolean)
IL_0009: ldc.i4 0
IL_000E: stloc 1 (System.Boolean)
IL_0012: ldc.i4.1
IL_0013: stloc 1 (System.Boolean)
IL_0017: ldloc 1 (System.Boolean)
IL_001B: brfalse => Label1
IL_0020: ldarga 1
IL_0024: call static System.Void
Replace_Stuff.Replace.ReserveSharing::Prefix(Verse.LocalTargetInfo& target)
IL_0029: Label1
IL_0029: nop
IL_002A: ldloc 1 (System.Boolean)
IL_002E: brfalse => Label0
IL_0033: // start original
IL_0033: ldarg.0
IL_0034: ldarg.1
IL_0035: ldarg.2
IL_0036: ldnull
IL_0037: call Verse.Pawn
Verse.AI.ReservationManager::FirstRespectedReserver(Verse.LocalTargetInfo target,
Verse.Pawn claimant, Verse.ReservationLayerDef layer)
IL_003C: ldnull
IL_003D: cgt.un
IL_003F: // end original
IL_003F: stloc 0 (System.Boolean)
IL_0043: Label0
IL_0043: ldloc 0 (System.Boolean)
IL_0047: ret
DONE

### Patch: Verse.Pawn


Verse.AI.ReservationManager::FirstRespectedReserver(Verse.LocalTargetInfo target,
Verse.Pawn claimant, Verse.ReservationLayerDef layer)
### Replacement: static Verse.Pawn
Verse.AI.ReservationManager::Verse.AI.ReservationManager.FirstRespectedReserver_Pat
ch1(Verse.AI.ReservationManager this, Verse.LocalTargetInfo target, Verse.Pawn
claimant, Verse.ReservationLayerDef layer)
IL_0000: Local var 0: System.Int32
IL_0000: Local var 1: Verse.AI.ReservationManager/Reservation
IL_0000: Local var 2: Verse.Pawn
IL_0000: Local var 3: System.Boolean
IL_0000: ldnull
IL_0001: stloc 2 (Verse.Pawn)
IL_0005: ldc.i4 0
IL_000A: stloc 3 (System.Boolean)
IL_000E: ldc.i4.1
IL_000F: stloc 3 (System.Boolean)
IL_0013: ldloc 3 (System.Boolean)
IL_0017: brfalse => Label1
IL_001C: ldarga 1
IL_0020: call static System.Void
Replace_Stuff.Replace.ReserveSharing::Prefix(Verse.LocalTargetInfo& target)
IL_0025: Label1
IL_0025: nop
IL_0026: ldloc 3 (System.Boolean)
IL_002A: brfalse => Label0
IL_002F: // start original
IL_002F: ldarga.s 1
IL_0031: call System.Boolean Verse.LocalTargetInfo::get_IsValid()
IL_0036: brtrue => Label2
IL_003B: ldnull
IL_003C: br => Label9
IL_0041: Label2
IL_0041: ldc.i4.0
IL_0042: stloc.0
IL_0043: br => Label3
IL_0048: Label8
IL_0048: ldarg.0
IL_0049: ldfld System.Collections.Generic.List`1<Verse.AI.Reservation>
Verse.AI.ReservationManager::reservations
IL_004E: ldloc.0
IL_004F: callvirt virtual Verse.AI.Reservation
System.Collections.Generic.List`1<Verse.AI.Reservation>::get_Item(System.Int32
index)
IL_0054: stloc.1
IL_0055: ldloc.1
IL_0056: callvirt Verse.LocalTargetInfo Verse.AI.Reservation::get_Target()
IL_005B: ldarg.1
IL_005C: call static System.Boolean
Verse.LocalTargetInfo::op_Equality(Verse.LocalTargetInfo a, Verse.LocalTargetInfo
b)
IL_0061: brfalse => Label4
IL_0066: ldarg.3
IL_0067: brfalse => Label5
IL_006C: ldloc.1
IL_006D: callvirt Verse.ReservationLayerDef Verse.AI.Reservation::get_Layer()
IL_0072: ldarg.3
IL_0073: bne.un => Label6
IL_0078: Label5
IL_0078: ldarg.2
IL_0079: ldloc.1
IL_007A: callvirt Verse.Pawn Verse.AI.Reservation::get_Claimant()
IL_007F: call static System.Boolean
Verse.AI.ReservationManager::RespectsReservationsOf(Verse.Pawn newClaimant,
Verse.Pawn oldClaimant)
IL_0084: brfalse => Label7
IL_0089: ldloc.1
IL_008A: callvirt Verse.Pawn Verse.AI.Reservation::get_Claimant()
IL_008F: br => Label10
IL_0094: Label4
IL_0094: Label6
IL_0094: Label7
IL_0094: ldloc.0
IL_0095: ldc.i4.1
IL_0096: add
IL_0097: stloc.0
IL_0098: Label3
IL_0098: ldloc.0
IL_0099: ldarg.0
IL_009A: ldfld System.Collections.Generic.List`1<Verse.AI.Reservation>
Verse.AI.ReservationManager::reservations
IL_009F: callvirt virtual System.Int32
System.Collections.Generic.List`1<Verse.AI.Reservation>::get_Count()
IL_00A4: blt => Label8
IL_00A9: ldnull
IL_00AA: // end original
IL_00AA: Label9
IL_00AA: Label10
IL_00AA: stloc 2 (Verse.Pawn)
IL_00AE: Label0
IL_00AE: ldloc 2 (Verse.Pawn)
IL_00B2: ret
DONE

### Patch: System.Boolean


Verse.AI.ReservationManager::ReservedBy(Verse.LocalTargetInfo target, Verse.Pawn
claimant, Verse.AI.Job job)
### Replacement: static System.Boolean
Verse.AI.ReservationManager::Verse.AI.ReservationManager.ReservedBy_Patch1(Verse.AI
.ReservationManager this, Verse.LocalTargetInfo target, Verse.Pawn claimant,
Verse.AI.Job job)
IL_0000: Local var 0: System.Int32
IL_0000: Local var 1: Verse.AI.ReservationManager/Reservation
IL_0000: Local var 2: System.Boolean
IL_0000: Local var 3: System.Boolean
IL_0000: ldc.i4 0
IL_0005: stloc 2 (System.Boolean)
IL_0009: ldc.i4 0
IL_000E: stloc 3 (System.Boolean)
IL_0012: ldc.i4.1
IL_0013: stloc 3 (System.Boolean)
IL_0017: ldloc 3 (System.Boolean)
IL_001B: brfalse => Label1
IL_0020: ldarga 1
IL_0024: call static System.Void
Replace_Stuff.Replace.ReserveSharing::Prefix(Verse.LocalTargetInfo& target)
IL_0029: Label1
IL_0029: nop
IL_002A: ldloc 3 (System.Boolean)
IL_002E: brfalse => Label0
IL_0033: // start original
IL_0033: ldarga.s 1
IL_0035: call System.Boolean Verse.LocalTargetInfo::get_IsValid()
IL_003A: brtrue => Label2
IL_003F: ldc.i4.0
IL_0040: br => Label9
IL_0045: Label2
IL_0045: ldc.i4.0
IL_0046: stloc.0
IL_0047: br => Label3
IL_004C: Label8
IL_004C: ldarg.0
IL_004D: ldfld System.Collections.Generic.List`1<Verse.AI.Reservation>
Verse.AI.ReservationManager::reservations
IL_0052: ldloc.0
IL_0053: callvirt virtual Verse.AI.Reservation
System.Collections.Generic.List`1<Verse.AI.Reservation>::get_Item(System.Int32
index)
IL_0058: stloc.1
IL_0059: ldloc.1
IL_005A: callvirt Verse.LocalTargetInfo Verse.AI.Reservation::get_Target()
IL_005F: ldarg.1
IL_0060: call static System.Boolean
Verse.LocalTargetInfo::op_Equality(Verse.LocalTargetInfo a, Verse.LocalTargetInfo
b)
IL_0065: brfalse => Label4
IL_006A: ldloc.1
IL_006B: callvirt Verse.Pawn Verse.AI.Reservation::get_Claimant()
IL_0070: ldarg.2
IL_0071: bne.un => Label5
IL_0076: ldarg.3
IL_0077: brfalse => Label6
IL_007C: ldloc.1
IL_007D: callvirt Verse.AI.Job Verse.AI.Reservation::get_Job()
IL_0082: ldarg.3
IL_0083: bne.un => Label7
IL_0088: Label6
IL_0088: ldc.i4.1
IL_0089: br => Label10
IL_008E: Label4
IL_008E: Label5
IL_008E: Label7
IL_008E: ldloc.0
IL_008F: ldc.i4.1
IL_0090: add
IL_0091: stloc.0
IL_0092: Label3
IL_0092: ldloc.0
IL_0093: ldarg.0
IL_0094: ldfld System.Collections.Generic.List`1<Verse.AI.Reservation>
Verse.AI.ReservationManager::reservations
IL_0099: callvirt virtual System.Int32
System.Collections.Generic.List`1<Verse.AI.Reservation>::get_Count()
IL_009E: blt => Label8
IL_00A3: ldc.i4.0
IL_00A4: // end original
IL_00A4: Label9
IL_00A4: Label10
IL_00A4: stloc 2 (System.Boolean)
IL_00A8: Label0
IL_00A8: ldloc 2 (System.Boolean)
IL_00AC: ret
DONE

### Patch: System.Boolean


Verse.AI.ReservationManager::ReservedBy(Verse.LocalTargetInfo target, Verse.Pawn
claimant, System.Nullable`1<Verse.LocalTargetInfo> targetAIsNot,
System.Nullable`1<Verse.LocalTargetInfo> targetBIsNot,
System.Nullable`1<Verse.LocalTargetInfo> targetCIsNot)
### Replacement: static System.Boolean
Verse.AI.ReservationManager::Verse.AI.ReservationManager.ReservedBy_Patch1(Verse.AI
.ReservationManager this, Verse.LocalTargetInfo target, Verse.Pawn claimant,
System.Nullable`1<Verse.LocalTargetInfo> targetAIsNot,
System.Nullable`1<Verse.LocalTargetInfo> targetBIsNot,
System.Nullable`1<Verse.LocalTargetInfo> targetCIsNot)
IL_0000: Local var 0: System.Int32
IL_0000: Local var 1: Verse.AI.ReservationManager/Reservation
IL_0000: Local var 2: Verse.LocalTargetInfo
IL_0000: Local var 3: System.Nullable`1<Verse.LocalTargetInfo>
IL_0000: Local var 4: System.Boolean
IL_0000: Local var 5: System.Boolean
IL_0000: ldc.i4 0
IL_0005: stloc 4 (System.Boolean)
IL_0009: ldc.i4 0
IL_000E: stloc 5 (System.Boolean)
IL_0012: ldc.i4.1
IL_0013: stloc 5 (System.Boolean)
IL_0017: ldloc 5 (System.Boolean)
IL_001B: brfalse => Label1
IL_0020: ldarga 1
IL_0024: call static System.Void
Replace_Stuff.Replace.ReserveSharing::Prefix(Verse.LocalTargetInfo& target)
IL_0029: Label1
IL_0029: nop
IL_002A: ldloc 5 (System.Boolean)
IL_002E: brfalse => Label0
IL_0033: // start original
IL_0033: ldarga.s 1
IL_0035: call System.Boolean Verse.LocalTargetInfo::get_IsValid()
IL_003A: brtrue => Label2
IL_003F: ldc.i4.0
IL_0040: br => Label21
IL_0045: Label2
IL_0045: ldc.i4.0
IL_0046: stloc.0
IL_0047: br => Label3
IL_004C: Label20
IL_004C: ldarg.0
IL_004D: ldfld System.Collections.Generic.List`1<Verse.AI.Reservation>
Verse.AI.ReservationManager::reservations
IL_0052: ldloc.0
IL_0053: callvirt virtual Verse.AI.Reservation
System.Collections.Generic.List`1<Verse.AI.Reservation>::get_Item(System.Int32
index)
IL_0058: stloc.1
IL_0059: ldloc.1
IL_005A: callvirt Verse.LocalTargetInfo Verse.AI.Reservation::get_Target()
IL_005F: ldarg.1
IL_0060: call static System.Boolean
Verse.LocalTargetInfo::op_Equality(Verse.LocalTargetInfo a, Verse.LocalTargetInfo
b)
IL_0065: brfalse => Label4
IL_006A: ldloc.1
IL_006B: callvirt Verse.Pawn Verse.AI.Reservation::get_Claimant()
IL_0070: ldarg.2
IL_0071: bne.un => Label5
IL_0076: ldloc.1
IL_0077: callvirt Verse.AI.Job Verse.AI.Reservation::get_Job()
IL_007C: brfalse => Label6
IL_0081: ldtoken RimWorld.JobDriver_TakeToBed
IL_0086: call static System.Type
System.Type::GetTypeFromHandle(System.RuntimeTypeHandle handle)
IL_008B: ldloc.1
IL_008C: callvirt Verse.AI.Job Verse.AI.Reservation::get_Job()
IL_0091: ldfld Verse.JobDef Verse.AI.Job::def
IL_0096: ldfld System.Type Verse.JobDef::driverClass
IL_009B: callvirt virtual System.Boolean
System.Type::IsAssignableFrom(System.Type c)
IL_00A0: brfalse => Label7
IL_00A5: ldarga.s 3
IL_00A7: call System.Boolean
System.Nullable`1<Verse.LocalTargetInfo>::get_HasValue()
IL_00AC: brfalse => Label8
IL_00B1: ldloc.1
IL_00B2: callvirt Verse.AI.Job Verse.AI.Reservation::get_Job()
IL_00B7: ldfld Verse.LocalTargetInfo Verse.AI.Job::targetA
IL_00BC: stloc.2
IL_00BD: ldarg.3
IL_00BE: stloc.3
IL_00BF: ldloca.s 3 (System.Nullable`1[Verse.LocalTargetInfo])
IL_00C1: call System.Boolean
System.Nullable`1<Verse.LocalTargetInfo>::get_HasValue()
IL_00C6: brtrue => Label9
IL_00CB: ldc.i4.1
IL_00CC: br => Label10
IL_00D1: Label9
IL_00D1: ldloc.2
IL_00D2: ldloca.s 3 (System.Nullable`1[Verse.LocalTargetInfo])
IL_00D4: call Verse.LocalTargetInfo
System.Nullable`1<Verse.LocalTargetInfo>::GetValueOrDefault()
IL_00D9: call static System.Boolean
Verse.LocalTargetInfo::op_Inequality(Verse.LocalTargetInfo a, Verse.LocalTargetInfo
b)
IL_00DE: Label10
IL_00DE: brfalse => Label11
IL_00E3: Label8
IL_00E3: ldarga.s 4
IL_00E5: call System.Boolean
System.Nullable`1<Verse.LocalTargetInfo>::get_HasValue()
IL_00EA: brfalse => Label12
IL_00EF: ldloc.1
IL_00F0: callvirt Verse.AI.Job Verse.AI.Reservation::get_Job()
IL_00F5: ldfld Verse.LocalTargetInfo Verse.AI.Job::targetB
IL_00FA: stloc.2
IL_00FB: ldarg.s 4
IL_00FD: stloc.3
IL_00FE: ldloca.s 3 (System.Nullable`1[Verse.LocalTargetInfo])
IL_0100: call System.Boolean
System.Nullable`1<Verse.LocalTargetInfo>::get_HasValue()
IL_0105: brtrue => Label13
IL_010A: ldc.i4.1
IL_010B: br => Label14
IL_0110: Label13
IL_0110: ldloc.2
IL_0111: ldloca.s 3 (System.Nullable`1[Verse.LocalTargetInfo])
IL_0113: call Verse.LocalTargetInfo
System.Nullable`1<Verse.LocalTargetInfo>::GetValueOrDefault()
IL_0118: call static System.Boolean
Verse.LocalTargetInfo::op_Inequality(Verse.LocalTargetInfo a, Verse.LocalTargetInfo
b)
IL_011D: Label14
IL_011D: brfalse => Label15
IL_0122: Label12
IL_0122: ldarga.s 5
IL_0124: call System.Boolean
System.Nullable`1<Verse.LocalTargetInfo>::get_HasValue()
IL_0129: brfalse => Label16
IL_012E: ldloc.1
IL_012F: callvirt Verse.AI.Job Verse.AI.Reservation::get_Job()
IL_0134: ldfld Verse.LocalTargetInfo Verse.AI.Job::targetC
IL_0139: stloc.2
IL_013A: ldarg.s 5
IL_013C: stloc.3
IL_013D: ldloca.s 3 (System.Nullable`1[Verse.LocalTargetInfo])
IL_013F: call System.Boolean
System.Nullable`1<Verse.LocalTargetInfo>::get_HasValue()
IL_0144: brtrue => Label17
IL_0149: ldc.i4.1
IL_014A: br => Label18
IL_014F: Label17
IL_014F: ldloc.2
IL_0150: ldloca.s 3 (System.Nullable`1[Verse.LocalTargetInfo])
IL_0152: call Verse.LocalTargetInfo
System.Nullable`1<Verse.LocalTargetInfo>::GetValueOrDefault()
IL_0157: call static System.Boolean
Verse.LocalTargetInfo::op_Inequality(Verse.LocalTargetInfo a, Verse.LocalTargetInfo
b)
IL_015C: Label18
IL_015C: brfalse => Label19
IL_0161: Label16
IL_0161: ldc.i4.1
IL_0162: br => Label22
IL_0167: Label4
IL_0167: Label5
IL_0167: Label6
IL_0167: Label7
IL_0167: Label11
IL_0167: Label15
IL_0167: Label19
IL_0167: ldloc.0
IL_0168: ldc.i4.1
IL_0169: add
IL_016A: stloc.0
IL_016B: Label3
IL_016B: ldloc.0
IL_016C: ldarg.0
IL_016D: ldfld System.Collections.Generic.List`1<Verse.AI.Reservation>
Verse.AI.ReservationManager::reservations
IL_0172: callvirt virtual System.Int32
System.Collections.Generic.List`1<Verse.AI.Reservation>::get_Count()
IL_0177: blt => Label20
IL_017C: ldc.i4.0
IL_017D: // end original
IL_017D: Label21
IL_017D: Label22
IL_017D: stloc 4 (System.Boolean)
IL_0181: Label0
IL_0181: ldloc 4 (System.Boolean)
IL_0185: ret
DONE

### Patch: System.Void


Verse.AI.ReservationManager::LogCouldNotReserveError(Verse.Pawn claimant,
Verse.AI.Job job, Verse.LocalTargetInfo target, System.Int32 maxPawns, System.Int32
stackCount, Verse.ReservationLayerDef layer)
### Replacement: static System.Void
Verse.AI.ReservationManager::Verse.AI.ReservationManager.LogCouldNotReserveError_Pa
tch1(Verse.AI.ReservationManager this, Verse.Pawn claimant, Verse.AI.Job job,
Verse.LocalTargetInfo target, System.Int32 maxPawns, System.Int32 stackCount,
Verse.ReservationLayerDef layer)
IL_0000: Local var 0: Verse.AI.Job
IL_0000: Local var 1: System.String
IL_0000: Local var 2: System.Int32
IL_0000: Local var 3: System.String
IL_0000: Local var 4: System.String
IL_0000: Local var 5: Verse.Pawn
IL_0000: Local var 6: Verse.Pawn
IL_0000: Local var 7: System.String
IL_0000: Local var 8: System.Int32
IL_0000: Local var 9: Verse.AI.Job
IL_0000: Local var 10: System.Boolean
IL_0000: ldc.i4 0
IL_0005: stloc 10 (System.Boolean)
IL_0009: ldc.i4.1
IL_000A: stloc 10 (System.Boolean)
IL_000E: ldloc 10 (System.Boolean)
IL_0012: brfalse => Label1
IL_0017: ldarga 3
IL_001B: call static System.Void
Replace_Stuff.Replace.ReserveSharing::Prefix(Verse.LocalTargetInfo& target)
IL_0020: Label1
IL_0020: nop
IL_0021: ldloc 10 (System.Boolean)
IL_0025: brfalse => Label0
IL_002A: // start original
IL_002A: ldarg.1
IL_002B: callvirt Verse.AI.Job Verse.Pawn::get_CurJob()
IL_0030: stloc.0
IL_0031: ldstr "null"
IL_0036: stloc.1
IL_0037: ldc.i4.m1
IL_0038: stloc.2
IL_0039: ldloc.0
IL_003A: brfalse => Label2
IL_003F: ldloc.0
IL_0040: callvirt virtual System.String System.Object::ToString()
IL_0045: stloc.1
IL_0046: ldarg.1
IL_0047: ldfld Verse.AI.Pawn_JobTracker Verse.Pawn::jobs
IL_004C: ldfld Verse.AI.JobDriver Verse.AI.Pawn_JobTracker::curDriver
IL_0051: brfalse => Label3
IL_0056: ldarg.1
IL_0057: ldfld Verse.AI.Pawn_JobTracker Verse.Pawn::jobs
IL_005C: ldfld Verse.AI.JobDriver Verse.AI.Pawn_JobTracker::curDriver
IL_0061: callvirt System.Int32 Verse.AI.JobDriver::get_CurToilIndex()
IL_0066: stloc.2
IL_0067: Label2
IL_0067: Label3
IL_0067: ldarga.s 3
IL_0069: call System.Boolean Verse.LocalTargetInfo::get_HasThing()
IL_006E: brfalse => Label4
IL_0073: ldarga.s 3
IL_0075: call Verse.Thing Verse.LocalTargetInfo::get_Thing()
IL_007A: ldfld Verse.ThingDef Verse.Thing::def
IL_007F: ldfld System.Int32 Verse.ThingDef::stackLimit
IL_0084: ldc.i4.1
IL_0085: beq => Label5
IL_008A: ldstr "(current stack count: "
IL_008F: ldarga.s 3
IL_0091: call Verse.Thing Verse.LocalTargetInfo::get_Thing()
IL_0096: ldfld System.Int32 Verse.Thing::stackCount
IL_009B: box System.Int32
IL_00A0: ldstr ")"
IL_00A5: call static System.String System.String::Concat(System.Object arg0,
System.Object arg1, System.Object arg2)
IL_00AA: stloc.3
IL_00AB: br => Label6
IL_00B0: Label4
IL_00B0: Label5
IL_00B0: ldstr ""
IL_00B5: stloc.3
IL_00B6: Label6
IL_00B6: ldc.i4.s 18
IL_00B8: newarr System.Object
IL_00BD: dup
IL_00BE: ldc.i4.0
IL_00BF: ldstr "Could not reserve "
IL_00C4: stelem.ref
IL_00C5: dup
IL_00C6: ldc.i4.1
IL_00C7: ldarg.3
IL_00C8: call static System.String
Verse.Gen::ToStringSafe(Verse.LocalTargetInfo obj)
IL_00CD: stelem.ref
IL_00CE: dup
IL_00CF: ldc.i4.2
IL_00D0: ldloc.3
IL_00D1: stelem.ref
IL_00D2: dup
IL_00D3: ldc.i4.3
IL_00D4: ldstr " (layer: "
IL_00D9: stelem.ref
IL_00DA: dup
IL_00DB: ldc.i4.4
IL_00DC: ldarg.s 6
IL_00DE: call static System.String
Verse.Gen::ToStringSafe(Verse.ReservationLayerDef obj)
IL_00E3: stelem.ref
IL_00E4: dup
IL_00E5: ldc.i4.5
IL_00E6: ldstr ") for "
IL_00EB: stelem.ref
IL_00EC: dup
IL_00ED: ldc.i4.6
IL_00EE: ldarg.1
IL_00EF: call static System.String Verse.Gen::ToStringSafe(Verse.Pawn obj)
IL_00F4: stelem.ref
IL_00F5: dup
IL_00F6: ldc.i4.7
IL_00F7: ldstr " for job "
IL_00FC: stelem.ref
IL_00FD: dup
IL_00FE: ldc.i4.8
IL_00FF: ldarg.2
IL_0100: call static System.String Verse.Gen::ToStringSafe(Verse.AI.Job obj)
IL_0105: stelem.ref
IL_0106: dup
IL_0107: ldc.i4.s 9
IL_0109: ldstr " (now doing job "
IL_010E: stelem.ref
IL_010F: dup
IL_0110: ldc.i4.s 10
IL_0112: ldloc.1
IL_0113: stelem.ref
IL_0114: dup
IL_0115: ldc.i4.s 11
IL_0117: ldstr "(curToil="
IL_011C: stelem.ref
IL_011D: dup
IL_011E: ldc.i4.s 12
IL_0120: ldloc.2
IL_0121: box System.Int32
IL_0126: stelem.ref
IL_0127: dup
IL_0128: ldc.i4.s 13
IL_012A: ldstr ")) for maxPawns "
IL_012F: stelem.ref
IL_0130: dup
IL_0131: ldc.i4.s 14
IL_0133: ldarg.s 4
IL_0135: box System.Int32
IL_013A: stelem.ref
IL_013B: dup
IL_013C: ldc.i4.s 15
IL_013E: ldstr " and stackCount "
IL_0143: stelem.ref
IL_0144: dup
IL_0145: ldc.i4.s 16
IL_0147: ldarg.s 5
IL_0149: box System.Int32
IL_014E: stelem.ref
IL_014F: dup
IL_0150: ldc.i4.s 17
IL_0152: ldstr "."
IL_0157: stelem.ref
IL_0158: call static System.String System.String::Concat(System.Object[]
args)
IL_015D: stloc.s 4 (System.String)
IL_015F: ldarg.0
IL_0160: ldarg.3
IL_0161: ldarg.1
IL_0162: ldnull
IL_0163: call Verse.Pawn
Verse.AI.ReservationManager::FirstRespectedReserver(Verse.LocalTargetInfo target,
Verse.Pawn claimant, Verse.ReservationLayerDef layer)
IL_0168: stloc.s 5 (Verse.Pawn)
IL_016A: ldloc.s 5 (Verse.Pawn)
IL_016C: brfalse => Label7
IL_0171: ldstr "null"
IL_0176: stloc.s 7 (System.String)
IL_0178: ldc.i4.m1
IL_0179: stloc.s 8 (System.Int32)
IL_017B: ldloc.s 5 (Verse.Pawn)
IL_017D: callvirt Verse.AI.Job Verse.Pawn::get_CurJob()
IL_0182: stloc.s 9 (Verse.AI.Job)
IL_0184: ldloc.s 9 (Verse.AI.Job)
IL_0186: brfalse => Label8
IL_018B: ldloc.s 9 (Verse.AI.Job)
IL_018D: call static System.String Verse.Gen::ToStringSafe(Verse.AI.Job obj)
IL_0192: stloc.s 7 (System.String)
IL_0194: ldloc.s 5 (Verse.Pawn)
IL_0196: ldfld Verse.AI.Pawn_JobTracker Verse.Pawn::jobs
IL_019B: ldfld Verse.AI.JobDriver Verse.AI.Pawn_JobTracker::curDriver
IL_01A0: brfalse => Label9
IL_01A5: ldloc.s 5 (Verse.Pawn)
IL_01A7: ldfld Verse.AI.Pawn_JobTracker Verse.Pawn::jobs
IL_01AC: ldfld Verse.AI.JobDriver Verse.AI.Pawn_JobTracker::curDriver
IL_01B1: callvirt System.Int32 Verse.AI.JobDriver::get_CurToilIndex()
IL_01B6: stloc.s 8 (System.Int32)
IL_01B8: Label8
IL_01B8: Label9
IL_01B8: ldc.i4.8
IL_01B9: newarr System.Object
IL_01BE: dup
IL_01BF: ldc.i4.0
IL_01C0: ldloc.s 4 (System.String)
IL_01C2: stelem.ref
IL_01C3: dup
IL_01C4: ldc.i4.1
IL_01C5: ldstr " Existing reserver: "
IL_01CA: stelem.ref
IL_01CB: dup
IL_01CC: ldc.i4.2
IL_01CD: ldloc.s 5 (Verse.Pawn)
IL_01CF: call static System.String Verse.Gen::ToStringSafe(Verse.Pawn obj)
IL_01D4: stelem.ref
IL_01D5: dup
IL_01D6: ldc.i4.3
IL_01D7: ldstr " doing job "
IL_01DC: stelem.ref
IL_01DD: dup
IL_01DE: ldc.i4.4
IL_01DF: ldloc.s 7 (System.String)
IL_01E1: stelem.ref
IL_01E2: dup
IL_01E3: ldc.i4.5
IL_01E4: ldstr " (toilIndex="
IL_01E9: stelem.ref
IL_01EA: dup
IL_01EB: ldc.i4.6
IL_01EC: ldloc.s 8 (System.Int32)
IL_01EE: box System.Int32
IL_01F3: stelem.ref
IL_01F4: dup
IL_01F5: ldc.i4.7
IL_01F6: ldstr ")"
IL_01FB: stelem.ref
IL_01FC: call static System.String System.String::Concat(System.Object[]
args)
IL_0201: stloc.s 4 (System.String)
IL_0203: br => Label10
IL_0208: Label7
IL_0208: ldloc.s 4 (System.String)
IL_020A: ldstr " No existing reserver."
IL_020F: call static System.String System.String::Concat(System.String str0,
System.String str1)
IL_0214: stloc.s 4 (System.String)
IL_0216: Label10
IL_0216: ldarg.0
IL_0217: ldfld Verse.Map Verse.AI.ReservationManager::map
IL_021C: ldfld Verse.PhysicalInteractionReservationManager
Verse.Map::physicalInteractionReservationManager
IL_0221: ldarg.3
IL_0222: callvirt Verse.Pawn
Verse.PhysicalInteractionReservationManager::FirstReserverOf(Verse.LocalTargetInfo
target)
IL_0227: stloc.s 6 (Verse.Pawn)
IL_0229: ldloc.s 6 (Verse.Pawn)
IL_022B: brfalse => Label11
IL_0230: ldloc.s 4 (System.String)
IL_0232: ldstr " Physical interaction reserver: "
IL_0237: ldloc.s 6 (Verse.Pawn)
IL_0239: call static System.String Verse.Gen::ToStringSafe(Verse.Pawn obj)
IL_023E: call static System.String System.String::Concat(System.String str0,
System.String str1, System.String str2)
IL_0243: stloc.s 4 (System.String)
IL_0245: Label11
IL_0245: ldloc.s 4 (System.String)
IL_0247: call static System.Void Verse.Log::Error(System.String text)
IL_024C: // end original
IL_024C: Label0
IL_024C: ret
DONE

### Harmony id=Uuugggg.rimworld.Replace_Stuff.main, version=2.2.2.0, location=C:\


Program Files (x86)\Steam\steamapps\common\data-000002130553D010,
env/clr=4.0.30319.42000, platform=Win32NT, ptrsize:runtime/env=8/Bits64, Windows
### Started from static System.Void
Replace_Stuff.OverMineable.HaulToBlueprintUnderRock::.cctor(), location C:\Program
Files (x86)\Steam\steamapps\common\data-00000213093F7580
### At 2023-02-17 06.57.33
### Patch: Verse.Thing
Verse.AI.<>c::<JumpToCarryToNextContainerIfPossible>b__9_2(Verse.LocalTargetInfo
targ)
### Replacement: static Verse.Thing
Verse.AI.Toils_Haul+<>c::Verse.AI.Toils_Haul+c.<JumpToCarryToNextContainerIfPossibl
e>b__9_2_Patch0(Verse.AI.<>c this, Verse.LocalTargetInfo targ)
IL_0000: // start original
IL_0000: ldarga.s 1
IL_0002: call Verse.Thing Verse.LocalTargetInfo::get_Thing()
IL_0007: // end original
IL_0007: ret
DONE

### Patch: System.Boolean


Verse.AI.<>c__DisplayClass9_2::<JumpToCarryToNextContainerIfPossible>b__1(Verse.Thi
ng th)
### Replacement: static System.Boolean
Verse.AI.Toils_Haul+<>c__DisplayClass9_2::Verse.AI.Toils_Haul+c__DisplayClass9_2.<J
umpToCarryToNextContainerIfPossible>b__1_Patch0(Verse.AI.<>c__DisplayClass9_2 this,
Verse.Thing th)
IL_0000: Local var 0: System.Predicate`1<Verse.ThingDefCountClass>
IL_0000: // start original
IL_0000: ldarg.1
IL_0001: ldarg.0
IL_0002: ldfld Verse.AI.<>c__DisplayClass9_1
Verse.AI.<>c__DisplayClass9_2::CS$<>8__locals1
IL_0007: ldfld Verse.Pawn Verse.AI.<>c__DisplayClass9_1::actor
IL_000C: ldc.i4.0
IL_000D: ldc.i4.0
IL_000E: call static System.Boolean
Replace_Stuff.OverMineable.DeliverUnderRock::CanDeliver(Verse.Thing t, Verse.Pawn
p, System.Boolean checkConstructionSkill, System.Boolean forced)
IL_0013: brtrue => Label0
IL_0018: ldc.i4.0
IL_0019: br => Label5
IL_001E: Label0
IL_001E: ldarg.1
IL_001F: castclass RimWorld.IConstructible
IL_0024: callvirt abstract virtual
System.Collections.Generic.List`1<Verse.ThingDefCountClass>
RimWorld.IConstructible::MaterialsNeeded()
IL_0029: ldarg.0
IL_002A: ldfld Verse.AI.<>c__DisplayClass9_1
Verse.AI.<>c__DisplayClass9_2::CS$<>8__locals1
IL_002F: ldfld System.Predicate`1<Verse.ThingDefCountClass>
Verse.AI.<>c__DisplayClass9_1::<>9__4
IL_0034: dup
IL_0035: brtrue => Label1
IL_003A: pop
IL_003B: ldarg.0
IL_003C: ldfld Verse.AI.<>c__DisplayClass9_1
Verse.AI.<>c__DisplayClass9_2::CS$<>8__locals1
IL_0041: ldarg.0
IL_0042: ldfld Verse.AI.<>c__DisplayClass9_1
Verse.AI.<>c__DisplayClass9_2::CS$<>8__locals1
IL_0047: ldftn System.Boolean
Verse.AI.<>c__DisplayClass9_1::<JumpToCarryToNextContainerIfPossible>b__4(Verse.Thi
ngDefCountClass need)
IL_004D: newobj System.Void
System.Predicate`1<Verse.ThingDefCountClass>::.ctor(System.Object object,
System.IntPtr method)
IL_0052: dup
IL_0053: stloc.0
IL_0054: stfld System.Predicate`1<Verse.ThingDefCountClass>
Verse.AI.<>c__DisplayClass9_1::<>9__4
IL_0059: ldloc.0
IL_005A: Label1
IL_005A: call static System.Boolean
Verse.GenCollection::Any(System.Collections.Generic.List`1<Verse.ThingDefCountClass
> list, System.Predicate`1<Verse.ThingDefCountClass> predicate)
IL_005F: brtrue => Label2
IL_0064: ldc.i4.0
IL_0065: br => Label6
IL_006A: Label2
IL_006A: ldarg.1
IL_006B: ldarg.0
IL_006C: ldfld Verse.Thing Verse.AI.<>c__DisplayClass9_2::primaryTarget
IL_0071: beq => Label3
IL_0076: ldarg.0
IL_0077: ldfld System.Boolean Verse.AI.<>c__DisplayClass9_2::hasSpareItems
IL_007C: brtrue => Label4
IL_0081: ldc.i4.0
IL_0082: br => Label7
IL_0087: Label3
IL_0087: Label4
IL_0087: ldc.i4.1
IL_0088: // end original
IL_0088: Label5
IL_0088: Label6
IL_0088: Label7
IL_0088: ret
DONE

### Patch: System.Boolean


Verse.AI.<>c__DisplayClass9_2::<JumpToCarryToNextContainerIfPossible>b__3(Verse.Loc
alTargetInfo targ)
### Replacement: static System.Boolean
Verse.AI.Toils_Haul+<>c__DisplayClass9_2::Verse.AI.Toils_Haul+c__DisplayClass9_2.<J
umpToCarryToNextContainerIfPossible>b__3_Patch0(Verse.AI.<>c__DisplayClass9_2 this,
Verse.LocalTargetInfo targ)
IL_0000: // start original
IL_0000: ldarga.s 1
IL_0002: call Verse.Thing Verse.LocalTargetInfo::get_Thing()
IL_0007: ldarg.0
IL_0008: ldfld Verse.Thing Verse.AI.<>c__DisplayClass9_2::nextTarget
IL_000D: ceq
IL_000F: // end original
IL_000F: ret
DONE

### Patch: System.Boolean


Verse.AI.<>c__DisplayClass9_1::<JumpToCarryToNextContainerIfPossible>b__4(Verse.Thi
ngDefCountClass need)
### Replacement: static System.Boolean
Verse.AI.Toils_Haul+<>c__DisplayClass9_1::Verse.AI.Toils_Haul+c__DisplayClass9_1.<J
umpToCarryToNextContainerIfPossible>b__4_Patch0(Verse.AI.<>c__DisplayClass9_1 this,
Verse.ThingDefCountClass need)
IL_0000: // start original
IL_0000: ldarg.1
IL_0001: ldfld Verse.ThingDef Verse.ThingDefCountClass::thingDef
IL_0006: ldarg.0
IL_0007: ldfld Verse.Pawn Verse.AI.<>c__DisplayClass9_1::actor
IL_000C: ldfld Verse.Pawn_CarryTracker Verse.Pawn::carryTracker
IL_0011: callvirt Verse.Thing Verse.Pawn_CarryTracker::get_CarriedThing()
IL_0016: ldfld Verse.ThingDef Verse.Thing::def
IL_001B: ceq
IL_001D: // end original
IL_001D: ret
DONE
### Patch: System.Void
Verse.AI.<>c__DisplayClass9_0::<JumpToCarryToNextContainerIfPossible>b__0()
### Replacement: static System.Void
Verse.AI.Toils_Haul+<>c__DisplayClass9_0::Verse.AI.Toils_Haul+c__DisplayClass9_0.<J
umpToCarryToNextContainerIfPossible>b__0_Patch0(Verse.AI.<>c__DisplayClass9_0 this)
IL_0000: Local var 0: Verse.AI.Toils_Haul/<>c__DisplayClass9_1
IL_0000: Local var 1: Verse.AI.Job
IL_0000: Local var 2: Verse.AI.Toils_Haul/<>c__DisplayClass9_2
IL_0000: Local var 3: System.Predicate`1<Verse.Thing>
IL_0000: Local var 4: Verse.LocalTargetInfo
IL_0000: // start original
IL_0000: newobj System.Void Verse.AI.<>c__DisplayClass9_1::.ctor()
IL_0005: stloc.0
IL_0006: ldloc.0
IL_0007: ldarg.0
IL_0008: ldfld Verse.AI.Toil Verse.AI.<>c__DisplayClass9_0::toil
IL_000D: ldfld Verse.Pawn Verse.AI.Toil::actor
IL_0012: stfld Verse.Pawn Verse.AI.<>c__DisplayClass9_1::actor
IL_0017: ldloc.0
IL_0018: ldfld Verse.Pawn Verse.AI.<>c__DisplayClass9_1::actor
IL_001D: ldfld Verse.AI.Pawn_JobTracker Verse.Pawn::jobs
IL_0022: ldfld Verse.AI.Job Verse.AI.Pawn_JobTracker::curJob
IL_0027: stloc.1
IL_0028: ldloc.0
IL_0029: ldfld Verse.Pawn Verse.AI.<>c__DisplayClass9_1::actor
IL_002E: ldfld Verse.Pawn_CarryTracker Verse.Pawn::carryTracker
IL_0033: callvirt Verse.Thing Verse.Pawn_CarryTracker::get_CarriedThing()
IL_0038: brtrue => Label0
IL_003D: br => Label5
IL_0042: Label0
IL_0042: ldloc.1
IL_0043: ldfld System.Collections.Generic.List`1<Verse.LocalTargetInfo>
Verse.AI.Job::targetQueueB
IL_0048: brfalse => Label1
IL_004D: ldloc.1
IL_004E: ldfld System.Collections.Generic.List`1<Verse.LocalTargetInfo>
Verse.AI.Job::targetQueueB
IL_0053: callvirt virtual System.Int32
System.Collections.Generic.List`1<Verse.LocalTargetInfo>::get_Count()
IL_0058: ldc.i4.0
IL_0059: ble => Label2
IL_005E: newobj System.Void Verse.AI.<>c__DisplayClass9_2::.ctor()
IL_0063: stloc.2
IL_0064: ldloc.2
IL_0065: ldloc.0
IL_0066: stfld Verse.AI.<>c__DisplayClass9_1
Verse.AI.<>c__DisplayClass9_2::CS$<>8__locals1
IL_006B: ldloc.2
IL_006C: ldloc.1
IL_006D: ldarg.0
IL_006E: ldfld Verse.AI.TargetIndex
Verse.AI.<>c__DisplayClass9_0::primaryTargetInd
IL_0073: callvirt Verse.LocalTargetInfo
Verse.AI.Job::GetTarget(Verse.AI.TargetIndex ind)
IL_0078: stloc.s 4 (Verse.LocalTargetInfo)
IL_007A: ldloca.s 4 (Verse.LocalTargetInfo)
IL_007C: call Verse.Thing Verse.LocalTargetInfo::get_Thing()
IL_0081: stfld Verse.Thing Verse.AI.<>c__DisplayClass9_2::primaryTarget
IL_0086: ldloc.2
IL_0087: ldloc.2
IL_0088: ldfld Verse.AI.<>c__DisplayClass9_1
Verse.AI.<>c__DisplayClass9_2::CS$<>8__locals1
IL_008D: ldfld Verse.Pawn Verse.AI.<>c__DisplayClass9_1::actor
IL_0092: ldfld Verse.Pawn_CarryTracker Verse.Pawn::carryTracker
IL_0097: callvirt Verse.Thing Verse.Pawn_CarryTracker::get_CarriedThing()
IL_009C: ldfld System.Int32 Verse.Thing::stackCount
IL_00A1: ldloc.2
IL_00A2: ldfld Verse.Thing Verse.AI.<>c__DisplayClass9_2::primaryTarget
IL_00A7: castclass RimWorld.IConstructible
IL_00AC: ldloc.2
IL_00AD: ldfld Verse.AI.<>c__DisplayClass9_1
Verse.AI.<>c__DisplayClass9_2::CS$<>8__locals1
IL_00B2: ldfld Verse.Pawn Verse.AI.<>c__DisplayClass9_1::actor
IL_00B7: ldfld Verse.Pawn_CarryTracker Verse.Pawn::carryTracker
IL_00BC: callvirt Verse.Thing Verse.Pawn_CarryTracker::get_CarriedThing()
IL_00C1: ldfld Verse.ThingDef Verse.Thing::def
IL_00C6: call static System.Int32
RimWorld.GenConstruct::AmountNeededByOf(RimWorld.IConstructible c, Verse.ThingDef
resDef)
IL_00CB: cgt
IL_00CD: stfld System.Boolean Verse.AI.<>c__DisplayClass9_2::hasSpareItems
IL_00D2: ldloc.2
IL_00D3: ldftn System.Boolean
Verse.AI.<>c__DisplayClass9_2::<JumpToCarryToNextContainerIfPossible>b__1(Verse.Thi
ng th)
IL_00D9: newobj System.Void
System.Predicate`1<Verse.Thing>::.ctor(System.Object object, System.IntPtr method)
IL_00DE: stloc.3
IL_00DF: ldloc.2
IL_00E0: ldloc.2
IL_00E1: ldfld Verse.AI.<>c__DisplayClass9_1
Verse.AI.<>c__DisplayClass9_2::CS$<>8__locals1
IL_00E6: ldfld Verse.Pawn Verse.AI.<>c__DisplayClass9_1::actor
IL_00EB: callvirt virtual Verse.IntVec3 Verse.Thing::get_Position()
IL_00F0: ldloc.2
IL_00F1: ldfld Verse.AI.<>c__DisplayClass9_1
Verse.AI.<>c__DisplayClass9_2::CS$<>8__locals1
IL_00F6: ldfld Verse.Pawn Verse.AI.<>c__DisplayClass9_1::actor
IL_00FB: callvirt virtual Verse.Map Verse.Thing::get_Map()
IL_0100: ldloc.1
IL_0101: ldfld System.Collections.Generic.List`1<Verse.LocalTargetInfo>
Verse.AI.Job::targetQueueB
IL_0106: ldsfld System.Func`2<Verse.LocalTargetInfo, Verse.Thing>
Verse.AI.<>c::<>9__9_2
IL_010B: dup
IL_010C: brtrue => Label3
IL_0111: pop
IL_0112: ldsfld Verse.AI.<>c Verse.AI.<>c::<>9
IL_0117: ldftn Verse.Thing
Verse.AI.<>c::<JumpToCarryToNextContainerIfPossible>b__9_2(Verse.LocalTargetInfo
targ)
IL_011D: newobj System.Void System.Func`2<Verse.LocalTargetInfo,
Verse.Thing>::.ctor(System.Object object, System.IntPtr method)
IL_0122: dup
IL_0123: stsfld System.Func`2<Verse.LocalTargetInfo, Verse.Thing>
Verse.AI.<>c::<>9__9_2
IL_0128: Label3
IL_0128: call static System.Collections.Generic.IEnumerable`1<Verse.Thing>
System.Linq.Enumerable::Select(System.Collections.Generic.IEnumerable`1<Verse.Local
TargetInfo> source, System.Func`2<Verse.LocalTargetInfo, Verse.Thing> selector)
IL_012D: ldc.i4.2
IL_012E: ldloc.2
IL_012F: ldfld Verse.AI.<>c__DisplayClass9_1
Verse.AI.<>c__DisplayClass9_2::CS$<>8__locals1
IL_0134: ldfld Verse.Pawn Verse.AI.<>c__DisplayClass9_1::actor
IL_0139: ldc.i4.3
IL_013A: ldc.i4.0
IL_013B: ldc.i4.0
IL_013C: ldc.i4.0
IL_013D: ldc.i4.0
IL_013E: call static Verse.TraverseParms Verse.TraverseParms::For(Verse.Pawn
pawn, Verse.Danger maxDanger, Verse.TraverseMode mode, System.Boolean canBashDoors,
System.Boolean alwaysUseAvoidGrid, System.Boolean canBashFences)
IL_0143: ldc.r4 99999
IL_0148: ldloc.3
IL_0149: ldnull
IL_014A: call static Verse.Thing
Verse.GenClosest::ClosestThing_Global_Reachable(Verse.IntVec3 center, Verse.Map
map, System.Collections.Generic.IEnumerable`1<Verse.Thing> searchSet,
Verse.AI.PathEndMode peMode, Verse.TraverseParms traverseParams, System.Single
maxDistance, System.Predicate`1<Verse.Thing> validator, System.Func`2<Verse.Thing,
System.Single> priorityGetter)
IL_014F: stfld Verse.Thing Verse.AI.<>c__DisplayClass9_2::nextTarget
IL_0154: ldloc.2
IL_0155: ldfld Verse.Thing Verse.AI.<>c__DisplayClass9_2::nextTarget
IL_015A: brfalse => Label4
IL_015F: ldloc.1
IL_0160: ldfld System.Collections.Generic.List`1<Verse.LocalTargetInfo>
Verse.AI.Job::targetQueueB
IL_0165: ldloc.2
IL_0166: ldftn System.Boolean
Verse.AI.<>c__DisplayClass9_2::<JumpToCarryToNextContainerIfPossible>b__3(Verse.Loc
alTargetInfo targ)
IL_016C: newobj System.Void
System.Predicate`1<Verse.LocalTargetInfo>::.ctor(System.Object object,
System.IntPtr method)
IL_0171: callvirt System.Int32
System.Collections.Generic.List`1<Verse.LocalTargetInfo>::RemoveAll(System.Predicat
e`1<Verse.LocalTargetInfo> match)
IL_0176: pop
IL_0177: ldloc.1
IL_0178: ldloc.2
IL_0179: ldfld Verse.Thing Verse.AI.<>c__DisplayClass9_2::nextTarget
IL_017E: call static Verse.LocalTargetInfo
Verse.LocalTargetInfo::op_Implicit(Verse.Thing t)
IL_0183: stfld Verse.LocalTargetInfo Verse.AI.Job::targetB
IL_0188: ldloc.2
IL_0189: ldfld Verse.AI.<>c__DisplayClass9_1
Verse.AI.<>c__DisplayClass9_2::CS$<>8__locals1
IL_018E: ldfld Verse.Pawn Verse.AI.<>c__DisplayClass9_1::actor
IL_0193: ldfld Verse.AI.Pawn_JobTracker Verse.Pawn::jobs
IL_0198: ldfld Verse.AI.JobDriver Verse.AI.Pawn_JobTracker::curDriver
IL_019D: ldarg.0
IL_019E: ldfld Verse.AI.Toil
Verse.AI.<>c__DisplayClass9_0::carryToContainerToil
IL_01A3: callvirt System.Void Verse.AI.JobDriver::JumpToToil(Verse.AI.Toil to)
IL_01A8: // end original
IL_01A8: Label1
IL_01A8: Label2
IL_01A8: Label4
IL_01A8: Label5
IL_01A8: ret
DONE

AccessTools.TypeByName: Could not find type named Building_Refrigerator


### Harmony id=com.rimfridge.rimworld.mod, version=2.2.2.0, location=C:\Program
Files (x86)\Steam\steamapps\common\data-000002130553D010, env/clr=4.0.30319.42000,
platform=Win32NT, ptrsize:runtime/env=8/Bits64, Windows
### Started from static System.Void RimFridge.HarmonyPatches::.cctor(), location
C:\Program Files (x86)\Steam\steamapps\common\data-000002130954D740
### At 2023-02-17 06.57.34
### Patch: static System.Boolean Verse.ReachabilityUtility::CanReach(Verse.Pawn
pawn, Verse.LocalTargetInfo dest, Verse.AI.PathEndMode peMode, Verse.Danger
maxDanger, System.Boolean canBashDoors, System.Boolean canBashFences,
Verse.TraverseMode mode)
### Replacement: static System.Boolean
Verse.ReachabilityUtility::Verse.ReachabilityUtility.CanReach_Patch1(Verse.Pawn
pawn, Verse.LocalTargetInfo dest, Verse.AI.PathEndMode peMode, Verse.Danger
maxDanger, System.Boolean canBashDoors, System.Boolean canBashFences,
Verse.TraverseMode mode)
IL_0000: Local var 0: System.Boolean
IL_0000: Local var 1: System.Boolean
IL_0000: ldc.i4 0
IL_0005: stloc 0 (System.Boolean)
IL_0009: ldc.i4 0
IL_000E: stloc 1 (System.Boolean)
IL_0012: ldc.i4.1
IL_0013: stloc 1 (System.Boolean)
IL_0017: ldloc 1 (System.Boolean)
IL_001B: brfalse => Label1
IL_0020: ldloca 0 (System.Boolean)
IL_0024: ldarg 0
IL_0028: ldarg 1
IL_002C: ldarg 2
IL_0030: ldarg 3
IL_0034: ldarg 4
IL_0038: ldarg 6
IL_003C: call static System.Boolean
RimFridge.Patch_ReachabilityUtility_CanReach::Prefix(System.Boolean& __result,
Verse.Pawn pawn, Verse.LocalTargetInfo dest, Verse.AI.PathEndMode peMode,
Verse.Danger maxDanger, System.Boolean canBashDoors, Verse.TraverseMode mode)
IL_0041: stloc 1 (System.Boolean)
IL_0045: Label1
IL_0045: nop
IL_0046: ldloc 1 (System.Boolean)
IL_004A: brfalse => Label0
IL_004F: // start original
IL_004F: ldarg.0
IL_0050: callvirt System.Boolean Verse.Thing::get_Spawned()
IL_0055: brtrue => Label2
IL_005A: ldc.i4.0
IL_005B: br => Label3
IL_0060: Label2
IL_0060: ldarg.0
IL_0061: callvirt virtual Verse.Map Verse.Thing::get_Map()
IL_0066: ldfld Verse.Reachability Verse.Map::reachability
IL_006B: ldarg.0
IL_006C: callvirt virtual Verse.IntVec3 Verse.Thing::get_Position()
IL_0071: ldarg.1
IL_0072: ldarg.2
IL_0073: ldarg.0
IL_0074: ldarg.3
IL_0075: ldarg.s 6
IL_0077: ldarg.s 4
IL_0079: ldc.i4.0
IL_007A: ldarg.s 5
IL_007C: call static Verse.TraverseParms Verse.TraverseParms::For(Verse.Pawn
pawn, Verse.Danger maxDanger, Verse.TraverseMode mode, System.Boolean canBashDoors,
System.Boolean alwaysUseAvoidGrid, System.Boolean canBashFences)
IL_0081: callvirt System.Boolean Verse.Reachability::CanReach(Verse.IntVec3
start, Verse.LocalTargetInfo dest, Verse.AI.PathEndMode peMode, Verse.TraverseParms
traverseParams)
IL_0086: // end original
IL_0086: Label3
IL_0086: stloc 0 (System.Boolean)
IL_008A: Label0
IL_008A: ldloc 0 (System.Boolean)
IL_008E: ret
DONE

### Patch: static System.Void Verse.GameComponentUtility::StartedNewGame()


### Replacement: static System.Void
Verse.GameComponentUtility::Verse.GameComponentUtility.StartedNewGame_Patch2()
IL_0000: Local var 0: System.Collections.Generic.List`1<Verse.GameComponent>
IL_0000: Local var 1: System.Int32
IL_0000: // start original
IL_0000: call static Verse.Game Verse.Current::get_Game()
IL_0005: ldfld System.Collections.Generic.List`1<Verse.GameComponent>
Verse.Game::components
IL_000A: stloc.0
IL_000B: ldc.i4.0
IL_000C: stloc.1
IL_000D: br => Label0
IL_0012: Label3
IL_0012: nop
.try
{
IL_0013: ldloc.0
IL_0014: ldloc.1
IL_0015: callvirt virtual Verse.GameComponent
System.Collections.Generic.List`1<Verse.GameComponent>::get_Item(System.Int32
index)
IL_001A: callvirt virtual System.Void Verse.GameComponent::StartedNewGame()
IL_001F: leave => Label1
IL_0024: leave => (autogenerated)
} // end try
.catch System.Exception
{
IL_0029: callvirt virtual System.String System.Object::ToString()
IL_002E: call static System.Void Verse.Log::Error(System.String text)
IL_0033: leave => Label2
IL_0038: leave => (autogenerated)
} // end handler
IL_003D: Label1
IL_003D: Label2
IL_003D: ldloc.1
IL_003E: ldc.i4.1
IL_003F: add
IL_0040: stloc.1
IL_0041: Label0
IL_0041: ldloc.1
IL_0042: ldloc.0
IL_0043: callvirt virtual System.Int32
System.Collections.Generic.List`1<Verse.GameComponent>::get_Count()
IL_0048: blt => Label3
IL_004D: // end original
IL_004D: call static System.Void VFECore.StartedNewGame::Postfix()
IL_0052: call static System.Void
RimFridge.Patch_GameComponentUtility_StartedNewGame::Postfix()
IL_0057: ret
DONE

### Patch: static System.Void Verse.GameComponentUtility::LoadedGame()


### Replacement: static System.Void
Verse.GameComponentUtility::Verse.GameComponentUtility.LoadedGame_Patch2()
IL_0000: Local var 0: System.Collections.Generic.List`1<Verse.GameComponent>
IL_0000: Local var 1: System.Int32
IL_0000: // start original
IL_0000: call static Verse.Game Verse.Current::get_Game()
IL_0005: ldfld System.Collections.Generic.List`1<Verse.GameComponent>
Verse.Game::components
IL_000A: stloc.0
IL_000B: ldc.i4.0
IL_000C: stloc.1
IL_000D: br => Label0
IL_0012: Label3
IL_0012: nop
.try
{
IL_0013: ldloc.0
IL_0014: ldloc.1
IL_0015: callvirt virtual Verse.GameComponent
System.Collections.Generic.List`1<Verse.GameComponent>::get_Item(System.Int32
index)
IL_001A: callvirt virtual System.Void Verse.GameComponent::LoadedGame()
IL_001F: leave => Label1
IL_0024: leave => (autogenerated)
} // end try
.catch System.Exception
{
IL_0029: callvirt virtual System.String System.Object::ToString()
IL_002E: call static System.Void Verse.Log::Error(System.String text)
IL_0033: leave => Label2
IL_0038: leave => (autogenerated)
} // end handler
IL_003D: Label1
IL_003D: Label2
IL_003D: ldloc.1
IL_003E: ldc.i4.1
IL_003F: add
IL_0040: stloc.1
IL_0041: Label0
IL_0041: ldloc.1
IL_0042: ldloc.0
IL_0043: callvirt virtual System.Int32
System.Collections.Generic.List`1<Verse.GameComponent>::get_Count()
IL_0048: blt => Label3
IL_004D: // end original
IL_004D: call static System.Void VFECore.LoadedGame::Postfix()
IL_0052: call static System.Void
RimFridge.Patch_GameComponentUtility_LoadedGame::Postfix()
IL_0057: ret
DONE

### Patch: System.Single Verse.Thing::get_AmbientTemperature()


### Replacement: static System.Single
Verse.Thing::Verse.Thing.get_AmbientTemperature_Patch1(Verse.Thing this)
IL_0000: Local var 0: Verse.IThingHolder
IL_0000: Local var 1: System.Single
IL_0000: Local var 2: System.Single
IL_0000: Local var 3: System.Boolean
IL_0000: ldc.r4 0
IL_0005: stloc 2 (System.Single)
IL_0009: ldc.i4 0
IL_000E: stloc 3 (System.Boolean)
IL_0012: ldc.i4.1
IL_0013: stloc 3 (System.Boolean)
IL_0017: ldloc 3 (System.Boolean)
IL_001B: brfalse => Label1
IL_0020: ldarg.0
IL_0021: ldloca 2 (System.Single)
IL_0025: call static System.Boolean
RimFridge.Patch_Thing_AmbientTemperature::Prefix(Verse.Thing __instance,
System.Single& __result)
IL_002A: stloc 3 (System.Boolean)
IL_002E: Label1
IL_002E: nop
IL_002F: ldloc 3 (System.Boolean)
IL_0033: brfalse => Label0
IL_0038: // start original
IL_0038: ldarg.0
IL_0039: call System.Boolean Verse.Thing::get_Spawned()
IL_003E: brfalse => Label2
IL_0043: ldarg.0
IL_0044: call virtual Verse.IntVec3 Verse.Thing::get_Position()
IL_0049: ldarg.0
IL_004A: call virtual Verse.Map Verse.Thing::get_Map()
IL_004F: call static System.Single
Verse.GenTemperature::GetTemperatureForCell(Verse.IntVec3 c, Verse.Map map)
IL_0054: br => Label9
IL_0059: Label2
IL_0059: ldarg.0
IL_005A: call virtual Verse.IThingHolder Verse.Thing::get_ParentHolder()
IL_005F: brfalse => Label3
IL_0064: ldarg.0
IL_0065: call virtual Verse.IThingHolder Verse.Thing::get_ParentHolder()
IL_006A: stloc.0
IL_006B: br => Label4
IL_0070: Label6
IL_0070: ldloc.0
IL_0071: ldarg.0
IL_0072: ldloca.s 1 (System.Single)
IL_0074: call static System.Boolean
Verse.ThingOwnerUtility::TryGetFixedTemperature(Verse.IThingHolder holder,
Verse.Thing forThing, System.Single& temperature)
IL_0079: brfalse => Label5
IL_007E: ldloc.1
IL_007F: br => Label10
IL_0084: Label5
IL_0084: ldloc.0
IL_0085: callvirt abstract virtual Verse.IThingHolder
Verse.IThingHolder::get_ParentHolder()
IL_008A: stloc.0
IL_008B: Label4
IL_008B: ldloc.0
IL_008C: brtrue => Label6
IL_0091: Label3
IL_0091: ldarg.0
IL_0092: call System.Boolean Verse.Thing::get_SpawnedOrAnyParentSpawned()
IL_0097: brfalse => Label7
IL_009C: ldarg.0
IL_009D: call Verse.IntVec3 Verse.Thing::get_PositionHeld()
IL_00A2: ldarg.0
IL_00A3: call Verse.Map Verse.Thing::get_MapHeld()
IL_00A8: call static System.Single
Verse.GenTemperature::GetTemperatureForCell(Verse.IntVec3 c, Verse.Map map)
IL_00AD: br => Label11
IL_00B2: Label7
IL_00B2: ldarg.0
IL_00B3: call System.Int32 Verse.Thing::get_Tile()
IL_00B8: ldc.i4.0
IL_00B9: blt => Label8
IL_00BE: ldarg.0
IL_00BF: call System.Int32 Verse.Thing::get_Tile()
IL_00C4: call static System.Single
Verse.GenTemperature::GetTemperatureAtTile(System.Int32 tile)
IL_00C9: br => Label12
IL_00CE: Label8
IL_00CE: ldc.r4 21
IL_00D3: // end original
IL_00D3: Label9
IL_00D3: Label10
IL_00D3: Label11
IL_00D3: Label12
IL_00D3: stloc 2 (System.Single)
IL_00D7: Label0
IL_00D7: ldloc 2 (System.Single)
IL_00DB: ret
DONE

### Patch: virtual System.Collections.Generic.IEnumerable`1<Verse.Thing>


RimWorld.TradeShip::ColonyThingsWillingToBuy(Verse.Pawn playerNegotiator)
### Replacement: static System.Collections.Generic.IEnumerable`1<Verse.Thing>
RimWorld.TradeShip::RimWorld.TradeShip.ColonyThingsWillingToBuy_Patch1(RimWorld.Tra
deShip this, Verse.Pawn playerNegotiator)
IL_0000: Local var 0: System.Collections.Generic.IEnumerable`1<Verse.Thing>
IL_0000: ldnull
IL_0001: stloc 0 (System.Collections.Generic.IEnumerable`1[Verse.Thing])
IL_0005: // start original
IL_0005: ldc.i4.s -2
IL_0007: newobj System.Void
RimWorld.<ColonyThingsWillingToBuy>d__27::.ctor(System.Int32 <>1__state)
IL_000C: dup
IL_000D: ldarg.0
IL_000E: stfld RimWorld.TradeShip
RimWorld.<ColonyThingsWillingToBuy>d__27::<>4__this
IL_0013: // end original
IL_0013: stloc 0 (System.Collections.Generic.IEnumerable`1[Verse.Thing])
IL_0017: ldloca 0 (System.Collections.Generic.IEnumerable`1[Verse.Thing])
IL_001B: ldarg 1
IL_001F: call static System.Void
RimFridge.Patch_PassingShip_TryOpenComms::Postfix(System.Collections.Generic.IEnume
rable`1& __result, Verse.Pawn playerNegotiator)
IL_0024: ldloc 0 (System.Collections.Generic.IEnumerable`1[Verse.Thing])
IL_0028: ret
DONE

### Patch: static System.Boolean


RimWorld.FoodUtility::TryFindBestFoodSourceFor(Verse.Pawn getter, Verse.Pawn eater,
System.Boolean desperate, Verse.Thing& foodSource, Verse.ThingDef& foodDef,
System.Boolean canRefillDispenser, System.Boolean canUseInventory, System.Boolean
canUsePackAnimalInventory, System.Boolean allowForbidden, System.Boolean
allowCorpse, System.Boolean allowSociallyImproper, System.Boolean allowHarvest,
System.Boolean forceScanWholeMap, System.Boolean ignoreReservations, System.Boolean
calculateWantedStackCount, RimWorld.FoodPreferability minPrefOverride)
### Replacement: static System.Boolean
RimWorld.FoodUtility::RimWorld.FoodUtility.TryFindBestFoodSourceFor_Patch2(Verse.Pa
wn getter, Verse.Pawn eater, System.Boolean desperate, Verse.Thing& foodSource,
Verse.ThingDef& foodDef, System.Boolean canRefillDispenser, System.Boolean
canUseInventory, System.Boolean canUsePackAnimalInventory, System.Boolean
allowForbidden, System.Boolean allowCorpse, System.Boolean allowSociallyImproper,
System.Boolean allowHarvest, System.Boolean forceScanWholeMap, System.Boolean
ignoreReservations, System.Boolean calculateWantedStackCount,
RimWorld.FoodPreferability minPrefOverride)
IL_0000: Local var 0: System.Boolean
IL_0000: ldc.i4 0
IL_0005: stloc 0 (System.Boolean)
IL_0009: // start original
IL_0009: ldarg.0
IL_000A: ldarg.1
IL_000B: ldarg.2
IL_000C: ldarg.3
IL_000D: ldarg.s 4
IL_000F: ldarg.s 5
IL_0011: ldarg.s 6
IL_0013: ldarg.s 7
IL_0015: ldarg.s 8
IL_0017: ldarg.s 9
IL_0019: ldarg.s 10
IL_001B: ldarg.s 11
IL_001D: ldarg.s 12
IL_001F: ldarg.s 13
IL_0021: ldarg.s 14
IL_0023: ldc.i4.0
IL_0024: ldarg.s 15
IL_0026: call static System.Boolean
RimWorld.FoodUtility::TryFindBestFoodSourceFor_NewTemp(Verse.Pawn getter,
Verse.Pawn eater, System.Boolean desperate, Verse.Thing& foodSource,
Verse.ThingDef& foodDef, System.Boolean canRefillDispenser, System.Boolean
canUseInventory, System.Boolean canUsePackAnimalInventory, System.Boolean
allowForbidden, System.Boolean allowCorpse, System.Boolean allowSociallyImproper,
System.Boolean allowHarvest, System.Boolean forceScanWholeMap, System.Boolean
ignoreReservations, System.Boolean calculateWantedStackCount, System.Boolean
allowVenerated, RimWorld.FoodPreferability minPrefOverride)
IL_002B: // end original
IL_002B: stloc 0 (System.Boolean)
IL_002F: ldloca 0 (System.Boolean)
IL_0033: ldarg 0
IL_0037: ldarg 1
IL_003B: ldarg 2
IL_003F: ldarg 3
IL_0043: ldarg 4
IL_0047: ldarg 5
IL_004B: ldarg 6
IL_004F: ldarg 7
IL_0053: ldarg 8
IL_0057: ldarg 9
IL_005B: ldarg 10
IL_005F: ldarg 11
IL_0063: ldarg 12
IL_0067: ldarg 13
IL_006B: ldarg 14
IL_006F: ldarg 15
IL_0073: call static System.Void
RimFridge.Patch_FoodUtility_TryFindBestFoodSourceFor::Postfix(System.Boolean&
__result, Verse.Pawn getter, Verse.Pawn eater, System.Boolean desperate,
Verse.Thing& foodSource, Verse.ThingDef& foodDef, System.Boolean
canRefillDispenser, System.Boolean canUseInventory, System.Boolean
canUsePackAnimalInventory, System.Boolean allowForbidden, System.Boolean
allowCorpse, System.Boolean allowSociallyImproper, System.Boolean allowHarvest,
System.Boolean forceScanWholeMap, System.Boolean ignoreReservations, System.Boolean
calculateWantedStackCount, RimWorld.FoodPreferability minPrefOverride)
IL_0078: ldloca 0 (System.Boolean)
IL_007C: ldarg 0
IL_0080: ldarg 1
IL_0084: ldarg 3
IL_0088: ldarg 4
IL_008C: ldarg 6
IL_0090: ldarg 7
IL_0094: call static System.Void
Meals_On_Wheels.FoodGrabbing::Postfix(System.Boolean& __result, Verse.Pawn getter,
Verse.Pawn eater, Verse.Thing& foodSource, Verse.ThingDef& foodDef, System.Boolean
canUseInventory, System.Boolean canUsePackAnimalInventory)
IL_0099: ldloc 0 (System.Boolean)
IL_009D: ret
DONE

### Patch: virtual Verse.Thing


RimWorld.Building_NutrientPasteDispenser::FindFeedInAnyHopper()
### Replacement: static Verse.Thing
RimWorld.Building_NutrientPasteDispenser::RimWorld.Building_NutrientPasteDispenser.
FindFeedInAnyHopper_Patch1(RimWorld.Building_NutrientPasteDispenser this)
IL_0000: Local var 0: System.Int32
IL_0000: Local var 1: Verse.Thing
IL_0000: Local var 2: Verse.Thing
IL_0000: Local var 3: System.Collections.Generic.List`1<Verse.Thing>
IL_0000: Local var 4: System.Int32
IL_0000: Local var 5: Verse.Thing
IL_0000: Local var 6: Verse.Thing
IL_0000: Local var 7: System.Boolean
IL_0000: ldnull
IL_0001: stloc 6 (Verse.Thing)
IL_0005: ldc.i4 0
IL_000A: stloc 7 (System.Boolean)
IL_000E: ldc.i4.1
IL_000F: stloc 7 (System.Boolean)
IL_0013: ldloc 7 (System.Boolean)
IL_0017: brfalse => Label1
IL_001C: ldarg.0
IL_001D: ldloca 6 (Verse.Thing)
IL_0021: call static System.Boolean
RimFridge.Patch_Building_NutrientPasteDispenser_FindFeedInAnyHopper::Prefix(RimWorl
d.Building_NutrientPasteDispenser __instance, Verse.Thing& __result)
IL_0026: stloc 7 (System.Boolean)
IL_002A: Label1
IL_002A: nop
IL_002B: ldloc 7 (System.Boolean)
IL_002F: brfalse => Label0
IL_0034: // start original
IL_0034: ldc.i4.0
IL_0035: stloc.0
IL_0036: br => Label2
IL_003B: Label9
IL_003B: ldnull
IL_003C: stloc.1
IL_003D: ldnull
IL_003E: stloc.2
IL_003F: ldarg.0
IL_0040: call System.Collections.Generic.List`1<Verse.IntVec3>
RimWorld.Building_NutrientPasteDispenser::get_AdjCellsCardinalInBounds()
IL_0045: ldloc.0
IL_0046: callvirt virtual Verse.IntVec3
System.Collections.Generic.List`1<Verse.IntVec3>::get_Item(System.Int32 index)
IL_004B: ldarg.0
IL_004C: call virtual Verse.Map Verse.Thing::get_Map()
IL_0051: call static System.Collections.Generic.List`1<Verse.Thing>
Verse.GridsUtility::GetThingList(Verse.IntVec3 c, Verse.Map map)
IL_0056: stloc.3
IL_0057: ldc.i4.0
IL_0058: stloc.s 4 (System.Int32)
IL_005A: br => Label3
IL_005F: Label6
IL_005F: ldloc.3
IL_0060: ldloc.s 4 (System.Int32)
IL_0062: callvirt virtual Verse.Thing
System.Collections.Generic.List`1<Verse.Thing>::get_Item(System.Int32 index)
IL_0067: stloc.s 5 (Verse.Thing)
IL_0069: ldloc.s 5 (Verse.Thing)
IL_006B: ldfld Verse.ThingDef Verse.Thing::def
IL_0070: call static System.Boolean
RimWorld.Building_NutrientPasteDispenser::IsAcceptableFeedstock(Verse.ThingDef def)
IL_0075: brfalse => Label4
IL_007A: ldloc.s 5 (Verse.Thing)
IL_007C: stloc.1
IL_007D: Label4
IL_007D: ldloc.s 5 (Verse.Thing)
IL_007F: call static System.Boolean
RimWorld.StorageGroupUtility::IsHopper(Verse.Thing thing)
IL_0084: brfalse => Label5
IL_0089: ldloc.s 5 (Verse.Thing)
IL_008B: stloc.2
IL_008C: Label5
IL_008C: ldloc.s 4 (System.Int32)
IL_008E: ldc.i4.1
IL_008F: add
IL_0090: stloc.s 4 (System.Int32)
IL_0092: Label3
IL_0092: ldloc.s 4 (System.Int32)
IL_0094: ldloc.3
IL_0095: callvirt virtual System.Int32
System.Collections.Generic.List`1<Verse.Thing>::get_Count()
IL_009A: blt => Label6
IL_009F: ldloc.1
IL_00A0: brfalse => Label7
IL_00A5: ldloc.2
IL_00A6: brfalse => Label8
IL_00AB: ldloc.1
IL_00AC: br => Label10
IL_00B1: Label7
IL_00B1: Label8
IL_00B1: ldloc.0
IL_00B2: ldc.i4.1
IL_00B3: add
IL_00B4: stloc.0
IL_00B5: Label2
IL_00B5: ldloc.0
IL_00B6: ldarg.0
IL_00B7: call System.Collections.Generic.List`1<Verse.IntVec3>
RimWorld.Building_NutrientPasteDispenser::get_AdjCellsCardinalInBounds()
IL_00BC: callvirt virtual System.Int32
System.Collections.Generic.List`1<Verse.IntVec3>::get_Count()
IL_00C1: blt => Label9
IL_00C6: ldnull
IL_00C7: // end original
IL_00C7: Label10
IL_00C7: stloc 6 (Verse.Thing)
IL_00CB: Label0
IL_00CB: ldloc 6 (Verse.Thing)
IL_00CF: ret
DONE

### Patch: virtual System.Boolean


RimWorld.Building_NutrientPasteDispenser::HasEnoughFeedstockInHoppers()
### Replacement: static System.Boolean
RimWorld.Building_NutrientPasteDispenser::RimWorld.Building_NutrientPasteDispenser.
HasEnoughFeedstockInHoppers_Patch1(RimWorld.Building_NutrientPasteDispenser this)
IL_0000: Local var 0: System.Single
IL_0000: Local var 1: System.Int32
IL_0000: Local var 2: Verse.Thing
IL_0000: Local var 3: Verse.Thing
IL_0000: Local var 4: System.Collections.Generic.List`1<Verse.Thing>
IL_0000: Local var 5: System.Int32
IL_0000: Local var 6: Verse.Thing
IL_0000: Local var 7: System.Boolean
IL_0000: Local var 8: System.Boolean
IL_0000: ldc.i4 0
IL_0005: stloc 7 (System.Boolean)
IL_0009: ldc.i4 0
IL_000E: stloc 8 (System.Boolean)
IL_0012: ldc.i4.1
IL_0013: stloc 8 (System.Boolean)
IL_0017: ldloc 8 (System.Boolean)
IL_001B: brfalse => Label1
IL_0020: ldarg.0
IL_0021: ldloca 7 (System.Boolean)
IL_0025: call static System.Boolean
RimFridge.Patch_Building_NutrientPasteDispenser_HasEnoughFeedstockInHoppers::Prefix
(RimWorld.Building_NutrientPasteDispenser __instance, System.Boolean& __result)
IL_002A: stloc 8 (System.Boolean)
IL_002E: Label1
IL_002E: nop
IL_002F: ldloc 8 (System.Boolean)
IL_0033: brfalse => Label0
IL_0038: // start original
IL_0038: ldc.r4 0
IL_003D: stloc.0
IL_003E: ldc.i4.0
IL_003F: stloc.1
IL_0040: br => Label2
IL_0045: Label10
IL_0045: ldarg.0
IL_0046: call System.Collections.Generic.List`1<Verse.IntVec3>
RimWorld.Building_NutrientPasteDispenser::get_AdjCellsCardinalInBounds()
IL_004B: ldloc.1
IL_004C: callvirt virtual Verse.IntVec3
System.Collections.Generic.List`1<Verse.IntVec3>::get_Item(System.Int32 index)
IL_0051: ldnull
IL_0052: stloc.2
IL_0053: ldnull
IL_0054: stloc.3
IL_0055: ldarg.0
IL_0056: call virtual Verse.Map Verse.Thing::get_Map()
IL_005B: call static System.Collections.Generic.List`1<Verse.Thing>
Verse.GridsUtility::GetThingList(Verse.IntVec3 c, Verse.Map map)
IL_0060: stloc.s 4 (System.Collections.Generic.List`1[Verse.Thing])
IL_0062: ldc.i4.0
IL_0063: stloc.s 5 (System.Int32)
IL_0065: br => Label3
IL_006A: Label6
IL_006A: ldloc.s 4 (System.Collections.Generic.List`1[Verse.Thing])
IL_006C: ldloc.s 5 (System.Int32)
IL_006E: callvirt virtual Verse.Thing
System.Collections.Generic.List`1<Verse.Thing>::get_Item(System.Int32 index)
IL_0073: stloc.s 6 (Verse.Thing)
IL_0075: ldloc.s 6 (Verse.Thing)
IL_0077: ldfld Verse.ThingDef Verse.Thing::def
IL_007C: call static System.Boolean
RimWorld.Building_NutrientPasteDispenser::IsAcceptableFeedstock(Verse.ThingDef def)
IL_0081: brfalse => Label4
IL_0086: ldloc.s 6 (Verse.Thing)
IL_0088: stloc.2
IL_0089: Label4
IL_0089: ldloc.s 6 (Verse.Thing)
IL_008B: call static System.Boolean
RimWorld.StorageGroupUtility::IsHopper(Verse.Thing thing)
IL_0090: brfalse => Label5
IL_0095: ldloc.s 6 (Verse.Thing)
IL_0097: stloc.3
IL_0098: Label5
IL_0098: ldloc.s 5 (System.Int32)
IL_009A: ldc.i4.1
IL_009B: add
IL_009C: stloc.s 5 (System.Int32)
IL_009E: Label3
IL_009E: ldloc.s 5 (System.Int32)
IL_00A0: ldloc.s 4 (System.Collections.Generic.List`1[Verse.Thing])
IL_00A2: callvirt virtual System.Int32
System.Collections.Generic.List`1<Verse.Thing>::get_Count()
IL_00A7: blt => Label6
IL_00AC: ldloc.2
IL_00AD: brfalse => Label7
IL_00B2: ldloc.3
IL_00B3: brfalse => Label8
IL_00B8: ldloc.0
IL_00B9: ldloc.2
IL_00BA: ldfld System.Int32 Verse.Thing::stackCount
IL_00BF: conv.r4
IL_00C0: ldloc.2
IL_00C1: ldsfld RimWorld.StatDef RimWorld.StatDefOf::Nutrition
IL_00C6: ldc.i4.1
IL_00C7: ldc.i4.m1
IL_00C8: call static System.Single
RimWorld.StatExtension::GetStatValue(Verse.Thing thing, RimWorld.StatDef stat,
System.Boolean applyPostProcess, System.Int32 cacheStaleAfterTicks)
IL_00CD: mul
IL_00CE: add
IL_00CF: stloc.0
IL_00D0: Label7
IL_00D0: Label8
IL_00D0: ldloc.0
IL_00D1: ldarg.0
IL_00D2: ldfld Verse.ThingDef Verse.Thing::def
IL_00D7: ldfld RimWorld.BuildingProperties Verse.ThingDef::building
IL_00DC: ldfld System.Single
RimWorld.BuildingProperties::nutritionCostPerDispense
IL_00E1: blt.un => Label9
IL_00E6: ldc.i4.1
IL_00E7: br => Label11
IL_00EC: Label9
IL_00EC: ldloc.1
IL_00ED: ldc.i4.1
IL_00EE: add
IL_00EF: stloc.1
IL_00F0: Label2
IL_00F0: ldloc.1
IL_00F1: ldarg.0
IL_00F2: call System.Collections.Generic.List`1<Verse.IntVec3>
RimWorld.Building_NutrientPasteDispenser::get_AdjCellsCardinalInBounds()
IL_00F7: callvirt virtual System.Int32
System.Collections.Generic.List`1<Verse.IntVec3>::get_Count()
IL_00FC: blt => Label10
IL_0101: ldc.i4.0
IL_0102: // end original
IL_0102: Label11
IL_0102: stloc 7 (System.Boolean)
IL_0106: Label0
IL_0106: ldloc 7 (System.Boolean)
IL_010A: ret
DONE

### Patch: System.Collections.Generic.List`1<Verse.Thing>


RimWorld.Alert_PasteDispenserNeedsHopper::get_BadDispensers()
### Replacement: static System.Collections.Generic.List`1<Verse.Thing>
RimWorld.Alert_PasteDispenserNeedsHopper::RimWorld.Alert_PasteDispenserNeedsHopper.
get_BadDispensers_Patch1(RimWorld.Alert_PasteDispenserNeedsHopper this)
IL_0000: Local var 0: System.Collections.Generic.List`1<Verse.Map>
IL_0000: Local var 1: System.Int32
IL_0000: Local var 2: System.Collections.Generic.List`1/Enumerator<Verse.Thing>
IL_0000: Local var 3: Verse.Thing
IL_0000: Local var 4: Verse.Thing
IL_0000: Local var 5: System.Boolean
IL_0000: Local var 6: System.Collections.Generic.List`1/Enumerator<Verse.IntVec3>
IL_0000: Local var 7: System.Collections.Generic.List`1<Verse.Thing>
IL_0000: Local var 8: System.Boolean
IL_0000: ldnull
IL_0001: stloc 7 (System.Collections.Generic.List`1[Verse.Thing])
IL_0005: ldc.i4 0
IL_000A: stloc 8 (System.Boolean)
IL_000E: ldc.i4.1
IL_000F: stloc 8 (System.Boolean)
IL_0013: ldloc 8 (System.Boolean)
IL_0017: brfalse => Label1
IL_001C: ldarg.0
IL_001D: ldloca 7 (System.Collections.Generic.List`1[Verse.Thing])
IL_0021: call static System.Boolean
RimFridge.Patch_Alert_PasteDispenserNeedsHopper_BadDispensers_Getter::Prefix(RimWor
ld.Alert_PasteDispenserNeedsHopper __instance, System.Collections.Generic.List`1&
__result)
IL_0026: stloc 8 (System.Boolean)
IL_002A: Label1
IL_002A: nop
IL_002B: ldloc 8 (System.Boolean)
IL_002F: brfalse => Label0
IL_0034: // start original
IL_0034: ldarg.0
IL_0035: ldfld System.Collections.Generic.List`1<Verse.Thing>
RimWorld.Alert_PasteDispenserNeedsHopper::badDispensersResult
IL_003A: callvirt virtual System.Void
System.Collections.Generic.List`1<Verse.Thing>::Clear()
IL_003F: call static System.Collections.Generic.List`1<Verse.Map>
Verse.Find::get_Maps()
IL_0044: stloc.0
IL_0045: ldc.i4.0
IL_0046: stloc.1
IL_0047: br => Label2
IL_004C: Label13
IL_004C: ldloc.0
IL_004D: ldloc.1
IL_004E: callvirt virtual Verse.Map
System.Collections.Generic.List`1<Verse.Map>::get_Item(System.Int32 index)
IL_0053: ldfld Verse.ListerThings Verse.Map::listerThings
IL_0058: ldc.i4.s 52
IL_005A: callvirt System.Collections.Generic.List`1<Verse.Thing>
Verse.ListerThings::ThingsInGroup(Verse.ThingRequestGroup group)
IL_005F: callvirt System.Collections.Generic.Enumerator<Verse.Thing>
System.Collections.Generic.List`1<Verse.Thing>::GetEnumerator()
IL_0064: stloc.2
.try
{
IL_0065: br => Label3
IL_006A: Label11
IL_006A: ldloca.s 2
(System.Collections.Generic.List`1+Enumerator[Verse.Thing])
IL_006C: call virtual Verse.Thing
System.Collections.Generic.Enumerator<Verse.Thing>::get_Current()
IL_0071: stloc.3
IL_0072: ldc.i4.0
IL_0073: stloc.s 5 (System.Boolean)
IL_0075: ldloc.3
IL_0076: castclass RimWorld.Building_NutrientPasteDispenser
IL_007B: callvirt System.Collections.Generic.List`1<Verse.IntVec3>
RimWorld.Building_NutrientPasteDispenser::get_AdjCellsCardinalInBounds()
IL_0080: callvirt System.Collections.Generic.Enumerator<Verse.IntVec3>
System.Collections.Generic.List`1<Verse.IntVec3>::GetEnumerator()
IL_0085: stloc.s 6
(System.Collections.Generic.List`1+Enumerator[Verse.IntVec3])
.try
{
IL_0087: br => Label4
IL_008C: Label8
IL_008C: ldloca.s 6
(System.Collections.Generic.List`1+Enumerator[Verse.IntVec3])
IL_008E: call virtual Verse.IntVec3
System.Collections.Generic.Enumerator<Verse.IntVec3>::get_Current()
IL_0093: ldloc.3
IL_0094: callvirt virtual Verse.Map Verse.Thing::get_Map()
IL_0099: call static Verse.Building
Verse.GridsUtility::GetEdifice(Verse.IntVec3 c, Verse.Map map)
IL_009E: stloc.s 4 (Verse.Thing)
IL_00A0: ldloc.s 4 (Verse.Thing)
IL_00A2: brfalse => Label5
IL_00A7: ldloc.s 4 (Verse.Thing)
IL_00A9: call static System.Boolean
RimWorld.StorageGroupUtility::IsHopper(Verse.Thing thing)
IL_00AE: brfalse => Label6
IL_00B3: ldc.i4.1
IL_00B4: stloc.s 5 (System.Boolean)
IL_00B6: leave => Label7
IL_00BB: Label4
IL_00BB: Label5
IL_00BB: Label6
IL_00BB: ldloca.s 6
(System.Collections.Generic.List`1+Enumerator[Verse.IntVec3])
IL_00BD: call virtual System.Boolean
System.Collections.Generic.Enumerator<Verse.IntVec3>::MoveNext()
IL_00C2: brtrue => Label8
IL_00C7: leave => Label9
IL_00CC: leave => (autogenerated)
} // end try
.finally
{
IL_00D1: ldloca.s 6
(System.Collections.Generic.List`1+Enumerator[Verse.IntVec3])
IL_00D3: constrained.
System.Collections.Generic.List`1+Enumerator[Verse.IntVec3]
IL_00D9: callvirt abstract virtual System.Void
System.IDisposable::Dispose()
IL_00DE: endfinally
IL_00DF: leave => (autogenerated)
} // end handler
IL_00E0: Label7
IL_00E0: Label9
IL_00E0: ldloc.s 5 (System.Boolean)
IL_00E2: brtrue => Label10
IL_00E7: ldarg.0
IL_00E8: ldfld System.Collections.Generic.List`1<Verse.Thing>
RimWorld.Alert_PasteDispenserNeedsHopper::badDispensersResult
IL_00ED: ldloc.3
IL_00EE: callvirt virtual System.Void
System.Collections.Generic.List`1<Verse.Thing>::Add(Verse.Thing item)
IL_00F3: Label3
IL_00F3: Label10
IL_00F3: ldloca.s 2
(System.Collections.Generic.List`1+Enumerator[Verse.Thing])
IL_00F5: call virtual System.Boolean
System.Collections.Generic.Enumerator<Verse.Thing>::MoveNext()
IL_00FA: brtrue => Label11
IL_00FF: leave => Label12
IL_0104: leave => (autogenerated)
} // end try
.finally
{
IL_0109: ldloca.s 2
(System.Collections.Generic.List`1+Enumerator[Verse.Thing])
IL_010B: constrained.
System.Collections.Generic.List`1+Enumerator[Verse.Thing]
IL_0111: callvirt abstract virtual System.Void
System.IDisposable::Dispose()
IL_0116: endfinally
IL_0117: leave => (autogenerated)
} // end handler
IL_0118: Label12
IL_0118: ldloc.1
IL_0119: ldc.i4.1
IL_011A: add
IL_011B: stloc.1
IL_011C: Label2
IL_011C: ldloc.1
IL_011D: ldloc.0
IL_011E: callvirt virtual System.Int32
System.Collections.Generic.List`1<Verse.Map>::get_Count()
IL_0123: blt => Label13
IL_0128: ldarg.0
IL_0129: ldfld System.Collections.Generic.List`1<Verse.Thing>
RimWorld.Alert_PasteDispenserNeedsHopper::badDispensersResult
IL_012E: // end original
IL_012E: stloc 7 (System.Collections.Generic.List`1[Verse.Thing])
IL_0132: Label0
IL_0132: ldloc 7 (System.Collections.Generic.List`1[Verse.Thing])
IL_0136: ret
DONE
### Harmony id=net.littlewhitemouse.LWM.DeepStorage, version=2.2.2.0, location=C:\
Program Files (x86)\Steam\steamapps\common\data-000002130553D010,
env/clr=4.0.30319.42000, platform=Win32NT, ptrsize:runtime/env=8/Bits64, Windows
### Started from static System.Void LWM.DeepStorage.ModInit::.cctor(), location C:\
Program Files (x86)\Steam\steamapps\common\data-0000021309556B60
### At 2023-02-17 06.57.34
### Patch: static System.Boolean
Verse.AI.TantrumMentalStateUtility::CanSmash(Verse.Pawn pawn, Verse.Thing thing,
System.Boolean skipReachabilityCheck, System.Predicate`1<Verse.Thing>
customValidator, System.Int32 extraMinBuildingOrItemMarketValue)
### Replacement: static System.Boolean
Verse.AI.TantrumMentalStateUtility::Verse.AI.TantrumMentalStateUtility.CanSmash_Pat
ch1(Verse.Pawn pawn, Verse.Thing thing, System.Boolean skipReachabilityCheck,
System.Predicate`1<Verse.Thing> customValidator, System.Int32
extraMinBuildingOrItemMarketValue)
IL_0000: Local var 0: System.Boolean
IL_0000: ldc.i4 0
IL_0005: stloc 0 (System.Boolean)
IL_0009: // start original
IL_0009: ldarg.3
IL_000A: brfalse => Label0
IL_000F: ldarg.3
IL_0010: ldarg.1
IL_0011: callvirt virtual System.Boolean
System.Predicate`1<Verse.Thing>::Invoke(Verse.Thing obj)
IL_0016: brtrue => Label1
IL_001B: ldc.i4.0
IL_001C: br => Label20
IL_0021: Label0
IL_0021: ldarg.1
IL_0022: ldfld Verse.ThingDef Verse.Thing::def
IL_0027: callvirt System.Boolean Verse.ThingDef::get_IsBuildingArtificial()
IL_002C: brtrue => Label2
IL_0031: ldarg.1
IL_0032: ldfld Verse.ThingDef Verse.Thing::def
IL_0037: ldfld Verse.ThingCategory Verse.ThingDef::category
IL_003C: ldc.i4.2
IL_003D: beq => Label3
IL_0042: ldc.i4.0
IL_0043: br => Label21
IL_0048: Label1
IL_0048: Label2
IL_0048: Label3
IL_0048: ldarg.1
IL_0049: callvirt System.Boolean Verse.Thing::get_Destroyed()
IL_004E: brtrue => Label4
IL_0053: ldarg.1
IL_0054: callvirt System.Boolean Verse.Thing::get_Spawned()
IL_0059: brfalse => Label5
IL_005E: ldarg.1
IL_005F: ldarg.0
IL_0060: beq => Label6
IL_0065: ldarg.1
IL_0066: ldfld Verse.ThingDef Verse.Thing::def
IL_006B: ldfld Verse.ThingCategory Verse.ThingDef::category
IL_0070: ldc.i4.1
IL_0071: beq => Label7
IL_0076: ldarg.1
IL_0077: ldfld Verse.ThingDef Verse.Thing::def
IL_007C: ldfld System.Boolean Verse.ThingDef::useHitPoints
IL_0081: brfalse => Label8
IL_0086: Label7
IL_0086: ldarg.1
IL_0087: ldfld Verse.ThingDef Verse.Thing::def
IL_008C: ldfld Verse.ThingCategory Verse.ThingDef::category
IL_0091: ldc.i4.1
IL_0092: beq => Label9
IL_0097: ldarg.1
IL_0098: ldfld Verse.ThingDef Verse.Thing::def
IL_009D: callvirt System.Boolean Verse.ThingDef::get_CanHaveFaction()
IL_00A2: brfalse => Label10
IL_00A7: ldarg.1
IL_00A8: callvirt virtual RimWorld.Faction Verse.Thing::get_Faction()
IL_00AD: ldarg.0
IL_00AE: callvirt virtual RimWorld.Faction Verse.Thing::get_Faction()
IL_00B3: bne.un => Label11
IL_00B8: Label9
IL_00B8: Label10
IL_00B8: ldarg.1
IL_00B9: ldfld Verse.ThingDef Verse.Thing::def
IL_00BE: ldfld Verse.ThingCategory Verse.ThingDef::category
IL_00C3: ldc.i4.2
IL_00C4: bne.un => Label12
IL_00C9: ldarg.1
IL_00CA: callvirt System.Single Verse.Thing::get_MarketValue()
IL_00CF: ldarg.1
IL_00D0: ldfld System.Int32 Verse.Thing::stackCount
IL_00D5: conv.r4
IL_00D6: mul
IL_00D7: ldc.r4 75
IL_00DC: blt => Label13
IL_00E1: Label12
IL_00E1: ldarg.1
IL_00E2: ldfld Verse.ThingDef Verse.Thing::def
IL_00E7: ldfld Verse.ThingCategory Verse.ThingDef::category
IL_00EC: ldc.i4.1
IL_00ED: bne.un => Label14
IL_00F2: ldarg.1
IL_00F3: castclass Verse.Pawn
IL_00F8: callvirt System.Boolean Verse.Pawn::get_Downed()
IL_00FD: brtrue => Label15
IL_0102: Label14
IL_0102: ldarg.1
IL_0103: ldfld Verse.ThingDef Verse.Thing::def
IL_0108: ldfld Verse.ThingCategory Verse.ThingDef::category
IL_010D: ldc.i4.2
IL_010E: beq => Label16
IL_0113: ldarg.1
IL_0114: ldfld Verse.ThingDef Verse.Thing::def
IL_0119: ldfld Verse.ThingCategory Verse.ThingDef::category
IL_011E: ldc.i4.3
IL_011F: bne.un => Label17
IL_0124: Label16
IL_0124: ldarg.1
IL_0125: callvirt System.Single Verse.Thing::get_MarketValue()
IL_012A: ldarg.1
IL_012B: ldfld System.Int32 Verse.Thing::stackCount
IL_0130: conv.r4
IL_0131: mul
IL_0132: ldarg.s 4
IL_0134: conv.r4
IL_0135: blt => Label18
IL_013A: Label17
IL_013A: ldarg.2
IL_013B: brtrue => Label19
IL_0140: ldarg.0
IL_0141: ldarg.1
IL_0142: call static Verse.LocalTargetInfo
Verse.LocalTargetInfo::op_Implicit(Verse.Thing t)
IL_0147: ldc.i4.2
IL_0148: ldc.i4.3
IL_0149: ldc.i4.0
IL_014A: ldc.i4.0
IL_014B: ldc.i4.0
IL_014C: call static System.Boolean
Verse.ReachabilityUtility::CanReach(Verse.Pawn pawn, Verse.LocalTargetInfo dest,
Verse.AI.PathEndMode peMode, Verse.Danger maxDanger, System.Boolean canBashDoors,
System.Boolean canBashFences, Verse.TraverseMode mode)
IL_0151: br => Label22
IL_0156: Label19
IL_0156: ldc.i4.1
IL_0157: br => Label23
IL_015C: Label4
IL_015C: Label5
IL_015C: Label6
IL_015C: Label8
IL_015C: Label11
IL_015C: Label13
IL_015C: Label15
IL_015C: Label18
IL_015C: ldc.i4.0
IL_015D: // end original
IL_015D: Label20
IL_015D: Label21
IL_015D: Label22
IL_015D: Label23
IL_015D: stloc 0 (System.Boolean)
IL_0161: ldarg 0
IL_0165: ldarg 1
IL_0169: ldloca 0 (System.Boolean)
IL_016D: call static System.Void
LWM.DeepStorage.Patch_TantrumMentalStateUtility_CanSmash::AfterCanSmash(Verse.Pawn
pawn, Verse.Thing thing, System.Boolean& __result)
IL_0172: ldloc 0 (System.Boolean)
IL_0176: ret
DONE

### Patch: static Verse.AI.Toil


Verse.AI.Toils_Haul::PlaceHauledThingInCell(Verse.AI.TargetIndex cellInd,
Verse.AI.Toil nextToilOnPlaceFailOrIncomplete, System.Boolean storageMode,
System.Boolean tryStoreInSameStorageIfSpotCantHoldWholeStack)
### Replacement: static Verse.AI.Toil
Verse.AI.Toils_Haul::Verse.AI.Toils_Haul.PlaceHauledThingInCell_Patch2(Verse.AI.Tar
getIndex cellInd, Verse.AI.Toil nextToilOnPlaceFailOrIncomplete, System.Boolean
storageMode, System.Boolean tryStoreInSameStorageIfSpotCantHoldWholeStack)
IL_0000: Local var 0: Verse.AI.Toils_Haul/<>c__DisplayClass6_0
IL_0000: Local var 1: Verse.AI.Toil
IL_0000: ldnull
IL_0001: stloc 1 (Verse.AI.Toil)
IL_0005: // start original
IL_0005: newobj System.Void Verse.AI.<>c__DisplayClass6_0::.ctor()
IL_000A: stloc.0
IL_000B: ldloc.0
IL_000C: ldarg.0
IL_000D: stfld Verse.AI.TargetIndex Verse.AI.<>c__DisplayClass6_0::cellInd
IL_0012: ldloc.0
IL_0013: ldarg.2
IL_0014: stfld System.Boolean Verse.AI.<>c__DisplayClass6_0::storageMode
IL_0019: ldloc.0
IL_001A: ldarg.1
IL_001B: stfld Verse.AI.Toil
Verse.AI.<>c__DisplayClass6_0::nextToilOnPlaceFailOrIncomplete
IL_0020: ldloc.0
IL_0021: ldarg.3
IL_0022: stfld System.Boolean
Verse.AI.<>c__DisplayClass6_0::tryStoreInSameStorageIfSpotCantHoldWholeStack
IL_0027: ldloc.0
IL_0028: ldstr "PlaceHauledThingInCell"
IL_002D: call static Verse.AI.Toil Verse.ToilMaker::MakeToil(System.String
debugName)
IL_0032: stfld Verse.AI.Toil Verse.AI.<>c__DisplayClass6_0::toil
IL_0037: ldloc.0
IL_0038: ldfld Verse.AI.Toil Verse.AI.<>c__DisplayClass6_0::toil
IL_003D: ldloc.0
IL_003E: ldftn System.Void
Verse.AI.<>c__DisplayClass6_0::<PlaceHauledThingInCell>b__0()
IL_0044: newobj System.Void System.Action::.ctor(System.Object object,
System.IntPtr method)
IL_0049: stfld System.Action Verse.AI.Toil::initAction
IL_004E: ldloc.0
IL_004F: ldfld Verse.AI.Toil Verse.AI.<>c__DisplayClass6_0::toil
IL_0054: // end original
IL_0054: stloc 1 (Verse.AI.Toil)
IL_0058: ldloc 1 (Verse.AI.Toil)
IL_005C: call static System.Void
AllowTool.Patches.ToilsHaul_PlaceInCell_Patch::ClearHaulUrgently(Verse.AI.Toil
__result)
IL_0061: ldloc 1 (Verse.AI.Toil)
IL_0065: ldarg 0
IL_0069: call static System.Void
LWM.DeepStorage.Patch_PlaceHauledThingInCell_Toil::Postfix(Verse.AI.Toil __result,
Verse.AI.TargetIndex cellInd)
IL_006E: ldloc 1 (Verse.AI.Toil)
IL_0072: ret
DONE

### Patch: static System.Boolean


Verse.CompressibilityDeciderUtility::IsSaveCompressible(Verse.Thing t)
### Replacement: static System.Boolean
Verse.CompressibilityDeciderUtility::Verse.CompressibilityDeciderUtility.IsSaveComp
ressible_Patch2(Verse.Thing t)
IL_0000: Local var 0: System.Boolean
IL_0000: Local var 1: System.Collections.Generic.List`1<Verse.Map>
IL_0000: Local var 2: System.Int32
IL_0000: Local var 3: System.Boolean
IL_0000: ldc.i4 0
IL_0005: stloc 3 (System.Boolean)
IL_0009: // start original
IL_0009: ldsfld Verse.ScribeSaver Verse.Scribe::saver
IL_000E: ldfld System.Boolean Verse.ScribeSaver::savingForDebug
IL_0013: brfalse => Label0
IL_0018: ldc.i4.0
IL_0019: br => Label12
IL_001E: Label0
IL_001E: ldarg.0
IL_001F: ldfld Verse.ThingDef Verse.Thing::def
IL_0024: ldfld System.Boolean Verse.ThingDef::saveCompressible
IL_0029: brtrue => Label1
IL_002E: ldc.i4.0
IL_002F: br => Label13
IL_0034: Label1
IL_0034: ldarg.0
IL_0035: ldfld Verse.ThingDef Verse.Thing::def
IL_003A: ldfld System.Boolean Verse.ThingDef::useHitPoints
IL_003F: brfalse => Label2
IL_0044: ldarg.0
IL_0045: callvirt virtual System.Int32 Verse.Thing::get_HitPoints()
IL_004A: ldarg.0
IL_004B: callvirt System.Int32 Verse.Thing::get_MaxHitPoints()
IL_0050: beq => Label3
IL_0055: ldc.i4.0
IL_0056: br => Label14
IL_005B: Label2
IL_005B: Label3
IL_005B: ldarg.0
IL_005C: callvirt System.Boolean Verse.Thing::get_Spawned()
IL_0061: brtrue => Label4
IL_0066: ldc.i4.0
IL_0067: br => Label15
IL_006C: Label4
IL_006C: ldarg.0
IL_006D: callvirt virtual Verse.IntVec3 Verse.Thing::get_Position()
IL_0072: ldarg.0
IL_0073: callvirt virtual Verse.Map Verse.Thing::get_Map()
IL_0078: call static System.Int32
Verse.GridsUtility::GetMaxItemsAllowedInCell(Verse.IntVec3 c, Verse.Map map)
IL_007D: ldc.i4.1
IL_007E: ble => Label5
IL_0083: ldarg.0
IL_0084: ldfld Verse.ThingDef Verse.Thing::def
IL_0089: ldfld Verse.ThingCategory Verse.ThingDef::category
IL_008E: ldc.i4.2
IL_008F: bne.un => Label6
IL_0094: ldc.i4.0
IL_0095: br => Label16
IL_009A: Label5
IL_009A: Label6
IL_009A: ldc.i4.0
IL_009B: stloc.0
IL_009C: call static System.Collections.Generic.List`1<Verse.Map>
Verse.Find::get_Maps()
IL_00A1: stloc.1
IL_00A2: ldc.i4.0
IL_00A3: stloc.2
IL_00A4: br => Label7
IL_00A9: Label10
IL_00A9: ldloc.1
IL_00AA: ldloc.2
IL_00AB: callvirt virtual Verse.Map
System.Collections.Generic.List`1<Verse.Map>::get_Item(System.Int32 index)
IL_00B0: ldfld Verse.MapFileCompressor Verse.Map::compressor
IL_00B5: brfalse => Label8
IL_00BA: ldc.i4.1
IL_00BB: stloc.0
IL_00BC: ldloc.1
IL_00BD: ldloc.2
IL_00BE: callvirt virtual Verse.Map
System.Collections.Generic.List`1<Verse.Map>::get_Item(System.Int32 index)
IL_00C3: ldfld Verse.MapFileCompressor Verse.Map::compressor
IL_00C8: ldfld Verse.CompressibilityDecider
Verse.MapFileCompressor::compressibilityDecider
IL_00CD: ldarg.0
IL_00CE: callvirt System.Boolean
Verse.CompressibilityDecider::IsReferenced(Verse.Thing th)
IL_00D3: brfalse => Label9
IL_00D8: ldc.i4.0
IL_00D9: br => Label17
IL_00DE: Label8
IL_00DE: Label9
IL_00DE: ldloc.2
IL_00DF: ldc.i4.1
IL_00E0: add
IL_00E1: stloc.2
IL_00E2: Label7
IL_00E2: ldloc.2
IL_00E3: ldloc.1
IL_00E4: callvirt virtual System.Int32
System.Collections.Generic.List`1<Verse.Map>::get_Count()
IL_00E9: blt => Label10
IL_00EE: ldloc.0
IL_00EF: brtrue => Label11
IL_00F4: ldstr "Called IsSaveCompressible but there are no maps with
compressor != null. This should never happen. It probably means that we\'re not
saving any map at the moment?"
IL_00F9: ldc.i4 1935111328
IL_00FE: call static System.Void Verse.Log::ErrorOnce(System.String text,
System.Int32 key)
IL_0103: Label11
IL_0103: ldc.i4.1
IL_0104: // end original
IL_0104: Label12
IL_0104: Label13
IL_0104: Label14
IL_0104: Label15
IL_0104: Label16
IL_0104: Label17
IL_0104: stloc 3 (System.Boolean)
IL_0108: ldloca 3 (System.Boolean)
IL_010C: ldarg 0
IL_0110: call static System.Void
ExtendedStorage.Patches.CompressibilityDeciderUtility_IsSaveCompressible::Postfix(S
ystem.Boolean& __result, Verse.Thing t)
IL_0115: ldloca 3 (System.Boolean)
IL_0119: ldarg 0
IL_011D: call static System.Void
LWM.DeepStorage.Patch_IsSaveCompressible::Postfix(System.Boolean& __result,
Verse.Thing t)
IL_0122: ldloc 3 (System.Boolean)
IL_0126: ret
DONE

### Patch: static Verse.AI.Job


Verse.AI.HaulAIUtility::HaulToCellStorageJob(Verse.Pawn p, Verse.Thing t,
Verse.IntVec3 storeCell, System.Boolean fitInStoreCell)
### Replacement: static Verse.AI.Job
Verse.AI.HaulAIUtility::Verse.AI.HaulAIUtility.HaulToCellStorageJob_Patch0(Verse.Pa
wn p, Verse.Thing t, Verse.IntVec3 storeCell, System.Boolean fitInStoreCell)
IL_0000: Local var 0: Verse.AI.Job
IL_0000: Local var 1: RimWorld.ISlotGroup
IL_0000: Local var 2: RimWorld.ISlotGroup
IL_0000: Local var 3: RimWorld.ISlotGroup
IL_0000: Local var 4: System.Int32
IL_0000: Local var 5: System.Single
IL_0000: Local var 6: System.Collections.Generic.List`1<Verse.IntVec3>
IL_0000: Local var 7: System.Int32
IL_0000: Local var 8: System.Boolean
IL_0000: // start original
IL_0000: ldsfld Verse.JobDef RimWorld.JobDefOf::HaulToCell
IL_0005: ldarg.1
IL_0006: call static Verse.LocalTargetInfo
Verse.LocalTargetInfo::op_Implicit(Verse.Thing t)
IL_000B: ldarg.2
IL_000C: call static Verse.LocalTargetInfo
Verse.LocalTargetInfo::op_Implicit(Verse.IntVec3 c)
IL_0011: call static Verse.AI.Job Verse.JobMaker::MakeJob(Verse.JobDef def,
Verse.LocalTargetInfo targetA, Verse.LocalTargetInfo targetB)
IL_0016: stloc.0
IL_0017: ldarg.0
IL_0018: callvirt virtual Verse.Map Verse.Thing::get_Map()
IL_001D: ldfld RimWorld.HaulDestinationManager
Verse.Map::haulDestinationManager
IL_0022: ldarg.2
IL_0023: callvirt RimWorld.SlotGroup
RimWorld.HaulDestinationManager::SlotGroupAt(Verse.IntVec3 loc)
IL_0028: stloc.1
IL_0029: ldloc.1
IL_002A: call static System.Boolean
LWM.DeepStorage.Utils::CanStoreMoreThanOneThingIn(RimWorld.SlotGroup slotGroup)
IL_002F: stloc 8 (System.Boolean)
IL_0033: ldloc.1
IL_0034: callvirt abstract virtual RimWorld.StorageGroup
RimWorld.ISlotGroup::get_StorageGroup()
IL_0039: stloc.3
IL_003A: ldloc.3
IL_003B: dup
IL_003C: brtrue => Label0
IL_0041: pop
IL_0042: ldloc.1
IL_0043: Label0
IL_0043: stloc.2
IL_0044: ldloc.2
IL_0045: brfalse => Label1
IL_004A: ldloc 8 (System.Boolean)
IL_004E: brfalse => Label12
IL_0053: ldarg.0
IL_0054: callvirt virtual Verse.Map Verse.Thing::get_Map()
IL_0059: ldarg.2
IL_005A: ldarg.1
IL_005B: ldfld Verse.ThingDef Verse.Thing::def
IL_0060: callvirt static Verse.Thing
LWM.DeepStorage.Patch_HaulToCellStorageJob::NullOrLastThingAt(Verse.Map map,
Verse.IntVec3 c, Verse.ThingDef def)
IL_0065: brfalse => Label2
IL_006A: br => Label13
IL_006F: Label12
IL_006F: ldarg.0
IL_0070: callvirt virtual Verse.Map Verse.Thing::get_Map()
IL_0075: ldfld Verse.ThingGrid Verse.Map::thingGrid
IL_007A: ldarg.2
IL_007B: ldarg.1
IL_007C: ldfld Verse.ThingDef Verse.Thing::def
IL_0081: callvirt Verse.Thing Verse.ThingGrid::ThingAt(Verse.IntVec3 c,
Verse.ThingDef def)
IL_0086: brfalse => Label2
IL_008B: Label13
IL_008B: ldarg.3
IL_008C: brfalse => Label3
IL_0091: ldloc.0
IL_0092: ldarg.2
IL_0093: ldarg.0
IL_0094: callvirt virtual Verse.Map Verse.Thing::get_Map()
IL_0099: ldarg.1
IL_009A: ldfld Verse.ThingDef Verse.Thing::def
IL_009F: call static System.Int32
Verse.GridsUtility::GetItemStackSpaceLeftFor(Verse.IntVec3 c, Verse.Map map,
Verse.ThingDef itemDef)
IL_00A4: stfld System.Int32 Verse.AI.Job::count
IL_00A9: br => Label4
IL_00AE: Label3
IL_00AE: ldloc.0
IL_00AF: ldarg.1
IL_00B0: ldfld Verse.ThingDef Verse.Thing::def
IL_00B5: ldfld System.Int32 Verse.ThingDef::stackLimit
IL_00BA: stfld System.Int32 Verse.AI.Job::count
IL_00BF: br => Label5
IL_00C4: Label2
IL_00C4: ldloc.0
IL_00C5: ldc.i4 99999
IL_00CA: stfld System.Int32 Verse.AI.Job::count
IL_00CF: Label4
IL_00CF: Label5
IL_00CF: ldc.i4.0
IL_00D0: stloc.s 4 (System.Int32)
IL_00D2: ldarg.0
IL_00D3: ldsfld RimWorld.StatDef RimWorld.StatDefOf::CarryingCapacity
IL_00D8: ldc.i4.1
IL_00D9: ldc.i4.m1
IL_00DA: call static System.Single
RimWorld.StatExtension::GetStatValue(Verse.Thing thing, RimWorld.StatDef stat,
System.Boolean applyPostProcess, System.Int32 cacheStaleAfterTicks)
IL_00DF: stloc.s 5 (System.Single)
IL_00E1: ldloc.2
IL_00E2: callvirt abstract virtual
System.Collections.Generic.List`1<Verse.IntVec3>
RimWorld.ISlotGroup::get_CellsList()
IL_00E7: stloc.s 6 (System.Collections.Generic.List`1[Verse.IntVec3])
IL_00E9: ldc.i4.0
IL_00EA: stloc.s 7 (System.Int32)
IL_00EC: br => Label6
IL_00F1: Label10
IL_00F1: ldloc.s 6 (System.Collections.Generic.List`1[Verse.IntVec3])
IL_00F3: ldloc.s 7 (System.Int32)
IL_00F5: callvirt virtual Verse.IntVec3
System.Collections.Generic.List`1<Verse.IntVec3>::get_Item(System.Int32 index)
IL_00FA: ldarg.0
IL_00FB: callvirt virtual Verse.Map Verse.Thing::get_Map()
IL_0100: ldarg.1
IL_0101: ldarg.0
IL_0102: ldarg.0
IL_0103: callvirt virtual RimWorld.Faction Verse.Thing::get_Faction()
IL_0108: call static System.Boolean
RimWorld.StoreUtility::IsGoodStoreCell(Verse.IntVec3 c, Verse.Map map, Verse.Thing
t, Verse.Pawn carrier, RimWorld.Faction faction)
IL_010D: brfalse => Label7
IL_0112: ldloc.s 4 (System.Int32)
IL_0114: ldloc.s 6 (System.Collections.Generic.List`1[Verse.IntVec3])
IL_0116: ldloc.s 7 (System.Int32)
IL_0118: callvirt virtual Verse.IntVec3
System.Collections.Generic.List`1<Verse.IntVec3>::get_Item(System.Int32 index)
IL_011D: ldarg.0
IL_011E: callvirt virtual Verse.Map Verse.Thing::get_Map()
IL_0123: ldarg.1
IL_0124: ldfld Verse.ThingDef Verse.Thing::def
IL_0129: call static System.Int32
Verse.GridsUtility::GetItemStackSpaceLeftFor(Verse.IntVec3 c, Verse.Map map,
Verse.ThingDef itemDef)
IL_012E: add
IL_012F: stloc.s 4 (System.Int32)
IL_0131: ldloc.s 4 (System.Int32)
IL_0133: ldloc.0
IL_0134: ldfld System.Int32 Verse.AI.Job::count
IL_0139: bge => Label8
IL_013E: ldloc.s 4 (System.Int32)
IL_0140: conv.r4
IL_0141: ldloc.s 5 (System.Single)
IL_0143: bge => Label9
IL_0148: Label7
IL_0148: ldloc.s 7 (System.Int32)
IL_014A: ldc.i4.1
IL_014B: add
IL_014C: stloc.s 7 (System.Int32)
IL_014E: Label6
IL_014E: ldloc.s 7 (System.Int32)
IL_0150: ldloc.s 6 (System.Collections.Generic.List`1[Verse.IntVec3])
IL_0152: callvirt virtual System.Int32
System.Collections.Generic.List`1<Verse.IntVec3>::get_Count()
IL_0157: blt => Label10
IL_015C: Label8
IL_015C: Label9
IL_015C: ldloc.0
IL_015D: ldloc.0
IL_015E: ldfld System.Int32 Verse.AI.Job::count
IL_0163: ldloc.s 4 (System.Int32)
IL_0165: call static System.Int32 UnityEngine.Mathf::Min(System.Int32 a,
System.Int32 b)
IL_016A: stfld System.Int32 Verse.AI.Job::count
IL_016F: br => Label11
IL_0174: Label1
IL_0174: ldloc.0
IL_0175: ldc.i4 99999
IL_017A: stfld System.Int32 Verse.AI.Job::count
IL_017F: Label11
IL_017F: ldloc.0
IL_0180: ldc.i4.1
IL_0181: stfld System.Boolean Verse.AI.Job::haulOpportunisticDuplicates
IL_0186: ldloc.0
IL_0187: ldc.i4.1
IL_0188: stfld Verse.AI.HaulMode Verse.AI.Job::haulMode
IL_018D: ldloc.0
IL_018E: // end original
IL_018E: ret
DONE

### Patch: System.Void RimWorld.Selector::HandleMapClicks()


### Replacement: static System.Void
RimWorld.Selector::RimWorld.Selector.HandleMapClicks_Patch1(RimWorld.Selector this)
IL_0000: Local var 0: Verse.Thing
IL_0000: Local var 1: System.Boolean
IL_0000: ldc.i4 0
IL_0005: stloc 1 (System.Boolean)
IL_0009: ldc.i4.1
IL_000A: stloc 1 (System.Boolean)
IL_000E: ldloc 1 (System.Boolean)
IL_0012: brfalse => Label1
IL_0017: ldarg.0
IL_0018: ldarg.0
IL_0019: ldfld System.Collections.Generic.List`1<System.Object>
RimWorld.Selector::selected
IL_001E: call static System.Boolean
LWM.DeepStorage.Patch_HandleMapClicks::Prefix(RimWorld.Selector __instance,
System.Collections.Generic.List`1<System.Object> ___selected)
IL_0023: stloc 1 (System.Boolean)
IL_0027: Label1
IL_0027: nop
IL_0028: ldloc 1 (System.Boolean)
IL_002C: brfalse => Label0
IL_0031: // start original
IL_0031: call static UnityEngine.Event UnityEngine.Event::get_current()
IL_0036: callvirt UnityEngine.EventType UnityEngine.Event::get_type()
IL_003B: brtrue => Label2
IL_0040: call static UnityEngine.Event UnityEngine.Event::get_current()
IL_0045: callvirt System.Int32 UnityEngine.Event::get_button()
IL_004A: brtrue => Label3
IL_004F: call static UnityEngine.Event UnityEngine.Event::get_current()
IL_0054: callvirt System.Int32 UnityEngine.Event::get_clickCount()
IL_0059: ldc.i4.1
IL_005A: bne.un => Label4
IL_005F: ldarg.0
IL_0060: ldfld RimWorld.DragBox RimWorld.Selector::dragBox
IL_0065: ldc.i4.1
IL_0066: stfld System.Boolean RimWorld.DragBox::active
IL_006B: ldarg.0
IL_006C: ldfld RimWorld.DragBox RimWorld.Selector::dragBox
IL_0071: call static UnityEngine.Vector3 Verse.UI::MouseMapPosition()
IL_0076: stfld UnityEngine.Vector3 RimWorld.DragBox::start
IL_007B: Label4
IL_007B: call static UnityEngine.Event UnityEngine.Event::get_current()
IL_0080: callvirt System.Int32 UnityEngine.Event::get_clickCount()
IL_0085: ldc.i4.2
IL_0086: bne.un => Label5
IL_008B: ldarg.0
IL_008C: call System.Void
RimWorld.Selector::SelectAllMatchingObjectUnderMouseOnScreen()
IL_0091: Label5
IL_0091: call static UnityEngine.Event UnityEngine.Event::get_current()
IL_0096: callvirt System.Void UnityEngine.Event::Use()
IL_009B: Label3
IL_009B: call static UnityEngine.Event UnityEngine.Event::get_current()
IL_00A0: callvirt System.Int32 UnityEngine.Event::get_button()
IL_00A5: ldc.i4.1
IL_00A6: bne.un => Label6
IL_00AB: ldarg.0
IL_00AC: ldfld System.Collections.Generic.List`1<System.Object>
RimWorld.Selector::selected
IL_00B1: callvirt virtual System.Int32
System.Collections.Generic.List`1<System.Object>::get_Count()
IL_00B6: ldc.i4.0
IL_00B7: ble => Label7
IL_00BC: ldarg.0
IL_00BD: ldfld System.Collections.Generic.List`1<System.Object>
RimWorld.Selector::selected
IL_00C2: callvirt virtual System.Int32
System.Collections.Generic.List`1<System.Object>::get_Count()
IL_00C7: ldc.i4.1
IL_00C8: bne.un => Label8
IL_00CD: ldarg.0
IL_00CE: ldfld System.Collections.Generic.List`1<System.Object>
RimWorld.Selector::selected
IL_00D3: ldc.i4.0
IL_00D4: callvirt virtual System.Object
System.Collections.Generic.List`1<System.Object>::get_Item(System.Int32 index)
IL_00D9: isinst Verse.Pawn
IL_00DE: brfalse => Label9
IL_00E3: ldarg.0
IL_00E4: ldfld System.Collections.Generic.List`1<System.Object>
RimWorld.Selector::selected
IL_00E9: ldc.i4.0
IL_00EA: callvirt virtual System.Object
System.Collections.Generic.List`1<System.Object>::get_Item(System.Int32 index)
IL_00EF: castclass Verse.Pawn
IL_00F4: call static System.Void
RimWorld.FloatMenuMakerMap::TryMakeFloatMenu(Verse.Pawn pawn)
IL_00F9: br => Label10
IL_00FE: Label9
IL_00FE: ldarg.0
IL_00FF: ldfld System.Collections.Generic.List`1<System.Object>
RimWorld.Selector::selected
IL_0104: ldc.i4.0
IL_0105: callvirt virtual System.Object
System.Collections.Generic.List`1<System.Object>::get_Item(System.Int32 index)
IL_010A: isinst Verse.Thing
IL_010F: dup
IL_0110: stloc.0
IL_0111: brfalse => Label11
IL_0116: ldloc.0
IL_0117: call static System.Void
RimWorld.FloatMenuMakerMap::TryMakeFloatMenu_NonPawn(Verse.Thing selectedThing)
IL_011C: br => Label12
IL_0121: Label8
IL_0121: ldarg.0
IL_0122: call System.Collections.Generic.List`1<Verse.Pawn>
RimWorld.Selector::get_SelectedPawns()
IL_0127: call static System.Boolean
RimWorld.FloatMenuMakerMap::TryMakeMultiSelectFloatMenu(System.Collections.Generic.
List`1<Verse.Pawn> pawns)
IL_012C: brtrue => Label13
IL_0131: ldarg.0
IL_0132: call System.Void
RimWorld.Selector::MassTakeFirstAutoTakeableOptionOrGoto()
IL_0137: Label10
IL_0137: Label11
IL_0137: Label12
IL_0137: Label13
IL_0137: call static UnityEngine.Event UnityEngine.Event::get_current()
IL_013C: callvirt System.Void UnityEngine.Event::Use()
IL_0141: Label2
IL_0141: Label6
IL_0141: Label7
IL_0141: call static UnityEngine.Event UnityEngine.Event::get_current()
IL_0146: callvirt UnityEngine.EventType UnityEngine.Event::get_rawType()
IL_014B: ldc.i4.1
IL_014C: bne.un => Label14
IL_0151: call static UnityEngine.Event UnityEngine.Event::get_current()
IL_0156: callvirt System.Int32 UnityEngine.Event::get_button()
IL_015B: brtrue => Label15
IL_0160: ldarg.0
IL_0161: ldfld RimWorld.DragBox RimWorld.Selector::dragBox
IL_0166: ldfld System.Boolean RimWorld.DragBox::active
IL_016B: brfalse => Label16
IL_0170: ldarg.0
IL_0171: ldfld RimWorld.DragBox RimWorld.Selector::dragBox
IL_0176: ldc.i4.0
IL_0177: stfld System.Boolean RimWorld.DragBox::active
IL_017C: ldarg.0
IL_017D: ldfld RimWorld.DragBox RimWorld.Selector::dragBox
IL_0182: callvirt System.Boolean RimWorld.DragBox::get_IsValid()
IL_0187: brtrue => Label17
IL_018C: ldarg.0
IL_018D: call System.Void RimWorld.Selector::SelectUnderMouse()
IL_0192: br => Label18
IL_0197: Label17
IL_0197: ldarg.0
IL_0198: call System.Void RimWorld.Selector::SelectInsideDragBox()
IL_019D: br => Label19
IL_01A2: Label15
IL_01A2: call static UnityEngine.Event UnityEngine.Event::get_current()
IL_01A7: callvirt System.Int32 UnityEngine.Event::get_button()
IL_01AC: ldc.i4.1
IL_01AD: bne.un => Label20
IL_01B2: ldarg.0
IL_01B3: ldfld RimWorld.MultiPawnGotoController
RimWorld.Selector::gotoController
IL_01B8: callvirt System.Boolean RimWorld.MultiPawnGotoController::get_Active()
IL_01BD: brfalse => Label21
IL_01C2: ldarg.0
IL_01C3: ldfld RimWorld.MultiPawnGotoController
RimWorld.Selector::gotoController
IL_01C8: callvirt System.Void
RimWorld.MultiPawnGotoController::FinalizeInteraction()
IL_01CD: Label16
IL_01CD: Label18
IL_01CD: Label19
IL_01CD: Label20
IL_01CD: Label21
IL_01CD: call static UnityEngine.Event UnityEngine.Event::get_current()
IL_01D2: callvirt System.Void UnityEngine.Event::Use()
IL_01D7: Label14
IL_01D7: ldarg.0
IL_01D8: ldfld RimWorld.MultiPawnGotoController
RimWorld.Selector::gotoController
IL_01DD: callvirt System.Boolean RimWorld.MultiPawnGotoController::get_Active()
IL_01E2: brfalse => Label22
IL_01E7: ldc.i4.1
IL_01E8: call static System.Boolean
UnityEngine.Input::GetMouseButton(System.Int32 button)
IL_01ED: brtrue => Label23
IL_01F2: ldc.i4.2
IL_01F3: call static System.Boolean
UnityEngine.Input::GetMouseButton(System.Int32 button)
IL_01F8: brtrue => Label24
IL_01FD: ldarg.0
IL_01FE: ldfld RimWorld.MultiPawnGotoController
RimWorld.Selector::gotoController
IL_0203: callvirt System.Void
RimWorld.MultiPawnGotoController::FinalizeInteraction()
IL_0208: Label22
IL_0208: Label23
IL_0208: Label24
IL_0208: ldarg.0
IL_0209: ldfld RimWorld.MultiPawnGotoController
RimWorld.Selector::gotoController
IL_020E: callvirt System.Boolean RimWorld.MultiPawnGotoController::get_Active()
IL_0213: brfalse => Label25
IL_0218: ldarg.0
IL_0219: ldfld RimWorld.MultiPawnGotoController
RimWorld.Selector::gotoController
IL_021E: callvirt System.Void
RimWorld.MultiPawnGotoController::ProcessInputEvents()
IL_0223: // end original
IL_0223: Label25
IL_0223: Label0
IL_0223: ret
DONE

### Patch: System.Void RimWorld.Selector::Select(System.Object obj, System.Boolean


playSound, System.Boolean forceDesignatorDeselect)
### Replacement: static System.Void
RimWorld.Selector::RimWorld.Selector.Select_Patch1(RimWorld.Selector this,
System.Object obj, System.Boolean playSound, System.Boolean
forceDesignatorDeselect)
IL_0000: // start original
IL_0000: ldarg.0
IL_0001: ldarg.1
IL_0002: ldarg.2
IL_0003: ldarg.3
IL_0004: call System.Void RimWorld.Selector::SelectInternal(System.Object
obj, System.Boolean playSound, System.Boolean forceDesignatorDeselect)
IL_0009: // end original
IL_0009: ldarg.0
IL_000A: call static System.Void
LWM.DeepStorage.Open_DS_Tab_On_Select::Postfix(RimWorld.Selector __instance)
IL_000F: ret
DONE

### Patch: static System.Boolean


RimWorld.StoreUtility::IsGoodStoreCell(Verse.IntVec3 c, Verse.Map map, Verse.Thing
t, Verse.Pawn carrier, RimWorld.Faction faction)
### Replacement: static System.Boolean
RimWorld.StoreUtility::RimWorld.StoreUtility.IsGoodStoreCell_Patch1(Verse.IntVec3
c, Verse.Map map, Verse.Thing t, Verse.Pawn carrier, RimWorld.Faction faction)
IL_0000: Local var 0: System.Collections.Generic.List`1<Verse.Thing>
IL_0000: Local var 1: System.Int32
IL_0000: Local var 2: Verse.IntVec3
IL_0000: Local var 3: Verse.Thing
IL_0000: Local var 4: System.Boolean
IL_0000: ldc.i4 0
IL_0005: stloc 4 (System.Boolean)
IL_0009: // start original
IL_0009: ldarg.3
IL_000A: brfalse => Label0
IL_000F: ldarg.0
IL_0010: ldarg.3
IL_0011: call static System.Boolean
RimWorld.ForbidUtility::IsForbidden(Verse.IntVec3 c, Verse.Pawn pawn)
IL_0016: brfalse => Label1
IL_001B: ldc.i4.0
IL_001C: br => Label19
IL_0021: Label0
IL_0021: Label1
IL_0021: ldarg.0
IL_0022: ldarg.1
IL_0023: ldarg.2
IL_0024: call static System.Boolean
RimWorld.StoreUtility::NoStorageBlockersIn(Verse.IntVec3 c, Verse.Map map,
Verse.Thing thing)
IL_0029: brtrue => Label2
IL_002E: ldc.i4.0
IL_002F: br => Label20
IL_0034: Label2
IL_0034: ldarg.3
IL_0035: brfalse => Label3
IL_003A: ldarg.3
IL_003B: ldarg.0
IL_003C: call static Verse.LocalTargetInfo
Verse.LocalTargetInfo::op_Implicit(Verse.IntVec3 c)
IL_0041: call static System.Boolean
Verse.AI.ReservationUtility::CanReserveNew(Verse.Pawn p, Verse.LocalTargetInfo
target)
IL_0046: brtrue => Label4
IL_004B: ldc.i4.0
IL_004C: br => Label21
IL_0051: Label3
IL_0051: ldarg.s 4
IL_0053: brfalse => Label5
IL_0058: ldarg.1
IL_0059: ldfld Verse.AI.ReservationManager Verse.Map::reservationManager
IL_005E: ldarg.0
IL_005F: call static Verse.LocalTargetInfo
Verse.LocalTargetInfo::op_Implicit(Verse.IntVec3 c)
IL_0064: ldarg.s 4
IL_0066: callvirt System.Boolean
Verse.AI.ReservationManager::IsReservedByAnyoneOf(Verse.LocalTargetInfo target,
RimWorld.Faction faction)
IL_006B: brfalse => Label6
IL_0070: ldc.i4.0
IL_0071: br => Label22
IL_0076: Label4
IL_0076: Label5
IL_0076: Label6
IL_0076: ldarg.0
IL_0077: ldarg.1
IL_0078: call static System.Boolean
RimWorld.FireUtility::ContainsStaticFire(Verse.IntVec3 c, Verse.Map map)
IL_007D: brfalse => Label7
IL_0082: ldc.i4.0
IL_0083: br => Label23
IL_0088: Label7
IL_0088: ldarg.0
IL_0089: ldarg.1
IL_008A: call static System.Collections.Generic.List`1<Verse.Thing>
Verse.GridsUtility::GetThingList(Verse.IntVec3 c, Verse.Map map)
IL_008F: stloc.0
IL_0090: ldc.i4.0
IL_0091: stloc.1
IL_0092: br => Label8
IL_0097: Label11
IL_0097: ldloc.0
IL_0098: ldloc.1
IL_0099: callvirt virtual Verse.Thing
System.Collections.Generic.List`1<Verse.Thing>::get_Item(System.Int32 index)
IL_009E: isinst RimWorld.IConstructible
IL_00A3: brfalse => Label9
IL_00A8: ldloc.0
IL_00A9: ldloc.1
IL_00AA: callvirt virtual Verse.Thing
System.Collections.Generic.List`1<Verse.Thing>::get_Item(System.Int32 index)
IL_00AF: ldarg.2
IL_00B0: call static System.Boolean
RimWorld.GenConstruct::BlocksConstruction(Verse.Thing constructible, Verse.Thing t)
IL_00B5: brfalse => Label10
IL_00BA: ldc.i4.0
IL_00BB: br => Label24
IL_00C0: Label9
IL_00C0: Label10
IL_00C0: ldloc.1
IL_00C1: ldc.i4.1
IL_00C2: add
IL_00C3: stloc.1
IL_00C4: Label8
IL_00C4: ldloc.1
IL_00C5: ldloc.0
IL_00C6: callvirt virtual System.Int32
System.Collections.Generic.List`1<Verse.Thing>::get_Count()
IL_00CB: blt => Label11
IL_00D0: ldarg.3
IL_00D1: brfalse => Label12
IL_00D6: ldarg.2
IL_00D7: callvirt Verse.Thing Verse.Thing::get_SpawnedParentOrMe()
IL_00DC: dup
IL_00DD: stloc.3
IL_00DE: brfalse => Label13
IL_00E3: ldloc.3
IL_00E4: ldarg.2
IL_00E5: beq => Label14
IL_00EA: ldloc.3
IL_00EB: ldfld Verse.ThingDef Verse.Thing::def
IL_00F0: ldfld System.Boolean Verse.ThingDef::hasInteractionCell
IL_00F5: brfalse => Label15
IL_00FA: ldloc.3
IL_00FB: callvirt virtual Verse.IntVec3 Verse.Thing::get_InteractionCell()
IL_0100: stloc.2
IL_0101: br => Label16
IL_0106: Label14
IL_0106: Label15
IL_0106: ldloc.3
IL_0107: callvirt virtual Verse.IntVec3 Verse.Thing::get_Position()
IL_010C: stloc.2
IL_010D: br => Label17
IL_0112: Label13
IL_0112: ldarg.3
IL_0113: callvirt Verse.IntVec3 Verse.Thing::get_PositionHeld()
IL_0118: stloc.2
IL_0119: Label16
IL_0119: Label17
IL_0119: ldarg.3
IL_011A: callvirt virtual Verse.Map Verse.Thing::get_Map()
IL_011F: ldfld Verse.Reachability Verse.Map::reachability
IL_0124: ldloc.2
IL_0125: ldarg.0
IL_0126: call static Verse.LocalTargetInfo
Verse.LocalTargetInfo::op_Implicit(Verse.IntVec3 c)
IL_012B: ldc.i4.3
IL_012C: ldarg.3
IL_012D: ldc.i4.3
IL_012E: ldc.i4.0
IL_012F: ldc.i4.0
IL_0130: ldc.i4.0
IL_0131: ldc.i4.0
IL_0132: call static Verse.TraverseParms Verse.TraverseParms::For(Verse.Pawn
pawn, Verse.Danger maxDanger, Verse.TraverseMode mode, System.Boolean canBashDoors,
System.Boolean alwaysUseAvoidGrid, System.Boolean canBashFences)
IL_0137: callvirt System.Boolean Verse.Reachability::CanReach(Verse.IntVec3
start, Verse.LocalTargetInfo dest, Verse.AI.PathEndMode peMode, Verse.TraverseParms
traverseParams)
IL_013C: brtrue => Label18
IL_0141: ldc.i4.0
IL_0142: br => Label25
IL_0147: Label12
IL_0147: Label18
IL_0147: ldc.i4.1
IL_0148: // end original
IL_0148: Label19
IL_0148: Label20
IL_0148: Label21
IL_0148: Label22
IL_0148: Label23
IL_0148: Label24
IL_0148: Label25
IL_0148: stloc 4 (System.Boolean)
IL_014C: ldloca 4 (System.Boolean)
IL_0150: ldarg 0
IL_0154: ldarg 1
IL_0158: ldarg 3
IL_015C: call static System.Void
LWM.DeepStorage.Patch_IsGoodStoreCell::Postfix(System.Boolean& __result,
Verse.IntVec3 c, Verse.Map map, Verse.Pawn carrier)
IL_0161: ldloc 4 (System.Boolean)
IL_0165: ret
DONE

### Patch: virtual System.Void Verse.SectionLayer_Things::Regenerate()


### Replacement: static System.Void
Verse.SectionLayer_Things::Verse.SectionLayer_Things.Regenerate_Patch0(Verse.Sectio
nLayer_Things this)
IL_0000: Local var 0: System.Collections.Generic.List`1<Verse.Thing>
IL_0000: Local var 1: Verse.CellRect/Enumerator
IL_0000: Local var 2: Verse.CellRect
IL_0000: Local var 3: Verse.IntVec3
IL_0000: Local var 4: System.Int32
IL_0000: Local var 5: System.Int32
IL_0000: Local var 6: Verse.Thing
IL_0000: // start original
IL_0000: ldarg.0
IL_0001: ldc.i4.s 127
IL_0003: call System.Void Verse.SectionLayer::ClearSubMeshes(Verse.MeshParts
parts)
IL_0008: ldarg.0
IL_0009: ldfld Verse.Section Verse.SectionLayer::section
IL_000E: callvirt Verse.CellRect Verse.Section::get_CellRect()
IL_0013: stloc.2
IL_0014: ldloca.s 2 (Verse.CellRect)
IL_0016: call Verse.Enumerator Verse.CellRect::GetEnumerator()
IL_001B: stloc.1
.try
{
IL_001C: br => Label0
IL_0021: Label12
IL_0021: ldloca.s 1 (Verse.CellRect+Enumerator)
IL_0023: call virtual Verse.IntVec3 Verse.Enumerator::get_Current()
IL_0028: stloc.3
IL_0029: ldarg.0
IL_002A: call Verse.Map Verse.SectionLayer::get_Map()
IL_002F: ldloc.3
IL_0030: call static System.Collections.Generic.List`1<Verse.Thing>
LWM.DeepStorage.PatchDisplay_SectionLayer_Things_Regenerate::ThingListToDisplay(Ver
se.Map map, Verse.IntVec3 loc)
IL_0035: stloc.0
IL_0036: ldloc.0
IL_0037: callvirt virtual System.Int32
System.Collections.Generic.List`1<Verse.Thing>::get_Count()
IL_003C: stloc.s 4 (System.Int32)
IL_003E: ldc.i4.0
IL_003F: stloc.s 5 (System.Int32)
IL_0041: br => Label1
IL_0046: Label11
IL_0046: ldloc.0
IL_0047: ldloc.s 5 (System.Int32)
IL_0049: callvirt virtual Verse.Thing
System.Collections.Generic.List`1<Verse.Thing>::get_Item(System.Int32 index)
IL_004E: stloc.s 6 (Verse.Thing)
IL_0050: ldloc.s 6 (Verse.Thing)
IL_0052: ldfld Verse.ThingDef Verse.Thing::def
IL_0057: ldfld System.Boolean Verse.ThingDef::seeThroughFog
IL_005C: brtrue => Label2
IL_0061: ldarg.0
IL_0062: call Verse.Map Verse.SectionLayer::get_Map()
IL_0067: ldfld Verse.FogGrid Verse.Map::fogGrid
IL_006C: ldfld System.Boolean[] Verse.FogGrid::fogGrid
IL_0071: ldloc.s 6 (Verse.Thing)
IL_0073: callvirt virtual Verse.IntVec3 Verse.Thing::get_Position()
IL_0078: ldarg.0
IL_0079: call Verse.Map Verse.SectionLayer::get_Map()
IL_007E: callvirt Verse.IntVec3 Verse.Map::get_Size()
IL_0083: ldfld System.Int32 Verse.IntVec3::x
IL_0088: call static System.Int32
Verse.CellIndicesUtility::CellToIndex(Verse.IntVec3 c, System.Int32 mapSizeX)
IL_008D: ldelem.u1
IL_008E: brtrue => Label3
IL_0093: Label2
IL_0093: ldloc.s 6 (Verse.Thing)
IL_0095: ldfld Verse.ThingDef Verse.Thing::def
IL_009A: ldfld Verse.DrawerType Verse.ThingDef::drawerType
IL_009F: brfalse => Label4
IL_00A4: ldloc.s 6 (Verse.Thing)
IL_00A6: ldfld Verse.ThingDef Verse.Thing::def
IL_00AB: ldfld Verse.DrawerType Verse.ThingDef::drawerType
IL_00B0: ldc.i4.1
IL_00B1: bne.un => Label5
IL_00B6: ldarg.0
IL_00B7: ldfld System.Boolean
Verse.SectionLayer_Things::requireAddToMapMesh
IL_00BC: brtrue => Label6
IL_00C1: Label5
IL_00C1: ldloc.s 6 (Verse.Thing)
IL_00C3: ldfld Verse.ThingDef Verse.Thing::def
IL_00C8: ldfld System.Single Verse.ThingDef::hideAtSnowDepth
IL_00CD: ldc.r4 1
IL_00D2: bge.un => Label7
IL_00D7: ldarg.0
IL_00D8: call Verse.Map Verse.SectionLayer::get_Map()
IL_00DD: ldfld Verse.SnowGrid Verse.Map::snowGrid
IL_00E2: ldloc.s 6 (Verse.Thing)
IL_00E4: callvirt virtual Verse.IntVec3 Verse.Thing::get_Position()
IL_00E9: callvirt System.Single Verse.SnowGrid::GetDepth(Verse.IntVec3 c)
IL_00EE: ldloc.s 6 (Verse.Thing)
IL_00F0: ldfld Verse.ThingDef Verse.Thing::def
IL_00F5: ldfld System.Single Verse.ThingDef::hideAtSnowDepth
IL_00FA: bgt => Label8
IL_00FF: Label7
IL_00FF: ldloc.s 6 (Verse.Thing)
IL_0101: callvirt virtual Verse.IntVec3 Verse.Thing::get_Position()
IL_0106: ldfld System.Int32 Verse.IntVec3::x
IL_010B: ldloc.3
IL_010C: ldfld System.Int32 Verse.IntVec3::x
IL_0111: bne.un => Label9
IL_0116: ldloc.s 6 (Verse.Thing)
IL_0118: callvirt virtual Verse.IntVec3 Verse.Thing::get_Position()
IL_011D: ldfld System.Int32 Verse.IntVec3::z
IL_0122: ldloc.3
IL_0123: ldfld System.Int32 Verse.IntVec3::z
IL_0128: bne.un => Label10
IL_012D: ldarg.0
IL_012E: ldloc.s 6 (Verse.Thing)
IL_0130: callvirt abstract virtual System.Void
Verse.SectionLayer_Things::TakePrintFrom(Verse.Thing t)
IL_0135: Label3
IL_0135: Label4
IL_0135: Label6
IL_0135: Label8
IL_0135: Label9
IL_0135: Label10
IL_0135: ldloc.s 5 (System.Int32)
IL_0137: ldc.i4.1
IL_0138: add
IL_0139: stloc.s 5 (System.Int32)
IL_013B: Label1
IL_013B: ldloc.s 5 (System.Int32)
IL_013D: ldloc.s 4 (System.Int32)
IL_013F: blt => Label11
IL_0144: Label0
IL_0144: ldloca.s 1 (Verse.CellRect+Enumerator)
IL_0146: call virtual System.Boolean Verse.Enumerator::MoveNext()
IL_014B: brtrue => Label12
IL_0150: leave => Label13
IL_0155: leave => (autogenerated)
} // end try
.finally
{
IL_015A: ldloca.s 1 (Verse.CellRect+Enumerator)
IL_015C: constrained. Verse.CellRect+Enumerator
IL_0162: callvirt abstract virtual System.Void
System.IDisposable::Dispose()
IL_0167: endfinally
IL_0168: leave => (autogenerated)
} // end handler
IL_0169: Label13
IL_0169: ldarg.0
IL_016A: ldc.i4.s 127
IL_016C: call System.Void Verse.SectionLayer::FinalizeMesh(Verse.MeshParts
tags)
IL_0171: // end original
IL_0171: ret
DONE

### Patch: virtual System.Void RimWorld.Building_Storage::SpawnSetup(Verse.Map map,


System.Boolean respawningAfterLoad)
### Replacement: static System.Void
RimWorld.Building_Storage::RimWorld.Building_Storage.SpawnSetup_Patch1(RimWorld.Bui
lding_Storage this, Verse.Map map, System.Boolean respawningAfterLoad)
IL_0000: Local var 0: RimWorld.StorageSettings
IL_0000: // start original
IL_0000: ldarg.0
IL_0001: ldnull
IL_0002: stfld System.Collections.Generic.List`1<Verse.IntVec3>
RimWorld.Building_Storage::cachedOccupiedCells
IL_0007: ldarg.0
IL_0008: ldarg.1
IL_0009: ldarg.2
IL_000A: call virtual System.Void Verse.Building::SpawnSetup(Verse.Map map,
System.Boolean respawningAfterLoad)
IL_000F: ldarg.0
IL_0010: ldfld RimWorld.StorageGroup RimWorld.Building_Storage::storageGroup
IL_0015: brfalse => Label0
IL_001A: ldarg.1
IL_001B: ldarg.0
IL_001C: ldfld RimWorld.StorageGroup RimWorld.Building_Storage::storageGroup
IL_0021: callvirt Verse.Map RimWorld.StorageGroup::get_Map()
IL_0026: beq => Label1
IL_002B: ldarg.0
IL_002C: ldfld RimWorld.StorageGroup RimWorld.Building_Storage::storageGroup
IL_0031: callvirt virtual RimWorld.StorageSettings
RimWorld.StorageGroup::GetStoreSettings()
IL_0036: stloc.0
IL_0037: ldarg.0
IL_0038: ldfld RimWorld.StorageGroup RimWorld.Building_Storage::storageGroup
IL_003D: ldarg.0
IL_003E: ldc.i4.1
IL_003F: callvirt System.Void
RimWorld.StorageGroup::RemoveMember(RimWorld.IStorageGroupMember member,
System.Boolean removeIfEmpty)
IL_0044: ldarg.0
IL_0045: ldnull
IL_0046: stfld RimWorld.StorageGroup RimWorld.Building_Storage::storageGroup
IL_004B: ldarg.0
IL_004C: ldfld RimWorld.StorageSettings RimWorld.Building_Storage::settings
IL_0051: ldloc.0
IL_0052: callvirt System.Void
RimWorld.StorageSettings::CopyFrom(RimWorld.StorageSettings other)
IL_0057: // end original
IL_0057: Label0
IL_0057: Label1
IL_0057: ldarg.0
IL_0058: ldarg 1
IL_005C: call static System.Void
LWM.DeepStorage.PatchDisplay_SpawnSetup::Postfix(RimWorld.Building_Storage
__instance, Verse.Map map)
IL_0061: ret
DONE

### Patch: virtual System.Void


RimWorld.Building_Storage::Notify_ReceivedThing(Verse.Thing newItem)
### Replacement: static System.Void
RimWorld.Building_Storage::RimWorld.Building_Storage.Notify_ReceivedThing_Patch1(Ri
mWorld.Building_Storage this, Verse.Thing newItem)
IL_0000: // start original
IL_0000: ldarg.0
IL_0001: call virtual RimWorld.Faction Verse.Thing::get_Faction()
IL_0006: call static RimWorld.Faction RimWorld.Faction::get_OfPlayer()
IL_000B: bne.un => Label0
IL_0010: ldarg.1
IL_0011: ldfld Verse.ThingDef Verse.Thing::def
IL_0016: ldfld RimWorld.ConceptDef
Verse.ThingDef::storedConceptLearnOpportunity
IL_001B: brfalse => Label1
IL_0020: ldarg.1
IL_0021: ldfld Verse.ThingDef Verse.Thing::def
IL_0026: ldfld RimWorld.ConceptDef
Verse.ThingDef::storedConceptLearnOpportunity
IL_002B: ldc.i4.0
IL_002C: call static System.Void
RimWorld.LessonAutoActivator::TeachOpportunity(RimWorld.ConceptDef conc,
RimWorld.OpportunityType opp)
IL_0031: // end original
IL_0031: Label0
IL_0031: Label1
IL_0031: ldarg.0
IL_0032: ldarg 1
IL_0036: call static System.Void
LWM.DeepStorage.PatchDisplay_Notify_ReceivedThing::Postfix(RimWorld.Building_Storag
e __instance, Verse.Thing newItem)
IL_003B: ret
DONE

### Patch: virtual System.Void Verse.Thing::DeSpawn(Verse.DestroyMode mode)


### Replacement: static System.Void
Verse.Thing::Verse.Thing.DeSpawn_Patch2(Verse.Thing this, Verse.DestroyMode mode)
IL_0000: Local var 0: Verse.Map
IL_0000: Local var 1: Verse.Region
IL_0000: Local var 2: Verse.Room
IL_0000: Local var 3: RimWorld.IHaulDestination
IL_0000: Local var 4: RimWorld.SlotGroup
IL_0000: ldarg.0
IL_0001: call static System.Void
Share_The_Load.DeSpawn_Patch::Prefix(Verse.Thing __instance)
IL_0006: ldarg.0
IL_0007: call static System.Void
LWM.DeepStorage.Cleanup_For_DeepStorage_Thing_At_DeSpawn::Prefix(Verse.Thing
__instance)
IL_000C: // start original
IL_000C: ldarg.0
IL_000D: call System.Boolean Verse.Thing::get_Destroyed()
IL_0012: brfalse => Label0
IL_0017: ldstr "Tried to despawn "
IL_001C: ldarg.0
IL_001D: call static System.String Verse.Gen::ToStringSafe(Verse.Thing obj)
IL_0022: ldstr " which is already destroyed."
IL_0027: call static System.String System.String::Concat(System.String str0,
System.String str1, System.String str2)
IL_002C: call static System.Void Verse.Log::Error(System.String text)
IL_0031: br => Label20
IL_0036: Label0
IL_0036: ldarg.0
IL_0037: call System.Boolean Verse.Thing::get_Spawned()
IL_003C: brtrue => Label1
IL_0041: ldstr "Tried to despawn "
IL_0046: ldarg.0
IL_0047: call static System.String Verse.Gen::ToStringSafe(Verse.Thing obj)
IL_004C: ldstr " which is not spawned."
IL_0051: call static System.String System.String::Concat(System.String str0,
System.String str1, System.String str2)
IL_0056: call static System.Void Verse.Log::Error(System.String text)
IL_005B: br => Label21
IL_0060: Label1
IL_0060: ldarg.0
IL_0061: call virtual Verse.Map Verse.Thing::get_Map()
IL_0066: stloc.0
IL_0067: ldloc.0
IL_0068: ldfld RimWorld.OverlayDrawer Verse.Map::overlayDrawer
IL_006D: ldarg.0
IL_006E: callvirt System.Void RimWorld.OverlayDrawer::DisposeHandle(Verse.Thing
thing)
IL_0073: ldarg.0
IL_0074: ldloc.0
IL_0075: call static System.Void
Verse.RegionListersUpdater::DeregisterInRegions(Verse.Thing thing, Verse.Map map)
IL_007A: ldloc.0
IL_007B: ldfld Verse.ThingOwner Verse.Map::spawnedThings
IL_0080: ldarg.0
IL_0081: callvirt abstract virtual System.Boolean
Verse.ThingOwner::Remove(Verse.Thing item)
IL_0086: pop
IL_0087: ldloc.0
IL_0088: ldfld Verse.ListerThings Verse.Map::listerThings
IL_008D: ldarg.0
IL_008E: callvirt System.Void Verse.ListerThings::Remove(Verse.Thing t)
IL_0093: ldloc.0
IL_0094: ldfld Verse.ThingGrid Verse.Map::thingGrid
IL_0099: ldarg.0
IL_009A: ldc.i4.0
IL_009B: callvirt System.Void Verse.ThingGrid::Deregister(Verse.Thing t,
System.Boolean doEvenIfDespawned)
IL_00A0: ldloc.0
IL_00A1: ldfld Verse.CoverGrid Verse.Map::coverGrid
IL_00A6: ldarg.0
IL_00A7: callvirt System.Void Verse.CoverGrid::DeRegister(Verse.Thing t)
IL_00AC: ldarg.0
IL_00AD: ldfld Verse.ThingDef Verse.Thing::def
IL_00B2: ldfld System.Boolean Verse.ThingDef::receivesSignals
IL_00B7: brfalse => Label2
IL_00BC: call static RimWorld.SignalManager Verse.Find::get_SignalManager()
IL_00C1: ldarg.0
IL_00C2: callvirt System.Void
RimWorld.SignalManager::DeregisterReceiver(RimWorld.ISignalReceiver receiver)
IL_00C7: Label2
IL_00C7: ldloc.0
IL_00C8: ldfld Verse.TooltipGiverList Verse.Map::tooltipGiverList
IL_00CD: ldarg.0
IL_00CE: callvirt System.Void
Verse.TooltipGiverList::Notify_ThingDespawned(Verse.Thing t)
IL_00D3: ldarg.0
IL_00D4: ldfld Verse.ThingDef Verse.Thing::def
IL_00D9: callvirt System.Boolean Verse.ThingDef::get_CanAffectLinker()
IL_00DE: brfalse => Label3
IL_00E3: ldloc.0
IL_00E4: ldfld Verse.LinkGrid Verse.Map::linkGrid
IL_00E9: ldarg.0
IL_00EA: callvirt System.Void
Verse.LinkGrid::Notify_LinkerCreatedOrDestroyed(Verse.Thing linker)
IL_00EF: ldloc.0
IL_00F0: ldfld Verse.MapDrawer Verse.Map::mapDrawer
IL_00F5: ldarg.0
IL_00F6: call virtual Verse.IntVec3 Verse.Thing::get_Position()
IL_00FB: ldc.i4.1
IL_00FC: ldc.i4.1
IL_00FD: ldc.i4.0
IL_00FE: callvirt System.Void Verse.MapDrawer::MapMeshDirty(Verse.IntVec3 loc,
Verse.MapMeshFlag dirtyFlags, System.Boolean regenAdjacentCells, System.Boolean
regenAdjacentSections)
IL_0103: Label3
IL_0103: call static RimWorld.Selector Verse.Find::get_Selector()
IL_0108: ldarg.0
IL_0109: callvirt System.Boolean RimWorld.Selector::IsSelected(System.Object obj)
IL_010E: brfalse => Label4
IL_0113: call static RimWorld.Selector Verse.Find::get_Selector()
IL_0118: ldarg.0
IL_0119: callvirt System.Void RimWorld.Selector::Deselect(System.Object obj)
IL_011E: call static RimWorld.MainButtonsRoot
Verse.Find::get_MainButtonsRoot()
IL_0123: ldfld RimWorld.MainTabsRoot RimWorld.MainButtonsRoot::tabs
IL_0128: callvirt System.Void
RimWorld.MainTabsRoot::Notify_SelectedObjectDespawned()
IL_012D: Label4
IL_012D: ldarg.0
IL_012E: ldloc.0
IL_012F: call System.Void Verse.Thing::DirtyMapMesh(Verse.Map map)
IL_0134: ldarg.0
IL_0135: ldfld Verse.ThingDef Verse.Thing::def
IL_013A: ldfld Verse.DrawerType Verse.ThingDef::drawerType
IL_013F: ldc.i4.2
IL_0140: beq => Label5
IL_0145: ldloc.0
IL_0146: ldfld Verse.DynamicDrawManager Verse.Map::dynamicDrawManager
IL_014B: ldarg.0
IL_014C: callvirt System.Void
Verse.DynamicDrawManager::DeRegisterDrawable(Verse.Thing t)
IL_0151: Label5
IL_0151: ldloc.0
IL_0152: ldfld Verse.RegionGrid Verse.Map::regionGrid
IL_0157: ldarg.0
IL_0158: call virtual Verse.IntVec3 Verse.Thing::get_Position()
IL_015D: callvirt Verse.Region
Verse.RegionGrid::GetValidRegionAt_NoRebuild(Verse.IntVec3 c)
IL_0162: stloc.1
IL_0163: ldloc.1
IL_0164: brfalse => Label6
IL_0169: ldloc.1
IL_016A: callvirt Verse.Room Verse.Region::get_Room()
IL_016F: br => Label7
IL_0174: Label6
IL_0174: ldnull
IL_0175: Label7
IL_0175: stloc.2
IL_0176: ldloc.2
IL_0177: brfalse => Label8
IL_017C: ldloc.2
IL_017D: ldarg.0
IL_017E: callvirt System.Void
Verse.Room::Notify_ContainedThingSpawnedOrDespawned(Verse.Thing th)
IL_0183: Label8
IL_0183: ldarg.0
IL_0184: ldfld Verse.ThingDef Verse.Thing::def
IL_0189: callvirt System.Boolean Verse.ThingDef::get_AffectsRegions()
IL_018E: brfalse => Label9
IL_0193: ldloc.0
IL_0194: ldfld Verse.RegionDirtyer Verse.Map::regionDirtyer
IL_0199: ldarg.0
IL_019A: callvirt System.Void
Verse.RegionDirtyer::Notify_ThingAffectingRegionsDespawned(Verse.Thing b)
IL_019F: Label9
IL_019F: ldarg.0
IL_01A0: ldfld Verse.ThingDef Verse.Thing::def
IL_01A5: ldfld System.Int32 Verse.BuildableDef::pathCost
IL_01AA: brtrue => Label10
IL_01AF: ldarg.0
IL_01B0: ldfld Verse.ThingDef Verse.Thing::def
IL_01B5: ldfld Verse.Traversability Verse.BuildableDef::passability
IL_01BA: ldc.i4.2
IL_01BB: bne.un => Label11
IL_01C0: Label10
IL_01C0: ldloc.0
IL_01C1: ldfld Verse.AI.Pathing Verse.Map::pathing
IL_01C6: ldarg.0
IL_01C7: callvirt System.Void
Verse.AI.Pathing::RecalculatePerceivedPathCostUnderThing(Verse.Thing thing)
IL_01CC: Label11
IL_01CC: ldarg.0
IL_01CD: ldfld Verse.ThingDef Verse.Thing::def
IL_01D2: callvirt System.Boolean Verse.ThingDef::get_AffectsReachability()
IL_01D7: brfalse => Label12
IL_01DC: ldloc.0
IL_01DD: ldfld Verse.Reachability Verse.Map::reachability
IL_01E2: callvirt System.Void Verse.Reachability::ClearCache()
IL_01E7: Label12
IL_01E7: call static Verse.TickManager Verse.Find::get_TickManager()
IL_01EC: ldarg.0
IL_01ED: callvirt System.Void
Verse.TickManager::DeRegisterAllTickabilityFor(Verse.Thing t)
IL_01F2: ldarg.0
IL_01F3: ldc.i4.m1
IL_01F4: stfld System.SByte Verse.Thing::mapIndexOrState
IL_01F9: ldarg.0
IL_01FA: ldfld Verse.ThingDef Verse.Thing::def
IL_01FF: ldfld Verse.ThingCategory Verse.ThingDef::category
IL_0204: ldc.i4.2
IL_0205: bne.un => Label13
IL_020A: ldloc.0
IL_020B: ldfld RimWorld.ListerHaulables Verse.Map::listerHaulables
IL_0210: ldarg.0
IL_0211: callvirt System.Void
RimWorld.ListerHaulables::Notify_DeSpawned(Verse.Thing t)
IL_0216: ldloc.0
IL_0217: ldfld RimWorld.ListerMergeables Verse.Map::listerMergeables
IL_021C: ldarg.0
IL_021D: callvirt System.Void
RimWorld.ListerMergeables::Notify_DeSpawned(Verse.Thing t)
IL_0222: Label13
IL_0222: ldloc.0
IL_0223: ldfld Verse.AI.AttackTargetsCache Verse.Map::attackTargetsCache
IL_0228: ldarg.0
IL_0229: callvirt System.Void
Verse.AI.AttackTargetsCache::Notify_ThingDespawned(Verse.Thing th)
IL_022E: ldloc.0
IL_022F: ldfld Verse.PhysicalInteractionReservationManager
Verse.Map::physicalInteractionReservationManager
IL_0234: ldarg.0
IL_0235: call static Verse.LocalTargetInfo
Verse.LocalTargetInfo::op_Implicit(Verse.Thing t)
IL_023A: callvirt System.Void
Verse.PhysicalInteractionReservationManager::ReleaseAllForTarget(Verse.LocalTargetI
nfo target)
IL_023F: ldarg.0
IL_0240: call static System.Void
RimWorld.StealAIDebugDrawer::Notify_ThingChanged(Verse.Thing thing)
IL_0245: ldarg.0
IL_0246: isinst RimWorld.IHaulDestination
IL_024B: stloc.3
IL_024C: ldloc.3
IL_024D: brfalse => Label14
IL_0252: ldloc.0
IL_0253: ldfld RimWorld.HaulDestinationManager
Verse.Map::haulDestinationManager
IL_0258: ldloc.3
IL_0259: callvirt System.Void
RimWorld.HaulDestinationManager::RemoveHaulDestination(RimWorld.IHaulDestination
haulDestination)
IL_025E: Label14
IL_025E: ldarg.0
IL_025F: isinst Verse.IThingHolder
IL_0264: brfalse => Label15
IL_0269: call static RimWorld.ColonistBar Verse.Find::get_ColonistBar()
IL_026E: brfalse => Label16
IL_0273: call static RimWorld.ColonistBar Verse.Find::get_ColonistBar()
IL_0278: callvirt System.Void RimWorld.ColonistBar::MarkColonistsDirty()
IL_027D: Label15
IL_027D: Label16
IL_027D: ldarg.0
IL_027E: ldfld Verse.ThingDef Verse.Thing::def
IL_0283: ldfld Verse.ThingCategory Verse.ThingDef::category
IL_0288: ldc.i4.2
IL_0289: bne.un => Label17
IL_028E: ldarg.0
IL_028F: call virtual Verse.IntVec3 Verse.Thing::get_Position()
IL_0294: ldloc.0
IL_0295: call static RimWorld.SlotGroup
RimWorld.StoreUtility::GetSlotGroup(Verse.IntVec3 c, Verse.Map map)
IL_029A: stloc.s 4 (RimWorld.SlotGroup)
IL_029C: ldloc.s 4 (RimWorld.SlotGroup)
IL_029E: brfalse => Label18
IL_02A3: ldloc.s 4 (RimWorld.SlotGroup)
IL_02A5: ldfld RimWorld.ISlotGroupParent RimWorld.SlotGroup::parent
IL_02AA: brfalse => Label19
IL_02AF: ldloc.s 4 (RimWorld.SlotGroup)
IL_02B1: ldfld RimWorld.ISlotGroupParent RimWorld.SlotGroup::parent
IL_02B6: ldarg.0
IL_02B7: callvirt abstract virtual System.Void
RimWorld.ISlotGroupParent::Notify_LostThing(Verse.Thing newItem)
IL_02BC: Label17
IL_02BC: Label18
IL_02BC: Label19
IL_02BC: ldarg.0
IL_02BD: ldfld System.Collections.Generic.List`1<System.String>
Verse.Thing::questTags
IL_02C2: ldstr "Despawned"
IL_02C7: ldarg.0
IL_02C8: ldstr "SUBJECT"
IL_02CD: call static Verse.NamedArgument
Verse.NamedArgumentUtility::Named(System.Object arg, System.String label)
IL_02D2: call static System.Void
RimWorld.QuestUtility::SendQuestTargetSignals(System.Collections.Generic.List`1<Sys
tem.String> questTags, System.String signalPart, Verse.NamedArgument arg1)
IL_02D7: // end original
IL_02D7: Label20
IL_02D7: Label21
IL_02D7: ret
DONE

### Patch: virtual System.Void Verse.Building::DeSpawn(Verse.DestroyMode mode)


### Replacement: static System.Void
Verse.Building::Verse.Building.DeSpawn_Patch1(Verse.Building this,
Verse.DestroyMode mode)
IL_0000: Local var 0: Verse.Map
IL_0000: Local var 1: Verse.CellRect
IL_0000: Local var 2: System.Int32
IL_0000: Local var 3: System.Int32
IL_0000: Local var 4: Verse.IntVec3
IL_0000: Local var 5: Verse.MapMeshFlag
IL_0000: Local var 6: Verse.CellRect/Enumerator
IL_0000: Local var 7: Verse.CellRect
IL_0000: Local var 8: Verse.IntVec3
IL_0000: Local var 9: RimWorld.CompLaunchable
IL_0000: Local var 10: Verse.IntVec3
IL_0000: Local var 11: System.Int32
IL_0000: Local var 12: System.Int32
IL_0000: Local var 13: Verse.Thing
IL_0000: Local var 14: Verse.Rot4
IL_0000: ldarg.0
IL_0001: call static System.Void
LWM.DeepStorage.Patch_Building_DeSpawn_For_Building_Storage::Prefix(Verse.Building
__instance)
IL_0006: // start original
IL_0006: ldarg.0
IL_0007: call virtual Verse.Map Verse.Thing::get_Map()
IL_000C: stloc.0
IL_000D: ldarg.0
IL_000E: ldarg.1
IL_000F: call virtual System.Void
Verse.ThingWithComps::DeSpawn(Verse.DestroyMode mode)
IL_0014: ldarg.0
IL_0015: ldfld Verse.ThingDef Verse.Thing::def
IL_001A: call static System.Boolean
Verse.EdificeUtility::IsEdifice(Verse.BuildableDef def)
IL_001F: brfalse => Label0
IL_0024: ldloc.0
IL_0025: ldfld Verse.EdificeGrid Verse.Map::edificeGrid
IL_002A: ldarg.0
IL_002B: callvirt System.Void Verse.EdificeGrid::DeRegister(Verse.Building ed)
IL_0030: ldarg.0
IL_0031: ldfld Verse.ThingDef Verse.Thing::def
IL_0036: callvirt Verse.FillCategory Verse.ThingDef::get_Fillage()
IL_003B: ldc.i4.2
IL_003C: bne.un => Label1
IL_0041: ldloc.0
IL_0042: ldfld Verse.TerrainGrid Verse.Map::terrainGrid
IL_0047: callvirt Verse.CellBoolDrawer Verse.TerrainGrid::get_Drawer()
IL_004C: callvirt System.Void Verse.CellBoolDrawer::SetDirty()
IL_0051: Label1
IL_0051: ldarg.0
IL_0052: ldfld Verse.ThingDef Verse.Thing::def
IL_0057: callvirt System.Boolean Verse.BuildableDef::get_AffectsFertility()
IL_005C: brfalse => Label2
IL_0061: ldloc.0
IL_0062: ldfld RimWorld.FertilityGrid Verse.Map::fertilityGrid
IL_0067: callvirt Verse.CellBoolDrawer RimWorld.FertilityGrid::get_Drawer()
IL_006C: callvirt System.Void Verse.CellBoolDrawer::SetDirty()
IL_0071: Label0
IL_0071: Label2
IL_0071: ldarg.1
IL_0072: ldc.i4.1
IL_0073: beq => Label3
IL_0078: ldarg.0
IL_0079: ldfld Verse.ThingDef Verse.Thing::def
IL_007E: callvirt System.Boolean Verse.ThingDef::get_MakeFog()
IL_0083: brfalse => Label4
IL_0088: ldloc.0
IL_0089: ldfld Verse.FogGrid Verse.Map::fogGrid
IL_008E: ldarg.0
IL_008F: call virtual Verse.IntVec3 Verse.Thing::get_Position()
IL_0094: callvirt System.Void
Verse.FogGrid::Notify_FogBlockerRemoved(Verse.IntVec3 c)
IL_0099: Label4
IL_0099: ldarg.0
IL_009A: ldfld Verse.ThingDef Verse.Thing::def
IL_009F: ldfld System.Boolean Verse.ThingDef::holdsRoof
IL_00A4: brfalse => Label5
IL_00A9: ldarg.0
IL_00AA: ldloc.0
IL_00AB: call static System.Void
Verse.RoofCollapseCellsFinder::Notify_RoofHolderDespawned(Verse.Thing t, Verse.Map
map)
IL_00B0: Label5
IL_00B0: ldarg.0
IL_00B1: ldfld Verse.ThingDef Verse.Thing::def
IL_00B6: callvirt System.Boolean Verse.ThingDef::get_IsSmoothable()
IL_00BB: brfalse => Label6
IL_00C0: ldarg.0
IL_00C1: ldloc.0
IL_00C2: call static System.Void
RimWorld.SmoothSurfaceDesignatorUtility::Notify_BuildingDespawned(Verse.Building b,
Verse.Map map)
IL_00C7: Label3
IL_00C7: Label6
IL_00C7: ldarg.0
IL_00C8: ldfld Verse.Sound.Sustainer Verse.Building::sustainerAmbient
IL_00CD: brfalse => Label7
IL_00D2: ldarg.0
IL_00D3: ldfld Verse.Sound.Sustainer Verse.Building::sustainerAmbient
IL_00D8: callvirt System.Void Verse.Sound.Sustainer::End()
IL_00DD: Label7
IL_00DD: ldarg.0
IL_00DE: call static Verse.CellRect Verse.GenAdj::OccupiedRect(Verse.Thing t)
IL_00E3: stloc.1
IL_00E4: ldloc.1
IL_00E5: ldfld System.Int32 Verse.CellRect::minZ
IL_00EA: stloc.2
IL_00EB: br => Label8
IL_00F0: Label13
IL_00F0: ldloc.1
IL_00F1: ldfld System.Int32 Verse.CellRect::minX
IL_00F6: stloc.3
IL_00F7: br => Label9
IL_00FC: Label12
IL_00FC: ldloca.s 4 (Verse.IntVec3)
IL_00FE: ldloc.3
IL_00FF: ldc.i4.0
IL_0100: ldloc.2
IL_0101: call System.Void Verse.IntVec3::.ctor(System.Int32 newX,
System.Int32 newY, System.Int32 newZ)
IL_0106: ldc.i4.4
IL_0107: stloc.s 5 (Verse.MapMeshFlag)
IL_0109: ldarg.0
IL_010A: ldfld Verse.ThingDef Verse.Thing::def
IL_010F: ldfld System.Boolean Verse.ThingDef::coversFloor
IL_0114: brfalse => Label10
IL_0119: ldloc.s 5 (Verse.MapMeshFlag)
IL_011B: ldc.i4.s 16
IL_011D: or
IL_011E: stloc.s 5 (Verse.MapMeshFlag)
IL_0120: Label10
IL_0120: ldarg.0
IL_0121: ldfld Verse.ThingDef Verse.Thing::def
IL_0126: callvirt Verse.FillCategory Verse.ThingDef::get_Fillage()
IL_012B: ldc.i4.2
IL_012C: bne.un => Label11
IL_0131: ldloc.s 5 (Verse.MapMeshFlag)
IL_0133: ldc.i4.s 32
IL_0135: or
IL_0136: stloc.s 5 (Verse.MapMeshFlag)
IL_0138: ldloc.s 5 (Verse.MapMeshFlag)
IL_013A: ldc.i4.s 64
IL_013C: or
IL_013D: stloc.s 5 (Verse.MapMeshFlag)
IL_013F: Label11
IL_013F: ldloc.0
IL_0140: ldfld Verse.MapDrawer Verse.Map::mapDrawer
IL_0145: ldloc.s 4 (Verse.IntVec3)
IL_0147: ldloc.s 5 (Verse.MapMeshFlag)
IL_0149: callvirt System.Void Verse.MapDrawer::MapMeshDirty(Verse.IntVec3 loc,
Verse.MapMeshFlag dirtyFlags)
IL_014E: ldloc.0
IL_014F: ldfld Verse.GlowGrid Verse.Map::glowGrid
IL_0154: ldloc.s 4 (Verse.IntVec3)
IL_0156: callvirt System.Void Verse.GlowGrid::MarkGlowGridDirty(Verse.IntVec3
loc)
IL_015B: ldloc.3
IL_015C: ldc.i4.1
IL_015D: add
IL_015E: stloc.3
IL_015F: Label9
IL_015F: ldloc.3
IL_0160: ldloc.1
IL_0161: ldfld System.Int32 Verse.CellRect::maxX
IL_0166: ble => Label12
IL_016B: ldloc.2
IL_016C: ldc.i4.1
IL_016D: add
IL_016E: stloc.2
IL_016F: Label8
IL_016F: ldloc.2
IL_0170: ldloc.1
IL_0171: ldfld System.Int32 Verse.CellRect::maxZ
IL_0176: ble => Label13
IL_017B: ldloc.0
IL_017C: ldfld Verse.ListerBuildings Verse.Map::listerBuildings
IL_0181: ldarg.0
IL_0182: callvirt System.Void Verse.ListerBuildings::Remove(Verse.Building b)
IL_0187: ldloc.0
IL_0188: ldfld RimWorld.ListerBuildingsRepairable
Verse.Map::listerBuildingsRepairable
IL_018D: ldarg.0
IL_018E: callvirt System.Void
RimWorld.ListerBuildingsRepairable::Notify_BuildingDeSpawned(Verse.Building b)
IL_0193: ldloc.0
IL_0194: ldfld RimWorld.ListerArtificialBuildingsForMeditation
Verse.Map::listerArtificialBuildingsForMeditation
IL_0199: ldarg.0
IL_019A: callvirt System.Void
RimWorld.ListerArtificialBuildingsForMeditation::Notify_BuildingDeSpawned(Verse.Bui
lding b)
IL_019F: ldloc.0
IL_01A0: ldfld RimWorld.ListerBuldingOfDefInProximity
Verse.Map::listerBuldingOfDefInProximity
IL_01A5: ldarg.0
IL_01A6: callvirt System.Void
RimWorld.ListerBuldingOfDefInProximity::Notify_BuildingDeSpawned(Verse.Building b)
IL_01AB: ldloc.0
IL_01AC: ldfld RimWorld.ListerBuildingWithTagInProximity
Verse.Map::listerBuildingWithTagInProximity
IL_01B1: ldarg.0
IL_01B2: callvirt System.Void
RimWorld.ListerBuildingWithTagInProximity::Notify_BuildingDeSpawned(Verse.Building
b)
IL_01B7: ldarg.0
IL_01B8: ldfld Verse.ThingDef Verse.Thing::def
IL_01BD: ldfld RimWorld.BuildingProperties Verse.ThingDef::building
IL_01C2: ldfld Verse.TerrainDef RimWorld.BuildingProperties::leaveTerrain
IL_01C7: brfalse => Label14
IL_01CC: call static Verse.ProgramState Verse.Current::get_ProgramState()
IL_01D1: ldc.i4.2
IL_01D2: bne.un => Label15
IL_01D7: ldarg.0
IL_01D8: ldfld System.Boolean Verse.Building::canChangeTerrainOnDestroyed
IL_01DD: brfalse => Label16
IL_01E2: ldarg.0
IL_01E3: call static Verse.CellRect Verse.GenAdj::OccupiedRect(Verse.Thing t)
IL_01E8: stloc.s 7 (Verse.CellRect)
IL_01EA: ldloca.s 7 (Verse.CellRect)
IL_01EC: call Verse.Enumerator Verse.CellRect::GetEnumerator()
IL_01F1: stloc.s 6 (Verse.CellRect+Enumerator)
.try
{
IL_01F3: br => Label17
IL_01F8: Label18
IL_01F8: ldloca.s 6 (Verse.CellRect+Enumerator)
IL_01FA: call virtual Verse.IntVec3 Verse.Enumerator::get_Current()
IL_01FF: stloc.s 8 (Verse.IntVec3)
IL_0201: ldloc.0
IL_0202: ldfld Verse.TerrainGrid Verse.Map::terrainGrid
IL_0207: ldloc.s 8 (Verse.IntVec3)
IL_0209: ldarg.0
IL_020A: ldfld Verse.ThingDef Verse.Thing::def
IL_020F: ldfld RimWorld.BuildingProperties Verse.ThingDef::building
IL_0214: ldfld Verse.TerrainDef
RimWorld.BuildingProperties::leaveTerrain
IL_0219: callvirt System.Void Verse.TerrainGrid::SetTerrain(Verse.IntVec3
c, Verse.TerrainDef newTerr)
IL_021E: Label17
IL_021E: ldloca.s 6 (Verse.CellRect+Enumerator)
IL_0220: call virtual System.Boolean Verse.Enumerator::MoveNext()
IL_0225: brtrue => Label18
IL_022A: leave => Label19
IL_022F: leave => (autogenerated)
} // end try
.finally
{
IL_0234: ldloca.s 6 (Verse.CellRect+Enumerator)
IL_0236: constrained. Verse.CellRect+Enumerator
IL_023C: callvirt abstract virtual System.Void
System.IDisposable::Dispose()
IL_0241: endfinally
IL_0242: leave => (autogenerated)
} // end handler
IL_0243: Label14
IL_0243: Label15
IL_0243: Label16
IL_0243: Label19
IL_0243: ldloc.0
IL_0244: ldfld Verse.DesignationManager Verse.Map::designationManager
IL_0249: ldarg.0
IL_024A: callvirt System.Void
Verse.DesignationManager::Notify_BuildingDespawned(Verse.Thing b)
IL_024F: ldarg.0
IL_0250: call static System.Boolean
Verse.GenGrid::CanBeSeenOver(Verse.Building b)
IL_0255: brtrue => Label20
IL_025A: ldloc.0
IL_025B: ldfld Verse.ExitMapGrid Verse.Map::exitMapGrid
IL_0260: callvirt System.Void Verse.ExitMapGrid::Notify_LOSBlockerDespawned()
IL_0265: Label20
IL_0265: ldarg.0
IL_0266: ldfld Verse.ThingDef Verse.Thing::def
IL_026B: ldfld RimWorld.BuildingProperties Verse.ThingDef::building
IL_0270: ldfld System.Boolean RimWorld.BuildingProperties::hasFuelingPort
IL_0275: brfalse => Label21
IL_027A: ldarg.0
IL_027B: call virtual Verse.IntVec3 Verse.Thing::get_Position()
IL_0280: ldarg.0
IL_0281: call Verse.Rot4 Verse.Thing::get_Rotation()
IL_0286: call static Verse.IntVec3
RimWorld.FuelingPortUtility::GetFuelingPortCell(Verse.IntVec3 center, Verse.Rot4
rot)
IL_028B: ldloc.0
IL_028C: call static RimWorld.CompLaunchable
RimWorld.FuelingPortUtility::LaunchableAt(Verse.IntVec3 c, Verse.Map map)
IL_0291: stloc.s 9 (RimWorld.CompLaunchable)
IL_0293: ldloc.s 9 (RimWorld.CompLaunchable)
IL_0295: brfalse => Label22
IL_029A: ldloc.s 9 (RimWorld.CompLaunchable)
IL_029C: callvirt System.Void
RimWorld.CompLaunchable::Notify_FuelingPortSourceDeSpawned()
IL_02A1: Label21
IL_02A1: Label22
IL_02A1: ldloc.0
IL_02A2: ldfld Verse.AI.AvoidGrid Verse.Map::avoidGrid
IL_02A7: ldarg.0
IL_02A8: callvirt System.Void
Verse.AI.AvoidGrid::Notify_BuildingDespawned(Verse.Building building)
IL_02AD: ldloc.0
IL_02AE: ldfld Verse.AI.Group.LordManager Verse.Map::lordManager
IL_02B3: ldarg.0
IL_02B4: callvirt System.Void
Verse.AI.Group.LordManager::Notify_BuildingDespawned(Verse.Building b)
IL_02B9: ldloc.0
IL_02BA: ldfld Verse.AnimalPenManager Verse.Map::animalPenManager
IL_02BF: ldarg.0
IL_02C0: callvirt System.Void
Verse.AnimalPenManager::Notify_BuildingDespawned(Verse.Building building)
IL_02C5: ldarg.0
IL_02C6: callvirt virtual System.Int32 Verse.Building::get_MaxItemsInCell()
IL_02CB: ldc.i4.2
IL_02CC: blt => Label23
IL_02D1: ldarg.0
IL_02D2: call static Verse.CellRect Verse.GenAdj::OccupiedRect(Verse.Thing t)
IL_02D7: stloc.s 7 (Verse.CellRect)
IL_02D9: ldloca.s 7 (Verse.CellRect)
IL_02DB: call Verse.Enumerator Verse.CellRect::GetEnumerator()
IL_02E0: stloc.s 6 (Verse.CellRect+Enumerator)
.try
{
IL_02E2: br => Label24
IL_02E7: Label31
IL_02E7: ldloca.s 6 (Verse.CellRect+Enumerator)
IL_02E9: call virtual Verse.IntVec3 Verse.Enumerator::get_Current()
IL_02EE: stloc.s 10 (Verse.IntVec3)
IL_02F0: ldloc.s 10 (Verse.IntVec3)
IL_02F2: ldloc.0
IL_02F3: call static System.Int32
Verse.GridsUtility::GetItemCount(Verse.IntVec3 c, Verse.Map map)
IL_02F8: stloc.s 11 (System.Int32)
IL_02FA: ldloc.s 11 (System.Int32)
IL_02FC: ldc.i4.1
IL_02FD: ble => Label25
IL_0302: ldloc.s 11 (System.Int32)
IL_0304: ldloc.s 10 (Verse.IntVec3)
IL_0306: ldloc.0
IL_0307: call static System.Int32
Verse.GridsUtility::GetMaxItemsAllowedInCell(Verse.IntVec3 c, Verse.Map map)
IL_030C: ble => Label26
IL_0311: ldc.i4.0
IL_0312: stloc.s 12 (System.Int32)
IL_0314: br => Label27
IL_0319: Label30
IL_0319: ldloc.s 10 (Verse.IntVec3)
IL_031B: ldloc.0
IL_031C: call static Verse.Thing
Verse.GridsUtility::GetFirstItem(Verse.IntVec3 c, Verse.Map map)
IL_0321: stloc.s 13 (Verse.Thing)
IL_0323: ldloc.s 13 (Verse.Thing)
IL_0325: brfalse => Label28
IL_032A: ldloc.s 13 (Verse.Thing)
IL_032C: ldc.i4.0
IL_032D: callvirt abstract virtual System.Void
Verse.Entity::DeSpawn(Verse.DestroyMode mode)
IL_0332: ldloc.s 13 (Verse.Thing)
IL_0334: ldloc.s 10 (Verse.IntVec3)
IL_0336: ldloc.0
IL_0337: ldc.i4.1
IL_0338: ldnull
IL_0339: ldnull
IL_033A: ldloca.s 14 (Verse.Rot4)
IL_033C: initobj Verse.Rot4
IL_0342: ldloc.s 14 (Verse.Rot4)
IL_0344: call static System.Boolean
Verse.GenPlace::TryPlaceThing(Verse.Thing thing, Verse.IntVec3 center, Verse.Map
map, Verse.ThingPlaceMode mode, System.Action`2<Verse.Thing, System.Int32>
placedAction, System.Predicate`1<Verse.IntVec3> nearPlaceValidator, Verse.Rot4 rot)
IL_0349: pop
IL_034A: ldloc.s 10 (Verse.IntVec3)
IL_034C: ldloc.0
IL_034D: call static System.Int32
Verse.GridsUtility::GetItemCount(Verse.IntVec3 c, Verse.Map map)
IL_0352: ldloc.s 10 (Verse.IntVec3)
IL_0354: ldloc.0
IL_0355: call static System.Int32
Verse.GridsUtility::GetMaxItemsAllowedInCell(Verse.IntVec3 c, Verse.Map map)
IL_035A: ble => Label29
IL_035F: ldloc.s 12 (System.Int32)
IL_0361: ldc.i4.1
IL_0362: add
IL_0363: stloc.s 12 (System.Int32)
IL_0365: Label27
IL_0365: ldloc.s 12 (System.Int32)
IL_0367: ldloc.s 11 (System.Int32)
IL_0369: ldc.i4.1
IL_036A: sub
IL_036B: blt => Label30
IL_0370: Label24
IL_0370: Label25
IL_0370: Label26
IL_0370: Label28
IL_0370: Label29
IL_0370: ldloca.s 6 (Verse.CellRect+Enumerator)
IL_0372: call virtual System.Boolean Verse.Enumerator::MoveNext()
IL_0377: brtrue => Label31
IL_037C: leave => Label32
IL_0381: leave => (autogenerated)
} // end try
.finally
{
IL_0386: ldloca.s 6 (Verse.CellRect+Enumerator)
IL_0388: constrained. Verse.CellRect+Enumerator
IL_038E: callvirt abstract virtual System.Void
System.IDisposable::Dispose()
IL_0393: endfinally
IL_0394: leave => (autogenerated)
} // end handler
IL_0395: // end original
IL_0395: Label23
IL_0395: Label32
IL_0395: ret
DONE

### Patch: virtual UnityEngine.Vector3 Verse.Thing::get_DrawPos()


### Replacement: static UnityEngine.Vector3
Verse.Thing::Verse.Thing.get_DrawPos_Patch1(Verse.Thing this)
IL_0000: Local var 0: UnityEngine.Vector3
IL_0000: ldloca 0 (UnityEngine.Vector3)
IL_0004: initobj UnityEngine.Vector3
IL_000A: // start original
IL_000A: ldarg.0
IL_000B: call static UnityEngine.Vector3
RimWorld.GenThing::TrueCenter(Verse.Thing t)
IL_0010: // end original
IL_0010: stloc 0 (UnityEngine.Vector3)
IL_0014: ldarg.0
IL_0015: ldloca 0 (UnityEngine.Vector3)
IL_0019: call static System.Void
LWM.DeepStorage.Ensure_Top_Item_In_DSU_Draws_Correctly::Postfix(Verse.Thing
__instance, UnityEngine.Vector3& __result)
IL_001E: ldloc 0 (UnityEngine.Vector3)
IL_0022: ret
DONE

### Patch: virtual System.Void Verse.Thing::DrawGUIOverlay()


### Replacement: static System.Void
Verse.Thing::Verse.Thing.DrawGUIOverlay_Patch3(Verse.Thing this)
IL_0000: Local var 0: RimWorld.QualityCategory
IL_0000: Local var 1: System.Boolean
IL_0000: ldc.i4 0
IL_0005: stloc 1 (System.Boolean)
IL_0009: ldc.i4.1
IL_000A: stloc 1 (System.Boolean)
IL_000E: ldloc 1 (System.Boolean)
IL_0012: brfalse => Label1
IL_0017: ldarg.0
IL_0018: call static System.Boolean
ExtendedStorage.Patches.Thing_DrawGUIOverlay::Prefix(Verse.Thing __instance)
IL_001D: stloc 1 (System.Boolean)
IL_0021: Label1
IL_0021: nop
IL_0022: ldloc 1 (System.Boolean)
IL_0026: brfalse => Label2
IL_002B: ldarg.0
IL_002C: call static System.Boolean
ItemTeleporter.Thing_DrawGUIOverlay_Patch::Prefix(Verse.Thing __instance)
IL_0031: stloc 1 (System.Boolean)
IL_0035: Label2
IL_0035: nop
IL_0036: ldloc 1 (System.Boolean)
IL_003A: brfalse => Label3
IL_003F: ldarg.0
IL_0040: call static System.Boolean
LWM.DeepStorage.Add_DSU_GUI_Overlay::Prefix(Verse.Thing __instance)
IL_0045: stloc 1 (System.Boolean)
IL_0049: Label3
IL_0049: nop
IL_004A: ldloc 1 (System.Boolean)
IL_004E: brfalse => Label0
IL_0053: // start original
IL_0053: call static Verse.CameraDriver Verse.Find::get_CameraDriver()
IL_0058: callvirt Verse.CameraZoomRange Verse.CameraDriver::get_CurrentZoom()
IL_005D: brtrue => Label4
IL_0062: ldarg.0
IL_0063: ldfld Verse.ThingDef Verse.Thing::def
IL_0068: ldfld System.Int32 Verse.ThingDef::stackLimit
IL_006D: ldc.i4.1
IL_006E: ble => Label5
IL_0073: ldarg.0
IL_0074: ldarg.0
IL_0075: ldfld System.Int32 Verse.Thing::stackCount
IL_007A: call static System.String
Verse.GenString::ToStringCached(System.Int32 num)
IL_007F: call static System.Void Verse.GenMapUI::DrawThingLabel(Verse.Thing
thing, System.String text)
IL_0084: br => Label8
IL_0089: Label5
IL_0089: ldarg.0
IL_008A: ldfld Verse.ThingDef Verse.Thing::def
IL_008F: ldfld System.Boolean Verse.ThingDef::drawGUIOverlayQuality
IL_0094: brfalse => Label6
IL_0099: ldarg.0
IL_009A: ldloca.s 0 (RimWorld.QualityCategory)
IL_009C: call static System.Boolean
RimWorld.QualityUtility::TryGetQuality(Verse.Thing t, RimWorld.QualityCategory& qc)
IL_00A1: brfalse => Label7
IL_00A6: ldarg.0
IL_00A7: ldloc.0
IL_00A8: call static System.String
RimWorld.QualityUtility::GetLabelShort(RimWorld.QualityCategory cat)
IL_00AD: call static System.Void Verse.GenMapUI::DrawThingLabel(Verse.Thing
thing, System.String text)
IL_00B2: // end original
IL_00B2: Label4
IL_00B2: Label6
IL_00B2: Label7
IL_00B2: Label8
IL_00B2: Label0
IL_00B2: ret
DONE

### Patch: static UnityEngine.Vector3 RimWorld.GenThing::ItemCenterAt(Verse.IntVec3


c, Verse.Map map, System.Single altitude, System.Int32 thingID)
### Replacement: static UnityEngine.Vector3
RimWorld.GenThing::RimWorld.GenThing.ItemCenterAt_Patch0(Verse.IntVec3 c, Verse.Map
map, System.Single altitude, System.Int32 thingID)
IL_0000: Local var 0: RimWorld.GenThing/<>c__DisplayClass2_0
IL_0000: Local var 1: System.Int32
IL_0000: Local var 2: System.Int32
IL_0000: Local var 3: System.Boolean
IL_0000: Local var 4: System.Boolean
IL_0000: Local var 5: Verse.ThingDef
IL_0000: Local var 6: System.Collections.Generic.List`1<Verse.Thing>
IL_0000: Local var 7: System.Single
IL_0000: Local var 8: System.Int32
IL_0000: Local var 9: Verse.Thing
IL_0000: Local var 10: UnityEngine.Vector3
IL_0000: Local var 11: UnityEngine.Vector3
IL_0000: Local var 12: System.Single
IL_0000: Local var 13: System.Int32
IL_0000: Local var 14: UnityEngine.Vector3
IL_0000: Local var 15: UnityEngine.Vector3
IL_0000: Local var 16: UnityEngine.Vector2
IL_0000: // start original
IL_0000: ldloca.s 0 (RimWorld.GenThing+<>c__DisplayClass2_0)
IL_0002: ldarg.1
IL_0003: stfld Verse.Map RimWorld.<>c__DisplayClass2_0::map
IL_0008: ldc.i4.0
IL_0009: stloc.1
IL_000A: ldc.i4.0
IL_000B: stloc.2
IL_000C: ldc.i4.0
IL_000D: stloc.3
IL_000E: ldc.i4.1
IL_000F: stloc.s 4 (System.Boolean)
IL_0011: ldnull
IL_0012: stloc.s 5 (Verse.ThingDef)
IL_0014: ldarg.0
IL_0015: ldloc.0
IL_0016: ldfld Verse.Map RimWorld.<>c__DisplayClass2_0::map
IL_001B: call static System.Collections.Generic.List`1<Verse.Thing>
Verse.GridsUtility::GetThingList(Verse.IntVec3 c, Verse.Map map)
IL_0020: stloc.s 6 (System.Collections.Generic.List`1[Verse.Thing])
IL_0022: ldc.i4.0
IL_0023: stloc.s 8 (System.Int32)
IL_0025: br => Label0
IL_002A: Label7
IL_002A: ldloc.s 6 (System.Collections.Generic.List`1[Verse.Thing])
IL_002C: ldloc.s 8 (System.Int32)
IL_002E: callvirt virtual Verse.Thing
System.Collections.Generic.List`1<Verse.Thing>::get_Item(System.Int32 index)
IL_0033: stloc.s 9 (Verse.Thing)
IL_0035: ldloc.s 9 (Verse.Thing)
IL_0037: ldfld Verse.ThingDef Verse.Thing::def
IL_003C: ldfld Verse.ThingCategory Verse.ThingDef::category
IL_0041: ldc.i4.2
IL_0042: bne.un => Label1
IL_0047: ldloc.s 5 (Verse.ThingDef)
IL_0049: brtrue => Label2
IL_004E: ldloc.s 9 (Verse.Thing)
IL_0050: ldfld Verse.ThingDef Verse.Thing::def
IL_0055: stloc.s 5 (Verse.ThingDef)
IL_0057: Label2
IL_0057: ldloc.1
IL_0058: ldc.i4.1
IL_0059: add
IL_005A: stloc.1
IL_005B: ldloc.s 9 (Verse.Thing)
IL_005D: ldfld Verse.ThingDef Verse.Thing::def
IL_0062: callvirt System.Boolean Verse.ThingDef::get_IsWeapon()
IL_0067: brfalse => Label3
IL_006C: ldloc.s 9 (Verse.Thing)
IL_006E: ldfld Verse.ThingDef Verse.Thing::def
IL_0073: ldsfld Verse.ThingDef RimWorld.ThingDefOf::WoodLog
IL_0078: beq => Label4
IL_007D: ldc.i4.1
IL_007E: stloc.3
IL_007F: Label3
IL_007F: Label4
IL_007F: ldloc.s 9 (Verse.Thing)
IL_0081: ldfld System.Int32 Verse.Thing::thingIDNumber
IL_0086: ldarg.3
IL_0087: bge => Label5
IL_008C: ldloc.2
IL_008D: ldc.i4.1
IL_008E: add
IL_008F: stloc.2
IL_0090: Label5
IL_0090: ldloc.s 9 (Verse.Thing)
IL_0092: ldloc.s 6 (System.Collections.Generic.List`1[Verse.Thing])
IL_0094: callvirt static System.Boolean
LupineWitch.ConfigurableShelfCapacity.GenThing_ItemCenterAt_Patch::ShouldItemsMakeT
owerBasedOnCellContents(System.Collections.Generic.List`1<Verse.Thing> thingList)
IL_0099: stloc.s 4 (System.Boolean)
IL_009B: ldfld Verse.ThingDef Verse.Thing::def
IL_00A0: ldloc.s 5 (Verse.ThingDef)
IL_00A2: beq => Label6
IL_00A7: ldc.i4.0
IL_00A8: stloc.s 4 (System.Boolean)
IL_00AA: Label1
IL_00AA: Label6
IL_00AA: ldloc.s 8 (System.Int32)
IL_00AC: ldc.i4.1
IL_00AD: add
IL_00AE: stloc.s 8 (System.Int32)
IL_00B0: Label0
IL_00B0: ldloc.s 8 (System.Int32)
IL_00B2: ldloc.s 6 (System.Collections.Generic.List`1[Verse.Thing])
IL_00B4: callvirt virtual System.Int32
System.Collections.Generic.List`1<Verse.Thing>::get_Count()
IL_00B9: blt => Label7
IL_00BE: ldloc.2
IL_00BF: conv.r4
IL_00C0: ldc.r4 0.04054054
IL_00C5: mul
IL_00C6: ldc.r4 10
IL_00CB: div
IL_00CC: stloc.s 7 (System.Single)
IL_00CE: ldloc.1
IL_00CF: ldc.i4.1
IL_00D0: bgt => Label8
IL_00D5: ldarga.s 0
IL_00D7: call UnityEngine.Vector3 Verse.IntVec3::ToVector3Shifted()
IL_00DC: stloc.s 10 (UnityEngine.Vector3)
IL_00DE: ldloc.s 10 (UnityEngine.Vector3)
IL_00E0: ldfld System.Single UnityEngine.Vector3::x
IL_00E5: ldarg.2
IL_00E6: ldloc.s 10 (UnityEngine.Vector3)
IL_00E8: ldfld System.Single UnityEngine.Vector3::z
IL_00ED: newobj System.Void UnityEngine.Vector3::.ctor(System.Single x,
System.Single y, System.Single z)
IL_00F2: br => Label15
IL_00F7: Label8
IL_00F7: ldloc.3
IL_00F8: brfalse => Label9
IL_00FD: ldarga.s 0
IL_00FF: call UnityEngine.Vector3 Verse.IntVec3::ToVector3Shifted()
IL_0104: stloc.s 11 (UnityEngine.Vector3)
IL_0106: ldc.r4 1
IL_010B: ldloc.1
IL_010C: conv.r4
IL_010D: div
IL_010E: stloc.s 12 (System.Single)
IL_0110: ldarg.0
IL_0111: ldfld System.Int32 Verse.IntVec3::x
IL_0116: ldc.i4.1
IL_0117: sub
IL_0118: ldarg.0
IL_0119: ldfld System.Int32 Verse.IntVec3::y
IL_011E: ldarg.0
IL_011F: ldfld System.Int32 Verse.IntVec3::z
IL_0124: newobj System.Void Verse.IntVec3::.ctor(System.Int32 newX,
System.Int32 newY, System.Int32 newZ)
IL_0129: ldloca.s 0 (RimWorld.GenThing+<>c__DisplayClass2_0)
IL_012B: call static System.Int32
RimWorld.GenThing::<ItemCenterAt>g__GetRowItemCount|2_0(Verse.IntVec3 x,
RimWorld.<>c__DisplayClass2_0& )
IL_0130: ldloc.2
IL_0131: add
IL_0132: stloc.s 13 (System.Int32)
IL_0134: ldloc.s 11 (UnityEngine.Vector3)
IL_0136: ldfld System.Single UnityEngine.Vector3::x
IL_013B: ldc.r4 0.5
IL_0140: sub
IL_0141: ldloc.s 12 (System.Single)
IL_0143: ldloc.2
IL_0144: conv.r4
IL_0145: ldc.r4 0.5
IL_014A: add
IL_014B: mul
IL_014C: add
IL_014D: ldarg.2
IL_014E: ldloc.s 7 (System.Single)
IL_0150: add
IL_0151: ldloc.s 11 (UnityEngine.Vector3)
IL_0153: ldfld System.Single UnityEngine.Vector3::z
IL_0158: ldloc.s 13 (System.Int32)
IL_015A: ldc.i4.2
IL_015B: rem
IL_015C: brfalse => Label10
IL_0161: ldc.r4 0.2
IL_0166: br => Label11
IL_016B: Label10
IL_016B: ldc.r4 -0.02
IL_0170: Label11
IL_0170: add
IL_0171: newobj System.Void UnityEngine.Vector3::.ctor(System.Single x,
System.Single y, System.Single z)
IL_0176: br => Label16
IL_017B: Label9
IL_017B: ldloc.s 4 (System.Boolean)
IL_017D: brfalse => Label12
IL_0182: ldarga.s 0
IL_0184: call UnityEngine.Vector3 Verse.IntVec3::ToVector3Shifted()
IL_0189: stloc.s 14 (UnityEngine.Vector3)
IL_018B: ldloc.s 14 (UnityEngine.Vector3)
IL_018D: ldfld System.Single UnityEngine.Vector3::x
IL_0192: ldloc.2
IL_0193: conv.r4
IL_0194: ldc.r4 0.22
IL_0199: ldloc.1
IL_019A: ldc.i4.1
IL_019B: sub
IL_019C: conv.r4
IL_019D: div
IL_019E: mul
IL_019F: add
IL_01A0: ldc.r4 0.08
IL_01A5: sub
IL_01A6: ldarg.2
IL_01A7: ldloc.s 7 (System.Single)
IL_01A9: add
IL_01AA: ldloc.s 14 (UnityEngine.Vector3)
IL_01AC: ldfld System.Single UnityEngine.Vector3::z
IL_01B1: ldloc.2
IL_01B2: conv.r4
IL_01B3: ldc.r4 0.48
IL_01B8: ldloc.1
IL_01B9: ldc.i4.1
IL_01BA: sub
IL_01BB: conv.r4
IL_01BC: div
IL_01BD: mul
IL_01BE: add
IL_01BF: ldc.r4 0.05
IL_01C4: sub
IL_01C5: newobj System.Void UnityEngine.Vector3::.ctor(System.Single x,
System.Single y, System.Single z)
IL_01CA: br => Label17
IL_01CF: Label12
IL_01CF: ldarga.s 0
IL_01D1: call UnityEngine.Vector3 Verse.IntVec3::ToVector3Shifted()
IL_01D6: stloc.s 15 (UnityEngine.Vector3)
IL_01D8: ldloc.1
IL_01D9: ldloc.2
IL_01DA: ldarg.0
IL_01DB: ldfld System.Int32 Verse.IntVec3::x
IL_01E0: ldarg.0
IL_01E1: ldfld System.Int32 Verse.IntVec3::z
IL_01E6: add
IL_01E7: ldc.i4.2
IL_01E8: rem
IL_01E9: brfalse => Label13
IL_01EE: ldc.r4 60
IL_01F3: br => Label14
IL_01F8: Label13
IL_01F8: ldc.r4 0
IL_01FD: Label14
IL_01FD: call static UnityEngine.Vector2
Verse.GenGeo::RegularPolygonVertexPosition(System.Int32 polygonVertices,
System.Int32 vertexIndex, System.Single angleOffset)
IL_0202: ldc.r4 0.3
IL_0207: call static UnityEngine.Vector2
UnityEngine.Vector2::op_Multiply(UnityEngine.Vector2 a, System.Single d)
IL_020C: stloc.s 16 (UnityEngine.Vector2)
IL_020E: ldloc.s 16 (UnityEngine.Vector2)
IL_0210: ldfld System.Single UnityEngine.Vector2::x
IL_0215: ldloc.s 15 (UnityEngine.Vector3)
IL_0217: ldfld System.Single UnityEngine.Vector3::x
IL_021C: add
IL_021D: ldarg.2
IL_021E: ldloc.s 7 (System.Single)
IL_0220: add
IL_0221: ldloc.s 16 (UnityEngine.Vector2)
IL_0223: ldfld System.Single UnityEngine.Vector2::y
IL_0228: ldloc.s 15 (UnityEngine.Vector3)
IL_022A: ldfld System.Single UnityEngine.Vector3::z
IL_022F: add
IL_0230: newobj System.Void UnityEngine.Vector3::.ctor(System.Single x,
System.Single y, System.Single z)
IL_0235: // end original
IL_0235: Label15
IL_0235: Label16
IL_0235: Label17
IL_0235: ret
DONE

### Patch: virtual System.Boolean RimWorld.<GetGizmos>d__43::MoveNext()


### Replacement: static System.Boolean
RimWorld.Building_Storage+<GetGizmos>d__43::RimWorld.Building_Storage+<GetGizmos>d_
_43.MoveNext_Patch0(RimWorld.<GetGizmos>d__43 this)
IL_0000: Local var 0: System.Boolean
IL_0000: Local var 1: System.Int32
IL_0000: Local var 2: RimWorld.Building_Storage
IL_0000: Local var 3: Verse.Gizmo
IL_0000: Local var 4: Verse.Gizmo
IL_0000: Local var 5: Verse.Gizmo
IL_0000: Local var 6: Verse.Thing
IL_0000: // start original
.try
{
IL_0000: ldarg.0
IL_0001: ldfld System.Int32 RimWorld.<GetGizmos>d__43::<>1__state
IL_0006: stloc.1
IL_0007: ldarg.0
IL_0008: ldfld RimWorld.Building_Storage
RimWorld.<GetGizmos>d__43::<>4__this
IL_000D: stloc.2
IL_000E: ldloc.1
IL_000F: switch => Labels0,1,2,3,4
IL_0028: ldc.i4.0
IL_0029: stloc.0
IL_002A: leave => Label5
IL_002F: Label0
IL_002F: ldarg.0
IL_0030: ldc.i4.m1
IL_0031: stfld System.Int32 RimWorld.<GetGizmos>d__43::<>1__state
IL_0036: ldarg.0
IL_0037: ldloc.2
IL_0038: call System.Collections.Generic.IEnumerable`1<Verse.Gizmo>
RimWorld.Building_Storage::<>n__0()
IL_003D: callvirt abstract virtual
System.Collections.Generic.IEnumerator`1<Verse.Gizmo>
System.Collections.Generic.IEnumerable`1<Verse.Gizmo>::GetEnumerator()
IL_0042: stfld System.Collections.Generic.IEnumerator`1<Verse.Gizmo>
RimWorld.<GetGizmos>d__43::<>7__wrap1
IL_0047: ldarg.0
IL_0048: ldc.i4.s -3
IL_004A: stfld System.Int32 RimWorld.<GetGizmos>d__43::<>1__state
IL_004F: br => Label6
IL_0054: Label8
IL_0054: ldarg.0
IL_0055: ldfld System.Collections.Generic.IEnumerator`1<Verse.Gizmo>
RimWorld.<GetGizmos>d__43::<>7__wrap1
IL_005A: callvirt abstract virtual Verse.Gizmo
System.Collections.Generic.IEnumerator`1<Verse.Gizmo>::get_Current()
IL_005F: stloc.3
IL_0060: ldarg.0
IL_0061: ldloc.3
IL_0062: stfld Verse.Gizmo RimWorld.<GetGizmos>d__43::<>2__current
IL_0067: ldarg.0
IL_0068: ldc.i4.1
IL_0069: stfld System.Int32 RimWorld.<GetGizmos>d__43::<>1__state
IL_006E: ldc.i4.1
IL_006F: stloc.0
IL_0070: leave => Label7
IL_0075: Label1
IL_0075: ldarg.0
IL_0076: ldc.i4.s -3
IL_0078: stfld System.Int32 RimWorld.<GetGizmos>d__43::<>1__state
IL_007D: Label6
IL_007D: ldarg.0
IL_007E: ldfld System.Collections.Generic.IEnumerator`1<Verse.Gizmo>
RimWorld.<GetGizmos>d__43::<>7__wrap1
IL_0083: callvirt abstract virtual System.Boolean
System.Collections.IEnumerator::MoveNext()
IL_0088: brtrue => Label8
IL_008D: ldarg.0
IL_008E: call System.Void RimWorld.<GetGizmos>d__43::<>m__Finally1()
IL_0093: ldarg.0
IL_0094: ldnull
IL_0095: stfld System.Collections.Generic.IEnumerator`1<Verse.Gizmo>
RimWorld.<GetGizmos>d__43::<>7__wrap1
IL_009A: ldarg.0
IL_009B: ldloc.2
IL_009C: call virtual RimWorld.StorageSettings
RimWorld.Building_Storage::GetStoreSettings()
IL_00A1: call static
System.Collections.Generic.IEnumerable`1<Verse.Gizmo>
RimWorld.StorageSettingsClipboard::CopyPasteGizmosFor(RimWorld.StorageSettings s)
IL_00A6: callvirt abstract virtual
System.Collections.Generic.IEnumerator`1<Verse.Gizmo>
System.Collections.Generic.IEnumerable`1<Verse.Gizmo>::GetEnumerator()
IL_00AB: stfld System.Collections.Generic.IEnumerator`1<Verse.Gizmo>
RimWorld.<GetGizmos>d__43::<>7__wrap1
IL_00B0: ldarg.0
IL_00B1: ldc.i4.s -4
IL_00B3: stfld System.Int32 RimWorld.<GetGizmos>d__43::<>1__state
IL_00B8: br => Label9
IL_00BD: Label11
IL_00BD: ldarg.0
IL_00BE: ldfld System.Collections.Generic.IEnumerator`1<Verse.Gizmo>
RimWorld.<GetGizmos>d__43::<>7__wrap1
IL_00C3: callvirt abstract virtual Verse.Gizmo
System.Collections.Generic.IEnumerator`1<Verse.Gizmo>::get_Current()
IL_00C8: stloc.s 4 (Verse.Gizmo)
IL_00CA: ldarg.0
IL_00CB: ldloc.s 4 (Verse.Gizmo)
IL_00CD: stfld Verse.Gizmo RimWorld.<GetGizmos>d__43::<>2__current
IL_00D2: ldarg.0
IL_00D3: ldc.i4.2
IL_00D4: stfld System.Int32 RimWorld.<GetGizmos>d__43::<>1__state
IL_00D9: ldc.i4.1
IL_00DA: stloc.0
IL_00DB: leave => Label10
IL_00E0: Label2
IL_00E0: ldarg.0
IL_00E1: ldc.i4.s -4
IL_00E3: stfld System.Int32 RimWorld.<GetGizmos>d__43::<>1__state
IL_00E8: Label9
IL_00E8: ldarg.0
IL_00E9: ldfld System.Collections.Generic.IEnumerator`1<Verse.Gizmo>
RimWorld.<GetGizmos>d__43::<>7__wrap1
IL_00EE: callvirt abstract virtual System.Boolean
System.Collections.IEnumerator::MoveNext()
IL_00F3: brtrue => Label11
IL_00F8: ldarg.0
IL_00F9: call System.Void RimWorld.<GetGizmos>d__43::<>m__Finally2()
IL_00FE: ldarg.0
IL_00FF: ldnull
IL_0100: stfld System.Collections.Generic.IEnumerator`1<Verse.Gizmo>
RimWorld.<GetGizmos>d__43::<>7__wrap1
IL_0105: ldloc.2
IL_0106: call virtual System.Boolean
RimWorld.Building_Storage::get_StorageTabVisible()
IL_010B: brfalse => Label12
IL_0110: ldloc.2
IL_0111: call Verse.Map Verse.Thing::get_MapHeld()
IL_0116: brfalse => Label13
IL_011B: ldarg.0
IL_011C: ldloc.2
IL_011D: call static
System.Collections.Generic.IEnumerable`1<Verse.Gizmo>
RimWorld.StorageGroupUtility::StorageGroupMemberGizmos(RimWorld.IStorageGroupMember
member)
IL_0122: callvirt abstract virtual
System.Collections.Generic.IEnumerator`1<Verse.Gizmo>
System.Collections.Generic.IEnumerable`1<Verse.Gizmo>::GetEnumerator()
IL_0127: stfld System.Collections.Generic.IEnumerator`1<Verse.Gizmo>
RimWorld.<GetGizmos>d__43::<>7__wrap1
IL_012C: ldarg.0
IL_012D: ldc.i4.s -5
IL_012F: stfld System.Int32 RimWorld.<GetGizmos>d__43::<>1__state
IL_0134: br => Label14
IL_0139: Label16
IL_0139: ldarg.0
IL_013A: ldfld System.Collections.Generic.IEnumerator`1<Verse.Gizmo>
RimWorld.<GetGizmos>d__43::<>7__wrap1
IL_013F: callvirt abstract virtual Verse.Gizmo
System.Collections.Generic.IEnumerator`1<Verse.Gizmo>::get_Current()
IL_0144: stloc.s 5 (Verse.Gizmo)
IL_0146: ldarg.0
IL_0147: ldloc.s 5 (Verse.Gizmo)
IL_0149: stfld Verse.Gizmo RimWorld.<GetGizmos>d__43::<>2__current
IL_014E: ldarg.0
IL_014F: ldc.i4.3
IL_0150: stfld System.Int32 RimWorld.<GetGizmos>d__43::<>1__state
IL_0155: ldc.i4.1
IL_0156: stloc.0
IL_0157: leave => Label15
IL_015C: Label3
IL_015C: ldarg.0
IL_015D: ldc.i4.s -5
IL_015F: stfld System.Int32 RimWorld.<GetGizmos>d__43::<>1__state
IL_0164: Label14
IL_0164: ldarg.0
IL_0165: ldfld System.Collections.Generic.IEnumerator`1<Verse.Gizmo>
RimWorld.<GetGizmos>d__43::<>7__wrap1
IL_016A: callvirt abstract virtual System.Boolean
System.Collections.IEnumerator::MoveNext()
IL_016F: brtrue => Label16
IL_0174: ldarg.0
IL_0175: call System.Void RimWorld.<GetGizmos>d__43::<>m__Finally3()
IL_017A: ldarg.0
IL_017B: ldnull
IL_017C: stfld System.Collections.Generic.IEnumerator`1<Verse.Gizmo>
RimWorld.<GetGizmos>d__43::<>7__wrap1
IL_0181: call static RimWorld.Selector Verse.Find::get_Selector()
IL_0186: callvirt System.Int32 RimWorld.Selector::get_NumSelected()
IL_018B: ldc.i4.1
IL_018C: bne.un => Label17
IL_0191: ldloc.2
IL_0192: ldfld RimWorld.SlotGroup RimWorld.Building_Storage::slotGroup
IL_0197: callvirt virtual
System.Collections.Generic.IEnumerable`1<Verse.Thing>
RimWorld.SlotGroup::get_HeldThings()
IL_019C: call static System.Boolean
LWM.DeepStorage.Patch_Building_Storage_Gizmos::IsOverThreshold(System.Collections.G
eneric.IEnumerable`1<Verse.Thing> things)
IL_01A1: brtrue => Label17
IL_01A6: ldarg.0
IL_01A7: ldloc.2
IL_01A8: ldfld RimWorld.SlotGroup RimWorld.Building_Storage::slotGroup
IL_01AD: callvirt virtual
System.Collections.Generic.IEnumerable`1<Verse.Thing>
RimWorld.SlotGroup::get_HeldThings()
IL_01B2: callvirt abstract virtual
System.Collections.Generic.IEnumerator`1<Verse.Thing>
System.Collections.Generic.IEnumerable`1<Verse.Thing>::GetEnumerator()
IL_01B7: stfld System.Collections.Generic.IEnumerator`1<Verse.Thing>
RimWorld.<GetGizmos>d__43::<>7__wrap2
IL_01BC: ldarg.0
IL_01BD: ldc.i4.s -6
IL_01BF: stfld System.Int32 RimWorld.<GetGizmos>d__43::<>1__state
IL_01C4: br => Label18
IL_01C9: Label20
IL_01C9: ldarg.0
IL_01CA: ldfld System.Collections.Generic.IEnumerator`1<Verse.Thing>
RimWorld.<GetGizmos>d__43::<>7__wrap2
IL_01CF: callvirt abstract virtual Verse.Thing
System.Collections.Generic.IEnumerator`1<Verse.Thing>::get_Current()
IL_01D4: stloc.s 6 (Verse.Thing)
IL_01D6: ldarg.0
IL_01D7: ldstr "CommandSelectStoredThing"
IL_01DC: ldloc.s 6 (Verse.Thing)
IL_01DE: call static Verse.NamedArgument
Verse.NamedArgument::op_Implicit(Verse.Thing value)
IL_01E3: call static Verse.TaggedString
Verse.TranslatorFormattedStringExtensions::Translate(System.String key,
Verse.NamedArgument arg1)
IL_01E8: call static System.String
Verse.TaggedString::op_Implicit(Verse.TaggedString taggedString)
IL_01ED: ldstr "CommandSelectStoredThingDesc"
IL_01F2: call static Verse.TaggedString
Verse.Translator::Translate(System.String key)
IL_01F7: ldstr "\n\n"
IL_01FC: call static Verse.TaggedString
Verse.TaggedString::op_Addition(Verse.TaggedString t1, System.String t2)
IL_0201: ldloc.s 6 (Verse.Thing)
IL_0203: callvirt virtual System.String Verse.Thing::GetInspectString()
IL_0208: call static Verse.TaggedString
Verse.TaggedString::op_Addition(Verse.TaggedString t1, System.String t2)
IL_020D: call static System.String
Verse.TaggedString::op_Implicit(Verse.TaggedString taggedString)
IL_0212: ldloc.s 6 (Verse.Thing)
IL_0214: ldloc.s 6 (Verse.Thing)
IL_0216: ldc.i4.0
IL_0217: call static Verse.Gizmo
RimWorld.ContainingSelectionUtility::CreateSelectStorageGizmo(System.String label,
System.String description, Verse.Thing thingToSelect, Verse.Thing iconThing,
System.Boolean groupable)
IL_021C: stfld Verse.Gizmo RimWorld.<GetGizmos>d__43::<>2__current
IL_0221: ldarg.0
IL_0222: ldc.i4.4
IL_0223: stfld System.Int32 RimWorld.<GetGizmos>d__43::<>1__state
IL_0228: ldc.i4.1
IL_0229: stloc.0
IL_022A: leave => Label19
IL_022F: Label4
IL_022F: ldarg.0
IL_0230: ldc.i4.s -6
IL_0232: stfld System.Int32 RimWorld.<GetGizmos>d__43::<>1__state
IL_0237: Label18
IL_0237: ldarg.0
IL_0238: ldfld System.Collections.Generic.IEnumerator`1<Verse.Thing>
RimWorld.<GetGizmos>d__43::<>7__wrap2
IL_023D: callvirt abstract virtual System.Boolean
System.Collections.IEnumerator::MoveNext()
IL_0242: brtrue => Label20
IL_0247: ldarg.0
IL_0248: call System.Void RimWorld.<GetGizmos>d__43::<>m__Finally4()
IL_024D: ldarg.0
IL_024E: ldnull
IL_024F: stfld System.Collections.Generic.IEnumerator`1<Verse.Thing>
RimWorld.<GetGizmos>d__43::<>7__wrap2
IL_0254: Label12
IL_0254: Label13
IL_0254: Label17
IL_0254: ldc.i4.0
IL_0255: stloc.0
IL_0256: leave => Label21
IL_025B: leave => (autogenerated)
} // end try
.fault
{
IL_0260: ldarg.0
IL_0261: call virtual System.Void
RimWorld.<GetGizmos>d__43::System.IDisposable.Dispose()
IL_0266: endfinally
IL_0267: leave => (autogenerated)
} // end handler
IL_026C: Label5
IL_026C: Label7
IL_026C: Label10
IL_026C: Label15
IL_026C: Label19
IL_026C: Label21
IL_026C: ldloc.0
IL_026D: // end original
IL_026D: ret
DONE

### Harmony id=mehni.rimworld.pickupandhaul.main, version=2.2.2.0, location=C:\


Program Files (x86)\Steam\steamapps\common\data-000002130553D010,
env/clr=4.0.30319.42000, platform=Win32NT, ptrsize:runtime/env=8/Bits64, Windows
### Started from static System.Void PickUpAndHaul.HarmonyPatches::.cctor(),
location C:\Program Files (x86)\Steam\steamapps\common\data-000002130957D3A0
### At 2023-02-17 06.57.35
### Patch: static System.Int32
RimWorld.PawnUtility::GetMaxAllowedToPickUp(Verse.Pawn pawn, Verse.ThingDef
thingDef)
### Replacement: static System.Int32
RimWorld.PawnUtility::RimWorld.PawnUtility.GetMaxAllowedToPickUp_Patch1(Verse.Pawn
pawn, Verse.ThingDef thingDef)
IL_0000: Local var 0: RimWorld.PawnUtility/<>c__DisplayClass83_0
IL_0000: Local var 1: System.Int32
IL_0000: Local var 2: System.Int32
IL_0000: Local var 3: System.Int32
IL_0000: Local var 4: System.Boolean
IL_0000: ldc.i4 0
IL_0005: stloc 3 (System.Int32)
IL_0009: ldc.i4 0
IL_000E: stloc 4 (System.Boolean)
IL_0012: ldc.i4.1
IL_0013: stloc 4 (System.Boolean)
IL_0017: ldloc 4 (System.Boolean)
IL_001B: brfalse => Label1
IL_0020: ldarg 0
IL_0024: ldloca 3 (System.Int32)
IL_0028: call static System.Boolean
PickUpAndHaul.HarmonyPatches::MaxAllowedToPickUpPrefix(Verse.Pawn pawn,
System.Int32& __result)
IL_002D: stloc 4 (System.Boolean)
IL_0031: Label1
IL_0031: nop
IL_0032: ldloc 4 (System.Boolean)
IL_0036: brfalse => Label0
IL_003B: // start original
IL_003B: newobj System.Void RimWorld.<>c__DisplayClass83_0::.ctor()
IL_0040: stloc.0
IL_0041: ldloc.0
IL_0042: ldarg.1
IL_0043: stfld Verse.ThingDef RimWorld.<>c__DisplayClass83_0::thingDef
IL_0048: ldloc.0
IL_0049: ldfld Verse.ThingDef RimWorld.<>c__DisplayClass83_0::thingDef
IL_004E: ldarg.0
IL_004F: callvirt virtual Verse.Map Verse.Thing::get_Map()
IL_0054: call static System.Int32
RimWorld.PawnUtility::GetMaxAllowedToPickUp(Verse.ThingDef thingDef, Verse.Map map)
IL_0059: stloc.1
IL_005A: ldloc.1
IL_005B: ldc.i4.0
IL_005C: bgt => Label2
IL_0061: ldc.i4.0
IL_0062: br => Label3
IL_0067: Label2
IL_0067: ldarg.0
IL_0068: ldfld Verse.Pawn_InventoryTracker Verse.Pawn::inventory
IL_006D: ldloc.0
IL_006E: ldftn System.Boolean
RimWorld.<>c__DisplayClass83_0::<GetMaxAllowedToPickUp>b__0(Verse.Thing t)
IL_0074: newobj System.Void System.Func`2<Verse.Thing,
System.Boolean>::.ctor(System.Object object, System.IntPtr method)
IL_0079: callvirt System.Int32
Verse.Pawn_InventoryTracker::Count(System.Func`2<Verse.Thing, System.Boolean>
validator)
IL_007E: stloc.2
IL_007F: ldloc.1
IL_0080: ldloc.2
IL_0081: sub
IL_0082: ldc.i4.0
IL_0083: call static System.Int32 System.Math::Max(System.Int32 val1,
System.Int32 val2)
IL_0088: // end original
IL_0088: Label3
IL_0088: stloc 3 (System.Int32)
IL_008C: Label0
IL_008C: ldloc 3 (System.Int32)
IL_0090: ret
DONE

### Patch: static System.Boolean RimWorld.PawnUtility::CanPickUp(Verse.Pawn pawn,


Verse.ThingDef thingDef)
### Replacement: static System.Boolean
RimWorld.PawnUtility::RimWorld.PawnUtility.CanPickUp_Patch1(Verse.Pawn pawn,
Verse.ThingDef thingDef)
IL_0000: Local var 0: System.Boolean
IL_0000: Local var 1: System.Boolean
IL_0000: ldc.i4 0
IL_0005: stloc 0 (System.Boolean)
IL_0009: ldc.i4 0
IL_000E: stloc 1 (System.Boolean)
IL_0012: ldc.i4.1
IL_0013: stloc 1 (System.Boolean)
IL_0017: ldloc 1 (System.Boolean)
IL_001B: brfalse => Label1
IL_0020: ldarg 0
IL_0024: ldloca 0 (System.Boolean)
IL_0028: call static System.Boolean
PickUpAndHaul.HarmonyPatches::CanBeMadeToDropStuff(Verse.Pawn pawn, System.Boolean&
__result)
IL_002D: stloc 1 (System.Boolean)
IL_0031: Label1
IL_0031: nop
IL_0032: ldloc 1 (System.Boolean)
IL_0036: brfalse => Label0
IL_003B: // start original
IL_003B: ldarg.0
IL_003C: callvirt virtual Verse.Map Verse.Thing::get_Map()
IL_0041: callvirt System.Boolean Verse.Map::get_IsPlayerHome()
IL_0046: brtrue => Label2
IL_004B: ldc.i4.1
IL_004C: br => Label5
IL_0051: Label2
IL_0051: ldarg.0
IL_0052: ldfld Verse.Pawn_InventoryTracker Verse.Pawn::inventory
IL_0057: brfalse => Label3
IL_005C: ldarg.1
IL_005D: ldfld Verse.OrderedTakeGroupDef Verse.ThingDef::orderedTakeGroup
IL_0062: brfalse => Label4
IL_0067: ldarg.1
IL_0068: ldfld Verse.OrderedTakeGroupDef Verse.ThingDef::orderedTakeGroup
IL_006D: ldfld System.Int32 Verse.OrderedTakeGroupDef::max
IL_0072: ldc.i4.0
IL_0073: cgt
IL_0075: br => Label6
IL_007A: Label3
IL_007A: Label4
IL_007A: ldc.i4.0
IL_007B: // end original
IL_007B: Label5
IL_007B: Label6
IL_007B: stloc 0 (System.Boolean)
IL_007F: Label0
IL_007F: ldloc 0 (System.Boolean)
IL_0083: ret
DONE

### Patch: virtual Verse.AI.Job


RimWorld.JobGiver_DropUnusedInventory::TryGiveJob(Verse.Pawn pawn)
### Replacement: static Verse.AI.Job
RimWorld.JobGiver_DropUnusedInventory::RimWorld.JobGiver_DropUnusedInventory.TryGiv
eJob_Patch1(RimWorld.JobGiver_DropUnusedInventory this, Verse.Pawn pawn)
IL_0000: Local var 0: System.Int32
IL_0000: Local var 1: Verse.Thing
IL_0000: Local var 2: System.Int32
IL_0000: Local var 3: Verse.Thing
IL_0000: Local var 4: Verse.AI.Job
IL_0000: ldnull
IL_0001: stloc 4 (Verse.AI.Job)
IL_0005: // start original
IL_0005: ldarg.1
IL_0006: ldfld Verse.Pawn_InventoryTracker Verse.Pawn::inventory
IL_000B: brtrue => Label0
IL_0010: ldnull
IL_0011: br => Label12
IL_0016: Label0
IL_0016: ldarg.1
IL_0017: callvirt virtual Verse.Map Verse.Thing::get_Map()
IL_001C: ldfld Verse.AreaManager Verse.Map::areaManager
IL_0021: callvirt RimWorld.Area_Home Verse.AreaManager::get_Home()
IL_0026: ldarg.1
IL_0027: callvirt virtual Verse.IntVec3 Verse.Thing::get_Position()
IL_002C: callvirt System.Boolean Verse.Area::get_Item(Verse.IntVec3 c)
IL_0031: brtrue => Label1
IL_0036: ldnull
IL_0037: br => Label13
IL_003C: Label1
IL_003C: ldarg.1
IL_003D: callvirt virtual RimWorld.Faction Verse.Thing::get_Faction()
IL_0042: call static RimWorld.Faction RimWorld.Faction::get_OfPlayer()
IL_0047: beq => Label2
IL_004C: ldnull
IL_004D: br => Label14
IL_0052: Label2
IL_0052: call static Verse.TickManager Verse.Find::get_TickManager()
IL_0057: callvirt System.Int32 Verse.TickManager::get_TicksGame()
IL_005C: ldarg.1
IL_005D: ldfld Verse.AI.Pawn_MindState Verse.Pawn::mindState
IL_0062: ldfld System.Int32
Verse.AI.Pawn_MindState::lastInventoryRawFoodUseTick
IL_0067: ldc.i4 150000
IL_006C: add
IL_006D: ble => Label3
IL_0072: ldarg.1
IL_0073: ldfld Verse.Pawn_InventoryTracker Verse.Pawn::inventory
IL_0078: ldfld Verse.ThingOwner`1<Verse.Thing>
Verse.Pawn_InventoryTracker::innerContainer
IL_007D: callvirt abstract virtual System.Int32 Verse.ThingOwner::get_Count()
IL_0082: ldc.i4.1
IL_0083: sub
IL_0084: stloc.0
IL_0085: br => Label4
IL_008A: Label8
IL_008A: ldarg.1
IL_008B: ldfld Verse.Pawn_InventoryTracker Verse.Pawn::inventory
IL_0090: ldfld Verse.ThingOwner`1<Verse.Thing>
Verse.Pawn_InventoryTracker::innerContainer
IL_0095: ldloc.0
IL_0096: callvirt Verse.Thing
Verse.ThingOwner`1<Verse.Thing>::get_Item(System.Int32 index)
IL_009B: stloc.1
IL_009C: ldloc.1
IL_009D: ldfld Verse.ThingDef Verse.Thing::def
IL_00A2: callvirt System.Boolean Verse.ThingDef::get_IsIngestible()
IL_00A7: brfalse => Label5
IL_00AC: ldloc.1
IL_00AD: ldfld Verse.ThingDef Verse.Thing::def
IL_00B2: callvirt System.Boolean Verse.ThingDef::get_IsDrug()
IL_00B7: brtrue => Label6
IL_00BC: ldloc.1
IL_00BD: ldfld Verse.ThingDef Verse.Thing::def
IL_00C2: ldfld RimWorld.IngestibleProperties Verse.ThingDef::ingestible
IL_00C7: ldfld RimWorld.FoodPreferability
RimWorld.IngestibleProperties::preferability
IL_00CC: ldc.i4.5
IL_00CD: bgt => Label7
IL_00D2: ldarg.0
IL_00D3: ldarg.1
IL_00D4: ldloc.1
IL_00D5: call System.Void
RimWorld.JobGiver_DropUnusedInventory::Drop(Verse.Pawn pawn, Verse.Thing thing)
IL_00DA: Label5
IL_00DA: Label6
IL_00DA: Label7
IL_00DA: ldloc.0
IL_00DB: ldc.i4.1
IL_00DC: sub
IL_00DD: stloc.0
IL_00DE: Label4
IL_00DE: ldloc.0
IL_00DF: ldc.i4.0
IL_00E0: bge => Label8
IL_00E5: Label3
IL_00E5: ldarg.1
IL_00E6: ldfld Verse.Pawn_InventoryTracker Verse.Pawn::inventory
IL_00EB: ldfld Verse.ThingOwner`1<Verse.Thing>
Verse.Pawn_InventoryTracker::innerContainer
IL_00F0: callvirt abstract virtual System.Int32 Verse.ThingOwner::get_Count()
IL_00F5: ldc.i4.1
IL_00F6: sub
IL_00F7: stloc.2
IL_00F8: br => Label9
IL_00FD: Label11
IL_00FD: ldarg.1
IL_00FE: ldfld Verse.Pawn_InventoryTracker Verse.Pawn::inventory
IL_0103: ldfld Verse.ThingOwner`1<Verse.Thing>
Verse.Pawn_InventoryTracker::innerContainer
IL_0108: ldloc.2
IL_0109: callvirt Verse.Thing
Verse.ThingOwner`1<Verse.Thing>::get_Item(System.Int32 index)
IL_010E: stloc.3
IL_010F: ldarg.1
IL_0110: ldloc.3
IL_0111: call static System.Boolean
RimWorld.JobGiver_DropUnusedInventory::ShouldKeepDrugInInventory(Verse.Pawn pawn,
Verse.Thing drug)
IL_0116: brtrue => Label10
IL_011B: ldarg.0
IL_011C: ldarg.1
IL_011D: ldloc.3
IL_011E: call System.Void
RimWorld.JobGiver_DropUnusedInventory::Drop(Verse.Pawn pawn, Verse.Thing thing)
IL_0123: Label10
IL_0123: ldloc.2
IL_0124: ldc.i4.1
IL_0125: sub
IL_0126: stloc.2
IL_0127: Label9
IL_0127: ldloc.2
IL_0128: ldc.i4.0
IL_0129: bge => Label11
IL_012E: ldnull
IL_012F: // end original
IL_012F: Label12
IL_012F: Label13
IL_012F: Label14
IL_012F: stloc 4 (Verse.AI.Job)
IL_0133: ldarg 1
IL_0137: call static System.Void
PickUpAndHaul.HarmonyPatches::DropUnusedInventory_PostFix(Verse.Pawn pawn)
IL_013C: ldloc 4 (Verse.AI.Job)
IL_0140: ret
DONE

### Patch: virtual System.Collections.Generic.IEnumerable`1<Verse.AI.Toil>


Verse.AI.JobDriver_HaulToCell::MakeNewToils()
### Replacement: static System.Collections.Generic.IEnumerable`1<Verse.AI.Toil>
Verse.AI.JobDriver_HaulToCell::Verse.AI.JobDriver_HaulToCell.MakeNewToils_Patch3(Ve
rse.AI.JobDriver_HaulToCell this)
IL_0000: Local var 0: System.Collections.Generic.IEnumerable`1<Verse.AI.Toil>
IL_0000: ldnull
IL_0001: stloc 0 (System.Collections.Generic.IEnumerable`1[Verse.AI.Toil])
IL_0005: // start original
IL_0005: ldc.i4.s -2
IL_0007: newobj System.Void Verse.AI.<MakeNewToils>d__11::.ctor(System.Int32
<>1__state)
IL_000C: dup
IL_000D: ldarg.0
IL_000E: stfld Verse.AI.JobDriver_HaulToCell
Verse.AI.<MakeNewToils>d__11::<>4__this
IL_0013: // end original
IL_0013: stloc 0 (System.Collections.Generic.IEnumerable`1[Verse.AI.Toil])
IL_0017: ldarg.0
IL_0018: call static System.Void
JobsOfOpportunity.JobDriver_HaulToCell__MakeNewToils_Patch::ClearSpecialHaulOnFinis
h(Verse.AI.JobDriver __instance)
IL_001D: ldarg.0
IL_001E: call static System.Void
PickUpAndHaul.HarmonyPatches::JobDriver_HaulToCell_PostFix(Verse.AI.JobDriver_HaulT
oCell __instance)
IL_0023: ldloca 0 (System.Collections.Generic.IEnumerable`1[Verse.AI.Toil])
IL_0027: ldarg.0
IL_0028: call static System.Void
AutoToolSwitcher.HarmonyPatches::AddEquipToolToilsPostfix(System.Collections.Generi
c.IEnumerable`1& __result, Verse.AI.JobDriver __instance)
IL_002D: ldloc 0 (System.Collections.Generic.IEnumerable`1[Verse.AI.Toil])
IL_0031: ret
DONE

### Patch: System.Void Verse.Pawn_InventoryTracker::Notify_ItemRemoved(Verse.Thing


item)
### Replacement: static System.Void
Verse.Pawn_InventoryTracker::Verse.Pawn_InventoryTracker.Notify_ItemRemoved_Patch1(
Verse.Pawn_InventoryTracker this, Verse.Thing item)
IL_0000: // start original
IL_0000: ldarg.0
IL_0001: ldfld System.Collections.Generic.List`1<Verse.Thing>
Verse.Pawn_InventoryTracker::itemsNotForSale
IL_0006: ldarg.1
IL_0007: callvirt virtual System.Boolean
System.Collections.Generic.List`1<Verse.Thing>::Remove(Verse.Thing item)
IL_000C: pop
IL_000D: ldarg.0
IL_000E: ldfld System.Collections.Generic.List`1<Verse.Thing>
Verse.Pawn_InventoryTracker::unpackedCaravanItems
IL_0013: ldarg.1
IL_0014: callvirt virtual System.Boolean
System.Collections.Generic.List`1<Verse.Thing>::Remove(Verse.Thing item)
IL_0019: pop
IL_001A: ldarg.0
IL_001B: ldfld System.Boolean Verse.Pawn_InventoryTracker::unloadEverything
IL_0020: brfalse => Label0
IL_0025: ldarg.0
IL_0026: call System.Boolean
Verse.Pawn_InventoryTracker::get_HasAnyUnloadableThing()
IL_002B: brtrue => Label1
IL_0030: ldarg.0
IL_0031: ldc.i4.0
IL_0032: stfld System.Boolean Verse.Pawn_InventoryTracker::unloadEverything
IL_0037: // end original
IL_0037: Label0
IL_0037: Label1
IL_0037: ldarg.0
IL_0038: ldarg 1
IL_003C: call static System.Void
PickUpAndHaul.HarmonyPatches::Pawn_InventoryTracker_PostFix(Verse.Pawn_InventoryTra
cker __instance, Verse.Thing item)
IL_0041: ret
DONE

### Patch: System.Void RimWorld.JobGiver_DropUnusedInventory::Drop(Verse.Pawn pawn,


Verse.Thing thing)
### Replacement: static System.Void
RimWorld.JobGiver_DropUnusedInventory::RimWorld.JobGiver_DropUnusedInventory.Drop_P
atch2(RimWorld.JobGiver_DropUnusedInventory this, Verse.Pawn pawn, Verse.Thing
thing)
IL_0000: Local var 0: Verse.Thing
IL_0000: Local var 1: System.Boolean
IL_0000: ldc.i4 0
IL_0005: stloc 1 (System.Boolean)
IL_0009: ldc.i4.1
IL_000A: stloc 1 (System.Boolean)
IL_000E: ldloc 1 (System.Boolean)
IL_0012: brfalse => Label1
IL_0017: ldarg 1
IL_001B: ldarg 2
IL_001F: call static System.Boolean
PeteTimesSix.SimpleSidearms.Intercepts.JobGiver_DropUnusedInventory_Drop::Prefix(Ve
rse.Pawn pawn, Verse.Thing thing)
IL_0024: stloc 1 (System.Boolean)
IL_0028: Label1
IL_0028: nop
IL_0029: ldloc 1 (System.Boolean)
IL_002D: brfalse => Label2
IL_0032: ldarg 1
IL_0036: ldarg 2
IL_003A: call static System.Boolean
PickUpAndHaul.HarmonyPatches::Drop_Prefix(Verse.Pawn pawn, Verse.Thing thing)
IL_003F: stloc 1 (System.Boolean)
IL_0043: Label2
IL_0043: nop
IL_0044: ldloc 1 (System.Boolean)
IL_0048: brfalse => Label0
IL_004D: // start original
IL_004D: ldarg.1
IL_004E: ldfld Verse.Pawn_InventoryTracker Verse.Pawn::inventory
IL_0053: ldfld Verse.ThingOwner`1<Verse.Thing>
Verse.Pawn_InventoryTracker::innerContainer
IL_0058: ldarg.2
IL_0059: ldarg.1
IL_005A: callvirt virtual Verse.IntVec3 Verse.Thing::get_Position()
IL_005F: ldarg.1
IL_0060: callvirt virtual Verse.Map Verse.Thing::get_Map()
IL_0065: ldc.i4.1
IL_0066: ldloca.s 0 (Verse.Thing)
IL_0068: ldnull
IL_0069: ldnull
IL_006A: callvirt System.Boolean
Verse.ThingOwner`1<Verse.Thing>::TryDrop(Verse.Thing thing, Verse.IntVec3 dropLoc,
Verse.Map map, Verse.ThingPlaceMode mode, Verse.Thing& lastResultingThing,
System.Action`2<Verse.Thing, System.Int32> placedAction,
System.Predicate`1<Verse.IntVec3> nearPlaceValidator)
IL_006F: pop
IL_0070: // end original
IL_0070: Label0
IL_0070: ret
DONE

### Patch: virtual Verse.AI.Job Verse.AI.JobGiver_Idle::TryGiveJob(Verse.Pawn pawn)


### Replacement: static Verse.AI.Job
Verse.AI.JobGiver_Idle::Verse.AI.JobGiver_Idle.TryGiveJob_Patch1(Verse.AI.JobGiver_
Idle this, Verse.Pawn pawn)
IL_0000: Local var 0: System.Nullable`1<Verse.Rot4>
IL_0000: Local var 1: System.Nullable`1<Verse.Rot4>
IL_0000: Local var 2: Verse.AI.Job
IL_0000: ldnull
IL_0001: stloc 2 (Verse.AI.Job)
IL_0005: // start original
IL_0005: ldsfld Verse.JobDef RimWorld.JobDefOf::Wait
IL_000A: call static Verse.AI.Job Verse.JobMaker::MakeJob(Verse.JobDef def)
IL_000F: dup
IL_0010: ldarg.0
IL_0011: ldfld System.Int32 Verse.AI.JobGiver_Idle::ticks
IL_0016: stfld System.Int32 Verse.AI.Job::expiryInterval
IL_001B: dup
IL_001C: ldarg.1
IL_001D: ldfld Verse.AI.Pawn_MindState Verse.Pawn::mindState
IL_0022: dup
IL_0023: brtrue => Label0
IL_0028: pop
IL_0029: ldloca.s 1 (System.Nullable`1[Verse.Rot4])
IL_002B: initobj System.Nullable`1[Verse.Rot4]
IL_0031: ldloc.1
IL_0032: br => Label1
IL_0037: Label0
IL_0037: ldfld Verse.AI.PawnDuty Verse.AI.Pawn_MindState::duty
IL_003C: dup
IL_003D: brtrue => Label2
IL_0042: pop
IL_0043: ldloca.s 1 (System.Nullable`1[Verse.Rot4])
IL_0045: initobj System.Nullable`1[Verse.Rot4]
IL_004B: ldloc.1
IL_004C: br => Label3
IL_0051: Label2
IL_0051: ldfld Verse.Rot4 Verse.AI.PawnDuty::overrideFacing
IL_0056: newobj System.Void System.Nullable`1<Verse.Rot4>::.ctor(Verse.Rot4
value)
IL_005B: Label1
IL_005B: Label3
IL_005B: stloc.0
IL_005C: ldloca.s 0 (System.Nullable`1[Verse.Rot4])
IL_005E: call System.Boolean System.Nullable`1<Verse.Rot4>::get_HasValue()
IL_0063: brtrue => Label4
IL_0068: ldsfld Verse.Rot4 Verse.Rot4::Invalid
IL_006D: br => Label5
IL_0072: Label4
IL_0072: ldloca.s 0 (System.Nullable`1[Verse.Rot4])
IL_0074: call Verse.Rot4 System.Nullable`1<Verse.Rot4>::GetValueOrDefault()
IL_0079: Label5
IL_0079: stfld Verse.Rot4 Verse.AI.Job::overrideFacing
IL_007E: // end original
IL_007E: stloc 2 (Verse.AI.Job)
IL_0082: ldarg 1
IL_0086: call static System.Void
PickUpAndHaul.HarmonyPatches::IdleJoy_Postfix(Verse.Pawn pawn)
IL_008B: ldloc 2 (Verse.AI.Job)
IL_008F: ret
DONE
### Patch: System.Void RimWorld.ITab_Pawn_Gear::DrawThingRow(System.Single& y,
System.Single width, Verse.Thing thing, System.Boolean inventory)
### Replacement: static System.Void
RimWorld.ITab_Pawn_Gear::RimWorld.ITab_Pawn_Gear.DrawThingRow_Patch2(RimWorld.ITab_
Pawn_Gear this, System.Single& y, System.Single width, Verse.Thing thing,
System.Boolean inventory)
IL_0000: Local var 0: RimWorld.ITab_Pawn_Gear/<>c__DisplayClass22_0
IL_0000: Local var 1: UnityEngine.Rect
IL_0000: Local var 2: System.Boolean
IL_0000: Local var 3: UnityEngine.Rect
IL_0000: Local var 4: System.String
IL_0000: Local var 5: RimWorld.Apparel
IL_0000: Local var 6: UnityEngine.Rect
IL_0000: Local var 7: System.Boolean
IL_0000: Local var 8: System.Boolean
IL_0000: Local var 9: System.Boolean
IL_0000: Local var 10: RimWorld.Apparel
IL_0000: Local var 11: UnityEngine.Color
IL_0000: Local var 12: UnityEngine.Color
IL_0000: Local var 13: System.Action
IL_0000: Local var 14: UnityEngine.Rect
IL_0000: Local var 15: System.Nullable`1<Verse.Rot4>
IL_0000: Local var 16: System.String
IL_0000: call static System.Void
VFE.Mechanoids.HarmonyPatches.ITab_Pawn_Gear_Patch::Prefix()
IL_0005: // start original
IL_0005: newobj System.Void RimWorld.<>c__DisplayClass22_0::.ctor()
IL_000A: stloc.0
IL_000B: ldloc.0
IL_000C: ldarg.0
IL_000D: stfld RimWorld.ITab_Pawn_Gear
RimWorld.<>c__DisplayClass22_0::<>4__this
IL_0012: ldloc.0
IL_0013: ldarg.3
IL_0014: stfld Verse.Thing RimWorld.<>c__DisplayClass22_0::thing
IL_0019: ldloca.s 1 (UnityEngine.Rect)
IL_001B: ldc.r4 0
IL_0020: ldarg.1
IL_0021: ldind.r4
IL_0022: ldarg.2
IL_0023: ldc.r4 28
IL_0028: call System.Void UnityEngine.Rect::.ctor(System.Single x,
System.Single y, System.Single width, System.Single height)
IL_002D: ldloca.s 1 (UnityEngine.Rect)
IL_002F: call System.Single UnityEngine.Rect::get_width()
IL_0034: ldc.r4 24
IL_0039: sub
IL_003A: ldarg.1
IL_003B: ldind.r4
IL_003C: ldloc.0
IL_003D: ldfld Verse.Thing RimWorld.<>c__DisplayClass22_0::thing
IL_0042: call static System.Boolean
Verse.Widgets::InfoCardButton(System.Single x, System.Single y, Verse.Thing thing)
IL_0047: pop
IL_0048: ldloca.s 1 (UnityEngine.Rect)
IL_004A: dup
IL_004B: call System.Single UnityEngine.Rect::get_width()
IL_0050: ldc.r4 24
IL_0055: sub
IL_0056: call System.Void UnityEngine.Rect::set_width(System.Single value)
IL_005B: ldc.i4.0
IL_005C: stloc.2
IL_005D: ldarg.0
IL_005E: call System.Boolean RimWorld.ITab_Pawn_Gear::get_CanControl()
IL_0063: brfalse => Label0
IL_0068: ldarg.s 4
IL_006A: brtrue => Label1
IL_006F: ldarg.0
IL_0070: call System.Boolean
RimWorld.ITab_Pawn_Gear::get_CanControlColonist()
IL_0075: brtrue => Label2
IL_007A: ldarg.0
IL_007B: call Verse.Pawn RimWorld.ITab_Pawn_Gear::get_SelPawnForGear()
IL_0080: callvirt System.Boolean Verse.Thing::get_Spawned()
IL_0085: brfalse => Label3
IL_008A: ldarg.0
IL_008B: call Verse.Pawn RimWorld.ITab_Pawn_Gear::get_SelPawnForGear()
IL_0090: callvirt virtual Verse.Map Verse.Thing::get_Map()
IL_0095: callvirt System.Boolean Verse.Map::get_IsPlayerHome()
IL_009A: brtrue => Label4
IL_009F: Label1
IL_009F: Label2
IL_009F: ldloca.s 6 (UnityEngine.Rect)
IL_00A1: ldloca.s 1 (UnityEngine.Rect)
IL_00A3: call System.Single UnityEngine.Rect::get_width()
IL_00A8: ldc.r4 24
IL_00AD: sub
IL_00AE: ldarg.1
IL_00AF: ldind.r4
IL_00B0: ldc.r4 24
IL_00B5: ldc.r4 24
IL_00BA: call System.Void UnityEngine.Rect::.ctor(System.Single x,
System.Single y, System.Single width, System.Single height)
IL_00BF: ldc.i4.0
IL_00C0: stloc.s 7 (System.Boolean)
IL_00C2: ldarg.0
IL_00C3: call Verse.Pawn RimWorld.ITab_Pawn_Gear::get_SelPawnForGear()
IL_00C8: call static System.Boolean
RimWorld.QuestUtility::IsQuestLodger(Verse.Pawn p)
IL_00CD: brfalse => Label5
IL_00D2: ldarg.s 4
IL_00D4: brtrue => Label6
IL_00D9: ldloc.0
IL_00DA: ldfld Verse.Thing RimWorld.<>c__DisplayClass22_0::thing
IL_00DF: ldarg.0
IL_00E0: call Verse.Pawn RimWorld.ITab_Pawn_Gear::get_SelPawnForGear()
IL_00E5: call static System.Boolean
RimWorld.EquipmentUtility::QuestLodgerCanUnequip(Verse.Thing thing, Verse.Pawn
pawn)
IL_00EA: ldc.i4.0
IL_00EB: ceq
IL_00ED: br => Label7
IL_00F2: Label6
IL_00F2: ldc.i4.1
IL_00F3: Label7
IL_00F3: stloc.s 7 (System.Boolean)
IL_00F5: Label5
IL_00F5: ldarg.s 4
IL_00F7: brtrue => Label8
IL_00FC: ldarg.0
IL_00FD: call Verse.Pawn RimWorld.ITab_Pawn_Gear::get_SelPawnForGear()
IL_0102: ldfld Verse.PawnKindDef Verse.Pawn::kindDef
IL_0107: ldfld System.Boolean Verse.PawnKindDef::destroyGearOnDrop
IL_010C: br => Label9
IL_0111: Label8
IL_0111: ldc.i4.0
IL_0112: Label9
IL_0112: stloc.s 8 (System.Boolean)
IL_0114: ldloc.0
IL_0115: ldfld Verse.Thing RimWorld.<>c__DisplayClass22_0::thing
IL_011A: isinst RimWorld.Apparel
IL_011F: dup
IL_0120: stloc.s 10 (RimWorld.Apparel)
IL_0122: brfalse => Label10
IL_0127: ldarg.0
IL_0128: call Verse.Pawn RimWorld.ITab_Pawn_Gear::get_SelPawnForGear()
IL_012D: ldfld RimWorld.Pawn_ApparelTracker Verse.Pawn::apparel
IL_0132: brfalse => Label11
IL_0137: ldarg.0
IL_0138: call Verse.Pawn RimWorld.ITab_Pawn_Gear::get_SelPawnForGear()
IL_013D: ldfld RimWorld.Pawn_ApparelTracker Verse.Pawn::apparel
IL_0142: ldloc.s 10 (RimWorld.Apparel)
IL_0144: callvirt System.Boolean
RimWorld.Pawn_ApparelTracker::IsLocked(RimWorld.Apparel apparel)
IL_0149: br => Label12
IL_014E: Label10
IL_014E: Label11
IL_014E: ldc.i4.0
IL_014F: Label12
IL_014F: stloc.s 9 (System.Boolean)
IL_0151: ldloc.s 7 (System.Boolean)
IL_0153: ldloc.s 9 (System.Boolean)
IL_0155: or
IL_0156: ldloc.s 8 (System.Boolean)
IL_0158: or
IL_0159: stloc.2
IL_015A: ldloc.s 6 (UnityEngine.Rect)
IL_015C: call static System.Boolean Verse.Mouse::IsOver(UnityEngine.Rect
rect)
IL_0161: brfalse => Label13
IL_0166: ldloc.s 9 (System.Boolean)
IL_0168: brfalse => Label14
IL_016D: ldloc.s 6 (UnityEngine.Rect)
IL_016F: ldloc.s 10
IL_0171: call static Verse.TaggedString
VFEPirates.ITab_Pawn_Gear_DrawThingRow_Transpiler::DropThingTooltip(RimWorld.Appare
l apparel)
IL_0176: call static Verse.TipSignal
Verse.TipSignal::op_Implicit(Verse.TaggedString str)
IL_017B: call static System.Void
Verse.TooltipHandler::TipRegion(UnityEngine.Rect rect, Verse.TipSignal tip)
IL_0180: br => Label15
IL_0185: Label14
IL_0185: ldloc.s 7 (System.Boolean)
IL_0187: brfalse => Label16
IL_018C: ldloc.s 6 (UnityEngine.Rect)
IL_018E: ldstr "DropThingLodger"
IL_0193: call static Verse.TaggedString
Verse.Translator::Translate(System.String key)
IL_0198: call static Verse.TipSignal
Verse.TipSignal::op_Implicit(Verse.TaggedString str)
IL_019D: call static System.Void
Verse.TooltipHandler::TipRegion(UnityEngine.Rect rect, Verse.TipSignal tip)
IL_01A2: br => Label17
IL_01A7: Label16
IL_01A7: ldloc.s 6 (UnityEngine.Rect)
IL_01A9: ldstr "DropThing"
IL_01AE: call static Verse.TaggedString
Verse.Translator::Translate(System.String key)
IL_01B3: call static Verse.TipSignal
Verse.TipSignal::op_Implicit(Verse.TaggedString str)
IL_01B8: call static System.Void
Verse.TooltipHandler::TipRegion(UnityEngine.Rect rect, Verse.TipSignal tip)
IL_01BD: Label13
IL_01BD: Label15
IL_01BD: Label17
IL_01BD: ldloc.2
IL_01BE: brtrue => Label18
IL_01C3: ldarg.0
IL_01C4: callvirt Verse.Pawn RimWorld.ITab_Pawn_Gear::get_SelPawnForGear()
IL_01C9: ldarg.3
IL_01CA: call static UnityEngine.Color
PickUpAndHaul.HarmonyPatches::GetColorForHauled(Verse.Pawn pawn, Verse.Thing thing)
IL_01CF: br => Label19
IL_01D4: Label18
IL_01D4: call static UnityEngine.Color UnityEngine.Color::get_grey()
IL_01D9: Label19
IL_01D9: stloc.s 11 (UnityEngine.Color)
IL_01DB: ldloc.2
IL_01DC: brtrue => Label20
IL_01E1: ldsfld UnityEngine.Color Verse.GenUI::MouseoverColor
IL_01E6: br => Label21
IL_01EB: Label20
IL_01EB: ldloc.s 11 (UnityEngine.Color)
IL_01ED: Label21
IL_01ED: stloc.s 12 (UnityEngine.Color)
IL_01EF: ldloc.s 6 (UnityEngine.Rect)
IL_01F1: ldsfld UnityEngine.Texture2D Verse.TexButton::Drop
IL_01F6: ldloc.s 11 (UnityEngine.Color)
IL_01F8: ldloc.s 12 (UnityEngine.Color)
IL_01FA: ldloc.2
IL_01FB: ldc.i4.0
IL_01FC: ceq
IL_01FE: call static System.Boolean
Verse.Widgets::ButtonImage(UnityEngine.Rect butRect, UnityEngine.Texture2D tex,
UnityEngine.Color baseColor, UnityEngine.Color mouseoverColor, System.Boolean
doMouseoverSound)
IL_0203: brfalse => Label22
IL_0208: ldloc.2
IL_0209: brtrue => Label23
IL_020E: ldloc.0
IL_020F: ldftn System.Void
RimWorld.<>c__DisplayClass22_0::<DrawThingRow>b__0()
IL_0215: newobj System.Void System.Action::.ctor(System.Object object,
System.IntPtr method)
IL_021A: stloc.s 13 (System.Action)
IL_021C: call static System.Boolean Verse.ModsConfig::get_BiotechActive()
IL_0221: brfalse => Label24
IL_0226: ldarg.0
IL_0227: call Verse.Pawn RimWorld.ITab_Pawn_Gear::get_SelPawnForGear()
IL_022C: ldloc.0
IL_022D: ldfld Verse.Thing RimWorld.<>c__DisplayClass22_0::thing
IL_0232: ldloc.s 13 (System.Action)
IL_0234: call static System.Boolean
MechanitorUtility::TryConfirmBandwidthLossFromDroppingThing(Verse.Pawn pawn,
Verse.Thing thing, System.Action confirmAct)
IL_0239: brtrue => Label25
IL_023E: Label24
IL_023E: ldloc.s 13 (System.Action)
IL_0240: callvirt virtual System.Void System.Action::Invoke()
IL_0245: Label22
IL_0245: Label23
IL_0245: Label25
IL_0245: ldloca.s 1 (UnityEngine.Rect)
IL_0247: dup
IL_0248: call System.Single UnityEngine.Rect::get_width()
IL_024D: ldc.r4 24
IL_0252: sub
IL_0253: call System.Void UnityEngine.Rect::set_width(System.Single value)
IL_0258: Label0
IL_0258: Label3
IL_0258: Label4
IL_0258: ldarg.0
IL_0259: call System.Boolean
RimWorld.ITab_Pawn_Gear::get_CanControlColonist()
IL_025E: brfalse => Label26
IL_0263: ldarg.0
IL_0264: call Verse.Pawn RimWorld.ITab_Pawn_Gear::get_SelPawnForGear()
IL_0269: ldloc.0
IL_026A: ldfld Verse.Thing RimWorld.<>c__DisplayClass22_0::thing
IL_026F: call static System.Boolean
RimWorld.FoodUtility::WillIngestFromInventoryNow(Verse.Pawn pawn, Verse.Thing inv)
IL_0274: brfalse => Label27
IL_0279: ldloca.s 1 (UnityEngine.Rect)
IL_027B: call System.Single UnityEngine.Rect::get_width()
IL_0280: ldc.r4 24
IL_0285: sub
IL_0286: ldarg.1
IL_0287: ldind.r4
IL_0288: ldc.r4 24
IL_028D: ldc.r4 24
IL_0292: newobj System.Void UnityEngine.Rect::.ctor(System.Single x,
System.Single y, System.Single width, System.Single height)
IL_0297: dup
IL_0298: ldstr "ConsumeThing"
IL_029D: ldloc.0
IL_029E: ldfld Verse.Thing RimWorld.<>c__DisplayClass22_0::thing
IL_02A3: callvirt virtual System.String Verse.Thing::get_LabelNoCount()
IL_02A8: call static Verse.NamedArgument
Verse.NamedArgument::op_Implicit(System.String value)
IL_02AD: ldloc.0
IL_02AE: ldfld Verse.Thing RimWorld.<>c__DisplayClass22_0::thing
IL_02B3: call static Verse.NamedArgument
Verse.NamedArgument::op_Implicit(Verse.Thing value)
IL_02B8: call static System.Void
Verse.TooltipHandler::TipRegionByKey(UnityEngine.Rect rect, System.String key,
Verse.NamedArgument arg1, Verse.NamedArgument arg2)
IL_02BD: ldsfld UnityEngine.Texture2D Verse.TexButton::Ingest
IL_02C2: ldc.i4.1
IL_02C3: call static System.Boolean
Verse.Widgets::ButtonImage(UnityEngine.Rect butRect, UnityEngine.Texture2D tex,
System.Boolean doMouseoverSound)
IL_02C8: brfalse => Label28
IL_02CD: ldsfld Verse.SoundDef RimWorld.SoundDefOf::Tick_High
IL_02D2: ldnull
IL_02D3: call static System.Void
Verse.Sound.SoundStarter::PlayOneShotOnCamera(Verse.SoundDef soundDef, Verse.Map
onlyThisMap)
IL_02D8: ldarg.0
IL_02D9: call Verse.Pawn RimWorld.ITab_Pawn_Gear::get_SelPawnForGear()
IL_02DE: ldloc.0
IL_02DF: ldfld Verse.Thing RimWorld.<>c__DisplayClass22_0::thing
IL_02E4: call static System.Void
RimWorld.FoodUtility::IngestFromInventoryNow(Verse.Pawn pawn, Verse.Thing inv)
IL_02E9: Label27
IL_02E9: Label28
IL_02E9: ldloca.s 1 (UnityEngine.Rect)
IL_02EB: dup
IL_02EC: call System.Single UnityEngine.Rect::get_width()
IL_02F1: ldc.r4 24
IL_02F6: sub
IL_02F7: call System.Void UnityEngine.Rect::set_width(System.Single value)
IL_02FC: Label26
IL_02FC: ldloc.1
IL_02FD: stloc.s 14 (UnityEngine.Rect)
IL_02FF: ldloca.s 14 (UnityEngine.Rect)
IL_0301: ldloca.s 14 (UnityEngine.Rect)
IL_0303: call System.Single UnityEngine.Rect::get_xMax()
IL_0308: ldc.r4 60
IL_030D: sub
IL_030E: call System.Void UnityEngine.Rect::set_xMin(System.Single value)
IL_0313: ldloc.0
IL_0314: ldfld Verse.Thing RimWorld.<>c__DisplayClass22_0::thing
IL_0319: ldloc.s 14 (UnityEngine.Rect)
IL_031B: call static System.Void
RimWorld.Planet.CaravanThingsTabUtility::DrawMass(Verse.Thing thing,
UnityEngine.Rect rect)
IL_0320: ldloca.s 1 (UnityEngine.Rect)
IL_0322: dup
IL_0323: call System.Single UnityEngine.Rect::get_width()
IL_0328: ldc.r4 60
IL_032D: sub
IL_032E: call System.Void UnityEngine.Rect::set_width(System.Single value)
IL_0333: ldloc.1
IL_0334: call static System.Boolean Verse.Mouse::IsOver(UnityEngine.Rect
rect)
IL_0339: brfalse => Label29
IL_033E: ldsfld UnityEngine.Color RimWorld.ITab_Pawn_Gear::HighlightColor
IL_0343: call static System.Void UnityEngine.GUI::set_color(UnityEngine.Color
value)
IL_0348: ldloc.1
IL_0349: ldsfld UnityEngine.Texture2D Verse.TexUI::HighlightTex
IL_034E: call static System.Void
UnityEngine.GUI::DrawTexture(UnityEngine.Rect position, UnityEngine.Texture image)
IL_0353: Label29
IL_0353: ldloc.0
IL_0354: ldfld Verse.Thing RimWorld.<>c__DisplayClass22_0::thing
IL_0359: ldfld Verse.ThingDef Verse.Thing::def
IL_035E: callvirt UnityEngine.Material Verse.BuildableDef::get_DrawMatSingle()
IL_0363: ldnull
IL_0364: call static System.Boolean
UnityEngine.Object::op_Inequality(UnityEngine.Object x, UnityEngine.Object y)
IL_0369: brfalse => Label30
IL_036E: ldloc.0
IL_036F: ldfld Verse.Thing RimWorld.<>c__DisplayClass22_0::thing
IL_0374: ldfld Verse.ThingDef Verse.Thing::def
IL_0379: callvirt UnityEngine.Material Verse.BuildableDef::get_DrawMatSingle()
IL_037E: callvirt UnityEngine.Texture UnityEngine.Material::get_mainTexture()
IL_0383: ldnull
IL_0384: call static System.Boolean
UnityEngine.Object::op_Inequality(UnityEngine.Object x, UnityEngine.Object y)
IL_0389: brfalse => Label31
IL_038E: ldc.r4 4
IL_0393: ldarg.1
IL_0394: ldind.r4
IL_0395: ldc.r4 28
IL_039A: ldc.r4 28
IL_039F: newobj System.Void UnityEngine.Rect::.ctor(System.Single x,
System.Single y, System.Single width, System.Single height)
IL_03A4: ldloc.0
IL_03A5: ldfld Verse.Thing RimWorld.<>c__DisplayClass22_0::thing
IL_03AA: ldc.r4 1
IL_03AF: ldloca.s 15 (System.Nullable`1[Verse.Rot4])
IL_03B1: initobj System.Nullable`1[Verse.Rot4]
IL_03B7: ldloc.s 15 (System.Nullable`1[Verse.Rot4])
IL_03B9: ldc.i4.0
IL_03BA: call static System.Void Verse.Widgets::ThingIcon(UnityEngine.Rect
rect, Verse.Thing thing, System.Single alpha, System.Nullable`1<Verse.Rot4> rot,
System.Boolean stackOfOne)
IL_03BF: Label30
IL_03BF: Label31
IL_03BF: ldc.i4.3
IL_03C0: call static System.Void
Verse.Text::set_Anchor(UnityEngine.TextAnchor value)
IL_03C5: ldsfld UnityEngine.Color RimWorld.ITab_Pawn_Gear::ThingLabelColor
IL_03CA: call static System.Void UnityEngine.GUI::set_color(UnityEngine.Color
value)
IL_03CF: ldloca.s 3 (UnityEngine.Rect)
IL_03D1: ldc.r4 36
IL_03D6: ldarg.1
IL_03D7: ldind.r4
IL_03D8: ldloca.s 1 (UnityEngine.Rect)
IL_03DA: call System.Single UnityEngine.Rect::get_width()
IL_03DF: ldc.r4 36
IL_03E4: sub
IL_03E5: ldloca.s 1 (UnityEngine.Rect)
IL_03E7: call System.Single UnityEngine.Rect::get_height()
IL_03EC: call System.Void UnityEngine.Rect::.ctor(System.Single x,
System.Single y, System.Single width, System.Single height)
IL_03F1: ldloc.0
IL_03F2: ldfld Verse.Thing RimWorld.<>c__DisplayClass22_0::thing
IL_03F7: callvirt abstract virtual System.String Verse.Entity::get_LabelCap()
IL_03FC: ldarg.0
IL_03FD: call Verse.Pawn RimWorld.ITab_Pawn_Gear::get_SelPawnForGear()
IL_0402: ldarg.3
IL_0403: ldfld Verse.ThingDef Verse.Thing::def
IL_0408: call static System.String
SmartMedicine.DrawThingRow_Patch::AddStockText(System.String text, Verse.Pawn pawn,
Verse.ThingDef thingDef)
IL_040D: stloc.s 4 (System.String)
IL_040F: ldloc.0
IL_0410: ldfld Verse.Thing RimWorld.<>c__DisplayClass22_0::thing
IL_0415: isinst RimWorld.Apparel
IL_041A: stloc.s 5 (RimWorld.Apparel)
IL_041C: ldloc.s 5 (RimWorld.Apparel)
IL_041E: brfalse => Label32
IL_0423: ldarg.0
IL_0424: call Verse.Pawn RimWorld.ITab_Pawn_Gear::get_SelPawnForGear()
IL_0429: ldfld RimWorld.Pawn_OutfitTracker Verse.Pawn::outfits
IL_042E: brfalse => Label33
IL_0433: ldarg.0
IL_0434: call Verse.Pawn RimWorld.ITab_Pawn_Gear::get_SelPawnForGear()
IL_0439: ldfld RimWorld.Pawn_OutfitTracker Verse.Pawn::outfits
IL_043E: ldfld RimWorld.OutfitForcedHandler
RimWorld.Pawn_OutfitTracker::forcedHandler
IL_0443: ldloc.s 5 (RimWorld.Apparel)
IL_0445: callvirt System.Boolean
RimWorld.OutfitForcedHandler::IsForced(RimWorld.Apparel ap)
IL_044A: brfalse => Label34
IL_044F: ldloc.s 4 (System.String)
IL_0451: ldstr ", "
IL_0456: ldstr "ApparelForcedLower"
IL_045B: call static Verse.TaggedString
Verse.Translator::Translate(System.String key)
IL_0460: call static Verse.TaggedString
Verse.TaggedString::op_Addition(System.String t1, Verse.TaggedString t2)
IL_0465: call static Verse.TaggedString
Verse.TaggedString::op_Addition(System.String t1, Verse.TaggedString t2)
IL_046A: call static System.String
Verse.TaggedString::op_Implicit(Verse.TaggedString taggedString)
IL_046F: stloc.s 4 (System.String)
IL_0471: Label32
IL_0471: Label33
IL_0471: Label34
IL_0471: ldloc.2
IL_0472: brfalse => Label35
IL_0477: ldloc.s 4 (System.String)
IL_0479: ldstr " ("
IL_047E: ldstr "ApparelLockedLower"
IL_0483: call static Verse.TaggedString
Verse.Translator::Translate(System.String key)
IL_0488: call static Verse.TaggedString
Verse.TaggedString::op_Addition(System.String t1, Verse.TaggedString t2)
IL_048D: ldstr ")"
IL_0492: call static Verse.TaggedString
Verse.TaggedString::op_Addition(Verse.TaggedString t1, System.String t2)
IL_0497: call static Verse.TaggedString
Verse.TaggedString::op_Addition(System.String t1, Verse.TaggedString t2)
IL_049C: call static System.String
Verse.TaggedString::op_Implicit(Verse.TaggedString taggedString)
IL_04A1: stloc.s 4 (System.String)
IL_04A3: Label35
IL_04A3: ldc.i4.0
IL_04A4: call static System.Void Verse.Text::set_WordWrap(System.Boolean
value)
IL_04A9: ldloc.3
IL_04AA: ldloc.s 4 (System.String)
IL_04AC: ldloca.s 3 (UnityEngine.Rect)
IL_04AE: call System.Single UnityEngine.Rect::get_width()
IL_04B3: ldnull
IL_04B4: call static System.String Verse.GenText::Truncate(System.String str,
System.Single width, System.Collections.Generic.Dictionary`2<System.String,
System.String> cache)
IL_04B9: ldarg.0
IL_04BA: call Verse.Pawn RimWorld.ITab_Pawn_Gear::get_SelPawnForGear()
IL_04BF: ldarg.3
IL_04C0: ldfld Verse.ThingDef Verse.Thing::def
IL_04C5: call static System.Void
SmartMedicine.DrawThingRow_Patch::LabelIncDecButton(UnityEngine.Rect rect,
System.String text, Verse.Pawn pawn, Verse.ThingDef thingDef)
IL_04CA: ldc.i4.1
IL_04CB: call static System.Void Verse.Text::set_WordWrap(System.Boolean
value)
IL_04D0: ldloc.1
IL_04D1: call static System.Boolean Verse.Mouse::IsOver(UnityEngine.Rect
rect)
IL_04D6: brfalse => Label36
IL_04DB: ldloc.0
IL_04DC: ldfld Verse.Thing RimWorld.<>c__DisplayClass22_0::thing
IL_04E1: callvirt System.String Verse.Thing::get_LabelNoParenthesisCap()
IL_04E6: call static System.String
Verse.ColoredText::AsTipTitle(System.String s)
IL_04EB: ldloc.0
IL_04EC: ldfld Verse.Thing RimWorld.<>c__DisplayClass22_0::thing
IL_04F1: ldc.i4.1
IL_04F2: ldc.i4.1
IL_04F3: ldc.i4.1
IL_04F4: call static System.String RimWorld.GenLabel::LabelExtras(Verse.Thing
t, System.Int32 stackCount, System.Boolean includeHp, System.Boolean
includeQuality)
IL_04F9: ldstr "\n\n"
IL_04FE: ldloc.0
IL_04FF: ldfld Verse.Thing RimWorld.<>c__DisplayClass22_0::thing
IL_0504: callvirt virtual System.String Verse.Thing::get_DescriptionDetailed()
IL_0509: ldarg.0
IL_050A: call Verse.Pawn RimWorld.ITab_Pawn_Gear::get_SelPawnForGear()
IL_050F: ldarg.3
IL_0510: ldfld Verse.ThingDef Verse.Thing::def
IL_0515: call static System.String
SmartMedicine.DrawThingRow_Patch::AddStockTip(System.String text, Verse.Pawn pawn,
Verse.ThingDef thingDef)
IL_051A: call static System.String System.String::Concat(System.String str0,
System.String str1, System.String str2, System.String str3)
IL_051F: stloc.s 16 (System.String)
IL_0521: ldloc.0
IL_0522: ldfld Verse.Thing RimWorld.<>c__DisplayClass22_0::thing
IL_0527: ldfld Verse.ThingDef Verse.Thing::def
IL_052C: ldfld System.Boolean Verse.ThingDef::useHitPoints
IL_0531: brfalse => Label37
IL_0536: ldc.i4.5
IL_0537: newarr System.Object
IL_053C: dup
IL_053D: ldc.i4.0
IL_053E: ldloc.s 16 (System.String)
IL_0540: stelem.ref
IL_0541: dup
IL_0542: ldc.i4.1
IL_0543: ldstr "\n"
IL_0548: stelem.ref
IL_0549: dup
IL_054A: ldc.i4.2
IL_054B: ldloc.0
IL_054C: ldfld Verse.Thing RimWorld.<>c__DisplayClass22_0::thing
IL_0551: callvirt virtual System.Int32 Verse.Thing::get_HitPoints()
IL_0556: box System.Int32
IL_055B: stelem.ref
IL_055C: dup
IL_055D: ldc.i4.3
IL_055E: ldstr " / "
IL_0563: stelem.ref
IL_0564: dup
IL_0565: ldc.i4.4
IL_0566: ldloc.0
IL_0567: ldfld Verse.Thing RimWorld.<>c__DisplayClass22_0::thing
IL_056C: callvirt System.Int32 Verse.Thing::get_MaxHitPoints()
IL_0571: box System.Int32
IL_0576: stelem.ref
IL_0577: call static System.String System.String::Concat(System.Object[]
args)
IL_057C: stloc.s 16 (System.String)
IL_057E: Label37
IL_057E: ldloc.1
IL_057F: ldloc.s 16 (System.String)
IL_0581: call static Verse.TipSignal
Verse.TipSignal::op_Implicit(System.String str)
IL_0586: call static System.Void
Verse.TooltipHandler::TipRegion(UnityEngine.Rect rect, Verse.TipSignal tip)
IL_058B: Label36
IL_058B: ldarg.1
IL_058C: ldarg.1
IL_058D: ldind.r4
IL_058E: ldc.r4 28
IL_0593: add
IL_0594: stind.r4
IL_0595: // end original
IL_0595: call static System.Void
VFE.Mechanoids.HarmonyPatches.ITab_Pawn_Gear_Patch::Postfix()
IL_059A: ret
DONE

### Patch: virtual System.Boolean RimWorld.WorkGiver_Haul::ShouldSkip(Verse.Pawn


pawn, System.Boolean forced)
### Replacement: static System.Boolean
RimWorld.WorkGiver_Haul::RimWorld.WorkGiver_Haul.ShouldSkip_Patch1(RimWorld.WorkGiv
er_Haul this, Verse.Pawn pawn, System.Boolean forced)
IL_0000: Local var 0: System.Boolean
IL_0000: Local var 1: System.Boolean
IL_0000: ldc.i4 0
IL_0005: stloc 0 (System.Boolean)
IL_0009: ldc.i4 0
IL_000E: stloc 1 (System.Boolean)
IL_0012: ldc.i4.1
IL_0013: stloc 1 (System.Boolean)
IL_0017: ldloc 1 (System.Boolean)
IL_001B: brfalse => Label1
IL_0020: ldarg.0
IL_0021: ldloca 0 (System.Boolean)
IL_0025: ldarg 1
IL_0029: call static System.Boolean
PickUpAndHaul.HarmonyPatches::SkipCorpses_Prefix(RimWorld.WorkGiver_Haul
__instance, System.Boolean& __result, Verse.Pawn pawn)
IL_002E: stloc 1 (System.Boolean)
IL_0032: Label1
IL_0032: nop
IL_0033: ldloc 1 (System.Boolean)
IL_0037: brfalse => Label0
IL_003C: // start original
IL_003C: ldarg.1
IL_003D: callvirt virtual Verse.Map Verse.Thing::get_Map()
IL_0042: ldfld RimWorld.ListerHaulables Verse.Map::listerHaulables
IL_0047: callvirt System.Collections.Generic.List`1<Verse.Thing>
RimWorld.ListerHaulables::ThingsPotentiallyNeedingHauling()
IL_004C: callvirt virtual System.Int32
System.Collections.Generic.List`1<Verse.Thing>::get_Count()
IL_0051: ldc.i4.0
IL_0052: ceq
IL_0054: // end original
IL_0054: stloc 0 (System.Boolean)
IL_0058: Label0
IL_0058: ldloc 0 (System.Boolean)
IL_005C: ret
DONE

### Patch: virtual Verse.AI.Job RimWorld.JobGiver_Haul::TryGiveJob(Verse.Pawn pawn)


### Replacement: static Verse.AI.Job
RimWorld.JobGiver_Haul::RimWorld.JobGiver_Haul.TryGiveJob_Patch0(RimWorld.JobGiver_
Haul this, Verse.Pawn pawn)
IL_0000: Local var 0: RimWorld.JobGiver_Haul/<>c__DisplayClass0_0
IL_0000: Local var 1: System.Predicate`1<Verse.Thing>
IL_0000: Local var 2: Verse.Thing
IL_0000: // start original
IL_0000: newobj System.Void RimWorld.<>c__DisplayClass0_0::.ctor()
IL_0005: stloc.0
IL_0006: ldloc.0
IL_0007: ldarg.1
IL_0008: stfld Verse.Pawn RimWorld.<>c__DisplayClass0_0::pawn
IL_000D: ldloc.0
IL_000E: ldftn System.Boolean
RimWorld.<>c__DisplayClass0_0::<TryGiveJob>b__0(Verse.Thing t)
IL_0014: newobj System.Void
System.Predicate`1<Verse.Thing>::.ctor(System.Object object, System.IntPtr method)
IL_0019: stloc.1
IL_001A: ldloc.0
IL_001B: ldfld Verse.Pawn RimWorld.<>c__DisplayClass0_0::pawn
IL_0020: callvirt virtual Verse.IntVec3 Verse.Thing::get_Position()
IL_0025: ldloc.0
IL_0026: ldfld Verse.Pawn RimWorld.<>c__DisplayClass0_0::pawn
IL_002B: callvirt virtual Verse.Map Verse.Thing::get_Map()
IL_0030: ldloc.0
IL_0031: ldfld Verse.Pawn RimWorld.<>c__DisplayClass0_0::pawn
IL_0036: callvirt virtual Verse.Map Verse.Thing::get_Map()
IL_003B: ldfld RimWorld.ListerHaulables Verse.Map::listerHaulables
IL_0040: callvirt System.Collections.Generic.List`1<Verse.Thing>
RimWorld.ListerHaulables::ThingsPotentiallyNeedingHauling()
IL_0045: ldc.i4.1
IL_0046: ldloc.0
IL_0047: ldfld Verse.Pawn RimWorld.<>c__DisplayClass0_0::pawn
IL_004C: ldc.i4.3
IL_004D: ldc.i4.0
IL_004E: ldc.i4.0
IL_004F: ldc.i4.0
IL_0050: ldc.i4.0
IL_0051: call static Verse.TraverseParms Verse.TraverseParms::For(Verse.Pawn
pawn, Verse.Danger maxDanger, Verse.TraverseMode mode, System.Boolean canBashDoors,
System.Boolean alwaysUseAvoidGrid, System.Boolean canBashFences)
IL_0056: ldc.r4 9999
IL_005B: ldloc.1
IL_005C: ldnull
IL_005D: call static Verse.Thing
Verse.GenClosest::ClosestThing_Global_Reachable(Verse.IntVec3 center, Verse.Map
map, System.Collections.Generic.IEnumerable`1<Verse.Thing> searchSet,
Verse.AI.PathEndMode peMode, Verse.TraverseParms traverseParams, System.Single
maxDistance, System.Predicate`1<Verse.Thing> validator, System.Func`2<Verse.Thing,
System.Single> priorityGetter)
IL_0062: stloc.2
IL_0063: ldloc.2
IL_0064: brfalse => Label0
IL_0069: ldloc.0
IL_006A: ldfld Verse.Pawn RimWorld.<>c__DisplayClass0_0::pawn
IL_006F: ldloc.2
IL_0070: call static Verse.AI.Job
PickUpAndHaul.HarmonyPatches::HaulToStorageJobByRace(Verse.Pawn p, Verse.Thing t)
IL_0075: br => Label1
IL_007A: Label0
IL_007A: ldnull
IL_007B: // end original
IL_007B: Label1
IL_007B: ret
DONE

### Harmony id=com.github.alandariva.moreplanning, version=2.2.2.0, location=C:\


Program Files (x86)\Steam\steamapps\common\data-000002130553D010,
env/clr=4.0.30319.42000, platform=Win32NT, ptrsize:runtime/env=8/Bits64, Windows
### Started from static System.Void MorePlanning.Patches.HarmonyPatches::.cctor(),
location C:\Program Files (x86)\Steam\steamapps\common\data-000002130958BDB0
### At 2023-02-17 06.57.35
### Patch: virtual System.Void Verse.Designation::ExposeData()
### Replacement: static System.Void
Verse.Designation::Verse.Designation.ExposeData_Patch1(Verse.Designation this)
IL_0000: Local var 0: System.Boolean
IL_0000: ldc.i4 0
IL_0005: stloc 0 (System.Boolean)
IL_0009: ldc.i4.1
IL_000A: stloc 0 (System.Boolean)
IL_000E: ldloc 0 (System.Boolean)
IL_0012: brfalse => Label1
IL_0017: ldarg.0
IL_0018: call static System.Boolean
MorePlanning.Patches.HarmonyPatches::DesignationPlanningExposeData_Prefix(Verse.Des
ignation __instance)
IL_001D: stloc 0 (System.Boolean)
IL_0021: Label1
IL_0021: nop
IL_0022: ldloc 0 (System.Boolean)
IL_0026: brfalse => Label0
IL_002B: // start original
IL_002B: ldarg.0
IL_002C: ldflda Verse.DesignationDef Verse.Designation::def
IL_0031: ldstr "def"
IL_0036: call static System.Void
Verse.Scribe_Defs::Look(Verse.DesignationDef& value, System.String label)
IL_003B: ldarg.0
IL_003C: ldflda Verse.LocalTargetInfo Verse.Designation::target
IL_0041: ldstr "target"
IL_0046: call static System.Void
Verse.Scribe_TargetInfo::Look(Verse.LocalTargetInfo& value, System.String label)
IL_004B: ldarg.0
IL_004C: ldflda RimWorld.ColorDef Verse.Designation::colorDef
IL_0051: ldstr "colorDef"
IL_0056: call static System.Void Verse.Scribe_Defs::Look(RimWorld.ColorDef&
value, System.String label)
IL_005B: ldsfld Verse.LoadSaveMode Verse.Scribe::mode
IL_0060: ldc.i4.3
IL_0061: bne.un => Label2
IL_0066: ldarg.0
IL_0067: ldfld Verse.DesignationDef Verse.Designation::def
IL_006C: ldsfld Verse.DesignationDef RimWorld.DesignationDefOf::Haul
IL_0071: bne.un => Label3
IL_0076: ldarg.0
IL_0077: ldflda Verse.LocalTargetInfo Verse.Designation::target
IL_007C: call System.Boolean Verse.LocalTargetInfo::get_HasThing()
IL_0081: brtrue => Label4
IL_0086: ldstr "Haul designation has no target! Deleting."
IL_008B: call static System.Void Verse.Log::Error(System.String text)
IL_0090: ldarg.0
IL_0091: call System.Void Verse.Designation::Delete()
IL_0096: // end original
IL_0096: Label2
IL_0096: Label3
IL_0096: Label4
IL_0096: Label0
IL_0096: ret
DONE

### Patch: System.Void RimWorld.MainTabWindow_Architect::CacheDesPanels()


### Replacement: static System.Void
RimWorld.MainTabWindow_Architect::RimWorld.MainTabWindow_Architect.CacheDesPanels_P
atch1(RimWorld.MainTabWindow_Architect this)
IL_0000: Local var 0:
System.Collections.Generic.IEnumerator`1<Verse.DesignationCategoryDef>
IL_0000: Local var 1: Verse.DesignationCategoryDef
IL_0000: // start original
IL_0000: ldarg.0
IL_0001: ldfld
System.Collections.Generic.List`1<RimWorld.ArchitectCategoryTab>
RimWorld.MainTabWindow_Architect::desPanelsCached
IL_0006: callvirt virtual System.Void
System.Collections.Generic.List`1<RimWorld.ArchitectCategoryTab>::Clear()
IL_000B: call static
System.Collections.Generic.IEnumerable`1<Verse.DesignationCategoryDef>
Verse.DefDatabase`1<Verse.DesignationCategoryDef>::get_AllDefs()
IL_0010: ldsfld System.Func`2<Verse.DesignationCategoryDef, System.Int32>
RimWorld.<>c::<>9__29_0
IL_0015: dup
IL_0016: brtrue => Label0
IL_001B: pop
IL_001C: ldsfld RimWorld.<>c RimWorld.<>c::<>9
IL_0021: ldftn System.Int32
RimWorld.<>c::<CacheDesPanels>b__29_0(Verse.DesignationCategoryDef dc)
IL_0027: newobj System.Void System.Func`2<Verse.DesignationCategoryDef,
System.Int32>::.ctor(System.Object object, System.IntPtr method)
IL_002C: dup
IL_002D: stsfld System.Func`2<Verse.DesignationCategoryDef, System.Int32>
RimWorld.<>c::<>9__29_0
IL_0032: Label0
IL_0032: call static
System.Linq.IOrderedEnumerable`1<Verse.DesignationCategoryDef>
System.Linq.Enumerable::OrderByDescending(System.Collections.Generic.IEnumerable`1<
Verse.DesignationCategoryDef> source, System.Func`2<Verse.DesignationCategoryDef,
System.Int32> keySelector)
IL_0037: callvirt abstract virtual
System.Collections.Generic.IEnumerator`1<Verse.DesignationCategoryDef>
System.Collections.Generic.IEnumerable`1<Verse.DesignationCategoryDef>::GetEnumerat
or()
IL_003C: stloc.0
.try
{
IL_003D: br => Label1
IL_0042: Label2
IL_0042: ldloc.0
IL_0043: callvirt abstract virtual Verse.DesignationCategoryDef
System.Collections.Generic.IEnumerator`1<Verse.DesignationCategoryDef>::get_Current
()
IL_0048: stloc.1
IL_0049: ldarg.0
IL_004A: ldfld
System.Collections.Generic.List`1<RimWorld.ArchitectCategoryTab>
RimWorld.MainTabWindow_Architect::desPanelsCached
IL_004F: ldloc.1
IL_0050: ldarg.0
IL_0051: ldfld RimWorld.QuickSearchWidget
RimWorld.MainTabWindow_Architect::quickSearchWidget
IL_0056: ldfld RimWorld.QuickSearchFilter
RimWorld.QuickSearchWidget::filter
IL_005B: newobj System.Void
RimWorld.ArchitectCategoryTab::.ctor(Verse.DesignationCategoryDef def,
RimWorld.QuickSearchFilter quickSearchFilter)
IL_0060: callvirt virtual System.Void
System.Collections.Generic.List`1<RimWorld.ArchitectCategoryTab>::Add(RimWorld.Arch
itectCategoryTab item)
IL_0065: Label1
IL_0065: ldloc.0
IL_0066: callvirt abstract virtual System.Boolean
System.Collections.IEnumerator::MoveNext()
IL_006B: brtrue => Label2
IL_0070: leave => Label3
IL_0075: leave => (autogenerated)
} // end try
.finally
{
IL_007A: ldloc.0
IL_007B: brfalse => Label4
IL_0080: ldloc.0
IL_0081: callvirt abstract virtual System.Void
System.IDisposable::Dispose()
IL_0086: Label4
IL_0086: endfinally
IL_0087: leave => (autogenerated)
} // end handler
IL_0088: // end original
IL_0088: Label3
IL_0088: call static System.Void
MorePlanning.Patches.HarmonyPatches::CacheDesPanels_Postfix()
IL_008D: ret
DONE

### Patch: System.Void


RimWorld.PlaySettings::DoPlaySettingsGlobalControls(Verse.WidgetRow row,
System.Boolean worldView)
### Replacement: static System.Void
RimWorld.PlaySettings::RimWorld.PlaySettings.DoPlaySettingsGlobalControls_Patch8(Ri
mWorld.PlaySettings this, Verse.WidgetRow row, System.Boolean worldView)
IL_0000: Local var 0: System.Boolean
IL_0000: Local var 1: System.Boolean
IL_0000: // start original
IL_0000: ldarg.0
IL_0001: ldfld System.Boolean RimWorld.PlaySettings::showColonistBar
IL_0006: ldarg.2
IL_0007: brfalse => Label0
IL_000C: call static Verse.ProgramState Verse.Current::get_ProgramState()
IL_0011: ldc.i4.2
IL_0012: bne.un => Label1
IL_0017: ldarg.1
IL_0018: ldarg.0
IL_0019: ldflda System.Boolean RimWorld.PlaySettings::showColonistBar
IL_001E: ldsfld UnityEngine.Texture2D Verse.TexButton::ShowColonistBar
IL_0023: call static System.Boolean
Verse.Steam.SteamDeck::get_IsSteamDeckInNonKeyboardMode()
IL_0028: brtrue => Label2
IL_002D: ldstr "ShowColonistBarToggleButton"
IL_0032: call static Verse.TaggedString
Verse.Translator::Translate(System.String key)
IL_0037: br => Label3
IL_003C: Label2
IL_003C: ldstr "ShowColonistBarToggleButtonController"
IL_0041: call static Verse.TaggedString
Verse.Translator::Translate(System.String key)
IL_0046: Label3
IL_0046: call static System.String
Verse.TaggedString::op_Implicit(Verse.TaggedString taggedString)
IL_004B: ldsfld Verse.SoundDef RimWorld.SoundDefOf::Mouseover_ButtonToggle
IL_0050: ldnull
IL_0051: call static System.Void
TD_Enhancement_Pack.RemoveUnusedToggles::ToggleableIconFiltered(Verse.WidgetRow
row, System.Boolean& toggleable, UnityEngine.Texture2D tex, System.String tooltip,
Verse.SoundDef mouseoverSound, System.String tutorTag)
IL_0056: Label1
IL_0056: ldarg.0
IL_0057: ldfld System.Boolean RimWorld.PlaySettings::lockNorthUp
IL_005C: ldarg.1
IL_005D: ldarg.0
IL_005E: ldflda System.Boolean RimWorld.PlaySettings::lockNorthUp
IL_0063: ldsfld UnityEngine.Texture2D Verse.TexButton::LockNorthUp
IL_0068: ldstr "LockNorthUpToggleButton"
IL_006D: call static Verse.TaggedString
Verse.Translator::Translate(System.String key)
IL_0072: call static System.String
Verse.TaggedString::op_Implicit(Verse.TaggedString taggedString)
IL_0077: ldsfld Verse.SoundDef RimWorld.SoundDefOf::Mouseover_ButtonToggle
IL_007C: ldnull
IL_007D: call static System.Void
TD_Enhancement_Pack.RemoveUnusedToggles::ToggleableIconFiltered(Verse.WidgetRow
row, System.Boolean& toggleable, UnityEngine.Texture2D tex, System.String tooltip,
Verse.SoundDef mouseoverSound, System.String tutorTag)
IL_0082: ldarg.0
IL_0083: ldfld System.Boolean RimWorld.PlaySettings::lockNorthUp
IL_0088: beq => Label4
IL_008D: ldarg.0
IL_008E: ldfld System.Boolean RimWorld.PlaySettings::lockNorthUp
IL_0093: brfalse => Label5
IL_0098: call static RimWorld.Planet.WorldCameraDriver
Verse.Find::get_WorldCameraDriver()
IL_009D: ldc.i4.1
IL_009E: callvirt System.Void
RimWorld.Planet.WorldCameraDriver::RotateSoNorthIsUp(System.Boolean interpolate)
IL_00A3: Label4
IL_00A3: Label5
IL_00A3: ldarg.1
IL_00A4: ldarg.0
IL_00A5: ldflda System.Boolean RimWorld.PlaySettings::usePlanetDayNightSystem
IL_00AA: ldsfld UnityEngine.Texture2D Verse.TexButton::UsePlanetDayNightSystem
IL_00AF: ldstr "UsePlanetDayNightSystemToggleButton"
IL_00B4: call static Verse.TaggedString
Verse.Translator::Translate(System.String key)
IL_00B9: call static System.String
Verse.TaggedString::op_Implicit(Verse.TaggedString taggedString)
IL_00BE: ldsfld Verse.SoundDef RimWorld.SoundDefOf::Mouseover_ButtonToggle
IL_00C3: ldnull
IL_00C4: call static System.Void
TD_Enhancement_Pack.RemoveUnusedToggles::ToggleableIconFiltered(Verse.WidgetRow
row, System.Boolean& toggleable, UnityEngine.Texture2D tex, System.String tooltip,
Verse.SoundDef mouseoverSound, System.String tutorTag)
IL_00C9: ldarg.1
IL_00CA: ldarg.0
IL_00CB: ldflda System.Boolean RimWorld.PlaySettings::showExpandingIcons
IL_00D0: ldsfld UnityEngine.Texture2D Verse.TexButton::ShowExpandingIcons
IL_00D5: ldstr "ShowExpandingIconsToggleButton"
IL_00DA: call static Verse.TaggedString
Verse.Translator::Translate(System.String key)
IL_00DF: call static System.String
Verse.TaggedString::op_Implicit(Verse.TaggedString taggedString)
IL_00E4: ldsfld Verse.SoundDef RimWorld.SoundDefOf::Mouseover_ButtonToggle
IL_00E9: ldnull
IL_00EA: call static System.Void
TD_Enhancement_Pack.RemoveUnusedToggles::ToggleableIconFiltered(Verse.WidgetRow
row, System.Boolean& toggleable, UnityEngine.Texture2D tex, System.String tooltip,
Verse.SoundDef mouseoverSound, System.String tutorTag)
IL_00EF: ldarg.1
IL_00F0: ldarg.0
IL_00F1: ldflda System.Boolean RimWorld.PlaySettings::showWorldFeatures
IL_00F6: ldsfld UnityEngine.Texture2D Verse.TexButton::ShowWorldFeatures
IL_00FB: ldstr "ShowWorldFeaturesToggleButton"
IL_0100: call static Verse.TaggedString
Verse.Translator::Translate(System.String key)
IL_0105: call static System.String
Verse.TaggedString::op_Implicit(Verse.TaggedString taggedString)
IL_010A: ldsfld Verse.SoundDef RimWorld.SoundDefOf::Mouseover_ButtonToggle
IL_010F: ldnull
IL_0110: call static System.Void
TD_Enhancement_Pack.RemoveUnusedToggles::ToggleableIconFiltered(Verse.WidgetRow
row, System.Boolean& toggleable, UnityEngine.Texture2D tex, System.String tooltip,
Verse.SoundDef mouseoverSound, System.String tutorTag)
IL_0115: br => Label6
IL_011A: Label0
IL_011A: ldarg.1
IL_011B: ldarg.0
IL_011C: ldflda System.Boolean RimWorld.PlaySettings::showLearningHelper
IL_0121: ldsfld UnityEngine.Texture2D Verse.TexButton::ShowLearningHelper
IL_0126: ldstr "ShowLearningHelperWhenEmptyToggleButton"
IL_012B: call static Verse.TaggedString
Verse.Translator::Translate(System.String key)
IL_0130: call static System.String
Verse.TaggedString::op_Implicit(Verse.TaggedString taggedString)
IL_0135: ldsfld Verse.SoundDef RimWorld.SoundDefOf::Mouseover_ButtonToggle
IL_013A: ldnull
IL_013B: call static System.Void
TD_Enhancement_Pack.RemoveUnusedToggles::ToggleableIconFiltered(Verse.WidgetRow
row, System.Boolean& toggleable, UnityEngine.Texture2D tex, System.String tooltip,
Verse.SoundDef mouseoverSound, System.String tutorTag)
IL_0140: ldarg.1
IL_0141: ldarg.0
IL_0142: ldflda System.Boolean RimWorld.PlaySettings::showZones
IL_0147: ldsfld UnityEngine.Texture2D Verse.TexButton::ShowZones
IL_014C: ldstr "ZoneVisibilityToggleButton"
IL_0151: call static Verse.TaggedString
Verse.Translator::Translate(System.String key)
IL_0156: call static System.String
Verse.TaggedString::op_Implicit(Verse.TaggedString taggedString)
IL_015B: ldsfld Verse.SoundDef RimWorld.SoundDefOf::Mouseover_ButtonToggle
IL_0160: ldnull
IL_0161: call static System.Void
TD_Enhancement_Pack.RemoveUnusedToggles::ToggleableIconFiltered(Verse.WidgetRow
row, System.Boolean& toggleable, UnityEngine.Texture2D tex, System.String tooltip,
Verse.SoundDef mouseoverSound, System.String tutorTag)
IL_0166: ldarg.1
IL_0167: ldarg.0
IL_0168: ldflda System.Boolean RimWorld.PlaySettings::showBeauty
IL_016D: ldsfld UnityEngine.Texture2D Verse.TexButton::ShowBeauty
IL_0172: ldstr "ShowBeautyToggleButton"
IL_0177: call static Verse.TaggedString
Verse.Translator::Translate(System.String key)
IL_017C: call static System.String
Verse.TaggedString::op_Implicit(Verse.TaggedString taggedString)
IL_0181: ldsfld Verse.SoundDef RimWorld.SoundDefOf::Mouseover_ButtonToggle
IL_0186: ldnull
IL_0187: call static System.Void
TD_Enhancement_Pack.RemoveUnusedToggles::ToggleableIconFiltered(Verse.WidgetRow
row, System.Boolean& toggleable, UnityEngine.Texture2D tex, System.String tooltip,
Verse.SoundDef mouseoverSound, System.String tutorTag)
IL_018C: ldarg.0
IL_018D: ldsfld Verse.KeyBindingDef
RimWorld.KeyBindingDefOf::ToggleBeautyDisplay
IL_0192: ldarg.0
IL_0193: ldflda System.Boolean RimWorld.PlaySettings::showBeauty
IL_0198: call System.Void
RimWorld.PlaySettings::CheckKeyBindingToggle(Verse.KeyBindingDef keyBinding,
System.Boolean& value)
IL_019D: ldarg.1
IL_019E: ldarg.0
IL_019F: ldflda System.Boolean RimWorld.PlaySettings::showRoomStats
IL_01A4: ldsfld UnityEngine.Texture2D Verse.TexButton::ShowRoomStats
IL_01A9: ldstr "ShowRoomStatsToggleButton"
IL_01AE: call static Verse.TaggedString
Verse.Translator::Translate(System.String key)
IL_01B3: call static System.String
Verse.TaggedString::op_Implicit(Verse.TaggedString taggedString)
IL_01B8: ldsfld Verse.SoundDef RimWorld.SoundDefOf::Mouseover_ButtonToggle
IL_01BD: ldnull
IL_01BE: call static System.Void
TD_Enhancement_Pack.RemoveUnusedToggles::ToggleableIconFiltered(Verse.WidgetRow
row, System.Boolean& toggleable, UnityEngine.Texture2D tex, System.String tooltip,
Verse.SoundDef mouseoverSound, System.String tutorTag)
IL_01C3: ldarg.0
IL_01C4: ldsfld Verse.KeyBindingDef
RimWorld.KeyBindingDefOf::ToggleRoomStatsDisplay
IL_01C9: ldarg.0
IL_01CA: ldflda System.Boolean RimWorld.PlaySettings::showRoomStats
IL_01CF: call System.Void
RimWorld.PlaySettings::CheckKeyBindingToggle(Verse.KeyBindingDef keyBinding,
System.Boolean& value)
IL_01D4: ldarg.1
IL_01D5: ldarg.0
IL_01D6: ldflda System.Boolean RimWorld.PlaySettings::showColonistBar
IL_01DB: ldsfld UnityEngine.Texture2D Verse.TexButton::ShowColonistBar
IL_01E0: call static System.Boolean
Verse.Steam.SteamDeck::get_IsSteamDeckInNonKeyboardMode()
IL_01E5: brtrue => Label7
IL_01EA: ldstr "ShowColonistBarToggleButton"
IL_01EF: call static Verse.TaggedString
Verse.Translator::Translate(System.String key)
IL_01F4: br => Label8
IL_01F9: Label7
IL_01F9: ldstr "ShowColonistBarToggleButtonController"
IL_01FE: call static Verse.TaggedString
Verse.Translator::Translate(System.String key)
IL_0203: Label8
IL_0203: call static System.String
Verse.TaggedString::op_Implicit(Verse.TaggedString taggedString)
IL_0208: ldsfld Verse.SoundDef RimWorld.SoundDefOf::Mouseover_ButtonToggle
IL_020D: ldnull
IL_020E: call static System.Void
TD_Enhancement_Pack.RemoveUnusedToggles::ToggleableIconFiltered(Verse.WidgetRow
row, System.Boolean& toggleable, UnityEngine.Texture2D tex, System.String tooltip,
Verse.SoundDef mouseoverSound, System.String tutorTag)
IL_0213: ldarg.1
IL_0214: ldarg.0
IL_0215: ldflda System.Boolean RimWorld.PlaySettings::showRoofOverlay
IL_021A: ldsfld UnityEngine.Texture2D Verse.TexButton::ShowRoofOverlay
IL_021F: ldstr "ShowRoofOverlayToggleButton"
IL_0224: call static Verse.TaggedString
Verse.Translator::Translate(System.String key)
IL_0229: call static System.String
Verse.TaggedString::op_Implicit(Verse.TaggedString taggedString)
IL_022E: ldsfld Verse.SoundDef RimWorld.SoundDefOf::Mouseover_ButtonToggle
IL_0233: ldnull
IL_0234: call static System.Void
TD_Enhancement_Pack.RemoveUnusedToggles::ToggleableIconFiltered(Verse.WidgetRow
row, System.Boolean& toggleable, UnityEngine.Texture2D tex, System.String tooltip,
Verse.SoundDef mouseoverSound, System.String tutorTag)
IL_0239: ldarg.1
IL_023A: ldarg.0
IL_023B: ldflda System.Boolean RimWorld.PlaySettings::showFertilityOverlay
IL_0240: ldsfld UnityEngine.Texture2D Verse.TexButton::ShowFertilityOverlay
IL_0245: ldstr "ShowFertilityOverlayToggleButton"
IL_024A: call static Verse.TaggedString
Verse.Translator::Translate(System.String key)
IL_024F: call static System.String
Verse.TaggedString::op_Implicit(Verse.TaggedString taggedString)
IL_0254: ldsfld Verse.SoundDef RimWorld.SoundDefOf::Mouseover_ButtonToggle
IL_0259: ldnull
IL_025A: call static System.Void
TD_Enhancement_Pack.RemoveUnusedToggles::ToggleableIconFiltered(Verse.WidgetRow
row, System.Boolean& toggleable, UnityEngine.Texture2D tex, System.String tooltip,
Verse.SoundDef mouseoverSound, System.String tutorTag)
IL_025F: ldarg.1
IL_0260: ldarg.0
IL_0261: ldflda System.Boolean
RimWorld.PlaySettings::showTerrainAffordanceOverlay
IL_0266: ldsfld UnityEngine.Texture2D
Verse.TexButton::ShowTerrainAffordanceOverlay
IL_026B: ldstr "ShowTerrainAffordanceOverlayToggleButton"
IL_0270: call static Verse.TaggedString
Verse.Translator::Translate(System.String key)
IL_0275: call static System.String
Verse.TaggedString::op_Implicit(Verse.TaggedString taggedString)
IL_027A: ldsfld Verse.SoundDef RimWorld.SoundDefOf::Mouseover_ButtonToggle
IL_027F: ldnull
IL_0280: call static System.Void
TD_Enhancement_Pack.RemoveUnusedToggles::ToggleableIconFiltered(Verse.WidgetRow
row, System.Boolean& toggleable, UnityEngine.Texture2D tex, System.String tooltip,
Verse.SoundDef mouseoverSound, System.String tutorTag)
IL_0285: ldarg.1
IL_0286: ldarg.0
IL_0287: ldflda System.Boolean RimWorld.PlaySettings::autoHomeArea
IL_028C: ldsfld UnityEngine.Texture2D Verse.TexButton::AutoHomeArea
IL_0291: ldstr "AutoHomeAreaToggleButton"
IL_0296: call static Verse.TaggedString
Verse.Translator::Translate(System.String key)
IL_029B: call static System.String
Verse.TaggedString::op_Implicit(Verse.TaggedString taggedString)
IL_02A0: ldsfld Verse.SoundDef RimWorld.SoundDefOf::Mouseover_ButtonToggle
IL_02A5: ldnull
IL_02A6: call static System.Void
TD_Enhancement_Pack.RemoveUnusedToggles::ToggleableIconFiltered(Verse.WidgetRow
row, System.Boolean& toggleable, UnityEngine.Texture2D tex, System.String tooltip,
Verse.SoundDef mouseoverSound, System.String tutorTag)
IL_02AB: ldarg.1
IL_02AC: ldarg.0
IL_02AD: ldflda System.Boolean RimWorld.PlaySettings::autoRebuild
IL_02B2: ldsfld UnityEngine.Texture2D Verse.TexButton::AutoRebuild
IL_02B7: ldstr "AutoRebuildButton"
IL_02BC: call static Verse.TaggedString
Verse.Translator::Translate(System.String key)
IL_02C1: call static System.String
Verse.TaggedString::op_Implicit(Verse.TaggedString taggedString)
IL_02C6: ldsfld Verse.SoundDef RimWorld.SoundDefOf::Mouseover_ButtonToggle
IL_02CB: ldnull
IL_02CC: call static System.Void
TD_Enhancement_Pack.RemoveUnusedToggles::ToggleableIconFiltered(Verse.WidgetRow
row, System.Boolean& toggleable, UnityEngine.Texture2D tex, System.String tooltip,
Verse.SoundDef mouseoverSound, System.String tutorTag)
IL_02D1: ldarg.1
IL_02D2: ldarg.0
IL_02D3: ldflda System.Boolean RimWorld.PlaySettings::showTemperatureOverlay
IL_02D8: ldsfld UnityEngine.Texture2D Verse.TexButton::ShowTemperatureOverlay
IL_02DD: ldstr "ShowTemperatureOverlayToggleButton"
IL_02E2: call static Verse.TaggedString
Verse.Translator::Translate(System.String key)
IL_02E7: call static System.String
Verse.TaggedString::op_Implicit(Verse.TaggedString taggedString)
IL_02EC: ldsfld Verse.SoundDef RimWorld.SoundDefOf::Mouseover_ButtonToggle
IL_02F1: ldnull
IL_02F2: call static System.Void
TD_Enhancement_Pack.RemoveUnusedToggles::ToggleableIconFiltered(Verse.WidgetRow
row, System.Boolean& toggleable, UnityEngine.Texture2D tex, System.String tooltip,
Verse.SoundDef mouseoverSound, System.String tutorTag)
IL_02F7: call static System.Boolean
Verse.Prefs::get_ResourceReadoutCategorized()
IL_02FC: stloc.0
IL_02FD: ldloc.0
IL_02FE: stloc.1
IL_02FF: ldarg.1
IL_0300: ldloca.s 0 (System.Boolean)
IL_0302: ldsfld UnityEngine.Texture2D
Verse.TexButton::CategorizedResourceReadout
IL_0307: ldstr "CategorizedResourceReadoutToggleButton"
IL_030C: call static Verse.TaggedString
Verse.Translator::Translate(System.String key)
IL_0311: call static System.String
Verse.TaggedString::op_Implicit(Verse.TaggedString taggedString)
IL_0316: ldsfld Verse.SoundDef RimWorld.SoundDefOf::Mouseover_ButtonToggle
IL_031B: ldnull
IL_031C: call static System.Void
TD_Enhancement_Pack.RemoveUnusedToggles::ToggleableIconFiltered(Verse.WidgetRow
row, System.Boolean& toggleable, UnityEngine.Texture2D tex, System.String tooltip,
Verse.SoundDef mouseoverSound, System.String tutorTag)
IL_0321: ldloc.0
IL_0322: ldloc.1
IL_0323: beq => Label9
IL_0328: ldloc.0
IL_0329: call static System.Void
Verse.Prefs::set_ResourceReadoutCategorized(System.Boolean value)
IL_032E: Label9
IL_032E: call static System.Boolean Verse.ModsConfig::get_BiotechActive()
IL_0333: brfalse => Label10
IL_0338: ldarg.1
IL_0339: ldarg.0
IL_033A: ldflda System.Boolean RimWorld.PlaySettings::showPollutionOverlay
IL_033F: ldsfld UnityEngine.Texture2D Verse.TexButton::ShowPollutionOverlay
IL_0344: ldstr "ShowPollutionOverlayToggleButton"
IL_0349: call static Verse.TaggedString
Verse.Translator::Translate(System.String key)
IL_034E: call static System.String
Verse.TaggedString::op_Implicit(Verse.TaggedString taggedString)
IL_0353: ldsfld Verse.SoundDef RimWorld.SoundDefOf::Mouseover_ButtonToggle
IL_0358: ldnull
IL_0359: call static System.Void
TD_Enhancement_Pack.RemoveUnusedToggles::ToggleableIconFiltered(Verse.WidgetRow
row, System.Boolean& toggleable, UnityEngine.Texture2D tex, System.String tooltip,
Verse.SoundDef mouseoverSound, System.String tutorTag)
IL_035E: Label6
IL_035E: Label10
IL_035E: ldarg.0
IL_035F: ldfld System.Boolean RimWorld.PlaySettings::showColonistBar
IL_0364: beq => Label11
IL_0369: call static RimWorld.ColonistBar Verse.Find::get_ColonistBar()
IL_036E: callvirt System.Void RimWorld.ColonistBar::MarkColonistsDirty()
IL_0373: // end original
IL_0373: Label11
IL_0373: ldarg.0
IL_0374: ldarg 1
IL_0378: ldarg 2
IL_037C: call static System.Void
DubsMintMinimap.H_DoPlaySettingsGlobalControls::Postfix(RimWorld.PlaySettings
__instance, Verse.WidgetRow row, System.Boolean worldView)
IL_0381: ldarg 1
IL_0385: ldarg 2
IL_0389: call static System.Void
Replace_Stuff.OverMineable.PlaySettings_BlueprintOverRockToggle::AddButton(Verse.Wi
dgetRow row, System.Boolean worldView)
IL_038E: ldarg 1
IL_0392: ldarg 2
IL_0396: call static System.Void
TD_Enhancement_Pack.PlaySettings_Patch::AddButton(Verse.WidgetRow row,
System.Boolean worldView)
IL_039B: ldarg 1
IL_039F: ldarg 2
IL_03A3: call static System.Void
TD_Enhancement_Pack.ShowPowerNetToggle::Postfix(Verse.WidgetRow row, System.Boolean
worldView)
IL_03A8: ldarg 1
IL_03AC: ldarg 2
IL_03B0: call static System.Void
RimHUD.Patch.RimWorld_PlaySettings_DoPlaySettingsGlobalControls::Postfix(Verse.Widg
etRow row, System.Boolean worldView)
IL_03B5: ldarg 1
IL_03B9: ldarg 2
IL_03BD: call static System.Void
CleaningArea.PlaySettingsPatch::Postfix(Verse.WidgetRow row, System.Boolean
worldView)
IL_03C2: ldarg.0
IL_03C3: ldarg 1
IL_03C7: ldarg 2
IL_03CB: call static System.Void
FacialAnimation.HarmonyPatches::PostfixDoPlaySettingsGlobalControls(RimWorld.PlaySe
ttings __instance, Verse.WidgetRow row, System.Boolean worldView)
IL_03D0: ldarg 1
IL_03D4: ldarg 2
IL_03D8: call static System.Void
MorePlanning.Patches.HarmonyPatches::DoPlaySettingsGlobalControls_Postfix(Verse.Wid
getRow row, System.Boolean worldView)
IL_03DD: ret
DONE

### Patch: System.Collections.Generic.List`1<RimWorld.ArchitectCategoryTab>


DubsMintMenus.MainTabWindow_MintArchitect::get_CacheDesPanels()
### Replacement: static
System.Collections.Generic.List`1<RimWorld.ArchitectCategoryTab>
DubsMintMenus.MainTabWindow_MintArchitect::DubsMintMenus.MainTabWindow_MintArchitec
t.get_CacheDesPanels_Patch0(DubsMintMenus.MainTabWindow_MintArchitect this)
IL_0000: Local var 0:
System.Collections.Generic.IEnumerator`1<Verse.DesignationCategoryDef>
IL_0000: Local var 1: Verse.DesignationCategoryDef
IL_0000: // start original
IL_0000: ldarg.0
IL_0001: ldfld
System.Collections.Generic.List`1<RimWorld.ArchitectCategoryTab>
DubsMintMenus.MainTabWindow_MintArchitect::desPanelsCached
IL_0006: brtrue => Label0
IL_000B: ldarg.0
IL_000C: newobj System.Void
System.Collections.Generic.List`1<RimWorld.ArchitectCategoryTab>::.ctor()
IL_0011: stfld
System.Collections.Generic.List`1<RimWorld.ArchitectCategoryTab>
DubsMintMenus.MainTabWindow_MintArchitect::desPanelsCached
IL_0016: call static MorePlanning.MorePlanningMod
MorePlanning.MorePlanningMod::get_Instance()
IL_001B: call System.Void MorePlanning.MorePlanningMod::AddDesignators()
IL_0020: call static
System.Collections.Generic.IEnumerable`1<Verse.DesignationCategoryDef>
Verse.DefDatabase`1<Verse.DesignationCategoryDef>::get_AllDefs()
IL_0025: ldsfld System.Func`2<Verse.DesignationCategoryDef, System.Int32>
DubsMintMenus.<>c::<>9__30_2
IL_002A: dup
IL_002B: brtrue => Label1
IL_0030: pop
IL_0031: ldsfld DubsMintMenus.<>c DubsMintMenus.<>c::<>9
IL_0036: ldftn System.Int32
DubsMintMenus.<>c::<get_CacheDesPanels>b__30_2(Verse.DesignationCategoryDef dc)
IL_003C: newobj System.Void System.Func`2<Verse.DesignationCategoryDef,
System.Int32>::.ctor(System.Object object, System.IntPtr method)
IL_0041: dup
IL_0042: stsfld System.Func`2<Verse.DesignationCategoryDef, System.Int32>
DubsMintMenus.<>c::<>9__30_2
IL_0047: Label1
IL_0047: call static
System.Linq.IOrderedEnumerable`1<Verse.DesignationCategoryDef>
System.Linq.Enumerable::OrderByDescending(System.Collections.Generic.IEnumerable`1<
Verse.DesignationCategoryDef> source, System.Func`2<Verse.DesignationCategoryDef,
System.Int32> keySelector)
IL_004C: callvirt abstract virtual
System.Collections.Generic.IEnumerator`1<Verse.DesignationCategoryDef>
System.Collections.Generic.IEnumerable`1<Verse.DesignationCategoryDef>::GetEnumerat
or()
IL_0051: stloc.0
.try
{
IL_0052: br => Label2
IL_0057: Label3
IL_0057: ldloc.0
IL_0058: callvirt abstract virtual Verse.DesignationCategoryDef
System.Collections.Generic.IEnumerator`1<Verse.DesignationCategoryDef>::get_Current
()
IL_005D: stloc.1
IL_005E: ldarg.0
IL_005F: ldfld
System.Collections.Generic.List`1<RimWorld.ArchitectCategoryTab>
DubsMintMenus.MainTabWindow_MintArchitect::desPanelsCached
IL_0064: ldloc.1
IL_0065: ldarg.0
IL_0066: ldfld RimWorld.QuickSearchWidget
DubsMintMenus.MainTabWindow_MintArchitect::searchWidget
IL_006B: ldfld RimWorld.QuickSearchFilter
RimWorld.QuickSearchWidget::filter
IL_0070: newobj System.Void
RimWorld.ArchitectCategoryTab::.ctor(Verse.DesignationCategoryDef def,
RimWorld.QuickSearchFilter quickSearchFilter)
IL_0075: callvirt virtual System.Void
System.Collections.Generic.List`1<RimWorld.ArchitectCategoryTab>::Add(RimWorld.Arch
itectCategoryTab item)
IL_007A: Label2
IL_007A: ldloc.0
IL_007B: callvirt abstract virtual System.Boolean
System.Collections.IEnumerator::MoveNext()
IL_0080: brtrue => Label3
IL_0085: leave => Label4
IL_008A: leave => (autogenerated)
} // end try
.finally
{
IL_008F: ldloc.0
IL_0090: brfalse => Label5
IL_0095: ldloc.0
IL_0096: callvirt abstract virtual System.Void
System.IDisposable::Dispose()
IL_009B: Label5
IL_009B: endfinally
IL_009C: leave => (autogenerated)
} // end handler
IL_009D: Label4
IL_009D: call static DubsMintMenus.Settings
DubsMintMenus.DubsMintMenusMod::get_Settings()
IL_00A2: ldfld System.Boolean DubsMintMenus.Settings::buildA2Z
IL_00A7: brfalse => Label6
IL_00AC: ldarg.0
IL_00AD: ldarg.0
IL_00AE: ldfld
System.Collections.Generic.List`1<RimWorld.ArchitectCategoryTab>
DubsMintMenus.MainTabWindow_MintArchitect::desPanelsCached
IL_00B3: ldsfld System.Func`2<RimWorld.ArchitectCategoryTab, System.String>
DubsMintMenus.<>c::<>9__30_0
IL_00B8: dup
IL_00B9: brtrue => Label7
IL_00BE: pop
IL_00BF: ldsfld DubsMintMenus.<>c DubsMintMenus.<>c::<>9
IL_00C4: ldftn System.String
DubsMintMenus.<>c::<get_CacheDesPanels>b__30_0(RimWorld.ArchitectCategoryTab x)
IL_00CA: newobj System.Void System.Func`2<RimWorld.ArchitectCategoryTab,
System.String>::.ctor(System.Object object, System.IntPtr method)
IL_00CF: dup
IL_00D0: stsfld System.Func`2<RimWorld.ArchitectCategoryTab, System.String>
DubsMintMenus.<>c::<>9__30_0
IL_00D5: Label7
IL_00D5: call static
System.Linq.IOrderedEnumerable`1<RimWorld.ArchitectCategoryTab>
System.Linq.Enumerable::OrderBy(System.Collections.Generic.IEnumerable`1<RimWorld.A
rchitectCategoryTab> source, System.Func`2<RimWorld.ArchitectCategoryTab,
System.String> keySelector)
IL_00DA: call static
System.Collections.Generic.List`1<RimWorld.ArchitectCategoryTab>
System.Linq.Enumerable::ToList(System.Collections.Generic.IEnumerable`1<RimWorld.Ar
chitectCategoryTab> source)
IL_00DF: stfld
System.Collections.Generic.List`1<RimWorld.ArchitectCategoryTab>
DubsMintMenus.MainTabWindow_MintArchitect::desPanelsCached
IL_00E4: call static MorePlanning.MorePlanningMod
MorePlanning.MorePlanningMod::get_Instance()
IL_00E9: call System.Void MorePlanning.MorePlanningMod::AddDesignators()
IL_00EE: Label6
IL_00EE: ldarg.0
IL_00EF: ldarg.0
IL_00F0: ldfld
System.Collections.Generic.List`1<RimWorld.ArchitectCategoryTab>
DubsMintMenus.MainTabWindow_MintArchitect::desPanelsCached
IL_00F5: ldsfld System.Func`2<RimWorld.ArchitectCategoryTab, System.Boolean>
DubsMintMenus.<>c::<>9__30_1
IL_00FA: dup
IL_00FB: brtrue => Label8
IL_0100: pop
IL_0101: ldsfld DubsMintMenus.<>c DubsMintMenus.<>c::<>9
IL_0106: ldftn System.Boolean
DubsMintMenus.<>c::<get_CacheDesPanels>b__30_1(RimWorld.ArchitectCategoryTab x)
IL_010C: newobj System.Void System.Func`2<RimWorld.ArchitectCategoryTab,
System.Boolean>::.ctor(System.Object object, System.IntPtr method)
IL_0111: dup
IL_0112: stsfld System.Func`2<RimWorld.ArchitectCategoryTab, System.Boolean>
DubsMintMenus.<>c::<>9__30_1
IL_0117: Label8
IL_0117: call static
System.Linq.IOrderedEnumerable`1<RimWorld.ArchitectCategoryTab>
System.Linq.Enumerable::OrderBy(System.Collections.Generic.IEnumerable`1<RimWorld.A
rchitectCategoryTab> source, System.Func`2<RimWorld.ArchitectCategoryTab,
System.Boolean> keySelector)
IL_011C: call static
System.Collections.Generic.List`1<RimWorld.ArchitectCategoryTab>
System.Linq.Enumerable::ToList(System.Collections.Generic.IEnumerable`1<RimWorld.Ar
chitectCategoryTab> source)
IL_0121: stfld
System.Collections.Generic.List`1<RimWorld.ArchitectCategoryTab>
DubsMintMenus.MainTabWindow_MintArchitect::desPanelsCached
IL_0126: call static MorePlanning.MorePlanningMod
MorePlanning.MorePlanningMod::get_Instance()
IL_012B: call System.Void MorePlanning.MorePlanningMod::AddDesignators()
IL_0130: Label0
IL_0130: ldarg.0
IL_0131: ldfld
System.Collections.Generic.List`1<RimWorld.ArchitectCategoryTab>
DubsMintMenus.MainTabWindow_MintArchitect::desPanelsCached
IL_0136: // end original
IL_0136: ret
DONE

### Harmony id=Uuugggg.rimworld.Share_The_Load-ES.main, version=2.2.2.0,


location=C:\Program Files (x86)\Steam\steamapps\common\data-000002130553D010,
env/clr=4.0.30319.42000, platform=Win32NT, ptrsize:runtime/env=8/Bits64, Windows
### Started from static System.Void
Share_The_Load.ExtendedStoragePatches::.cctor(), location C:\Program Files (x86)\
Steam\steamapps\common\data-00000213097064B0
### At 2023-02-17 06.57.35
### Patch: System.Boolean Verse.AI.ReservationManager::CanReserve(Verse.Pawn
claimant, Verse.LocalTargetInfo target, System.Int32 maxPawns, System.Int32
stackCount, Verse.ReservationLayerDef layer, System.Boolean
ignoreOtherReservations)
### Replacement: static System.Boolean
Verse.AI.ReservationManager::Verse.AI.ReservationManager.CanReserve_Patch3(Verse.AI
.ReservationManager this, Verse.Pawn claimant, Verse.LocalTargetInfo target,
System.Int32 maxPawns, System.Int32 stackCount, Verse.ReservationLayerDef layer,
System.Boolean ignoreOtherReservations)
IL_0000: Local var 0: System.Int32
IL_0000: Local var 1: System.Int32
IL_0000: Local var 2: System.Int32
IL_0000: Local var 3: System.Int32
IL_0000: Local var 4: System.Int32
IL_0000: Local var 5: Verse.AI.ReservationManager/Reservation
IL_0000: Local var 6: System.Int32
IL_0000: Local var 7: Verse.AI.ReservationManager/Reservation
IL_0000: Local var 8: System.Boolean
IL_0000: Local var 9: System.Boolean
IL_0000: ldc.i4 0
IL_0005: stloc 8 (System.Boolean)
IL_0009: ldc.i4 0
IL_000E: stloc 9 (System.Boolean)
IL_0012: ldc.i4.1
IL_0013: stloc 9 (System.Boolean)
IL_0017: ldloc 9 (System.Boolean)
IL_001B: brfalse => Label1
IL_0020: ldarg 1
IL_0024: ldarg 2
IL_0028: ldloca 8 (System.Boolean)
IL_002C: call static System.Boolean
Share_The_Load.CanReserve_Patch::Prefix(Verse.Pawn claimant, Verse.LocalTargetInfo
target, System.Boolean& __result)
IL_0031: stloc 9 (System.Boolean)
IL_0035: Label1
IL_0035: nop
IL_0036: ldloc 9 (System.Boolean)
IL_003A: brfalse => Label2
IL_003F: ldarga 2
IL_0043: call static System.Void
Replace_Stuff.Replace.ReserveSharing::Prefix(Verse.LocalTargetInfo& target)
IL_0048: Label2
IL_0048: nop
IL_0049: ldloc 9 (System.Boolean)
IL_004D: brfalse => Label3
IL_0052: ldarg 1
IL_0056: ldarg 2
IL_005A: ldloca 8 (System.Boolean)
IL_005E: call static System.Boolean
Share_The_Load.CanReserve_Patch_ES::Prefix(Verse.Pawn claimant,
Verse.LocalTargetInfo target, System.Boolean& __result)
IL_0063: stloc 9 (System.Boolean)
IL_0067: Label3
IL_0067: nop
IL_0068: ldloc 9 (System.Boolean)
IL_006C: brfalse => Label0
IL_0071: // start original
IL_0071: ldarg.1
IL_0072: brtrue => Label4
IL_0077: ldstr "CanReserve with null claimant"
IL_007C: call static System.Void Verse.Log::Error(System.String text)
IL_0081: ldc.i4.0
IL_0082: br => Label38
IL_0087: Label4
IL_0087: ldarg.1
IL_0088: callvirt System.Boolean Verse.Thing::get_Spawned()
IL_008D: brfalse => Label5
IL_0092: ldarg.1
IL_0093: callvirt virtual Verse.Map Verse.Thing::get_Map()
IL_0098: ldarg.0
IL_0099: ldfld Verse.Map Verse.AI.ReservationManager::map
IL_009E: beq => Label6
IL_00A3: Label5
IL_00A3: ldc.i4.0
IL_00A4: br => Label39
IL_00A9: Label6
IL_00A9: ldarga.s 2
IL_00AB: call System.Boolean Verse.LocalTargetInfo::get_IsValid()
IL_00B0: brfalse => Label7
IL_00B5: ldarga.s 2
IL_00B7: call System.Boolean Verse.LocalTargetInfo::get_ThingDestroyed()
IL_00BC: brfalse => Label8
IL_00C1: Label7
IL_00C1: ldc.i4.0
IL_00C2: br => Label40
IL_00C7: Label8
IL_00C7: ldarga.s 2
IL_00C9: call System.Boolean Verse.LocalTargetInfo::get_HasThing()
IL_00CE: brfalse => Label9
IL_00D3: ldarga.s 2
IL_00D5: call Verse.Thing Verse.LocalTargetInfo::get_Thing()
IL_00DA: callvirt System.Boolean Verse.Thing::get_SpawnedOrAnyParentSpawned()
IL_00DF: brfalse => Label10
IL_00E4: ldarga.s 2
IL_00E6: call Verse.Thing Verse.LocalTargetInfo::get_Thing()
IL_00EB: callvirt Verse.Map Verse.Thing::get_MapHeld()
IL_00F0: ldarg.0
IL_00F1: ldfld Verse.Map Verse.AI.ReservationManager::map
IL_00F6: beq => Label11
IL_00FB: ldc.i4.0
IL_00FC: br => Label41
IL_0101: Label9
IL_0101: Label10
IL_0101: Label11
IL_0101: ldarga.s 2
IL_0103: call System.Boolean Verse.LocalTargetInfo::get_HasThing()
IL_0108: brtrue => Label12
IL_010D: ldc.i4.1
IL_010E: br => Label13
IL_0113: Label12
IL_0113: ldarga.s 2
IL_0115: call Verse.Thing Verse.LocalTargetInfo::get_Thing()
IL_011A: ldfld System.Int32 Verse.Thing::stackCount
IL_011F: Label13
IL_011F: stloc.0
IL_0120: ldarg.s 4
IL_0122: ldc.i4.m1
IL_0123: beq => Label14
IL_0128: ldarg.s 4
IL_012A: br => Label15
IL_012F: Label14
IL_012F: ldloc.0
IL_0130: Label15
IL_0130: stloc.1
IL_0131: ldloc.1
IL_0132: ldloc.0
IL_0133: ble => Label16
IL_0138: ldc.i4.0
IL_0139: br => Label42
IL_013E: Label16
IL_013E: ldarg.s 6
IL_0140: brtrue => Label17
IL_0145: ldarg.0
IL_0146: ldfld Verse.Map Verse.AI.ReservationManager::map
IL_014B: ldfld Verse.PhysicalInteractionReservationManager
Verse.Map::physicalInteractionReservationManager
IL_0150: ldarg.2
IL_0151: callvirt System.Boolean
Verse.PhysicalInteractionReservationManager::IsReserved(Verse.LocalTargetInfo
target)
IL_0156: brfalse => Label18
IL_015B: ldarg.0
IL_015C: ldfld Verse.Map Verse.AI.ReservationManager::map
IL_0161: ldfld Verse.PhysicalInteractionReservationManager
Verse.Map::physicalInteractionReservationManager
IL_0166: ldarg.1
IL_0167: ldarg.2
IL_0168: callvirt System.Boolean
Verse.PhysicalInteractionReservationManager::IsReservedBy(Verse.Pawn claimant,
Verse.LocalTargetInfo target)
IL_016D: brtrue => Label19
IL_0172: ldc.i4.0
IL_0173: br => Label43
IL_0178: Label18
IL_0178: Label19
IL_0178: ldc.i4.0
IL_0179: stloc.s 4 (System.Int32)
IL_017B: br => Label20
IL_0180: Label26
IL_0180: ldarg.0
IL_0181: ldfld System.Collections.Generic.List`1<Verse.AI.Reservation>
Verse.AI.ReservationManager::reservations
IL_0186: ldloc.s 4 (System.Int32)
IL_0188: callvirt virtual Verse.AI.Reservation
System.Collections.Generic.List`1<Verse.AI.Reservation>::get_Item(System.Int32
index)
IL_018D: stloc.s 5 (Verse.AI.ReservationManager+Reservation)
IL_018F: ldloc.s 5 (Verse.AI.ReservationManager+Reservation)
IL_0191: callvirt Verse.LocalTargetInfo Verse.AI.Reservation::get_Target()
IL_0196: ldarg.2
IL_0197: call static System.Boolean
Verse.LocalTargetInfo::op_Equality(Verse.LocalTargetInfo a, Verse.LocalTargetInfo
b)
IL_019C: brfalse => Label21
IL_01A1: ldloc.s 5 (Verse.AI.ReservationManager+Reservation)
IL_01A3: callvirt Verse.ReservationLayerDef Verse.AI.Reservation::get_Layer()
IL_01A8: ldarg.s 5
IL_01AA: bne.un => Label22
IL_01AF: ldloc.s 5 (Verse.AI.ReservationManager+Reservation)
IL_01B1: callvirt Verse.Pawn Verse.AI.Reservation::get_Claimant()
IL_01B6: ldarg.1
IL_01B7: bne.un => Label23
IL_01BC: ldloc.s 5 (Verse.AI.ReservationManager+Reservation)
IL_01BE: callvirt System.Int32 Verse.AI.Reservation::get_StackCount()
IL_01C3: ldc.i4.m1
IL_01C4: beq => Label24
IL_01C9: ldloc.s 5 (Verse.AI.ReservationManager+Reservation)
IL_01CB: callvirt System.Int32 Verse.AI.Reservation::get_StackCount()
IL_01D0: ldloc.1
IL_01D1: blt => Label25
IL_01D6: Label24
IL_01D6: ldc.i4.1
IL_01D7: br => Label44
IL_01DC: Label21
IL_01DC: Label22
IL_01DC: Label23
IL_01DC: Label25
IL_01DC: ldloc.s 4 (System.Int32)
IL_01DE: ldc.i4.1
IL_01DF: add
IL_01E0: stloc.s 4 (System.Int32)
IL_01E2: Label20
IL_01E2: ldloc.s 4 (System.Int32)
IL_01E4: ldarg.0
IL_01E5: ldfld System.Collections.Generic.List`1<Verse.AI.Reservation>
Verse.AI.ReservationManager::reservations
IL_01EA: callvirt virtual System.Int32
System.Collections.Generic.List`1<Verse.AI.Reservation>::get_Count()
IL_01EF: blt => Label26
IL_01F4: ldc.i4.0
IL_01F5: stloc.2
IL_01F6: ldc.i4.0
IL_01F7: stloc.3
IL_01F8: ldc.i4.0
IL_01F9: stloc.s 6 (System.Int32)
IL_01FB: br => Label27
IL_0200: Label37
IL_0200: ldarg.0
IL_0201: ldfld System.Collections.Generic.List`1<Verse.AI.Reservation>
Verse.AI.ReservationManager::reservations
IL_0206: ldloc.s 6 (System.Int32)
IL_0208: callvirt virtual Verse.AI.Reservation
System.Collections.Generic.List`1<Verse.AI.Reservation>::get_Item(System.Int32
index)
IL_020D: stloc.s 7 (Verse.AI.ReservationManager+Reservation)
IL_020F: ldloc.s 7 (Verse.AI.ReservationManager+Reservation)
IL_0211: callvirt Verse.LocalTargetInfo Verse.AI.Reservation::get_Target()
IL_0216: ldarg.2
IL_0217: call static System.Boolean
Verse.LocalTargetInfo::op_Inequality(Verse.LocalTargetInfo a, Verse.LocalTargetInfo
b)
IL_021C: brtrue => Label28
IL_0221: ldloc.s 7 (Verse.AI.ReservationManager+Reservation)
IL_0223: callvirt Verse.ReservationLayerDef Verse.AI.Reservation::get_Layer()
IL_0228: ldarg.s 5
IL_022A: bne.un => Label29
IL_022F: ldloc.s 7 (Verse.AI.ReservationManager+Reservation)
IL_0231: callvirt Verse.Pawn Verse.AI.Reservation::get_Claimant()
IL_0236: ldarg.1
IL_0237: beq => Label30
IL_023C: ldarg.1
IL_023D: ldloc.s 7 (Verse.AI.ReservationManager+Reservation)
IL_023F: callvirt Verse.Pawn Verse.AI.Reservation::get_Claimant()
IL_0244: call static System.Boolean
Verse.AI.ReservationManager::RespectsReservationsOf(Verse.Pawn newClaimant,
Verse.Pawn oldClaimant)
IL_0249: brfalse => Label31
IL_024E: ldloc.s 7 (Verse.AI.ReservationManager+Reservation)
IL_0250: callvirt System.Int32 Verse.AI.Reservation::get_MaxPawns()
IL_0255: ldarg.3
IL_0256: beq => Label32
IL_025B: ldc.i4.0
IL_025C: br => Label45
IL_0261: Label32
IL_0261: ldloc.2
IL_0262: ldc.i4.1
IL_0263: add
IL_0264: stloc.2
IL_0265: ldloc.s 7 (Verse.AI.ReservationManager+Reservation)
IL_0267: callvirt System.Int32 Verse.AI.Reservation::get_StackCount()
IL_026C: ldc.i4.m1
IL_026D: bne.un => Label33
IL_0272: ldloc.3
IL_0273: ldloc.0
IL_0274: add
IL_0275: stloc.3
IL_0276: br => Label34
IL_027B: Label33
IL_027B: ldloc.3
IL_027C: ldloc.s 7 (Verse.AI.ReservationManager+Reservation)
IL_027E: callvirt System.Int32 Verse.AI.Reservation::get_StackCount()
IL_0283: add
IL_0284: stloc.3
IL_0285: Label34
IL_0285: ldloc.2
IL_0286: ldarg.3
IL_0287: bge => Label35
IL_028C: ldloc.1
IL_028D: ldloc.3
IL_028E: add
IL_028F: ldloc.0
IL_0290: ble => Label36
IL_0295: Label35
IL_0295: ldc.i4.0
IL_0296: br => Label46
IL_029B: Label28
IL_029B: Label29
IL_029B: Label30
IL_029B: Label31
IL_029B: Label36
IL_029B: ldloc.s 6 (System.Int32)
IL_029D: ldc.i4.1
IL_029E: add
IL_029F: stloc.s 6 (System.Int32)
IL_02A1: Label27
IL_02A1: ldloc.s 6 (System.Int32)
IL_02A3: ldarg.0
IL_02A4: ldfld System.Collections.Generic.List`1<Verse.AI.Reservation>
Verse.AI.ReservationManager::reservations
IL_02A9: callvirt virtual System.Int32
System.Collections.Generic.List`1<Verse.AI.Reservation>::get_Count()
IL_02AE: blt => Label37
IL_02B3: Label17
IL_02B3: ldc.i4.1
IL_02B4: // end original
IL_02B4: Label38
IL_02B4: Label39
IL_02B4: Label40
IL_02B4: Label41
IL_02B4: Label42
IL_02B4: Label43
IL_02B4: Label44
IL_02B4: Label45
IL_02B4: Label46
IL_02B4: stloc 8 (System.Boolean)
IL_02B8: Label0
IL_02B8: ldloc 8 (System.Boolean)
IL_02BC: ret
DONE

### Patch: System.Boolean Verse.AI.ReservationManager::Reserve(Verse.Pawn claimant,


Verse.AI.Job job, Verse.LocalTargetInfo target, System.Int32 maxPawns, System.Int32
stackCount, Verse.ReservationLayerDef layer, System.Boolean errorOnFailed)
### Replacement: static System.Boolean
Verse.AI.ReservationManager::Verse.AI.ReservationManager.Reserve_Patch3(Verse.AI.Re
servationManager this, Verse.Pawn claimant, Verse.AI.Job job, Verse.LocalTargetInfo
target, System.Int32 maxPawns, System.Int32 stackCount, Verse.ReservationLayerDef
layer, System.Boolean errorOnFailed)
IL_0000: Local var 0: System.Int32
IL_0000: Local var 1: System.Int32
IL_0000: Local var 2: System.Int32
IL_0000: Local var 3: Verse.AI.ReservationManager/Reservation
IL_0000: Local var 4:
System.Collections.Generic.List`1/Enumerator<Verse.AI.ReservationManager/
Reservation>
IL_0000: Local var 5: Verse.AI.ReservationManager/Reservation
IL_0000: Local var 6: System.Boolean
IL_0000: Local var 7: System.Boolean
IL_0000: ldc.i4 0
IL_0005: stloc 6 (System.Boolean)
IL_0009: ldc.i4 0
IL_000E: stloc 7 (System.Boolean)
IL_0012: ldc.i4.1
IL_0013: stloc 7 (System.Boolean)
IL_0017: ldloc 7 (System.Boolean)
IL_001B: brfalse => Label1
IL_0020: ldarg 1
IL_0024: ldarg 2
IL_0028: ldarg 3
IL_002C: ldloca 6 (System.Boolean)
IL_0030: call static System.Boolean
Share_The_Load.Reserve_Patch::Prefix(Verse.Pawn claimant, Verse.AI.Job job,
Verse.LocalTargetInfo target, System.Boolean& __result)
IL_0035: stloc 7 (System.Boolean)
IL_0039: Label1
IL_0039: nop
IL_003A: ldloc 7 (System.Boolean)
IL_003E: brfalse => Label2
IL_0043: ldarga 3
IL_0047: call static System.Void
Replace_Stuff.Replace.ReserveSharing::Prefix(Verse.LocalTargetInfo& target)
IL_004C: Label2
IL_004C: nop
IL_004D: ldloc 7 (System.Boolean)
IL_0051: brfalse => Label3
IL_0056: ldarg 1
IL_005A: ldarg 2
IL_005E: ldarg 3
IL_0062: ldloca 6 (System.Boolean)
IL_0066: call static System.Boolean
Share_The_Load.Reserve_Patch_ES::Prefix(Verse.Pawn claimant, Verse.AI.Job job,
Verse.LocalTargetInfo target, System.Boolean& __result)
IL_006B: stloc 7 (System.Boolean)
IL_006F: Label3
IL_006F: nop
IL_0070: ldloc 7 (System.Boolean)
IL_0074: brfalse => Label0
IL_0079: // start original
IL_0079: ldarg.s 4
IL_007B: ldc.i4.1
IL_007C: ble => Label4
IL_0081: ldarg.s 5
IL_0083: ldc.i4.m1
IL_0084: bne.un => Label5
IL_0089: ldstr "Reserving with maxPawns > 1 and stackCount = All; this will
not have a useful effect (suppressing future warnings)"
IL_008E: ldc.i4 83269
IL_0093: call static System.Void Verse.Log::ErrorOnce(System.String text,
System.Int32 key)
IL_0098: Label4
IL_0098: Label5
IL_0098: ldarg.2
IL_0099: brtrue => Label6
IL_009E: ldarg.1
IL_009F: call static System.String Verse.Gen::ToStringSafe(Verse.Pawn obj)
IL_00A4: ldstr " tried to reserve thing "
IL_00A9: ldarg.3
IL_00AA: call static System.String
Verse.Gen::ToStringSafe(Verse.LocalTargetInfo obj)
IL_00AF: ldstr " without a valid job"
IL_00B4: call static System.String System.String::Concat(System.String str0,
System.String str1, System.String str2, System.String str3)
IL_00B9: call static System.Void Verse.Log::Warning(System.String text)
IL_00BE: ldc.i4.0
IL_00BF: br => Label33
IL_00C4: Label6
IL_00C4: ldarga.s 3
IL_00C6: call System.Boolean Verse.LocalTargetInfo::get_HasThing()
IL_00CB: brtrue => Label7
IL_00D0: ldc.i4.1
IL_00D1: br => Label8
IL_00D6: Label7
IL_00D6: ldarga.s 3
IL_00D8: call Verse.Thing Verse.LocalTargetInfo::get_Thing()
IL_00DD: ldfld System.Int32 Verse.Thing::stackCount
IL_00E2: Label8
IL_00E2: stloc.0
IL_00E3: ldarg.s 5
IL_00E5: ldc.i4.m1
IL_00E6: beq => Label9
IL_00EB: ldarg.s 5
IL_00ED: br => Label10
IL_00F2: Label9
IL_00F2: ldloc.0
IL_00F3: Label10
IL_00F3: stloc.1
IL_00F4: ldc.i4.0
IL_00F5: stloc.2
IL_00F6: br => Label11
IL_00FB: Label18
IL_00FB: ldarg.0
IL_00FC: ldfld System.Collections.Generic.List`1<Verse.AI.Reservation>
Verse.AI.ReservationManager::reservations
IL_0101: ldloc.2
IL_0102: callvirt virtual Verse.AI.Reservation
System.Collections.Generic.List`1<Verse.AI.Reservation>::get_Item(System.Int32
index)
IL_0107: stloc.3
IL_0108: ldloc.3
IL_0109: callvirt Verse.LocalTargetInfo Verse.AI.Reservation::get_Target()
IL_010E: ldarg.3
IL_010F: call static System.Boolean
Verse.LocalTargetInfo::op_Equality(Verse.LocalTargetInfo a, Verse.LocalTargetInfo
b)
IL_0114: brfalse => Label12
IL_0119: ldloc.3
IL_011A: callvirt Verse.Pawn Verse.AI.Reservation::get_Claimant()
IL_011F: ldarg.1
IL_0120: bne.un => Label13
IL_0125: ldloc.3
IL_0126: callvirt Verse.AI.Job Verse.AI.Reservation::get_Job()
IL_012B: ldarg.2
IL_012C: bne.un => Label14
IL_0131: ldloc.3
IL_0132: callvirt Verse.ReservationLayerDef Verse.AI.Reservation::get_Layer()
IL_0137: ldarg.s 6
IL_0139: bne.un => Label15
IL_013E: ldloc.3
IL_013F: callvirt System.Int32 Verse.AI.Reservation::get_StackCount()
IL_0144: ldc.i4.m1
IL_0145: beq => Label16
IL_014A: ldloc.3
IL_014B: callvirt System.Int32 Verse.AI.Reservation::get_StackCount()
IL_0150: ldloc.1
IL_0151: blt => Label17
IL_0156: Label16
IL_0156: ldc.i4.1
IL_0157: br => Label34
IL_015C: Label12
IL_015C: Label13
IL_015C: Label14
IL_015C: Label15
IL_015C: Label17
IL_015C: ldloc.2
IL_015D: ldc.i4.1
IL_015E: add
IL_015F: stloc.2
IL_0160: Label11
IL_0160: ldloc.2
IL_0161: ldarg.0
IL_0162: ldfld System.Collections.Generic.List`1<Verse.AI.Reservation>
Verse.AI.ReservationManager::reservations
IL_0167: callvirt virtual System.Int32
System.Collections.Generic.List`1<Verse.AI.Reservation>::get_Count()
IL_016C: blt => Label18
IL_0171: ldarga.s 3
IL_0173: call System.Boolean Verse.LocalTargetInfo::get_IsValid()
IL_0178: brfalse => Label19
IL_017D: ldarga.s 3
IL_017F: call System.Boolean Verse.LocalTargetInfo::get_ThingDestroyed()
IL_0184: brfalse => Label20
IL_0189: Label19
IL_0189: ldc.i4.0
IL_018A: br => Label35
IL_018F: Label20
IL_018F: ldarg.0
IL_0190: ldarg.1
IL_0191: ldarg.3
IL_0192: ldarg.s 4
IL_0194: ldarg.s 5
IL_0196: ldarg.s 6
IL_0198: ldc.i4.0
IL_0199: call System.Boolean
Verse.AI.ReservationManager::CanReserve(Verse.Pawn claimant, Verse.LocalTargetInfo
target, System.Int32 maxPawns, System.Int32 stackCount, Verse.ReservationLayerDef
layer, System.Boolean ignoreOtherReservations)
IL_019E: brtrue => Label21
IL_01A3: ldarg.2
IL_01A4: brfalse => Label22
IL_01A9: ldarg.2
IL_01AA: ldfld System.Boolean Verse.AI.Job::playerForced
IL_01AF: brfalse => Label23
IL_01B4: ldarg.0
IL_01B5: ldarg.1
IL_01B6: ldarg.3
IL_01B7: ldarg.s 4
IL_01B9: ldarg.s 5
IL_01BB: ldarg.s 6
IL_01BD: ldc.i4.1
IL_01BE: call System.Boolean
Verse.AI.ReservationManager::CanReserve(Verse.Pawn claimant, Verse.LocalTargetInfo
target, System.Int32 maxPawns, System.Int32 stackCount, Verse.ReservationLayerDef
layer, System.Boolean ignoreOtherReservations)
IL_01C3: brfalse => Label24
IL_01C8: ldarg.0
IL_01C9: ldfld System.Collections.Generic.List`1<Verse.AI.Reservation>
Verse.AI.ReservationManager::reservations
IL_01CE: ldarg.1
IL_01CF: ldarg.2
IL_01D0: ldarg.s 4
IL_01D2: ldarg.s 5
IL_01D4: ldarg.3
IL_01D5: ldarg.s 6
IL_01D7: newobj System.Void Verse.AI.Reservation::.ctor(Verse.Pawn claimant,
Verse.AI.Job job, System.Int32 maxPawns, System.Int32 stackCount,
Verse.LocalTargetInfo target, Verse.ReservationLayerDef layer)
IL_01DC: callvirt virtual System.Void
System.Collections.Generic.List`1<Verse.AI.Reservation>::Add(Verse.AI.Reservation
item)
IL_01E1: ldarg.0
IL_01E2: ldfld System.Collections.Generic.List`1<Verse.AI.Reservation>
Verse.AI.ReservationManager::reservations
IL_01E7: call static System.Collections.Generic.List`1<Verse.AI.Reservation>
System.Linq.Enumerable::ToList(System.Collections.Generic.IEnumerable`1<Verse.AI.Re
servation> source)
IL_01EC: callvirt System.Collections.Generic.Enumerator<Verse.AI.Reservation>
System.Collections.Generic.List`1<Verse.AI.Reservation>::GetEnumerator()
IL_01F1: stloc.s 4
(System.Collections.Generic.List`1+Enumerator[Verse.AI.ReservationManager+Reservati
on])
.try
{
IL_01F3: br => Label25
IL_01F8: Label30
IL_01F8: ldloca.s 4
(System.Collections.Generic.List`1+Enumerator[Verse.AI.ReservationManager+Reservati
on])
IL_01FA: call virtual Verse.AI.Reservation
System.Collections.Generic.Enumerator<Verse.AI.Reservation>::get_Current()
IL_01FF: stloc.s 5 (Verse.AI.ReservationManager+Reservation)
IL_0201: ldloc.s 5 (Verse.AI.ReservationManager+Reservation)
IL_0203: callvirt Verse.LocalTargetInfo Verse.AI.Reservation::get_Target()
IL_0208: ldarg.3
IL_0209: call static System.Boolean
Verse.LocalTargetInfo::op_Equality(Verse.LocalTargetInfo a, Verse.LocalTargetInfo
b)
IL_020E: brfalse => Label26
IL_0213: ldloc.s 5 (Verse.AI.ReservationManager+Reservation)
IL_0215: callvirt Verse.Pawn Verse.AI.Reservation::get_Claimant()
IL_021A: ldarg.1
IL_021B: beq => Label27
IL_0220: ldloc.s 5 (Verse.AI.ReservationManager+Reservation)
IL_0222: callvirt Verse.ReservationLayerDef
Verse.AI.Reservation::get_Layer()
IL_0227: ldarg.s 6
IL_0229: bne.un => Label28
IL_022E: ldarg.1
IL_022F: ldloc.s 5 (Verse.AI.ReservationManager+Reservation)
IL_0231: callvirt Verse.Pawn Verse.AI.Reservation::get_Claimant()
IL_0236: call static System.Boolean
Verse.AI.ReservationManager::RespectsReservationsOf(Verse.Pawn newClaimant,
Verse.Pawn oldClaimant)
IL_023B: brfalse => Label29
IL_0240: ldloc.s 5 (Verse.AI.ReservationManager+Reservation)
IL_0242: callvirt Verse.Pawn Verse.AI.Reservation::get_Claimant()
IL_0247: ldfld Verse.AI.Pawn_JobTracker Verse.Pawn::jobs
IL_024C: ldloc.s 5 (Verse.AI.ReservationManager+Reservation)
IL_024E: callvirt Verse.AI.Job Verse.AI.Reservation::get_Job()
IL_0253: ldc.i4.5
IL_0254: ldc.i4.1
IL_0255: callvirt System.Void
Verse.AI.Pawn_JobTracker::EndCurrentOrQueuedJob(Verse.AI.Job job,
Verse.AI.JobCondition condition, System.Boolean canReturnToPool)
IL_025A: Label25
IL_025A: Label26
IL_025A: Label27
IL_025A: Label28
IL_025A: Label29
IL_025A: ldloca.s 4
(System.Collections.Generic.List`1+Enumerator[Verse.AI.ReservationManager+Reservati
on])
IL_025C: call virtual System.Boolean
System.Collections.Generic.Enumerator<Verse.AI.Reservation>::MoveNext()
IL_0261: brtrue => Label30
IL_0266: leave => Label31
IL_026B: leave => (autogenerated)
} // end try
.finally
{
IL_0270: ldloca.s 4
(System.Collections.Generic.List`1+Enumerator[Verse.AI.ReservationManager+Reservati
on])
IL_0272: constrained.
System.Collections.Generic.List`1+Enumerator[Verse.AI.ReservationManager+Reservatio
n]
IL_0278: callvirt abstract virtual System.Void
System.IDisposable::Dispose()
IL_027D: endfinally
IL_027E: leave => (autogenerated)
} // end handler
IL_027F: Label31
IL_027F: ldc.i4.1
IL_0280: br => Label40
IL_0285: Label22
IL_0285: Label23
IL_0285: Label24
IL_0285: ldarg.s 7
IL_0287: brfalse => Label32
IL_028C: ldarg.0
IL_028D: ldarg.1
IL_028E: ldarg.2
IL_028F: ldarg.3
IL_0290: ldarg.s 4
IL_0292: ldarg.s 5
IL_0294: ldarg.s 6
IL_0296: call System.Void
Verse.AI.ReservationManager::LogCouldNotReserveError(Verse.Pawn claimant,
Verse.AI.Job job, Verse.LocalTargetInfo target, System.Int32 maxPawns, System.Int32
stackCount, Verse.ReservationLayerDef layer)
IL_029B: Label32
IL_029B: ldc.i4.0
IL_029C: br => Label41
IL_02A1: Label21
IL_02A1: ldarg.0
IL_02A2: ldfld System.Collections.Generic.List`1<Verse.AI.Reservation>
Verse.AI.ReservationManager::reservations
IL_02A7: ldarg.1
IL_02A8: ldarg.2
IL_02A9: ldarg.s 4
IL_02AB: ldarg.s 5
IL_02AD: ldarg.3
IL_02AE: ldarg.s 6
IL_02B0: newobj System.Void Verse.AI.Reservation::.ctor(Verse.Pawn claimant,
Verse.AI.Job job, System.Int32 maxPawns, System.Int32 stackCount,
Verse.LocalTargetInfo target, Verse.ReservationLayerDef layer)
IL_02B5: callvirt virtual System.Void
System.Collections.Generic.List`1<Verse.AI.Reservation>::Add(Verse.AI.Reservation
item)
IL_02BA: ldc.i4.1
IL_02BB: // end original
IL_02BB: Label33
IL_02BB: Label34
IL_02BB: Label35
IL_02BB: Label40
IL_02BB: Label41
IL_02BB: stloc 6 (System.Boolean)
IL_02BF: Label0
IL_02BF: ldloc 6 (System.Boolean)
IL_02C3: ret
DONE

### Patch: System.Void Verse.AI.ReservationManager::Release(Verse.LocalTargetInfo


target, Verse.Pawn claimant, Verse.AI.Job job)
### Replacement: static System.Void
Verse.AI.ReservationManager::Verse.AI.ReservationManager.Release_Patch3(Verse.AI.Re
servationManager this, Verse.LocalTargetInfo target, Verse.Pawn claimant,
Verse.AI.Job job)
IL_0000: Local var 0: Verse.AI.ReservationManager/Reservation
IL_0000: Local var 1: System.Int32
IL_0000: Local var 2: Verse.AI.ReservationManager/Reservation
IL_0000: Local var 3: System.Boolean
IL_0000: ldc.i4 0
IL_0005: stloc 3 (System.Boolean)
IL_0009: ldc.i4.1
IL_000A: stloc 3 (System.Boolean)
IL_000E: ldloc 3 (System.Boolean)
IL_0012: brfalse => Label1
IL_0017: ldarg 1
IL_001B: ldarg 2
IL_001F: ldarg 3
IL_0023: call static System.Void
Share_The_Load.Release_Patch::Prefix(Verse.LocalTargetInfo target, Verse.Pawn
claimant, Verse.AI.Job job)
IL_0028: Label1
IL_0028: nop
IL_0029: ldloc 3 (System.Boolean)
IL_002D: brfalse => Label2
IL_0032: ldarga 1
IL_0036: call static System.Void
Replace_Stuff.Replace.ReserveSharing::Prefix(Verse.LocalTargetInfo& target)
IL_003B: Label2
IL_003B: nop
IL_003C: ldloc 3 (System.Boolean)
IL_0040: brfalse => Label3
IL_0045: ldarg 1
IL_0049: ldarg 2
IL_004D: ldarg 3
IL_0051: call static System.Void
Share_The_Load.Release_Patch_ES::Prefix(Verse.LocalTargetInfo target, Verse.Pawn
claimant, Verse.AI.Job job)
IL_0056: Label3
IL_0056: nop
IL_0057: ldloc 3 (System.Boolean)
IL_005B: brfalse => Label0
IL_0060: // start original
IL_0060: ldarga.s 1
IL_0062: call System.Boolean Verse.LocalTargetInfo::get_ThingDestroyed()
IL_0067: brfalse => Label4
IL_006C: ldc.i4.4
IL_006D: newarr System.Object
IL_0072: dup
IL_0073: ldc.i4.0
IL_0074: ldstr "Releasing destroyed thing "
IL_0079: stelem.ref
IL_007A: dup
IL_007B: ldc.i4.1
IL_007C: ldarg.1
IL_007D: box Verse.LocalTargetInfo
IL_0082: stelem.ref
IL_0083: dup
IL_0084: ldc.i4.2
IL_0085: ldstr " for "
IL_008A: stelem.ref
IL_008B: dup
IL_008C: ldc.i4.3
IL_008D: ldarg.2
IL_008E: stelem.ref
IL_008F: call static System.String System.String::Concat(System.Object[]
args)
IL_0094: call static System.Void Verse.Log::Warning(System.String text)
IL_0099: Label4
IL_0099: ldnull
IL_009A: stloc.0
IL_009B: ldc.i4.0
IL_009C: stloc.1
IL_009D: br => Label5
IL_00A2: Label10
IL_00A2: ldarg.0
IL_00A3: ldfld System.Collections.Generic.List`1<Verse.AI.Reservation>
Verse.AI.ReservationManager::reservations
IL_00A8: ldloc.1
IL_00A9: callvirt virtual Verse.AI.Reservation
System.Collections.Generic.List`1<Verse.AI.Reservation>::get_Item(System.Int32
index)
IL_00AE: stloc.2
IL_00AF: ldloc.2
IL_00B0: callvirt Verse.LocalTargetInfo Verse.AI.Reservation::get_Target()
IL_00B5: ldarg.1
IL_00B6: call static System.Boolean
Verse.LocalTargetInfo::op_Equality(Verse.LocalTargetInfo a, Verse.LocalTargetInfo
b)
IL_00BB: brfalse => Label6
IL_00C0: ldloc.2
IL_00C1: callvirt Verse.Pawn Verse.AI.Reservation::get_Claimant()
IL_00C6: ldarg.2
IL_00C7: bne.un => Label7
IL_00CC: ldloc.2
IL_00CD: callvirt Verse.AI.Job Verse.AI.Reservation::get_Job()
IL_00D2: ldarg.3
IL_00D3: bne.un => Label8
IL_00D8: ldloc.2
IL_00D9: stloc.0
IL_00DA: br => Label9
IL_00DF: Label6
IL_00DF: Label7
IL_00DF: Label8
IL_00DF: ldloc.1
IL_00E0: ldc.i4.1
IL_00E1: add
IL_00E2: stloc.1
IL_00E3: Label5
IL_00E3: ldloc.1
IL_00E4: ldarg.0
IL_00E5: ldfld System.Collections.Generic.List`1<Verse.AI.Reservation>
Verse.AI.ReservationManager::reservations
IL_00EA: callvirt virtual System.Int32
System.Collections.Generic.List`1<Verse.AI.Reservation>::get_Count()
IL_00EF: blt => Label10
IL_00F4: Label9
IL_00F4: ldloc.0
IL_00F5: brtrue => Label11
IL_00FA: ldarga.s 1
IL_00FC: call System.Boolean Verse.LocalTargetInfo::get_ThingDestroyed()
IL_0101: brtrue => Label12
IL_0106: ldc.i4.5
IL_0107: newarr System.Object
IL_010C: dup
IL_010D: ldc.i4.0
IL_010E: ldstr "Tried to release "
IL_0113: stelem.ref
IL_0114: dup
IL_0115: ldc.i4.1
IL_0116: ldarg.1
IL_0117: box Verse.LocalTargetInfo
IL_011C: stelem.ref
IL_011D: dup
IL_011E: ldc.i4.2
IL_011F: ldstr " that wasn\'t reserved by "
IL_0124: stelem.ref
IL_0125: dup
IL_0126: ldc.i4.3
IL_0127: ldarg.2
IL_0128: stelem.ref
IL_0129: dup
IL_012A: ldc.i4.4
IL_012B: ldstr "."
IL_0130: stelem.ref
IL_0131: call static System.String System.String::Concat(System.Object[]
args)
IL_0136: call static System.Void Verse.Log::Error(System.String text)
IL_013B: br => Label13
IL_0140: Label11
IL_0140: Label12
IL_0140: ldarg.0
IL_0141: ldfld System.Collections.Generic.List`1<Verse.AI.Reservation>
Verse.AI.ReservationManager::reservations
IL_0146: ldloc.0
IL_0147: callvirt virtual System.Boolean
System.Collections.Generic.List`1<Verse.AI.Reservation>::Remove(Verse.AI.Reservatio
n item)
IL_014C: pop
IL_014D: // end original
IL_014D: Label13
IL_014D: Label0
IL_014D: ret
DONE

### Patch: System.Void Verse.AI.ReservationManager::ReleaseClaimedBy(Verse.Pawn


claimant, Verse.AI.Job job)
### Replacement: static System.Void
Verse.AI.ReservationManager::Verse.AI.ReservationManager.ReleaseClaimedBy_Patch2(Ve
rse.AI.ReservationManager this, Verse.Pawn claimant, Verse.AI.Job job)
IL_0000: Local var 0: System.Int32
IL_0000: Local var 1: System.Boolean
IL_0000: ldc.i4 0
IL_0005: stloc 1 (System.Boolean)
IL_0009: ldc.i4.1
IL_000A: stloc 1 (System.Boolean)
IL_000E: ldloc 1 (System.Boolean)
IL_0012: brfalse => Label1
IL_0017: ldarg 1
IL_001B: ldarg 2
IL_001F: call static System.Void
Share_The_Load.ReleaseClaimedBy_Patch::Prefix(Verse.Pawn claimant, Verse.AI.Job
job)
IL_0024: Label1
IL_0024: nop
IL_0025: ldloc 1 (System.Boolean)
IL_0029: brfalse => Label2
IL_002E: ldarg 1
IL_0032: ldarg 2
IL_0036: call static System.Void
Share_The_Load.ReleaseClaimedBy_Patch_ES::Prefix(Verse.Pawn claimant, Verse.AI.Job
job)
IL_003B: Label2
IL_003B: nop
IL_003C: ldloc 1 (System.Boolean)
IL_0040: brfalse => Label0
IL_0045: // start original
IL_0045: ldarg.0
IL_0046: ldfld System.Collections.Generic.List`1<Verse.AI.Reservation>
Verse.AI.ReservationManager::reservations
IL_004B: callvirt virtual System.Int32
System.Collections.Generic.List`1<Verse.AI.Reservation>::get_Count()
IL_0050: ldc.i4.1
IL_0051: sub
IL_0052: stloc.0
IL_0053: br => Label3
IL_0058: Label6
IL_0058: ldarg.0
IL_0059: ldfld System.Collections.Generic.List`1<Verse.AI.Reservation>
Verse.AI.ReservationManager::reservations
IL_005E: ldloc.0
IL_005F: callvirt virtual Verse.AI.Reservation
System.Collections.Generic.List`1<Verse.AI.Reservation>::get_Item(System.Int32
index)
IL_0064: callvirt Verse.Pawn Verse.AI.Reservation::get_Claimant()
IL_0069: ldarg.1
IL_006A: bne.un => Label4
IL_006F: ldarg.0
IL_0070: ldfld System.Collections.Generic.List`1<Verse.AI.Reservation>
Verse.AI.ReservationManager::reservations
IL_0075: ldloc.0
IL_0076: callvirt virtual Verse.AI.Reservation
System.Collections.Generic.List`1<Verse.AI.Reservation>::get_Item(System.Int32
index)
IL_007B: callvirt Verse.AI.Job Verse.AI.Reservation::get_Job()
IL_0080: ldarg.2
IL_0081: bne.un => Label5
IL_0086: ldarg.0
IL_0087: ldfld System.Collections.Generic.List`1<Verse.AI.Reservation>
Verse.AI.ReservationManager::reservations
IL_008C: ldloc.0
IL_008D: callvirt virtual System.Void
System.Collections.Generic.List`1<Verse.AI.Reservation>::RemoveAt(System.Int32
index)
IL_0092: Label4
IL_0092: Label5
IL_0092: ldloc.0
IL_0093: ldc.i4.1
IL_0094: sub
IL_0095: stloc.0
IL_0096: Label3
IL_0096: ldloc.0
IL_0097: ldc.i4.0
IL_0098: bge => Label6
IL_009D: // end original
IL_009D: Label0
IL_009D: ret
DONE
AccessTools.TypeByName: Could not find type named WhileYoureUp.Utils
AccessTools.TypeByName: Could not find type named Pharmacist.PharmacistUtility
### Harmony id=uuugggg.rimworld.SmartMedicine.main, version=2.2.2.0, location=C:\
Program Files (x86)\Steam\steamapps\common\data-000002130553D010,
env/clr=4.0.30319.42000, platform=Win32NT, ptrsize:runtime/env=8/Bits64, Windows
### Started from static System.Void SmartMedicine.PickupMedicine_Patch::.cctor(),
location C:\Program Files (x86)\Steam\steamapps\common\data-00000213097314D0
### At 2023-02-17 06.57.36
### Patch: System.Void RimWorld.<>c__DisplayClass2_0::<PickupMedicine>b__0()
### Replacement: static System.Void
RimWorld.Toils_Tend+<>c__DisplayClass2_0::RimWorld.Toils_Tend+c__DisplayClass2_0.<P
ickupMedicine>b__0_Patch0(RimWorld.<>c__DisplayClass2_0 this)
IL_0000: Local var 0: Verse.Pawn
IL_0000: Local var 1: Verse.AI.Job
IL_0000: Local var 2: Verse.Thing
IL_0000: Local var 3: System.Int32
IL_0000: Local var 4: System.Int32
IL_0000: Local var 5: Verse.LocalTargetInfo
IL_0000: // start original
IL_0000: ldarg.0
IL_0001: ldfld Verse.AI.Toil RimWorld.<>c__DisplayClass2_0::toil
IL_0006: ldfld Verse.Pawn Verse.AI.Toil::actor
IL_000B: stloc.0
IL_000C: ldloc.0
IL_000D: ldfld Verse.AI.Pawn_JobTracker Verse.Pawn::jobs
IL_0012: ldfld Verse.AI.Job Verse.AI.Pawn_JobTracker::curJob
IL_0017: stloc.1
IL_0018: ldloc.1
IL_0019: ldarg.0
IL_001A: ldfld Verse.AI.TargetIndex RimWorld.<>c__DisplayClass2_0::ind
IL_001F: callvirt Verse.LocalTargetInfo
Verse.AI.Job::GetTarget(Verse.AI.TargetIndex ind)
IL_0024: stloc.s 5 (Verse.LocalTargetInfo)
IL_0026: ldloca.s 5 (Verse.LocalTargetInfo)
IL_0028: call Verse.Thing Verse.LocalTargetInfo::get_Thing()
IL_002D: stloc.2
IL_002E: ldarg.0
IL_002F: ldfld Verse.Pawn RimWorld.<>c__DisplayClass2_0::injured
IL_0034: pop
IL_0035: ldloc.1
IL_0036: ldfld System.Int32 Verse.AI.Job::count
IL_003B: stloc.3
IL_003C: ldloc.0
IL_003D: ldfld Verse.Pawn_CarryTracker Verse.Pawn::carryTracker
IL_0042: callvirt Verse.Thing Verse.Pawn_CarryTracker::get_CarriedThing()
IL_0047: pop
IL_0048: ldc.i4.0
IL_0049: brfalse => Label0
IL_004E: ldloc.3
IL_004F: ldloc.0
IL_0050: ldfld Verse.Pawn_CarryTracker Verse.Pawn::carryTracker
IL_0055: callvirt Verse.Thing Verse.Pawn_CarryTracker::get_CarriedThing()
IL_005A: ldfld System.Int32 Verse.Thing::stackCount
IL_005F: sub
IL_0060: stloc.3
IL_0061: Label0
IL_0061: ldloc.0
IL_0062: callvirt virtual Verse.Map Verse.Thing::get_Map()
IL_0067: ldfld Verse.AI.ReservationManager Verse.Map::reservationManager
IL_006C: ldloc.0
IL_006D: ldloc.2
IL_006E: call static Verse.LocalTargetInfo
Verse.LocalTargetInfo::op_Implicit(Verse.Thing t)
IL_0073: ldc.i4.s 10
IL_0075: ldnull
IL_0076: ldc.i4.0
IL_0077: callvirt System.Int32
Verse.AI.ReservationManager::CanReserveStack(Verse.Pawn claimant,
Verse.LocalTargetInfo target, System.Int32 maxPawns, Verse.ReservationLayerDef
layer, System.Boolean ignoreOtherReservations)
IL_007C: ldloc.3
IL_007D: call static System.Int32 UnityEngine.Mathf::Min(System.Int32 a,
System.Int32 b)
IL_0082: stloc.s 4 (System.Int32)
IL_0084: ldloc.s 4 (System.Int32)
IL_0086: ldc.i4.0
IL_0087: ble => Label1
IL_008C: ldloc.0
IL_008D: ldfld Verse.Pawn_CarryTracker Verse.Pawn::carryTracker
IL_0092: ldloc.2
IL_0093: ldloc.s 4 (System.Int32)
IL_0095: ldc.i4.1
IL_0096: callvirt System.Int32 Verse.Pawn_CarryTracker::TryStartCarry(Verse.Thing
item, System.Int32 count, System.Boolean reserve)
IL_009B: pop
IL_009C: Label1
IL_009C: ldloc.1
IL_009D: ldloc.3
IL_009E: ldloc.s 4 (System.Int32)
IL_00A0: sub
IL_00A1: stfld System.Int32 Verse.AI.Job::count
IL_00A6: ldloc.2
IL_00A7: callvirt System.Boolean Verse.Thing::get_Spawned()
IL_00AC: brfalse => Label2
IL_00B1: ldarg.0
IL_00B2: ldfld Verse.AI.Toil RimWorld.<>c__DisplayClass2_0::toil
IL_00B7: ldfld Verse.Pawn Verse.AI.Toil::actor
IL_00BC: callvirt virtual Verse.Map Verse.Thing::get_Map()
IL_00C1: ldfld Verse.AI.ReservationManager Verse.Map::reservationManager
IL_00C6: ldloc.2
IL_00C7: call static Verse.LocalTargetInfo
Verse.LocalTargetInfo::op_Implicit(Verse.Thing t)
IL_00CC: ldloc.0
IL_00CD: ldloc.1
IL_00CE: callvirt System.Void
Verse.AI.ReservationManager::Release(Verse.LocalTargetInfo target, Verse.Pawn
claimant, Verse.AI.Job job)
IL_00D3: Label2
IL_00D3: ldloc.1
IL_00D4: ldarg.0
IL_00D5: ldfld Verse.AI.TargetIndex RimWorld.<>c__DisplayClass2_0::ind
IL_00DA: ldloc.0
IL_00DB: ldfld Verse.Pawn_CarryTracker Verse.Pawn::carryTracker
IL_00E0: callvirt Verse.Thing Verse.Pawn_CarryTracker::get_CarriedThing()
IL_00E5: call static Verse.LocalTargetInfo
Verse.LocalTargetInfo::op_Implicit(Verse.Thing t)
IL_00EA: callvirt System.Void Verse.AI.Job::SetTarget(Verse.AI.TargetIndex ind,
Verse.LocalTargetInfo pack)
IL_00EF: // end original
IL_00EF: ret
DONE

AccessTools.TypeByName: Could not find type named Androids.MechanicalPawnProperties


AccessTools.TypeByName: Could not find type named Androids.DroidRepairProperties
### Harmony id=uuugggg.rimworld.SmartMedicine.main, version=2.2.2.0, location=C:\
Program Files (x86)\Steam\steamapps\common\data-000002130553D010,
env/clr=4.0.30319.42000, platform=Win32NT, ptrsize:runtime/env=8/Bits64, Windows
### Started from static System.Void SmartMedicine.PriorityCareJobFail::.cctor(),
location C:\Program Files (x86)\Steam\steamapps\common\data-00000213097314D0
### At 2023-02-17 06.57.36
### Patch: RimWorld.SkillDef RimWorld.<>c::<MakeNewToils>b__17_3()
### Replacement: static RimWorld.SkillDef
RimWorld.JobDriver_TendPatient+<>c::RimWorld.JobDriver_TendPatient+c.<MakeNewToils>
b__17_3_Patch0(RimWorld.<>c this)
IL_0000: // start original
IL_0000: ldsfld RimWorld.SkillDef RimWorld.SkillDefOf::Medicine
IL_0005: // end original
IL_0005: ret
DONE

### Patch: System.Boolean RimWorld.<>c__DisplayClass17_0::<MakeNewToils>b__0()


### Replacement: static System.Boolean
RimWorld.JobDriver_TendPatient+<>c__DisplayClass17_0::RimWorld.JobDriver_TendPatien
t+c__DisplayClass17_0.<MakeNewToils>b__0_Patch0(RimWorld.<>c__DisplayClass17_0
this)
IL_0000: // start original
IL_0000: ldarg.0
IL_0001: ldfld RimWorld.JobDriver_TendPatient
RimWorld.<>c__DisplayClass17_0::<>4__this
IL_0006: call Verse.Thing RimWorld.JobDriver_TendPatient::get_MedicineUsed()
IL_000B: brfalse => Label0
IL_0010: ldarg.0
IL_0011: ldfld RimWorld.JobDriver_TendPatient
RimWorld.<>c__DisplayClass17_0::<>4__this
IL_0016: ldfld Verse.Pawn Verse.AI.JobDriver::pawn
IL_001B: callvirt virtual RimWorld.Faction Verse.Thing::get_Faction()
IL_0020: call static RimWorld.Faction RimWorld.Faction::get_OfPlayer()
IL_0025: bne.un => Label1
IL_002A: ldarg.0
IL_002B: ldfld RimWorld.JobDriver_TendPatient
RimWorld.<>c__DisplayClass17_0::<>4__this
IL_0030: call Verse.Pawn RimWorld.JobDriver_TendPatient::get_Deliveree()
IL_0035: ldfld RimWorld.Pawn_PlayerSettings Verse.Pawn::playerSettings
IL_003A: brfalse => Label2
IL_003F: ldarg.0
IL_0040: ldfld RimWorld.JobDriver_TendPatient
RimWorld.<>c__DisplayClass17_0::<>4__this
IL_0045: call Verse.Pawn RimWorld.JobDriver_TendPatient::get_Deliveree()
IL_004A: ldarg.0
IL_004B: ldfld RimWorld.JobDriver_TendPatient
RimWorld.<>c__DisplayClass17_0::<>4__this
IL_0050: call Verse.Thing RimWorld.JobDriver_TendPatient::get_MedicineUsed()
IL_0055: ldfld Verse.ThingDef Verse.Thing::def
IL_005A: call static System.Boolean
SmartMedicine.PriorityCareJobFail::AllowsMedicineForHediff(Verse.Pawn deliveree,
Verse.ThingDef med)
IL_005F: brtrue => Label3
IL_0064: ldc.i4.1
IL_0065: br => Label8
IL_006A: Label0
IL_006A: Label1
IL_006A: Label2
IL_006A: Label3
IL_006A: ldarg.0
IL_006B: ldfld RimWorld.JobDriver_TendPatient
RimWorld.<>c__DisplayClass17_0::<>4__this
IL_0070: ldfld Verse.Pawn Verse.AI.JobDriver::pawn
IL_0075: ldarg.0
IL_0076: ldfld RimWorld.JobDriver_TendPatient
RimWorld.<>c__DisplayClass17_0::<>4__this
IL_007B: call Verse.Pawn RimWorld.JobDriver_TendPatient::get_Deliveree()
IL_0080: bne.un => Label4
IL_0085: ldarg.0
IL_0086: ldfld RimWorld.JobDriver_TendPatient
RimWorld.<>c__DisplayClass17_0::<>4__this
IL_008B: ldfld Verse.Pawn Verse.AI.JobDriver::pawn
IL_0090: callvirt virtual RimWorld.Faction Verse.Thing::get_Faction()
IL_0095: call static RimWorld.Faction RimWorld.Faction::get_OfPlayer()
IL_009A: bne.un => Label5
IL_009F: ldarg.0
IL_00A0: ldfld RimWorld.JobDriver_TendPatient
RimWorld.<>c__DisplayClass17_0::<>4__this
IL_00A5: ldfld Verse.Pawn Verse.AI.JobDriver::pawn
IL_00AA: ldfld RimWorld.Pawn_PlayerSettings Verse.Pawn::playerSettings
IL_00AF: brfalse => Label6
IL_00B4: ldarg.0
IL_00B5: ldfld RimWorld.JobDriver_TendPatient
RimWorld.<>c__DisplayClass17_0::<>4__this
IL_00BA: ldfld Verse.Pawn Verse.AI.JobDriver::pawn
IL_00BF: ldfld RimWorld.Pawn_PlayerSettings Verse.Pawn::playerSettings
IL_00C4: ldfld System.Boolean RimWorld.Pawn_PlayerSettings::selfTend
IL_00C9: brtrue => Label7
IL_00CE: ldc.i4.1
IL_00CF: br => Label9
IL_00D4: Label4
IL_00D4: Label5
IL_00D4: Label6
IL_00D4: Label7
IL_00D4: ldc.i4.0
IL_00D5: // end original
IL_00D5: Label8
IL_00D5: Label9
IL_00D5: ret
DONE

### Patch: Verse.AI.JobCondition


RimWorld.<>c__DisplayClass17_0::<MakeNewToils>b__1()
### Replacement: static Verse.AI.JobCondition
RimWorld.JobDriver_TendPatient+<>c__DisplayClass17_0::RimWorld.JobDriver_TendPatien
t+c__DisplayClass17_0.<MakeNewToils>b__1_Patch0(RimWorld.<>c__DisplayClass17_0
this)
IL_0000: // start original
IL_0000: ldarg.0
IL_0001: ldfld RimWorld.JobDriver_TendPatient
RimWorld.<>c__DisplayClass17_0::<>4__this
IL_0006: ldfld Verse.Pawn Verse.AI.JobDriver::pawn
IL_000B: callvirt virtual RimWorld.Faction Verse.Thing::get_Faction()
IL_0010: call static RimWorld.Faction RimWorld.Faction::get_OfPlayer()
IL_0015: bne.un => Label0
IL_001A: ldarg.0
IL_001B: ldfld RimWorld.JobDriver_TendPatient
RimWorld.<>c__DisplayClass17_0::<>4__this
IL_0020: call Verse.Pawn RimWorld.JobDriver_TendPatient::get_Deliveree()
IL_0025: call static System.Boolean
RimWorld.HealthAIUtility::ShouldBeTendedNowByPlayer(Verse.Pawn pawn)
IL_002A: brfalse => Label1
IL_002F: ldc.i4.1
IL_0030: br => Label5
IL_0035: Label0
IL_0035: Label1
IL_0035: ldarg.0
IL_0036: ldfld RimWorld.JobDriver_TendPatient
RimWorld.<>c__DisplayClass17_0::<>4__this
IL_003B: ldfld Verse.AI.Job Verse.AI.JobDriver::job
IL_0040: ldfld System.Boolean Verse.AI.Job::playerForced
IL_0045: brtrue => Label2
IL_004A: ldarg.0
IL_004B: ldfld RimWorld.JobDriver_TendPatient
RimWorld.<>c__DisplayClass17_0::<>4__this
IL_0050: ldfld Verse.Pawn Verse.AI.JobDriver::pawn
IL_0055: callvirt virtual RimWorld.Faction Verse.Thing::get_Faction()
IL_005A: call static RimWorld.Faction RimWorld.Faction::get_OfPlayer()
IL_005F: beq => Label3
IL_0064: Label2
IL_0064: ldarg.0
IL_0065: ldfld RimWorld.JobDriver_TendPatient
RimWorld.<>c__DisplayClass17_0::<>4__this
IL_006A: call Verse.Pawn RimWorld.JobDriver_TendPatient::get_Deliveree()
IL_006F: ldfld Verse.Pawn_HealthTracker Verse.Pawn::health
IL_0074: ldc.i4.0
IL_0075: callvirt System.Boolean
Verse.Pawn_HealthTracker::HasHediffsNeedingTend(System.Boolean forAlert)
IL_007A: brfalse => Label4
IL_007F: ldc.i4.1
IL_0080: br => Label6
IL_0085: Label3
IL_0085: Label4
IL_0085: ldc.i4.2
IL_0086: // end original
IL_0086: Label5
IL_0086: Label6
IL_0086: ret
DONE

### Patch: System.Boolean RimWorld.<>c__DisplayClass17_0::<MakeNewToils>b__6()


### Replacement: static System.Boolean
RimWorld.JobDriver_TendPatient+<>c__DisplayClass17_0::RimWorld.JobDriver_TendPatien
t+c__DisplayClass17_0.<MakeNewToils>b__6_Patch0(RimWorld.<>c__DisplayClass17_0
this)
IL_0000: // start original
IL_0000: ldarg.0
IL_0001: ldfld RimWorld.JobDriver_TendPatient
RimWorld.<>c__DisplayClass17_0::<>4__this
IL_0006: call System.Boolean
RimWorld.JobDriver_TendPatient::get_IsMedicineInDoctorInventory()
IL_000B: // end original
IL_000B: ret
DONE

### Patch: System.Boolean RimWorld.<>c__DisplayClass17_0::<MakeNewToils>b__7()


### Replacement: static System.Boolean
RimWorld.JobDriver_TendPatient+<>c__DisplayClass17_0::RimWorld.JobDriver_TendPatien
t+c__DisplayClass17_0.<MakeNewToils>b__7_Patch0(RimWorld.<>c__DisplayClass17_0
this)
IL_0000: // start original
IL_0000: ldarg.0
IL_0001: ldfld RimWorld.JobDriver_TendPatient
RimWorld.<>c__DisplayClass17_0::<>4__this
IL_0006: call Verse.Pawn
RimWorld.JobDriver_TendPatient::get_OtherPawnMedicineHolder()
IL_000B: ldarg.0
IL_000C: ldfld RimWorld.JobDriver_TendPatient
RimWorld.<>c__DisplayClass17_0::<>4__this
IL_0011: call Verse.Pawn_InventoryTracker
RimWorld.JobDriver_TendPatient::get_MedicineHolderInventory()
IL_0016: dup
IL_0017: brtrue => Label0
IL_001C: pop
IL_001D: ldnull
IL_001E: br => Label1
IL_0023: Label0
IL_0023: ldfld Verse.Pawn Verse.Pawn_InventoryTracker::pawn
IL_0028: Label1
IL_0028: bne.un => Label2
IL_002D: ldarg.0
IL_002E: ldfld RimWorld.JobDriver_TendPatient
RimWorld.<>c__DisplayClass17_0::<>4__this
IL_0033: call Verse.Pawn
RimWorld.JobDriver_TendPatient::get_OtherPawnMedicineHolder()
IL_0038: ldarg.0
IL_0039: ldfld RimWorld.JobDriver_TendPatient
RimWorld.<>c__DisplayClass17_0::<>4__this
IL_003E: ldfld Verse.Pawn Verse.AI.JobDriver::pawn
IL_0043: call static System.Boolean
RimWorld.ForbidUtility::IsForbidden(Verse.Thing t, Verse.Pawn pawn)
IL_0048: br => Label3
IL_004D: Label2
IL_004D: ldc.i4.1
IL_004E: // end original
IL_004E: Label3
IL_004E: ret
DONE

### Patch: System.Void RimWorld.<>c__DisplayClass17_0::<MakeNewToils>b__2()


### Replacement: static System.Void
RimWorld.JobDriver_TendPatient+<>c__DisplayClass17_0::RimWorld.JobDriver_TendPatien
t+c__DisplayClass17_0.<MakeNewToils>b__2_Patch0(RimWorld.<>c__DisplayClass17_0
this)
IL_0000: // start original
IL_0000: ldarg.0
IL_0001: ldfld RimWorld.JobDriver_TendPatient
RimWorld.<>c__DisplayClass17_0::<>4__this
IL_0006: call Verse.Pawn RimWorld.JobDriver_TendPatient::get_Deliveree()
IL_000B: brfalse => Label0
IL_0010: ldarg.0
IL_0011: ldfld RimWorld.JobDriver_TendPatient
RimWorld.<>c__DisplayClass17_0::<>4__this
IL_0016: call Verse.Pawn RimWorld.JobDriver_TendPatient::get_Deliveree()
IL_001B: ldarg.0
IL_001C: ldfld RimWorld.JobDriver_TendPatient
RimWorld.<>c__DisplayClass17_0::<>4__this
IL_0021: ldfld Verse.Pawn Verse.AI.JobDriver::pawn
IL_0026: beq => Label1
IL_002B: ldarg.0
IL_002C: ldfld RimWorld.JobDriver_TendPatient
RimWorld.<>c__DisplayClass17_0::<>4__this
IL_0031: call Verse.Pawn RimWorld.JobDriver_TendPatient::get_Deliveree()
IL_0036: callvirt Verse.AI.Job Verse.Pawn::get_CurJob()
IL_003B: brfalse => Label2
IL_0040: ldarg.0
IL_0041: ldfld RimWorld.JobDriver_TendPatient
RimWorld.<>c__DisplayClass17_0::<>4__this
IL_0046: call Verse.Pawn RimWorld.JobDriver_TendPatient::get_Deliveree()
IL_004B: callvirt Verse.AI.Job Verse.Pawn::get_CurJob()
IL_0050: ldfld Verse.JobDef Verse.AI.Job::def
IL_0055: ldsfld Verse.JobDef RimWorld.JobDefOf::Wait
IL_005A: beq => Label3
IL_005F: ldarg.0
IL_0060: ldfld RimWorld.JobDriver_TendPatient
RimWorld.<>c__DisplayClass17_0::<>4__this
IL_0065: call Verse.Pawn RimWorld.JobDriver_TendPatient::get_Deliveree()
IL_006A: callvirt Verse.AI.Job Verse.Pawn::get_CurJob()
IL_006F: ldfld Verse.JobDef Verse.AI.Job::def
IL_0074: ldsfld Verse.JobDef RimWorld.JobDefOf::Wait_MaintainPosture
IL_0079: bne.un => Label4
IL_007E: Label3
IL_007E: ldarg.0
IL_007F: ldfld RimWorld.JobDriver_TendPatient
RimWorld.<>c__DisplayClass17_0::<>4__this
IL_0084: call Verse.Pawn RimWorld.JobDriver_TendPatient::get_Deliveree()
IL_0089: ldfld Verse.AI.Pawn_JobTracker Verse.Pawn::jobs
IL_008E: ldc.i4.5
IL_008F: ldc.i4.1
IL_0090: ldc.i4.1
IL_0091: callvirt System.Void
Verse.AI.Pawn_JobTracker::EndCurrentJob(Verse.AI.JobCondition condition,
System.Boolean startNewJob, System.Boolean canReturnToPool)
IL_0096: // end original
IL_0096: Label0
IL_0096: Label1
IL_0096: Label2
IL_0096: Label4
IL_0096: ret
DONE

### Patch: System.Void RimWorld.<>c__DisplayClass17_0::<MakeNewToils>b__4()


### Replacement: static System.Void
RimWorld.JobDriver_TendPatient+<>c__DisplayClass17_0::RimWorld.JobDriver_TendPatien
t+c__DisplayClass17_0.<MakeNewToils>b__4_Patch0(RimWorld.<>c__DisplayClass17_0
this)
IL_0000: // start original
IL_0000: ldarg.0
IL_0001: ldfld RimWorld.JobDriver_TendPatient
RimWorld.<>c__DisplayClass17_0::<>4__this
IL_0006: ldfld Verse.Pawn Verse.AI.JobDriver::pawn
IL_000B: ldarg.0
IL_000C: ldfld RimWorld.JobDriver_TendPatient
RimWorld.<>c__DisplayClass17_0::<>4__this
IL_0011: call Verse.Pawn RimWorld.JobDriver_TendPatient::get_Deliveree()
IL_0016: bne.un => Label0
IL_001B: ldarg.0
IL_001C: ldfld RimWorld.JobDriver_TendPatient
RimWorld.<>c__DisplayClass17_0::<>4__this
IL_0021: ldfld Verse.Pawn Verse.AI.JobDriver::pawn
IL_0026: callvirt virtual RimWorld.Faction Verse.Thing::get_Faction()
IL_002B: call static RimWorld.Faction RimWorld.Faction::get_OfPlayer()
IL_0030: beq => Label1
IL_0035: ldarg.0
IL_0036: ldfld RimWorld.JobDriver_TendPatient
RimWorld.<>c__DisplayClass17_0::<>4__this
IL_003B: ldfld Verse.Pawn Verse.AI.JobDriver::pawn
IL_0040: ldc.i4.s 100
IL_0042: call static System.Boolean Verse.Gen::IsHashIntervalTick(Verse.Thing
t, System.Int32 interval)
IL_0047: brfalse => Label2
IL_004C: ldarg.0
IL_004D: ldfld RimWorld.JobDriver_TendPatient
RimWorld.<>c__DisplayClass17_0::<>4__this
IL_0052: ldfld Verse.Pawn Verse.AI.JobDriver::pawn
IL_0057: callvirt virtual Verse.IntVec3 Verse.Thing::get_Position()
IL_005C: ldarg.0
IL_005D: ldfld RimWorld.JobDriver_TendPatient
RimWorld.<>c__DisplayClass17_0::<>4__this
IL_0062: ldfld Verse.Pawn Verse.AI.JobDriver::pawn
IL_0067: callvirt virtual Verse.Map Verse.Thing::get_Map()
IL_006C: call static System.Boolean Verse.GridsUtility::Fogged(Verse.IntVec3
c, Verse.Map map)
IL_0071: brtrue => Label3
IL_0076: ldarg.0
IL_0077: ldfld RimWorld.JobDriver_TendPatient
RimWorld.<>c__DisplayClass17_0::<>4__this
IL_007C: ldfld Verse.Pawn Verse.AI.JobDriver::pawn
IL_0081: callvirt virtual Verse.IntVec3 Verse.Thing::get_Position()
IL_0086: ldarg.0
IL_0087: ldfld RimWorld.JobDriver_TendPatient
RimWorld.<>c__DisplayClass17_0::<>4__this
IL_008C: ldfld Verse.Pawn Verse.AI.JobDriver::pawn
IL_0091: callvirt virtual Verse.Map Verse.Thing::get_Map()
IL_0096: ldsfld Verse.FleckDef RimWorld.FleckDefOf::HealingCross
IL_009B: ldc.r4 0.42
IL_00A0: call static System.Void
RimWorld.FleckMaker::ThrowMetaIcon(Verse.IntVec3 cell, Verse.Map map,
Verse.FleckDef fleckDef, System.Single velocitySpeed)
IL_00A5: Label0
IL_00A5: Label1
IL_00A5: Label2
IL_00A5: Label3
IL_00A5: ldarg.0
IL_00A6: ldfld RimWorld.JobDriver_TendPatient
RimWorld.<>c__DisplayClass17_0::<>4__this
IL_00AB: ldfld Verse.Pawn Verse.AI.JobDriver::pawn
IL_00B0: ldarg.0
IL_00B1: ldfld RimWorld.JobDriver_TendPatient
RimWorld.<>c__DisplayClass17_0::<>4__this
IL_00B6: call Verse.Pawn RimWorld.JobDriver_TendPatient::get_Deliveree()
IL_00BB: beq => Label4
IL_00C0: ldarg.0
IL_00C1: ldfld RimWorld.JobDriver_TendPatient
RimWorld.<>c__DisplayClass17_0::<>4__this
IL_00C6: ldfld Verse.Pawn Verse.AI.JobDriver::pawn
IL_00CB: ldfld Verse.Pawn_RotationTracker Verse.Pawn::rotationTracker
IL_00D0: ldarg.0
IL_00D1: ldfld RimWorld.JobDriver_TendPatient
RimWorld.<>c__DisplayClass17_0::<>4__this
IL_00D6: call Verse.Pawn RimWorld.JobDriver_TendPatient::get_Deliveree()
IL_00DB: call static Verse.LocalTargetInfo
Verse.LocalTargetInfo::op_Implicit(Verse.Thing t)
IL_00E0: callvirt System.Void
Verse.Pawn_RotationTracker::FaceTarget(Verse.LocalTargetInfo target)
IL_00E5: // end original
IL_00E5: Label4
IL_00E5: ret
DONE

### Patch: System.Boolean RimWorld.<>c__DisplayClass17_0::<MakeNewToils>b__5()


### Replacement: static System.Boolean
RimWorld.JobDriver_TendPatient+<>c__DisplayClass17_0::RimWorld.JobDriver_TendPatien
t+c__DisplayClass17_0.<MakeNewToils>b__5_Patch0(RimWorld.<>c__DisplayClass17_0
this)
IL_0000: // start original
IL_0000: ldarg.0
IL_0001: ldfld RimWorld.JobDriver_TendPatient
RimWorld.<>c__DisplayClass17_0::<>4__this
IL_0006: ldfld System.Boolean RimWorld.JobDriver_TendPatient::usesMedicine
IL_000B: brfalse => Label0
IL_0010: ldarg.0
IL_0011: ldfld RimWorld.JobDriver_TendPatient
RimWorld.<>c__DisplayClass17_0::<>4__this
IL_0016: call System.Boolean
RimWorld.JobDriver_TendPatient::get_IsMedicineInDoctorInventory()
IL_001B: ldc.i4.0
IL_001C: ceq
IL_001E: br => Label1
IL_0023: Label0
IL_0023: ldc.i4.1
IL_0024: // end original
IL_0024: Label1
IL_0024: ret
DONE

### Patch: System.Void RimWorld.<>c__DisplayClass17_0::<MakeNewToils>b__8()


### Replacement: static System.Void
RimWorld.JobDriver_TendPatient+<>c__DisplayClass17_0::RimWorld.JobDriver_TendPatien
t+c__DisplayClass17_0.<MakeNewToils>b__8_Patch0(RimWorld.<>c__DisplayClass17_0
this)
IL_0000: Local var 0: Verse.Thing
IL_0000: // start original
IL_0000: ldarg.0
IL_0001: ldfld RimWorld.JobDriver_TendPatient
RimWorld.<>c__DisplayClass17_0::<>4__this
IL_0006: call Verse.Thing RimWorld.JobDriver_TendPatient::get_MedicineUsed()
IL_000B: call static System.Boolean
Verse.ThingUtility::DestroyedOrNull(Verse.Thing t)
IL_0010: brfalse => Label0
IL_0015: ldarg.0
IL_0016: ldfld RimWorld.JobDriver_TendPatient
RimWorld.<>c__DisplayClass17_0::<>4__this
IL_001B: ldfld Verse.Pawn Verse.AI.JobDriver::pawn
IL_0020: ldarg.0
IL_0021: ldfld RimWorld.JobDriver_TendPatient
RimWorld.<>c__DisplayClass17_0::<>4__this
IL_0026: call Verse.Pawn RimWorld.JobDriver_TendPatient::get_Deliveree()
IL_002B: ldc.i4.0
IL_002C: call static Verse.Thing
RimWorld.HealthAIUtility::FindBestMedicine(Verse.Pawn healer, Verse.Pawn patient,
System.Boolean onlyUseInventory)
IL_0031: stloc.0
IL_0032: ldloc.0
IL_0033: brfalse => Label1
IL_0038: ldarg.0
IL_0039: ldfld RimWorld.JobDriver_TendPatient
RimWorld.<>c__DisplayClass17_0::<>4__this
IL_003E: ldfld Verse.AI.Job Verse.AI.JobDriver::job
IL_0043: ldloc.0
IL_0044: call static Verse.LocalTargetInfo
Verse.LocalTargetInfo::op_Implicit(Verse.Thing t)
IL_0049: stfld Verse.LocalTargetInfo Verse.AI.Job::targetB
IL_004E: ldarg.0
IL_004F: ldfld RimWorld.JobDriver_TendPatient
RimWorld.<>c__DisplayClass17_0::<>4__this
IL_0054: ldarg.0
IL_0055: ldfld Verse.AI.Toil RimWorld.<>c__DisplayClass17_0::reserveMedicine
IL_005A: call System.Void Verse.AI.JobDriver::JumpToToil(Verse.AI.Toil to)
IL_005F: // end original
IL_005F: Label0
IL_005F: Label1
IL_005F: ret
DONE

### Harmony id=uuugggg.rimworld.SmartMedicine.RPGInventory, version=2.2.2.0,


location=C:\Program Files (x86)\Steam\steamapps\common\data-000002130553D010,
env/clr=4.0.30319.42000, platform=Win32NT, ptrsize:runtime/env=8/Bits64, Windows
### Started from static System.Void SmartMedicine.PatchRPG::.cctor(), location C:\
Program Files (x86)\Steam\steamapps\common\data-00000213097314D0
### At 2023-02-17 06.57.36
### Patch: System.Void
Sandy_Detailed_RPG_Inventory.Sandy_Detailed_RPG_GearTab::DrawThingRow(System.Single
& y, System.Single width, Verse.Thing thing, System.Boolean inventory)
### Replacement: static System.Void
Sandy_Detailed_RPG_Inventory.Sandy_Detailed_RPG_GearTab::Sandy_Detailed_RPG_Invento
ry.Sandy_Detailed_RPG_GearTab.DrawThingRow_Patch0(Sandy_Detailed_RPG_Inventory.Sand
y_Detailed_RPG_GearTab this, System.Single& y, System.Single width, Verse.Thing
thing, System.Boolean inventory)
IL_0000: Local var 0:
Sandy_Detailed_RPG_Inventory.Sandy_Detailed_RPG_GearTab/<>c__DisplayClass37_0
IL_0000: Local var 1: UnityEngine.Rect
IL_0000: Local var 2: System.Boolean
IL_0000: Local var 3: UnityEngine.Rect
IL_0000: Local var 4: UnityEngine.Rect
IL_0000: Local var 5: System.String
IL_0000: Local var 6: RimWorld.Apparel
IL_0000: Local var 7: System.Boolean
IL_0000: Local var 8: UnityEngine.Rect
IL_0000: Local var 9: System.Boolean
IL_0000: Local var 10: System.Boolean
IL_0000: Local var 11: RimWorld.Apparel
IL_0000: Local var 12: System.Boolean
IL_0000: Local var 13: UnityEngine.Color
IL_0000: Local var 14: UnityEngine.Color
IL_0000: Local var 15: System.Boolean
IL_0000: Local var 16: System.Boolean
IL_0000: Local var 17: System.Boolean
IL_0000: Local var 18: System.Boolean
IL_0000: Local var 19: System.Boolean
IL_0000: Local var 20: System.Action
IL_0000: Local var 21: System.Boolean
IL_0000: Local var 22: System.Boolean
IL_0000: Local var 23: System.Boolean
IL_0000: Local var 24: UnityEngine.Rect
IL_0000: Local var 25: System.Boolean
IL_0000: Local var 26: System.Boolean
IL_0000: Local var 27: System.Boolean
IL_0000: Local var 28: System.Nullable`1<Verse.Rot4>
IL_0000: Local var 29: System.Boolean
IL_0000: Local var 30: System.Boolean
IL_0000: Local var 31: System.Boolean
IL_0000: Local var 32: System.String
IL_0000: Local var 33: System.Boolean
IL_0000: // start original
IL_0000: newobj System.Void
Sandy_Detailed_RPG_Inventory.<>c__DisplayClass37_0::.ctor()
IL_0005: stloc.0
IL_0006: ldloc.0
IL_0007: ldarg.0
IL_0008: stfld Sandy_Detailed_RPG_Inventory.Sandy_Detailed_RPG_GearTab
Sandy_Detailed_RPG_Inventory.<>c__DisplayClass37_0::<>4__this
IL_000D: ldloc.0
IL_000E: ldarg.3
IL_000F: stfld Verse.Thing
Sandy_Detailed_RPG_Inventory.<>c__DisplayClass37_0::thing
IL_0014: nop
IL_0015: ldloca.s 1 (UnityEngine.Rect)
IL_0017: ldc.r4 0
IL_001C: ldarg.1
IL_001D: ldind.r4
IL_001E: ldarg.2
IL_001F: ldc.r4 28
IL_0024: call System.Void UnityEngine.Rect::.ctor(System.Single x,
System.Single y, System.Single width, System.Single height)
IL_0029: ldloca.s 1 (UnityEngine.Rect)
IL_002B: call System.Single UnityEngine.Rect::get_width()
IL_0030: ldc.r4 24
IL_0035: sub
IL_0036: ldarg.1
IL_0037: ldind.r4
IL_0038: ldloc.0
IL_0039: ldfld Verse.Thing
Sandy_Detailed_RPG_Inventory.<>c__DisplayClass37_0::thing
IL_003E: call static System.Boolean
Verse.Widgets::InfoCardButton(System.Single x, System.Single y, Verse.Thing thing)
IL_0043: pop
IL_0044: ldloca.s 1 (UnityEngine.Rect)
IL_0046: dup
IL_0047: call System.Single UnityEngine.Rect::get_width()
IL_004C: ldc.r4 24
IL_0051: sub
IL_0052: call System.Void UnityEngine.Rect::set_width(System.Single value)
IL_0057: nop
IL_0058: ldc.i4.0
IL_0059: stloc.2
IL_005A: ldarg.0
IL_005B: call System.Boolean
Sandy_Detailed_RPG_Inventory.Sandy_Detailed_RPG_GearTab::get_CanControl()
IL_0060: brfalse => Label0
IL_0065: ldarg.s 4
IL_0067: brtrue => Label1
IL_006C: ldarg.0
IL_006D: call System.Boolean
Sandy_Detailed_RPG_Inventory.Sandy_Detailed_RPG_GearTab::get_CanControlColonist()
IL_0072: brtrue => Label2
IL_0077: ldarg.0
IL_0078: call Verse.Pawn
Sandy_Detailed_RPG_Inventory.Sandy_Detailed_RPG_GearTab::get_SelPawnForGear()
IL_007D: callvirt System.Boolean Verse.Thing::get_Spawned()
IL_0082: brfalse => Label3
IL_0087: ldarg.0
IL_0088: call Verse.Pawn
Sandy_Detailed_RPG_Inventory.Sandy_Detailed_RPG_GearTab::get_SelPawnForGear()
IL_008D: callvirt virtual Verse.Map Verse.Thing::get_Map()
IL_0092: callvirt System.Boolean Verse.Map::get_IsPlayerHome()
IL_0097: ldc.i4.0
IL_0098: ceq
IL_009A: br => Label4
IL_009F: Label3
IL_009F: ldc.i4.0
IL_00A0: Label4
IL_00A0: br => Label5
IL_00A5: Label1
IL_00A5: Label2
IL_00A5: ldc.i4.1
IL_00A6: Label5
IL_00A6: br => Label6
IL_00AB: Label0
IL_00AB: ldc.i4.0
IL_00AC: Label6
IL_00AC: stloc.s 7 (System.Boolean)
IL_00AE: ldloc.s 7 (System.Boolean)
IL_00B0: brfalse => Label7
IL_00B5: nop
IL_00B6: ldloca.s 8 (UnityEngine.Rect)
IL_00B8: ldloca.s 1 (UnityEngine.Rect)
IL_00BA: call System.Single UnityEngine.Rect::get_width()
IL_00BF: ldc.r4 24
IL_00C4: sub
IL_00C5: ldarg.1
IL_00C6: ldind.r4
IL_00C7: ldc.r4 24
IL_00CC: ldc.r4 24
IL_00D1: call System.Void UnityEngine.Rect::.ctor(System.Single x,
System.Single y, System.Single width, System.Single height)
IL_00D6: ldc.i4.0
IL_00D7: stloc.s 9 (System.Boolean)
IL_00D9: ldarg.0
IL_00DA: call Verse.Pawn
Sandy_Detailed_RPG_Inventory.Sandy_Detailed_RPG_GearTab::get_SelPawnForGear()
IL_00DF: call static System.Boolean
RimWorld.QuestUtility::IsQuestLodger(Verse.Pawn p)
IL_00E4: stloc.s 15 (System.Boolean)
IL_00E6: ldloc.s 15 (System.Boolean)
IL_00E8: brfalse => Label8
IL_00ED: nop
IL_00EE: ldarg.s 4
IL_00F0: brtrue => Label9
IL_00F5: ldloc.0
IL_00F6: ldfld Verse.Thing
Sandy_Detailed_RPG_Inventory.<>c__DisplayClass37_0::thing
IL_00FB: ldarg.0
IL_00FC: call Verse.Pawn
Sandy_Detailed_RPG_Inventory.Sandy_Detailed_RPG_GearTab::get_SelPawnForGear()
IL_0101: call static System.Boolean
RimWorld.EquipmentUtility::QuestLodgerCanUnequip(Verse.Thing thing, Verse.Pawn
pawn)
IL_0106: ldc.i4.0
IL_0107: ceq
IL_0109: br => Label10
IL_010E: Label9
IL_010E: ldc.i4.1
IL_010F: Label10
IL_010F: stloc.s 9 (System.Boolean)
IL_0111: nop
IL_0112: Label8
IL_0112: ldarg.s 4
IL_0114: brtrue => Label11
IL_0119: ldarg.0
IL_011A: call Verse.Pawn
Sandy_Detailed_RPG_Inventory.Sandy_Detailed_RPG_GearTab::get_SelPawnForGear()
IL_011F: ldfld Verse.PawnKindDef Verse.Pawn::kindDef
IL_0124: ldfld System.Boolean Verse.PawnKindDef::destroyGearOnDrop
IL_0129: br => Label12
IL_012E: Label11
IL_012E: ldc.i4.0
IL_012F: Label12
IL_012F: stloc.s 10 (System.Boolean)
IL_0131: ldloc.0
IL_0132: ldfld Verse.Thing
Sandy_Detailed_RPG_Inventory.<>c__DisplayClass37_0::thing
IL_0137: isinst RimWorld.Apparel
IL_013C: dup
IL_013D: stloc.s 11 (RimWorld.Apparel)
IL_013F: brfalse => Label13
IL_0144: ldarg.0
IL_0145: call Verse.Pawn
Sandy_Detailed_RPG_Inventory.Sandy_Detailed_RPG_GearTab::get_SelPawnForGear()
IL_014A: ldfld RimWorld.Pawn_ApparelTracker Verse.Pawn::apparel
IL_014F: brfalse => Label14
IL_0154: ldarg.0
IL_0155: call Verse.Pawn
Sandy_Detailed_RPG_Inventory.Sandy_Detailed_RPG_GearTab::get_SelPawnForGear()
IL_015A: ldfld RimWorld.Pawn_ApparelTracker Verse.Pawn::apparel
IL_015F: ldloc.s 11 (RimWorld.Apparel)
IL_0161: callvirt System.Boolean
RimWorld.Pawn_ApparelTracker::IsLocked(RimWorld.Apparel apparel)
IL_0166: br => Label15
IL_016B: Label13
IL_016B: Label14
IL_016B: ldc.i4.0
IL_016C: Label15
IL_016C: stloc.s 12 (System.Boolean)
IL_016E: ldloc.s 9 (System.Boolean)
IL_0170: ldloc.s 12 (System.Boolean)
IL_0172: or
IL_0173: ldloc.s 10 (System.Boolean)
IL_0175: or
IL_0176: stloc.2
IL_0177: ldloc.s 8 (UnityEngine.Rect)
IL_0179: call static System.Boolean Verse.Mouse::IsOver(UnityEngine.Rect
rect)
IL_017E: stloc.s 16 (System.Boolean)
IL_0180: ldloc.s 16 (System.Boolean)
IL_0182: brfalse => Label16
IL_0187: nop
IL_0188: ldloc.s 12 (System.Boolean)
IL_018A: stloc.s 17 (System.Boolean)
IL_018C: ldloc.s 17 (System.Boolean)
IL_018E: brfalse => Label17
IL_0193: nop
IL_0194: ldloc.s 8 (UnityEngine.Rect)
IL_0196: ldstr "DropThingLocked"
IL_019B: call static Verse.TaggedString
Verse.Translator::Translate(System.String key)
IL_01A0: call static Verse.TipSignal
Verse.TipSignal::op_Implicit(Verse.TaggedString str)
IL_01A5: call static System.Void
Verse.TooltipHandler::TipRegion(UnityEngine.Rect rect, Verse.TipSignal tip)
IL_01AA: nop
IL_01AB: nop
IL_01AC: br => Label18
IL_01B1: Label17
IL_01B1: ldloc.s 9 (System.Boolean)
IL_01B3: stloc.s 18 (System.Boolean)
IL_01B5: ldloc.s 18 (System.Boolean)
IL_01B7: brfalse => Label19
IL_01BC: nop
IL_01BD: ldloc.s 8 (UnityEngine.Rect)
IL_01BF: ldstr "DropThingLodger"
IL_01C4: call static Verse.TaggedString
Verse.Translator::Translate(System.String key)
IL_01C9: call static Verse.TipSignal
Verse.TipSignal::op_Implicit(Verse.TaggedString str)
IL_01CE: call static System.Void
Verse.TooltipHandler::TipRegion(UnityEngine.Rect rect, Verse.TipSignal tip)
IL_01D3: nop
IL_01D4: nop
IL_01D5: br => Label20
IL_01DA: Label19
IL_01DA: nop
IL_01DB: ldloc.s 8 (UnityEngine.Rect)
IL_01DD: ldstr "DropThing"
IL_01E2: call static Verse.TaggedString
Verse.Translator::Translate(System.String key)
IL_01E7: call static Verse.TipSignal
Verse.TipSignal::op_Implicit(Verse.TaggedString str)
IL_01EC: call static System.Void
Verse.TooltipHandler::TipRegion(UnityEngine.Rect rect, Verse.TipSignal tip)
IL_01F1: nop
IL_01F2: nop
IL_01F3: Label18
IL_01F3: Label20
IL_01F3: nop
IL_01F4: Label16
IL_01F4: ldloc.2
IL_01F5: brtrue => Label21
IL_01FA: call static UnityEngine.Color UnityEngine.Color::get_white()
IL_01FF: br => Label22
IL_0204: Label21
IL_0204: call static UnityEngine.Color UnityEngine.Color::get_grey()
IL_0209: Label22
IL_0209: stloc.s 13 (UnityEngine.Color)
IL_020B: ldloc.2
IL_020C: brtrue => Label23
IL_0211: ldsfld UnityEngine.Color Verse.GenUI::MouseoverColor
IL_0216: br => Label24
IL_021B: Label23
IL_021B: ldloc.s 13 (UnityEngine.Color)
IL_021D: Label24
IL_021D: stloc.s 14 (UnityEngine.Color)
IL_021F: ldloc.s 8 (UnityEngine.Rect)
IL_0221: ldsfld UnityEngine.Texture2D Verse.TexButton::Drop
IL_0226: ldloc.s 13 (UnityEngine.Color)
IL_0228: ldloc.s 14 (UnityEngine.Color)
IL_022A: ldloc.2
IL_022B: ldc.i4.0
IL_022C: ceq
IL_022E: call static System.Boolean
Verse.Widgets::ButtonImage(UnityEngine.Rect butRect, UnityEngine.Texture2D tex,
UnityEngine.Color baseColor, UnityEngine.Color mouseoverColor, System.Boolean
doMouseoverSound)
IL_0233: brfalse => Label25
IL_0238: ldloc.2
IL_0239: ldc.i4.0
IL_023A: ceq
IL_023C: br => Label26
IL_0241: Label25
IL_0241: ldc.i4.0
IL_0242: Label26
IL_0242: stloc.s 19 (System.Boolean)
IL_0244: ldloc.s 19 (System.Boolean)
IL_0246: brfalse => Label27
IL_024B: nop
IL_024C: ldloc.0
IL_024D: ldftn System.Void
Sandy_Detailed_RPG_Inventory.<>c__DisplayClass37_0::<DrawThingRow>b__0()
IL_0253: newobj System.Void System.Action::.ctor(System.Object object,
System.IntPtr method)
IL_0258: stloc.s 20 (System.Action)
IL_025A: call static System.Boolean Verse.ModsConfig::get_BiotechActive()
IL_025F: brfalse => Label28
IL_0264: ldarg.0
IL_0265: call Verse.Pawn
Sandy_Detailed_RPG_Inventory.Sandy_Detailed_RPG_GearTab::get_SelPawnForGear()
IL_026A: ldloc.0
IL_026B: ldfld Verse.Thing
Sandy_Detailed_RPG_Inventory.<>c__DisplayClass37_0::thing
IL_0270: ldloc.s 20 (System.Action)
IL_0272: call static System.Boolean
MechanitorUtility::TryConfirmBandwidthLossFromDroppingThing(Verse.Pawn pawn,
Verse.Thing thing, System.Action confirmAct)
IL_0277: ldc.i4.0
IL_0278: ceq
IL_027A: br => Label29
IL_027F: Label28
IL_027F: ldc.i4.1
IL_0280: Label29
IL_0280: stloc.s 21 (System.Boolean)
IL_0282: ldloc.s 21 (System.Boolean)
IL_0284: brfalse => Label30
IL_0289: nop
IL_028A: ldloc.s 20 (System.Action)
IL_028C: callvirt virtual System.Void System.Action::Invoke()
IL_0291: nop
IL_0292: nop
IL_0293: Label30
IL_0293: nop
IL_0294: Label27
IL_0294: ldloca.s 1 (UnityEngine.Rect)
IL_0296: dup
IL_0297: call System.Single UnityEngine.Rect::get_width()
IL_029C: ldc.r4 24
IL_02A1: sub
IL_02A2: call System.Void UnityEngine.Rect::set_width(System.Single value)
IL_02A7: nop
IL_02A8: nop
IL_02A9: Label7
IL_02A9: ldarg.0
IL_02AA: call System.Boolean
Sandy_Detailed_RPG_Inventory.Sandy_Detailed_RPG_GearTab::get_CanControlColonist()
IL_02AF: stloc.s 22 (System.Boolean)
IL_02B1: ldloc.s 22 (System.Boolean)
IL_02B3: brfalse => Label31
IL_02B8: nop
IL_02B9: ldarg.0
IL_02BA: call Verse.Pawn
Sandy_Detailed_RPG_Inventory.Sandy_Detailed_RPG_GearTab::get_SelPawnForGear()
IL_02BF: ldloc.0
IL_02C0: ldfld Verse.Thing
Sandy_Detailed_RPG_Inventory.<>c__DisplayClass37_0::thing
IL_02C5: call static System.Boolean
RimWorld.FoodUtility::WillIngestFromInventoryNow(Verse.Pawn pawn, Verse.Thing inv)
IL_02CA: stloc.s 23 (System.Boolean)
IL_02CC: ldloc.s 23 (System.Boolean)
IL_02CE: brfalse => Label32
IL_02D3: nop
IL_02D4: ldloca.s 24 (UnityEngine.Rect)
IL_02D6: ldloca.s 1 (UnityEngine.Rect)
IL_02D8: call System.Single UnityEngine.Rect::get_width()
IL_02DD: ldc.r4 24
IL_02E2: sub
IL_02E3: ldarg.1
IL_02E4: ldind.r4
IL_02E5: ldc.r4 24
IL_02EA: ldc.r4 24
IL_02EF: call System.Void UnityEngine.Rect::.ctor(System.Single x,
System.Single y, System.Single width, System.Single height)
IL_02F4: ldloc.s 24 (UnityEngine.Rect)
IL_02F6: ldstr "ConsumeThing"
IL_02FB: ldloc.0
IL_02FC: ldfld Verse.Thing
Sandy_Detailed_RPG_Inventory.<>c__DisplayClass37_0::thing
IL_0301: callvirt virtual System.String Verse.Thing::get_LabelNoCount()
IL_0306: call static Verse.NamedArgument
Verse.NamedArgument::op_Implicit(System.String value)
IL_030B: ldloc.0
IL_030C: ldfld Verse.Thing
Sandy_Detailed_RPG_Inventory.<>c__DisplayClass37_0::thing
IL_0311: call static Verse.NamedArgument
Verse.NamedArgument::op_Implicit(Verse.Thing value)
IL_0316: call static System.Void
Verse.TooltipHandler::TipRegionByKey(UnityEngine.Rect rect, System.String key,
Verse.NamedArgument arg1, Verse.NamedArgument arg2)
IL_031B: nop
IL_031C: ldloc.s 24 (UnityEngine.Rect)
IL_031E: ldsfld UnityEngine.Texture2D Verse.TexButton::Ingest
IL_0323: ldc.i4.1
IL_0324: call static System.Boolean
Verse.Widgets::ButtonImage(UnityEngine.Rect butRect, UnityEngine.Texture2D tex,
System.Boolean doMouseoverSound)
IL_0329: stloc.s 25 (System.Boolean)
IL_032B: ldloc.s 25 (System.Boolean)
IL_032D: brfalse => Label33
IL_0332: nop
IL_0333: ldsfld Verse.SoundDef RimWorld.SoundDefOf::Tick_High
IL_0338: ldnull
IL_0339: call static System.Void
Verse.Sound.SoundStarter::PlayOneShotOnCamera(Verse.SoundDef soundDef, Verse.Map
onlyThisMap)
IL_033E: nop
IL_033F: ldarg.0
IL_0340: call Verse.Pawn
Sandy_Detailed_RPG_Inventory.Sandy_Detailed_RPG_GearTab::get_SelPawnForGear()
IL_0345: ldloc.0
IL_0346: ldfld Verse.Thing
Sandy_Detailed_RPG_Inventory.<>c__DisplayClass37_0::thing
IL_034B: call static System.Void
RimWorld.FoodUtility::IngestFromInventoryNow(Verse.Pawn pawn, Verse.Thing inv)
IL_0350: nop
IL_0351: nop
IL_0352: Label33
IL_0352: nop
IL_0353: Label32
IL_0353: ldloca.s 1 (UnityEngine.Rect)
IL_0355: dup
IL_0356: call System.Single UnityEngine.Rect::get_width()
IL_035B: ldc.r4 24
IL_0360: sub
IL_0361: call System.Void UnityEngine.Rect::set_width(System.Single value)
IL_0366: nop
IL_0367: nop
IL_0368: Label31
IL_0368: ldloc.1
IL_0369: stloc.3
IL_036A: ldloca.s 3 (UnityEngine.Rect)
IL_036C: ldloca.s 3 (UnityEngine.Rect)
IL_036E: call System.Single UnityEngine.Rect::get_xMax()
IL_0373: ldc.r4 60
IL_0378: sub
IL_0379: call System.Void UnityEngine.Rect::set_xMin(System.Single value)
IL_037E: nop
IL_037F: ldloc.0
IL_0380: ldfld Verse.Thing
Sandy_Detailed_RPG_Inventory.<>c__DisplayClass37_0::thing
IL_0385: ldloc.3
IL_0386: call static System.Void
RimWorld.Planet.CaravanThingsTabUtility::DrawMass(Verse.Thing thing,
UnityEngine.Rect rect)
IL_038B: nop
IL_038C: ldloca.s 1 (UnityEngine.Rect)
IL_038E: dup
IL_038F: call System.Single UnityEngine.Rect::get_width()
IL_0394: ldc.r4 60
IL_0399: sub
IL_039A: call System.Void UnityEngine.Rect::set_width(System.Single value)
IL_039F: nop
IL_03A0: ldloc.1
IL_03A1: call static System.Boolean Verse.Mouse::IsOver(UnityEngine.Rect
rect)
IL_03A6: stloc.s 26 (System.Boolean)
IL_03A8: ldloc.s 26 (System.Boolean)
IL_03AA: brfalse => Label34
IL_03AF: nop
IL_03B0: ldsfld UnityEngine.Color RimWorld.ITab_Pawn_Gear::HighlightColor
IL_03B5: call static System.Void UnityEngine.GUI::set_color(UnityEngine.Color
value)
IL_03BA: nop
IL_03BB: ldloc.1
IL_03BC: ldsfld UnityEngine.Texture2D Verse.TexUI::HighlightTex
IL_03C1: call static System.Void
UnityEngine.GUI::DrawTexture(UnityEngine.Rect position, UnityEngine.Texture image)
IL_03C6: nop
IL_03C7: nop
IL_03C8: Label34
IL_03C8: ldloc.0
IL_03C9: ldfld Verse.Thing
Sandy_Detailed_RPG_Inventory.<>c__DisplayClass37_0::thing
IL_03CE: ldfld Verse.ThingDef Verse.Thing::def
IL_03D3: callvirt UnityEngine.Material Verse.BuildableDef::get_DrawMatSingle()
IL_03D8: ldnull
IL_03D9: call static System.Boolean
UnityEngine.Object::op_Inequality(UnityEngine.Object x, UnityEngine.Object y)
IL_03DE: brfalse => Label35
IL_03E3: ldloc.0
IL_03E4: ldfld Verse.Thing
Sandy_Detailed_RPG_Inventory.<>c__DisplayClass37_0::thing
IL_03E9: ldfld Verse.ThingDef Verse.Thing::def
IL_03EE: callvirt UnityEngine.Material Verse.BuildableDef::get_DrawMatSingle()
IL_03F3: callvirt UnityEngine.Texture UnityEngine.Material::get_mainTexture()
IL_03F8: ldnull
IL_03F9: call static System.Boolean
UnityEngine.Object::op_Inequality(UnityEngine.Object x, UnityEngine.Object y)
IL_03FE: br => Label36
IL_0403: Label35
IL_0403: ldc.i4.0
IL_0404: Label36
IL_0404: stloc.s 27 (System.Boolean)
IL_0406: ldloc.s 27 (System.Boolean)
IL_0408: brfalse => Label37
IL_040D: nop
IL_040E: ldc.r4 4
IL_0413: ldarg.1
IL_0414: ldind.r4
IL_0415: ldc.r4 28
IL_041A: ldc.r4 28
IL_041F: newobj System.Void UnityEngine.Rect::.ctor(System.Single x,
System.Single y, System.Single width, System.Single height)
IL_0424: ldloc.0
IL_0425: ldfld Verse.Thing
Sandy_Detailed_RPG_Inventory.<>c__DisplayClass37_0::thing
IL_042A: ldc.r4 1
IL_042F: ldloca.s 28 (System.Nullable`1[Verse.Rot4])
IL_0431: initobj System.Nullable`1[Verse.Rot4]
IL_0437: ldloc.s 28 (System.Nullable`1[Verse.Rot4])
IL_0439: ldc.i4.0
IL_043A: call static System.Void Verse.Widgets::ThingIcon(UnityEngine.Rect
rect, Verse.Thing thing, System.Single alpha, System.Nullable`1<Verse.Rot4> rot,
System.Boolean stackOfOne)
IL_043F: nop
IL_0440: nop
IL_0441: Label37
IL_0441: ldc.i4.3
IL_0442: call static System.Void
Verse.Text::set_Anchor(UnityEngine.TextAnchor value)
IL_0447: nop
IL_0448: ldsfld UnityEngine.Color RimWorld.ITab_Pawn_Gear::ThingLabelColor
IL_044D: call static System.Void UnityEngine.GUI::set_color(UnityEngine.Color
value)
IL_0452: nop
IL_0453: ldloca.s 4 (UnityEngine.Rect)
IL_0455: ldc.r4 36
IL_045A: ldarg.1
IL_045B: ldind.r4
IL_045C: ldloca.s 1 (UnityEngine.Rect)
IL_045E: call System.Single UnityEngine.Rect::get_width()
IL_0463: ldc.r4 36
IL_0468: sub
IL_0469: ldloca.s 1 (UnityEngine.Rect)
IL_046B: call System.Single UnityEngine.Rect::get_height()
IL_0470: call System.Void UnityEngine.Rect::.ctor(System.Single x,
System.Single y, System.Single width, System.Single height)
IL_0475: ldloc.0
IL_0476: ldfld Verse.Thing
Sandy_Detailed_RPG_Inventory.<>c__DisplayClass37_0::thing
IL_047B: callvirt abstract virtual System.String Verse.Entity::get_LabelCap()
IL_0480: ldarg.0
IL_0481: call Verse.Pawn RimWorld.ITab_Pawn_Gear::get_SelPawnForGear()
IL_0486: ldarg.3
IL_0487: ldfld Verse.ThingDef Verse.Thing::def
IL_048C: call static System.String
SmartMedicine.DrawThingRow_Patch::AddStockText(System.String text, Verse.Pawn pawn,
Verse.ThingDef thingDef)
IL_0491: stloc.s 5 (System.String)
IL_0493: ldloc.0
IL_0494: ldfld Verse.Thing
Sandy_Detailed_RPG_Inventory.<>c__DisplayClass37_0::thing
IL_0499: isinst RimWorld.Apparel
IL_049E: stloc.s 6 (RimWorld.Apparel)
IL_04A0: ldloc.s 6 (RimWorld.Apparel)
IL_04A2: brfalse => Label38
IL_04A7: ldarg.0
IL_04A8: call Verse.Pawn
Sandy_Detailed_RPG_Inventory.Sandy_Detailed_RPG_GearTab::get_SelPawnForGear()
IL_04AD: ldfld RimWorld.Pawn_OutfitTracker Verse.Pawn::outfits
IL_04B2: brfalse => Label39
IL_04B7: ldarg.0
IL_04B8: call Verse.Pawn
Sandy_Detailed_RPG_Inventory.Sandy_Detailed_RPG_GearTab::get_SelPawnForGear()
IL_04BD: ldfld RimWorld.Pawn_OutfitTracker Verse.Pawn::outfits
IL_04C2: ldfld RimWorld.OutfitForcedHandler
RimWorld.Pawn_OutfitTracker::forcedHandler
IL_04C7: ldloc.s 6 (RimWorld.Apparel)
IL_04C9: callvirt System.Boolean
RimWorld.OutfitForcedHandler::IsForced(RimWorld.Apparel ap)
IL_04CE: br => Label40
IL_04D3: Label38
IL_04D3: Label39
IL_04D3: ldc.i4.0
IL_04D4: Label40
IL_04D4: stloc.s 29 (System.Boolean)
IL_04D6: ldloc.s 29 (System.Boolean)
IL_04D8: brfalse => Label41
IL_04DD: nop
IL_04DE: ldloc.s 5 (System.String)
IL_04E0: ldstr ", "
IL_04E5: ldstr "ApparelForcedLower"
IL_04EA: call static Verse.TaggedString
Verse.Translator::Translate(System.String key)
IL_04EF: call static Verse.TaggedString
Verse.TaggedString::op_Addition(System.String t1, Verse.TaggedString t2)
IL_04F4: call static Verse.TaggedString
Verse.TaggedString::op_Addition(System.String t1, Verse.TaggedString t2)
IL_04F9: call static System.String
Verse.TaggedString::op_Implicit(Verse.TaggedString taggedString)
IL_04FE: stloc.s 5 (System.String)
IL_0500: nop
IL_0501: Label41
IL_0501: ldloc.2
IL_0502: stloc.s 30 (System.Boolean)
IL_0504: ldloc.s 30 (System.Boolean)
IL_0506: brfalse => Label42
IL_050B: nop
IL_050C: ldloc.s 5 (System.String)
IL_050E: ldstr " ("
IL_0513: ldstr "ApparelLockedLower"
IL_0518: call static Verse.TaggedString
Verse.Translator::Translate(System.String key)
IL_051D: call static Verse.TaggedString
Verse.TaggedString::op_Addition(System.String t1, Verse.TaggedString t2)
IL_0522: ldstr ")"
IL_0527: call static Verse.TaggedString
Verse.TaggedString::op_Addition(Verse.TaggedString t1, System.String t2)
IL_052C: call static Verse.TaggedString
Verse.TaggedString::op_Addition(System.String t1, Verse.TaggedString t2)
IL_0531: call static System.String
Verse.TaggedString::op_Implicit(Verse.TaggedString taggedString)
IL_0536: stloc.s 5 (System.String)
IL_0538: nop
IL_0539: Label42
IL_0539: ldc.i4.0
IL_053A: call static System.Void Verse.Text::set_WordWrap(System.Boolean
value)
IL_053F: nop
IL_0540: ldloc.s 4 (UnityEngine.Rect)
IL_0542: ldloc.s 5 (System.String)
IL_0544: ldloca.s 4 (UnityEngine.Rect)
IL_0546: call System.Single UnityEngine.Rect::get_width()
IL_054B: ldnull
IL_054C: call static System.String Verse.GenText::Truncate(System.String str,
System.Single width, System.Collections.Generic.Dictionary`2<System.String,
System.String> cache)
IL_0551: ldarg.0
IL_0552: call Verse.Pawn RimWorld.ITab_Pawn_Gear::get_SelPawnForGear()
IL_0557: ldarg.3
IL_0558: ldfld Verse.ThingDef Verse.Thing::def
IL_055D: call static System.Void
SmartMedicine.DrawThingRow_Patch::LabelIncDecButton(UnityEngine.Rect rect,
System.String text, Verse.Pawn pawn, Verse.ThingDef thingDef)
IL_0562: nop
IL_0563: ldc.i4.1
IL_0564: call static System.Void Verse.Text::set_WordWrap(System.Boolean
value)
IL_0569: nop
IL_056A: ldloc.1
IL_056B: call static System.Boolean Verse.Mouse::IsOver(UnityEngine.Rect
rect)
IL_0570: stloc.s 31 (System.Boolean)
IL_0572: ldloc.s 31 (System.Boolean)
IL_0574: brfalse => Label43
IL_0579: nop
IL_057A: ldloc.0
IL_057B: ldfld Verse.Thing
Sandy_Detailed_RPG_Inventory.<>c__DisplayClass37_0::thing
IL_0580: callvirt System.String Verse.Thing::get_LabelNoParenthesisCap()
IL_0585: call static System.String
Verse.ColoredText::AsTipTitle(System.String s)
IL_058A: ldloc.0
IL_058B: ldfld Verse.Thing
Sandy_Detailed_RPG_Inventory.<>c__DisplayClass37_0::thing
IL_0590: ldc.i4.1
IL_0591: ldc.i4.1
IL_0592: ldc.i4.1
IL_0593: call static System.String RimWorld.GenLabel::LabelExtras(Verse.Thing
t, System.Int32 stackCount, System.Boolean includeHp, System.Boolean
includeQuality)
IL_0598: ldstr "\n\n"
IL_059D: ldloc.0
IL_059E: ldfld Verse.Thing
Sandy_Detailed_RPG_Inventory.<>c__DisplayClass37_0::thing
IL_05A3: callvirt virtual System.String Verse.Thing::get_DescriptionDetailed()
IL_05A8: ldarg.0
IL_05A9: call Verse.Pawn RimWorld.ITab_Pawn_Gear::get_SelPawnForGear()
IL_05AE: ldarg.3
IL_05AF: ldfld Verse.ThingDef Verse.Thing::def
IL_05B4: call static System.String
SmartMedicine.DrawThingRow_Patch::AddStockTip(System.String text, Verse.Pawn pawn,
Verse.ThingDef thingDef)
IL_05B9: call static System.String System.String::Concat(System.String str0,
System.String str1, System.String str2, System.String str3)
IL_05BE: stloc.s 32 (System.String)
IL_05C0: ldloc.0
IL_05C1: ldfld Verse.Thing
Sandy_Detailed_RPG_Inventory.<>c__DisplayClass37_0::thing
IL_05C6: ldfld Verse.ThingDef Verse.Thing::def
IL_05CB: ldfld System.Boolean Verse.ThingDef::useHitPoints
IL_05D0: stloc.s 33 (System.Boolean)
IL_05D2: ldloc.s 33 (System.Boolean)
IL_05D4: brfalse => Label44
IL_05D9: nop
IL_05DA: ldc.i4.5
IL_05DB: newarr System.Object
IL_05E0: dup
IL_05E1: ldc.i4.0
IL_05E2: ldloc.s 32 (System.String)
IL_05E4: stelem.ref
IL_05E5: dup
IL_05E6: ldc.i4.1
IL_05E7: ldstr "\n"
IL_05EC: stelem.ref
IL_05ED: dup
IL_05EE: ldc.i4.2
IL_05EF: ldloc.0
IL_05F0: ldfld Verse.Thing
Sandy_Detailed_RPG_Inventory.<>c__DisplayClass37_0::thing
IL_05F5: callvirt virtual System.Int32 Verse.Thing::get_HitPoints()
IL_05FA: box System.Int32
IL_05FF: stelem.ref
IL_0600: dup
IL_0601: ldc.i4.3
IL_0602: ldstr " / "
IL_0607: stelem.ref
IL_0608: dup
IL_0609: ldc.i4.4
IL_060A: ldloc.0
IL_060B: ldfld Verse.Thing
Sandy_Detailed_RPG_Inventory.<>c__DisplayClass37_0::thing
IL_0610: callvirt System.Int32 Verse.Thing::get_MaxHitPoints()
IL_0615: box System.Int32
IL_061A: stelem.ref
IL_061B: call static System.String System.String::Concat(System.Object[]
args)
IL_0620: stloc.s 32 (System.String)
IL_0622: nop
IL_0623: Label44
IL_0623: ldloc.1
IL_0624: ldloc.s 32 (System.String)
IL_0626: call static Verse.TipSignal
Verse.TipSignal::op_Implicit(System.String str)
IL_062B: call static System.Void
Verse.TooltipHandler::TipRegion(UnityEngine.Rect rect, Verse.TipSignal tip)
IL_0630: nop
IL_0631: nop
IL_0632: Label43
IL_0632: ldarg.1
IL_0633: ldarg.1
IL_0634: ldind.r4
IL_0635: ldc.r4 28
IL_063A: add
IL_063B: stind.r4
IL_063C: // end original
IL_063C: ret
DONE

### Patch: System.Void


Sandy_Detailed_RPG_Inventory.Sandy_Detailed_RPG_GearTab::InterfaceDrop(Verse.Thing
t)
### Replacement: static System.Void
Sandy_Detailed_RPG_Inventory.Sandy_Detailed_RPG_GearTab::Sandy_Detailed_RPG_Invento
ry.Sandy_Detailed_RPG_GearTab.InterfaceDrop_Patch1(Sandy_Detailed_RPG_Inventory.San
dy_Detailed_RPG_GearTab this, Verse.Thing t)
IL_0000: Local var 0: Verse.ThingWithComps
IL_0000: Local var 1: RimWorld.Apparel
IL_0000: Local var 2: System.Boolean
IL_0000: Local var 3: System.Boolean
IL_0000: Local var 4: System.Boolean
IL_0000: Local var 5: Verse.Thing
IL_0000: // start original
IL_0000: nop
IL_0001: ldarg.1
IL_0002: isinst Verse.ThingWithComps
IL_0007: stloc.0
IL_0008: ldarg.1
IL_0009: isinst RimWorld.Apparel
IL_000E: stloc.1
IL_000F: ldloc.1
IL_0010: brfalse => Label0
IL_0015: ldarg.0
IL_0016: call Verse.Pawn
Sandy_Detailed_RPG_Inventory.Sandy_Detailed_RPG_GearTab::get_SelPawnForGear()
IL_001B: ldfld RimWorld.Pawn_ApparelTracker Verse.Pawn::apparel
IL_0020: brfalse => Label1
IL_0025: ldarg.0
IL_0026: call Verse.Pawn
Sandy_Detailed_RPG_Inventory.Sandy_Detailed_RPG_GearTab::get_SelPawnForGear()
IL_002B: ldfld RimWorld.Pawn_ApparelTracker Verse.Pawn::apparel
IL_0030: callvirt System.Collections.Generic.List`1<RimWorld.Apparel>
RimWorld.Pawn_ApparelTracker::get_WornApparel()
IL_0035: ldloc.1
IL_0036: callvirt virtual System.Boolean
System.Collections.Generic.List`1<RimWorld.Apparel>::Contains(RimWorld.Apparel
item)
IL_003B: br => Label2
IL_0040: Label0
IL_0040: Label1
IL_0040: ldc.i4.0
IL_0041: Label2
IL_0041: stloc.2
IL_0042: ldloc.2
IL_0043: brfalse => Label3
IL_0048: nop
IL_0049: ldarg.0
IL_004A: call Verse.Pawn
Sandy_Detailed_RPG_Inventory.Sandy_Detailed_RPG_GearTab::get_SelPawnForGear()
IL_004F: ldfld Verse.AI.Pawn_JobTracker Verse.Pawn::jobs
IL_0054: ldsfld Verse.JobDef RimWorld.JobDefOf::RemoveApparel
IL_0059: ldloc.1
IL_005A: call static Verse.LocalTargetInfo
Verse.LocalTargetInfo::op_Implicit(Verse.Thing t)
IL_005F: call static Verse.AI.Job Verse.JobMaker::MakeJob(Verse.JobDef def,
Verse.LocalTargetInfo targetA)
IL_0064: ldc.i4.0
IL_0065: newobj System.Void
System.Nullable`1<Verse.AI.JobTag>::.ctor(Verse.AI.JobTag value)
IL_006A: ldc.i4.0
IL_006B: callvirt System.Boolean
Verse.AI.Pawn_JobTracker::TryTakeOrderedJob(Verse.AI.Job job,
System.Nullable`1<Verse.AI.JobTag> tag, System.Boolean requestQueueing)
IL_0070: pop
IL_0071: br => Label4
IL_0076: Label3
IL_0076: ldloc.0
IL_0077: brfalse => Label5
IL_007C: ldarg.0
IL_007D: call Verse.Pawn
Sandy_Detailed_RPG_Inventory.Sandy_Detailed_RPG_GearTab::get_SelPawnForGear()
IL_0082: ldfld Verse.Pawn_EquipmentTracker Verse.Pawn::equipment
IL_0087: brfalse => Label6
IL_008C: ldarg.0
IL_008D: call Verse.Pawn
Sandy_Detailed_RPG_Inventory.Sandy_Detailed_RPG_GearTab::get_SelPawnForGear()
IL_0092: ldfld Verse.Pawn_EquipmentTracker Verse.Pawn::equipment
IL_0097: callvirt System.Collections.Generic.List`1<Verse.ThingWithComps>
Verse.Pawn_EquipmentTracker::get_AllEquipmentListForReading()
IL_009C: ldloc.0
IL_009D: callvirt virtual System.Boolean
System.Collections.Generic.List`1<Verse.ThingWithComps>::Contains(Verse.ThingWithCo
mps item)
IL_00A2: br => Label7
IL_00A7: Label5
IL_00A7: Label6
IL_00A7: ldc.i4.0
IL_00A8: Label7
IL_00A8: stloc.3
IL_00A9: ldloc.3
IL_00AA: brfalse => Label8
IL_00AF: nop
IL_00B0: ldarg.0
IL_00B1: call Verse.Pawn
Sandy_Detailed_RPG_Inventory.Sandy_Detailed_RPG_GearTab::get_SelPawnForGear()
IL_00B6: ldfld Verse.AI.Pawn_JobTracker Verse.Pawn::jobs
IL_00BB: ldsfld Verse.JobDef RimWorld.JobDefOf::DropEquipment
IL_00C0: ldloc.0
IL_00C1: call static Verse.LocalTargetInfo
Verse.LocalTargetInfo::op_Implicit(Verse.Thing t)
IL_00C6: call static Verse.AI.Job Verse.JobMaker::MakeJob(Verse.JobDef def,
Verse.LocalTargetInfo targetA)
IL_00CB: ldc.i4.0
IL_00CC: newobj System.Void
System.Nullable`1<Verse.AI.JobTag>::.ctor(Verse.AI.JobTag value)
IL_00D1: ldc.i4.0
IL_00D2: callvirt System.Boolean
Verse.AI.Pawn_JobTracker::TryTakeOrderedJob(Verse.AI.Job job,
System.Nullable`1<Verse.AI.JobTag> tag, System.Boolean requestQueueing)
IL_00D7: pop
IL_00D8: br => Label9
IL_00DD: Label8
IL_00DD: ldarg.1
IL_00DE: ldfld Verse.ThingDef Verse.Thing::def
IL_00E3: ldfld System.Boolean Verse.ThingDef::destroyOnDrop
IL_00E8: ldc.i4.0
IL_00E9: ceq
IL_00EB: stloc.s 4 (System.Boolean)
IL_00ED: ldloc.s 4 (System.Boolean)
IL_00EF: brfalse => Label10
IL_00F4: nop
IL_00F5: ldarg.0
IL_00F6: call Verse.Pawn
Sandy_Detailed_RPG_Inventory.Sandy_Detailed_RPG_GearTab::get_SelPawnForGear()
IL_00FB: ldfld Verse.Pawn_InventoryTracker Verse.Pawn::inventory
IL_0100: ldfld Verse.ThingOwner`1<Verse.Thing>
Verse.Pawn_InventoryTracker::innerContainer
IL_0105: ldarg.1
IL_0106: ldarg.0
IL_0107: call Verse.Pawn
Sandy_Detailed_RPG_Inventory.Sandy_Detailed_RPG_GearTab::get_SelPawnForGear()
IL_010C: callvirt virtual Verse.IntVec3 Verse.Thing::get_Position()
IL_0111: ldarg.0
IL_0112: call Verse.Pawn
Sandy_Detailed_RPG_Inventory.Sandy_Detailed_RPG_GearTab::get_SelPawnForGear()
IL_0117: callvirt virtual Verse.Map Verse.Thing::get_Map()
IL_011C: ldc.i4.1
IL_011D: ldloca.s 5 (Verse.Thing)
IL_011F: ldnull
IL_0120: ldnull
IL_0121: callvirt System.Boolean
Verse.ThingOwner`1<Verse.Thing>::TryDrop(Verse.Thing thing, Verse.IntVec3 dropLoc,
Verse.Map map, Verse.ThingPlaceMode mode, Verse.Thing& lastResultingThing,
System.Action`2<Verse.Thing, System.Int32> placedAction,
System.Predicate`1<Verse.IntVec3> nearPlaceValidator)
IL_0126: pop
IL_0127: nop
IL_0128: // end original
IL_0128: Label4
IL_0128: Label9
IL_0128: Label10
IL_0128: ldarg 1
IL_012C: ldarg.0
IL_012D: call static System.Void
SmartMedicine.InterfaceDrop_Patch::Postfix(Verse.Thing t, RimWorld.ITab_Pawn_Gear
__instance)
IL_0132: ret
DONE

### Patch: virtual System.Void


Sandy_Detailed_RPG_Inventory.Sandy_Detailed_RPG_GearTab::FillTab()
### Replacement: static System.Void
Sandy_Detailed_RPG_Inventory.Sandy_Detailed_RPG_GearTab::Sandy_Detailed_RPG_Invento
ry.Sandy_Detailed_RPG_GearTab.FillTab_Patch0(Sandy_Detailed_RPG_Inventory.Sandy_Det
ailed_RPG_GearTab this)
IL_0000: Local var 0: UnityEngine.Rect
IL_0000: Local var 1: UnityEngine.Rect
IL_0000: Local var 2: UnityEngine.Rect
IL_0000: Local var 3: UnityEngine.Rect
IL_0000: Local var 4: UnityEngine.Rect
IL_0000: Local var 5: UnityEngine.Rect
IL_0000: Local var 6: System.Single
IL_0000: Local var 7: System.Single
IL_0000: Local var 8: System.Single
IL_0000: Local var 9: System.Int32
IL_0000: Local var 10: System.Single
IL_0000: Local var 11: System.Single
IL_0000: Local var 12: System.Int32
IL_0000: Local var 13: System.Int32
IL_0000: Local var 14: System.Boolean
IL_0000: Local var 15: System.Nullable`1<UnityEngine.TextAnchor>
IL_0000: Local var 16: System.Boolean
IL_0000: Local var 17: System.Boolean
IL_0000: Local var 18: UnityEngine.Rect
IL_0000: Local var 19: System.Boolean
IL_0000: Local var 20: System.Boolean
IL_0000: Local var 21: UnityEngine.Rect
IL_0000: Local var 22: UnityEngine.Rect
IL_0000: Local var 23: UnityEngine.Rect
IL_0000: Local var 24: UnityEngine.Rect
IL_0000: Local var 25: System.Boolean
IL_0000: Local var 26: UnityEngine.Rect
IL_0000: Local var 27: System.Boolean
IL_0000: Local var 28: System.Boolean
IL_0000: Local var 29: UnityEngine.Rect
IL_0000: Local var 30: UnityEngine.Rect
IL_0000: Local var 31: UnityEngine.Rect
IL_0000: Local var 32: UnityEngine.Rect
IL_0000: Local var 33: UnityEngine.Rect
IL_0000: Local var 34: UnityEngine.Rect
IL_0000: Local var 35: UnityEngine.Rect
IL_0000: Local var 36: UnityEngine.Rect
IL_0000: Local var 37: UnityEngine.Rect
IL_0000: Local var 38: UnityEngine.Rect
IL_0000: Local var 39: UnityEngine.Color
IL_0000: Local var 40: UnityEngine.Rect
IL_0000: Local var 41: System.Boolean
IL_0000: Local var 42: System.Collections.Generic.List`1/Enumerator<Verse.Thing>
IL_0000: Local var 43: Verse.Thing
IL_0000: Local var 44: System.Boolean
IL_0000: Local var 45: UnityEngine.Rect
IL_0000: Local var 46: System.Boolean
IL_0000: Local var 47: UnityEngine.Rect
IL_0000: Local var 48: System.Boolean
IL_0000: Local var 49: UnityEngine.Rect
IL_0000: Local var 50: System.Boolean
IL_0000: Local var 51: UnityEngine.Rect
IL_0000: Local var 52: System.Boolean
IL_0000: Local var 53: System.Boolean
IL_0000: Local var 54: UnityEngine.Rect
IL_0000: Local var 55: System.Boolean
IL_0000: Local var 56: UnityEngine.Rect
IL_0000: Local var 57: System.Boolean
IL_0000: Local var 58: System.Boolean
IL_0000: Local var 59: System.Boolean
IL_0000: Local var 60: System.Collections.Generic.List`1/Enumerator<Verse.Thing>
IL_0000: Local var 61: Verse.Thing
IL_0000: Local var 62: System.Boolean
IL_0000: Local var 63: System.Boolean
IL_0000: Local var 64: System.Boolean
IL_0000: Local var 65: System.Boolean
IL_0000: Local var 66: System.Boolean
IL_0000: Local var 67: System.Boolean
IL_0000: Local var 68: System.Boolean
IL_0000: Local var 69: System.Boolean
IL_0000: Local var 70: System.Boolean
IL_0000: Local var 71: System.Boolean
IL_0000: Local var 72: System.Boolean
IL_0000: Local var 73: System.Boolean
IL_0000: Local var 74: System.Boolean
IL_0000: Local var 75: System.Collections.Generic.IEnumerator`1<RimWorld.Apparel>
IL_0000: Local var 76: RimWorld.Apparel
IL_0000: Local var 77: UnityEngine.Rect
IL_0000: Local var 78: UnityEngine.Rect
IL_0000: Local var 79: UnityEngine.Rect
IL_0000: Local var 80: UnityEngine.Rect
IL_0000: Local var 81: UnityEngine.Rect
IL_0000: Local var 82: UnityEngine.Rect
IL_0000: Local var 83: UnityEngine.Rect
IL_0000: Local var 84: UnityEngine.Rect
IL_0000: Local var 85: UnityEngine.Rect
IL_0000: Local var 86: UnityEngine.Rect
IL_0000: Local var 87: UnityEngine.Rect
IL_0000: Local var 88: UnityEngine.Rect
IL_0000: Local var 89: UnityEngine.Rect
IL_0000: Local var 90: UnityEngine.Rect
IL_0000: Local var 91: UnityEngine.Rect
IL_0000: Local var 92: UnityEngine.Rect
IL_0000: Local var 93: UnityEngine.Rect
IL_0000: Local var 94: UnityEngine.Rect
IL_0000: Local var 95: UnityEngine.Rect
IL_0000: Local var 96: UnityEngine.Rect
IL_0000: Local var 97: UnityEngine.Rect
IL_0000: Local var 98: UnityEngine.Rect
IL_0000: Local var 99: UnityEngine.Rect
IL_0000: Local var 100: UnityEngine.Rect
IL_0000: Local var 101: UnityEngine.Rect
IL_0000: Local var 102: UnityEngine.Rect
IL_0000: Local var 103: UnityEngine.Rect
IL_0000: Local var 104: UnityEngine.Rect
IL_0000: Local var 105: UnityEngine.Rect
IL_0000: Local var 106: UnityEngine.Rect
IL_0000: Local var 107: UnityEngine.Rect
IL_0000: Local var 108: UnityEngine.Rect
IL_0000: Local var 109: UnityEngine.Rect
IL_0000: Local var 110: UnityEngine.Rect
IL_0000: Local var 111: UnityEngine.Rect
IL_0000: Local var 112: UnityEngine.Rect
IL_0000: Local var 113: UnityEngine.Rect
IL_0000: Local var 114: UnityEngine.Rect
IL_0000: Local var 115: UnityEngine.Rect
IL_0000: Local var 116: UnityEngine.Rect
IL_0000: Local var 117: UnityEngine.Rect
IL_0000: Local var 118: RimWorld.ApparelProperties
IL_0000: Local var 119: RimWorld.ApparelProperties
IL_0000: Local var 120: RimWorld.ApparelProperties
IL_0000: Local var 121: RimWorld.ApparelProperties
IL_0000: Local var 122: RimWorld.ApparelProperties
IL_0000: Local var 123: RimWorld.ApparelProperties
IL_0000: Local var 124: RimWorld.ApparelProperties
IL_0000: Local var 125: RimWorld.ApparelProperties
IL_0000: Local var 126: RimWorld.ApparelProperties
IL_0000: Local var 127: RimWorld.ApparelProperties
IL_0000: Local var 128: RimWorld.ApparelProperties
IL_0000: Local var 129: RimWorld.ApparelProperties
IL_0000: Local var 130: RimWorld.ApparelProperties
IL_0000: Local var 131: RimWorld.ApparelProperties
IL_0000: Local var 132: RimWorld.ApparelProperties
IL_0000: Local var 133: RimWorld.ApparelProperties
IL_0000: Local var 134: RimWorld.ApparelProperties
IL_0000: Local var 135: RimWorld.ApparelProperties
IL_0000: Local var 136: RimWorld.ApparelProperties
IL_0000: Local var 137: RimWorld.ApparelProperties
IL_0000: Local var 138: RimWorld.ApparelProperties
IL_0000: Local var 139: RimWorld.ApparelProperties
IL_0000: Local var 140: RimWorld.ApparelProperties
IL_0000: Local var 141: RimWorld.ApparelProperties
IL_0000: Local var 142: RimWorld.ApparelProperties
IL_0000: Local var 143: RimWorld.ApparelProperties
IL_0000: Local var 144: RimWorld.ApparelProperties
IL_0000: Local var 145: RimWorld.ApparelProperties
IL_0000: Local var 146: RimWorld.ApparelProperties
IL_0000: Local var 147: RimWorld.ApparelProperties
IL_0000: Local var 148: RimWorld.ApparelProperties
IL_0000: Local var 149: RimWorld.ApparelProperties
IL_0000: Local var 150: RimWorld.ApparelProperties
IL_0000: Local var 151: RimWorld.ApparelProperties
IL_0000: Local var 152: RimWorld.ApparelProperties
IL_0000: Local var 153: RimWorld.ApparelProperties
IL_0000: Local var 154: RimWorld.ApparelProperties
IL_0000: Local var 155: RimWorld.ApparelProperties
IL_0000: Local var 156: RimWorld.ApparelProperties
IL_0000: Local var 157: RimWorld.ApparelProperties
IL_0000: Local var 158: RimWorld.ApparelProperties
IL_0000: Local var 159: System.Boolean
IL_0000: Local var 160: System.Boolean
IL_0000: Local var 161: System.Boolean
IL_0000: Local var 162: System.Boolean
IL_0000: Local var 163: System.Collections.Generic.IEnumerator`1<RimWorld.Apparel>
IL_0000: Local var 164: RimWorld.Apparel
IL_0000: Local var 165: System.Boolean
IL_0000: Local var 166: System.Boolean
IL_0000: Local var 167: System.Int32
IL_0000: Local var 168: System.Boolean
IL_0000: Local var 169: System.Boolean
IL_0000: // start original
IL_0000: nop
IL_0001: ldc.i4.1
IL_0002: call static System.Void Verse.Text::set_Font(Verse.GameFont value)
IL_0007: nop
IL_0008: ldloca.s 0 (UnityEngine.Rect)
IL_000A: ldc.r4 20
IL_000F: ldc.r4 0
IL_0014: ldc.r4 100
IL_0019: ldc.r4 30
IL_001E: call System.Void UnityEngine.Rect::.ctor(System.Single x,
System.Single y, System.Single width, System.Single height)
IL_0023: ldloc.0
IL_0024: ldstr "Sandy_ViewList"
IL_0029: call static Verse.TaggedString
Verse.Translator::Translate(System.String key)
IL_002E: call static System.String
Verse.TaggedString::op_Implicit(Verse.TaggedString taggedString)
IL_0033: ldarg.0
IL_0034: ldflda System.Boolean
Sandy_Detailed_RPG_Inventory.Sandy_Detailed_RPG_GearTab::viewList
IL_0039: ldc.i4.0
IL_003A: ldnull
IL_003B: ldnull
IL_003C: ldc.i4.0
IL_003D: call static System.Void
Verse.Widgets::CheckboxLabeled(UnityEngine.Rect rect, System.String label,
System.Boolean& checkOn, System.Boolean disabled, UnityEngine.Texture2D texChecked,
UnityEngine.Texture2D texUnchecked, System.Boolean placeCheckboxNearText)
IL_0042: nop
IL_0043: ldloca.s 1 (UnityEngine.Rect)
IL_0045: ldc.r4 0
IL_004A: ldc.r4 20
IL_004F: ldarg.0
IL_0050: ldflda UnityEngine.Vector2 Verse.InspectTabBase::size
IL_0055: ldfld System.Single UnityEngine.Vector2::x
IL_005A: ldarg.0
IL_005B: ldflda UnityEngine.Vector2 Verse.InspectTabBase::size
IL_0060: ldfld System.Single UnityEngine.Vector2::y
IL_0065: ldc.r4 20
IL_006A: sub
IL_006B: call System.Void UnityEngine.Rect::.ctor(System.Single x,
System.Single y, System.Single width, System.Single height)
IL_0070: ldloc.1
IL_0071: ldc.r4 10
IL_0076: call static UnityEngine.Rect
Verse.GenUI::ContractedBy(UnityEngine.Rect rect, System.Single margin)
IL_007B: stloc.2
IL_007C: ldloca.s 3 (UnityEngine.Rect)
IL_007E: ldloca.s 2 (UnityEngine.Rect)
IL_0080: call System.Single UnityEngine.Rect::get_x()
IL_0085: ldloca.s 2 (UnityEngine.Rect)
IL_0087: call System.Single UnityEngine.Rect::get_y()
IL_008C: ldloca.s 2 (UnityEngine.Rect)
IL_008E: call System.Single UnityEngine.Rect::get_width()
IL_0093: ldloca.s 2 (UnityEngine.Rect)
IL_0095: call System.Single UnityEngine.Rect::get_height()
IL_009A: call System.Void UnityEngine.Rect::.ctor(System.Single x,
System.Single y, System.Single width, System.Single height)
IL_009F: call static System.Boolean Verse.Prefs::get_DevMode()
IL_00A4: brfalse => Label0
IL_00A9: ldloca.s 1 (UnityEngine.Rect)
IL_00AB: call System.Single UnityEngine.Rect::get_xMax()
IL_00B0: ldc.r4 18
IL_00B5: sub
IL_00B6: ldc.r4 125
IL_00BB: sub
IL_00BC: ldc.r4 5
IL_00C1: ldc.r4 115
IL_00C6: call static System.Single Verse.Text::get_LineHeight()
IL_00CB: newobj System.Void UnityEngine.Rect::.ctor(System.Single x,
System.Single y, System.Single width, System.Single height)
IL_00D0: ldstr "Dev tool..."
IL_00D5: ldc.i4.1
IL_00D6: ldc.i4.1
IL_00D7: ldc.i4.1
IL_00D8: ldloca.s 15 (System.Nullable`1[UnityEngine.TextAnchor])
IL_00DA: initobj System.Nullable`1[UnityEngine.TextAnchor]
IL_00E0: ldloc.s 15 (System.Nullable`1[UnityEngine.TextAnchor])
IL_00E2: call static System.Boolean
Verse.Widgets::ButtonText(UnityEngine.Rect rect, System.String label,
System.Boolean drawBackground, System.Boolean doMouseoverSound, System.Boolean
active, System.Nullable`1<UnityEngine.TextAnchor> overrideTextAnchor)
IL_00E7: br => Label1
IL_00EC: Label0
IL_00EC: ldc.i4.0
IL_00ED: Label1
IL_00ED: stloc.s 14 (System.Boolean)
IL_00EF: ldloc.s 14 (System.Boolean)
IL_00F1: brfalse => Label2
IL_00F6: nop
IL_00F7: call static Verse.WindowStack Verse.Find::get_WindowStack()
IL_00FC: ldarg.0
IL_00FD: call Verse.Pawn
Sandy_Detailed_RPG_Inventory.Sandy_Detailed_RPG_GearTab::get_SelPawnForGear()
IL_0102: call static System.Collections.Generic.List`1<Verse.FloatMenuOption>
Verse.DebugToolsPawns::PawnGearDevOptions(Verse.Pawn pawn)
IL_0107: newobj System.Void
Verse.FloatMenu::.ctor(System.Collections.Generic.List`1<Verse.FloatMenuOption>
options)
IL_010C: callvirt System.Void Verse.WindowStack::Add(Verse.Window window)
IL_0111: nop
IL_0112: nop
IL_0113: Label2
IL_0113: ldloc.3
IL_0114: call static System.Void Verse.Widgets::BeginGroup(UnityEngine.Rect
rect)
IL_0119: nop
IL_011A: ldc.i4.1
IL_011B: call static System.Void Verse.Text::set_Font(Verse.GameFont value)
IL_0120: nop
IL_0121: call static UnityEngine.Color UnityEngine.Color::get_white()
IL_0126: call static System.Void UnityEngine.GUI::set_color(UnityEngine.Color
value)
IL_012B: nop
IL_012C: ldloca.s 4 (UnityEngine.Rect)
IL_012E: ldc.r4 0
IL_0133: ldc.r4 0
IL_0138: ldloca.s 3 (UnityEngine.Rect)
IL_013A: call System.Single UnityEngine.Rect::get_width()
IL_013F: ldloca.s 3 (UnityEngine.Rect)
IL_0141: call System.Single UnityEngine.Rect::get_height()
IL_0146: call System.Void UnityEngine.Rect::.ctor(System.Single x,
System.Single y, System.Single width, System.Single height)
IL_014B: ldloca.s 5 (UnityEngine.Rect)
IL_014D: ldc.r4 0
IL_0152: ldc.r4 0
IL_0157: ldloca.s 4 (UnityEngine.Rect)
IL_0159: call System.Single UnityEngine.Rect::get_width()
IL_015E: ldc.r4 20
IL_0163: sub
IL_0164: ldarg.0
IL_0165: ldfld System.Single
Sandy_Detailed_RPG_Inventory.Sandy_Detailed_RPG_GearTab::scrollViewHeight
IL_016A: call System.Void UnityEngine.Rect::.ctor(System.Single x,
System.Single y, System.Single width, System.Single height)
IL_016F: ldloc.s 4 (UnityEngine.Rect)
IL_0171: ldarg.0
IL_0172: ldflda UnityEngine.Vector2
Sandy_Detailed_RPG_Inventory.Sandy_Detailed_RPG_GearTab::scrollPosition
IL_0177: ldloc.s 5 (UnityEngine.Rect)
IL_0179: ldc.i4.1
IL_017A: call static System.Void
Verse.Widgets::BeginScrollView(UnityEngine.Rect outRect, UnityEngine.Vector2&
scrollPosition, UnityEngine.Rect viewRect, System.Boolean showScrollbars)
IL_017F: nop
IL_0180: ldc.r4 0
IL_0185: stloc.s 6 (System.Single)
IL_0187: ldc.r4 10
IL_018C: stloc.s 7 (System.Single)
IL_018E: ldc.r4 0
IL_0193: stloc.s 8 (System.Single)
IL_0195: ldc.i4.0
IL_0196: stloc.s 9 (System.Int32)
IL_0198: ldc.r4 10
IL_019D: stloc.s 10 (System.Single)
IL_019F: ldc.r4 0
IL_01A4: stloc.s 11 (System.Single)
IL_01A6: ldc.i4.0
IL_01A7: stloc.s 12 (System.Int32)
IL_01A9: ldc.i4.s 9
IL_01AB: stloc.s 13 (System.Int32)
IL_01AD: ldarg.0
IL_01AE: ldfld System.Boolean
Sandy_Detailed_RPG_Inventory.Sandy_Detailed_RPG_GearTab::viewList
IL_01B3: ldc.i4.0
IL_01B4: ceq
IL_01B6: stloc.s 16 (System.Boolean)
IL_01B8: ldloc.s 16 (System.Boolean)
IL_01BA: brfalse => Label3
IL_01BF: nop
IL_01C0: ldarg.0
IL_01C1: call Verse.Pawn
Sandy_Detailed_RPG_Inventory.Sandy_Detailed_RPG_GearTab::get_SelPawnForGear()
IL_01C6: callvirt Verse.RaceProperties Verse.Pawn::get_RaceProps()
IL_01CB: callvirt System.Boolean Verse.RaceProperties::get_Humanlike()
IL_01D0: stloc.s 17 (System.Boolean)
IL_01D2: ldloc.s 17 (System.Boolean)
IL_01D4: brfalse => Label4
IL_01D9: nop
IL_01DA: ldloca.s 18 (UnityEngine.Rect)
IL_01DC: ldc.r4 530
IL_01E1: ldc.r4 0
IL_01E6: ldc.r4 138
IL_01EB: ldc.r4 50
IL_01F0: call System.Void UnityEngine.Rect::.ctor(System.Single x,
System.Single y, System.Single width, System.Single height)
IL_01F5: ldarg.0
IL_01F6: ldloc.s 18 (UnityEngine.Rect)
IL_01F8: call System.Void
Sandy_Detailed_RPG_Inventory.Sandy_Detailed_RPG_GearTab::TryDrawMassInfo_RPG(UnityE
ngine.Rect rect)
IL_01FD: nop
IL_01FE: ldarg.0
IL_01FF: ldloc.s 18 (UnityEngine.Rect)
IL_0201: call System.Void
Sandy_Detailed_RPG_Inventory.Sandy_Detailed_RPG_GearTab::TryDrawComfyTemperatureRan
ge_RPG(UnityEngine.Rect rect)
IL_0206: nop
IL_0207: nop
IL_0208: br => Label5
IL_020D: Label4
IL_020D: nop
IL_020E: ldarg.0
IL_020F: ldloca.s 6 (System.Single)
IL_0211: ldloca.s 5 (UnityEngine.Rect)
IL_0213: call System.Single UnityEngine.Rect::get_width()
IL_0218: call System.Void
Sandy_Detailed_RPG_Inventory.Sandy_Detailed_RPG_GearTab::TryDrawMassInfo(System.Sin
gle& curY, System.Single width)
IL_021D: nop
IL_021E: ldarg.0
IL_021F: ldloca.s 6 (System.Single)
IL_0221: ldloca.s 5 (UnityEngine.Rect)
IL_0223: call System.Single UnityEngine.Rect::get_width()
IL_0228: call System.Void
Sandy_Detailed_RPG_Inventory.Sandy_Detailed_RPG_GearTab::TryDrawComfyTemperatureRan
ge(System.Single& curY, System.Single width)
IL_022D: nop
IL_022E: nop
IL_022F: Label5
IL_022F: nop
IL_0230: br => Label6
IL_0235: Label3
IL_0235: ldarg.0
IL_0236: ldfld System.Boolean
Sandy_Detailed_RPG_Inventory.Sandy_Detailed_RPG_GearTab::viewList
IL_023B: stloc.s 19 (System.Boolean)
IL_023D: ldloc.s 19 (System.Boolean)
IL_023F: brfalse => Label7
IL_0244: nop
IL_0245: ldarg.0
IL_0246: ldloca.s 6 (System.Single)
IL_0248: ldloca.s 5 (UnityEngine.Rect)
IL_024A: call System.Single UnityEngine.Rect::get_width()
IL_024F: call System.Void
Sandy_Detailed_RPG_Inventory.Sandy_Detailed_RPG_GearTab::TryDrawMassInfo(System.Sin
gle& curY, System.Single width)
IL_0254: nop
IL_0255: ldarg.0
IL_0256: ldloca.s 6 (System.Single)
IL_0258: ldloca.s 5 (UnityEngine.Rect)
IL_025A: call System.Single UnityEngine.Rect::get_width()
IL_025F: call System.Void
Sandy_Detailed_RPG_Inventory.Sandy_Detailed_RPG_GearTab::TryDrawComfyTemperatureRan
ge(System.Single& curY, System.Single width)
IL_0264: nop
IL_0265: nop
IL_0266: Label6
IL_0266: Label7
IL_0266: ldarg.0
IL_0267: ldarg.0
IL_0268: call Verse.Pawn
Sandy_Detailed_RPG_Inventory.Sandy_Detailed_RPG_GearTab::get_SelPawnForGear()
IL_026D: call System.Boolean
Sandy_Detailed_RPG_Inventory.Sandy_Detailed_RPG_GearTab::ShouldShowOverallArmor(Ver
se.Pawn p)
IL_0272: brfalse => Label8
IL_0277: ldarg.0
IL_0278: ldfld System.Boolean
Sandy_Detailed_RPG_Inventory.Sandy_Detailed_RPG_GearTab::viewList
IL_027D: brtrue => Label9
IL_0282: ldarg.0
IL_0283: call Verse.Pawn
Sandy_Detailed_RPG_Inventory.Sandy_Detailed_RPG_GearTab::get_SelPawnForGear()
IL_0288: callvirt Verse.RaceProperties Verse.Pawn::get_RaceProps()
IL_028D: callvirt System.Boolean Verse.RaceProperties::get_Humanlike()
IL_0292: br => Label10
IL_0297: Label8
IL_0297: Label9
IL_0297: ldc.i4.0
IL_0298: Label10
IL_0298: stloc.s 20 (System.Boolean)
IL_029A: ldloc.s 20 (System.Boolean)
IL_029C: brfalse => Label11
IL_02A1: nop
IL_02A2: ldloca.s 21 (UnityEngine.Rect)
IL_02A4: ldc.r4 530
IL_02A9: ldc.r4 84
IL_02AE: ldc.r4 138
IL_02B3: ldc.r4 85
IL_02B8: call System.Void UnityEngine.Rect::.ctor(System.Single x,
System.Single y, System.Single width, System.Single height)
IL_02BD: ldloc.s 21 (UnityEngine.Rect)
IL_02BF: ldstr "OverallArmor"
IL_02C4: call static Verse.TaggedString
Verse.Translator::Translate(System.String key)
IL_02C9: call static Verse.TipSignal
Verse.TipSignal::op_Implicit(Verse.TaggedString str)
IL_02CE: call static System.Void
Verse.TooltipHandler::TipRegion(UnityEngine.Rect rect, Verse.TipSignal tip)
IL_02D3: nop
IL_02D4: ldloca.s 22 (UnityEngine.Rect)
IL_02D6: ldloca.s 21 (UnityEngine.Rect)
IL_02D8: call System.Single UnityEngine.Rect::get_x()
IL_02DD: ldloca.s 21 (UnityEngine.Rect)
IL_02DF: call System.Single UnityEngine.Rect::get_y()
IL_02E4: ldloca.s 21 (UnityEngine.Rect)
IL_02E6: call System.Single UnityEngine.Rect::get_width()
IL_02EB: ldc.r4 27
IL_02F0: call System.Void UnityEngine.Rect::.ctor(System.Single x,
System.Single y, System.Single width, System.Single height)
IL_02F5: ldarg.0
IL_02F6: ldloc.s 22 (UnityEngine.Rect)
IL_02F8: ldsfld RimWorld.StatDef RimWorld.StatDefOf::ArmorRating_Sharp
IL_02FD: ldstr "ArmorSharp"
IL_0302: call static Verse.TaggedString
Verse.Translator::Translate(System.String key)
IL_0307: call static System.String
Verse.TaggedString::op_Implicit(Verse.TaggedString taggedString)
IL_030C: ldstr "UI/Icons/Sandy_ArmorSharp_Icon"
IL_0311: ldc.i4.1
IL_0312: call static UnityEngine.Texture2D
Verse.ContentFinder`1<UnityEngine.Texture2D>::Get(System.String itemPath,
System.Boolean reportFailure)
IL_0317: call System.Void
Sandy_Detailed_RPG_Inventory.Sandy_Detailed_RPG_GearTab::TryDrawOverallArmor_RPG(Un
ityEngine.Rect rect, RimWorld.StatDef stat, System.String label,
UnityEngine.Texture image)
IL_031C: nop
IL_031D: ldloca.s 23 (UnityEngine.Rect)
IL_031F: ldloca.s 21 (UnityEngine.Rect)
IL_0321: call System.Single UnityEngine.Rect::get_x()
IL_0326: ldloca.s 21 (UnityEngine.Rect)
IL_0328: call System.Single UnityEngine.Rect::get_y()
IL_032D: ldc.r4 30
IL_0332: add
IL_0333: ldloca.s 21 (UnityEngine.Rect)
IL_0335: call System.Single UnityEngine.Rect::get_width()
IL_033A: ldc.r4 27
IL_033F: call System.Void UnityEngine.Rect::.ctor(System.Single x,
System.Single y, System.Single width, System.Single height)
IL_0344: ldarg.0
IL_0345: ldloc.s 23 (UnityEngine.Rect)
IL_0347: ldsfld RimWorld.StatDef RimWorld.StatDefOf::ArmorRating_Blunt
IL_034C: ldstr "ArmorBlunt"
IL_0351: call static Verse.TaggedString
Verse.Translator::Translate(System.String key)
IL_0356: call static System.String
Verse.TaggedString::op_Implicit(Verse.TaggedString taggedString)
IL_035B: ldstr "UI/Icons/Sandy_ArmorBlunt_Icon"
IL_0360: ldc.i4.1
IL_0361: call static UnityEngine.Texture2D
Verse.ContentFinder`1<UnityEngine.Texture2D>::Get(System.String itemPath,
System.Boolean reportFailure)
IL_0366: call System.Void
Sandy_Detailed_RPG_Inventory.Sandy_Detailed_RPG_GearTab::TryDrawOverallArmor_RPG(Un
ityEngine.Rect rect, RimWorld.StatDef stat, System.String label,
UnityEngine.Texture image)
IL_036B: nop
IL_036C: ldloca.s 24 (UnityEngine.Rect)
IL_036E: ldloca.s 21 (UnityEngine.Rect)
IL_0370: call System.Single UnityEngine.Rect::get_x()
IL_0375: ldloca.s 21 (UnityEngine.Rect)
IL_0377: call System.Single UnityEngine.Rect::get_y()
IL_037C: ldc.r4 60
IL_0381: add
IL_0382: ldloca.s 21 (UnityEngine.Rect)
IL_0384: call System.Single UnityEngine.Rect::get_width()
IL_0389: ldc.r4 27
IL_038E: call System.Void UnityEngine.Rect::.ctor(System.Single x,
System.Single y, System.Single width, System.Single height)
IL_0393: ldarg.0
IL_0394: ldloc.s 24 (UnityEngine.Rect)
IL_0396: ldsfld RimWorld.StatDef RimWorld.StatDefOf::ArmorRating_Heat
IL_039B: ldstr "ArmorHeat"
IL_03A0: call static Verse.TaggedString
Verse.Translator::Translate(System.String key)
IL_03A5: call static System.String
Verse.TaggedString::op_Implicit(Verse.TaggedString taggedString)
IL_03AA: ldstr "UI/Icons/Sandy_ArmorHeat_Icon"
IL_03AF: ldc.i4.1
IL_03B0: call static UnityEngine.Texture2D
Verse.ContentFinder`1<UnityEngine.Texture2D>::Get(System.String itemPath,
System.Boolean reportFailure)
IL_03B5: call System.Void
Sandy_Detailed_RPG_Inventory.Sandy_Detailed_RPG_GearTab::TryDrawOverallArmor_RPG(Un
ityEngine.Rect rect, RimWorld.StatDef stat, System.String label,
UnityEngine.Texture image)
IL_03BA: nop
IL_03BB: call static System.Boolean
Sandy_Detailed_RPG_Inventory.RPG_ModCheck::IsRWoMActive()
IL_03C0: stloc.s 25 (System.Boolean)
IL_03C2: ldloc.s 25 (System.Boolean)
IL_03C4: brfalse => Label12
IL_03C9: nop
IL_03CA: ldloca.s 26 (UnityEngine.Rect)
IL_03CC: ldloca.s 21 (UnityEngine.Rect)
IL_03CE: call System.Single UnityEngine.Rect::get_x()
IL_03D3: ldloca.s 21 (UnityEngine.Rect)
IL_03D5: call System.Single UnityEngine.Rect::get_y()
IL_03DA: ldc.r4 90
IL_03DF: add
IL_03E0: ldloca.s 21 (UnityEngine.Rect)
IL_03E2: call System.Single UnityEngine.Rect::get_width()
IL_03E7: ldc.r4 27
IL_03EC: call System.Void UnityEngine.Rect::.ctor(System.Single x,
System.Single y, System.Single width, System.Single height)
IL_03F1: ldarg.0
IL_03F2: ldloc.s 26 (UnityEngine.Rect)
IL_03F4: call static RimWorld.StatDef
Sandy_Detailed_RPG_Inventory.RPG_ModCheck::GetHarmonyStatDef()
IL_03F9: ldstr "RPG_Style_Inventory_ArmorHarmony"
IL_03FE: call static Verse.TaggedString
Verse.Translator::Translate(System.String key)
IL_0403: call static System.String
Verse.TaggedString::op_Implicit(Verse.TaggedString taggedString)
IL_0408: ldstr "UI/Icons/Sandy_ArmorHarmony_Icon"
IL_040D: ldc.i4.1
IL_040E: call static UnityEngine.Texture2D
Verse.ContentFinder`1<UnityEngine.Texture2D>::Get(System.String itemPath,
System.Boolean reportFailure)
IL_0413: call System.Void
Sandy_Detailed_RPG_Inventory.Sandy_Detailed_RPG_GearTab::TryDrawOverallArmor_RPG(Un
ityEngine.Rect rect, RimWorld.StatDef stat, System.String label,
UnityEngine.Texture image)
IL_0418: nop
IL_0419: nop
IL_041A: Label12
IL_041A: nop
IL_041B: br => Label13
IL_0420: Label11
IL_0420: ldarg.0
IL_0421: ldarg.0
IL_0422: call Verse.Pawn
Sandy_Detailed_RPG_Inventory.Sandy_Detailed_RPG_GearTab::get_SelPawnForGear()
IL_0427: call System.Boolean
Sandy_Detailed_RPG_Inventory.Sandy_Detailed_RPG_GearTab::ShouldShowOverallArmor(Ver
se.Pawn p)
IL_042C: stloc.s 27 (System.Boolean)
IL_042E: ldloc.s 27 (System.Boolean)
IL_0430: brfalse => Label14
IL_0435: nop
IL_0436: ldloca.s 6 (System.Single)
IL_0438: ldloca.s 5 (UnityEngine.Rect)
IL_043A: call System.Single UnityEngine.Rect::get_width()
IL_043F: ldstr "OverallArmor"
IL_0444: call static Verse.TaggedString
Verse.Translator::Translate(System.String key)
IL_0449: call static System.String
Verse.TaggedString::op_Implicit(Verse.TaggedString taggedString)
IL_044E: call static System.Void Verse.Widgets::ListSeparator(System.Single&
curY, System.Single width, System.String label)
IL_0453: nop
IL_0454: ldarg.0
IL_0455: ldloca.s 6 (System.Single)
IL_0457: ldloca.s 5 (UnityEngine.Rect)
IL_0459: call System.Single UnityEngine.Rect::get_width()
IL_045E: ldsfld RimWorld.StatDef RimWorld.StatDefOf::ArmorRating_Sharp
IL_0463: ldstr "ArmorSharp"
IL_0468: call static Verse.TaggedString
Verse.Translator::Translate(System.String key)
IL_046D: call static System.String
Verse.TaggedString::op_Implicit(Verse.TaggedString taggedString)
IL_0472: call System.Void
Sandy_Detailed_RPG_Inventory.Sandy_Detailed_RPG_GearTab::TryDrawOverallArmor(System
.Single& curY, System.Single width, RimWorld.StatDef stat, System.String label)
IL_0477: nop
IL_0478: ldarg.0
IL_0479: ldloca.s 6 (System.Single)
IL_047B: ldloca.s 5 (UnityEngine.Rect)
IL_047D: call System.Single UnityEngine.Rect::get_width()
IL_0482: ldsfld RimWorld.StatDef RimWorld.StatDefOf::ArmorRating_Blunt
IL_0487: ldstr "ArmorBlunt"
IL_048C: call static Verse.TaggedString
Verse.Translator::Translate(System.String key)
IL_0491: call static System.String
Verse.TaggedString::op_Implicit(Verse.TaggedString taggedString)
IL_0496: call System.Void
Sandy_Detailed_RPG_Inventory.Sandy_Detailed_RPG_GearTab::TryDrawOverallArmor(System
.Single& curY, System.Single width, RimWorld.StatDef stat, System.String label)
IL_049B: nop
IL_049C: ldarg.0
IL_049D: ldloca.s 6 (System.Single)
IL_049F: ldloca.s 5 (UnityEngine.Rect)
IL_04A1: call System.Single UnityEngine.Rect::get_width()
IL_04A6: ldsfld RimWorld.StatDef RimWorld.StatDefOf::ArmorRating_Heat
IL_04AB: ldstr "ArmorHeat"
IL_04B0: call static Verse.TaggedString
Verse.Translator::Translate(System.String key)
IL_04B5: call static System.String
Verse.TaggedString::op_Implicit(Verse.TaggedString taggedString)
IL_04BA: call System.Void
Sandy_Detailed_RPG_Inventory.Sandy_Detailed_RPG_GearTab::TryDrawOverallArmor(System
.Single& curY, System.Single width, RimWorld.StatDef stat, System.String label)
IL_04BF: nop
IL_04C0: nop
IL_04C1: Label13
IL_04C1: Label14
IL_04C1: ldarg.0
IL_04C2: callvirt virtual System.Boolean Verse.InspectTabBase::get_IsVisible()
IL_04C7: brfalse => Label15
IL_04CC: ldarg.0
IL_04CD: call Verse.Pawn
Sandy_Detailed_RPG_Inventory.Sandy_Detailed_RPG_GearTab::get_SelPawnForGear()
IL_04D2: callvirt Verse.RaceProperties Verse.Pawn::get_RaceProps()
IL_04D7: callvirt System.Boolean Verse.RaceProperties::get_Humanlike()
IL_04DC: brfalse => Label16
IL_04E1: ldarg.0
IL_04E2: ldfld System.Boolean
Sandy_Detailed_RPG_Inventory.Sandy_Detailed_RPG_GearTab::viewList
IL_04E7: ldc.i4.0
IL_04E8: ceq
IL_04EA: br => Label17
IL_04EF: Label15
IL_04EF: Label16
IL_04EF: ldc.i4.0
IL_04F0: Label17
IL_04F0: stloc.s 28 (System.Boolean)
IL_04F2: ldloc.s 28 (System.Boolean)
IL_04F4: brfalse => Label18
IL_04F9: nop
IL_04FA: ldloca.s 29 (UnityEngine.Rect)
IL_04FC: ldc.r4 232
IL_0501: ldc.r4 0
IL_0506: ldc.r4 64
IL_050B: ldc.r4 64
IL_0510: call System.Void UnityEngine.Rect::.ctor(System.Single x,
System.Single y, System.Single width, System.Single height)
IL_0515: ldloc.s 29 (UnityEngine.Rect)
IL_0517: ldstr "UI/Widgets/DesButBG"
IL_051C: ldc.i4.1
IL_051D: call static UnityEngine.Texture2D
Verse.ContentFinder`1<UnityEngine.Texture2D>::Get(System.String itemPath,
System.Boolean reportFailure)
IL_0522: call static System.Void
UnityEngine.GUI::DrawTexture(UnityEngine.Rect position, UnityEngine.Texture image)
IL_0527: nop
IL_0528: ldloc.s 29 (UnityEngine.Rect)
IL_052A: ldc.r4 12
IL_052F: call static UnityEngine.Rect
Verse.GenUI::ContractedBy(UnityEngine.Rect rect, System.Single margin)
IL_0534: stloc.s 30 (UnityEngine.Rect)
IL_0536: ldloc.s 30 (UnityEngine.Rect)
IL_0538: ldstr "Sandy_Head"
IL_053D: call static Verse.TaggedString
Verse.Translator::Translate(System.String key)
IL_0542: call static Verse.TipSignal
Verse.TipSignal::op_Implicit(Verse.TaggedString str)
IL_0547: call static System.Void
Verse.TooltipHandler::TipRegion(UnityEngine.Rect rect, Verse.TipSignal tip)
IL_054C: nop
IL_054D: ldloca.s 31 (UnityEngine.Rect)
IL_054F: ldc.r4 158
IL_0554: ldc.r4 148
IL_0559: ldc.r4 64
IL_055E: ldc.r4 64
IL_0563: call System.Void UnityEngine.Rect::.ctor(System.Single x,
System.Single y, System.Single width, System.Single height)
IL_0568: ldloc.s 31 (UnityEngine.Rect)
IL_056A: ldstr "UI/Widgets/DesButBG"
IL_056F: ldc.i4.1
IL_0570: call static UnityEngine.Texture2D
Verse.ContentFinder`1<UnityEngine.Texture2D>::Get(System.String itemPath,
System.Boolean reportFailure)
IL_0575: call static System.Void
UnityEngine.GUI::DrawTexture(UnityEngine.Rect position, UnityEngine.Texture image)
IL_057A: nop
IL_057B: ldloc.s 31 (UnityEngine.Rect)
IL_057D: ldc.r4 12
IL_0582: call static UnityEngine.Rect
Verse.GenUI::ContractedBy(UnityEngine.Rect rect, System.Single margin)
IL_0587: stloc.s 32 (UnityEngine.Rect)
IL_0589: ldloc.s 32 (UnityEngine.Rect)
IL_058B: ldstr "Sandy_TorsoMiddle"
IL_0590: call static Verse.TaggedString
Verse.Translator::Translate(System.String key)
IL_0595: call static Verse.TipSignal
Verse.TipSignal::op_Implicit(Verse.TaggedString str)
IL_059A: call static System.Void
Verse.TooltipHandler::TipRegion(UnityEngine.Rect rect, Verse.TipSignal tip)
IL_059F: nop
IL_05A0: ldloca.s 33 (UnityEngine.Rect)
IL_05A2: ldc.r4 232
IL_05A7: ldc.r4 148
IL_05AC: ldc.r4 64
IL_05B1: ldc.r4 64
IL_05B6: call System.Void UnityEngine.Rect::.ctor(System.Single x,
System.Single y, System.Single width, System.Single height)
IL_05BB: ldloc.s 33 (UnityEngine.Rect)
IL_05BD: ldstr "UI/Widgets/DesButBG"
IL_05C2: ldc.i4.1
IL_05C3: call static UnityEngine.Texture2D
Verse.ContentFinder`1<UnityEngine.Texture2D>::Get(System.String itemPath,
System.Boolean reportFailure)
IL_05C8: call static System.Void
UnityEngine.GUI::DrawTexture(UnityEngine.Rect position, UnityEngine.Texture image)
IL_05CD: nop
IL_05CE: ldloc.s 33 (UnityEngine.Rect)
IL_05D0: ldc.r4 12
IL_05D5: call static UnityEngine.Rect
Verse.GenUI::ContractedBy(UnityEngine.Rect rect, System.Single margin)
IL_05DA: stloc.s 34 (UnityEngine.Rect)
IL_05DC: ldloc.s 34 (UnityEngine.Rect)
IL_05DE: ldstr "Sandy_TorsoOnSkin"
IL_05E3: call static Verse.TaggedString
Verse.Translator::Translate(System.String key)
IL_05E8: call static Verse.TipSignal
Verse.TipSignal::op_Implicit(Verse.TaggedString str)
IL_05ED: call static System.Void
Verse.TooltipHandler::TipRegion(UnityEngine.Rect rect, Verse.TipSignal tip)
IL_05F2: nop
IL_05F3: ldloca.s 35 (UnityEngine.Rect)
IL_05F5: ldc.r4 306
IL_05FA: ldc.r4 148
IL_05FF: ldc.r4 64
IL_0604: ldc.r4 64
IL_0609: call System.Void UnityEngine.Rect::.ctor(System.Single x,
System.Single y, System.Single width, System.Single height)
IL_060E: ldloc.s 35 (UnityEngine.Rect)
IL_0610: ldstr "UI/Widgets/DesButBG"
IL_0615: ldc.i4.1
IL_0616: call static UnityEngine.Texture2D
Verse.ContentFinder`1<UnityEngine.Texture2D>::Get(System.String itemPath,
System.Boolean reportFailure)
IL_061B: call static System.Void
UnityEngine.GUI::DrawTexture(UnityEngine.Rect position, UnityEngine.Texture image)
IL_0620: nop
IL_0621: ldloc.s 35 (UnityEngine.Rect)
IL_0623: ldc.r4 12
IL_0628: call static UnityEngine.Rect
Verse.GenUI::ContractedBy(UnityEngine.Rect rect, System.Single margin)
IL_062D: stloc.s 36 (UnityEngine.Rect)
IL_062F: ldloc.s 36 (UnityEngine.Rect)
IL_0631: ldstr "Sandy_TorsoShell"
IL_0636: call static Verse.TaggedString
Verse.Translator::Translate(System.String key)
IL_063B: call static Verse.TipSignal
Verse.TipSignal::op_Implicit(Verse.TaggedString str)
IL_0640: call static System.Void
Verse.TooltipHandler::TipRegion(UnityEngine.Rect rect, Verse.TipSignal tip)
IL_0645: nop
IL_0646: ldloca.s 37 (UnityEngine.Rect)
IL_0648: ldc.r4 232
IL_064D: ldc.r4 296
IL_0652: ldc.r4 64
IL_0657: ldc.r4 64
IL_065C: call System.Void UnityEngine.Rect::.ctor(System.Single x,
System.Single y, System.Single width, System.Single height)
IL_0661: ldloc.s 37 (UnityEngine.Rect)
IL_0663: ldstr "UI/Widgets/DesButBG"
IL_0668: ldc.i4.1
IL_0669: call static UnityEngine.Texture2D
Verse.ContentFinder`1<UnityEngine.Texture2D>::Get(System.String itemPath,
System.Boolean reportFailure)
IL_066E: call static System.Void
UnityEngine.GUI::DrawTexture(UnityEngine.Rect position, UnityEngine.Texture image)
IL_0673: nop
IL_0674: ldloc.s 37 (UnityEngine.Rect)
IL_0676: ldc.r4 12
IL_067B: call static UnityEngine.Rect
Verse.GenUI::ContractedBy(UnityEngine.Rect rect, System.Single margin)
IL_0680: stloc.s 38 (UnityEngine.Rect)
IL_0682: ldloc.s 38 (UnityEngine.Rect)
IL_0684: ldstr "Sandy_Pants"
IL_0689: call static Verse.TaggedString
Verse.Translator::Translate(System.String key)
IL_068E: call static Verse.TipSignal
Verse.TipSignal::op_Implicit(Verse.TaggedString str)
IL_0693: call static System.Void
Verse.TooltipHandler::TipRegion(UnityEngine.Rect rect, Verse.TipSignal tip)
IL_0698: nop
IL_0699: ldloca.s 39 (UnityEngine.Color)
IL_069B: ldc.r4 1
IL_06A0: ldc.r4 1
IL_06A5: ldc.r4 1
IL_06AA: ldc.r4 1
IL_06AF: call System.Void UnityEngine.Color::.ctor(System.Single r,
System.Single g, System.Single b, System.Single a)
IL_06B4: ldloc.s 39 (UnityEngine.Color)
IL_06B6: call static System.Void UnityEngine.GUI::set_color(UnityEngine.Color
value)
IL_06BB: nop
IL_06BC: ldloca.s 40 (UnityEngine.Rect)
IL_06BE: ldc.r4 530
IL_06C3: ldc.r4 222
IL_06C8: ldc.r4 138
IL_06CD: ldc.r4 138
IL_06D2: call System.Void UnityEngine.Rect::.ctor(System.Single x,
System.Single y, System.Single width, System.Single height)
IL_06D7: ldarg.0
IL_06D8: ldloc.s 40 (UnityEngine.Rect)
IL_06DA: ldarg.0
IL_06DB: call Verse.Pawn
Sandy_Detailed_RPG_Inventory.Sandy_Detailed_RPG_GearTab::get_SelPawnForGear()
IL_06E0: call System.Void
Sandy_Detailed_RPG_Inventory.Sandy_Detailed_RPG_GearTab::DrawColonist(UnityEngine.R
ect rect, Verse.Pawn pawn)
IL_06E5: nop
IL_06E6: nop
IL_06E7: Label18
IL_06E7: ldarg.0
IL_06E8: ldarg.0
IL_06E9: call Verse.Pawn
Sandy_Detailed_RPG_Inventory.Sandy_Detailed_RPG_GearTab::get_SelPawnForGear()
IL_06EE: call System.Boolean
Sandy_Detailed_RPG_Inventory.Sandy_Detailed_RPG_GearTab::ShouldShowEquipment(Verse.
Pawn p)
IL_06F3: brfalse => Label19
IL_06F8: ldarg.0
IL_06F9: ldfld System.Boolean
Sandy_Detailed_RPG_Inventory.Sandy_Detailed_RPG_GearTab::viewList
IL_06FE: brtrue => Label20
IL_0703: ldarg.0
IL_0704: call Verse.Pawn
Sandy_Detailed_RPG_Inventory.Sandy_Detailed_RPG_GearTab::get_SelPawnForGear()
IL_0709: callvirt Verse.RaceProperties Verse.Pawn::get_RaceProps()
IL_070E: callvirt System.Boolean Verse.RaceProperties::get_Humanlike()
IL_0713: br => Label21
IL_0718: Label19
IL_0718: Label20
IL_0718: ldc.i4.0
IL_0719: Label21
IL_0719: stloc.s 41 (System.Boolean)
IL_071B: ldloc.s 41 (System.Boolean)
IL_071D: brfalse => Label22
IL_0722: nop
IL_0723: ldc.r4 440
IL_0728: stloc.s 6 (System.Single)
IL_072A: ldloc.s 6 (System.Single)
IL_072C: ldc.r4 30
IL_0731: add
IL_0732: stloc.s 11 (System.Single)
IL_0734: ldloca.s 6 (System.Single)
IL_0736: ldloca.s 5 (UnityEngine.Rect)
IL_0738: call System.Single UnityEngine.Rect::get_width()
IL_073D: ldstr "Equipment"
IL_0742: call static Verse.TaggedString
Verse.Translator::Translate(System.String key)
IL_0747: call static System.String
Verse.TaggedString::op_Implicit(Verse.TaggedString taggedString)
IL_074C: call static System.Void Verse.Widgets::ListSeparator(System.Single&
curY, System.Single width, System.String label)
IL_0751: nop
IL_0752: ldsfld System.Collections.Generic.List`1<Verse.Thing>
Sandy_Detailed_RPG_Inventory.Sandy_Detailed_RPG_GearTab::workingEquipmentList
IL_0757: callvirt virtual System.Void
System.Collections.Generic.List`1<Verse.Thing>::Clear()
IL_075C: nop
IL_075D: ldsfld System.Collections.Generic.List`1<Verse.Thing>
Sandy_Detailed_RPG_Inventory.Sandy_Detailed_RPG_GearTab::workingEquipmentList
IL_0762: ldarg.0
IL_0763: call Verse.Pawn
Sandy_Detailed_RPG_Inventory.Sandy_Detailed_RPG_GearTab::get_SelPawnForGear()
IL_0768: ldfld Verse.Pawn_EquipmentTracker Verse.Pawn::equipment
IL_076D: callvirt System.Collections.Generic.List`1<Verse.ThingWithComps>
Verse.Pawn_EquipmentTracker::get_AllEquipmentListForReading()
IL_0772: callvirt System.Void
System.Collections.Generic.List`1<Verse.Thing>::AddRange(System.Collections.Generic
.IEnumerable`1<Verse.Thing> collection)
IL_0777: nop
IL_0778: ldsfld System.Collections.Generic.List`1<Verse.Thing>
Sandy_Detailed_RPG_Inventory.Sandy_Detailed_RPG_GearTab::workingEquipmentList
IL_077D: ldarg.0
IL_077E: call Verse.Pawn
Sandy_Detailed_RPG_Inventory.Sandy_Detailed_RPG_GearTab::get_SelPawnForGear()
IL_0783: ldfld RimWorld.Pawn_ApparelTracker Verse.Pawn::apparel
IL_0788: callvirt System.Collections.Generic.List`1<RimWorld.Apparel>
RimWorld.Pawn_ApparelTracker::get_WornApparel()
IL_078D: ldsfld System.Func`2<RimWorld.Apparel, System.Boolean>
Sandy_Detailed_RPG_Inventory.<>c::<>9__31_0
IL_0792: dup
IL_0793: brtrue => Label23
IL_0798: pop
IL_0799: ldsfld Sandy_Detailed_RPG_Inventory.<>c
Sandy_Detailed_RPG_Inventory.<>c::<>9
IL_079E: ldftn System.Boolean
Sandy_Detailed_RPG_Inventory.<>c::<FillTab>b__31_0(RimWorld.Apparel x)
IL_07A4: newobj System.Void System.Func`2<RimWorld.Apparel,
System.Boolean>::.ctor(System.Object object, System.IntPtr method)
IL_07A9: dup
IL_07AA: stsfld System.Func`2<RimWorld.Apparel, System.Boolean>
Sandy_Detailed_RPG_Inventory.<>c::<>9__31_0
IL_07AF: Label23
IL_07AF: call static
System.Collections.Generic.IEnumerable`1<RimWorld.Apparel>
System.Linq.Enumerable::Where(System.Collections.Generic.IEnumerable`1<RimWorld.App
arel> source, System.Func`2<RimWorld.Apparel, System.Boolean> predicate)
IL_07B4: callvirt System.Void
System.Collections.Generic.List`1<Verse.Thing>::AddRange(System.Collections.Generic
.IEnumerable`1<Verse.Thing> collection)
IL_07B9: nop
IL_07BA: nop
IL_07BB: ldsfld System.Collections.Generic.List`1<Verse.Thing>
Sandy_Detailed_RPG_Inventory.Sandy_Detailed_RPG_GearTab::workingEquipmentList
IL_07C0: callvirt System.Collections.Generic.Enumerator<Verse.Thing>
System.Collections.Generic.List`1<Verse.Thing>::GetEnumerator()
IL_07C5: stloc.s 42 (System.Collections.Generic.List`1+Enumerator[Verse.Thing])
.try
{
IL_07C7: br => Label24
IL_07CC: Label44
IL_07CC: ldloca.s 42
(System.Collections.Generic.List`1+Enumerator[Verse.Thing])
IL_07CE: call virtual Verse.Thing
System.Collections.Generic.Enumerator<Verse.Thing>::get_Current()
IL_07D3: stloc.s 43 (Verse.Thing)
IL_07D5: nop
IL_07D6: ldloc.s 43 (Verse.Thing)
IL_07D8: ldarg.0
IL_07D9: call Verse.Pawn
Sandy_Detailed_RPG_Inventory.Sandy_Detailed_RPG_GearTab::get_SelPawnForGear()
IL_07DE: ldfld Verse.Pawn_EquipmentTracker Verse.Pawn::equipment
IL_07E3: callvirt Verse.ThingWithComps
Verse.Pawn_EquipmentTracker::get_Primary()
IL_07E8: ceq
IL_07EA: stloc.s 44 (System.Boolean)
IL_07EC: ldloc.s 44 (System.Boolean)
IL_07EE: brfalse => Label25
IL_07F3: nop
IL_07F4: ldloca.s 45 (UnityEngine.Rect)
IL_07F6: ldc.r4 567
IL_07FB: ldc.r4 370
IL_0800: ldc.r4 64
IL_0805: ldc.r4 64
IL_080A: call System.Void UnityEngine.Rect::.ctor(System.Single x,
System.Single y, System.Single width, System.Single height)
IL_080F: ldloc.s 45 (UnityEngine.Rect)
IL_0811: ldstr "UI/Widgets/DesButBG"
IL_0816: ldc.i4.1
IL_0817: call static UnityEngine.Texture2D
Verse.ContentFinder`1<UnityEngine.Texture2D>::Get(System.String itemPath,
System.Boolean reportFailure)
IL_081C: call static System.Void
UnityEngine.GUI::DrawTexture(UnityEngine.Rect position, UnityEngine.Texture image)
IL_0821: nop
IL_0822: ldarg.0
IL_0823: ldloc.s 45 (UnityEngine.Rect)
IL_0825: ldloc.s 43 (Verse.Thing)
IL_0827: ldc.i4.0
IL_0828: call System.Void
Sandy_Detailed_RPG_Inventory.Sandy_Detailed_RPG_GearTab::DrawThingRow_RPG(UnityEngi
ne.Rect rect, Verse.Thing thing, System.Boolean inventory)
IL_082D: nop
IL_082E: ldarg.0
IL_082F: call Verse.Pawn
Sandy_Detailed_RPG_Inventory.Sandy_Detailed_RPG_GearTab::get_SelPawnForGear()
IL_0834: ldfld RimWorld.Pawn_StoryTracker Verse.Pawn::story
IL_0839: ldfld RimWorld.TraitSet RimWorld.Pawn_StoryTracker::traits
IL_083E: ldsfld RimWorld.TraitDef RimWorld.TraitDefOf::Brawler
IL_0843: callvirt System.Boolean
RimWorld.TraitSet::HasTrait(RimWorld.TraitDef tDef)
IL_0848: brfalse => Label26
IL_084D: ldloc.s 43 (Verse.Thing)
IL_084F: ldfld Verse.ThingDef Verse.Thing::def
IL_0854: callvirt System.Boolean Verse.ThingDef::get_IsRangedWeapon()
IL_0859: br => Label27
IL_085E: Label26
IL_085E: ldc.i4.0
IL_085F: Label27
IL_085F: stloc.s 46 (System.Boolean)
IL_0861: ldloc.s 46 (System.Boolean)
IL_0863: brfalse => Label28
IL_0868: nop
IL_0869: ldloca.s 47 (UnityEngine.Rect)
IL_086B: ldloca.s 45 (UnityEngine.Rect)
IL_086D: call System.Single UnityEngine.Rect::get_x()
IL_0872: ldloca.s 45 (UnityEngine.Rect)
IL_0874: call System.Single UnityEngine.Rect::get_yMax()
IL_0879: ldc.r4 20
IL_087E: sub
IL_087F: ldc.r4 20
IL_0884: ldc.r4 20
IL_0889: call System.Void UnityEngine.Rect::.ctor(System.Single x,
System.Single y, System.Single width, System.Single height)
IL_088E: ldloc.s 47 (UnityEngine.Rect)
IL_0890: ldstr "UI/Icons/Sandy_Forced_Icon"
IL_0895: ldc.i4.1
IL_0896: call static UnityEngine.Texture2D
Verse.ContentFinder`1<UnityEngine.Texture2D>::Get(System.String itemPath,
System.Boolean reportFailure)
IL_089B: call static System.Void
UnityEngine.GUI::DrawTexture(UnityEngine.Rect position, UnityEngine.Texture image)
IL_08A0: nop
IL_08A1: ldloc.s 47 (UnityEngine.Rect)
IL_08A3: ldstr "BrawlerHasRangedWeapon"
IL_08A8: call static Verse.TaggedString
Verse.Translator::Translate(System.String key)
IL_08AD: call static Verse.TipSignal
Verse.TipSignal::op_Implicit(Verse.TaggedString str)
IL_08B2: call static System.Void
Verse.TooltipHandler::TipRegion(UnityEngine.Rect rect, Verse.TipSignal tip)
IL_08B7: nop
IL_08B8: nop
IL_08B9: Label28
IL_08B9: call static System.Boolean
Sandy_Detailed_RPG_Inventory.RPG_ModCheck::IsRWoMActive()
IL_08BE: brfalse => Label29
IL_08C3: ldarg.0
IL_08C4: ldloc.s 43 (Verse.Thing)
IL_08C6: call System.Boolean
Sandy_Detailed_RPG_Inventory.Sandy_Detailed_RPG_GearTab::ShouldDrawEnchantmentIcon(
Verse.Thing item)
IL_08CB: br => Label30
IL_08D0: Label29
IL_08D0: ldc.i4.0
IL_08D1: Label30
IL_08D1: stloc.s 48 (System.Boolean)
IL_08D3: ldloc.s 48 (System.Boolean)
IL_08D5: brfalse => Label31
IL_08DA: nop
IL_08DB: ldloca.s 49 (UnityEngine.Rect)
IL_08DD: ldloca.s 45 (UnityEngine.Rect)
IL_08DF: call System.Single UnityEngine.Rect::get_x()
IL_08E4: ldloca.s 45 (UnityEngine.Rect)
IL_08E6: call System.Single UnityEngine.Rect::get_yMax()
IL_08EB: ldc.r4 40
IL_08F0: sub
IL_08F1: ldc.r4 20
IL_08F6: ldc.r4 20
IL_08FB: call System.Void UnityEngine.Rect::.ctor(System.Single x,
System.Single y, System.Single width, System.Single height)
IL_0900: ldloc.s 49 (UnityEngine.Rect)
IL_0902: ldstr "UI/Icons/Sandy_Enchanted_Icon"
IL_0907: ldc.i4.1
IL_0908: call static UnityEngine.Texture2D
Verse.ContentFinder`1<UnityEngine.Texture2D>::Get(System.String itemPath,
System.Boolean reportFailure)
IL_090D: call static System.Void
UnityEngine.GUI::DrawTexture(UnityEngine.Rect position, UnityEngine.Texture image)
IL_0912: nop
IL_0913: ldloc.s 49 (UnityEngine.Rect)
IL_0915: ldloc.s 43 (Verse.Thing)
IL_0917: call static System.String
Sandy_Detailed_RPG_Inventory.RPG_ModCheck::GetEnchantmentString(Verse.Thing
apparel2)
IL_091C: call static Verse.TipSignal
Verse.TipSignal::op_Implicit(System.String str)
IL_0921: call static System.Void
Verse.TooltipHandler::TipRegion(UnityEngine.Rect rect, Verse.TipSignal tip)
IL_0926: nop
IL_0927: nop
IL_0928: Label31
IL_0928: nop
IL_0929: br => Label32
IL_092E: Label25
IL_092E: ldloc.s 43 (Verse.Thing)
IL_0930: ldarg.0
IL_0931: call Verse.Pawn
Sandy_Detailed_RPG_Inventory.Sandy_Detailed_RPG_GearTab::get_SelPawnForGear()
IL_0936: ldfld Verse.Pawn_EquipmentTracker Verse.Pawn::equipment
IL_093B: callvirt Verse.ThingWithComps
Verse.Pawn_EquipmentTracker::get_Primary()
IL_0940: ceq
IL_0942: ldc.i4.0
IL_0943: ceq
IL_0945: stloc.s 50 (System.Boolean)
IL_0947: ldloc.s 50 (System.Boolean)
IL_0949: brfalse => Label33
IL_094E: nop
IL_094F: ldloc.s 12 (System.Int32)
IL_0951: ldc.i4.1
IL_0952: add
IL_0953: stloc.s 12 (System.Int32)
IL_0955: ldloc.s 12 (System.Int32)
IL_0957: ldc.i4.1
IL_0958: ceq
IL_095A: stloc.s 52 (System.Boolean)
IL_095C: ldloc.s 52 (System.Boolean)
IL_095E: brfalse => Label34
IL_0963: nop
IL_0964: ldarg.0
IL_0965: ldarg.0
IL_0966: ldfld System.Single
Sandy_Detailed_RPG_Inventory.Sandy_Detailed_RPG_GearTab::scrollViewHeight
IL_096B: ldc.r4 74
IL_0970: add
IL_0971: stfld System.Single
Sandy_Detailed_RPG_Inventory.Sandy_Detailed_RPG_GearTab::scrollViewHeight
IL_0976: ldloc.s 6 (System.Single)
IL_0978: ldc.r4 74
IL_097D: add
IL_097E: stloc.s 6 (System.Single)
IL_0980: nop
IL_0981: Label34
IL_0981: ldloca.s 51 (UnityEngine.Rect)
IL_0983: ldloc.s 10 (System.Single)
IL_0985: ldloc.s 11 (System.Single)
IL_0987: ldc.r4 64
IL_098C: ldc.r4 64
IL_0991: call System.Void UnityEngine.Rect::.ctor(System.Single x,
System.Single y, System.Single width, System.Single height)
IL_0996: ldloc.s 51 (UnityEngine.Rect)
IL_0998: ldstr "UI/Widgets/DesButBG"
IL_099D: ldc.i4.1
IL_099E: call static UnityEngine.Texture2D
Verse.ContentFinder`1<UnityEngine.Texture2D>::Get(System.String itemPath,
System.Boolean reportFailure)
IL_09A3: call static System.Void
UnityEngine.GUI::DrawTexture(UnityEngine.Rect position, UnityEngine.Texture image)
IL_09A8: nop
IL_09A9: ldarg.0
IL_09AA: ldloc.s 51 (UnityEngine.Rect)
IL_09AC: ldloc.s 43 (Verse.Thing)
IL_09AE: ldc.i4.0
IL_09AF: call System.Void
Sandy_Detailed_RPG_Inventory.Sandy_Detailed_RPG_GearTab::DrawThingRow_RPG(UnityEngi
ne.Rect rect, Verse.Thing thing, System.Boolean inventory)
IL_09B4: nop
IL_09B5: ldarg.0
IL_09B6: call Verse.Pawn
Sandy_Detailed_RPG_Inventory.Sandy_Detailed_RPG_GearTab::get_SelPawnForGear()
IL_09BB: ldfld RimWorld.Pawn_StoryTracker Verse.Pawn::story
IL_09C0: ldfld RimWorld.TraitSet RimWorld.Pawn_StoryTracker::traits
IL_09C5: ldsfld RimWorld.TraitDef RimWorld.TraitDefOf::Brawler
IL_09CA: callvirt System.Boolean
RimWorld.TraitSet::HasTrait(RimWorld.TraitDef tDef)
IL_09CF: brfalse => Label35
IL_09D4: ldloc.s 43 (Verse.Thing)
IL_09D6: ldfld Verse.ThingDef Verse.Thing::def
IL_09DB: callvirt System.Boolean Verse.ThingDef::get_IsRangedWeapon()
IL_09E0: br => Label36
IL_09E5: Label35
IL_09E5: ldc.i4.0
IL_09E6: Label36
IL_09E6: stloc.s 53 (System.Boolean)
IL_09E8: ldloc.s 53 (System.Boolean)
IL_09EA: brfalse => Label37
IL_09EF: nop
IL_09F0: ldloca.s 54 (UnityEngine.Rect)
IL_09F2: ldloca.s 51 (UnityEngine.Rect)
IL_09F4: call System.Single UnityEngine.Rect::get_x()
IL_09F9: ldloca.s 51 (UnityEngine.Rect)
IL_09FB: call System.Single UnityEngine.Rect::get_yMax()
IL_0A00: ldc.r4 20
IL_0A05: sub
IL_0A06: ldc.r4 20
IL_0A0B: ldc.r4 20
IL_0A10: call System.Void UnityEngine.Rect::.ctor(System.Single x,
System.Single y, System.Single width, System.Single height)
IL_0A15: ldloc.s 54 (UnityEngine.Rect)
IL_0A17: ldstr "UI/Icons/Sandy_Forced_Icon"
IL_0A1C: ldc.i4.1
IL_0A1D: call static UnityEngine.Texture2D
Verse.ContentFinder`1<UnityEngine.Texture2D>::Get(System.String itemPath,
System.Boolean reportFailure)
IL_0A22: call static System.Void
UnityEngine.GUI::DrawTexture(UnityEngine.Rect position, UnityEngine.Texture image)
IL_0A27: nop
IL_0A28: ldloc.s 54 (UnityEngine.Rect)
IL_0A2A: ldstr "BrawlerHasRangedWeapon"
IL_0A2F: call static Verse.TaggedString
Verse.Translator::Translate(System.String key)
IL_0A34: call static Verse.TipSignal
Verse.TipSignal::op_Implicit(Verse.TaggedString str)
IL_0A39: call static System.Void
Verse.TooltipHandler::TipRegion(UnityEngine.Rect rect, Verse.TipSignal tip)
IL_0A3E: nop
IL_0A3F: nop
IL_0A40: Label37
IL_0A40: call static System.Boolean
Sandy_Detailed_RPG_Inventory.RPG_ModCheck::IsRWoMActive()
IL_0A45: brfalse => Label38
IL_0A4A: ldarg.0
IL_0A4B: ldloc.s 43 (Verse.Thing)
IL_0A4D: call System.Boolean
Sandy_Detailed_RPG_Inventory.Sandy_Detailed_RPG_GearTab::ShouldDrawEnchantmentIcon(
Verse.Thing item)
IL_0A52: br => Label39
IL_0A57: Label38
IL_0A57: ldc.i4.0
IL_0A58: Label39
IL_0A58: stloc.s 55 (System.Boolean)
IL_0A5A: ldloc.s 55 (System.Boolean)
IL_0A5C: brfalse => Label40
IL_0A61: nop
IL_0A62: ldloca.s 56 (UnityEngine.Rect)
IL_0A64: ldloca.s 51 (UnityEngine.Rect)
IL_0A66: call System.Single UnityEngine.Rect::get_x()
IL_0A6B: ldloca.s 51 (UnityEngine.Rect)
IL_0A6D: call System.Single UnityEngine.Rect::get_yMax()
IL_0A72: ldc.r4 40
IL_0A77: sub
IL_0A78: ldc.r4 20
IL_0A7D: ldc.r4 20
IL_0A82: call System.Void UnityEngine.Rect::.ctor(System.Single x,
System.Single y, System.Single width, System.Single height)
IL_0A87: ldloc.s 56 (UnityEngine.Rect)
IL_0A89: ldstr "UI/Icons/Sandy_Enchanted_Icon"
IL_0A8E: ldc.i4.1
IL_0A8F: call static UnityEngine.Texture2D
Verse.ContentFinder`1<UnityEngine.Texture2D>::Get(System.String itemPath,
System.Boolean reportFailure)
IL_0A94: call static System.Void
UnityEngine.GUI::DrawTexture(UnityEngine.Rect position, UnityEngine.Texture image)
IL_0A99: nop
IL_0A9A: ldloc.s 56 (UnityEngine.Rect)
IL_0A9C: ldloc.s 43 (Verse.Thing)
IL_0A9E: call static System.String
Sandy_Detailed_RPG_Inventory.RPG_ModCheck::GetEnchantmentString(Verse.Thing
apparel2)
IL_0AA3: call static Verse.TipSignal
Verse.TipSignal::op_Implicit(System.String str)
IL_0AA8: call static System.Void
Verse.TooltipHandler::TipRegion(UnityEngine.Rect rect, Verse.TipSignal tip)
IL_0AAD: nop
IL_0AAE: nop
IL_0AAF: Label40
IL_0AAF: ldloc.s 12 (System.Int32)
IL_0AB1: ldloc.s 13 (System.Int32)
IL_0AB3: clt
IL_0AB5: stloc.s 57 (System.Boolean)
IL_0AB7: ldloc.s 57 (System.Boolean)
IL_0AB9: brfalse => Label41
IL_0ABE: nop
IL_0ABF: ldloc.s 10 (System.Single)
IL_0AC1: ldc.r4 74
IL_0AC6: add
IL_0AC7: stloc.s 10 (System.Single)
IL_0AC9: nop
IL_0ACA: br => Label42
IL_0ACF: Label41
IL_0ACF: ldloc.s 12 (System.Int32)
IL_0AD1: ldloc.s 13 (System.Int32)
IL_0AD3: ceq
IL_0AD5: stloc.s 58 (System.Boolean)
IL_0AD7: ldloc.s 58 (System.Boolean)
IL_0AD9: brfalse => Label43
IL_0ADE: nop
IL_0ADF: ldc.r4 10
IL_0AE4: stloc.s 10 (System.Single)
IL_0AE6: ldloc.s 11 (System.Single)
IL_0AE8: ldc.r4 74
IL_0AED: add
IL_0AEE: stloc.s 11 (System.Single)
IL_0AF0: ldc.i4.0
IL_0AF1: stloc.s 12 (System.Int32)
IL_0AF3: nop
IL_0AF4: Label42
IL_0AF4: Label43
IL_0AF4: nop
IL_0AF5: Label32
IL_0AF5: Label33
IL_0AF5: nop
IL_0AF6: Label24
IL_0AF6: ldloca.s 42
(System.Collections.Generic.List`1+Enumerator[Verse.Thing])
IL_0AF8: call virtual System.Boolean
System.Collections.Generic.Enumerator<Verse.Thing>::MoveNext()
IL_0AFD: brtrue => Label44
IL_0B02: leave => Label45
IL_0B07: leave => (autogenerated)
} // end try
.finally
{
IL_0B0C: ldloca.s 42
(System.Collections.Generic.List`1+Enumerator[Verse.Thing])
IL_0B0E: constrained.
System.Collections.Generic.List`1+Enumerator[Verse.Thing]
IL_0B14: callvirt abstract virtual System.Void
System.IDisposable::Dispose()
IL_0B19: nop
IL_0B1A: endfinally
IL_0B1B: leave => (autogenerated)
} // end handler
IL_0B1C: Label45
IL_0B1C: nop
IL_0B1D: br => Label46
IL_0B22: Label22
IL_0B22: ldarg.0
IL_0B23: ldarg.0
IL_0B24: call Verse.Pawn
Sandy_Detailed_RPG_Inventory.Sandy_Detailed_RPG_GearTab::get_SelPawnForGear()
IL_0B29: call System.Boolean
Sandy_Detailed_RPG_Inventory.Sandy_Detailed_RPG_GearTab::ShouldShowEquipment(Verse.
Pawn p)
IL_0B2E: stloc.s 59 (System.Boolean)
IL_0B30: ldloc.s 59 (System.Boolean)
IL_0B32: brfalse => Label47
IL_0B37: nop
IL_0B38: ldloca.s 6 (System.Single)
IL_0B3A: ldloca.s 5 (UnityEngine.Rect)
IL_0B3C: call System.Single UnityEngine.Rect::get_width()
IL_0B41: ldstr "Equipment"
IL_0B46: call static Verse.TaggedString
Verse.Translator::Translate(System.String key)
IL_0B4B: call static System.String
Verse.TaggedString::op_Implicit(Verse.TaggedString taggedString)
IL_0B50: call static System.Void Verse.Widgets::ListSeparator(System.Single&
curY, System.Single width, System.String label)
IL_0B55: nop
IL_0B56: ldsfld System.Collections.Generic.List`1<Verse.Thing>
Sandy_Detailed_RPG_Inventory.Sandy_Detailed_RPG_GearTab::workingEquipmentList
IL_0B5B: callvirt virtual System.Void
System.Collections.Generic.List`1<Verse.Thing>::Clear()
IL_0B60: nop
IL_0B61: ldsfld System.Collections.Generic.List`1<Verse.Thing>
Sandy_Detailed_RPG_Inventory.Sandy_Detailed_RPG_GearTab::workingEquipmentList
IL_0B66: ldarg.0
IL_0B67: call Verse.Pawn
Sandy_Detailed_RPG_Inventory.Sandy_Detailed_RPG_GearTab::get_SelPawnForGear()
IL_0B6C: ldfld Verse.Pawn_EquipmentTracker Verse.Pawn::equipment
IL_0B71: callvirt System.Collections.Generic.List`1<Verse.ThingWithComps>
Verse.Pawn_EquipmentTracker::get_AllEquipmentListForReading()
IL_0B76: callvirt System.Void
System.Collections.Generic.List`1<Verse.Thing>::AddRange(System.Collections.Generic
.IEnumerable`1<Verse.Thing> collection)
IL_0B7B: nop
IL_0B7C: ldsfld System.Collections.Generic.List`1<Verse.Thing>
Sandy_Detailed_RPG_Inventory.Sandy_Detailed_RPG_GearTab::workingEquipmentList
IL_0B81: ldarg.0
IL_0B82: call Verse.Pawn
Sandy_Detailed_RPG_Inventory.Sandy_Detailed_RPG_GearTab::get_SelPawnForGear()
IL_0B87: ldfld RimWorld.Pawn_ApparelTracker Verse.Pawn::apparel
IL_0B8C: callvirt System.Collections.Generic.List`1<RimWorld.Apparel>
RimWorld.Pawn_ApparelTracker::get_WornApparel()
IL_0B91: ldsfld System.Func`2<RimWorld.Apparel, System.Boolean>
Sandy_Detailed_RPG_Inventory.<>c::<>9__31_1
IL_0B96: dup
IL_0B97: brtrue => Label48
IL_0B9C: pop
IL_0B9D: ldsfld Sandy_Detailed_RPG_Inventory.<>c
Sandy_Detailed_RPG_Inventory.<>c::<>9
IL_0BA2: ldftn System.Boolean
Sandy_Detailed_RPG_Inventory.<>c::<FillTab>b__31_1(RimWorld.Apparel x)
IL_0BA8: newobj System.Void System.Func`2<RimWorld.Apparel,
System.Boolean>::.ctor(System.Object object, System.IntPtr method)
IL_0BAD: dup
IL_0BAE: stsfld System.Func`2<RimWorld.Apparel, System.Boolean>
Sandy_Detailed_RPG_Inventory.<>c::<>9__31_1
IL_0BB3: Label48
IL_0BB3: call static
System.Collections.Generic.IEnumerable`1<RimWorld.Apparel>
System.Linq.Enumerable::Where(System.Collections.Generic.IEnumerable`1<RimWorld.App
arel> source, System.Func`2<RimWorld.Apparel, System.Boolean> predicate)
IL_0BB8: callvirt System.Void
System.Collections.Generic.List`1<Verse.Thing>::AddRange(System.Collections.Generic
.IEnumerable`1<Verse.Thing> collection)
IL_0BBD: nop
IL_0BBE: nop
IL_0BBF: ldsfld System.Collections.Generic.List`1<Verse.Thing>
Sandy_Detailed_RPG_Inventory.Sandy_Detailed_RPG_GearTab::workingEquipmentList
IL_0BC4: callvirt System.Collections.Generic.Enumerator<Verse.Thing>
System.Collections.Generic.List`1<Verse.Thing>::GetEnumerator()
IL_0BC9: stloc.s 60 (System.Collections.Generic.List`1+Enumerator[Verse.Thing])
.try
{
IL_0BCB: br => Label49
IL_0BD0: Label50
IL_0BD0: ldloca.s 60
(System.Collections.Generic.List`1+Enumerator[Verse.Thing])
IL_0BD2: call virtual Verse.Thing
System.Collections.Generic.Enumerator<Verse.Thing>::get_Current()
IL_0BD7: stloc.s 61 (Verse.Thing)
IL_0BD9: nop
IL_0BDA: ldarg.0
IL_0BDB: ldloca.s 6 (System.Single)
IL_0BDD: ldloca.s 5 (UnityEngine.Rect)
IL_0BDF: call System.Single UnityEngine.Rect::get_width()
IL_0BE4: ldloc.s 61 (Verse.Thing)
IL_0BE6: ldc.i4.0
IL_0BE7: call System.Void
Sandy_Detailed_RPG_Inventory.Sandy_Detailed_RPG_GearTab::DrawThingRow(System.Single
& y, System.Single width, Verse.Thing thing, System.Boolean inventory)
IL_0BEC: nop
IL_0BED: nop
IL_0BEE: Label49
IL_0BEE: ldloca.s 60
(System.Collections.Generic.List`1+Enumerator[Verse.Thing])
IL_0BF0: call virtual System.Boolean
System.Collections.Generic.Enumerator<Verse.Thing>::MoveNext()
IL_0BF5: brtrue => Label50
IL_0BFA: leave => Label51
IL_0BFF: leave => (autogenerated)
} // end try
.finally
{
IL_0C04: ldloca.s 60
(System.Collections.Generic.List`1+Enumerator[Verse.Thing])
IL_0C06: constrained.
System.Collections.Generic.List`1+Enumerator[Verse.Thing]
IL_0C0C: callvirt abstract virtual System.Void
System.IDisposable::Dispose()
IL_0C11: nop
IL_0C12: endfinally
IL_0C13: leave => (autogenerated)
} // end handler
IL_0C14: Label51
IL_0C14: nop
IL_0C15: Label46
IL_0C15: Label47
IL_0C15: ldarg.0
IL_0C16: ldarg.0
IL_0C17: call Verse.Pawn
Sandy_Detailed_RPG_Inventory.Sandy_Detailed_RPG_GearTab::get_SelPawnForGear()
IL_0C1C: call System.Boolean
Sandy_Detailed_RPG_Inventory.Sandy_Detailed_RPG_GearTab::ShouldShowApparel(Verse.Pa
wn p)
IL_0C21: brfalse => Label52
IL_0C26: ldarg.0
IL_0C27: ldfld System.Boolean
Sandy_Detailed_RPG_Inventory.Sandy_Detailed_RPG_GearTab::viewList
IL_0C2C: brtrue => Label53
IL_0C31: ldarg.0
IL_0C32: call Verse.Pawn
Sandy_Detailed_RPG_Inventory.Sandy_Detailed_RPG_GearTab::get_SelPawnForGear()
IL_0C37: callvirt Verse.RaceProperties Verse.Pawn::get_RaceProps()
IL_0C3C: callvirt System.Boolean Verse.RaceProperties::get_Humanlike()
IL_0C41: br => Label54
IL_0C46: Label52
IL_0C46: Label53
IL_0C46: ldc.i4.0
IL_0C47: Label54
IL_0C47: stloc.s 62 (System.Boolean)
IL_0C49: ldloc.s 62 (System.Boolean)
IL_0C4B: brfalse => Label55
IL_0C50: nop
IL_0C51: call static System.Boolean
Sandy_Detailed_RPG_Inventory.RPG_ModCheck::IsRWoMActive()
IL_0C56: stloc.s 63 (System.Boolean)
IL_0C58: ldc.i4.0
IL_0C59: stloc.s 64 (System.Boolean)
IL_0C5B: ldc.i4.0
IL_0C5C: stloc.s 65 (System.Boolean)
IL_0C5E: ldc.i4.0
IL_0C5F: stloc.s 66 (System.Boolean)
IL_0C61: ldc.i4.0
IL_0C62: stloc.s 67 (System.Boolean)
IL_0C64: ldc.i4.0
IL_0C65: stloc.s 68 (System.Boolean)
IL_0C67: ldc.i4.0
IL_0C68: stloc.s 69 (System.Boolean)
IL_0C6A: ldc.i4.0
IL_0C6B: stloc.s 70 (System.Boolean)
IL_0C6D: ldc.i4.0
IL_0C6E: stloc.s 71 (System.Boolean)
IL_0C70: ldc.i4.0
IL_0C71: stloc.s 72 (System.Boolean)
IL_0C73: ldc.i4.0
IL_0C74: stloc.s 73 (System.Boolean)
IL_0C76: ldloc.s 63 (System.Boolean)
IL_0C78: stloc.s 74 (System.Boolean)
IL_0C7A: ldloc.s 74 (System.Boolean)
IL_0C7C: brfalse => Label56
IL_0C81: nop
IL_0C82: ldarg.0
IL_0C83: call Verse.Pawn
Sandy_Detailed_RPG_Inventory.Sandy_Detailed_RPG_GearTab::get_SelPawnForGear()
IL_0C88: call static System.Boolean
Sandy_Detailed_RPG_Inventory.RPG_ModCheck::HasCloak(Verse.Pawn p)
IL_0C8D: stloc.s 64 (System.Boolean)
IL_0C8F: ldarg.0
IL_0C90: call Verse.Pawn
Sandy_Detailed_RPG_Inventory.Sandy_Detailed_RPG_GearTab::get_SelPawnForGear()
IL_0C95: call static System.Boolean
Sandy_Detailed_RPG_Inventory.RPG_ModCheck::HasCape(Verse.Pawn p)
IL_0C9A: stloc.s 65 (System.Boolean)
IL_0C9C: ldarg.0
IL_0C9D: call Verse.Pawn
Sandy_Detailed_RPG_Inventory.Sandy_Detailed_RPG_GearTab::get_SelPawnForGear()
IL_0CA2: call static System.Boolean
Sandy_Detailed_RPG_Inventory.RPG_ModCheck::HasArtifact_Neck(Verse.Pawn p)
IL_0CA7: stloc.s 66 (System.Boolean)
IL_0CA9: ldarg.0
IL_0CAA: call Verse.Pawn
Sandy_Detailed_RPG_Inventory.Sandy_Detailed_RPG_GearTab::get_SelPawnForGear()
IL_0CAF: call static System.Boolean
Sandy_Detailed_RPG_Inventory.RPG_ModCheck::HasAccessory_Neck(Verse.Pawn p)
IL_0CB4: stloc.s 67 (System.Boolean)
IL_0CB6: ldarg.0
IL_0CB7: call Verse.Pawn
Sandy_Detailed_RPG_Inventory.Sandy_Detailed_RPG_GearTab::get_SelPawnForGear()
IL_0CBC: call static System.Boolean
Sandy_Detailed_RPG_Inventory.RPG_ModCheck::HasArtifact_LeftHand(Verse.Pawn p)
IL_0CC1: stloc.s 68 (System.Boolean)
IL_0CC3: ldarg.0
IL_0CC4: call Verse.Pawn
Sandy_Detailed_RPG_Inventory.Sandy_Detailed_RPG_GearTab::get_SelPawnForGear()
IL_0CC9: call static System.Boolean
Sandy_Detailed_RPG_Inventory.RPG_ModCheck::HasApparel_LeftHand(Verse.Pawn p)
IL_0CCE: stloc.s 69 (System.Boolean)
IL_0CD0: ldarg.0
IL_0CD1: call Verse.Pawn
Sandy_Detailed_RPG_Inventory.Sandy_Detailed_RPG_GearTab::get_SelPawnForGear()
IL_0CD6: call static System.Boolean
Sandy_Detailed_RPG_Inventory.RPG_ModCheck::HasArtifact_RightHand(Verse.Pawn p)
IL_0CDB: stloc.s 70 (System.Boolean)
IL_0CDD: ldarg.0
IL_0CDE: call Verse.Pawn
Sandy_Detailed_RPG_Inventory.Sandy_Detailed_RPG_GearTab::get_SelPawnForGear()
IL_0CE3: call static System.Boolean
Sandy_Detailed_RPG_Inventory.RPG_ModCheck::HasApparel_RightHand(Verse.Pawn p)
IL_0CE8: stloc.s 71 (System.Boolean)
IL_0CEA: ldarg.0
IL_0CEB: call Verse.Pawn
Sandy_Detailed_RPG_Inventory.Sandy_Detailed_RPG_GearTab::get_SelPawnForGear()
IL_0CF0: call static System.Boolean
Sandy_Detailed_RPG_Inventory.RPG_ModCheck::HasArtifact_Arms(Verse.Pawn p)
IL_0CF5: stloc.s 72 (System.Boolean)
IL_0CF7: ldarg.0
IL_0CF8: call Verse.Pawn
Sandy_Detailed_RPG_Inventory.Sandy_Detailed_RPG_GearTab::get_SelPawnForGear()
IL_0CFD: call static System.Boolean
Sandy_Detailed_RPG_Inventory.RPG_ModCheck::HasApparel_Arms(Verse.Pawn p)
IL_0D02: stloc.s 73 (System.Boolean)
IL_0D04: nop
IL_0D05: Label56
IL_0D05: ldloc.s 6 (System.Single)
IL_0D07: ldc.r4 30
IL_0D0C: add
IL_0D0D: stloc.s 8 (System.Single)
IL_0D0F: ldloca.s 6 (System.Single)
IL_0D11: ldloca.s 5 (UnityEngine.Rect)
IL_0D13: call System.Single UnityEngine.Rect::get_width()
IL_0D18: ldstr "Apparel"
IL_0D1D: call static Verse.TaggedString
Verse.Translator::Translate(System.String key)
IL_0D22: call static System.String
Verse.TaggedString::op_Implicit(Verse.TaggedString taggedString)
IL_0D27: call static System.Void Verse.Widgets::ListSeparator(System.Single&
curY, System.Single width, System.String label)
IL_0D2C: nop
IL_0D2D: nop
IL_0D2E: ldarg.0
IL_0D2F: call Verse.Pawn
Sandy_Detailed_RPG_Inventory.Sandy_Detailed_RPG_GearTab::get_SelPawnForGear()
IL_0D34: ldfld RimWorld.Pawn_ApparelTracker Verse.Pawn::apparel
IL_0D39: callvirt System.Collections.Generic.List`1<RimWorld.Apparel>
RimWorld.Pawn_ApparelTracker::get_WornApparel()
IL_0D3E: ldsfld System.Func`2<RimWorld.Apparel, System.Boolean>
Sandy_Detailed_RPG_Inventory.<>c::<>9__31_2
IL_0D43: dup
IL_0D44: brtrue => Label57
IL_0D49: pop
IL_0D4A: ldsfld Sandy_Detailed_RPG_Inventory.<>c
Sandy_Detailed_RPG_Inventory.<>c::<>9
IL_0D4F: ldftn System.Boolean
Sandy_Detailed_RPG_Inventory.<>c::<FillTab>b__31_2(RimWorld.Apparel x)
IL_0D55: newobj System.Void System.Func`2<RimWorld.Apparel,
System.Boolean>::.ctor(System.Object object, System.IntPtr method)
IL_0D5A: dup
IL_0D5B: stsfld System.Func`2<RimWorld.Apparel, System.Boolean>
Sandy_Detailed_RPG_Inventory.<>c::<>9__31_2
IL_0D60: Label57
IL_0D60: call static
System.Collections.Generic.IEnumerable`1<RimWorld.Apparel>
System.Linq.Enumerable::Where(System.Collections.Generic.IEnumerable`1<RimWorld.App
arel> source, System.Func`2<RimWorld.Apparel, System.Boolean> predicate)
IL_0D65: ldsfld System.Func`2<RimWorld.Apparel, System.Int32>
Sandy_Detailed_RPG_Inventory.<>c::<>9__31_3
IL_0D6A: dup
IL_0D6B: brtrue => Label58
IL_0D70: pop
IL_0D71: ldsfld Sandy_Detailed_RPG_Inventory.<>c
Sandy_Detailed_RPG_Inventory.<>c::<>9
IL_0D76: ldftn System.Int32
Sandy_Detailed_RPG_Inventory.<>c::<FillTab>b__31_3(RimWorld.Apparel ap)
IL_0D7C: newobj System.Void System.Func`2<RimWorld.Apparel,
System.Int32>::.ctor(System.Object object, System.IntPtr method)
IL_0D81: dup
IL_0D82: stsfld System.Func`2<RimWorld.Apparel, System.Int32>
Sandy_Detailed_RPG_Inventory.<>c::<>9__31_3
IL_0D87: Label58
IL_0D87: call static System.Linq.IOrderedEnumerable`1<RimWorld.Apparel>
System.Linq.Enumerable::OrderByDescending(System.Collections.Generic.IEnumerable`1<
RimWorld.Apparel> source, System.Func`2<RimWorld.Apparel, System.Int32>
keySelector)
IL_0D8C: callvirt abstract virtual
System.Collections.Generic.IEnumerator`1<RimWorld.Apparel>
System.Collections.Generic.IEnumerable`1<RimWorld.Apparel>::GetEnumerator()
IL_0D91: stloc.s 75 (System.Collections.Generic.IEnumerator`1[RimWorld.Apparel])
.try
{
IL_0D93: br => Label59
IL_0D98: Label285
IL_0D98: ldloc.s 75
(System.Collections.Generic.IEnumerator`1[RimWorld.Apparel])
IL_0D9A: callvirt abstract virtual RimWorld.Apparel
System.Collections.Generic.IEnumerator`1<RimWorld.Apparel>::get_Current()
IL_0D9F: stloc.s 76 (RimWorld.Apparel)
IL_0DA1: nop
IL_0DA2: ldloc.s 76 (RimWorld.Apparel)
IL_0DA4: ldfld Verse.ThingDef Verse.Thing::def
IL_0DA9: ldfld RimWorld.ApparelProperties Verse.ThingDef::apparel
IL_0DAE: stloc.s 158 (RimWorld.ApparelProperties)
IL_0DB0: ldloc.s 158 (RimWorld.ApparelProperties)
IL_0DB2: stloc.s 118 (RimWorld.ApparelProperties)
IL_0DB4: ldloc.s 118 (RimWorld.ApparelProperties)
IL_0DB6: brtrue => Label60
IL_0DBB: br => Label61
IL_0DC0: Label60
IL_0DC0: ldloc.s 118 (RimWorld.ApparelProperties)
IL_0DC2: ldfld System.Collections.Generic.List`1<Verse.BodyPartGroupDef>
RimWorld.ApparelProperties::bodyPartGroups
IL_0DC7: ldsfld Verse.BodyPartGroupDef
RimWorld.BodyPartGroupDefOf::UpperHead
IL_0DCC: callvirt virtual System.Boolean
System.Collections.Generic.List`1<Verse.BodyPartGroupDef>::Contains(Verse.BodyPartG
roupDef item)
IL_0DD1: brtrue => Label62
IL_0DD6: ldloc.s 118 (RimWorld.ApparelProperties)
IL_0DD8: ldfld System.Collections.Generic.List`1<Verse.BodyPartGroupDef>
RimWorld.ApparelProperties::bodyPartGroups
IL_0DDD: ldsfld Verse.BodyPartGroupDef
RimWorld.BodyPartGroupDefOf::FullHead
IL_0DE2: callvirt virtual System.Boolean
System.Collections.Generic.List`1<Verse.BodyPartGroupDef>::Contains(Verse.BodyPartG
roupDef item)
IL_0DE7: brfalse => Label63
IL_0DEC: Label62
IL_0DEC: ldloc.s 118 (RimWorld.ApparelProperties)
IL_0DEE: ldfld System.Collections.Generic.List`1<Verse.ApparelLayerDef>
RimWorld.ApparelProperties::layers
IL_0DF3: ldsfld Verse.ApparelLayerDef
RimWorld.ApparelLayerDefOf::Overhead
IL_0DF8: callvirt virtual System.Boolean
System.Collections.Generic.List`1<Verse.ApparelLayerDef>::Contains(Verse.ApparelLay
erDef item)
IL_0DFD: brtrue => Label64
IL_0E02: Label63
IL_0E02: br => Label65
IL_0E07: Label64
IL_0E07: ldloca.s 77 (UnityEngine.Rect)
IL_0E09: ldc.r4 232
IL_0E0E: ldc.r4 0
IL_0E13: ldc.r4 64
IL_0E18: ldc.r4 64
IL_0E1D: call System.Void UnityEngine.Rect::.ctor(System.Single x,
System.Single y, System.Single width, System.Single height)
IL_0E22: ldarg.0
IL_0E23: ldloc.s 77 (UnityEngine.Rect)
IL_0E25: ldloc.s 76 (RimWorld.Apparel)
IL_0E27: ldc.i4.0
IL_0E28: call System.Void
Sandy_Detailed_RPG_Inventory.Sandy_Detailed_RPG_GearTab::DrawThingRow_RPG(UnityEngi
ne.Rect rect, Verse.Thing thing, System.Boolean inventory)
IL_0E2D: nop
IL_0E2E: br => Label66
IL_0E33: Label65
IL_0E33: ldloc.s 118 (RimWorld.ApparelProperties)
IL_0E35: stloc.s 119 (RimWorld.ApparelProperties)
IL_0E37: ldloc.s 119 (RimWorld.ApparelProperties)
IL_0E39: ldfld System.Collections.Generic.List`1<Verse.BodyPartGroupDef>
RimWorld.ApparelProperties::bodyPartGroups
IL_0E3E: ldsfld Verse.BodyPartGroupDef RimWorld.BodyPartGroupDefOf::Eyes
IL_0E43: callvirt virtual System.Boolean
System.Collections.Generic.List`1<Verse.BodyPartGroupDef>::Contains(Verse.BodyPartG
roupDef item)
IL_0E48: brfalse => Label67
IL_0E4D: ldloc.s 119 (RimWorld.ApparelProperties)
IL_0E4F: ldfld System.Collections.Generic.List`1<Verse.BodyPartGroupDef>
RimWorld.ApparelProperties::bodyPartGroups
IL_0E54: ldsfld Verse.BodyPartGroupDef
RimWorld.BodyPartGroupDefOf::UpperHead
IL_0E59: callvirt virtual System.Boolean
System.Collections.Generic.List`1<Verse.BodyPartGroupDef>::Contains(Verse.BodyPartG
roupDef item)
IL_0E5E: brtrue => Label68
IL_0E63: ldloc.s 119 (RimWorld.ApparelProperties)
IL_0E65: ldfld System.Collections.Generic.List`1<Verse.ApparelLayerDef>
RimWorld.ApparelProperties::layers
IL_0E6A: ldsfld Verse.ApparelLayerDef
RimWorld.ApparelLayerDefOf::EyeCover
IL_0E6F: callvirt virtual System.Boolean
System.Collections.Generic.List`1<Verse.ApparelLayerDef>::Contains(Verse.ApparelLay
erDef item)
IL_0E74: brtrue => Label69
IL_0E79: Label67
IL_0E79: Label68
IL_0E79: br => Label70
IL_0E7E: Label69
IL_0E7E: ldloca.s 78 (UnityEngine.Rect)
IL_0E80: ldc.r4 306
IL_0E85: ldc.r4 0
IL_0E8A: ldc.r4 64
IL_0E8F: ldc.r4 64
IL_0E94: call System.Void UnityEngine.Rect::.ctor(System.Single x,
System.Single y, System.Single width, System.Single height)
IL_0E99: ldarg.0
IL_0E9A: ldloc.s 78 (UnityEngine.Rect)
IL_0E9C: ldloc.s 76 (RimWorld.Apparel)
IL_0E9E: ldc.i4.0
IL_0E9F: call System.Void
Sandy_Detailed_RPG_Inventory.Sandy_Detailed_RPG_GearTab::DrawThingRow_RPG(UnityEngi
ne.Rect rect, Verse.Thing thing, System.Boolean inventory)
IL_0EA4: nop
IL_0EA5: br => Label71
IL_0EAA: Label70
IL_0EAA: ldloc.s 118 (RimWorld.ApparelProperties)
IL_0EAC: stloc.s 120 (RimWorld.ApparelProperties)
IL_0EAE: ldloc.s 120 (RimWorld.ApparelProperties)
IL_0EB0: ldfld System.Collections.Generic.List`1<Verse.BodyPartGroupDef>
RimWorld.ApparelProperties::bodyPartGroups
IL_0EB5: ldsfld Verse.BodyPartGroupDef RimWorld.BodyPartGroupDefOf::Eyes
IL_0EBA: callvirt virtual System.Boolean
System.Collections.Generic.List`1<Verse.BodyPartGroupDef>::Contains(Verse.BodyPartG
roupDef item)
IL_0EBF: brfalse => Label72
IL_0EC4: ldloc.s 120 (RimWorld.ApparelProperties)
IL_0EC6: ldfld System.Collections.Generic.List`1<Verse.BodyPartGroupDef>
RimWorld.ApparelProperties::bodyPartGroups
IL_0ECB: ldsfld Verse.BodyPartGroupDef
RimWorld.BodyPartGroupDefOf::UpperHead
IL_0ED0: callvirt virtual System.Boolean
System.Collections.Generic.List`1<Verse.BodyPartGroupDef>::Contains(Verse.BodyPartG
roupDef item)
IL_0ED5: brtrue => Label73
IL_0EDA: ldloc.s 120 (RimWorld.ApparelProperties)
IL_0EDC: ldfld System.Collections.Generic.List`1<Verse.ApparelLayerDef>
RimWorld.ApparelProperties::layers
IL_0EE1: ldsfld Verse.ApparelLayerDef
RimWorld.ApparelLayerDefOf::Overhead
IL_0EE6: callvirt virtual System.Boolean
System.Collections.Generic.List`1<Verse.ApparelLayerDef>::Contains(Verse.ApparelLay
erDef item)
IL_0EEB: brtrue => Label74
IL_0EF0: Label72
IL_0EF0: Label73
IL_0EF0: br => Label75
IL_0EF5: Label74
IL_0EF5: ldloca.s 79 (UnityEngine.Rect)
IL_0EF7: ldc.r4 380
IL_0EFC: ldc.r4 0
IL_0F01: ldc.r4 64
IL_0F06: ldc.r4 64
IL_0F0B: call System.Void UnityEngine.Rect::.ctor(System.Single x,
System.Single y, System.Single width, System.Single height)
IL_0F10: ldarg.0
IL_0F11: ldloc.s 79 (UnityEngine.Rect)
IL_0F13: ldloc.s 76 (RimWorld.Apparel)
IL_0F15: ldc.i4.0
IL_0F16: call System.Void
Sandy_Detailed_RPG_Inventory.Sandy_Detailed_RPG_GearTab::DrawThingRow_RPG(UnityEngi
ne.Rect rect, Verse.Thing thing, System.Boolean inventory)
IL_0F1B: nop
IL_0F1C: br => Label76
IL_0F21: Label75
IL_0F21: ldloc.s 118 (RimWorld.ApparelProperties)
IL_0F23: stloc.s 121 (RimWorld.ApparelProperties)
IL_0F25: ldloc.s 121 (RimWorld.ApparelProperties)
IL_0F27: ldfld System.Collections.Generic.List`1<Verse.BodyPartGroupDef>
RimWorld.ApparelProperties::bodyPartGroups
IL_0F2C: ldsfld Verse.BodyPartGroupDef
Sandy_Detailed_RPG_Inventory.Sandy_Gear_DefOf::Teeth
IL_0F31: callvirt virtual System.Boolean
System.Collections.Generic.List`1<Verse.BodyPartGroupDef>::Contains(Verse.BodyPartG
roupDef item)
IL_0F36: brfalse => Label77
IL_0F3B: ldloc.s 121 (RimWorld.ApparelProperties)
IL_0F3D: ldfld System.Collections.Generic.List`1<Verse.BodyPartGroupDef>
RimWorld.ApparelProperties::bodyPartGroups
IL_0F42: ldsfld Verse.BodyPartGroupDef
RimWorld.BodyPartGroupDefOf::UpperHead
IL_0F47: callvirt virtual System.Boolean
System.Collections.Generic.List`1<Verse.BodyPartGroupDef>::Contains(Verse.BodyPartG
roupDef item)
IL_0F4C: brtrue => Label78
IL_0F51: ldloc.s 121 (RimWorld.ApparelProperties)
IL_0F53: ldfld System.Collections.Generic.List`1<Verse.ApparelLayerDef>
RimWorld.ApparelProperties::layers
IL_0F58: ldsfld Verse.ApparelLayerDef
RimWorld.ApparelLayerDefOf::Overhead
IL_0F5D: callvirt virtual System.Boolean
System.Collections.Generic.List`1<Verse.ApparelLayerDef>::Contains(Verse.ApparelLay
erDef item)
IL_0F62: brfalse => Label79
IL_0F67: ldloc.s 121 (RimWorld.ApparelProperties)
IL_0F69: ldfld System.Collections.Generic.List`1<Verse.BodyPartGroupDef>
RimWorld.ApparelProperties::bodyPartGroups
IL_0F6E: ldsfld Verse.BodyPartGroupDef RimWorld.BodyPartGroupDefOf::Eyes
IL_0F73: callvirt virtual System.Boolean
System.Collections.Generic.List`1<Verse.BodyPartGroupDef>::Contains(Verse.BodyPartG
roupDef item)
IL_0F78: brfalse => Label80
IL_0F7D: Label77
IL_0F7D: Label78
IL_0F7D: Label79
IL_0F7D: br => Label81
IL_0F82: Label80
IL_0F82: ldloca.s 80 (UnityEngine.Rect)
IL_0F84: ldc.r4 158
IL_0F89: ldc.r4 0
IL_0F8E: ldc.r4 64
IL_0F93: ldc.r4 64
IL_0F98: call System.Void UnityEngine.Rect::.ctor(System.Single x,
System.Single y, System.Single width, System.Single height)
IL_0F9D: ldarg.0
IL_0F9E: ldloc.s 80 (UnityEngine.Rect)
IL_0FA0: ldloc.s 76 (RimWorld.Apparel)
IL_0FA2: ldc.i4.0
IL_0FA3: call System.Void
Sandy_Detailed_RPG_Inventory.Sandy_Detailed_RPG_GearTab::DrawThingRow_RPG(UnityEngi
ne.Rect rect, Verse.Thing thing, System.Boolean inventory)
IL_0FA8: nop
IL_0FA9: br => Label82
IL_0FAE: Label81
IL_0FAE: ldloc.s 118 (RimWorld.ApparelProperties)
IL_0FB0: stloc.s 122 (RimWorld.ApparelProperties)
IL_0FB2: ldloc.s 122 (RimWorld.ApparelProperties)
IL_0FB4: ldfld System.Collections.Generic.List`1<Verse.BodyPartGroupDef>
RimWorld.ApparelProperties::bodyPartGroups
IL_0FB9: ldsfld Verse.BodyPartGroupDef
Sandy_Detailed_RPG_Inventory.Sandy_Gear_DefOf::Ears
IL_0FBE: callvirt virtual System.Boolean
System.Collections.Generic.List`1<Verse.BodyPartGroupDef>::Contains(Verse.BodyPartG
roupDef item)
IL_0FC3: brfalse => Label83
IL_0FC8: ldloc.s 122 (RimWorld.ApparelProperties)
IL_0FCA: ldfld System.Collections.Generic.List`1<Verse.ApparelLayerDef>
RimWorld.ApparelProperties::layers
IL_0FCF: ldsfld Verse.ApparelLayerDef
Sandy_Detailed_RPG_Inventory.Sandy_Gear_DefOf::Accessories
IL_0FD4: callvirt virtual System.Boolean
System.Collections.Generic.List`1<Verse.ApparelLayerDef>::Contains(Verse.ApparelLay
erDef item)
IL_0FD9: brtrue => Label84
IL_0FDE: Label83
IL_0FDE: br => Label85
IL_0FE3: Label84
IL_0FE3: ldloca.s 81 (UnityEngine.Rect)
IL_0FE5: ldc.r4 84
IL_0FEA: ldc.r4 0
IL_0FEF: ldc.r4 64
IL_0FF4: ldc.r4 64
IL_0FF9: call System.Void UnityEngine.Rect::.ctor(System.Single x,
System.Single y, System.Single width, System.Single height)
IL_0FFE: ldarg.0
IL_0FFF: ldloc.s 81 (UnityEngine.Rect)
IL_1001: ldloc.s 76 (RimWorld.Apparel)
IL_1003: ldc.i4.0
IL_1004: call System.Void
Sandy_Detailed_RPG_Inventory.Sandy_Detailed_RPG_GearTab::DrawThingRow_RPG(UnityEngi
ne.Rect rect, Verse.Thing thing, System.Boolean inventory)
IL_1009: nop
IL_100A: br => Label86
IL_100F: Label85
IL_100F: ldloc.s 118 (RimWorld.ApparelProperties)
IL_1011: stloc.s 123 (RimWorld.ApparelProperties)
IL_1013: ldloc.s 123 (RimWorld.ApparelProperties)
IL_1015: ldfld System.Collections.Generic.List`1<Verse.BodyPartGroupDef>
RimWorld.ApparelProperties::bodyPartGroups
IL_101A: ldsfld Verse.BodyPartGroupDef
Sandy_Detailed_RPG_Inventory.Sandy_Gear_DefOf::Neck
IL_101F: callvirt virtual System.Boolean
System.Collections.Generic.List`1<Verse.BodyPartGroupDef>::Contains(Verse.BodyPartG
roupDef item)
IL_1024: brfalse => Label87
IL_1029: ldloc.s 123 (RimWorld.ApparelProperties)
IL_102B: ldfld System.Collections.Generic.List`1<Verse.BodyPartGroupDef>
RimWorld.ApparelProperties::bodyPartGroups
IL_1030: ldsfld Verse.BodyPartGroupDef
Sandy_Detailed_RPG_Inventory.Sandy_Gear_DefOf::Shoulders
IL_1035: callvirt virtual System.Boolean
System.Collections.Generic.List`1<Verse.BodyPartGroupDef>::Contains(Verse.BodyPartG
roupDef item)
IL_103A: brtrue => Label88
IL_103F: ldloc.s 123 (RimWorld.ApparelProperties)
IL_1041: ldfld System.Collections.Generic.List`1<Verse.ApparelLayerDef>
RimWorld.ApparelProperties::layers
IL_1046: ldsfld Verse.ApparelLayerDef RimWorld.ApparelLayerDefOf::Shell
IL_104B: callvirt virtual System.Boolean
System.Collections.Generic.List`1<Verse.ApparelLayerDef>::Contains(Verse.ApparelLay
erDef item)
IL_1050: brfalse => Label89
IL_1055: ldloc.s 123 (RimWorld.ApparelProperties)
IL_1057: ldfld System.Collections.Generic.List`1<Verse.BodyPartGroupDef>
RimWorld.ApparelProperties::bodyPartGroups
IL_105C: ldsfld Verse.BodyPartGroupDef RimWorld.BodyPartGroupDefOf::Torso
IL_1061: callvirt virtual System.Boolean
System.Collections.Generic.List`1<Verse.BodyPartGroupDef>::Contains(Verse.BodyPartG
roupDef item)
IL_1066: brfalse => Label90
IL_106B: Label87
IL_106B: Label88
IL_106B: Label89
IL_106B: br => Label91
IL_1070: Label90
IL_1070: ldloca.s 82 (UnityEngine.Rect)
IL_1072: ldc.r4 232
IL_1077: ldc.r4 74
IL_107C: ldc.r4 64
IL_1081: ldc.r4 64
IL_1086: call System.Void UnityEngine.Rect::.ctor(System.Single x,
System.Single y, System.Single width, System.Single height)
IL_108B: ldarg.0
IL_108C: ldloc.s 82 (UnityEngine.Rect)
IL_108E: ldloc.s 76 (RimWorld.Apparel)
IL_1090: ldc.i4.0
IL_1091: call System.Void
Sandy_Detailed_RPG_Inventory.Sandy_Detailed_RPG_GearTab::DrawThingRow_RPG(UnityEngi
ne.Rect rect, Verse.Thing thing, System.Boolean inventory)
IL_1096: nop
IL_1097: br => Label92
IL_109C: Label91
IL_109C: ldloc.s 118 (RimWorld.ApparelProperties)
IL_109E: stloc.s 124 (RimWorld.ApparelProperties)
IL_10A0: ldloc.s 63 (System.Boolean)
IL_10A2: brfalse => Label93
IL_10A7: ldloc.s 124 (RimWorld.ApparelProperties)
IL_10A9: ldfld System.Collections.Generic.List`1<Verse.ApparelLayerDef>
RimWorld.ApparelProperties::layers
IL_10AE: call static Verse.ApparelLayerDef
Sandy_Detailed_RPG_Inventory.RPG_ModCheck::GetCloakLayer()
IL_10B3: callvirt virtual System.Boolean
System.Collections.Generic.List`1<Verse.ApparelLayerDef>::Contains(Verse.ApparelLay
erDef item)
IL_10B8: brtrue => Label94
IL_10BD: Label93
IL_10BD: br => Label95
IL_10C2: Label94
IL_10C2: ldloca.s 83 (UnityEngine.Rect)
IL_10C4: ldc.r4 306
IL_10C9: ldc.r4 74
IL_10CE: ldc.r4 64
IL_10D3: ldc.r4 64
IL_10D8: call System.Void UnityEngine.Rect::.ctor(System.Single x,
System.Single y, System.Single width, System.Single height)
IL_10DD: ldarg.0
IL_10DE: ldloc.s 83 (UnityEngine.Rect)
IL_10E0: ldloc.s 76 (RimWorld.Apparel)
IL_10E2: ldc.i4.0
IL_10E3: call System.Void
Sandy_Detailed_RPG_Inventory.Sandy_Detailed_RPG_GearTab::DrawThingRow_RPG(UnityEngi
ne.Rect rect, Verse.Thing thing, System.Boolean inventory)
IL_10E8: nop
IL_10E9: br => Label96
IL_10EE: Label95
IL_10EE: ldloc.s 118 (RimWorld.ApparelProperties)
IL_10F0: stloc.s 125 (RimWorld.ApparelProperties)
IL_10F2: ldloc.s 63 (System.Boolean)
IL_10F4: brfalse => Label97
IL_10F9: ldloc.s 125 (RimWorld.ApparelProperties)
IL_10FB: ldfld System.Collections.Generic.List`1<Verse.ApparelLayerDef>
RimWorld.ApparelProperties::layers
IL_1100: call static Verse.ApparelLayerDef
Sandy_Detailed_RPG_Inventory.RPG_ModCheck::GetArtifactLayer()
IL_1105: callvirt virtual System.Boolean
System.Collections.Generic.List`1<Verse.ApparelLayerDef>::Contains(Verse.ApparelLay
erDef item)
IL_110A: brfalse => Label98
IL_110F: ldloc.s 125 (RimWorld.ApparelProperties)
IL_1111: ldfld System.Collections.Generic.List`1<Verse.BodyPartGroupDef>
RimWorld.ApparelProperties::bodyPartGroups
IL_1116: ldsfld Verse.BodyPartGroupDef
Sandy_Detailed_RPG_Inventory.Sandy_Gear_DefOf::Neck
IL_111B: callvirt virtual System.Boolean
System.Collections.Generic.List`1<Verse.BodyPartGroupDef>::Contains(Verse.BodyPartG
roupDef item)
IL_1120: brtrue => Label99
IL_1125: Label97
IL_1125: Label98
IL_1125: br => Label100
IL_112A: Label99
IL_112A: ldloca.s 84 (UnityEngine.Rect)
IL_112C: ldc.r4 158
IL_1131: ldc.r4 74
IL_1136: ldc.r4 64
IL_113B: ldc.r4 64
IL_1140: call System.Void UnityEngine.Rect::.ctor(System.Single x,
System.Single y, System.Single width, System.Single height)
IL_1145: ldarg.0
IL_1146: ldloc.s 84 (UnityEngine.Rect)
IL_1148: ldloc.s 76 (RimWorld.Apparel)
IL_114A: ldc.i4.0
IL_114B: call System.Void
Sandy_Detailed_RPG_Inventory.Sandy_Detailed_RPG_GearTab::DrawThingRow_RPG(UnityEngi
ne.Rect rect, Verse.Thing thing, System.Boolean inventory)
IL_1150: nop
IL_1151: br => Label101
IL_1156: Label100
IL_1156: ldloc.s 118 (RimWorld.ApparelProperties)
IL_1158: stloc.s 126 (RimWorld.ApparelProperties)
IL_115A: ldloc.s 126 (RimWorld.ApparelProperties)
IL_115C: ldfld System.Collections.Generic.List`1<Verse.BodyPartGroupDef>
RimWorld.ApparelProperties::bodyPartGroups
IL_1161: ldsfld Verse.BodyPartGroupDef
Sandy_Detailed_RPG_Inventory.Sandy_Gear_DefOf::Neck
IL_1166: callvirt virtual System.Boolean
System.Collections.Generic.List`1<Verse.BodyPartGroupDef>::Contains(Verse.BodyPartG
roupDef item)
IL_116B: brfalse => Label102
IL_1170: ldloc.s 126 (RimWorld.ApparelProperties)
IL_1172: ldfld System.Collections.Generic.List`1<Verse.ApparelLayerDef>
RimWorld.ApparelProperties::layers
IL_1177: ldsfld Verse.ApparelLayerDef
Sandy_Detailed_RPG_Inventory.Sandy_Gear_DefOf::Accessories
IL_117C: callvirt virtual System.Boolean
System.Collections.Generic.List`1<Verse.ApparelLayerDef>::Contains(Verse.ApparelLay
erDef item)
IL_1181: brtrue => Label103
IL_1186: Label102
IL_1186: br => Label104
IL_118B: Label103
IL_118B: ldloca.s 85 (UnityEngine.Rect)
IL_118D: ldc.r4 84
IL_1192: ldc.r4 74
IL_1197: ldc.r4 64
IL_119C: ldc.r4 64
IL_11A1: call System.Void UnityEngine.Rect::.ctor(System.Single x,
System.Single y, System.Single width, System.Single height)
IL_11A6: ldarg.0
IL_11A7: ldloc.s 85 (UnityEngine.Rect)
IL_11A9: ldloc.s 76 (RimWorld.Apparel)
IL_11AB: ldc.i4.0
IL_11AC: call System.Void
Sandy_Detailed_RPG_Inventory.Sandy_Detailed_RPG_GearTab::DrawThingRow_RPG(UnityEngi
ne.Rect rect, Verse.Thing thing, System.Boolean inventory)
IL_11B1: nop
IL_11B2: br => Label105
IL_11B7: Label104
IL_11B7: ldloc.s 118 (RimWorld.ApparelProperties)
IL_11B9: stloc.s 127 (RimWorld.ApparelProperties)
IL_11BB: ldloc.s 127 (RimWorld.ApparelProperties)
IL_11BD: ldfld System.Collections.Generic.List`1<Verse.BodyPartGroupDef>
RimWorld.ApparelProperties::bodyPartGroups
IL_11C2: ldsfld Verse.BodyPartGroupDef
Sandy_Detailed_RPG_Inventory.Sandy_Gear_DefOf::Neck
IL_11C7: callvirt virtual System.Boolean
System.Collections.Generic.List`1<Verse.BodyPartGroupDef>::Contains(Verse.BodyPartG
roupDef item)
IL_11CC: brfalse => Label106
IL_11D1: ldloc.s 127 (RimWorld.ApparelProperties)
IL_11D3: ldfld System.Collections.Generic.List`1<Verse.BodyPartGroupDef>
RimWorld.ApparelProperties::bodyPartGroups
IL_11D8: ldsfld Verse.BodyPartGroupDef
Sandy_Detailed_RPG_Inventory.Sandy_Gear_DefOf::Shoulders
IL_11DD: callvirt virtual System.Boolean
System.Collections.Generic.List`1<Verse.BodyPartGroupDef>::Contains(Verse.BodyPartG
roupDef item)
IL_11E2: brtrue => Label107
IL_11E7: ldloc.s 127 (RimWorld.ApparelProperties)
IL_11E9: ldfld System.Collections.Generic.List`1<Verse.ApparelLayerDef>
RimWorld.ApparelProperties::layers
IL_11EE: ldsfld Verse.ApparelLayerDef
RimWorld.ApparelLayerDefOf::Overhead
IL_11F3: callvirt virtual System.Boolean
System.Collections.Generic.List`1<Verse.ApparelLayerDef>::Contains(Verse.ApparelLay
erDef item)
IL_11F8: brfalse => Label108
IL_11FD: ldloc.s 127 (RimWorld.ApparelProperties)
IL_11FF: ldfld System.Collections.Generic.List`1<Verse.BodyPartGroupDef>
RimWorld.ApparelProperties::bodyPartGroups
IL_1204: ldsfld Verse.BodyPartGroupDef RimWorld.BodyPartGroupDefOf::Torso
IL_1209: callvirt virtual System.Boolean
System.Collections.Generic.List`1<Verse.BodyPartGroupDef>::Contains(Verse.BodyPartG
roupDef item)
IL_120E: brfalse => Label109
IL_1213: Label106
IL_1213: Label107
IL_1213: Label108
IL_1213: br => Label110
IL_1218: Label109
IL_1218: ldloca.s 86 (UnityEngine.Rect)
IL_121A: ldc.r4 380
IL_121F: ldc.r4 74
IL_1224: ldc.r4 64
IL_1229: ldc.r4 64
IL_122E: call System.Void UnityEngine.Rect::.ctor(System.Single x,
System.Single y, System.Single width, System.Single height)
IL_1233: ldarg.0
IL_1234: ldloc.s 86 (UnityEngine.Rect)
IL_1236: ldloc.s 76 (RimWorld.Apparel)
IL_1238: ldc.i4.0
IL_1239: call System.Void
Sandy_Detailed_RPG_Inventory.Sandy_Detailed_RPG_GearTab::DrawThingRow_RPG(UnityEngi
ne.Rect rect, Verse.Thing thing, System.Boolean inventory)
IL_123E: nop
IL_123F: br => Label111
IL_1244: Label110
IL_1244: ldloc.s 118 (RimWorld.ApparelProperties)
IL_1246: stloc.s 128 (RimWorld.ApparelProperties)
IL_1248: ldloc.s 128 (RimWorld.ApparelProperties)
IL_124A: ldfld System.Collections.Generic.List`1<Verse.BodyPartGroupDef>
RimWorld.ApparelProperties::bodyPartGroups
IL_124F: ldsfld Verse.BodyPartGroupDef RimWorld.BodyPartGroupDefOf::Torso
IL_1254: callvirt virtual System.Boolean
System.Collections.Generic.List`1<Verse.BodyPartGroupDef>::Contains(Verse.BodyPartG
roupDef item)
IL_1259: brfalse => Label112
IL_125E: ldloc.s 128 (RimWorld.ApparelProperties)
IL_1260: ldfld System.Collections.Generic.List`1<Verse.ApparelLayerDef>
RimWorld.ApparelProperties::layers
IL_1265: ldsfld Verse.ApparelLayerDef
Sandy_Detailed_RPG_Inventory.Sandy_Gear_DefOf::UnderwearTop
IL_126A: callvirt virtual System.Boolean
System.Collections.Generic.List`1<Verse.ApparelLayerDef>::Contains(Verse.ApparelLay
erDef item)
IL_126F: brtrue => Label113
IL_1274: Label112
IL_1274: br => Label114
IL_1279: Label113
IL_1279: ldloca.s 87 (UnityEngine.Rect)
IL_127B: ldc.r4 10
IL_1280: ldc.r4 148
IL_1285: ldc.r4 64
IL_128A: ldc.r4 64
IL_128F: call System.Void UnityEngine.Rect::.ctor(System.Single x,
System.Single y, System.Single width, System.Single height)
IL_1294: ldarg.0
IL_1295: ldloc.s 87 (UnityEngine.Rect)
IL_1297: ldloc.s 76 (RimWorld.Apparel)
IL_1299: ldc.i4.0
IL_129A: call System.Void
Sandy_Detailed_RPG_Inventory.Sandy_Detailed_RPG_GearTab::DrawThingRow_RPG(UnityEngi
ne.Rect rect, Verse.Thing thing, System.Boolean inventory)
IL_129F: nop
IL_12A0: br => Label115
IL_12A5: Label114
IL_12A5: ldloc.s 118 (RimWorld.ApparelProperties)
IL_12A7: stloc.s 129 (RimWorld.ApparelProperties)
IL_12A9: ldloc.s 129 (RimWorld.ApparelProperties)
IL_12AB: ldfld System.Collections.Generic.List`1<Verse.BodyPartGroupDef>
RimWorld.ApparelProperties::bodyPartGroups
IL_12B0: ldsfld Verse.BodyPartGroupDef RimWorld.BodyPartGroupDefOf::Torso
IL_12B5: callvirt virtual System.Boolean
System.Collections.Generic.List`1<Verse.BodyPartGroupDef>::Contains(Verse.BodyPartG
roupDef item)
IL_12BA: brfalse => Label116
IL_12BF: ldloc.s 129 (RimWorld.ApparelProperties)
IL_12C1: ldfld System.Collections.Generic.List`1<Verse.ApparelLayerDef>
RimWorld.ApparelProperties::layers
IL_12C6: ldsfld Verse.ApparelLayerDef RimWorld.ApparelLayerDefOf::Shell
IL_12CB: callvirt virtual System.Boolean
System.Collections.Generic.List`1<Verse.ApparelLayerDef>::Contains(Verse.ApparelLay
erDef item)
IL_12D0: brtrue => Label117
IL_12D5: ldloc.s 129 (RimWorld.ApparelProperties)
IL_12D7: ldfld System.Collections.Generic.List`1<Verse.ApparelLayerDef>
RimWorld.ApparelProperties::layers
IL_12DC: ldsfld Verse.ApparelLayerDef RimWorld.ApparelLayerDefOf::Middle
IL_12E1: callvirt virtual System.Boolean
System.Collections.Generic.List`1<Verse.ApparelLayerDef>::Contains(Verse.ApparelLay
erDef item)
IL_12E6: brtrue => Label118
IL_12EB: Label116
IL_12EB: Label117
IL_12EB: br => Label119
IL_12F0: Label118
IL_12F0: ldloca.s 88 (UnityEngine.Rect)
IL_12F2: ldc.r4 158
IL_12F7: ldc.r4 148
IL_12FC: ldc.r4 64
IL_1301: ldc.r4 64
IL_1306: call System.Void UnityEngine.Rect::.ctor(System.Single x,
System.Single y, System.Single width, System.Single height)
IL_130B: ldarg.0
IL_130C: ldloc.s 88 (UnityEngine.Rect)
IL_130E: ldloc.s 76 (RimWorld.Apparel)
IL_1310: ldc.i4.0
IL_1311: call System.Void
Sandy_Detailed_RPG_Inventory.Sandy_Detailed_RPG_GearTab::DrawThingRow_RPG(UnityEngi
ne.Rect rect, Verse.Thing thing, System.Boolean inventory)
IL_1316: nop
IL_1317: br => Label120
IL_131C: Label119
IL_131C: ldloc.s 118 (RimWorld.ApparelProperties)
IL_131E: stloc.s 130 (RimWorld.ApparelProperties)
IL_1320: ldloc.s 130 (RimWorld.ApparelProperties)
IL_1322: ldfld System.Collections.Generic.List`1<Verse.BodyPartGroupDef>
RimWorld.ApparelProperties::bodyPartGroups
IL_1327: ldsfld Verse.BodyPartGroupDef RimWorld.BodyPartGroupDefOf::Torso
IL_132C: callvirt virtual System.Boolean
System.Collections.Generic.List`1<Verse.BodyPartGroupDef>::Contains(Verse.BodyPartG
roupDef item)
IL_1331: brfalse => Label121
IL_1336: ldloc.s 130 (RimWorld.ApparelProperties)
IL_1338: ldfld System.Collections.Generic.List`1<Verse.ApparelLayerDef>
RimWorld.ApparelProperties::layers
IL_133D: ldsfld Verse.ApparelLayerDef RimWorld.ApparelLayerDefOf::OnSkin
IL_1342: callvirt virtual System.Boolean
System.Collections.Generic.List`1<Verse.ApparelLayerDef>::Contains(Verse.ApparelLay
erDef item)
IL_1347: brfalse => Label122
IL_134C: ldloc.s 130 (RimWorld.ApparelProperties)
IL_134E: ldfld System.Collections.Generic.List`1<Verse.ApparelLayerDef>
RimWorld.ApparelProperties::layers
IL_1353: ldsfld Verse.ApparelLayerDef RimWorld.ApparelLayerDefOf::Middle
IL_1358: callvirt virtual System.Boolean
System.Collections.Generic.List`1<Verse.ApparelLayerDef>::Contains(Verse.ApparelLay
erDef item)
IL_135D: brtrue => Label123
IL_1362: ldloc.s 130 (RimWorld.ApparelProperties)
IL_1364: ldfld System.Collections.Generic.List`1<Verse.ApparelLayerDef>
RimWorld.ApparelProperties::layers
IL_1369: ldsfld Verse.ApparelLayerDef RimWorld.ApparelLayerDefOf::Shell
IL_136E: callvirt virtual System.Boolean
System.Collections.Generic.List`1<Verse.ApparelLayerDef>::Contains(Verse.ApparelLay
erDef item)
IL_1373: brfalse => Label124
IL_1378: Label121
IL_1378: Label122
IL_1378: Label123
IL_1378: br => Label125
IL_137D: Label124
IL_137D: ldloca.s 89 (UnityEngine.Rect)
IL_137F: ldc.r4 232
IL_1384: ldc.r4 148
IL_1389: ldc.r4 64
IL_138E: ldc.r4 64
IL_1393: call System.Void UnityEngine.Rect::.ctor(System.Single x,
System.Single y, System.Single width, System.Single height)
IL_1398: ldarg.0
IL_1399: ldloc.s 89 (UnityEngine.Rect)
IL_139B: ldloc.s 76 (RimWorld.Apparel)
IL_139D: ldc.i4.0
IL_139E: call System.Void
Sandy_Detailed_RPG_Inventory.Sandy_Detailed_RPG_GearTab::DrawThingRow_RPG(UnityEngi
ne.Rect rect, Verse.Thing thing, System.Boolean inventory)
IL_13A3: nop
IL_13A4: br => Label126
IL_13A9: Label125
IL_13A9: ldloc.s 118 (RimWorld.ApparelProperties)
IL_13AB: stloc.s 131 (RimWorld.ApparelProperties)
IL_13AD: ldloc.s 131 (RimWorld.ApparelProperties)
IL_13AF: ldfld System.Collections.Generic.List`1<Verse.BodyPartGroupDef>
RimWorld.ApparelProperties::bodyPartGroups
IL_13B4: ldsfld Verse.BodyPartGroupDef RimWorld.BodyPartGroupDefOf::Torso
IL_13B9: callvirt virtual System.Boolean
System.Collections.Generic.List`1<Verse.BodyPartGroupDef>::Contains(Verse.BodyPartG
roupDef item)
IL_13BE: brfalse => Label127
IL_13C3: ldloc.s 131 (RimWorld.ApparelProperties)
IL_13C5: ldfld System.Collections.Generic.List`1<Verse.ApparelLayerDef>
RimWorld.ApparelProperties::layers
IL_13CA: ldsfld Verse.ApparelLayerDef RimWorld.ApparelLayerDefOf::Shell
IL_13CF: callvirt virtual System.Boolean
System.Collections.Generic.List`1<Verse.ApparelLayerDef>::Contains(Verse.ApparelLay
erDef item)
IL_13D4: brtrue => Label128
IL_13D9: Label127
IL_13D9: br => Label129
IL_13DE: Label128
IL_13DE: ldloca.s 90 (UnityEngine.Rect)
IL_13E0: ldc.r4 306
IL_13E5: ldc.r4 148
IL_13EA: ldc.r4 64
IL_13EF: ldc.r4 64
IL_13F4: call System.Void UnityEngine.Rect::.ctor(System.Single x,
System.Single y, System.Single width, System.Single height)
IL_13F9: ldarg.0
IL_13FA: ldloc.s 90 (UnityEngine.Rect)
IL_13FC: ldloc.s 76 (RimWorld.Apparel)
IL_13FE: ldc.i4.0
IL_13FF: call System.Void
Sandy_Detailed_RPG_Inventory.Sandy_Detailed_RPG_GearTab::DrawThingRow_RPG(UnityEngi
ne.Rect rect, Verse.Thing thing, System.Boolean inventory)
IL_1404: nop
IL_1405: br => Label130
IL_140A: Label129
IL_140A: ldloc.s 118 (RimWorld.ApparelProperties)
IL_140C: stloc.s 132 (RimWorld.ApparelProperties)
IL_140E: ldloc.s 132 (RimWorld.ApparelProperties)
IL_1410: ldfld System.Collections.Generic.List`1<Verse.BodyPartGroupDef>
RimWorld.ApparelProperties::bodyPartGroups
IL_1415: ldsfld Verse.BodyPartGroupDef
Sandy_Detailed_RPG_Inventory.Sandy_Gear_DefOf::Shoulders
IL_141A: callvirt virtual System.Boolean
System.Collections.Generic.List`1<Verse.BodyPartGroupDef>::Contains(Verse.BodyPartG
roupDef item)
IL_141F: brfalse => Label131
IL_1424: ldloc.s 132 (RimWorld.ApparelProperties)
IL_1426: ldfld System.Collections.Generic.List`1<Verse.ApparelLayerDef>
RimWorld.ApparelProperties::layers
IL_142B: ldsfld Verse.ApparelLayerDef RimWorld.ApparelLayerDefOf::OnSkin
IL_1430: callvirt virtual System.Boolean
System.Collections.Generic.List`1<Verse.ApparelLayerDef>::Contains(Verse.ApparelLay
erDef item)
IL_1435: brfalse => Label132
IL_143A: ldloc.s 132 (RimWorld.ApparelProperties)
IL_143C: ldfld System.Collections.Generic.List`1<Verse.ApparelLayerDef>
RimWorld.ApparelProperties::layers
IL_1441: ldsfld Verse.ApparelLayerDef RimWorld.ApparelLayerDefOf::Middle
IL_1446: callvirt virtual System.Boolean
System.Collections.Generic.List`1<Verse.ApparelLayerDef>::Contains(Verse.ApparelLay
erDef item)
IL_144B: brtrue => Label133
IL_1450: ldloc.s 132 (RimWorld.ApparelProperties)
IL_1452: ldfld System.Collections.Generic.List`1<Verse.ApparelLayerDef>
RimWorld.ApparelProperties::layers
IL_1457: ldsfld Verse.ApparelLayerDef RimWorld.ApparelLayerDefOf::Shell
IL_145C: callvirt virtual System.Boolean
System.Collections.Generic.List`1<Verse.ApparelLayerDef>::Contains(Verse.ApparelLay
erDef item)
IL_1461: brtrue => Label134
IL_1466: ldloc.s 132 (RimWorld.ApparelProperties)
IL_1468: ldfld System.Collections.Generic.List`1<Verse.BodyPartGroupDef>
RimWorld.ApparelProperties::bodyPartGroups
IL_146D: ldsfld Verse.BodyPartGroupDef RimWorld.BodyPartGroupDefOf::Torso
IL_1472: callvirt virtual System.Boolean
System.Collections.Generic.List`1<Verse.BodyPartGroupDef>::Contains(Verse.BodyPartG
roupDef item)
IL_1477: brtrue => Label135
IL_147C: ldloc.s 132 (RimWorld.ApparelProperties)
IL_147E: ldfld System.Collections.Generic.List`1<Verse.BodyPartGroupDef>
RimWorld.ApparelProperties::bodyPartGroups
IL_1483: ldsfld Verse.BodyPartGroupDef
RimWorld.BodyPartGroupDefOf::LeftHand
IL_1488: callvirt virtual System.Boolean
System.Collections.Generic.List`1<Verse.BodyPartGroupDef>::Contains(Verse.BodyPartG
roupDef item)
IL_148D: brtrue => Label136
IL_1492: ldloc.s 132 (RimWorld.ApparelProperties)
IL_1494: ldfld System.Collections.Generic.List`1<Verse.BodyPartGroupDef>
RimWorld.ApparelProperties::bodyPartGroups
IL_1499: ldsfld Verse.BodyPartGroupDef
RimWorld.BodyPartGroupDefOf::RightHand
IL_149E: callvirt virtual System.Boolean
System.Collections.Generic.List`1<Verse.BodyPartGroupDef>::Contains(Verse.BodyPartG
roupDef item)
IL_14A3: brfalse => Label137
IL_14A8: Label131
IL_14A8: Label132
IL_14A8: Label133
IL_14A8: Label134
IL_14A8: Label135
IL_14A8: Label136
IL_14A8: br => Label138
IL_14AD: Label137
IL_14AD: ldloca.s 91 (UnityEngine.Rect)
IL_14AF: ldc.r4 84
IL_14B4: ldc.r4 148
IL_14B9: ldc.r4 64
IL_14BE: ldc.r4 64
IL_14C3: call System.Void UnityEngine.Rect::.ctor(System.Single x,
System.Single y, System.Single width, System.Single height)
IL_14C8: ldarg.0
IL_14C9: ldloc.s 91 (UnityEngine.Rect)
IL_14CB: ldloc.s 76 (RimWorld.Apparel)
IL_14CD: ldc.i4.0
IL_14CE: call System.Void
Sandy_Detailed_RPG_Inventory.Sandy_Detailed_RPG_GearTab::DrawThingRow_RPG(UnityEngi
ne.Rect rect, Verse.Thing thing, System.Boolean inventory)
IL_14D3: nop
IL_14D4: br => Label139
IL_14D9: Label138
IL_14D9: ldloc.s 118 (RimWorld.ApparelProperties)
IL_14DB: stloc.s 133 (RimWorld.ApparelProperties)
IL_14DD: ldloc.s 133 (RimWorld.ApparelProperties)
IL_14DF: ldfld System.Collections.Generic.List`1<Verse.BodyPartGroupDef>
RimWorld.ApparelProperties::bodyPartGroups
IL_14E4: ldsfld Verse.BodyPartGroupDef
Sandy_Detailed_RPG_Inventory.Sandy_Gear_DefOf::Shoulders
IL_14E9: callvirt virtual System.Boolean
System.Collections.Generic.List`1<Verse.BodyPartGroupDef>::Contains(Verse.BodyPartG
roupDef item)
IL_14EE: brfalse => Label140
IL_14F3: ldloc.s 133 (RimWorld.ApparelProperties)
IL_14F5: ldfld System.Collections.Generic.List`1<Verse.ApparelLayerDef>
RimWorld.ApparelProperties::layers
IL_14FA: ldsfld Verse.ApparelLayerDef RimWorld.ApparelLayerDefOf::Shell
IL_14FF: callvirt virtual System.Boolean
System.Collections.Generic.List`1<Verse.ApparelLayerDef>::Contains(Verse.ApparelLay
erDef item)
IL_1504: brfalse => Label141
IL_1509: ldloc.s 133 (RimWorld.ApparelProperties)
IL_150B: ldfld System.Collections.Generic.List`1<Verse.BodyPartGroupDef>
RimWorld.ApparelProperties::bodyPartGroups
IL_1510: ldsfld Verse.BodyPartGroupDef RimWorld.BodyPartGroupDefOf::Torso
IL_1515: callvirt virtual System.Boolean
System.Collections.Generic.List`1<Verse.BodyPartGroupDef>::Contains(Verse.BodyPartG
roupDef item)
IL_151A: brtrue => Label142
IL_151F: ldloc.s 133 (RimWorld.ApparelProperties)
IL_1521: ldfld System.Collections.Generic.List`1<Verse.BodyPartGroupDef>
RimWorld.ApparelProperties::bodyPartGroups
IL_1526: ldsfld Verse.BodyPartGroupDef
RimWorld.BodyPartGroupDefOf::LeftHand
IL_152B: callvirt virtual System.Boolean
System.Collections.Generic.List`1<Verse.BodyPartGroupDef>::Contains(Verse.BodyPartG
roupDef item)
IL_1530: brtrue => Label143
IL_1535: ldloc.s 133 (RimWorld.ApparelProperties)
IL_1537: ldfld System.Collections.Generic.List`1<Verse.BodyPartGroupDef>
RimWorld.ApparelProperties::bodyPartGroups
IL_153C: ldsfld Verse.BodyPartGroupDef
RimWorld.BodyPartGroupDefOf::RightHand
IL_1541: callvirt virtual System.Boolean
System.Collections.Generic.List`1<Verse.BodyPartGroupDef>::Contains(Verse.BodyPartG
roupDef item)
IL_1546: brfalse => Label144
IL_154B: Label140
IL_154B: Label141
IL_154B: Label142
IL_154B: Label143
IL_154B: br => Label145
IL_1550: Label144
IL_1550: ldloca.s 92 (UnityEngine.Rect)
IL_1552: ldc.r4 380
IL_1557: ldc.r4 148
IL_155C: ldc.r4 64
IL_1561: ldc.r4 64
IL_1566: call System.Void UnityEngine.Rect::.ctor(System.Single x,
System.Single y, System.Single width, System.Single height)
IL_156B: ldarg.0
IL_156C: ldloc.s 92 (UnityEngine.Rect)
IL_156E: ldloc.s 76 (RimWorld.Apparel)
IL_1570: ldc.i4.0
IL_1571: call System.Void
Sandy_Detailed_RPG_Inventory.Sandy_Detailed_RPG_GearTab::DrawThingRow_RPG(UnityEngi
ne.Rect rect, Verse.Thing thing, System.Boolean inventory)
IL_1576: nop
IL_1577: br => Label146
IL_157C: Label145
IL_157C: ldloc.s 118 (RimWorld.ApparelProperties)
IL_157E: stloc.s 134 (RimWorld.ApparelProperties)
IL_1580: ldloc.s 134 (RimWorld.ApparelProperties)
IL_1582: ldfld System.Collections.Generic.List`1<Verse.BodyPartGroupDef>
RimWorld.ApparelProperties::bodyPartGroups
IL_1587: ldsfld Verse.BodyPartGroupDef
Sandy_Detailed_RPG_Inventory.Sandy_Gear_DefOf::Waist
IL_158C: callvirt virtual System.Boolean
System.Collections.Generic.List`1<Verse.BodyPartGroupDef>::Contains(Verse.BodyPartG
roupDef item)
IL_1591: brfalse => Label147
IL_1596: ldloc.s 134 (RimWorld.ApparelProperties)
IL_1598: ldfld System.Collections.Generic.List`1<Verse.ApparelLayerDef>
RimWorld.ApparelProperties::layers
IL_159D: ldsfld Verse.ApparelLayerDef
Sandy_Detailed_RPG_Inventory.Sandy_Gear_DefOf::Underwear
IL_15A2: callvirt virtual System.Boolean
System.Collections.Generic.List`1<Verse.ApparelLayerDef>::Contains(Verse.ApparelLay
erDef item)
IL_15A7: brfalse => Label148
IL_15AC: ldloc.s 134 (RimWorld.ApparelProperties)
IL_15AE: ldfld System.Collections.Generic.List`1<Verse.BodyPartGroupDef>
RimWorld.ApparelProperties::bodyPartGroups
IL_15B3: ldsfld Verse.BodyPartGroupDef RimWorld.BodyPartGroupDefOf::Torso
IL_15B8: callvirt virtual System.Boolean
System.Collections.Generic.List`1<Verse.BodyPartGroupDef>::Contains(Verse.BodyPartG
roupDef item)
IL_15BD: brfalse => Label149
IL_15C2: Label147
IL_15C2: Label148
IL_15C2: br => Label150
IL_15C7: Label149
IL_15C7: ldloca.s 93 (UnityEngine.Rect)
IL_15C9: ldc.r4 10
IL_15CE: ldc.r4 222
IL_15D3: ldc.r4 64
IL_15D8: ldc.r4 64
IL_15DD: call System.Void UnityEngine.Rect::.ctor(System.Single x,
System.Single y, System.Single width, System.Single height)
IL_15E2: ldarg.0
IL_15E3: ldloc.s 93 (UnityEngine.Rect)
IL_15E5: ldloc.s 76 (RimWorld.Apparel)
IL_15E7: ldc.i4.0
IL_15E8: call System.Void
Sandy_Detailed_RPG_Inventory.Sandy_Detailed_RPG_GearTab::DrawThingRow_RPG(UnityEngi
ne.Rect rect, Verse.Thing thing, System.Boolean inventory)
IL_15ED: nop
IL_15EE: br => Label151
IL_15F3: Label150
IL_15F3: ldloc.s 118 (RimWorld.ApparelProperties)
IL_15F5: stloc.s 135 (RimWorld.ApparelProperties)
IL_15F7: ldloc.s 135 (RimWorld.ApparelProperties)
IL_15F9: ldfld System.Collections.Generic.List`1<Verse.BodyPartGroupDef>
RimWorld.ApparelProperties::bodyPartGroups
IL_15FE: ldsfld Verse.BodyPartGroupDef
Sandy_Detailed_RPG_Inventory.Sandy_Gear_DefOf::Waist
IL_1603: callvirt virtual System.Boolean
System.Collections.Generic.List`1<Verse.BodyPartGroupDef>::Contains(Verse.BodyPartG
roupDef item)
IL_1608: brfalse => Label152
IL_160D: ldloc.s 135 (RimWorld.ApparelProperties)
IL_160F: ldfld System.Collections.Generic.List`1<Verse.ApparelLayerDef>
RimWorld.ApparelProperties::layers
IL_1614: ldsfld Verse.ApparelLayerDef RimWorld.ApparelLayerDefOf::OnSkin
IL_1619: callvirt virtual System.Boolean
System.Collections.Generic.List`1<Verse.ApparelLayerDef>::Contains(Verse.ApparelLay
erDef item)
IL_161E: brfalse => Label153
IL_1623: ldloc.s 135 (RimWorld.ApparelProperties)
IL_1625: ldfld System.Collections.Generic.List`1<Verse.ApparelLayerDef>
RimWorld.ApparelProperties::layers
IL_162A: ldsfld Verse.ApparelLayerDef RimWorld.ApparelLayerDefOf::Middle
IL_162F: callvirt virtual System.Boolean
System.Collections.Generic.List`1<Verse.ApparelLayerDef>::Contains(Verse.ApparelLay
erDef item)
IL_1634: brtrue => Label154
IL_1639: ldloc.s 135 (RimWorld.ApparelProperties)
IL_163B: ldfld System.Collections.Generic.List`1<Verse.ApparelLayerDef>
RimWorld.ApparelProperties::layers
IL_1640: ldsfld Verse.ApparelLayerDef RimWorld.ApparelLayerDefOf::Shell
IL_1645: callvirt virtual System.Boolean
System.Collections.Generic.List`1<Verse.ApparelLayerDef>::Contains(Verse.ApparelLay
erDef item)
IL_164A: brfalse => Label155
IL_164F: Label152
IL_164F: Label153
IL_164F: Label154
IL_164F: br => Label156
IL_1654: Label155
IL_1654: ldloca.s 94 (UnityEngine.Rect)
IL_1656: ldc.r4 232
IL_165B: ldc.r4 222
IL_1660: ldc.r4 64
IL_1665: ldc.r4 64
IL_166A: call System.Void UnityEngine.Rect::.ctor(System.Single x,
System.Single y, System.Single width, System.Single height)
IL_166F: ldarg.0
IL_1670: ldloc.s 94 (UnityEngine.Rect)
IL_1672: ldloc.s 76 (RimWorld.Apparel)
IL_1674: ldc.i4.0
IL_1675: call System.Void
Sandy_Detailed_RPG_Inventory.Sandy_Detailed_RPG_GearTab::DrawThingRow_RPG(UnityEngi
ne.Rect rect, Verse.Thing thing, System.Boolean inventory)
IL_167A: nop
IL_167B: br => Label157
IL_1680: Label156
IL_1680: ldloc.s 118 (RimWorld.ApparelProperties)
IL_1682: stloc.s 136 (RimWorld.ApparelProperties)
IL_1684: ldloc.s 136 (RimWorld.ApparelProperties)
IL_1686: ldfld System.Collections.Generic.List`1<Verse.BodyPartGroupDef>
RimWorld.ApparelProperties::bodyPartGroups
IL_168B: ldsfld Verse.BodyPartGroupDef
Sandy_Detailed_RPG_Inventory.Sandy_Gear_DefOf::Waist
IL_1690: callvirt virtual System.Boolean
System.Collections.Generic.List`1<Verse.BodyPartGroupDef>::Contains(Verse.BodyPartG
roupDef item)
IL_1695: brfalse => Label158
IL_169A: ldloc.s 136 (RimWorld.ApparelProperties)
IL_169C: ldfld System.Collections.Generic.List`1<Verse.ApparelLayerDef>
RimWorld.ApparelProperties::layers
IL_16A1: ldsfld Verse.ApparelLayerDef RimWorld.ApparelLayerDefOf::Shell
IL_16A6: callvirt virtual System.Boolean
System.Collections.Generic.List`1<Verse.ApparelLayerDef>::Contains(Verse.ApparelLay
erDef item)
IL_16AB: brtrue => Label159
IL_16B0: Label158
IL_16B0: br => Label160
IL_16B5: Label159
IL_16B5: ldloca.s 95 (UnityEngine.Rect)
IL_16B7: ldc.r4 158
IL_16BC: ldc.r4 222
IL_16C1: ldc.r4 64
IL_16C6: ldc.r4 64
IL_16CB: call System.Void UnityEngine.Rect::.ctor(System.Single x,
System.Single y, System.Single width, System.Single height)
IL_16D0: ldarg.0
IL_16D1: ldloc.s 95 (UnityEngine.Rect)
IL_16D3: ldloc.s 76 (RimWorld.Apparel)
IL_16D5: ldc.i4.0
IL_16D6: call System.Void
Sandy_Detailed_RPG_Inventory.Sandy_Detailed_RPG_GearTab::DrawThingRow_RPG(UnityEngi
ne.Rect rect, Verse.Thing thing, System.Boolean inventory)
IL_16DB: nop
IL_16DC: br => Label161
IL_16E1: Label160
IL_16E1: ldloc.s 118 (RimWorld.ApparelProperties)
IL_16E3: stloc.s 137 (RimWorld.ApparelProperties)
IL_16E5: ldloc.s 137 (RimWorld.ApparelProperties)
IL_16E7: ldfld System.Collections.Generic.List`1<Verse.BodyPartGroupDef>
RimWorld.ApparelProperties::bodyPartGroups
IL_16EC: ldsfld Verse.BodyPartGroupDef RimWorld.BodyPartGroupDefOf::Legs
IL_16F1: callvirt virtual System.Boolean
System.Collections.Generic.List`1<Verse.BodyPartGroupDef>::Contains(Verse.BodyPartG
roupDef item)
IL_16F6: brfalse => Label162
IL_16FB: ldloc.s 137 (RimWorld.ApparelProperties)
IL_16FD: ldfld System.Collections.Generic.List`1<Verse.ApparelLayerDef>
RimWorld.ApparelProperties::layers
IL_1702: ldsfld Verse.ApparelLayerDef
Sandy_Detailed_RPG_Inventory.Sandy_Gear_DefOf::Underwear
IL_1707: callvirt virtual System.Boolean
System.Collections.Generic.List`1<Verse.ApparelLayerDef>::Contains(Verse.ApparelLay
erDef item)
IL_170C: brtrue => Label163
IL_1711: Label162
IL_1711: br => Label164
IL_1716: Label163
IL_1716: ldloca.s 96 (UnityEngine.Rect)
IL_1718: ldc.r4 10
IL_171D: ldc.r4 296
IL_1722: ldc.r4 64
IL_1727: ldc.r4 64
IL_172C: call System.Void UnityEngine.Rect::.ctor(System.Single x,
System.Single y, System.Single width, System.Single height)
IL_1731: ldarg.0
IL_1732: ldloc.s 96 (UnityEngine.Rect)
IL_1734: ldloc.s 76 (RimWorld.Apparel)
IL_1736: ldc.i4.0
IL_1737: call System.Void
Sandy_Detailed_RPG_Inventory.Sandy_Detailed_RPG_GearTab::DrawThingRow_RPG(UnityEngi
ne.Rect rect, Verse.Thing thing, System.Boolean inventory)
IL_173C: nop
IL_173D: br => Label165
IL_1742: Label164
IL_1742: ldloc.s 118 (RimWorld.ApparelProperties)
IL_1744: stloc.s 138 (RimWorld.ApparelProperties)
IL_1746: ldloc.s 138 (RimWorld.ApparelProperties)
IL_1748: ldfld System.Collections.Generic.List`1<Verse.BodyPartGroupDef>
RimWorld.ApparelProperties::bodyPartGroups
IL_174D: ldsfld Verse.BodyPartGroupDef RimWorld.BodyPartGroupDefOf::Legs
IL_1752: callvirt virtual System.Boolean
System.Collections.Generic.List`1<Verse.BodyPartGroupDef>::Contains(Verse.BodyPartG
roupDef item)
IL_1757: brfalse => Label166
IL_175C: ldloc.s 138 (RimWorld.ApparelProperties)
IL_175E: ldfld System.Collections.Generic.List`1<Verse.ApparelLayerDef>
RimWorld.ApparelProperties::layers
IL_1763: ldsfld Verse.ApparelLayerDef RimWorld.ApparelLayerDefOf::Middle
IL_1768: callvirt virtual System.Boolean
System.Collections.Generic.List`1<Verse.ApparelLayerDef>::Contains(Verse.ApparelLay
erDef item)
IL_176D: brfalse => Label167
IL_1772: ldloc.s 138 (RimWorld.ApparelProperties)
IL_1774: ldfld System.Collections.Generic.List`1<Verse.ApparelLayerDef>
RimWorld.ApparelProperties::layers
IL_1779: ldsfld Verse.ApparelLayerDef RimWorld.ApparelLayerDefOf::Shell
IL_177E: callvirt virtual System.Boolean
System.Collections.Generic.List`1<Verse.ApparelLayerDef>::Contains(Verse.ApparelLay
erDef item)
IL_1783: brtrue => Label168
IL_1788: ldloc.s 138 (RimWorld.ApparelProperties)
IL_178A: ldfld System.Collections.Generic.List`1<Verse.BodyPartGroupDef>
RimWorld.ApparelProperties::bodyPartGroups
IL_178F: ldsfld Verse.BodyPartGroupDef RimWorld.BodyPartGroupDefOf::Torso
IL_1794: callvirt virtual System.Boolean
System.Collections.Generic.List`1<Verse.BodyPartGroupDef>::Contains(Verse.BodyPartG
roupDef item)
IL_1799: brfalse => Label169
IL_179E: Label166
IL_179E: Label167
IL_179E: Label168
IL_179E: br => Label170
IL_17A3: Label169
IL_17A3: ldloca.s 97 (UnityEngine.Rect)
IL_17A5: ldc.r4 158
IL_17AA: ldc.r4 296
IL_17AF: ldc.r4 64
IL_17B4: ldc.r4 64
IL_17B9: call System.Void UnityEngine.Rect::.ctor(System.Single x,
System.Single y, System.Single width, System.Single height)
IL_17BE: ldarg.0
IL_17BF: ldloc.s 97 (UnityEngine.Rect)
IL_17C1: ldloc.s 76 (RimWorld.Apparel)
IL_17C3: ldc.i4.0
IL_17C4: call System.Void
Sandy_Detailed_RPG_Inventory.Sandy_Detailed_RPG_GearTab::DrawThingRow_RPG(UnityEngi
ne.Rect rect, Verse.Thing thing, System.Boolean inventory)
IL_17C9: nop
IL_17CA: br => Label171
IL_17CF: Label170
IL_17CF: ldloc.s 118 (RimWorld.ApparelProperties)
IL_17D1: stloc.s 139 (RimWorld.ApparelProperties)
IL_17D3: ldloc.s 139 (RimWorld.ApparelProperties)
IL_17D5: ldfld System.Collections.Generic.List`1<Verse.BodyPartGroupDef>
RimWorld.ApparelProperties::bodyPartGroups
IL_17DA: ldsfld Verse.BodyPartGroupDef RimWorld.BodyPartGroupDefOf::Legs
IL_17DF: callvirt virtual System.Boolean
System.Collections.Generic.List`1<Verse.BodyPartGroupDef>::Contains(Verse.BodyPartG
roupDef item)
IL_17E4: brfalse => Label172
IL_17E9: ldloc.s 139 (RimWorld.ApparelProperties)
IL_17EB: ldfld System.Collections.Generic.List`1<Verse.ApparelLayerDef>
RimWorld.ApparelProperties::layers
IL_17F0: ldsfld Verse.ApparelLayerDef RimWorld.ApparelLayerDefOf::Middle
IL_17F5: callvirt virtual System.Boolean
System.Collections.Generic.List`1<Verse.ApparelLayerDef>::Contains(Verse.ApparelLay
erDef item)
IL_17FA: brtrue => Label173
IL_17FF: ldloc.s 139 (RimWorld.ApparelProperties)
IL_1801: ldfld System.Collections.Generic.List`1<Verse.ApparelLayerDef>
RimWorld.ApparelProperties::layers
IL_1806: ldsfld Verse.ApparelLayerDef RimWorld.ApparelLayerDefOf::OnSkin
IL_180B: callvirt virtual System.Boolean
System.Collections.Generic.List`1<Verse.ApparelLayerDef>::Contains(Verse.ApparelLay
erDef item)
IL_1810: brfalse => Label174
IL_1815: ldloc.s 139 (RimWorld.ApparelProperties)
IL_1817: ldfld System.Collections.Generic.List`1<Verse.ApparelLayerDef>
RimWorld.ApparelProperties::layers
IL_181C: ldsfld Verse.ApparelLayerDef RimWorld.ApparelLayerDefOf::Shell
IL_1821: callvirt virtual System.Boolean
System.Collections.Generic.List`1<Verse.ApparelLayerDef>::Contains(Verse.ApparelLay
erDef item)
IL_1826: brtrue => Label175
IL_182B: ldloc.s 139 (RimWorld.ApparelProperties)
IL_182D: ldfld System.Collections.Generic.List`1<Verse.BodyPartGroupDef>
RimWorld.ApparelProperties::bodyPartGroups
IL_1832: ldsfld Verse.BodyPartGroupDef RimWorld.BodyPartGroupDefOf::Torso
IL_1837: callvirt virtual System.Boolean
System.Collections.Generic.List`1<Verse.BodyPartGroupDef>::Contains(Verse.BodyPartG
roupDef item)
IL_183C: brfalse => Label176
IL_1841: Label172
IL_1841: Label173
IL_1841: Label174
IL_1841: Label175
IL_1841: br => Label177
IL_1846: Label176
IL_1846: ldloca.s 98 (UnityEngine.Rect)
IL_1848: ldc.r4 232
IL_184D: ldc.r4 296
IL_1852: ldc.r4 64
IL_1857: ldc.r4 64
IL_185C: call System.Void UnityEngine.Rect::.ctor(System.Single x,
System.Single y, System.Single width, System.Single height)
IL_1861: ldarg.0
IL_1862: ldloc.s 98 (UnityEngine.Rect)
IL_1864: ldloc.s 76 (RimWorld.Apparel)
IL_1866: ldc.i4.0
IL_1867: call System.Void
Sandy_Detailed_RPG_Inventory.Sandy_Detailed_RPG_GearTab::DrawThingRow_RPG(UnityEngi
ne.Rect rect, Verse.Thing thing, System.Boolean inventory)
IL_186C: nop
IL_186D: br => Label178
IL_1872: Label177
IL_1872: ldloc.s 118 (RimWorld.ApparelProperties)
IL_1874: stloc.s 140 (RimWorld.ApparelProperties)
IL_1876: ldloc.s 140 (RimWorld.ApparelProperties)
IL_1878: ldfld System.Collections.Generic.List`1<Verse.BodyPartGroupDef>
RimWorld.ApparelProperties::bodyPartGroups
IL_187D: ldsfld Verse.BodyPartGroupDef RimWorld.BodyPartGroupDefOf::Legs
IL_1882: callvirt virtual System.Boolean
System.Collections.Generic.List`1<Verse.BodyPartGroupDef>::Contains(Verse.BodyPartG
roupDef item)
IL_1887: brfalse => Label179
IL_188C: ldloc.s 140 (RimWorld.ApparelProperties)
IL_188E: ldfld System.Collections.Generic.List`1<Verse.ApparelLayerDef>
RimWorld.ApparelProperties::layers
IL_1893: ldsfld Verse.ApparelLayerDef RimWorld.ApparelLayerDefOf::Shell
IL_1898: callvirt virtual System.Boolean
System.Collections.Generic.List`1<Verse.ApparelLayerDef>::Contains(Verse.ApparelLay
erDef item)
IL_189D: brfalse => Label180
IL_18A2: ldloc.s 140 (RimWorld.ApparelProperties)
IL_18A4: ldfld System.Collections.Generic.List`1<Verse.BodyPartGroupDef>
RimWorld.ApparelProperties::bodyPartGroups
IL_18A9: ldsfld Verse.BodyPartGroupDef RimWorld.BodyPartGroupDefOf::Torso
IL_18AE: callvirt virtual System.Boolean
System.Collections.Generic.List`1<Verse.BodyPartGroupDef>::Contains(Verse.BodyPartG
roupDef item)
IL_18B3: brfalse => Label181
IL_18B8: Label179
IL_18B8: Label180
IL_18B8: br => Label182
IL_18BD: Label181
IL_18BD: ldloca.s 99 (UnityEngine.Rect)
IL_18BF: ldc.r4 306
IL_18C4: ldc.r4 296
IL_18C9: ldc.r4 64
IL_18CE: ldc.r4 64
IL_18D3: call System.Void UnityEngine.Rect::.ctor(System.Single x,
System.Single y, System.Single width, System.Single height)
IL_18D8: ldarg.0
IL_18D9: ldloc.s 99 (UnityEngine.Rect)
IL_18DB: ldloc.s 76 (RimWorld.Apparel)
IL_18DD: ldc.i4.0
IL_18DE: call System.Void
Sandy_Detailed_RPG_Inventory.Sandy_Detailed_RPG_GearTab::DrawThingRow_RPG(UnityEngi
ne.Rect rect, Verse.Thing thing, System.Boolean inventory)
IL_18E3: nop
IL_18E4: br => Label183
IL_18E9: Label182
IL_18E9: ldloc.s 118 (RimWorld.ApparelProperties)
IL_18EB: stloc.s 141 (RimWorld.ApparelProperties)
IL_18ED: ldloc.s 141 (RimWorld.ApparelProperties)
IL_18EF: ldfld System.Collections.Generic.List`1<Verse.BodyPartGroupDef>
RimWorld.ApparelProperties::bodyPartGroups
IL_18F4: ldsfld Verse.BodyPartGroupDef
Sandy_Detailed_RPG_Inventory.Sandy_Gear_DefOf::Feet
IL_18F9: callvirt virtual System.Boolean
System.Collections.Generic.List`1<Verse.BodyPartGroupDef>::Contains(Verse.BodyPartG
roupDef item)
IL_18FE: brfalse => Label184
IL_1903: ldloc.s 141 (RimWorld.ApparelProperties)
IL_1905: ldfld System.Collections.Generic.List`1<Verse.ApparelLayerDef>
RimWorld.ApparelProperties::layers
IL_190A: ldsfld Verse.ApparelLayerDef RimWorld.ApparelLayerDefOf::Shell
IL_190F: callvirt virtual System.Boolean
System.Collections.Generic.List`1<Verse.ApparelLayerDef>::Contains(Verse.ApparelLay
erDef item)
IL_1914: brtrue => Label185
IL_1919: ldloc.s 141 (RimWorld.ApparelProperties)
IL_191B: ldfld System.Collections.Generic.List`1<Verse.ApparelLayerDef>
RimWorld.ApparelProperties::layers
IL_1920: ldsfld Verse.ApparelLayerDef RimWorld.ApparelLayerDefOf::Middle
IL_1925: callvirt virtual System.Boolean
System.Collections.Generic.List`1<Verse.ApparelLayerDef>::Contains(Verse.ApparelLay
erDef item)
IL_192A: brtrue => Label186
IL_192F: ldloc.s 141 (RimWorld.ApparelProperties)
IL_1931: ldfld System.Collections.Generic.List`1<Verse.ApparelLayerDef>
RimWorld.ApparelProperties::layers
IL_1936: ldsfld Verse.ApparelLayerDef
Sandy_Detailed_RPG_Inventory.Sandy_Gear_DefOf::Middle_A
IL_193B: callvirt virtual System.Boolean
System.Collections.Generic.List`1<Verse.ApparelLayerDef>::Contains(Verse.ApparelLay
erDef item)
IL_1940: brfalse => Label187
IL_1945: Label186
IL_1945: ldloc.s 141 (RimWorld.ApparelProperties)
IL_1947: ldfld System.Collections.Generic.List`1<Verse.BodyPartGroupDef>
RimWorld.ApparelProperties::bodyPartGroups
IL_194C: ldsfld Verse.BodyPartGroupDef RimWorld.BodyPartGroupDefOf::Legs
IL_1951: callvirt virtual System.Boolean
System.Collections.Generic.List`1<Verse.BodyPartGroupDef>::Contains(Verse.BodyPartG
roupDef item)
IL_1956: brfalse => Label188
IL_195B: Label184
IL_195B: Label185
IL_195B: Label187
IL_195B: br => Label189
IL_1960: Label188
IL_1960: ldloca.s 100 (UnityEngine.Rect)
IL_1962: ldc.r4 158
IL_1967: ldc.r4 370
IL_196C: ldc.r4 64
IL_1971: ldc.r4 64
IL_1976: call System.Void UnityEngine.Rect::.ctor(System.Single x,
System.Single y, System.Single width, System.Single height)
IL_197B: ldarg.0
IL_197C: ldloc.s 100 (UnityEngine.Rect)
IL_197E: ldloc.s 76 (RimWorld.Apparel)
IL_1980: ldc.i4.0
IL_1981: call System.Void
Sandy_Detailed_RPG_Inventory.Sandy_Detailed_RPG_GearTab::DrawThingRow_RPG(UnityEngi
ne.Rect rect, Verse.Thing thing, System.Boolean inventory)
IL_1986: nop
IL_1987: br => Label190
IL_198C: Label189
IL_198C: ldloc.s 118 (RimWorld.ApparelProperties)
IL_198E: stloc.s 142 (RimWorld.ApparelProperties)
IL_1990: ldloc.s 142 (RimWorld.ApparelProperties)
IL_1992: ldfld System.Collections.Generic.List`1<Verse.BodyPartGroupDef>
RimWorld.ApparelProperties::bodyPartGroups
IL_1997: ldsfld Verse.BodyPartGroupDef
Sandy_Detailed_RPG_Inventory.Sandy_Gear_DefOf::Feet
IL_199C: callvirt virtual System.Boolean
System.Collections.Generic.List`1<Verse.BodyPartGroupDef>::Contains(Verse.BodyPartG
roupDef item)
IL_19A1: brfalse => Label191
IL_19A6: ldloc.s 142 (RimWorld.ApparelProperties)
IL_19A8: ldfld System.Collections.Generic.List`1<Verse.BodyPartGroupDef>
RimWorld.ApparelProperties::bodyPartGroups
IL_19AD: ldsfld Verse.BodyPartGroupDef RimWorld.BodyPartGroupDefOf::Legs
IL_19B2: callvirt virtual System.Boolean
System.Collections.Generic.List`1<Verse.BodyPartGroupDef>::Contains(Verse.BodyPartG
roupDef item)
IL_19B7: brtrue => Label192
IL_19BC: ldloc.s 142 (RimWorld.ApparelProperties)
IL_19BE: ldfld System.Collections.Generic.List`1<Verse.ApparelLayerDef>
RimWorld.ApparelProperties::layers
IL_19C3: ldsfld Verse.ApparelLayerDef RimWorld.ApparelLayerDefOf::OnSkin
IL_19C8: callvirt virtual System.Boolean
System.Collections.Generic.List`1<Verse.ApparelLayerDef>::Contains(Verse.ApparelLay
erDef item)
IL_19CD: brtrue => Label193
IL_19D2: ldloc.s 142 (RimWorld.ApparelProperties)
IL_19D4: ldfld System.Collections.Generic.List`1<Verse.ApparelLayerDef>
RimWorld.ApparelProperties::layers
IL_19D9: ldsfld Verse.ApparelLayerDef
Sandy_Detailed_RPG_Inventory.Sandy_Gear_DefOf::OnSkin_A
IL_19DE: callvirt virtual System.Boolean
System.Collections.Generic.List`1<Verse.ApparelLayerDef>::Contains(Verse.ApparelLay
erDef item)
IL_19E3: brfalse => Label194
IL_19E8: Label193
IL_19E8: ldloc.s 142 (RimWorld.ApparelProperties)
IL_19EA: ldfld System.Collections.Generic.List`1<Verse.ApparelLayerDef>
RimWorld.ApparelProperties::layers
IL_19EF: ldsfld Verse.ApparelLayerDef RimWorld.ApparelLayerDefOf::Shell
IL_19F4: callvirt virtual System.Boolean
System.Collections.Generic.List`1<Verse.ApparelLayerDef>::Contains(Verse.ApparelLay
erDef item)
IL_19F9: brtrue => Label195
IL_19FE: ldloc.s 142 (RimWorld.ApparelProperties)
IL_1A00: ldfld System.Collections.Generic.List`1<Verse.ApparelLayerDef>
RimWorld.ApparelProperties::layers
IL_1A05: ldsfld Verse.ApparelLayerDef RimWorld.ApparelLayerDefOf::Middle
IL_1A0A: callvirt virtual System.Boolean
System.Collections.Generic.List`1<Verse.ApparelLayerDef>::Contains(Verse.ApparelLay
erDef item)
IL_1A0F: brfalse => Label196
IL_1A14: Label191
IL_1A14: Label192
IL_1A14: Label194
IL_1A14: Label195
IL_1A14: br => Label197
IL_1A19: Label196
IL_1A19: ldloca.s 101 (UnityEngine.Rect)
IL_1A1B: ldc.r4 232
IL_1A20: ldc.r4 370
IL_1A25: ldc.r4 64
IL_1A2A: ldc.r4 64
IL_1A2F: call System.Void UnityEngine.Rect::.ctor(System.Single x,
System.Single y, System.Single width, System.Single height)
IL_1A34: ldarg.0
IL_1A35: ldloc.s 101 (UnityEngine.Rect)
IL_1A37: ldloc.s 76 (RimWorld.Apparel)
IL_1A39: ldc.i4.0
IL_1A3A: call System.Void
Sandy_Detailed_RPG_Inventory.Sandy_Detailed_RPG_GearTab::DrawThingRow_RPG(UnityEngi
ne.Rect rect, Verse.Thing thing, System.Boolean inventory)
IL_1A3F: nop
IL_1A40: br => Label198
IL_1A45: Label197
IL_1A45: ldloc.s 118 (RimWorld.ApparelProperties)
IL_1A47: stloc.s 143 (RimWorld.ApparelProperties)
IL_1A49: ldloc.s 143 (RimWorld.ApparelProperties)
IL_1A4B: ldfld System.Collections.Generic.List`1<Verse.BodyPartGroupDef>
RimWorld.ApparelProperties::bodyPartGroups
IL_1A50: ldsfld Verse.BodyPartGroupDef
Sandy_Detailed_RPG_Inventory.Sandy_Gear_DefOf::Feet
IL_1A55: callvirt virtual System.Boolean
System.Collections.Generic.List`1<Verse.BodyPartGroupDef>::Contains(Verse.BodyPartG
roupDef item)
IL_1A5A: brfalse => Label199
IL_1A5F: ldloc.s 143 (RimWorld.ApparelProperties)
IL_1A61: ldfld System.Collections.Generic.List`1<Verse.BodyPartGroupDef>
RimWorld.ApparelProperties::bodyPartGroups
IL_1A66: ldsfld Verse.BodyPartGroupDef RimWorld.BodyPartGroupDefOf::Legs
IL_1A6B: callvirt virtual System.Boolean
System.Collections.Generic.List`1<Verse.BodyPartGroupDef>::Contains(Verse.BodyPartG
roupDef item)
IL_1A70: brtrue => Label200
IL_1A75: ldloc.s 143 (RimWorld.ApparelProperties)
IL_1A77: ldfld System.Collections.Generic.List`1<Verse.ApparelLayerDef>
RimWorld.ApparelProperties::layers
IL_1A7C: ldsfld Verse.ApparelLayerDef RimWorld.ApparelLayerDefOf::Shell
IL_1A81: callvirt virtual System.Boolean
System.Collections.Generic.List`1<Verse.ApparelLayerDef>::Contains(Verse.ApparelLay
erDef item)
IL_1A86: brtrue => Label201
IL_1A8B: ldloc.s 143 (RimWorld.ApparelProperties)
IL_1A8D: ldfld System.Collections.Generic.List`1<Verse.ApparelLayerDef>
RimWorld.ApparelProperties::layers
IL_1A92: ldsfld Verse.ApparelLayerDef
Sandy_Detailed_RPG_Inventory.Sandy_Gear_DefOf::Shell_A
IL_1A97: callvirt virtual System.Boolean
System.Collections.Generic.List`1<Verse.ApparelLayerDef>::Contains(Verse.ApparelLay
erDef item)
IL_1A9C: brtrue => Label202
IL_1AA1: Label199
IL_1AA1: Label200
IL_1AA1: br => Label203
IL_1AA6: Label201
IL_1AA6: Label202
IL_1AA6: ldloca.s 102 (UnityEngine.Rect)
IL_1AA8: ldc.r4 306
IL_1AAD: ldc.r4 370
IL_1AB2: ldc.r4 64
IL_1AB7: ldc.r4 64
IL_1ABC: call System.Void UnityEngine.Rect::.ctor(System.Single x,
System.Single y, System.Single width, System.Single height)
IL_1AC1: ldarg.0
IL_1AC2: ldloc.s 102 (UnityEngine.Rect)
IL_1AC4: ldloc.s 76 (RimWorld.Apparel)
IL_1AC6: ldc.i4.0
IL_1AC7: call System.Void
Sandy_Detailed_RPG_Inventory.Sandy_Detailed_RPG_GearTab::DrawThingRow_RPG(UnityEngi
ne.Rect rect, Verse.Thing thing, System.Boolean inventory)
IL_1ACC: nop
IL_1ACD: br => Label204
IL_1AD2: Label203
IL_1AD2: ldloc.s 118 (RimWorld.ApparelProperties)
IL_1AD4: stloc.s 144 (RimWorld.ApparelProperties)
IL_1AD6: ldloc.s 144 (RimWorld.ApparelProperties)
IL_1AD8: ldfld System.Collections.Generic.List`1<Verse.BodyPartGroupDef>
RimWorld.ApparelProperties::bodyPartGroups
IL_1ADD: ldsfld Verse.BodyPartGroupDef
Sandy_Detailed_RPG_Inventory.Sandy_Gear_DefOf::Feet
IL_1AE2: callvirt virtual System.Boolean
System.Collections.Generic.List`1<Verse.BodyPartGroupDef>::Contains(Verse.BodyPartG
roupDef item)
IL_1AE7: brfalse => Label205
IL_1AEC: ldloc.s 144 (RimWorld.ApparelProperties)
IL_1AEE: ldfld System.Collections.Generic.List`1<Verse.BodyPartGroupDef>
RimWorld.ApparelProperties::bodyPartGroups
IL_1AF3: ldsfld Verse.BodyPartGroupDef RimWorld.BodyPartGroupDefOf::Legs
IL_1AF8: callvirt virtual System.Boolean
System.Collections.Generic.List`1<Verse.BodyPartGroupDef>::Contains(Verse.BodyPartG
roupDef item)
IL_1AFD: brtrue => Label206
IL_1B02: ldloc.s 144 (RimWorld.ApparelProperties)
IL_1B04: ldfld System.Collections.Generic.List`1<Verse.ApparelLayerDef>
RimWorld.ApparelProperties::layers
IL_1B09: ldsfld Verse.ApparelLayerDef
RimWorld.ApparelLayerDefOf::Overhead
IL_1B0E: callvirt virtual System.Boolean
System.Collections.Generic.List`1<Verse.ApparelLayerDef>::Contains(Verse.ApparelLay
erDef item)
IL_1B13: brtrue => Label207
IL_1B18: Label205
IL_1B18: Label206
IL_1B18: br => Label208
IL_1B1D: Label207
IL_1B1D: ldloca.s 103 (UnityEngine.Rect)
IL_1B1F: ldc.r4 10
IL_1B24: ldc.r4 370
IL_1B29: ldc.r4 64
IL_1B2E: ldc.r4 64
IL_1B33: call System.Void UnityEngine.Rect::.ctor(System.Single x,
System.Single y, System.Single width, System.Single height)
IL_1B38: ldarg.0
IL_1B39: ldloc.s 103 (UnityEngine.Rect)
IL_1B3B: ldloc.s 76 (RimWorld.Apparel)
IL_1B3D: ldc.i4.0
IL_1B3E: call System.Void
Sandy_Detailed_RPG_Inventory.Sandy_Detailed_RPG_GearTab::DrawThingRow_RPG(UnityEngi
ne.Rect rect, Verse.Thing thing, System.Boolean inventory)
IL_1B43: nop
IL_1B44: br => Label209
IL_1B49: Label208
IL_1B49: ldloc.s 118 (RimWorld.ApparelProperties)
IL_1B4B: stloc.s 145 (RimWorld.ApparelProperties)
IL_1B4D: ldloc.s 145 (RimWorld.ApparelProperties)
IL_1B4F: ldfld System.Collections.Generic.List`1<Verse.BodyPartGroupDef>
RimWorld.ApparelProperties::bodyPartGroups
IL_1B54: ldsfld Verse.BodyPartGroupDef
Sandy_Detailed_RPG_Inventory.Sandy_Gear_DefOf::Hands
IL_1B59: callvirt virtual System.Boolean
System.Collections.Generic.List`1<Verse.BodyPartGroupDef>::Contains(Verse.BodyPartG
roupDef item)
IL_1B5E: brfalse => Label210
IL_1B63: ldloc.s 145 (RimWorld.ApparelProperties)
IL_1B65: ldfld System.Collections.Generic.List`1<Verse.BodyPartGroupDef>
RimWorld.ApparelProperties::bodyPartGroups
IL_1B6A: ldsfld Verse.BodyPartGroupDef RimWorld.BodyPartGroupDefOf::Torso
IL_1B6F: callvirt virtual System.Boolean
System.Collections.Generic.List`1<Verse.BodyPartGroupDef>::Contains(Verse.BodyPartG
roupDef item)
IL_1B74: brtrue => Label211
IL_1B79: ldloc.s 145 (RimWorld.ApparelProperties)
IL_1B7B: ldfld System.Collections.Generic.List`1<Verse.ApparelLayerDef>
RimWorld.ApparelProperties::layers
IL_1B80: ldsfld Verse.ApparelLayerDef RimWorld.ApparelLayerDefOf::OnSkin
IL_1B85: callvirt virtual System.Boolean
System.Collections.Generic.List`1<Verse.ApparelLayerDef>::Contains(Verse.ApparelLay
erDef item)
IL_1B8A: brtrue => Label212
IL_1B8F: ldloc.s 145 (RimWorld.ApparelProperties)
IL_1B91: ldfld System.Collections.Generic.List`1<Verse.ApparelLayerDef>
RimWorld.ApparelProperties::layers
IL_1B96: ldsfld Verse.ApparelLayerDef
Sandy_Detailed_RPG_Inventory.Sandy_Gear_DefOf::OnSkin_A
IL_1B9B: callvirt virtual System.Boolean
System.Collections.Generic.List`1<Verse.ApparelLayerDef>::Contains(Verse.ApparelLay
erDef item)
IL_1BA0: brfalse => Label213
IL_1BA5: Label212
IL_1BA5: ldloc.s 145 (RimWorld.ApparelProperties)
IL_1BA7: ldfld System.Collections.Generic.List`1<Verse.BodyPartGroupDef>
RimWorld.ApparelProperties::bodyPartGroups
IL_1BAC: ldsfld Verse.BodyPartGroupDef
Sandy_Detailed_RPG_Inventory.Sandy_Gear_DefOf::Shoulders
IL_1BB1: callvirt virtual System.Boolean
System.Collections.Generic.List`1<Verse.BodyPartGroupDef>::Contains(Verse.BodyPartG
roupDef item)
IL_1BB6: brtrue => Label214
IL_1BBB: ldloc.s 145 (RimWorld.ApparelProperties)
IL_1BBD: ldfld System.Collections.Generic.List`1<Verse.ApparelLayerDef>
RimWorld.ApparelProperties::layers
IL_1BC2: ldsfld Verse.ApparelLayerDef RimWorld.ApparelLayerDefOf::Middle
IL_1BC7: callvirt virtual System.Boolean
System.Collections.Generic.List`1<Verse.ApparelLayerDef>::Contains(Verse.ApparelLay
erDef item)
IL_1BCC: brtrue => Label215
IL_1BD1: ldloc.s 145 (RimWorld.ApparelProperties)
IL_1BD3: ldfld System.Collections.Generic.List`1<Verse.ApparelLayerDef>
RimWorld.ApparelProperties::layers
IL_1BD8: ldsfld Verse.ApparelLayerDef RimWorld.ApparelLayerDefOf::Shell
IL_1BDD: callvirt virtual System.Boolean
System.Collections.Generic.List`1<Verse.ApparelLayerDef>::Contains(Verse.ApparelLay
erDef item)
IL_1BE2: brfalse => Label216
IL_1BE7: Label210
IL_1BE7: Label211
IL_1BE7: Label213
IL_1BE7: Label214
IL_1BE7: Label215
IL_1BE7: br => Label217
IL_1BEC: Label216
IL_1BEC: ldloca.s 104 (UnityEngine.Rect)
IL_1BEE: ldc.r4 454
IL_1BF3: ldc.r4 74
IL_1BF8: ldc.r4 64
IL_1BFD: ldc.r4 64
IL_1C02: call System.Void UnityEngine.Rect::.ctor(System.Single x,
System.Single y, System.Single width, System.Single height)
IL_1C07: ldarg.0
IL_1C08: ldloc.s 104 (UnityEngine.Rect)
IL_1C0A: ldloc.s 76 (RimWorld.Apparel)
IL_1C0C: ldc.i4.0
IL_1C0D: call System.Void
Sandy_Detailed_RPG_Inventory.Sandy_Detailed_RPG_GearTab::DrawThingRow_RPG(UnityEngi
ne.Rect rect, Verse.Thing thing, System.Boolean inventory)
IL_1C12: nop
IL_1C13: br => Label218
IL_1C18: Label217
IL_1C18: ldloc.s 118 (RimWorld.ApparelProperties)
IL_1C1A: stloc.s 146 (RimWorld.ApparelProperties)
IL_1C1C: ldloc.s 146 (RimWorld.ApparelProperties)
IL_1C1E: ldfld System.Collections.Generic.List`1<Verse.BodyPartGroupDef>
RimWorld.ApparelProperties::bodyPartGroups
IL_1C23: ldsfld Verse.BodyPartGroupDef
Sandy_Detailed_RPG_Inventory.Sandy_Gear_DefOf::Hands
IL_1C28: callvirt virtual System.Boolean
System.Collections.Generic.List`1<Verse.BodyPartGroupDef>::Contains(Verse.BodyPartG
roupDef item)
IL_1C2D: brfalse => Label219
IL_1C32: ldloc.s 146 (RimWorld.ApparelProperties)
IL_1C34: ldfld System.Collections.Generic.List`1<Verse.BodyPartGroupDef>
RimWorld.ApparelProperties::bodyPartGroups
IL_1C39: ldsfld Verse.BodyPartGroupDef RimWorld.BodyPartGroupDefOf::Torso
IL_1C3E: callvirt virtual System.Boolean
System.Collections.Generic.List`1<Verse.BodyPartGroupDef>::Contains(Verse.BodyPartG
roupDef item)
IL_1C43: brtrue => Label220
IL_1C48: ldloc.s 146 (RimWorld.ApparelProperties)
IL_1C4A: ldfld System.Collections.Generic.List`1<Verse.ApparelLayerDef>
RimWorld.ApparelProperties::layers
IL_1C4F: ldsfld Verse.ApparelLayerDef RimWorld.ApparelLayerDefOf::Middle
IL_1C54: callvirt virtual System.Boolean
System.Collections.Generic.List`1<Verse.ApparelLayerDef>::Contains(Verse.ApparelLay
erDef item)
IL_1C59: brtrue => Label221
IL_1C5E: ldloc.s 146 (RimWorld.ApparelProperties)
IL_1C60: ldfld System.Collections.Generic.List`1<Verse.ApparelLayerDef>
RimWorld.ApparelProperties::layers
IL_1C65: ldsfld Verse.ApparelLayerDef
Sandy_Detailed_RPG_Inventory.Sandy_Gear_DefOf::Middle_A
IL_1C6A: callvirt virtual System.Boolean
System.Collections.Generic.List`1<Verse.ApparelLayerDef>::Contains(Verse.ApparelLay
erDef item)
IL_1C6F: brfalse => Label222
IL_1C74: Label221
IL_1C74: ldloc.s 146 (RimWorld.ApparelProperties)
IL_1C76: ldfld System.Collections.Generic.List`1<Verse.BodyPartGroupDef>
RimWorld.ApparelProperties::bodyPartGroups
IL_1C7B: ldsfld Verse.BodyPartGroupDef
Sandy_Detailed_RPG_Inventory.Sandy_Gear_DefOf::Shoulders
IL_1C80: callvirt virtual System.Boolean
System.Collections.Generic.List`1<Verse.BodyPartGroupDef>::Contains(Verse.BodyPartG
roupDef item)
IL_1C85: brtrue => Label223
IL_1C8A: ldloc.s 146 (RimWorld.ApparelProperties)
IL_1C8C: ldfld System.Collections.Generic.List`1<Verse.ApparelLayerDef>
RimWorld.ApparelProperties::layers
IL_1C91: ldsfld Verse.ApparelLayerDef RimWorld.ApparelLayerDefOf::Shell
IL_1C96: callvirt virtual System.Boolean
System.Collections.Generic.List`1<Verse.ApparelLayerDef>::Contains(Verse.ApparelLay
erDef item)
IL_1C9B: brfalse => Label224
IL_1CA0: Label219
IL_1CA0: Label220
IL_1CA0: Label222
IL_1CA0: Label223
IL_1CA0: br => Label225
IL_1CA5: Label224
IL_1CA5: ldloca.s 105 (UnityEngine.Rect)
IL_1CA7: ldc.r4 454
IL_1CAC: ldc.r4 148
IL_1CB1: ldc.r4 64
IL_1CB6: ldc.r4 64
IL_1CBB: call System.Void UnityEngine.Rect::.ctor(System.Single x,
System.Single y, System.Single width, System.Single height)
IL_1CC0: ldarg.0
IL_1CC1: ldloc.s 105 (UnityEngine.Rect)
IL_1CC3: ldloc.s 76 (RimWorld.Apparel)
IL_1CC5: ldc.i4.0
IL_1CC6: call System.Void
Sandy_Detailed_RPG_Inventory.Sandy_Detailed_RPG_GearTab::DrawThingRow_RPG(UnityEngi
ne.Rect rect, Verse.Thing thing, System.Boolean inventory)
IL_1CCB: nop
IL_1CCC: br => Label226
IL_1CD1: Label225
IL_1CD1: ldloc.s 118 (RimWorld.ApparelProperties)
IL_1CD3: stloc.s 147 (RimWorld.ApparelProperties)
IL_1CD5: ldloc.s 147 (RimWorld.ApparelProperties)
IL_1CD7: ldfld System.Collections.Generic.List`1<Verse.BodyPartGroupDef>
RimWorld.ApparelProperties::bodyPartGroups
IL_1CDC: ldsfld Verse.BodyPartGroupDef
Sandy_Detailed_RPG_Inventory.Sandy_Gear_DefOf::Hands
IL_1CE1: callvirt virtual System.Boolean
System.Collections.Generic.List`1<Verse.BodyPartGroupDef>::Contains(Verse.BodyPartG
roupDef item)
IL_1CE6: brfalse => Label227
IL_1CEB: ldloc.s 147 (RimWorld.ApparelProperties)
IL_1CED: ldfld System.Collections.Generic.List`1<Verse.BodyPartGroupDef>
RimWorld.ApparelProperties::bodyPartGroups
IL_1CF2: ldsfld Verse.BodyPartGroupDef RimWorld.BodyPartGroupDefOf::Torso
IL_1CF7: callvirt virtual System.Boolean
System.Collections.Generic.List`1<Verse.BodyPartGroupDef>::Contains(Verse.BodyPartG
roupDef item)
IL_1CFC: brtrue => Label228
IL_1D01: ldloc.s 147 (RimWorld.ApparelProperties)
IL_1D03: ldfld System.Collections.Generic.List`1<Verse.ApparelLayerDef>
RimWorld.ApparelProperties::layers
IL_1D08: ldsfld Verse.ApparelLayerDef RimWorld.ApparelLayerDefOf::Shell
IL_1D0D: callvirt virtual System.Boolean
System.Collections.Generic.List`1<Verse.ApparelLayerDef>::Contains(Verse.ApparelLay
erDef item)
IL_1D12: brtrue => Label229
IL_1D17: ldloc.s 147 (RimWorld.ApparelProperties)
IL_1D19: ldfld System.Collections.Generic.List`1<Verse.ApparelLayerDef>
RimWorld.ApparelProperties::layers
IL_1D1E: ldsfld Verse.ApparelLayerDef
Sandy_Detailed_RPG_Inventory.Sandy_Gear_DefOf::Shell_A
IL_1D23: callvirt virtual System.Boolean
System.Collections.Generic.List`1<Verse.ApparelLayerDef>::Contains(Verse.ApparelLay
erDef item)
IL_1D28: brtrue => Label230
IL_1D2D: Label227
IL_1D2D: Label228
IL_1D2D: br => Label231
IL_1D32: Label229
IL_1D32: Label230
IL_1D32: ldloca.s 106 (UnityEngine.Rect)
IL_1D34: ldc.r4 454
IL_1D39: ldc.r4 222
IL_1D3E: ldc.r4 64
IL_1D43: ldc.r4 64
IL_1D48: call System.Void UnityEngine.Rect::.ctor(System.Single x,
System.Single y, System.Single width, System.Single height)
IL_1D4D: ldarg.0
IL_1D4E: ldloc.s 106 (UnityEngine.Rect)
IL_1D50: ldloc.s 76 (RimWorld.Apparel)
IL_1D52: ldc.i4.0
IL_1D53: call System.Void
Sandy_Detailed_RPG_Inventory.Sandy_Detailed_RPG_GearTab::DrawThingRow_RPG(UnityEngi
ne.Rect rect, Verse.Thing thing, System.Boolean inventory)
IL_1D58: nop
IL_1D59: br => Label232
IL_1D5E: Label231
IL_1D5E: ldloc.s 118 (RimWorld.ApparelProperties)
IL_1D60: stloc.s 148 (RimWorld.ApparelProperties)
IL_1D62: ldloc.s 148 (RimWorld.ApparelProperties)
IL_1D64: ldfld System.Collections.Generic.List`1<Verse.BodyPartGroupDef>
RimWorld.ApparelProperties::bodyPartGroups
IL_1D69: ldsfld Verse.BodyPartGroupDef
Sandy_Detailed_RPG_Inventory.Sandy_Gear_DefOf::Hands
IL_1D6E: callvirt virtual System.Boolean
System.Collections.Generic.List`1<Verse.BodyPartGroupDef>::Contains(Verse.BodyPartG
roupDef item)
IL_1D73: brfalse => Label233
IL_1D78: ldloc.s 148 (RimWorld.ApparelProperties)
IL_1D7A: ldfld System.Collections.Generic.List`1<Verse.BodyPartGroupDef>
RimWorld.ApparelProperties::bodyPartGroups
IL_1D7F: ldsfld Verse.BodyPartGroupDef RimWorld.BodyPartGroupDefOf::Torso
IL_1D84: callvirt virtual System.Boolean
System.Collections.Generic.List`1<Verse.BodyPartGroupDef>::Contains(Verse.BodyPartG
roupDef item)
IL_1D89: brtrue => Label234
IL_1D8E: ldloc.s 148 (RimWorld.ApparelProperties)
IL_1D90: ldfld System.Collections.Generic.List`1<Verse.ApparelLayerDef>
RimWorld.ApparelProperties::layers
IL_1D95: ldsfld Verse.ApparelLayerDef
RimWorld.ApparelLayerDefOf::Overhead
IL_1D9A: callvirt virtual System.Boolean
System.Collections.Generic.List`1<Verse.ApparelLayerDef>::Contains(Verse.ApparelLay
erDef item)
IL_1D9F: brtrue => Label235
IL_1DA4: Label233
IL_1DA4: Label234
IL_1DA4: br => Label236
IL_1DA9: Label235
IL_1DA9: ldloca.s 107 (UnityEngine.Rect)
IL_1DAB: ldc.r4 454
IL_1DB0: ldc.r4 0
IL_1DB5: ldc.r4 64
IL_1DBA: ldc.r4 64
IL_1DBF: call System.Void UnityEngine.Rect::.ctor(System.Single x,
System.Single y, System.Single width, System.Single height)
IL_1DC4: ldarg.0
IL_1DC5: ldloc.s 107 (UnityEngine.Rect)
IL_1DC7: ldloc.s 76 (RimWorld.Apparel)
IL_1DC9: ldc.i4.0
IL_1DCA: call System.Void
Sandy_Detailed_RPG_Inventory.Sandy_Detailed_RPG_GearTab::DrawThingRow_RPG(UnityEngi
ne.Rect rect, Verse.Thing thing, System.Boolean inventory)
IL_1DCF: nop
IL_1DD0: br => Label237
IL_1DD5: Label236
IL_1DD5: ldloc.s 118 (RimWorld.ApparelProperties)
IL_1DD7: stloc.s 149 (RimWorld.ApparelProperties)
IL_1DD9: ldloc.s 63 (System.Boolean)
IL_1DDB: brfalse => Label238
IL_1DE0: ldloc.s 149 (RimWorld.ApparelProperties)
IL_1DE2: ldfld System.Collections.Generic.List`1<Verse.ApparelLayerDef>
RimWorld.ApparelProperties::layers
IL_1DE7: call static Verse.ApparelLayerDef
Sandy_Detailed_RPG_Inventory.RPG_ModCheck::GetArtifactLayer()
IL_1DEC: callvirt virtual System.Boolean
System.Collections.Generic.List`1<Verse.ApparelLayerDef>::Contains(Verse.ApparelLay
erDef item)
IL_1DF1: brfalse => Label239
IL_1DF6: ldloc.s 149 (RimWorld.ApparelProperties)
IL_1DF8: ldfld System.Collections.Generic.List`1<Verse.BodyPartGroupDef>
RimWorld.ApparelProperties::bodyPartGroups
IL_1DFD: ldsfld Verse.BodyPartGroupDef
Sandy_Detailed_RPG_Inventory.Sandy_Gear_DefOf::Arms
IL_1E02: callvirt virtual System.Boolean
System.Collections.Generic.List`1<Verse.BodyPartGroupDef>::Contains(Verse.BodyPartG
roupDef item)
IL_1E07: brtrue => Label240
IL_1E0C: Label238
IL_1E0C: Label239
IL_1E0C: br => Label241
IL_1E11: Label240
IL_1E11: ldloca.s 108 (UnityEngine.Rect)
IL_1E13: ldc.r4 454
IL_1E18: ldc.r4 296
IL_1E1D: ldc.r4 64
IL_1E22: ldc.r4 64
IL_1E27: call System.Void UnityEngine.Rect::.ctor(System.Single x,
System.Single y, System.Single width, System.Single height)
IL_1E2C: ldarg.0
IL_1E2D: ldloc.s 108 (UnityEngine.Rect)
IL_1E2F: ldloc.s 76 (RimWorld.Apparel)
IL_1E31: ldc.i4.0
IL_1E32: call System.Void
Sandy_Detailed_RPG_Inventory.Sandy_Detailed_RPG_GearTab::DrawThingRow_RPG(UnityEngi
ne.Rect rect, Verse.Thing thing, System.Boolean inventory)
IL_1E37: nop
IL_1E38: br => Label242
IL_1E3D: Label241
IL_1E3D: ldloc.s 118 (RimWorld.ApparelProperties)
IL_1E3F: stloc.s 150 (RimWorld.ApparelProperties)
IL_1E41: ldloc.s 150 (RimWorld.ApparelProperties)
IL_1E43: ldfld System.Collections.Generic.List`1<Verse.BodyPartGroupDef>
RimWorld.ApparelProperties::bodyPartGroups
IL_1E48: ldsfld Verse.BodyPartGroupDef
RimWorld.BodyPartGroupDefOf::LeftHand
IL_1E4D: callvirt virtual System.Boolean
System.Collections.Generic.List`1<Verse.BodyPartGroupDef>::Contains(Verse.BodyPartG
roupDef item)
IL_1E52: brfalse => Label243
IL_1E57: ldloc.s 150 (RimWorld.ApparelProperties)
IL_1E59: ldfld System.Collections.Generic.List`1<Verse.ApparelLayerDef>
RimWorld.ApparelProperties::layers
IL_1E5E: ldsfld Verse.ApparelLayerDef
Sandy_Detailed_RPG_Inventory.Sandy_Gear_DefOf::Accessories
IL_1E63: callvirt virtual System.Boolean
System.Collections.Generic.List`1<Verse.ApparelLayerDef>::Contains(Verse.ApparelLay
erDef item)
IL_1E68: brtrue => Label244
IL_1E6D: Label243
IL_1E6D: br => Label245
IL_1E72: Label244
IL_1E72: ldloca.s 109 (UnityEngine.Rect)
IL_1E74: ldc.r4 380
IL_1E79: ldc.r4 222
IL_1E7E: ldc.r4 64
IL_1E83: ldc.r4 64
IL_1E88: call System.Void UnityEngine.Rect::.ctor(System.Single x,
System.Single y, System.Single width, System.Single height)
IL_1E8D: ldarg.0
IL_1E8E: ldloc.s 109 (UnityEngine.Rect)
IL_1E90: ldloc.s 76 (RimWorld.Apparel)
IL_1E92: ldc.i4.0
IL_1E93: call System.Void
Sandy_Detailed_RPG_Inventory.Sandy_Detailed_RPG_GearTab::DrawThingRow_RPG(UnityEngi
ne.Rect rect, Verse.Thing thing, System.Boolean inventory)
IL_1E98: nop
IL_1E99: br => Label246
IL_1E9E: Label245
IL_1E9E: ldloc.s 118 (RimWorld.ApparelProperties)
IL_1EA0: stloc.s 151 (RimWorld.ApparelProperties)
IL_1EA2: ldloc.s 63 (System.Boolean)
IL_1EA4: brfalse => Label247
IL_1EA9: ldloc.s 151 (RimWorld.ApparelProperties)
IL_1EAB: ldfld System.Collections.Generic.List`1<Verse.ApparelLayerDef>
RimWorld.ApparelProperties::layers
IL_1EB0: call static Verse.ApparelLayerDef
Sandy_Detailed_RPG_Inventory.RPG_ModCheck::GetArtifactLayer()
IL_1EB5: callvirt virtual System.Boolean
System.Collections.Generic.List`1<Verse.ApparelLayerDef>::Contains(Verse.ApparelLay
erDef item)
IL_1EBA: brfalse => Label248
IL_1EBF: ldloc.s 151 (RimWorld.ApparelProperties)
IL_1EC1: ldfld System.Collections.Generic.List`1<Verse.BodyPartGroupDef>
RimWorld.ApparelProperties::bodyPartGroups
IL_1EC6: ldsfld Verse.BodyPartGroupDef
RimWorld.BodyPartGroupDefOf::LeftHand
IL_1ECB: callvirt virtual System.Boolean
System.Collections.Generic.List`1<Verse.BodyPartGroupDef>::Contains(Verse.BodyPartG
roupDef item)
IL_1ED0: brtrue => Label249
IL_1ED5: Label247
IL_1ED5: Label248
IL_1ED5: br => Label250
IL_1EDA: Label249
IL_1EDA: ldloca.s 110 (UnityEngine.Rect)
IL_1EDC: ldc.r4 380
IL_1EE1: ldc.r4 296
IL_1EE6: ldc.r4 64
IL_1EEB: ldc.r4 64
IL_1EF0: call System.Void UnityEngine.Rect::.ctor(System.Single x,
System.Single y, System.Single width, System.Single height)
IL_1EF5: ldarg.0
IL_1EF6: ldloc.s 110 (UnityEngine.Rect)
IL_1EF8: ldloc.s 76 (RimWorld.Apparel)
IL_1EFA: ldc.i4.0
IL_1EFB: call System.Void
Sandy_Detailed_RPG_Inventory.Sandy_Detailed_RPG_GearTab::DrawThingRow_RPG(UnityEngi
ne.Rect rect, Verse.Thing thing, System.Boolean inventory)
IL_1F00: nop
IL_1F01: br => Label251
IL_1F06: Label250
IL_1F06: ldloc.s 118 (RimWorld.ApparelProperties)
IL_1F08: stloc.s 152 (RimWorld.ApparelProperties)
IL_1F0A: ldloc.s 152 (RimWorld.ApparelProperties)
IL_1F0C: ldfld System.Collections.Generic.List`1<Verse.BodyPartGroupDef>
RimWorld.ApparelProperties::bodyPartGroups
IL_1F11: ldsfld Verse.BodyPartGroupDef
RimWorld.BodyPartGroupDefOf::LeftHand
IL_1F16: callvirt virtual System.Boolean
System.Collections.Generic.List`1<Verse.BodyPartGroupDef>::Contains(Verse.BodyPartG
roupDef item)
IL_1F1B: brfalse => Label252
IL_1F20: ldloc.s 152 (RimWorld.ApparelProperties)
IL_1F22: ldfld System.Collections.Generic.List`1<Verse.BodyPartGroupDef>
RimWorld.ApparelProperties::bodyPartGroups
IL_1F27: ldsfld Verse.BodyPartGroupDef
Sandy_Detailed_RPG_Inventory.Sandy_Gear_DefOf::Hands
IL_1F2C: callvirt virtual System.Boolean
System.Collections.Generic.List`1<Verse.BodyPartGroupDef>::Contains(Verse.BodyPartG
roupDef item)
IL_1F31: brtrue => Label253
IL_1F36: ldloc.s 152 (RimWorld.ApparelProperties)
IL_1F38: ldfld System.Collections.Generic.List`1<Verse.ApparelLayerDef>
RimWorld.ApparelProperties::layers
IL_1F3D: ldsfld Verse.ApparelLayerDef RimWorld.ApparelLayerDefOf::Shell
IL_1F42: callvirt virtual System.Boolean
System.Collections.Generic.List`1<Verse.ApparelLayerDef>::Contains(Verse.ApparelLay
erDef item)
IL_1F47: brfalse => Label254
IL_1F4C: ldloc.s 152 (RimWorld.ApparelProperties)
IL_1F4E: ldfld System.Collections.Generic.List`1<Verse.BodyPartGroupDef>
RimWorld.ApparelProperties::bodyPartGroups
IL_1F53: ldsfld Verse.BodyPartGroupDef RimWorld.BodyPartGroupDefOf::Torso
IL_1F58: callvirt virtual System.Boolean
System.Collections.Generic.List`1<Verse.BodyPartGroupDef>::Contains(Verse.BodyPartG
roupDef item)
IL_1F5D: brfalse => Label255
IL_1F62: Label252
IL_1F62: Label253
IL_1F62: Label254
IL_1F62: br => Label256
IL_1F67: Label255
IL_1F67: ldloca.s 111 (UnityEngine.Rect)
IL_1F69: ldc.r4 380
IL_1F6E: ldc.r4 370
IL_1F73: ldc.r4 64
IL_1F78: ldc.r4 64
IL_1F7D: call System.Void UnityEngine.Rect::.ctor(System.Single x,
System.Single y, System.Single width, System.Single height)
IL_1F82: ldarg.0
IL_1F83: ldloc.s 111 (UnityEngine.Rect)
IL_1F85: ldloc.s 76 (RimWorld.Apparel)
IL_1F87: ldc.i4.0
IL_1F88: call System.Void
Sandy_Detailed_RPG_Inventory.Sandy_Detailed_RPG_GearTab::DrawThingRow_RPG(UnityEngi
ne.Rect rect, Verse.Thing thing, System.Boolean inventory)
IL_1F8D: nop
IL_1F8E: br => Label257
IL_1F93: Label256
IL_1F93: ldloc.s 118 (RimWorld.ApparelProperties)
IL_1F95: stloc.s 153 (RimWorld.ApparelProperties)
IL_1F97: ldloc.s 153 (RimWorld.ApparelProperties)
IL_1F99: ldfld System.Collections.Generic.List`1<Verse.ApparelLayerDef>
RimWorld.ApparelProperties::layers
IL_1F9E: ldsfld Verse.ApparelLayerDef
Sandy_Detailed_RPG_Inventory.Sandy_Gear_DefOf::Shield
IL_1FA3: callvirt virtual System.Boolean
System.Collections.Generic.List`1<Verse.ApparelLayerDef>::Contains(Verse.ApparelLay
erDef item)
IL_1FA8: brtrue => Label258
IL_1FAD: br => Label259
IL_1FB2: Label258
IL_1FB2: ldloca.s 112 (UnityEngine.Rect)
IL_1FB4: ldc.r4 306
IL_1FB9: ldc.r4 222
IL_1FBE: ldc.r4 64
IL_1FC3: ldc.r4 64
IL_1FC8: call System.Void UnityEngine.Rect::.ctor(System.Single x,
System.Single y, System.Single width, System.Single height)
IL_1FCD: ldarg.0
IL_1FCE: ldloc.s 112 (UnityEngine.Rect)
IL_1FD0: ldloc.s 76 (RimWorld.Apparel)
IL_1FD2: ldc.i4.0
IL_1FD3: call System.Void
Sandy_Detailed_RPG_Inventory.Sandy_Detailed_RPG_GearTab::DrawThingRow_RPG(UnityEngi
ne.Rect rect, Verse.Thing thing, System.Boolean inventory)
IL_1FD8: nop
IL_1FD9: br => Label260
IL_1FDE: Label259
IL_1FDE: ldloc.s 118 (RimWorld.ApparelProperties)
IL_1FE0: stloc.s 154 (RimWorld.ApparelProperties)
IL_1FE2: ldloc.s 154 (RimWorld.ApparelProperties)
IL_1FE4: ldfld System.Collections.Generic.List`1<Verse.BodyPartGroupDef>
RimWorld.ApparelProperties::bodyPartGroups
IL_1FE9: ldsfld Verse.BodyPartGroupDef
RimWorld.BodyPartGroupDefOf::LeftHand
IL_1FEE: callvirt virtual System.Boolean
System.Collections.Generic.List`1<Verse.BodyPartGroupDef>::Contains(Verse.BodyPartG
roupDef item)
IL_1FF3: brfalse => Label261
IL_1FF8: ldloc.s 154 (RimWorld.ApparelProperties)
IL_1FFA: ldfld System.Collections.Generic.List`1<Verse.ApparelLayerDef>
RimWorld.ApparelProperties::layers
IL_1FFF: ldsfld Verse.ApparelLayerDef
Sandy_Detailed_RPG_Inventory.Sandy_Gear_DefOf::VFEC_OuterShell
IL_2004: callvirt virtual System.Boolean
System.Collections.Generic.List`1<Verse.ApparelLayerDef>::Contains(Verse.ApparelLay
erDef item)
IL_2009: brtrue => Label262
IL_200E: Label261
IL_200E: br => Label263
IL_2013: Label262
IL_2013: ldloca.s 113 (UnityEngine.Rect)
IL_2015: ldc.r4 454
IL_201A: ldc.r4 370
IL_201F: ldc.r4 64
IL_2024: ldc.r4 64
IL_2029: call System.Void UnityEngine.Rect::.ctor(System.Single x,
System.Single y, System.Single width, System.Single height)
IL_202E: ldarg.0
IL_202F: ldloc.s 113 (UnityEngine.Rect)
IL_2031: ldloc.s 76 (RimWorld.Apparel)
IL_2033: ldc.i4.0
IL_2034: call System.Void
Sandy_Detailed_RPG_Inventory.Sandy_Detailed_RPG_GearTab::DrawThingRow_RPG(UnityEngi
ne.Rect rect, Verse.Thing thing, System.Boolean inventory)
IL_2039: nop
IL_203A: br => Label264
IL_203F: Label263
IL_203F: ldloc.s 118 (RimWorld.ApparelProperties)
IL_2041: stloc.s 155 (RimWorld.ApparelProperties)
IL_2043: ldloc.s 155 (RimWorld.ApparelProperties)
IL_2045: ldfld System.Collections.Generic.List`1<Verse.BodyPartGroupDef>
RimWorld.ApparelProperties::bodyPartGroups
IL_204A: ldsfld Verse.BodyPartGroupDef
RimWorld.BodyPartGroupDefOf::RightHand
IL_204F: callvirt virtual System.Boolean
System.Collections.Generic.List`1<Verse.BodyPartGroupDef>::Contains(Verse.BodyPartG
roupDef item)
IL_2054: brfalse => Label265
IL_2059: ldloc.s 155 (RimWorld.ApparelProperties)
IL_205B: ldfld System.Collections.Generic.List`1<Verse.ApparelLayerDef>
RimWorld.ApparelProperties::layers
IL_2060: ldsfld Verse.ApparelLayerDef
Sandy_Detailed_RPG_Inventory.Sandy_Gear_DefOf::Accessories
IL_2065: callvirt virtual System.Boolean
System.Collections.Generic.List`1<Verse.ApparelLayerDef>::Contains(Verse.ApparelLay
erDef item)
IL_206A: brtrue => Label266
IL_206F: Label265
IL_206F: br => Label267
IL_2074: Label266
IL_2074: ldloca.s 114 (UnityEngine.Rect)
IL_2076: ldc.r4 84
IL_207B: ldc.r4 222
IL_2080: ldc.r4 64
IL_2085: ldc.r4 64
IL_208A: call System.Void UnityEngine.Rect::.ctor(System.Single x,
System.Single y, System.Single width, System.Single height)
IL_208F: ldarg.0
IL_2090: ldloc.s 114 (UnityEngine.Rect)
IL_2092: ldloc.s 76 (RimWorld.Apparel)
IL_2094: ldc.i4.0
IL_2095: call System.Void
Sandy_Detailed_RPG_Inventory.Sandy_Detailed_RPG_GearTab::DrawThingRow_RPG(UnityEngi
ne.Rect rect, Verse.Thing thing, System.Boolean inventory)
IL_209A: nop
IL_209B: br => Label268
IL_20A0: Label267
IL_20A0: ldloc.s 118 (RimWorld.ApparelProperties)
IL_20A2: stloc.s 156 (RimWorld.ApparelProperties)
IL_20A4: ldloc.s 63 (System.Boolean)
IL_20A6: brfalse => Label269
IL_20AB: ldloc.s 156 (RimWorld.ApparelProperties)
IL_20AD: ldfld System.Collections.Generic.List`1<Verse.ApparelLayerDef>
RimWorld.ApparelProperties::layers
IL_20B2: call static Verse.ApparelLayerDef
Sandy_Detailed_RPG_Inventory.RPG_ModCheck::GetArtifactLayer()
IL_20B7: callvirt virtual System.Boolean
System.Collections.Generic.List`1<Verse.ApparelLayerDef>::Contains(Verse.ApparelLay
erDef item)
IL_20BC: brfalse => Label270
IL_20C1: ldloc.s 156 (RimWorld.ApparelProperties)
IL_20C3: ldfld System.Collections.Generic.List`1<Verse.BodyPartGroupDef>
RimWorld.ApparelProperties::bodyPartGroups
IL_20C8: ldsfld Verse.BodyPartGroupDef
RimWorld.BodyPartGroupDefOf::RightHand
IL_20CD: callvirt virtual System.Boolean
System.Collections.Generic.List`1<Verse.BodyPartGroupDef>::Contains(Verse.BodyPartG
roupDef item)
IL_20D2: brtrue => Label271
IL_20D7: Label269
IL_20D7: Label270
IL_20D7: br => Label272
IL_20DC: Label271
IL_20DC: ldloca.s 115 (UnityEngine.Rect)
IL_20DE: ldc.r4 84
IL_20E3: ldc.r4 296
IL_20E8: ldc.r4 64
IL_20ED: ldc.r4 64
IL_20F2: call System.Void UnityEngine.Rect::.ctor(System.Single x,
System.Single y, System.Single width, System.Single height)
IL_20F7: ldarg.0
IL_20F8: ldloc.s 115 (UnityEngine.Rect)
IL_20FA: ldloc.s 76 (RimWorld.Apparel)
IL_20FC: ldc.i4.0
IL_20FD: call System.Void
Sandy_Detailed_RPG_Inventory.Sandy_Detailed_RPG_GearTab::DrawThingRow_RPG(UnityEngi
ne.Rect rect, Verse.Thing thing, System.Boolean inventory)
IL_2102: nop
IL_2103: br => Label273
IL_2108: Label272
IL_2108: ldloc.s 118 (RimWorld.ApparelProperties)
IL_210A: stloc.s 157 (RimWorld.ApparelProperties)
IL_210C: ldloc.s 157 (RimWorld.ApparelProperties)
IL_210E: ldfld System.Collections.Generic.List`1<Verse.BodyPartGroupDef>
RimWorld.ApparelProperties::bodyPartGroups
IL_2113: ldsfld Verse.BodyPartGroupDef
RimWorld.BodyPartGroupDefOf::RightHand
IL_2118: callvirt virtual System.Boolean
System.Collections.Generic.List`1<Verse.BodyPartGroupDef>::Contains(Verse.BodyPartG
roupDef item)
IL_211D: brfalse => Label274
IL_2122: ldloc.s 157 (RimWorld.ApparelProperties)
IL_2124: ldfld System.Collections.Generic.List`1<Verse.BodyPartGroupDef>
RimWorld.ApparelProperties::bodyPartGroups
IL_2129: ldsfld Verse.BodyPartGroupDef
Sandy_Detailed_RPG_Inventory.Sandy_Gear_DefOf::Hands
IL_212E: callvirt virtual System.Boolean
System.Collections.Generic.List`1<Verse.BodyPartGroupDef>::Contains(Verse.BodyPartG
roupDef item)
IL_2133: brtrue => Label275
IL_2138: ldloc.s 157 (RimWorld.ApparelProperties)
IL_213A: ldfld System.Collections.Generic.List`1<Verse.ApparelLayerDef>
RimWorld.ApparelProperties::layers
IL_213F: ldsfld Verse.ApparelLayerDef RimWorld.ApparelLayerDefOf::Shell
IL_2144: callvirt virtual System.Boolean
System.Collections.Generic.List`1<Verse.ApparelLayerDef>::Contains(Verse.ApparelLay
erDef item)
IL_2149: brfalse => Label276
IL_214E: ldloc.s 157 (RimWorld.ApparelProperties)
IL_2150: ldfld System.Collections.Generic.List`1<Verse.BodyPartGroupDef>
RimWorld.ApparelProperties::bodyPartGroups
IL_2155: ldsfld Verse.BodyPartGroupDef RimWorld.BodyPartGroupDefOf::Torso
IL_215A: callvirt virtual System.Boolean
System.Collections.Generic.List`1<Verse.BodyPartGroupDef>::Contains(Verse.BodyPartG
roupDef item)
IL_215F: brfalse => Label277
IL_2164: Label274
IL_2164: Label275
IL_2164: Label276
IL_2164: br => Label278
IL_2169: Label277
IL_2169: ldloca.s 116 (UnityEngine.Rect)
IL_216B: ldc.r4 84
IL_2170: ldc.r4 370
IL_2175: ldc.r4 64
IL_217A: ldc.r4 64
IL_217F: call System.Void UnityEngine.Rect::.ctor(System.Single x,
System.Single y, System.Single width, System.Single height)
IL_2184: ldarg.0
IL_2185: ldloc.s 116 (UnityEngine.Rect)
IL_2187: ldloc.s 76 (RimWorld.Apparel)
IL_2189: ldc.i4.0
IL_218A: call System.Void
Sandy_Detailed_RPG_Inventory.Sandy_Detailed_RPG_GearTab::DrawThingRow_RPG(UnityEngi
ne.Rect rect, Verse.Thing thing, System.Boolean inventory)
IL_218F: nop
IL_2190: br => Label279
IL_2195: Label61
IL_2195: Label278
IL_2195: ldloc.s 9 (System.Int32)
IL_2197: ldc.i4.1
IL_2198: add
IL_2199: stloc.s 9 (System.Int32)
IL_219B: ldloc.s 9 (System.Int32)
IL_219D: ldc.i4.1
IL_219E: ceq
IL_21A0: stloc.s 159 (System.Boolean)
IL_21A2: ldloc.s 159 (System.Boolean)
IL_21A4: brfalse => Label280
IL_21A9: nop
IL_21AA: ldarg.0
IL_21AB: ldarg.0
IL_21AC: ldfld System.Single
Sandy_Detailed_RPG_Inventory.Sandy_Detailed_RPG_GearTab::scrollViewHeight
IL_21B1: ldc.r4 74
IL_21B6: add
IL_21B7: stfld System.Single
Sandy_Detailed_RPG_Inventory.Sandy_Detailed_RPG_GearTab::scrollViewHeight
IL_21BC: ldloc.s 6 (System.Single)
IL_21BE: ldc.r4 74
IL_21C3: add
IL_21C4: stloc.s 6 (System.Single)
IL_21C6: nop
IL_21C7: Label280
IL_21C7: ldloca.s 117 (UnityEngine.Rect)
IL_21C9: ldloc.s 7 (System.Single)
IL_21CB: ldloc.s 8 (System.Single)
IL_21CD: ldc.r4 64
IL_21D2: ldc.r4 64
IL_21D7: call System.Void UnityEngine.Rect::.ctor(System.Single x,
System.Single y, System.Single width, System.Single height)
IL_21DC: ldloc.s 117 (UnityEngine.Rect)
IL_21DE: ldstr "UI/Widgets/DesButBG"
IL_21E3: ldc.i4.1
IL_21E4: call static UnityEngine.Texture2D
Verse.ContentFinder`1<UnityEngine.Texture2D>::Get(System.String itemPath,
System.Boolean reportFailure)
IL_21E9: call static System.Void
UnityEngine.GUI::DrawTexture(UnityEngine.Rect position, UnityEngine.Texture image)
IL_21EE: nop
IL_21EF: ldarg.0
IL_21F0: ldloc.s 117 (UnityEngine.Rect)
IL_21F2: ldloc.s 76 (RimWorld.Apparel)
IL_21F4: ldc.i4.0
IL_21F5: call System.Void
Sandy_Detailed_RPG_Inventory.Sandy_Detailed_RPG_GearTab::DrawThingRow_RPG(UnityEngi
ne.Rect rect, Verse.Thing thing, System.Boolean inventory)
IL_21FA: nop
IL_21FB: ldloc.s 9 (System.Int32)
IL_21FD: ldloc.s 13 (System.Int32)
IL_21FF: clt
IL_2201: stloc.s 160 (System.Boolean)
IL_2203: ldloc.s 160 (System.Boolean)
IL_2205: brfalse => Label281
IL_220A: nop
IL_220B: ldloc.s 7 (System.Single)
IL_220D: ldc.r4 74
IL_2212: add
IL_2213: stloc.s 7 (System.Single)
IL_2215: nop
IL_2216: br => Label282
IL_221B: Label281
IL_221B: ldloc.s 9 (System.Int32)
IL_221D: ldloc.s 13 (System.Int32)
IL_221F: ceq
IL_2221: stloc.s 161 (System.Boolean)
IL_2223: ldloc.s 161 (System.Boolean)
IL_2225: brfalse => Label283
IL_222A: nop
IL_222B: ldc.r4 10
IL_2230: stloc.s 7 (System.Single)
IL_2232: ldloc.s 8 (System.Single)
IL_2234: ldc.r4 74
IL_2239: add
IL_223A: stloc.s 8 (System.Single)
IL_223C: ldc.i4.0
IL_223D: stloc.s 9 (System.Int32)
IL_223F: nop
IL_2240: Label282
IL_2240: Label283
IL_2240: br => Label284
IL_2245: Label66
IL_2245: Label71
IL_2245: Label76
IL_2245: Label82
IL_2245: Label86
IL_2245: Label92
IL_2245: Label96
IL_2245: Label101
IL_2245: Label105
IL_2245: Label111
IL_2245: Label115
IL_2245: Label120
IL_2245: Label126
IL_2245: Label130
IL_2245: Label139
IL_2245: Label146
IL_2245: Label151
IL_2245: Label157
IL_2245: Label161
IL_2245: Label165
IL_2245: Label171
IL_2245: Label178
IL_2245: Label183
IL_2245: Label190
IL_2245: Label198
IL_2245: Label204
IL_2245: Label209
IL_2245: Label218
IL_2245: Label226
IL_2245: Label232
IL_2245: Label237
IL_2245: Label242
IL_2245: Label246
IL_2245: Label251
IL_2245: Label257
IL_2245: Label260
IL_2245: Label264
IL_2245: Label268
IL_2245: Label273
IL_2245: Label279
IL_2245: Label284
IL_2245: nop
IL_2246: Label59
IL_2246: ldloc.s 75
(System.Collections.Generic.IEnumerator`1[RimWorld.Apparel])
IL_2248: callvirt abstract virtual System.Boolean
System.Collections.IEnumerator::MoveNext()
IL_224D: brtrue => Label285
IL_2252: leave => Label286
IL_2257: leave => (autogenerated)
} // end try
.finally
{
IL_225C: ldloc.s 75
(System.Collections.Generic.IEnumerator`1[RimWorld.Apparel])
IL_225E: brfalse => Label287
IL_2263: ldloc.s 75
(System.Collections.Generic.IEnumerator`1[RimWorld.Apparel])
IL_2265: callvirt abstract virtual System.Void
System.IDisposable::Dispose()
IL_226A: nop
IL_226B: Label287
IL_226B: endfinally
IL_226C: leave => (autogenerated)
} // end handler
IL_226D: Label286
IL_226D: nop
IL_226E: br => Label288
IL_2273: Label55
IL_2273: ldarg.0
IL_2274: ldarg.0
IL_2275: call Verse.Pawn
Sandy_Detailed_RPG_Inventory.Sandy_Detailed_RPG_GearTab::get_SelPawnForGear()
IL_227A: call System.Boolean
Sandy_Detailed_RPG_Inventory.Sandy_Detailed_RPG_GearTab::ShouldShowApparel(Verse.Pa
wn p)
IL_227F: stloc.s 162 (System.Boolean)
IL_2281: ldloc.s 162 (System.Boolean)
IL_2283: brfalse => Label289
IL_2288: nop
IL_2289: ldloca.s 6 (System.Single)
IL_228B: ldloca.s 5 (UnityEngine.Rect)
IL_228D: call System.Single UnityEngine.Rect::get_width()
IL_2292: ldstr "Apparel"
IL_2297: call static Verse.TaggedString
Verse.Translator::Translate(System.String key)
IL_229C: call static System.String
Verse.TaggedString::op_Implicit(Verse.TaggedString taggedString)
IL_22A1: call static System.Void Verse.Widgets::ListSeparator(System.Single&
curY, System.Single width, System.String label)
IL_22A6: nop
IL_22A7: nop
IL_22A8: ldarg.0
IL_22A9: call Verse.Pawn
Sandy_Detailed_RPG_Inventory.Sandy_Detailed_RPG_GearTab::get_SelPawnForGear()
IL_22AE: ldfld RimWorld.Pawn_ApparelTracker Verse.Pawn::apparel
IL_22B3: callvirt System.Collections.Generic.List`1<RimWorld.Apparel>
RimWorld.Pawn_ApparelTracker::get_WornApparel()
IL_22B8: ldsfld System.Func`2<RimWorld.Apparel, System.Boolean>
Sandy_Detailed_RPG_Inventory.<>c::<>9__31_4
IL_22BD: dup
IL_22BE: brtrue => Label290
IL_22C3: pop
IL_22C4: ldsfld Sandy_Detailed_RPG_Inventory.<>c
Sandy_Detailed_RPG_Inventory.<>c::<>9
IL_22C9: ldftn System.Boolean
Sandy_Detailed_RPG_Inventory.<>c::<FillTab>b__31_4(RimWorld.Apparel x)
IL_22CF: newobj System.Void System.Func`2<RimWorld.Apparel,
System.Boolean>::.ctor(System.Object object, System.IntPtr method)
IL_22D4: dup
IL_22D5: stsfld System.Func`2<RimWorld.Apparel, System.Boolean>
Sandy_Detailed_RPG_Inventory.<>c::<>9__31_4
IL_22DA: Label290
IL_22DA: call static
System.Collections.Generic.IEnumerable`1<RimWorld.Apparel>
System.Linq.Enumerable::Where(System.Collections.Generic.IEnumerable`1<RimWorld.App
arel> source, System.Func`2<RimWorld.Apparel, System.Boolean> predicate)
IL_22DF: ldsfld System.Func`2<RimWorld.Apparel, System.Int32>
Sandy_Detailed_RPG_Inventory.<>c::<>9__31_5
IL_22E4: dup
IL_22E5: brtrue => Label291
IL_22EA: pop
IL_22EB: ldsfld Sandy_Detailed_RPG_Inventory.<>c
Sandy_Detailed_RPG_Inventory.<>c::<>9
IL_22F0: ldftn System.Int32
Sandy_Detailed_RPG_Inventory.<>c::<FillTab>b__31_5(RimWorld.Apparel ap)
IL_22F6: newobj System.Void System.Func`2<RimWorld.Apparel,
System.Int32>::.ctor(System.Object object, System.IntPtr method)
IL_22FB: dup
IL_22FC: stsfld System.Func`2<RimWorld.Apparel, System.Int32>
Sandy_Detailed_RPG_Inventory.<>c::<>9__31_5
IL_2301: Label291
IL_2301: call static System.Linq.IOrderedEnumerable`1<RimWorld.Apparel>
System.Linq.Enumerable::OrderByDescending(System.Collections.Generic.IEnumerable`1<
RimWorld.Apparel> source, System.Func`2<RimWorld.Apparel, System.Int32>
keySelector)
IL_2306: callvirt abstract virtual
System.Collections.Generic.IEnumerator`1<RimWorld.Apparel>
System.Collections.Generic.IEnumerable`1<RimWorld.Apparel>::GetEnumerator()
IL_230B: stloc.s 163
(System.Collections.Generic.IEnumerator`1[RimWorld.Apparel])
.try
{
IL_230D: br => Label292
IL_2312: Label293
IL_2312: ldloc.s 163
(System.Collections.Generic.IEnumerator`1[RimWorld.Apparel])
IL_2314: callvirt abstract virtual RimWorld.Apparel
System.Collections.Generic.IEnumerator`1<RimWorld.Apparel>::get_Current()
IL_2319: stloc.s 164 (RimWorld.Apparel)
IL_231B: nop
IL_231C: ldarg.0
IL_231D: ldloca.s 6 (System.Single)
IL_231F: ldloca.s 5 (UnityEngine.Rect)
IL_2321: call System.Single UnityEngine.Rect::get_width()
IL_2326: ldloc.s 164 (RimWorld.Apparel)
IL_2328: ldc.i4.0
IL_2329: call System.Void
Sandy_Detailed_RPG_Inventory.Sandy_Detailed_RPG_GearTab::DrawThingRow(System.Single
& y, System.Single width, Verse.Thing thing, System.Boolean inventory)
IL_232E: nop
IL_232F: nop
IL_2330: Label292
IL_2330: ldloc.s 163
(System.Collections.Generic.IEnumerator`1[RimWorld.Apparel])
IL_2332: callvirt abstract virtual System.Boolean
System.Collections.IEnumerator::MoveNext()
IL_2337: brtrue => Label293
IL_233C: leave => Label294
IL_2341: leave => (autogenerated)
} // end try
.finally
{
IL_2346: ldloc.s 163
(System.Collections.Generic.IEnumerator`1[RimWorld.Apparel])
IL_2348: brfalse => Label295
IL_234D: ldloc.s 163
(System.Collections.Generic.IEnumerator`1[RimWorld.Apparel])
IL_234F: callvirt abstract virtual System.Void
System.IDisposable::Dispose()
IL_2354: nop
IL_2355: Label295
IL_2355: endfinally
IL_2356: leave => (autogenerated)
} // end handler
IL_2357: Label294
IL_2357: nop
IL_2358: Label288
IL_2358: Label289
IL_2358: ldarg.0
IL_2359: ldarg.0
IL_235A: call Verse.Pawn
Sandy_Detailed_RPG_Inventory.Sandy_Detailed_RPG_GearTab::get_SelPawnForGear()
IL_235F: call System.Boolean
Sandy_Detailed_RPG_Inventory.Sandy_Detailed_RPG_GearTab::ShouldShowInventory(Verse.
Pawn p)
IL_2364: stloc.s 165 (System.Boolean)
IL_2366: ldloc.s 165 (System.Boolean)
IL_2368: brfalse => Label296
IL_236D: nop
IL_236E: ldarg.0
IL_236F: call Verse.Pawn
Sandy_Detailed_RPG_Inventory.Sandy_Detailed_RPG_GearTab::get_SelPawnForGear()
IL_2374: callvirt Verse.RaceProperties Verse.Pawn::get_RaceProps()
IL_2379: callvirt System.Boolean Verse.RaceProperties::get_Humanlike()
IL_237E: brtrue => Label297
IL_2383: ldarg.0
IL_2384: ldfld System.Boolean
Sandy_Detailed_RPG_Inventory.Sandy_Detailed_RPG_GearTab::viewList
IL_2389: ldc.i4.0
IL_238A: ceq
IL_238C: br => Label298
IL_2391: Label297
IL_2391: ldc.i4.0
IL_2392: Label298
IL_2392: stloc.s 166 (System.Boolean)
IL_2394: ldloc.s 166 (System.Boolean)
IL_2396: brfalse => Label299
IL_239B: nop
IL_239C: ldc.r4 44
IL_23A1: stloc.s 6 (System.Single)
IL_23A3: nop
IL_23A4: Label299
IL_23A4: ldloca.s 6 (System.Single)
IL_23A6: ldloca.s 5 (UnityEngine.Rect)
IL_23A8: call System.Single UnityEngine.Rect::get_width()
IL_23AD: ldstr "Inventory"
IL_23B2: call static Verse.TaggedString
Verse.Translator::Translate(System.String key)
IL_23B7: call static System.String
Verse.TaggedString::op_Implicit(Verse.TaggedString taggedString)
IL_23BC: call static System.Void Verse.Widgets::ListSeparator(System.Single&
curY, System.Single width, System.String label)
IL_23C1: nop
IL_23C2: ldsfld System.Collections.Generic.List`1<Verse.Thing>
Sandy_Detailed_RPG_Inventory.Sandy_Detailed_RPG_GearTab::workingInvList
IL_23C7: callvirt virtual System.Void
System.Collections.Generic.List`1<Verse.Thing>::Clear()
IL_23CC: nop
IL_23CD: ldsfld System.Collections.Generic.List`1<Verse.Thing>
Sandy_Detailed_RPG_Inventory.Sandy_Detailed_RPG_GearTab::workingInvList
IL_23D2: ldarg.0
IL_23D3: call Verse.Pawn
Sandy_Detailed_RPG_Inventory.Sandy_Detailed_RPG_GearTab::get_SelPawnForGear()
IL_23D8: ldfld Verse.Pawn_InventoryTracker Verse.Pawn::inventory
IL_23DD: ldfld Verse.ThingOwner`1<Verse.Thing>
Verse.Pawn_InventoryTracker::innerContainer
IL_23E2: callvirt System.Void
System.Collections.Generic.List`1<Verse.Thing>::AddRange(System.Collections.Generic
.IEnumerable`1<Verse.Thing> collection)
IL_23E7: nop
IL_23E8: ldc.i4.0
IL_23E9: stloc.s 167 (System.Int32)
IL_23EB: br => Label300
IL_23F0: Label301
IL_23F0: nop
IL_23F1: ldarg.0
IL_23F2: ldloca.s 6 (System.Single)
IL_23F4: ldloca.s 5 (UnityEngine.Rect)
IL_23F6: call System.Single UnityEngine.Rect::get_width()
IL_23FB: ldsfld System.Collections.Generic.List`1<Verse.Thing>
Sandy_Detailed_RPG_Inventory.Sandy_Detailed_RPG_GearTab::workingInvList
IL_2400: ldloc.s 167 (System.Int32)
IL_2402: callvirt virtual Verse.Thing
System.Collections.Generic.List`1<Verse.Thing>::get_Item(System.Int32 index)
IL_2407: ldc.i4.1
IL_2408: call System.Void
Sandy_Detailed_RPG_Inventory.Sandy_Detailed_RPG_GearTab::DrawThingRow(System.Single
& y, System.Single width, Verse.Thing thing, System.Boolean inventory)
IL_240D: nop
IL_240E: nop
IL_240F: ldloc.s 167 (System.Int32)
IL_2411: ldc.i4.1
IL_2412: add
IL_2413: stloc.s 167 (System.Int32)
IL_2415: Label300
IL_2415: ldloc.s 167 (System.Int32)
IL_2417: ldsfld System.Collections.Generic.List`1<Verse.Thing>
Sandy_Detailed_RPG_Inventory.Sandy_Detailed_RPG_GearTab::workingInvList
IL_241C: callvirt virtual System.Int32
System.Collections.Generic.List`1<Verse.Thing>::get_Count()
IL_2421: clt
IL_2423: stloc.s 168 (System.Boolean)
IL_2425: ldloc.s 168 (System.Boolean)
IL_2427: brtrue => Label301
IL_242C: ldsfld System.Collections.Generic.List`1<Verse.Thing>
Sandy_Detailed_RPG_Inventory.Sandy_Detailed_RPG_GearTab::workingInvList
IL_2431: callvirt virtual System.Void
System.Collections.Generic.List`1<Verse.Thing>::Clear()
IL_2436: nop
IL_2437: nop
IL_2438: ldarg.0
IL_2439: call Verse.Pawn RimWorld.ITab_Pawn_Gear::get_SelPawnForGear()
IL_243E: ldloca.s 6
IL_2440: ldloc.s 5 (UnityEngine.Rect)
IL_2442: call static System.Void
SmartMedicine.FillTab_Patch::DrawMissingThings(Verse.Pawn pawn, System.Single& y,
UnityEngine.Rect viewRect)
IL_2447: Label296
IL_2447: call static UnityEngine.Event UnityEngine.Event::get_current()
IL_244C: callvirt UnityEngine.EventType UnityEngine.Event::get_type()
IL_2451: ldc.i4.8
IL_2452: ceq
IL_2454: stloc.s 169 (System.Boolean)
IL_2456: ldloc.s 169 (System.Boolean)
IL_2458: brfalse => Label302
IL_245D: nop
IL_245E: ldarg.0
IL_245F: ldloc.s 6 (System.Single)
IL_2461: ldc.r4 30
IL_2466: add
IL_2467: stfld System.Single
Sandy_Detailed_RPG_Inventory.Sandy_Detailed_RPG_GearTab::scrollViewHeight
IL_246C: nop
IL_246D: Label302
IL_246D: call static System.Void Verse.Widgets::EndScrollView()
IL_2472: nop
IL_2473: call static System.Void Verse.Widgets::EndGroup()
IL_2478: nop
IL_2479: call static UnityEngine.Color UnityEngine.Color::get_white()
IL_247E: call static System.Void UnityEngine.GUI::set_color(UnityEngine.Color
value)
IL_2483: nop
IL_2484: ldc.i4.0
IL_2485: call static System.Void
Verse.Text::set_Anchor(UnityEngine.TextAnchor value)
IL_248A: nop
IL_248B: // end original
IL_248B: ret
DONE

### Harmony id=com.smartspeed, version=2.2.2.0, location=C:\Program Files (x86)\


Steam\steamapps\common\data-000002130553D010, env/clr=4.0.30319.42000,
platform=Win32NT, ptrsize:runtime/env=8/Bits64, Windows
### Started from static System.Void SmartSpeed.Main::.cctor(), location C:\Program
Files (x86)\Steam\steamapps\common\data-00000213097484F0
### At 2023-02-17 06.57.37
### Patch: System.Single Verse.TickManager::get_TickRateMultiplier()
### Replacement: static System.Single
Verse.TickManager::Verse.TickManager.get_TickRateMultiplier_Patch1(Verse.TickManage
r this)
IL_0000: Local var 0: Verse.TimeSpeed
IL_0000: Local var 1: System.Single
IL_0000: Local var 2: System.Boolean
IL_0000: ldc.r4 0
IL_0005: stloc 1 (System.Single)
IL_0009: ldc.i4 0
IL_000E: stloc 2 (System.Boolean)
IL_0012: ldc.i4.1
IL_0013: stloc 2 (System.Boolean)
IL_0017: ldloc 2 (System.Boolean)
IL_001B: brfalse => Label1
IL_0020: ldloca 1 (System.Single)
IL_0024: ldsfld System.Boolean Verse.TickManager::UltraSpeedBoost
IL_0029: ldarg.0
IL_002A: call static System.Boolean
SmartSpeed.SmartSpeed_TickManager_TickRateMultiplier_PreAndPostfix::ModifyTickRate(
System.Single& __result, System.Boolean ___UltraSpeedBoost, Verse.TickManager
__instance)
IL_002F: stloc 2 (System.Boolean)
IL_0033: Label1
IL_0033: nop
IL_0034: ldloc 2 (System.Boolean)
IL_0038: brfalse => Label0
IL_003D: // start original
IL_003D: ldarg.0
IL_003E: ldfld Verse.TimeSlower Verse.TickManager::slower
IL_0043: callvirt System.Boolean Verse.TimeSlower::get_ForcedNormalSpeed()
IL_0048: brfalse => Label2
IL_004D: ldarg.0
IL_004E: ldfld Verse.TimeSpeed Verse.TickManager::curTimeSpeed
IL_0053: brtrue => Label3
IL_0058: ldc.r4 0
IL_005D: br => Label14
IL_0062: Label3
IL_0062: ldc.r4 1
IL_0067: br => Label15
IL_006C: Label2
IL_006C: ldarg.0
IL_006D: ldfld Verse.TimeSpeed Verse.TickManager::curTimeSpeed
IL_0072: stloc.0
IL_0073: ldloc.0
IL_0074: switch => Labels4,5,6,7,8
IL_008D: br => Label9
IL_0092: Label4
IL_0092: ldc.r4 0
IL_0097: br => Label16
IL_009C: Label5
IL_009C: ldc.r4 1
IL_00A1: br => Label17
IL_00A6: Label6
IL_00A6: ldc.r4 3
IL_00AB: br => Label18
IL_00B0: Label7
IL_00B0: call static System.Collections.Generic.List`1<Verse.Map>
Verse.Find::get_Maps()
IL_00B5: callvirt virtual System.Int32
System.Collections.Generic.List`1<Verse.Map>::get_Count()
IL_00BA: brtrue => Label10
IL_00BF: ldc.r4 120
IL_00C4: br => Label19
IL_00C9: Label10
IL_00C9: ldarg.0
IL_00CA: call System.Boolean Verse.TickManager::NothingHappeningInGame()
IL_00CF: brfalse => Label11
IL_00D4: ldc.r4 12
IL_00D9: br => Label20
IL_00DE: Label11
IL_00DE: ldc.r4 6
IL_00E3: br => Label21
IL_00E8: Label8
IL_00E8: call static System.Collections.Generic.List`1<Verse.Map>
Verse.Find::get_Maps()
IL_00ED: callvirt virtual System.Int32
System.Collections.Generic.List`1<Verse.Map>::get_Count()
IL_00F2: brfalse => Label12
IL_00F7: ldsfld System.Boolean Verse.TickManager::UltraSpeedBoost
IL_00FC: brfalse => Label13
IL_0101: Label12
IL_0101: ldc.r4 150
IL_0106: br => Label22
IL_010B: Label13
IL_010B: ldc.r4 15
IL_0110: br => Label23
IL_0115: Label9
IL_0115: ldc.r4 -1
IL_011A: // end original
IL_011A: Label14
IL_011A: Label15
IL_011A: Label16
IL_011A: Label17
IL_011A: Label18
IL_011A: Label19
IL_011A: Label20
IL_011A: Label21
IL_011A: Label22
IL_011A: Label23
IL_011A: stloc 1 (System.Single)
IL_011E: Label0
IL_011E: ldloc 1 (System.Single)
IL_0122: ret
DONE

### Patch: static System.Void


RimWorld.TimeControls::DoTimeControlsGUI(UnityEngine.Rect timerRect)
### Replacement: static System.Void
RimWorld.TimeControls::RimWorld.TimeControls.DoTimeControlsGUI_Patch1(UnityEngine.R
ect timerRect)
IL_0000: Local var 0: Verse.TickManager
IL_0000: Local var 1: UnityEngine.Rect
IL_0000: Local var 2: System.Int32
IL_0000: Local var 3: Verse.TimeSpeed
IL_0000: Local var 4: Verse.TimeSpeed
IL_0000: call static System.Void
CameraPlus.TimeControls_DoTimeControlsGUI_Patch::Prefix()
IL_0005: // start original
IL_0005: call static Verse.TickManager Verse.Find::get_TickManager()
IL_000A: stloc.0
IL_000B: ldarg.0
IL_000C: call static System.Void Verse.Widgets::BeginGroup(UnityEngine.Rect
rect)
IL_0011: ldloca.s 1 (UnityEngine.Rect)
IL_0013: ldc.r4 0
IL_0018: ldc.r4 0
IL_001D: ldsflda UnityEngine.Vector2 RimWorld.TimeControls::TimeButSize
IL_0022: ldfld System.Single UnityEngine.Vector2::x
IL_0027: ldsflda UnityEngine.Vector2 RimWorld.TimeControls::TimeButSize
IL_002C: ldfld System.Single UnityEngine.Vector2::y
IL_0031: call System.Void UnityEngine.Rect::.ctor(System.Single x,
System.Single y, System.Single width, System.Single height)
IL_0036: ldc.i4.0
IL_0037: stloc.2
IL_0038: br => Label0
IL_003D: Label6
IL_003D: ldsfld Verse.TimeSpeed[] RimWorld.TimeControls::CachedTimeSpeedValues
IL_0042: ldloc.2
IL_0043: ldelem.u1
IL_0044: stloc.3
IL_0045: nop
IL_0046: nop
IL_0047: nop
IL_0048: ldloc.1
IL_0049: ldsfld UnityEngine.Texture2D[]
SmartSpeed.AlternateButtons::SpeedButtonTextures
IL_004E: ldloc.3
IL_004F: ldelem.ref
IL_0050: ldc.i4.1
IL_0051: call static System.Boolean
TD_Enhancement_Pack.StopForcedSlowdown::ButtonImageAndCheckForShift(UnityEngine.Rec
t butRect, UnityEngine.Texture2D tex, System.Boolean doMouseoverSound)
IL_0056: brfalse => Label2
IL_005B: ldloc.3
IL_005C: brtrue => Label3
IL_0061: ldloc.0
IL_0062: callvirt System.Void Verse.TickManager::TogglePaused()
IL_0067: ldsfld RimWorld.ConceptDef RimWorld.ConceptDefOf::Pause
IL_006C: ldc.i4.5
IL_006D: call static System.Void
RimWorld.PlayerKnowledgeDatabase::KnowledgeDemonstrated(RimWorld.ConceptDef conc,
RimWorld.KnowledgeAmount know)
IL_0072: br => Label4
IL_0077: Label3
IL_0077: ldloc.0
IL_0078: ldloc.3
IL_0079: callvirt System.Void Verse.TickManager::set_CurTimeSpeed(Verse.TimeSpeed
value)
IL_007E: ldsfld RimWorld.ConceptDef RimWorld.ConceptDefOf::TimeControls
IL_0083: ldc.i4.5
IL_0084: call static System.Void
RimWorld.PlayerKnowledgeDatabase::KnowledgeDemonstrated(RimWorld.ConceptDef conc,
RimWorld.KnowledgeAmount know)
IL_0089: Label4
IL_0089: ldloc.0
IL_008A: callvirt Verse.TimeSpeed Verse.TickManager::get_CurTimeSpeed()
IL_008F: call static System.Void
RimWorld.TimeControls::PlaySoundOf(Verse.TimeSpeed speed)
IL_0094: Label2
IL_0094: ldloc.0
IL_0095: callvirt Verse.TimeSpeed Verse.TickManager::get_CurTimeSpeed()
IL_009A: ldloc.3
IL_009B: bne.un => Label5
IL_00A0: ldloc.1
IL_00A1: ldsfld UnityEngine.Texture2D Verse.TexUI::HighlightTex
IL_00A6: call static System.Void
UnityEngine.GUI::DrawTexture(UnityEngine.Rect position, UnityEngine.Texture image)
IL_00AB: Label5
IL_00AB: ldloca.s 1 (UnityEngine.Rect)
IL_00AD: dup
IL_00AE: call System.Single UnityEngine.Rect::get_x()
IL_00B3: ldloca.s 1 (UnityEngine.Rect)
IL_00B5: call System.Single UnityEngine.Rect::get_width()
IL_00BA: add
IL_00BB: call System.Void UnityEngine.Rect::set_x(System.Single value)
IL_00C0: Label1
IL_00C0: ldloc.2
IL_00C1: ldc.i4.1
IL_00C2: add
IL_00C3: stloc.2
IL_00C4: Label0
IL_00C4: ldloc.2
IL_00C5: ldsfld Verse.TimeSpeed[] RimWorld.TimeControls::CachedTimeSpeedValues
IL_00CA: ldlen
IL_00CB: conv.i4
IL_00CC: blt => Label6
IL_00D1: call static Verse.TickManager Verse.Find::get_TickManager()
IL_00D6: ldfld Verse.TimeSlower Verse.TickManager::slower
IL_00DB: callvirt System.Boolean Verse.TimeSlower::get_ForcedNormalSpeed()
IL_00E0: brfalse => Label7
IL_00E5: ldloca.s 1 (UnityEngine.Rect)
IL_00E7: call System.Single UnityEngine.Rect::get_width()
IL_00EC: ldc.r4 2
IL_00F1: mul
IL_00F2: ldloca.s 1 (UnityEngine.Rect)
IL_00F4: call System.Single UnityEngine.Rect::get_height()
IL_00F9: ldc.r4 2
IL_00FE: div
IL_00FF: ldloca.s 1 (UnityEngine.Rect)
IL_0101: call System.Single UnityEngine.Rect::get_width()
IL_0106: ldc.r4 2
IL_010B: mul
IL_010C: call static System.Void
Verse.Widgets::DrawLineHorizontal(System.Single x, System.Single y, System.Single
length)
IL_0111: Label7
IL_0111: call static System.Void Verse.Widgets::EndGroup()
IL_0116: ldarg.0
IL_0117: call static System.Void
Verse.GenUI::AbsorbClicksInRect(UnityEngine.Rect r)
IL_011C: ldarg.0
IL_011D: ldstr "TimeControls"
IL_0122: call static System.Void
Verse.UIHighlighter::HighlightOpportunity(UnityEngine.Rect rect, System.String tag)
IL_0127: call static UnityEngine.Event UnityEngine.Event::get_current()
IL_012C: callvirt UnityEngine.EventType UnityEngine.Event::get_type()
IL_0131: ldc.i4.4
IL_0132: bne.un => Label8
IL_0137: ldsfld Verse.KeyBindingDef RimWorld.KeyBindingDefOf::TogglePause
IL_013C: callvirt System.Boolean Verse.KeyBindingDef::get_KeyDownEvent()
IL_0141: brfalse => Label9
IL_0146: call static Verse.TickManager Verse.Find::get_TickManager()
IL_014B: callvirt System.Void Verse.TickManager::TogglePaused()
IL_0150: call static Verse.TickManager Verse.Find::get_TickManager()
IL_0155: callvirt Verse.TimeSpeed Verse.TickManager::get_CurTimeSpeed()
IL_015A: call static System.Void
RimWorld.TimeControls::PlaySoundOf(Verse.TimeSpeed speed)
IL_015F: ldsfld RimWorld.ConceptDef RimWorld.ConceptDefOf::Pause
IL_0164: ldc.i4.5
IL_0165: call static System.Void
RimWorld.PlayerKnowledgeDatabase::KnowledgeDemonstrated(RimWorld.ConceptDef conc,
RimWorld.KnowledgeAmount know)
IL_016A: call static UnityEngine.Event UnityEngine.Event::get_current()
IL_016F: callvirt System.Void UnityEngine.Event::Use()
IL_0174: Label9
IL_0174: call static Verse.WindowStack Verse.Find::get_WindowStack()
IL_0179: callvirt System.Boolean Verse.WindowStack::get_WindowsForcePause()
IL_017E: brtrue => Label10
IL_0183: ldsfld Verse.KeyBindingDef RimWorld.KeyBindingDefOf::TimeSpeed_Normal
IL_0188: callvirt System.Boolean Verse.KeyBindingDef::get_KeyDownEvent()
IL_018D: brfalse => Label11
IL_0192: call static Verse.TickManager Verse.Find::get_TickManager()
IL_0197: ldc.i4.1
IL_0198: callvirt System.Void Verse.TickManager::set_CurTimeSpeed(Verse.TimeSpeed
value)
IL_019D: call static Verse.TickManager Verse.Find::get_TickManager()
IL_01A2: callvirt Verse.TimeSpeed Verse.TickManager::get_CurTimeSpeed()
IL_01A7: call static System.Void
RimWorld.TimeControls::PlaySoundOf(Verse.TimeSpeed speed)
IL_01AC: ldsfld RimWorld.ConceptDef RimWorld.ConceptDefOf::TimeControls
IL_01B1: ldc.i4.5
IL_01B2: call static System.Void
RimWorld.PlayerKnowledgeDatabase::KnowledgeDemonstrated(RimWorld.ConceptDef conc,
RimWorld.KnowledgeAmount know)
IL_01B7: call static UnityEngine.Event UnityEngine.Event::get_current()
IL_01BC: callvirt System.Void UnityEngine.Event::Use()
IL_01C1: Label11
IL_01C1: ldsfld Verse.KeyBindingDef RimWorld.KeyBindingDefOf::TimeSpeed_Fast
IL_01C6: callvirt System.Boolean Verse.KeyBindingDef::get_KeyDownEvent()
IL_01CB: brfalse => Label12
IL_01D0: call static Verse.TickManager Verse.Find::get_TickManager()
IL_01D5: ldc.i4.2
IL_01D6: callvirt System.Void Verse.TickManager::set_CurTimeSpeed(Verse.TimeSpeed
value)
IL_01DB: call static Verse.TickManager Verse.Find::get_TickManager()
IL_01E0: callvirt Verse.TimeSpeed Verse.TickManager::get_CurTimeSpeed()
IL_01E5: call static System.Void
RimWorld.TimeControls::PlaySoundOf(Verse.TimeSpeed speed)
IL_01EA: ldsfld RimWorld.ConceptDef RimWorld.ConceptDefOf::TimeControls
IL_01EF: ldc.i4.5
IL_01F0: call static System.Void
RimWorld.PlayerKnowledgeDatabase::KnowledgeDemonstrated(RimWorld.ConceptDef conc,
RimWorld.KnowledgeAmount know)
IL_01F5: call static UnityEngine.Event UnityEngine.Event::get_current()
IL_01FA: callvirt System.Void UnityEngine.Event::Use()
IL_01FF: Label12
IL_01FF: ldsfld Verse.KeyBindingDef
RimWorld.KeyBindingDefOf::TimeSpeed_Superfast
IL_0204: callvirt System.Boolean Verse.KeyBindingDef::get_KeyDownEvent()
IL_0209: brfalse => Label13
IL_020E: call static Verse.TickManager Verse.Find::get_TickManager()
IL_0213: ldc.i4.3
IL_0214: callvirt System.Void Verse.TickManager::set_CurTimeSpeed(Verse.TimeSpeed
value)
IL_0219: call static Verse.TickManager Verse.Find::get_TickManager()
IL_021E: callvirt Verse.TimeSpeed Verse.TickManager::get_CurTimeSpeed()
IL_0223: call static System.Void
RimWorld.TimeControls::PlaySoundOf(Verse.TimeSpeed speed)
IL_0228: ldsfld RimWorld.ConceptDef RimWorld.ConceptDefOf::TimeControls
IL_022D: ldc.i4.5
IL_022E: call static System.Void
RimWorld.PlayerKnowledgeDatabase::KnowledgeDemonstrated(RimWorld.ConceptDef conc,
RimWorld.KnowledgeAmount know)
IL_0233: call static UnityEngine.Event UnityEngine.Event::get_current()
IL_0238: callvirt System.Void UnityEngine.Event::Use()
IL_023D: Label13
IL_023D: ldsfld Verse.KeyBindingDef RimWorld.KeyBindingDefOf::TimeSpeed_Slower
IL_0242: callvirt System.Boolean Verse.KeyBindingDef::get_KeyDownEvent()
IL_0247: brfalse => Label14
IL_024C: call static Verse.TickManager Verse.Find::get_TickManager()
IL_0251: callvirt Verse.TimeSpeed Verse.TickManager::get_CurTimeSpeed()
IL_0256: brfalse => Label15
IL_025B: call static Verse.TickManager Verse.Find::get_TickManager()
IL_0260: dup
IL_0261: callvirt Verse.TimeSpeed Verse.TickManager::get_CurTimeSpeed()
IL_0266: stloc.s 4 (Verse.TimeSpeed)
IL_0268: ldloc.s 4 (Verse.TimeSpeed)
IL_026A: ldc.i4.1
IL_026B: sub
IL_026C: conv.u1
IL_026D: callvirt System.Void Verse.TickManager::set_CurTimeSpeed(Verse.TimeSpeed
value)
IL_0272: call static Verse.TickManager Verse.Find::get_TickManager()
IL_0277: callvirt Verse.TimeSpeed Verse.TickManager::get_CurTimeSpeed()
IL_027C: call static System.Void
RimWorld.TimeControls::PlaySoundOf(Verse.TimeSpeed speed)
IL_0281: ldsfld RimWorld.ConceptDef RimWorld.ConceptDefOf::TimeControls
IL_0286: ldc.i4.5
IL_0287: call static System.Void
RimWorld.PlayerKnowledgeDatabase::KnowledgeDemonstrated(RimWorld.ConceptDef conc,
RimWorld.KnowledgeAmount know)
IL_028C: call static UnityEngine.Event UnityEngine.Event::get_current()
IL_0291: callvirt System.Void UnityEngine.Event::Use()
IL_0296: Label14
IL_0296: Label15
IL_0296: ldsfld Verse.KeyBindingDef RimWorld.KeyBindingDefOf::TimeSpeed_Faster
IL_029B: callvirt System.Boolean Verse.KeyBindingDef::get_KeyDownEvent()
IL_02A0: brfalse => Label16
IL_02A5: call static Verse.TickManager Verse.Find::get_TickManager()
IL_02AA: callvirt Verse.TimeSpeed Verse.TickManager::get_CurTimeSpeed()
IL_02AF: ldc.i4.3
IL_02B0: bge => Label17
IL_02B5: call static Verse.TickManager Verse.Find::get_TickManager()
IL_02BA: dup
IL_02BB: callvirt Verse.TimeSpeed Verse.TickManager::get_CurTimeSpeed()
IL_02C0: stloc.s 4 (Verse.TimeSpeed)
IL_02C2: ldloc.s 4 (Verse.TimeSpeed)
IL_02C4: ldc.i4.1
IL_02C5: add
IL_02C6: conv.u1
IL_02C7: callvirt System.Void Verse.TickManager::set_CurTimeSpeed(Verse.TimeSpeed
value)
IL_02CC: call static Verse.TickManager Verse.Find::get_TickManager()
IL_02D1: callvirt Verse.TimeSpeed Verse.TickManager::get_CurTimeSpeed()
IL_02D6: call static System.Void
RimWorld.TimeControls::PlaySoundOf(Verse.TimeSpeed speed)
IL_02DB: ldsfld RimWorld.ConceptDef RimWorld.ConceptDefOf::TimeControls
IL_02E0: ldc.i4.5
IL_02E1: call static System.Void
RimWorld.PlayerKnowledgeDatabase::KnowledgeDemonstrated(RimWorld.ConceptDef conc,
RimWorld.KnowledgeAmount know)
IL_02E6: call static UnityEngine.Event UnityEngine.Event::get_current()
IL_02EB: callvirt System.Void UnityEngine.Event::Use()
IL_02F0: Label10
IL_02F0: Label16
IL_02F0: Label17
IL_02F0: call static System.Boolean
SmartSpeed.SmartSpeed_TimeControls_DoTimeControlsGUI_Transpiler::Yes()
IL_02F5: brfalse => Label18
IL_02FA: ldsfld Verse.KeyBindingDef
RimWorld.KeyBindingDefOf::TimeSpeed_Ultrafast
IL_02FF: callvirt System.Boolean Verse.KeyBindingDef::get_KeyDownEvent()
IL_0304: brfalse => Label19
IL_0309: call static Verse.TickManager Verse.Find::get_TickManager()
IL_030E: ldc.i4.4
IL_030F: callvirt System.Void Verse.TickManager::set_CurTimeSpeed(Verse.TimeSpeed
value)
IL_0314: call static Verse.TickManager Verse.Find::get_TickManager()
IL_0319: callvirt Verse.TimeSpeed Verse.TickManager::get_CurTimeSpeed()
IL_031E: call static System.Void
RimWorld.TimeControls::PlaySoundOf(Verse.TimeSpeed speed)
IL_0323: call static UnityEngine.Event UnityEngine.Event::get_current()
IL_0328: callvirt System.Void UnityEngine.Event::Use()
IL_032D: Label19
IL_032D: ldsfld Verse.KeyBindingDef RimWorld.KeyBindingDefOf::Dev_TickOnce
IL_0332: callvirt System.Boolean Verse.KeyBindingDef::get_KeyDownEvent()
IL_0337: brfalse => Label20
IL_033C: ldloc.0
IL_033D: callvirt Verse.TimeSpeed Verse.TickManager::get_CurTimeSpeed()
IL_0342: brtrue => Label21
IL_0347: ldloc.0
IL_0348: callvirt System.Void Verse.TickManager::DoSingleTick()
IL_034D: ldsfld Verse.SoundDef RimWorld.SoundDefOf::Clock_Stop
IL_0352: ldnull
IL_0353: call static System.Void
Verse.Sound.SoundStarter::PlayOneShotOnCamera(Verse.SoundDef soundDef, Verse.Map
onlyThisMap)
IL_0358: // end original
IL_0358: Label8
IL_0358: Label18
IL_0358: Label20
IL_0358: Label21
IL_0358: ret
DONE

### Patch: static System.Void


RimWorld.TimeControls::DoTimeControlsGUI(UnityEngine.Rect timerRect)
### Replacement: static System.Void
RimWorld.TimeControls::RimWorld.TimeControls.DoTimeControlsGUI_Patch2(UnityEngine.R
ect timerRect)
IL_0000: Local var 0: Verse.TickManager
IL_0000: Local var 1: UnityEngine.Rect
IL_0000: Local var 2: System.Int32
IL_0000: Local var 3: Verse.TimeSpeed
IL_0000: Local var 4: Verse.TimeSpeed
IL_0000: Local var 5: System.Boolean
IL_0000: ldc.i4 0
IL_0005: stloc 5 (System.Boolean)
IL_0009: ldc.i4.1
IL_000A: stloc 5 (System.Boolean)
IL_000E: call static System.Void
CameraPlus.TimeControls_DoTimeControlsGUI_Patch::Prefix()
IL_0013: ldloc 5 (System.Boolean)
IL_0017: brfalse => Label1
IL_001C: ldarga 0
IL_0020: call static System.Void
SmartSpeed.SmartSpeed_TimeControls_DoTimeControlsGUI_Prefix::CallGUIConfig(UnityEng
ine.Rect& timerRect)
IL_0025: Label1
IL_0025: nop
IL_0026: ldloc 5 (System.Boolean)
IL_002A: brfalse => Label0
IL_002F: // start original
IL_002F: call static Verse.TickManager Verse.Find::get_TickManager()
IL_0034: stloc.0
IL_0035: ldarg.0
IL_0036: call static System.Void Verse.Widgets::BeginGroup(UnityEngine.Rect
rect)
IL_003B: ldloca.s 1 (UnityEngine.Rect)
IL_003D: ldc.r4 0
IL_0042: ldc.r4 0
IL_0047: ldsflda UnityEngine.Vector2 RimWorld.TimeControls::TimeButSize
IL_004C: ldfld System.Single UnityEngine.Vector2::x
IL_0051: ldsflda UnityEngine.Vector2 RimWorld.TimeControls::TimeButSize
IL_0056: ldfld System.Single UnityEngine.Vector2::y
IL_005B: call System.Void UnityEngine.Rect::.ctor(System.Single x,
System.Single y, System.Single width, System.Single height)
IL_0060: ldc.i4.0
IL_0061: stloc.2
IL_0062: br => Label2
IL_0067: Label8
IL_0067: ldsfld Verse.TimeSpeed[] RimWorld.TimeControls::CachedTimeSpeedValues
IL_006C: ldloc.2
IL_006D: ldelem.u1
IL_006E: stloc.3
IL_006F: nop
IL_0070: nop
IL_0071: nop
IL_0072: ldloc.1
IL_0073: ldsfld UnityEngine.Texture2D[]
SmartSpeed.AlternateButtons::SpeedButtonTextures
IL_0078: ldloc.3
IL_0079: ldelem.ref
IL_007A: ldc.i4.1
IL_007B: call static System.Boolean
TD_Enhancement_Pack.StopForcedSlowdown::ButtonImageAndCheckForShift(UnityEngine.Rec
t butRect, UnityEngine.Texture2D tex, System.Boolean doMouseoverSound)
IL_0080: brfalse => Label4
IL_0085: ldloc.3
IL_0086: brtrue => Label5
IL_008B: ldloc.0
IL_008C: callvirt System.Void Verse.TickManager::TogglePaused()
IL_0091: ldsfld RimWorld.ConceptDef RimWorld.ConceptDefOf::Pause
IL_0096: ldc.i4.5
IL_0097: call static System.Void
RimWorld.PlayerKnowledgeDatabase::KnowledgeDemonstrated(RimWorld.ConceptDef conc,
RimWorld.KnowledgeAmount know)
IL_009C: br => Label6
IL_00A1: Label5
IL_00A1: ldloc.0
IL_00A2: ldloc.3
IL_00A3: callvirt System.Void Verse.TickManager::set_CurTimeSpeed(Verse.TimeSpeed
value)
IL_00A8: ldsfld RimWorld.ConceptDef RimWorld.ConceptDefOf::TimeControls
IL_00AD: ldc.i4.5
IL_00AE: call static System.Void
RimWorld.PlayerKnowledgeDatabase::KnowledgeDemonstrated(RimWorld.ConceptDef conc,
RimWorld.KnowledgeAmount know)
IL_00B3: Label6
IL_00B3: ldloc.0
IL_00B4: callvirt Verse.TimeSpeed Verse.TickManager::get_CurTimeSpeed()
IL_00B9: call static System.Void
RimWorld.TimeControls::PlaySoundOf(Verse.TimeSpeed speed)
IL_00BE: Label4
IL_00BE: ldloc.0
IL_00BF: callvirt Verse.TimeSpeed Verse.TickManager::get_CurTimeSpeed()
IL_00C4: ldloc.3
IL_00C5: bne.un => Label7
IL_00CA: ldloc.1
IL_00CB: ldsfld UnityEngine.Texture2D Verse.TexUI::HighlightTex
IL_00D0: call static System.Void
UnityEngine.GUI::DrawTexture(UnityEngine.Rect position, UnityEngine.Texture image)
IL_00D5: Label7
IL_00D5: ldloca.s 1 (UnityEngine.Rect)
IL_00D7: dup
IL_00D8: call System.Single UnityEngine.Rect::get_x()
IL_00DD: ldloca.s 1 (UnityEngine.Rect)
IL_00DF: call System.Single UnityEngine.Rect::get_width()
IL_00E4: add
IL_00E5: call System.Void UnityEngine.Rect::set_x(System.Single value)
IL_00EA: Label3
IL_00EA: ldloc.2
IL_00EB: ldc.i4.1
IL_00EC: add
IL_00ED: stloc.2
IL_00EE: Label2
IL_00EE: ldloc.2
IL_00EF: ldsfld Verse.TimeSpeed[] RimWorld.TimeControls::CachedTimeSpeedValues
IL_00F4: ldlen
IL_00F5: conv.i4
IL_00F6: blt => Label8
IL_00FB: call static Verse.TickManager Verse.Find::get_TickManager()
IL_0100: ldfld Verse.TimeSlower Verse.TickManager::slower
IL_0105: callvirt System.Boolean Verse.TimeSlower::get_ForcedNormalSpeed()
IL_010A: brfalse => Label9
IL_010F: ldloca.s 1 (UnityEngine.Rect)
IL_0111: call System.Single UnityEngine.Rect::get_width()
IL_0116: ldc.r4 2
IL_011B: mul
IL_011C: ldloca.s 1 (UnityEngine.Rect)
IL_011E: call System.Single UnityEngine.Rect::get_height()
IL_0123: ldc.r4 2
IL_0128: div
IL_0129: ldloca.s 1 (UnityEngine.Rect)
IL_012B: call System.Single UnityEngine.Rect::get_width()
IL_0130: ldc.r4 2
IL_0135: mul
IL_0136: call static System.Void
Verse.Widgets::DrawLineHorizontal(System.Single x, System.Single y, System.Single
length)
IL_013B: Label9
IL_013B: call static System.Void Verse.Widgets::EndGroup()
IL_0140: ldarg.0
IL_0141: call static System.Void
Verse.GenUI::AbsorbClicksInRect(UnityEngine.Rect r)
IL_0146: ldarg.0
IL_0147: ldstr "TimeControls"
IL_014C: call static System.Void
Verse.UIHighlighter::HighlightOpportunity(UnityEngine.Rect rect, System.String tag)
IL_0151: call static UnityEngine.Event UnityEngine.Event::get_current()
IL_0156: callvirt UnityEngine.EventType UnityEngine.Event::get_type()
IL_015B: ldc.i4.4
IL_015C: bne.un => Label10
IL_0161: ldsfld Verse.KeyBindingDef RimWorld.KeyBindingDefOf::TogglePause
IL_0166: callvirt System.Boolean Verse.KeyBindingDef::get_KeyDownEvent()
IL_016B: brfalse => Label11
IL_0170: call static Verse.TickManager Verse.Find::get_TickManager()
IL_0175: callvirt System.Void Verse.TickManager::TogglePaused()
IL_017A: call static Verse.TickManager Verse.Find::get_TickManager()
IL_017F: callvirt Verse.TimeSpeed Verse.TickManager::get_CurTimeSpeed()
IL_0184: call static System.Void
RimWorld.TimeControls::PlaySoundOf(Verse.TimeSpeed speed)
IL_0189: ldsfld RimWorld.ConceptDef RimWorld.ConceptDefOf::Pause
IL_018E: ldc.i4.5
IL_018F: call static System.Void
RimWorld.PlayerKnowledgeDatabase::KnowledgeDemonstrated(RimWorld.ConceptDef conc,
RimWorld.KnowledgeAmount know)
IL_0194: call static UnityEngine.Event UnityEngine.Event::get_current()
IL_0199: callvirt System.Void UnityEngine.Event::Use()
IL_019E: Label11
IL_019E: call static Verse.WindowStack Verse.Find::get_WindowStack()
IL_01A3: callvirt System.Boolean Verse.WindowStack::get_WindowsForcePause()
IL_01A8: brtrue => Label12
IL_01AD: ldsfld Verse.KeyBindingDef RimWorld.KeyBindingDefOf::TimeSpeed_Normal
IL_01B2: callvirt System.Boolean Verse.KeyBindingDef::get_KeyDownEvent()
IL_01B7: brfalse => Label13
IL_01BC: call static Verse.TickManager Verse.Find::get_TickManager()
IL_01C1: ldc.i4.1
IL_01C2: callvirt System.Void Verse.TickManager::set_CurTimeSpeed(Verse.TimeSpeed
value)
IL_01C7: call static Verse.TickManager Verse.Find::get_TickManager()
IL_01CC: callvirt Verse.TimeSpeed Verse.TickManager::get_CurTimeSpeed()
IL_01D1: call static System.Void
RimWorld.TimeControls::PlaySoundOf(Verse.TimeSpeed speed)
IL_01D6: ldsfld RimWorld.ConceptDef RimWorld.ConceptDefOf::TimeControls
IL_01DB: ldc.i4.5
IL_01DC: call static System.Void
RimWorld.PlayerKnowledgeDatabase::KnowledgeDemonstrated(RimWorld.ConceptDef conc,
RimWorld.KnowledgeAmount know)
IL_01E1: call static UnityEngine.Event UnityEngine.Event::get_current()
IL_01E6: callvirt System.Void UnityEngine.Event::Use()
IL_01EB: Label13
IL_01EB: ldsfld Verse.KeyBindingDef RimWorld.KeyBindingDefOf::TimeSpeed_Fast
IL_01F0: callvirt System.Boolean Verse.KeyBindingDef::get_KeyDownEvent()
IL_01F5: brfalse => Label14
IL_01FA: call static Verse.TickManager Verse.Find::get_TickManager()
IL_01FF: ldc.i4.2
IL_0200: callvirt System.Void Verse.TickManager::set_CurTimeSpeed(Verse.TimeSpeed
value)
IL_0205: call static Verse.TickManager Verse.Find::get_TickManager()
IL_020A: callvirt Verse.TimeSpeed Verse.TickManager::get_CurTimeSpeed()
IL_020F: call static System.Void
RimWorld.TimeControls::PlaySoundOf(Verse.TimeSpeed speed)
IL_0214: ldsfld RimWorld.ConceptDef RimWorld.ConceptDefOf::TimeControls
IL_0219: ldc.i4.5
IL_021A: call static System.Void
RimWorld.PlayerKnowledgeDatabase::KnowledgeDemonstrated(RimWorld.ConceptDef conc,
RimWorld.KnowledgeAmount know)
IL_021F: call static UnityEngine.Event UnityEngine.Event::get_current()
IL_0224: callvirt System.Void UnityEngine.Event::Use()
IL_0229: Label14
IL_0229: ldsfld Verse.KeyBindingDef
RimWorld.KeyBindingDefOf::TimeSpeed_Superfast
IL_022E: callvirt System.Boolean Verse.KeyBindingDef::get_KeyDownEvent()
IL_0233: brfalse => Label15
IL_0238: call static Verse.TickManager Verse.Find::get_TickManager()
IL_023D: ldc.i4.3
IL_023E: callvirt System.Void Verse.TickManager::set_CurTimeSpeed(Verse.TimeSpeed
value)
IL_0243: call static Verse.TickManager Verse.Find::get_TickManager()
IL_0248: callvirt Verse.TimeSpeed Verse.TickManager::get_CurTimeSpeed()
IL_024D: call static System.Void
RimWorld.TimeControls::PlaySoundOf(Verse.TimeSpeed speed)
IL_0252: ldsfld RimWorld.ConceptDef RimWorld.ConceptDefOf::TimeControls
IL_0257: ldc.i4.5
IL_0258: call static System.Void
RimWorld.PlayerKnowledgeDatabase::KnowledgeDemonstrated(RimWorld.ConceptDef conc,
RimWorld.KnowledgeAmount know)
IL_025D: call static UnityEngine.Event UnityEngine.Event::get_current()
IL_0262: callvirt System.Void UnityEngine.Event::Use()
IL_0267: Label15
IL_0267: ldsfld Verse.KeyBindingDef RimWorld.KeyBindingDefOf::TimeSpeed_Slower
IL_026C: callvirt System.Boolean Verse.KeyBindingDef::get_KeyDownEvent()
IL_0271: brfalse => Label16
IL_0276: call static Verse.TickManager Verse.Find::get_TickManager()
IL_027B: callvirt Verse.TimeSpeed Verse.TickManager::get_CurTimeSpeed()
IL_0280: brfalse => Label17
IL_0285: call static Verse.TickManager Verse.Find::get_TickManager()
IL_028A: dup
IL_028B: callvirt Verse.TimeSpeed Verse.TickManager::get_CurTimeSpeed()
IL_0290: stloc.s 4 (Verse.TimeSpeed)
IL_0292: ldloc.s 4 (Verse.TimeSpeed)
IL_0294: ldc.i4.1
IL_0295: sub
IL_0296: conv.u1
IL_0297: callvirt System.Void Verse.TickManager::set_CurTimeSpeed(Verse.TimeSpeed
value)
IL_029C: call static Verse.TickManager Verse.Find::get_TickManager()
IL_02A1: callvirt Verse.TimeSpeed Verse.TickManager::get_CurTimeSpeed()
IL_02A6: call static System.Void
RimWorld.TimeControls::PlaySoundOf(Verse.TimeSpeed speed)
IL_02AB: ldsfld RimWorld.ConceptDef RimWorld.ConceptDefOf::TimeControls
IL_02B0: ldc.i4.5
IL_02B1: call static System.Void
RimWorld.PlayerKnowledgeDatabase::KnowledgeDemonstrated(RimWorld.ConceptDef conc,
RimWorld.KnowledgeAmount know)
IL_02B6: call static UnityEngine.Event UnityEngine.Event::get_current()
IL_02BB: callvirt System.Void UnityEngine.Event::Use()
IL_02C0: Label16
IL_02C0: Label17
IL_02C0: ldsfld Verse.KeyBindingDef RimWorld.KeyBindingDefOf::TimeSpeed_Faster
IL_02C5: callvirt System.Boolean Verse.KeyBindingDef::get_KeyDownEvent()
IL_02CA: brfalse => Label18
IL_02CF: call static Verse.TickManager Verse.Find::get_TickManager()
IL_02D4: callvirt Verse.TimeSpeed Verse.TickManager::get_CurTimeSpeed()
IL_02D9: ldc.i4.3
IL_02DA: bge => Label19
IL_02DF: call static Verse.TickManager Verse.Find::get_TickManager()
IL_02E4: dup
IL_02E5: callvirt Verse.TimeSpeed Verse.TickManager::get_CurTimeSpeed()
IL_02EA: stloc.s 4 (Verse.TimeSpeed)
IL_02EC: ldloc.s 4 (Verse.TimeSpeed)
IL_02EE: ldc.i4.1
IL_02EF: add
IL_02F0: conv.u1
IL_02F1: callvirt System.Void Verse.TickManager::set_CurTimeSpeed(Verse.TimeSpeed
value)
IL_02F6: call static Verse.TickManager Verse.Find::get_TickManager()
IL_02FB: callvirt Verse.TimeSpeed Verse.TickManager::get_CurTimeSpeed()
IL_0300: call static System.Void
RimWorld.TimeControls::PlaySoundOf(Verse.TimeSpeed speed)
IL_0305: ldsfld RimWorld.ConceptDef RimWorld.ConceptDefOf::TimeControls
IL_030A: ldc.i4.5
IL_030B: call static System.Void
RimWorld.PlayerKnowledgeDatabase::KnowledgeDemonstrated(RimWorld.ConceptDef conc,
RimWorld.KnowledgeAmount know)
IL_0310: call static UnityEngine.Event UnityEngine.Event::get_current()
IL_0315: callvirt System.Void UnityEngine.Event::Use()
IL_031A: Label12
IL_031A: Label18
IL_031A: Label19
IL_031A: call static System.Boolean
SmartSpeed.SmartSpeed_TimeControls_DoTimeControlsGUI_Transpiler::Yes()
IL_031F: brfalse => Label20
IL_0324: ldsfld Verse.KeyBindingDef
RimWorld.KeyBindingDefOf::TimeSpeed_Ultrafast
IL_0329: callvirt System.Boolean Verse.KeyBindingDef::get_KeyDownEvent()
IL_032E: brfalse => Label21
IL_0333: call static Verse.TickManager Verse.Find::get_TickManager()
IL_0338: ldc.i4.4
IL_0339: callvirt System.Void Verse.TickManager::set_CurTimeSpeed(Verse.TimeSpeed
value)
IL_033E: call static Verse.TickManager Verse.Find::get_TickManager()
IL_0343: callvirt Verse.TimeSpeed Verse.TickManager::get_CurTimeSpeed()
IL_0348: call static System.Void
RimWorld.TimeControls::PlaySoundOf(Verse.TimeSpeed speed)
IL_034D: call static UnityEngine.Event UnityEngine.Event::get_current()
IL_0352: callvirt System.Void UnityEngine.Event::Use()
IL_0357: Label21
IL_0357: ldsfld Verse.KeyBindingDef RimWorld.KeyBindingDefOf::Dev_TickOnce
IL_035C: callvirt System.Boolean Verse.KeyBindingDef::get_KeyDownEvent()
IL_0361: brfalse => Label22
IL_0366: ldloc.0
IL_0367: callvirt Verse.TimeSpeed Verse.TickManager::get_CurTimeSpeed()
IL_036C: brtrue => Label23
IL_0371: ldloc.0
IL_0372: callvirt System.Void Verse.TickManager::DoSingleTick()
IL_0377: ldsfld Verse.SoundDef RimWorld.SoundDefOf::Clock_Stop
IL_037C: ldnull
IL_037D: call static System.Void
Verse.Sound.SoundStarter::PlayOneShotOnCamera(Verse.SoundDef soundDef, Verse.Map
onlyThisMap)
IL_0382: // end original
IL_0382: Label10
IL_0382: Label20
IL_0382: Label22
IL_0382: Label23
IL_0382: Label0
IL_0382: ret
DONE

### Harmony id=SmarterConstruction, version=2.2.2.0, location=C:\Program Files


(x86)\Steam\steamapps\common\data-000002130553D010, env/clr=4.0.30319.42000,
platform=Win32NT, ptrsize:runtime/env=8/Bits64, Windows
### Started from static System.Void
SmarterConstruction.SmarterConstruction::.cctor(), location C:\Program Files (x86)\
Steam\steamapps\common\data-000002130974C300
### At 2023-02-17 06.57.37
### Patch: virtual System.Collections.Generic.IEnumerable`1<Verse.AI.Toil>
RimWorld.JobDriver_ConstructFinishFrame::MakeNewToils()
### Replacement: static System.Collections.Generic.IEnumerable`1<Verse.AI.Toil>
RimWorld.JobDriver_ConstructFinishFrame::RimWorld.JobDriver_ConstructFinishFrame.Ma
keNewToils_Patch3(RimWorld.JobDriver_ConstructFinishFrame this)
IL_0000: Local var 0: System.Collections.Generic.IEnumerable`1<Verse.AI.Toil>
IL_0000: ldnull
IL_0001: stloc 0 (System.Collections.Generic.IEnumerable`1[Verse.AI.Toil])
IL_0005: // start original
IL_0005: ldc.i4.s -2
IL_0007: newobj System.Void RimWorld.<MakeNewToils>d__4::.ctor(System.Int32
<>1__state)
IL_000C: dup
IL_000D: ldarg.0
IL_000E: stfld RimWorld.JobDriver_ConstructFinishFrame
RimWorld.<MakeNewToils>d__4::<>4__this
IL_0013: // end original
IL_0013: stloc 0 (System.Collections.Generic.IEnumerable`1[Verse.AI.Toil])
IL_0017: ldloca 0 (System.Collections.Generic.IEnumerable`1[Verse.AI.Toil])
IL_001B: ldarg.0
IL_001C: call static System.Void
AutoToolSwitcher.HarmonyPatches::AddEquipToolToilsPostfix(System.Collections.Generi
c.IEnumerable`1& __result, Verse.AI.JobDriver __instance)
IL_0021: ldloc 0 (System.Collections.Generic.IEnumerable`1[Verse.AI.Toil])
IL_0025: ldarg.0
IL_0026: call static System.Collections.Generic.IEnumerable`1<Verse.AI.Toil>
QualityBuilder._JobDriver_ConstructFinishFrame::Postfix(System.Collections.Generic.
IEnumerable`1<Verse.AI.Toil> __result, RimWorld.JobDriver_ConstructFinishFrame
__instance)
IL_002B: ldarg.0
IL_002C: ldfld Verse.Pawn Verse.AI.JobDriver::pawn
IL_0031: call static System.Collections.Generic.IEnumerable`1<Verse.AI.Toil>
SmarterConstruction.Patches.Patch_PawnsGettingStuck::Postfix(System.Collections.Gen
eric.IEnumerable`1<Verse.AI.Toil> __result, Verse.Pawn ___pawn)
IL_0036: ret
DONE

### Patch: virtual System.Single RimWorld.WorkGiver_Scanner::GetPriority(Verse.Pawn


pawn, Verse.TargetInfo t)
### Replacement: static System.Single
RimWorld.WorkGiver_Scanner::RimWorld.WorkGiver_Scanner.GetPriority_Patch1(RimWorld.
WorkGiver_Scanner this, Verse.Pawn pawn, Verse.TargetInfo t)
IL_0000: Local var 0: System.Single
IL_0000: ldc.r4 0
IL_0005: stloc 0 (System.Single)
IL_0009: // start original
IL_0009: ldc.r4 0
IL_000E: // end original
IL_000E: stloc 0 (System.Single)
IL_0012: ldarg 1
IL_0016: ldarg 2
IL_001A: ldloca 0 (System.Single)
IL_001E: ldarg.0
IL_001F: call static System.Void
SmarterConstruction.Patches.Patch_WorkGiver_Scanner_GetPriority::PriorityPostfix(Ve
rse.Pawn pawn, Verse.TargetInfo t, System.Single& __result,
RimWorld.WorkGiver_Scanner __instance)
IL_0024: ldloc 0 (System.Single)
IL_0028: ret
DONE

### Patch: virtual Verse.AI.ThinkResult


RimWorld.JobGiver_Work::TryIssueJobPackage(Verse.Pawn pawn, Verse.AI.JobIssueParams
jobParams)
### Replacement: static Verse.AI.ThinkResult
RimWorld.JobGiver_Work::RimWorld.JobGiver_Work.TryIssueJobPackage_Patch0(RimWorld.J
obGiver_Work this, Verse.Pawn pawn, Verse.AI.JobIssueParams jobParams)
IL_0000: Local var 0: RimWorld.JobGiver_Work/<>c__DisplayClass3_0
IL_0000: Local var 1: System.Collections.Generic.List`1<RimWorld.WorkGiver>
IL_0000: Local var 2: System.Int32
IL_0000: Local var 3: System.Collections.Generic.List`1<RimWorld.WorkGiverDef>
IL_0000: Local var 4: System.Int32
IL_0000: Local var 5: RimWorld.WorkGiver
IL_0000: Local var 6: Verse.AI.Job
IL_0000: Local var 7: System.Int32
IL_0000: Local var 8: RimWorld.WorkGiver
IL_0000: Local var 9: RimWorld.JobGiver_Work/<>c__DisplayClass3_1
IL_0000: Local var 10: Verse.AI.Job
IL_0000: Local var 11: Verse.AI.ThinkResult
IL_0000: Local var 12: System.Predicate`1<Verse.Thing>
IL_0000: Local var 13: System.Collections.Generic.IEnumerable`1<Verse.Thing>
IL_0000: Local var 14: Verse.Thing
IL_0000: Local var 15: System.Collections.Generic.IEnumerable`1<Verse.Thing>
IL_0000: Local var 16: System.Collections.Generic.IEnumerable`1<Verse.Thing>
IL_0000: Local var 17: RimWorld.JobGiver_Work/<>c__DisplayClass3_2
IL_0000: Local var 18: System.Collections.Generic.IEnumerable`1<Verse.IntVec3>
IL_0000: Local var 19: System.Collections.Generic.IList`1<Verse.IntVec3>
IL_0000: Local var 20: System.Int32
IL_0000: Local var 21: System.Collections.Generic.IEnumerator`1<Verse.IntVec3>
IL_0000: Local var 22: Verse.IntVec3
IL_0000: Local var 23: System.Exception
IL_0000: Local var 24: Verse.AI.Job
IL_0000: // start original
IL_0000: newobj System.Void RimWorld.<>c__DisplayClass3_0::.ctor()
IL_0005: stloc.0
IL_0006: ldloc.0
IL_0007: ldarg.1
IL_0008: stfld Verse.Pawn RimWorld.<>c__DisplayClass3_0::pawn
IL_000D: ldloc.0
IL_000E: ldfld Verse.Pawn RimWorld.<>c__DisplayClass3_0::pawn
IL_0013: callvirt Verse.RaceProperties Verse.Pawn::get_RaceProps()
IL_0018: callvirt System.Boolean Verse.RaceProperties::get_Humanlike()
IL_001D: brfalse => Label0
IL_0022: ldloc.0
IL_0023: ldfld Verse.Pawn RimWorld.<>c__DisplayClass3_0::pawn
IL_0028: ldfld Verse.Pawn_HealthTracker Verse.Pawn::health
IL_002D: ldfld Verse.HediffSet Verse.Pawn_HealthTracker::hediffSet
IL_0032: ldc.i4.1
IL_0033: callvirt System.Boolean Verse.HediffSet::InLabor(System.Boolean
includePostpartumExhaustion)
IL_0038: brfalse => Label1
IL_003D: call static Verse.AI.ThinkResult Verse.AI.ThinkResult::get_NoJob()
IL_0042: br => Label49
IL_0047: Label0
IL_0047: Label1
IL_0047: ldarg.0
IL_0048: ldfld System.Boolean RimWorld.JobGiver_Work::emergency
IL_004D: brfalse => Label2
IL_0052: ldloc.0
IL_0053: ldfld Verse.Pawn RimWorld.<>c__DisplayClass3_0::pawn
IL_0058: ldfld Verse.AI.Pawn_MindState Verse.Pawn::mindState
IL_005D: ldfld Verse.PriorityWork Verse.AI.Pawn_MindState::priorityWork
IL_0062: callvirt System.Boolean Verse.PriorityWork::get_IsPrioritized()
IL_0067: brfalse => Label3
IL_006C: ldloc.0
IL_006D: ldfld Verse.Pawn RimWorld.<>c__DisplayClass3_0::pawn
IL_0072: ldfld Verse.AI.Pawn_MindState Verse.Pawn::mindState
IL_0077: ldfld Verse.PriorityWork Verse.AI.Pawn_MindState::priorityWork
IL_007C: callvirt RimWorld.WorkGiverDef Verse.PriorityWork::get_WorkGiver()
IL_0081: ldfld Verse.WorkTypeDef RimWorld.WorkGiverDef::workType
IL_0086: ldfld System.Collections.Generic.List`1<RimWorld.WorkGiverDef>
Verse.WorkTypeDef::workGiversByPriority
IL_008B: stloc.3
IL_008C: ldc.i4.0
IL_008D: stloc.s 4 (System.Int32)
IL_008F: br => Label4
IL_0094: Label8
IL_0094: ldloc.3
IL_0095: ldloc.s 4 (System.Int32)
IL_0097: callvirt virtual RimWorld.WorkGiverDef
System.Collections.Generic.List`1<RimWorld.WorkGiverDef>::get_Item(System.Int32
index)
IL_009C: callvirt RimWorld.WorkGiver RimWorld.WorkGiverDef::get_Worker()
IL_00A1: stloc.s 5 (RimWorld.WorkGiver)
IL_00A3: ldarg.0
IL_00A4: ldloc.0
IL_00A5: ldfld Verse.Pawn RimWorld.<>c__DisplayClass3_0::pawn
IL_00AA: ldfld Verse.AI.Pawn_MindState Verse.Pawn::mindState
IL_00AF: ldfld Verse.PriorityWork Verse.AI.Pawn_MindState::priorityWork
IL_00B4: callvirt RimWorld.WorkGiverDef Verse.PriorityWork::get_WorkGiver()
IL_00B9: ldloc.s 5 (RimWorld.WorkGiver)
IL_00BB: ldfld RimWorld.WorkGiverDef RimWorld.WorkGiver::def
IL_00C0: call System.Boolean
RimWorld.JobGiver_Work::WorkGiversRelated(RimWorld.WorkGiverDef current,
RimWorld.WorkGiverDef next)
IL_00C5: brfalse => Label5
IL_00CA: ldarg.0
IL_00CB: ldloc.0
IL_00CC: ldfld Verse.Pawn RimWorld.<>c__DisplayClass3_0::pawn
IL_00D1: ldloc.s 5 (RimWorld.WorkGiver)
IL_00D3: ldloc.0
IL_00D4: ldfld Verse.Pawn RimWorld.<>c__DisplayClass3_0::pawn
IL_00D9: ldfld Verse.AI.Pawn_MindState Verse.Pawn::mindState
IL_00DE: ldfld Verse.PriorityWork Verse.AI.Pawn_MindState::priorityWork
IL_00E3: callvirt Verse.IntVec3 Verse.PriorityWork::get_Cell()
IL_00E8: call Verse.AI.Job
RimWorld.JobGiver_Work::GiverTryGiveJobPrioritized(Verse.Pawn pawn,
RimWorld.WorkGiver giver, Verse.IntVec3 cell)
IL_00ED: stloc.s 6 (Verse.AI.Job)
IL_00EF: ldloc.s 6 (Verse.AI.Job)
IL_00F1: brfalse => Label6
IL_00F6: ldloc.s 6 (Verse.AI.Job)
IL_00F8: ldc.i4.1
IL_00F9: stfld System.Boolean Verse.AI.Job::playerForced
IL_00FE: ldloc.0
IL_00FF: ldfld Verse.Pawn RimWorld.<>c__DisplayClass3_0::pawn
IL_0104: ldfld Verse.AI.Pawn_JobTracker Verse.Pawn::jobs
IL_0109: ldfld System.Boolean Verse.AI.Pawn_JobTracker::debugLog
IL_010E: brfalse => Label7
IL_0113: ldloc.0
IL_0114: ldfld Verse.Pawn RimWorld.<>c__DisplayClass3_0::pawn
IL_0119: ldfld Verse.AI.Pawn_JobTracker Verse.Pawn::jobs
IL_011E: ldstr "JobGiver_Work produced emergency Job {0} from {1}"
IL_0123: ldloc.s 6 (Verse.AI.Job)
IL_0125: call static System.String Verse.Gen::ToStringSafe(Verse.AI.Job obj)
IL_012A: ldloc.s 5 (RimWorld.WorkGiver)
IL_012C: call static System.String System.String::Format(System.String
format, System.Object arg0, System.Object arg1)
IL_0131: callvirt System.Void
Verse.AI.Pawn_JobTracker::DebugLogEvent(System.String s)
IL_0136: Label7
IL_0136: ldloc.s 6 (Verse.AI.Job)
IL_0138: ldarg.0
IL_0139: ldloc.3
IL_013A: ldloc.s 4 (System.Int32)
IL_013C: callvirt virtual RimWorld.WorkGiverDef
System.Collections.Generic.List`1<RimWorld.WorkGiverDef>::get_Item(System.Int32
index)
IL_0141: ldfld Verse.AI.JobTag RimWorld.WorkGiverDef::tagToGive
IL_0146: newobj System.Void
System.Nullable`1<Verse.AI.JobTag>::.ctor(Verse.AI.JobTag value)
IL_014B: ldc.i4.0
IL_014C: newobj System.Void Verse.AI.ThinkResult::.ctor(Verse.AI.Job job,
Verse.AI.ThinkNode sourceNode, System.Nullable`1<Verse.AI.JobTag> tag,
System.Boolean fromQueue)
IL_0151: br => Label50
IL_0156: Label5
IL_0156: Label6
IL_0156: ldloc.s 4 (System.Int32)
IL_0158: ldc.i4.1
IL_0159: add
IL_015A: stloc.s 4 (System.Int32)
IL_015C: Label4
IL_015C: ldloc.s 4 (System.Int32)
IL_015E: ldloc.3
IL_015F: callvirt virtual System.Int32
System.Collections.Generic.List`1<RimWorld.WorkGiverDef>::get_Count()
IL_0164: blt => Label8
IL_0169: ldloc.0
IL_016A: ldfld Verse.Pawn RimWorld.<>c__DisplayClass3_0::pawn
IL_016F: ldfld Verse.AI.Pawn_MindState Verse.Pawn::mindState
IL_0174: ldfld Verse.PriorityWork Verse.AI.Pawn_MindState::priorityWork
IL_0179: callvirt System.Void Verse.PriorityWork::Clear()
IL_017E: Label2
IL_017E: Label3
IL_017E: ldarg.0
IL_017F: ldfld System.Boolean RimWorld.JobGiver_Work::emergency
IL_0184: brfalse => Label9
IL_0189: ldloc.0
IL_018A: ldfld Verse.Pawn RimWorld.<>c__DisplayClass3_0::pawn
IL_018F: ldfld RimWorld.Pawn_WorkSettings Verse.Pawn::workSettings
IL_0194: callvirt System.Collections.Generic.List`1<RimWorld.WorkGiver>
RimWorld.Pawn_WorkSettings::get_WorkGiversInOrderEmergency()
IL_0199: br => Label10
IL_019E: Label9
IL_019E: ldloc.0
IL_019F: ldfld Verse.Pawn RimWorld.<>c__DisplayClass3_0::pawn
IL_01A4: ldfld RimWorld.Pawn_WorkSettings Verse.Pawn::workSettings
IL_01A9: callvirt System.Collections.Generic.List`1<RimWorld.WorkGiver>
RimWorld.Pawn_WorkSettings::get_WorkGiversInOrderNormal()
IL_01AE: Label10
IL_01AE: stloc.1
IL_01AF: ldc.i4 -999
IL_01B4: stloc.2
IL_01B5: ldloc.0
IL_01B6: call static Verse.TargetInfo Verse.TargetInfo::get_Invalid()
IL_01BB: stfld Verse.TargetInfo
RimWorld.<>c__DisplayClass3_0::bestTargetOfLastPriority
IL_01C0: ldloc.0
IL_01C1: ldnull
IL_01C2: stfld RimWorld.WorkGiver_Scanner
RimWorld.<>c__DisplayClass3_0::scannerWhoProvidedTarget
IL_01C7: ldc.i4.0
IL_01C8: stloc.s 7 (System.Int32)
IL_01CA: br => Label11
IL_01CF: Label46
IL_01CF: ldloc.1
IL_01D0: ldloc.s 7 (System.Int32)
IL_01D2: callvirt virtual RimWorld.WorkGiver
System.Collections.Generic.List`1<RimWorld.WorkGiver>::get_Item(System.Int32 index)
IL_01D7: stloc.s 8 (RimWorld.WorkGiver)
IL_01D9: ldloc.s 8 (RimWorld.WorkGiver)
IL_01DB: ldfld RimWorld.WorkGiverDef RimWorld.WorkGiver::def
IL_01E0: ldfld System.Int32 RimWorld.WorkGiverDef::priorityInType
IL_01E5: ldloc.2
IL_01E6: beq => Label12
IL_01EB: ldloc.0
IL_01EC: ldflda Verse.TargetInfo
RimWorld.<>c__DisplayClass3_0::bestTargetOfLastPriority
IL_01F1: call System.Boolean Verse.TargetInfo::get_IsValid()
IL_01F6: brtrue => Label13
IL_01FB: Label12
IL_01FB: ldarg.0
IL_01FC: ldloc.0
IL_01FD: ldfld Verse.Pawn RimWorld.<>c__DisplayClass3_0::pawn
IL_0202: ldloc.s 8 (RimWorld.WorkGiver)
IL_0204: call System.Boolean
RimWorld.JobGiver_Work::PawnCanUseWorkGiver(Verse.Pawn pawn, RimWorld.WorkGiver
giver)
IL_0209: brfalse => Label14
IL_020E: nop
.try
{
.try
{
IL_020F: newobj System.Void RimWorld.<>c__DisplayClass3_1::.ctor()
IL_0214: stloc.s 9 (RimWorld.JobGiver_Work+<>c__DisplayClass3_1)
IL_0216: ldloc.s 9 (RimWorld.JobGiver_Work+<>c__DisplayClass3_1)
IL_0218: ldloc.0
IL_0219: stfld RimWorld.<>c__DisplayClass3_0
RimWorld.<>c__DisplayClass3_1::CS$<>8__locals1
IL_021E: ldloc.s 8 (RimWorld.WorkGiver)
IL_0220: ldloc.s 9 (RimWorld.JobGiver_Work+<>c__DisplayClass3_1)
IL_0222: ldfld RimWorld.<>c__DisplayClass3_0
RimWorld.<>c__DisplayClass3_1::CS$<>8__locals1
IL_0227: ldfld Verse.Pawn RimWorld.<>c__DisplayClass3_0::pawn
IL_022C: callvirt virtual Verse.AI.Job
RimWorld.WorkGiver::NonScanJob(Verse.Pawn pawn)
IL_0231: stloc.s 10 (Verse.AI.Job)
IL_0233: ldloc.s 10 (Verse.AI.Job)
IL_0235: brfalse => Label15
IL_023A: ldloc.s 9 (RimWorld.JobGiver_Work+<>c__DisplayClass3_1)
IL_023C: ldfld RimWorld.<>c__DisplayClass3_0
RimWorld.<>c__DisplayClass3_1::CS$<>8__locals1
IL_0241: ldfld Verse.Pawn RimWorld.<>c__DisplayClass3_0::pawn
IL_0246: ldfld Verse.AI.Pawn_JobTracker Verse.Pawn::jobs
IL_024B: ldfld System.Boolean Verse.AI.Pawn_JobTracker::debugLog
IL_0250: brfalse => Label16
IL_0255: ldloc.s 9 (RimWorld.JobGiver_Work+<>c__DisplayClass3_1)
IL_0257: ldfld RimWorld.<>c__DisplayClass3_0
RimWorld.<>c__DisplayClass3_1::CS$<>8__locals1
IL_025C: ldfld Verse.Pawn RimWorld.<>c__DisplayClass3_0::pawn
IL_0261: ldfld Verse.AI.Pawn_JobTracker Verse.Pawn::jobs
IL_0266: ldstr "JobGiver_Work produced non-scan Job {0} from {1}"
IL_026B: ldloc.s 10 (Verse.AI.Job)
IL_026D: call static System.String
Verse.Gen::ToStringSafe(Verse.AI.Job obj)
IL_0272: ldloc.s 8 (RimWorld.WorkGiver)
IL_0274: call static System.String
System.String::Format(System.String format, System.Object arg0, System.Object arg1)
IL_0279: callvirt System.Void
Verse.AI.Pawn_JobTracker::DebugLogEvent(System.String s)
IL_027E: Label16
IL_027E: ldloc.s 10 (Verse.AI.Job)
IL_0280: ldarg.0
IL_0281: ldloc.1
IL_0282: ldloc.s 7 (System.Int32)
IL_0284: callvirt virtual RimWorld.WorkGiver
System.Collections.Generic.List`1<RimWorld.WorkGiver>::get_Item(System.Int32 index)
IL_0289: ldfld RimWorld.WorkGiverDef RimWorld.WorkGiver::def
IL_028E: ldfld Verse.AI.JobTag RimWorld.WorkGiverDef::tagToGive
IL_0293: newobj System.Void
System.Nullable`1<Verse.AI.JobTag>::.ctor(Verse.AI.JobTag value)
IL_0298: ldc.i4.0
IL_0299: newobj System.Void
Verse.AI.ThinkResult::.ctor(Verse.AI.Job job, Verse.AI.ThinkNode sourceNode,
System.Nullable`1<Verse.AI.JobTag> tag, System.Boolean fromQueue)
IL_029E: stloc.s 11 (Verse.AI.ThinkResult)
IL_02A0: leave => Label17
IL_02A5: Label15
IL_02A5: ldloc.s 9 (RimWorld.JobGiver_Work+<>c__DisplayClass3_1)
IL_02A7: ldloc.s 8 (RimWorld.WorkGiver)
IL_02A9: isinst RimWorld.WorkGiver_Scanner
IL_02AE: stfld RimWorld.WorkGiver_Scanner
RimWorld.<>c__DisplayClass3_1::scanner
IL_02B3: ldloc.s 9 (RimWorld.JobGiver_Work+<>c__DisplayClass3_1)
IL_02B5: ldfld RimWorld.WorkGiver_Scanner
RimWorld.<>c__DisplayClass3_1::scanner
IL_02BA: brfalse => Label18
IL_02BF: ldloc.s 9 (RimWorld.JobGiver_Work+<>c__DisplayClass3_1)
IL_02C1: ldfld RimWorld.WorkGiver_Scanner
RimWorld.<>c__DisplayClass3_1::scanner
IL_02C6: ldfld RimWorld.WorkGiverDef RimWorld.WorkGiver::def
IL_02CB: ldfld System.Boolean RimWorld.WorkGiverDef::scanThings
IL_02D0: brfalse => Label19
IL_02D5: ldloc.s 9 (RimWorld.JobGiver_Work+<>c__DisplayClass3_1)
IL_02D7: ldftn System.Boolean
RimWorld.<>c__DisplayClass3_1::<TryIssueJobPackage>b__0(Verse.Thing t)
IL_02DD: newobj System.Void
System.Predicate`1<Verse.Thing>::.ctor(System.Object object, System.IntPtr method)
IL_02E2: stloc.s 12 (System.Predicate`1[Verse.Thing])
IL_02E4: ldloc.s 9 (RimWorld.JobGiver_Work+<>c__DisplayClass3_1)
IL_02E6: ldfld RimWorld.WorkGiver_Scanner
RimWorld.<>c__DisplayClass3_1::scanner
IL_02EB: ldloc.s 9 (RimWorld.JobGiver_Work+<>c__DisplayClass3_1)
IL_02ED: ldfld RimWorld.<>c__DisplayClass3_0
RimWorld.<>c__DisplayClass3_1::CS$<>8__locals1
IL_02F2: ldfld Verse.Pawn RimWorld.<>c__DisplayClass3_0::pawn
IL_02F7: callvirt virtual
System.Collections.Generic.IEnumerable`1<Verse.Thing>
RimWorld.WorkGiver_Scanner::PotentialWorkThingsGlobal(Verse.Pawn pawn)
IL_02FC: stloc.s 13
(System.Collections.Generic.IEnumerable`1[Verse.Thing])
IL_02FE: ldloc.s 9 (RimWorld.JobGiver_Work+<>c__DisplayClass3_1)
IL_0300: ldfld RimWorld.WorkGiver_Scanner
RimWorld.<>c__DisplayClass3_1::scanner
IL_0305: callvirt virtual System.Boolean
RimWorld.WorkGiver_Scanner::get_Prioritized()
IL_030A: ldloc.s 9 (RimWorld.JobGiver_Work+<>c__DisplayClass3_1)
IL_030C: ldfld RimWorld.WorkGiver_Scanner
RimWorld.<>c__DisplayClass3_1::scanner
IL_0311: isinst RimWorld.WorkGiver_ConstructFinishFrames
IL_0316: ldnull
IL_0317: cgt.un
IL_0319: or
IL_031A: brfalse => Label20
IL_031F: ldloc.s 13
(System.Collections.Generic.IEnumerable`1[Verse.Thing])
IL_0321: stloc.s 15
(System.Collections.Generic.IEnumerable`1[Verse.Thing])
IL_0323: ldloc.s 15
(System.Collections.Generic.IEnumerable`1[Verse.Thing])
IL_0325: brtrue => Label21
IL_032A: ldloc.s 9 (RimWorld.JobGiver_Work+<>c__DisplayClass3_1)
IL_032C: ldfld RimWorld.<>c__DisplayClass3_0
RimWorld.<>c__DisplayClass3_1::CS$<>8__locals1
IL_0331: ldfld Verse.Pawn RimWorld.<>c__DisplayClass3_0::pawn
IL_0336: callvirt virtual Verse.Map Verse.Thing::get_Map()
IL_033B: ldfld Verse.ListerThings Verse.Map::listerThings
IL_0340: ldloc.s 9 (RimWorld.JobGiver_Work+<>c__DisplayClass3_1)
IL_0342: ldfld RimWorld.WorkGiver_Scanner
RimWorld.<>c__DisplayClass3_1::scanner
IL_0347: callvirt virtual Verse.ThingRequest
RimWorld.WorkGiver_Scanner::get_PotentialWorkThingRequest()
IL_034C: callvirt System.Collections.Generic.List`1<Verse.Thing>
Verse.ListerThings::ThingsMatching(Verse.ThingRequest req)
IL_0351: stloc.s 15
(System.Collections.Generic.IEnumerable`1[Verse.Thing])
IL_0353: Label21
IL_0353: ldloc.s 9 (RimWorld.JobGiver_Work+<>c__DisplayClass3_1)
IL_0355: ldfld RimWorld.WorkGiver_Scanner
RimWorld.<>c__DisplayClass3_1::scanner
IL_035A: callvirt virtual System.Boolean
RimWorld.WorkGiver_Scanner::get_AllowUnreachable()
IL_035F: brfalse => Label22
IL_0364: ldloc.s 9 (RimWorld.JobGiver_Work+<>c__DisplayClass3_1)
IL_0366: ldfld RimWorld.<>c__DisplayClass3_0
RimWorld.<>c__DisplayClass3_1::CS$<>8__locals1
IL_036B: ldfld Verse.Pawn RimWorld.<>c__DisplayClass3_0::pawn
IL_0370: callvirt virtual Verse.IntVec3 Verse.Thing::get_Position()
IL_0375: ldloc.s 15
(System.Collections.Generic.IEnumerable`1[Verse.Thing])
IL_0377: ldc.r4 99999
IL_037C: ldloc.s 12 (System.Predicate`1[Verse.Thing])
IL_037E: ldloc.s 9 (RimWorld.JobGiver_Work+<>c__DisplayClass3_1)
IL_0380: ldftn System.Single
RimWorld.<>c__DisplayClass3_1::<TryIssueJobPackage>b__1(Verse.Thing x)
IL_0386: newobj System.Void System.Func`2<Verse.Thing,
System.Single>::.ctor(System.Object object, System.IntPtr method)
IL_038B: call static Verse.Thing
Verse.GenClosest::ClosestThing_Global(Verse.IntVec3 center,
System.Collections.IEnumerable searchSet, System.Single maxDistance,
System.Predicate`1<Verse.Thing> validator, System.Func`2<Verse.Thing,
System.Single> priorityGetter)
IL_0390: stloc.s 14 (Verse.Thing)
IL_0392: br => Label23
IL_0397: Label22
IL_0397: ldloc.s 9 (RimWorld.JobGiver_Work+<>c__DisplayClass3_1)
IL_0399: ldfld RimWorld.<>c__DisplayClass3_0
RimWorld.<>c__DisplayClass3_1::CS$<>8__locals1
IL_039E: ldfld Verse.Pawn RimWorld.<>c__DisplayClass3_0::pawn
IL_03A3: callvirt virtual Verse.IntVec3 Verse.Thing::get_Position()
IL_03A8: ldloc.s 9 (RimWorld.JobGiver_Work+<>c__DisplayClass3_1)
IL_03AA: ldfld RimWorld.<>c__DisplayClass3_0
RimWorld.<>c__DisplayClass3_1::CS$<>8__locals1
IL_03AF: ldfld Verse.Pawn RimWorld.<>c__DisplayClass3_0::pawn
IL_03B4: callvirt virtual Verse.Map Verse.Thing::get_Map()
IL_03B9: ldloc.s 15
(System.Collections.Generic.IEnumerable`1[Verse.Thing])
IL_03BB: ldloc.s 9 (RimWorld.JobGiver_Work+<>c__DisplayClass3_1)
IL_03BD: ldfld RimWorld.WorkGiver_Scanner
RimWorld.<>c__DisplayClass3_1::scanner
IL_03C2: callvirt virtual Verse.AI.PathEndMode
RimWorld.WorkGiver_Scanner::get_PathEndMode()
IL_03C7: ldloc.s 9 (RimWorld.JobGiver_Work+<>c__DisplayClass3_1)
IL_03C9: ldfld RimWorld.<>c__DisplayClass3_0
RimWorld.<>c__DisplayClass3_1::CS$<>8__locals1
IL_03CE: ldfld Verse.Pawn RimWorld.<>c__DisplayClass3_0::pawn
IL_03D3: ldloc.s 9 (RimWorld.JobGiver_Work+<>c__DisplayClass3_1)
IL_03D5: ldfld RimWorld.WorkGiver_Scanner
RimWorld.<>c__DisplayClass3_1::scanner
IL_03DA: ldloc.s 9 (RimWorld.JobGiver_Work+<>c__DisplayClass3_1)
IL_03DC: ldfld RimWorld.<>c__DisplayClass3_0
RimWorld.<>c__DisplayClass3_1::CS$<>8__locals1
IL_03E1: ldfld Verse.Pawn RimWorld.<>c__DisplayClass3_0::pawn
IL_03E6: callvirt virtual Verse.Danger
RimWorld.WorkGiver_Scanner::MaxPathDanger(Verse.Pawn pawn)
IL_03EB: ldc.i4.0
IL_03EC: ldc.i4.0
IL_03ED: ldc.i4.0
IL_03EE: ldc.i4.0
IL_03EF: call static Verse.TraverseParms
Verse.TraverseParms::For(Verse.Pawn pawn, Verse.Danger maxDanger,
Verse.TraverseMode mode, System.Boolean canBashDoors, System.Boolean
alwaysUseAvoidGrid, System.Boolean canBashFences)
IL_03F4: ldc.r4 9999
IL_03F9: ldloc.s 12 (System.Predicate`1[Verse.Thing])
IL_03FB: ldloc.s 9 (RimWorld.JobGiver_Work+<>c__DisplayClass3_1)
IL_03FD: ldftn System.Single
RimWorld.<>c__DisplayClass3_1::<TryIssueJobPackage>b__2(Verse.Thing x)
IL_0403: newobj System.Void System.Func`2<Verse.Thing,
System.Single>::.ctor(System.Object object, System.IntPtr method)
IL_0408: ldloc.s 9 (RimWorld.JobGiver_Work+<>c__DisplayClass3_1)
IL_040A: ldfld RimWorld.WorkGiver_Scanner
RimWorld.<>c__DisplayClass3_1::scanner
IL_040F: isinst RimWorld.WorkGiver_ConstructFinishFrames
IL_0414: ldnull
IL_0415: cgt.un
IL_0417: brfalse => Label47
IL_041C: call static Verse.Thing
SmarterConstruction.Patches.CustomGenClosest::ClosestThing_Global_Reachable_Custom(
Verse.IntVec3 center, Verse.Map map,
System.Collections.Generic.IEnumerable`1<Verse.Thing> searchSet,
Verse.AI.PathEndMode peMode, Verse.TraverseParms traverseParams, System.Single
maxDistance, System.Predicate`1<Verse.Thing> validator, System.Func`2<Verse.Thing,
System.Single> priorityGetter)
IL_0421: br => Label48
IL_0426: Label47
IL_0426: call static Verse.Thing
Verse.GenClosest::ClosestThing_Global_Reachable(Verse.IntVec3 center, Verse.Map
map, System.Collections.Generic.IEnumerable`1<Verse.Thing> searchSet,
Verse.AI.PathEndMode peMode, Verse.TraverseParms traverseParams, System.Single
maxDistance, System.Predicate`1<Verse.Thing> validator, System.Func`2<Verse.Thing,
System.Single> priorityGetter)
IL_042B: Label48
IL_042B: stloc.s 14 (Verse.Thing)
IL_042D: br => Label24
IL_0432: Label20
IL_0432: ldloc.s 9 (RimWorld.JobGiver_Work+<>c__DisplayClass3_1)
IL_0434: ldfld RimWorld.WorkGiver_Scanner
RimWorld.<>c__DisplayClass3_1::scanner
IL_0439: callvirt virtual System.Boolean
RimWorld.WorkGiver_Scanner::get_AllowUnreachable()
IL_043E: brfalse => Label25
IL_0443: ldloc.s 13
(System.Collections.Generic.IEnumerable`1[Verse.Thing])
IL_0445: stloc.s 16
(System.Collections.Generic.IEnumerable`1[Verse.Thing])
IL_0447: ldloc.s 16
(System.Collections.Generic.IEnumerable`1[Verse.Thing])
IL_0449: brtrue => Label26
IL_044E: ldloc.s 9 (RimWorld.JobGiver_Work+<>c__DisplayClass3_1)
IL_0450: ldfld RimWorld.<>c__DisplayClass3_0
RimWorld.<>c__DisplayClass3_1::CS$<>8__locals1
IL_0455: ldfld Verse.Pawn RimWorld.<>c__DisplayClass3_0::pawn
IL_045A: callvirt virtual Verse.Map Verse.Thing::get_Map()
IL_045F: ldfld Verse.ListerThings Verse.Map::listerThings
IL_0464: ldloc.s 9 (RimWorld.JobGiver_Work+<>c__DisplayClass3_1)
IL_0466: ldfld RimWorld.WorkGiver_Scanner
RimWorld.<>c__DisplayClass3_1::scanner
IL_046B: callvirt virtual Verse.ThingRequest
RimWorld.WorkGiver_Scanner::get_PotentialWorkThingRequest()
IL_0470: callvirt System.Collections.Generic.List`1<Verse.Thing>
Verse.ListerThings::ThingsMatching(Verse.ThingRequest req)
IL_0475: stloc.s 16
(System.Collections.Generic.IEnumerable`1[Verse.Thing])
IL_0477: Label26
IL_0477: ldloc.s 9 (RimWorld.JobGiver_Work+<>c__DisplayClass3_1)
IL_0479: ldfld RimWorld.<>c__DisplayClass3_0
RimWorld.<>c__DisplayClass3_1::CS$<>8__locals1
IL_047E: ldfld Verse.Pawn RimWorld.<>c__DisplayClass3_0::pawn
IL_0483: callvirt virtual Verse.IntVec3 Verse.Thing::get_Position()
IL_0488: ldloc.s 16
(System.Collections.Generic.IEnumerable`1[Verse.Thing])
IL_048A: ldc.r4 99999
IL_048F: ldloc.s 12 (System.Predicate`1[Verse.Thing])
IL_0491: ldnull
IL_0492: call static Verse.Thing
Verse.GenClosest::ClosestThing_Global(Verse.IntVec3 center,
System.Collections.IEnumerable searchSet, System.Single maxDistance,
System.Predicate`1<Verse.Thing> validator, System.Func`2<Verse.Thing,
System.Single> priorityGetter)
IL_0497: stloc.s 14 (Verse.Thing)
IL_0499: br => Label27
IL_049E: Label25
IL_049E: ldloc.s 9 (RimWorld.JobGiver_Work+<>c__DisplayClass3_1)
IL_04A0: ldfld RimWorld.<>c__DisplayClass3_0
RimWorld.<>c__DisplayClass3_1::CS$<>8__locals1
IL_04A5: ldfld Verse.Pawn RimWorld.<>c__DisplayClass3_0::pawn
IL_04AA: callvirt virtual Verse.IntVec3 Verse.Thing::get_Position()
IL_04AF: ldloc.s 9 (RimWorld.JobGiver_Work+<>c__DisplayClass3_1)
IL_04B1: ldfld RimWorld.<>c__DisplayClass3_0
RimWorld.<>c__DisplayClass3_1::CS$<>8__locals1
IL_04B6: ldfld Verse.Pawn RimWorld.<>c__DisplayClass3_0::pawn
IL_04BB: callvirt virtual Verse.Map Verse.Thing::get_Map()
IL_04C0: ldloc.s 9 (RimWorld.JobGiver_Work+<>c__DisplayClass3_1)
IL_04C2: ldfld RimWorld.WorkGiver_Scanner
RimWorld.<>c__DisplayClass3_1::scanner
IL_04C7: callvirt virtual Verse.ThingRequest
RimWorld.WorkGiver_Scanner::get_PotentialWorkThingRequest()
IL_04CC: ldloc.s 9 (RimWorld.JobGiver_Work+<>c__DisplayClass3_1)
IL_04CE: ldfld RimWorld.WorkGiver_Scanner
RimWorld.<>c__DisplayClass3_1::scanner
IL_04D3: callvirt virtual Verse.AI.PathEndMode
RimWorld.WorkGiver_Scanner::get_PathEndMode()
IL_04D8: ldloc.s 9 (RimWorld.JobGiver_Work+<>c__DisplayClass3_1)
IL_04DA: ldfld RimWorld.<>c__DisplayClass3_0
RimWorld.<>c__DisplayClass3_1::CS$<>8__locals1
IL_04DF: ldfld Verse.Pawn RimWorld.<>c__DisplayClass3_0::pawn
IL_04E4: ldloc.s 9 (RimWorld.JobGiver_Work+<>c__DisplayClass3_1)
IL_04E6: ldfld RimWorld.WorkGiver_Scanner
RimWorld.<>c__DisplayClass3_1::scanner
IL_04EB: ldloc.s 9 (RimWorld.JobGiver_Work+<>c__DisplayClass3_1)
IL_04ED: ldfld RimWorld.<>c__DisplayClass3_0
RimWorld.<>c__DisplayClass3_1::CS$<>8__locals1
IL_04F2: ldfld Verse.Pawn RimWorld.<>c__DisplayClass3_0::pawn
IL_04F7: callvirt virtual Verse.Danger
RimWorld.WorkGiver_Scanner::MaxPathDanger(Verse.Pawn pawn)
IL_04FC: ldc.i4.0
IL_04FD: ldc.i4.0
IL_04FE: ldc.i4.0
IL_04FF: ldc.i4.0
IL_0500: call static Verse.TraverseParms
Verse.TraverseParms::For(Verse.Pawn pawn, Verse.Danger maxDanger,
Verse.TraverseMode mode, System.Boolean canBashDoors, System.Boolean
alwaysUseAvoidGrid, System.Boolean canBashFences)
IL_0505: ldc.r4 9999
IL_050A: ldloc.s 12 (System.Predicate`1[Verse.Thing])
IL_050C: ldloc.s 13
(System.Collections.Generic.IEnumerable`1[Verse.Thing])
IL_050E: ldc.i4.0
IL_050F: ldloc.s 9 (RimWorld.JobGiver_Work+<>c__DisplayClass3_1)
IL_0511: ldfld RimWorld.WorkGiver_Scanner
RimWorld.<>c__DisplayClass3_1::scanner
IL_0516: callvirt virtual System.Int32
RimWorld.WorkGiver_Scanner::get_MaxRegionsToScanBeforeGlobalSearch()
IL_051B: ldloc.s 13
(System.Collections.Generic.IEnumerable`1[Verse.Thing])
IL_051D: ldnull
IL_051E: cgt.un
IL_0520: ldc.i4.s 14
IL_0522: ldc.i4.0
IL_0523: call static Verse.Thing
Verse.GenClosest::ClosestThingReachable(Verse.IntVec3 root, Verse.Map map,
Verse.ThingRequest thingReq, Verse.AI.PathEndMode peMode, Verse.TraverseParms
traverseParams, System.Single maxDistance, System.Predicate`1<Verse.Thing>
validator, System.Collections.Generic.IEnumerable`1<Verse.Thing>
customGlobalSearchSet, System.Int32 searchRegionsMin, System.Int32
searchRegionsMax, System.Boolean forceAllowGlobalSearch, Verse.RegionType
traversableRegionTypes, System.Boolean ignoreEntirelyForbiddenRegions)
IL_0528: stloc.s 14 (Verse.Thing)
IL_052A: Label23
IL_052A: Label24
IL_052A: Label27
IL_052A: ldloc.s 14 (Verse.Thing)
IL_052C: brfalse => Label28
IL_0531: ldloc.s 9 (RimWorld.JobGiver_Work+<>c__DisplayClass3_1)
IL_0533: ldfld RimWorld.<>c__DisplayClass3_0
RimWorld.<>c__DisplayClass3_1::CS$<>8__locals1
IL_0538: ldloc.s 14 (Verse.Thing)
IL_053A: call static Verse.TargetInfo
Verse.TargetInfo::op_Implicit(Verse.Thing t)
IL_053F: stfld Verse.TargetInfo
RimWorld.<>c__DisplayClass3_0::bestTargetOfLastPriority
IL_0544: ldloc.s 9 (RimWorld.JobGiver_Work+<>c__DisplayClass3_1)
IL_0546: ldfld RimWorld.<>c__DisplayClass3_0
RimWorld.<>c__DisplayClass3_1::CS$<>8__locals1
IL_054B: ldloc.s 9 (RimWorld.JobGiver_Work+<>c__DisplayClass3_1)
IL_054D: ldfld RimWorld.WorkGiver_Scanner
RimWorld.<>c__DisplayClass3_1::scanner
IL_0552: stfld RimWorld.WorkGiver_Scanner
RimWorld.<>c__DisplayClass3_0::scannerWhoProvidedTarget
IL_0557: Label19
IL_0557: Label28
IL_0557: ldloc.s 9 (RimWorld.JobGiver_Work+<>c__DisplayClass3_1)
IL_0559: ldfld RimWorld.WorkGiver_Scanner
RimWorld.<>c__DisplayClass3_1::scanner
IL_055E: ldfld RimWorld.WorkGiverDef RimWorld.WorkGiver::def
IL_0563: ldfld System.Boolean RimWorld.WorkGiverDef::scanCells
IL_0568: brfalse => Label29
IL_056D: ldloca.s 17 (RimWorld.JobGiver_Work+<>c__DisplayClass3_2)
IL_056F: ldloc.s 9 (RimWorld.JobGiver_Work+<>c__DisplayClass3_1)
IL_0571: ldfld RimWorld.<>c__DisplayClass3_0
RimWorld.<>c__DisplayClass3_1::CS$<>8__locals1
IL_0576: ldfld Verse.Pawn RimWorld.<>c__DisplayClass3_0::pawn
IL_057B: callvirt virtual Verse.IntVec3 Verse.Thing::get_Position()
IL_0580: stfld Verse.IntVec3
RimWorld.<>c__DisplayClass3_2::pawnPosition
IL_0585: ldloca.s 17 (RimWorld.JobGiver_Work+<>c__DisplayClass3_2)
IL_0587: ldc.r4 99999
IL_058C: stfld System.Single
RimWorld.<>c__DisplayClass3_2::closestDistSquared
IL_0591: ldloca.s 17 (RimWorld.JobGiver_Work+<>c__DisplayClass3_2)
IL_0593: ldc.r4 -3.402823E+38
IL_0598: stfld System.Single
RimWorld.<>c__DisplayClass3_2::bestPriority
IL_059D: ldloca.s 17 (RimWorld.JobGiver_Work+<>c__DisplayClass3_2)
IL_059F: ldloc.s 9 (RimWorld.JobGiver_Work+<>c__DisplayClass3_1)
IL_05A1: ldfld RimWorld.WorkGiver_Scanner
RimWorld.<>c__DisplayClass3_1::scanner
IL_05A6: callvirt virtual System.Boolean
RimWorld.WorkGiver_Scanner::get_Prioritized()
IL_05AB: stfld System.Boolean
RimWorld.<>c__DisplayClass3_2::prioritized
IL_05B0: ldloca.s 17 (RimWorld.JobGiver_Work+<>c__DisplayClass3_2)
IL_05B2: ldloc.s 9 (RimWorld.JobGiver_Work+<>c__DisplayClass3_1)
IL_05B4: ldfld RimWorld.WorkGiver_Scanner
RimWorld.<>c__DisplayClass3_1::scanner
IL_05B9: callvirt virtual System.Boolean
RimWorld.WorkGiver_Scanner::get_AllowUnreachable()
IL_05BE: stfld System.Boolean
RimWorld.<>c__DisplayClass3_2::allowUnreachable
IL_05C3: ldloca.s 17 (RimWorld.JobGiver_Work+<>c__DisplayClass3_2)
IL_05C5: ldloc.s 9 (RimWorld.JobGiver_Work+<>c__DisplayClass3_1)
IL_05C7: ldfld RimWorld.WorkGiver_Scanner
RimWorld.<>c__DisplayClass3_1::scanner
IL_05CC: ldloc.s 9 (RimWorld.JobGiver_Work+<>c__DisplayClass3_1)
IL_05CE: ldfld RimWorld.<>c__DisplayClass3_0
RimWorld.<>c__DisplayClass3_1::CS$<>8__locals1
IL_05D3: ldfld Verse.Pawn RimWorld.<>c__DisplayClass3_0::pawn
IL_05D8: callvirt virtual Verse.Danger
RimWorld.WorkGiver_Scanner::MaxPathDanger(Verse.Pawn pawn)
IL_05DD: stfld Verse.Danger
RimWorld.<>c__DisplayClass3_2::maxPathDanger
IL_05E2: ldloc.s 9 (RimWorld.JobGiver_Work+<>c__DisplayClass3_1)
IL_05E4: ldfld RimWorld.WorkGiver_Scanner
RimWorld.<>c__DisplayClass3_1::scanner
IL_05E9: ldloc.s 9 (RimWorld.JobGiver_Work+<>c__DisplayClass3_1)
IL_05EB: ldfld RimWorld.<>c__DisplayClass3_0
RimWorld.<>c__DisplayClass3_1::CS$<>8__locals1
IL_05F0: ldfld Verse.Pawn RimWorld.<>c__DisplayClass3_0::pawn
IL_05F5: callvirt virtual
System.Collections.Generic.IEnumerable`1<Verse.IntVec3>
RimWorld.WorkGiver_Scanner::PotentialWorkCellsGlobal(Verse.Pawn pawn)
IL_05FA: stloc.s 18
(System.Collections.Generic.IEnumerable`1[Verse.IntVec3])
IL_05FC: ldloc.s 18
(System.Collections.Generic.IEnumerable`1[Verse.IntVec3])
IL_05FE: isinst System.Collections.Generic.IList`1[Verse.IntVec3]
IL_0603: dup
IL_0604: stloc.s 19
(System.Collections.Generic.IList`1[Verse.IntVec3])
IL_0606: brfalse => Label30
IL_060B: ldc.i4.0
IL_060C: stloc.s 20 (System.Int32)
IL_060E: br => Label31
IL_0613: Label32
IL_0613: ldloc.s 9 (RimWorld.JobGiver_Work+<>c__DisplayClass3_1)
IL_0615: ldloc.s 19
(System.Collections.Generic.IList`1[Verse.IntVec3])
IL_0617: ldloc.s 20 (System.Int32)
IL_0619: callvirt abstract virtual Verse.IntVec3
System.Collections.Generic.IList`1<Verse.IntVec3>::get_Item(System.Int32 index)
IL_061E: ldloca.s 17 (RimWorld.JobGiver_Work+<>c__DisplayClass3_2)
IL_0620: callvirt System.Void
RimWorld.<>c__DisplayClass3_1::<TryIssueJobPackage>g__ProcessCell|3(Verse.IntVec3
c, RimWorld.<>c__DisplayClass3_2& )
IL_0625: ldloc.s 20 (System.Int32)
IL_0627: ldc.i4.1
IL_0628: add
IL_0629: stloc.s 20 (System.Int32)
IL_062B: Label31
IL_062B: ldloc.s 20 (System.Int32)
IL_062D: ldloc.s 19
(System.Collections.Generic.IList`1[Verse.IntVec3])
IL_062F: callvirt abstract virtual System.Int32
System.Collections.Generic.ICollection`1<Verse.IntVec3>::get_Count()
IL_0634: blt => Label32
IL_0639: br => Label33
IL_063E: Label30
IL_063E: ldloc.s 18
(System.Collections.Generic.IEnumerable`1[Verse.IntVec3])
IL_0640: callvirt abstract virtual
System.Collections.Generic.IEnumerator`1<Verse.IntVec3>
System.Collections.Generic.IEnumerable`1<Verse.IntVec3>::GetEnumerator()
IL_0645: stloc.s 21
(System.Collections.Generic.IEnumerator`1[Verse.IntVec3])
.try
{
IL_0647: br => Label34
IL_064C: Label35
IL_064C: ldloc.s 21
(System.Collections.Generic.IEnumerator`1[Verse.IntVec3])
IL_064E: callvirt abstract virtual Verse.IntVec3
System.Collections.Generic.IEnumerator`1<Verse.IntVec3>::get_Current()
IL_0653: stloc.s 22 (Verse.IntVec3)
IL_0655: ldloc.s 9
(RimWorld.JobGiver_Work+<>c__DisplayClass3_1)
IL_0657: ldloc.s 22 (Verse.IntVec3)
IL_0659: ldloca.s 17
(RimWorld.JobGiver_Work+<>c__DisplayClass3_2)
IL_065B: callvirt System.Void
RimWorld.<>c__DisplayClass3_1::<TryIssueJobPackage>g__ProcessCell|3(Verse.IntVec3
c, RimWorld.<>c__DisplayClass3_2& )
IL_0660: Label34
IL_0660: ldloc.s 21
(System.Collections.Generic.IEnumerator`1[Verse.IntVec3])
IL_0662: callvirt abstract virtual System.Boolean
System.Collections.IEnumerator::MoveNext()
IL_0667: brtrue => Label35
IL_066C: leave => Label36
IL_0671: leave => (autogenerated)
} // end try
.finally
{
IL_0676: ldloc.s 21
(System.Collections.Generic.IEnumerator`1[Verse.IntVec3])
IL_0678: brfalse => Label37
IL_067D: ldloc.s 21
(System.Collections.Generic.IEnumerator`1[Verse.IntVec3])
IL_067F: callvirt abstract virtual System.Void
System.IDisposable::Dispose()
IL_0684: Label37
IL_0684: endfinally
IL_0685: leave => (autogenerated)
} // end handler
IL_0686: Label18
IL_0686: Label29
IL_0686: Label33
IL_0686: Label36
IL_0686: leave => Label38
IL_068B: leave => (autogenerated)
} // end try
.catch System.Exception
{
IL_0690: stloc.s 23 (System.Exception)
IL_0692: ldc.i4.5
IL_0693: newarr System.Object
IL_0698: dup
IL_0699: ldc.i4.0
IL_069A: ldloc.0
IL_069B: ldfld Verse.Pawn RimWorld.<>c__DisplayClass3_0::pawn
IL_06A0: stelem.ref
IL_06A1: dup
IL_06A2: ldc.i4.1
IL_06A3: ldstr " threw exception in WorkGiver "
IL_06A8: stelem.ref
IL_06A9: dup
IL_06AA: ldc.i4.2
IL_06AB: ldloc.s 8 (RimWorld.WorkGiver)
IL_06AD: ldfld RimWorld.WorkGiverDef RimWorld.WorkGiver::def
IL_06B2: ldfld System.String Verse.Def::defName
IL_06B7: stelem.ref
IL_06B8: dup
IL_06B9: ldc.i4.3
IL_06BA: ldstr ": "
IL_06BF: stelem.ref
IL_06C0: dup
IL_06C1: ldc.i4.4
IL_06C2: ldloc.s 23 (System.Exception)
IL_06C4: callvirt virtual System.String System.Object::ToString()
IL_06C9: stelem.ref
IL_06CA: call static System.String
System.String::Concat(System.Object[] args)
IL_06CF: call static System.Void Verse.Log::Error(System.String
text)
IL_06D4: leave => Label39
IL_06D9: leave => (autogenerated)
} // end handler
IL_06DE: leave => (autogenerated)
} // end try
.finally
{
IL_06E3: endfinally
IL_06E4: leave => (autogenerated)
} // end handler
IL_06E5: Label38
IL_06E5: Label39
IL_06E5: ldloc.0
IL_06E6: ldflda Verse.TargetInfo
RimWorld.<>c__DisplayClass3_0::bestTargetOfLastPriority
IL_06EB: call System.Boolean Verse.TargetInfo::get_IsValid()
IL_06F0: brfalse => Label40
IL_06F5: ldloc.0
IL_06F6: ldflda Verse.TargetInfo
RimWorld.<>c__DisplayClass3_0::bestTargetOfLastPriority
IL_06FB: call System.Boolean Verse.TargetInfo::get_HasThing()
IL_0700: brfalse => Label41
IL_0705: ldloc.0
IL_0706: ldfld RimWorld.WorkGiver_Scanner
RimWorld.<>c__DisplayClass3_0::scannerWhoProvidedTarget
IL_070B: ldloc.0
IL_070C: ldfld Verse.Pawn RimWorld.<>c__DisplayClass3_0::pawn
IL_0711: ldloc.0
IL_0712: ldflda Verse.TargetInfo
RimWorld.<>c__DisplayClass3_0::bestTargetOfLastPriority
IL_0717: call Verse.Thing Verse.TargetInfo::get_Thing()
IL_071C: ldc.i4.0
IL_071D: callvirt virtual Verse.AI.Job
RimWorld.WorkGiver_Scanner::JobOnThing(Verse.Pawn pawn, Verse.Thing t,
System.Boolean forced)
IL_0722: stloc.s 24 (Verse.AI.Job)
IL_0724: br => Label42
IL_0729: Label41
IL_0729: ldloc.0
IL_072A: ldfld RimWorld.WorkGiver_Scanner
RimWorld.<>c__DisplayClass3_0::scannerWhoProvidedTarget
IL_072F: ldloc.0
IL_0730: ldfld Verse.Pawn RimWorld.<>c__DisplayClass3_0::pawn
IL_0735: ldloc.0
IL_0736: ldflda Verse.TargetInfo
RimWorld.<>c__DisplayClass3_0::bestTargetOfLastPriority
IL_073B: call Verse.IntVec3 Verse.TargetInfo::get_Cell()
IL_0740: ldc.i4.0
IL_0741: callvirt virtual Verse.AI.Job
RimWorld.WorkGiver_Scanner::JobOnCell(Verse.Pawn pawn, Verse.IntVec3 cell,
System.Boolean forced)
IL_0746: stloc.s 24 (Verse.AI.Job)
IL_0748: Label42
IL_0748: ldloc.s 24 (Verse.AI.Job)
IL_074A: brtrue => Label43
IL_074F: ldc.i4.6
IL_0750: newarr System.Object
IL_0755: dup
IL_0756: ldc.i4.0
IL_0757: ldloc.0
IL_0758: ldfld RimWorld.WorkGiver_Scanner
RimWorld.<>c__DisplayClass3_0::scannerWhoProvidedTarget
IL_075D: stelem.ref
IL_075E: dup
IL_075F: ldc.i4.1
IL_0760: ldstr " provided target "
IL_0765: stelem.ref
IL_0766: dup
IL_0767: ldc.i4.2
IL_0768: ldloc.0
IL_0769: ldfld Verse.TargetInfo
RimWorld.<>c__DisplayClass3_0::bestTargetOfLastPriority
IL_076E: box Verse.TargetInfo
IL_0773: stelem.ref
IL_0774: dup
IL_0775: ldc.i4.3
IL_0776: ldstr " but yielded no actual job for pawn "
IL_077B: stelem.ref
IL_077C: dup
IL_077D: ldc.i4.4
IL_077E: ldloc.0
IL_077F: ldfld Verse.Pawn RimWorld.<>c__DisplayClass3_0::pawn
IL_0784: stelem.ref
IL_0785: dup
IL_0786: ldc.i4.5
IL_0787: ldstr ". The CanGiveJob and JobOnX methods may not be synchronized."
IL_078C: stelem.ref
IL_078D: call static System.String System.String::Concat(System.Object[]
args)
IL_0792: ldc.i4 6112651
IL_0797: call static System.Void Verse.Log::ErrorOnce(System.String text,
System.Int32 key)
IL_079C: br => Label44
IL_07A1: Label43
IL_07A1: ldloc.s 24 (Verse.AI.Job)
IL_07A3: ldloc.0
IL_07A4: ldfld RimWorld.WorkGiver_Scanner
RimWorld.<>c__DisplayClass3_0::scannerWhoProvidedTarget
IL_07A9: ldfld RimWorld.WorkGiverDef RimWorld.WorkGiver::def
IL_07AE: stfld RimWorld.WorkGiverDef Verse.AI.Job::workGiverDef
IL_07B3: ldloc.0
IL_07B4: ldfld Verse.Pawn RimWorld.<>c__DisplayClass3_0::pawn
IL_07B9: ldfld Verse.AI.Pawn_JobTracker Verse.Pawn::jobs
IL_07BE: ldfld System.Boolean Verse.AI.Pawn_JobTracker::debugLog
IL_07C3: brfalse => Label45
IL_07C8: ldloc.0
IL_07C9: ldfld Verse.Pawn RimWorld.<>c__DisplayClass3_0::pawn
IL_07CE: ldfld Verse.AI.Pawn_JobTracker Verse.Pawn::jobs
IL_07D3: ldstr "JobGiver_Work produced scan Job {0} from {1}"
IL_07D8: ldloc.s 24 (Verse.AI.Job)
IL_07DA: call static System.String Verse.Gen::ToStringSafe(Verse.AI.Job obj)
IL_07DF: ldloc.0
IL_07E0: ldfld RimWorld.WorkGiver_Scanner
RimWorld.<>c__DisplayClass3_0::scannerWhoProvidedTarget
IL_07E5: call static System.String System.String::Format(System.String
format, System.Object arg0, System.Object arg1)
IL_07EA: callvirt System.Void
Verse.AI.Pawn_JobTracker::DebugLogEvent(System.String s)
IL_07EF: Label45
IL_07EF: ldloc.s 24 (Verse.AI.Job)
IL_07F1: ldarg.0
IL_07F2: ldloc.1
IL_07F3: ldloc.s 7 (System.Int32)
IL_07F5: callvirt virtual RimWorld.WorkGiver
System.Collections.Generic.List`1<RimWorld.WorkGiver>::get_Item(System.Int32 index)
IL_07FA: ldfld RimWorld.WorkGiverDef RimWorld.WorkGiver::def
IL_07FF: ldfld Verse.AI.JobTag RimWorld.WorkGiverDef::tagToGive
IL_0804: newobj System.Void
System.Nullable`1<Verse.AI.JobTag>::.ctor(Verse.AI.JobTag value)
IL_0809: ldc.i4.0
IL_080A: newobj System.Void Verse.AI.ThinkResult::.ctor(Verse.AI.Job job,
Verse.AI.ThinkNode sourceNode, System.Nullable`1<Verse.AI.JobTag> tag,
System.Boolean fromQueue)
IL_080F: br => Label63
IL_0814: Label40
IL_0814: Label44
IL_0814: ldloc.s 8 (RimWorld.WorkGiver)
IL_0816: ldfld RimWorld.WorkGiverDef RimWorld.WorkGiver::def
IL_081B: ldfld System.Int32 RimWorld.WorkGiverDef::priorityInType
IL_0820: stloc.2
IL_0821: Label14
IL_0821: ldloc.s 7 (System.Int32)
IL_0823: ldc.i4.1
IL_0824: add
IL_0825: stloc.s 7 (System.Int32)
IL_0827: Label11
IL_0827: ldloc.s 7 (System.Int32)
IL_0829: ldloc.1
IL_082A: callvirt virtual System.Int32
System.Collections.Generic.List`1<RimWorld.WorkGiver>::get_Count()
IL_082F: blt => Label46
IL_0834: Label13
IL_0834: call static Verse.AI.ThinkResult Verse.AI.ThinkResult::get_NoJob()
IL_0839: br => Label64
IL_083E: Label17
IL_083E: ldloc.s 11 (Verse.AI.ThinkResult)
IL_0840: // end original
IL_0840: Label49
IL_0840: Label50
IL_0840: Label63
IL_0840: Label64
IL_0840: ret
DONE

### Patch: virtual Verse.AI.Job


RimWorld.WorkGiver_ConstructFinishFrames::JobOnThing(Verse.Pawn pawn, Verse.Thing
t, System.Boolean forced)
### Replacement: static Verse.AI.Job
RimWorld.WorkGiver_ConstructFinishFrames::RimWorld.WorkGiver_ConstructFinishFrames.
JobOnThing_Patch2(RimWorld.WorkGiver_ConstructFinishFrames this, Verse.Pawn pawn,
Verse.Thing t, System.Boolean forced)
IL_0000: Local var 0: RimWorld.Frame
IL_0000: Local var 1: Verse.AI.Job
IL_0000: ldnull
IL_0001: stloc 1 (Verse.AI.Job)
IL_0005: // start original
IL_0005: ldarg.2
IL_0006: callvirt virtual RimWorld.Faction Verse.Thing::get_Faction()
IL_000B: ldarg.1
IL_000C: callvirt virtual RimWorld.Faction Verse.Thing::get_Faction()
IL_0011: beq => Label0
IL_0016: ldnull
IL_0017: br => Label5
IL_001C: Label0
IL_001C: ldarg.2
IL_001D: isinst RimWorld.Frame
IL_0022: stloc.0
IL_0023: ldloc.0
IL_0024: brtrue => Label1
IL_0029: ldnull
IL_002A: br => Label6
IL_002F: Label1
IL_002F: ldloc.0
IL_0030: callvirt virtual
System.Collections.Generic.List`1<Verse.ThingDefCountClass>
RimWorld.Frame::MaterialsNeeded()
IL_0035: callvirt virtual System.Int32
System.Collections.Generic.List`1<Verse.ThingDefCountClass>::get_Count()
IL_003A: ldc.i4.0
IL_003B: ble => Label2
IL_0040: ldnull
IL_0041: br => Label7
IL_0046: Label2
IL_0046: ldloc.0
IL_0047: ldarg.1
IL_0048: call static Verse.Thing
RimWorld.GenConstruct::FirstBlockingThing(Verse.Thing constructible, Verse.Pawn
pawnToIgnore)
IL_004D: brfalse => Label3
IL_0052: ldloc.0
IL_0053: ldarg.1
IL_0054: ldarg.3
IL_0055: call static Verse.AI.Job
RimWorld.GenConstruct::HandleBlockingThingJob(Verse.Thing constructible, Verse.Pawn
worker, System.Boolean forced)
IL_005A: br => Label8
IL_005F: Label3
IL_005F: ldloc.0
IL_0060: ldarg.1
IL_0061: ldc.i4.1
IL_0062: ldarg.3
IL_0063: call static System.Boolean
RimWorld.GenConstruct::CanConstruct(Verse.Thing t, Verse.Pawn p, System.Boolean
checkSkills, System.Boolean forced)
IL_0068: brtrue => Label4
IL_006D: ldnull
IL_006E: br => Label9
IL_0073: Label4
IL_0073: ldsfld Verse.JobDef RimWorld.JobDefOf::FinishFrame
IL_0078: ldloc.0
IL_0079: call static Verse.LocalTargetInfo
Verse.LocalTargetInfo::op_Implicit(Verse.Thing t)
IL_007E: call static Verse.AI.Job Verse.JobMaker::MakeJob(Verse.JobDef def,
Verse.LocalTargetInfo targetA)
IL_0083: // end original
IL_0083: Label5
IL_0083: Label6
IL_0083: Label7
IL_0083: Label8
IL_0083: Label9
IL_0083: stloc 1 (Verse.AI.Job)
IL_0087: ldloca 1 (Verse.AI.Job)
IL_008B: ldarg 1
IL_008F: ldarg 2
IL_0093: ldarg 3
IL_0097: call static System.Void
QualityBuilder._WorkGiver_ConstructFinishFrames::Postfix(Verse.AI.Job& __result,
Verse.Pawn pawn, Verse.Thing t, System.Boolean forced)
IL_009C: ldarg 1
IL_00A0: ldarg 2
IL_00A4: ldloca 1 (Verse.AI.Job)
IL_00A8: ldarg 3
IL_00AC: ldarg.0
IL_00AD: call static System.Void
SmarterConstruction.Patches.WorkGiver_ConstructFinishFrames_JobOnThing::Postfix(Ver
se.Pawn pawn, Verse.Thing t, Verse.AI.Job& __result, System.Boolean forced,
RimWorld.WorkGiver_ConstructFinishFrames __instance)
IL_00B2: ldloc 1 (Verse.AI.Job)
IL_00B6: ret
DONE

### Patch: System.Void RimWorld.<>c__DisplayClass4_0::<MakeNewToils>b__1()


### Replacement: static System.Void
RimWorld.JobDriver_ConstructFinishFrame+<>c__DisplayClass4_0::RimWorld.JobDriver_Co
nstructFinishFrame+c__DisplayClass4_0.<MakeNewToils>b__1_Patch0(RimWorld.<>c__Displ
ayClass4_0 this)
IL_0000: Local var 0: Verse.Pawn
IL_0000: Local var 1: RimWorld.Frame
IL_0000: Local var 2: System.Single
IL_0000: Local var 3: System.Single
IL_0000: Local var 4: System.Single
IL_0000: // start original
IL_0000: ldarg.0
IL_0001: ldfld Verse.AI.Toil RimWorld.<>c__DisplayClass4_0::build
IL_0006: ldfld Verse.Pawn Verse.AI.Toil::actor
IL_000B: stloc.0
IL_000C: ldarg.0
IL_000D: ldfld RimWorld.JobDriver_ConstructFinishFrame
RimWorld.<>c__DisplayClass4_0::<>4__this
IL_0012: call RimWorld.Frame
RimWorld.JobDriver_ConstructFinishFrame::get_Frame()
IL_0017: stloc.1
IL_0018: ldloc.1
IL_0019: ldfld Verse.ThingOwner RimWorld.Frame::resourceContainer
IL_001E: callvirt abstract virtual System.Int32 Verse.ThingOwner::get_Count()
IL_0023: ldc.i4.0
IL_0024: ble => Label0
IL_0029: ldloc.0
IL_002A: ldfld RimWorld.Pawn_SkillTracker Verse.Pawn::skills
IL_002F: brfalse => Label1
IL_0034: ldloc.0
IL_0035: ldfld RimWorld.Pawn_SkillTracker Verse.Pawn::skills
IL_003A: ldsfld RimWorld.SkillDef RimWorld.SkillDefOf::Construction
IL_003F: ldc.r4 0.25
IL_0044: ldc.i4.0
IL_0045: callvirt System.Void RimWorld.Pawn_SkillTracker::Learn(RimWorld.SkillDef
sDef, System.Single xp, System.Boolean direct)
IL_004A: Label0
IL_004A: Label1
IL_004A: ldloc.0
IL_004B: ldloc.1
IL_004C: call static RimWorld.StatDef
VSE.Stats.StatUtility::ConstructionStatForFrame(RimWorld.Frame frame)
IL_0051: ldc.i4.1
IL_0052: ldc.i4.m1
IL_0053: call static System.Single
RimWorld.StatExtension::GetStatValue(Verse.Thing thing, RimWorld.StatDef stat,
System.Boolean applyPostProcess, System.Int32 cacheStaleAfterTicks)
IL_0058: ldc.r4 1.7
IL_005D: mul
IL_005E: stloc.2
IL_005F: ldloc.1
IL_0060: callvirt Verse.ThingDef Verse.Thing::get_Stuff()
IL_0065: brfalse => Label2
IL_006A: ldloc.2
IL_006B: ldloc.1
IL_006C: callvirt Verse.ThingDef Verse.Thing::get_Stuff()
IL_0071: ldsfld RimWorld.StatDef RimWorld.StatDefOf::ConstructionSpeedFactor
IL_0076: ldnull
IL_0077: call static System.Single
RimWorld.StatExtension::GetStatValueAbstract(Verse.BuildableDef def,
RimWorld.StatDef stat, Verse.ThingDef stuff)
IL_007C: mul
IL_007D: stloc.2
IL_007E: Label2
IL_007E: ldloc.1
IL_007F: callvirt System.Single RimWorld.Frame::get_WorkToBuild()
IL_0084: stloc.3
IL_0085: ldloc.0
IL_0086: callvirt virtual RimWorld.Faction Verse.Thing::get_Faction()
IL_008B: call static RimWorld.Faction RimWorld.Faction::get_OfPlayer()
IL_0090: bne.un => Label3
IL_0095: ldloc.0
IL_0096: ldsfld RimWorld.StatDef RimWorld.StatDefOf::ConstructSuccessChance
IL_009B: ldc.i4.1
IL_009C: ldc.i4.m1
IL_009D: call static System.Single
RimWorld.StatExtension::GetStatValue(Verse.Thing thing, RimWorld.StatDef stat,
System.Boolean applyPostProcess, System.Int32 cacheStaleAfterTicks)
IL_00A2: stloc.s 4 (System.Single)
IL_00A4: call static System.Boolean RimWorld.TutorSystem::get_TutorialMode()
IL_00A9: brtrue => Label4
IL_00AE: call static System.Single Verse.Rand::get_Value()
IL_00B3: ldc.r4 1
IL_00B8: ldloc.s 4 (System.Single)
IL_00BA: ldloc.2
IL_00BB: ldloc.3
IL_00BC: div
IL_00BD: call static System.Single UnityEngine.Mathf::Pow(System.Single f,
System.Single p)
IL_00C2: sub
IL_00C3: bge.un => Label5
IL_00C8: ldloc.1
IL_00C9: ldloc.0
IL_00CA: callvirt System.Void RimWorld.Frame::FailConstruction(Verse.Pawn worker)
IL_00CF: ldarg.0
IL_00D0: ldfld RimWorld.JobDriver_ConstructFinishFrame
RimWorld.<>c__DisplayClass4_0::<>4__this
IL_00D5: call System.Void Verse.AI.JobDriver::ReadyForNextToil()
IL_00DA: br => Label8
IL_00DF: Label3
IL_00DF: Label4
IL_00DF: Label5
IL_00DF: ldloc.1
IL_00E0: ldfld Verse.ThingDef Verse.Thing::def
IL_00E5: ldfld Verse.BuildableDef Verse.ThingDef::entityDefToBuild
IL_00EA: isinst Verse.TerrainDef
IL_00EF: brfalse => Label6
IL_00F4: ldarg.0
IL_00F5: ldfld RimWorld.JobDriver_ConstructFinishFrame
RimWorld.<>c__DisplayClass4_0::<>4__this
IL_00FA: call Verse.Map Verse.AI.JobDriver::get_Map()
IL_00FF: ldfld Verse.SnowGrid Verse.Map::snowGrid
IL_0104: ldloc.1
IL_0105: callvirt virtual Verse.IntVec3 Verse.Thing::get_Position()
IL_010A: ldc.r4 0
IL_010F: callvirt System.Void Verse.SnowGrid::SetDepth(Verse.IntVec3 c,
System.Single newDepth)
IL_0114: Label6
IL_0114: ldloc.1
IL_0115: dup
IL_0116: ldfld System.Single RimWorld.Frame::workDone
IL_011B: ldloc.2
IL_011C: add
IL_011D: stfld System.Single RimWorld.Frame::workDone
IL_0122: ldloc.1
IL_0123: ldfld System.Single RimWorld.Frame::workDone
IL_0128: ldloc.3
IL_0129: blt.un => Label7
IL_012E: ldloc.1
IL_012F: ldloc.3
IL_0130: stfld System.Single RimWorld.Frame::workDone
IL_0135: ldloc.1
IL_0136: ldloc.0
IL_0137: call static System.Boolean
SmarterConstruction.Patches.TranspilerHelper::EndJobIfEnclosing(RimWorld.Frame
target, Verse.Pawn pawn)
IL_013C: brtrue => Label7
IL_0141: ldloc.1
IL_0142: ldloc.0
IL_0143: callvirt System.Void RimWorld.Frame::CompleteConstruction(Verse.Pawn
worker)
IL_0148: ldarg.0
IL_0149: ldfld RimWorld.JobDriver_ConstructFinishFrame
RimWorld.<>c__DisplayClass4_0::<>4__this
IL_014E: call System.Void Verse.AI.JobDriver::ReadyForNextToil()
IL_0153: // end original
IL_0153: Label7
IL_0153: Label8
IL_0153: ret
DONE

### Harmony id=XeoNovaDan.SurvivalTools, version=2.2.2.0, location=C:\Program Files


(x86)\Steam\steamapps\common\data-000002130553D010, env/clr=4.0.30319.42000,
platform=Win32NT, ptrsize:runtime/env=8/Bits64, Windows
### Started from static System.Void SurvivalTools.HarmonyPatches::.cctor(),
location C:\Program Files (x86)\Steam\steamapps\common\data-0000021309847160
### At 2023-02-17 06.57.37
### Patch: System.Void RimWorld.ITab_Pawn_Gear::DrawThingRow(System.Single& y,
System.Single width, Verse.Thing thing, System.Boolean inventory)
### Replacement: static System.Void
RimWorld.ITab_Pawn_Gear::RimWorld.ITab_Pawn_Gear.DrawThingRow_Patch2(RimWorld.ITab_
Pawn_Gear this, System.Single& y, System.Single width, Verse.Thing thing,
System.Boolean inventory)
IL_0000: Local var 0: RimWorld.ITab_Pawn_Gear/<>c__DisplayClass22_0
IL_0000: Local var 1: UnityEngine.Rect
IL_0000: Local var 2: System.Boolean
IL_0000: Local var 3: UnityEngine.Rect
IL_0000: Local var 4: System.String
IL_0000: Local var 5: RimWorld.Apparel
IL_0000: Local var 6: UnityEngine.Rect
IL_0000: Local var 7: System.Boolean
IL_0000: Local var 8: System.Boolean
IL_0000: Local var 9: System.Boolean
IL_0000: Local var 10: RimWorld.Apparel
IL_0000: Local var 11: UnityEngine.Color
IL_0000: Local var 12: UnityEngine.Color
IL_0000: Local var 13: System.Action
IL_0000: Local var 14: UnityEngine.Rect
IL_0000: Local var 15: System.Nullable`1<Verse.Rot4>
IL_0000: Local var 16: System.String
IL_0000: call static System.Void
VFE.Mechanoids.HarmonyPatches.ITab_Pawn_Gear_Patch::Prefix()
IL_0005: // start original
IL_0005: newobj System.Void RimWorld.<>c__DisplayClass22_0::.ctor()
IL_000A: stloc.0
IL_000B: ldloc.0
IL_000C: ldarg.0
IL_000D: stfld RimWorld.ITab_Pawn_Gear
RimWorld.<>c__DisplayClass22_0::<>4__this
IL_0012: ldloc.0
IL_0013: ldarg.3
IL_0014: stfld Verse.Thing RimWorld.<>c__DisplayClass22_0::thing
IL_0019: ldloca.s 1 (UnityEngine.Rect)
IL_001B: ldc.r4 0
IL_0020: ldarg.1
IL_0021: ldind.r4
IL_0022: ldarg.2
IL_0023: ldc.r4 28
IL_0028: call System.Void UnityEngine.Rect::.ctor(System.Single x,
System.Single y, System.Single width, System.Single height)
IL_002D: ldloca.s 1 (UnityEngine.Rect)
IL_002F: call System.Single UnityEngine.Rect::get_width()
IL_0034: ldc.r4 24
IL_0039: sub
IL_003A: ldarg.1
IL_003B: ldind.r4
IL_003C: ldloc.0
IL_003D: ldfld Verse.Thing RimWorld.<>c__DisplayClass22_0::thing
IL_0042: call static System.Boolean
Verse.Widgets::InfoCardButton(System.Single x, System.Single y, Verse.Thing thing)
IL_0047: pop
IL_0048: ldloca.s 1 (UnityEngine.Rect)
IL_004A: dup
IL_004B: call System.Single UnityEngine.Rect::get_width()
IL_0050: ldc.r4 24
IL_0055: sub
IL_0056: call System.Void UnityEngine.Rect::set_width(System.Single value)
IL_005B: ldc.i4.0
IL_005C: stloc.2
IL_005D: ldarg.0
IL_005E: call System.Boolean RimWorld.ITab_Pawn_Gear::get_CanControl()
IL_0063: brfalse => Label0
IL_0068: ldarg.s 4
IL_006A: brtrue => Label1
IL_006F: ldarg.0
IL_0070: call System.Boolean
RimWorld.ITab_Pawn_Gear::get_CanControlColonist()
IL_0075: brtrue => Label2
IL_007A: ldarg.0
IL_007B: call Verse.Pawn RimWorld.ITab_Pawn_Gear::get_SelPawnForGear()
IL_0080: callvirt System.Boolean Verse.Thing::get_Spawned()
IL_0085: brfalse => Label3
IL_008A: ldarg.0
IL_008B: call Verse.Pawn RimWorld.ITab_Pawn_Gear::get_SelPawnForGear()
IL_0090: callvirt virtual Verse.Map Verse.Thing::get_Map()
IL_0095: callvirt System.Boolean Verse.Map::get_IsPlayerHome()
IL_009A: brtrue => Label4
IL_009F: Label1
IL_009F: Label2
IL_009F: ldloca.s 6 (UnityEngine.Rect)
IL_00A1: ldloca.s 1 (UnityEngine.Rect)
IL_00A3: call System.Single UnityEngine.Rect::get_width()
IL_00A8: ldc.r4 24
IL_00AD: sub
IL_00AE: ldarg.1
IL_00AF: ldind.r4
IL_00B0: ldc.r4 24
IL_00B5: ldc.r4 24
IL_00BA: call System.Void UnityEngine.Rect::.ctor(System.Single x,
System.Single y, System.Single width, System.Single height)
IL_00BF: ldc.i4.0
IL_00C0: stloc.s 7 (System.Boolean)
IL_00C2: ldarg.0
IL_00C3: call Verse.Pawn RimWorld.ITab_Pawn_Gear::get_SelPawnForGear()
IL_00C8: call static System.Boolean
RimWorld.QuestUtility::IsQuestLodger(Verse.Pawn p)
IL_00CD: brfalse => Label5
IL_00D2: ldarg.s 4
IL_00D4: brtrue => Label6
IL_00D9: ldloc.0
IL_00DA: ldfld Verse.Thing RimWorld.<>c__DisplayClass22_0::thing
IL_00DF: ldarg.0
IL_00E0: call Verse.Pawn RimWorld.ITab_Pawn_Gear::get_SelPawnForGear()
IL_00E5: call static System.Boolean
RimWorld.EquipmentUtility::QuestLodgerCanUnequip(Verse.Thing thing, Verse.Pawn
pawn)
IL_00EA: ldc.i4.0
IL_00EB: ceq
IL_00ED: br => Label7
IL_00F2: Label6
IL_00F2: ldc.i4.1
IL_00F3: Label7
IL_00F3: stloc.s 7 (System.Boolean)
IL_00F5: Label5
IL_00F5: ldarg.s 4
IL_00F7: brtrue => Label8
IL_00FC: ldarg.0
IL_00FD: call Verse.Pawn RimWorld.ITab_Pawn_Gear::get_SelPawnForGear()
IL_0102: ldfld Verse.PawnKindDef Verse.Pawn::kindDef
IL_0107: ldfld System.Boolean Verse.PawnKindDef::destroyGearOnDrop
IL_010C: br => Label9
IL_0111: Label8
IL_0111: ldc.i4.0
IL_0112: Label9
IL_0112: stloc.s 8 (System.Boolean)
IL_0114: ldloc.0
IL_0115: ldfld Verse.Thing RimWorld.<>c__DisplayClass22_0::thing
IL_011A: isinst RimWorld.Apparel
IL_011F: dup
IL_0120: stloc.s 10 (RimWorld.Apparel)
IL_0122: brfalse => Label10
IL_0127: ldarg.0
IL_0128: call Verse.Pawn RimWorld.ITab_Pawn_Gear::get_SelPawnForGear()
IL_012D: ldfld RimWorld.Pawn_ApparelTracker Verse.Pawn::apparel
IL_0132: brfalse => Label11
IL_0137: ldarg.0
IL_0138: call Verse.Pawn RimWorld.ITab_Pawn_Gear::get_SelPawnForGear()
IL_013D: ldfld RimWorld.Pawn_ApparelTracker Verse.Pawn::apparel
IL_0142: ldloc.s 10 (RimWorld.Apparel)
IL_0144: callvirt System.Boolean
RimWorld.Pawn_ApparelTracker::IsLocked(RimWorld.Apparel apparel)
IL_0149: br => Label12
IL_014E: Label10
IL_014E: Label11
IL_014E: ldc.i4.0
IL_014F: Label12
IL_014F: stloc.s 9 (System.Boolean)
IL_0151: ldloc.s 7 (System.Boolean)
IL_0153: ldloc.s 9 (System.Boolean)
IL_0155: or
IL_0156: ldloc.s 8 (System.Boolean)
IL_0158: or
IL_0159: stloc.2
IL_015A: ldloc.s 6 (UnityEngine.Rect)
IL_015C: call static System.Boolean Verse.Mouse::IsOver(UnityEngine.Rect
rect)
IL_0161: brfalse => Label13
IL_0166: ldloc.s 9 (System.Boolean)
IL_0168: brfalse => Label14
IL_016D: ldloc.s 6 (UnityEngine.Rect)
IL_016F: ldloc.s 10
IL_0171: call static Verse.TaggedString
VFEPirates.ITab_Pawn_Gear_DrawThingRow_Transpiler::DropThingTooltip(RimWorld.Appare
l apparel)
IL_0176: call static Verse.TipSignal
Verse.TipSignal::op_Implicit(Verse.TaggedString str)
IL_017B: call static System.Void
Verse.TooltipHandler::TipRegion(UnityEngine.Rect rect, Verse.TipSignal tip)
IL_0180: br => Label15
IL_0185: Label14
IL_0185: ldloc.s 7 (System.Boolean)
IL_0187: brfalse => Label16
IL_018C: ldloc.s 6 (UnityEngine.Rect)
IL_018E: ldstr "DropThingLodger"
IL_0193: call static Verse.TaggedString
Verse.Translator::Translate(System.String key)
IL_0198: call static Verse.TipSignal
Verse.TipSignal::op_Implicit(Verse.TaggedString str)
IL_019D: call static System.Void
Verse.TooltipHandler::TipRegion(UnityEngine.Rect rect, Verse.TipSignal tip)
IL_01A2: br => Label17
IL_01A7: Label16
IL_01A7: ldloc.s 6 (UnityEngine.Rect)
IL_01A9: ldstr "DropThing"
IL_01AE: call static Verse.TaggedString
Verse.Translator::Translate(System.String key)
IL_01B3: call static Verse.TipSignal
Verse.TipSignal::op_Implicit(Verse.TaggedString str)
IL_01B8: call static System.Void
Verse.TooltipHandler::TipRegion(UnityEngine.Rect rect, Verse.TipSignal tip)
IL_01BD: Label13
IL_01BD: Label15
IL_01BD: Label17
IL_01BD: ldloc.2
IL_01BE: brtrue => Label18
IL_01C3: ldarg.0
IL_01C4: callvirt Verse.Pawn RimWorld.ITab_Pawn_Gear::get_SelPawnForGear()
IL_01C9: ldarg.3
IL_01CA: call static UnityEngine.Color
PickUpAndHaul.HarmonyPatches::GetColorForHauled(Verse.Pawn pawn, Verse.Thing thing)
IL_01CF: br => Label19
IL_01D4: Label18
IL_01D4: call static UnityEngine.Color UnityEngine.Color::get_grey()
IL_01D9: Label19
IL_01D9: stloc.s 11 (UnityEngine.Color)
IL_01DB: ldloc.2
IL_01DC: brtrue => Label20
IL_01E1: ldsfld UnityEngine.Color Verse.GenUI::MouseoverColor
IL_01E6: br => Label21
IL_01EB: Label20
IL_01EB: ldloc.s 11 (UnityEngine.Color)
IL_01ED: Label21
IL_01ED: stloc.s 12 (UnityEngine.Color)
IL_01EF: ldloc.s 6 (UnityEngine.Rect)
IL_01F1: ldsfld UnityEngine.Texture2D Verse.TexButton::Drop
IL_01F6: ldloc.s 11 (UnityEngine.Color)
IL_01F8: ldloc.s 12 (UnityEngine.Color)
IL_01FA: ldloc.2
IL_01FB: ldc.i4.0
IL_01FC: ceq
IL_01FE: call static System.Boolean
Verse.Widgets::ButtonImage(UnityEngine.Rect butRect, UnityEngine.Texture2D tex,
UnityEngine.Color baseColor, UnityEngine.Color mouseoverColor, System.Boolean
doMouseoverSound)
IL_0203: brfalse => Label22
IL_0208: ldloc.2
IL_0209: brtrue => Label23
IL_020E: ldloc.0
IL_020F: ldftn System.Void
RimWorld.<>c__DisplayClass22_0::<DrawThingRow>b__0()
IL_0215: newobj System.Void System.Action::.ctor(System.Object object,
System.IntPtr method)
IL_021A: stloc.s 13 (System.Action)
IL_021C: call static System.Boolean Verse.ModsConfig::get_BiotechActive()
IL_0221: brfalse => Label24
IL_0226: ldarg.0
IL_0227: call Verse.Pawn RimWorld.ITab_Pawn_Gear::get_SelPawnForGear()
IL_022C: ldloc.0
IL_022D: ldfld Verse.Thing RimWorld.<>c__DisplayClass22_0::thing
IL_0232: ldloc.s 13 (System.Action)
IL_0234: call static System.Boolean
MechanitorUtility::TryConfirmBandwidthLossFromDroppingThing(Verse.Pawn pawn,
Verse.Thing thing, System.Action confirmAct)
IL_0239: brtrue => Label25
IL_023E: Label24
IL_023E: ldloc.s 13 (System.Action)
IL_0240: callvirt virtual System.Void System.Action::Invoke()
IL_0245: Label22
IL_0245: Label23
IL_0245: Label25
IL_0245: ldloca.s 1 (UnityEngine.Rect)
IL_0247: dup
IL_0248: call System.Single UnityEngine.Rect::get_width()
IL_024D: ldc.r4 24
IL_0252: sub
IL_0253: call System.Void UnityEngine.Rect::set_width(System.Single value)
IL_0258: Label0
IL_0258: Label3
IL_0258: Label4
IL_0258: ldarg.0
IL_0259: call System.Boolean
RimWorld.ITab_Pawn_Gear::get_CanControlColonist()
IL_025E: brfalse => Label26
IL_0263: ldarg.0
IL_0264: call Verse.Pawn RimWorld.ITab_Pawn_Gear::get_SelPawnForGear()
IL_0269: ldloc.0
IL_026A: ldfld Verse.Thing RimWorld.<>c__DisplayClass22_0::thing
IL_026F: call static System.Boolean
RimWorld.FoodUtility::WillIngestFromInventoryNow(Verse.Pawn pawn, Verse.Thing inv)
IL_0274: brfalse => Label27
IL_0279: ldloca.s 1 (UnityEngine.Rect)
IL_027B: call System.Single UnityEngine.Rect::get_width()
IL_0280: ldc.r4 24
IL_0285: sub
IL_0286: ldarg.1
IL_0287: ldind.r4
IL_0288: ldc.r4 24
IL_028D: ldc.r4 24
IL_0292: newobj System.Void UnityEngine.Rect::.ctor(System.Single x,
System.Single y, System.Single width, System.Single height)
IL_0297: dup
IL_0298: ldstr "ConsumeThing"
IL_029D: ldloc.0
IL_029E: ldfld Verse.Thing RimWorld.<>c__DisplayClass22_0::thing
IL_02A3: callvirt virtual System.String Verse.Thing::get_LabelNoCount()
IL_02A8: call static Verse.NamedArgument
Verse.NamedArgument::op_Implicit(System.String value)
IL_02AD: ldloc.0
IL_02AE: ldfld Verse.Thing RimWorld.<>c__DisplayClass22_0::thing
IL_02B3: call static Verse.NamedArgument
Verse.NamedArgument::op_Implicit(Verse.Thing value)
IL_02B8: call static System.Void
Verse.TooltipHandler::TipRegionByKey(UnityEngine.Rect rect, System.String key,
Verse.NamedArgument arg1, Verse.NamedArgument arg2)
IL_02BD: ldsfld UnityEngine.Texture2D Verse.TexButton::Ingest
IL_02C2: ldc.i4.1
IL_02C3: call static System.Boolean
Verse.Widgets::ButtonImage(UnityEngine.Rect butRect, UnityEngine.Texture2D tex,
System.Boolean doMouseoverSound)
IL_02C8: brfalse => Label28
IL_02CD: ldsfld Verse.SoundDef RimWorld.SoundDefOf::Tick_High
IL_02D2: ldnull
IL_02D3: call static System.Void
Verse.Sound.SoundStarter::PlayOneShotOnCamera(Verse.SoundDef soundDef, Verse.Map
onlyThisMap)
IL_02D8: ldarg.0
IL_02D9: call Verse.Pawn RimWorld.ITab_Pawn_Gear::get_SelPawnForGear()
IL_02DE: ldloc.0
IL_02DF: ldfld Verse.Thing RimWorld.<>c__DisplayClass22_0::thing
IL_02E4: call static System.Void
RimWorld.FoodUtility::IngestFromInventoryNow(Verse.Pawn pawn, Verse.Thing inv)
IL_02E9: Label27
IL_02E9: Label28
IL_02E9: ldloca.s 1 (UnityEngine.Rect)
IL_02EB: dup
IL_02EC: call System.Single UnityEngine.Rect::get_width()
IL_02F1: ldc.r4 24
IL_02F6: sub
IL_02F7: call System.Void UnityEngine.Rect::set_width(System.Single value)
IL_02FC: Label26
IL_02FC: ldloc.1
IL_02FD: stloc.s 14 (UnityEngine.Rect)
IL_02FF: ldloca.s 14 (UnityEngine.Rect)
IL_0301: ldloca.s 14 (UnityEngine.Rect)
IL_0303: call System.Single UnityEngine.Rect::get_xMax()
IL_0308: ldc.r4 60
IL_030D: sub
IL_030E: call System.Void UnityEngine.Rect::set_xMin(System.Single value)
IL_0313: ldloc.0
IL_0314: ldfld Verse.Thing RimWorld.<>c__DisplayClass22_0::thing
IL_0319: ldloc.s 14 (UnityEngine.Rect)
IL_031B: call static System.Void
RimWorld.Planet.CaravanThingsTabUtility::DrawMass(Verse.Thing thing,
UnityEngine.Rect rect)
IL_0320: ldloca.s 1 (UnityEngine.Rect)
IL_0322: dup
IL_0323: call System.Single UnityEngine.Rect::get_width()
IL_0328: ldc.r4 60
IL_032D: sub
IL_032E: call System.Void UnityEngine.Rect::set_width(System.Single value)
IL_0333: ldloc.1
IL_0334: call static System.Boolean Verse.Mouse::IsOver(UnityEngine.Rect
rect)
IL_0339: brfalse => Label29
IL_033E: ldsfld UnityEngine.Color RimWorld.ITab_Pawn_Gear::HighlightColor
IL_0343: call static System.Void UnityEngine.GUI::set_color(UnityEngine.Color
value)
IL_0348: ldloc.1
IL_0349: ldsfld UnityEngine.Texture2D Verse.TexUI::HighlightTex
IL_034E: call static System.Void
UnityEngine.GUI::DrawTexture(UnityEngine.Rect position, UnityEngine.Texture image)
IL_0353: Label29
IL_0353: ldloc.0
IL_0354: ldfld Verse.Thing RimWorld.<>c__DisplayClass22_0::thing
IL_0359: ldfld Verse.ThingDef Verse.Thing::def
IL_035E: callvirt UnityEngine.Material Verse.BuildableDef::get_DrawMatSingle()
IL_0363: ldnull
IL_0364: call static System.Boolean
UnityEngine.Object::op_Inequality(UnityEngine.Object x, UnityEngine.Object y)
IL_0369: brfalse => Label30
IL_036E: ldloc.0
IL_036F: ldfld Verse.Thing RimWorld.<>c__DisplayClass22_0::thing
IL_0374: ldfld Verse.ThingDef Verse.Thing::def
IL_0379: callvirt UnityEngine.Material Verse.BuildableDef::get_DrawMatSingle()
IL_037E: callvirt UnityEngine.Texture UnityEngine.Material::get_mainTexture()
IL_0383: ldnull
IL_0384: call static System.Boolean
UnityEngine.Object::op_Inequality(UnityEngine.Object x, UnityEngine.Object y)
IL_0389: brfalse => Label31
IL_038E: ldc.r4 4
IL_0393: ldarg.1
IL_0394: ldind.r4
IL_0395: ldc.r4 28
IL_039A: ldc.r4 28
IL_039F: newobj System.Void UnityEngine.Rect::.ctor(System.Single x,
System.Single y, System.Single width, System.Single height)
IL_03A4: ldloc.0
IL_03A5: ldfld Verse.Thing RimWorld.<>c__DisplayClass22_0::thing
IL_03AA: ldc.r4 1
IL_03AF: ldloca.s 15 (System.Nullable`1[Verse.Rot4])
IL_03B1: initobj System.Nullable`1[Verse.Rot4]
IL_03B7: ldloc.s 15 (System.Nullable`1[Verse.Rot4])
IL_03B9: ldc.i4.0
IL_03BA: call static System.Void Verse.Widgets::ThingIcon(UnityEngine.Rect
rect, Verse.Thing thing, System.Single alpha, System.Nullable`1<Verse.Rot4> rot,
System.Boolean stackOfOne)
IL_03BF: Label30
IL_03BF: Label31
IL_03BF: ldc.i4.3
IL_03C0: call static System.Void
Verse.Text::set_Anchor(UnityEngine.TextAnchor value)
IL_03C5: ldsfld UnityEngine.Color RimWorld.ITab_Pawn_Gear::ThingLabelColor
IL_03CA: call static System.Void UnityEngine.GUI::set_color(UnityEngine.Color
value)
IL_03CF: ldloca.s 3 (UnityEngine.Rect)
IL_03D1: ldc.r4 36
IL_03D6: ldarg.1
IL_03D7: ldind.r4
IL_03D8: ldloca.s 1 (UnityEngine.Rect)
IL_03DA: call System.Single UnityEngine.Rect::get_width()
IL_03DF: ldc.r4 36
IL_03E4: sub
IL_03E5: ldloca.s 1 (UnityEngine.Rect)
IL_03E7: call System.Single UnityEngine.Rect::get_height()
IL_03EC: call System.Void UnityEngine.Rect::.ctor(System.Single x,
System.Single y, System.Single width, System.Single height)
IL_03F1: ldloc.0
IL_03F2: ldfld Verse.Thing RimWorld.<>c__DisplayClass22_0::thing
IL_03F7: callvirt abstract virtual System.String Verse.Entity::get_LabelCap()
IL_03FC: ldarg.0
IL_03FD: call Verse.Pawn RimWorld.ITab_Pawn_Gear::get_SelPawnForGear()
IL_0402: ldarg.3
IL_0403: ldfld Verse.ThingDef Verse.Thing::def
IL_0408: call static System.String
SmartMedicine.DrawThingRow_Patch::AddStockText(System.String text, Verse.Pawn pawn,
Verse.ThingDef thingDef)
IL_040D: stloc.s 4 (System.String)
IL_040F: ldloc.0
IL_0410: ldfld Verse.Thing RimWorld.<>c__DisplayClass22_0::thing
IL_0415: isinst RimWorld.Apparel
IL_041A: stloc.s 5 (RimWorld.Apparel)
IL_041C: ldloca.s 5
IL_041E: ldarg.3
IL_041F: ldarg.0
IL_0420: call Verse.Pawn RimWorld.ITab_Pawn_Gear::get_SelPawnForGear()
IL_0425: call static System.Void
SurvivalTools.Patch_ITab_Pawn_Gear_DrawThingRow::AdjustDisplayedLabel(System.String
& originalLabel, Verse.Thing thing, Verse.Pawn pawn)
IL_042A: ldloc.s 5 (RimWorld.Apparel)
IL_042C: brfalse => Label32
IL_0431: ldarg.0
IL_0432: call Verse.Pawn RimWorld.ITab_Pawn_Gear::get_SelPawnForGear()
IL_0437: ldfld RimWorld.Pawn_OutfitTracker Verse.Pawn::outfits
IL_043C: brfalse => Label33
IL_0441: ldarg.0
IL_0442: call Verse.Pawn RimWorld.ITab_Pawn_Gear::get_SelPawnForGear()
IL_0447: ldfld RimWorld.Pawn_OutfitTracker Verse.Pawn::outfits
IL_044C: ldfld RimWorld.OutfitForcedHandler
RimWorld.Pawn_OutfitTracker::forcedHandler
IL_0451: ldloc.s 5 (RimWorld.Apparel)
IL_0453: callvirt System.Boolean
RimWorld.OutfitForcedHandler::IsForced(RimWorld.Apparel ap)
IL_0458: brfalse => Label34
IL_045D: ldloc.s 4 (System.String)
IL_045F: ldstr ", "
IL_0464: ldstr "ApparelForcedLower"
IL_0469: call static Verse.TaggedString
Verse.Translator::Translate(System.String key)
IL_046E: call static Verse.TaggedString
Verse.TaggedString::op_Addition(System.String t1, Verse.TaggedString t2)
IL_0473: call static Verse.TaggedString
Verse.TaggedString::op_Addition(System.String t1, Verse.TaggedString t2)
IL_0478: call static System.String
Verse.TaggedString::op_Implicit(Verse.TaggedString taggedString)
IL_047D: stloc.s 4 (System.String)
IL_047F: Label32
IL_047F: Label33
IL_047F: Label34
IL_047F: ldloc.2
IL_0480: brfalse => Label35
IL_0485: ldloc.s 4 (System.String)
IL_0487: ldstr " ("
IL_048C: ldstr "ApparelLockedLower"
IL_0491: call static Verse.TaggedString
Verse.Translator::Translate(System.String key)
IL_0496: call static Verse.TaggedString
Verse.TaggedString::op_Addition(System.String t1, Verse.TaggedString t2)
IL_049B: ldstr ")"
IL_04A0: call static Verse.TaggedString
Verse.TaggedString::op_Addition(Verse.TaggedString t1, System.String t2)
IL_04A5: call static Verse.TaggedString
Verse.TaggedString::op_Addition(System.String t1, Verse.TaggedString t2)
IL_04AA: call static System.String
Verse.TaggedString::op_Implicit(Verse.TaggedString taggedString)
IL_04AF: stloc.s 4 (System.String)
IL_04B1: Label35
IL_04B1: ldc.i4.0
IL_04B2: call static System.Void Verse.Text::set_WordWrap(System.Boolean
value)
IL_04B7: ldloc.3
IL_04B8: ldloc.s 4 (System.String)
IL_04BA: ldloca.s 3 (UnityEngine.Rect)
IL_04BC: call System.Single UnityEngine.Rect::get_width()
IL_04C1: ldnull
IL_04C2: call static System.String Verse.GenText::Truncate(System.String str,
System.Single width, System.Collections.Generic.Dictionary`2<System.String,
System.String> cache)
IL_04C7: ldarg.0
IL_04C8: call Verse.Pawn RimWorld.ITab_Pawn_Gear::get_SelPawnForGear()
IL_04CD: ldarg.3
IL_04CE: ldfld Verse.ThingDef Verse.Thing::def
IL_04D3: call static System.Void
SmartMedicine.DrawThingRow_Patch::LabelIncDecButton(UnityEngine.Rect rect,
System.String text, Verse.Pawn pawn, Verse.ThingDef thingDef)
IL_04D8: ldc.i4.1
IL_04D9: call static System.Void Verse.Text::set_WordWrap(System.Boolean
value)
IL_04DE: ldloc.1
IL_04DF: call static System.Boolean Verse.Mouse::IsOver(UnityEngine.Rect
rect)
IL_04E4: brfalse => Label36
IL_04E9: ldloc.0
IL_04EA: ldfld Verse.Thing RimWorld.<>c__DisplayClass22_0::thing
IL_04EF: callvirt System.String Verse.Thing::get_LabelNoParenthesisCap()
IL_04F4: call static System.String
Verse.ColoredText::AsTipTitle(System.String s)
IL_04F9: ldloc.0
IL_04FA: ldfld Verse.Thing RimWorld.<>c__DisplayClass22_0::thing
IL_04FF: ldc.i4.1
IL_0500: ldc.i4.1
IL_0501: ldc.i4.1
IL_0502: call static System.String RimWorld.GenLabel::LabelExtras(Verse.Thing
t, System.Int32 stackCount, System.Boolean includeHp, System.Boolean
includeQuality)
IL_0507: ldstr "\n\n"
IL_050C: ldloc.0
IL_050D: ldfld Verse.Thing RimWorld.<>c__DisplayClass22_0::thing
IL_0512: callvirt virtual System.String Verse.Thing::get_DescriptionDetailed()
IL_0517: ldarg.0
IL_0518: call Verse.Pawn RimWorld.ITab_Pawn_Gear::get_SelPawnForGear()
IL_051D: ldarg.3
IL_051E: ldfld Verse.ThingDef Verse.Thing::def
IL_0523: call static System.String
SmartMedicine.DrawThingRow_Patch::AddStockTip(System.String text, Verse.Pawn pawn,
Verse.ThingDef thingDef)
IL_0528: call static System.String System.String::Concat(System.String str0,
System.String str1, System.String str2, System.String str3)
IL_052D: stloc.s 16 (System.String)
IL_052F: ldloc.0
IL_0530: ldfld Verse.Thing RimWorld.<>c__DisplayClass22_0::thing
IL_0535: ldfld Verse.ThingDef Verse.Thing::def
IL_053A: ldfld System.Boolean Verse.ThingDef::useHitPoints
IL_053F: brfalse => Label37
IL_0544: ldc.i4.5
IL_0545: newarr System.Object
IL_054A: dup
IL_054B: ldc.i4.0
IL_054C: ldloc.s 16 (System.String)
IL_054E: stelem.ref
IL_054F: dup
IL_0550: ldc.i4.1
IL_0551: ldstr "\n"
IL_0556: stelem.ref
IL_0557: dup
IL_0558: ldc.i4.2
IL_0559: ldloc.0
IL_055A: ldfld Verse.Thing RimWorld.<>c__DisplayClass22_0::thing
IL_055F: callvirt virtual System.Int32 Verse.Thing::get_HitPoints()
IL_0564: box System.Int32
IL_0569: stelem.ref
IL_056A: dup
IL_056B: ldc.i4.3
IL_056C: ldstr " / "
IL_0571: stelem.ref
IL_0572: dup
IL_0573: ldc.i4.4
IL_0574: ldloc.0
IL_0575: ldfld Verse.Thing RimWorld.<>c__DisplayClass22_0::thing
IL_057A: callvirt System.Int32 Verse.Thing::get_MaxHitPoints()
IL_057F: box System.Int32
IL_0584: stelem.ref
IL_0585: call static System.String System.String::Concat(System.Object[]
args)
IL_058A: stloc.s 16 (System.String)
IL_058C: Label37
IL_058C: ldloc.1
IL_058D: ldloc.s 16 (System.String)
IL_058F: call static Verse.TipSignal
Verse.TipSignal::op_Implicit(System.String str)
IL_0594: call static System.Void
Verse.TooltipHandler::TipRegion(UnityEngine.Rect rect, Verse.TipSignal tip)
IL_0599: Label36
IL_0599: ldarg.1
IL_059A: ldarg.1
IL_059B: ldind.r4
IL_059C: ldc.r4 28
IL_05A1: add
IL_05A2: stind.r4
IL_05A3: // end original
IL_05A3: call static System.Void
VFE.Mechanoids.HarmonyPatches.ITab_Pawn_Gear_Patch::Postfix()
IL_05A8: ret
DONE

### Patch: System.Void RimWorld.Mineable::Notify_TookMiningDamage(System.Int32


amount, Verse.Pawn miner)
### Replacement: static System.Void
RimWorld.Mineable::RimWorld.Mineable.Notify_TookMiningDamage_Patch0(RimWorld.Mineab
le this, System.Int32 amount, Verse.Pawn miner)
IL_0000: Local var 0: System.Single
IL_0000: // start original
IL_0000: ldarg.1
IL_0001: ldarg.0
IL_0002: callvirt virtual System.Int32 Verse.Thing::get_HitPoints()
IL_0007: call static System.Int32 UnityEngine.Mathf::Min(System.Int32 a,
System.Int32 b)
IL_000C: conv.r4
IL_000D: ldarg.0
IL_000E: call System.Int32 Verse.Thing::get_MaxHitPoints()
IL_0013: conv.r4
IL_0014: div
IL_0015: stloc.0
IL_0016: ldarg.0
IL_0017: ldarg.0
IL_0018: ldfld System.Single RimWorld.Mineable::yieldPct
IL_001D: ldloc.0
IL_001E: ldarg.2
IL_001F: ldsfld RimWorld.StatDef SurvivalTools.ST_StatDefOf::MiningYieldDigging
IL_0024: ldc.i4.1
IL_0025: ldc.i4.m1
IL_0026: call static System.Single
RimWorld.StatExtension::GetStatValue(Verse.Thing thing, RimWorld.StatDef stat,
System.Boolean applyPostProcess, System.Int32 cacheStaleAfterTicks)
IL_002B: mul
IL_002C: add
IL_002D: stfld System.Single RimWorld.Mineable::yieldPct
IL_0032: // end original
IL_0032: ret
DONE

### Patch: static System.Boolean


Verse.RoofUtility::CanHandleBlockingThing(Verse.Thing blocker, Verse.Pawn worker,
System.Boolean forced)
### Replacement: static System.Boolean
Verse.RoofUtility::Verse.RoofUtility.CanHandleBlockingThing_Patch1(Verse.Thing
blocker, Verse.Pawn worker, System.Boolean forced)
IL_0000: Local var 0: System.Boolean
IL_0000: ldc.i4 0
IL_0005: stloc 0 (System.Boolean)
IL_0009: // start original
IL_0009: ldarg.0
IL_000A: brtrue => Label0
IL_000F: ldc.i4.1
IL_0010: br => Label4
IL_0015: Label0
IL_0015: ldarg.0
IL_0016: ldfld Verse.ThingDef Verse.Thing::def
IL_001B: ldfld Verse.ThingCategory Verse.ThingDef::category
IL_0020: ldc.i4.4
IL_0021: bne.un => Label1
IL_0026: ldarg.0
IL_0027: ldarg.1
IL_0028: call static System.Boolean
RimWorld.PlantUtility::PawnWillingToCutPlant_Job(Verse.Thing plant, Verse.Pawn
pawn)
IL_002D: brtrue => Label2
IL_0032: ldc.i4.0
IL_0033: br => Label5
IL_0038: Label2
IL_0038: ldarg.1
IL_0039: ldarg.0
IL_003A: call static Verse.LocalTargetInfo
Verse.LocalTargetInfo::op_Implicit(Verse.Thing t)
IL_003F: ldc.i4.3
IL_0040: ldarg.1
IL_0041: call static Verse.Danger
Verse.DangerUtility::NormalMaxDanger(Verse.Pawn p)
IL_0046: ldc.i4.1
IL_0047: ldc.i4.m1
IL_0048: ldnull
IL_0049: ldarg.2
IL_004A: call static System.Boolean
Verse.AI.ReservationUtility::CanReserveAndReach(Verse.Pawn p, Verse.LocalTargetInfo
target, Verse.AI.PathEndMode peMode, Verse.Danger maxDanger, System.Int32 maxPawns,
System.Int32 stackCount, Verse.ReservationLayerDef layer, System.Boolean
ignoreOtherReservations)
IL_004F: brfalse => Label3
IL_0054: ldc.i4.1
IL_0055: br => Label6
IL_005A: Label1
IL_005A: Label3
IL_005A: ldc.i4.0
IL_005B: // end original
IL_005B: Label4
IL_005B: Label5
IL_005B: Label6
IL_005B: stloc 0 (System.Boolean)
IL_005F: ldloca 0 (System.Boolean)
IL_0063: ldarg 0
IL_0067: ldarg 1
IL_006B: call static System.Void
SurvivalTools.Patch_RoofUtility_CanHandleBlockingThing::Postfix(System.Boolean&
__result, Verse.Thing blocker, Verse.Pawn worker)
IL_0070: ldloc 0 (System.Boolean)
IL_0074: ret
DONE

### Patch: virtual System.Void


RimWorld.BaseGen.SymbolResolver_AncientRuins::Resolve(RimWorld.BaseGen.ResolveParam
s rp)
### Replacement: static System.Void
RimWorld.BaseGen.SymbolResolver_AncientRuins::RimWorld.BaseGen.SymbolResolver_Ancie
ntRuins.Resolve_Patch1(RimWorld.BaseGen.SymbolResolver_AncientRuins this,
RimWorld.BaseGen.ResolveParams rp)
IL_0000: Local var 0: RimWorld.BaseGen.ResolveParams
IL_0000: Local var 1: System.Nullable`1<System.Single>
IL_0000: Local var 2: System.Nullable`1<System.Boolean>
IL_0000: ldarg 1
IL_0004: call static System.Void
SurvivalTools.Patch_SymbolResolver_AncientRuins_Resolve::Prefix(RimWorld.BaseGen.Re
solveParams rp)
IL_0009: // start original
IL_0009: ldarg.1
IL_000A: stloc.0
IL_000B: ldloca.s 0 (RimWorld.BaseGen.ResolveParams)
IL_000D: ldarg.1
IL_000E: ldfld Verse.ThingDef RimWorld.BaseGen.ResolveParams::wallStuff
IL_0013: dup
IL_0014: brtrue => Label0
IL_0019: pop
IL_001A: ldarg.1
IL_001B: ldfld RimWorld.Faction RimWorld.BaseGen.ResolveParams::faction
IL_0020: ldc.i4.1
IL_0021: call static Verse.ThingDef
RimWorld.BaseGen.BaseGenUtility::RandomCheapWallStuff(RimWorld.Faction faction,
System.Boolean notVeryFlammable)
IL_0026: Label0
IL_0026: stfld Verse.ThingDef RimWorld.BaseGen.ResolveParams::wallStuff
IL_002B: ldloca.s 0 (RimWorld.BaseGen.ResolveParams)
IL_002D: ldarg.1
IL_002E: ldfld System.Nullable`1<System.Single>
RimWorld.BaseGen.ResolveParams::chanceToSkipWallBlock
IL_0033: stloc.1
IL_0034: ldloca.s 1 (System.Nullable`1[System.Single])
IL_0036: call System.Boolean System.Nullable`1<System.Single>::get_HasValue()
IL_003B: brtrue => Label1
IL_0040: ldc.r4 0.1
IL_0045: br => Label2
IL_004A: Label1
IL_004A: ldloca.s 1 (System.Nullable`1[System.Single])
IL_004C: call System.Single
System.Nullable`1<System.Single>::GetValueOrDefault()
IL_0051: Label2
IL_0051: newobj System.Void
System.Nullable`1<System.Single>::.ctor(System.Single value)
IL_0056: stfld System.Nullable`1<System.Single>
RimWorld.BaseGen.ResolveParams::chanceToSkipWallBlock
IL_005B: ldloca.s 0 (RimWorld.BaseGen.ResolveParams)
IL_005D: ldarg.1
IL_005E: ldfld System.Nullable`1<System.Boolean>
RimWorld.BaseGen.ResolveParams::clearEdificeOnly
IL_0063: stloc.2
IL_0064: ldloca.s 2 (System.Nullable`1[System.Boolean])
IL_0066: call System.Boolean
System.Nullable`1<System.Boolean>::get_HasValue()
IL_006B: brtrue => Label3
IL_0070: ldc.i4.1
IL_0071: br => Label4
IL_0076: Label3
IL_0076: ldloca.s 2 (System.Nullable`1[System.Boolean])
IL_0078: call System.Boolean
System.Nullable`1<System.Boolean>::GetValueOrDefault()
IL_007D: Label4
IL_007D: newobj System.Void
System.Nullable`1<System.Boolean>::.ctor(System.Boolean value)
IL_0082: stfld System.Nullable`1<System.Boolean>
RimWorld.BaseGen.ResolveParams::clearEdificeOnly
IL_0087: ldloca.s 0 (RimWorld.BaseGen.ResolveParams)
IL_0089: ldarg.1
IL_008A: ldfld System.Nullable`1<System.Boolean>
RimWorld.BaseGen.ResolveParams::noRoof
IL_008F: stloc.2
IL_0090: ldloca.s 2 (System.Nullable`1[System.Boolean])
IL_0092: call System.Boolean
System.Nullable`1<System.Boolean>::get_HasValue()
IL_0097: brtrue => Label5
IL_009C: ldc.i4.1
IL_009D: br => Label6
IL_00A2: Label5
IL_00A2: ldloca.s 2 (System.Nullable`1[System.Boolean])
IL_00A4: call System.Boolean
System.Nullable`1<System.Boolean>::GetValueOrDefault()
IL_00A9: Label6
IL_00A9: newobj System.Void
System.Nullable`1<System.Boolean>::.ctor(System.Boolean value)
IL_00AE: stfld System.Nullable`1<System.Boolean>
RimWorld.BaseGen.ResolveParams::noRoof
IL_00B3: ldsfld RimWorld.BaseGen.SymbolStack
RimWorld.BaseGen.BaseGen::symbolStack
IL_00B8: ldstr "emptyRoom"
IL_00BD: ldloc.0
IL_00BE: ldnull
IL_00BF: callvirt System.Void RimWorld.BaseGen.SymbolStack::Push(System.String
symbol, RimWorld.BaseGen.ResolveParams resolveParams, System.String
customNameForPath)
IL_00C4: // end original
IL_00C4: ret
DONE

### Patch: virtual System.Collections.Generic.IEnumerable`1<RimWorld.StatDrawEntry>


Verse.ThingDef::SpecialDisplayStats(RimWorld.StatRequest req)
### Replacement: static
System.Collections.Generic.IEnumerable`1<RimWorld.StatDrawEntry>
Verse.ThingDef::Verse.ThingDef.SpecialDisplayStats_Patch5(Verse.ThingDef this,
RimWorld.StatRequest req)
IL_0000: Local var 0:
System.Collections.Generic.IEnumerable`1<RimWorld.StatDrawEntry>
IL_0000: ldnull
IL_0001: stloc 0
(System.Collections.Generic.IEnumerable`1[RimWorld.StatDrawEntry])
IL_0005: // start original
IL_0005: ldc.i4.s -2
IL_0007: newobj System.Void
Verse.<SpecialDisplayStats>d__358::.ctor(System.Int32 <>1__state)
IL_000C: dup
IL_000D: ldarg.0
IL_000E: stfld Verse.ThingDef Verse.<SpecialDisplayStats>d__358::<>4__this
IL_0013: dup
IL_0014: ldarg.1
IL_0015: stfld RimWorld.StatRequest
Verse.<SpecialDisplayStats>d__358::<>3__req
IL_001A: // end original
IL_001A: stloc 0
(System.Collections.Generic.IEnumerable`1[RimWorld.StatDrawEntry])
IL_001E: ldarg.0
IL_001F: ldloca 0
(System.Collections.Generic.IEnumerable`1[RimWorld.StatDrawEntry])
IL_0023: call static System.Void
NocturnalAnimals.VanillaExpandedFramework_ThingDef_SpecialDisplayStats_Nocturnal_Pa
tch::Postfix(Verse.ThingDef __instance, System.Collections.Generic.IEnumerable`1&
__result)
IL_0028: ldarg.0
IL_0029: ldloca 0
(System.Collections.Generic.IEnumerable`1[RimWorld.StatDrawEntry])
IL_002D: call static System.Void
AnimalBehaviours.VanillaExpandedFramework_ThingDef_SpecialDisplayStats_Patch::Postf
ix(Verse.ThingDef __instance, System.Collections.Generic.IEnumerable`1& __result)
IL_0032: ldarg.0
IL_0033: ldloca 0
(System.Collections.Generic.IEnumerable`1[RimWorld.StatDrawEntry])
IL_0037: call static System.Void VFECore.SetFaction::Postfix(Verse.ThingDef
__instance, System.Collections.Generic.IEnumerable`1& __result)
IL_003C: ldloc 0
(System.Collections.Generic.IEnumerable`1[RimWorld.StatDrawEntry])
IL_0040: ldarg.0
IL_0041: ldarg 1
IL_0045: call static
System.Collections.Generic.IEnumerable`1<RimWorld.StatDrawEntry>
VFECore.ThingDef_SpecialDisplayStats_Patch::Postfix(System.Collections.Generic.IEnu
merable`1<RimWorld.StatDrawEntry> __result, Verse.ThingDef __instance,
RimWorld.StatRequest req)
IL_004A: ldarg.0
IL_004B: ldarg 1
IL_004F: call static
System.Collections.Generic.IEnumerable`1<RimWorld.StatDrawEntry>
SurvivalTools.Patch_ThingDef_SpecialDisplayStats::Postfix(System.Collections.Generi
c.IEnumerable`1<RimWorld.StatDrawEntry> __result, Verse.ThingDef __instance,
RimWorld.StatRequest req)
IL_0054: ret
DONE

### Patch: System.Void


Verse.ThingFilter::SetFromPreset(RimWorld.StorageSettingsPreset preset)
### Replacement: static System.Void
Verse.ThingFilter::Verse.ThingFilter.SetFromPreset_Patch1(Verse.ThingFilter this,
RimWorld.StorageSettingsPreset preset)
IL_0000: // start original
IL_0000: ldarg.1
IL_0001: brtrue => Label0
IL_0006: ldarg.0
IL_0007: ldsfld Verse.ThingCategoryDef RimWorld.ThingCategoryDefOf::Foods
IL_000C: ldc.i4.1
IL_000D: ldnull
IL_000E: ldnull
IL_000F: call System.Void Verse.ThingFilter::SetAllow(Verse.ThingCategoryDef
categoryDef, System.Boolean allow,
System.Collections.Generic.IEnumerable`1<Verse.ThingDef> exceptedDefs,
System.Collections.Generic.IEnumerable`1<Verse.SpecialThingFilterDef>
exceptedFilters)
IL_0014: ldarg.0
IL_0015: ldsfld Verse.ThingCategoryDef
RimWorld.ThingCategoryDefOf::Manufactured
IL_001A: ldc.i4.1
IL_001B: ldnull
IL_001C: ldnull
IL_001D: call System.Void Verse.ThingFilter::SetAllow(Verse.ThingCategoryDef
categoryDef, System.Boolean allow,
System.Collections.Generic.IEnumerable`1<Verse.ThingDef> exceptedDefs,
System.Collections.Generic.IEnumerable`1<Verse.SpecialThingFilterDef>
exceptedFilters)
IL_0022: ldarg.0
IL_0023: ldsfld Verse.ThingCategoryDef
RimWorld.ThingCategoryDefOf::ResourcesRaw
IL_0028: ldc.i4.1
IL_0029: ldnull
IL_002A: ldnull
IL_002B: call System.Void Verse.ThingFilter::SetAllow(Verse.ThingCategoryDef
categoryDef, System.Boolean allow,
System.Collections.Generic.IEnumerable`1<Verse.ThingDef> exceptedDefs,
System.Collections.Generic.IEnumerable`1<Verse.SpecialThingFilterDef>
exceptedFilters)
IL_0030: ldarg.0
IL_0031: ldsfld Verse.ThingCategoryDef RimWorld.ThingCategoryDefOf::Items
IL_0036: ldc.i4.1
IL_0037: ldnull
IL_0038: ldnull
IL_0039: call System.Void Verse.ThingFilter::SetAllow(Verse.ThingCategoryDef
categoryDef, System.Boolean allow,
System.Collections.Generic.IEnumerable`1<Verse.ThingDef> exceptedDefs,
System.Collections.Generic.IEnumerable`1<Verse.SpecialThingFilterDef>
exceptedFilters)
IL_003E: ldarg.0
IL_003F: ldsfld Verse.ThingCategoryDef RimWorld.ThingCategoryDefOf::Buildings
IL_0044: ldc.i4.1
IL_0045: ldnull
IL_0046: ldnull
IL_0047: call System.Void Verse.ThingFilter::SetAllow(Verse.ThingCategoryDef
categoryDef, System.Boolean allow,
System.Collections.Generic.IEnumerable`1<Verse.ThingDef> exceptedDefs,
System.Collections.Generic.IEnumerable`1<Verse.SpecialThingFilterDef>
exceptedFilters)
IL_004C: ldarg.0
IL_004D: ldsfld Verse.ThingCategoryDef RimWorld.ThingCategoryDefOf::Weapons
IL_0052: ldc.i4.1
IL_0053: ldnull
IL_0054: ldnull
IL_0055: call System.Void Verse.ThingFilter::SetAllow(Verse.ThingCategoryDef
categoryDef, System.Boolean allow,
System.Collections.Generic.IEnumerable`1<Verse.ThingDef> exceptedDefs,
System.Collections.Generic.IEnumerable`1<Verse.SpecialThingFilterDef>
exceptedFilters)
IL_005A: ldarg.0
IL_005B: ldsfld Verse.ThingCategoryDef RimWorld.ThingCategoryDefOf::Apparel
IL_0060: ldc.i4.1
IL_0061: ldnull
IL_0062: ldnull
IL_0063: call System.Void Verse.ThingFilter::SetAllow(Verse.ThingCategoryDef
categoryDef, System.Boolean allow,
System.Collections.Generic.IEnumerable`1<Verse.ThingDef> exceptedDefs,
System.Collections.Generic.IEnumerable`1<Verse.SpecialThingFilterDef>
exceptedFilters)
IL_0068: ldarg.0
IL_0069: ldsfld Verse.ThingCategoryDef RimWorld.ThingCategoryDefOf::BodyParts
IL_006E: ldc.i4.1
IL_006F: ldnull
IL_0070: ldnull
IL_0071: call System.Void Verse.ThingFilter::SetAllow(Verse.ThingCategoryDef
categoryDef, System.Boolean allow,
System.Collections.Generic.IEnumerable`1<Verse.ThingDef> exceptedDefs,
System.Collections.Generic.IEnumerable`1<Verse.SpecialThingFilterDef>
exceptedFilters)
IL_0076: call static System.Boolean Verse.ModsConfig::get_BiotechActive()
IL_007B: brfalse => Label1
IL_0080: ldarg.0
IL_0081: ldsfld Verse.ThingDef RimWorld.ThingDefOf::Wastepack
IL_0086: ldc.i4.0
IL_0087: call System.Void Verse.ThingFilter::SetAllow(Verse.ThingDef
thingDef, System.Boolean allow)
IL_008C: Label0
IL_008C: Label1
IL_008C: ldarg.1
IL_008D: ldc.i4.1
IL_008E: bne.un => Label2
IL_0093: ldarg.0
IL_0094: ldsfld Verse.ThingCategoryDef RimWorld.ThingCategoryDefOf::Corpses
IL_0099: ldc.i4.1
IL_009A: ldnull
IL_009B: ldnull
IL_009C: call System.Void Verse.ThingFilter::SetAllow(Verse.ThingCategoryDef
categoryDef, System.Boolean allow,
System.Collections.Generic.IEnumerable`1<Verse.ThingDef> exceptedDefs,
System.Collections.Generic.IEnumerable`1<Verse.SpecialThingFilterDef>
exceptedFilters)
IL_00A1: ldarg.0
IL_00A2: ldsfld Verse.ThingCategoryDef RimWorld.ThingCategoryDefOf::Chunks
IL_00A7: ldc.i4.1
IL_00A8: ldnull
IL_00A9: ldnull
IL_00AA: call System.Void Verse.ThingFilter::SetAllow(Verse.ThingCategoryDef
categoryDef, System.Boolean allow,
System.Collections.Generic.IEnumerable`1<Verse.ThingDef> exceptedDefs,
System.Collections.Generic.IEnumerable`1<Verse.SpecialThingFilterDef>
exceptedFilters)
IL_00AF: call static System.Boolean Verse.ModsConfig::get_BiotechActive()
IL_00B4: brfalse => Label3
IL_00B9: ldarg.0
IL_00BA: ldsfld Verse.ThingDef RimWorld.ThingDefOf::Wastepack
IL_00BF: ldc.i4.1
IL_00C0: call System.Void Verse.ThingFilter::SetAllow(Verse.ThingDef
thingDef, System.Boolean allow)
IL_00C5: Label2
IL_00C5: Label3
IL_00C5: ldarg.0
IL_00C6: ldfld System.Action Verse.ThingFilter::settingsChangedCallback
IL_00CB: brfalse => Label4
IL_00D0: ldarg.0
IL_00D1: ldfld System.Action Verse.ThingFilter::settingsChangedCallback
IL_00D6: callvirt virtual System.Void System.Action::Invoke()
IL_00DB: Label4
IL_00DB: ldarg.0
IL_00DC: ldnull
IL_00DD: stfld Verse.TreeNode_ThingCategory
Verse.ThingFilter::displayRootCategoryInt
IL_00E2: // end original
IL_00E2: ldarg.0
IL_00E3: ldarg 1
IL_00E7: call static System.Void
SurvivalTools.Patch_ThingFilter_SetFromPreset::Postfix(Verse.ThingFilter
__instance, RimWorld.StorageSettingsPreset preset)
IL_00EC: ret
DONE

### Patch: static Verse.AI.Toil


Verse.AI.Toils_Haul::TakeToInventory(Verse.AI.TargetIndex ind,
System.Func`1<System.Int32> countGetter)
### Replacement: static Verse.AI.Toil
Verse.AI.Toils_Haul::Verse.AI.Toils_Haul.TakeToInventory_Patch1(Verse.AI.TargetInde
x ind, System.Func`1<System.Int32> countGetter)
IL_0000: Local var 0: System.Nullable`1<System.Int32>
IL_0000: Local var 1: Verse.AI.Toil
IL_0000: ldnull
IL_0001: stloc 1 (Verse.AI.Toil)
IL_0005: // start original
IL_0005: ldarg.0
IL_0006: ldloca.s 0 (System.Nullable`1[System.Int32])
IL_0008: initobj System.Nullable`1[System.Int32]
IL_000E: ldloc.0
IL_000F: ldarg.1
IL_0010: ldnull
IL_0011: call static Verse.AI.Toil
Verse.AI.Toils_Haul::TakeToInventory(Verse.AI.TargetIndex ind,
System.Nullable`1<System.Int32> count, System.Func`1<System.Int32> countGetter,
System.Func`2<Verse.Thing, System.Int32> countGetterPassingThing)
IL_0016: // end original
IL_0016: stloc 1 (Verse.AI.Toil)
IL_001A: ldloc 1 (Verse.AI.Toil)
IL_001E: ldarg 0
IL_0022: call static System.Void
SurvivalTools.Patch_Toils_Haul_TakeToInventory::Postfix(Verse.AI.Toil __result,
Verse.AI.TargetIndex ind)
IL_0027: ldloc 1 (Verse.AI.Toil)
IL_002B: ret
DONE

### Patch: virtual Verse.AI.Job RimWorld.WorkGiver_GrowerSow::JobOnCell(Verse.Pawn


pawn, Verse.IntVec3 c, System.Boolean forced)
### Replacement: static Verse.AI.Job
RimWorld.WorkGiver_GrowerSow::RimWorld.WorkGiver_GrowerSow.JobOnCell_Patch1(RimWorl
d.WorkGiver_GrowerSow this, Verse.Pawn pawn, Verse.IntVec3 c, System.Boolean
forced)
IL_0000: Local var 0: Verse.Map
IL_0000: Local var 1: System.Collections.Generic.List`1<Verse.Thing>
IL_0000: Local var 2: RimWorld.Zone_Growing
IL_0000: Local var 3: System.Boolean
IL_0000: Local var 4: RimWorld.Plant
IL_0000: Local var 5: Verse.Thing
IL_0000: Local var 6: System.Int32
IL_0000: Local var 7: Verse.Thing
IL_0000: Local var 8: Verse.Thing
IL_0000: Local var 9: RimWorld.Plant
IL_0000: Local var 10: RimWorld.IPlantToGrowSettable
IL_0000: Local var 11: RimWorld.Zone_Growing
IL_0000: Local var 12: RimWorld.Zone_Growing
IL_0000: Local var 13: System.Int32
IL_0000: Local var 14: Verse.Thing
IL_0000: Local var 15: Verse.AI.Job
IL_0000: ldnull
IL_0001: stloc 15 (Verse.AI.Job)
IL_0005: // start original
IL_0005: ldarg.1
IL_0006: callvirt virtual Verse.Map Verse.Thing::get_Map()
IL_000B: stloc.0
IL_000C: ldarg.2
IL_000D: ldarg.1
IL_000E: call static System.Boolean
RimWorld.ForbidUtility::IsForbidden(Verse.IntVec3 c, Verse.Pawn pawn)
IL_0013: brfalse => Label0
IL_0018: ldnull
IL_0019: br => Label56
IL_001E: Label0
IL_001E: ldarg.2
IL_001F: ldloc.0
IL_0020: ldc.i4.1
IL_0021: call static System.Boolean
RimWorld.PlantUtility::GrowthSeasonNow(Verse.IntVec3 c, Verse.Map map,
System.Boolean forSowing)
IL_0026: brtrue => Label1
IL_002B: ldnull
IL_002C: br => Label57
IL_0031: Label1
IL_0031: ldsfld Verse.ThingDef RimWorld.WorkGiver_Grower::wantedPlantDef
IL_0036: brtrue => Label2
IL_003B: ldarg.2
IL_003C: ldloc.0
IL_003D: call static Verse.ThingDef
RimWorld.WorkGiver_Grower::CalculateWantedPlantDef(Verse.IntVec3 c, Verse.Map map)
IL_0042: stsfld Verse.ThingDef RimWorld.WorkGiver_Grower::wantedPlantDef
IL_0047: ldsfld Verse.ThingDef RimWorld.WorkGiver_Grower::wantedPlantDef
IL_004C: brtrue => Label3
IL_0051: ldnull
IL_0052: br => Label58
IL_0057: Label2
IL_0057: Label3
IL_0057: ldarg.2
IL_0058: ldloc.0
IL_0059: call static System.Collections.Generic.List`1<Verse.Thing>
Verse.GridsUtility::GetThingList(Verse.IntVec3 c, Verse.Map map)
IL_005E: stloc.1
IL_005F: ldarg.2
IL_0060: ldloc.0
IL_0061: call static Verse.Zone Verse.GridsUtility::GetZone(Verse.IntVec3 c,
Verse.Map map)
IL_0066: isinst RimWorld.Zone_Growing
IL_006B: stloc.2
IL_006C: ldc.i4.0
IL_006D: stloc.3
IL_006E: ldc.i4.0
IL_006F: stloc.s 6 (System.Int32)
IL_0071: br => Label4
IL_0076: Label9
IL_0076: ldloc.1
IL_0077: ldloc.s 6 (System.Int32)
IL_0079: callvirt virtual Verse.Thing
System.Collections.Generic.List`1<Verse.Thing>::get_Item(System.Int32 index)
IL_007E: stloc.s 7 (Verse.Thing)
IL_0080: ldloc.s 7 (Verse.Thing)
IL_0082: ldfld Verse.ThingDef Verse.Thing::def
IL_0087: ldsfld Verse.ThingDef RimWorld.WorkGiver_Grower::wantedPlantDef
IL_008C: bne.un => Label5
IL_0091: ldnull
IL_0092: br => Label59
IL_0097: Label5
IL_0097: ldloc.s 7 (Verse.Thing)
IL_0099: isinst RimWorld.Blueprint
IL_009E: brtrue => Label6
IL_00A3: ldloc.s 7 (Verse.Thing)
IL_00A5: isinst RimWorld.Frame
IL_00AA: brfalse => Label7
IL_00AF: Label6
IL_00AF: ldloc.s 7 (Verse.Thing)
IL_00B1: callvirt virtual RimWorld.Faction Verse.Thing::get_Faction()
IL_00B6: ldarg.1
IL_00B7: callvirt virtual RimWorld.Faction Verse.Thing::get_Faction()
IL_00BC: bne.un => Label8
IL_00C1: ldc.i4.1
IL_00C2: stloc.3
IL_00C3: Label7
IL_00C3: Label8
IL_00C3: ldloc.s 6 (System.Int32)
IL_00C5: ldc.i4.1
IL_00C6: add
IL_00C7: stloc.s 6 (System.Int32)
IL_00C9: Label4
IL_00C9: ldloc.s 6 (System.Int32)
IL_00CB: ldloc.1
IL_00CC: callvirt virtual System.Int32
System.Collections.Generic.List`1<Verse.Thing>::get_Count()
IL_00D1: blt => Label9
IL_00D6: ldloc.3
IL_00D7: brfalse => Label10
IL_00DC: ldarg.2
IL_00DD: ldloc.0
IL_00DE: call static Verse.Building
Verse.GridsUtility::GetEdifice(Verse.IntVec3 c, Verse.Map map)
IL_00E3: stloc.s 8 (Verse.Thing)
IL_00E5: ldloc.s 8 (Verse.Thing)
IL_00E7: brfalse => Label11
IL_00EC: ldloc.s 8 (Verse.Thing)
IL_00EE: ldfld Verse.ThingDef Verse.Thing::def
IL_00F3: ldfld System.Single Verse.BuildableDef::fertility
IL_00F8: ldc.r4 0
IL_00FD: bge.un => Label12
IL_0102: Label11
IL_0102: ldnull
IL_0103: br => Label60
IL_0108: Label10
IL_0108: Label12
IL_0108: ldsfld Verse.ThingDef RimWorld.WorkGiver_Grower::wantedPlantDef
IL_010D: ldfld RimWorld.PlantProperties Verse.ThingDef::plant
IL_0112: ldfld System.Boolean RimWorld.PlantProperties::cavePlant
IL_0117: brfalse => Label13
IL_011C: ldarg.2
IL_011D: ldloc.0
IL_011E: call static System.Boolean Verse.GridsUtility::Roofed(Verse.IntVec3
c, Verse.Map map)
IL_0123: brtrue => Label14
IL_0128: ldsfld System.String
RimWorld.WorkGiver_GrowerSow::CantSowCavePlantBecauseUnroofedTrans
IL_012D: ldnull
IL_012E: call static System.Void Verse.AI.JobFailReason::Is(System.String
reason, System.String customJobString)
IL_0133: ldnull
IL_0134: br => Label61
IL_0139: Label14
IL_0139: ldloc.0
IL_013A: ldfld Verse.GlowGrid Verse.Map::glowGrid
IL_013F: ldarg.2
IL_0140: ldc.i4.1
IL_0141: callvirt System.Single Verse.GlowGrid::GameGlowAt(Verse.IntVec3 c,
System.Boolean ignoreCavePlants)
IL_0146: ldc.r4 0
IL_014B: ble.un => Label15
IL_0150: ldsfld System.String
RimWorld.WorkGiver_GrowerSow::CantSowCavePlantBecauseOfLightTrans
IL_0155: ldnull
IL_0156: call static System.Void Verse.AI.JobFailReason::Is(System.String
reason, System.String customJobString)
IL_015B: ldnull
IL_015C: br => Label62
IL_0161: Label13
IL_0161: Label15
IL_0161: ldsfld Verse.ThingDef RimWorld.WorkGiver_Grower::wantedPlantDef
IL_0166: ldfld RimWorld.PlantProperties Verse.ThingDef::plant
IL_016B: ldfld System.Boolean RimWorld.PlantProperties::interferesWithRoof
IL_0170: brfalse => Label16
IL_0175: ldarg.2
IL_0176: ldarg.1
IL_0177: callvirt virtual Verse.Map Verse.Thing::get_Map()
IL_017C: call static System.Boolean Verse.GridsUtility::Roofed(Verse.IntVec3
c, Verse.Map map)
IL_0181: brfalse => Label17
IL_0186: ldnull
IL_0187: br => Label63
IL_018C: Label16
IL_018C: Label17
IL_018C: ldarg.2
IL_018D: ldloc.0
IL_018E: call static RimWorld.Plant
Verse.GridsUtility::GetPlant(Verse.IntVec3 c, Verse.Map map)
IL_0193: stloc.s 4 (RimWorld.Plant)
IL_0195: ldloc.s 4 (RimWorld.Plant)
IL_0197: brfalse => Label18
IL_019C: ldloc.s 4 (RimWorld.Plant)
IL_019E: ldfld Verse.ThingDef Verse.Thing::def
IL_01A3: ldfld RimWorld.PlantProperties Verse.ThingDef::plant
IL_01A8: ldfld System.Boolean RimWorld.PlantProperties::blockAdjacentSow
IL_01AD: brfalse => Label19
IL_01B2: ldarg.1
IL_01B3: ldloc.s 4 (RimWorld.Plant)
IL_01B5: call static Verse.LocalTargetInfo
Verse.LocalTargetInfo::op_Implicit(Verse.Thing t)
IL_01BA: ldc.i4.1
IL_01BB: ldc.i4.m1
IL_01BC: ldnull
IL_01BD: ldarg.3
IL_01BE: call static System.Boolean
Verse.AI.ReservationUtility::CanReserve(Verse.Pawn p, Verse.LocalTargetInfo target,
System.Int32 maxPawns, System.Int32 stackCount, Verse.ReservationLayerDef layer,
System.Boolean ignoreOtherReservations)
IL_01C3: brfalse => Label20
IL_01C8: ldloc.s 4 (RimWorld.Plant)
IL_01CA: ldarg.1
IL_01CB: call static System.Boolean
RimWorld.ForbidUtility::IsForbidden(Verse.Thing t, Verse.Pawn pawn)
IL_01D0: brfalse => Label21
IL_01D5: Label20
IL_01D5: ldnull
IL_01D6: br => Label64
IL_01DB: Label21
IL_01DB: ldloc.2
IL_01DC: brfalse => Label22
IL_01E1: ldloc.2
IL_01E2: ldfld System.Boolean RimWorld.Zone_Growing::allowCut
IL_01E7: brtrue => Label23
IL_01EC: ldnull
IL_01ED: br => Label65
IL_01F2: Label22
IL_01F2: Label23
IL_01F2: ldloc.s 4 (RimWorld.Plant)
IL_01F4: ldarg.1
IL_01F5: call static System.Boolean
RimWorld.PlantUtility::PawnWillingToCutPlant_Job(Verse.Thing plant, Verse.Pawn
pawn)
IL_01FA: brtrue => Label24
IL_01FF: ldnull
IL_0200: br => Label66
IL_0205: Label24
IL_0205: ldsfld Verse.JobDef RimWorld.JobDefOf::CutPlant
IL_020A: ldloc.s 4 (RimWorld.Plant)
IL_020C: call static Verse.LocalTargetInfo
Verse.LocalTargetInfo::op_Implicit(Verse.Thing t)
IL_0211: call static Verse.AI.Job Verse.JobMaker::MakeJob(Verse.JobDef def,
Verse.LocalTargetInfo targetA)
IL_0216: br => Label67
IL_021B: Label18
IL_021B: Label19
IL_021B: ldsfld Verse.ThingDef RimWorld.WorkGiver_Grower::wantedPlantDef
IL_0220: ldarg.2
IL_0221: ldloc.0
IL_0222: call static Verse.Thing
RimWorld.PlantUtility::AdjacentSowBlocker(Verse.ThingDef plantDef, Verse.IntVec3 c,
Verse.Map map)
IL_0227: stloc.s 5 (Verse.Thing)
IL_0229: ldloc.s 5 (Verse.Thing)
IL_022B: brfalse => Label25
IL_0230: ldloc.s 5 (Verse.Thing)
IL_0232: isinst RimWorld.Plant
IL_0237: stloc.s 9 (RimWorld.Plant)
IL_0239: ldloc.s 9 (RimWorld.Plant)
IL_023B: brfalse => Label26
IL_0240: ldarg.1
IL_0241: ldloc.s 9 (RimWorld.Plant)
IL_0243: call static Verse.LocalTargetInfo
Verse.LocalTargetInfo::op_Implicit(Verse.Thing t)
IL_0248: ldc.i4.2
IL_0249: ldc.i4.3
IL_024A: ldc.i4.1
IL_024B: ldc.i4.m1
IL_024C: ldnull
IL_024D: ldarg.3
IL_024E: call static System.Boolean
Verse.AI.ReservationUtility::CanReserveAndReach(Verse.Pawn p, Verse.LocalTargetInfo
target, Verse.AI.PathEndMode peMode, Verse.Danger maxDanger, System.Int32 maxPawns,
System.Int32 stackCount, Verse.ReservationLayerDef layer, System.Boolean
ignoreOtherReservations)
IL_0253: brfalse => Label27
IL_0258: ldloc.s 9 (RimWorld.Plant)
IL_025A: ldarg.1
IL_025B: call static System.Boolean
RimWorld.ForbidUtility::IsForbidden(Verse.Thing t, Verse.Pawn pawn)
IL_0260: brtrue => Label28
IL_0265: ldloc.s 9 (RimWorld.Plant)
IL_0267: callvirt virtual Verse.IntVec3 Verse.Thing::get_Position()
IL_026C: ldloc.s 9 (RimWorld.Plant)
IL_026E: callvirt virtual Verse.Map Verse.Thing::get_Map()
IL_0273: call static RimWorld.IPlantToGrowSettable
Verse.GridsUtility::GetPlantToGrowSettable(Verse.IntVec3 c, Verse.Map map)
IL_0278: stloc.s 10 (RimWorld.IPlantToGrowSettable)
IL_027A: ldloc.s 10 (RimWorld.IPlantToGrowSettable)
IL_027C: brfalse => Label29
IL_0281: ldloc.s 10 (RimWorld.IPlantToGrowSettable)
IL_0283: callvirt abstract virtual Verse.ThingDef
RimWorld.IPlantToGrowSettable::GetPlantDefToGrow()
IL_0288: ldloc.s 9 (RimWorld.Plant)
IL_028A: ldfld Verse.ThingDef Verse.Thing::def
IL_028F: beq => Label30
IL_0294: Label29
IL_0294: ldarg.2
IL_0295: ldloc.0
IL_0296: call static Verse.Zone Verse.GridsUtility::GetZone(Verse.IntVec3 c,
Verse.Map map)
IL_029B: isinst RimWorld.Zone_Growing
IL_02A0: stloc.s 11 (RimWorld.Zone_Growing)
IL_02A2: ldloc.s 9 (RimWorld.Plant)
IL_02A4: callvirt virtual Verse.IntVec3 Verse.Thing::get_Position()
IL_02A9: ldloc.0
IL_02AA: call static Verse.Zone Verse.GridsUtility::GetZone(Verse.IntVec3 c,
Verse.Map map)
IL_02AF: isinst RimWorld.Zone_Growing
IL_02B4: stloc.s 12 (RimWorld.Zone_Growing)
IL_02B6: ldloc.s 11 (RimWorld.Zone_Growing)
IL_02B8: brfalse => Label31
IL_02BD: ldloc.s 11 (RimWorld.Zone_Growing)
IL_02BF: ldfld System.Boolean RimWorld.Zone_Growing::allowCut
IL_02C4: brfalse => Label32
IL_02C9: Label31
IL_02C9: ldloc.s 12 (RimWorld.Zone_Growing)
IL_02CB: brfalse => Label33
IL_02D0: ldloc.s 12 (RimWorld.Zone_Growing)
IL_02D2: ldfld System.Boolean RimWorld.Zone_Growing::allowCut
IL_02D7: brtrue => Label34
IL_02DC: Label32
IL_02DC: ldnull
IL_02DD: br => Label68
IL_02E2: Label33
IL_02E2: Label34
IL_02E2: ldloc.s 9 (RimWorld.Plant)
IL_02E4: call static System.Boolean
RimWorld.PlantUtility::TreeMarkedForExtraction(Verse.Thing plant)
IL_02E9: brfalse => Label35
IL_02EE: ldnull
IL_02EF: br => Label69
IL_02F4: Label35
IL_02F4: ldloc.s 9 (RimWorld.Plant)
IL_02F6: ldarg.1
IL_02F7: call static System.Boolean
RimWorld.PlantUtility::PawnWillingToCutPlant_Job(Verse.Thing plant, Verse.Pawn
pawn)
IL_02FC: brtrue => Label36
IL_0301: ldnull
IL_0302: br => Label70
IL_0307: Label36
IL_0307: ldsfld Verse.JobDef RimWorld.JobDefOf::CutPlant
IL_030C: ldloc.s 9 (RimWorld.Plant)
IL_030E: call static Verse.LocalTargetInfo
Verse.LocalTargetInfo::op_Implicit(Verse.Thing t)
IL_0313: call static Verse.AI.Job Verse.JobMaker::MakeJob(Verse.JobDef def,
Verse.LocalTargetInfo targetA)
IL_0318: br => Label71
IL_031D: Label26
IL_031D: Label27
IL_031D: Label28
IL_031D: Label30
IL_031D: ldnull
IL_031E: br => Label72
IL_0323: Label25
IL_0323: ldsfld Verse.ThingDef RimWorld.WorkGiver_Grower::wantedPlantDef
IL_0328: ldfld RimWorld.PlantProperties Verse.ThingDef::plant
IL_032D: ldfld System.Int32 RimWorld.PlantProperties::sowMinSkill
IL_0332: ldc.i4.0
IL_0333: ble => Label37
IL_0338: ldarg.1
IL_0339: ldfld RimWorld.Pawn_SkillTracker Verse.Pawn::skills
IL_033E: brfalse => Label38
IL_0343: ldarg.1
IL_0344: ldfld RimWorld.Pawn_SkillTracker Verse.Pawn::skills
IL_0349: ldsfld RimWorld.SkillDef RimWorld.SkillDefOf::Plants
IL_034E: callvirt RimWorld.SkillRecord
RimWorld.Pawn_SkillTracker::GetSkill(RimWorld.SkillDef skillDef)
IL_0353: callvirt System.Int32 RimWorld.SkillRecord::get_Level()
IL_0358: ldsfld Verse.ThingDef RimWorld.WorkGiver_Grower::wantedPlantDef
IL_035D: ldfld RimWorld.PlantProperties Verse.ThingDef::plant
IL_0362: ldfld System.Int32 RimWorld.PlantProperties::sowMinSkill
IL_0367: blt => Label39
IL_036C: Label38
IL_036C: ldarg.1
IL_036D: callvirt System.Boolean Verse.Pawn::get_IsColonyMech()
IL_0372: brfalse => Label40
IL_0377: ldarg.1
IL_0378: callvirt Verse.RaceProperties Verse.Pawn::get_RaceProps()
IL_037D: ldfld System.Int32 Verse.RaceProperties::mechFixedSkillLevel
IL_0382: ldsfld Verse.ThingDef RimWorld.WorkGiver_Grower::wantedPlantDef
IL_0387: ldfld RimWorld.PlantProperties Verse.ThingDef::plant
IL_038C: ldfld System.Int32 RimWorld.PlantProperties::sowMinSkill
IL_0391: bge => Label41
IL_0396: Label39
IL_0396: ldstr "UnderAllowedSkill"
IL_039B: ldsfld Verse.ThingDef RimWorld.WorkGiver_Grower::wantedPlantDef
IL_03A0: ldfld RimWorld.PlantProperties Verse.ThingDef::plant
IL_03A5: ldfld System.Int32 RimWorld.PlantProperties::sowMinSkill
IL_03AA: call static Verse.NamedArgument
Verse.NamedArgument::op_Implicit(System.Int32 value)
IL_03AF: call static Verse.TaggedString
Verse.TranslatorFormattedStringExtensions::Translate(System.String key,
Verse.NamedArgument arg1)
IL_03B4: call static System.String
Verse.TaggedString::op_Implicit(Verse.TaggedString taggedString)
IL_03B9: ldarg.0
IL_03BA: ldfld RimWorld.WorkGiverDef RimWorld.WorkGiver::def
IL_03BF: ldfld System.String Verse.Def::label
IL_03C4: call static System.Void Verse.AI.JobFailReason::Is(System.String
reason, System.String customJobString)
IL_03C9: ldnull
IL_03CA: br => Label73
IL_03CF: Label37
IL_03CF: Label40
IL_03CF: Label41
IL_03CF: ldc.i4.0
IL_03D0: stloc.s 13 (System.Int32)
IL_03D2: br => Label42
IL_03D7: Label52
IL_03D7: ldloc.1
IL_03D8: ldloc.s 13 (System.Int32)
IL_03DA: callvirt virtual Verse.Thing
System.Collections.Generic.List`1<Verse.Thing>::get_Item(System.Int32 index)
IL_03DF: stloc.s 14 (Verse.Thing)
IL_03E1: ldloc.s 14 (Verse.Thing)
IL_03E3: ldfld Verse.ThingDef Verse.Thing::def
IL_03E8: ldc.i4.0
IL_03E9: callvirt System.Boolean Verse.ThingDef::BlocksPlanting(System.Boolean
canWipePlants)
IL_03EE: brfalse => Label43
IL_03F3: ldarg.1
IL_03F4: ldloc.s 14 (Verse.Thing)
IL_03F6: call static Verse.LocalTargetInfo
Verse.LocalTargetInfo::op_Implicit(Verse.Thing t)
IL_03FB: ldc.i4.1
IL_03FC: ldc.i4.m1
IL_03FD: ldnull
IL_03FE: ldarg.3
IL_03FF: call static System.Boolean
Verse.AI.ReservationUtility::CanReserve(Verse.Pawn p, Verse.LocalTargetInfo target,
System.Int32 maxPawns, System.Int32 stackCount, Verse.ReservationLayerDef layer,
System.Boolean ignoreOtherReservations)
IL_0404: brtrue => Label44
IL_0409: ldnull
IL_040A: br => Label74
IL_040F: Label44
IL_040F: ldloc.s 14 (Verse.Thing)
IL_0411: ldfld Verse.ThingDef Verse.Thing::def
IL_0416: ldfld Verse.ThingCategory Verse.ThingDef::category
IL_041B: ldc.i4.4
IL_041C: bne.un => Label45
IL_0421: ldloc.s 14 (Verse.Thing)
IL_0423: ldarg.1
IL_0424: call static System.Boolean
RimWorld.ForbidUtility::IsForbidden(Verse.Thing t, Verse.Pawn pawn)
IL_0429: brtrue => Label46
IL_042E: ldloc.2
IL_042F: brfalse => Label47
IL_0434: ldloc.2
IL_0435: ldfld System.Boolean RimWorld.Zone_Growing::allowCut
IL_043A: brtrue => Label48
IL_043F: ldnull
IL_0440: br => Label75
IL_0445: Label47
IL_0445: Label48
IL_0445: ldloc.s 14 (Verse.Thing)
IL_0447: ldarg.1
IL_0448: call static System.Boolean
RimWorld.PlantUtility::PawnWillingToCutPlant_Job(Verse.Thing plant, Verse.Pawn
pawn)
IL_044D: brtrue => Label49
IL_0452: ldnull
IL_0453: br => Label76
IL_0458: Label49
IL_0458: ldloc.s 14 (Verse.Thing)
IL_045A: call static System.Boolean
RimWorld.PlantUtility::TreeMarkedForExtraction(Verse.Thing plant)
IL_045F: brfalse => Label50
IL_0464: ldnull
IL_0465: br => Label77
IL_046A: Label50
IL_046A: ldsfld Verse.JobDef RimWorld.JobDefOf::CutPlant
IL_046F: ldloc.s 14 (Verse.Thing)
IL_0471: call static Verse.LocalTargetInfo
Verse.LocalTargetInfo::op_Implicit(Verse.Thing t)
IL_0476: call static Verse.AI.Job Verse.JobMaker::MakeJob(Verse.JobDef def,
Verse.LocalTargetInfo targetA)
IL_047B: br => Label78
IL_0480: Label46
IL_0480: ldnull
IL_0481: br => Label79
IL_0486: Label45
IL_0486: ldloc.s 14 (Verse.Thing)
IL_0488: ldfld Verse.ThingDef Verse.Thing::def
IL_048D: callvirt System.Boolean Verse.ThingDef::get_EverHaulable()
IL_0492: brfalse => Label51
IL_0497: ldarg.1
IL_0498: ldloc.s 14 (Verse.Thing)
IL_049A: call static Verse.AI.Job
Verse.AI.HaulAIUtility::HaulAsideJobFor(Verse.Pawn p, Verse.Thing t)
IL_049F: br => Label80
IL_04A4: Label51
IL_04A4: ldnull
IL_04A5: br => Label81
IL_04AA: Label43
IL_04AA: ldloc.s 13 (System.Int32)
IL_04AC: ldc.i4.1
IL_04AD: add
IL_04AE: stloc.s 13 (System.Int32)
IL_04B0: Label42
IL_04B0: ldloc.s 13 (System.Int32)
IL_04B2: ldloc.1
IL_04B3: callvirt virtual System.Int32
System.Collections.Generic.List`1<Verse.Thing>::get_Count()
IL_04B8: blt => Label52
IL_04BD: ldsfld Verse.ThingDef RimWorld.WorkGiver_Grower::wantedPlantDef
IL_04C2: ldarg.2
IL_04C3: ldloc.0
IL_04C4: ldc.i4.0
IL_04C5: call static System.Boolean
RimWorld.PlantUtility::CanNowPlantAt(Verse.ThingDef plantDef, Verse.IntVec3 c,
Verse.Map map, System.Boolean canWipePlantsExceptTree)
IL_04CA: brfalse => Label53
IL_04CF: ldarg.2
IL_04D0: ldloc.0
IL_04D1: ldc.i4.1
IL_04D2: call static System.Boolean
RimWorld.PlantUtility::GrowthSeasonNow(Verse.IntVec3 c, Verse.Map map,
System.Boolean forSowing)
IL_04D7: brfalse => Label54
IL_04DC: ldarg.1
IL_04DD: ldarg.2
IL_04DE: call static Verse.LocalTargetInfo
Verse.LocalTargetInfo::op_Implicit(Verse.IntVec3 c)
IL_04E3: ldc.i4.1
IL_04E4: ldc.i4.m1
IL_04E5: ldnull
IL_04E6: ldarg.3
IL_04E7: call static System.Boolean
Verse.AI.ReservationUtility::CanReserve(Verse.Pawn p, Verse.LocalTargetInfo target,
System.Int32 maxPawns, System.Int32 stackCount, Verse.ReservationLayerDef layer,
System.Boolean ignoreOtherReservations)
IL_04EC: brtrue => Label55
IL_04F1: Label53
IL_04F1: Label54
IL_04F1: ldnull
IL_04F2: br => Label82
IL_04F7: Label55
IL_04F7: ldsfld Verse.JobDef RimWorld.JobDefOf::Sow
IL_04FC: ldarg.2
IL_04FD: call static Verse.LocalTargetInfo
Verse.LocalTargetInfo::op_Implicit(Verse.IntVec3 c)
IL_0502: call static Verse.AI.Job Verse.JobMaker::MakeJob(Verse.JobDef def,
Verse.LocalTargetInfo targetA)
IL_0507: dup
IL_0508: ldsfld Verse.ThingDef RimWorld.WorkGiver_Grower::wantedPlantDef
IL_050D: stfld Verse.ThingDef Verse.AI.Job::plantDefToSow
IL_0512: // end original
IL_0512: Label56
IL_0512: Label57
IL_0512: Label58
IL_0512: Label59
IL_0512: Label60
IL_0512: Label61
IL_0512: Label62
IL_0512: Label63
IL_0512: Label64
IL_0512: Label65
IL_0512: Label66
IL_0512: Label67
IL_0512: Label68
IL_0512: Label69
IL_0512: Label70
IL_0512: Label71
IL_0512: Label72
IL_0512: Label73
IL_0512: Label74
IL_0512: Label75
IL_0512: Label76
IL_0512: Label77
IL_0512: Label78
IL_0512: Label79
IL_0512: Label80
IL_0512: Label81
IL_0512: Label82
IL_0512: stloc 15 (Verse.AI.Job)
IL_0516: ldloca 15 (Verse.AI.Job)
IL_051A: ldarg 1
IL_051E: call static System.Void
SurvivalTools.Patch_WorkGiver_GrowerSow_JobOnCell::Postfix(Verse.AI.Job& __result,
Verse.Pawn pawn)
IL_0523: ldloc 15 (Verse.AI.Job)
IL_0527: ret
DONE

### Patch: Verse.PawnCapacityDef


RimWorld.WorkGiver::MissingRequiredCapacity(Verse.Pawn pawn)
### Replacement: static Verse.PawnCapacityDef
RimWorld.WorkGiver::RimWorld.WorkGiver.MissingRequiredCapacity_Patch1(RimWorld.Work
Giver this, Verse.Pawn pawn)
IL_0000: Local var 0: System.Int32
IL_0000: Local var 1: Verse.PawnCapacityDef
IL_0000: ldnull
IL_0001: stloc 1 (Verse.PawnCapacityDef)
IL_0005: // start original
IL_0005: ldc.i4.0
IL_0006: stloc.0
IL_0007: br => Label0
IL_000C: Label2
IL_000C: ldarg.1
IL_000D: ldfld Verse.Pawn_HealthTracker Verse.Pawn::health
IL_0012: ldfld Verse.PawnCapacitiesHandler
Verse.Pawn_HealthTracker::capacities
IL_0017: ldarg.0
IL_0018: ldfld RimWorld.WorkGiverDef RimWorld.WorkGiver::def
IL_001D: ldfld System.Collections.Generic.List`1<Verse.PawnCapacityDef>
RimWorld.WorkGiverDef::requiredCapacities
IL_0022: ldloc.0
IL_0023: callvirt virtual Verse.PawnCapacityDef
System.Collections.Generic.List`1<Verse.PawnCapacityDef>::get_Item(System.Int32
index)
IL_0028: callvirt System.Boolean
Verse.PawnCapacitiesHandler::CapableOf(Verse.PawnCapacityDef capacity)
IL_002D: brtrue => Label1
IL_0032: ldarg.0
IL_0033: ldfld RimWorld.WorkGiverDef RimWorld.WorkGiver::def
IL_0038: ldfld System.Collections.Generic.List`1<Verse.PawnCapacityDef>
RimWorld.WorkGiverDef::requiredCapacities
IL_003D: ldloc.0
IL_003E: callvirt virtual Verse.PawnCapacityDef
System.Collections.Generic.List`1<Verse.PawnCapacityDef>::get_Item(System.Int32
index)
IL_0043: br => Label3
IL_0048: Label1
IL_0048: ldloc.0
IL_0049: ldc.i4.1
IL_004A: add
IL_004B: stloc.0
IL_004C: Label0
IL_004C: ldloc.0
IL_004D: ldarg.0
IL_004E: ldfld RimWorld.WorkGiverDef RimWorld.WorkGiver::def
IL_0053: ldfld System.Collections.Generic.List`1<Verse.PawnCapacityDef>
RimWorld.WorkGiverDef::requiredCapacities
IL_0058: callvirt virtual System.Int32
System.Collections.Generic.List`1<Verse.PawnCapacityDef>::get_Count()
IL_005D: blt => Label2
IL_0062: ldnull
IL_0063: // end original
IL_0063: Label3
IL_0063: stloc 1 (Verse.PawnCapacityDef)
IL_0067: ldarg.0
IL_0068: ldloca 1 (Verse.PawnCapacityDef)
IL_006C: ldarg 1
IL_0070: call static System.Void
SurvivalTools.Patch_WorkGiver_MissingRequiredCapacity::Postfix(RimWorld.WorkGiver
__instance, Verse.PawnCapacityDef& __result, Verse.Pawn pawn)
IL_0075: ldloc 1 (Verse.PawnCapacityDef)
IL_0079: ret
DONE

### Patch: virtual Verse.AI.Job RimWorld.WorkGiver_PlantsCut::JobOnThing(Verse.Pawn


pawn, Verse.Thing t, System.Boolean forced)
### Replacement: static Verse.AI.Job
RimWorld.WorkGiver_PlantsCut::RimWorld.WorkGiver_PlantsCut.JobOnThing_Patch1(RimWor
ld.WorkGiver_PlantsCut this, Verse.Pawn pawn, Verse.Thing t, System.Boolean forced)
IL_0000: Local var 0:
System.Collections.Generic.List`1/Enumerator<Verse.Designation>
IL_0000: Local var 1: Verse.Designation
IL_0000: Local var 2: Verse.AI.Job
IL_0000: Local var 3: Verse.AI.Job
IL_0000: ldnull
IL_0001: stloc 3 (Verse.AI.Job)
IL_0005: // start original
IL_0005: ldarg.2
IL_0006: ldfld Verse.ThingDef Verse.Thing::def
IL_000B: ldfld Verse.ThingCategory Verse.ThingDef::category
IL_0010: ldc.i4.4
IL_0011: beq => Label0
IL_0016: ldnull
IL_0017: br => Label14
IL_001C: Label0
IL_001C: ldarg.1
IL_001D: ldarg.2
IL_001E: call static Verse.LocalTargetInfo
Verse.LocalTargetInfo::op_Implicit(Verse.Thing t)
IL_0023: ldc.i4.1
IL_0024: ldc.i4.m1
IL_0025: ldnull
IL_0026: ldarg.3
IL_0027: call static System.Boolean
Verse.AI.ReservationUtility::CanReserve(Verse.Pawn p, Verse.LocalTargetInfo target,
System.Int32 maxPawns, System.Int32 stackCount, Verse.ReservationLayerDef layer,
System.Boolean ignoreOtherReservations)
IL_002C: brtrue => Label1
IL_0031: ldnull
IL_0032: br => Label15
IL_0037: Label1
IL_0037: ldarg.2
IL_0038: ldarg.1
IL_0039: call static System.Boolean
RimWorld.ForbidUtility::IsForbidden(Verse.Thing t, Verse.Pawn pawn)
IL_003E: brfalse => Label2
IL_0043: ldnull
IL_0044: br => Label16
IL_0049: Label2
IL_0049: ldarg.2
IL_004A: call static System.Boolean
RimWorld.FireUtility::IsBurning(Verse.Thing t)
IL_004F: brfalse => Label3
IL_0054: ldnull
IL_0055: br => Label17
IL_005A: Label3
IL_005A: ldarg.2
IL_005B: ldarg.1
IL_005C: call static System.Boolean
RimWorld.PlantUtility::PawnWillingToCutPlant_Job(Verse.Thing plant, Verse.Pawn
pawn)
IL_0061: brtrue => Label4
IL_0066: ldnull
IL_0067: br => Label18
IL_006C: Label4
IL_006C: ldarg.1
IL_006D: callvirt virtual Verse.Map Verse.Thing::get_Map()
IL_0072: ldfld Verse.DesignationManager Verse.Map::designationManager
IL_0077: ldarg.2
IL_0078: callvirt System.Collections.Generic.List`1<Verse.Designation>
Verse.DesignationManager::AllDesignationsOn(Verse.Thing t)
IL_007D: callvirt System.Collections.Generic.Enumerator<Verse.Designation>
System.Collections.Generic.List`1<Verse.Designation>::GetEnumerator()
IL_0082: stloc.0
.try
{
IL_0083: br => Label5
IL_0088: Label12
IL_0088: ldloca.s 0
(System.Collections.Generic.List`1+Enumerator[Verse.Designation])
IL_008A: call virtual Verse.Designation
System.Collections.Generic.Enumerator<Verse.Designation>::get_Current()
IL_008F: stloc.1
IL_0090: ldloc.1
IL_0091: ldfld Verse.DesignationDef Verse.Designation::def
IL_0096: ldsfld Verse.DesignationDef
RimWorld.DesignationDefOf::HarvestPlant
IL_009B: bne.un => Label6
IL_00A0: ldarg.2
IL_00A1: castclass RimWorld.Plant
IL_00A6: callvirt virtual System.Boolean
RimWorld.Plant::get_HarvestableNow()
IL_00AB: brtrue => Label7
IL_00B0: ldnull
IL_00B1: stloc.2
IL_00B2: leave => Label8
IL_00B7: Label7
IL_00B7: ldsfld Verse.JobDef RimWorld.JobDefOf::HarvestDesignated
IL_00BC: ldarg.2
IL_00BD: call static Verse.LocalTargetInfo
Verse.LocalTargetInfo::op_Implicit(Verse.Thing t)
IL_00C2: call static Verse.AI.Job Verse.JobMaker::MakeJob(Verse.JobDef
def, Verse.LocalTargetInfo targetA)
IL_00C7: stloc.2
IL_00C8: leave => Label9
IL_00CD: Label6
IL_00CD: ldloc.1
IL_00CE: ldfld Verse.DesignationDef Verse.Designation::def
IL_00D3: ldsfld Verse.DesignationDef RimWorld.DesignationDefOf::CutPlant
IL_00D8: bne.un => Label10
IL_00DD: ldsfld Verse.JobDef RimWorld.JobDefOf::CutPlantDesignated
IL_00E2: ldarg.2
IL_00E3: call static Verse.LocalTargetInfo
Verse.LocalTargetInfo::op_Implicit(Verse.Thing t)
IL_00E8: call static Verse.AI.Job Verse.JobMaker::MakeJob(Verse.JobDef
def, Verse.LocalTargetInfo targetA)
IL_00ED: stloc.2
IL_00EE: leave => Label11
IL_00F3: Label5
IL_00F3: Label10
IL_00F3: ldloca.s 0
(System.Collections.Generic.List`1+Enumerator[Verse.Designation])
IL_00F5: call virtual System.Boolean
System.Collections.Generic.Enumerator<Verse.Designation>::MoveNext()
IL_00FA: brtrue => Label12
IL_00FF: leave => Label13
IL_0104: leave => (autogenerated)
} // end try
.finally
{
IL_0109: ldloca.s 0
(System.Collections.Generic.List`1+Enumerator[Verse.Designation])
IL_010B: constrained.
System.Collections.Generic.List`1+Enumerator[Verse.Designation]
IL_0111: callvirt abstract virtual System.Void
System.IDisposable::Dispose()
IL_0116: endfinally
IL_0117: leave => (autogenerated)
} // end handler
IL_0118: Label13
IL_0118: ldarg.2
IL_0119: call static Verse.AI.Job
Share_The_Load.MakeWay_Plant_Job::NewCutPlantJob(Verse.Thing thing)
IL_011E: br => Label23
IL_0123: Label8
IL_0123: Label9
IL_0123: Label11
IL_0123: ldloc.2
IL_0124: // end original
IL_0124: Label14
IL_0124: Label15
IL_0124: Label16
IL_0124: Label17
IL_0124: Label18
IL_0124: Label23
IL_0124: stloc 3 (Verse.AI.Job)
IL_0128: ldloca 3 (Verse.AI.Job)
IL_012C: ldarg 2
IL_0130: ldarg 1
IL_0134: call static System.Void
SurvivalTools.Patch_WorkGiver_PlantsCut_JobOnThing::Postfix(Verse.AI.Job& __result,
Verse.Thing t, Verse.Pawn pawn)
IL_0139: ldloc 3 (Verse.AI.Job)
IL_013D: ret
DONE

### Patch: static System.Int32


RimWorld.MassUtility::CountToPickUpUntilOverEncumbered(Verse.Pawn pawn, Verse.Thing
thing)
### Replacement: static System.Int32
RimWorld.MassUtility::RimWorld.MassUtility.CountToPickUpUntilOverEncumbered_Patch1(
Verse.Pawn pawn, Verse.Thing thing)
IL_0000: Local var 0: System.Int32
IL_0000: ldc.i4 0
IL_0005: stloc 0 (System.Int32)
IL_0009: // start original
IL_0009: ldarg.0
IL_000A: call static System.Single RimWorld.MassUtility::FreeSpace(Verse.Pawn
pawn)
IL_000F: ldarg.1
IL_0010: ldsfld RimWorld.StatDef RimWorld.StatDefOf::Mass
IL_0015: ldc.i4.1
IL_0016: ldc.i4.m1
IL_0017: call static System.Single
RimWorld.StatExtension::GetStatValue(Verse.Thing thing, RimWorld.StatDef stat,
System.Boolean applyPostProcess, System.Int32 cacheStaleAfterTicks)
IL_001C: div
IL_001D: call static System.Int32 UnityEngine.Mathf::FloorToInt(System.Single
f)
IL_0022: // end original
IL_0022: stloc 0 (System.Int32)
IL_0026: ldloca 0 (System.Int32)
IL_002A: ldarg 0
IL_002E: ldarg 1
IL_0032: call static System.Void
SurvivalTools.CountToPickUpUntilOverEncumbered::Postfix(System.Int32& __result,
Verse.Pawn pawn, Verse.Thing thing)
IL_0037: ldloc 0 (System.Int32)
IL_003B: ret
DONE

### Patch: static System.Boolean


RimWorld.MassUtility::WillBeOverEncumberedAfterPickingUp(Verse.Pawn pawn,
Verse.Thing thing, System.Int32 count)
### Replacement: static System.Boolean
RimWorld.MassUtility::RimWorld.MassUtility.WillBeOverEncumberedAfterPickingUp_Patch
1(Verse.Pawn pawn, Verse.Thing thing, System.Int32 count)
IL_0000: Local var 0: System.Boolean
IL_0000: ldc.i4 0
IL_0005: stloc 0 (System.Boolean)
IL_0009: // start original
IL_0009: ldarg.0
IL_000A: call static System.Single RimWorld.MassUtility::FreeSpace(Verse.Pawn
pawn)
IL_000F: ldarg.2
IL_0010: conv.r4
IL_0011: ldarg.1
IL_0012: ldsfld RimWorld.StatDef RimWorld.StatDefOf::Mass
IL_0017: ldc.i4.1
IL_0018: ldc.i4.m1
IL_0019: call static System.Single
RimWorld.StatExtension::GetStatValue(Verse.Thing thing, RimWorld.StatDef stat,
System.Boolean applyPostProcess, System.Int32 cacheStaleAfterTicks)
IL_001E: mul
IL_001F: clt
IL_0021: // end original
IL_0021: stloc 0 (System.Boolean)
IL_0025: ldloca 0 (System.Boolean)
IL_0029: ldarg 0
IL_002D: ldarg 1
IL_0031: call static System.Void
SurvivalTools.WillBeOverEncumberedAfterPickingUp::Postfix(System.Boolean& __result,
Verse.Pawn pawn, Verse.Thing thing)
IL_0036: ldloc 0 (System.Boolean)
IL_003A: ret
DONE

### Patch: Verse.ThingCount Verse.Pawn_InventoryTracker::get_FirstUnloadableThing()


### Replacement: static Verse.ThingCount
Verse.Pawn_InventoryTracker::Verse.Pawn_InventoryTracker.get_FirstUnloadableThing_P
atch2(Verse.Pawn_InventoryTracker this)
IL_0000: Local var 0: Verse.ThingCount
IL_0000: Local var 1: RimWorld.DrugPolicy
IL_0000: Local var 2: System.Int32
IL_0000: Local var 3: System.Int32
IL_0000: Local var 4: System.Int32
IL_0000: Local var 5: System.Int32
IL_0000: Local var 6: Verse.ThingDefCount
IL_0000: Local var 7: Verse.ThingCount
IL_0000: ldloca 7 (Verse.ThingCount)
IL_0004: initobj Verse.ThingCount
IL_000A: // start original
IL_000A: ldarg.0
IL_000B: ldfld Verse.ThingOwner`1<Verse.Thing>
Verse.Pawn_InventoryTracker::innerContainer
IL_0010: callvirt abstract virtual System.Int32 Verse.ThingOwner::get_Count()
IL_0015: brtrue => Label0
IL_001A: ldloca.s 0 (Verse.ThingCount)
IL_001C: initobj Verse.ThingCount
IL_0022: ldloc.0
IL_0023: br => Label15
IL_0028: Label0
IL_0028: ldarg.0
IL_0029: ldfld Verse.Pawn Verse.Pawn_InventoryTracker::pawn
IL_002E: ldfld RimWorld.Pawn_DrugPolicyTracker Verse.Pawn::drugs
IL_0033: brfalse => Label1
IL_0038: ldarg.0
IL_0039: ldfld Verse.Pawn Verse.Pawn_InventoryTracker::pawn
IL_003E: ldfld RimWorld.Pawn_DrugPolicyTracker Verse.Pawn::drugs
IL_0043: callvirt RimWorld.DrugPolicy
RimWorld.Pawn_DrugPolicyTracker::get_CurrentPolicy()
IL_0048: brfalse => Label2
IL_004D: ldarg.0
IL_004E: ldfld Verse.Pawn Verse.Pawn_InventoryTracker::pawn
IL_0053: ldfld RimWorld.Pawn_DrugPolicyTracker Verse.Pawn::drugs
IL_0058: callvirt RimWorld.DrugPolicy
RimWorld.Pawn_DrugPolicyTracker::get_CurrentPolicy()
IL_005D: stloc.1
IL_005E: ldsfld System.Collections.Generic.List`1<Verse.ThingDefCount>
Verse.Pawn_InventoryTracker::tmpDrugsToKeep
IL_0063: callvirt virtual System.Void
System.Collections.Generic.List`1<Verse.ThingDefCount>::Clear()
IL_0068: ldc.i4.0
IL_0069: stloc.2
IL_006A: br => Label3
IL_006F: Label5
IL_006F: ldloc.1
IL_0070: ldloc.2
IL_0071: callvirt RimWorld.DrugPolicyEntry
RimWorld.DrugPolicy::get_Item(System.Int32 index)
IL_0076: ldfld System.Int32 RimWorld.DrugPolicyEntry::takeToInventory
IL_007B: ldc.i4.0
IL_007C: ble => Label4
IL_0081: ldsfld System.Collections.Generic.List`1<Verse.ThingDefCount>
Verse.Pawn_InventoryTracker::tmpDrugsToKeep
IL_0086: ldloc.1
IL_0087: ldloc.2
IL_0088: callvirt RimWorld.DrugPolicyEntry
RimWorld.DrugPolicy::get_Item(System.Int32 index)
IL_008D: ldfld Verse.ThingDef RimWorld.DrugPolicyEntry::drug
IL_0092: ldloc.1
IL_0093: ldloc.2
IL_0094: callvirt RimWorld.DrugPolicyEntry
RimWorld.DrugPolicy::get_Item(System.Int32 index)
IL_0099: ldfld System.Int32 RimWorld.DrugPolicyEntry::takeToInventory
IL_009E: newobj System.Void Verse.ThingDefCount::.ctor(Verse.ThingDef thingDef,
System.Int32 count)
IL_00A3: callvirt virtual System.Void
System.Collections.Generic.List`1<Verse.ThingDefCount>::Add(Verse.ThingDefCount
item)
IL_00A8: Label4
IL_00A8: ldloc.2
IL_00A9: ldc.i4.1
IL_00AA: add
IL_00AB: stloc.2
IL_00AC: Label3
IL_00AC: ldloc.2
IL_00AD: ldloc.1
IL_00AE: callvirt System.Int32 RimWorld.DrugPolicy::get_Count()
IL_00B3: blt => Label5
IL_00B8: ldc.i4.0
IL_00B9: stloc.3
IL_00BA: br => Label6
IL_00BF: Label14
IL_00BF: ldarg.0
IL_00C0: ldfld Verse.ThingOwner`1<Verse.Thing>
Verse.Pawn_InventoryTracker::innerContainer
IL_00C5: ldloc.3
IL_00C6: callvirt Verse.Thing
Verse.ThingOwner`1<Verse.Thing>::get_Item(System.Int32 index)
IL_00CB: ldfld Verse.ThingDef Verse.Thing::def
IL_00D0: callvirt System.Boolean Verse.ThingDef::get_IsDrug()
IL_00D5: brtrue => Label7
IL_00DA: ldarg.0
IL_00DB: ldfld Verse.ThingOwner`1<Verse.Thing>
Verse.Pawn_InventoryTracker::innerContainer
IL_00E0: ldloc.3
IL_00E1: callvirt Verse.Thing
Verse.ThingOwner`1<Verse.Thing>::get_Item(System.Int32 index)
IL_00E6: ldarg.0
IL_00E7: ldfld Verse.ThingOwner`1<Verse.Thing>
Verse.Pawn_InventoryTracker::innerContainer
IL_00EC: ldloc.3
IL_00ED: callvirt Verse.Thing
Verse.ThingOwner`1<Verse.Thing>::get_Item(System.Int32 index)
IL_00F2: ldfld System.Int32 Verse.Thing::stackCount
IL_00F7: newobj System.Void Verse.ThingCount::.ctor(Verse.Thing thing,
System.Int32 count)
IL_00FC: br => Label16
IL_0101: Label7
IL_0101: ldc.i4.m1
IL_0102: stloc.s 4 (System.Int32)
IL_0104: ldc.i4.0
IL_0105: stloc.s 5 (System.Int32)
IL_0107: br => Label8
IL_010C: Label11
IL_010C: ldarg.0
IL_010D: ldfld Verse.ThingOwner`1<Verse.Thing>
Verse.Pawn_InventoryTracker::innerContainer
IL_0112: ldloc.3
IL_0113: callvirt Verse.Thing
Verse.ThingOwner`1<Verse.Thing>::get_Item(System.Int32 index)
IL_0118: ldfld Verse.ThingDef Verse.Thing::def
IL_011D: ldsfld System.Collections.Generic.List`1<Verse.ThingDefCount>
Verse.Pawn_InventoryTracker::tmpDrugsToKeep
IL_0122: ldloc.s 5 (System.Int32)
IL_0124: callvirt virtual Verse.ThingDefCount
System.Collections.Generic.List`1<Verse.ThingDefCount>::get_Item(System.Int32
index)
IL_0129: stloc.s 6 (Verse.ThingDefCount)
IL_012B: ldloca.s 6 (Verse.ThingDefCount)
IL_012D: call Verse.ThingDef Verse.ThingDefCount::get_ThingDef()
IL_0132: bne.un => Label9
IL_0137: ldloc.s 5 (System.Int32)
IL_0139: stloc.s 4 (System.Int32)
IL_013B: br => Label10
IL_0140: Label9
IL_0140: ldloc.s 5 (System.Int32)
IL_0142: ldc.i4.1
IL_0143: add
IL_0144: stloc.s 5 (System.Int32)
IL_0146: Label8
IL_0146: ldloc.s 5 (System.Int32)
IL_0148: ldsfld System.Collections.Generic.List`1<Verse.ThingDefCount>
Verse.Pawn_InventoryTracker::tmpDrugsToKeep
IL_014D: callvirt virtual System.Int32
System.Collections.Generic.List`1<Verse.ThingDefCount>::get_Count()
IL_0152: blt => Label11
IL_0157: Label10
IL_0157: ldloc.s 4 (System.Int32)
IL_0159: ldc.i4.0
IL_015A: bge => Label12
IL_015F: ldarg.0
IL_0160: ldfld Verse.ThingOwner`1<Verse.Thing>
Verse.Pawn_InventoryTracker::innerContainer
IL_0165: ldloc.3
IL_0166: callvirt Verse.Thing
Verse.ThingOwner`1<Verse.Thing>::get_Item(System.Int32 index)
IL_016B: ldarg.0
IL_016C: ldfld Verse.ThingOwner`1<Verse.Thing>
Verse.Pawn_InventoryTracker::innerContainer
IL_0171: ldloc.3
IL_0172: callvirt Verse.Thing
Verse.ThingOwner`1<Verse.Thing>::get_Item(System.Int32 index)
IL_0177: ldfld System.Int32 Verse.Thing::stackCount
IL_017C: newobj System.Void Verse.ThingCount::.ctor(Verse.Thing thing,
System.Int32 count)
IL_0181: br => Label17
IL_0186: Label12
IL_0186: ldarg.0
IL_0187: ldfld Verse.ThingOwner`1<Verse.Thing>
Verse.Pawn_InventoryTracker::innerContainer
IL_018C: ldloc.3
IL_018D: callvirt Verse.Thing
Verse.ThingOwner`1<Verse.Thing>::get_Item(System.Int32 index)
IL_0192: ldfld System.Int32 Verse.Thing::stackCount
IL_0197: ldsfld System.Collections.Generic.List`1<Verse.ThingDefCount>
Verse.Pawn_InventoryTracker::tmpDrugsToKeep
IL_019C: ldloc.s 4 (System.Int32)
IL_019E: callvirt virtual Verse.ThingDefCount
System.Collections.Generic.List`1<Verse.ThingDefCount>::get_Item(System.Int32
index)
IL_01A3: stloc.s 6 (Verse.ThingDefCount)
IL_01A5: ldloca.s 6 (Verse.ThingDefCount)
IL_01A7: call System.Int32 Verse.ThingDefCount::get_Count()
IL_01AC: ble => Label13
IL_01B1: ldarg.0
IL_01B2: ldfld Verse.ThingOwner`1<Verse.Thing>
Verse.Pawn_InventoryTracker::innerContainer
IL_01B7: ldloc.3
IL_01B8: callvirt Verse.Thing
Verse.ThingOwner`1<Verse.Thing>::get_Item(System.Int32 index)
IL_01BD: ldarg.0
IL_01BE: ldfld Verse.ThingOwner`1<Verse.Thing>
Verse.Pawn_InventoryTracker::innerContainer
IL_01C3: ldloc.3
IL_01C4: callvirt Verse.Thing
Verse.ThingOwner`1<Verse.Thing>::get_Item(System.Int32 index)
IL_01C9: ldfld System.Int32 Verse.Thing::stackCount
IL_01CE: ldsfld System.Collections.Generic.List`1<Verse.ThingDefCount>
Verse.Pawn_InventoryTracker::tmpDrugsToKeep
IL_01D3: ldloc.s 4 (System.Int32)
IL_01D5: callvirt virtual Verse.ThingDefCount
System.Collections.Generic.List`1<Verse.ThingDefCount>::get_Item(System.Int32
index)
IL_01DA: stloc.s 6 (Verse.ThingDefCount)
IL_01DC: ldloca.s 6 (Verse.ThingDefCount)
IL_01DE: call System.Int32 Verse.ThingDefCount::get_Count()
IL_01E3: sub
IL_01E4: newobj System.Void Verse.ThingCount::.ctor(Verse.Thing thing,
System.Int32 count)
IL_01E9: br => Label18
IL_01EE: Label13
IL_01EE: ldsfld System.Collections.Generic.List`1<Verse.ThingDefCount>
Verse.Pawn_InventoryTracker::tmpDrugsToKeep
IL_01F3: ldloc.s 4 (System.Int32)
IL_01F5: ldsfld System.Collections.Generic.List`1<Verse.ThingDefCount>
Verse.Pawn_InventoryTracker::tmpDrugsToKeep
IL_01FA: ldloc.s 4 (System.Int32)
IL_01FC: callvirt virtual Verse.ThingDefCount
System.Collections.Generic.List`1<Verse.ThingDefCount>::get_Item(System.Int32
index)
IL_0201: stloc.s 6 (Verse.ThingDefCount)
IL_0203: ldloca.s 6 (Verse.ThingDefCount)
IL_0205: call Verse.ThingDef Verse.ThingDefCount::get_ThingDef()
IL_020A: ldsfld System.Collections.Generic.List`1<Verse.ThingDefCount>
Verse.Pawn_InventoryTracker::tmpDrugsToKeep
IL_020F: ldloc.s 4 (System.Int32)
IL_0211: callvirt virtual Verse.ThingDefCount
System.Collections.Generic.List`1<Verse.ThingDefCount>::get_Item(System.Int32
index)
IL_0216: stloc.s 6 (Verse.ThingDefCount)
IL_0218: ldloca.s 6 (Verse.ThingDefCount)
IL_021A: call System.Int32 Verse.ThingDefCount::get_Count()
IL_021F: ldarg.0
IL_0220: ldfld Verse.ThingOwner`1<Verse.Thing>
Verse.Pawn_InventoryTracker::innerContainer
IL_0225: ldloc.3
IL_0226: callvirt Verse.Thing
Verse.ThingOwner`1<Verse.Thing>::get_Item(System.Int32 index)
IL_022B: ldfld System.Int32 Verse.Thing::stackCount
IL_0230: sub
IL_0231: newobj System.Void Verse.ThingDefCount::.ctor(Verse.ThingDef thingDef,
System.Int32 count)
IL_0236: callvirt virtual System.Void
System.Collections.Generic.List`1<Verse.ThingDefCount>::set_Item(System.Int32
index, Verse.ThingDefCount value)
IL_023B: ldloc.3
IL_023C: ldc.i4.1
IL_023D: add
IL_023E: stloc.3
IL_023F: Label6
IL_023F: ldloc.3
IL_0240: ldarg.0
IL_0241: ldfld Verse.ThingOwner`1<Verse.Thing>
Verse.Pawn_InventoryTracker::innerContainer
IL_0246: callvirt abstract virtual System.Int32 Verse.ThingOwner::get_Count()
IL_024B: blt => Label14
IL_0250: ldloca.s 0 (Verse.ThingCount)
IL_0252: initobj Verse.ThingCount
IL_0258: ldloc.0
IL_0259: br => Label19
IL_025E: Label1
IL_025E: Label2
IL_025E: ldarg.0
IL_025F: ldfld Verse.ThingOwner`1<Verse.Thing>
Verse.Pawn_InventoryTracker::innerContainer
IL_0264: ldc.i4.0
IL_0265: callvirt Verse.Thing
Verse.ThingOwner`1<Verse.Thing>::get_Item(System.Int32 index)
IL_026A: ldarg.0
IL_026B: ldfld Verse.ThingOwner`1<Verse.Thing>
Verse.Pawn_InventoryTracker::innerContainer
IL_0270: ldc.i4.0
IL_0271: callvirt Verse.Thing
Verse.ThingOwner`1<Verse.Thing>::get_Item(System.Int32 index)
IL_0276: ldfld System.Int32 Verse.Thing::stackCount
IL_027B: newobj System.Void Verse.ThingCount::.ctor(Verse.Thing thing,
System.Int32 count)
IL_0280: // end original
IL_0280: Label15
IL_0280: Label16
IL_0280: Label17
IL_0280: Label18
IL_0280: Label19
IL_0280: stloc 7 (Verse.ThingCount)
IL_0284: ldarg.0
IL_0285: ldloca 7 (Verse.ThingCount)
IL_0289: call static System.Void
PeteTimesSix.SimpleSidearms.Intercepts.Pawn_InventoryTracker_FirstUnloadableThing::
Postfix(Verse.Pawn_InventoryTracker __instance, Verse.ThingCount& __result)
IL_028E: ldarg.0
IL_028F: ldloca 7 (Verse.ThingCount)
IL_0293: call static System.Void
SurvivalTools.FirstUnloadableThing::Postfix(Verse.Pawn_InventoryTracker __instance,
Verse.ThingCount& __result)
IL_0298: ldloc 7 (Verse.ThingCount)
IL_029C: ret
DONE

### Patch: System.Void Verse.Pawn_InventoryTracker::InventoryTrackerTickRare()


### Replacement: static System.Void
Verse.Pawn_InventoryTracker::Verse.Pawn_InventoryTracker.InventoryTrackerTickRare_P
atch1(Verse.Pawn_InventoryTracker this)
IL_0000: // start original
IL_0000: ldarg.0
IL_0001: ldfld Verse.ThingOwner`1<Verse.Thing>
Verse.Pawn_InventoryTracker::innerContainer
IL_0006: ldc.i4.1
IL_0007: callvirt System.Void Verse.ThingOwner::ThingOwnerTickRare(System.Boolean
removeIfDestroyed)
IL_000C: // end original
IL_000C: ldarg.0
IL_000D: call static System.Void
SurvivalTools.InventoryTrackerTickRare::Postfix(Verse.Pawn_InventoryTracker
__instance)
IL_0012: ret
DONE

### Patch: System.Void Verse.Pawn_InventoryTracker::Notify_ItemRemoved(Verse.Thing


item)
### Replacement: static System.Void
Verse.Pawn_InventoryTracker::Verse.Pawn_InventoryTracker.Notify_ItemRemoved_Patch2(
Verse.Pawn_InventoryTracker this, Verse.Thing item)
IL_0000: // start original
IL_0000: ldarg.0
IL_0001: ldfld System.Collections.Generic.List`1<Verse.Thing>
Verse.Pawn_InventoryTracker::itemsNotForSale
IL_0006: ldarg.1
IL_0007: callvirt virtual System.Boolean
System.Collections.Generic.List`1<Verse.Thing>::Remove(Verse.Thing item)
IL_000C: pop
IL_000D: ldarg.0
IL_000E: ldfld System.Collections.Generic.List`1<Verse.Thing>
Verse.Pawn_InventoryTracker::unpackedCaravanItems
IL_0013: ldarg.1
IL_0014: callvirt virtual System.Boolean
System.Collections.Generic.List`1<Verse.Thing>::Remove(Verse.Thing item)
IL_0019: pop
IL_001A: ldarg.0
IL_001B: ldfld System.Boolean Verse.Pawn_InventoryTracker::unloadEverything
IL_0020: brfalse => Label0
IL_0025: ldarg.0
IL_0026: call System.Boolean
Verse.Pawn_InventoryTracker::get_HasAnyUnloadableThing()
IL_002B: brtrue => Label1
IL_0030: ldarg.0
IL_0031: ldc.i4.0
IL_0032: stfld System.Boolean Verse.Pawn_InventoryTracker::unloadEverything
IL_0037: // end original
IL_0037: Label0
IL_0037: Label1
IL_0037: ldarg.0
IL_0038: ldarg 1
IL_003C: call static System.Void
PickUpAndHaul.HarmonyPatches::Pawn_InventoryTracker_PostFix(Verse.Pawn_InventoryTra
cker __instance, Verse.Thing item)
IL_0041: ldarg.0
IL_0042: ldarg 1
IL_0046: call static System.Void
SurvivalTools.Notify_ItemRemoved::Postfix(Verse.Pawn_InventoryTracker __instance,
Verse.Thing item)
IL_004B: ret
DONE

### Patch: static Verse.AI.Job


RimWorld.GenConstruct::HandleBlockingThingJob(Verse.Thing constructible, Verse.Pawn
worker, System.Boolean forced)
### Replacement: static Verse.AI.Job
RimWorld.GenConstruct::RimWorld.GenConstruct.HandleBlockingThingJob_Patch1(Verse.Th
ing constructible, Verse.Pawn worker, System.Boolean forced)
IL_0000: Local var 0: Verse.Thing
IL_0000: Local var 1: Verse.AI.Job
IL_0000: ldnull
IL_0001: stloc 1 (Verse.AI.Job)
IL_0005: // start original
IL_0005: ldarg.0
IL_0006: ldarg.1
IL_0007: call static Verse.Thing
Share_The_Load.HandleAllBlockingThings::FirstReservableBlockingThing(Verse.Thing
constructible, Verse.Pawn pawnToIgnore)
IL_000C: stloc.0
IL_000D: ldloc.0
IL_000E: brtrue => Label0
IL_0013: ldnull
IL_0014: br => Label20
IL_0019: Label0
IL_0019: ldloc.0
IL_001A: ldfld Verse.ThingDef Verse.Thing::def
IL_001F: ldfld Verse.ThingCategory Verse.ThingDef::category
IL_0024: ldc.i4.4
IL_0025: bne.un => Label1
IL_002A: ldloc.0
IL_002B: ldarg.1
IL_002C: call static System.Boolean
RimWorld.PlantUtility::PawnWillingToCutPlant_Job(Verse.Thing plant, Verse.Pawn
pawn)
IL_0031: brtrue => Label2
IL_0036: ldnull
IL_0037: br => Label21
IL_003C: Label2
IL_003C: ldloc.0
IL_003D: call static System.Boolean
RimWorld.PlantUtility::TreeMarkedForExtraction(Verse.Thing plant)
IL_0042: brfalse => Label3
IL_0047: ldnull
IL_0048: br => Label22
IL_004D: Label3
IL_004D: ldarg.1
IL_004E: ldloc.0
IL_004F: call static Verse.LocalTargetInfo
Verse.LocalTargetInfo::op_Implicit(Verse.Thing t)
IL_0054: ldc.i4.3
IL_0055: ldarg.1
IL_0056: call static Verse.Danger
Verse.DangerUtility::NormalMaxDanger(Verse.Pawn p)
IL_005B: ldc.i4.1
IL_005C: ldc.i4.m1
IL_005D: ldnull
IL_005E: ldarg.2
IL_005F: call static System.Boolean
Verse.AI.ReservationUtility::CanReserveAndReach(Verse.Pawn p, Verse.LocalTargetInfo
target, Verse.AI.PathEndMode peMode, Verse.Danger maxDanger, System.Int32 maxPawns,
System.Int32 stackCount, Verse.ReservationLayerDef layer, System.Boolean
ignoreOtherReservations)
IL_0064: brfalse => Label4
IL_0069: ldsfld Verse.JobDef RimWorld.JobDefOf::CutPlant
IL_006E: ldloc.0
IL_006F: call static Verse.LocalTargetInfo
Verse.LocalTargetInfo::op_Implicit(Verse.Thing t)
IL_0074: call static Verse.AI.Job Verse.JobMaker::MakeJob(Verse.JobDef def,
Verse.LocalTargetInfo targetA)
IL_0079: br => Label23
IL_007E: Label1
IL_007E: ldloc.0
IL_007F: ldfld Verse.ThingDef Verse.Thing::def
IL_0084: ldfld Verse.ThingCategory Verse.ThingDef::category
IL_0089: ldc.i4.2
IL_008A: bne.un => Label5
IL_008F: ldloc.0
IL_0090: ldfld Verse.ThingDef Verse.Thing::def
IL_0095: callvirt System.Boolean Verse.ThingDef::get_EverHaulable()
IL_009A: brfalse => Label6
IL_009F: ldarg.1
IL_00A0: ldloc.0
IL_00A1: call static Verse.AI.Job
Verse.AI.HaulAIUtility::HaulAsideJobFor(Verse.Pawn p, Verse.Thing t)
IL_00A6: br => Label24
IL_00AB: Label6
IL_00AB: ldc.i4.6
IL_00AC: newarr System.Object
IL_00B1: dup
IL_00B2: ldc.i4.0
IL_00B3: ldstr "Never haulable "
IL_00B8: stelem.ref
IL_00B9: dup
IL_00BA: ldc.i4.1
IL_00BB: ldloc.0
IL_00BC: stelem.ref
IL_00BD: dup
IL_00BE: ldc.i4.2
IL_00BF: ldstr " blocking "
IL_00C4: stelem.ref
IL_00C5: dup
IL_00C6: ldc.i4.3
IL_00C7: ldarg.0
IL_00C8: call static System.String Verse.Gen::ToStringSafe(Verse.Thing obj)
IL_00CD: stelem.ref
IL_00CE: dup
IL_00CF: ldc.i4.4
IL_00D0: ldstr " at "
IL_00D5: stelem.ref
IL_00D6: dup
IL_00D7: ldc.i4.5
IL_00D8: ldarg.0
IL_00D9: callvirt virtual Verse.IntVec3 Verse.Thing::get_Position()
IL_00DE: box Verse.IntVec3
IL_00E3: stelem.ref
IL_00E4: call static System.String System.String::Concat(System.Object[]
args)
IL_00E9: ldc.i4 6429262
IL_00EE: call static System.Void Verse.Log::ErrorOnce(System.String text,
System.Int32 key)
IL_00F3: br => Label7
IL_00F8: Label5
IL_00F8: ldloc.0
IL_00F9: ldfld Verse.ThingDef Verse.Thing::def
IL_00FE: ldfld Verse.ThingCategory Verse.ThingDef::category
IL_0103: ldc.i4.3
IL_0104: bne.un => Label8
IL_0109: ldloc.0
IL_010A: castclass Verse.Building
IL_010F: ldarg.1
IL_0110: callvirt virtual RimWorld.Faction Verse.Thing::get_Faction()
IL_0115: callvirt virtual System.Boolean
Verse.Building::DeconstructibleBy(RimWorld.Faction faction)
IL_011A: brfalse => Label9
IL_011F: ldarg.1
IL_0120: ldsfld Verse.WorkTypeDef RimWorld.WorkTypeDefOf::Construction
IL_0125: callvirt System.Boolean Verse.Pawn::WorkTypeIsDisabled(Verse.WorkTypeDef
w)
IL_012A: brtrue => Label10
IL_012F: ldarg.1
IL_0130: ldfld RimWorld.Pawn_WorkSettings Verse.Pawn::workSettings
IL_0135: brfalse => Label11
IL_013A: ldarg.1
IL_013B: ldfld RimWorld.Pawn_WorkSettings Verse.Pawn::workSettings
IL_0140: ldsfld Verse.WorkTypeDef RimWorld.WorkTypeDefOf::Construction
IL_0145: callvirt System.Boolean
RimWorld.Pawn_WorkSettings::WorkIsActive(Verse.WorkTypeDef w)
IL_014A: brtrue => Label12
IL_014F: Label10
IL_014F: ldsfld System.String RimWorld.GenConstruct::IncapableOfDeconstruction
IL_0154: ldnull
IL_0155: call static System.Void Verse.AI.JobFailReason::Is(System.String
reason, System.String customJobString)
IL_015A: ldnull
IL_015B: br => Label25
IL_0160: Label11
IL_0160: Label12
IL_0160: ldarg.1
IL_0161: ldloc.0
IL_0162: call static Verse.LocalTargetInfo
Verse.LocalTargetInfo::op_Implicit(Verse.Thing t)
IL_0167: ldc.i4.2
IL_0168: ldarg.1
IL_0169: call static Verse.Danger
Verse.DangerUtility::NormalMaxDanger(Verse.Pawn p)
IL_016E: ldc.i4.1
IL_016F: ldc.i4.m1
IL_0170: ldnull
IL_0171: ldarg.2
IL_0172: call static System.Boolean
Verse.AI.ReservationUtility::CanReserveAndReach(Verse.Pawn p, Verse.LocalTargetInfo
target, Verse.AI.PathEndMode peMode, Verse.Danger maxDanger, System.Int32 maxPawns,
System.Int32 stackCount, Verse.ReservationLayerDef layer, System.Boolean
ignoreOtherReservations)
IL_0177: brfalse => Label13
IL_017C: ldsfld Verse.JobDef RimWorld.JobDefOf::Deconstruct
IL_0181: ldloc.0
IL_0182: call static Verse.LocalTargetInfo
Verse.LocalTargetInfo::op_Implicit(Verse.Thing t)
IL_0187: call static Verse.AI.Job Verse.JobMaker::MakeJob(Verse.JobDef def,
Verse.LocalTargetInfo targetA)
IL_018C: dup
IL_018D: ldc.i4.1
IL_018E: stfld System.Boolean Verse.AI.Job::ignoreDesignations
IL_0193: br => Label26
IL_0198: Label9
IL_0198: Label13
IL_0198: ldloc.0
IL_0199: ldfld Verse.ThingDef Verse.Thing::def
IL_019E: ldfld System.Boolean Verse.ThingDef::mineable
IL_01A3: brfalse => Label14
IL_01A8: ldloc.0
IL_01A9: ldarg.0
IL_01AA: call static System.Boolean
Replace_Stuff.OverMineable.DontMineSmoothingRock::ToBeSmoothed(Verse.Thing thing,
Verse.Thing constructible)
IL_01AF: brfalse => Label19
IL_01B4: ldarg.1
IL_01B5: ldloc.0
IL_01B6: ldarg.2
IL_01B7: call static Verse.AI.Job
Replace_Stuff.OverMineable.DontMineSmoothingRock::SmoothItJob(Verse.Pawn worker,
Verse.Thing thing, System.Boolean forced)
IL_01BC: br => Label27
IL_01C1: Label19
IL_01C1: ldarg.1
IL_01C2: ldsfld Verse.WorkTypeDef RimWorld.WorkTypeDefOf::Mining
IL_01C7: callvirt System.Boolean Verse.Pawn::WorkTypeIsDisabled(Verse.WorkTypeDef
w)
IL_01CC: brtrue => Label15
IL_01D1: ldarg.1
IL_01D2: ldfld RimWorld.Pawn_WorkSettings Verse.Pawn::workSettings
IL_01D7: brfalse => Label16
IL_01DC: ldarg.1
IL_01DD: ldfld RimWorld.Pawn_WorkSettings Verse.Pawn::workSettings
IL_01E2: ldsfld Verse.WorkTypeDef RimWorld.WorkTypeDefOf::Mining
IL_01E7: callvirt System.Boolean
RimWorld.Pawn_WorkSettings::WorkIsActive(Verse.WorkTypeDef w)
IL_01EC: brtrue => Label17
IL_01F1: Label15
IL_01F1: ldsfld System.String RimWorld.GenConstruct::IncapableOfMining
IL_01F6: ldnull
IL_01F7: call static System.Void Verse.AI.JobFailReason::Is(System.String
reason, System.String customJobString)
IL_01FC: ldnull
IL_01FD: br => Label28
IL_0202: Label16
IL_0202: Label17
IL_0202: ldarg.1
IL_0203: ldloc.0
IL_0204: call static Verse.LocalTargetInfo
Verse.LocalTargetInfo::op_Implicit(Verse.Thing t)
IL_0209: ldc.i4.2
IL_020A: ldarg.1
IL_020B: call static Verse.Danger
Verse.DangerUtility::NormalMaxDanger(Verse.Pawn p)
IL_0210: ldc.i4.1
IL_0211: ldc.i4.m1
IL_0212: ldnull
IL_0213: ldarg.2
IL_0214: call static System.Boolean
Verse.AI.ReservationUtility::CanReserveAndReach(Verse.Pawn p, Verse.LocalTargetInfo
target, Verse.AI.PathEndMode peMode, Verse.Danger maxDanger, System.Int32 maxPawns,
System.Int32 stackCount, Verse.ReservationLayerDef layer, System.Boolean
ignoreOtherReservations)
IL_0219: brfalse => Label18
IL_021E: ldsfld Verse.JobDef RimWorld.JobDefOf::Mine
IL_0223: ldloc.0
IL_0224: call static Verse.LocalTargetInfo
Verse.LocalTargetInfo::op_Implicit(Verse.Thing t)
IL_0229: call static Verse.AI.Job Verse.JobMaker::MakeJob(Verse.JobDef def,
Verse.LocalTargetInfo targetA)
IL_022E: dup
IL_022F: ldc.i4.1
IL_0230: stfld System.Boolean Verse.AI.Job::ignoreDesignations
IL_0235: br => Label29
IL_023A: Label4
IL_023A: Label7
IL_023A: Label8
IL_023A: Label14
IL_023A: Label18
IL_023A: ldnull
IL_023B: // end original
IL_023B: Label20
IL_023B: Label21
IL_023B: Label22
IL_023B: Label23
IL_023B: Label24
IL_023B: Label25
IL_023B: Label26
IL_023B: Label27
IL_023B: Label28
IL_023B: Label29
IL_023B: stloc 1 (Verse.AI.Job)
IL_023F: ldloca 1 (Verse.AI.Job)
IL_0243: ldarg 1
IL_0247: call static System.Void
SurvivalTools.HarmonyPatches::Postfix_HandleBlockingThingJob(Verse.AI.Job&
__result, Verse.Pawn worker)
IL_024C: ldloc 1 (Verse.AI.Job)
IL_0250: ret
DONE

### Patch: static Verse.AI.Job


Verse.RoofUtility::HandleBlockingThingJob(Verse.Thing blocker, Verse.Pawn worker,
System.Boolean forced)
### Replacement: static Verse.AI.Job
Verse.RoofUtility::Verse.RoofUtility.HandleBlockingThingJob_Patch1(Verse.Thing
blocker, Verse.Pawn worker, System.Boolean forced)
IL_0000: Local var 0: Verse.AI.Job
IL_0000: ldnull
IL_0001: stloc 0 (Verse.AI.Job)
IL_0005: // start original
IL_0005: ldarg.0
IL_0006: brtrue => Label0
IL_000B: ldnull
IL_000C: br => Label4
IL_0011: Label0
IL_0011: ldarg.0
IL_0012: ldfld Verse.ThingDef Verse.Thing::def
IL_0017: ldfld Verse.ThingCategory Verse.ThingDef::category
IL_001C: ldc.i4.4
IL_001D: bne.un => Label1
IL_0022: ldarg.1
IL_0023: ldarg.0
IL_0024: call static Verse.LocalTargetInfo
Verse.LocalTargetInfo::op_Implicit(Verse.Thing t)
IL_0029: ldc.i4.3
IL_002A: ldarg.1
IL_002B: call static Verse.Danger
Verse.DangerUtility::NormalMaxDanger(Verse.Pawn p)
IL_0030: ldc.i4.1
IL_0031: ldc.i4.m1
IL_0032: ldnull
IL_0033: ldarg.2
IL_0034: call static System.Boolean
Verse.AI.ReservationUtility::CanReserveAndReach(Verse.Pawn p, Verse.LocalTargetInfo
target, Verse.AI.PathEndMode peMode, Verse.Danger maxDanger, System.Int32 maxPawns,
System.Int32 stackCount, Verse.ReservationLayerDef layer, System.Boolean
ignoreOtherReservations)
IL_0039: brfalse => Label2
IL_003E: ldarg.0
IL_003F: ldarg.1
IL_0040: call static System.Boolean
RimWorld.PlantUtility::PawnWillingToCutPlant_Job(Verse.Thing plant, Verse.Pawn
pawn)
IL_0045: brtrue => Label3
IL_004A: ldnull
IL_004B: br => Label5
IL_0050: Label3
IL_0050: ldsfld Verse.JobDef RimWorld.JobDefOf::CutPlant
IL_0055: ldarg.0
IL_0056: call static Verse.LocalTargetInfo
Verse.LocalTargetInfo::op_Implicit(Verse.Thing t)
IL_005B: call static Verse.AI.Job Verse.JobMaker::MakeJob(Verse.JobDef def,
Verse.LocalTargetInfo targetA)
IL_0060: br => Label6
IL_0065: Label1
IL_0065: Label2
IL_0065: ldnull
IL_0066: // end original
IL_0066: Label4
IL_0066: Label5
IL_0066: Label6
IL_0066: stloc 0 (Verse.AI.Job)
IL_006A: ldloca 0 (Verse.AI.Job)
IL_006E: ldarg 1
IL_0072: call static System.Void
SurvivalTools.HarmonyPatches::Postfix_HandleBlockingThingJob(Verse.AI.Job&
__result, Verse.Pawn worker)
IL_0077: ldloc 0 (Verse.AI.Job)
IL_007B: ret
DONE
### Patch: System.Void RimWorld.JobDriver_Mine::ResetTicksToPickHit()
### Replacement: static System.Void
RimWorld.JobDriver_Mine::RimWorld.JobDriver_Mine.ResetTicksToPickHit_Patch0(RimWorl
d.JobDriver_Mine this)
IL_0000: Local var 0: System.Single
IL_0000: // start original
IL_0000: ldarg.0
IL_0001: ldfld Verse.Pawn Verse.AI.JobDriver::pawn
IL_0006: ldsfld RimWorld.StatDef SurvivalTools.ST_StatDefOf::DiggingSpeed
IL_000B: ldc.i4.1
IL_000C: ldc.i4.m1
IL_000D: call static System.Single
RimWorld.StatExtension::GetStatValue(Verse.Thing thing, RimWorld.StatDef stat,
System.Boolean applyPostProcess, System.Int32 cacheStaleAfterTicks)
IL_0012: stloc.0
IL_0013: ldloc.0
IL_0014: ldc.r4 0.6
IL_0019: bge.un => Label0
IL_001E: ldarg.0
IL_001F: ldfld Verse.Pawn Verse.AI.JobDriver::pawn
IL_0024: callvirt virtual RimWorld.Faction Verse.Thing::get_Faction()
IL_0029: call static RimWorld.Faction RimWorld.Faction::get_OfPlayer()
IL_002E: beq => Label1
IL_0033: ldc.r4 0.6
IL_0038: stloc.0
IL_0039: Label0
IL_0039: Label1
IL_0039: ldarg.0
IL_003A: ldc.r4 100
IL_003F: ldloc.0
IL_0040: div
IL_0041: conv.r8
IL_0042: call static System.Double System.Math::Round(System.Double a)
IL_0047: conv.i4
IL_0048: stfld System.Int32 RimWorld.JobDriver_Mine::ticksToPickHit
IL_004D: // end original
IL_004D: ret
DONE

### Patch: static System.Void


RimWorld.FloatMenuMakerMap::AddHumanlikeOrders(UnityEngine.Vector3 clickPos,
Verse.Pawn pawn, System.Collections.Generic.List`1<Verse.FloatMenuOption> opts)
### Replacement: static System.Void
RimWorld.FloatMenuMakerMap::RimWorld.FloatMenuMakerMap.AddHumanlikeOrders_Patch5(Un
ityEngine.Vector3 clickPos, Verse.Pawn pawn,
System.Collections.Generic.List`1<Verse.FloatMenuOption> opts)
IL_0000: Local var 0: RimWorld.FloatMenuMakerMap/<>c__DisplayClass10_0
IL_0000: Local var 1: Verse.IntVec3
IL_0000: Local var 2: System.Collections.Generic.List`1/Enumerator<Verse.Thing>
IL_0000: Local var 3: Verse.Pawn
IL_0000: Local var 4: Verse.AI.Group.Lord
IL_0000: Local var 5:
System.Collections.Generic.IEnumerable`1<Verse.FloatMenuOption>
IL_0000: Local var 6:
System.Collections.Generic.IEnumerator`1<Verse.FloatMenuOption>
IL_0000: Local var 7: Verse.FloatMenuOption
IL_0000: Local var 8:
System.Collections.Generic.IEnumerator`1<Verse.LocalTargetInfo>
IL_0000: Local var 9: Verse.LocalTargetInfo
IL_0000: Local var 10: System.Boolean
IL_0000: Local var 11: Verse.TaggedString
IL_0000: Local var 12: RimWorld.FloatMenuMakerMap/<>c__DisplayClass10_1
IL_0000: Local var 13: System.Action
IL_0000: Local var 14: Verse.Thing
IL_0000: Local var 15: RimWorld.FloatMenuMakerMap/<>c__DisplayClass10_2
IL_0000: Local var 16: Verse.FloatMenuOption
IL_0000: Local var 17: System.String
IL_0000: Local var 18: Verse.MenuOptionPriority
IL_0000: Local var 19: Verse.LocalTargetInfo
IL_0000: Local var 20: RimWorld.FloatMenuMakerMap/<>c__DisplayClass10_3
IL_0000: Local var 21: Verse.FloatMenuOption
IL_0000: Local var 22: System.Collections.Generic.List`1<Verse.Thing>
IL_0000: Local var 23: Verse.Thing
IL_0000: Local var 24: RimWorld.FloatMenuMakerMap/<>c__DisplayClass10_4
IL_0000: Local var 25: RimWorld.IHaulDestination
IL_0000: Local var 26: RimWorld.StoragePriority
IL_0000: Local var 27: RimWorld.FloatMenuMakerMap/<>c__DisplayClass10_5
IL_0000: Local var 28: Verse.Thing
IL_0000: Local var 29: RimWorld.FloatMenuMakerMap/<>c__DisplayClass10_6
IL_0000: Local var 30: Verse.LocalTargetInfo
IL_0000: Local var 31: RimWorld.FloatMenuMakerMap/<>c__DisplayClass10_7
IL_0000: Local var 32: RimWorld.FloatMenuMakerMap/<>c__DisplayClass10_8
IL_0000: Local var 33:
System.Nullable`1<RimWorld.ChildcareUtility/BreastfeedFailReason>
IL_0000: Local var 34: Verse.TaggedString
IL_0000: Local var 35: Verse.TaggedString
IL_0000: Local var 36: RimWorld.FloatMenuMakerMap/<>c__DisplayClass10_9
IL_0000: Local var 37: Verse.LocalTargetInfo
IL_0000: Local var 38: RimWorld.FloatMenuMakerMap/<>c__DisplayClass10_10
IL_0000: Local var 39: System.String
IL_0000: Local var 40: System.Action
IL_0000: Local var 41: Verse.LocalTargetInfo
IL_0000: Local var 42: Verse.Pawn
IL_0000: Local var 43: RimWorld.FloatMenuMakerMap/<>c__DisplayClass10_11
IL_0000: Local var 44: Verse.LocalTargetInfo
IL_0000: Local var 45: System.Predicate`1<Verse.Thing>
IL_0000: Local var 46: System.String
IL_0000: Local var 47: System.Action
IL_0000: Local var 48: RimWorld.FloatMenuMakerMap/<>c__DisplayClass10_12
IL_0000: Local var 49: RimWorld.CompHackable
IL_0000: Local var 50: Verse.TaggedString
IL_0000: Local var 51: RimWorld.FloatMenuMakerMap/<>c__DisplayClass10_13
IL_0000: Local var 52: RimWorld.FloatMenuMakerMap/<>c__DisplayClass10_14
IL_0000: Local var 53: RimWorld.FloatMenuMakerMap/<>c__DisplayClass10_15
IL_0000: Local var 54: System.String
IL_0000: Local var 55: Verse.IntVec3
IL_0000: Local var 56: RimWorld.IHaulDestination
IL_0000: Local var 57: RimWorld.FloatMenuMakerMap/<>c__DisplayClass10_16
IL_0000: Local var 58: System.Collections.Generic.IEnumerable`1<Verse.Thing>
IL_0000: Local var 59: System.Func`2<Verse.Thing,System.Boolean>
IL_0000: Local var 60: System.Collections.Generic.IEnumerator`1<Verse.Thing>
IL_0000: Local var 61: Verse.Thing
IL_0000: Local var 62: RimWorld.FloatMenuMakerMap/<>c__DisplayClass10_17
IL_0000: Local var 63: Verse.Thing
IL_0000: Local var 64: System.Collections.Generic.IEnumerable`1<Verse.Thing>
IL_0000: Local var 65: Verse.Thing
IL_0000: Local var 66: System.Predicate`1<Verse.Thing>
IL_0000: Local var 67: RimWorld.FloatMenuMakerMap/<>c__DisplayClass10_18
IL_0000: Local var 68: RimWorld.FloatMenuMakerMap/<>c__DisplayClass10_19
IL_0000: Local var 69: RimWorld.FloatMenuMakerMap/<>c__DisplayClass10_20
IL_0000: Local var 70: Verse.Pawn
IL_0000: Local var 71: Verse.AcceptanceReport
IL_0000: Local var 72: Verse.Thing
IL_0000: Local var 73: RimWorld.FloatMenuMakerMap/<>c__DisplayClass10_21
IL_0000: Local var 74: RimWorld.FloatMenuMakerMap/<>c__DisplayClass10_22
IL_0000: Local var 75: System.Collections.Generic.List`1<Verse.Thing>
IL_0000: Local var 76: System.Int32
IL_0000: Local var 77: RimWorld.FloatMenuMakerMap/<>c__DisplayClass10_23
IL_0000: Local var 78: Verse.AcceptanceReport
IL_0000: Local var 79: System.Boolean
IL_0000: Local var 80: RimWorld.Building_Bed
IL_0000: Local var 81: Verse.CellRect/Enumerator
IL_0000: Local var 82: Verse.CellRect
IL_0000: Local var 83: Verse.LocalTargetInfo
IL_0000: Local var 84: RimWorld.FloatMenuMakerMap/<>c__DisplayClass10_24
IL_0000: Local var 85: Verse.AcceptanceReport
IL_0000: Local var 86: Verse.LocalTargetInfo
IL_0000: Local var 87: RimWorld.FloatMenuMakerMap/<>c__DisplayClass10_25
IL_0000: Local var 88: RimWorld.FloatMenuMakerMap/<>c__DisplayClass10_26
IL_0000: Local var 89: System.Nullable`1<RimWorld.GuestStatus>
IL_0000: Local var 90: Verse.LocalTargetInfo
IL_0000: Local var 91: RimWorld.FloatMenuMakerMap/<>c__DisplayClass10_27
IL_0000: Local var 92: Verse.FloatMenuOption
IL_0000: Local var 93: Verse.LocalTargetInfo
IL_0000: Local var 94: RimWorld.FloatMenuMakerMap/<>c__DisplayClass10_28
IL_0000: Local var 95: Verse.FloatMenuOption
IL_0000: Local var 96:
System.Nullable`1<RimWorld.ChildcareUtility/BreastfeedFailReason>
IL_0000: Local var 97: Verse.LocalTargetInfo
IL_0000: Local var 98: Verse.Pawn
IL_0000: Local var 99: System.Boolean
IL_0000: Local var 100: Verse.FloatMenuOption
IL_0000: Local var 101: System.Single
IL_0000: Local var 102: Verse.LocalTargetInfo
IL_0000: Local var 103: RimWorld.FloatMenuMakerMap/<>c__DisplayClass10_29
IL_0000: Local var 104: Verse.FloatMenuOption
IL_0000: Local var 105: System.Collections.Generic.List`1<Verse.Thing>
IL_0000: Local var 106: System.Int32
IL_0000: Local var 107: RimWorld.FloatMenuMakerMap/<>c__DisplayClass10_30
IL_0000: Local var 108: System.String
IL_0000: Local var 109: Verse.FloatMenuOption
IL_0000: Local var 110: System.String
IL_0000: Local var 111: System.String
IL_0000: Local var 112: RimWorld.FloatMenuMakerMap/<>c__DisplayClass10_31
IL_0000: Local var 113:
System.Collections.Generic.IEnumerator`1<Verse.Pair`2<RimWorld.CompReloadable,Verse
.Thing>>
IL_0000: Local var 114: Verse.Pair`2<RimWorld.CompReloadable,Verse.Thing>
IL_0000: Local var 115: RimWorld.FloatMenuMakerMap/<>c__DisplayClass10_32
IL_0000: Local var 116: Verse.Thing
IL_0000: Local var 117: System.String
IL_0000: Local var 118: System.Collections.Generic.List`1<Verse.Thing>
IL_0000: Local var 119: System.Action
IL_0000: Local var 120: Verse.Thing
IL_0000: Local var 121: RimWorld.FloatMenuMakerMap/<>c__DisplayClass10_33
IL_0000: Local var 122: System.String
IL_0000: Local var 123: System.String
IL_0000: Local var 124: Verse.FloatMenuOption
IL_0000: Local var 125: System.String
IL_0000: Local var 126: RimWorld.FloatMenuMakerMap/<>c__DisplayClass10_34
IL_0000: Local var 127: RimWorld.FloatMenuMakerMap/<>c__DisplayClass10_35
IL_0000: Local var 128: RimWorld.FloatMenuMakerMap/<>c__DisplayClass10_36
IL_0000: Local var 129: RimWorld.LordJob_FormAndSendCaravan
IL_0000: Local var 130: System.Single
IL_0000: Local var 131: System.Single
IL_0000: Local var 132: RimWorld.FloatMenuMakerMap/<>c__DisplayClass10_37
IL_0000: Local var 133: RimWorld.FloatMenuMakerMap/<>c__DisplayClass10_38
IL_0000: Local var 134: RimWorld.FloatMenuMakerMap/<>c__DisplayClass10_39
IL_0000: Local var 135: RimWorld.FloatMenuMakerMap/<>c__DisplayClass10_40
IL_0000: Local var 136: Verse.LocalTargetInfo
IL_0000: Local var 137: RimWorld.FloatMenuMakerMap/<>c__DisplayClass10_41
IL_0000: Local var 138: RimWorld.FloatMenuMakerMap/<>c__DisplayClass10_42
IL_0000: Local var 139: Verse.TaggedString
IL_0000: Local var 140: System.Action
IL_0000: Local var 141: Verse.LocalTargetInfo
IL_0000: Local var 142: Verse.AcceptanceReport
IL_0000: Local var 143: RimWorld.FloatMenuMakerMap/<>c__DisplayClass10_43
IL_0000: Local var 144: System.Action
IL_0000: Local var 145: System.String
IL_0000: Local var 146: RimWorld.FloatMenuMakerMap/<>c__DisplayClass10_44
IL_0000: Local var 147: Verse.FloatMenuOption
IL_0000: // start original
IL_0000: newobj System.Void RimWorld.<>c__DisplayClass10_0::.ctor()
IL_0005: stloc.0
IL_0006: ldloc.0
IL_0007: ldarg.1
IL_0008: stfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_000D: ldarg.0
IL_000E: call static Verse.IntVec3
Verse.IntVec3::FromVector3(UnityEngine.Vector3 v)
IL_0013: stloc.1
IL_0014: ldloc.1
IL_0015: ldloc.0
IL_0016: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_001B: callvirt virtual Verse.Map Verse.Thing::get_Map()
IL_0020: call static System.Collections.Generic.List`1<Verse.Thing>
Verse.GridsUtility::GetThingList(Verse.IntVec3 c, Verse.Map map)
IL_0025: callvirt System.Collections.Generic.Enumerator<Verse.Thing>
System.Collections.Generic.List`1<Verse.Thing>::GetEnumerator()
IL_002A: stloc.2
.try
{
IL_002B: br => Label0
IL_0030: Label9
IL_0030: ldloca.s 2
(System.Collections.Generic.List`1+Enumerator[Verse.Thing])
IL_0032: call virtual Verse.Thing
System.Collections.Generic.Enumerator<Verse.Thing>::get_Current()
IL_0037: isinst Verse.Pawn
IL_003C: dup
IL_003D: stloc.3
IL_003E: brfalse => Label1
IL_0043: ldloc.3
IL_0044: call static Verse.AI.Group.Lord
Verse.AI.Group.LordUtility::GetLord(Verse.Pawn p)
IL_0049: stloc.s 4 (Verse.AI.Group.Lord)
IL_004B: ldloc.s 4 (Verse.AI.Group.Lord)
IL_004D: brfalse => Label2
IL_0052: ldloc.s 4 (Verse.AI.Group.Lord)
IL_0054: callvirt Verse.AI.Group.LordToil
Verse.AI.Group.Lord::get_CurLordToil()
IL_0059: brfalse => Label3
IL_005E: ldloc.s 4 (Verse.AI.Group.Lord)
IL_0060: callvirt Verse.AI.Group.LordToil
Verse.AI.Group.Lord::get_CurLordToil()
IL_0065: ldloc.3
IL_0066: ldloc.0
IL_0067: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_006C: callvirt virtual
System.Collections.Generic.IEnumerable`1<Verse.FloatMenuOption>
Verse.AI.Group.LordToil::ExtraFloatMenuOptions(Verse.Pawn target, Verse.Pawn
forPawn)
IL_0071: stloc.s 5
(System.Collections.Generic.IEnumerable`1[Verse.FloatMenuOption])
IL_0073: ldloc.s 5
(System.Collections.Generic.IEnumerable`1[Verse.FloatMenuOption])
IL_0075: brfalse => Label4
IL_007A: ldloc.s 5
(System.Collections.Generic.IEnumerable`1[Verse.FloatMenuOption])
IL_007C: callvirt abstract virtual
System.Collections.Generic.IEnumerator`1<Verse.FloatMenuOption>
System.Collections.Generic.IEnumerable`1<Verse.FloatMenuOption>::GetEnumerator()
IL_0081: stloc.s 6
(System.Collections.Generic.IEnumerator`1[Verse.FloatMenuOption])
.try
{
IL_0083: br => Label5
IL_0088: Label6
IL_0088: ldloc.s 6
(System.Collections.Generic.IEnumerator`1[Verse.FloatMenuOption])
IL_008A: callvirt abstract virtual Verse.FloatMenuOption
System.Collections.Generic.IEnumerator`1<Verse.FloatMenuOption>::get_Current()
IL_008F: stloc.s 7 (Verse.FloatMenuOption)
IL_0091: ldarg.2
IL_0092: ldloc.s 7 (Verse.FloatMenuOption)
IL_0094: callvirt virtual System.Void
System.Collections.Generic.List`1<Verse.FloatMenuOption>::Add(Verse.FloatMenuOption
item)
IL_0099: Label5
IL_0099: ldloc.s 6
(System.Collections.Generic.IEnumerator`1[Verse.FloatMenuOption])
IL_009B: callvirt abstract virtual System.Boolean
System.Collections.IEnumerator::MoveNext()
IL_00A0: brtrue => Label6
IL_00A5: leave => Label7
IL_00AA: leave => (autogenerated)
} // end try
.finally
{
IL_00AF: ldloc.s 6
(System.Collections.Generic.IEnumerator`1[Verse.FloatMenuOption])
IL_00B1: brfalse => Label8
IL_00B6: ldloc.s 6
(System.Collections.Generic.IEnumerator`1[Verse.FloatMenuOption])
IL_00B8: callvirt abstract virtual System.Void
System.IDisposable::Dispose()
IL_00BD: Label8
IL_00BD: endfinally
IL_00BE: leave => (autogenerated)
} // end handler
IL_00BF: Label0
IL_00BF: Label1
IL_00BF: Label2
IL_00BF: Label3
IL_00BF: Label4
IL_00BF: Label7
IL_00BF: ldloca.s 2
(System.Collections.Generic.List`1+Enumerator[Verse.Thing])
IL_00C1: call virtual System.Boolean
System.Collections.Generic.Enumerator<Verse.Thing>::MoveNext()
IL_00C6: brtrue => Label9
IL_00CB: leave => Label10
IL_00D0: leave => (autogenerated)
} // end try
.finally
{
IL_00D5: ldloca.s 2
(System.Collections.Generic.List`1+Enumerator[Verse.Thing])
IL_00D7: constrained.
System.Collections.Generic.List`1+Enumerator[Verse.Thing]
IL_00DD: callvirt abstract virtual System.Void
System.IDisposable::Dispose()
IL_00E2: endfinally
IL_00E3: leave => (autogenerated)
} // end handler
IL_00E4: Label10
IL_00E4: ldloc.0
IL_00E5: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_00EA: ldfld Verse.Pawn_HealthTracker Verse.Pawn::health
IL_00EF: ldfld Verse.PawnCapacitiesHandler
Verse.Pawn_HealthTracker::capacities
IL_00F4: ldsfld Verse.PawnCapacityDef RimWorld.PawnCapacityDefOf::Manipulation
IL_00F9: callvirt System.Boolean
Verse.PawnCapacitiesHandler::CapableOf(Verse.PawnCapacityDef capacity)
IL_00FE: brfalse => Label11
IL_0103: ldarg.0
IL_0104: ldloc.0
IL_0105: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_010A: call static RimWorld.TargetingParameters
RimWorld.TargetingParameters::ForArrest(Verse.Pawn arrester)
IL_010F: ldc.i4.1
IL_0110: ldnull
IL_0111: call static
System.Collections.Generic.IEnumerable`1<Verse.LocalTargetInfo>
Verse.GenUI::TargetsAt(UnityEngine.Vector3 clickPos, RimWorld.TargetingParameters
clickParams, System.Boolean thingsOnly, RimWorld.ITargetingSource source)
IL_0116: callvirt abstract virtual
System.Collections.Generic.IEnumerator`1<Verse.LocalTargetInfo>
System.Collections.Generic.IEnumerable`1<Verse.LocalTargetInfo>::GetEnumerator()
IL_011B: stloc.s 8
(System.Collections.Generic.IEnumerator`1[Verse.LocalTargetInfo])
.try
{
IL_011D: br => Label12
IL_0122: Label24
IL_0122: ldloc.s 8
(System.Collections.Generic.IEnumerator`1[Verse.LocalTargetInfo])
IL_0124: callvirt abstract virtual Verse.LocalTargetInfo
System.Collections.Generic.IEnumerator`1<Verse.LocalTargetInfo>::get_Current()
IL_0129: stloc.s 9 (Verse.LocalTargetInfo)
IL_012B: ldloca.s 9 (Verse.LocalTargetInfo)
IL_012D: call System.Boolean Verse.LocalTargetInfo::get_HasThing()
IL_0132: brfalse => Label13
IL_0137: ldloca.s 9 (Verse.LocalTargetInfo)
IL_0139: call Verse.Thing Verse.LocalTargetInfo::get_Thing()
IL_013E: isinst Verse.Pawn
IL_0143: brfalse => Label14
IL_0148: ldloca.s 9 (Verse.LocalTargetInfo)
IL_014A: call Verse.Thing Verse.LocalTargetInfo::get_Thing()
IL_014F: castclass Verse.Pawn
IL_0154: call static System.Boolean
Verse.WildManUtility::IsWildMan(Verse.Pawn p)
IL_0159: br => Label15
IL_015E: Label13
IL_015E: Label14
IL_015E: ldc.i4.0
IL_015F: Label15
IL_015F: stloc.s 10 (System.Boolean)
IL_0161: ldloc.0
IL_0162: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_0167: callvirt System.Boolean Verse.Pawn::get_Drafted()
IL_016C: brtrue => Label16
IL_0171: ldloc.s 10 (System.Boolean)
IL_0173: brfalse => Label17
IL_0178: Label16
IL_0178: ldloca.s 9 (Verse.LocalTargetInfo)
IL_017A: call Verse.Thing Verse.LocalTargetInfo::get_Thing()
IL_017F: isinst Verse.Pawn
IL_0184: brfalse => Label18
IL_0189: ldloc.0
IL_018A: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_018F: ldloca.s 9 (Verse.LocalTargetInfo)
IL_0191: call Verse.Thing Verse.LocalTargetInfo::get_Thing()
IL_0196: castclass Verse.Pawn
IL_019B: ldc.i4.0
IL_019C: ldnull
IL_019D: call static System.Boolean
RimWorld.QuestUtility::InSameExtraFaction(Verse.Pawn p, Verse.Pawn target,
RimWorld.ExtraFactionType type, RimWorld.Quest forQuest)
IL_01A2: brtrue => Label19
IL_01A7: ldloc.0
IL_01A8: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_01AD: ldloca.s 9 (Verse.LocalTargetInfo)
IL_01AF: call Verse.Thing Verse.LocalTargetInfo::get_Thing()
IL_01B4: castclass Verse.Pawn
IL_01B9: ldc.i4.2
IL_01BA: ldnull
IL_01BB: call static System.Boolean
RimWorld.QuestUtility::InSameExtraFaction(Verse.Pawn p, Verse.Pawn target,
RimWorld.ExtraFactionType type, RimWorld.Quest forQuest)
IL_01C0: brfalse => Label20
IL_01C5: Label19
IL_01C5: ldarg.2
IL_01C6: ldstr "CannotArrest"
IL_01CB: call static Verse.TaggedString
Verse.Translator::Translate(System.String key)
IL_01D0: ldstr ": "
IL_01D5: call static Verse.TaggedString
Verse.TaggedString::op_Addition(Verse.TaggedString t1, System.String t2)
IL_01DA: ldstr "SameFaction"
IL_01DF: ldloca.s 9 (Verse.LocalTargetInfo)
IL_01E1: call Verse.Thing Verse.LocalTargetInfo::get_Thing()
IL_01E6: castclass Verse.Pawn
IL_01EB: call static Verse.NamedArgument
Verse.NamedArgument::op_Implicit(Verse.Thing value)
IL_01F0: call static Verse.TaggedString
Verse.TranslatorFormattedStringExtensions::Translate(System.String key,
Verse.NamedArgument arg1)
IL_01F5: call static Verse.TaggedString
Verse.TaggedString::op_Addition(Verse.TaggedString t1, Verse.TaggedString t2)
IL_01FA: call static System.String
Verse.TaggedString::op_Implicit(Verse.TaggedString taggedString)
IL_01FF: ldnull
IL_0200: ldc.i4.4
IL_0201: ldnull
IL_0202: ldnull
IL_0203: ldc.r4 0
IL_0208: ldnull
IL_0209: ldnull
IL_020A: ldc.i4.1
IL_020B: ldc.i4.0
IL_020C: newobj System.Void Verse.FloatMenuOption::.ctor(System.String
label, System.Action action, Verse.MenuOptionPriority priority,
System.Action`1<UnityEngine.Rect> mouseoverGuiAction, Verse.Thing
revalidateClickTarget, System.Single extraPartWidth,
System.Func`2<UnityEngine.Rect, System.Boolean> extraPartOnGUI,
RimWorld.Planet.WorldObject revalidateWorldClickTarget, System.Boolean
playSelectionSound, System.Int32 orderInPriority)
IL_0211: callvirt virtual System.Void
System.Collections.Generic.List`1<Verse.FloatMenuOption>::Add(Verse.FloatMenuOption
item)
IL_0216: br => Label21
IL_021B: Label18
IL_021B: Label20
IL_021B: ldloc.0
IL_021C: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_0221: ldloc.s 9 (Verse.LocalTargetInfo)
IL_0223: ldc.i4.1
IL_0224: ldc.i4.3
IL_0225: ldc.i4.0
IL_0226: ldc.i4.0
IL_0227: ldc.i4.0
IL_0228: call static System.Boolean
Verse.ReachabilityUtility::CanReach(Verse.Pawn pawn, Verse.LocalTargetInfo dest,
Verse.AI.PathEndMode peMode, Verse.Danger maxDanger, System.Boolean canBashDoors,
System.Boolean canBashFences, Verse.TraverseMode mode)
IL_022D: brtrue => Label22
IL_0232: ldarg.2
IL_0233: ldstr "CannotArrest"
IL_0238: call static Verse.TaggedString
Verse.Translator::Translate(System.String key)
IL_023D: ldstr ": "
IL_0242: call static Verse.TaggedString
Verse.TaggedString::op_Addition(Verse.TaggedString t1, System.String t2)
IL_0247: ldstr "NoPath"
IL_024C: call static Verse.TaggedString
Verse.Translator::Translate(System.String key)
IL_0251: stloc.s 11 (Verse.TaggedString)
IL_0253: ldloca.s 11 (Verse.TaggedString)
IL_0255: call Verse.TaggedString Verse.TaggedString::CapitalizeFirst()
IL_025A: call static Verse.TaggedString
Verse.TaggedString::op_Addition(Verse.TaggedString t1, Verse.TaggedString t2)
IL_025F: call static System.String
Verse.TaggedString::op_Implicit(Verse.TaggedString taggedString)
IL_0264: ldnull
IL_0265: ldc.i4.4
IL_0266: ldnull
IL_0267: ldnull
IL_0268: ldc.r4 0
IL_026D: ldnull
IL_026E: ldnull
IL_026F: ldc.i4.1
IL_0270: ldc.i4.0
IL_0271: newobj System.Void Verse.FloatMenuOption::.ctor(System.String
label, System.Action action, Verse.MenuOptionPriority priority,
System.Action`1<UnityEngine.Rect> mouseoverGuiAction, Verse.Thing
revalidateClickTarget, System.Single extraPartWidth,
System.Func`2<UnityEngine.Rect, System.Boolean> extraPartOnGUI,
RimWorld.Planet.WorldObject revalidateWorldClickTarget, System.Boolean
playSelectionSound, System.Int32 orderInPriority)
IL_0276: callvirt virtual System.Void
System.Collections.Generic.List`1<Verse.FloatMenuOption>::Add(Verse.FloatMenuOption
item)
IL_027B: br => Label23
IL_0280: Label22
IL_0280: newobj System.Void RimWorld.<>c__DisplayClass10_1::.ctor()
IL_0285: stloc.s 12 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_1)
IL_0287: ldloc.s 12 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_1)
IL_0289: ldloc.0
IL_028A: stfld RimWorld.<>c__DisplayClass10_0
RimWorld.<>c__DisplayClass10_1::CS$<>8__locals1
IL_028F: ldloc.s 12 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_1)
IL_0291: ldloca.s 9 (Verse.LocalTargetInfo)
IL_0293: call Verse.Thing Verse.LocalTargetInfo::get_Thing()
IL_0298: castclass Verse.Pawn
IL_029D: stfld Verse.Pawn RimWorld.<>c__DisplayClass10_1::pTarg
IL_02A2: ldloc.s 12 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_1)
IL_02A4: ldftn System.Void
RimWorld.<>c__DisplayClass10_1::<AddHumanlikeOrders>b__0()
IL_02AA: newobj System.Void System.Action::.ctor(System.Object object,
System.IntPtr method)
IL_02AF: stloc.s 13 (System.Action)
IL_02B1: ldarg.2
IL_02B2: ldstr "TryToArrest"
IL_02B7: ldloca.s 9 (Verse.LocalTargetInfo)
IL_02B9: call Verse.Thing Verse.LocalTargetInfo::get_Thing()
IL_02BE: callvirt abstract virtual System.String
Verse.Entity::get_LabelCap()
IL_02C3: call static Verse.NamedArgument
Verse.NamedArgument::op_Implicit(System.String value)
IL_02C8: ldloca.s 9 (Verse.LocalTargetInfo)
IL_02CA: call Verse.Thing Verse.LocalTargetInfo::get_Thing()
IL_02CF: call static Verse.NamedArgument
Verse.NamedArgument::op_Implicit(Verse.Thing value)
IL_02D4: ldloc.s 12 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_1)
IL_02D6: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_1::pTarg
IL_02DB: ldloc.s 12 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_1)
IL_02DD: ldfld RimWorld.<>c__DisplayClass10_0
RimWorld.<>c__DisplayClass10_1::CS$<>8__locals1
IL_02E2: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_02E7: callvirt System.Single
Verse.Pawn::GetAcceptArrestChance(Verse.Pawn arrester)
IL_02EC: call static System.String
Verse.GenText::ToStringPercent(System.Single f)
IL_02F1: call static Verse.NamedArgument
Verse.NamedArgument::op_Implicit(System.String value)
IL_02F6: call static Verse.TaggedString
Verse.TranslatorFormattedStringExtensions::Translate(System.String key,
Verse.NamedArgument arg1, Verse.NamedArgument arg2, Verse.NamedArgument arg3)
IL_02FB: call static System.String
Verse.TaggedString::op_Implicit(Verse.TaggedString taggedString)
IL_0300: ldloc.s 13 (System.Action)
IL_0302: ldc.i4.5
IL_0303: ldnull
IL_0304: ldloca.s 9 (Verse.LocalTargetInfo)
IL_0306: call Verse.Thing Verse.LocalTargetInfo::get_Thing()
IL_030B: ldc.r4 0
IL_0310: ldnull
IL_0311: ldnull
IL_0312: ldc.i4.1
IL_0313: ldc.i4.0
IL_0314: newobj System.Void Verse.FloatMenuOption::.ctor(System.String
label, System.Action action, Verse.MenuOptionPriority priority,
System.Action`1<UnityEngine.Rect> mouseoverGuiAction, Verse.Thing
revalidateClickTarget, System.Single extraPartWidth,
System.Func`2<UnityEngine.Rect, System.Boolean> extraPartOnGUI,
RimWorld.Planet.WorldObject revalidateWorldClickTarget, System.Boolean
playSelectionSound, System.Int32 orderInPriority)
IL_0319: ldloc.s 12 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_1)
IL_031B: ldfld RimWorld.<>c__DisplayClass10_0
RimWorld.<>c__DisplayClass10_1::CS$<>8__locals1
IL_0320: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_0325: ldloc.s 12 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_1)
IL_0327: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_1::pTarg
IL_032C: call static Verse.LocalTargetInfo
Verse.LocalTargetInfo::op_Implicit(Verse.Thing t)
IL_0331: ldstr "ReservedBy"
IL_0336: ldnull
IL_0337: call static Verse.FloatMenuOption
RimWorld.FloatMenuUtility::DecoratePrioritizedTask(Verse.FloatMenuOption option,
Verse.Pawn pawn, Verse.LocalTargetInfo target, System.String reservedText,
Verse.ReservationLayerDef layer)
IL_033C: callvirt virtual System.Void
System.Collections.Generic.List`1<Verse.FloatMenuOption>::Add(Verse.FloatMenuOption
item)
IL_0341: Label12
IL_0341: Label17
IL_0341: Label21
IL_0341: Label23
IL_0341: ldloc.s 8
(System.Collections.Generic.IEnumerator`1[Verse.LocalTargetInfo])
IL_0343: callvirt abstract virtual System.Boolean
System.Collections.IEnumerator::MoveNext()
IL_0348: brtrue => Label24
IL_034D: leave => Label25
IL_0352: leave => (autogenerated)
} // end try
.finally
{
IL_0357: ldloc.s 8
(System.Collections.Generic.IEnumerator`1[Verse.LocalTargetInfo])
IL_0359: brfalse => Label26
IL_035E: ldloc.s 8
(System.Collections.Generic.IEnumerator`1[Verse.LocalTargetInfo])
IL_0360: callvirt abstract virtual System.Void
System.IDisposable::Dispose()
IL_0365: Label26
IL_0365: endfinally
IL_0366: leave => (autogenerated)
} // end handler
IL_0367: Label11
IL_0367: Label25
IL_0367: ldloc.1
IL_0368: ldloc.0
IL_0369: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_036E: callvirt virtual Verse.Map Verse.Thing::get_Map()
IL_0373: call static System.Collections.Generic.List`1<Verse.Thing>
Verse.GridsUtility::GetThingList(Verse.IntVec3 c, Verse.Map map)
IL_0378: callvirt System.Collections.Generic.Enumerator<Verse.Thing>
System.Collections.Generic.List`1<Verse.Thing>::GetEnumerator()
IL_037D: stloc.2
.try
{
IL_037E: br => Label27
IL_0383: Label58
IL_0383: ldloca.s 2
(System.Collections.Generic.List`1+Enumerator[Verse.Thing])
IL_0385: call virtual Verse.Thing
System.Collections.Generic.Enumerator<Verse.Thing>::get_Current()
IL_038A: stloc.s 14 (Verse.Thing)
IL_038C: newobj System.Void RimWorld.<>c__DisplayClass10_2::.ctor()
IL_0391: stloc.s 15 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_2)
IL_0393: ldloc.s 15 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_2)
IL_0395: ldloc.0
IL_0396: stfld RimWorld.<>c__DisplayClass10_0
RimWorld.<>c__DisplayClass10_2::CS$<>8__locals2
IL_039B: ldloc.s 15 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_2)
IL_039D: ldloc.s 14 (Verse.Thing)
IL_039F: stfld Verse.Thing RimWorld.<>c__DisplayClass10_2::t
IL_03A4: ldloc.s 15 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_2)
IL_03A6: ldfld Verse.Thing RimWorld.<>c__DisplayClass10_2::t
IL_03AB: ldfld Verse.ThingDef Verse.Thing::def
IL_03B0: ldfld RimWorld.IngestibleProperties Verse.ThingDef::ingestible
IL_03B5: brfalse => Label28
IL_03BA: ldloc.s 15 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_2)
IL_03BC: ldfld RimWorld.<>c__DisplayClass10_0
RimWorld.<>c__DisplayClass10_2::CS$<>8__locals2
IL_03C1: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_03C6: callvirt Verse.RaceProperties Verse.Pawn::get_RaceProps()
IL_03CB: ldloc.s 15 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_2)
IL_03CD: ldfld Verse.Thing RimWorld.<>c__DisplayClass10_2::t
IL_03D2: callvirt System.Boolean
Verse.RaceProperties::CanEverEat(Verse.Thing t)
IL_03D7: brfalse => Label29
IL_03DC: ldloc.s 15 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_2)
IL_03DE: ldfld Verse.Thing RimWorld.<>c__DisplayClass10_2::t
IL_03E3: callvirt virtual System.Boolean Verse.Thing::get_IngestibleNow()
IL_03E8: brfalse => Label30
IL_03ED: ldloc.s 15 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_2)
IL_03EF: ldfld Verse.Thing RimWorld.<>c__DisplayClass10_2::t
IL_03F4: ldfld Verse.ThingDef Verse.Thing::def
IL_03F9: ldfld RimWorld.IngestibleProperties Verse.ThingDef::ingestible
IL_03FE: ldfld System.String
RimWorld.IngestibleProperties::ingestCommandString
IL_0403: call static System.Boolean
Verse.GenText::NullOrEmpty(System.String str)
IL_0408: brfalse => Label31
IL_040D: ldstr "ConsumeThing"
IL_0412: ldloc.s 15 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_2)
IL_0414: ldfld Verse.Thing RimWorld.<>c__DisplayClass10_2::t
IL_0419: callvirt virtual System.String Verse.Entity::get_LabelShort()
IL_041E: call static Verse.NamedArgument
Verse.NamedArgument::op_Implicit(System.String value)
IL_0423: ldloc.s 15 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_2)
IL_0425: ldfld Verse.Thing RimWorld.<>c__DisplayClass10_2::t
IL_042A: call static Verse.NamedArgument
Verse.NamedArgument::op_Implicit(Verse.Thing value)
IL_042F: call static Verse.TaggedString
Verse.TranslatorFormattedStringExtensions::Translate(System.String key,
Verse.NamedArgument arg1, Verse.NamedArgument arg2)
IL_0434: call static System.String
Verse.TaggedString::op_Implicit(Verse.TaggedString taggedString)
IL_0439: stloc.s 17 (System.String)
IL_043B: br => Label32
IL_0440: Label31
IL_0440: ldloc.s 15 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_2)
IL_0442: ldfld Verse.Thing RimWorld.<>c__DisplayClass10_2::t
IL_0447: ldfld Verse.ThingDef Verse.Thing::def
IL_044C: ldfld RimWorld.IngestibleProperties Verse.ThingDef::ingestible
IL_0451: ldfld System.String
RimWorld.IngestibleProperties::ingestCommandString
IL_0456: ldloc.s 15 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_2)
IL_0458: ldfld Verse.Thing RimWorld.<>c__DisplayClass10_2::t
IL_045D: callvirt virtual System.String Verse.Entity::get_LabelShort()
IL_0462: call static Verse.NamedArgument
Verse.NamedArgument::op_Implicit(System.String value)
IL_0467: call static Verse.TaggedString
Verse.GrammarResolverSimpleStringExtensions::Formatted(System.String str,
Verse.NamedArgument arg1)
IL_046C: call static System.String
Verse.TaggedString::op_Implicit(Verse.TaggedString taggedString)
IL_0471: stloc.s 17 (System.String)
IL_0473: Label32
IL_0473: ldloc.s 15 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_2)
IL_0475: ldfld Verse.Thing RimWorld.<>c__DisplayClass10_2::t
IL_047A: ldloc.s 15 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_2)
IL_047C: ldfld RimWorld.<>c__DisplayClass10_0
RimWorld.<>c__DisplayClass10_2::CS$<>8__locals2
IL_0481: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_0486: call static System.Boolean
RimWorld.SocialProperness::IsSociallyProper(Verse.Thing t, Verse.Pawn p)
IL_048B: brtrue => Label33
IL_0490: ldloc.s 17 (System.String)
IL_0492: ldstr ": "
IL_0497: call static System.String System.String::Concat(System.String
str0, System.String str1)
IL_049C: ldstr "ReservedForPrisoners"
IL_04A1: call static Verse.TaggedString
Verse.Translator::Translate(System.String key)
IL_04A6: stloc.s 11 (Verse.TaggedString)
IL_04A8: ldloca.s 11 (Verse.TaggedString)
IL_04AA: call Verse.TaggedString Verse.TaggedString::CapitalizeFirst()
IL_04AF: call static Verse.TaggedString
Verse.TaggedString::op_Addition(System.String t1, Verse.TaggedString t2)
IL_04B4: call static System.String
Verse.TaggedString::op_Implicit(Verse.TaggedString taggedString)
IL_04B9: stloc.s 17 (System.String)
IL_04BB: br => Label34
IL_04C0: Label33
IL_04C0: ldloc.s 15 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_2)
IL_04C2: ldfld RimWorld.<>c__DisplayClass10_0
RimWorld.<>c__DisplayClass10_2::CS$<>8__locals2
IL_04C7: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_04CC: ldloc.s 15 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_2)
IL_04CE: ldfld Verse.Thing RimWorld.<>c__DisplayClass10_2::t
IL_04D3: ldloc.s 15 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_2)
IL_04D5: ldfld Verse.Thing RimWorld.<>c__DisplayClass10_2::t
IL_04DA: ldfld Verse.ThingDef Verse.Thing::def
IL_04DF: call static System.Single
RimWorld.FoodUtility::MoodFromIngesting(Verse.Pawn ingester, Verse.Thing
foodSource, Verse.ThingDef foodDef)
IL_04E4: ldc.r4 0
IL_04E9: bge.un => Label35
IL_04EE: ldstr "{0}: ({1})"
IL_04F3: ldloc.s 17 (System.String)
IL_04F5: ldstr "WarningFoodDisliked"
IL_04FA: call static Verse.TaggedString
Verse.Translator::Translate(System.String key)
IL_04FF: box Verse.TaggedString
IL_0504: call static System.String System.String::Format(System.String
format, System.Object arg0, System.Object arg1)
IL_0509: stloc.s 17 (System.String)
IL_050B: Label34
IL_050B: Label35
IL_050B: ldloc.s 15 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_2)
IL_050D: ldfld Verse.Thing RimWorld.<>c__DisplayClass10_2::t
IL_0512: ldfld Verse.ThingDef Verse.Thing::def
IL_0517: callvirt System.Boolean Verse.ThingDef::get_IsDrug()
IL_051C: brfalse => Label36
IL_0521: call static System.Boolean
Verse.ModsConfig::get_IdeologyActive()
IL_0526: brfalse => Label37
IL_052B: ldsfld RimWorld.HistoryEventDef
RimWorld.HistoryEventDefOf::IngestedDrug
IL_0530: ldloc.s 15 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_2)
IL_0532: ldfld RimWorld.<>c__DisplayClass10_0
RimWorld.<>c__DisplayClass10_2::CS$<>8__locals2
IL_0537: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_053C: ldsfld System.String RimWorld.HistoryEventArgsNames::Doer
IL_0541: call static Verse.NamedArgument
Verse.NamedArgumentUtility::Named(System.Object arg, System.String label)
IL_0546: newobj System.Void
RimWorld.HistoryEvent::.ctor(RimWorld.HistoryEventDef def, Verse.NamedArgument
arg1)
IL_054B: ldloca.s 16 (Verse.FloatMenuOption)
IL_054D: ldloc.s 17 (System.String)
IL_054F: call static System.Boolean
RimWorld.IdeoUtility::Notify_PawnAboutToDo(RimWorld.HistoryEvent ev,
Verse.FloatMenuOption& opt, System.String baseText)
IL_0554: brtrue => Label38
IL_0559: ldloc.s 15 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_2)
IL_055B: ldfld RimWorld.<>c__DisplayClass10_0
RimWorld.<>c__DisplayClass10_2::CS$<>8__locals2
IL_0560: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_0565: ldloc.s 15 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_2)
IL_0567: ldfld Verse.Thing RimWorld.<>c__DisplayClass10_2::t
IL_056C: ldfld Verse.ThingDef Verse.Thing::def
IL_0571: call static System.Boolean
RimWorld.PawnUtility::CanTakeDrugForDependency(Verse.Pawn pawn, Verse.ThingDef
drug)
IL_0576: brfalse => Label39
IL_057B: Label36
IL_057B: Label37
IL_057B: Label38
IL_057B: ldloc.s 15 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_2)
IL_057D: ldfld Verse.Thing RimWorld.<>c__DisplayClass10_2::t
IL_0582: ldfld Verse.ThingDef Verse.Thing::def
IL_0587: callvirt System.Boolean Verse.ThingDef::get_IsNonMedicalDrug()
IL_058C: brfalse => Label40
IL_0591: call static System.Boolean
Verse.ModsConfig::get_IdeologyActive()
IL_0596: brfalse => Label41
IL_059B: ldsfld RimWorld.HistoryEventDef
RimWorld.HistoryEventDefOf::IngestedRecreationalDrug
IL_05A0: ldloc.s 15 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_2)
IL_05A2: ldfld RimWorld.<>c__DisplayClass10_0
RimWorld.<>c__DisplayClass10_2::CS$<>8__locals2
IL_05A7: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_05AC: ldsfld System.String RimWorld.HistoryEventArgsNames::Doer
IL_05B1: call static Verse.NamedArgument
Verse.NamedArgumentUtility::Named(System.Object arg, System.String label)
IL_05B6: newobj System.Void
RimWorld.HistoryEvent::.ctor(RimWorld.HistoryEventDef def, Verse.NamedArgument
arg1)
IL_05BB: ldloca.s 16 (Verse.FloatMenuOption)
IL_05BD: ldloc.s 17 (System.String)
IL_05BF: call static System.Boolean
RimWorld.IdeoUtility::Notify_PawnAboutToDo(RimWorld.HistoryEvent ev,
Verse.FloatMenuOption& opt, System.String baseText)
IL_05C4: brtrue => Label42
IL_05C9: ldloc.s 15 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_2)
IL_05CB: ldfld RimWorld.<>c__DisplayClass10_0
RimWorld.<>c__DisplayClass10_2::CS$<>8__locals2
IL_05D0: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_05D5: ldloc.s 15 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_2)
IL_05D7: ldfld Verse.Thing RimWorld.<>c__DisplayClass10_2::t
IL_05DC: ldfld Verse.ThingDef Verse.Thing::def
IL_05E1: call static System.Boolean
RimWorld.PawnUtility::CanTakeDrugForDependency(Verse.Pawn pawn, Verse.ThingDef
drug)
IL_05E6: brfalse => Label43
IL_05EB: Label40
IL_05EB: Label41
IL_05EB: Label42
IL_05EB: ldloc.s 15 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_2)
IL_05ED: ldfld Verse.Thing RimWorld.<>c__DisplayClass10_2::t
IL_05F2: ldfld Verse.ThingDef Verse.Thing::def
IL_05F7: callvirt System.Boolean Verse.ThingDef::get_IsDrug()
IL_05FC: brfalse => Label44
IL_0601: call static System.Boolean
Verse.ModsConfig::get_IdeologyActive()
IL_0606: brfalse => Label45
IL_060B: ldloc.s 15 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_2)
IL_060D: ldfld Verse.Thing RimWorld.<>c__DisplayClass10_2::t
IL_0612: ldfld Verse.ThingDef Verse.Thing::def
IL_0617: ldfld RimWorld.IngestibleProperties Verse.ThingDef::ingestible
IL_061C: ldfld RimWorld.DrugCategory
RimWorld.IngestibleProperties::drugCategory
IL_0621: ldc.i4.3
IL_0622: bne.un => Label46
IL_0627: ldsfld RimWorld.HistoryEventDef
RimWorld.HistoryEventDefOf::IngestedHardDrug
IL_062C: ldloc.s 15 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_2)
IL_062E: ldfld RimWorld.<>c__DisplayClass10_0
RimWorld.<>c__DisplayClass10_2::CS$<>8__locals2
IL_0633: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_0638: ldsfld System.String RimWorld.HistoryEventArgsNames::Doer
IL_063D: call static Verse.NamedArgument
Verse.NamedArgumentUtility::Named(System.Object arg, System.String label)
IL_0642: newobj System.Void
RimWorld.HistoryEvent::.ctor(RimWorld.HistoryEventDef def, Verse.NamedArgument
arg1)
IL_0647: ldloca.s 16 (Verse.FloatMenuOption)
IL_0649: ldloc.s 17 (System.String)
IL_064B: call static System.Boolean
RimWorld.IdeoUtility::Notify_PawnAboutToDo(RimWorld.HistoryEvent ev,
Verse.FloatMenuOption& opt, System.String baseText)
IL_0650: brfalse => Label47
IL_0655: Label44
IL_0655: Label45
IL_0655: Label46
IL_0655: ldloc.s 15 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_2)
IL_0657: ldfld Verse.Thing RimWorld.<>c__DisplayClass10_2::t
IL_065C: ldfld Verse.ThingDef Verse.Thing::def
IL_0661: callvirt System.Boolean Verse.ThingDef::get_IsNonMedicalDrug()
IL_0666: brfalse => Label48
IL_066B: ldloc.s 15 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_2)
IL_066D: ldfld RimWorld.<>c__DisplayClass10_0
RimWorld.<>c__DisplayClass10_2::CS$<>8__locals2
IL_0672: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_0677: ldloc.s 15 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_2)
IL_0679: ldfld Verse.Thing RimWorld.<>c__DisplayClass10_2::t
IL_067E: ldfld Verse.ThingDef Verse.Thing::def
IL_0683: call static System.Boolean
RimWorld.PawnUtility::CanTakeDrug(Verse.Pawn pawn, Verse.ThingDef drug)
IL_0688: brtrue => Label49
IL_068D: ldloc.s 17 (System.String)
IL_068F: ldstr ": "
IL_0694: ldsfld RimWorld.TraitDef RimWorld.TraitDefOf::DrugDesire
IL_0699: ldc.i4.m1
IL_069A: callvirt RimWorld.TraitDegreeData
RimWorld.TraitDef::DataAtDegree(System.Int32 degree)
IL_069F: ldloc.s 15 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_2)
IL_06A1: ldfld RimWorld.<>c__DisplayClass10_0
RimWorld.<>c__DisplayClass10_2::CS$<>8__locals2
IL_06A6: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_06AB: callvirt System.String
RimWorld.TraitDegreeData::GetLabelCapFor(Verse.Pawn pawn)
IL_06B0: call static System.String System.String::Concat(System.String
str0, System.String str1, System.String str2)
IL_06B5: ldnull
IL_06B6: ldc.i4.4
IL_06B7: ldnull
IL_06B8: ldnull
IL_06B9: ldc.r4 0
IL_06BE: ldnull
IL_06BF: ldnull
IL_06C0: ldc.i4.1
IL_06C1: ldc.i4.0
IL_06C2: newobj System.Void Verse.FloatMenuOption::.ctor(System.String
label, System.Action action, Verse.MenuOptionPriority priority,
System.Action`1<UnityEngine.Rect> mouseoverGuiAction, Verse.Thing
revalidateClickTarget, System.Single extraPartWidth,
System.Func`2<UnityEngine.Rect, System.Boolean> extraPartOnGUI,
RimWorld.Planet.WorldObject revalidateWorldClickTarget, System.Boolean
playSelectionSound, System.Int32 orderInPriority)
IL_06C7: stloc.s 16 (Verse.FloatMenuOption)
IL_06C9: br => Label50
IL_06CE: Label48
IL_06CE: Label49
IL_06CE: ldloc.s 15 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_2)
IL_06D0: ldfld Verse.Thing RimWorld.<>c__DisplayClass10_2::t
IL_06D5: ldfld Verse.ThingDef Verse.Thing::def
IL_06DA: ldloc.s 15 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_2)
IL_06DC: ldfld RimWorld.<>c__DisplayClass10_0
RimWorld.<>c__DisplayClass10_2::CS$<>8__locals2
IL_06E1: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_06E6: ldc.i4.1
IL_06E7: call static System.Boolean
RimWorld.FoodUtility::InappropriateForTitle(Verse.ThingDef food, Verse.Pawn p,
System.Boolean allowIfStarving)
IL_06EC: brfalse => Label51
IL_06F1: ldloc.s 17 (System.String)
IL_06F3: ldstr ": "
IL_06F8: call static System.String System.String::Concat(System.String
str0, System.String str1)
IL_06FD: ldstr "FoodBelowTitleRequirements"
IL_0702: ldloc.s 15 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_2)
IL_0704: ldfld RimWorld.<>c__DisplayClass10_0
RimWorld.<>c__DisplayClass10_2::CS$<>8__locals2
IL_0709: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_070E: ldfld RimWorld.Pawn_RoyaltyTracker Verse.Pawn::royalty
IL_0713: callvirt RimWorld.RoyalTitle
RimWorld.Pawn_RoyaltyTracker::get_MostSeniorTitle()
IL_0718: ldfld RimWorld.RoyalTitleDef RimWorld.RoyalTitle::def
IL_071D: ldloc.s 15 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_2)
IL_071F: ldfld RimWorld.<>c__DisplayClass10_0
RimWorld.<>c__DisplayClass10_2::CS$<>8__locals2
IL_0724: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_0729: callvirt System.String
RimWorld.RoyalTitleDef::GetLabelFor(Verse.Pawn p)
IL_072E: call static System.String
Verse.GenText::CapitalizeFirst(System.String str)
IL_0733: call static Verse.NamedArgument
Verse.NamedArgument::op_Implicit(System.String value)
IL_0738: call static Verse.TaggedString
Verse.TranslatorFormattedStringExtensions::Translate(System.String key,
Verse.NamedArgument arg1)
IL_073D: stloc.s 11 (Verse.TaggedString)
IL_073F: ldloca.s 11 (Verse.TaggedString)
IL_0741: call Verse.TaggedString Verse.TaggedString::CapitalizeFirst()
IL_0746: call static Verse.TaggedString
Verse.TaggedString::op_Addition(System.String t1, Verse.TaggedString t2)
IL_074B: call static System.String
Verse.TaggedString::op_Implicit(Verse.TaggedString taggedString)
IL_0750: ldnull
IL_0751: ldc.i4.4
IL_0752: ldnull
IL_0753: ldnull
IL_0754: ldc.r4 0
IL_0759: ldnull
IL_075A: ldnull
IL_075B: ldc.i4.1
IL_075C: ldc.i4.0
IL_075D: newobj System.Void Verse.FloatMenuOption::.ctor(System.String
label, System.Action action, Verse.MenuOptionPriority priority,
System.Action`1<UnityEngine.Rect> mouseoverGuiAction, Verse.Thing
revalidateClickTarget, System.Single extraPartWidth,
System.Func`2<UnityEngine.Rect, System.Boolean> extraPartOnGUI,
RimWorld.Planet.WorldObject revalidateWorldClickTarget, System.Boolean
playSelectionSound, System.Int32 orderInPriority)
IL_0762: stloc.s 16 (Verse.FloatMenuOption)
IL_0764: br => Label52
IL_0769: Label51
IL_0769: ldloc.s 15 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_2)
IL_076B: ldfld RimWorld.<>c__DisplayClass10_0
RimWorld.<>c__DisplayClass10_2::CS$<>8__locals2
IL_0770: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_0775: ldloc.s 15 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_2)
IL_0777: ldfld Verse.Thing RimWorld.<>c__DisplayClass10_2::t
IL_077C: call static Verse.LocalTargetInfo
Verse.LocalTargetInfo::op_Implicit(Verse.Thing t)
IL_0781: ldc.i4.1
IL_0782: ldc.i4.3
IL_0783: ldc.i4.0
IL_0784: ldc.i4.0
IL_0785: ldc.i4.0
IL_0786: call static System.Boolean
Verse.ReachabilityUtility::CanReach(Verse.Pawn pawn, Verse.LocalTargetInfo dest,
Verse.AI.PathEndMode peMode, Verse.Danger maxDanger, System.Boolean canBashDoors,
System.Boolean canBashFences, Verse.TraverseMode mode)
IL_078B: brtrue => Label53
IL_0790: ldloc.s 17 (System.String)
IL_0792: ldstr ": "
IL_0797: call static System.String System.String::Concat(System.String
str0, System.String str1)
IL_079C: ldstr "NoPath"
IL_07A1: call static Verse.TaggedString
Verse.Translator::Translate(System.String key)
IL_07A6: stloc.s 11 (Verse.TaggedString)
IL_07A8: ldloca.s 11 (Verse.TaggedString)
IL_07AA: call Verse.TaggedString Verse.TaggedString::CapitalizeFirst()
IL_07AF: call static Verse.TaggedString
Verse.TaggedString::op_Addition(System.String t1, Verse.TaggedString t2)
IL_07B4: call static System.String
Verse.TaggedString::op_Implicit(Verse.TaggedString taggedString)
IL_07B9: ldnull
IL_07BA: ldc.i4.4
IL_07BB: ldnull
IL_07BC: ldnull
IL_07BD: ldc.r4 0
IL_07C2: ldnull
IL_07C3: ldnull
IL_07C4: ldc.i4.1
IL_07C5: ldc.i4.0
IL_07C6: newobj System.Void Verse.FloatMenuOption::.ctor(System.String
label, System.Action action, Verse.MenuOptionPriority priority,
System.Action`1<UnityEngine.Rect> mouseoverGuiAction, Verse.Thing
revalidateClickTarget, System.Single extraPartWidth,
System.Func`2<UnityEngine.Rect, System.Boolean> extraPartOnGUI,
RimWorld.Planet.WorldObject revalidateWorldClickTarget, System.Boolean
playSelectionSound, System.Int32 orderInPriority)
IL_07CB: stloc.s 16 (Verse.FloatMenuOption)
IL_07CD: br => Label54
IL_07D2: Label53
IL_07D2: ldloc.s 15 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_2)
IL_07D4: ldfld Verse.Thing RimWorld.<>c__DisplayClass10_2::t
IL_07D9: isinst Verse.Corpse
IL_07DE: brtrue => Label55
IL_07E3: ldc.i4.4
IL_07E4: br => Label56
IL_07E9: Label55
IL_07E9: ldc.i4.2
IL_07EA: Label56
IL_07EA: stloc.s 18 (Verse.MenuOptionPriority)
IL_07EC: ldloc.s 15 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_2)
IL_07EE: ldfld Verse.Thing RimWorld.<>c__DisplayClass10_2::t
IL_07F3: ldloc.s 15 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_2)
IL_07F5: ldfld RimWorld.<>c__DisplayClass10_0
RimWorld.<>c__DisplayClass10_2::CS$<>8__locals2
IL_07FA: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_07FF: ldloc.s 15 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_2)
IL_0801: ldfld RimWorld.<>c__DisplayClass10_0
RimWorld.<>c__DisplayClass10_2::CS$<>8__locals2
IL_0806: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_080B: ldloc.s 15 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_2)
IL_080D: ldfld Verse.Thing RimWorld.<>c__DisplayClass10_2::t
IL_0812: ldfld Verse.ThingDef Verse.Thing::def
IL_0817: ldloc.s 15 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_2)
IL_0819: ldfld RimWorld.<>c__DisplayClass10_0
RimWorld.<>c__DisplayClass10_2::CS$<>8__locals2
IL_081E: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_0823: ldloc.s 15 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_2)
IL_0825: ldfld Verse.Thing RimWorld.<>c__DisplayClass10_2::t
IL_082A: call static System.Single
RimWorld.FoodUtility::NutritionForEater(Verse.Pawn eater, Verse.Thing food)
IL_082F: call static System.Int32
RimWorld.FoodUtility::WillIngestStackCountOf(Verse.Pawn ingester, Verse.ThingDef
def, System.Single singleFoodNutrition)
IL_0834: call static System.Int32
RimWorld.FoodUtility::GetMaxAmountToPickup(Verse.Thing food, Verse.Pawn pawn,
System.Int32 wantedCount)
IL_0839: ldloc.s 17 (System.String)
IL_083B: ldloc.s 15 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_2)
IL_083D: ldftn System.Void
RimWorld.<>c__DisplayClass10_2::<AddHumanlikeOrders>b__1()
IL_0843: newobj System.Void System.Action::.ctor(System.Object object,
System.IntPtr method)
IL_0848: ldloc.s 18 (Verse.MenuOptionPriority)
IL_084A: ldnull
IL_084B: ldnull
IL_084C: ldc.r4 0
IL_0851: ldnull
IL_0852: ldnull
IL_0853: ldc.i4.1
IL_0854: ldc.i4.0
IL_0855: newobj System.Void Verse.FloatMenuOption::.ctor(System.String
label, System.Action action, Verse.MenuOptionPriority priority,
System.Action`1<UnityEngine.Rect> mouseoverGuiAction, Verse.Thing
revalidateClickTarget, System.Single extraPartWidth,
System.Func`2<UnityEngine.Rect, System.Boolean> extraPartOnGUI,
RimWorld.Planet.WorldObject revalidateWorldClickTarget, System.Boolean
playSelectionSound, System.Int32 orderInPriority)
IL_085A: ldloc.s 15 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_2)
IL_085C: ldfld RimWorld.<>c__DisplayClass10_0
RimWorld.<>c__DisplayClass10_2::CS$<>8__locals2
IL_0861: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_0866: ldloc.s 15 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_2)
IL_0868: ldfld Verse.Thing RimWorld.<>c__DisplayClass10_2::t
IL_086D: call static Verse.LocalTargetInfo
Verse.LocalTargetInfo::op_Implicit(Verse.Thing t)
IL_0872: ldstr "ReservedBy"
IL_0877: ldnull
IL_0878: call static Verse.FloatMenuOption
RimWorld.FloatMenuUtility::DecoratePrioritizedTask(Verse.FloatMenuOption option,
Verse.Pawn pawn, Verse.LocalTargetInfo target, System.String reservedText,
Verse.ReservationLayerDef layer)
IL_087D: stloc.s 16 (Verse.FloatMenuOption)
IL_087F: brtrue => Label57
IL_0884: ldloc.s 16 (Verse.FloatMenuOption)
IL_0886: ldnull
IL_0887: stfld System.Action Verse.FloatMenuOption::action
IL_088C: Label39
IL_088C: Label43
IL_088C: Label47
IL_088C: Label50
IL_088C: Label52
IL_088C: Label54
IL_088C: Label57
IL_088C: ldarg.2
IL_088D: ldloc.s 16 (Verse.FloatMenuOption)
IL_088F: callvirt virtual System.Void
System.Collections.Generic.List`1<Verse.FloatMenuOption>::Add(Verse.FloatMenuOption
item)
IL_0894: Label27
IL_0894: Label28
IL_0894: Label29
IL_0894: Label30
IL_0894: ldloca.s 2
(System.Collections.Generic.List`1+Enumerator[Verse.Thing])
IL_0896: call virtual System.Boolean
System.Collections.Generic.Enumerator<Verse.Thing>::MoveNext()
IL_089B: brtrue => Label58
IL_08A0: leave => Label59
IL_08A5: leave => (autogenerated)
} // end try
.finally
{
IL_08AA: ldloca.s 2
(System.Collections.Generic.List`1+Enumerator[Verse.Thing])
IL_08AC: constrained.
System.Collections.Generic.List`1+Enumerator[Verse.Thing]
IL_08B2: callvirt abstract virtual System.Void
System.IDisposable::Dispose()
IL_08B7: endfinally
IL_08B8: leave => (autogenerated)
} // end handler
IL_08B9: Label59
IL_08B9: ldarg.0
IL_08BA: ldloc.0
IL_08BB: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_08C0: call static RimWorld.TargetingParameters
RimWorld.TargetingParameters::ForQuestPawnsWhoWillJoinColony(Verse.Pawn p)
IL_08C5: ldc.i4.1
IL_08C6: ldnull
IL_08C7: call static
System.Collections.Generic.IEnumerable`1<Verse.LocalTargetInfo>
Verse.GenUI::TargetsAt(UnityEngine.Vector3 clickPos, RimWorld.TargetingParameters
clickParams, System.Boolean thingsOnly, RimWorld.ITargetingSource source)
IL_08CC: callvirt abstract virtual
System.Collections.Generic.IEnumerator`1<Verse.LocalTargetInfo>
System.Collections.Generic.IEnumerable`1<Verse.LocalTargetInfo>::GetEnumerator()
IL_08D1: stloc.s 8
(System.Collections.Generic.IEnumerator`1[Verse.LocalTargetInfo])
.try
{
IL_08D3: br => Label60
IL_08D8: Label65
IL_08D8: ldloc.s 8
(System.Collections.Generic.IEnumerator`1[Verse.LocalTargetInfo])
IL_08DA: callvirt abstract virtual Verse.LocalTargetInfo
System.Collections.Generic.IEnumerator`1<Verse.LocalTargetInfo>::get_Current()
IL_08DF: stloc.s 19 (Verse.LocalTargetInfo)
IL_08E1: newobj System.Void RimWorld.<>c__DisplayClass10_3::.ctor()
IL_08E6: stloc.s 20 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_3)
IL_08E8: ldloc.s 20 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_3)
IL_08EA: ldloc.0
IL_08EB: stfld RimWorld.<>c__DisplayClass10_0
RimWorld.<>c__DisplayClass10_3::CS$<>8__locals3
IL_08F0: ldloc.s 20 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_3)
IL_08F2: ldloca.s 19 (Verse.LocalTargetInfo)
IL_08F4: call Verse.Thing Verse.LocalTargetInfo::get_Thing()
IL_08F9: castclass Verse.Pawn
IL_08FE: stfld Verse.Pawn RimWorld.<>c__DisplayClass10_3::toHelpPawn
IL_0903: ldloc.s 20 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_3)
IL_0905: ldfld RimWorld.<>c__DisplayClass10_0
RimWorld.<>c__DisplayClass10_3::CS$<>8__locals3
IL_090A: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_090F: ldloc.s 19 (Verse.LocalTargetInfo)
IL_0911: ldc.i4.2
IL_0912: ldc.i4.3
IL_0913: ldc.i4.0
IL_0914: ldc.i4.0
IL_0915: ldc.i4.0
IL_0916: call static System.Boolean
Verse.ReachabilityUtility::CanReach(Verse.Pawn pawn, Verse.LocalTargetInfo dest,
Verse.AI.PathEndMode peMode, Verse.Danger maxDanger, System.Boolean canBashDoors,
System.Boolean canBashFences, Verse.TraverseMode mode)
IL_091B: brtrue => Label61
IL_0920: ldstr "CannotGoNoPath"
IL_0925: call static Verse.TaggedString
Verse.Translator::Translate(System.String key)
IL_092A: call static System.String
Verse.TaggedString::op_Implicit(Verse.TaggedString taggedString)
IL_092F: ldnull
IL_0930: ldc.i4.4
IL_0931: ldnull
IL_0932: ldnull
IL_0933: ldc.r4 0
IL_0938: ldnull
IL_0939: ldnull
IL_093A: ldc.i4.1
IL_093B: ldc.i4.0
IL_093C: newobj System.Void Verse.FloatMenuOption::.ctor(System.String
label, System.Action action, Verse.MenuOptionPriority priority,
System.Action`1<UnityEngine.Rect> mouseoverGuiAction, Verse.Thing
revalidateClickTarget, System.Single extraPartWidth,
System.Func`2<UnityEngine.Rect, System.Boolean> extraPartOnGUI,
RimWorld.Planet.WorldObject revalidateWorldClickTarget, System.Boolean
playSelectionSound, System.Int32 orderInPriority)
IL_0941: stloc.s 21 (Verse.FloatMenuOption)
IL_0943: br => Label62
IL_0948: Label61
IL_0948: ldloc.s 20 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_3)
IL_094A: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_3::toHelpPawn
IL_094F: callvirt System.Boolean Verse.Pawn::get_IsPrisoner()
IL_0954: brtrue => Label63
IL_0959: ldstr "OfferHelp"
IL_095E: call static Verse.TaggedString
Verse.Translator::Translate(System.String key)
IL_0963: br => Label64
IL_0968: Label63
IL_0968: ldstr "FreePrisoner"
IL_096D: call static Verse.TaggedString
Verse.Translator::Translate(System.String key)
IL_0972: Label64
IL_0972: call static System.String
Verse.TaggedString::op_Implicit(Verse.TaggedString taggedString)
IL_0977: ldloc.s 20 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_3)
IL_0979: ldftn System.Void
RimWorld.<>c__DisplayClass10_3::<AddHumanlikeOrders>b__2()
IL_097F: newobj System.Void System.Action::.ctor(System.Object object,
System.IntPtr method)
IL_0984: ldc.i4.8
IL_0985: ldnull
IL_0986: ldloc.s 20 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_3)
IL_0988: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_3::toHelpPawn
IL_098D: ldc.r4 0
IL_0992: ldnull
IL_0993: ldnull
IL_0994: ldc.i4.1
IL_0995: ldc.i4.0
IL_0996: newobj System.Void Verse.FloatMenuOption::.ctor(System.String
label, System.Action action, Verse.MenuOptionPriority priority,
System.Action`1<UnityEngine.Rect> mouseoverGuiAction, Verse.Thing
revalidateClickTarget, System.Single extraPartWidth,
System.Func`2<UnityEngine.Rect, System.Boolean> extraPartOnGUI,
RimWorld.Planet.WorldObject revalidateWorldClickTarget, System.Boolean
playSelectionSound, System.Int32 orderInPriority)
IL_099B: ldloc.s 20 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_3)
IL_099D: ldfld RimWorld.<>c__DisplayClass10_0
RimWorld.<>c__DisplayClass10_3::CS$<>8__locals3
IL_09A2: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_09A7: ldloc.s 20 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_3)
IL_09A9: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_3::toHelpPawn
IL_09AE: call static Verse.LocalTargetInfo
Verse.LocalTargetInfo::op_Implicit(Verse.Thing t)
IL_09B3: ldstr "ReservedBy"
IL_09B8: ldnull
IL_09B9: call static Verse.FloatMenuOption
RimWorld.FloatMenuUtility::DecoratePrioritizedTask(Verse.FloatMenuOption option,
Verse.Pawn pawn, Verse.LocalTargetInfo target, System.String reservedText,
Verse.ReservationLayerDef layer)
IL_09BE: stloc.s 21 (Verse.FloatMenuOption)
IL_09C0: Label62
IL_09C0: ldarg.2
IL_09C1: ldloc.s 21 (Verse.FloatMenuOption)
IL_09C3: callvirt virtual System.Void
System.Collections.Generic.List`1<Verse.FloatMenuOption>::Add(Verse.FloatMenuOption
item)
IL_09C8: Label60
IL_09C8: ldloc.s 8
(System.Collections.Generic.IEnumerator`1[Verse.LocalTargetInfo])
IL_09CA: callvirt abstract virtual System.Boolean
System.Collections.IEnumerator::MoveNext()
IL_09CF: brtrue => Label65
IL_09D4: leave => Label66
IL_09D9: leave => (autogenerated)
} // end try
.finally
{
IL_09DE: ldloc.s 8
(System.Collections.Generic.IEnumerator`1[Verse.LocalTargetInfo])
IL_09E0: brfalse => Label67
IL_09E5: ldloc.s 8
(System.Collections.Generic.IEnumerator`1[Verse.LocalTargetInfo])
IL_09E7: callvirt abstract virtual System.Void
System.IDisposable::Dispose()
IL_09EC: Label67
IL_09EC: endfinally
IL_09ED: leave => (autogenerated)
} // end handler
IL_09EE: Label66
IL_09EE: ldloc.0
IL_09EF: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_09F4: ldfld Verse.Pawn_HealthTracker Verse.Pawn::health
IL_09F9: ldfld Verse.PawnCapacitiesHandler
Verse.Pawn_HealthTracker::capacities
IL_09FE: ldsfld Verse.PawnCapacityDef RimWorld.PawnCapacityDefOf::Manipulation
IL_0A03: callvirt System.Boolean
Verse.PawnCapacitiesHandler::CapableOf(Verse.PawnCapacityDef capacity)
IL_0A08: brfalse => Label68
IL_0A0D: ldloc.1
IL_0A0E: ldloc.0
IL_0A0F: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_0A14: callvirt virtual Verse.Map Verse.Thing::get_Map()
IL_0A19: call static System.Collections.Generic.List`1<Verse.Thing>
Verse.GridsUtility::GetThingList(Verse.IntVec3 c, Verse.Map map)
IL_0A1E: stloc.s 22 (System.Collections.Generic.List`1[Verse.Thing])
IL_0A20: ldloc.s 22 (System.Collections.Generic.List`1[Verse.Thing])
IL_0A22: callvirt System.Collections.Generic.Enumerator<Verse.Thing>
System.Collections.Generic.List`1<Verse.Thing>::GetEnumerator()
IL_0A27: stloc.2
.try
{
IL_0A28: br => Label69
IL_0A2D: Label75
IL_0A2D: ldloca.s 2
(System.Collections.Generic.List`1+Enumerator[Verse.Thing])
IL_0A2F: call virtual Verse.Thing
System.Collections.Generic.Enumerator<Verse.Thing>::get_Current()
IL_0A34: stloc.s 23 (Verse.Thing)
IL_0A36: newobj System.Void RimWorld.<>c__DisplayClass10_4::.ctor()
IL_0A3B: stloc.s 24 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_4)
IL_0A3D: ldloc.s 24 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_4)
IL_0A3F: ldloc.0
IL_0A40: stfld RimWorld.<>c__DisplayClass10_0
RimWorld.<>c__DisplayClass10_4::CS$<>8__locals4
IL_0A45: ldloc.s 24 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_4)
IL_0A47: ldloc.s 23 (Verse.Thing)
IL_0A49: isinst Verse.Corpse
IL_0A4E: stfld Verse.Corpse RimWorld.<>c__DisplayClass10_4::corpse
IL_0A53: ldloc.s 24 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_4)
IL_0A55: ldfld Verse.Corpse RimWorld.<>c__DisplayClass10_4::corpse
IL_0A5A: brfalse => Label70
IL_0A5F: ldloc.s 24 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_4)
IL_0A61: ldfld Verse.Corpse RimWorld.<>c__DisplayClass10_4::corpse
IL_0A66: call static System.Boolean
RimWorld.StoreUtility::IsInValidStorage(Verse.Thing t)
IL_0A6B: brfalse => Label71
IL_0A70: ldloc.s 24 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_4)
IL_0A72: ldfld Verse.Corpse RimWorld.<>c__DisplayClass10_4::corpse
IL_0A77: call static RimWorld.IHaulDestination
RimWorld.StoreUtility::CurrentHaulDestinationOf(Verse.Thing t)
IL_0A7C: callvirt abstract virtual RimWorld.StorageSettings
RimWorld.IStoreSettingsParent::GetStoreSettings()
IL_0A81: callvirt RimWorld.StoragePriority
RimWorld.StorageSettings::get_Priority()
IL_0A86: stloc.s 26 (RimWorld.StoragePriority)
IL_0A88: ldloc.s 24 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_4)
IL_0A8A: ldfld Verse.Corpse RimWorld.<>c__DisplayClass10_4::corpse
IL_0A8F: ldloc.s 24 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_4)
IL_0A91: ldfld RimWorld.<>c__DisplayClass10_0
RimWorld.<>c__DisplayClass10_4::CS$<>8__locals4
IL_0A96: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_0A9B: ldloc.s 24 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_4)
IL_0A9D: ldfld RimWorld.<>c__DisplayClass10_0
RimWorld.<>c__DisplayClass10_4::CS$<>8__locals4
IL_0AA2: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_0AA7: callvirt virtual Verse.Map Verse.Thing::get_Map()
IL_0AAC: ldloc.s 26 (RimWorld.StoragePriority)
IL_0AAE: call static RimWorld.Faction RimWorld.Faction::get_OfPlayer()
IL_0AB3: ldloca.s 25 (RimWorld.IHaulDestination)
IL_0AB5: ldc.i4.1
IL_0AB6: call static System.Boolean
RimWorld.StoreUtility::TryFindBestBetterNonSlotGroupStorageFor(Verse.Thing t,
Verse.Pawn carrier, Verse.Map map, RimWorld.StoragePriority currentPriority,
RimWorld.Faction faction, RimWorld.IHaulDestination& haulDestination,
System.Boolean acceptSamePriority)
IL_0ABB: brfalse => Label72
IL_0AC0: ldloc.s 25 (RimWorld.IHaulDestination)
IL_0AC2: callvirt abstract virtual RimWorld.StorageSettings
RimWorld.IStoreSettingsParent::GetStoreSettings()
IL_0AC7: callvirt RimWorld.StoragePriority
RimWorld.StorageSettings::get_Priority()
IL_0ACC: ldloc.s 26 (RimWorld.StoragePriority)
IL_0ACE: bne.un => Label73
IL_0AD3: ldloc.s 25 (RimWorld.IHaulDestination)
IL_0AD5: isinst RimWorld.Building_Grave
IL_0ADA: brfalse => Label74
IL_0ADF: newobj System.Void RimWorld.<>c__DisplayClass10_5::.ctor()
IL_0AE4: stloc.s 27 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_5)
IL_0AE6: ldloc.s 27 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_5)
IL_0AE8: ldloc.s 24 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_4)
IL_0AEA: stfld RimWorld.<>c__DisplayClass10_4
RimWorld.<>c__DisplayClass10_5::CS$<>8__locals5
IL_0AEF: ldloc.s 27 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_5)
IL_0AF1: ldloc.s 25 (RimWorld.IHaulDestination)
IL_0AF3: isinst RimWorld.Building_Grave
IL_0AF8: stfld RimWorld.Building_Grave
RimWorld.<>c__DisplayClass10_5::grave
IL_0AFD: ldarg.2
IL_0AFE: ldstr "PrioritizeGeneric"
IL_0B03: ldstr "Burying"
IL_0B08: call static Verse.TaggedString
Verse.Translator::Translate(System.String key)
IL_0B0D: call static Verse.NamedArgument
Verse.NamedArgument::op_Implicit(Verse.TaggedString value)
IL_0B12: ldloc.s 27 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_5)
IL_0B14: ldfld RimWorld.<>c__DisplayClass10_4
RimWorld.<>c__DisplayClass10_5::CS$<>8__locals5
IL_0B19: ldfld Verse.Corpse RimWorld.<>c__DisplayClass10_4::corpse
IL_0B1E: callvirt abstract virtual System.String Verse.Entity::get_Label()
IL_0B23: call static Verse.NamedArgument
Verse.NamedArgument::op_Implicit(System.String value)
IL_0B28: call static Verse.TaggedString
Verse.TranslatorFormattedStringExtensions::Translate(System.String key,
Verse.NamedArgument arg1, Verse.NamedArgument arg2)
IL_0B2D: stloc.s 11 (Verse.TaggedString)
IL_0B2F: ldloca.s 11 (Verse.TaggedString)
IL_0B31: call Verse.TaggedString Verse.TaggedString::CapitalizeFirst()
IL_0B36: call static System.String
Verse.TaggedString::op_Implicit(Verse.TaggedString taggedString)
IL_0B3B: ldloc.s 27 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_5)
IL_0B3D: ldftn System.Void
RimWorld.<>c__DisplayClass10_5::<AddHumanlikeOrders>b__3()
IL_0B43: newobj System.Void System.Action::.ctor(System.Object object,
System.IntPtr method)
IL_0B48: ldc.i4.4
IL_0B49: ldnull
IL_0B4A: ldnull
IL_0B4B: ldc.r4 0
IL_0B50: ldnull
IL_0B51: ldnull
IL_0B52: ldc.i4.1
IL_0B53: ldc.i4.0
IL_0B54: newobj System.Void Verse.FloatMenuOption::.ctor(System.String
label, System.Action action, Verse.MenuOptionPriority priority,
System.Action`1<UnityEngine.Rect> mouseoverGuiAction, Verse.Thing
revalidateClickTarget, System.Single extraPartWidth,
System.Func`2<UnityEngine.Rect, System.Boolean> extraPartOnGUI,
RimWorld.Planet.WorldObject revalidateWorldClickTarget, System.Boolean
playSelectionSound, System.Int32 orderInPriority)
IL_0B59: ldloc.s 27 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_5)
IL_0B5B: ldfld RimWorld.<>c__DisplayClass10_4
RimWorld.<>c__DisplayClass10_5::CS$<>8__locals5
IL_0B60: ldfld RimWorld.<>c__DisplayClass10_0
RimWorld.<>c__DisplayClass10_4::CS$<>8__locals4
IL_0B65: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_0B6A: ldloc.s 27 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_5)
IL_0B6C: ldfld RimWorld.<>c__DisplayClass10_4
RimWorld.<>c__DisplayClass10_5::CS$<>8__locals5
IL_0B71: ldfld Verse.Corpse RimWorld.<>c__DisplayClass10_4::corpse
IL_0B76: newobj System.Void Verse.LocalTargetInfo::.ctor(Verse.Thing
thing)
IL_0B7B: ldstr "ReservedBy"
IL_0B80: ldnull
IL_0B81: call static Verse.FloatMenuOption
RimWorld.FloatMenuUtility::DecoratePrioritizedTask(Verse.FloatMenuOption option,
Verse.Pawn pawn, Verse.LocalTargetInfo target, System.String reservedText,
Verse.ReservationLayerDef layer)
IL_0B86: callvirt virtual System.Void
System.Collections.Generic.List`1<Verse.FloatMenuOption>::Add(Verse.FloatMenuOption
item)
IL_0B8B: Label69
IL_0B8B: Label70
IL_0B8B: Label71
IL_0B8B: Label72
IL_0B8B: Label73
IL_0B8B: Label74
IL_0B8B: ldloca.s 2
(System.Collections.Generic.List`1+Enumerator[Verse.Thing])
IL_0B8D: call virtual System.Boolean
System.Collections.Generic.Enumerator<Verse.Thing>::MoveNext()
IL_0B92: brtrue => Label75
IL_0B97: leave => Label76
IL_0B9C: leave => (autogenerated)
} // end try
.finally
{
IL_0BA1: ldloca.s 2
(System.Collections.Generic.List`1+Enumerator[Verse.Thing])
IL_0BA3: constrained.
System.Collections.Generic.List`1+Enumerator[Verse.Thing]
IL_0BA9: callvirt abstract virtual System.Void
System.IDisposable::Dispose()
IL_0BAE: endfinally
IL_0BAF: leave => (autogenerated)
} // end handler
IL_0BB0: Label76
IL_0BB0: ldloc.s 22 (System.Collections.Generic.List`1[Verse.Thing])
IL_0BB2: callvirt System.Collections.Generic.Enumerator<Verse.Thing>
System.Collections.Generic.List`1<Verse.Thing>::GetEnumerator()
IL_0BB7: stloc.2
.try
{
IL_0BB8: br => Label77
IL_0BBD: Label82
IL_0BBD: ldloca.s 2
(System.Collections.Generic.List`1+Enumerator[Verse.Thing])
IL_0BBF: call virtual Verse.Thing
System.Collections.Generic.Enumerator<Verse.Thing>::get_Current()
IL_0BC4: stloc.s 28 (Verse.Thing)
IL_0BC6: newobj System.Void RimWorld.<>c__DisplayClass10_6::.ctor()
IL_0BCB: stloc.s 29 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_6)
IL_0BCD: ldloc.s 29 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_6)
IL_0BCF: ldloc.0
IL_0BD0: stfld RimWorld.<>c__DisplayClass10_0
RimWorld.<>c__DisplayClass10_6::CS$<>8__locals6
IL_0BD5: ldloc.s 29 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_6)
IL_0BD7: ldloc.s 28 (Verse.Thing)
IL_0BD9: isinst Verse.Corpse
IL_0BDE: stfld Verse.Corpse RimWorld.<>c__DisplayClass10_6::corpse
IL_0BE3: ldloc.s 29 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_6)
IL_0BE5: ldfld Verse.Corpse RimWorld.<>c__DisplayClass10_6::corpse
IL_0BEA: brfalse => Label78
IL_0BEF: ldloc.s 29 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_6)
IL_0BF1: ldloc.s 29 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_6)
IL_0BF3: ldfld Verse.Corpse RimWorld.<>c__DisplayClass10_6::corpse
IL_0BF8: ldloc.s 29 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_6)
IL_0BFA: ldfld RimWorld.<>c__DisplayClass10_0
RimWorld.<>c__DisplayClass10_6::CS$<>8__locals6
IL_0BFF: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_0C04: ldc.i4.0
IL_0C05: call static RimWorld.Building_GibbetCage
RimWorld.Building_GibbetCage::FindGibbetCageFor(Verse.Corpse c, Verse.Pawn
traveler, System.Boolean ignoreOtherReservations)
IL_0C0A: stfld RimWorld.Building_GibbetCage
RimWorld.<>c__DisplayClass10_6::cage
IL_0C0F: ldloc.s 29 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_6)
IL_0C11: ldfld RimWorld.Building_GibbetCage
RimWorld.<>c__DisplayClass10_6::cage
IL_0C16: brfalse => Label79
IL_0C1B: ldarg.2
IL_0C1C: ldstr "PlaceIn"
IL_0C21: ldloc.s 29 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_6)
IL_0C23: ldfld Verse.Corpse RimWorld.<>c__DisplayClass10_6::corpse
IL_0C28: call static Verse.NamedArgument
Verse.NamedArgument::op_Implicit(Verse.Thing value)
IL_0C2D: ldloc.s 29 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_6)
IL_0C2F: ldfld RimWorld.Building_GibbetCage
RimWorld.<>c__DisplayClass10_6::cage
IL_0C34: call static Verse.NamedArgument
Verse.NamedArgument::op_Implicit(Verse.Thing value)
IL_0C39: call static Verse.TaggedString
Verse.TranslatorFormattedStringExtensions::Translate(System.String key,
Verse.NamedArgument arg1, Verse.NamedArgument arg2)
IL_0C3E: call static System.String
Verse.TaggedString::op_Implicit(Verse.TaggedString taggedString)
IL_0C43: ldloc.s 29 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_6)
IL_0C45: ldftn System.Void
RimWorld.<>c__DisplayClass10_6::<AddHumanlikeOrders>b__4()
IL_0C4B: newobj System.Void System.Action::.ctor(System.Object object,
System.IntPtr method)
IL_0C50: ldc.i4.4
IL_0C51: ldnull
IL_0C52: ldnull
IL_0C53: ldc.r4 0
IL_0C58: ldnull
IL_0C59: ldnull
IL_0C5A: ldc.i4.1
IL_0C5B: ldc.i4.0
IL_0C5C: newobj System.Void Verse.FloatMenuOption::.ctor(System.String
label, System.Action action, Verse.MenuOptionPriority priority,
System.Action`1<UnityEngine.Rect> mouseoverGuiAction, Verse.Thing
revalidateClickTarget, System.Single extraPartWidth,
System.Func`2<UnityEngine.Rect, System.Boolean> extraPartOnGUI,
RimWorld.Planet.WorldObject revalidateWorldClickTarget, System.Boolean
playSelectionSound, System.Int32 orderInPriority)
IL_0C61: ldloc.s 29 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_6)
IL_0C63: ldfld RimWorld.<>c__DisplayClass10_0
RimWorld.<>c__DisplayClass10_6::CS$<>8__locals6
IL_0C68: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_0C6D: ldloc.s 29 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_6)
IL_0C6F: ldfld Verse.Corpse RimWorld.<>c__DisplayClass10_6::corpse
IL_0C74: newobj System.Void Verse.LocalTargetInfo::.ctor(Verse.Thing
thing)
IL_0C79: ldstr "ReservedBy"
IL_0C7E: ldnull
IL_0C7F: call static Verse.FloatMenuOption
RimWorld.FloatMenuUtility::DecoratePrioritizedTask(Verse.FloatMenuOption option,
Verse.Pawn pawn, Verse.LocalTargetInfo target, System.String reservedText,
Verse.ReservationLayerDef layer)
IL_0C84: callvirt virtual System.Void
System.Collections.Generic.List`1<Verse.FloatMenuOption>::Add(Verse.FloatMenuOption
item)
IL_0C89: Label79
IL_0C89: call static System.Boolean
Verse.ModsConfig::get_BiotechActive()
IL_0C8E: brfalse => Label80
IL_0C93: ldloc.s 29 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_6)
IL_0C95: ldfld Verse.Corpse RimWorld.<>c__DisplayClass10_6::corpse
IL_0C9A: callvirt Verse.Pawn Verse.Corpse::get_InnerPawn()
IL_0C9F: ldfld Verse.Pawn_HealthTracker Verse.Pawn::health
IL_0CA4: ldfld Verse.HediffSet Verse.Pawn_HealthTracker::hediffSet
IL_0CA9: ldsfld Verse.HediffDef RimWorld.HediffDefOf::MechlinkImplant
IL_0CAE: ldc.i4.0
IL_0CAF: callvirt System.Boolean Verse.HediffSet::HasHediff(Verse.HediffDef
def, System.Boolean mustBeVisible)
IL_0CB4: brfalse => Label81
IL_0CB9: ldarg.2
IL_0CBA: ldstr "Extract"
IL_0CBF: call static Verse.TaggedString
Verse.Translator::Translate(System.String key)
IL_0CC4: ldstr " "
IL_0CC9: call static Verse.TaggedString
Verse.TaggedString::op_Addition(Verse.TaggedString t1, System.String t2)
IL_0CCE: ldsfld Verse.HediffDef RimWorld.HediffDefOf::MechlinkImplant
IL_0CD3: ldfld System.String Verse.Def::label
IL_0CD8: call static Verse.TaggedString
Verse.TaggedString::op_Addition(Verse.TaggedString t1, System.String t2)
IL_0CDD: call static System.String
Verse.TaggedString::op_Implicit(Verse.TaggedString taggedString)
IL_0CE2: ldloc.s 29 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_6)
IL_0CE4: ldftn System.Void
RimWorld.<>c__DisplayClass10_6::<AddHumanlikeOrders>b__5()
IL_0CEA: newobj System.Void System.Action::.ctor(System.Object object,
System.IntPtr method)
IL_0CEF: ldc.i4.4
IL_0CF0: ldnull
IL_0CF1: ldnull
IL_0CF2: ldc.r4 0
IL_0CF7: ldnull
IL_0CF8: ldnull
IL_0CF9: ldc.i4.1
IL_0CFA: ldc.i4.0
IL_0CFB: newobj System.Void Verse.FloatMenuOption::.ctor(System.String
label, System.Action action, Verse.MenuOptionPriority priority,
System.Action`1<UnityEngine.Rect> mouseoverGuiAction, Verse.Thing
revalidateClickTarget, System.Single extraPartWidth,
System.Func`2<UnityEngine.Rect, System.Boolean> extraPartOnGUI,
RimWorld.Planet.WorldObject revalidateWorldClickTarget, System.Boolean
playSelectionSound, System.Int32 orderInPriority)
IL_0D00: ldloc.s 29 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_6)
IL_0D02: ldfld RimWorld.<>c__DisplayClass10_0
RimWorld.<>c__DisplayClass10_6::CS$<>8__locals6
IL_0D07: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_0D0C: ldloc.s 29 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_6)
IL_0D0E: ldfld Verse.Corpse RimWorld.<>c__DisplayClass10_6::corpse
IL_0D13: newobj System.Void Verse.LocalTargetInfo::.ctor(Verse.Thing
thing)
IL_0D18: ldstr "ReservedBy"
IL_0D1D: ldnull
IL_0D1E: call static Verse.FloatMenuOption
RimWorld.FloatMenuUtility::DecoratePrioritizedTask(Verse.FloatMenuOption option,
Verse.Pawn pawn, Verse.LocalTargetInfo target, System.String reservedText,
Verse.ReservationLayerDef layer)
IL_0D23: callvirt virtual System.Void
System.Collections.Generic.List`1<Verse.FloatMenuOption>::Add(Verse.FloatMenuOption
item)
IL_0D28: Label77
IL_0D28: Label78
IL_0D28: Label80
IL_0D28: Label81
IL_0D28: ldloca.s 2
(System.Collections.Generic.List`1+Enumerator[Verse.Thing])
IL_0D2A: call virtual System.Boolean
System.Collections.Generic.Enumerator<Verse.Thing>::MoveNext()
IL_0D2F: brtrue => Label82
IL_0D34: leave => Label83
IL_0D39: leave => (autogenerated)
} // end try
.finally
{
IL_0D3E: ldloca.s 2
(System.Collections.Generic.List`1+Enumerator[Verse.Thing])
IL_0D40: constrained.
System.Collections.Generic.List`1+Enumerator[Verse.Thing]
IL_0D46: callvirt abstract virtual System.Void
System.IDisposable::Dispose()
IL_0D4B: endfinally
IL_0D4C: leave => (autogenerated)
} // end handler
IL_0D4D: Label83
IL_0D4D: ldarg.0
IL_0D4E: ldloc.0
IL_0D4F: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_0D54: call static RimWorld.TargetingParameters
RimWorld.TargetingParameters::ForRescue(Verse.Pawn p)
IL_0D59: ldc.i4.1
IL_0D5A: ldnull
IL_0D5B: call static
System.Collections.Generic.IEnumerable`1<Verse.LocalTargetInfo>
Verse.GenUI::TargetsAt(UnityEngine.Vector3 clickPos, RimWorld.TargetingParameters
clickParams, System.Boolean thingsOnly, RimWorld.ITargetingSource source)
IL_0D60: callvirt abstract virtual
System.Collections.Generic.IEnumerator`1<Verse.LocalTargetInfo>
System.Collections.Generic.IEnumerable`1<Verse.LocalTargetInfo>::GetEnumerator()
IL_0D65: stloc.s 8
(System.Collections.Generic.IEnumerator`1[Verse.LocalTargetInfo])
.try
{
IL_0D67: br => Label84
IL_0D6C: Label119
IL_0D6C: ldloc.s 8
(System.Collections.Generic.IEnumerator`1[Verse.LocalTargetInfo])
IL_0D6E: callvirt abstract virtual Verse.LocalTargetInfo
System.Collections.Generic.IEnumerator`1<Verse.LocalTargetInfo>::get_Current()
IL_0D73: stloc.s 30 (Verse.LocalTargetInfo)
IL_0D75: newobj System.Void RimWorld.<>c__DisplayClass10_7::.ctor()
IL_0D7A: stloc.s 31 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_7)
IL_0D7C: ldloc.s 31 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_7)
IL_0D7E: ldloc.0
IL_0D7F: stfld RimWorld.<>c__DisplayClass10_0
RimWorld.<>c__DisplayClass10_7::CS$<>8__locals7
IL_0D84: ldloc.s 31 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_7)
IL_0D86: ldloca.s 30 (Verse.LocalTargetInfo)
IL_0D88: call Verse.Thing Verse.LocalTargetInfo::get_Thing()
IL_0D8D: castclass Verse.Pawn
IL_0D92: stfld Verse.Pawn RimWorld.<>c__DisplayClass10_7::victim
IL_0D97: ldloc.s 31 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_7)
IL_0D99: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_7::victim
IL_0D9E: call static System.Boolean
RimWorld.RestUtility::InBed(Verse.Pawn p)
IL_0DA3: brtrue => Label85
IL_0DA8: ldloc.s 31 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_7)
IL_0DAA: ldfld RimWorld.<>c__DisplayClass10_0
RimWorld.<>c__DisplayClass10_7::CS$<>8__locals7
IL_0DAF: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_0DB4: ldloc.s 31 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_7)
IL_0DB6: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_7::victim
IL_0DBB: call static Verse.LocalTargetInfo
Verse.LocalTargetInfo::op_Implicit(Verse.Thing t)
IL_0DC0: ldc.i4.1
IL_0DC1: ldc.i4.3
IL_0DC2: ldc.i4.1
IL_0DC3: ldc.i4.m1
IL_0DC4: ldnull
IL_0DC5: ldc.i4.1
IL_0DC6: call static System.Boolean
Verse.AI.ReservationUtility::CanReserveAndReach(Verse.Pawn p, Verse.LocalTargetInfo
target, Verse.AI.PathEndMode peMode, Verse.Danger maxDanger, System.Int32 maxPawns,
System.Int32 stackCount, Verse.ReservationLayerDef layer, System.Boolean
ignoreOtherReservations)
IL_0DCB: brfalse => Label86
IL_0DD0: ldloc.s 31 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_7)
IL_0DD2: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_7::victim
IL_0DD7: ldfld Verse.AI.Pawn_MindState Verse.Pawn::mindState
IL_0DDC: callvirt System.Boolean
Verse.AI.Pawn_MindState::get_WillJoinColonyIfRescued()
IL_0DE1: brtrue => Label87
IL_0DE6: ldloc.s 31 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_7)
IL_0DE8: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_7::victim
IL_0DED: callvirt System.Boolean Verse.Pawn::get_IsPrisonerOfColony()
IL_0DF2: brtrue => Label88
IL_0DF7: ldloc.s 31 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_7)
IL_0DF9: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_7::victim
IL_0DFE: callvirt System.Boolean Verse.Pawn::get_IsSlaveOfColony()
IL_0E03: brtrue => Label89
IL_0E08: ldloc.s 31 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_7)
IL_0E0A: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_7::victim
IL_0E0F: callvirt System.Boolean Verse.Pawn::get_InMentalState()
IL_0E14: brfalse => Label90
IL_0E19: ldloc.s 31 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_7)
IL_0E1B: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_7::victim
IL_0E20: ldfld Verse.Pawn_HealthTracker Verse.Pawn::health
IL_0E25: ldfld Verse.HediffSet Verse.Pawn_HealthTracker::hediffSet
IL_0E2A: ldsfld Verse.HediffDef RimWorld.HediffDefOf::Scaria
IL_0E2F: ldc.i4.0
IL_0E30: callvirt System.Boolean Verse.HediffSet::HasHediff(Verse.HediffDef
def, System.Boolean mustBeVisible)
IL_0E35: brfalse => Label91
IL_0E3A: Label90
IL_0E3A: ldloc.s 31 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_7)
IL_0E3C: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_7::victim
IL_0E41: callvirt System.Boolean Verse.Pawn::get_IsColonyMech()
IL_0E46: brtrue => Label92
IL_0E4B: newobj System.Void RimWorld.<>c__DisplayClass10_8::.ctor()
IL_0E50: stloc.s 32 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_8)
IL_0E52: ldloc.s 32 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_8)
IL_0E54: ldloc.s 31 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_7)
IL_0E56: stfld RimWorld.<>c__DisplayClass10_7
RimWorld.<>c__DisplayClass10_8::CS$<>8__locals8
IL_0E5B: ldloc.s 32 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_8)
IL_0E5D: ldloc.s 32 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_8)
IL_0E5F: ldfld RimWorld.<>c__DisplayClass10_7
RimWorld.<>c__DisplayClass10_8::CS$<>8__locals8
IL_0E64: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_7::victim
IL_0E69: ldloca.s 33
(System.Nullable`1[RimWorld.ChildcareUtility+BreastfeedFailReason])
IL_0E6B: call static System.Boolean
RimWorld.ChildcareUtility::CanSuckle(Verse.Pawn baby, System.Nullable`1& reason)
IL_0E70: stfld System.Boolean RimWorld.<>c__DisplayClass10_8::isBaby
IL_0E75: ldloc.s 32 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_8)
IL_0E77: ldfld RimWorld.<>c__DisplayClass10_7
RimWorld.<>c__DisplayClass10_8::CS$<>8__locals8
IL_0E7C: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_7::victim
IL_0E81: callvirt virtual RimWorld.Faction Verse.Thing::get_Faction()
IL_0E86: call static RimWorld.Faction RimWorld.Faction::get_OfPlayer()
IL_0E8B: beq => Label93
IL_0E90: ldloc.s 32 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_8)
IL_0E92: ldfld RimWorld.<>c__DisplayClass10_7
RimWorld.<>c__DisplayClass10_8::CS$<>8__locals8
IL_0E97: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_7::victim
IL_0E9C: callvirt virtual RimWorld.Faction Verse.Thing::get_Faction()
IL_0EA1: brfalse => Label94
IL_0EA6: ldloc.s 32 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_8)
IL_0EA8: ldfld RimWorld.<>c__DisplayClass10_7
RimWorld.<>c__DisplayClass10_8::CS$<>8__locals8
IL_0EAD: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_7::victim
IL_0EB2: callvirt virtual RimWorld.Faction Verse.Thing::get_Faction()
IL_0EB7: call static RimWorld.Faction RimWorld.Faction::get_OfPlayer()
IL_0EBC: call static System.Boolean
RimWorld.FactionUtility::HostileTo(RimWorld.Faction fac, RimWorld.Faction other)
IL_0EC1: ldc.i4.0
IL_0EC2: ceq
IL_0EC4: br => Label95
IL_0EC9: Label94
IL_0EC9: ldc.i4.1
IL_0ECA: br => Label96
IL_0ECF: Label93
IL_0ECF: ldc.i4.1
IL_0ED0: Label95
IL_0ED0: Label96
IL_0ED0: ldloc.s 32 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_8)
IL_0ED2: ldfld System.Boolean RimWorld.<>c__DisplayClass10_8::isBaby
IL_0ED7: or
IL_0ED8: brfalse => Label97
IL_0EDD: ldloc.s 32 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_8)
IL_0EDF: ldfld RimWorld.<>c__DisplayClass10_7
RimWorld.<>c__DisplayClass10_8::CS$<>8__locals8
IL_0EE4: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_7::victim
IL_0EE9: call static System.Boolean
RimWorld.HealthAIUtility::ShouldSeekMedicalRest(Verse.Pawn pawn)
IL_0EEE: brtrue => Label98
IL_0EF3: ldloc.s 32 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_8)
IL_0EF5: ldfld RimWorld.<>c__DisplayClass10_7
RimWorld.<>c__DisplayClass10_8::CS$<>8__locals8
IL_0EFA: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_7::victim
IL_0EFF: ldfld Verse.Pawn_AgeTracker Verse.Pawn::ageTracker
IL_0F04: callvirt RimWorld.LifeStageDef
Verse.Pawn_AgeTracker::get_CurLifeStage()
IL_0F09: ldfld System.Boolean RimWorld.LifeStageDef::alwaysDowned
IL_0F0E: ldc.i4.0
IL_0F0F: ceq
IL_0F11: br => Label99
IL_0F16: Label98
IL_0F16: ldc.i4.1
IL_0F17: Label99
IL_0F17: brtrue => Label100
IL_0F1C: ldstr "PutSomewhereSafe"
IL_0F21: ldloc.s 32 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_8)
IL_0F23: ldfld RimWorld.<>c__DisplayClass10_7
RimWorld.<>c__DisplayClass10_8::CS$<>8__locals8
IL_0F28: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_7::victim
IL_0F2D: callvirt abstract virtual System.String
Verse.Entity::get_LabelCap()
IL_0F32: call static Verse.NamedArgument
Verse.NamedArgument::op_Implicit(System.String value)
IL_0F37: ldloc.s 32 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_8)
IL_0F39: ldfld RimWorld.<>c__DisplayClass10_7
RimWorld.<>c__DisplayClass10_8::CS$<>8__locals8
IL_0F3E: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_7::victim
IL_0F43: call static Verse.NamedArgument
Verse.NamedArgument::op_Implicit(Verse.Thing value)
IL_0F48: call static Verse.TaggedString
Verse.TranslatorFormattedStringExtensions::Translate(System.String key,
Verse.NamedArgument arg1, Verse.NamedArgument arg2)
IL_0F4D: br => Label101
IL_0F52: Label100
IL_0F52: ldstr "Rescue"
IL_0F57: ldloc.s 32 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_8)
IL_0F59: ldfld RimWorld.<>c__DisplayClass10_7
RimWorld.<>c__DisplayClass10_8::CS$<>8__locals8
IL_0F5E: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_7::victim
IL_0F63: callvirt abstract virtual System.String
Verse.Entity::get_LabelCap()
IL_0F68: call static Verse.NamedArgument
Verse.NamedArgument::op_Implicit(System.String value)
IL_0F6D: ldloc.s 32 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_8)
IL_0F6F: ldfld RimWorld.<>c__DisplayClass10_7
RimWorld.<>c__DisplayClass10_8::CS$<>8__locals8
IL_0F74: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_7::victim
IL_0F79: call static Verse.NamedArgument
Verse.NamedArgument::op_Implicit(Verse.Thing value)
IL_0F7E: call static Verse.TaggedString
Verse.TranslatorFormattedStringExtensions::Translate(System.String key,
Verse.NamedArgument arg1, Verse.NamedArgument arg2)
IL_0F83: Label101
IL_0F83: stloc.s 34 (Verse.TaggedString)
IL_0F85: ldarg.2
IL_0F86: ldloc.s 34 (Verse.TaggedString)
IL_0F88: call static System.String
Verse.TaggedString::op_Implicit(Verse.TaggedString taggedString)
IL_0F8D: ldloc.s 32 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_8)
IL_0F8F: ldftn System.Void
RimWorld.<>c__DisplayClass10_8::<AddHumanlikeOrders>b__7()
IL_0F95: newobj System.Void System.Action::.ctor(System.Object object,
System.IntPtr method)
IL_0F9A: ldc.i4.8
IL_0F9B: ldnull
IL_0F9C: ldloc.s 32 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_8)
IL_0F9E: ldfld RimWorld.<>c__DisplayClass10_7
RimWorld.<>c__DisplayClass10_8::CS$<>8__locals8
IL_0FA3: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_7::victim
IL_0FA8: ldc.r4 0
IL_0FAD: ldnull
IL_0FAE: ldnull
IL_0FAF: ldc.i4.1
IL_0FB0: ldc.i4.0
IL_0FB1: newobj System.Void Verse.FloatMenuOption::.ctor(System.String
label, System.Action action, Verse.MenuOptionPriority priority,
System.Action`1<UnityEngine.Rect> mouseoverGuiAction, Verse.Thing
revalidateClickTarget, System.Single extraPartWidth,
System.Func`2<UnityEngine.Rect, System.Boolean> extraPartOnGUI,
RimWorld.Planet.WorldObject revalidateWorldClickTarget, System.Boolean
playSelectionSound, System.Int32 orderInPriority)
IL_0FB6: ldloc.s 32 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_8)
IL_0FB8: ldfld RimWorld.<>c__DisplayClass10_7
RimWorld.<>c__DisplayClass10_8::CS$<>8__locals8
IL_0FBD: ldfld RimWorld.<>c__DisplayClass10_0
RimWorld.<>c__DisplayClass10_7::CS$<>8__locals7
IL_0FC2: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_0FC7: ldloc.s 32 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_8)
IL_0FC9: ldfld RimWorld.<>c__DisplayClass10_7
RimWorld.<>c__DisplayClass10_8::CS$<>8__locals8
IL_0FCE: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_7::victim
IL_0FD3: call static Verse.LocalTargetInfo
Verse.LocalTargetInfo::op_Implicit(Verse.Thing t)
IL_0FD8: ldstr "ReservedBy"
IL_0FDD: ldnull
IL_0FDE: call static Verse.FloatMenuOption
RimWorld.FloatMenuUtility::DecoratePrioritizedTask(Verse.FloatMenuOption option,
Verse.Pawn pawn, Verse.LocalTargetInfo target, System.String reservedText,
Verse.ReservationLayerDef layer)
IL_0FE3: callvirt virtual System.Void
System.Collections.Generic.List`1<Verse.FloatMenuOption>::Add(Verse.FloatMenuOption
item)
IL_0FE8: Label88
IL_0FE8: Label89
IL_0FE8: Label91
IL_0FE8: Label92
IL_0FE8: Label97
IL_0FE8: ldloc.s 31 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_7)
IL_0FEA: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_7::victim
IL_0FEF: callvirt System.Boolean Verse.Pawn::get_IsSlaveOfColony()
IL_0FF4: brfalse => Label102
IL_0FF9: ldloc.s 31 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_7)
IL_0FFB: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_7::victim
IL_1000: callvirt System.Boolean Verse.Pawn::get_InMentalState()
IL_1005: brtrue => Label103
IL_100A: ldarg.2
IL_100B: ldstr "ReturnToSlaveBed"
IL_1010: call static Verse.TaggedString
Verse.Translator::Translate(System.String key)
IL_1015: call static System.String
Verse.TaggedString::op_Implicit(Verse.TaggedString taggedString)
IL_101A: ldloc.s 31 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_7)
IL_101C: ldftn System.Void
RimWorld.<>c__DisplayClass10_7::<AddHumanlikeOrders>b__6()
IL_1022: newobj System.Void System.Action::.ctor(System.Object object,
System.IntPtr method)
IL_1027: ldc.i4.8
IL_1028: ldnull
IL_1029: ldloc.s 31 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_7)
IL_102B: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_7::victim
IL_1030: ldc.r4 0
IL_1035: ldnull
IL_1036: ldnull
IL_1037: ldc.i4.1
IL_1038: ldc.i4.0
IL_1039: newobj System.Void Verse.FloatMenuOption::.ctor(System.String
label, System.Action action, Verse.MenuOptionPriority priority,
System.Action`1<UnityEngine.Rect> mouseoverGuiAction, Verse.Thing
revalidateClickTarget, System.Single extraPartWidth,
System.Func`2<UnityEngine.Rect, System.Boolean> extraPartOnGUI,
RimWorld.Planet.WorldObject revalidateWorldClickTarget, System.Boolean
playSelectionSound, System.Int32 orderInPriority)
IL_103E: ldloc.s 31 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_7)
IL_1040: ldfld RimWorld.<>c__DisplayClass10_0
RimWorld.<>c__DisplayClass10_7::CS$<>8__locals7
IL_1045: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_104A: ldloc.s 31 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_7)
IL_104C: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_7::victim
IL_1051: call static Verse.LocalTargetInfo
Verse.LocalTargetInfo::op_Implicit(Verse.Thing t)
IL_1056: ldstr "ReservedBy"
IL_105B: ldnull
IL_105C: call static Verse.FloatMenuOption
RimWorld.FloatMenuUtility::DecoratePrioritizedTask(Verse.FloatMenuOption option,
Verse.Pawn pawn, Verse.LocalTargetInfo target, System.String reservedText,
Verse.ReservationLayerDef layer)
IL_1061: callvirt virtual System.Void
System.Collections.Generic.List`1<Verse.FloatMenuOption>::Add(Verse.FloatMenuOption
item)
IL_1066: Label102
IL_1066: Label103
IL_1066: ldloc.s 31 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_7)
IL_1068: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_7::victim
IL_106D: callvirt Verse.RaceProperties Verse.Pawn::get_RaceProps()
IL_1072: callvirt System.Boolean Verse.RaceProperties::get_Humanlike()
IL_1077: brfalse => Label104
IL_107C: ldloc.s 31 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_7)
IL_107E: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_7::victim
IL_1083: ldfld Verse.Pawn_AgeTracker Verse.Pawn::ageTracker
IL_1088: callvirt RimWorld.LifeStageDef
Verse.Pawn_AgeTracker::get_CurLifeStage()
IL_108D: dup
IL_108E: brtrue => Label105
IL_1093: pop
IL_1094: ldc.i4.1
IL_1095: br => Label106
IL_109A: Label105
IL_109A: ldfld System.Boolean RimWorld.LifeStageDef::claimable
IL_109F: ldc.i4.0
IL_10A0: ceq
IL_10A2: Label106
IL_10A2: brfalse => Label107
IL_10A7: ldloc.s 31 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_7)
IL_10A9: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_7::victim
IL_10AE: callvirt System.Boolean Verse.Pawn::get_InMentalState()
IL_10B3: brtrue => Label108
IL_10B8: ldloc.s 31 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_7)
IL_10BA: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_7::victim
IL_10BF: callvirt virtual RimWorld.Faction Verse.Thing::get_Faction()
IL_10C4: call static RimWorld.Faction RimWorld.Faction::get_OfPlayer()
IL_10C9: bne.un => Label109
IL_10CE: ldloc.s 31 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_7)
IL_10D0: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_7::victim
IL_10D5: callvirt System.Boolean Verse.Pawn::get_Downed()
IL_10DA: brfalse => Label110
IL_10DF: ldloc.s 31 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_7)
IL_10E1: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_7::victim
IL_10E6: ldfld RimWorld.Pawn_GuiltTracker Verse.Pawn::guilt
IL_10EB: callvirt System.Boolean RimWorld.Pawn_GuiltTracker::get_IsGuilty()
IL_10F0: brtrue => Label111
IL_10F5: ldloc.s 31 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_7)
IL_10F7: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_7::victim
IL_10FC: callvirt System.Boolean Verse.Pawn::get_IsPrisonerOfColony()
IL_1101: brfalse => Label112
IL_1106: Label108
IL_1106: Label109
IL_1106: Label111
IL_1106: ldstr "Capture"
IL_110B: ldloc.s 31 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_7)
IL_110D: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_7::victim
IL_1112: callvirt abstract virtual System.String
Verse.Entity::get_LabelCap()
IL_1117: call static Verse.NamedArgument
Verse.NamedArgument::op_Implicit(System.String value)
IL_111C: ldloc.s 31 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_7)
IL_111E: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_7::victim
IL_1123: call static Verse.NamedArgument
Verse.NamedArgument::op_Implicit(Verse.Thing value)
IL_1128: call static Verse.TaggedString
Verse.TranslatorFormattedStringExtensions::Translate(System.String key,
Verse.NamedArgument arg1, Verse.NamedArgument arg2)
IL_112D: stloc.s 35 (Verse.TaggedString)
IL_112F: ldloc.s 31 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_7)
IL_1131: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_7::victim
IL_1136: ldfld RimWorld.Pawn_GuestTracker Verse.Pawn::guest
IL_113B: callvirt System.Boolean
RimWorld.Pawn_GuestTracker::get_Recruitable()
IL_1140: brtrue => Label113
IL_1145: ldloc.s 35 (Verse.TaggedString)
IL_1147: ldstr " ("
IL_114C: ldstr "Unrecruitable"
IL_1151: call static Verse.TaggedString
Verse.Translator::Translate(System.String key)
IL_1156: call static Verse.TaggedString
Verse.TaggedString::op_Addition(System.String t1, Verse.TaggedString t2)
IL_115B: ldstr ")"
IL_1160: call static Verse.TaggedString
Verse.TaggedString::op_Addition(Verse.TaggedString t1, System.String t2)
IL_1165: call static Verse.TaggedString
Verse.TaggedString::op_Addition(Verse.TaggedString t1, Verse.TaggedString t2)
IL_116A: stloc.s 35 (Verse.TaggedString)
IL_116C: Label113
IL_116C: ldloc.s 31 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_7)
IL_116E: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_7::victim
IL_1173: callvirt virtual RimWorld.Faction Verse.Thing::get_Faction()
IL_1178: brfalse => Label114
IL_117D: ldloc.s 31 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_7)
IL_117F: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_7::victim
IL_1184: callvirt virtual RimWorld.Faction Verse.Thing::get_Faction()
IL_1189: call static RimWorld.Faction RimWorld.Faction::get_OfPlayer()
IL_118E: beq => Label115
IL_1193: ldloc.s 31 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_7)
IL_1195: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_7::victim
IL_119A: callvirt virtual RimWorld.Faction Verse.Thing::get_Faction()
IL_119F: callvirt System.Boolean RimWorld.Faction::get_Hidden()
IL_11A4: brtrue => Label116
IL_11A9: ldloc.s 31 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_7)
IL_11AB: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_7::victim
IL_11B0: callvirt virtual RimWorld.Faction Verse.Thing::get_Faction()
IL_11B5: call static RimWorld.Faction RimWorld.Faction::get_OfPlayer()
IL_11BA: call static System.Boolean
RimWorld.FactionUtility::HostileTo(RimWorld.Faction fac, RimWorld.Faction other)
IL_11BF: brtrue => Label117
IL_11C4: ldloc.s 31 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_7)
IL_11C6: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_7::victim
IL_11CB: callvirt System.Boolean Verse.Pawn::get_IsPrisonerOfColony()
IL_11D0: brtrue => Label118
IL_11D5: ldloc.s 35 (Verse.TaggedString)
IL_11D7: ldstr ": "
IL_11DC: ldstr "AngersFaction"
IL_11E1: call static Verse.TaggedString
Verse.Translator::Translate(System.String key)
IL_11E6: stloc.s 11 (Verse.TaggedString)
IL_11E8: ldloca.s 11 (Verse.TaggedString)
IL_11EA: call Verse.TaggedString Verse.TaggedString::CapitalizeFirst()
IL_11EF: call static Verse.TaggedString
Verse.TaggedString::op_Addition(System.String t1, Verse.TaggedString t2)
IL_11F4: call static Verse.TaggedString
Verse.TaggedString::op_Addition(Verse.TaggedString t1, Verse.TaggedString t2)
IL_11F9: stloc.s 35 (Verse.TaggedString)
IL_11FB: Label114
IL_11FB: Label115
IL_11FB: Label116
IL_11FB: Label117
IL_11FB: Label118
IL_11FB: ldarg.2
IL_11FC: ldloc.s 35 (Verse.TaggedString)
IL_11FE: call static System.String
Verse.TaggedString::op_Implicit(Verse.TaggedString taggedString)
IL_1203: ldloc.s 31 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_7)
IL_1205: ldftn System.Void
RimWorld.<>c__DisplayClass10_7::<AddHumanlikeOrders>b__8()
IL_120B: newobj System.Void System.Action::.ctor(System.Object object,
System.IntPtr method)
IL_1210: ldc.i4.8
IL_1211: ldnull
IL_1212: ldloc.s 31 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_7)
IL_1214: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_7::victim
IL_1219: ldc.r4 0
IL_121E: ldnull
IL_121F: ldnull
IL_1220: ldc.i4.1
IL_1221: ldc.i4.0
IL_1222: newobj System.Void Verse.FloatMenuOption::.ctor(System.String
label, System.Action action, Verse.MenuOptionPriority priority,
System.Action`1<UnityEngine.Rect> mouseoverGuiAction, Verse.Thing
revalidateClickTarget, System.Single extraPartWidth,
System.Func`2<UnityEngine.Rect, System.Boolean> extraPartOnGUI,
RimWorld.Planet.WorldObject revalidateWorldClickTarget, System.Boolean
playSelectionSound, System.Int32 orderInPriority)
IL_1227: ldloc.s 31 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_7)
IL_1229: ldfld RimWorld.<>c__DisplayClass10_0
RimWorld.<>c__DisplayClass10_7::CS$<>8__locals7
IL_122E: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_1233: ldloc.s 31 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_7)
IL_1235: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_7::victim
IL_123A: call static Verse.LocalTargetInfo
Verse.LocalTargetInfo::op_Implicit(Verse.Thing t)
IL_123F: ldstr "ReservedBy"
IL_1244: ldnull
IL_1245: call static Verse.FloatMenuOption
RimWorld.FloatMenuUtility::DecoratePrioritizedTask(Verse.FloatMenuOption option,
Verse.Pawn pawn, Verse.LocalTargetInfo target, System.String reservedText,
Verse.ReservationLayerDef layer)
IL_124A: callvirt virtual System.Void
System.Collections.Generic.List`1<Verse.FloatMenuOption>::Add(Verse.FloatMenuOption
item)
IL_124F: Label84
IL_124F: Label85
IL_124F: Label86
IL_124F: Label87
IL_124F: Label104
IL_124F: Label107
IL_124F: Label110
IL_124F: Label112
IL_124F: ldloc.s 8
(System.Collections.Generic.IEnumerator`1[Verse.LocalTargetInfo])
IL_1251: callvirt abstract virtual System.Boolean
System.Collections.IEnumerator::MoveNext()
IL_1256: brtrue => Label119
IL_125B: leave => Label120
IL_1260: leave => (autogenerated)
} // end try
.finally
{
IL_1265: ldloc.s 8
(System.Collections.Generic.IEnumerator`1[Verse.LocalTargetInfo])
IL_1267: brfalse => Label121
IL_126C: ldloc.s 8
(System.Collections.Generic.IEnumerator`1[Verse.LocalTargetInfo])
IL_126E: callvirt abstract virtual System.Void
System.IDisposable::Dispose()
IL_1273: Label121
IL_1273: endfinally
IL_1274: leave => (autogenerated)
} // end handler
IL_1275: Label120
IL_1275: ldarg.0
IL_1276: ldloc.0
IL_1277: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_127C: call static RimWorld.TargetingParameters
RimWorld.TargetingParameters::ForRescue(Verse.Pawn p)
IL_1281: ldc.i4.1
IL_1282: ldnull
IL_1283: call static
System.Collections.Generic.IEnumerable`1<Verse.LocalTargetInfo>
Verse.GenUI::TargetsAt(UnityEngine.Vector3 clickPos, RimWorld.TargetingParameters
clickParams, System.Boolean thingsOnly, RimWorld.ITargetingSource source)
IL_1288: callvirt abstract virtual
System.Collections.Generic.IEnumerator`1<Verse.LocalTargetInfo>
System.Collections.Generic.IEnumerable`1<Verse.LocalTargetInfo>::GetEnumerator()
IL_128D: stloc.s 8
(System.Collections.Generic.IEnumerator`1[Verse.LocalTargetInfo])
.try
{
IL_128F: br => Label122
IL_1294: Label130
IL_1294: ldloc.s 8
(System.Collections.Generic.IEnumerator`1[Verse.LocalTargetInfo])
IL_1296: callvirt abstract virtual Verse.LocalTargetInfo
System.Collections.Generic.IEnumerator`1<Verse.LocalTargetInfo>::get_Current()
IL_129B: newobj System.Void RimWorld.<>c__DisplayClass10_9::.ctor()
IL_12A0: stloc.s 36 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_9)
IL_12A2: ldloc.s 36 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_9)
IL_12A4: ldloc.0
IL_12A5: stfld RimWorld.<>c__DisplayClass10_0
RimWorld.<>c__DisplayClass10_9::CS$<>8__locals9
IL_12AA: stloc.s 37 (Verse.LocalTargetInfo)
IL_12AC: ldloc.s 36 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_9)
IL_12AE: ldloca.s 37 (Verse.LocalTargetInfo)
IL_12B0: call Verse.Thing Verse.LocalTargetInfo::get_Thing()
IL_12B5: castclass Verse.Pawn
IL_12BA: stfld Verse.Pawn RimWorld.<>c__DisplayClass10_9::victim
IL_12BF: ldloc.s 36 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_9)
IL_12C1: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_9::victim
IL_12C6: callvirt System.Boolean Verse.Pawn::get_Downed()
IL_12CB: brfalse => Label123
IL_12D0: ldloc.s 36 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_9)
IL_12D2: ldfld RimWorld.<>c__DisplayClass10_0
RimWorld.<>c__DisplayClass10_9::CS$<>8__locals9
IL_12D7: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_12DC: ldloc.s 36 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_9)
IL_12DE: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_9::victim
IL_12E3: call static Verse.LocalTargetInfo
Verse.LocalTargetInfo::op_Implicit(Verse.Thing t)
IL_12E8: ldc.i4.1
IL_12E9: ldc.i4.3
IL_12EA: ldc.i4.1
IL_12EB: ldc.i4.m1
IL_12EC: ldnull
IL_12ED: ldc.i4.1
IL_12EE: call static System.Boolean
Verse.AI.ReservationUtility::CanReserveAndReach(Verse.Pawn p, Verse.LocalTargetInfo
target, Verse.AI.PathEndMode peMode, Verse.Danger maxDanger, System.Int32 maxPawns,
System.Int32 stackCount, Verse.ReservationLayerDef layer, System.Boolean
ignoreOtherReservations)
IL_12F3: brfalse => Label124
IL_12F8: ldloc.s 36 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_9)
IL_12FA: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_9::victim
IL_12FF: ldloc.s 36 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_9)
IL_1301: ldfld RimWorld.<>c__DisplayClass10_0
RimWorld.<>c__DisplayClass10_9::CS$<>8__locals9
IL_1306: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_130B: ldc.i4.1
IL_130C: call static RimWorld.Building_CryptosleepCasket
RimWorld.Building_CryptosleepCasket::FindCryptosleepCasketFor(Verse.Pawn p,
Verse.Pawn traveler, System.Boolean ignoreOtherReservations)
IL_1311: brfalse => Label125
IL_1316: newobj System.Void RimWorld.<>c__DisplayClass10_10::.ctor()
IL_131B: stloc.s 38 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_10)
IL_131D: ldloc.s 38 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_10)
IL_131F: ldloc.s 36 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_9)
IL_1321: stfld RimWorld.<>c__DisplayClass10_9
RimWorld.<>c__DisplayClass10_10::CS$<>8__locals10
IL_1326: ldstr "CarryToCryptosleepCasket"
IL_132B: ldloca.s 37 (Verse.LocalTargetInfo)
IL_132D: call Verse.Thing Verse.LocalTargetInfo::get_Thing()
IL_1332: callvirt abstract virtual System.String
Verse.Entity::get_LabelCap()
IL_1337: call static Verse.NamedArgument
Verse.NamedArgument::op_Implicit(System.String value)
IL_133C: ldloca.s 37 (Verse.LocalTargetInfo)
IL_133E: call Verse.Thing Verse.LocalTargetInfo::get_Thing()
IL_1343: call static Verse.NamedArgument
Verse.NamedArgument::op_Implicit(Verse.Thing value)
IL_1348: call static Verse.TaggedString
Verse.TranslatorFormattedStringExtensions::Translate(System.String key,
Verse.NamedArgument arg1, Verse.NamedArgument arg2)
IL_134D: call static System.String
Verse.TaggedString::op_Implicit(Verse.TaggedString taggedString)
IL_1352: stloc.s 39 (System.String)
IL_1354: ldloc.s 38 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_10)
IL_1356: ldsfld Verse.JobDef RimWorld.JobDefOf::CarryToCryptosleepCasket
IL_135B: stfld Verse.JobDef RimWorld.<>c__DisplayClass10_10::jDef
IL_1360: ldloc.s 38 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_10)
IL_1362: ldftn System.Void
RimWorld.<>c__DisplayClass10_10::<AddHumanlikeOrders>b__9()
IL_1368: newobj System.Void System.Action::.ctor(System.Object object,
System.IntPtr method)
IL_136D: stloc.s 40 (System.Action)
IL_136F: ldloc.s 38 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_10)
IL_1371: ldfld RimWorld.<>c__DisplayClass10_9
RimWorld.<>c__DisplayClass10_10::CS$<>8__locals10
IL_1376: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_9::victim
IL_137B: call static System.Boolean
RimWorld.QuestUtility::IsQuestLodger(Verse.Pawn p)
IL_1380: brfalse => Label126
IL_1385: ldloc.s 39 (System.String)
IL_1387: ldstr " ("
IL_138C: ldstr "CryptosleepCasketGuestsNotAllowed"
IL_1391: call static Verse.TaggedString
Verse.Translator::Translate(System.String key)
IL_1396: call static Verse.TaggedString
Verse.TaggedString::op_Addition(System.String t1, Verse.TaggedString t2)
IL_139B: ldstr ")"
IL_13A0: call static Verse.TaggedString
Verse.TaggedString::op_Addition(Verse.TaggedString t1, System.String t2)
IL_13A5: call static Verse.TaggedString
Verse.TaggedString::op_Addition(System.String t1, Verse.TaggedString t2)
IL_13AA: call static System.String
Verse.TaggedString::op_Implicit(Verse.TaggedString taggedString)
IL_13AF: stloc.s 39 (System.String)
IL_13B1: ldarg.2
IL_13B2: ldloc.s 39 (System.String)
IL_13B4: ldnull
IL_13B5: ldc.i4.4
IL_13B6: ldnull
IL_13B7: ldloc.s 38 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_10)
IL_13B9: ldfld RimWorld.<>c__DisplayClass10_9
RimWorld.<>c__DisplayClass10_10::CS$<>8__locals10
IL_13BE: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_9::victim
IL_13C3: ldc.r4 0
IL_13C8: ldnull
IL_13C9: ldnull
IL_13CA: ldc.i4.1
IL_13CB: ldc.i4.0
IL_13CC: newobj System.Void Verse.FloatMenuOption::.ctor(System.String
label, System.Action action, Verse.MenuOptionPriority priority,
System.Action`1<UnityEngine.Rect> mouseoverGuiAction, Verse.Thing
revalidateClickTarget, System.Single extraPartWidth,
System.Func`2<UnityEngine.Rect, System.Boolean> extraPartOnGUI,
RimWorld.Planet.WorldObject revalidateWorldClickTarget, System.Boolean
playSelectionSound, System.Int32 orderInPriority)
IL_13D1: ldloc.s 38 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_10)
IL_13D3: ldfld RimWorld.<>c__DisplayClass10_9
RimWorld.<>c__DisplayClass10_10::CS$<>8__locals10
IL_13D8: ldfld RimWorld.<>c__DisplayClass10_0
RimWorld.<>c__DisplayClass10_9::CS$<>8__locals9
IL_13DD: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_13E2: ldloc.s 38 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_10)
IL_13E4: ldfld RimWorld.<>c__DisplayClass10_9
RimWorld.<>c__DisplayClass10_10::CS$<>8__locals10
IL_13E9: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_9::victim
IL_13EE: call static Verse.LocalTargetInfo
Verse.LocalTargetInfo::op_Implicit(Verse.Thing t)
IL_13F3: ldstr "ReservedBy"
IL_13F8: ldnull
IL_13F9: call static Verse.FloatMenuOption
RimWorld.FloatMenuUtility::DecoratePrioritizedTask(Verse.FloatMenuOption option,
Verse.Pawn pawn, Verse.LocalTargetInfo target, System.String reservedText,
Verse.ReservationLayerDef layer)
IL_13FE: callvirt virtual System.Void
System.Collections.Generic.List`1<Verse.FloatMenuOption>::Add(Verse.FloatMenuOption
item)
IL_1403: br => Label127
IL_1408: Label126
IL_1408: ldloc.s 38 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_10)
IL_140A: ldfld RimWorld.<>c__DisplayClass10_9
RimWorld.<>c__DisplayClass10_10::CS$<>8__locals10
IL_140F: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_9::victim
IL_1414: ldnull
IL_1415: call static RimWorld.Faction
RimWorld.QuestUtility::GetExtraHostFaction(Verse.Pawn p, RimWorld.Quest forQuest)
IL_141A: brfalse => Label128
IL_141F: ldloc.s 39 (System.String)
IL_1421: ldstr " ("
IL_1426: ldstr "CryptosleepCasketGuestPrisonersNotAllowed"
IL_142B: call static Verse.TaggedString
Verse.Translator::Translate(System.String key)
IL_1430: call static Verse.TaggedString
Verse.TaggedString::op_Addition(System.String t1, Verse.TaggedString t2)
IL_1435: ldstr ")"
IL_143A: call static Verse.TaggedString
Verse.TaggedString::op_Addition(Verse.TaggedString t1, System.String t2)
IL_143F: call static Verse.TaggedString
Verse.TaggedString::op_Addition(System.String t1, Verse.TaggedString t2)
IL_1444: call static System.String
Verse.TaggedString::op_Implicit(Verse.TaggedString taggedString)
IL_1449: stloc.s 39 (System.String)
IL_144B: ldarg.2
IL_144C: ldloc.s 39 (System.String)
IL_144E: ldnull
IL_144F: ldc.i4.4
IL_1450: ldnull
IL_1451: ldloc.s 38 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_10)
IL_1453: ldfld RimWorld.<>c__DisplayClass10_9
RimWorld.<>c__DisplayClass10_10::CS$<>8__locals10
IL_1458: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_9::victim
IL_145D: ldc.r4 0
IL_1462: ldnull
IL_1463: ldnull
IL_1464: ldc.i4.1
IL_1465: ldc.i4.0
IL_1466: newobj System.Void Verse.FloatMenuOption::.ctor(System.String
label, System.Action action, Verse.MenuOptionPriority priority,
System.Action`1<UnityEngine.Rect> mouseoverGuiAction, Verse.Thing
revalidateClickTarget, System.Single extraPartWidth,
System.Func`2<UnityEngine.Rect, System.Boolean> extraPartOnGUI,
RimWorld.Planet.WorldObject revalidateWorldClickTarget, System.Boolean
playSelectionSound, System.Int32 orderInPriority)
IL_146B: ldloc.s 38 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_10)
IL_146D: ldfld RimWorld.<>c__DisplayClass10_9
RimWorld.<>c__DisplayClass10_10::CS$<>8__locals10
IL_1472: ldfld RimWorld.<>c__DisplayClass10_0
RimWorld.<>c__DisplayClass10_9::CS$<>8__locals9
IL_1477: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_147C: ldloc.s 38 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_10)
IL_147E: ldfld RimWorld.<>c__DisplayClass10_9
RimWorld.<>c__DisplayClass10_10::CS$<>8__locals10
IL_1483: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_9::victim
IL_1488: call static Verse.LocalTargetInfo
Verse.LocalTargetInfo::op_Implicit(Verse.Thing t)
IL_148D: ldstr "ReservedBy"
IL_1492: ldnull
IL_1493: call static Verse.FloatMenuOption
RimWorld.FloatMenuUtility::DecoratePrioritizedTask(Verse.FloatMenuOption option,
Verse.Pawn pawn, Verse.LocalTargetInfo target, System.String reservedText,
Verse.ReservationLayerDef layer)
IL_1498: callvirt virtual System.Void
System.Collections.Generic.List`1<Verse.FloatMenuOption>::Add(Verse.FloatMenuOption
item)
IL_149D: br => Label129
IL_14A2: Label128
IL_14A2: ldarg.2
IL_14A3: ldloc.s 39 (System.String)
IL_14A5: ldloc.s 40 (System.Action)
IL_14A7: ldc.i4.4
IL_14A8: ldnull
IL_14A9: ldloc.s 38 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_10)
IL_14AB: ldfld RimWorld.<>c__DisplayClass10_9
RimWorld.<>c__DisplayClass10_10::CS$<>8__locals10
IL_14B0: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_9::victim
IL_14B5: ldc.r4 0
IL_14BA: ldnull
IL_14BB: ldnull
IL_14BC: ldc.i4.1
IL_14BD: ldc.i4.0
IL_14BE: newobj System.Void Verse.FloatMenuOption::.ctor(System.String
label, System.Action action, Verse.MenuOptionPriority priority,
System.Action`1<UnityEngine.Rect> mouseoverGuiAction, Verse.Thing
revalidateClickTarget, System.Single extraPartWidth,
System.Func`2<UnityEngine.Rect, System.Boolean> extraPartOnGUI,
RimWorld.Planet.WorldObject revalidateWorldClickTarget, System.Boolean
playSelectionSound, System.Int32 orderInPriority)
IL_14C3: ldloc.s 38 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_10)
IL_14C5: ldfld RimWorld.<>c__DisplayClass10_9
RimWorld.<>c__DisplayClass10_10::CS$<>8__locals10
IL_14CA: ldfld RimWorld.<>c__DisplayClass10_0
RimWorld.<>c__DisplayClass10_9::CS$<>8__locals9
IL_14CF: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_14D4: ldloc.s 38 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_10)
IL_14D6: ldfld RimWorld.<>c__DisplayClass10_9
RimWorld.<>c__DisplayClass10_10::CS$<>8__locals10
IL_14DB: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_9::victim
IL_14E0: call static Verse.LocalTargetInfo
Verse.LocalTargetInfo::op_Implicit(Verse.Thing t)
IL_14E5: ldstr "ReservedBy"
IL_14EA: ldnull
IL_14EB: call static Verse.FloatMenuOption
RimWorld.FloatMenuUtility::DecoratePrioritizedTask(Verse.FloatMenuOption option,
Verse.Pawn pawn, Verse.LocalTargetInfo target, System.String reservedText,
Verse.ReservationLayerDef layer)
IL_14F0: callvirt virtual System.Void
System.Collections.Generic.List`1<Verse.FloatMenuOption>::Add(Verse.FloatMenuOption
item)
IL_14F5: Label122
IL_14F5: Label123
IL_14F5: Label124
IL_14F5: Label125
IL_14F5: Label127
IL_14F5: Label129
IL_14F5: ldloc.s 8
(System.Collections.Generic.IEnumerator`1[Verse.LocalTargetInfo])
IL_14F7: callvirt abstract virtual System.Boolean
System.Collections.IEnumerator::MoveNext()
IL_14FC: brtrue => Label130
IL_1501: leave => Label131
IL_1506: leave => (autogenerated)
} // end try
.finally
{
IL_150B: ldloc.s 8
(System.Collections.Generic.IEnumerator`1[Verse.LocalTargetInfo])
IL_150D: brfalse => Label132
IL_1512: ldloc.s 8
(System.Collections.Generic.IEnumerator`1[Verse.LocalTargetInfo])
IL_1514: callvirt abstract virtual System.Void
System.IDisposable::Dispose()
IL_1519: Label132
IL_1519: endfinally
IL_151A: leave => (autogenerated)
} // end handler
IL_151B: Label131
IL_151B: call static System.Boolean Verse.ModsConfig::get_IdeologyActive()
IL_1520: brfalse => Label133
IL_1525: ldarg.0
IL_1526: ldloc.0
IL_1527: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_152C: call static RimWorld.TargetingParameters
RimWorld.TargetingParameters::ForCarryToBiosculpterPod(Verse.Pawn p)
IL_1531: ldc.i4.1
IL_1532: ldnull
IL_1533: call static
System.Collections.Generic.IEnumerable`1<Verse.LocalTargetInfo>
Verse.GenUI::TargetsAt(UnityEngine.Vector3 clickPos, RimWorld.TargetingParameters
clickParams, System.Boolean thingsOnly, RimWorld.ITargetingSource source)
IL_1538: callvirt abstract virtual
System.Collections.Generic.IEnumerator`1<Verse.LocalTargetInfo>
System.Collections.Generic.IEnumerable`1<Verse.LocalTargetInfo>::GetEnumerator()
IL_153D: stloc.s 8
(System.Collections.Generic.IEnumerator`1[Verse.LocalTargetInfo])
.try
{
IL_153F: br => Label134
IL_1544: Label138
IL_1544: ldloc.s 8
(System.Collections.Generic.IEnumerator`1[Verse.LocalTargetInfo])
IL_1546: callvirt abstract virtual Verse.LocalTargetInfo
System.Collections.Generic.IEnumerator`1<Verse.LocalTargetInfo>::get_Current()
IL_154B: stloc.s 41 (Verse.LocalTargetInfo)
IL_154D: ldloca.s 41 (Verse.LocalTargetInfo)
IL_154F: call Verse.Thing Verse.LocalTargetInfo::get_Thing()
IL_1554: castclass Verse.Pawn
IL_1559: stloc.s 42 (Verse.Pawn)
IL_155B: ldloc.s 42 (Verse.Pawn)
IL_155D: callvirt System.Boolean Verse.Pawn::get_IsColonist()
IL_1562: brfalse => Label135
IL_1567: ldloc.s 42 (Verse.Pawn)
IL_1569: callvirt System.Boolean Verse.Pawn::get_Downed()
IL_156E: brtrue => Label136
IL_1573: Label135
IL_1573: ldloc.s 42 (Verse.Pawn)
IL_1575: callvirt System.Boolean Verse.Pawn::get_IsPrisonerOfColony()
IL_157A: brfalse => Label137
IL_157F: Label136
IL_157F: ldarg.2
IL_1580: ldloc.0
IL_1581: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_1586: ldloc.s 42 (Verse.Pawn)
IL_1588: call static System.Void
RimWorld.CompBiosculpterPod::AddCarryToPodJobs(System.Collections.Generic.List`1<Ve
rse.FloatMenuOption> opts, Verse.Pawn pawn, Verse.Pawn traveller)
IL_158D: Label134
IL_158D: Label137
IL_158D: ldloc.s 8
(System.Collections.Generic.IEnumerator`1[Verse.LocalTargetInfo])
IL_158F: callvirt abstract virtual System.Boolean
System.Collections.IEnumerator::MoveNext()
IL_1594: brtrue => Label138
IL_1599: leave => Label139
IL_159E: leave => (autogenerated)
} // end try
.finally
{
IL_15A3: ldloc.s 8
(System.Collections.Generic.IEnumerator`1[Verse.LocalTargetInfo])
IL_15A5: brfalse => Label140
IL_15AA: ldloc.s 8
(System.Collections.Generic.IEnumerator`1[Verse.LocalTargetInfo])
IL_15AC: callvirt abstract virtual System.Void
System.IDisposable::Dispose()
IL_15B1: Label140
IL_15B1: endfinally
IL_15B2: leave => (autogenerated)
} // end handler
IL_15B3: Label133
IL_15B3: Label139
IL_15B3: call static System.Boolean Verse.ModsConfig::get_RoyaltyActive()
IL_15B8: brfalse => Label141
IL_15BD: ldarg.0
IL_15BE: ldloc.0
IL_15BF: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_15C4: call static RimWorld.TargetingParameters
RimWorld.TargetingParameters::ForShuttle(Verse.Pawn hauler)
IL_15C9: ldc.i4.1
IL_15CA: ldnull
IL_15CB: call static
System.Collections.Generic.IEnumerable`1<Verse.LocalTargetInfo>
Verse.GenUI::TargetsAt(UnityEngine.Vector3 clickPos, RimWorld.TargetingParameters
clickParams, System.Boolean thingsOnly, RimWorld.ITargetingSource source)
IL_15D0: callvirt abstract virtual
System.Collections.Generic.IEnumerator`1<Verse.LocalTargetInfo>
System.Collections.Generic.IEnumerable`1<Verse.LocalTargetInfo>::GetEnumerator()
IL_15D5: stloc.s 8
(System.Collections.Generic.IEnumerator`1[Verse.LocalTargetInfo])
.try
{
IL_15D7: br => Label142
IL_15DC: Label147
IL_15DC: ldloc.s 8
(System.Collections.Generic.IEnumerator`1[Verse.LocalTargetInfo])
IL_15DE: callvirt abstract virtual Verse.LocalTargetInfo
System.Collections.Generic.IEnumerator`1<Verse.LocalTargetInfo>::get_Current()
IL_15E3: newobj System.Void RimWorld.<>c__DisplayClass10_11::.ctor()
IL_15E8: stloc.s 43 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_11)
IL_15EA: ldloc.s 43 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_11)
IL_15EC: ldloc.0
IL_15ED: stfld RimWorld.<>c__DisplayClass10_0
RimWorld.<>c__DisplayClass10_11::CS$<>8__locals11
IL_15F2: stloc.s 44 (Verse.LocalTargetInfo)
IL_15F4: ldloc.s 43 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_11)
IL_15F6: ldloca.s 44 (Verse.LocalTargetInfo)
IL_15F8: call Verse.Thing Verse.LocalTargetInfo::get_Thing()
IL_15FD: castclass Verse.Pawn
IL_1602: stfld Verse.Pawn RimWorld.<>c__DisplayClass10_11::victim
IL_1607: ldloc.s 43 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_11)
IL_1609: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_11::victim
IL_160E: callvirt System.Boolean Verse.Thing::get_Spawned()
IL_1613: brfalse => Label143
IL_1618: ldloc.s 43 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_11)
IL_161A: ldftn System.Boolean
RimWorld.<>c__DisplayClass10_11::<AddHumanlikeOrders>b__10(Verse.Thing thing)
IL_1620: newobj System.Void
System.Predicate`1<Verse.Thing>::.ctor(System.Object object, System.IntPtr method)
IL_1625: stloc.s 45 (System.Predicate`1[Verse.Thing])
IL_1627: ldloc.s 43 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_11)
IL_1629: ldloc.s 43 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_11)
IL_162B: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_11::victim
IL_1630: callvirt virtual Verse.IntVec3 Verse.Thing::get_Position()
IL_1635: ldloc.s 43 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_11)
IL_1637: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_11::victim
IL_163C: callvirt virtual Verse.Map Verse.Thing::get_Map()
IL_1641: ldsfld Verse.ThingDef RimWorld.ThingDefOf::Shuttle
IL_1646: call static Verse.ThingRequest
Verse.ThingRequest::ForDef(Verse.ThingDef singleDef)
IL_164B: ldc.i4.3
IL_164C: ldloc.s 43 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_11)
IL_164E: ldfld RimWorld.<>c__DisplayClass10_0
RimWorld.<>c__DisplayClass10_11::CS$<>8__locals11
IL_1653: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_1658: ldc.i4.3
IL_1659: ldc.i4.0
IL_165A: ldc.i4.0
IL_165B: ldc.i4.0
IL_165C: ldc.i4.0
IL_165D: call static Verse.TraverseParms
Verse.TraverseParms::For(Verse.Pawn pawn, Verse.Danger maxDanger,
Verse.TraverseMode mode, System.Boolean canBashDoors, System.Boolean
alwaysUseAvoidGrid, System.Boolean canBashFences)
IL_1662: ldc.r4 9999
IL_1667: ldloc.s 45 (System.Predicate`1[Verse.Thing])
IL_1669: ldnull
IL_166A: ldc.i4.0
IL_166B: ldc.i4.m1
IL_166C: ldc.i4.0
IL_166D: ldc.i4.s 14
IL_166F: ldc.i4.0
IL_1670: call static Verse.Thing
Verse.GenClosest::ClosestThingReachable(Verse.IntVec3 root, Verse.Map map,
Verse.ThingRequest thingReq, Verse.AI.PathEndMode peMode, Verse.TraverseParms
traverseParams, System.Single maxDistance, System.Predicate`1<Verse.Thing>
validator, System.Collections.Generic.IEnumerable`1<Verse.Thing>
customGlobalSearchSet, System.Int32 searchRegionsMin, System.Int32
searchRegionsMax, System.Boolean forceAllowGlobalSearch, Verse.RegionType
traversableRegionTypes, System.Boolean ignoreEntirelyForbiddenRegions)
IL_1675: stfld Verse.Thing RimWorld.<>c__DisplayClass10_11::shuttleThing
IL_167A: ldloc.s 43 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_11)
IL_167C: ldfld Verse.Thing RimWorld.<>c__DisplayClass10_11::shuttleThing
IL_1681: brfalse => Label144
IL_1686: ldloc.s 43 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_11)
IL_1688: ldfld RimWorld.<>c__DisplayClass10_0
RimWorld.<>c__DisplayClass10_11::CS$<>8__locals11
IL_168D: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_1692: ldloc.s 43 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_11)
IL_1694: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_11::victim
IL_1699: call static Verse.LocalTargetInfo
Verse.LocalTargetInfo::op_Implicit(Verse.Thing t)
IL_169E: ldc.i4.1
IL_169F: ldc.i4.3
IL_16A0: ldc.i4.1
IL_16A1: ldc.i4.m1
IL_16A2: ldnull
IL_16A3: ldc.i4.1
IL_16A4: call static System.Boolean
Verse.AI.ReservationUtility::CanReserveAndReach(Verse.Pawn p, Verse.LocalTargetInfo
target, Verse.AI.PathEndMode peMode, Verse.Danger maxDanger, System.Int32 maxPawns,
System.Int32 stackCount, Verse.ReservationLayerDef layer, System.Boolean
ignoreOtherReservations)
IL_16A9: brfalse => Label145
IL_16AE: ldloc.s 43 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_11)
IL_16B0: ldfld RimWorld.<>c__DisplayClass10_0
RimWorld.<>c__DisplayClass10_11::CS$<>8__locals11
IL_16B5: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_16BA: ldsfld Verse.WorkTypeDef RimWorld.WorkTypeDefOf::Hauling
IL_16BF: callvirt System.Boolean
Verse.Pawn::WorkTypeIsDisabled(Verse.WorkTypeDef w)
IL_16C4: brtrue => Label146
IL_16C9: ldstr "CarryToShuttle"
IL_16CE: ldloca.s 44 (Verse.LocalTargetInfo)
IL_16D0: call Verse.Thing Verse.LocalTargetInfo::get_Thing()
IL_16D5: call static Verse.NamedArgument
Verse.NamedArgument::op_Implicit(Verse.Thing value)
IL_16DA: call static Verse.TaggedString
Verse.TranslatorFormattedStringExtensions::Translate(System.String key,
Verse.NamedArgument arg1)
IL_16DF: call static System.String
Verse.TaggedString::op_Implicit(Verse.TaggedString taggedString)
IL_16E4: stloc.s 46 (System.String)
IL_16E6: ldloc.s 43 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_11)
IL_16E8: ldftn System.Void
RimWorld.<>c__DisplayClass10_11::<AddHumanlikeOrders>b__11()
IL_16EE: newobj System.Void System.Action::.ctor(System.Object object,
System.IntPtr method)
IL_16F3: stloc.s 47 (System.Action)
IL_16F5: ldarg.2
IL_16F6: ldloc.s 46 (System.String)
IL_16F8: ldloc.s 47 (System.Action)
IL_16FA: ldc.i4.4
IL_16FB: ldnull
IL_16FC: ldnull
IL_16FD: ldc.r4 0
IL_1702: ldnull
IL_1703: ldnull
IL_1704: ldc.i4.1
IL_1705: ldc.i4.0
IL_1706: newobj System.Void Verse.FloatMenuOption::.ctor(System.String
label, System.Action action, Verse.MenuOptionPriority priority,
System.Action`1<UnityEngine.Rect> mouseoverGuiAction, Verse.Thing
revalidateClickTarget, System.Single extraPartWidth,
System.Func`2<UnityEngine.Rect, System.Boolean> extraPartOnGUI,
RimWorld.Planet.WorldObject revalidateWorldClickTarget, System.Boolean
playSelectionSound, System.Int32 orderInPriority)
IL_170B: ldloc.s 43 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_11)
IL_170D: ldfld RimWorld.<>c__DisplayClass10_0
RimWorld.<>c__DisplayClass10_11::CS$<>8__locals11
IL_1712: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_1717: ldloc.s 43 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_11)
IL_1719: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_11::victim
IL_171E: call static Verse.LocalTargetInfo
Verse.LocalTargetInfo::op_Implicit(Verse.Thing t)
IL_1723: ldstr "ReservedBy"
IL_1728: ldnull
IL_1729: call static Verse.FloatMenuOption
RimWorld.FloatMenuUtility::DecoratePrioritizedTask(Verse.FloatMenuOption option,
Verse.Pawn pawn, Verse.LocalTargetInfo target, System.String reservedText,
Verse.ReservationLayerDef layer)
IL_172E: callvirt virtual System.Void
System.Collections.Generic.List`1<Verse.FloatMenuOption>::Add(Verse.FloatMenuOption
item)
IL_1733: Label142
IL_1733: Label143
IL_1733: Label144
IL_1733: Label145
IL_1733: Label146
IL_1733: ldloc.s 8
(System.Collections.Generic.IEnumerator`1[Verse.LocalTargetInfo])
IL_1735: callvirt abstract virtual System.Boolean
System.Collections.IEnumerator::MoveNext()
IL_173A: brtrue => Label147
IL_173F: leave => Label148
IL_1744: leave => (autogenerated)
} // end try
.finally
{
IL_1749: ldloc.s 8
(System.Collections.Generic.IEnumerator`1[Verse.LocalTargetInfo])
IL_174B: brfalse => Label149
IL_1750: ldloc.s 8
(System.Collections.Generic.IEnumerator`1[Verse.LocalTargetInfo])
IL_1752: callvirt abstract virtual System.Void
System.IDisposable::Dispose()
IL_1757: Label149
IL_1757: endfinally
IL_1758: leave => (autogenerated)
} // end handler
IL_1759: Label141
IL_1759: Label148
IL_1759: call static System.Boolean Verse.ModsConfig::get_IdeologyActive()
IL_175E: brfalse => Label150
IL_1763: ldloc.s 22 (System.Collections.Generic.List`1[Verse.Thing])
IL_1765: callvirt System.Collections.Generic.Enumerator<Verse.Thing>
System.Collections.Generic.List`1<Verse.Thing>::GetEnumerator()
IL_176A: stloc.2
.try
{
IL_176B: br => Label151
IL_1770: Label163
IL_1770: newobj System.Void RimWorld.<>c__DisplayClass10_12::.ctor()
IL_1775: stloc.s 48 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_12)
IL_1777: ldloc.s 48 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_12)
IL_1779: ldloc.0
IL_177A: stfld RimWorld.<>c__DisplayClass10_0
RimWorld.<>c__DisplayClass10_12::CS$<>8__locals12
IL_177F: ldloc.s 48 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_12)
IL_1781: ldloca.s 2
(System.Collections.Generic.List`1+Enumerator[Verse.Thing])
IL_1783: call virtual Verse.Thing
System.Collections.Generic.Enumerator<Verse.Thing>::get_Current()
IL_1788: stfld Verse.Thing RimWorld.<>c__DisplayClass10_12::thing
IL_178D: ldloc.s 48 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_12)
IL_178F: ldfld Verse.Thing RimWorld.<>c__DisplayClass10_12::thing
IL_1794: call static RimWorld.CompHackable
Verse.ThingCompUtility::TryGetComp(Verse.Thing thing)
IL_1799: stloc.s 49 (RimWorld.CompHackable)
IL_179B: ldloc.s 49 (RimWorld.CompHackable)
IL_179D: brfalse => Label152
IL_17A2: ldloc.s 49 (RimWorld.CompHackable)
IL_17A4: callvirt System.Boolean RimWorld.CompHackable::get_IsHacked()
IL_17A9: brfalse => Label153
IL_17AE: ldarg.2
IL_17AF: ldstr "CannotHack"
IL_17B4: ldloc.s 48 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_12)
IL_17B6: ldfld Verse.Thing RimWorld.<>c__DisplayClass10_12::thing
IL_17BB: callvirt abstract virtual System.String Verse.Entity::get_Label()
IL_17C0: call static Verse.NamedArgument
Verse.NamedArgument::op_Implicit(System.String value)
IL_17C5: call static Verse.TaggedString
Verse.TranslatorFormattedStringExtensions::Translate(System.String key,
Verse.NamedArgument arg1)
IL_17CA: ldstr ": "
IL_17CF: call static Verse.TaggedString
Verse.TaggedString::op_Addition(Verse.TaggedString t1, System.String t2)
IL_17D4: ldstr "AlreadyHacked"
IL_17D9: call static Verse.TaggedString
Verse.Translator::Translate(System.String key)
IL_17DE: call static Verse.TaggedString
Verse.TaggedString::op_Addition(Verse.TaggedString t1, Verse.TaggedString t2)
IL_17E3: call static System.String
Verse.TaggedString::op_Implicit(Verse.TaggedString taggedString)
IL_17E8: ldnull
IL_17E9: ldc.i4.4
IL_17EA: ldnull
IL_17EB: ldnull
IL_17EC: ldc.r4 0
IL_17F1: ldnull
IL_17F2: ldnull
IL_17F3: ldc.i4.1
IL_17F4: ldc.i4.0
IL_17F5: newobj System.Void Verse.FloatMenuOption::.ctor(System.String
label, System.Action action, Verse.MenuOptionPriority priority,
System.Action`1<UnityEngine.Rect> mouseoverGuiAction, Verse.Thing
revalidateClickTarget, System.Single extraPartWidth,
System.Func`2<UnityEngine.Rect, System.Boolean> extraPartOnGUI,
RimWorld.Planet.WorldObject revalidateWorldClickTarget, System.Boolean
playSelectionSound, System.Int32 orderInPriority)
IL_17FA: callvirt virtual System.Void
System.Collections.Generic.List`1<Verse.FloatMenuOption>::Add(Verse.FloatMenuOption
item)
IL_17FF: br => Label154
IL_1804: Label153
IL_1804: ldloc.s 48 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_12)
IL_1806: ldfld RimWorld.<>c__DisplayClass10_0
RimWorld.<>c__DisplayClass10_12::CS$<>8__locals12
IL_180B: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_1810: call static System.Boolean
RimWorld.HackUtility::IsCapableOfHacking(Verse.Pawn pawn)
IL_1815: brtrue => Label155
IL_181A: ldarg.2
IL_181B: ldstr "CannotHack"
IL_1820: ldloc.s 48 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_12)
IL_1822: ldfld Verse.Thing RimWorld.<>c__DisplayClass10_12::thing
IL_1827: callvirt abstract virtual System.String Verse.Entity::get_Label()
IL_182C: call static Verse.NamedArgument
Verse.NamedArgument::op_Implicit(System.String value)
IL_1831: call static Verse.TaggedString
Verse.TranslatorFormattedStringExtensions::Translate(System.String key,
Verse.NamedArgument arg1)
IL_1836: ldstr ": "
IL_183B: call static Verse.TaggedString
Verse.TaggedString::op_Addition(Verse.TaggedString t1, System.String t2)
IL_1840: ldstr "IncapableOfHacking"
IL_1845: call static Verse.TaggedString
Verse.Translator::Translate(System.String key)
IL_184A: call static Verse.TaggedString
Verse.TaggedString::op_Addition(Verse.TaggedString t1, Verse.TaggedString t2)
IL_184F: call static System.String
Verse.TaggedString::op_Implicit(Verse.TaggedString taggedString)
IL_1854: ldnull
IL_1855: ldc.i4.4
IL_1856: ldnull
IL_1857: ldnull
IL_1858: ldc.r4 0
IL_185D: ldnull
IL_185E: ldnull
IL_185F: ldc.i4.1
IL_1860: ldc.i4.0
IL_1861: newobj System.Void Verse.FloatMenuOption::.ctor(System.String
label, System.Action action, Verse.MenuOptionPriority priority,
System.Action`1<UnityEngine.Rect> mouseoverGuiAction, Verse.Thing
revalidateClickTarget, System.Single extraPartWidth,
System.Func`2<UnityEngine.Rect, System.Boolean> extraPartOnGUI,
RimWorld.Planet.WorldObject revalidateWorldClickTarget, System.Boolean
playSelectionSound, System.Int32 orderInPriority)
IL_1866: callvirt virtual System.Void
System.Collections.Generic.List`1<Verse.FloatMenuOption>::Add(Verse.FloatMenuOption
item)
IL_186B: br => Label156
IL_1870: Label155
IL_1870: ldloc.s 48 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_12)
IL_1872: ldfld RimWorld.<>c__DisplayClass10_0
RimWorld.<>c__DisplayClass10_12::CS$<>8__locals12
IL_1877: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_187C: ldloc.s 48 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_12)
IL_187E: ldfld Verse.Thing RimWorld.<>c__DisplayClass10_12::thing
IL_1883: call static Verse.LocalTargetInfo
Verse.LocalTargetInfo::op_Implicit(Verse.Thing t)
IL_1888: ldc.i4.3
IL_1889: ldc.i4.3
IL_188A: ldc.i4.0
IL_188B: ldc.i4.0
IL_188C: ldc.i4.0
IL_188D: call static System.Boolean
Verse.ReachabilityUtility::CanReach(Verse.Pawn pawn, Verse.LocalTargetInfo dest,
Verse.AI.PathEndMode peMode, Verse.Danger maxDanger, System.Boolean canBashDoors,
System.Boolean canBashFences, Verse.TraverseMode mode)
IL_1892: brtrue => Label157
IL_1897: ldarg.2
IL_1898: ldstr "CannotHack"
IL_189D: ldloc.s 48 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_12)
IL_189F: ldfld Verse.Thing RimWorld.<>c__DisplayClass10_12::thing
IL_18A4: callvirt abstract virtual System.String Verse.Entity::get_Label()
IL_18A9: call static Verse.NamedArgument
Verse.NamedArgument::op_Implicit(System.String value)
IL_18AE: call static Verse.TaggedString
Verse.TranslatorFormattedStringExtensions::Translate(System.String key,
Verse.NamedArgument arg1)
IL_18B3: ldstr ": "
IL_18B8: call static Verse.TaggedString
Verse.TaggedString::op_Addition(Verse.TaggedString t1, System.String t2)
IL_18BD: ldstr "NoPath"
IL_18C2: call static Verse.TaggedString
Verse.Translator::Translate(System.String key)
IL_18C7: stloc.s 11 (Verse.TaggedString)
IL_18C9: ldloca.s 11 (Verse.TaggedString)
IL_18CB: call Verse.TaggedString Verse.TaggedString::CapitalizeFirst()
IL_18D0: call static Verse.TaggedString
Verse.TaggedString::op_Addition(Verse.TaggedString t1, Verse.TaggedString t2)
IL_18D5: call static System.String
Verse.TaggedString::op_Implicit(Verse.TaggedString taggedString)
IL_18DA: ldnull
IL_18DB: ldc.i4.4
IL_18DC: ldnull
IL_18DD: ldnull
IL_18DE: ldc.r4 0
IL_18E3: ldnull
IL_18E4: ldnull
IL_18E5: ldc.i4.1
IL_18E6: ldc.i4.0
IL_18E7: newobj System.Void Verse.FloatMenuOption::.ctor(System.String
label, System.Action action, Verse.MenuOptionPriority priority,
System.Action`1<UnityEngine.Rect> mouseoverGuiAction, Verse.Thing
revalidateClickTarget, System.Single extraPartWidth,
System.Func`2<UnityEngine.Rect, System.Boolean> extraPartOnGUI,
RimWorld.Planet.WorldObject revalidateWorldClickTarget, System.Boolean
playSelectionSound, System.Int32 orderInPriority)
IL_18EC: callvirt virtual System.Void
System.Collections.Generic.List`1<Verse.FloatMenuOption>::Add(Verse.FloatMenuOption
item)
IL_18F1: br => Label158
IL_18F6: Label157
IL_18F6: ldloc.s 48 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_12)
IL_18F8: ldfld Verse.Thing RimWorld.<>c__DisplayClass10_12::thing
IL_18FD: ldfld Verse.ThingDef Verse.Thing::def
IL_1902: ldsfld Verse.ThingDef RimWorld.ThingDefOf::AncientEnemyTerminal
IL_1907: bne.un => Label159
IL_190C: ldarg.2
IL_190D: ldstr "Hack"
IL_1912: ldloc.s 48 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_12)
IL_1914: ldfld Verse.Thing RimWorld.<>c__DisplayClass10_12::thing
IL_1919: callvirt abstract virtual System.String Verse.Entity::get_Label()
IL_191E: call static Verse.NamedArgument
Verse.NamedArgument::op_Implicit(System.String value)
IL_1923: call static Verse.TaggedString
Verse.TranslatorFormattedStringExtensions::Translate(System.String key,
Verse.NamedArgument arg1)
IL_1928: call static System.String
Verse.TaggedString::op_Implicit(Verse.TaggedString taggedString)
IL_192D: ldloc.s 48 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_12)
IL_192F: ldftn System.Void
RimWorld.<>c__DisplayClass10_12::<AddHumanlikeOrders>b__12()
IL_1935: newobj System.Void System.Action::.ctor(System.Object object,
System.IntPtr method)
IL_193A: ldc.i4.4
IL_193B: ldnull
IL_193C: ldnull
IL_193D: ldc.r4 0
IL_1942: ldnull
IL_1943: ldnull
IL_1944: ldc.i4.1
IL_1945: ldc.i4.0
IL_1946: newobj System.Void Verse.FloatMenuOption::.ctor(System.String
label, System.Action action, Verse.MenuOptionPriority priority,
System.Action`1<UnityEngine.Rect> mouseoverGuiAction, Verse.Thing
revalidateClickTarget, System.Single extraPartWidth,
System.Func`2<UnityEngine.Rect, System.Boolean> extraPartOnGUI,
RimWorld.Planet.WorldObject revalidateWorldClickTarget, System.Boolean
playSelectionSound, System.Int32 orderInPriority)
IL_194B: ldloc.s 48 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_12)
IL_194D: ldfld RimWorld.<>c__DisplayClass10_0
RimWorld.<>c__DisplayClass10_12::CS$<>8__locals12
IL_1952: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_1957: ldloc.s 48 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_12)
IL_1959: ldfld Verse.Thing RimWorld.<>c__DisplayClass10_12::thing
IL_195E: newobj System.Void Verse.LocalTargetInfo::.ctor(Verse.Thing
thing)
IL_1963: ldstr "ReservedBy"
IL_1968: ldnull
IL_1969: call static Verse.FloatMenuOption
RimWorld.FloatMenuUtility::DecoratePrioritizedTask(Verse.FloatMenuOption option,
Verse.Pawn pawn, Verse.LocalTargetInfo target, System.String reservedText,
Verse.ReservationLayerDef layer)
IL_196E: callvirt virtual System.Void
System.Collections.Generic.List`1<Verse.FloatMenuOption>::Add(Verse.FloatMenuOption
item)
IL_1973: br => Label160
IL_1978: Label159
IL_1978: ldloc.s 48 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_12)
IL_197A: ldfld Verse.Thing RimWorld.<>c__DisplayClass10_12::thing
IL_197F: ldfld Verse.ThingDef Verse.Thing::def
IL_1984: ldsfld Verse.ThingDef RimWorld.ThingDefOf::AncientCommsConsole
IL_1989: beq => Label161
IL_198E: ldstr "Hack"
IL_1993: ldloc.s 48 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_12)
IL_1995: ldfld Verse.Thing RimWorld.<>c__DisplayClass10_12::thing
IL_199A: callvirt abstract virtual System.String Verse.Entity::get_Label()
IL_199F: call static Verse.NamedArgument
Verse.NamedArgument::op_Implicit(System.String value)
IL_19A4: call static Verse.TaggedString
Verse.TranslatorFormattedStringExtensions::Translate(System.String key,
Verse.NamedArgument arg1)
IL_19A9: br => Label162
IL_19AE: Label161
IL_19AE: ldstr "Hack"
IL_19B3: ldstr "ToDropSupplies"
IL_19B8: call static Verse.TaggedString
Verse.Translator::Translate(System.String key)
IL_19BD: call static Verse.NamedArgument
Verse.NamedArgument::op_Implicit(Verse.TaggedString value)
IL_19C2: call static Verse.TaggedString
Verse.TranslatorFormattedStringExtensions::Translate(System.String key,
Verse.NamedArgument arg1)
IL_19C7: Label162
IL_19C7: stloc.s 50 (Verse.TaggedString)
IL_19C9: ldarg.2
IL_19CA: ldloc.s 50 (Verse.TaggedString)
IL_19CC: call static System.String
Verse.TaggedString::op_Implicit(Verse.TaggedString taggedString)
IL_19D1: ldloc.s 48 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_12)
IL_19D3: ldftn System.Void
RimWorld.<>c__DisplayClass10_12::<AddHumanlikeOrders>b__14()
IL_19D9: newobj System.Void System.Action::.ctor(System.Object object,
System.IntPtr method)
IL_19DE: ldc.i4.4
IL_19DF: ldnull
IL_19E0: ldnull
IL_19E1: ldc.r4 0
IL_19E6: ldnull
IL_19E7: ldnull
IL_19E8: ldc.i4.1
IL_19E9: ldc.i4.0
IL_19EA: newobj System.Void Verse.FloatMenuOption::.ctor(System.String
label, System.Action action, Verse.MenuOptionPriority priority,
System.Action`1<UnityEngine.Rect> mouseoverGuiAction, Verse.Thing
revalidateClickTarget, System.Single extraPartWidth,
System.Func`2<UnityEngine.Rect, System.Boolean> extraPartOnGUI,
RimWorld.Planet.WorldObject revalidateWorldClickTarget, System.Boolean
playSelectionSound, System.Int32 orderInPriority)
IL_19EF: ldloc.s 48 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_12)
IL_19F1: ldfld RimWorld.<>c__DisplayClass10_0
RimWorld.<>c__DisplayClass10_12::CS$<>8__locals12
IL_19F6: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_19FB: ldloc.s 48 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_12)
IL_19FD: ldfld Verse.Thing RimWorld.<>c__DisplayClass10_12::thing
IL_1A02: newobj System.Void Verse.LocalTargetInfo::.ctor(Verse.Thing
thing)
IL_1A07: ldstr "ReservedBy"
IL_1A0C: ldnull
IL_1A0D: call static Verse.FloatMenuOption
RimWorld.FloatMenuUtility::DecoratePrioritizedTask(Verse.FloatMenuOption option,
Verse.Pawn pawn, Verse.LocalTargetInfo target, System.String reservedText,
Verse.ReservationLayerDef layer)
IL_1A12: callvirt virtual System.Void
System.Collections.Generic.List`1<Verse.FloatMenuOption>::Add(Verse.FloatMenuOption
item)
IL_1A17: Label151
IL_1A17: Label152
IL_1A17: Label154
IL_1A17: Label156
IL_1A17: Label158
IL_1A17: Label160
IL_1A17: ldloca.s 2
(System.Collections.Generic.List`1+Enumerator[Verse.Thing])
IL_1A19: call virtual System.Boolean
System.Collections.Generic.Enumerator<Verse.Thing>::MoveNext()
IL_1A1E: brtrue => Label163
IL_1A23: leave => Label164
IL_1A28: leave => (autogenerated)
} // end try
.finally
{
IL_1A2D: ldloca.s 2
(System.Collections.Generic.List`1+Enumerator[Verse.Thing])
IL_1A2F: constrained.
System.Collections.Generic.List`1+Enumerator[Verse.Thing]
IL_1A35: callvirt abstract virtual System.Void
System.IDisposable::Dispose()
IL_1A3A: endfinally
IL_1A3B: leave => (autogenerated)
} // end handler
IL_1A3C: Label164
IL_1A3C: ldarg.0
IL_1A3D: ldsfld Verse.ThingDef RimWorld.ThingDefOf::ArchonexusCore
IL_1A42: call static RimWorld.TargetingParameters
RimWorld.TargetingParameters::ForBuilding(Verse.ThingDef def)
IL_1A47: ldc.i4.0
IL_1A48: ldnull
IL_1A49: call static
System.Collections.Generic.IEnumerable`1<Verse.LocalTargetInfo>
Verse.GenUI::TargetsAt(UnityEngine.Vector3 clickPos, RimWorld.TargetingParameters
clickParams, System.Boolean thingsOnly, RimWorld.ITargetingSource source)
IL_1A4E: callvirt abstract virtual
System.Collections.Generic.IEnumerator`1<Verse.LocalTargetInfo>
System.Collections.Generic.IEnumerable`1<Verse.LocalTargetInfo>::GetEnumerator()
IL_1A53: stloc.s 8
(System.Collections.Generic.IEnumerator`1[Verse.LocalTargetInfo])
.try
{
IL_1A55: br => Label165
IL_1A5A: Label170
IL_1A5A: newobj System.Void RimWorld.<>c__DisplayClass10_13::.ctor()
IL_1A5F: stloc.s 51 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_13)
IL_1A61: ldloc.s 51 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_13)
IL_1A63: ldloc.0
IL_1A64: stfld RimWorld.<>c__DisplayClass10_0
RimWorld.<>c__DisplayClass10_13::CS$<>8__locals13
IL_1A69: ldloc.s 51 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_13)
IL_1A6B: ldloc.s 8
(System.Collections.Generic.IEnumerator`1[Verse.LocalTargetInfo])
IL_1A6D: callvirt abstract virtual Verse.LocalTargetInfo
System.Collections.Generic.IEnumerator`1<Verse.LocalTargetInfo>::get_Current()
IL_1A72: stfld Verse.LocalTargetInfo
RimWorld.<>c__DisplayClass10_13::thing
IL_1A77: ldloc.s 51 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_13)
IL_1A79: ldfld RimWorld.<>c__DisplayClass10_0
RimWorld.<>c__DisplayClass10_13::CS$<>8__locals13
IL_1A7E: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_1A83: ldloc.s 51 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_13)
IL_1A85: ldfld Verse.LocalTargetInfo
RimWorld.<>c__DisplayClass10_13::thing
IL_1A8A: ldc.i4.4
IL_1A8B: ldc.i4.3
IL_1A8C: ldc.i4.0
IL_1A8D: ldc.i4.0
IL_1A8E: ldc.i4.0
IL_1A8F: call static System.Boolean
Verse.ReachabilityUtility::CanReach(Verse.Pawn pawn, Verse.LocalTargetInfo dest,
Verse.AI.PathEndMode peMode, Verse.Danger maxDanger, System.Boolean canBashDoors,
System.Boolean canBashFences, Verse.TraverseMode mode)
IL_1A94: brtrue => Label166
IL_1A99: ldarg.2
IL_1A9A: ldstr "CannotInvoke"
IL_1A9F: ldstr "Power"
IL_1AA4: call static Verse.TaggedString
Verse.Translator::Translate(System.String key)
IL_1AA9: call static Verse.NamedArgument
Verse.NamedArgument::op_Implicit(Verse.TaggedString value)
IL_1AAE: call static Verse.TaggedString
Verse.TranslatorFormattedStringExtensions::Translate(System.String key,
Verse.NamedArgument arg1)
IL_1AB3: ldstr ": "
IL_1AB8: call static Verse.TaggedString
Verse.TaggedString::op_Addition(Verse.TaggedString t1, System.String t2)
IL_1ABD: ldstr "NoPath"
IL_1AC2: call static Verse.TaggedString
Verse.Translator::Translate(System.String key)
IL_1AC7: stloc.s 11 (Verse.TaggedString)
IL_1AC9: ldloca.s 11 (Verse.TaggedString)
IL_1ACB: call Verse.TaggedString Verse.TaggedString::CapitalizeFirst()
IL_1AD0: call static Verse.TaggedString
Verse.TaggedString::op_Addition(Verse.TaggedString t1, Verse.TaggedString t2)
IL_1AD5: call static System.String
Verse.TaggedString::op_Implicit(Verse.TaggedString taggedString)
IL_1ADA: ldnull
IL_1ADB: ldc.i4.4
IL_1ADC: ldnull
IL_1ADD: ldnull
IL_1ADE: ldc.r4 0
IL_1AE3: ldnull
IL_1AE4: ldnull
IL_1AE5: ldc.i4.1
IL_1AE6: ldc.i4.0
IL_1AE7: newobj System.Void Verse.FloatMenuOption::.ctor(System.String
label, System.Action action, Verse.MenuOptionPriority priority,
System.Action`1<UnityEngine.Rect> mouseoverGuiAction, Verse.Thing
revalidateClickTarget, System.Single extraPartWidth,
System.Func`2<UnityEngine.Rect, System.Boolean> extraPartOnGUI,
RimWorld.Planet.WorldObject revalidateWorldClickTarget, System.Boolean
playSelectionSound, System.Int32 orderInPriority)
IL_1AEC: callvirt virtual System.Void
System.Collections.Generic.List`1<Verse.FloatMenuOption>::Add(Verse.FloatMenuOption
item)
IL_1AF1: br => Label167
IL_1AF6: Label166
IL_1AF6: ldloc.s 51 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_13)
IL_1AF8: ldfld Verse.LocalTargetInfo
RimWorld.<>c__DisplayClass10_13::thing
IL_1AFD: call static Verse.Thing
Verse.LocalTargetInfo::op_Explicit(Verse.LocalTargetInfo targ)
IL_1B02: castclass RimWorld.Building_ArchonexusCore
IL_1B07: callvirt System.Boolean
RimWorld.Building_ArchonexusCore::get_CanActivateNow()
IL_1B0C: brtrue => Label168
IL_1B11: ldarg.2
IL_1B12: ldstr "CannotInvoke"
IL_1B17: ldstr "Power"
IL_1B1C: call static Verse.TaggedString
Verse.Translator::Translate(System.String key)
IL_1B21: call static Verse.NamedArgument
Verse.NamedArgument::op_Implicit(Verse.TaggedString value)
IL_1B26: call static Verse.TaggedString
Verse.TranslatorFormattedStringExtensions::Translate(System.String key,
Verse.NamedArgument arg1)
IL_1B2B: ldstr ": "
IL_1B30: call static Verse.TaggedString
Verse.TaggedString::op_Addition(Verse.TaggedString t1, System.String t2)
IL_1B35: ldstr "AlreadyInvoked"
IL_1B3A: call static Verse.TaggedString
Verse.Translator::Translate(System.String key)
IL_1B3F: call static Verse.TaggedString
Verse.TaggedString::op_Addition(Verse.TaggedString t1, Verse.TaggedString t2)
IL_1B44: call static System.String
Verse.TaggedString::op_Implicit(Verse.TaggedString taggedString)
IL_1B49: ldnull
IL_1B4A: ldc.i4.4
IL_1B4B: ldnull
IL_1B4C: ldnull
IL_1B4D: ldc.r4 0
IL_1B52: ldnull
IL_1B53: ldnull
IL_1B54: ldc.i4.1
IL_1B55: ldc.i4.0
IL_1B56: newobj System.Void Verse.FloatMenuOption::.ctor(System.String
label, System.Action action, Verse.MenuOptionPriority priority,
System.Action`1<UnityEngine.Rect> mouseoverGuiAction, Verse.Thing
revalidateClickTarget, System.Single extraPartWidth,
System.Func`2<UnityEngine.Rect, System.Boolean> extraPartOnGUI,
RimWorld.Planet.WorldObject revalidateWorldClickTarget, System.Boolean
playSelectionSound, System.Int32 orderInPriority)
IL_1B5B: callvirt virtual System.Void
System.Collections.Generic.List`1<Verse.FloatMenuOption>::Add(Verse.FloatMenuOption
item)
IL_1B60: br => Label169
IL_1B65: Label168
IL_1B65: ldarg.2
IL_1B66: ldstr "Invoke"
IL_1B6B: ldstr "Power"
IL_1B70: call static Verse.TaggedString
Verse.Translator::Translate(System.String key)
IL_1B75: call static Verse.NamedArgument
Verse.NamedArgument::op_Implicit(Verse.TaggedString value)
IL_1B7A: call static Verse.TaggedString
Verse.TranslatorFormattedStringExtensions::Translate(System.String key,
Verse.NamedArgument arg1)
IL_1B7F: call static System.String
Verse.TaggedString::op_Implicit(Verse.TaggedString taggedString)
IL_1B84: ldloc.s 51 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_13)
IL_1B86: ldftn System.Void
RimWorld.<>c__DisplayClass10_13::<AddHumanlikeOrders>b__15()
IL_1B8C: newobj System.Void System.Action::.ctor(System.Object object,
System.IntPtr method)
IL_1B91: ldc.i4.4
IL_1B92: ldnull
IL_1B93: ldnull
IL_1B94: ldc.r4 0
IL_1B99: ldnull
IL_1B9A: ldnull
IL_1B9B: ldc.i4.1
IL_1B9C: ldc.i4.0
IL_1B9D: newobj System.Void Verse.FloatMenuOption::.ctor(System.String
label, System.Action action, Verse.MenuOptionPriority priority,
System.Action`1<UnityEngine.Rect> mouseoverGuiAction, Verse.Thing
revalidateClickTarget, System.Single extraPartWidth,
System.Func`2<UnityEngine.Rect, System.Boolean> extraPartOnGUI,
RimWorld.Planet.WorldObject revalidateWorldClickTarget, System.Boolean
playSelectionSound, System.Int32 orderInPriority)
IL_1BA2: ldloc.s 51 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_13)
IL_1BA4: ldfld RimWorld.<>c__DisplayClass10_0
RimWorld.<>c__DisplayClass10_13::CS$<>8__locals13
IL_1BA9: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_1BAE: ldloc.s 51 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_13)
IL_1BB0: ldfld Verse.LocalTargetInfo
RimWorld.<>c__DisplayClass10_13::thing
IL_1BB5: ldstr "ReservedBy"
IL_1BBA: ldnull
IL_1BBB: call static Verse.FloatMenuOption
RimWorld.FloatMenuUtility::DecoratePrioritizedTask(Verse.FloatMenuOption option,
Verse.Pawn pawn, Verse.LocalTargetInfo target, System.String reservedText,
Verse.ReservationLayerDef layer)
IL_1BC0: callvirt virtual System.Void
System.Collections.Generic.List`1<Verse.FloatMenuOption>::Add(Verse.FloatMenuOption
item)
IL_1BC5: Label165
IL_1BC5: Label167
IL_1BC5: Label169
IL_1BC5: ldloc.s 8
(System.Collections.Generic.IEnumerator`1[Verse.LocalTargetInfo])
IL_1BC7: callvirt abstract virtual System.Boolean
System.Collections.IEnumerator::MoveNext()
IL_1BCC: brtrue => Label170
IL_1BD1: leave => Label171
IL_1BD6: leave => (autogenerated)
} // end try
.finally
{
IL_1BDB: ldloc.s 8
(System.Collections.Generic.IEnumerator`1[Verse.LocalTargetInfo])
IL_1BDD: brfalse => Label172
IL_1BE2: ldloc.s 8
(System.Collections.Generic.IEnumerator`1[Verse.LocalTargetInfo])
IL_1BE4: callvirt abstract virtual System.Void
System.IDisposable::Dispose()
IL_1BE9: Label172
IL_1BE9: endfinally
IL_1BEA: leave => (autogenerated)
} // end handler
IL_1BEB: Label150
IL_1BEB: Label171
IL_1BEB: call static System.Boolean Verse.ModsConfig::get_IdeologyActive()
IL_1BF0: brfalse => Label173
IL_1BF5: ldloc.s 22 (System.Collections.Generic.List`1[Verse.Thing])
IL_1BF7: callvirt System.Collections.Generic.Enumerator<Verse.Thing>
System.Collections.Generic.List`1<Verse.Thing>::GetEnumerator()
IL_1BFC: stloc.2
.try
{
IL_1BFD: br => Label174
IL_1C02: Label190
IL_1C02: newobj System.Void RimWorld.<>c__DisplayClass10_14::.ctor()
IL_1C07: stloc.s 52 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_14)
IL_1C09: ldloc.s 52 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_14)
IL_1C0B: ldloc.0
IL_1C0C: stfld RimWorld.<>c__DisplayClass10_0
RimWorld.<>c__DisplayClass10_14::CS$<>8__locals14
IL_1C11: ldloc.s 52 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_14)
IL_1C13: ldloca.s 2
(System.Collections.Generic.List`1+Enumerator[Verse.Thing])
IL_1C15: call virtual Verse.Thing
System.Collections.Generic.Enumerator<Verse.Thing>::get_Current()
IL_1C1A: stfld Verse.Thing RimWorld.<>c__DisplayClass10_14::thing
IL_1C1F: newobj System.Void RimWorld.<>c__DisplayClass10_15::.ctor()
IL_1C24: stloc.s 53 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_15)
IL_1C26: ldloc.s 53 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_15)
IL_1C28: ldloc.s 52 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_14)
IL_1C2A: stfld RimWorld.<>c__DisplayClass10_14
RimWorld.<>c__DisplayClass10_15::CS$<>8__locals15
IL_1C2F: ldloc.s 53 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_15)
IL_1C31: ldloc.s 53 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_15)
IL_1C33: ldfld RimWorld.<>c__DisplayClass10_14
RimWorld.<>c__DisplayClass10_15::CS$<>8__locals15
IL_1C38: ldfld Verse.Thing RimWorld.<>c__DisplayClass10_14::thing
IL_1C3D: call static RimWorld.CompRelicContainer
Verse.ThingCompUtility::TryGetComp(Verse.Thing thing)
IL_1C42: stfld RimWorld.CompRelicContainer
RimWorld.<>c__DisplayClass10_15::container
IL_1C47: ldloc.s 53 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_15)
IL_1C49: ldfld RimWorld.CompRelicContainer
RimWorld.<>c__DisplayClass10_15::container
IL_1C4E: brfalse => Label175
IL_1C53: ldloc.s 53 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_15)
IL_1C55: ldfld RimWorld.CompRelicContainer
RimWorld.<>c__DisplayClass10_15::container
IL_1C5A: callvirt System.Boolean RimWorld.CompThingContainer::get_Full()
IL_1C5F: brfalse => Label176
IL_1C64: ldstr "ExtractRelic"
IL_1C69: ldloc.s 53 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_15)
IL_1C6B: ldfld RimWorld.CompRelicContainer
RimWorld.<>c__DisplayClass10_15::container
IL_1C70: callvirt Verse.Thing
RimWorld.CompThingContainer::get_ContainedThing()
IL_1C75: callvirt abstract virtual System.String Verse.Entity::get_Label()
IL_1C7A: call static Verse.NamedArgument
Verse.NamedArgument::op_Implicit(System.String value)
IL_1C7F: call static Verse.TaggedString
Verse.TranslatorFormattedStringExtensions::Translate(System.String key,
Verse.NamedArgument arg1)
IL_1C84: call static System.String
Verse.TaggedString::op_Implicit(Verse.TaggedString taggedString)
IL_1C89: stloc.s 54 (System.String)
IL_1C8B: ldloc.s 53 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_15)
IL_1C8D: ldfld RimWorld.CompRelicContainer
RimWorld.<>c__DisplayClass10_15::container
IL_1C92: callvirt Verse.Thing
RimWorld.CompThingContainer::get_ContainedThing()
IL_1C97: ldloc.s 53 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_15)
IL_1C99: ldfld RimWorld.<>c__DisplayClass10_14
RimWorld.<>c__DisplayClass10_15::CS$<>8__locals15
IL_1C9E: ldfld RimWorld.<>c__DisplayClass10_0
RimWorld.<>c__DisplayClass10_14::CS$<>8__locals14
IL_1CA3: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_1CA8: ldloc.s 53 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_15)
IL_1CAA: ldfld RimWorld.<>c__DisplayClass10_14
RimWorld.<>c__DisplayClass10_15::CS$<>8__locals15
IL_1CAF: ldfld RimWorld.<>c__DisplayClass10_0
RimWorld.<>c__DisplayClass10_14::CS$<>8__locals14
IL_1CB4: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_1CB9: callvirt virtual Verse.Map Verse.Thing::get_Map()
IL_1CBE: ldc.i4.0
IL_1CBF: ldloc.s 53 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_15)
IL_1CC1: ldfld RimWorld.<>c__DisplayClass10_14
RimWorld.<>c__DisplayClass10_15::CS$<>8__locals15
IL_1CC6: ldfld RimWorld.<>c__DisplayClass10_0
RimWorld.<>c__DisplayClass10_14::CS$<>8__locals14
IL_1CCB: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_1CD0: callvirt virtual RimWorld.Faction Verse.Thing::get_Faction()
IL_1CD5: ldloca.s 55 (Verse.IntVec3)
IL_1CD7: ldloca.s 56 (RimWorld.IHaulDestination)
IL_1CD9: ldc.i4.1
IL_1CDA: call static System.Boolean
RimWorld.StoreUtility::TryFindBestBetterStorageFor(Verse.Thing t, Verse.Pawn
carrier, Verse.Map map, RimWorld.StoragePriority currentPriority, RimWorld.Faction
faction, Verse.IntVec3& foundCell, RimWorld.IHaulDestination& haulDestination,
System.Boolean needAccurateResult)
IL_1CDF: brtrue => Label177
IL_1CE4: ldarg.2
IL_1CE5: ldloc.s 54 (System.String)
IL_1CE7: ldstr " ("
IL_1CEC: ldsfld System.String
Verse.AI.HaulAIUtility::NoEmptyPlaceLowerTrans
IL_1CF1: ldstr ")"
IL_1CF6: call static System.String System.String::Concat(System.String
str0, System.String str1, System.String str2, System.String str3)
IL_1CFB: ldnull
IL_1CFC: ldc.i4.4
IL_1CFD: ldnull
IL_1CFE: ldnull
IL_1CFF: ldc.r4 0
IL_1D04: ldnull
IL_1D05: ldnull
IL_1D06: ldc.i4.1
IL_1D07: ldc.i4.0
IL_1D08: newobj System.Void Verse.FloatMenuOption::.ctor(System.String
label, System.Action action, Verse.MenuOptionPriority priority,
System.Action`1<UnityEngine.Rect> mouseoverGuiAction, Verse.Thing
revalidateClickTarget, System.Single extraPartWidth,
System.Func`2<UnityEngine.Rect, System.Boolean> extraPartOnGUI,
RimWorld.Planet.WorldObject revalidateWorldClickTarget, System.Boolean
playSelectionSound, System.Int32 orderInPriority)
IL_1D0D: callvirt virtual System.Void
System.Collections.Generic.List`1<Verse.FloatMenuOption>::Add(Verse.FloatMenuOption
item)
IL_1D12: br => Label178
IL_1D17: Label177
IL_1D17: newobj System.Void RimWorld.<>c__DisplayClass10_16::.ctor()
IL_1D1C: stloc.s 57 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_16)
IL_1D1E: ldloc.s 57 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_16)
IL_1D20: ldloc.s 53 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_15)
IL_1D22: stfld RimWorld.<>c__DisplayClass10_15
RimWorld.<>c__DisplayClass10_16::CS$<>8__locals16
IL_1D27: ldloc.s 57 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_16)
IL_1D29: ldsfld Verse.JobDef RimWorld.JobDefOf::ExtractRelic
IL_1D2E: ldloc.s 57 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_16)
IL_1D30: ldfld RimWorld.<>c__DisplayClass10_15
RimWorld.<>c__DisplayClass10_16::CS$<>8__locals16
IL_1D35: ldfld RimWorld.<>c__DisplayClass10_14
RimWorld.<>c__DisplayClass10_15::CS$<>8__locals15
IL_1D3A: ldfld Verse.Thing RimWorld.<>c__DisplayClass10_14::thing
IL_1D3F: call static Verse.LocalTargetInfo
Verse.LocalTargetInfo::op_Implicit(Verse.Thing t)
IL_1D44: ldloc.s 57 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_16)
IL_1D46: ldfld RimWorld.<>c__DisplayClass10_15
RimWorld.<>c__DisplayClass10_16::CS$<>8__locals16
IL_1D4B: ldfld RimWorld.CompRelicContainer
RimWorld.<>c__DisplayClass10_15::container
IL_1D50: callvirt Verse.Thing
RimWorld.CompThingContainer::get_ContainedThing()
IL_1D55: call static Verse.LocalTargetInfo
Verse.LocalTargetInfo::op_Implicit(Verse.Thing t)
IL_1D5A: ldloc.s 55 (Verse.IntVec3)
IL_1D5C: call static Verse.LocalTargetInfo
Verse.LocalTargetInfo::op_Implicit(Verse.IntVec3 c)
IL_1D61: call static Verse.AI.Job Verse.JobMaker::MakeJob(Verse.JobDef
def, Verse.LocalTargetInfo targetA, Verse.LocalTargetInfo targetB,
Verse.LocalTargetInfo targetC)
IL_1D66: stfld Verse.AI.Job RimWorld.<>c__DisplayClass10_16::job
IL_1D6B: ldloc.s 57 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_16)
IL_1D6D: ldfld Verse.AI.Job RimWorld.<>c__DisplayClass10_16::job
IL_1D72: ldc.i4.1
IL_1D73: stfld System.Int32 Verse.AI.Job::count
IL_1D78: ldarg.2
IL_1D79: ldloc.s 54 (System.String)
IL_1D7B: ldloc.s 57 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_16)
IL_1D7D: ldftn System.Void
RimWorld.<>c__DisplayClass10_16::<AddHumanlikeOrders>b__17()
IL_1D83: newobj System.Void System.Action::.ctor(System.Object object,
System.IntPtr method)
IL_1D88: ldc.i4.4
IL_1D89: ldnull
IL_1D8A: ldnull
IL_1D8B: ldc.r4 0
IL_1D90: ldnull
IL_1D91: ldnull
IL_1D92: ldc.i4.1
IL_1D93: ldc.i4.0
IL_1D94: newobj System.Void Verse.FloatMenuOption::.ctor(System.String
label, System.Action action, Verse.MenuOptionPriority priority,
System.Action`1<UnityEngine.Rect> mouseoverGuiAction, Verse.Thing
revalidateClickTarget, System.Single extraPartWidth,
System.Func`2<UnityEngine.Rect, System.Boolean> extraPartOnGUI,
RimWorld.Planet.WorldObject revalidateWorldClickTarget, System.Boolean
playSelectionSound, System.Int32 orderInPriority)
IL_1D99: ldloc.s 57 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_16)
IL_1D9B: ldfld RimWorld.<>c__DisplayClass10_15
RimWorld.<>c__DisplayClass10_16::CS$<>8__locals16
IL_1DA0: ldfld RimWorld.<>c__DisplayClass10_14
RimWorld.<>c__DisplayClass10_15::CS$<>8__locals15
IL_1DA5: ldfld RimWorld.<>c__DisplayClass10_0
RimWorld.<>c__DisplayClass10_14::CS$<>8__locals14
IL_1DAA: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_1DAF: ldloc.s 57 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_16)
IL_1DB1: ldfld RimWorld.<>c__DisplayClass10_15
RimWorld.<>c__DisplayClass10_16::CS$<>8__locals16
IL_1DB6: ldfld RimWorld.<>c__DisplayClass10_14
RimWorld.<>c__DisplayClass10_15::CS$<>8__locals15
IL_1DBB: ldfld Verse.Thing RimWorld.<>c__DisplayClass10_14::thing
IL_1DC0: newobj System.Void Verse.LocalTargetInfo::.ctor(Verse.Thing
thing)
IL_1DC5: ldstr "ReservedBy"
IL_1DCA: ldnull
IL_1DCB: call static Verse.FloatMenuOption
RimWorld.FloatMenuUtility::DecoratePrioritizedTask(Verse.FloatMenuOption option,
Verse.Pawn pawn, Verse.LocalTargetInfo target, System.String reservedText,
Verse.ReservationLayerDef layer)
IL_1DD0: callvirt virtual System.Void
System.Collections.Generic.List`1<Verse.FloatMenuOption>::Add(Verse.FloatMenuOption
item)
IL_1DD5: br => Label179
IL_1DDA: Label176
IL_1DDA: ldloc.s 53 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_15)
IL_1DDC: ldfld RimWorld.<>c__DisplayClass10_14
RimWorld.<>c__DisplayClass10_15::CS$<>8__locals15
IL_1DE1: ldfld RimWorld.<>c__DisplayClass10_0
RimWorld.<>c__DisplayClass10_14::CS$<>8__locals14
IL_1DE6: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_1DEB: callvirt virtual Verse.Map Verse.Thing::get_Map()
IL_1DF0: ldfld Verse.ListerThings Verse.Map::listerThings
IL_1DF5: callvirt System.Collections.Generic.List`1<Verse.Thing>
Verse.ListerThings::get_AllThings()
IL_1DFA: ldloc.s 53 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_15)
IL_1DFC: ldfld RimWorld.<>c__DisplayClass10_14
RimWorld.<>c__DisplayClass10_15::CS$<>8__locals15
IL_1E01: ldfld RimWorld.<>c__DisplayClass10_0
RimWorld.<>c__DisplayClass10_14::CS$<>8__locals14
IL_1E06: ldfld System.Func`2<Verse.Thing, System.Boolean>
RimWorld.<>c__DisplayClass10_0::<>9__18
IL_1E0B: dup
IL_1E0C: brtrue => Label180
IL_1E11: pop
IL_1E12: ldloc.s 53 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_15)
IL_1E14: ldfld RimWorld.<>c__DisplayClass10_14
RimWorld.<>c__DisplayClass10_15::CS$<>8__locals15
IL_1E19: ldfld RimWorld.<>c__DisplayClass10_0
RimWorld.<>c__DisplayClass10_14::CS$<>8__locals14
IL_1E1E: ldloc.s 53 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_15)
IL_1E20: ldfld RimWorld.<>c__DisplayClass10_14
RimWorld.<>c__DisplayClass10_15::CS$<>8__locals15
IL_1E25: ldfld RimWorld.<>c__DisplayClass10_0
RimWorld.<>c__DisplayClass10_14::CS$<>8__locals14
IL_1E2A: ldftn System.Boolean
RimWorld.<>c__DisplayClass10_0::<AddHumanlikeOrders>b__18(Verse.Thing x)
IL_1E30: newobj System.Void System.Func`2<Verse.Thing,
System.Boolean>::.ctor(System.Object object, System.IntPtr method)
IL_1E35: dup
IL_1E36: stloc.s 59 (System.Func`2[Verse.Thing,System.Boolean])
IL_1E38: stfld System.Func`2<Verse.Thing, System.Boolean>
RimWorld.<>c__DisplayClass10_0::<>9__18
IL_1E3D: ldloc.s 59 (System.Func`2[Verse.Thing,System.Boolean])
IL_1E3F: Label180
IL_1E3F: call static
System.Collections.Generic.IEnumerable`1<Verse.Thing>
System.Linq.Enumerable::Where(System.Collections.Generic.IEnumerable`1<Verse.Thing>
source, System.Func`2<Verse.Thing, System.Boolean> predicate)
IL_1E44: stloc.s 58
(System.Collections.Generic.IEnumerable`1[Verse.Thing])
IL_1E46: ldloc.s 58
(System.Collections.Generic.IEnumerable`1[Verse.Thing])
IL_1E48: call static System.Boolean
System.Linq.Enumerable::Any(System.Collections.Generic.IEnumerable`1<Verse.Thing>
source)
IL_1E4D: brtrue => Label181
IL_1E52: ldarg.2
IL_1E53: ldstr "NoRelicToInstall"
IL_1E58: call static Verse.TaggedString
Verse.Translator::Translate(System.String key)
IL_1E5D: call static System.String
Verse.TaggedString::op_Implicit(Verse.TaggedString taggedString)
IL_1E62: ldnull
IL_1E63: ldc.i4.4
IL_1E64: ldnull
IL_1E65: ldnull
IL_1E66: ldc.r4 0
IL_1E6B: ldnull
IL_1E6C: ldnull
IL_1E6D: ldc.i4.1
IL_1E6E: ldc.i4.0
IL_1E6F: newobj System.Void Verse.FloatMenuOption::.ctor(System.String
label, System.Action action, Verse.MenuOptionPriority priority,
System.Action`1<UnityEngine.Rect> mouseoverGuiAction, Verse.Thing
revalidateClickTarget, System.Single extraPartWidth,
System.Func`2<UnityEngine.Rect, System.Boolean> extraPartOnGUI,
RimWorld.Planet.WorldObject revalidateWorldClickTarget, System.Boolean
playSelectionSound, System.Int32 orderInPriority)
IL_1E74: callvirt virtual System.Void
System.Collections.Generic.List`1<Verse.FloatMenuOption>::Add(Verse.FloatMenuOption
item)
IL_1E79: br => Label182
IL_1E7E: Label181
IL_1E7E: ldloc.s 58
(System.Collections.Generic.IEnumerable`1[Verse.Thing])
IL_1E80: callvirt abstract virtual
System.Collections.Generic.IEnumerator`1<Verse.Thing>
System.Collections.Generic.IEnumerable`1<Verse.Thing>::GetEnumerator()
IL_1E85: stloc.s 60
(System.Collections.Generic.IEnumerator`1[Verse.Thing])
.try
{
IL_1E87: br => Label183
IL_1E8C: Label184
IL_1E8C: ldloc.s 60
(System.Collections.Generic.IEnumerator`1[Verse.Thing])
IL_1E8E: callvirt abstract virtual Verse.Thing
System.Collections.Generic.IEnumerator`1<Verse.Thing>::get_Current()
IL_1E93: stloc.s 61 (Verse.Thing)
IL_1E95: newobj System.Void
RimWorld.<>c__DisplayClass10_17::.ctor()
IL_1E9A: stloc.s 62
(RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_17)
IL_1E9C: ldloc.s 62
(RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_17)
IL_1E9E: ldloc.s 53
(RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_15)
IL_1EA0: stfld RimWorld.<>c__DisplayClass10_15
RimWorld.<>c__DisplayClass10_17::CS$<>8__locals17
IL_1EA5: ldloc.s 62
(RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_17)
IL_1EA7: ldsfld Verse.JobDef RimWorld.JobDefOf::InstallRelic
IL_1EAC: ldloc.s 61 (Verse.Thing)
IL_1EAE: call static Verse.LocalTargetInfo
Verse.LocalTargetInfo::op_Implicit(Verse.Thing t)
IL_1EB3: ldloc.s 62
(RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_17)
IL_1EB5: ldfld RimWorld.<>c__DisplayClass10_15
RimWorld.<>c__DisplayClass10_17::CS$<>8__locals17
IL_1EBA: ldfld RimWorld.<>c__DisplayClass10_14
RimWorld.<>c__DisplayClass10_15::CS$<>8__locals15
IL_1EBF: ldfld Verse.Thing RimWorld.<>c__DisplayClass10_14::thing
IL_1EC4: call static Verse.LocalTargetInfo
Verse.LocalTargetInfo::op_Implicit(Verse.Thing t)
IL_1EC9: ldloc.s 62
(RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_17)
IL_1ECB: ldfld RimWorld.<>c__DisplayClass10_15
RimWorld.<>c__DisplayClass10_17::CS$<>8__locals17
IL_1ED0: ldfld RimWorld.<>c__DisplayClass10_14
RimWorld.<>c__DisplayClass10_15::CS$<>8__locals15
IL_1ED5: ldfld Verse.Thing RimWorld.<>c__DisplayClass10_14::thing
IL_1EDA: callvirt virtual Verse.IntVec3
Verse.Thing::get_InteractionCell()
IL_1EDF: call static Verse.LocalTargetInfo
Verse.LocalTargetInfo::op_Implicit(Verse.IntVec3 c)
IL_1EE4: call static Verse.AI.Job
Verse.JobMaker::MakeJob(Verse.JobDef def, Verse.LocalTargetInfo targetA,
Verse.LocalTargetInfo targetB, Verse.LocalTargetInfo targetC)
IL_1EE9: stfld Verse.AI.Job RimWorld.<>c__DisplayClass10_17::job
IL_1EEE: ldloc.s 62
(RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_17)
IL_1EF0: ldfld Verse.AI.Job RimWorld.<>c__DisplayClass10_17::job
IL_1EF5: ldc.i4.1
IL_1EF6: stfld System.Int32 Verse.AI.Job::count
IL_1EFB: ldarg.2
IL_1EFC: ldstr "InstallRelic"
IL_1F01: ldloc.s 61 (Verse.Thing)
IL_1F03: callvirt abstract virtual System.String
Verse.Entity::get_Label()
IL_1F08: call static Verse.NamedArgument
Verse.NamedArgument::op_Implicit(System.String value)
IL_1F0D: call static Verse.TaggedString
Verse.TranslatorFormattedStringExtensions::Translate(System.String key,
Verse.NamedArgument arg1)
IL_1F12: call static System.String
Verse.TaggedString::op_Implicit(Verse.TaggedString taggedString)
IL_1F17: ldloc.s 62
(RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_17)
IL_1F19: ldftn System.Void
RimWorld.<>c__DisplayClass10_17::<AddHumanlikeOrders>b__19()
IL_1F1F: newobj System.Void System.Action::.ctor(System.Object
object, System.IntPtr method)
IL_1F24: ldc.i4.4
IL_1F25: ldnull
IL_1F26: ldnull
IL_1F27: ldc.r4 0
IL_1F2C: ldnull
IL_1F2D: ldnull
IL_1F2E: ldc.i4.1
IL_1F2F: ldc.i4.0
IL_1F30: newobj System.Void
Verse.FloatMenuOption::.ctor(System.String label, System.Action action,
Verse.MenuOptionPriority priority, System.Action`1<UnityEngine.Rect>
mouseoverGuiAction, Verse.Thing revalidateClickTarget, System.Single
extraPartWidth, System.Func`2<UnityEngine.Rect, System.Boolean> extraPartOnGUI,
RimWorld.Planet.WorldObject revalidateWorldClickTarget, System.Boolean
playSelectionSound, System.Int32 orderInPriority)
IL_1F35: ldloc.s 62
(RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_17)
IL_1F37: ldfld RimWorld.<>c__DisplayClass10_15
RimWorld.<>c__DisplayClass10_17::CS$<>8__locals17
IL_1F3C: ldfld RimWorld.<>c__DisplayClass10_14
RimWorld.<>c__DisplayClass10_15::CS$<>8__locals15
IL_1F41: ldfld RimWorld.<>c__DisplayClass10_0
RimWorld.<>c__DisplayClass10_14::CS$<>8__locals14
IL_1F46: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_1F4B: ldloc.s 62
(RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_17)
IL_1F4D: ldfld RimWorld.<>c__DisplayClass10_15
RimWorld.<>c__DisplayClass10_17::CS$<>8__locals17
IL_1F52: ldfld RimWorld.<>c__DisplayClass10_14
RimWorld.<>c__DisplayClass10_15::CS$<>8__locals15
IL_1F57: ldfld Verse.Thing RimWorld.<>c__DisplayClass10_14::thing
IL_1F5C: newobj System.Void
Verse.LocalTargetInfo::.ctor(Verse.Thing thing)
IL_1F61: ldstr "ReservedBy"
IL_1F66: ldnull
IL_1F67: call static Verse.FloatMenuOption
RimWorld.FloatMenuUtility::DecoratePrioritizedTask(Verse.FloatMenuOption option,
Verse.Pawn pawn, Verse.LocalTargetInfo target, System.String reservedText,
Verse.ReservationLayerDef layer)
IL_1F6C: callvirt virtual System.Void
System.Collections.Generic.List`1<Verse.FloatMenuOption>::Add(Verse.FloatMenuOption
item)
IL_1F71: Label183
IL_1F71: ldloc.s 60
(System.Collections.Generic.IEnumerator`1[Verse.Thing])
IL_1F73: callvirt abstract virtual System.Boolean
System.Collections.IEnumerator::MoveNext()
IL_1F78: brtrue => Label184
IL_1F7D: leave => Label185
IL_1F82: leave => (autogenerated)
} // end try
.finally
{
IL_1F87: ldloc.s 60
(System.Collections.Generic.IEnumerator`1[Verse.Thing])
IL_1F89: brfalse => Label186
IL_1F8E: ldloc.s 60
(System.Collections.Generic.IEnumerator`1[Verse.Thing])
IL_1F90: callvirt abstract virtual System.Void
System.IDisposable::Dispose()
IL_1F95: Label186
IL_1F95: endfinally
IL_1F96: leave => (autogenerated)
} // end handler
IL_1F97: Label178
IL_1F97: Label179
IL_1F97: Label182
IL_1F97: Label185
IL_1F97: ldloc.s 53 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_15)
IL_1F99: ldfld RimWorld.<>c__DisplayClass10_14
RimWorld.<>c__DisplayClass10_15::CS$<>8__locals15
IL_1F9E: ldfld RimWorld.<>c__DisplayClass10_0
RimWorld.<>c__DisplayClass10_14::CS$<>8__locals14
IL_1FA3: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_1FA8: callvirt virtual Verse.Map Verse.Thing::get_Map()
IL_1FAD: ldc.i4.0
IL_1FAE: ldc.i4.0
IL_1FAF: brtrue => Label187
IL_1FB4: ldloc.s 53 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_15)
IL_1FB6: ldfld RimWorld.<>c__DisplayClass10_14
RimWorld.<>c__DisplayClass10_15::CS$<>8__locals15
IL_1FBB: ldfld RimWorld.<>c__DisplayClass10_0
RimWorld.<>c__DisplayClass10_14::CS$<>8__locals14
IL_1FC0: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_1FC5: call static System.Boolean
RimWorld.Planet.CaravanFormingUtility::IsFormingCaravan(Verse.Pawn p)
IL_1FCA: brtrue => Label188
IL_1FCF: ldloc.s 53 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_15)
IL_1FD1: ldfld RimWorld.CompRelicContainer
RimWorld.<>c__DisplayClass10_15::container
IL_1FD6: callvirt System.Boolean RimWorld.CompThingContainer::get_Full()
IL_1FDB: brfalse => Label189
IL_1FE0: ldarg.2
IL_1FE1: ldstr "ExtractRelicToInventory"
IL_1FE6: ldloc.s 53 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_15)
IL_1FE8: ldfld RimWorld.CompRelicContainer
RimWorld.<>c__DisplayClass10_15::container
IL_1FED: callvirt Verse.Thing
RimWorld.CompThingContainer::get_ContainedThing()
IL_1FF2: callvirt abstract virtual System.String Verse.Entity::get_Label()
IL_1FF7: call static Verse.NamedArgument
Verse.NamedArgument::op_Implicit(System.String value)
IL_1FFC: ldc.i4 300
IL_2001: ldc.i4.1
IL_2002: ldc.i4.0
IL_2003: ldc.i4.1
IL_2004: ldc.i4.1
IL_2005: ldc.i4.0
IL_2006: call static System.String
RimWorld.GenDate::ToStringTicksToPeriod(System.Int32 numTicks, System.Boolean
allowSeconds, System.Boolean shortForm, System.Boolean canUseDecimals,
System.Boolean allowYears, System.Boolean canUseDecimalsShortForm)
IL_200B: call static Verse.NamedArgument
Verse.NamedArgument::op_Implicit(System.String value)
IL_2010: call static Verse.TaggedString
Verse.TranslatorFormattedStringExtensions::Translate(System.String key,
Verse.NamedArgument arg1, Verse.NamedArgument arg2)
IL_2015: call static System.String
Verse.TaggedString::op_Implicit(Verse.TaggedString taggedString)
IL_201A: ldloc.s 53 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_15)
IL_201C: ldftn System.Void
RimWorld.<>c__DisplayClass10_15::<AddHumanlikeOrders>b__16()
IL_2022: newobj System.Void System.Action::.ctor(System.Object object,
System.IntPtr method)
IL_2027: ldc.i4.4
IL_2028: ldnull
IL_2029: ldnull
IL_202A: ldc.r4 0
IL_202F: ldnull
IL_2030: ldnull
IL_2031: ldc.i4.1
IL_2032: ldc.i4.0
IL_2033: newobj System.Void Verse.FloatMenuOption::.ctor(System.String
label, System.Action action, Verse.MenuOptionPriority priority,
System.Action`1<UnityEngine.Rect> mouseoverGuiAction, Verse.Thing
revalidateClickTarget, System.Single extraPartWidth,
System.Func`2<UnityEngine.Rect, System.Boolean> extraPartOnGUI,
RimWorld.Planet.WorldObject revalidateWorldClickTarget, System.Boolean
playSelectionSound, System.Int32 orderInPriority)
IL_2038: ldloc.s 53 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_15)
IL_203A: ldfld RimWorld.<>c__DisplayClass10_14
RimWorld.<>c__DisplayClass10_15::CS$<>8__locals15
IL_203F: ldfld RimWorld.<>c__DisplayClass10_0
RimWorld.<>c__DisplayClass10_14::CS$<>8__locals14
IL_2044: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_2049: ldloc.s 53 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_15)
IL_204B: ldfld RimWorld.<>c__DisplayClass10_14
RimWorld.<>c__DisplayClass10_15::CS$<>8__locals15
IL_2050: ldfld Verse.Thing RimWorld.<>c__DisplayClass10_14::thing
IL_2055: newobj System.Void Verse.LocalTargetInfo::.ctor(Verse.Thing
thing)
IL_205A: ldstr "ReservedBy"
IL_205F: ldnull
IL_2060: call static Verse.FloatMenuOption
RimWorld.FloatMenuUtility::DecoratePrioritizedTask(Verse.FloatMenuOption option,
Verse.Pawn pawn, Verse.LocalTargetInfo target, System.String reservedText,
Verse.ReservationLayerDef layer)
IL_2065: callvirt virtual System.Void
System.Collections.Generic.List`1<Verse.FloatMenuOption>::Add(Verse.FloatMenuOption
item)
IL_206A: Label174
IL_206A: Label175
IL_206A: Label187
IL_206A: Label188
IL_206A: Label189
IL_206A: ldloca.s 2
(System.Collections.Generic.List`1+Enumerator[Verse.Thing])
IL_206C: call virtual System.Boolean
System.Collections.Generic.Enumerator<Verse.Thing>::MoveNext()
IL_2071: brtrue => Label190
IL_2076: leave => Label191
IL_207B: leave => (autogenerated)
} // end try
.finally
{
IL_2080: ldloca.s 2
(System.Collections.Generic.List`1+Enumerator[Verse.Thing])
IL_2082: constrained.
System.Collections.Generic.List`1+Enumerator[Verse.Thing]
IL_2088: callvirt abstract virtual System.Void
System.IDisposable::Dispose()
IL_208D: endfinally
IL_208E: leave => (autogenerated)
} // end handler
IL_208F: Label191
IL_208F: ldloc.s 22 (System.Collections.Generic.List`1[Verse.Thing])
IL_2091: callvirt System.Collections.Generic.Enumerator<Verse.Thing>
System.Collections.Generic.List`1<Verse.Thing>::GetEnumerator()
IL_2096: stloc.2
.try
{
IL_2097: br => Label192
IL_209C: Label198
IL_209C: ldloca.s 2
(System.Collections.Generic.List`1+Enumerator[Verse.Thing])
IL_209E: call virtual Verse.Thing
System.Collections.Generic.Enumerator<Verse.Thing>::get_Current()
IL_20A3: stloc.s 63 (Verse.Thing)
IL_20A5: ldloc.s 63 (Verse.Thing)
IL_20A7: call static System.Boolean
RimWorld.CompRelicContainer::IsRelic(Verse.Thing thing)
IL_20AC: brfalse => Label193
IL_20B1: ldloc.s 63 (Verse.Thing)
IL_20B3: callvirt virtual Verse.Map Verse.Thing::get_Map()
IL_20B8: ldfld Verse.ListerThings Verse.Map::listerThings
IL_20BD: ldsfld Verse.ThingDef RimWorld.ThingDefOf::Reliquary
IL_20C2: callvirt System.Collections.Generic.List`1<Verse.Thing>
Verse.ListerThings::ThingsOfDef(Verse.ThingDef def)
IL_20C7: ldsfld System.Func`2<Verse.Thing, System.Boolean>
RimWorld.<>c::<>9__10_20
IL_20CC: dup
IL_20CD: brtrue => Label194
IL_20D2: pop
IL_20D3: ldsfld RimWorld.<>c RimWorld.<>c::<>9
IL_20D8: ldftn System.Boolean
RimWorld.<>c::<AddHumanlikeOrders>b__10_20(Verse.Thing x)
IL_20DE: newobj System.Void System.Func`2<Verse.Thing,
System.Boolean>::.ctor(System.Object object, System.IntPtr method)
IL_20E3: dup
IL_20E4: stsfld System.Func`2<Verse.Thing, System.Boolean>
RimWorld.<>c::<>9__10_20
IL_20E9: Label194
IL_20E9: call static
System.Collections.Generic.IEnumerable`1<Verse.Thing>
System.Linq.Enumerable::Where(System.Collections.Generic.IEnumerable`1<Verse.Thing>
source, System.Func`2<Verse.Thing, System.Boolean> predicate)
IL_20EE: stloc.s 64
(System.Collections.Generic.IEnumerable`1[Verse.Thing])
IL_20F0: ldloc.s 63 (Verse.Thing)
IL_20F2: callvirt virtual Verse.IntVec3 Verse.Thing::get_Position()
IL_20F7: ldloc.s 63 (Verse.Thing)
IL_20F9: callvirt virtual Verse.Map Verse.Thing::get_Map()
IL_20FE: ldloc.s 64
(System.Collections.Generic.IEnumerable`1[Verse.Thing])
IL_2100: ldc.i4.2
IL_2101: ldloc.0
IL_2102: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_2107: ldc.i4.3
IL_2108: ldc.i4.0
IL_2109: ldc.i4.0
IL_210A: ldc.i4.0
IL_210B: ldc.i4.0
IL_210C: call static Verse.TraverseParms
Verse.TraverseParms::For(Verse.Pawn pawn, Verse.Danger maxDanger,
Verse.TraverseMode mode, System.Boolean canBashDoors, System.Boolean
alwaysUseAvoidGrid, System.Boolean canBashFences)
IL_2111: ldc.r4 9999
IL_2116: ldloc.0
IL_2117: ldfld System.Predicate`1<Verse.Thing>
RimWorld.<>c__DisplayClass10_0::<>9__21
IL_211C: dup
IL_211D: brtrue => Label195
IL_2122: pop
IL_2123: ldloc.0
IL_2124: ldloc.0
IL_2125: ldftn System.Boolean
RimWorld.<>c__DisplayClass10_0::<AddHumanlikeOrders>b__21(Verse.Thing t)
IL_212B: newobj System.Void
System.Predicate`1<Verse.Thing>::.ctor(System.Object object, System.IntPtr method)
IL_2130: dup
IL_2131: stloc.s 66 (System.Predicate`1[Verse.Thing])
IL_2133: stfld System.Predicate`1<Verse.Thing>
RimWorld.<>c__DisplayClass10_0::<>9__21
IL_2138: ldloc.s 66 (System.Predicate`1[Verse.Thing])
IL_213A: Label195
IL_213A: ldnull
IL_213B: call static Verse.Thing
Verse.GenClosest::ClosestThing_Global_Reachable(Verse.IntVec3 center, Verse.Map
map, System.Collections.Generic.IEnumerable`1<Verse.Thing> searchSet,
Verse.AI.PathEndMode peMode, Verse.TraverseParms traverseParams, System.Single
maxDistance, System.Predicate`1<Verse.Thing> validator, System.Func`2<Verse.Thing,
System.Single> priorityGetter)
IL_2140: stloc.s 65 (Verse.Thing)
IL_2142: ldloc.s 65 (Verse.Thing)
IL_2144: brtrue => Label196
IL_2149: ldarg.2
IL_214A: ldstr "InstallInReliquary"
IL_214F: call static Verse.TaggedString
Verse.Translator::Translate(System.String key)
IL_2154: ldstr " ("
IL_2159: call static Verse.TaggedString
Verse.TaggedString::op_Addition(Verse.TaggedString t1, System.String t2)
IL_215E: ldstr "NoEmptyReliquary"
IL_2163: call static Verse.TaggedString
Verse.Translator::Translate(System.String key)
IL_2168: call static Verse.TaggedString
Verse.TaggedString::op_Addition(Verse.TaggedString t1, Verse.TaggedString t2)
IL_216D: ldstr ")"
IL_2172: call static Verse.TaggedString
Verse.TaggedString::op_Addition(Verse.TaggedString t1, System.String t2)
IL_2177: call static System.String
Verse.TaggedString::op_Implicit(Verse.TaggedString taggedString)
IL_217C: ldnull
IL_217D: ldc.i4.4
IL_217E: ldnull
IL_217F: ldnull
IL_2180: ldc.r4 0
IL_2185: ldnull
IL_2186: ldnull
IL_2187: ldc.i4.1
IL_2188: ldc.i4.0
IL_2189: newobj System.Void Verse.FloatMenuOption::.ctor(System.String
label, System.Action action, Verse.MenuOptionPriority priority,
System.Action`1<UnityEngine.Rect> mouseoverGuiAction, Verse.Thing
revalidateClickTarget, System.Single extraPartWidth,
System.Func`2<UnityEngine.Rect, System.Boolean> extraPartOnGUI,
RimWorld.Planet.WorldObject revalidateWorldClickTarget, System.Boolean
playSelectionSound, System.Int32 orderInPriority)
IL_218E: callvirt virtual System.Void
System.Collections.Generic.List`1<Verse.FloatMenuOption>::Add(Verse.FloatMenuOption
item)
IL_2193: br => Label197
IL_2198: Label196
IL_2198: newobj System.Void RimWorld.<>c__DisplayClass10_18::.ctor()
IL_219D: stloc.s 67 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_18)
IL_219F: ldloc.s 67 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_18)
IL_21A1: ldloc.0
IL_21A2: stfld RimWorld.<>c__DisplayClass10_0
RimWorld.<>c__DisplayClass10_18::CS$<>8__locals18
IL_21A7: ldloc.s 67 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_18)
IL_21A9: ldsfld Verse.JobDef RimWorld.JobDefOf::InstallRelic
IL_21AE: ldloc.s 63 (Verse.Thing)
IL_21B0: call static Verse.LocalTargetInfo
Verse.LocalTargetInfo::op_Implicit(Verse.Thing t)
IL_21B5: ldloc.s 65 (Verse.Thing)
IL_21B7: call static Verse.LocalTargetInfo
Verse.LocalTargetInfo::op_Implicit(Verse.Thing t)
IL_21BC: ldloc.s 65 (Verse.Thing)
IL_21BE: callvirt virtual Verse.IntVec3 Verse.Thing::get_InteractionCell()
IL_21C3: call static Verse.LocalTargetInfo
Verse.LocalTargetInfo::op_Implicit(Verse.IntVec3 c)
IL_21C8: call static Verse.AI.Job Verse.JobMaker::MakeJob(Verse.JobDef
def, Verse.LocalTargetInfo targetA, Verse.LocalTargetInfo targetB,
Verse.LocalTargetInfo targetC)
IL_21CD: stfld Verse.AI.Job RimWorld.<>c__DisplayClass10_18::job
IL_21D2: ldloc.s 67 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_18)
IL_21D4: ldfld Verse.AI.Job RimWorld.<>c__DisplayClass10_18::job
IL_21D9: ldc.i4.1
IL_21DA: stfld System.Int32 Verse.AI.Job::count
IL_21DF: ldarg.2
IL_21E0: ldstr "InstallInReliquary"
IL_21E5: call static Verse.TaggedString
Verse.Translator::Translate(System.String key)
IL_21EA: call static System.String
Verse.TaggedString::op_Implicit(Verse.TaggedString taggedString)
IL_21EF: ldloc.s 67 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_18)
IL_21F1: ldftn System.Void
RimWorld.<>c__DisplayClass10_18::<AddHumanlikeOrders>b__22()
IL_21F7: newobj System.Void System.Action::.ctor(System.Object object,
System.IntPtr method)
IL_21FC: ldc.i4.4
IL_21FD: ldnull
IL_21FE: ldnull
IL_21FF: ldc.r4 0
IL_2204: ldnull
IL_2205: ldnull
IL_2206: ldc.i4.1
IL_2207: ldc.i4.0
IL_2208: newobj System.Void Verse.FloatMenuOption::.ctor(System.String
label, System.Action action, Verse.MenuOptionPriority priority,
System.Action`1<UnityEngine.Rect> mouseoverGuiAction, Verse.Thing
revalidateClickTarget, System.Single extraPartWidth,
System.Func`2<UnityEngine.Rect, System.Boolean> extraPartOnGUI,
RimWorld.Planet.WorldObject revalidateWorldClickTarget, System.Boolean
playSelectionSound, System.Int32 orderInPriority)
IL_220D: ldloc.s 67 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_18)
IL_220F: ldfld RimWorld.<>c__DisplayClass10_0
RimWorld.<>c__DisplayClass10_18::CS$<>8__locals18
IL_2214: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_2219: ldloc.s 63 (Verse.Thing)
IL_221B: newobj System.Void Verse.LocalTargetInfo::.ctor(Verse.Thing
thing)
IL_2220: ldstr "ReservedBy"
IL_2225: ldnull
IL_2226: call static Verse.FloatMenuOption
RimWorld.FloatMenuUtility::DecoratePrioritizedTask(Verse.FloatMenuOption option,
Verse.Pawn pawn, Verse.LocalTargetInfo target, System.String reservedText,
Verse.ReservationLayerDef layer)
IL_222B: callvirt virtual System.Void
System.Collections.Generic.List`1<Verse.FloatMenuOption>::Add(Verse.FloatMenuOption
item)
IL_2230: Label192
IL_2230: Label193
IL_2230: Label197
IL_2230: ldloca.s 2
(System.Collections.Generic.List`1+Enumerator[Verse.Thing])
IL_2232: call virtual System.Boolean
System.Collections.Generic.Enumerator<Verse.Thing>::MoveNext()
IL_2237: brtrue => Label198
IL_223C: leave => Label199
IL_2241: leave => (autogenerated)
} // end try
.finally
{
IL_2246: ldloca.s 2
(System.Collections.Generic.List`1+Enumerator[Verse.Thing])
IL_2248: constrained.
System.Collections.Generic.List`1+Enumerator[Verse.Thing]
IL_224E: callvirt abstract virtual System.Void
System.IDisposable::Dispose()
IL_2253: endfinally
IL_2254: leave => (autogenerated)
} // end handler
IL_2255: Label173
IL_2255: Label199
IL_2255: call static System.Boolean Verse.ModsConfig::get_BiotechActive()
IL_225A: brfalse => Label200
IL_225F: ldloc.0
IL_2260: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_2265: call static System.Boolean
MechanitorUtility::IsMechanitor(Verse.Pawn pawn)
IL_226A: brfalse => Label201
IL_226F: ldloc.s 22 (System.Collections.Generic.List`1[Verse.Thing])
IL_2271: callvirt System.Collections.Generic.Enumerator<Verse.Thing>
System.Collections.Generic.List`1<Verse.Thing>::GetEnumerator()
IL_2276: stloc.2
.try
{
IL_2277: br => Label202
IL_227C: Label217
IL_227C: newobj System.Void RimWorld.<>c__DisplayClass10_19::.ctor()
IL_2281: stloc.s 68 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_19)
IL_2283: ldloc.s 68 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_19)
IL_2285: ldloc.0
IL_2286: stfld RimWorld.<>c__DisplayClass10_0
RimWorld.<>c__DisplayClass10_19::CS$<>8__locals19
IL_228B: ldloc.s 68 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_19)
IL_228D: ldloca.s 2
(System.Collections.Generic.List`1+Enumerator[Verse.Thing])
IL_228F: call virtual Verse.Thing
System.Collections.Generic.Enumerator<Verse.Thing>::get_Current()
IL_2294: stfld Verse.Thing RimWorld.<>c__DisplayClass10_19::thing
IL_2299: newobj System.Void RimWorld.<>c__DisplayClass10_20::.ctor()
IL_229E: stloc.s 69 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_20)
IL_22A0: ldloc.s 69 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_20)
IL_22A2: ldloc.s 68 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_19)
IL_22A4: stfld RimWorld.<>c__DisplayClass10_19
RimWorld.<>c__DisplayClass10_20::CS$<>8__locals20
IL_22A9: ldloc.s 69 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_20)
IL_22AB: ldloc.s 69 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_20)
IL_22AD: ldfld RimWorld.<>c__DisplayClass10_19
RimWorld.<>c__DisplayClass10_20::CS$<>8__locals20
IL_22B2: ldfld Verse.Thing RimWorld.<>c__DisplayClass10_19::thing
IL_22B7: isinst Verse.Pawn
IL_22BC: dup
IL_22BD: stloc.s 70 (Verse.Pawn)
IL_22BF: stfld Verse.Pawn RimWorld.<>c__DisplayClass10_20::mech
IL_22C4: ldloc.s 70 (Verse.Pawn)
IL_22C6: brfalse => Label203
IL_22CB: ldloc.s 69 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_20)
IL_22CD: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_20::mech
IL_22D2: callvirt System.Boolean Verse.Pawn::get_IsColonyMech()
IL_22D7: brfalse => Label204
IL_22DC: ldloc.s 69 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_20)
IL_22DE: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_20::mech
IL_22E3: call static Verse.Pawn
MechanitorUtility::GetOverseer(Verse.Pawn pawn)
IL_22E8: ldloc.s 69 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_20)
IL_22EA: ldfld RimWorld.<>c__DisplayClass10_19
RimWorld.<>c__DisplayClass10_20::CS$<>8__locals20
IL_22EF: ldfld RimWorld.<>c__DisplayClass10_0
RimWorld.<>c__DisplayClass10_19::CS$<>8__locals19
IL_22F4: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_22F9: beq => Label205
IL_22FE: ldloc.s 69 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_20)
IL_2300: ldfld RimWorld.<>c__DisplayClass10_19
RimWorld.<>c__DisplayClass10_20::CS$<>8__locals20
IL_2305: ldfld RimWorld.<>c__DisplayClass10_0
RimWorld.<>c__DisplayClass10_19::CS$<>8__locals19
IL_230A: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_230F: ldloc.s 69 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_20)
IL_2311: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_20::mech
IL_2316: call static Verse.LocalTargetInfo
Verse.LocalTargetInfo::op_Implicit(Verse.Thing t)
IL_231B: ldc.i4.2
IL_231C: ldc.i4.3
IL_231D: ldc.i4.0
IL_231E: ldc.i4.0
IL_231F: ldc.i4.0
IL_2320: call static System.Boolean
Verse.ReachabilityUtility::CanReach(Verse.Pawn pawn, Verse.LocalTargetInfo dest,
Verse.AI.PathEndMode peMode, Verse.Danger maxDanger, System.Boolean canBashDoors,
System.Boolean canBashFences, Verse.TraverseMode mode)
IL_2325: brtrue => Label206
IL_232A: ldarg.2
IL_232B: ldstr "CannotControlMech"
IL_2330: ldloc.s 69 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_20)
IL_2332: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_20::mech
IL_2337: callvirt virtual System.String Verse.Entity::get_LabelShort()
IL_233C: call static Verse.NamedArgument
Verse.NamedArgument::op_Implicit(System.String value)
IL_2341: call static Verse.TaggedString
Verse.TranslatorFormattedStringExtensions::Translate(System.String key,
Verse.NamedArgument arg1)
IL_2346: ldstr ": "
IL_234B: call static Verse.TaggedString
Verse.TaggedString::op_Addition(Verse.TaggedString t1, System.String t2)
IL_2350: ldstr "NoPath"
IL_2355: call static Verse.TaggedString
Verse.Translator::Translate(System.String key)
IL_235A: stloc.s 11 (Verse.TaggedString)
IL_235C: ldloca.s 11 (Verse.TaggedString)
IL_235E: call Verse.TaggedString Verse.TaggedString::CapitalizeFirst()
IL_2363: call static Verse.TaggedString
Verse.TaggedString::op_Addition(Verse.TaggedString t1, Verse.TaggedString t2)
IL_2368: call static System.String
Verse.TaggedString::op_Implicit(Verse.TaggedString taggedString)
IL_236D: ldnull
IL_236E: ldc.i4.4
IL_236F: ldnull
IL_2370: ldnull
IL_2371: ldc.r4 0
IL_2376: ldnull
IL_2377: ldnull
IL_2378: ldc.i4.1
IL_2379: ldc.i4.0
IL_237A: newobj System.Void Verse.FloatMenuOption::.ctor(System.String
label, System.Action action, Verse.MenuOptionPriority priority,
System.Action`1<UnityEngine.Rect> mouseoverGuiAction, Verse.Thing
revalidateClickTarget, System.Single extraPartWidth,
System.Func`2<UnityEngine.Rect, System.Boolean> extraPartOnGUI,
RimWorld.Planet.WorldObject revalidateWorldClickTarget, System.Boolean
playSelectionSound, System.Int32 orderInPriority)
IL_237F: callvirt virtual System.Void
System.Collections.Generic.List`1<Verse.FloatMenuOption>::Add(Verse.FloatMenuOption
item)
IL_2384: br => Label207
IL_2389: Label206
IL_2389: ldloc.s 69 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_20)
IL_238B: ldfld RimWorld.<>c__DisplayClass10_19
RimWorld.<>c__DisplayClass10_20::CS$<>8__locals20
IL_2390: ldfld RimWorld.<>c__DisplayClass10_0
RimWorld.<>c__DisplayClass10_19::CS$<>8__locals19
IL_2395: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_239A: ldloc.s 69 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_20)
IL_239C: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_20::mech
IL_23A1: call static Verse.AcceptanceReport
MechanitorUtility::CanControlMech(Verse.Pawn pawn, Verse.Pawn mech)
IL_23A6: call static System.Boolean
Verse.AcceptanceReport::op_Implicit(Verse.AcceptanceReport report)
IL_23AB: brtrue => Label208
IL_23B0: ldloc.s 69 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_20)
IL_23B2: ldfld RimWorld.<>c__DisplayClass10_19
RimWorld.<>c__DisplayClass10_20::CS$<>8__locals20
IL_23B7: ldfld RimWorld.<>c__DisplayClass10_0
RimWorld.<>c__DisplayClass10_19::CS$<>8__locals19
IL_23BC: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_23C1: ldloc.s 69 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_20)
IL_23C3: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_20::mech
IL_23C8: call static Verse.AcceptanceReport
MechanitorUtility::CanControlMech(Verse.Pawn pawn, Verse.Pawn mech)
IL_23CD: stloc.s 71 (Verse.AcceptanceReport)
IL_23CF: ldloca.s 71 (Verse.AcceptanceReport)
IL_23D1: call System.String Verse.AcceptanceReport::get_Reason()
IL_23D6: call static System.Boolean
Verse.GenText::NullOrEmpty(System.String str)
IL_23DB: brtrue => Label209
IL_23E0: ldarg.2
IL_23E1: ldstr "CannotControlMech"
IL_23E6: ldloc.s 69 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_20)
IL_23E8: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_20::mech
IL_23ED: callvirt virtual System.String Verse.Entity::get_LabelShort()
IL_23F2: call static Verse.NamedArgument
Verse.NamedArgument::op_Implicit(System.String value)
IL_23F7: call static Verse.TaggedString
Verse.TranslatorFormattedStringExtensions::Translate(System.String key,
Verse.NamedArgument arg1)
IL_23FC: ldstr ": "
IL_2401: call static Verse.TaggedString
Verse.TaggedString::op_Addition(Verse.TaggedString t1, System.String t2)
IL_2406: ldloca.s 71 (Verse.AcceptanceReport)
IL_2408: call System.String Verse.AcceptanceReport::get_Reason()
IL_240D: call static Verse.TaggedString
Verse.TaggedString::op_Addition(Verse.TaggedString t1, System.String t2)
IL_2412: call static System.String
Verse.TaggedString::op_Implicit(Verse.TaggedString taggedString)
IL_2417: ldnull
IL_2418: ldc.i4.4
IL_2419: ldnull
IL_241A: ldnull
IL_241B: ldc.r4 0
IL_2420: ldnull
IL_2421: ldnull
IL_2422: ldc.i4.1
IL_2423: ldc.i4.0
IL_2424: newobj System.Void Verse.FloatMenuOption::.ctor(System.String
label, System.Action action, Verse.MenuOptionPriority priority,
System.Action`1<UnityEngine.Rect> mouseoverGuiAction, Verse.Thing
revalidateClickTarget, System.Single extraPartWidth,
System.Func`2<UnityEngine.Rect, System.Boolean> extraPartOnGUI,
RimWorld.Planet.WorldObject revalidateWorldClickTarget, System.Boolean
playSelectionSound, System.Int32 orderInPriority)
IL_2429: callvirt virtual System.Void
System.Collections.Generic.List`1<Verse.FloatMenuOption>::Add(Verse.FloatMenuOption
item)
IL_242E: br => Label210
IL_2433: Label208
IL_2433: ldarg.2
IL_2434: ldstr "ControlMech"
IL_2439: ldloc.s 69 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_20)
IL_243B: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_20::mech
IL_2440: callvirt virtual System.String Verse.Entity::get_LabelShort()
IL_2445: call static Verse.NamedArgument
Verse.NamedArgument::op_Implicit(System.String value)
IL_244A: call static Verse.TaggedString
Verse.TranslatorFormattedStringExtensions::Translate(System.String key,
Verse.NamedArgument arg1)
IL_244F: call static System.String
Verse.TaggedString::op_Implicit(Verse.TaggedString taggedString)
IL_2454: ldloc.s 69 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_20)
IL_2456: ldfld RimWorld.<>c__DisplayClass10_19
RimWorld.<>c__DisplayClass10_20::CS$<>8__locals20
IL_245B: ldftn System.Void
RimWorld.<>c__DisplayClass10_19::<AddHumanlikeOrders>b__23()
IL_2461: newobj System.Void System.Action::.ctor(System.Object object,
System.IntPtr method)
IL_2466: ldc.i4.4
IL_2467: ldnull
IL_2468: ldnull
IL_2469: ldc.r4 0
IL_246E: ldnull
IL_246F: ldnull
IL_2470: ldc.i4.1
IL_2471: ldc.i4.0
IL_2472: newobj System.Void Verse.FloatMenuOption::.ctor(System.String
label, System.Action action, Verse.MenuOptionPriority priority,
System.Action`1<UnityEngine.Rect> mouseoverGuiAction, Verse.Thing
revalidateClickTarget, System.Single extraPartWidth,
System.Func`2<UnityEngine.Rect, System.Boolean> extraPartOnGUI,
RimWorld.Planet.WorldObject revalidateWorldClickTarget, System.Boolean
playSelectionSound, System.Int32 orderInPriority)
IL_2477: ldloc.s 69 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_20)
IL_2479: ldfld RimWorld.<>c__DisplayClass10_19
RimWorld.<>c__DisplayClass10_20::CS$<>8__locals20
IL_247E: ldfld RimWorld.<>c__DisplayClass10_0
RimWorld.<>c__DisplayClass10_19::CS$<>8__locals19
IL_2483: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_2488: ldloc.s 69 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_20)
IL_248A: ldfld RimWorld.<>c__DisplayClass10_19
RimWorld.<>c__DisplayClass10_20::CS$<>8__locals20
IL_248F: ldfld Verse.Thing RimWorld.<>c__DisplayClass10_19::thing
IL_2494: newobj System.Void Verse.LocalTargetInfo::.ctor(Verse.Thing
thing)
IL_2499: ldstr "ReservedBy"
IL_249E: ldnull
IL_249F: call static Verse.FloatMenuOption
RimWorld.FloatMenuUtility::DecoratePrioritizedTask(Verse.FloatMenuOption option,
Verse.Pawn pawn, Verse.LocalTargetInfo target, System.String reservedText,
Verse.ReservationLayerDef layer)
IL_24A4: callvirt virtual System.Void
System.Collections.Generic.List`1<Verse.FloatMenuOption>::Add(Verse.FloatMenuOption
item)
IL_24A9: Label207
IL_24A9: Label209
IL_24A9: Label210
IL_24A9: ldarg.2
IL_24AA: ldstr "CannotDisassembleMech"
IL_24AF: ldloc.s 69 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_20)
IL_24B1: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_20::mech
IL_24B6: callvirt abstract virtual System.String
Verse.Entity::get_LabelCap()
IL_24BB: call static Verse.NamedArgument
Verse.NamedArgument::op_Implicit(System.String value)
IL_24C0: call static Verse.TaggedString
Verse.TranslatorFormattedStringExtensions::Translate(System.String key,
Verse.NamedArgument arg1)
IL_24C5: ldstr ": "
IL_24CA: call static Verse.TaggedString
Verse.TaggedString::op_Addition(Verse.TaggedString t1, System.String t2)
IL_24CF: ldstr "MustBeOverseer"
IL_24D4: call static Verse.TaggedString
Verse.Translator::Translate(System.String key)
IL_24D9: stloc.s 11 (Verse.TaggedString)
IL_24DB: ldloca.s 11 (Verse.TaggedString)
IL_24DD: call Verse.TaggedString Verse.TaggedString::CapitalizeFirst()
IL_24E2: call static Verse.TaggedString
Verse.TaggedString::op_Addition(Verse.TaggedString t1, Verse.TaggedString t2)
IL_24E7: call static System.String
Verse.TaggedString::op_Implicit(Verse.TaggedString taggedString)
IL_24EC: ldnull
IL_24ED: ldc.i4.4
IL_24EE: ldnull
IL_24EF: ldnull
IL_24F0: ldc.r4 0
IL_24F5: ldnull
IL_24F6: ldnull
IL_24F7: ldc.i4.1
IL_24F8: ldc.i4.0
IL_24F9: newobj System.Void Verse.FloatMenuOption::.ctor(System.String
label, System.Action action, Verse.MenuOptionPriority priority,
System.Action`1<UnityEngine.Rect> mouseoverGuiAction, Verse.Thing
revalidateClickTarget, System.Single extraPartWidth,
System.Func`2<UnityEngine.Rect, System.Boolean> extraPartOnGUI,
RimWorld.Planet.WorldObject revalidateWorldClickTarget, System.Boolean
playSelectionSound, System.Int32 orderInPriority)
IL_24FE: callvirt virtual System.Void
System.Collections.Generic.List`1<Verse.FloatMenuOption>::Add(Verse.FloatMenuOption
item)
IL_2503: br => Label211
IL_2508: Label205
IL_2508: ldarg.2
IL_2509: ldstr "DisconnectMech"
IL_250E: ldloc.s 69 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_20)
IL_2510: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_20::mech
IL_2515: callvirt virtual System.String Verse.Entity::get_LabelShort()
IL_251A: call static Verse.NamedArgument
Verse.NamedArgument::op_Implicit(System.String value)
IL_251F: call static Verse.TaggedString
Verse.TranslatorFormattedStringExtensions::Translate(System.String key,
Verse.NamedArgument arg1)
IL_2524: call static System.String
Verse.TaggedString::op_Implicit(Verse.TaggedString taggedString)
IL_2529: ldloc.s 69 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_20)
IL_252B: ldftn System.Void
RimWorld.<>c__DisplayClass10_20::<AddHumanlikeOrders>b__24()
IL_2531: newobj System.Void System.Action::.ctor(System.Object object,
System.IntPtr method)
IL_2536: ldc.i4.2
IL_2537: ldnull
IL_2538: ldnull
IL_2539: ldc.r4 0
IL_253E: ldnull
IL_253F: ldnull
IL_2540: ldc.i4.1
IL_2541: ldc.i4.s -10
IL_2543: newobj System.Void Verse.FloatMenuOption::.ctor(System.String
label, System.Action action, Verse.MenuOptionPriority priority,
System.Action`1<UnityEngine.Rect> mouseoverGuiAction, Verse.Thing
revalidateClickTarget, System.Single extraPartWidth,
System.Func`2<UnityEngine.Rect, System.Boolean> extraPartOnGUI,
RimWorld.Planet.WorldObject revalidateWorldClickTarget, System.Boolean
playSelectionSound, System.Int32 orderInPriority)
IL_2548: ldloc.s 69 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_20)
IL_254A: ldfld RimWorld.<>c__DisplayClass10_19
RimWorld.<>c__DisplayClass10_20::CS$<>8__locals20
IL_254F: ldfld RimWorld.<>c__DisplayClass10_0
RimWorld.<>c__DisplayClass10_19::CS$<>8__locals19
IL_2554: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_2559: ldloc.s 69 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_20)
IL_255B: ldfld RimWorld.<>c__DisplayClass10_19
RimWorld.<>c__DisplayClass10_20::CS$<>8__locals20
IL_2560: ldfld Verse.Thing RimWorld.<>c__DisplayClass10_19::thing
IL_2565: newobj System.Void Verse.LocalTargetInfo::.ctor(Verse.Thing
thing)
IL_256A: ldstr "ReservedBy"
IL_256F: ldnull
IL_2570: call static Verse.FloatMenuOption
RimWorld.FloatMenuUtility::DecoratePrioritizedTask(Verse.FloatMenuOption option,
Verse.Pawn pawn, Verse.LocalTargetInfo target, System.String reservedText,
Verse.ReservationLayerDef layer)
IL_2575: callvirt virtual System.Void
System.Collections.Generic.List`1<Verse.FloatMenuOption>::Add(Verse.FloatMenuOption
item)
IL_257A: ldloc.s 69 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_20)
IL_257C: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_20::mech
IL_2581: call static System.Boolean
RimWorld.PawnUtility::IsFighting(Verse.Pawn pawn)
IL_2586: brtrue => Label212
IL_258B: ldarg.2
IL_258C: ldstr "DisassembleMech"
IL_2591: ldloc.s 69 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_20)
IL_2593: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_20::mech
IL_2598: callvirt abstract virtual System.String
Verse.Entity::get_LabelCap()
IL_259D: call static Verse.NamedArgument
Verse.NamedArgument::op_Implicit(System.String value)
IL_25A2: call static Verse.TaggedString
Verse.TranslatorFormattedStringExtensions::Translate(System.String key,
Verse.NamedArgument arg1)
IL_25A7: call static System.String
Verse.TaggedString::op_Implicit(Verse.TaggedString taggedString)
IL_25AC: ldloc.s 69 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_20)
IL_25AE: ldftn System.Void
RimWorld.<>c__DisplayClass10_20::<AddHumanlikeOrders>b__25()
IL_25B4: newobj System.Void System.Action::.ctor(System.Object object,
System.IntPtr method)
IL_25B9: ldc.i4.2
IL_25BA: ldnull
IL_25BB: ldnull
IL_25BC: ldc.r4 0
IL_25C1: ldnull
IL_25C2: ldnull
IL_25C3: ldc.i4.1
IL_25C4: ldc.i4.s -20
IL_25C6: newobj System.Void Verse.FloatMenuOption::.ctor(System.String
label, System.Action action, Verse.MenuOptionPriority priority,
System.Action`1<UnityEngine.Rect> mouseoverGuiAction, Verse.Thing
revalidateClickTarget, System.Single extraPartWidth,
System.Func`2<UnityEngine.Rect, System.Boolean> extraPartOnGUI,
RimWorld.Planet.WorldObject revalidateWorldClickTarget, System.Boolean
playSelectionSound, System.Int32 orderInPriority)
IL_25CB: ldloc.s 69 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_20)
IL_25CD: ldfld RimWorld.<>c__DisplayClass10_19
RimWorld.<>c__DisplayClass10_20::CS$<>8__locals20
IL_25D2: ldfld RimWorld.<>c__DisplayClass10_0
RimWorld.<>c__DisplayClass10_19::CS$<>8__locals19
IL_25D7: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_25DC: ldloc.s 69 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_20)
IL_25DE: ldfld RimWorld.<>c__DisplayClass10_19
RimWorld.<>c__DisplayClass10_20::CS$<>8__locals20
IL_25E3: ldfld Verse.Thing RimWorld.<>c__DisplayClass10_19::thing
IL_25E8: newobj System.Void Verse.LocalTargetInfo::.ctor(Verse.Thing
thing)
IL_25ED: ldstr "ReservedBy"
IL_25F2: ldnull
IL_25F3: call static Verse.FloatMenuOption
RimWorld.FloatMenuUtility::DecoratePrioritizedTask(Verse.FloatMenuOption option,
Verse.Pawn pawn, Verse.LocalTargetInfo target, System.String reservedText,
Verse.ReservationLayerDef layer)
IL_25F8: callvirt virtual System.Void
System.Collections.Generic.List`1<Verse.FloatMenuOption>::Add(Verse.FloatMenuOption
item)
IL_25FD: Label211
IL_25FD: Label212
IL_25FD: ldloc.s 69 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_20)
IL_25FF: ldfld RimWorld.<>c__DisplayClass10_19
RimWorld.<>c__DisplayClass10_20::CS$<>8__locals20
IL_2604: ldfld RimWorld.<>c__DisplayClass10_0
RimWorld.<>c__DisplayClass10_19::CS$<>8__locals19
IL_2609: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_260E: callvirt System.Boolean Verse.Pawn::get_Drafted()
IL_2613: brfalse => Label213
IL_2618: ldloc.s 69 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_20)
IL_261A: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_20::mech
IL_261F: call static System.Boolean
RimWorld.MechRepairUtility::CanRepair(Verse.Pawn mech)
IL_2624: brfalse => Label214
IL_2629: ldloc.s 69 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_20)
IL_262B: ldfld RimWorld.<>c__DisplayClass10_19
RimWorld.<>c__DisplayClass10_20::CS$<>8__locals20
IL_2630: ldfld RimWorld.<>c__DisplayClass10_0
RimWorld.<>c__DisplayClass10_19::CS$<>8__locals19
IL_2635: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_263A: ldloc.s 69 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_20)
IL_263C: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_20::mech
IL_2641: call static Verse.LocalTargetInfo
Verse.LocalTargetInfo::op_Implicit(Verse.Thing t)
IL_2646: ldc.i4.2
IL_2647: ldc.i4.3
IL_2648: ldc.i4.0
IL_2649: ldc.i4.0
IL_264A: ldc.i4.0
IL_264B: call static System.Boolean
Verse.ReachabilityUtility::CanReach(Verse.Pawn pawn, Verse.LocalTargetInfo dest,
Verse.AI.PathEndMode peMode, Verse.Danger maxDanger, System.Boolean canBashDoors,
System.Boolean canBashFences, Verse.TraverseMode mode)
IL_2650: brtrue => Label215
IL_2655: ldarg.2
IL_2656: ldstr "CannotRepairMech"
IL_265B: ldloc.s 69 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_20)
IL_265D: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_20::mech
IL_2662: callvirt virtual System.String Verse.Entity::get_LabelShort()
IL_2667: call static Verse.NamedArgument
Verse.NamedArgument::op_Implicit(System.String value)
IL_266C: call static Verse.TaggedString
Verse.TranslatorFormattedStringExtensions::Translate(System.String key,
Verse.NamedArgument arg1)
IL_2671: ldstr ": "
IL_2676: call static Verse.TaggedString
Verse.TaggedString::op_Addition(Verse.TaggedString t1, System.String t2)
IL_267B: ldstr "NoPath"
IL_2680: call static Verse.TaggedString
Verse.Translator::Translate(System.String key)
IL_2685: stloc.s 11 (Verse.TaggedString)
IL_2687: ldloca.s 11 (Verse.TaggedString)
IL_2689: call Verse.TaggedString Verse.TaggedString::CapitalizeFirst()
IL_268E: call static Verse.TaggedString
Verse.TaggedString::op_Addition(Verse.TaggedString t1, Verse.TaggedString t2)
IL_2693: call static System.String
Verse.TaggedString::op_Implicit(Verse.TaggedString taggedString)
IL_2698: ldnull
IL_2699: ldc.i4.4
IL_269A: ldnull
IL_269B: ldnull
IL_269C: ldc.r4 0
IL_26A1: ldnull
IL_26A2: ldnull
IL_26A3: ldc.i4.1
IL_26A4: ldc.i4.0
IL_26A5: newobj System.Void Verse.FloatMenuOption::.ctor(System.String
label, System.Action action, Verse.MenuOptionPriority priority,
System.Action`1<UnityEngine.Rect> mouseoverGuiAction, Verse.Thing
revalidateClickTarget, System.Single extraPartWidth,
System.Func`2<UnityEngine.Rect, System.Boolean> extraPartOnGUI,
RimWorld.Planet.WorldObject revalidateWorldClickTarget, System.Boolean
playSelectionSound, System.Int32 orderInPriority)
IL_26AA: callvirt virtual System.Void
System.Collections.Generic.List`1<Verse.FloatMenuOption>::Add(Verse.FloatMenuOption
item)
IL_26AF: br => Label216
IL_26B4: Label215
IL_26B4: ldarg.2
IL_26B5: ldstr "RepairThing"
IL_26BA: ldloc.s 69 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_20)
IL_26BC: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_20::mech
IL_26C1: callvirt virtual System.String Verse.Entity::get_LabelShort()
IL_26C6: call static Verse.NamedArgument
Verse.NamedArgument::op_Implicit(System.String value)
IL_26CB: call static Verse.TaggedString
Verse.TranslatorFormattedStringExtensions::Translate(System.String key,
Verse.NamedArgument arg1)
IL_26D0: call static System.String
Verse.TaggedString::op_Implicit(Verse.TaggedString taggedString)
IL_26D5: ldloc.s 69 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_20)
IL_26D7: ldftn System.Void
RimWorld.<>c__DisplayClass10_20::<AddHumanlikeOrders>b__26()
IL_26DD: newobj System.Void System.Action::.ctor(System.Object object,
System.IntPtr method)
IL_26E2: ldc.i4.4
IL_26E3: ldnull
IL_26E4: ldnull
IL_26E5: ldc.r4 0
IL_26EA: ldnull
IL_26EB: ldnull
IL_26EC: ldc.i4.1
IL_26ED: ldc.i4.0
IL_26EE: newobj System.Void Verse.FloatMenuOption::.ctor(System.String
label, System.Action action, Verse.MenuOptionPriority priority,
System.Action`1<UnityEngine.Rect> mouseoverGuiAction, Verse.Thing
revalidateClickTarget, System.Single extraPartWidth,
System.Func`2<UnityEngine.Rect, System.Boolean> extraPartOnGUI,
RimWorld.Planet.WorldObject revalidateWorldClickTarget, System.Boolean
playSelectionSound, System.Int32 orderInPriority)
IL_26F3: ldloc.s 69 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_20)
IL_26F5: ldfld RimWorld.<>c__DisplayClass10_19
RimWorld.<>c__DisplayClass10_20::CS$<>8__locals20
IL_26FA: ldfld RimWorld.<>c__DisplayClass10_0
RimWorld.<>c__DisplayClass10_19::CS$<>8__locals19
IL_26FF: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_2704: ldloc.s 69 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_20)
IL_2706: ldfld RimWorld.<>c__DisplayClass10_19
RimWorld.<>c__DisplayClass10_20::CS$<>8__locals20
IL_270B: ldfld Verse.Thing RimWorld.<>c__DisplayClass10_19::thing
IL_2710: newobj System.Void Verse.LocalTargetInfo::.ctor(Verse.Thing
thing)
IL_2715: ldstr "ReservedBy"
IL_271A: ldnull
IL_271B: call static Verse.FloatMenuOption
RimWorld.FloatMenuUtility::DecoratePrioritizedTask(Verse.FloatMenuOption option,
Verse.Pawn pawn, Verse.LocalTargetInfo target, System.String reservedText,
Verse.ReservationLayerDef layer)
IL_2720: callvirt virtual System.Void
System.Collections.Generic.List`1<Verse.FloatMenuOption>::Add(Verse.FloatMenuOption
item)
IL_2725: Label202
IL_2725: Label203
IL_2725: Label204
IL_2725: Label213
IL_2725: Label214
IL_2725: Label216
IL_2725: ldloca.s 2
(System.Collections.Generic.List`1+Enumerator[Verse.Thing])
IL_2727: call virtual System.Boolean
System.Collections.Generic.Enumerator<Verse.Thing>::MoveNext()
IL_272C: brtrue => Label217
IL_2731: leave => Label218
IL_2736: leave => (autogenerated)
} // end try
.finally
{
IL_273B: ldloca.s 2
(System.Collections.Generic.List`1+Enumerator[Verse.Thing])
IL_273D: constrained.
System.Collections.Generic.List`1+Enumerator[Verse.Thing]
IL_2743: callvirt abstract virtual System.Void
System.IDisposable::Dispose()
IL_2748: endfinally
IL_2749: leave => (autogenerated)
} // end handler
IL_274A: Label200
IL_274A: Label201
IL_274A: Label218
IL_274A: call static System.Boolean Verse.ModsConfig::get_BiotechActive()
IL_274F: brfalse => Label219
IL_2754: ldloc.s 22 (System.Collections.Generic.List`1[Verse.Thing])
IL_2756: callvirt System.Collections.Generic.Enumerator<Verse.Thing>
System.Collections.Generic.List`1<Verse.Thing>::GetEnumerator()
IL_275B: stloc.2
.try
{
IL_275C: br => Label220
IL_2761: Label228
IL_2761: ldloca.s 2
(System.Collections.Generic.List`1+Enumerator[Verse.Thing])
IL_2763: call virtual Verse.Thing
System.Collections.Generic.Enumerator<Verse.Thing>::get_Current()
IL_2768: stloc.s 72 (Verse.Thing)
IL_276A: newobj System.Void RimWorld.<>c__DisplayClass10_21::.ctor()
IL_276F: stloc.s 73 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_21)
IL_2771: ldloc.s 73 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_21)
IL_2773: ldloc.0
IL_2774: stfld RimWorld.<>c__DisplayClass10_0
RimWorld.<>c__DisplayClass10_21::CS$<>8__locals21
IL_2779: ldloc.s 73 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_21)
IL_277B: ldloc.s 72 (Verse.Thing)
IL_277D: isinst Verse.Pawn
IL_2782: dup
IL_2783: stloc.s 70 (Verse.Pawn)
IL_2785: stfld Verse.Pawn RimWorld.<>c__DisplayClass10_21::p
IL_278A: ldloc.s 70 (Verse.Pawn)
IL_278C: brfalse => Label221
IL_2791: ldloc.s 73 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_21)
IL_2793: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_21::p
IL_2798: call static System.Boolean
RimWorld.RestUtility::IsSelfShutdown(Verse.Pawn p)
IL_279D: brfalse => Label222
IL_27A2: newobj System.Void RimWorld.<>c__DisplayClass10_22::.ctor()
IL_27A7: stloc.s 74 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_22)
IL_27A9: ldloc.s 74 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_22)
IL_27AB: ldloc.s 73 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_21)
IL_27AD: stfld RimWorld.<>c__DisplayClass10_21
RimWorld.<>c__DisplayClass10_22::CS$<>8__locals22
IL_27B2: ldloc.s 74 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_22)
IL_27B4: ldloc.s 74 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_22)
IL_27B6: ldfld RimWorld.<>c__DisplayClass10_21
RimWorld.<>c__DisplayClass10_22::CS$<>8__locals22
IL_27BB: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_21::p
IL_27C0: ldloc.s 74 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_22)
IL_27C2: ldfld RimWorld.<>c__DisplayClass10_21
RimWorld.<>c__DisplayClass10_22::CS$<>8__locals22
IL_27C7: ldfld RimWorld.<>c__DisplayClass10_0
RimWorld.<>c__DisplayClass10_21::CS$<>8__locals21
IL_27CC: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_27D1: ldc.i4.0
IL_27D2: call static RimWorld.Building_MechCharger
RimWorld.JobGiver_GetEnergy_Charger::GetClosestCharger(Verse.Pawn mech, Verse.Pawn
carrier, System.Boolean forced)
IL_27D7: stfld RimWorld.Building_MechCharger
RimWorld.<>c__DisplayClass10_22::charger
IL_27DC: ldloc.s 74 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_22)
IL_27DE: ldfld RimWorld.Building_MechCharger
RimWorld.<>c__DisplayClass10_22::charger
IL_27E3: brtrue => Label223
IL_27E8: ldloc.s 74 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_22)
IL_27EA: ldloc.s 74 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_22)
IL_27EC: ldfld RimWorld.<>c__DisplayClass10_21
RimWorld.<>c__DisplayClass10_22::CS$<>8__locals22
IL_27F1: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_21::p
IL_27F6: ldloc.s 74 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_22)
IL_27F8: ldfld RimWorld.<>c__DisplayClass10_21
RimWorld.<>c__DisplayClass10_22::CS$<>8__locals22
IL_27FD: ldfld RimWorld.<>c__DisplayClass10_0
RimWorld.<>c__DisplayClass10_21::CS$<>8__locals21
IL_2802: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_2807: ldc.i4.1
IL_2808: call static RimWorld.Building_MechCharger
RimWorld.JobGiver_GetEnergy_Charger::GetClosestCharger(Verse.Pawn mech, Verse.Pawn
carrier, System.Boolean forced)
IL_280D: stfld RimWorld.Building_MechCharger
RimWorld.<>c__DisplayClass10_22::charger
IL_2812: Label223
IL_2812: ldloc.s 74 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_22)
IL_2814: ldfld RimWorld.Building_MechCharger
RimWorld.<>c__DisplayClass10_22::charger
IL_2819: brtrue => Label224
IL_281E: ldarg.2
IL_281F: ldstr "CannotCarryToRecharger"
IL_2824: ldloc.s 74 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_22)
IL_2826: ldfld RimWorld.<>c__DisplayClass10_21
RimWorld.<>c__DisplayClass10_22::CS$<>8__locals22
IL_282B: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_21::p
IL_2830: ldstr "PAWN"
IL_2835: call static Verse.NamedArgument
Verse.NamedArgumentUtility::Named(System.Object arg, System.String label)
IL_283A: call static Verse.TaggedString
Verse.TranslatorFormattedStringExtensions::Translate(System.String key,
Verse.NamedArgument arg1)
IL_283F: ldstr ": "
IL_2844: call static Verse.TaggedString
Verse.TaggedString::op_Addition(Verse.TaggedString t1, System.String t2)
IL_2849: ldstr "CannotCarryToRechargerNoneAvailable"
IL_284E: call static Verse.TaggedString
Verse.Translator::Translate(System.String key)
IL_2853: call static Verse.TaggedString
Verse.TaggedString::op_Addition(Verse.TaggedString t1, Verse.TaggedString t2)
IL_2858: call static System.String
Verse.TaggedString::op_Implicit(Verse.TaggedString taggedString)
IL_285D: ldnull
IL_285E: ldc.i4.4
IL_285F: ldnull
IL_2860: ldnull
IL_2861: ldc.r4 0
IL_2866: ldnull
IL_2867: ldnull
IL_2868: ldc.i4.1
IL_2869: ldc.i4.0
IL_286A: newobj System.Void Verse.FloatMenuOption::.ctor(System.String
label, System.Action action, Verse.MenuOptionPriority priority,
System.Action`1<UnityEngine.Rect> mouseoverGuiAction, Verse.Thing
revalidateClickTarget, System.Single extraPartWidth,
System.Func`2<UnityEngine.Rect, System.Boolean> extraPartOnGUI,
RimWorld.Planet.WorldObject revalidateWorldClickTarget, System.Boolean
playSelectionSound, System.Int32 orderInPriority)
IL_286F: callvirt virtual System.Void
System.Collections.Generic.List`1<Verse.FloatMenuOption>::Add(Verse.FloatMenuOption
item)
IL_2874: br => Label225
IL_2879: Label224
IL_2879: ldloc.s 74 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_22)
IL_287B: ldfld RimWorld.<>c__DisplayClass10_21
RimWorld.<>c__DisplayClass10_22::CS$<>8__locals22
IL_2880: ldfld RimWorld.<>c__DisplayClass10_0
RimWorld.<>c__DisplayClass10_21::CS$<>8__locals21
IL_2885: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_288A: ldloc.s 74 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_22)
IL_288C: ldfld RimWorld.Building_MechCharger
RimWorld.<>c__DisplayClass10_22::charger
IL_2891: call static Verse.LocalTargetInfo
Verse.LocalTargetInfo::op_Implicit(Verse.Thing t)
IL_2896: ldc.i4.2
IL_2897: ldc.i4.3
IL_2898: ldc.i4.0
IL_2899: ldc.i4.0
IL_289A: ldc.i4.0
IL_289B: call static System.Boolean
Verse.ReachabilityUtility::CanReach(Verse.Pawn pawn, Verse.LocalTargetInfo dest,
Verse.AI.PathEndMode peMode, Verse.Danger maxDanger, System.Boolean canBashDoors,
System.Boolean canBashFences, Verse.TraverseMode mode)
IL_28A0: brtrue => Label226
IL_28A5: ldarg.2
IL_28A6: ldstr "CannotCarryToRecharger"
IL_28AB: ldloc.s 74 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_22)
IL_28AD: ldfld RimWorld.<>c__DisplayClass10_21
RimWorld.<>c__DisplayClass10_22::CS$<>8__locals22
IL_28B2: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_21::p
IL_28B7: ldstr "PAWN"
IL_28BC: call static Verse.NamedArgument
Verse.NamedArgumentUtility::Named(System.Object arg, System.String label)
IL_28C1: call static Verse.TaggedString
Verse.TranslatorFormattedStringExtensions::Translate(System.String key,
Verse.NamedArgument arg1)
IL_28C6: ldstr ": "
IL_28CB: call static Verse.TaggedString
Verse.TaggedString::op_Addition(Verse.TaggedString t1, System.String t2)
IL_28D0: ldstr "NoPath"
IL_28D5: call static Verse.TaggedString
Verse.Translator::Translate(System.String key)
IL_28DA: stloc.s 11 (Verse.TaggedString)
IL_28DC: ldloca.s 11 (Verse.TaggedString)
IL_28DE: call Verse.TaggedString Verse.TaggedString::CapitalizeFirst()
IL_28E3: call static Verse.TaggedString
Verse.TaggedString::op_Addition(Verse.TaggedString t1, Verse.TaggedString t2)
IL_28E8: call static System.String
Verse.TaggedString::op_Implicit(Verse.TaggedString taggedString)
IL_28ED: ldnull
IL_28EE: ldc.i4.4
IL_28EF: ldnull
IL_28F0: ldnull
IL_28F1: ldc.r4 0
IL_28F6: ldnull
IL_28F7: ldnull
IL_28F8: ldc.i4.1
IL_28F9: ldc.i4.0
IL_28FA: newobj System.Void Verse.FloatMenuOption::.ctor(System.String
label, System.Action action, Verse.MenuOptionPriority priority,
System.Action`1<UnityEngine.Rect> mouseoverGuiAction, Verse.Thing
revalidateClickTarget, System.Single extraPartWidth,
System.Func`2<UnityEngine.Rect, System.Boolean> extraPartOnGUI,
RimWorld.Planet.WorldObject revalidateWorldClickTarget, System.Boolean
playSelectionSound, System.Int32 orderInPriority)
IL_28FF: callvirt virtual System.Void
System.Collections.Generic.List`1<Verse.FloatMenuOption>::Add(Verse.FloatMenuOption
item)
IL_2904: br => Label227
IL_2909: Label226
IL_2909: ldarg.2
IL_290A: ldstr "CarryToRechargerOrdered"
IL_290F: ldloc.s 74 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_22)
IL_2911: ldfld RimWorld.<>c__DisplayClass10_21
RimWorld.<>c__DisplayClass10_22::CS$<>8__locals22
IL_2916: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_21::p
IL_291B: ldstr "PAWN"
IL_2920: call static Verse.NamedArgument
Verse.NamedArgumentUtility::Named(System.Object arg, System.String label)
IL_2925: call static Verse.TaggedString
Verse.TranslatorFormattedStringExtensions::Translate(System.String key,
Verse.NamedArgument arg1)
IL_292A: call static System.String
Verse.TaggedString::op_Implicit(Verse.TaggedString taggedString)
IL_292F: ldloc.s 74 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_22)
IL_2931: ldftn System.Void
RimWorld.<>c__DisplayClass10_22::<AddHumanlikeOrders>b__29()
IL_2937: newobj System.Void System.Action::.ctor(System.Object object,
System.IntPtr method)
IL_293C: ldc.i4.4
IL_293D: ldnull
IL_293E: ldnull
IL_293F: ldc.r4 0
IL_2944: ldnull
IL_2945: ldnull
IL_2946: ldc.i4.1
IL_2947: ldc.i4.0
IL_2948: newobj System.Void Verse.FloatMenuOption::.ctor(System.String
label, System.Action action, Verse.MenuOptionPriority priority,
System.Action`1<UnityEngine.Rect> mouseoverGuiAction, Verse.Thing
revalidateClickTarget, System.Single extraPartWidth,
System.Func`2<UnityEngine.Rect, System.Boolean> extraPartOnGUI,
RimWorld.Planet.WorldObject revalidateWorldClickTarget, System.Boolean
playSelectionSound, System.Int32 orderInPriority)
IL_294D: ldloc.s 74 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_22)
IL_294F: ldfld RimWorld.<>c__DisplayClass10_21
RimWorld.<>c__DisplayClass10_22::CS$<>8__locals22
IL_2954: ldfld RimWorld.<>c__DisplayClass10_0
RimWorld.<>c__DisplayClass10_21::CS$<>8__locals21
IL_2959: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_295E: ldloc.s 74 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_22)
IL_2960: ldfld RimWorld.<>c__DisplayClass10_21
RimWorld.<>c__DisplayClass10_22::CS$<>8__locals22
IL_2965: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_21::p
IL_296A: newobj System.Void Verse.LocalTargetInfo::.ctor(Verse.Thing
thing)
IL_296F: ldstr "ReservedBy"
IL_2974: ldnull
IL_2975: call static Verse.FloatMenuOption
RimWorld.FloatMenuUtility::DecoratePrioritizedTask(Verse.FloatMenuOption option,
Verse.Pawn pawn, Verse.LocalTargetInfo target, System.String reservedText,
Verse.ReservationLayerDef layer)
IL_297A: callvirt virtual System.Void
System.Collections.Generic.List`1<Verse.FloatMenuOption>::Add(Verse.FloatMenuOption
item)
IL_297F: Label220
IL_297F: Label221
IL_297F: Label222
IL_297F: Label225
IL_297F: Label227
IL_297F: ldloca.s 2
(System.Collections.Generic.List`1+Enumerator[Verse.Thing])
IL_2981: call virtual System.Boolean
System.Collections.Generic.Enumerator<Verse.Thing>::MoveNext()
IL_2986: brtrue => Label228
IL_298B: leave => Label229
IL_2990: leave => (autogenerated)
} // end try
.finally
{
IL_2995: ldloca.s 2
(System.Collections.Generic.List`1+Enumerator[Verse.Thing])
IL_2997: constrained.
System.Collections.Generic.List`1+Enumerator[Verse.Thing]
IL_299D: callvirt abstract virtual System.Void
System.IDisposable::Dispose()
IL_29A2: endfinally
IL_29A3: leave => (autogenerated)
} // end handler
IL_29A4: Label68
IL_29A4: Label219
IL_29A4: Label229
IL_29A4: call static System.Boolean Verse.ModsConfig::get_BiotechActive()
IL_29A9: brfalse => Label230
IL_29AE: ldloc.0
IL_29AF: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_29B4: call static System.Boolean
RimWorld.GeneUtility::CanDeathrest(Verse.Pawn pawn)
IL_29B9: brfalse => Label231
IL_29BE: ldloc.1
IL_29BF: ldloc.0
IL_29C0: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_29C5: callvirt virtual Verse.Map Verse.Thing::get_Map()
IL_29CA: call static System.Collections.Generic.List`1<Verse.Thing>
Verse.GridsUtility::GetThingList(Verse.IntVec3 c, Verse.Map map)
IL_29CF: stloc.s 75 (System.Collections.Generic.List`1[Verse.Thing])
IL_29D1: ldc.i4.0
IL_29D2: stloc.s 76 (System.Int32)
IL_29D4: br => Label232
IL_29D9: Label251
IL_29D9: newobj System.Void RimWorld.<>c__DisplayClass10_23::.ctor()
IL_29DE: stloc.s 77 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_23)
IL_29E0: ldloc.s 77 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_23)
IL_29E2: ldloc.0
IL_29E3: stfld RimWorld.<>c__DisplayClass10_0
RimWorld.<>c__DisplayClass10_23::CS$<>8__locals23
IL_29E8: ldloc.s 77 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_23)
IL_29EA: ldloc.s 75 (System.Collections.Generic.List`1[Verse.Thing])
IL_29EC: ldloc.s 76 (System.Int32)
IL_29EE: callvirt virtual Verse.Thing
System.Collections.Generic.List`1<Verse.Thing>::get_Item(System.Int32 index)
IL_29F3: isinst RimWorld.Building_Bed
IL_29F8: dup
IL_29F9: stloc.s 80 (RimWorld.Building_Bed)
IL_29FB: stfld RimWorld.Building_Bed RimWorld.<>c__DisplayClass10_23::bed
IL_2A00: ldloc.s 80 (RimWorld.Building_Bed)
IL_2A02: brfalse => Label233
IL_2A07: ldloc.s 77 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_23)
IL_2A09: ldfld RimWorld.Building_Bed RimWorld.<>c__DisplayClass10_23::bed
IL_2A0E: ldfld Verse.ThingDef Verse.Thing::def
IL_2A13: ldfld RimWorld.BuildingProperties Verse.ThingDef::building
IL_2A18: ldfld System.Boolean RimWorld.BuildingProperties::bed_humanlike
IL_2A1D: brfalse => Label234
IL_2A22: ldloc.s 77 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_23)
IL_2A24: ldfld RimWorld.<>c__DisplayClass10_0
RimWorld.<>c__DisplayClass10_23::CS$<>8__locals23
IL_2A29: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_2A2E: ldloc.s 77 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_23)
IL_2A30: ldfld RimWorld.Building_Bed RimWorld.<>c__DisplayClass10_23::bed
IL_2A35: call static Verse.LocalTargetInfo
Verse.LocalTargetInfo::op_Implicit(Verse.Thing t)
IL_2A3A: ldc.i4.1
IL_2A3B: ldc.i4.3
IL_2A3C: ldc.i4.0
IL_2A3D: ldc.i4.0
IL_2A3E: ldc.i4.0
IL_2A3F: call static System.Boolean
Verse.ReachabilityUtility::CanReach(Verse.Pawn pawn, Verse.LocalTargetInfo dest,
Verse.AI.PathEndMode peMode, Verse.Danger maxDanger, System.Boolean canBashDoors,
System.Boolean canBashFences, Verse.TraverseMode mode)
IL_2A44: brtrue => Label235
IL_2A49: ldarg.2
IL_2A4A: ldstr "CannotDeathrest"
IL_2A4F: call static Verse.TaggedString
Verse.Translator::Translate(System.String key)
IL_2A54: ldstr ": "
IL_2A59: call static Verse.TaggedString
Verse.TaggedString::op_Addition(Verse.TaggedString t1, System.String t2)
IL_2A5E: ldstr "NoPath"
IL_2A63: call static Verse.TaggedString
Verse.Translator::Translate(System.String key)
IL_2A68: stloc.s 11 (Verse.TaggedString)
IL_2A6A: ldloca.s 11 (Verse.TaggedString)
IL_2A6C: call Verse.TaggedString Verse.TaggedString::CapitalizeFirst()
IL_2A71: call static Verse.TaggedString
Verse.TaggedString::op_Addition(Verse.TaggedString t1, Verse.TaggedString t2)
IL_2A76: call static System.String
Verse.TaggedString::op_Implicit(Verse.TaggedString taggedString)
IL_2A7B: ldnull
IL_2A7C: ldc.i4.4
IL_2A7D: ldnull
IL_2A7E: ldnull
IL_2A7F: ldc.r4 0
IL_2A84: ldnull
IL_2A85: ldnull
IL_2A86: ldc.i4.1
IL_2A87: ldc.i4.0
IL_2A88: newobj System.Void Verse.FloatMenuOption::.ctor(System.String label,
System.Action action, Verse.MenuOptionPriority priority,
System.Action`1<UnityEngine.Rect> mouseoverGuiAction, Verse.Thing
revalidateClickTarget, System.Single extraPartWidth,
System.Func`2<UnityEngine.Rect, System.Boolean> extraPartOnGUI,
RimWorld.Planet.WorldObject revalidateWorldClickTarget, System.Boolean
playSelectionSound, System.Int32 orderInPriority)
IL_2A8D: callvirt virtual System.Void
System.Collections.Generic.List`1<Verse.FloatMenuOption>::Add(Verse.FloatMenuOption
item)
IL_2A92: br => Label236
IL_2A97: Label235
IL_2A97: ldloc.s 77 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_23)
IL_2A99: ldfld RimWorld.Building_Bed RimWorld.<>c__DisplayClass10_23::bed
IL_2A9E: callvirt RimWorld.CompAssignableToPawn
RimWorld.Building_Bed::get_CompAssignableToPawn()
IL_2AA3: ldloc.s 77 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_23)
IL_2AA5: ldfld RimWorld.<>c__DisplayClass10_0
RimWorld.<>c__DisplayClass10_23::CS$<>8__locals23
IL_2AAA: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_2AAF: callvirt virtual Verse.AcceptanceReport
RimWorld.CompAssignableToPawn::CanAssignTo(Verse.Pawn pawn)
IL_2AB4: stloc.s 78 (Verse.AcceptanceReport)
IL_2AB6: ldloca.s 78 (Verse.AcceptanceReport)
IL_2AB8: call System.Boolean Verse.AcceptanceReport::get_Accepted()
IL_2ABD: brtrue => Label237
IL_2AC2: ldarg.2
IL_2AC3: ldstr "CannotDeathrest"
IL_2AC8: call static Verse.TaggedString
Verse.Translator::Translate(System.String key)
IL_2ACD: ldstr ": "
IL_2AD2: call static Verse.TaggedString
Verse.TaggedString::op_Addition(Verse.TaggedString t1, System.String t2)
IL_2AD7: ldloca.s 78 (Verse.AcceptanceReport)
IL_2AD9: call System.String Verse.AcceptanceReport::get_Reason()
IL_2ADE: call static Verse.TaggedString
Verse.TaggedString::op_Addition(Verse.TaggedString t1, System.String t2)
IL_2AE3: call static System.String
Verse.TaggedString::op_Implicit(Verse.TaggedString taggedString)
IL_2AE8: ldnull
IL_2AE9: ldc.i4.4
IL_2AEA: ldnull
IL_2AEB: ldnull
IL_2AEC: ldc.r4 0
IL_2AF1: ldnull
IL_2AF2: ldnull
IL_2AF3: ldc.i4.1
IL_2AF4: ldc.i4.0
IL_2AF5: newobj System.Void Verse.FloatMenuOption::.ctor(System.String label,
System.Action action, Verse.MenuOptionPriority priority,
System.Action`1<UnityEngine.Rect> mouseoverGuiAction, Verse.Thing
revalidateClickTarget, System.Single extraPartWidth,
System.Func`2<UnityEngine.Rect, System.Boolean> extraPartOnGUI,
RimWorld.Planet.WorldObject revalidateWorldClickTarget, System.Boolean
playSelectionSound, System.Int32 orderInPriority)
IL_2AFA: callvirt virtual System.Void
System.Collections.Generic.List`1<Verse.FloatMenuOption>::Add(Verse.FloatMenuOption
item)
IL_2AFF: br => Label238
IL_2B04: Label237
IL_2B04: ldloc.s 77 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_23)
IL_2B06: ldfld RimWorld.Building_Bed RimWorld.<>c__DisplayClass10_23::bed
IL_2B0B: callvirt RimWorld.CompAssignableToPawn
RimWorld.Building_Bed::get_CompAssignableToPawn()
IL_2B10: callvirt System.Boolean RimWorld.CompAssignableToPawn::get_HasFreeSlot()
IL_2B15: brfalse => Label239
IL_2B1A: ldloc.s 77 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_23)
IL_2B1C: ldfld RimWorld.Building_Bed RimWorld.<>c__DisplayClass10_23::bed
IL_2B21: ldloc.s 77 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_23)
IL_2B23: ldfld RimWorld.<>c__DisplayClass10_0
RimWorld.<>c__DisplayClass10_23::CS$<>8__locals23
IL_2B28: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_2B2D: ldloc.s 77 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_23)
IL_2B2F: ldfld RimWorld.<>c__DisplayClass10_0
RimWorld.<>c__DisplayClass10_23::CS$<>8__locals23
IL_2B34: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_2B39: ldfld RimWorld.Pawn_GuestTracker Verse.Pawn::guest
IL_2B3E: callvirt RimWorld.GuestStatus
RimWorld.Pawn_GuestTracker::get_GuestStatus()
IL_2B43: newobj System.Void
System.Nullable`1<RimWorld.GuestStatus>::.ctor(RimWorld.GuestStatus value)
IL_2B48: call static System.Boolean
RimWorld.RestUtility::BedOwnerWillShare(RimWorld.Building_Bed bed, Verse.Pawn
sleeper, System.Nullable`1<RimWorld.GuestStatus> guestStatus)
IL_2B4D: brtrue => Label240
IL_2B52: Label239
IL_2B52: ldloc.s 77 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_23)
IL_2B54: ldfld RimWorld.Building_Bed RimWorld.<>c__DisplayClass10_23::bed
IL_2B59: ldloc.s 77 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_23)
IL_2B5B: ldfld RimWorld.<>c__DisplayClass10_0
RimWorld.<>c__DisplayClass10_23::CS$<>8__locals23
IL_2B60: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_2B65: callvirt System.Boolean RimWorld.Building_Bed::IsOwner(Verse.Pawn p)
IL_2B6A: brtrue => Label241
IL_2B6F: ldarg.2
IL_2B70: ldstr "CannotDeathrest"
IL_2B75: call static Verse.TaggedString
Verse.Translator::Translate(System.String key)
IL_2B7A: ldstr ": "
IL_2B7F: call static Verse.TaggedString
Verse.TaggedString::op_Addition(Verse.TaggedString t1, System.String t2)
IL_2B84: ldstr "AssignedToOtherPawn"
IL_2B89: ldloc.s 77 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_23)
IL_2B8B: ldfld RimWorld.Building_Bed RimWorld.<>c__DisplayClass10_23::bed
IL_2B90: call static Verse.NamedArgument
Verse.NamedArgument::op_Implicit(Verse.Thing value)
IL_2B95: call static Verse.TaggedString
Verse.TranslatorFormattedStringExtensions::Translate(System.String key,
Verse.NamedArgument arg1)
IL_2B9A: stloc.s 11 (Verse.TaggedString)
IL_2B9C: ldloca.s 11 (Verse.TaggedString)
IL_2B9E: call Verse.TaggedString Verse.TaggedString::CapitalizeFirst()
IL_2BA3: call static Verse.TaggedString
Verse.TaggedString::op_Addition(Verse.TaggedString t1, Verse.TaggedString t2)
IL_2BA8: call static System.String
Verse.TaggedString::op_Implicit(Verse.TaggedString taggedString)
IL_2BAD: ldnull
IL_2BAE: ldc.i4.4
IL_2BAF: ldnull
IL_2BB0: ldnull
IL_2BB1: ldc.r4 0
IL_2BB6: ldnull
IL_2BB7: ldnull
IL_2BB8: ldc.i4.1
IL_2BB9: ldc.i4.0
IL_2BBA: newobj System.Void Verse.FloatMenuOption::.ctor(System.String label,
System.Action action, Verse.MenuOptionPriority priority,
System.Action`1<UnityEngine.Rect> mouseoverGuiAction, Verse.Thing
revalidateClickTarget, System.Single extraPartWidth,
System.Func`2<UnityEngine.Rect, System.Boolean> extraPartOnGUI,
RimWorld.Planet.WorldObject revalidateWorldClickTarget, System.Boolean
playSelectionSound, System.Int32 orderInPriority)
IL_2BBF: callvirt virtual System.Void
System.Collections.Generic.List`1<Verse.FloatMenuOption>::Add(Verse.FloatMenuOption
item)
IL_2BC4: br => Label242
IL_2BC9: Label240
IL_2BC9: Label241
IL_2BC9: ldc.i4.0
IL_2BCA: stloc.s 79 (System.Boolean)
IL_2BCC: ldloc.s 77 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_23)
IL_2BCE: ldfld RimWorld.Building_Bed RimWorld.<>c__DisplayClass10_23::bed
IL_2BD3: call static Verse.CellRect Verse.GenAdj::OccupiedRect(Verse.Thing t)
IL_2BD8: stloc.s 82 (Verse.CellRect)
IL_2BDA: ldloca.s 82 (Verse.CellRect)
IL_2BDC: call Verse.Enumerator Verse.CellRect::GetEnumerator()
IL_2BE1: stloc.s 81 (Verse.CellRect+Enumerator)
.try
{
IL_2BE3: br => Label243
IL_2BE8: Label246
IL_2BE8: ldloca.s 81 (Verse.CellRect+Enumerator)
IL_2BEA: call virtual Verse.IntVec3 Verse.Enumerator::get_Current()
IL_2BEF: ldloc.s 77 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_23)
IL_2BF1: ldfld RimWorld.Building_Bed
RimWorld.<>c__DisplayClass10_23::bed
IL_2BF6: callvirt virtual Verse.Map Verse.Thing::get_Map()
IL_2BFB: call static Verse.RoofDef
Verse.GridsUtility::GetRoof(Verse.IntVec3 c, Verse.Map map)
IL_2C00: brtrue => Label244
IL_2C05: ldc.i4.1
IL_2C06: stloc.s 79 (System.Boolean)
IL_2C08: leave => Label245
IL_2C0D: Label243
IL_2C0D: Label244
IL_2C0D: ldloca.s 81 (Verse.CellRect+Enumerator)
IL_2C0F: call virtual System.Boolean Verse.Enumerator::MoveNext()
IL_2C14: brtrue => Label246
IL_2C19: leave => Label247
IL_2C1E: leave => (autogenerated)
} // end try
.finally
{
IL_2C23: ldloca.s 81 (Verse.CellRect+Enumerator)
IL_2C25: constrained. Verse.CellRect+Enumerator
IL_2C2B: callvirt abstract virtual System.Void
System.IDisposable::Dispose()
IL_2C30: endfinally
IL_2C31: leave => (autogenerated)
} // end handler
IL_2C32: Label245
IL_2C32: Label247
IL_2C32: ldloc.s 79 (System.Boolean)
IL_2C34: brfalse => Label248
IL_2C39: ldarg.2
IL_2C3A: ldstr "CannotDeathrest"
IL_2C3F: call static Verse.TaggedString
Verse.Translator::Translate(System.String key)
IL_2C44: ldstr ": "
IL_2C49: call static Verse.TaggedString
Verse.TaggedString::op_Addition(Verse.TaggedString t1, System.String t2)
IL_2C4E: ldstr "ThingIsSkyExposed"
IL_2C53: ldloc.s 77 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_23)
IL_2C55: ldfld RimWorld.Building_Bed RimWorld.<>c__DisplayClass10_23::bed
IL_2C5A: call static Verse.NamedArgument
Verse.NamedArgument::op_Implicit(Verse.Thing value)
IL_2C5F: call static Verse.TaggedString
Verse.TranslatorFormattedStringExtensions::Translate(System.String key,
Verse.NamedArgument arg1)
IL_2C64: stloc.s 11 (Verse.TaggedString)
IL_2C66: ldloca.s 11 (Verse.TaggedString)
IL_2C68: call Verse.TaggedString Verse.TaggedString::CapitalizeFirst()
IL_2C6D: call static Verse.TaggedString
Verse.TaggedString::op_Addition(Verse.TaggedString t1, Verse.TaggedString t2)
IL_2C72: call static System.String
Verse.TaggedString::op_Implicit(Verse.TaggedString taggedString)
IL_2C77: ldnull
IL_2C78: ldc.i4.4
IL_2C79: ldnull
IL_2C7A: ldnull
IL_2C7B: ldc.r4 0
IL_2C80: ldnull
IL_2C81: ldnull
IL_2C82: ldc.i4.1
IL_2C83: ldc.i4.0
IL_2C84: newobj System.Void Verse.FloatMenuOption::.ctor(System.String label,
System.Action action, Verse.MenuOptionPriority priority,
System.Action`1<UnityEngine.Rect> mouseoverGuiAction, Verse.Thing
revalidateClickTarget, System.Single extraPartWidth,
System.Func`2<UnityEngine.Rect, System.Boolean> extraPartOnGUI,
RimWorld.Planet.WorldObject revalidateWorldClickTarget, System.Boolean
playSelectionSound, System.Int32 orderInPriority)
IL_2C89: callvirt virtual System.Void
System.Collections.Generic.List`1<Verse.FloatMenuOption>::Add(Verse.FloatMenuOption
item)
IL_2C8E: br => Label249
IL_2C93: Label248
IL_2C93: ldloc.s 77 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_23)
IL_2C95: ldfld RimWorld.Building_Bed RimWorld.<>c__DisplayClass10_23::bed
IL_2C9A: ldloc.s 77 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_23)
IL_2C9C: ldfld RimWorld.<>c__DisplayClass10_0
RimWorld.<>c__DisplayClass10_23::CS$<>8__locals23
IL_2CA1: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_2CA6: ldloc.s 77 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_23)
IL_2CA8: ldfld RimWorld.<>c__DisplayClass10_0
RimWorld.<>c__DisplayClass10_23::CS$<>8__locals23
IL_2CAD: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_2CB2: ldc.i4.1
IL_2CB3: ldc.i4.0
IL_2CB4: ldc.i4.0
IL_2CB5: ldloc.s 77 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_23)
IL_2CB7: ldfld RimWorld.<>c__DisplayClass10_0
RimWorld.<>c__DisplayClass10_23::CS$<>8__locals23
IL_2CBC: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_2CC1: callvirt System.Nullable`1<RimWorld.GuestStatus>
Verse.Pawn::get_GuestStatus()
IL_2CC6: call static System.Boolean
RimWorld.RestUtility::IsValidBedFor(Verse.Thing bedThing, Verse.Pawn sleeper,
Verse.Pawn traveler, System.Boolean checkSocialProperness, System.Boolean
allowMedBedEvenIfSetToNoCare, System.Boolean ignoreOtherReservations,
System.Nullable`1<RimWorld.GuestStatus> guestStatus)
IL_2CCB: brfalse => Label250
IL_2CD0: ldarg.2
IL_2CD1: ldstr "StartDeathrest"
IL_2CD6: call static Verse.TaggedString
Verse.Translator::Translate(System.String key)
IL_2CDB: call static System.String
Verse.TaggedString::op_Implicit(Verse.TaggedString taggedString)
IL_2CE0: ldloc.s 77 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_23)
IL_2CE2: ldftn System.Void
RimWorld.<>c__DisplayClass10_23::<AddHumanlikeOrders>b__30()
IL_2CE8: newobj System.Void System.Action::.ctor(System.Object object,
System.IntPtr method)
IL_2CED: ldc.i4.4
IL_2CEE: ldnull
IL_2CEF: ldnull
IL_2CF0: ldc.r4 0
IL_2CF5: ldnull
IL_2CF6: ldnull
IL_2CF7: ldc.i4.1
IL_2CF8: ldc.i4.0
IL_2CF9: newobj System.Void Verse.FloatMenuOption::.ctor(System.String label,
System.Action action, Verse.MenuOptionPriority priority,
System.Action`1<UnityEngine.Rect> mouseoverGuiAction, Verse.Thing
revalidateClickTarget, System.Single extraPartWidth,
System.Func`2<UnityEngine.Rect, System.Boolean> extraPartOnGUI,
RimWorld.Planet.WorldObject revalidateWorldClickTarget, System.Boolean
playSelectionSound, System.Int32 orderInPriority)
IL_2CFE: callvirt virtual System.Void
System.Collections.Generic.List`1<Verse.FloatMenuOption>::Add(Verse.FloatMenuOption
item)
IL_2D03: Label233
IL_2D03: Label234
IL_2D03: Label236
IL_2D03: Label238
IL_2D03: Label242
IL_2D03: Label249
IL_2D03: Label250
IL_2D03: ldloc.s 76 (System.Int32)
IL_2D05: ldc.i4.1
IL_2D06: add
IL_2D07: stloc.s 76 (System.Int32)
IL_2D09: Label232
IL_2D09: ldloc.s 76 (System.Int32)
IL_2D0B: ldloc.s 75 (System.Collections.Generic.List`1[Verse.Thing])
IL_2D0D: callvirt virtual System.Int32
System.Collections.Generic.List`1<Verse.Thing>::get_Count()
IL_2D12: blt => Label251
IL_2D17: Label230
IL_2D17: Label231
IL_2D17: call static System.Boolean Verse.ModsConfig::get_BiotechActive()
IL_2D1C: brfalse => Label252
IL_2D21: ldloc.0
IL_2D22: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_2D27: call static System.Boolean
RimWorld.GeneUtility::IsBloodfeeder(Verse.Pawn pawn)
IL_2D2C: brfalse => Label253
IL_2D31: ldloc.0
IL_2D32: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_2D37: ldfld RimWorld.Pawn_GeneTracker Verse.Pawn::genes
IL_2D3C: dup
IL_2D3D: brtrue => Label254
IL_2D42: pop
IL_2D43: ldnull
IL_2D44: br => Label255
IL_2D49: Label254
IL_2D49: call RimWorld.Gene_Hemogen
RimWorld.Pawn_GeneTracker::GetFirstGeneOfType()
IL_2D4E: Label255
IL_2D4E: brfalse => Label256
IL_2D53: ldarg.0
IL_2D54: ldloc.0
IL_2D55: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_2D5A: call static RimWorld.TargetingParameters
RimWorld.TargetingParameters::ForBloodfeeding(Verse.Pawn pawn)
IL_2D5F: ldc.i4.0
IL_2D60: ldnull
IL_2D61: call static
System.Collections.Generic.IEnumerable`1<Verse.LocalTargetInfo>
Verse.GenUI::TargetsAt(UnityEngine.Vector3 clickPos, RimWorld.TargetingParameters
clickParams, System.Boolean thingsOnly, RimWorld.ITargetingSource source)
IL_2D66: callvirt abstract virtual
System.Collections.Generic.IEnumerator`1<Verse.LocalTargetInfo>
System.Collections.Generic.IEnumerable`1<Verse.LocalTargetInfo>::GetEnumerator()
IL_2D6B: stloc.s 8
(System.Collections.Generic.IEnumerator`1[Verse.LocalTargetInfo])
.try
{
IL_2D6D: br => Label257
IL_2D72: Label263
IL_2D72: ldloc.s 8
(System.Collections.Generic.IEnumerator`1[Verse.LocalTargetInfo])
IL_2D74: callvirt abstract virtual Verse.LocalTargetInfo
System.Collections.Generic.IEnumerator`1<Verse.LocalTargetInfo>::get_Current()
IL_2D79: stloc.s 83 (Verse.LocalTargetInfo)
IL_2D7B: newobj System.Void RimWorld.<>c__DisplayClass10_24::.ctor()
IL_2D80: stloc.s 84 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_24)
IL_2D82: ldloc.s 84 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_24)
IL_2D84: ldloc.0
IL_2D85: stfld RimWorld.<>c__DisplayClass10_0
RimWorld.<>c__DisplayClass10_24::CS$<>8__locals24
IL_2D8A: ldloc.s 84 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_24)
IL_2D8C: ldloca.s 83 (Verse.LocalTargetInfo)
IL_2D8E: call Verse.Thing Verse.LocalTargetInfo::get_Thing()
IL_2D93: castclass Verse.Pawn
IL_2D98: stfld Verse.Pawn RimWorld.<>c__DisplayClass10_24::targPawn
IL_2D9D: ldloc.s 84 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_24)
IL_2D9F: ldfld RimWorld.<>c__DisplayClass10_0
RimWorld.<>c__DisplayClass10_24::CS$<>8__locals24
IL_2DA4: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_2DA9: ldloc.s 84 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_24)
IL_2DAB: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_24::targPawn
IL_2DB0: call static Verse.LocalTargetInfo
Verse.LocalTargetInfo::op_Implicit(Verse.Thing t)
IL_2DB5: ldc.i4.3
IL_2DB6: ldc.i4.3
IL_2DB7: ldc.i4.0
IL_2DB8: ldc.i4.0
IL_2DB9: ldc.i4.0
IL_2DBA: call static System.Boolean
Verse.ReachabilityUtility::CanReach(Verse.Pawn pawn, Verse.LocalTargetInfo dest,
Verse.AI.PathEndMode peMode, Verse.Danger maxDanger, System.Boolean canBashDoors,
System.Boolean canBashFences, Verse.TraverseMode mode)
IL_2DBF: brtrue => Label258
IL_2DC4: ldarg.2
IL_2DC5: ldstr "CannotBloodfeedOn"
IL_2DCA: ldloc.s 84 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_24)
IL_2DCC: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_24::targPawn
IL_2DD1: ldstr "PAWN"
IL_2DD6: call static Verse.NamedArgument
Verse.NamedArgumentUtility::Named(System.Object arg, System.String label)
IL_2DDB: call static Verse.TaggedString
Verse.TranslatorFormattedStringExtensions::Translate(System.String key,
Verse.NamedArgument arg1)
IL_2DE0: ldstr ": "
IL_2DE5: call static Verse.TaggedString
Verse.TaggedString::op_Addition(Verse.TaggedString t1, System.String t2)
IL_2DEA: ldstr "NoPath"
IL_2DEF: call static Verse.TaggedString
Verse.Translator::Translate(System.String key)
IL_2DF4: stloc.s 11 (Verse.TaggedString)
IL_2DF6: ldloca.s 11 (Verse.TaggedString)
IL_2DF8: call Verse.TaggedString Verse.TaggedString::CapitalizeFirst()
IL_2DFD: call static Verse.TaggedString
Verse.TaggedString::op_Addition(Verse.TaggedString t1, Verse.TaggedString t2)
IL_2E02: call static System.String
Verse.TaggedString::op_Implicit(Verse.TaggedString taggedString)
IL_2E07: ldnull
IL_2E08: ldc.i4.4
IL_2E09: ldnull
IL_2E0A: ldnull
IL_2E0B: ldc.r4 0
IL_2E10: ldnull
IL_2E11: ldnull
IL_2E12: ldc.i4.1
IL_2E13: ldc.i4.0
IL_2E14: newobj System.Void Verse.FloatMenuOption::.ctor(System.String
label, System.Action action, Verse.MenuOptionPriority priority,
System.Action`1<UnityEngine.Rect> mouseoverGuiAction, Verse.Thing
revalidateClickTarget, System.Single extraPartWidth,
System.Func`2<UnityEngine.Rect, System.Boolean> extraPartOnGUI,
RimWorld.Planet.WorldObject revalidateWorldClickTarget, System.Boolean
playSelectionSound, System.Int32 orderInPriority)
IL_2E19: callvirt virtual System.Void
System.Collections.Generic.List`1<Verse.FloatMenuOption>::Add(Verse.FloatMenuOption
item)
IL_2E1E: br => Label259
IL_2E23: Label258
IL_2E23: ldloc.s 84 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_24)
IL_2E25: ldfld RimWorld.<>c__DisplayClass10_0
RimWorld.<>c__DisplayClass10_24::CS$<>8__locals24
IL_2E2A: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_2E2F: ldloc.s 84 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_24)
IL_2E31: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_24::targPawn
IL_2E36: call static Verse.AcceptanceReport
RimWorld.JobGiver_GetHemogen::CanFeedOnPrisoner(Verse.Pawn bloodfeeder, Verse.Pawn
prisoner)
IL_2E3B: stloc.s 85 (Verse.AcceptanceReport)
IL_2E3D: ldloca.s 85 (Verse.AcceptanceReport)
IL_2E3F: call System.Boolean Verse.AcceptanceReport::get_Accepted()
IL_2E44: brfalse => Label260
IL_2E49: ldarg.2
IL_2E4A: ldstr "BloodfeedOn"
IL_2E4F: ldloc.s 84 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_24)
IL_2E51: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_24::targPawn
IL_2E56: ldstr "PAWN"
IL_2E5B: call static Verse.NamedArgument
Verse.NamedArgumentUtility::Named(System.Object arg, System.String label)
IL_2E60: call static Verse.TaggedString
Verse.TranslatorFormattedStringExtensions::Translate(System.String key,
Verse.NamedArgument arg1)
IL_2E65: call static System.String
Verse.TaggedString::op_Implicit(Verse.TaggedString taggedString)
IL_2E6A: ldloc.s 84 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_24)
IL_2E6C: ldftn System.Void
RimWorld.<>c__DisplayClass10_24::<AddHumanlikeOrders>b__31()
IL_2E72: newobj System.Void System.Action::.ctor(System.Object object,
System.IntPtr method)
IL_2E77: ldc.i4.4
IL_2E78: ldnull
IL_2E79: ldnull
IL_2E7A: ldc.r4 0
IL_2E7F: ldnull
IL_2E80: ldnull
IL_2E81: ldc.i4.1
IL_2E82: ldc.i4.0
IL_2E83: newobj System.Void Verse.FloatMenuOption::.ctor(System.String
label, System.Action action, Verse.MenuOptionPriority priority,
System.Action`1<UnityEngine.Rect> mouseoverGuiAction, Verse.Thing
revalidateClickTarget, System.Single extraPartWidth,
System.Func`2<UnityEngine.Rect, System.Boolean> extraPartOnGUI,
RimWorld.Planet.WorldObject revalidateWorldClickTarget, System.Boolean
playSelectionSound, System.Int32 orderInPriority)
IL_2E88: ldloc.s 84 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_24)
IL_2E8A: ldfld RimWorld.<>c__DisplayClass10_0
RimWorld.<>c__DisplayClass10_24::CS$<>8__locals24
IL_2E8F: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_2E94: ldloc.s 84 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_24)
IL_2E96: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_24::targPawn
IL_2E9B: call static Verse.LocalTargetInfo
Verse.LocalTargetInfo::op_Implicit(Verse.Thing t)
IL_2EA0: ldstr "ReservedBy"
IL_2EA5: ldnull
IL_2EA6: call static Verse.FloatMenuOption
RimWorld.FloatMenuUtility::DecoratePrioritizedTask(Verse.FloatMenuOption option,
Verse.Pawn pawn, Verse.LocalTargetInfo target, System.String reservedText,
Verse.ReservationLayerDef layer)
IL_2EAB: callvirt virtual System.Void
System.Collections.Generic.List`1<Verse.FloatMenuOption>::Add(Verse.FloatMenuOption
item)
IL_2EB0: br => Label261
IL_2EB5: Label260
IL_2EB5: ldloca.s 85 (Verse.AcceptanceReport)
IL_2EB7: call System.String Verse.AcceptanceReport::get_Reason()
IL_2EBC: call static System.Boolean
Verse.GenText::NullOrEmpty(System.String str)
IL_2EC1: brtrue => Label262
IL_2EC6: ldarg.2
IL_2EC7: ldstr "CannotBloodfeedOn"
IL_2ECC: ldloc.s 84 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_24)
IL_2ECE: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_24::targPawn
IL_2ED3: ldstr "PAWN"
IL_2ED8: call static Verse.NamedArgument
Verse.NamedArgumentUtility::Named(System.Object arg, System.String label)
IL_2EDD: call static Verse.TaggedString
Verse.TranslatorFormattedStringExtensions::Translate(System.String key,
Verse.NamedArgument arg1)
IL_2EE2: ldstr ": "
IL_2EE7: call static Verse.TaggedString
Verse.TaggedString::op_Addition(Verse.TaggedString t1, System.String t2)
IL_2EEC: ldloca.s 85 (Verse.AcceptanceReport)
IL_2EEE: call System.String Verse.AcceptanceReport::get_Reason()
IL_2EF3: call static System.String
Verse.GenText::CapitalizeFirst(System.String str)
IL_2EF8: call static Verse.TaggedString
Verse.TaggedString::op_Addition(Verse.TaggedString t1, System.String t2)
IL_2EFD: call static System.String
Verse.TaggedString::op_Implicit(Verse.TaggedString taggedString)
IL_2F02: ldnull
IL_2F03: ldc.i4.4
IL_2F04: ldnull
IL_2F05: ldnull
IL_2F06: ldc.r4 0
IL_2F0B: ldnull
IL_2F0C: ldnull
IL_2F0D: ldc.i4.1
IL_2F0E: ldc.i4.0
IL_2F0F: newobj System.Void Verse.FloatMenuOption::.ctor(System.String
label, System.Action action, Verse.MenuOptionPriority priority,
System.Action`1<UnityEngine.Rect> mouseoverGuiAction, Verse.Thing
revalidateClickTarget, System.Single extraPartWidth,
System.Func`2<UnityEngine.Rect, System.Boolean> extraPartOnGUI,
RimWorld.Planet.WorldObject revalidateWorldClickTarget, System.Boolean
playSelectionSound, System.Int32 orderInPriority)
IL_2F14: callvirt virtual System.Void
System.Collections.Generic.List`1<Verse.FloatMenuOption>::Add(Verse.FloatMenuOption
item)
IL_2F19: Label257
IL_2F19: Label259
IL_2F19: Label261
IL_2F19: Label262
IL_2F19: ldloc.s 8
(System.Collections.Generic.IEnumerator`1[Verse.LocalTargetInfo])
IL_2F1B: callvirt abstract virtual System.Boolean
System.Collections.IEnumerator::MoveNext()
IL_2F20: brtrue => Label263
IL_2F25: leave => Label264
IL_2F2A: leave => (autogenerated)
} // end try
.finally
{
IL_2F2F: ldloc.s 8
(System.Collections.Generic.IEnumerator`1[Verse.LocalTargetInfo])
IL_2F31: brfalse => Label265
IL_2F36: ldloc.s 8
(System.Collections.Generic.IEnumerator`1[Verse.LocalTargetInfo])
IL_2F38: callvirt abstract virtual System.Void
System.IDisposable::Dispose()
IL_2F3D: Label265
IL_2F3D: endfinally
IL_2F3E: leave => (autogenerated)
} // end handler
IL_2F3F: Label252
IL_2F3F: Label253
IL_2F3F: Label256
IL_2F3F: Label264
IL_2F3F: call static System.Boolean Verse.ModsConfig::get_BiotechActive()
IL_2F44: brfalse => Label266
IL_2F49: ldloc.0
IL_2F4A: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_2F4F: ldfld Verse.Pawn_HealthTracker Verse.Pawn::health
IL_2F54: ldfld Verse.PawnCapacitiesHandler
Verse.Pawn_HealthTracker::capacities
IL_2F59: ldsfld Verse.PawnCapacityDef RimWorld.PawnCapacityDefOf::Manipulation
IL_2F5E: callvirt System.Boolean
Verse.PawnCapacitiesHandler::CapableOf(Verse.PawnCapacityDef capacity)
IL_2F63: brfalse => Label267
IL_2F68: ldarg.0
IL_2F69: ldloc.0
IL_2F6A: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_2F6F: call static RimWorld.TargetingParameters
RimWorld.TargetingParameters::ForCarryDeathresterToBed(Verse.Pawn p)
IL_2F74: ldc.i4.0
IL_2F75: ldnull
IL_2F76: call static
System.Collections.Generic.IEnumerable`1<Verse.LocalTargetInfo>
Verse.GenUI::TargetsAt(UnityEngine.Vector3 clickPos, RimWorld.TargetingParameters
clickParams, System.Boolean thingsOnly, RimWorld.ITargetingSource source)
IL_2F7B: callvirt abstract virtual
System.Collections.Generic.IEnumerator`1<Verse.LocalTargetInfo>
System.Collections.Generic.IEnumerable`1<Verse.LocalTargetInfo>::GetEnumerator()
IL_2F80: stloc.s 8
(System.Collections.Generic.IEnumerator`1[Verse.LocalTargetInfo])
.try
{
IL_2F82: br => Label268
IL_2F87: Label275
IL_2F87: ldloc.s 8
(System.Collections.Generic.IEnumerator`1[Verse.LocalTargetInfo])
IL_2F89: callvirt abstract virtual Verse.LocalTargetInfo
System.Collections.Generic.IEnumerator`1<Verse.LocalTargetInfo>::get_Current()
IL_2F8E: stloc.s 86 (Verse.LocalTargetInfo)
IL_2F90: newobj System.Void RimWorld.<>c__DisplayClass10_25::.ctor()
IL_2F95: stloc.s 87 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_25)
IL_2F97: ldloc.s 87 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_25)
IL_2F99: ldloc.0
IL_2F9A: stfld RimWorld.<>c__DisplayClass10_0
RimWorld.<>c__DisplayClass10_25::CS$<>8__locals25
IL_2F9F: ldloc.s 87 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_25)
IL_2FA1: ldloca.s 86 (Verse.LocalTargetInfo)
IL_2FA3: call Verse.Thing Verse.LocalTargetInfo::get_Thing()
IL_2FA8: castclass Verse.Pawn
IL_2FAD: stfld Verse.Pawn RimWorld.<>c__DisplayClass10_25::targPawn
IL_2FB2: ldloc.s 87 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_25)
IL_2FB4: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_25::targPawn
IL_2FB9: call static System.Boolean
RimWorld.RestUtility::InBed(Verse.Pawn p)
IL_2FBE: brtrue => Label269
IL_2FC3: ldloc.s 87 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_25)
IL_2FC5: ldfld RimWorld.<>c__DisplayClass10_0
RimWorld.<>c__DisplayClass10_25::CS$<>8__locals25
IL_2FCA: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_2FCF: ldloc.s 87 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_25)
IL_2FD1: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_25::targPawn
IL_2FD6: call static Verse.LocalTargetInfo
Verse.LocalTargetInfo::op_Implicit(Verse.Thing t)
IL_2FDB: ldc.i4.3
IL_2FDC: ldc.i4.3
IL_2FDD: ldc.i4.0
IL_2FDE: ldc.i4.0
IL_2FDF: ldc.i4.0
IL_2FE0: call static System.Boolean
Verse.ReachabilityUtility::CanReach(Verse.Pawn pawn, Verse.LocalTargetInfo dest,
Verse.AI.PathEndMode peMode, Verse.Danger maxDanger, System.Boolean canBashDoors,
System.Boolean canBashFences, Verse.TraverseMode mode)
IL_2FE5: brtrue => Label270
IL_2FEA: ldarg.2
IL_2FEB: ldstr "CannotCarry"
IL_2FF0: ldloc.s 87 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_25)
IL_2FF2: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_25::targPawn
IL_2FF7: call static Verse.NamedArgument
Verse.NamedArgument::op_Implicit(Verse.Thing value)
IL_2FFC: call static Verse.TaggedString
Verse.TranslatorFormattedStringExtensions::Translate(System.String key,
Verse.NamedArgument arg1)
IL_3001: ldstr ": "
IL_3006: call static Verse.TaggedString
Verse.TaggedString::op_Addition(Verse.TaggedString t1, System.String t2)
IL_300B: ldstr "NoPath"
IL_3010: call static Verse.TaggedString
Verse.Translator::Translate(System.String key)
IL_3015: stloc.s 11 (Verse.TaggedString)
IL_3017: ldloca.s 11 (Verse.TaggedString)
IL_3019: call Verse.TaggedString Verse.TaggedString::CapitalizeFirst()
IL_301E: call static Verse.TaggedString
Verse.TaggedString::op_Addition(Verse.TaggedString t1, Verse.TaggedString t2)
IL_3023: call static System.String
Verse.TaggedString::op_Implicit(Verse.TaggedString taggedString)
IL_3028: ldnull
IL_3029: ldc.i4.4
IL_302A: ldnull
IL_302B: ldnull
IL_302C: ldc.r4 0
IL_3031: ldnull
IL_3032: ldnull
IL_3033: ldc.i4.1
IL_3034: ldc.i4.0
IL_3035: newobj System.Void Verse.FloatMenuOption::.ctor(System.String
label, System.Action action, Verse.MenuOptionPriority priority,
System.Action`1<UnityEngine.Rect> mouseoverGuiAction, Verse.Thing
revalidateClickTarget, System.Single extraPartWidth,
System.Func`2<UnityEngine.Rect, System.Boolean> extraPartOnGUI,
RimWorld.Planet.WorldObject revalidateWorldClickTarget, System.Boolean
playSelectionSound, System.Int32 orderInPriority)
IL_303A: callvirt virtual System.Void
System.Collections.Generic.List`1<Verse.FloatMenuOption>::Add(Verse.FloatMenuOption
item)
IL_303F: br => Label271
IL_3044: Label270
IL_3044: newobj System.Void RimWorld.<>c__DisplayClass10_26::.ctor()
IL_3049: stloc.s 88 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_26)
IL_304B: ldloc.s 88 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_26)
IL_304D: ldloc.s 87 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_25)
IL_304F: stfld RimWorld.<>c__DisplayClass10_25
RimWorld.<>c__DisplayClass10_26::CS$<>8__locals26
IL_3054: ldloc.s 88 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_26)
IL_3056: ldloc.s 88 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_26)
IL_3058: ldfld RimWorld.<>c__DisplayClass10_25
RimWorld.<>c__DisplayClass10_26::CS$<>8__locals26
IL_305D: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_25::targPawn
IL_3062: callvirt Verse.IntVec3 Verse.Thing::get_PositionHeld()
IL_3067: ldloc.s 88 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_26)
IL_3069: ldfld RimWorld.<>c__DisplayClass10_25
RimWorld.<>c__DisplayClass10_26::CS$<>8__locals26
IL_306E: ldfld RimWorld.<>c__DisplayClass10_0
RimWorld.<>c__DisplayClass10_25::CS$<>8__locals25
IL_3073: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_3078: callvirt virtual Verse.Map Verse.Thing::get_Map()
IL_307D: ldsfld Verse.ThingDef RimWorld.ThingDefOf::DeathrestCasket
IL_3082: call static Verse.ThingRequest
Verse.ThingRequest::ForDef(Verse.ThingDef singleDef)
IL_3087: ldc.i4.3
IL_3088: ldloc.s 88 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_26)
IL_308A: ldfld RimWorld.<>c__DisplayClass10_25
RimWorld.<>c__DisplayClass10_26::CS$<>8__locals26
IL_308F: ldfld RimWorld.<>c__DisplayClass10_0
RimWorld.<>c__DisplayClass10_25::CS$<>8__locals25
IL_3094: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_3099: ldc.i4.3
IL_309A: ldc.i4.0
IL_309B: ldc.i4.0
IL_309C: ldc.i4.0
IL_309D: ldc.i4.0
IL_309E: call static Verse.TraverseParms
Verse.TraverseParms::For(Verse.Pawn pawn, Verse.Danger maxDanger,
Verse.TraverseMode mode, System.Boolean canBashDoors, System.Boolean
alwaysUseAvoidGrid, System.Boolean canBashFences)
IL_30A3: ldc.r4 9999
IL_30A8: ldloc.s 88 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_26)
IL_30AA: ldfld RimWorld.<>c__DisplayClass10_25
RimWorld.<>c__DisplayClass10_26::CS$<>8__locals26
IL_30AF: ldftn System.Boolean
RimWorld.<>c__DisplayClass10_25::<AddHumanlikeOrders>b__32(Verse.Thing casket)
IL_30B5: newobj System.Void
System.Predicate`1<Verse.Thing>::.ctor(System.Object object, System.IntPtr method)
IL_30BA: ldnull
IL_30BB: ldc.i4.0
IL_30BC: ldc.i4.m1
IL_30BD: ldc.i4.0
IL_30BE: ldc.i4.s 14
IL_30C0: ldc.i4.0
IL_30C1: call static Verse.Thing
Verse.GenClosest::ClosestThingReachable(Verse.IntVec3 root, Verse.Map map,
Verse.ThingRequest thingReq, Verse.AI.PathEndMode peMode, Verse.TraverseParms
traverseParams, System.Single maxDistance, System.Predicate`1<Verse.Thing>
validator, System.Collections.Generic.IEnumerable`1<Verse.Thing>
customGlobalSearchSet, System.Int32 searchRegionsMin, System.Int32
searchRegionsMax, System.Boolean forceAllowGlobalSearch, Verse.RegionType
traversableRegionTypes, System.Boolean ignoreEntirelyForbiddenRegions)
IL_30C6: stfld Verse.Thing
RimWorld.<>c__DisplayClass10_26::bestBedOrCasket
IL_30CB: ldloc.s 88 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_26)
IL_30CD: ldfld Verse.Thing
RimWorld.<>c__DisplayClass10_26::bestBedOrCasket
IL_30D2: brtrue => Label272
IL_30D7: ldloc.s 88 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_26)
IL_30D9: ldloc.s 88 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_26)
IL_30DB: ldfld RimWorld.<>c__DisplayClass10_25
RimWorld.<>c__DisplayClass10_26::CS$<>8__locals26
IL_30E0: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_25::targPawn
IL_30E5: ldloc.s 88 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_26)
IL_30E7: ldfld RimWorld.<>c__DisplayClass10_25
RimWorld.<>c__DisplayClass10_26::CS$<>8__locals26
IL_30EC: ldfld RimWorld.<>c__DisplayClass10_0
RimWorld.<>c__DisplayClass10_25::CS$<>8__locals25
IL_30F1: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_30F6: ldc.i4.0
IL_30F7: ldc.i4.0
IL_30F8: ldloca.s 89 (System.Nullable`1[RimWorld.GuestStatus])
IL_30FA: initobj System.Nullable`1[RimWorld.GuestStatus]
IL_3100: ldloc.s 89 (System.Nullable`1[RimWorld.GuestStatus])
IL_3102: call static RimWorld.Building_Bed
RimWorld.RestUtility::FindBedFor(Verse.Pawn sleeper, Verse.Pawn traveler,
System.Boolean checkSocialProperness, System.Boolean ignoreOtherReservations,
System.Nullable`1<RimWorld.GuestStatus> guestStatus)
IL_3107: stfld Verse.Thing
RimWorld.<>c__DisplayClass10_26::bestBedOrCasket
IL_310C: Label272
IL_310C: ldloc.s 88 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_26)
IL_310E: ldfld Verse.Thing
RimWorld.<>c__DisplayClass10_26::bestBedOrCasket
IL_3113: brfalse => Label273
IL_3118: ldarg.2
IL_3119: ldstr "CarryToSpecificThing"
IL_311E: ldloc.s 88 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_26)
IL_3120: ldfld Verse.Thing
RimWorld.<>c__DisplayClass10_26::bestBedOrCasket
IL_3125: call static Verse.NamedArgument
Verse.NamedArgument::op_Implicit(Verse.Thing value)
IL_312A: call static Verse.TaggedString
Verse.TranslatorFormattedStringExtensions::Translate(System.String key,
Verse.NamedArgument arg1)
IL_312F: call static System.String
Verse.TaggedString::op_Implicit(Verse.TaggedString taggedString)
IL_3134: ldloc.s 88 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_26)
IL_3136: ldftn System.Void
RimWorld.<>c__DisplayClass10_26::<AddHumanlikeOrders>b__33()
IL_313C: newobj System.Void System.Action::.ctor(System.Object object,
System.IntPtr method)
IL_3141: ldc.i4.8
IL_3142: ldnull
IL_3143: ldloc.s 88 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_26)
IL_3145: ldfld RimWorld.<>c__DisplayClass10_25
RimWorld.<>c__DisplayClass10_26::CS$<>8__locals26
IL_314A: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_25::targPawn
IL_314F: ldc.r4 0
IL_3154: ldnull
IL_3155: ldnull
IL_3156: ldc.i4.1
IL_3157: ldc.i4.0
IL_3158: newobj System.Void Verse.FloatMenuOption::.ctor(System.String
label, System.Action action, Verse.MenuOptionPriority priority,
System.Action`1<UnityEngine.Rect> mouseoverGuiAction, Verse.Thing
revalidateClickTarget, System.Single extraPartWidth,
System.Func`2<UnityEngine.Rect, System.Boolean> extraPartOnGUI,
RimWorld.Planet.WorldObject revalidateWorldClickTarget, System.Boolean
playSelectionSound, System.Int32 orderInPriority)
IL_315D: ldloc.s 88 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_26)
IL_315F: ldfld RimWorld.<>c__DisplayClass10_25
RimWorld.<>c__DisplayClass10_26::CS$<>8__locals26
IL_3164: ldfld RimWorld.<>c__DisplayClass10_0
RimWorld.<>c__DisplayClass10_25::CS$<>8__locals25
IL_3169: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_316E: ldloc.s 88 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_26)
IL_3170: ldfld RimWorld.<>c__DisplayClass10_25
RimWorld.<>c__DisplayClass10_26::CS$<>8__locals26
IL_3175: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_25::targPawn
IL_317A: call static Verse.LocalTargetInfo
Verse.LocalTargetInfo::op_Implicit(Verse.Thing t)
IL_317F: ldstr "ReservedBy"
IL_3184: ldnull
IL_3185: call static Verse.FloatMenuOption
RimWorld.FloatMenuUtility::DecoratePrioritizedTask(Verse.FloatMenuOption option,
Verse.Pawn pawn, Verse.LocalTargetInfo target, System.String reservedText,
Verse.ReservationLayerDef layer)
IL_318A: callvirt virtual System.Void
System.Collections.Generic.List`1<Verse.FloatMenuOption>::Add(Verse.FloatMenuOption
item)
IL_318F: br => Label274
IL_3194: Label273
IL_3194: ldarg.2
IL_3195: ldstr "CannotCarry"
IL_319A: ldloc.s 88 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_26)
IL_319C: ldfld RimWorld.<>c__DisplayClass10_25
RimWorld.<>c__DisplayClass10_26::CS$<>8__locals26
IL_31A1: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_25::targPawn
IL_31A6: call static Verse.NamedArgument
Verse.NamedArgument::op_Implicit(Verse.Thing value)
IL_31AB: call static Verse.TaggedString
Verse.TranslatorFormattedStringExtensions::Translate(System.String key,
Verse.NamedArgument arg1)
IL_31B0: ldstr ": "
IL_31B5: call static Verse.TaggedString
Verse.TaggedString::op_Addition(Verse.TaggedString t1, System.String t2)
IL_31BA: ldstr "NoCasketOrBed"
IL_31BF: call static Verse.TaggedString
Verse.Translator::Translate(System.String key)
IL_31C4: call static Verse.TaggedString
Verse.TaggedString::op_Addition(Verse.TaggedString t1, Verse.TaggedString t2)
IL_31C9: call static System.String
Verse.TaggedString::op_Implicit(Verse.TaggedString taggedString)
IL_31CE: ldnull
IL_31CF: ldc.i4.4
IL_31D0: ldnull
IL_31D1: ldnull
IL_31D2: ldc.r4 0
IL_31D7: ldnull
IL_31D8: ldnull
IL_31D9: ldc.i4.1
IL_31DA: ldc.i4.0
IL_31DB: newobj System.Void Verse.FloatMenuOption::.ctor(System.String
label, System.Action action, Verse.MenuOptionPriority priority,
System.Action`1<UnityEngine.Rect> mouseoverGuiAction, Verse.Thing
revalidateClickTarget, System.Single extraPartWidth,
System.Func`2<UnityEngine.Rect, System.Boolean> extraPartOnGUI,
RimWorld.Planet.WorldObject revalidateWorldClickTarget, System.Boolean
playSelectionSound, System.Int32 orderInPriority)
IL_31E0: callvirt virtual System.Void
System.Collections.Generic.List`1<Verse.FloatMenuOption>::Add(Verse.FloatMenuOption
item)
IL_31E5: Label268
IL_31E5: Label269
IL_31E5: Label271
IL_31E5: Label274
IL_31E5: ldloc.s 8
(System.Collections.Generic.IEnumerator`1[Verse.LocalTargetInfo])
IL_31E7: callvirt abstract virtual System.Boolean
System.Collections.IEnumerator::MoveNext()
IL_31EC: brtrue => Label275
IL_31F1: leave => Label276
IL_31F6: leave => (autogenerated)
} // end try
.finally
{
IL_31FB: ldloc.s 8
(System.Collections.Generic.IEnumerator`1[Verse.LocalTargetInfo])
IL_31FD: brfalse => Label277
IL_3202: ldloc.s 8
(System.Collections.Generic.IEnumerator`1[Verse.LocalTargetInfo])
IL_3204: callvirt abstract virtual System.Void
System.IDisposable::Dispose()
IL_3209: Label277
IL_3209: endfinally
IL_320A: leave => (autogenerated)
} // end handler
IL_320B: Label266
IL_320B: Label267
IL_320B: Label276
IL_320B: call static System.Boolean Verse.ModsConfig::get_BiotechActive()
IL_3210: brfalse => Label278
IL_3215: ldloc.0
IL_3216: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_321B: ldfld RimWorld.Pawn_GeneTracker Verse.Pawn::genes
IL_3220: brfalse => Label279
IL_3225: ldarg.0
IL_3226: ldloc.0
IL_3227: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_322C: call static RimWorld.TargetingParameters
RimWorld.TargetingParameters::ForXenogermAbsorption(Verse.Pawn p)
IL_3231: ldc.i4.1
IL_3232: ldnull
IL_3233: call static
System.Collections.Generic.IEnumerable`1<Verse.LocalTargetInfo>
Verse.GenUI::TargetsAt(UnityEngine.Vector3 clickPos, RimWorld.TargetingParameters
clickParams, System.Boolean thingsOnly, RimWorld.ITargetingSource source)
IL_3238: callvirt abstract virtual
System.Collections.Generic.IEnumerator`1<Verse.LocalTargetInfo>
System.Collections.Generic.IEnumerable`1<Verse.LocalTargetInfo>::GetEnumerator()
IL_323D: stloc.s 8
(System.Collections.Generic.IEnumerator`1[Verse.LocalTargetInfo])
.try
{
IL_323F: br => Label280
IL_3244: Label290
IL_3244: ldloc.s 8
(System.Collections.Generic.IEnumerator`1[Verse.LocalTargetInfo])
IL_3246: callvirt abstract virtual Verse.LocalTargetInfo
System.Collections.Generic.IEnumerator`1<Verse.LocalTargetInfo>::get_Current()
IL_324B: stloc.s 90 (Verse.LocalTargetInfo)
IL_324D: newobj System.Void RimWorld.<>c__DisplayClass10_27::.ctor()
IL_3252: stloc.s 91 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_27)
IL_3254: ldloc.s 91 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_27)
IL_3256: ldloc.0
IL_3257: stfld RimWorld.<>c__DisplayClass10_0
RimWorld.<>c__DisplayClass10_27::CS$<>8__locals27
IL_325C: ldloc.s 91 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_27)
IL_325E: ldloca.s 90 (Verse.LocalTargetInfo)
IL_3260: call Verse.Thing Verse.LocalTargetInfo::get_Thing()
IL_3265: castclass Verse.Pawn
IL_326A: stfld Verse.Pawn RimWorld.<>c__DisplayClass10_27::targPawn
IL_326F: ldloc.s 91 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_27)
IL_3271: ldfld RimWorld.<>c__DisplayClass10_0
RimWorld.<>c__DisplayClass10_27::CS$<>8__locals27
IL_3276: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_327B: ldloc.s 91 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_27)
IL_327D: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_27::targPawn
IL_3282: call static Verse.LocalTargetInfo
Verse.LocalTargetInfo::op_Implicit(Verse.Thing t)
IL_3287: ldc.i4.1
IL_3288: ldc.i4.3
IL_3289: ldc.i4.1
IL_328A: ldc.i4.m1
IL_328B: ldnull
IL_328C: ldc.i4.1
IL_328D: call static System.Boolean
Verse.AI.ReservationUtility::CanReserveAndReach(Verse.Pawn p, Verse.LocalTargetInfo
target, Verse.AI.PathEndMode peMode, Verse.Danger maxDanger, System.Int32 maxPawns,
System.Int32 stackCount, Verse.ReservationLayerDef layer, System.Boolean
ignoreOtherReservations)
IL_3292: brfalse => Label281
IL_3297: ldloc.s 91 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_27)
IL_3299: ldfld RimWorld.<>c__DisplayClass10_0
RimWorld.<>c__DisplayClass10_27::CS$<>8__locals27
IL_329E: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_32A3: call static System.Boolean
RimWorld.QuestUtility::IsQuestLodger(Verse.Pawn p)
IL_32A8: brfalse => Label282
IL_32AD: ldstr "CannotAbsorbXenogerm"
IL_32B2: ldloc.s 91 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_27)
IL_32B4: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_27::targPawn
IL_32B9: ldstr "PAWN"
IL_32BE: call static Verse.NamedArgument
Verse.NamedArgumentUtility::Named(System.Object arg, System.String label)
IL_32C3: call static Verse.TaggedString
Verse.TranslatorFormattedStringExtensions::Translate(System.String key,
Verse.NamedArgument arg1)
IL_32C8: ldstr ": "
IL_32CD: call static Verse.TaggedString
Verse.TaggedString::op_Addition(Verse.TaggedString t1, System.String t2)
IL_32D2: ldstr "TemporaryFactionMember"
IL_32D7: ldloc.s 91 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_27)
IL_32D9: ldfld RimWorld.<>c__DisplayClass10_0
RimWorld.<>c__DisplayClass10_27::CS$<>8__locals27
IL_32DE: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_32E3: ldstr "PAWN"
IL_32E8: call static Verse.NamedArgument
Verse.NamedArgumentUtility::Named(System.Object arg, System.String label)
IL_32ED: call static Verse.TaggedString
Verse.TranslatorFormattedStringExtensions::Translate(System.String key,
Verse.NamedArgument arg1)
IL_32F2: call static Verse.TaggedString
Verse.TaggedString::op_Addition(Verse.TaggedString t1, Verse.TaggedString t2)
IL_32F7: call static System.String
Verse.TaggedString::op_Implicit(Verse.TaggedString taggedString)
IL_32FC: ldnull
IL_32FD: ldc.i4.4
IL_32FE: ldnull
IL_32FF: ldnull
IL_3300: ldc.r4 0
IL_3305: ldnull
IL_3306: ldnull
IL_3307: ldc.i4.1
IL_3308: ldc.i4.0
IL_3309: newobj System.Void Verse.FloatMenuOption::.ctor(System.String
label, System.Action action, Verse.MenuOptionPriority priority,
System.Action`1<UnityEngine.Rect> mouseoverGuiAction, Verse.Thing
revalidateClickTarget, System.Single extraPartWidth,
System.Func`2<UnityEngine.Rect, System.Boolean> extraPartOnGUI,
RimWorld.Planet.WorldObject revalidateWorldClickTarget, System.Boolean
playSelectionSound, System.Int32 orderInPriority)
IL_330E: stloc.s 92 (Verse.FloatMenuOption)
IL_3310: br => Label283
IL_3315: Label282
IL_3315: ldloc.s 91 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_27)
IL_3317: ldfld RimWorld.<>c__DisplayClass10_0
RimWorld.<>c__DisplayClass10_27::CS$<>8__locals27
IL_331C: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_3321: ldloc.s 91 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_27)
IL_3323: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_27::targPawn
IL_3328: call static System.Boolean
RimWorld.GeneUtility::SameXenotype(Verse.Pawn pawn1, Verse.Pawn pawn2)
IL_332D: brfalse => Label284
IL_3332: ldstr "CannotAbsorbXenogerm"
IL_3337: ldloc.s 91 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_27)
IL_3339: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_27::targPawn
IL_333E: ldstr "PAWN"
IL_3343: call static Verse.NamedArgument
Verse.NamedArgumentUtility::Named(System.Object arg, System.String label)
IL_3348: call static Verse.TaggedString
Verse.TranslatorFormattedStringExtensions::Translate(System.String key,
Verse.NamedArgument arg1)
IL_334D: ldstr ": "
IL_3352: call static Verse.TaggedString
Verse.TaggedString::op_Addition(Verse.TaggedString t1, System.String t2)
IL_3357: ldstr "SameXenotype"
IL_335C: ldloc.s 91 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_27)
IL_335E: ldfld RimWorld.<>c__DisplayClass10_0
RimWorld.<>c__DisplayClass10_27::CS$<>8__locals27
IL_3363: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_3368: ldstr "PAWN"
IL_336D: call static Verse.NamedArgument
Verse.NamedArgumentUtility::Named(System.Object arg, System.String label)
IL_3372: call static Verse.TaggedString
Verse.TranslatorFormattedStringExtensions::Translate(System.String key,
Verse.NamedArgument arg1)
IL_3377: call static Verse.TaggedString
Verse.TaggedString::op_Addition(Verse.TaggedString t1, Verse.TaggedString t2)
IL_337C: call static System.String
Verse.TaggedString::op_Implicit(Verse.TaggedString taggedString)
IL_3381: ldnull
IL_3382: ldc.i4.4
IL_3383: ldnull
IL_3384: ldnull
IL_3385: ldc.r4 0
IL_338A: ldnull
IL_338B: ldnull
IL_338C: ldc.i4.1
IL_338D: ldc.i4.0
IL_338E: newobj System.Void Verse.FloatMenuOption::.ctor(System.String
label, System.Action action, Verse.MenuOptionPriority priority,
System.Action`1<UnityEngine.Rect> mouseoverGuiAction, Verse.Thing
revalidateClickTarget, System.Single extraPartWidth,
System.Func`2<UnityEngine.Rect, System.Boolean> extraPartOnGUI,
RimWorld.Planet.WorldObject revalidateWorldClickTarget, System.Boolean
playSelectionSound, System.Int32 orderInPriority)
IL_3393: stloc.s 92 (Verse.FloatMenuOption)
IL_3395: br => Label285
IL_339A: Label284
IL_339A: ldloc.s 91 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_27)
IL_339C: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_27::targPawn
IL_33A1: ldfld Verse.Pawn_HealthTracker Verse.Pawn::health
IL_33A6: ldfld Verse.HediffSet Verse.Pawn_HealthTracker::hediffSet
IL_33AB: ldsfld Verse.HediffDef RimWorld.HediffDefOf::XenogermLossShock
IL_33B0: ldc.i4.0
IL_33B1: callvirt System.Boolean Verse.HediffSet::HasHediff(Verse.HediffDef
def, System.Boolean mustBeVisible)
IL_33B6: brfalse => Label286
IL_33BB: ldstr "CannotAbsorbXenogerm"
IL_33C0: ldloc.s 91 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_27)
IL_33C2: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_27::targPawn
IL_33C7: ldstr "PAWN"
IL_33CC: call static Verse.NamedArgument
Verse.NamedArgumentUtility::Named(System.Object arg, System.String label)
IL_33D1: call static Verse.TaggedString
Verse.TranslatorFormattedStringExtensions::Translate(System.String key,
Verse.NamedArgument arg1)
IL_33D6: ldstr ": "
IL_33DB: call static Verse.TaggedString
Verse.TaggedString::op_Addition(Verse.TaggedString t1, System.String t2)
IL_33E0: ldstr "XenogermLossShockPresent"
IL_33E5: ldloc.s 91 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_27)
IL_33E7: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_27::targPawn
IL_33EC: ldstr "PAWN"
IL_33F1: call static Verse.NamedArgument
Verse.NamedArgumentUtility::Named(System.Object arg, System.String label)
IL_33F6: call static Verse.TaggedString
Verse.TranslatorFormattedStringExtensions::Translate(System.String key,
Verse.NamedArgument arg1)
IL_33FB: call static Verse.TaggedString
Verse.TaggedString::op_Addition(Verse.TaggedString t1, Verse.TaggedString t2)
IL_3400: call static System.String
Verse.TaggedString::op_Implicit(Verse.TaggedString taggedString)
IL_3405: ldnull
IL_3406: ldc.i4.4
IL_3407: ldnull
IL_3408: ldnull
IL_3409: ldc.r4 0
IL_340E: ldnull
IL_340F: ldnull
IL_3410: ldc.i4.1
IL_3411: ldc.i4.0
IL_3412: newobj System.Void Verse.FloatMenuOption::.ctor(System.String
label, System.Action action, Verse.MenuOptionPriority priority,
System.Action`1<UnityEngine.Rect> mouseoverGuiAction, Verse.Thing
revalidateClickTarget, System.Single extraPartWidth,
System.Func`2<UnityEngine.Rect, System.Boolean> extraPartOnGUI,
RimWorld.Planet.WorldObject revalidateWorldClickTarget, System.Boolean
playSelectionSound, System.Int32 orderInPriority)
IL_3417: stloc.s 92 (Verse.FloatMenuOption)
IL_3419: br => Label287
IL_341E: Label286
IL_341E: ldloc.s 91 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_27)
IL_3420: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_27::targPawn
IL_3425: ldloc.s 91 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_27)
IL_3427: ldfld RimWorld.<>c__DisplayClass10_0
RimWorld.<>c__DisplayClass10_27::CS$<>8__locals27
IL_342C: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_3431: call static System.Boolean
RimWorld.CompAbilityEffect_ReimplantXenogerm::PawnIdeoCanAcceptReimplant(Verse.Pawn
implanter, Verse.Pawn implantee)
IL_3436: brtrue => Label288
IL_343B: ldstr "CannotAbsorbXenogerm"
IL_3440: ldloc.s 91 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_27)
IL_3442: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_27::targPawn
IL_3447: ldstr "PAWN"
IL_344C: call static Verse.NamedArgument
Verse.NamedArgumentUtility::Named(System.Object arg, System.String label)
IL_3451: call static Verse.TaggedString
Verse.TranslatorFormattedStringExtensions::Translate(System.String key,
Verse.NamedArgument arg1)
IL_3456: ldstr ": "
IL_345B: call static Verse.TaggedString
Verse.TaggedString::op_Addition(Verse.TaggedString t1, System.String t2)
IL_3460: ldstr "IdeoligionForbids"
IL_3465: call static Verse.TaggedString
Verse.Translator::Translate(System.String key)
IL_346A: call static Verse.TaggedString
Verse.TaggedString::op_Addition(Verse.TaggedString t1, Verse.TaggedString t2)
IL_346F: call static System.String
Verse.TaggedString::op_Implicit(Verse.TaggedString taggedString)
IL_3474: ldnull
IL_3475: ldc.i4.4
IL_3476: ldnull
IL_3477: ldnull
IL_3478: ldc.r4 0
IL_347D: ldnull
IL_347E: ldnull
IL_347F: ldc.i4.1
IL_3480: ldc.i4.0
IL_3481: newobj System.Void Verse.FloatMenuOption::.ctor(System.String
label, System.Action action, Verse.MenuOptionPriority priority,
System.Action`1<UnityEngine.Rect> mouseoverGuiAction, Verse.Thing
revalidateClickTarget, System.Single extraPartWidth,
System.Func`2<UnityEngine.Rect, System.Boolean> extraPartOnGUI,
RimWorld.Planet.WorldObject revalidateWorldClickTarget, System.Boolean
playSelectionSound, System.Int32 orderInPriority)
IL_3486: stloc.s 92 (Verse.FloatMenuOption)
IL_3488: br => Label289
IL_348D: Label288
IL_348D: ldstr "AbsorbXenogerm"
IL_3492: ldloc.s 91 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_27)
IL_3494: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_27::targPawn
IL_3499: ldstr "PAWN"
IL_349E: call static Verse.NamedArgument
Verse.NamedArgumentUtility::Named(System.Object arg, System.String label)
IL_34A3: call static Verse.TaggedString
Verse.TranslatorFormattedStringExtensions::Translate(System.String key,
Verse.NamedArgument arg1)
IL_34A8: call static System.String
Verse.TaggedString::op_Implicit(Verse.TaggedString taggedString)
IL_34AD: ldloc.s 91 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_27)
IL_34AF: ldftn System.Void
RimWorld.<>c__DisplayClass10_27::<AddHumanlikeOrders>b__34()
IL_34B5: newobj System.Void System.Action::.ctor(System.Object object,
System.IntPtr method)
IL_34BA: ldc.i4.4
IL_34BB: ldnull
IL_34BC: ldnull
IL_34BD: ldc.r4 0
IL_34C2: ldnull
IL_34C3: ldnull
IL_34C4: ldc.i4.1
IL_34C5: ldc.i4.0
IL_34C6: newobj System.Void Verse.FloatMenuOption::.ctor(System.String
label, System.Action action, Verse.MenuOptionPriority priority,
System.Action`1<UnityEngine.Rect> mouseoverGuiAction, Verse.Thing
revalidateClickTarget, System.Single extraPartWidth,
System.Func`2<UnityEngine.Rect, System.Boolean> extraPartOnGUI,
RimWorld.Planet.WorldObject revalidateWorldClickTarget, System.Boolean
playSelectionSound, System.Int32 orderInPriority)
IL_34CB: ldloc.s 91 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_27)
IL_34CD: ldfld RimWorld.<>c__DisplayClass10_0
RimWorld.<>c__DisplayClass10_27::CS$<>8__locals27
IL_34D2: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_34D7: ldloc.s 91 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_27)
IL_34D9: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_27::targPawn
IL_34DE: call static Verse.LocalTargetInfo
Verse.LocalTargetInfo::op_Implicit(Verse.Thing t)
IL_34E3: ldstr "ReservedBy"
IL_34E8: ldnull
IL_34E9: call static Verse.FloatMenuOption
RimWorld.FloatMenuUtility::DecoratePrioritizedTask(Verse.FloatMenuOption option,
Verse.Pawn pawn, Verse.LocalTargetInfo target, System.String reservedText,
Verse.ReservationLayerDef layer)
IL_34EE: stloc.s 92 (Verse.FloatMenuOption)
IL_34F0: Label283
IL_34F0: Label285
IL_34F0: Label287
IL_34F0: Label289
IL_34F0: ldarg.2
IL_34F1: ldloc.s 92 (Verse.FloatMenuOption)
IL_34F3: callvirt virtual System.Void
System.Collections.Generic.List`1<Verse.FloatMenuOption>::Add(Verse.FloatMenuOption
item)
IL_34F8: Label280
IL_34F8: Label281
IL_34F8: ldloc.s 8
(System.Collections.Generic.IEnumerator`1[Verse.LocalTargetInfo])
IL_34FA: callvirt abstract virtual System.Boolean
System.Collections.IEnumerator::MoveNext()
IL_34FF: brtrue => Label290
IL_3504: leave => Label291
IL_3509: leave => (autogenerated)
} // end try
.finally
{
IL_350E: ldloc.s 8
(System.Collections.Generic.IEnumerator`1[Verse.LocalTargetInfo])
IL_3510: brfalse => Label292
IL_3515: ldloc.s 8
(System.Collections.Generic.IEnumerator`1[Verse.LocalTargetInfo])
IL_3517: callvirt abstract virtual System.Void
System.IDisposable::Dispose()
IL_351C: Label292
IL_351C: endfinally
IL_351D: leave => (autogenerated)
} // end handler
IL_351E: Label278
IL_351E: Label279
IL_351E: Label291
IL_351E: call static System.Boolean Verse.ModsConfig::get_BiotechActive()
IL_3523: brfalse => Label293
IL_3528: ldloc.0
IL_3529: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_352E: ldloca.s 33
(System.Nullable`1[RimWorld.ChildcareUtility+BreastfeedFailReason])
IL_3530: call static System.Boolean
RimWorld.ChildcareUtility::CanBreastfeed(Verse.Pawn mom, System.Nullable`1& reason)
IL_3535: brfalse => Label294
IL_353A: ldloc.0
IL_353B: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_3540: callvirt System.Boolean Verse.Pawn::get_Downed()
IL_3545: brtrue => Label295
IL_354A: ldloc.0
IL_354B: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_3550: callvirt System.Boolean Verse.Pawn::get_Drafted()
IL_3555: brtrue => Label296
IL_355A: ldarg.0
IL_355B: ldloc.0
IL_355C: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_3561: call static RimWorld.TargetingParameters
RimWorld.TargetingParameters::ForBabyCare(Verse.Pawn _)
IL_3566: ldc.i4.1
IL_3567: ldnull
IL_3568: call static
System.Collections.Generic.IEnumerable`1<Verse.LocalTargetInfo>
Verse.GenUI::TargetsAt(UnityEngine.Vector3 clickPos, RimWorld.TargetingParameters
clickParams, System.Boolean thingsOnly, RimWorld.ITargetingSource source)
IL_356D: callvirt abstract virtual
System.Collections.Generic.IEnumerator`1<Verse.LocalTargetInfo>
System.Collections.Generic.IEnumerable`1<Verse.LocalTargetInfo>::GetEnumerator()
IL_3572: stloc.s 8
(System.Collections.Generic.IEnumerator`1[Verse.LocalTargetInfo])
.try
{
IL_3574: br => Label297
IL_3579: Label302
IL_3579: ldloc.s 8
(System.Collections.Generic.IEnumerator`1[Verse.LocalTargetInfo])
IL_357B: callvirt abstract virtual Verse.LocalTargetInfo
System.Collections.Generic.IEnumerator`1<Verse.LocalTargetInfo>::get_Current()
IL_3580: stloc.s 93 (Verse.LocalTargetInfo)
IL_3582: newobj System.Void RimWorld.<>c__DisplayClass10_28::.ctor()
IL_3587: stloc.s 94 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_28)
IL_3589: ldloc.s 94 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_28)
IL_358B: ldloc.0
IL_358C: stfld RimWorld.<>c__DisplayClass10_0
RimWorld.<>c__DisplayClass10_28::CS$<>8__locals28
IL_3591: ldloc.s 94 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_28)
IL_3593: ldloca.s 93 (Verse.LocalTargetInfo)
IL_3595: call Verse.Thing Verse.LocalTargetInfo::get_Thing()
IL_359A: castclass Verse.Pawn
IL_359F: stfld Verse.Pawn RimWorld.<>c__DisplayClass10_28::baby
IL_35A4: ldloc.s 94 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_28)
IL_35A6: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_28::baby
IL_35AB: ldloca.s 33
(System.Nullable`1[RimWorld.ChildcareUtility+BreastfeedFailReason])
IL_35AD: call static System.Boolean
RimWorld.ChildcareUtility::CanSuckle(Verse.Pawn baby, System.Nullable`1& reason)
IL_35B2: brfalse => Label298
IL_35B7: ldloc.s 94 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_28)
IL_35B9: ldfld RimWorld.<>c__DisplayClass10_0
RimWorld.<>c__DisplayClass10_28::CS$<>8__locals28
IL_35BE: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_35C3: ldloc.s 94 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_28)
IL_35C5: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_28::baby
IL_35CA: call static System.Boolean
RimWorld.ChildcareUtility::HasBreastfeedCompatibleFactions(Verse.Pawn mom,
Verse.Pawn baby)
IL_35CF: brfalse => Label299
IL_35D4: ldloc.s 94 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_28)
IL_35D6: ldfld RimWorld.<>c__DisplayClass10_0
RimWorld.<>c__DisplayClass10_28::CS$<>8__locals28
IL_35DB: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_35E0: ldloc.s 94 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_28)
IL_35E2: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_28::baby
IL_35E7: ldc.i4.1
IL_35E8: ldloca.s 96
(System.Nullable`1[RimWorld.ChildcareUtility+BreastfeedFailReason])
IL_35EA: call static System.Boolean
RimWorld.ChildcareUtility::CanMomAutoBreastfeedBabyNow(Verse.Pawn mother,
Verse.Pawn baby, System.Boolean forced, System.Nullable`1& reason)
IL_35EF: brtrue => Label300
IL_35F4: ldstr "BabyCareBreastfeedUnable"
IL_35F9: ldloc.s 94 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_28)
IL_35FB: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_28::baby
IL_3600: ldstr "BABY"
IL_3605: call static Verse.NamedArgument
Verse.NamedArgumentUtility::Named(System.Object arg, System.String label)
IL_360A: call static Verse.TaggedString
Verse.TranslatorFormattedStringExtensions::Translate(System.String key,
Verse.NamedArgument arg1)
IL_360F: ldstr ": "
IL_3614: call static Verse.TaggedString
Verse.TaggedString::op_Addition(Verse.TaggedString t1, System.String t2)
IL_3619: ldloca.s 96
(System.Nullable`1[RimWorld.ChildcareUtility+BreastfeedFailReason])
IL_361B: call RimWorld.BreastfeedFailReason
System.Nullable`1<RimWorld.BreastfeedFailReason>::get_Value()
IL_3620: ldloc.s 94 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_28)
IL_3622: ldfld RimWorld.<>c__DisplayClass10_0
RimWorld.<>c__DisplayClass10_28::CS$<>8__locals28
IL_3627: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_362C: ldloc.s 94 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_28)
IL_362E: ldfld RimWorld.<>c__DisplayClass10_0
RimWorld.<>c__DisplayClass10_28::CS$<>8__locals28
IL_3633: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_3638: ldloc.s 94 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_28)
IL_363A: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_28::baby
IL_363F: call static Verse.TaggedString
RimWorld.ChildcareUtility::Translate(RimWorld.BreastfeedFailReason reason,
Verse.Pawn hauler, Verse.Pawn mom, Verse.Pawn baby)
IL_3644: stloc.s 11 (Verse.TaggedString)
IL_3646: ldloca.s 11 (Verse.TaggedString)
IL_3648: call Verse.TaggedString Verse.TaggedString::CapitalizeFirst()
IL_364D: call static Verse.TaggedString
Verse.TaggedString::op_Addition(Verse.TaggedString t1, Verse.TaggedString t2)
IL_3652: call static System.String
Verse.TaggedString::op_Implicit(Verse.TaggedString taggedString)
IL_3657: ldnull
IL_3658: ldc.i4.4
IL_3659: ldnull
IL_365A: ldnull
IL_365B: ldc.r4 0
IL_3660: ldnull
IL_3661: ldnull
IL_3662: ldc.i4.1
IL_3663: ldc.i4.0
IL_3664: newobj System.Void Verse.FloatMenuOption::.ctor(System.String
label, System.Action action, Verse.MenuOptionPriority priority,
System.Action`1<UnityEngine.Rect> mouseoverGuiAction, Verse.Thing
revalidateClickTarget, System.Single extraPartWidth,
System.Func`2<UnityEngine.Rect, System.Boolean> extraPartOnGUI,
RimWorld.Planet.WorldObject revalidateWorldClickTarget, System.Boolean
playSelectionSound, System.Int32 orderInPriority)
IL_3669: stloc.s 95 (Verse.FloatMenuOption)
IL_366B: br => Label301
IL_3670: Label300
IL_3670: ldstr "BabyCareBreastfeed"
IL_3675: ldloc.s 94 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_28)
IL_3677: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_28::baby
IL_367C: ldstr "BABY"
IL_3681: call static Verse.NamedArgument
Verse.NamedArgumentUtility::Named(System.Object arg, System.String label)
IL_3686: call static Verse.TaggedString
Verse.TranslatorFormattedStringExtensions::Translate(System.String key,
Verse.NamedArgument arg1)
IL_368B: call static System.String
Verse.TaggedString::op_Implicit(Verse.TaggedString taggedString)
IL_3690: ldloc.s 94 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_28)
IL_3692: ldftn System.Void
RimWorld.<>c__DisplayClass10_28::<AddHumanlikeOrders>b__36()
IL_3698: newobj System.Void System.Action::.ctor(System.Object object,
System.IntPtr method)
IL_369D: ldc.i4.4
IL_369E: ldnull
IL_369F: ldnull
IL_36A0: ldc.r4 0
IL_36A5: ldnull
IL_36A6: ldnull
IL_36A7: ldc.i4.1
IL_36A8: ldc.i4.0
IL_36A9: newobj System.Void Verse.FloatMenuOption::.ctor(System.String
label, System.Action action, Verse.MenuOptionPriority priority,
System.Action`1<UnityEngine.Rect> mouseoverGuiAction, Verse.Thing
revalidateClickTarget, System.Single extraPartWidth,
System.Func`2<UnityEngine.Rect, System.Boolean> extraPartOnGUI,
RimWorld.Planet.WorldObject revalidateWorldClickTarget, System.Boolean
playSelectionSound, System.Int32 orderInPriority)
IL_36AE: ldloc.s 94 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_28)
IL_36B0: ldfld RimWorld.<>c__DisplayClass10_0
RimWorld.<>c__DisplayClass10_28::CS$<>8__locals28
IL_36B5: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_36BA: ldloc.s 94 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_28)
IL_36BC: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_28::baby
IL_36C1: call static Verse.LocalTargetInfo
Verse.LocalTargetInfo::op_Implicit(Verse.Thing t)
IL_36C6: ldstr "ReservedBy"
IL_36CB: ldnull
IL_36CC: call static Verse.FloatMenuOption
RimWorld.FloatMenuUtility::DecoratePrioritizedTask(Verse.FloatMenuOption option,
Verse.Pawn pawn, Verse.LocalTargetInfo target, System.String reservedText,
Verse.ReservationLayerDef layer)
IL_36D1: stloc.s 95 (Verse.FloatMenuOption)
IL_36D3: Label301
IL_36D3: ldarg.2
IL_36D4: ldloc.s 95 (Verse.FloatMenuOption)
IL_36D6: callvirt virtual System.Void
System.Collections.Generic.List`1<Verse.FloatMenuOption>::Add(Verse.FloatMenuOption
item)
IL_36DB: Label297
IL_36DB: Label298
IL_36DB: Label299
IL_36DB: ldloc.s 8
(System.Collections.Generic.IEnumerator`1[Verse.LocalTargetInfo])
IL_36DD: callvirt abstract virtual System.Boolean
System.Collections.IEnumerator::MoveNext()
IL_36E2: brtrue => Label302
IL_36E7: leave => Label303
IL_36EC: leave => (autogenerated)
} // end try
.finally
{
IL_36F1: ldloc.s 8
(System.Collections.Generic.IEnumerator`1[Verse.LocalTargetInfo])
IL_36F3: brfalse => Label304
IL_36F8: ldloc.s 8
(System.Collections.Generic.IEnumerator`1[Verse.LocalTargetInfo])
IL_36FA: callvirt abstract virtual System.Void
System.IDisposable::Dispose()
IL_36FF: Label304
IL_36FF: endfinally
IL_3700: leave => (autogenerated)
} // end handler
IL_3701: Label293
IL_3701: Label294
IL_3701: Label295
IL_3701: Label296
IL_3701: Label303
IL_3701: ldloc.0
IL_3702: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_3707: callvirt System.Boolean Verse.Pawn::get_Drafted()
IL_370C: brtrue => Label305
IL_3711: call static System.Boolean Verse.ModsConfig::get_BiotechActive()
IL_3716: brfalse => Label306
IL_371B: ldarg.0
IL_371C: ldloc.0
IL_371D: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_3722: call static RimWorld.TargetingParameters
RimWorld.TargetingParameters::ForRomance(Verse.Pawn _)
IL_3727: ldc.i4.1
IL_3728: ldnull
IL_3729: call static
System.Collections.Generic.IEnumerable`1<Verse.LocalTargetInfo>
Verse.GenUI::TargetsAt(UnityEngine.Vector3 clickPos, RimWorld.TargetingParameters
clickParams, System.Boolean thingsOnly, RimWorld.ITargetingSource source)
IL_372E: callvirt abstract virtual
System.Collections.Generic.IEnumerator`1<Verse.LocalTargetInfo>
System.Collections.Generic.IEnumerable`1<Verse.LocalTargetInfo>::GetEnumerator()
IL_3733: stloc.s 8
(System.Collections.Generic.IEnumerator`1[Verse.LocalTargetInfo])
.try
{
IL_3735: br => Label307
IL_373A: Label313
IL_373A: ldloc.s 8
(System.Collections.Generic.IEnumerator`1[Verse.LocalTargetInfo])
IL_373C: callvirt abstract virtual Verse.LocalTargetInfo
System.Collections.Generic.IEnumerator`1<Verse.LocalTargetInfo>::get_Current()
IL_3741: stloc.s 97 (Verse.LocalTargetInfo)
IL_3743: ldloca.s 97 (Verse.LocalTargetInfo)
IL_3745: call Verse.Thing Verse.LocalTargetInfo::get_Thing()
IL_374A: castclass Verse.Pawn
IL_374F: stloc.s 98 (Verse.Pawn)
IL_3751: ldloc.s 98 (Verse.Pawn)
IL_3753: callvirt System.Boolean Verse.Pawn::get_Drafted()
IL_3758: brtrue => Label308
IL_375D: ldloc.s 98 (Verse.Pawn)
IL_375F: ldloca.s 33
(System.Nullable`1[RimWorld.ChildcareUtility+BreastfeedFailReason])
IL_3761: call static System.Boolean
RimWorld.ChildcareUtility::CanSuckle(Verse.Pawn baby, System.Nullable`1& reason)
IL_3766: brtrue => Label309
IL_376B: ldloc.0
IL_376C: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_3771: ldloc.s 98 (Verse.Pawn)
IL_3773: ldloca.s 100 (Verse.FloatMenuOption)
IL_3775: ldloca.s 101 (System.Single)
IL_3777: call static System.Boolean
RimWorld.RelationsUtility::RomanceOption(Verse.Pawn initiator, Verse.Pawn
romanceTarget, Verse.FloatMenuOption& option, System.Single& chance)
IL_377C: stloc.s 99 (System.Boolean)
IL_377E: ldloc.s 100 (Verse.FloatMenuOption)
IL_3780: brfalse => Label310
IL_3785: ldloc.s 100 (Verse.FloatMenuOption)
IL_3787: ldloc.s 99 (System.Boolean)
IL_3789: brtrue => Label311
IL_378E: ldstr "CannotRomance"
IL_3793: br => Label312
IL_3798: Label311
IL_3798: ldstr "CanRomance"
IL_379D: Label312
IL_379D: ldloc.s 100 (Verse.FloatMenuOption)
IL_379F: callvirt System.String Verse.FloatMenuOption::get_Label()
IL_37A4: call static Verse.NamedArgument
Verse.NamedArgument::op_Implicit(System.String value)
IL_37A9: call static Verse.TaggedString
Verse.TranslatorFormattedStringExtensions::Translate(System.String key,
Verse.NamedArgument arg1)
IL_37AE: call static System.String
Verse.TaggedString::op_Implicit(Verse.TaggedString taggedString)
IL_37B3: callvirt System.Void
Verse.FloatMenuOption::set_Label(System.String value)
IL_37B8: ldarg.2
IL_37B9: ldloc.s 100 (Verse.FloatMenuOption)
IL_37BB: callvirt virtual System.Void
System.Collections.Generic.List`1<Verse.FloatMenuOption>::Add(Verse.FloatMenuOption
item)
IL_37C0: Label307
IL_37C0: Label308
IL_37C0: Label309
IL_37C0: Label310
IL_37C0: ldloc.s 8
(System.Collections.Generic.IEnumerator`1[Verse.LocalTargetInfo])
IL_37C2: callvirt abstract virtual System.Boolean
System.Collections.IEnumerator::MoveNext()
IL_37C7: brtrue => Label313
IL_37CC: leave => Label314
IL_37D1: leave => (autogenerated)
} // end try
.finally
{
IL_37D6: ldloc.s 8
(System.Collections.Generic.IEnumerator`1[Verse.LocalTargetInfo])
IL_37D8: brfalse => Label315
IL_37DD: ldloc.s 8
(System.Collections.Generic.IEnumerator`1[Verse.LocalTargetInfo])
IL_37DF: callvirt abstract virtual System.Void
System.IDisposable::Dispose()
IL_37E4: Label315
IL_37E4: endfinally
IL_37E5: leave => (autogenerated)
} // end handler
IL_37E6: Label305
IL_37E6: Label306
IL_37E6: Label314
IL_37E6: ldarg.0
IL_37E7: ldloc.0
IL_37E8: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_37ED: call static RimWorld.TargetingParameters
RimWorld.TargetingParameters::ForStrip(Verse.Pawn p)
IL_37F2: ldc.i4.1
IL_37F3: ldnull
IL_37F4: call static
System.Collections.Generic.IEnumerable`1<Verse.LocalTargetInfo>
Verse.GenUI::TargetsAt(UnityEngine.Vector3 clickPos, RimWorld.TargetingParameters
clickParams, System.Boolean thingsOnly, RimWorld.ITargetingSource source)
IL_37F9: callvirt abstract virtual
System.Collections.Generic.IEnumerator`1<Verse.LocalTargetInfo>
System.Collections.Generic.IEnumerable`1<Verse.LocalTargetInfo>::GetEnumerator()
IL_37FE: stloc.s 8
(System.Collections.Generic.IEnumerator`1[Verse.LocalTargetInfo])
.try
{
IL_3800: br => Label316
IL_3805: Label322
IL_3805: ldloc.s 8
(System.Collections.Generic.IEnumerator`1[Verse.LocalTargetInfo])
IL_3807: callvirt abstract virtual Verse.LocalTargetInfo
System.Collections.Generic.IEnumerator`1<Verse.LocalTargetInfo>::get_Current()
IL_380C: stloc.s 102 (Verse.LocalTargetInfo)
IL_380E: newobj System.Void RimWorld.<>c__DisplayClass10_29::.ctor()
IL_3813: stloc.s 103 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_29)
IL_3815: ldloc.s 103 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_29)
IL_3817: ldloc.0
IL_3818: stfld RimWorld.<>c__DisplayClass10_0
RimWorld.<>c__DisplayClass10_29::CS$<>8__locals29
IL_381D: ldloc.s 103 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_29)
IL_381F: ldloc.s 102 (Verse.LocalTargetInfo)
IL_3821: stfld Verse.LocalTargetInfo
RimWorld.<>c__DisplayClass10_29::stripTarg
IL_3826: ldloc.s 103 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_29)
IL_3828: ldfld RimWorld.<>c__DisplayClass10_0
RimWorld.<>c__DisplayClass10_29::CS$<>8__locals29
IL_382D: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_3832: ldloc.s 103 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_29)
IL_3834: ldfld Verse.LocalTargetInfo
RimWorld.<>c__DisplayClass10_29::stripTarg
IL_3839: ldc.i4.3
IL_383A: ldc.i4.3
IL_383B: ldc.i4.0
IL_383C: ldc.i4.0
IL_383D: ldc.i4.0
IL_383E: call static System.Boolean
Verse.ReachabilityUtility::CanReach(Verse.Pawn pawn, Verse.LocalTargetInfo dest,
Verse.AI.PathEndMode peMode, Verse.Danger maxDanger, System.Boolean canBashDoors,
System.Boolean canBashFences, Verse.TraverseMode mode)
IL_3843: brtrue => Label317
IL_3848: ldstr "CannotStrip"
IL_384D: ldloc.s 103 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_29)
IL_384F: ldflda Verse.LocalTargetInfo
RimWorld.<>c__DisplayClass10_29::stripTarg
IL_3854: call Verse.Thing Verse.LocalTargetInfo::get_Thing()
IL_3859: callvirt abstract virtual System.String
Verse.Entity::get_LabelCap()
IL_385E: call static Verse.NamedArgument
Verse.NamedArgument::op_Implicit(System.String value)
IL_3863: ldloc.s 103 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_29)
IL_3865: ldflda Verse.LocalTargetInfo
RimWorld.<>c__DisplayClass10_29::stripTarg
IL_386A: call Verse.Thing Verse.LocalTargetInfo::get_Thing()
IL_386F: call static Verse.NamedArgument
Verse.NamedArgument::op_Implicit(Verse.Thing value)
IL_3874: call static Verse.TaggedString
Verse.TranslatorFormattedStringExtensions::Translate(System.String key,
Verse.NamedArgument arg1, Verse.NamedArgument arg2)
IL_3879: ldstr ": "
IL_387E: call static Verse.TaggedString
Verse.TaggedString::op_Addition(Verse.TaggedString t1, System.String t2)
IL_3883: ldstr "NoPath"
IL_3888: call static Verse.TaggedString
Verse.Translator::Translate(System.String key)
IL_388D: stloc.s 11 (Verse.TaggedString)
IL_388F: ldloca.s 11 (Verse.TaggedString)
IL_3891: call Verse.TaggedString Verse.TaggedString::CapitalizeFirst()
IL_3896: call static Verse.TaggedString
Verse.TaggedString::op_Addition(Verse.TaggedString t1, Verse.TaggedString t2)
IL_389B: call static System.String
Verse.TaggedString::op_Implicit(Verse.TaggedString taggedString)
IL_38A0: ldnull
IL_38A1: ldc.i4.4
IL_38A2: ldnull
IL_38A3: ldnull
IL_38A4: ldc.r4 0
IL_38A9: ldnull
IL_38AA: ldnull
IL_38AB: ldc.i4.1
IL_38AC: ldc.i4.0
IL_38AD: newobj System.Void Verse.FloatMenuOption::.ctor(System.String
label, System.Action action, Verse.MenuOptionPriority priority,
System.Action`1<UnityEngine.Rect> mouseoverGuiAction, Verse.Thing
revalidateClickTarget, System.Single extraPartWidth,
System.Func`2<UnityEngine.Rect, System.Boolean> extraPartOnGUI,
RimWorld.Planet.WorldObject revalidateWorldClickTarget, System.Boolean
playSelectionSound, System.Int32 orderInPriority)
IL_38B2: stloc.s 104 (Verse.FloatMenuOption)
IL_38B4: br => Label318
IL_38B9: Label317
IL_38B9: ldloc.s 103 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_29)
IL_38BB: ldflda Verse.LocalTargetInfo
RimWorld.<>c__DisplayClass10_29::stripTarg
IL_38C0: call Verse.Pawn Verse.LocalTargetInfo::get_Pawn()
IL_38C5: brfalse => Label319
IL_38CA: ldloc.s 103 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_29)
IL_38CC: ldflda Verse.LocalTargetInfo
RimWorld.<>c__DisplayClass10_29::stripTarg
IL_38D1: call Verse.Pawn Verse.LocalTargetInfo::get_Pawn()
IL_38D6: ldnull
IL_38D7: call static System.Boolean
RimWorld.QuestUtility::HasExtraHomeFaction(Verse.Pawn p, RimWorld.Quest forQuest)
IL_38DC: brfalse => Label320
IL_38E1: ldstr "CannotStrip"
IL_38E6: ldloc.s 103 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_29)
IL_38E8: ldflda Verse.LocalTargetInfo
RimWorld.<>c__DisplayClass10_29::stripTarg
IL_38ED: call Verse.Thing Verse.LocalTargetInfo::get_Thing()
IL_38F2: callvirt abstract virtual System.String
Verse.Entity::get_LabelCap()
IL_38F7: call static Verse.NamedArgument
Verse.NamedArgument::op_Implicit(System.String value)
IL_38FC: ldloc.s 103 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_29)
IL_38FE: ldflda Verse.LocalTargetInfo
RimWorld.<>c__DisplayClass10_29::stripTarg
IL_3903: call Verse.Thing Verse.LocalTargetInfo::get_Thing()
IL_3908: call static Verse.NamedArgument
Verse.NamedArgument::op_Implicit(Verse.Thing value)
IL_390D: call static Verse.TaggedString
Verse.TranslatorFormattedStringExtensions::Translate(System.String key,
Verse.NamedArgument arg1, Verse.NamedArgument arg2)
IL_3912: ldstr ": "
IL_3917: call static Verse.TaggedString
Verse.TaggedString::op_Addition(Verse.TaggedString t1, System.String t2)
IL_391C: ldstr "QuestRelated"
IL_3921: call static Verse.TaggedString
Verse.Translator::Translate(System.String key)
IL_3926: stloc.s 11 (Verse.TaggedString)
IL_3928: ldloca.s 11 (Verse.TaggedString)
IL_392A: call Verse.TaggedString Verse.TaggedString::CapitalizeFirst()
IL_392F: call static Verse.TaggedString
Verse.TaggedString::op_Addition(Verse.TaggedString t1, Verse.TaggedString t2)
IL_3934: call static System.String
Verse.TaggedString::op_Implicit(Verse.TaggedString taggedString)
IL_3939: ldnull
IL_393A: ldc.i4.4
IL_393B: ldnull
IL_393C: ldnull
IL_393D: ldc.r4 0
IL_3942: ldnull
IL_3943: ldnull
IL_3944: ldc.i4.1
IL_3945: ldc.i4.0
IL_3946: newobj System.Void Verse.FloatMenuOption::.ctor(System.String
label, System.Action action, Verse.MenuOptionPriority priority,
System.Action`1<UnityEngine.Rect> mouseoverGuiAction, Verse.Thing
revalidateClickTarget, System.Single extraPartWidth,
System.Func`2<UnityEngine.Rect, System.Boolean> extraPartOnGUI,
RimWorld.Planet.WorldObject revalidateWorldClickTarget, System.Boolean
playSelectionSound, System.Int32 orderInPriority)
IL_394B: stloc.s 104 (Verse.FloatMenuOption)
IL_394D: br => Label321
IL_3952: Label319
IL_3952: Label320
IL_3952: ldstr "Strip"
IL_3957: ldloc.s 103 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_29)
IL_3959: ldflda Verse.LocalTargetInfo
RimWorld.<>c__DisplayClass10_29::stripTarg
IL_395E: call Verse.Thing Verse.LocalTargetInfo::get_Thing()
IL_3963: callvirt abstract virtual System.String
Verse.Entity::get_LabelCap()
IL_3968: call static Verse.NamedArgument
Verse.NamedArgument::op_Implicit(System.String value)
IL_396D: ldloc.s 103 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_29)
IL_396F: ldflda Verse.LocalTargetInfo
RimWorld.<>c__DisplayClass10_29::stripTarg
IL_3974: call Verse.Thing Verse.LocalTargetInfo::get_Thing()
IL_3979: call static Verse.NamedArgument
Verse.NamedArgument::op_Implicit(Verse.Thing value)
IL_397E: call static Verse.TaggedString
Verse.TranslatorFormattedStringExtensions::Translate(System.String key,
Verse.NamedArgument arg1, Verse.NamedArgument arg2)
IL_3983: call static System.String
Verse.TaggedString::op_Implicit(Verse.TaggedString taggedString)
IL_3988: ldloc.s 103 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_29)
IL_398A: ldftn System.Void
RimWorld.<>c__DisplayClass10_29::<AddHumanlikeOrders>b__37()
IL_3990: newobj System.Void System.Action::.ctor(System.Object object,
System.IntPtr method)
IL_3995: ldc.i4.4
IL_3996: ldnull
IL_3997: ldnull
IL_3998: ldc.r4 0
IL_399D: ldnull
IL_399E: ldnull
IL_399F: ldc.i4.1
IL_39A0: ldc.i4.0
IL_39A1: newobj System.Void Verse.FloatMenuOption::.ctor(System.String
label, System.Action action, Verse.MenuOptionPriority priority,
System.Action`1<UnityEngine.Rect> mouseoverGuiAction, Verse.Thing
revalidateClickTarget, System.Single extraPartWidth,
System.Func`2<UnityEngine.Rect, System.Boolean> extraPartOnGUI,
RimWorld.Planet.WorldObject revalidateWorldClickTarget, System.Boolean
playSelectionSound, System.Int32 orderInPriority)
IL_39A6: ldloc.s 103 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_29)
IL_39A8: ldfld RimWorld.<>c__DisplayClass10_0
RimWorld.<>c__DisplayClass10_29::CS$<>8__locals29
IL_39AD: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_39B2: ldloc.s 103 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_29)
IL_39B4: ldfld Verse.LocalTargetInfo
RimWorld.<>c__DisplayClass10_29::stripTarg
IL_39B9: ldstr "ReservedBy"
IL_39BE: ldnull
IL_39BF: call static Verse.FloatMenuOption
RimWorld.FloatMenuUtility::DecoratePrioritizedTask(Verse.FloatMenuOption option,
Verse.Pawn pawn, Verse.LocalTargetInfo target, System.String reservedText,
Verse.ReservationLayerDef layer)
IL_39C4: stloc.s 104 (Verse.FloatMenuOption)
IL_39C6: Label318
IL_39C6: Label321
IL_39C6: ldarg.2
IL_39C7: ldloc.s 104 (Verse.FloatMenuOption)
IL_39C9: callvirt virtual System.Void
System.Collections.Generic.List`1<Verse.FloatMenuOption>::Add(Verse.FloatMenuOption
item)
IL_39CE: Label316
IL_39CE: ldloc.s 8
(System.Collections.Generic.IEnumerator`1[Verse.LocalTargetInfo])
IL_39D0: callvirt abstract virtual System.Boolean
System.Collections.IEnumerator::MoveNext()
IL_39D5: brtrue => Label322
IL_39DA: leave => Label323
IL_39DF: leave => (autogenerated)
} // end try
.finally
{
IL_39E4: ldloc.s 8
(System.Collections.Generic.IEnumerator`1[Verse.LocalTargetInfo])
IL_39E6: brfalse => Label324
IL_39EB: ldloc.s 8
(System.Collections.Generic.IEnumerator`1[Verse.LocalTargetInfo])
IL_39ED: callvirt abstract virtual System.Void
System.IDisposable::Dispose()
IL_39F2: Label324
IL_39F2: endfinally
IL_39F3: leave => (autogenerated)
} // end handler
IL_39F4: Label323
IL_39F4: ldloc.0
IL_39F5: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_39FA: ldfld Verse.Pawn_EquipmentTracker Verse.Pawn::equipment
IL_39FF: brfalse => Label325
IL_3A04: ldloc.1
IL_3A05: ldloc.0
IL_3A06: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_3A0B: callvirt virtual Verse.Map Verse.Thing::get_Map()
IL_3A10: call static System.Collections.Generic.List`1<Verse.Thing>
Verse.GridsUtility::GetThingList(Verse.IntVec3 c, Verse.Map map)
IL_3A15: stloc.s 105 (System.Collections.Generic.List`1[Verse.Thing])
IL_3A17: ldc.i4.0
IL_3A18: stloc.s 106 (System.Int32)
IL_3A1A: br => Label326
IL_3A1F: Label350
IL_3A1F: newobj System.Void RimWorld.<>c__DisplayClass10_30::.ctor()
IL_3A24: stloc.s 107 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_30)
IL_3A26: ldloc.s 107 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_30)
IL_3A28: ldloc.0
IL_3A29: stfld RimWorld.<>c__DisplayClass10_0
RimWorld.<>c__DisplayClass10_30::CS$<>8__locals30
IL_3A2E: ldloc.s 105 (System.Collections.Generic.List`1[Verse.Thing])
IL_3A30: ldloc.s 106 (System.Int32)
IL_3A32: callvirt virtual Verse.Thing
System.Collections.Generic.List`1<Verse.Thing>::get_Item(System.Int32 index)
IL_3A37: call static Verse.CompEquippable
Verse.ThingCompUtility::TryGetComp(Verse.Thing thing)
IL_3A3C: brfalse => Label327
IL_3A41: ldloc.s 107 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_30)
IL_3A43: ldloc.s 105 (System.Collections.Generic.List`1[Verse.Thing])
IL_3A45: ldloc.s 106 (System.Int32)
IL_3A47: callvirt virtual Verse.Thing
System.Collections.Generic.List`1<Verse.Thing>::get_Item(System.Int32 index)
IL_3A4C: castclass Verse.ThingWithComps
IL_3A51: stfld Verse.ThingWithComps RimWorld.<>c__DisplayClass10_30::equipment
IL_3A56: ldloc.s 107 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_30)
IL_3A58: ldfld Verse.ThingWithComps RimWorld.<>c__DisplayClass10_30::equipment
IL_3A5D: callvirt virtual System.String Verse.Entity::get_LabelShort()
IL_3A62: stloc.s 110 (System.String)
IL_3A64: ldloc.s 107 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_30)
IL_3A66: ldfld Verse.ThingWithComps RimWorld.<>c__DisplayClass10_30::equipment
IL_3A6B: ldfld Verse.ThingDef Verse.Thing::def
IL_3A70: callvirt System.Boolean Verse.ThingDef::get_IsWeapon()
IL_3A75: brfalse => Label328
IL_3A7A: ldloc.s 107 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_30)
IL_3A7C: ldfld RimWorld.<>c__DisplayClass10_0
RimWorld.<>c__DisplayClass10_30::CS$<>8__locals30
IL_3A81: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_3A86: ldc.i4.8
IL_3A87: callvirt System.Boolean Verse.Pawn::WorkTagIsDisabled(Verse.WorkTags w)
IL_3A8C: brfalse => Label329
IL_3A91: ldstr "CannotEquip"
IL_3A96: ldloc.s 110 (System.String)
IL_3A98: call static Verse.NamedArgument
Verse.NamedArgument::op_Implicit(System.String value)
IL_3A9D: call static Verse.TaggedString
Verse.TranslatorFormattedStringExtensions::Translate(System.String key,
Verse.NamedArgument arg1)
IL_3AA2: ldstr ": "
IL_3AA7: call static Verse.TaggedString
Verse.TaggedString::op_Addition(Verse.TaggedString t1, System.String t2)
IL_3AAC: ldstr "IsIncapableOfViolenceLower"
IL_3AB1: ldloc.s 107 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_30)
IL_3AB3: ldfld RimWorld.<>c__DisplayClass10_0
RimWorld.<>c__DisplayClass10_30::CS$<>8__locals30
IL_3AB8: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_3ABD: callvirt virtual System.String Verse.Entity::get_LabelShort()
IL_3AC2: call static Verse.NamedArgument
Verse.NamedArgument::op_Implicit(System.String value)
IL_3AC7: ldloc.s 107 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_30)
IL_3AC9: ldfld RimWorld.<>c__DisplayClass10_0
RimWorld.<>c__DisplayClass10_30::CS$<>8__locals30
IL_3ACE: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_3AD3: call static Verse.NamedArgument
Verse.NamedArgument::op_Implicit(Verse.Thing value)
IL_3AD8: call static Verse.TaggedString
Verse.TranslatorFormattedStringExtensions::Translate(System.String key,
Verse.NamedArgument arg1, Verse.NamedArgument arg2)
IL_3ADD: call static Verse.TaggedString
Verse.TaggedString::op_Addition(Verse.TaggedString t1, Verse.TaggedString t2)
IL_3AE2: call static System.String
Verse.TaggedString::op_Implicit(Verse.TaggedString taggedString)
IL_3AE7: ldnull
IL_3AE8: ldc.i4.4
IL_3AE9: ldnull
IL_3AEA: ldnull
IL_3AEB: ldc.r4 0
IL_3AF0: ldnull
IL_3AF1: ldnull
IL_3AF2: ldc.i4.1
IL_3AF3: ldc.i4.0
IL_3AF4: newobj System.Void Verse.FloatMenuOption::.ctor(System.String label,
System.Action action, Verse.MenuOptionPriority priority,
System.Action`1<UnityEngine.Rect> mouseoverGuiAction, Verse.Thing
revalidateClickTarget, System.Single extraPartWidth,
System.Func`2<UnityEngine.Rect, System.Boolean> extraPartOnGUI,
RimWorld.Planet.WorldObject revalidateWorldClickTarget, System.Boolean
playSelectionSound, System.Int32 orderInPriority)
IL_3AF9: stloc.s 109 (Verse.FloatMenuOption)
IL_3AFB: br => Label330
IL_3B00: Label328
IL_3B00: Label329
IL_3B00: ldloc.s 107 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_30)
IL_3B02: ldfld Verse.ThingWithComps RimWorld.<>c__DisplayClass10_30::equipment
IL_3B07: ldfld Verse.ThingDef Verse.Thing::def
IL_3B0C: callvirt System.Boolean Verse.ThingDef::get_IsRangedWeapon()
IL_3B11: brfalse => Label331
IL_3B16: ldloc.s 107 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_30)
IL_3B18: ldfld RimWorld.<>c__DisplayClass10_0
RimWorld.<>c__DisplayClass10_30::CS$<>8__locals30
IL_3B1D: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_3B22: ldc.i4 524288
IL_3B27: callvirt System.Boolean Verse.Pawn::WorkTagIsDisabled(Verse.WorkTags w)
IL_3B2C: brfalse => Label332
IL_3B31: ldstr "CannotEquip"
IL_3B36: ldloc.s 110 (System.String)
IL_3B38: call static Verse.NamedArgument
Verse.NamedArgument::op_Implicit(System.String value)
IL_3B3D: call static Verse.TaggedString
Verse.TranslatorFormattedStringExtensions::Translate(System.String key,
Verse.NamedArgument arg1)
IL_3B42: ldstr ": "
IL_3B47: call static Verse.TaggedString
Verse.TaggedString::op_Addition(Verse.TaggedString t1, System.String t2)
IL_3B4C: ldstr "IsIncapableOfShootingLower"
IL_3B51: ldloc.s 107 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_30)
IL_3B53: ldfld RimWorld.<>c__DisplayClass10_0
RimWorld.<>c__DisplayClass10_30::CS$<>8__locals30
IL_3B58: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_3B5D: call static Verse.NamedArgument
Verse.NamedArgument::op_Implicit(Verse.Thing value)
IL_3B62: call static Verse.TaggedString
Verse.TranslatorFormattedStringExtensions::Translate(System.String key,
Verse.NamedArgument arg1)
IL_3B67: call static Verse.TaggedString
Verse.TaggedString::op_Addition(Verse.TaggedString t1, Verse.TaggedString t2)
IL_3B6C: call static System.String
Verse.TaggedString::op_Implicit(Verse.TaggedString taggedString)
IL_3B71: ldnull
IL_3B72: ldc.i4.4
IL_3B73: ldnull
IL_3B74: ldnull
IL_3B75: ldc.r4 0
IL_3B7A: ldnull
IL_3B7B: ldnull
IL_3B7C: ldc.i4.1
IL_3B7D: ldc.i4.0
IL_3B7E: newobj System.Void Verse.FloatMenuOption::.ctor(System.String label,
System.Action action, Verse.MenuOptionPriority priority,
System.Action`1<UnityEngine.Rect> mouseoverGuiAction, Verse.Thing
revalidateClickTarget, System.Single extraPartWidth,
System.Func`2<UnityEngine.Rect, System.Boolean> extraPartOnGUI,
RimWorld.Planet.WorldObject revalidateWorldClickTarget, System.Boolean
playSelectionSound, System.Int32 orderInPriority)
IL_3B83: stloc.s 109 (Verse.FloatMenuOption)
IL_3B85: br => Label333
IL_3B8A: Label331
IL_3B8A: Label332
IL_3B8A: ldloc.s 107 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_30)
IL_3B8C: ldfld RimWorld.<>c__DisplayClass10_0
RimWorld.<>c__DisplayClass10_30::CS$<>8__locals30
IL_3B91: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_3B96: ldloc.s 107 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_30)
IL_3B98: ldfld Verse.ThingWithComps RimWorld.<>c__DisplayClass10_30::equipment
IL_3B9D: call static Verse.LocalTargetInfo
Verse.LocalTargetInfo::op_Implicit(Verse.Thing t)
IL_3BA2: ldc.i4.3
IL_3BA3: ldc.i4.3
IL_3BA4: ldc.i4.0
IL_3BA5: ldc.i4.0
IL_3BA6: ldc.i4.0
IL_3BA7: call static System.Boolean
Verse.ReachabilityUtility::CanReach(Verse.Pawn pawn, Verse.LocalTargetInfo dest,
Verse.AI.PathEndMode peMode, Verse.Danger maxDanger, System.Boolean canBashDoors,
System.Boolean canBashFences, Verse.TraverseMode mode)
IL_3BAC: brtrue => Label334
IL_3BB1: ldstr "CannotEquip"
IL_3BB6: ldloc.s 110 (System.String)
IL_3BB8: call static Verse.NamedArgument
Verse.NamedArgument::op_Implicit(System.String value)
IL_3BBD: call static Verse.TaggedString
Verse.TranslatorFormattedStringExtensions::Translate(System.String key,
Verse.NamedArgument arg1)
IL_3BC2: ldstr ": "
IL_3BC7: call static Verse.TaggedString
Verse.TaggedString::op_Addition(Verse.TaggedString t1, System.String t2)
IL_3BCC: ldstr "NoPath"
IL_3BD1: call static Verse.TaggedString
Verse.Translator::Translate(System.String key)
IL_3BD6: stloc.s 11 (Verse.TaggedString)
IL_3BD8: ldloca.s 11 (Verse.TaggedString)
IL_3BDA: call Verse.TaggedString Verse.TaggedString::CapitalizeFirst()
IL_3BDF: call static Verse.TaggedString
Verse.TaggedString::op_Addition(Verse.TaggedString t1, Verse.TaggedString t2)
IL_3BE4: call static System.String
Verse.TaggedString::op_Implicit(Verse.TaggedString taggedString)
IL_3BE9: ldnull
IL_3BEA: ldc.i4.4
IL_3BEB: ldnull
IL_3BEC: ldnull
IL_3BED: ldc.r4 0
IL_3BF2: ldnull
IL_3BF3: ldnull
IL_3BF4: ldc.i4.1
IL_3BF5: ldc.i4.0
IL_3BF6: newobj System.Void Verse.FloatMenuOption::.ctor(System.String label,
System.Action action, Verse.MenuOptionPriority priority,
System.Action`1<UnityEngine.Rect> mouseoverGuiAction, Verse.Thing
revalidateClickTarget, System.Single extraPartWidth,
System.Func`2<UnityEngine.Rect, System.Boolean> extraPartOnGUI,
RimWorld.Planet.WorldObject revalidateWorldClickTarget, System.Boolean
playSelectionSound, System.Int32 orderInPriority)
IL_3BFB: stloc.s 109 (Verse.FloatMenuOption)
IL_3BFD: br => Label335
IL_3C02: Label334
IL_3C02: ldloc.s 107 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_30)
IL_3C04: ldfld RimWorld.<>c__DisplayClass10_0
RimWorld.<>c__DisplayClass10_30::CS$<>8__locals30
IL_3C09: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_3C0E: ldfld Verse.Pawn_HealthTracker Verse.Pawn::health
IL_3C13: ldfld Verse.PawnCapacitiesHandler
Verse.Pawn_HealthTracker::capacities
IL_3C18: ldsfld Verse.PawnCapacityDef RimWorld.PawnCapacityDefOf::Manipulation
IL_3C1D: callvirt System.Boolean
Verse.PawnCapacitiesHandler::CapableOf(Verse.PawnCapacityDef capacity)
IL_3C22: brtrue => Label336
IL_3C27: ldstr "CannotEquip"
IL_3C2C: ldloc.s 110 (System.String)
IL_3C2E: call static Verse.NamedArgument
Verse.NamedArgument::op_Implicit(System.String value)
IL_3C33: call static Verse.TaggedString
Verse.TranslatorFormattedStringExtensions::Translate(System.String key,
Verse.NamedArgument arg1)
IL_3C38: ldstr ": "
IL_3C3D: call static Verse.TaggedString
Verse.TaggedString::op_Addition(Verse.TaggedString t1, System.String t2)
IL_3C42: ldstr "Incapable"
IL_3C47: call static Verse.TaggedString
Verse.Translator::Translate(System.String key)
IL_3C4C: stloc.s 11 (Verse.TaggedString)
IL_3C4E: ldloca.s 11 (Verse.TaggedString)
IL_3C50: call Verse.TaggedString Verse.TaggedString::CapitalizeFirst()
IL_3C55: call static Verse.TaggedString
Verse.TaggedString::op_Addition(Verse.TaggedString t1, Verse.TaggedString t2)
IL_3C5A: call static System.String
Verse.TaggedString::op_Implicit(Verse.TaggedString taggedString)
IL_3C5F: ldnull
IL_3C60: ldc.i4.4
IL_3C61: ldnull
IL_3C62: ldnull
IL_3C63: ldc.r4 0
IL_3C68: ldnull
IL_3C69: ldnull
IL_3C6A: ldc.i4.1
IL_3C6B: ldc.i4.0
IL_3C6C: newobj System.Void Verse.FloatMenuOption::.ctor(System.String label,
System.Action action, Verse.MenuOptionPriority priority,
System.Action`1<UnityEngine.Rect> mouseoverGuiAction, Verse.Thing
revalidateClickTarget, System.Single extraPartWidth,
System.Func`2<UnityEngine.Rect, System.Boolean> extraPartOnGUI,
RimWorld.Planet.WorldObject revalidateWorldClickTarget, System.Boolean
playSelectionSound, System.Int32 orderInPriority)
IL_3C71: stloc.s 109 (Verse.FloatMenuOption)
IL_3C73: br => Label337
IL_3C78: Label336
IL_3C78: ldloc.s 107 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_30)
IL_3C7A: ldfld Verse.ThingWithComps RimWorld.<>c__DisplayClass10_30::equipment
IL_3C7F: call static System.Boolean
RimWorld.FireUtility::IsBurning(Verse.Thing t)
IL_3C84: brfalse => Label338
IL_3C89: ldstr "CannotEquip"
IL_3C8E: ldloc.s 110 (System.String)
IL_3C90: call static Verse.NamedArgument
Verse.NamedArgument::op_Implicit(System.String value)
IL_3C95: call static Verse.TaggedString
Verse.TranslatorFormattedStringExtensions::Translate(System.String key,
Verse.NamedArgument arg1)
IL_3C9A: ldstr ": "
IL_3C9F: call static Verse.TaggedString
Verse.TaggedString::op_Addition(Verse.TaggedString t1, System.String t2)
IL_3CA4: ldstr "BurningLower"
IL_3CA9: call static Verse.TaggedString
Verse.Translator::Translate(System.String key)
IL_3CAE: call static Verse.TaggedString
Verse.TaggedString::op_Addition(Verse.TaggedString t1, Verse.TaggedString t2)
IL_3CB3: call static System.String
Verse.TaggedString::op_Implicit(Verse.TaggedString taggedString)
IL_3CB8: ldnull
IL_3CB9: ldc.i4.4
IL_3CBA: ldnull
IL_3CBB: ldnull
IL_3CBC: ldc.r4 0
IL_3CC1: ldnull
IL_3CC2: ldnull
IL_3CC3: ldc.i4.1
IL_3CC4: ldc.i4.0
IL_3CC5: newobj System.Void Verse.FloatMenuOption::.ctor(System.String label,
System.Action action, Verse.MenuOptionPriority priority,
System.Action`1<UnityEngine.Rect> mouseoverGuiAction, Verse.Thing
revalidateClickTarget, System.Single extraPartWidth,
System.Func`2<UnityEngine.Rect, System.Boolean> extraPartOnGUI,
RimWorld.Planet.WorldObject revalidateWorldClickTarget, System.Boolean
playSelectionSound, System.Int32 orderInPriority)
IL_3CCA: stloc.s 109 (Verse.FloatMenuOption)
IL_3CCC: br => Label339
IL_3CD1: Label338
IL_3CD1: ldloc.s 107 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_30)
IL_3CD3: ldfld RimWorld.<>c__DisplayClass10_0
RimWorld.<>c__DisplayClass10_30::CS$<>8__locals30
IL_3CD8: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_3CDD: call static System.Boolean
RimWorld.QuestUtility::IsQuestLodger(Verse.Pawn p)
IL_3CE2: brfalse => Label340
IL_3CE7: ldloc.s 107 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_30)
IL_3CE9: ldfld Verse.ThingWithComps RimWorld.<>c__DisplayClass10_30::equipment
IL_3CEE: ldloc.s 107 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_30)
IL_3CF0: ldfld RimWorld.<>c__DisplayClass10_0
RimWorld.<>c__DisplayClass10_30::CS$<>8__locals30
IL_3CF5: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_3CFA: call static System.Boolean
RimWorld.EquipmentUtility::QuestLodgerCanEquip(Verse.Thing thing, Verse.Pawn pawn)
IL_3CFF: brtrue => Label341
IL_3D04: ldstr "CannotEquip"
IL_3D09: ldloc.s 110 (System.String)
IL_3D0B: call static Verse.NamedArgument
Verse.NamedArgument::op_Implicit(System.String value)
IL_3D10: call static Verse.TaggedString
Verse.TranslatorFormattedStringExtensions::Translate(System.String key,
Verse.NamedArgument arg1)
IL_3D15: ldstr ": "
IL_3D1A: call static Verse.TaggedString
Verse.TaggedString::op_Addition(Verse.TaggedString t1, System.String t2)
IL_3D1F: ldstr "QuestRelated"
IL_3D24: call static Verse.TaggedString
Verse.Translator::Translate(System.String key)
IL_3D29: stloc.s 11 (Verse.TaggedString)
IL_3D2B: ldloca.s 11 (Verse.TaggedString)
IL_3D2D: call Verse.TaggedString Verse.TaggedString::CapitalizeFirst()
IL_3D32: call static Verse.TaggedString
Verse.TaggedString::op_Addition(Verse.TaggedString t1, Verse.TaggedString t2)
IL_3D37: call static System.String
Verse.TaggedString::op_Implicit(Verse.TaggedString taggedString)
IL_3D3C: ldnull
IL_3D3D: ldc.i4.4
IL_3D3E: ldnull
IL_3D3F: ldnull
IL_3D40: ldc.r4 0
IL_3D45: ldnull
IL_3D46: ldnull
IL_3D47: ldc.i4.1
IL_3D48: ldc.i4.0
IL_3D49: newobj System.Void Verse.FloatMenuOption::.ctor(System.String label,
System.Action action, Verse.MenuOptionPriority priority,
System.Action`1<UnityEngine.Rect> mouseoverGuiAction, Verse.Thing
revalidateClickTarget, System.Single extraPartWidth,
System.Func`2<UnityEngine.Rect, System.Boolean> extraPartOnGUI,
RimWorld.Planet.WorldObject revalidateWorldClickTarget, System.Boolean
playSelectionSound, System.Int32 orderInPriority)
IL_3D4E: stloc.s 109 (Verse.FloatMenuOption)
IL_3D50: br => Label342
IL_3D55: Label340
IL_3D55: Label341
IL_3D55: ldloc.s 107 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_30)
IL_3D57: ldfld Verse.ThingWithComps RimWorld.<>c__DisplayClass10_30::equipment
IL_3D5C: ldloc.s 107 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_30)
IL_3D5E: ldfld RimWorld.<>c__DisplayClass10_0
RimWorld.<>c__DisplayClass10_30::CS$<>8__locals30
IL_3D63: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_3D68: ldloca.s 108 (System.String)
IL_3D6A: ldc.i4.0
IL_3D6B: call static System.Boolean
RimWorld.EquipmentUtility::CanEquip(Verse.Thing thing, Verse.Pawn pawn,
System.String& cantReason, System.Boolean checkBonded)
IL_3D70: brtrue => Label343
IL_3D75: ldstr "CannotEquip"
IL_3D7A: ldloc.s 110 (System.String)
IL_3D7C: call static Verse.NamedArgument
Verse.NamedArgument::op_Implicit(System.String value)
IL_3D81: call static Verse.TaggedString
Verse.TranslatorFormattedStringExtensions::Translate(System.String key,
Verse.NamedArgument arg1)
IL_3D86: ldstr ": "
IL_3D8B: call static Verse.TaggedString
Verse.TaggedString::op_Addition(Verse.TaggedString t1, System.String t2)
IL_3D90: ldloc.s 108 (System.String)
IL_3D92: call static System.String
Verse.GenText::CapitalizeFirst(System.String str)
IL_3D97: call static Verse.TaggedString
Verse.TaggedString::op_Addition(Verse.TaggedString t1, System.String t2)
IL_3D9C: call static System.String
Verse.TaggedString::op_Implicit(Verse.TaggedString taggedString)
IL_3DA1: ldnull
IL_3DA2: ldc.i4.4
IL_3DA3: ldnull
IL_3DA4: ldnull
IL_3DA5: ldc.r4 0
IL_3DAA: ldnull
IL_3DAB: ldnull
IL_3DAC: ldc.i4.1
IL_3DAD: ldc.i4.0
IL_3DAE: newobj System.Void Verse.FloatMenuOption::.ctor(System.String label,
System.Action action, Verse.MenuOptionPriority priority,
System.Action`1<UnityEngine.Rect> mouseoverGuiAction, Verse.Thing
revalidateClickTarget, System.Single extraPartWidth,
System.Func`2<UnityEngine.Rect, System.Boolean> extraPartOnGUI,
RimWorld.Planet.WorldObject revalidateWorldClickTarget, System.Boolean
playSelectionSound, System.Int32 orderInPriority)
IL_3DB3: stloc.s 109 (Verse.FloatMenuOption)
IL_3DB5: br => Label344
IL_3DBA: Label343
IL_3DBA: ldstr "Equip"
IL_3DBF: ldloc.s 110 (System.String)
IL_3DC1: call static Verse.NamedArgument
Verse.NamedArgument::op_Implicit(System.String value)
IL_3DC6: call static Verse.TaggedString
Verse.TranslatorFormattedStringExtensions::Translate(System.String key,
Verse.NamedArgument arg1)
IL_3DCB: call static System.String
Verse.TaggedString::op_Implicit(Verse.TaggedString taggedString)
IL_3DD0: stloc.s 111 (System.String)
IL_3DD2: ldloc.s 107 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_30)
IL_3DD4: ldfld Verse.ThingWithComps RimWorld.<>c__DisplayClass10_30::equipment
IL_3DD9: ldfld Verse.ThingDef Verse.Thing::def
IL_3DDE: callvirt System.Boolean Verse.ThingDef::get_IsRangedWeapon()
IL_3DE3: brfalse => Label345
IL_3DE8: ldloc.s 107 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_30)
IL_3DEA: ldfld RimWorld.<>c__DisplayClass10_0
RimWorld.<>c__DisplayClass10_30::CS$<>8__locals30
IL_3DEF: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_3DF4: ldfld RimWorld.Pawn_StoryTracker Verse.Pawn::story
IL_3DF9: brfalse => Label346
IL_3DFE: ldloc.s 107 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_30)
IL_3E00: ldfld RimWorld.<>c__DisplayClass10_0
RimWorld.<>c__DisplayClass10_30::CS$<>8__locals30
IL_3E05: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_3E0A: ldfld RimWorld.Pawn_StoryTracker Verse.Pawn::story
IL_3E0F: ldfld RimWorld.TraitSet RimWorld.Pawn_StoryTracker::traits
IL_3E14: ldsfld RimWorld.TraitDef RimWorld.TraitDefOf::Brawler
IL_3E19: callvirt System.Boolean RimWorld.TraitSet::HasTrait(RimWorld.TraitDef
tDef)
IL_3E1E: brfalse => Label347
IL_3E23: ldloc.s 111 (System.String)
IL_3E25: ldstr " "
IL_3E2A: ldstr "EquipWarningBrawler"
IL_3E2F: call static Verse.TaggedString
Verse.Translator::Translate(System.String key)
IL_3E34: call static Verse.TaggedString
Verse.TaggedString::op_Addition(System.String t1, Verse.TaggedString t2)
IL_3E39: call static Verse.TaggedString
Verse.TaggedString::op_Addition(System.String t1, Verse.TaggedString t2)
IL_3E3E: call static System.String
Verse.TaggedString::op_Implicit(Verse.TaggedString taggedString)
IL_3E43: stloc.s 111 (System.String)
IL_3E45: Label345
IL_3E45: Label346
IL_3E45: Label347
IL_3E45: ldloc.s 107 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_30)
IL_3E47: ldfld Verse.ThingWithComps RimWorld.<>c__DisplayClass10_30::equipment
IL_3E4C: ldloc.s 107 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_30)
IL_3E4E: ldfld RimWorld.<>c__DisplayClass10_0
RimWorld.<>c__DisplayClass10_30::CS$<>8__locals30
IL_3E53: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_3E58: call static System.Boolean
RimWorld.EquipmentUtility::AlreadyBondedToWeapon(Verse.Thing thing, Verse.Pawn
pawn)
IL_3E5D: brfalse => Label348
IL_3E62: newobj System.Void RimWorld.<>c__DisplayClass10_31::.ctor()
IL_3E67: stloc.s 112 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_31)
IL_3E69: ldloc.s 111 (System.String)
IL_3E6B: ldstr " "
IL_3E70: ldstr "BladelinkAlreadyBonded"
IL_3E75: call static Verse.TaggedString
Verse.Translator::Translate(System.String key)
IL_3E7A: call static Verse.TaggedString
Verse.TaggedString::op_Addition(System.String t1, Verse.TaggedString t2)
IL_3E7F: call static Verse.TaggedString
Verse.TaggedString::op_Addition(System.String t1, Verse.TaggedString t2)
IL_3E84: call static System.String
Verse.TaggedString::op_Implicit(Verse.TaggedString taggedString)
IL_3E89: stloc.s 111 (System.String)
IL_3E8B: ldloc.s 112 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_31)
IL_3E8D: ldstr "BladelinkAlreadyBondedDialog"
IL_3E92: ldloc.s 107 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_30)
IL_3E94: ldfld RimWorld.<>c__DisplayClass10_0
RimWorld.<>c__DisplayClass10_30::CS$<>8__locals30
IL_3E99: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_3E9E: ldstr "PAWN"
IL_3EA3: call static Verse.NamedArgument
Verse.NamedArgumentUtility::Named(System.Object arg, System.String label)
IL_3EA8: ldloc.s 107 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_30)
IL_3EAA: ldfld Verse.ThingWithComps RimWorld.<>c__DisplayClass10_30::equipment
IL_3EAF: ldstr "WEAPON"
IL_3EB4: call static Verse.NamedArgument
Verse.NamedArgumentUtility::Named(System.Object arg, System.String label)
IL_3EB9: ldloc.s 107 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_30)
IL_3EBB: ldfld RimWorld.<>c__DisplayClass10_0
RimWorld.<>c__DisplayClass10_30::CS$<>8__locals30
IL_3EC0: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_3EC5: ldfld Verse.Pawn_EquipmentTracker Verse.Pawn::equipment
IL_3ECA: ldfld Verse.Thing Verse.Pawn_EquipmentTracker::bondedWeapon
IL_3ECF: ldstr "BONDEDWEAPON"
IL_3ED4: call static Verse.NamedArgument
Verse.NamedArgumentUtility::Named(System.Object arg, System.String label)
IL_3ED9: call static Verse.TaggedString
Verse.TranslatorFormattedStringExtensions::Translate(System.String key,
Verse.NamedArgument arg1, Verse.NamedArgument arg2, Verse.NamedArgument arg3)
IL_3EDE: stfld Verse.TaggedString RimWorld.<>c__DisplayClass10_31::dialogText
IL_3EE3: ldloc.s 111 (System.String)
IL_3EE5: ldloc.s 112 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_31)
IL_3EE7: ldftn System.Void
RimWorld.<>c__DisplayClass10_31::<AddHumanlikeOrders>b__39()
IL_3EED: newobj System.Void System.Action::.ctor(System.Object object,
System.IntPtr method)
IL_3EF2: ldc.i4.5
IL_3EF3: ldnull
IL_3EF4: ldnull
IL_3EF5: ldc.r4 0
IL_3EFA: ldnull
IL_3EFB: ldnull
IL_3EFC: ldc.i4.1
IL_3EFD: ldc.i4.0
IL_3EFE: newobj System.Void Verse.FloatMenuOption::.ctor(System.String label,
System.Action action, Verse.MenuOptionPriority priority,
System.Action`1<UnityEngine.Rect> mouseoverGuiAction, Verse.Thing
revalidateClickTarget, System.Single extraPartWidth,
System.Func`2<UnityEngine.Rect, System.Boolean> extraPartOnGUI,
RimWorld.Planet.WorldObject revalidateWorldClickTarget, System.Boolean
playSelectionSound, System.Int32 orderInPriority)
IL_3F03: ldloc.s 107 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_30)
IL_3F05: ldfld RimWorld.<>c__DisplayClass10_0
RimWorld.<>c__DisplayClass10_30::CS$<>8__locals30
IL_3F0A: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_3F0F: ldloc.s 107 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_30)
IL_3F11: ldfld Verse.ThingWithComps RimWorld.<>c__DisplayClass10_30::equipment
IL_3F16: call static Verse.LocalTargetInfo
Verse.LocalTargetInfo::op_Implicit(Verse.Thing t)
IL_3F1B: ldstr "ReservedBy"
IL_3F20: ldnull
IL_3F21: call static Verse.FloatMenuOption
RimWorld.FloatMenuUtility::DecoratePrioritizedTask(Verse.FloatMenuOption option,
Verse.Pawn pawn, Verse.LocalTargetInfo target, System.String reservedText,
Verse.ReservationLayerDef layer)
IL_3F26: stloc.s 109 (Verse.FloatMenuOption)
IL_3F28: br => Label349
IL_3F2D: Label348
IL_3F2D: ldloc.s 111 (System.String)
IL_3F2F: ldloc.s 107 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_30)
IL_3F31: ldftn System.Void
RimWorld.<>c__DisplayClass10_30::<AddHumanlikeOrders>b__38()
IL_3F37: newobj System.Void System.Action::.ctor(System.Object object,
System.IntPtr method)
IL_3F3C: ldc.i4.5
IL_3F3D: ldnull
IL_3F3E: ldnull
IL_3F3F: ldc.r4 0
IL_3F44: ldnull
IL_3F45: ldnull
IL_3F46: ldc.i4.1
IL_3F47: ldc.i4.0
IL_3F48: newobj System.Void Verse.FloatMenuOption::.ctor(System.String label,
System.Action action, Verse.MenuOptionPriority priority,
System.Action`1<UnityEngine.Rect> mouseoverGuiAction, Verse.Thing
revalidateClickTarget, System.Single extraPartWidth,
System.Func`2<UnityEngine.Rect, System.Boolean> extraPartOnGUI,
RimWorld.Planet.WorldObject revalidateWorldClickTarget, System.Boolean
playSelectionSound, System.Int32 orderInPriority)
IL_3F4D: ldloc.s 107 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_30)
IL_3F4F: ldfld RimWorld.<>c__DisplayClass10_0
RimWorld.<>c__DisplayClass10_30::CS$<>8__locals30
IL_3F54: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_3F59: ldloc.s 107 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_30)
IL_3F5B: ldfld Verse.ThingWithComps RimWorld.<>c__DisplayClass10_30::equipment
IL_3F60: call static Verse.LocalTargetInfo
Verse.LocalTargetInfo::op_Implicit(Verse.Thing t)
IL_3F65: ldstr "ReservedBy"
IL_3F6A: ldnull
IL_3F6B: call static Verse.FloatMenuOption
RimWorld.FloatMenuUtility::DecoratePrioritizedTask(Verse.FloatMenuOption option,
Verse.Pawn pawn, Verse.LocalTargetInfo target, System.String reservedText,
Verse.ReservationLayerDef layer)
IL_3F70: stloc.s 109 (Verse.FloatMenuOption)
IL_3F72: Label330
IL_3F72: Label333
IL_3F72: Label335
IL_3F72: Label337
IL_3F72: Label339
IL_3F72: Label342
IL_3F72: Label344
IL_3F72: Label349
IL_3F72: ldarg.2
IL_3F73: ldloc.s 109 (Verse.FloatMenuOption)
IL_3F75: callvirt virtual System.Void
System.Collections.Generic.List`1<Verse.FloatMenuOption>::Add(Verse.FloatMenuOption
item)
IL_3F7A: Label327
IL_3F7A: ldloc.s 106 (System.Int32)
IL_3F7C: ldc.i4.1
IL_3F7D: add
IL_3F7E: stloc.s 106 (System.Int32)
IL_3F80: Label326
IL_3F80: ldloc.s 106 (System.Int32)
IL_3F82: ldloc.s 105 (System.Collections.Generic.List`1[Verse.Thing])
IL_3F84: callvirt virtual System.Int32
System.Collections.Generic.List`1<Verse.Thing>::get_Count()
IL_3F89: blt => Label350
IL_3F8E: Label325
IL_3F8E: ldloc.0
IL_3F8F: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_3F94: ldloc.1
IL_3F95: ldloc.0
IL_3F96: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_3F9B: callvirt virtual Verse.Map Verse.Thing::get_Map()
IL_3FA0: call static System.Collections.Generic.List`1<Verse.Thing>
Verse.GridsUtility::GetThingList(Verse.IntVec3 c, Verse.Map map)
IL_3FA5: call static
System.Collections.Generic.IEnumerable`1<Verse.Pair`2<RimWorld.CompReloadable,
Verse.Thing>> RimWorld.ReloadableUtility::FindPotentiallyReloadableGear(Verse.Pawn
pawn, System.Collections.Generic.List`1<Verse.Thing> potentialAmmo)
IL_3FAA: callvirt abstract virtual
System.Collections.Generic.IEnumerator`1<Verse.Pair`2<RimWorld.CompReloadable,
Verse.Thing>>
System.Collections.Generic.IEnumerable`1<Verse.Pair`2<RimWorld.CompReloadable,
Verse.Thing>>::GetEnumerator()
IL_3FAF: stloc.s 113
(System.Collections.Generic.IEnumerator`1[Verse.Pair`2[RimWorld.CompReloadable,Vers
e.Thing]])
.try
{
IL_3FB1: br => Label351
IL_3FB6: Label360
IL_3FB6: ldloc.s 113
(System.Collections.Generic.IEnumerator`1[Verse.Pair`2[RimWorld.CompReloadable,Vers
e.Thing]])
IL_3FB8: callvirt abstract virtual Verse.Pair`2<RimWorld.CompReloadable,
Verse.Thing>
System.Collections.Generic.IEnumerator`1<Verse.Pair`2<RimWorld.CompReloadable,
Verse.Thing>>::get_Current()
IL_3FBD: stloc.s 114 (Verse.Pair`2[RimWorld.CompReloadable,Verse.Thing])
IL_3FBF: newobj System.Void RimWorld.<>c__DisplayClass10_32::.ctor()
IL_3FC4: stloc.s 115 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_32)
IL_3FC6: ldloc.s 115 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_32)
IL_3FC8: ldloc.0
IL_3FC9: stfld RimWorld.<>c__DisplayClass10_0
RimWorld.<>c__DisplayClass10_32::CS$<>8__locals31
IL_3FCE: ldloc.s 115 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_32)
IL_3FD0: ldloca.s 114 (Verse.Pair`2[RimWorld.CompReloadable,Verse.Thing])
IL_3FD2: call RimWorld.CompReloadable
Verse.Pair`2<RimWorld.CompReloadable, Verse.Thing>::get_First()
IL_3FD7: stfld RimWorld.CompReloadable
RimWorld.<>c__DisplayClass10_32::comp
IL_3FDC: ldloca.s 114 (Verse.Pair`2[RimWorld.CompReloadable,Verse.Thing])
IL_3FDE: call Verse.Thing Verse.Pair`2<RimWorld.CompReloadable,
Verse.Thing>::get_Second()
IL_3FE3: stloc.s 116 (Verse.Thing)
IL_3FE5: ldstr "Reload"
IL_3FEA: ldloc.s 115 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_32)
IL_3FEC: ldfld RimWorld.CompReloadable
RimWorld.<>c__DisplayClass10_32::comp
IL_3FF1: ldfld Verse.ThingWithComps Verse.ThingComp::parent
IL_3FF6: ldstr "GEAR"
IL_3FFB: call static Verse.NamedArgument
Verse.NamedArgumentUtility::Named(System.Object arg, System.String label)
IL_4000: ldloc.s 115 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_32)
IL_4002: ldfld RimWorld.CompReloadable
RimWorld.<>c__DisplayClass10_32::comp
IL_4007: callvirt Verse.ThingDef RimWorld.CompReloadable::get_AmmoDef()
IL_400C: ldstr "AMMO"
IL_4011: call static Verse.NamedArgument
Verse.NamedArgumentUtility::Named(System.Object arg, System.String label)
IL_4016: call static Verse.TaggedString
Verse.TranslatorFormattedStringExtensions::Translate(System.String key,
Verse.NamedArgument arg1, Verse.NamedArgument arg2)
IL_401B: ldstr " ("
IL_4020: call static Verse.TaggedString
Verse.TaggedString::op_Addition(Verse.TaggedString t1, System.String t2)
IL_4025: ldloc.s 115 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_32)
IL_4027: ldfld RimWorld.CompReloadable
RimWorld.<>c__DisplayClass10_32::comp
IL_402C: callvirt System.String
RimWorld.CompReloadable::get_LabelRemaining()
IL_4031: call static Verse.TaggedString
Verse.TaggedString::op_Addition(Verse.TaggedString t1, System.String t2)
IL_4036: ldstr ")"
IL_403B: call static Verse.TaggedString
Verse.TaggedString::op_Addition(Verse.TaggedString t1, System.String t2)
IL_4040: call static System.String
Verse.TaggedString::op_Implicit(Verse.TaggedString taggedString)
IL_4045: stloc.s 117 (System.String)
IL_4047: ldloc.s 115 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_32)
IL_4049: ldfld RimWorld.<>c__DisplayClass10_0
RimWorld.<>c__DisplayClass10_32::CS$<>8__locals31
IL_404E: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_4053: ldloc.s 116 (Verse.Thing)
IL_4055: call static Verse.LocalTargetInfo
Verse.LocalTargetInfo::op_Implicit(Verse.Thing t)
IL_405A: ldc.i4.3
IL_405B: ldc.i4.3
IL_405C: ldc.i4.0
IL_405D: ldc.i4.0
IL_405E: ldc.i4.0
IL_405F: call static System.Boolean
Verse.ReachabilityUtility::CanReach(Verse.Pawn pawn, Verse.LocalTargetInfo dest,
Verse.AI.PathEndMode peMode, Verse.Danger maxDanger, System.Boolean canBashDoors,
System.Boolean canBashFences, Verse.TraverseMode mode)
IL_4064: brtrue => Label352
IL_4069: ldarg.2
IL_406A: ldloc.s 117 (System.String)
IL_406C: ldstr ": "
IL_4071: call static System.String System.String::Concat(System.String
str0, System.String str1)
IL_4076: ldstr "NoPath"
IL_407B: call static Verse.TaggedString
Verse.Translator::Translate(System.String key)
IL_4080: stloc.s 11 (Verse.TaggedString)
IL_4082: ldloca.s 11 (Verse.TaggedString)
IL_4084: call Verse.TaggedString Verse.TaggedString::CapitalizeFirst()
IL_4089: call static Verse.TaggedString
Verse.TaggedString::op_Addition(System.String t1, Verse.TaggedString t2)
IL_408E: call static System.String
Verse.TaggedString::op_Implicit(Verse.TaggedString taggedString)
IL_4093: ldnull
IL_4094: ldc.i4.4
IL_4095: ldnull
IL_4096: ldnull
IL_4097: ldc.r4 0
IL_409C: ldnull
IL_409D: ldnull
IL_409E: ldc.i4.1
IL_409F: ldc.i4.0
IL_40A0: newobj System.Void Verse.FloatMenuOption::.ctor(System.String
label, System.Action action, Verse.MenuOptionPriority priority,
System.Action`1<UnityEngine.Rect> mouseoverGuiAction, Verse.Thing
revalidateClickTarget, System.Single extraPartWidth,
System.Func`2<UnityEngine.Rect, System.Boolean> extraPartOnGUI,
RimWorld.Planet.WorldObject revalidateWorldClickTarget, System.Boolean
playSelectionSound, System.Int32 orderInPriority)
IL_40A5: callvirt virtual System.Void
System.Collections.Generic.List`1<Verse.FloatMenuOption>::Add(Verse.FloatMenuOption
item)
IL_40AA: br => Label353
IL_40AF: Label352
IL_40AF: ldloc.s 115 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_32)
IL_40B1: ldfld RimWorld.CompReloadable
RimWorld.<>c__DisplayClass10_32::comp
IL_40B6: ldc.i4.1
IL_40B7: callvirt System.Boolean
RimWorld.CompReloadable::NeedsReload(System.Boolean allowForcedReload)
IL_40BC: brtrue => Label354
IL_40C1: ldarg.2
IL_40C2: ldloc.s 117 (System.String)
IL_40C4: ldstr ": "
IL_40C9: call static System.String System.String::Concat(System.String
str0, System.String str1)
IL_40CE: ldstr "ReloadFull"
IL_40D3: call static Verse.TaggedString
Verse.Translator::Translate(System.String key)
IL_40D8: call static Verse.TaggedString
Verse.TaggedString::op_Addition(System.String t1, Verse.TaggedString t2)
IL_40DD: call static System.String
Verse.TaggedString::op_Implicit(Verse.TaggedString taggedString)
IL_40E2: ldnull
IL_40E3: ldc.i4.4
IL_40E4: ldnull
IL_40E5: ldnull
IL_40E6: ldc.r4 0
IL_40EB: ldnull
IL_40EC: ldnull
IL_40ED: ldc.i4.1
IL_40EE: ldc.i4.0
IL_40EF: newobj System.Void Verse.FloatMenuOption::.ctor(System.String
label, System.Action action, Verse.MenuOptionPriority priority,
System.Action`1<UnityEngine.Rect> mouseoverGuiAction, Verse.Thing
revalidateClickTarget, System.Single extraPartWidth,
System.Func`2<UnityEngine.Rect, System.Boolean> extraPartOnGUI,
RimWorld.Planet.WorldObject revalidateWorldClickTarget, System.Boolean
playSelectionSound, System.Int32 orderInPriority)
IL_40F4: callvirt virtual System.Void
System.Collections.Generic.List`1<Verse.FloatMenuOption>::Add(Verse.FloatMenuOption
item)
IL_40F9: br => Label355
IL_40FE: Label354
IL_40FE: ldloc.s 115 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_32)
IL_4100: ldloc.s 115 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_32)
IL_4102: ldfld RimWorld.<>c__DisplayClass10_0
RimWorld.<>c__DisplayClass10_32::CS$<>8__locals31
IL_4107: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_410C: ldloc.s 116 (Verse.Thing)
IL_410E: callvirt virtual Verse.IntVec3 Verse.Thing::get_Position()
IL_4113: ldloc.s 115 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_32)
IL_4115: ldfld RimWorld.CompReloadable
RimWorld.<>c__DisplayClass10_32::comp
IL_411A: ldc.i4.1
IL_411B: call static System.Collections.Generic.List`1<Verse.Thing>
RimWorld.ReloadableUtility::FindEnoughAmmo(Verse.Pawn pawn, Verse.IntVec3 rootCell,
RimWorld.CompReloadable comp, System.Boolean forceReload)
IL_4120: dup
IL_4121: stloc.s 118 (System.Collections.Generic.List`1[Verse.Thing])
IL_4123: stfld System.Collections.Generic.List`1<Verse.Thing>
RimWorld.<>c__DisplayClass10_32::chosenAmmo
IL_4128: ldloc.s 118 (System.Collections.Generic.List`1[Verse.Thing])
IL_412A: brtrue => Label356
IL_412F: ldarg.2
IL_4130: ldloc.s 117 (System.String)
IL_4132: ldstr ": "
IL_4137: call static System.String System.String::Concat(System.String
str0, System.String str1)
IL_413C: ldstr "ReloadNotEnough"
IL_4141: call static Verse.TaggedString
Verse.Translator::Translate(System.String key)
IL_4146: call static Verse.TaggedString
Verse.TaggedString::op_Addition(System.String t1, Verse.TaggedString t2)
IL_414B: call static System.String
Verse.TaggedString::op_Implicit(Verse.TaggedString taggedString)
IL_4150: ldnull
IL_4151: ldc.i4.4
IL_4152: ldnull
IL_4153: ldnull
IL_4154: ldc.r4 0
IL_4159: ldnull
IL_415A: ldnull
IL_415B: ldc.i4.1
IL_415C: ldc.i4.0
IL_415D: newobj System.Void Verse.FloatMenuOption::.ctor(System.String
label, System.Action action, Verse.MenuOptionPriority priority,
System.Action`1<UnityEngine.Rect> mouseoverGuiAction, Verse.Thing
revalidateClickTarget, System.Single extraPartWidth,
System.Func`2<UnityEngine.Rect, System.Boolean> extraPartOnGUI,
RimWorld.Planet.WorldObject revalidateWorldClickTarget, System.Boolean
playSelectionSound, System.Int32 orderInPriority)
IL_4162: callvirt virtual System.Void
System.Collections.Generic.List`1<Verse.FloatMenuOption>::Add(Verse.FloatMenuOption
item)
IL_4167: br => Label357
IL_416C: Label356
IL_416C: ldloc.s 115 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_32)
IL_416E: ldfld RimWorld.<>c__DisplayClass10_0
RimWorld.<>c__DisplayClass10_32::CS$<>8__locals31
IL_4173: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_4178: ldfld Verse.Pawn_CarryTracker Verse.Pawn::carryTracker
IL_417D: ldloc.s 115 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_32)
IL_417F: ldfld RimWorld.CompReloadable
RimWorld.<>c__DisplayClass10_32::comp
IL_4184: callvirt Verse.ThingDef RimWorld.CompReloadable::get_AmmoDef()
IL_4189: callvirt System.Int32
Verse.Pawn_CarryTracker::AvailableStackSpace(Verse.ThingDef td)
IL_418E: ldloc.s 115 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_32)
IL_4190: ldfld RimWorld.CompReloadable
RimWorld.<>c__DisplayClass10_32::comp
IL_4195: ldc.i4.1
IL_4196: callvirt System.Int32
RimWorld.CompReloadable::MinAmmoNeeded(System.Boolean allowForcedReload)
IL_419B: bge => Label358
IL_41A0: ldarg.2
IL_41A1: ldloc.s 117 (System.String)
IL_41A3: ldstr ": "
IL_41A8: call static System.String System.String::Concat(System.String
str0, System.String str1)
IL_41AD: ldstr "ReloadCannotCarryEnough"
IL_41B2: ldloc.s 115 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_32)
IL_41B4: ldfld RimWorld.CompReloadable
RimWorld.<>c__DisplayClass10_32::comp
IL_41B9: callvirt Verse.ThingDef RimWorld.CompReloadable::get_AmmoDef()
IL_41BE: ldstr "AMMO"
IL_41C3: call static Verse.NamedArgument
Verse.NamedArgumentUtility::Named(System.Object arg, System.String label)
IL_41C8: call static Verse.TaggedString
Verse.TranslatorFormattedStringExtensions::Translate(System.String key,
Verse.NamedArgument arg1)
IL_41CD: call static Verse.TaggedString
Verse.TaggedString::op_Addition(System.String t1, Verse.TaggedString t2)
IL_41D2: call static System.String
Verse.TaggedString::op_Implicit(Verse.TaggedString taggedString)
IL_41D7: ldnull
IL_41D8: ldc.i4.4
IL_41D9: ldnull
IL_41DA: ldnull
IL_41DB: ldc.r4 0
IL_41E0: ldnull
IL_41E1: ldnull
IL_41E2: ldc.i4.1
IL_41E3: ldc.i4.0
IL_41E4: newobj System.Void Verse.FloatMenuOption::.ctor(System.String
label, System.Action action, Verse.MenuOptionPriority priority,
System.Action`1<UnityEngine.Rect> mouseoverGuiAction, Verse.Thing
revalidateClickTarget, System.Single extraPartWidth,
System.Func`2<UnityEngine.Rect, System.Boolean> extraPartOnGUI,
RimWorld.Planet.WorldObject revalidateWorldClickTarget, System.Boolean
playSelectionSound, System.Int32 orderInPriority)
IL_41E9: callvirt virtual System.Void
System.Collections.Generic.List`1<Verse.FloatMenuOption>::Add(Verse.FloatMenuOption
item)
IL_41EE: br => Label359
IL_41F3: Label358
IL_41F3: ldloc.s 115 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_32)
IL_41F5: ldftn System.Void
RimWorld.<>c__DisplayClass10_32::<AddHumanlikeOrders>b__42()
IL_41FB: newobj System.Void System.Action::.ctor(System.Object object,
System.IntPtr method)
IL_4200: stloc.s 119 (System.Action)
IL_4202: ldarg.2
IL_4203: ldloc.s 117 (System.String)
IL_4205: ldloc.s 119 (System.Action)
IL_4207: ldc.i4.4
IL_4208: ldnull
IL_4209: ldnull
IL_420A: ldc.r4 0
IL_420F: ldnull
IL_4210: ldnull
IL_4211: ldc.i4.1
IL_4212: ldc.i4.0
IL_4213: newobj System.Void Verse.FloatMenuOption::.ctor(System.String
label, System.Action action, Verse.MenuOptionPriority priority,
System.Action`1<UnityEngine.Rect> mouseoverGuiAction, Verse.Thing
revalidateClickTarget, System.Single extraPartWidth,
System.Func`2<UnityEngine.Rect, System.Boolean> extraPartOnGUI,
RimWorld.Planet.WorldObject revalidateWorldClickTarget, System.Boolean
playSelectionSound, System.Int32 orderInPriority)
IL_4218: ldloc.s 115 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_32)
IL_421A: ldfld RimWorld.<>c__DisplayClass10_0
RimWorld.<>c__DisplayClass10_32::CS$<>8__locals31
IL_421F: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_4224: ldloc.s 116 (Verse.Thing)
IL_4226: call static Verse.LocalTargetInfo
Verse.LocalTargetInfo::op_Implicit(Verse.Thing t)
IL_422B: ldstr "ReservedBy"
IL_4230: ldnull
IL_4231: call static Verse.FloatMenuOption
RimWorld.FloatMenuUtility::DecoratePrioritizedTask(Verse.FloatMenuOption option,
Verse.Pawn pawn, Verse.LocalTargetInfo target, System.String reservedText,
Verse.ReservationLayerDef layer)
IL_4236: callvirt virtual System.Void
System.Collections.Generic.List`1<Verse.FloatMenuOption>::Add(Verse.FloatMenuOption
item)
IL_423B: Label351
IL_423B: Label353
IL_423B: Label355
IL_423B: Label357
IL_423B: Label359
IL_423B: ldloc.s 113
(System.Collections.Generic.IEnumerator`1[Verse.Pair`2[RimWorld.CompReloadable,Vers
e.Thing]])
IL_423D: callvirt abstract virtual System.Boolean
System.Collections.IEnumerator::MoveNext()
IL_4242: brtrue => Label360
IL_4247: leave => Label361
IL_424C: leave => (autogenerated)
} // end try
.finally
{
IL_4251: ldloc.s 113
(System.Collections.Generic.IEnumerator`1[Verse.Pair`2[RimWorld.CompReloadable,Vers
e.Thing]])
IL_4253: brfalse => Label362
IL_4258: ldloc.s 113
(System.Collections.Generic.IEnumerator`1[Verse.Pair`2[RimWorld.CompReloadable,Vers
e.Thing]])
IL_425A: callvirt abstract virtual System.Void
System.IDisposable::Dispose()
IL_425F: Label362
IL_425F: endfinally
IL_4260: leave => (autogenerated)
} // end handler
IL_4261: Label361
IL_4261: ldloc.0
IL_4262: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_4267: ldfld RimWorld.Pawn_ApparelTracker Verse.Pawn::apparel
IL_426C: brfalse => Label363
IL_4271: ldloc.0
IL_4272: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_4277: callvirt virtual Verse.Map Verse.Thing::get_Map()
IL_427C: ldfld Verse.ThingGrid Verse.Map::thingGrid
IL_4281: ldloc.1
IL_4282: callvirt System.Collections.Generic.IEnumerable`1<Verse.Thing>
Verse.ThingGrid::ThingsAt(Verse.IntVec3 c)
IL_4287: callvirt abstract virtual
System.Collections.Generic.IEnumerator`1<Verse.Thing>
System.Collections.Generic.IEnumerable`1<Verse.Thing>::GetEnumerator()
IL_428C: stloc.s 60 (System.Collections.Generic.IEnumerator`1[Verse.Thing])
.try
{
IL_428E: br => Label364
IL_4293: Label377
IL_4293: ldloc.s 60
(System.Collections.Generic.IEnumerator`1[Verse.Thing])
IL_4295: callvirt abstract virtual Verse.Thing
System.Collections.Generic.IEnumerator`1<Verse.Thing>::get_Current()
IL_429A: stloc.s 120 (Verse.Thing)
IL_429C: newobj System.Void RimWorld.<>c__DisplayClass10_33::.ctor()
IL_42A1: stloc.s 121 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_33)
IL_42A3: ldloc.s 121 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_33)
IL_42A5: ldloc.0
IL_42A6: stfld RimWorld.<>c__DisplayClass10_0
RimWorld.<>c__DisplayClass10_33::CS$<>8__locals32
IL_42AB: ldloc.s 121 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_33)
IL_42AD: ldloc.s 120 (Verse.Thing)
IL_42AF: isinst RimWorld.Apparel
IL_42B4: stfld RimWorld.Apparel RimWorld.<>c__DisplayClass10_33::apparel
IL_42B9: ldloc.s 121 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_33)
IL_42BB: ldfld RimWorld.Apparel RimWorld.<>c__DisplayClass10_33::apparel
IL_42C0: brfalse => Label365
IL_42C5: ldstr "CannotWear"
IL_42CA: stloc.s 122 (System.String)
IL_42CC: ldstr "ForceWear"
IL_42D1: stloc.s 123 (System.String)
IL_42D3: ldloc.s 121 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_33)
IL_42D5: ldfld RimWorld.Apparel RimWorld.<>c__DisplayClass10_33::apparel
IL_42DA: ldfld Verse.ThingDef Verse.Thing::def
IL_42DF: ldfld RimWorld.ApparelProperties Verse.ThingDef::apparel
IL_42E4: callvirt Verse.ApparelLayerDef
RimWorld.ApparelProperties::get_LastLayer()
IL_42E9: callvirt System.Boolean
Verse.ApparelLayerDef::get_IsUtilityLayer()
IL_42EE: brfalse => Label366
IL_42F3: ldstr "CannotEquipApparel"
IL_42F8: stloc.s 122 (System.String)
IL_42FA: ldstr "ForceEquipApparel"
IL_42FF: stloc.s 123 (System.String)
IL_4301: Label366
IL_4301: ldloc.s 121 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_33)
IL_4303: ldfld RimWorld.<>c__DisplayClass10_0
RimWorld.<>c__DisplayClass10_33::CS$<>8__locals32
IL_4308: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_430D: ldloc.s 121 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_33)
IL_430F: ldfld RimWorld.Apparel RimWorld.<>c__DisplayClass10_33::apparel
IL_4314: call static Verse.LocalTargetInfo
Verse.LocalTargetInfo::op_Implicit(Verse.Thing t)
IL_4319: ldc.i4.3
IL_431A: ldc.i4.3
IL_431B: ldc.i4.0
IL_431C: ldc.i4.0
IL_431D: ldc.i4.0
IL_431E: call static System.Boolean
Verse.ReachabilityUtility::CanReach(Verse.Pawn pawn, Verse.LocalTargetInfo dest,
Verse.AI.PathEndMode peMode, Verse.Danger maxDanger, System.Boolean canBashDoors,
System.Boolean canBashFences, Verse.TraverseMode mode)
IL_4323: brtrue => Label367
IL_4328: ldloc.s 122 (System.String)
IL_432A: ldloc.s 121 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_33)
IL_432C: ldfld RimWorld.Apparel RimWorld.<>c__DisplayClass10_33::apparel
IL_4331: callvirt abstract virtual System.String Verse.Entity::get_Label()
IL_4336: call static Verse.NamedArgument
Verse.NamedArgument::op_Implicit(System.String value)
IL_433B: ldloc.s 121 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_33)
IL_433D: ldfld RimWorld.Apparel RimWorld.<>c__DisplayClass10_33::apparel
IL_4342: call static Verse.NamedArgument
Verse.NamedArgument::op_Implicit(Verse.Thing value)
IL_4347: call static Verse.TaggedString
Verse.TranslatorFormattedStringExtensions::Translate(System.String key,
Verse.NamedArgument arg1, Verse.NamedArgument arg2)
IL_434C: ldstr ": "
IL_4351: call static Verse.TaggedString
Verse.TaggedString::op_Addition(Verse.TaggedString t1, System.String t2)
IL_4356: ldstr "NoPath"
IL_435B: call static Verse.TaggedString
Verse.Translator::Translate(System.String key)
IL_4360: stloc.s 11 (Verse.TaggedString)
IL_4362: ldloca.s 11 (Verse.TaggedString)
IL_4364: call Verse.TaggedString Verse.TaggedString::CapitalizeFirst()
IL_4369: call static Verse.TaggedString
Verse.TaggedString::op_Addition(Verse.TaggedString t1, Verse.TaggedString t2)
IL_436E: call static System.String
Verse.TaggedString::op_Implicit(Verse.TaggedString taggedString)
IL_4373: ldnull
IL_4374: ldc.i4.4
IL_4375: ldnull
IL_4376: ldnull
IL_4377: ldc.r4 0
IL_437C: ldnull
IL_437D: ldnull
IL_437E: ldc.i4.1
IL_437F: ldc.i4.0
IL_4380: newobj System.Void Verse.FloatMenuOption::.ctor(System.String
label, System.Action action, Verse.MenuOptionPriority priority,
System.Action`1<UnityEngine.Rect> mouseoverGuiAction, Verse.Thing
revalidateClickTarget, System.Single extraPartWidth,
System.Func`2<UnityEngine.Rect, System.Boolean> extraPartOnGUI,
RimWorld.Planet.WorldObject revalidateWorldClickTarget, System.Boolean
playSelectionSound, System.Int32 orderInPriority)
IL_4385: stloc.s 124 (Verse.FloatMenuOption)
IL_4387: br => Label368
IL_438C: Label367
IL_438C: ldloc.s 121 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_33)
IL_438E: ldfld RimWorld.Apparel RimWorld.<>c__DisplayClass10_33::apparel
IL_4393: call static System.Boolean
RimWorld.FireUtility::IsBurning(Verse.Thing t)
IL_4398: brfalse => Label369
IL_439D: ldloc.s 122 (System.String)
IL_439F: ldloc.s 121 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_33)
IL_43A1: ldfld RimWorld.Apparel RimWorld.<>c__DisplayClass10_33::apparel
IL_43A6: callvirt abstract virtual System.String Verse.Entity::get_Label()
IL_43AB: call static Verse.NamedArgument
Verse.NamedArgument::op_Implicit(System.String value)
IL_43B0: ldloc.s 121 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_33)
IL_43B2: ldfld RimWorld.Apparel RimWorld.<>c__DisplayClass10_33::apparel
IL_43B7: call static Verse.NamedArgument
Verse.NamedArgument::op_Implicit(Verse.Thing value)
IL_43BC: call static Verse.TaggedString
Verse.TranslatorFormattedStringExtensions::Translate(System.String key,
Verse.NamedArgument arg1, Verse.NamedArgument arg2)
IL_43C1: ldstr ": "
IL_43C6: call static Verse.TaggedString
Verse.TaggedString::op_Addition(Verse.TaggedString t1, System.String t2)
IL_43CB: ldstr "Burning"
IL_43D0: call static Verse.TaggedString
Verse.Translator::Translate(System.String key)
IL_43D5: call static Verse.TaggedString
Verse.TaggedString::op_Addition(Verse.TaggedString t1, Verse.TaggedString t2)
IL_43DA: call static System.String
Verse.TaggedString::op_Implicit(Verse.TaggedString taggedString)
IL_43DF: ldnull
IL_43E0: ldc.i4.4
IL_43E1: ldnull
IL_43E2: ldnull
IL_43E3: ldc.r4 0
IL_43E8: ldnull
IL_43E9: ldnull
IL_43EA: ldc.i4.1
IL_43EB: ldc.i4.0
IL_43EC: newobj System.Void Verse.FloatMenuOption::.ctor(System.String
label, System.Action action, Verse.MenuOptionPriority priority,
System.Action`1<UnityEngine.Rect> mouseoverGuiAction, Verse.Thing
revalidateClickTarget, System.Single extraPartWidth,
System.Func`2<UnityEngine.Rect, System.Boolean> extraPartOnGUI,
RimWorld.Planet.WorldObject revalidateWorldClickTarget, System.Boolean
playSelectionSound, System.Int32 orderInPriority)
IL_43F1: stloc.s 124 (Verse.FloatMenuOption)
IL_43F3: br => Label370
IL_43F8: Label369
IL_43F8: ldloc.s 121 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_33)
IL_43FA: ldfld RimWorld.<>c__DisplayClass10_0
RimWorld.<>c__DisplayClass10_33::CS$<>8__locals32
IL_43FF: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_4404: ldfld RimWorld.Pawn_ApparelTracker Verse.Pawn::apparel
IL_4409: ldloc.s 121 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_33)
IL_440B: ldfld RimWorld.Apparel RimWorld.<>c__DisplayClass10_33::apparel
IL_4410: callvirt System.Boolean
RimWorld.Pawn_ApparelTracker::WouldReplaceLockedApparel(RimWorld.Apparel
newApparel)
IL_4415: brfalse => Label371
IL_441A: ldloc.s 122 (System.String)
IL_441C: ldloc.s 121 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_33)
IL_441E: ldfld RimWorld.Apparel RimWorld.<>c__DisplayClass10_33::apparel
IL_4423: callvirt abstract virtual System.String Verse.Entity::get_Label()
IL_4428: call static Verse.NamedArgument
Verse.NamedArgument::op_Implicit(System.String value)
IL_442D: ldloc.s 121 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_33)
IL_442F: ldfld RimWorld.Apparel RimWorld.<>c__DisplayClass10_33::apparel
IL_4434: call static Verse.NamedArgument
Verse.NamedArgument::op_Implicit(Verse.Thing value)
IL_4439: call static Verse.TaggedString
Verse.TranslatorFormattedStringExtensions::Translate(System.String key,
Verse.NamedArgument arg1, Verse.NamedArgument arg2)
IL_443E: ldstr ": "
IL_4443: call static Verse.TaggedString
Verse.TaggedString::op_Addition(Verse.TaggedString t1, System.String t2)
IL_4448: ldstr "WouldReplaceLockedApparel"
IL_444D: call static Verse.TaggedString
Verse.Translator::Translate(System.String key)
IL_4452: stloc.s 11 (Verse.TaggedString)
IL_4454: ldloca.s 11 (Verse.TaggedString)
IL_4456: call Verse.TaggedString Verse.TaggedString::CapitalizeFirst()
IL_445B: call static Verse.TaggedString
Verse.TaggedString::op_Addition(Verse.TaggedString t1, Verse.TaggedString t2)
IL_4460: call static System.String
Verse.TaggedString::op_Implicit(Verse.TaggedString taggedString)
IL_4465: ldnull
IL_4466: ldc.i4.4
IL_4467: ldnull
IL_4468: ldnull
IL_4469: ldc.r4 0
IL_446E: ldnull
IL_446F: ldnull
IL_4470: ldc.i4.1
IL_4471: ldc.i4.0
IL_4472: newobj System.Void Verse.FloatMenuOption::.ctor(System.String
label, System.Action action, Verse.MenuOptionPriority priority,
System.Action`1<UnityEngine.Rect> mouseoverGuiAction, Verse.Thing
revalidateClickTarget, System.Single extraPartWidth,
System.Func`2<UnityEngine.Rect, System.Boolean> extraPartOnGUI,
RimWorld.Planet.WorldObject revalidateWorldClickTarget, System.Boolean
playSelectionSound, System.Int32 orderInPriority)
IL_4477: stloc.s 124 (Verse.FloatMenuOption)
IL_4479: br => Label372
IL_447E: Label371
IL_447E: ldloc.s 121 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_33)
IL_4480: ldfld RimWorld.<>c__DisplayClass10_0
RimWorld.<>c__DisplayClass10_33::CS$<>8__locals32
IL_4485: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_448A: ldloc.s 121 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_33)
IL_448C: ldfld RimWorld.Apparel RimWorld.<>c__DisplayClass10_33::apparel
IL_4491: ldfld Verse.ThingDef Verse.Thing::def
IL_4496: call static System.Boolean
RimWorld.ApparelUtility::HasPartsToWear(Verse.Pawn p, Verse.ThingDef apparel)
IL_449B: brtrue => Label373
IL_44A0: ldloc.s 122 (System.String)
IL_44A2: ldloc.s 121 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_33)
IL_44A4: ldfld RimWorld.Apparel RimWorld.<>c__DisplayClass10_33::apparel
IL_44A9: callvirt abstract virtual System.String Verse.Entity::get_Label()
IL_44AE: call static Verse.NamedArgument
Verse.NamedArgument::op_Implicit(System.String value)
IL_44B3: ldloc.s 121 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_33)
IL_44B5: ldfld RimWorld.Apparel RimWorld.<>c__DisplayClass10_33::apparel
IL_44BA: call static Verse.NamedArgument
Verse.NamedArgument::op_Implicit(Verse.Thing value)
IL_44BF: call static Verse.TaggedString
Verse.TranslatorFormattedStringExtensions::Translate(System.String key,
Verse.NamedArgument arg1, Verse.NamedArgument arg2)
IL_44C4: ldstr ": "
IL_44C9: call static Verse.TaggedString
Verse.TaggedString::op_Addition(Verse.TaggedString t1, System.String t2)
IL_44CE: ldstr "CannotWearBecauseOfMissingBodyParts"
IL_44D3: call static Verse.TaggedString
Verse.Translator::Translate(System.String key)
IL_44D8: stloc.s 11 (Verse.TaggedString)
IL_44DA: ldloca.s 11 (Verse.TaggedString)
IL_44DC: call Verse.TaggedString Verse.TaggedString::CapitalizeFirst()
IL_44E1: call static Verse.TaggedString
Verse.TaggedString::op_Addition(Verse.TaggedString t1, Verse.TaggedString t2)
IL_44E6: call static System.String
Verse.TaggedString::op_Implicit(Verse.TaggedString taggedString)
IL_44EB: ldnull
IL_44EC: ldc.i4.4
IL_44ED: ldnull
IL_44EE: ldnull
IL_44EF: ldc.r4 0
IL_44F4: ldnull
IL_44F5: ldnull
IL_44F6: ldc.i4.1
IL_44F7: ldc.i4.0
IL_44F8: newobj System.Void Verse.FloatMenuOption::.ctor(System.String
label, System.Action action, Verse.MenuOptionPriority priority,
System.Action`1<UnityEngine.Rect> mouseoverGuiAction, Verse.Thing
revalidateClickTarget, System.Single extraPartWidth,
System.Func`2<UnityEngine.Rect, System.Boolean> extraPartOnGUI,
RimWorld.Planet.WorldObject revalidateWorldClickTarget, System.Boolean
playSelectionSound, System.Int32 orderInPriority)
IL_44FD: stloc.s 124 (Verse.FloatMenuOption)
IL_44FF: br => Label374
IL_4504: Label373
IL_4504: ldloc.s 121 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_33)
IL_4506: ldfld RimWorld.Apparel RimWorld.<>c__DisplayClass10_33::apparel
IL_450B: ldloc.s 121 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_33)
IL_450D: ldfld RimWorld.<>c__DisplayClass10_0
RimWorld.<>c__DisplayClass10_33::CS$<>8__locals32
IL_4512: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_4517: ldloca.s 125 (System.String)
IL_4519: ldc.i4.1
IL_451A: call static System.Boolean
RimWorld.EquipmentUtility::CanEquip(Verse.Thing thing, Verse.Pawn pawn,
System.String& cantReason, System.Boolean checkBonded)
IL_451F: brtrue => Label375
IL_4524: ldloc.s 122 (System.String)
IL_4526: ldloc.s 121 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_33)
IL_4528: ldfld RimWorld.Apparel RimWorld.<>c__DisplayClass10_33::apparel
IL_452D: callvirt abstract virtual System.String Verse.Entity::get_Label()
IL_4532: call static Verse.NamedArgument
Verse.NamedArgument::op_Implicit(System.String value)
IL_4537: ldloc.s 121 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_33)
IL_4539: ldfld RimWorld.Apparel RimWorld.<>c__DisplayClass10_33::apparel
IL_453E: call static Verse.NamedArgument
Verse.NamedArgument::op_Implicit(Verse.Thing value)
IL_4543: call static Verse.TaggedString
Verse.TranslatorFormattedStringExtensions::Translate(System.String key,
Verse.NamedArgument arg1, Verse.NamedArgument arg2)
IL_4548: ldstr ": "
IL_454D: call static Verse.TaggedString
Verse.TaggedString::op_Addition(Verse.TaggedString t1, System.String t2)
IL_4552: ldloc.s 125 (System.String)
IL_4554: call static Verse.TaggedString
Verse.TaggedString::op_Addition(Verse.TaggedString t1, System.String t2)
IL_4559: call static System.String
Verse.TaggedString::op_Implicit(Verse.TaggedString taggedString)
IL_455E: ldnull
IL_455F: ldc.i4.4
IL_4560: ldnull
IL_4561: ldnull
IL_4562: ldc.r4 0
IL_4567: ldnull
IL_4568: ldnull
IL_4569: ldc.i4.1
IL_456A: ldc.i4.0
IL_456B: newobj System.Void Verse.FloatMenuOption::.ctor(System.String
label, System.Action action, Verse.MenuOptionPriority priority,
System.Action`1<UnityEngine.Rect> mouseoverGuiAction, Verse.Thing
revalidateClickTarget, System.Single extraPartWidth,
System.Func`2<UnityEngine.Rect, System.Boolean> extraPartOnGUI,
RimWorld.Planet.WorldObject revalidateWorldClickTarget, System.Boolean
playSelectionSound, System.Int32 orderInPriority)
IL_4570: stloc.s 124 (Verse.FloatMenuOption)
IL_4572: br => Label376
IL_4577: Label375
IL_4577: ldloc.s 123 (System.String)
IL_4579: ldloc.s 121 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_33)
IL_457B: ldfld RimWorld.Apparel RimWorld.<>c__DisplayClass10_33::apparel
IL_4580: callvirt virtual System.String Verse.Entity::get_LabelShort()
IL_4585: call static Verse.NamedArgument
Verse.NamedArgument::op_Implicit(System.String value)
IL_458A: ldloc.s 121 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_33)
IL_458C: ldfld RimWorld.Apparel RimWorld.<>c__DisplayClass10_33::apparel
IL_4591: call static Verse.NamedArgument
Verse.NamedArgument::op_Implicit(Verse.Thing value)
IL_4596: call static Verse.TaggedString
Verse.TranslatorFormattedStringExtensions::Translate(System.String key,
Verse.NamedArgument arg1, Verse.NamedArgument arg2)
IL_459B: call static System.String
Verse.TaggedString::op_Implicit(Verse.TaggedString taggedString)
IL_45A0: ldloc.s 121 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_33)
IL_45A2: ldftn System.Void
RimWorld.<>c__DisplayClass10_33::<AddHumanlikeOrders>b__43()
IL_45A8: newobj System.Void System.Action::.ctor(System.Object object,
System.IntPtr method)
IL_45AD: ldc.i4.5
IL_45AE: ldnull
IL_45AF: ldnull
IL_45B0: ldc.r4 0
IL_45B5: ldnull
IL_45B6: ldnull
IL_45B7: ldc.i4.1
IL_45B8: ldc.i4.0
IL_45B9: newobj System.Void Verse.FloatMenuOption::.ctor(System.String
label, System.Action action, Verse.MenuOptionPriority priority,
System.Action`1<UnityEngine.Rect> mouseoverGuiAction, Verse.Thing
revalidateClickTarget, System.Single extraPartWidth,
System.Func`2<UnityEngine.Rect, System.Boolean> extraPartOnGUI,
RimWorld.Planet.WorldObject revalidateWorldClickTarget, System.Boolean
playSelectionSound, System.Int32 orderInPriority)
IL_45BE: ldloc.s 121 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_33)
IL_45C0: ldfld RimWorld.<>c__DisplayClass10_0
RimWorld.<>c__DisplayClass10_33::CS$<>8__locals32
IL_45C5: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_45CA: ldloc.s 121 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_33)
IL_45CC: ldfld RimWorld.Apparel RimWorld.<>c__DisplayClass10_33::apparel
IL_45D1: call static Verse.LocalTargetInfo
Verse.LocalTargetInfo::op_Implicit(Verse.Thing t)
IL_45D6: ldstr "ReservedBy"
IL_45DB: ldnull
IL_45DC: call static Verse.FloatMenuOption
RimWorld.FloatMenuUtility::DecoratePrioritizedTask(Verse.FloatMenuOption option,
Verse.Pawn pawn, Verse.LocalTargetInfo target, System.String reservedText,
Verse.ReservationLayerDef layer)
IL_45E1: stloc.s 124 (Verse.FloatMenuOption)
IL_45E3: Label368
IL_45E3: Label370
IL_45E3: Label372
IL_45E3: Label374
IL_45E3: Label376
IL_45E3: ldarg.2
IL_45E4: ldloc.s 124 (Verse.FloatMenuOption)
IL_45E6: callvirt virtual System.Void
System.Collections.Generic.List`1<Verse.FloatMenuOption>::Add(Verse.FloatMenuOption
item)
IL_45EB: Label364
IL_45EB: Label365
IL_45EB: ldloc.s 60
(System.Collections.Generic.IEnumerator`1[Verse.Thing])
IL_45ED: callvirt abstract virtual System.Boolean
System.Collections.IEnumerator::MoveNext()
IL_45F2: brtrue => Label377
IL_45F7: leave => Label378
IL_45FC: leave => (autogenerated)
} // end try
.finally
{
IL_4601: ldloc.s 60
(System.Collections.Generic.IEnumerator`1[Verse.Thing])
IL_4603: brfalse => Label379
IL_4608: ldloc.s 60
(System.Collections.Generic.IEnumerator`1[Verse.Thing])
IL_460A: callvirt abstract virtual System.Void
System.IDisposable::Dispose()
IL_460F: Label379
IL_460F: endfinally
IL_4610: leave => (autogenerated)
} // end handler
IL_4611: Label363
IL_4611: Label378
IL_4611: ldloc.0
IL_4612: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_4617: call static System.Boolean
RimWorld.Planet.CaravanFormingUtility::IsFormingCaravan(Verse.Pawn p)
IL_461C: brfalse => Label380
IL_4621: ldloc.1
IL_4622: ldloc.0
IL_4623: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_4628: callvirt virtual Verse.Map Verse.Thing::get_Map()
IL_462D: call static System.Collections.Generic.IEnumerable`1<Verse.Thing>
Verse.GridsUtility::GetItems(Verse.IntVec3 c, Verse.Map map)
IL_4632: callvirt abstract virtual
System.Collections.Generic.IEnumerator`1<Verse.Thing>
System.Collections.Generic.IEnumerable`1<Verse.Thing>::GetEnumerator()
IL_4637: stloc.s 60 (System.Collections.Generic.IEnumerator`1[Verse.Thing])
.try
{
IL_4639: br => Label381
IL_463E: Label395
IL_463E: newobj System.Void RimWorld.<>c__DisplayClass10_34::.ctor()
IL_4643: stloc.s 126 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_34)
IL_4645: ldloc.s 126 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_34)
IL_4647: ldloc.0
IL_4648: stfld RimWorld.<>c__DisplayClass10_0
RimWorld.<>c__DisplayClass10_34::CS$<>8__locals33
IL_464D: ldloc.s 126 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_34)
IL_464F: ldloc.s 60
(System.Collections.Generic.IEnumerator`1[Verse.Thing])
IL_4651: callvirt abstract virtual Verse.Thing
System.Collections.Generic.IEnumerator`1<Verse.Thing>::get_Current()
IL_4656: stfld Verse.Thing RimWorld.<>c__DisplayClass10_34::item
IL_465B: newobj System.Void RimWorld.<>c__DisplayClass10_35::.ctor()
IL_4660: stloc.s 127 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_35)
IL_4662: ldloc.s 127 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_35)
IL_4664: ldloc.s 126 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_34)
IL_4666: stfld RimWorld.<>c__DisplayClass10_34
RimWorld.<>c__DisplayClass10_35::CS$<>8__locals34
IL_466B: ldloc.s 127 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_35)
IL_466D: ldfld RimWorld.<>c__DisplayClass10_34
RimWorld.<>c__DisplayClass10_35::CS$<>8__locals34
IL_4672: ldfld Verse.Thing RimWorld.<>c__DisplayClass10_34::item
IL_4677: ldfld Verse.ThingDef Verse.Thing::def
IL_467C: callvirt System.Boolean Verse.ThingDef::get_EverHaulable()
IL_4681: brfalse => Label382
IL_4686: ldloc.s 127 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_35)
IL_4688: ldfld RimWorld.<>c__DisplayClass10_34
RimWorld.<>c__DisplayClass10_35::CS$<>8__locals34
IL_468D: ldfld Verse.Thing RimWorld.<>c__DisplayClass10_34::item
IL_4692: ldfld Verse.ThingDef Verse.Thing::def
IL_4697: ldfld System.Boolean Verse.ThingDef::canLoadIntoCaravan
IL_469C: brfalse => Label383
IL_46A1: ldloc.s 127 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_35)
IL_46A3: ldloc.s 127 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_35)
IL_46A5: ldfld RimWorld.<>c__DisplayClass10_34
RimWorld.<>c__DisplayClass10_35::CS$<>8__locals34
IL_46AA: ldfld RimWorld.<>c__DisplayClass10_0
RimWorld.<>c__DisplayClass10_34::CS$<>8__locals33
IL_46AF: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_46B4: call static Verse.Pawn
RimWorld.GiveToPackAnimalUtility::UsablePackAnimalWithTheMostFreeSpace(Verse.Pawn
pawn)
IL_46B9: dup
IL_46BA: brtrue => Label384
IL_46BF: pop
IL_46C0: ldloc.s 127 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_35)
IL_46C2: ldfld RimWorld.<>c__DisplayClass10_34
RimWorld.<>c__DisplayClass10_35::CS$<>8__locals34
IL_46C7: ldfld RimWorld.<>c__DisplayClass10_0
RimWorld.<>c__DisplayClass10_34::CS$<>8__locals33
IL_46CC: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_46D1: Label384
IL_46D1: stfld Verse.Pawn RimWorld.<>c__DisplayClass10_35::packTarget
IL_46D6: ldloc.s 127 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_35)
IL_46D8: ldloc.s 127 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_35)
IL_46DA: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_35::packTarget
IL_46DF: ldloc.s 127 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_35)
IL_46E1: ldfld RimWorld.<>c__DisplayClass10_34
RimWorld.<>c__DisplayClass10_35::CS$<>8__locals34
IL_46E6: ldfld RimWorld.<>c__DisplayClass10_0
RimWorld.<>c__DisplayClass10_34::CS$<>8__locals33
IL_46EB: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_46F0: beq => Label385
IL_46F5: ldsfld Verse.JobDef RimWorld.JobDefOf::GiveToPackAnimal
IL_46FA: br => Label386
IL_46FF: Label385
IL_46FF: ldsfld Verse.JobDef RimWorld.JobDefOf::TakeInventory
IL_4704: Label386
IL_4704: stfld Verse.JobDef RimWorld.<>c__DisplayClass10_35::jobDef
IL_4709: ldloc.s 127 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_35)
IL_470B: ldfld RimWorld.<>c__DisplayClass10_34
RimWorld.<>c__DisplayClass10_35::CS$<>8__locals34
IL_4710: ldfld RimWorld.<>c__DisplayClass10_0
RimWorld.<>c__DisplayClass10_34::CS$<>8__locals33
IL_4715: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_471A: ldloc.s 127 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_35)
IL_471C: ldfld RimWorld.<>c__DisplayClass10_34
RimWorld.<>c__DisplayClass10_35::CS$<>8__locals34
IL_4721: ldfld Verse.Thing RimWorld.<>c__DisplayClass10_34::item
IL_4726: call static Verse.LocalTargetInfo
Verse.LocalTargetInfo::op_Implicit(Verse.Thing t)
IL_472B: ldc.i4.3
IL_472C: ldc.i4.3
IL_472D: ldc.i4.0
IL_472E: ldc.i4.0
IL_472F: ldc.i4.0
IL_4730: call static System.Boolean
Verse.ReachabilityUtility::CanReach(Verse.Pawn pawn, Verse.LocalTargetInfo dest,
Verse.AI.PathEndMode peMode, Verse.Danger maxDanger, System.Boolean canBashDoors,
System.Boolean canBashFences, Verse.TraverseMode mode)
IL_4735: brtrue => Label387
IL_473A: ldarg.2
IL_473B: ldstr "CannotLoadIntoCaravan"
IL_4740: ldloc.s 127 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_35)
IL_4742: ldfld RimWorld.<>c__DisplayClass10_34
RimWorld.<>c__DisplayClass10_35::CS$<>8__locals34
IL_4747: ldfld Verse.Thing RimWorld.<>c__DisplayClass10_34::item
IL_474C: callvirt abstract virtual System.String Verse.Entity::get_Label()
IL_4751: call static Verse.NamedArgument
Verse.NamedArgument::op_Implicit(System.String value)
IL_4756: ldloc.s 127 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_35)
IL_4758: ldfld RimWorld.<>c__DisplayClass10_34
RimWorld.<>c__DisplayClass10_35::CS$<>8__locals34
IL_475D: ldfld Verse.Thing RimWorld.<>c__DisplayClass10_34::item
IL_4762: call static Verse.NamedArgument
Verse.NamedArgument::op_Implicit(Verse.Thing value)
IL_4767: call static Verse.TaggedString
Verse.TranslatorFormattedStringExtensions::Translate(System.String key,
Verse.NamedArgument arg1, Verse.NamedArgument arg2)
IL_476C: ldstr ": "
IL_4771: call static Verse.TaggedString
Verse.TaggedString::op_Addition(Verse.TaggedString t1, System.String t2)
IL_4776: ldstr "NoPath"
IL_477B: call static Verse.TaggedString
Verse.Translator::Translate(System.String key)
IL_4780: stloc.s 11 (Verse.TaggedString)
IL_4782: ldloca.s 11 (Verse.TaggedString)
IL_4784: call Verse.TaggedString Verse.TaggedString::CapitalizeFirst()
IL_4789: call static Verse.TaggedString
Verse.TaggedString::op_Addition(Verse.TaggedString t1, Verse.TaggedString t2)
IL_478E: call static System.String
Verse.TaggedString::op_Implicit(Verse.TaggedString taggedString)
IL_4793: ldnull
IL_4794: ldc.i4.4
IL_4795: ldnull
IL_4796: ldnull
IL_4797: ldc.r4 0
IL_479C: ldnull
IL_479D: ldnull
IL_479E: ldc.i4.1
IL_479F: ldc.i4.0
IL_47A0: newobj System.Void Verse.FloatMenuOption::.ctor(System.String
label, System.Action action, Verse.MenuOptionPriority priority,
System.Action`1<UnityEngine.Rect> mouseoverGuiAction, Verse.Thing
revalidateClickTarget, System.Single extraPartWidth,
System.Func`2<UnityEngine.Rect, System.Boolean> extraPartOnGUI,
RimWorld.Planet.WorldObject revalidateWorldClickTarget, System.Boolean
playSelectionSound, System.Int32 orderInPriority)
IL_47A5: callvirt virtual System.Void
System.Collections.Generic.List`1<Verse.FloatMenuOption>::Add(Verse.FloatMenuOption
item)
IL_47AA: br => Label388
IL_47AF: Label387
IL_47AF: ldloc.s 127 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_35)
IL_47B1: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_35::packTarget
IL_47B6: ldloc.s 127 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_35)
IL_47B8: ldfld RimWorld.<>c__DisplayClass10_34
RimWorld.<>c__DisplayClass10_35::CS$<>8__locals34
IL_47BD: ldfld Verse.Thing RimWorld.<>c__DisplayClass10_34::item
IL_47C2: ldc.i4.1
IL_47C3: call static System.Boolean
RimWorld.MassUtility::WillBeOverEncumberedAfterPickingUp(Verse.Pawn pawn,
Verse.Thing thing, System.Int32 count)
IL_47C8: brfalse => Label389
IL_47CD: ldarg.2
IL_47CE: ldstr "CannotLoadIntoCaravan"
IL_47D3: ldloc.s 127 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_35)
IL_47D5: ldfld RimWorld.<>c__DisplayClass10_34
RimWorld.<>c__DisplayClass10_35::CS$<>8__locals34
IL_47DA: ldfld Verse.Thing RimWorld.<>c__DisplayClass10_34::item
IL_47DF: callvirt abstract virtual System.String Verse.Entity::get_Label()
IL_47E4: call static Verse.NamedArgument
Verse.NamedArgument::op_Implicit(System.String value)
IL_47E9: ldloc.s 127 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_35)
IL_47EB: ldfld RimWorld.<>c__DisplayClass10_34
RimWorld.<>c__DisplayClass10_35::CS$<>8__locals34
IL_47F0: ldfld Verse.Thing RimWorld.<>c__DisplayClass10_34::item
IL_47F5: call static Verse.NamedArgument
Verse.NamedArgument::op_Implicit(Verse.Thing value)
IL_47FA: call static Verse.TaggedString
Verse.TranslatorFormattedStringExtensions::Translate(System.String key,
Verse.NamedArgument arg1, Verse.NamedArgument arg2)
IL_47FF: ldstr ": "
IL_4804: call static Verse.TaggedString
Verse.TaggedString::op_Addition(Verse.TaggedString t1, System.String t2)
IL_4809: ldstr "TooHeavy"
IL_480E: call static Verse.TaggedString
Verse.Translator::Translate(System.String key)
IL_4813: call static Verse.TaggedString
Verse.TaggedString::op_Addition(Verse.TaggedString t1, Verse.TaggedString t2)
IL_4818: call static System.String
Verse.TaggedString::op_Implicit(Verse.TaggedString taggedString)
IL_481D: ldnull
IL_481E: ldc.i4.4
IL_481F: ldnull
IL_4820: ldnull
IL_4821: ldc.r4 0
IL_4826: ldnull
IL_4827: ldnull
IL_4828: ldc.i4.1
IL_4829: ldc.i4.0
IL_482A: newobj System.Void Verse.FloatMenuOption::.ctor(System.String
label, System.Action action, Verse.MenuOptionPriority priority,
System.Action`1<UnityEngine.Rect> mouseoverGuiAction, Verse.Thing
revalidateClickTarget, System.Single extraPartWidth,
System.Func`2<UnityEngine.Rect, System.Boolean> extraPartOnGUI,
RimWorld.Planet.WorldObject revalidateWorldClickTarget, System.Boolean
playSelectionSound, System.Int32 orderInPriority)
IL_482F: callvirt virtual System.Void
System.Collections.Generic.List`1<Verse.FloatMenuOption>::Add(Verse.FloatMenuOption
item)
IL_4834: br => Label390
IL_4839: Label389
IL_4839: newobj System.Void RimWorld.<>c__DisplayClass10_36::.ctor()
IL_483E: stloc.s 128 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_36)
IL_4840: ldloc.s 128 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_36)
IL_4842: ldloc.s 127 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_35)
IL_4844: stfld RimWorld.<>c__DisplayClass10_35
RimWorld.<>c__DisplayClass10_36::CS$<>8__locals35
IL_4849: ldloc.s 128 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_36)
IL_484B: ldfld RimWorld.<>c__DisplayClass10_35
RimWorld.<>c__DisplayClass10_36::CS$<>8__locals35
IL_4850: ldfld RimWorld.<>c__DisplayClass10_34
RimWorld.<>c__DisplayClass10_35::CS$<>8__locals34
IL_4855: ldfld RimWorld.<>c__DisplayClass10_0
RimWorld.<>c__DisplayClass10_34::CS$<>8__locals33
IL_485A: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_485F: call static Verse.AI.Group.Lord
Verse.AI.Group.LordUtility::GetLord(Verse.Pawn p)
IL_4864: callvirt Verse.AI.Group.LordJob Verse.AI.Group.Lord::get_LordJob()
IL_4869: castclass RimWorld.LordJob_FormAndSendCaravan
IL_486E: stloc.s 129 (RimWorld.LordJob_FormAndSendCaravan)
IL_4870: ldloc.s 128 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_36)
IL_4872: ldloc.s 129 (RimWorld.LordJob_FormAndSendCaravan)
IL_4874: call static System.Single
RimWorld.Planet.CaravanFormingUtility::CapacityLeft(RimWorld.LordJob_FormAndSendCar
avan lordJob)
IL_4879: stfld System.Single
RimWorld.<>c__DisplayClass10_36::capacityLeft
IL_487E: ldloc.s 128 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_36)
IL_4880: ldfld RimWorld.<>c__DisplayClass10_35
RimWorld.<>c__DisplayClass10_36::CS$<>8__locals35
IL_4885: ldfld RimWorld.<>c__DisplayClass10_34
RimWorld.<>c__DisplayClass10_35::CS$<>8__locals34
IL_488A: ldfld Verse.Thing RimWorld.<>c__DisplayClass10_34::item
IL_488F: ldfld System.Int32 Verse.Thing::stackCount
IL_4894: ldc.i4.1
IL_4895: bne.un => Label391
IL_489A: ldloc.s 128 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_36)
IL_489C: ldfld System.Single
RimWorld.<>c__DisplayClass10_36::capacityLeft
IL_48A1: ldloc.s 128 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_36)
IL_48A3: ldfld RimWorld.<>c__DisplayClass10_35
RimWorld.<>c__DisplayClass10_36::CS$<>8__locals35
IL_48A8: ldfld RimWorld.<>c__DisplayClass10_34
RimWorld.<>c__DisplayClass10_35::CS$<>8__locals34
IL_48AD: ldfld Verse.Thing RimWorld.<>c__DisplayClass10_34::item
IL_48B2: ldsfld RimWorld.StatDef RimWorld.StatDefOf::Mass
IL_48B7: ldc.i4.1
IL_48B8: ldc.i4.m1
IL_48B9: call static System.Single
RimWorld.StatExtension::GetStatValue(Verse.Thing thing, RimWorld.StatDef stat,
System.Boolean applyPostProcess, System.Int32 cacheStaleAfterTicks)
IL_48BE: sub
IL_48BF: stloc.s 130 (System.Single)
IL_48C1: ldarg.2
IL_48C2: ldstr "LoadIntoCaravan"
IL_48C7: ldloc.s 128 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_36)
IL_48C9: ldfld RimWorld.<>c__DisplayClass10_35
RimWorld.<>c__DisplayClass10_36::CS$<>8__locals35
IL_48CE: ldfld RimWorld.<>c__DisplayClass10_34
RimWorld.<>c__DisplayClass10_35::CS$<>8__locals34
IL_48D3: ldfld Verse.Thing RimWorld.<>c__DisplayClass10_34::item
IL_48D8: callvirt abstract virtual System.String Verse.Entity::get_Label()
IL_48DD: call static Verse.NamedArgument
Verse.NamedArgument::op_Implicit(System.String value)
IL_48E2: ldloc.s 128 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_36)
IL_48E4: ldfld RimWorld.<>c__DisplayClass10_35
RimWorld.<>c__DisplayClass10_36::CS$<>8__locals35
IL_48E9: ldfld RimWorld.<>c__DisplayClass10_34
RimWorld.<>c__DisplayClass10_35::CS$<>8__locals34
IL_48EE: ldfld Verse.Thing RimWorld.<>c__DisplayClass10_34::item
IL_48F3: call static Verse.NamedArgument
Verse.NamedArgument::op_Implicit(Verse.Thing value)
IL_48F8: call static Verse.TaggedString
Verse.TranslatorFormattedStringExtensions::Translate(System.String key,
Verse.NamedArgument arg1, Verse.NamedArgument arg2)
IL_48FD: call static System.String
Verse.TaggedString::op_Implicit(Verse.TaggedString taggedString)
IL_4902: ldloc.s 130 (System.Single)
IL_4904: call static System.String
RimWorld.Planet.CaravanFormingUtility::AppendOverweightInfo(System.String text,
System.Single capacityLeft)
IL_4909: ldloc.s 128 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_36)
IL_490B: ldfld RimWorld.<>c__DisplayClass10_35
RimWorld.<>c__DisplayClass10_36::CS$<>8__locals35
IL_4910: ldftn System.Void
RimWorld.<>c__DisplayClass10_35::<AddHumanlikeOrders>b__46()
IL_4916: newobj System.Void System.Action::.ctor(System.Object object,
System.IntPtr method)
IL_491B: ldc.i4.5
IL_491C: ldnull
IL_491D: ldnull
IL_491E: ldc.r4 0
IL_4923: ldnull
IL_4924: ldnull
IL_4925: ldc.i4.1
IL_4926: ldc.i4.0
IL_4927: newobj System.Void Verse.FloatMenuOption::.ctor(System.String
label, System.Action action, Verse.MenuOptionPriority priority,
System.Action`1<UnityEngine.Rect> mouseoverGuiAction, Verse.Thing
revalidateClickTarget, System.Single extraPartWidth,
System.Func`2<UnityEngine.Rect, System.Boolean> extraPartOnGUI,
RimWorld.Planet.WorldObject revalidateWorldClickTarget, System.Boolean
playSelectionSound, System.Int32 orderInPriority)
IL_492C: ldloc.s 128 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_36)
IL_492E: ldfld RimWorld.<>c__DisplayClass10_35
RimWorld.<>c__DisplayClass10_36::CS$<>8__locals35
IL_4933: ldfld RimWorld.<>c__DisplayClass10_34
RimWorld.<>c__DisplayClass10_35::CS$<>8__locals34
IL_4938: ldfld RimWorld.<>c__DisplayClass10_0
RimWorld.<>c__DisplayClass10_34::CS$<>8__locals33
IL_493D: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_4942: ldloc.s 128 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_36)
IL_4944: ldfld RimWorld.<>c__DisplayClass10_35
RimWorld.<>c__DisplayClass10_36::CS$<>8__locals35
IL_4949: ldfld RimWorld.<>c__DisplayClass10_34
RimWorld.<>c__DisplayClass10_35::CS$<>8__locals34
IL_494E: ldfld Verse.Thing RimWorld.<>c__DisplayClass10_34::item
IL_4953: call static Verse.LocalTargetInfo
Verse.LocalTargetInfo::op_Implicit(Verse.Thing t)
IL_4958: ldstr "ReservedBy"
IL_495D: ldnull
IL_495E: call static Verse.FloatMenuOption
RimWorld.FloatMenuUtility::DecoratePrioritizedTask(Verse.FloatMenuOption option,
Verse.Pawn pawn, Verse.LocalTargetInfo target, System.String reservedText,
Verse.ReservationLayerDef layer)
IL_4963: callvirt virtual System.Void
System.Collections.Generic.List`1<Verse.FloatMenuOption>::Add(Verse.FloatMenuOption
item)
IL_4968: br => Label392
IL_496D: Label391
IL_496D: ldloc.s 128 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_36)
IL_496F: ldfld RimWorld.<>c__DisplayClass10_35
RimWorld.<>c__DisplayClass10_36::CS$<>8__locals35
IL_4974: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_35::packTarget
IL_4979: ldloc.s 128 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_36)
IL_497B: ldfld RimWorld.<>c__DisplayClass10_35
RimWorld.<>c__DisplayClass10_36::CS$<>8__locals35
IL_4980: ldfld RimWorld.<>c__DisplayClass10_34
RimWorld.<>c__DisplayClass10_35::CS$<>8__locals34
IL_4985: ldfld Verse.Thing RimWorld.<>c__DisplayClass10_34::item
IL_498A: ldloc.s 128 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_36)
IL_498C: ldfld RimWorld.<>c__DisplayClass10_35
RimWorld.<>c__DisplayClass10_36::CS$<>8__locals35
IL_4991: ldfld RimWorld.<>c__DisplayClass10_34
RimWorld.<>c__DisplayClass10_35::CS$<>8__locals34
IL_4996: ldfld Verse.Thing RimWorld.<>c__DisplayClass10_34::item
IL_499B: ldfld System.Int32 Verse.Thing::stackCount
IL_49A0: call static System.Boolean
RimWorld.MassUtility::WillBeOverEncumberedAfterPickingUp(Verse.Pawn pawn,
Verse.Thing thing, System.Int32 count)
IL_49A5: brfalse => Label393
IL_49AA: ldarg.2
IL_49AB: ldstr "CannotLoadIntoCaravanAll"
IL_49B0: ldloc.s 128 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_36)
IL_49B2: ldfld RimWorld.<>c__DisplayClass10_35
RimWorld.<>c__DisplayClass10_36::CS$<>8__locals35
IL_49B7: ldfld RimWorld.<>c__DisplayClass10_34
RimWorld.<>c__DisplayClass10_35::CS$<>8__locals34
IL_49BC: ldfld Verse.Thing RimWorld.<>c__DisplayClass10_34::item
IL_49C1: callvirt abstract virtual System.String Verse.Entity::get_Label()
IL_49C6: call static Verse.NamedArgument
Verse.NamedArgument::op_Implicit(System.String value)
IL_49CB: ldloc.s 128 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_36)
IL_49CD: ldfld RimWorld.<>c__DisplayClass10_35
RimWorld.<>c__DisplayClass10_36::CS$<>8__locals35
IL_49D2: ldfld RimWorld.<>c__DisplayClass10_34
RimWorld.<>c__DisplayClass10_35::CS$<>8__locals34
IL_49D7: ldfld Verse.Thing RimWorld.<>c__DisplayClass10_34::item
IL_49DC: call static Verse.NamedArgument
Verse.NamedArgument::op_Implicit(Verse.Thing value)
IL_49E1: call static Verse.TaggedString
Verse.TranslatorFormattedStringExtensions::Translate(System.String key,
Verse.NamedArgument arg1, Verse.NamedArgument arg2)
IL_49E6: ldstr ": "
IL_49EB: call static Verse.TaggedString
Verse.TaggedString::op_Addition(Verse.TaggedString t1, System.String t2)
IL_49F0: ldstr "TooHeavy"
IL_49F5: call static Verse.TaggedString
Verse.Translator::Translate(System.String key)
IL_49FA: call static Verse.TaggedString
Verse.TaggedString::op_Addition(Verse.TaggedString t1, Verse.TaggedString t2)
IL_49FF: call static System.String
Verse.TaggedString::op_Implicit(Verse.TaggedString taggedString)
IL_4A04: ldnull
IL_4A05: ldc.i4.4
IL_4A06: ldnull
IL_4A07: ldnull
IL_4A08: ldc.r4 0
IL_4A0D: ldnull
IL_4A0E: ldnull
IL_4A0F: ldc.i4.1
IL_4A10: ldc.i4.0
IL_4A11: newobj System.Void Verse.FloatMenuOption::.ctor(System.String
label, System.Action action, Verse.MenuOptionPriority priority,
System.Action`1<UnityEngine.Rect> mouseoverGuiAction, Verse.Thing
revalidateClickTarget, System.Single extraPartWidth,
System.Func`2<UnityEngine.Rect, System.Boolean> extraPartOnGUI,
RimWorld.Planet.WorldObject revalidateWorldClickTarget, System.Boolean
playSelectionSound, System.Int32 orderInPriority)
IL_4A16: callvirt virtual System.Void
System.Collections.Generic.List`1<Verse.FloatMenuOption>::Add(Verse.FloatMenuOption
item)
IL_4A1B: br => Label394
IL_4A20: Label393
IL_4A20: ldloc.s 128 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_36)
IL_4A22: ldfld System.Single
RimWorld.<>c__DisplayClass10_36::capacityLeft
IL_4A27: ldloc.s 128 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_36)
IL_4A29: ldfld RimWorld.<>c__DisplayClass10_35
RimWorld.<>c__DisplayClass10_36::CS$<>8__locals35
IL_4A2E: ldfld RimWorld.<>c__DisplayClass10_34
RimWorld.<>c__DisplayClass10_35::CS$<>8__locals34
IL_4A33: ldfld Verse.Thing RimWorld.<>c__DisplayClass10_34::item
IL_4A38: ldfld System.Int32 Verse.Thing::stackCount
IL_4A3D: conv.r4
IL_4A3E: ldloc.s 128 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_36)
IL_4A40: ldfld RimWorld.<>c__DisplayClass10_35
RimWorld.<>c__DisplayClass10_36::CS$<>8__locals35
IL_4A45: ldfld RimWorld.<>c__DisplayClass10_34
RimWorld.<>c__DisplayClass10_35::CS$<>8__locals34
IL_4A4A: ldfld Verse.Thing RimWorld.<>c__DisplayClass10_34::item
IL_4A4F: ldsfld RimWorld.StatDef RimWorld.StatDefOf::Mass
IL_4A54: ldc.i4.1
IL_4A55: ldc.i4.m1
IL_4A56: call static System.Single
RimWorld.StatExtension::GetStatValue(Verse.Thing thing, RimWorld.StatDef stat,
System.Boolean applyPostProcess, System.Int32 cacheStaleAfterTicks)
IL_4A5B: mul
IL_4A5C: sub
IL_4A5D: stloc.s 131 (System.Single)
IL_4A5F: ldarg.2
IL_4A60: ldstr "LoadIntoCaravanAll"
IL_4A65: ldloc.s 128 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_36)
IL_4A67: ldfld RimWorld.<>c__DisplayClass10_35
RimWorld.<>c__DisplayClass10_36::CS$<>8__locals35
IL_4A6C: ldfld RimWorld.<>c__DisplayClass10_34
RimWorld.<>c__DisplayClass10_35::CS$<>8__locals34
IL_4A71: ldfld Verse.Thing RimWorld.<>c__DisplayClass10_34::item
IL_4A76: callvirt abstract virtual System.String Verse.Entity::get_Label()
IL_4A7B: call static Verse.NamedArgument
Verse.NamedArgument::op_Implicit(System.String value)
IL_4A80: ldloc.s 128 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_36)
IL_4A82: ldfld RimWorld.<>c__DisplayClass10_35
RimWorld.<>c__DisplayClass10_36::CS$<>8__locals35
IL_4A87: ldfld RimWorld.<>c__DisplayClass10_34
RimWorld.<>c__DisplayClass10_35::CS$<>8__locals34
IL_4A8C: ldfld Verse.Thing RimWorld.<>c__DisplayClass10_34::item
IL_4A91: call static Verse.NamedArgument
Verse.NamedArgument::op_Implicit(Verse.Thing value)
IL_4A96: call static Verse.TaggedString
Verse.TranslatorFormattedStringExtensions::Translate(System.String key,
Verse.NamedArgument arg1, Verse.NamedArgument arg2)
IL_4A9B: call static System.String
Verse.TaggedString::op_Implicit(Verse.TaggedString taggedString)
IL_4AA0: ldloc.s 131 (System.Single)
IL_4AA2: call static System.String
RimWorld.Planet.CaravanFormingUtility::AppendOverweightInfo(System.String text,
System.Single capacityLeft)
IL_4AA7: ldloc.s 128 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_36)
IL_4AA9: ldfld RimWorld.<>c__DisplayClass10_35
RimWorld.<>c__DisplayClass10_36::CS$<>8__locals35
IL_4AAE: ldftn System.Void
RimWorld.<>c__DisplayClass10_35::<AddHumanlikeOrders>b__47()
IL_4AB4: newobj System.Void System.Action::.ctor(System.Object object,
System.IntPtr method)
IL_4AB9: ldc.i4.5
IL_4ABA: ldnull
IL_4ABB: ldnull
IL_4ABC: ldc.r4 0
IL_4AC1: ldnull
IL_4AC2: ldnull
IL_4AC3: ldc.i4.1
IL_4AC4: ldc.i4.0
IL_4AC5: newobj System.Void Verse.FloatMenuOption::.ctor(System.String
label, System.Action action, Verse.MenuOptionPriority priority,
System.Action`1<UnityEngine.Rect> mouseoverGuiAction, Verse.Thing
revalidateClickTarget, System.Single extraPartWidth,
System.Func`2<UnityEngine.Rect, System.Boolean> extraPartOnGUI,
RimWorld.Planet.WorldObject revalidateWorldClickTarget, System.Boolean
playSelectionSound, System.Int32 orderInPriority)
IL_4ACA: ldloc.s 128 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_36)
IL_4ACC: ldfld RimWorld.<>c__DisplayClass10_35
RimWorld.<>c__DisplayClass10_36::CS$<>8__locals35
IL_4AD1: ldfld RimWorld.<>c__DisplayClass10_34
RimWorld.<>c__DisplayClass10_35::CS$<>8__locals34
IL_4AD6: ldfld RimWorld.<>c__DisplayClass10_0
RimWorld.<>c__DisplayClass10_34::CS$<>8__locals33
IL_4ADB: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_4AE0: ldloc.s 128 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_36)
IL_4AE2: ldfld RimWorld.<>c__DisplayClass10_35
RimWorld.<>c__DisplayClass10_36::CS$<>8__locals35
IL_4AE7: ldfld RimWorld.<>c__DisplayClass10_34
RimWorld.<>c__DisplayClass10_35::CS$<>8__locals34
IL_4AEC: ldfld Verse.Thing RimWorld.<>c__DisplayClass10_34::item
IL_4AF1: call static Verse.LocalTargetInfo
Verse.LocalTargetInfo::op_Implicit(Verse.Thing t)
IL_4AF6: ldstr "ReservedBy"
IL_4AFB: ldnull
IL_4AFC: call static Verse.FloatMenuOption
RimWorld.FloatMenuUtility::DecoratePrioritizedTask(Verse.FloatMenuOption option,
Verse.Pawn pawn, Verse.LocalTargetInfo target, System.String reservedText,
Verse.ReservationLayerDef layer)
IL_4B01: callvirt virtual System.Void
System.Collections.Generic.List`1<Verse.FloatMenuOption>::Add(Verse.FloatMenuOption
item)
IL_4B06: Label394
IL_4B06: ldarg.2
IL_4B07: ldstr "LoadIntoCaravanSome"
IL_4B0C: ldloc.s 128 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_36)
IL_4B0E: ldfld RimWorld.<>c__DisplayClass10_35
RimWorld.<>c__DisplayClass10_36::CS$<>8__locals35
IL_4B13: ldfld RimWorld.<>c__DisplayClass10_34
RimWorld.<>c__DisplayClass10_35::CS$<>8__locals34
IL_4B18: ldfld Verse.Thing RimWorld.<>c__DisplayClass10_34::item
IL_4B1D: callvirt virtual System.String Verse.Thing::get_LabelNoCount()
IL_4B22: call static Verse.NamedArgument
Verse.NamedArgument::op_Implicit(System.String value)
IL_4B27: ldloc.s 128 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_36)
IL_4B29: ldfld RimWorld.<>c__DisplayClass10_35
RimWorld.<>c__DisplayClass10_36::CS$<>8__locals35
IL_4B2E: ldfld RimWorld.<>c__DisplayClass10_34
RimWorld.<>c__DisplayClass10_35::CS$<>8__locals34
IL_4B33: ldfld Verse.Thing RimWorld.<>c__DisplayClass10_34::item
IL_4B38: call static Verse.NamedArgument
Verse.NamedArgument::op_Implicit(Verse.Thing value)
IL_4B3D: call static Verse.TaggedString
Verse.TranslatorFormattedStringExtensions::Translate(System.String key,
Verse.NamedArgument arg1, Verse.NamedArgument arg2)
IL_4B42: call static System.String
Verse.TaggedString::op_Implicit(Verse.TaggedString taggedString)
IL_4B47: ldloc.s 128 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_36)
IL_4B49: ldftn System.Void
RimWorld.<>c__DisplayClass10_36::<AddHumanlikeOrders>b__45()
IL_4B4F: newobj System.Void System.Action::.ctor(System.Object object,
System.IntPtr method)
IL_4B54: ldc.i4.5
IL_4B55: ldnull
IL_4B56: ldnull
IL_4B57: ldc.r4 0
IL_4B5C: ldnull
IL_4B5D: ldnull
IL_4B5E: ldc.i4.1
IL_4B5F: ldc.i4.0
IL_4B60: newobj System.Void Verse.FloatMenuOption::.ctor(System.String
label, System.Action action, Verse.MenuOptionPriority priority,
System.Action`1<UnityEngine.Rect> mouseoverGuiAction, Verse.Thing
revalidateClickTarget, System.Single extraPartWidth,
System.Func`2<UnityEngine.Rect, System.Boolean> extraPartOnGUI,
RimWorld.Planet.WorldObject revalidateWorldClickTarget, System.Boolean
playSelectionSound, System.Int32 orderInPriority)
IL_4B65: ldloc.s 128 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_36)
IL_4B67: ldfld RimWorld.<>c__DisplayClass10_35
RimWorld.<>c__DisplayClass10_36::CS$<>8__locals35
IL_4B6C: ldfld RimWorld.<>c__DisplayClass10_34
RimWorld.<>c__DisplayClass10_35::CS$<>8__locals34
IL_4B71: ldfld RimWorld.<>c__DisplayClass10_0
RimWorld.<>c__DisplayClass10_34::CS$<>8__locals33
IL_4B76: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_4B7B: ldloc.s 128 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_36)
IL_4B7D: ldfld RimWorld.<>c__DisplayClass10_35
RimWorld.<>c__DisplayClass10_36::CS$<>8__locals35
IL_4B82: ldfld RimWorld.<>c__DisplayClass10_34
RimWorld.<>c__DisplayClass10_35::CS$<>8__locals34
IL_4B87: ldfld Verse.Thing RimWorld.<>c__DisplayClass10_34::item
IL_4B8C: call static Verse.LocalTargetInfo
Verse.LocalTargetInfo::op_Implicit(Verse.Thing t)
IL_4B91: ldstr "ReservedBy"
IL_4B96: ldnull
IL_4B97: call static Verse.FloatMenuOption
RimWorld.FloatMenuUtility::DecoratePrioritizedTask(Verse.FloatMenuOption option,
Verse.Pawn pawn, Verse.LocalTargetInfo target, System.String reservedText,
Verse.ReservationLayerDef layer)
IL_4B9C: callvirt virtual System.Void
System.Collections.Generic.List`1<Verse.FloatMenuOption>::Add(Verse.FloatMenuOption
item)
IL_4BA1: Label381
IL_4BA1: Label382
IL_4BA1: Label383
IL_4BA1: Label388
IL_4BA1: Label390
IL_4BA1: Label392
IL_4BA1: ldloc.s 60
(System.Collections.Generic.IEnumerator`1[Verse.Thing])
IL_4BA3: callvirt abstract virtual System.Boolean
System.Collections.IEnumerator::MoveNext()
IL_4BA8: brtrue => Label395
IL_4BAD: leave => Label396
IL_4BB2: leave => (autogenerated)
} // end try
.finally
{
IL_4BB7: ldloc.s 60
(System.Collections.Generic.IEnumerator`1[Verse.Thing])
IL_4BB9: brfalse => Label397
IL_4BBE: ldloc.s 60
(System.Collections.Generic.IEnumerator`1[Verse.Thing])
IL_4BC0: callvirt abstract virtual System.Void
System.IDisposable::Dispose()
IL_4BC5: Label397
IL_4BC5: endfinally
IL_4BC6: leave => (autogenerated)
} // end handler
IL_4BC7: Label380
IL_4BC7: Label396
IL_4BC7: ldloc.0
IL_4BC8: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_4BCD: call static System.Boolean
RimWorld.Planet.CaravanFormingUtility::IsFormingCaravan(Verse.Pawn p)
IL_4BD2: brtrue => Label398
IL_4BD7: ldloc.1
IL_4BD8: ldloc.0
IL_4BD9: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_4BDE: callvirt virtual Verse.Map Verse.Thing::get_Map()
IL_4BE3: call static System.Collections.Generic.IEnumerable`1<Verse.Thing>
Verse.GridsUtility::GetItems(Verse.IntVec3 c, Verse.Map map)
IL_4BE8: callvirt abstract virtual
System.Collections.Generic.IEnumerator`1<Verse.Thing>
System.Collections.Generic.IEnumerable`1<Verse.Thing>::GetEnumerator()
IL_4BED: stloc.s 60 (System.Collections.Generic.IEnumerator`1[Verse.Thing])
.try
{
IL_4BEF: br => Label399
IL_4BF4: Label417
IL_4BF4: newobj System.Void RimWorld.<>c__DisplayClass10_37::.ctor()
IL_4BF9: stloc.s 132 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_37)
IL_4BFB: ldloc.s 132 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_37)
IL_4BFD: ldloc.0
IL_4BFE: stfld RimWorld.<>c__DisplayClass10_0
RimWorld.<>c__DisplayClass10_37::CS$<>8__locals36
IL_4C03: ldloc.s 132 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_37)
IL_4C05: ldloc.s 60
(System.Collections.Generic.IEnumerator`1[Verse.Thing])
IL_4C07: callvirt abstract virtual Verse.Thing
System.Collections.Generic.IEnumerator`1<Verse.Thing>::get_Current()
IL_4C0C: stfld Verse.Thing RimWorld.<>c__DisplayClass10_37::item
IL_4C11: ldloc.s 132 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_37)
IL_4C13: ldfld Verse.Thing RimWorld.<>c__DisplayClass10_37::item
IL_4C18: ldfld Verse.ThingDef Verse.Thing::def
IL_4C1D: callvirt System.Boolean Verse.ThingDef::get_EverHaulable()
IL_4C22: brfalse => Label400
IL_4C27: ldloc.s 132 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_37)
IL_4C29: ldfld RimWorld.<>c__DisplayClass10_0
RimWorld.<>c__DisplayClass10_37::CS$<>8__locals36
IL_4C2E: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_4C33: ldloc.s 132 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_37)
IL_4C35: ldfld Verse.Thing RimWorld.<>c__DisplayClass10_37::item
IL_4C3A: ldfld Verse.ThingDef Verse.Thing::def
IL_4C3F: call static System.Boolean
RimWorld.PawnUtility::CanPickUp(Verse.Pawn pawn, Verse.ThingDef thingDef)
IL_4C44: brfalse => Label401
IL_4C49: ldloc.s 132 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_37)
IL_4C4B: ldfld RimWorld.<>c__DisplayClass10_0
RimWorld.<>c__DisplayClass10_37::CS$<>8__locals36
IL_4C50: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_4C55: callvirt virtual Verse.Map Verse.Thing::get_Map()
IL_4C5A: callvirt System.Boolean Verse.Map::get_IsPlayerHome()
IL_4C5F: brfalse => Label402
IL_4C64: ldloc.s 132 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_37)
IL_4C66: ldfld RimWorld.<>c__DisplayClass10_0
RimWorld.<>c__DisplayClass10_37::CS$<>8__locals36
IL_4C6B: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_4C70: ldloc.s 132 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_37)
IL_4C72: ldfld Verse.Thing RimWorld.<>c__DisplayClass10_37::item
IL_4C77: call static System.Boolean
RimWorld.JobGiver_DropUnusedInventory::ShouldKeepDrugInInventory(Verse.Pawn pawn,
Verse.Thing drug)
IL_4C7C: brfalse => Label403
IL_4C81: Label402
IL_4C81: ldloc.s 132 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_37)
IL_4C83: ldfld RimWorld.<>c__DisplayClass10_0
RimWorld.<>c__DisplayClass10_37::CS$<>8__locals36
IL_4C88: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_4C8D: ldloc.s 132 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_37)
IL_4C8F: ldfld Verse.Thing RimWorld.<>c__DisplayClass10_37::item
IL_4C94: call static Verse.LocalTargetInfo
Verse.LocalTargetInfo::op_Implicit(Verse.Thing t)
IL_4C99: ldc.i4.3
IL_4C9A: ldc.i4.3
IL_4C9B: ldc.i4.0
IL_4C9C: ldc.i4.0
IL_4C9D: ldc.i4.0
IL_4C9E: call static System.Boolean
Verse.ReachabilityUtility::CanReach(Verse.Pawn pawn, Verse.LocalTargetInfo dest,
Verse.AI.PathEndMode peMode, Verse.Danger maxDanger, System.Boolean canBashDoors,
System.Boolean canBashFences, Verse.TraverseMode mode)
IL_4CA3: brtrue => Label404
IL_4CA8: ldarg.2
IL_4CA9: ldstr "CannotPickUp"
IL_4CAE: ldloc.s 132 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_37)
IL_4CB0: ldfld Verse.Thing RimWorld.<>c__DisplayClass10_37::item
IL_4CB5: callvirt abstract virtual System.String Verse.Entity::get_Label()
IL_4CBA: call static Verse.NamedArgument
Verse.NamedArgument::op_Implicit(System.String value)
IL_4CBF: ldloc.s 132 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_37)
IL_4CC1: ldfld Verse.Thing RimWorld.<>c__DisplayClass10_37::item
IL_4CC6: call static Verse.NamedArgument
Verse.NamedArgument::op_Implicit(Verse.Thing value)
IL_4CCB: call static Verse.TaggedString
Verse.TranslatorFormattedStringExtensions::Translate(System.String key,
Verse.NamedArgument arg1, Verse.NamedArgument arg2)
IL_4CD0: ldstr ": "
IL_4CD5: call static Verse.TaggedString
Verse.TaggedString::op_Addition(Verse.TaggedString t1, System.String t2)
IL_4CDA: ldstr "NoPath"
IL_4CDF: call static Verse.TaggedString
Verse.Translator::Translate(System.String key)
IL_4CE4: stloc.s 11 (Verse.TaggedString)
IL_4CE6: ldloca.s 11 (Verse.TaggedString)
IL_4CE8: call Verse.TaggedString Verse.TaggedString::CapitalizeFirst()
IL_4CED: call static Verse.TaggedString
Verse.TaggedString::op_Addition(Verse.TaggedString t1, Verse.TaggedString t2)
IL_4CF2: call static System.String
Verse.TaggedString::op_Implicit(Verse.TaggedString taggedString)
IL_4CF7: ldnull
IL_4CF8: ldc.i4.4
IL_4CF9: ldnull
IL_4CFA: ldnull
IL_4CFB: ldc.r4 0
IL_4D00: ldnull
IL_4D01: ldnull
IL_4D02: ldc.i4.1
IL_4D03: ldc.i4.0
IL_4D04: newobj System.Void Verse.FloatMenuOption::.ctor(System.String
label, System.Action action, Verse.MenuOptionPriority priority,
System.Action`1<UnityEngine.Rect> mouseoverGuiAction, Verse.Thing
revalidateClickTarget, System.Single extraPartWidth,
System.Func`2<UnityEngine.Rect, System.Boolean> extraPartOnGUI,
RimWorld.Planet.WorldObject revalidateWorldClickTarget, System.Boolean
playSelectionSound, System.Int32 orderInPriority)
IL_4D09: callvirt virtual System.Void
System.Collections.Generic.List`1<Verse.FloatMenuOption>::Add(Verse.FloatMenuOption
item)
IL_4D0E: br => Label405
IL_4D13: Label404
IL_4D13: ldloc.s 132 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_37)
IL_4D15: ldfld RimWorld.<>c__DisplayClass10_0
RimWorld.<>c__DisplayClass10_37::CS$<>8__locals36
IL_4D1A: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_4D1F: ldloc.s 132 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_37)
IL_4D21: ldfld Verse.Thing RimWorld.<>c__DisplayClass10_37::item
IL_4D26: ldc.i4.1
IL_4D27: call static System.Boolean
RimWorld.MassUtility::WillBeOverEncumberedAfterPickingUp(Verse.Pawn pawn,
Verse.Thing thing, System.Int32 count)
IL_4D2C: brfalse => Label406
IL_4D31: ldarg.2
IL_4D32: ldstr "CannotPickUp"
IL_4D37: ldloc.s 132 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_37)
IL_4D39: ldfld Verse.Thing RimWorld.<>c__DisplayClass10_37::item
IL_4D3E: callvirt abstract virtual System.String Verse.Entity::get_Label()
IL_4D43: call static Verse.NamedArgument
Verse.NamedArgument::op_Implicit(System.String value)
IL_4D48: ldloc.s 132 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_37)
IL_4D4A: ldfld Verse.Thing RimWorld.<>c__DisplayClass10_37::item
IL_4D4F: call static Verse.NamedArgument
Verse.NamedArgument::op_Implicit(Verse.Thing value)
IL_4D54: call static Verse.TaggedString
Verse.TranslatorFormattedStringExtensions::Translate(System.String key,
Verse.NamedArgument arg1, Verse.NamedArgument arg2)
IL_4D59: ldstr ": "
IL_4D5E: call static Verse.TaggedString
Verse.TaggedString::op_Addition(Verse.TaggedString t1, System.String t2)
IL_4D63: ldstr "TooHeavy"
IL_4D68: call static Verse.TaggedString
Verse.Translator::Translate(System.String key)
IL_4D6D: call static Verse.TaggedString
Verse.TaggedString::op_Addition(Verse.TaggedString t1, Verse.TaggedString t2)
IL_4D72: call static System.String
Verse.TaggedString::op_Implicit(Verse.TaggedString taggedString)
IL_4D77: ldnull
IL_4D78: ldc.i4.4
IL_4D79: ldnull
IL_4D7A: ldnull
IL_4D7B: ldc.r4 0
IL_4D80: ldnull
IL_4D81: ldnull
IL_4D82: ldc.i4.1
IL_4D83: ldc.i4.0
IL_4D84: newobj System.Void Verse.FloatMenuOption::.ctor(System.String
label, System.Action action, Verse.MenuOptionPriority priority,
System.Action`1<UnityEngine.Rect> mouseoverGuiAction, Verse.Thing
revalidateClickTarget, System.Single extraPartWidth,
System.Func`2<UnityEngine.Rect, System.Boolean> extraPartOnGUI,
RimWorld.Planet.WorldObject revalidateWorldClickTarget, System.Boolean
playSelectionSound, System.Int32 orderInPriority)
IL_4D89: callvirt virtual System.Void
System.Collections.Generic.List`1<Verse.FloatMenuOption>::Add(Verse.FloatMenuOption
item)
IL_4D8E: br => Label407
IL_4D93: Label406
IL_4D93: newobj System.Void RimWorld.<>c__DisplayClass10_38::.ctor()
IL_4D98: stloc.s 133 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_38)
IL_4D9A: ldloc.s 133 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_38)
IL_4D9C: ldloc.s 132 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_37)
IL_4D9E: stfld RimWorld.<>c__DisplayClass10_37
RimWorld.<>c__DisplayClass10_38::CS$<>8__locals37
IL_4DA3: ldloc.s 133 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_38)
IL_4DA5: ldloc.s 133 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_38)
IL_4DA7: ldfld RimWorld.<>c__DisplayClass10_37
RimWorld.<>c__DisplayClass10_38::CS$<>8__locals37
IL_4DAC: ldfld RimWorld.<>c__DisplayClass10_0
RimWorld.<>c__DisplayClass10_37::CS$<>8__locals36
IL_4DB1: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_4DB6: ldloc.s 133 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_38)
IL_4DB8: ldfld RimWorld.<>c__DisplayClass10_37
RimWorld.<>c__DisplayClass10_38::CS$<>8__locals37
IL_4DBD: ldfld Verse.Thing RimWorld.<>c__DisplayClass10_37::item
IL_4DC2: ldfld Verse.ThingDef Verse.Thing::def
IL_4DC7: call static System.Int32
RimWorld.PawnUtility::GetMaxAllowedToPickUp(Verse.Pawn pawn, Verse.ThingDef
thingDef)
IL_4DCC: stfld System.Int32
RimWorld.<>c__DisplayClass10_38::maxAllowedToPickUp
IL_4DD1: ldloc.s 133 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_38)
IL_4DD3: ldfld System.Int32
RimWorld.<>c__DisplayClass10_38::maxAllowedToPickUp
IL_4DD8: brtrue => Label408
IL_4DDD: ldarg.2
IL_4DDE: ldstr "CannotPickUp"
IL_4DE3: ldloc.s 133 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_38)
IL_4DE5: ldfld RimWorld.<>c__DisplayClass10_37
RimWorld.<>c__DisplayClass10_38::CS$<>8__locals37
IL_4DEA: ldfld Verse.Thing RimWorld.<>c__DisplayClass10_37::item
IL_4DEF: callvirt abstract virtual System.String Verse.Entity::get_Label()
IL_4DF4: call static Verse.NamedArgument
Verse.NamedArgument::op_Implicit(System.String value)
IL_4DF9: ldloc.s 133 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_38)
IL_4DFB: ldfld RimWorld.<>c__DisplayClass10_37
RimWorld.<>c__DisplayClass10_38::CS$<>8__locals37
IL_4E00: ldfld Verse.Thing RimWorld.<>c__DisplayClass10_37::item
IL_4E05: call static Verse.NamedArgument
Verse.NamedArgument::op_Implicit(Verse.Thing value)
IL_4E0A: call static Verse.TaggedString
Verse.TranslatorFormattedStringExtensions::Translate(System.String key,
Verse.NamedArgument arg1, Verse.NamedArgument arg2)
IL_4E0F: ldstr ": "
IL_4E14: call static Verse.TaggedString
Verse.TaggedString::op_Addition(Verse.TaggedString t1, System.String t2)
IL_4E19: ldstr "MaxPickUpAllowed"
IL_4E1E: ldloc.s 133 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_38)
IL_4E20: ldfld RimWorld.<>c__DisplayClass10_37
RimWorld.<>c__DisplayClass10_38::CS$<>8__locals37
IL_4E25: ldfld Verse.Thing RimWorld.<>c__DisplayClass10_37::item
IL_4E2A: ldfld Verse.ThingDef Verse.Thing::def
IL_4E2F: ldfld Verse.OrderedTakeGroupDef
Verse.ThingDef::orderedTakeGroup
IL_4E34: ldfld System.Int32 Verse.OrderedTakeGroupDef::max
IL_4E39: call static Verse.NamedArgument
Verse.NamedArgument::op_Implicit(System.Int32 value)
IL_4E3E: ldloc.s 133 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_38)
IL_4E40: ldfld RimWorld.<>c__DisplayClass10_37
RimWorld.<>c__DisplayClass10_38::CS$<>8__locals37
IL_4E45: ldfld Verse.Thing RimWorld.<>c__DisplayClass10_37::item
IL_4E4A: ldfld Verse.ThingDef Verse.Thing::def
IL_4E4F: ldfld Verse.OrderedTakeGroupDef
Verse.ThingDef::orderedTakeGroup
IL_4E54: ldfld System.String Verse.Def::label
IL_4E59: call static Verse.NamedArgument
Verse.NamedArgument::op_Implicit(System.String value)
IL_4E5E: call static Verse.TaggedString
Verse.TranslatorFormattedStringExtensions::Translate(System.String key,
Verse.NamedArgument arg1, Verse.NamedArgument arg2)
IL_4E63: call static Verse.TaggedString
Verse.TaggedString::op_Addition(Verse.TaggedString t1, Verse.TaggedString t2)
IL_4E68: call static System.String
Verse.TaggedString::op_Implicit(Verse.TaggedString taggedString)
IL_4E6D: ldnull
IL_4E6E: ldc.i4.4
IL_4E6F: ldnull
IL_4E70: ldnull
IL_4E71: ldc.r4 0
IL_4E76: ldnull
IL_4E77: ldnull
IL_4E78: ldc.i4.1
IL_4E79: ldc.i4.0
IL_4E7A: newobj System.Void Verse.FloatMenuOption::.ctor(System.String
label, System.Action action, Verse.MenuOptionPriority priority,
System.Action`1<UnityEngine.Rect> mouseoverGuiAction, Verse.Thing
revalidateClickTarget, System.Single extraPartWidth,
System.Func`2<UnityEngine.Rect, System.Boolean> extraPartOnGUI,
RimWorld.Planet.WorldObject revalidateWorldClickTarget, System.Boolean
playSelectionSound, System.Int32 orderInPriority)
IL_4E7F: callvirt virtual System.Void
System.Collections.Generic.List`1<Verse.FloatMenuOption>::Add(Verse.FloatMenuOption
item)
IL_4E84: br => Label409
IL_4E89: Label408
IL_4E89: ldloc.s 133 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_38)
IL_4E8B: ldfld RimWorld.<>c__DisplayClass10_37
RimWorld.<>c__DisplayClass10_38::CS$<>8__locals37
IL_4E90: ldfld Verse.Thing RimWorld.<>c__DisplayClass10_37::item
IL_4E95: ldfld System.Int32 Verse.Thing::stackCount
IL_4E9A: ldc.i4.1
IL_4E9B: beq => Label410
IL_4EA0: ldloc.s 133 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_38)
IL_4EA2: ldfld System.Int32
RimWorld.<>c__DisplayClass10_38::maxAllowedToPickUp
IL_4EA7: ldc.i4.1
IL_4EA8: bne.un => Label411
IL_4EAD: Label410
IL_4EAD: ldarg.2
IL_4EAE: ldstr "PickUpOne"
IL_4EB3: ldloc.s 133 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_38)
IL_4EB5: ldfld RimWorld.<>c__DisplayClass10_37
RimWorld.<>c__DisplayClass10_38::CS$<>8__locals37
IL_4EBA: ldfld Verse.Thing RimWorld.<>c__DisplayClass10_37::item
IL_4EBF: callvirt virtual System.String Verse.Thing::get_LabelNoCount()
IL_4EC4: call static Verse.NamedArgument
Verse.NamedArgument::op_Implicit(System.String value)
IL_4EC9: ldloc.s 133 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_38)
IL_4ECB: ldfld RimWorld.<>c__DisplayClass10_37
RimWorld.<>c__DisplayClass10_38::CS$<>8__locals37
IL_4ED0: ldfld Verse.Thing RimWorld.<>c__DisplayClass10_37::item
IL_4ED5: call static Verse.NamedArgument
Verse.NamedArgument::op_Implicit(Verse.Thing value)
IL_4EDA: call static Verse.TaggedString
Verse.TranslatorFormattedStringExtensions::Translate(System.String key,
Verse.NamedArgument arg1, Verse.NamedArgument arg2)
IL_4EDF: call static System.String
Verse.TaggedString::op_Implicit(Verse.TaggedString taggedString)
IL_4EE4: ldloc.s 133 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_38)
IL_4EE6: ldfld RimWorld.<>c__DisplayClass10_37
RimWorld.<>c__DisplayClass10_38::CS$<>8__locals37
IL_4EEB: ldftn System.Void
RimWorld.<>c__DisplayClass10_37::<AddHumanlikeOrders>b__50()
IL_4EF1: newobj System.Void System.Action::.ctor(System.Object object,
System.IntPtr method)
IL_4EF6: ldc.i4.5
IL_4EF7: ldnull
IL_4EF8: ldnull
IL_4EF9: ldc.r4 0
IL_4EFE: ldnull
IL_4EFF: ldnull
IL_4F00: ldc.i4.1
IL_4F01: ldc.i4.0
IL_4F02: newobj System.Void Verse.FloatMenuOption::.ctor(System.String
label, System.Action action, Verse.MenuOptionPriority priority,
System.Action`1<UnityEngine.Rect> mouseoverGuiAction, Verse.Thing
revalidateClickTarget, System.Single extraPartWidth,
System.Func`2<UnityEngine.Rect, System.Boolean> extraPartOnGUI,
RimWorld.Planet.WorldObject revalidateWorldClickTarget, System.Boolean
playSelectionSound, System.Int32 orderInPriority)
IL_4F07: ldloc.s 133 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_38)
IL_4F09: ldfld RimWorld.<>c__DisplayClass10_37
RimWorld.<>c__DisplayClass10_38::CS$<>8__locals37
IL_4F0E: ldfld RimWorld.<>c__DisplayClass10_0
RimWorld.<>c__DisplayClass10_37::CS$<>8__locals36
IL_4F13: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_4F18: ldloc.s 133 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_38)
IL_4F1A: ldfld RimWorld.<>c__DisplayClass10_37
RimWorld.<>c__DisplayClass10_38::CS$<>8__locals37
IL_4F1F: ldfld Verse.Thing RimWorld.<>c__DisplayClass10_37::item
IL_4F24: call static Verse.LocalTargetInfo
Verse.LocalTargetInfo::op_Implicit(Verse.Thing t)
IL_4F29: ldstr "ReservedBy"
IL_4F2E: ldnull
IL_4F2F: call static Verse.FloatMenuOption
RimWorld.FloatMenuUtility::DecoratePrioritizedTask(Verse.FloatMenuOption option,
Verse.Pawn pawn, Verse.LocalTargetInfo target, System.String reservedText,
Verse.ReservationLayerDef layer)
IL_4F34: callvirt virtual System.Void
System.Collections.Generic.List`1<Verse.FloatMenuOption>::Add(Verse.FloatMenuOption
item)
IL_4F39: br => Label412
IL_4F3E: Label411
IL_4F3E: ldloc.s 133 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_38)
IL_4F40: ldfld System.Int32
RimWorld.<>c__DisplayClass10_38::maxAllowedToPickUp
IL_4F45: ldloc.s 133 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_38)
IL_4F47: ldfld RimWorld.<>c__DisplayClass10_37
RimWorld.<>c__DisplayClass10_38::CS$<>8__locals37
IL_4F4C: ldfld Verse.Thing RimWorld.<>c__DisplayClass10_37::item
IL_4F51: ldfld System.Int32 Verse.Thing::stackCount
IL_4F56: bge => Label413
IL_4F5B: ldarg.2
IL_4F5C: ldstr "CannotPickUpAll"
IL_4F61: ldloc.s 133 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_38)
IL_4F63: ldfld RimWorld.<>c__DisplayClass10_37
RimWorld.<>c__DisplayClass10_38::CS$<>8__locals37
IL_4F68: ldfld Verse.Thing RimWorld.<>c__DisplayClass10_37::item
IL_4F6D: callvirt abstract virtual System.String Verse.Entity::get_Label()
IL_4F72: call static Verse.NamedArgument
Verse.NamedArgument::op_Implicit(System.String value)
IL_4F77: ldloc.s 133 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_38)
IL_4F79: ldfld RimWorld.<>c__DisplayClass10_37
RimWorld.<>c__DisplayClass10_38::CS$<>8__locals37
IL_4F7E: ldfld Verse.Thing RimWorld.<>c__DisplayClass10_37::item
IL_4F83: call static Verse.NamedArgument
Verse.NamedArgument::op_Implicit(Verse.Thing value)
IL_4F88: call static Verse.TaggedString
Verse.TranslatorFormattedStringExtensions::Translate(System.String key,
Verse.NamedArgument arg1, Verse.NamedArgument arg2)
IL_4F8D: ldstr ": "
IL_4F92: call static Verse.TaggedString
Verse.TaggedString::op_Addition(Verse.TaggedString t1, System.String t2)
IL_4F97: ldstr "MaxPickUpAllowed"
IL_4F9C: ldloc.s 133 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_38)
IL_4F9E: ldfld RimWorld.<>c__DisplayClass10_37
RimWorld.<>c__DisplayClass10_38::CS$<>8__locals37
IL_4FA3: ldfld Verse.Thing RimWorld.<>c__DisplayClass10_37::item
IL_4FA8: ldfld Verse.ThingDef Verse.Thing::def
IL_4FAD: ldfld Verse.OrderedTakeGroupDef
Verse.ThingDef::orderedTakeGroup
IL_4FB2: ldfld System.Int32 Verse.OrderedTakeGroupDef::max
IL_4FB7: call static Verse.NamedArgument
Verse.NamedArgument::op_Implicit(System.Int32 value)
IL_4FBC: ldloc.s 133 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_38)
IL_4FBE: ldfld RimWorld.<>c__DisplayClass10_37
RimWorld.<>c__DisplayClass10_38::CS$<>8__locals37
IL_4FC3: ldfld Verse.Thing RimWorld.<>c__DisplayClass10_37::item
IL_4FC8: ldfld Verse.ThingDef Verse.Thing::def
IL_4FCD: ldfld Verse.OrderedTakeGroupDef
Verse.ThingDef::orderedTakeGroup
IL_4FD2: ldfld System.String Verse.Def::label
IL_4FD7: call static Verse.NamedArgument
Verse.NamedArgument::op_Implicit(System.String value)
IL_4FDC: call static Verse.TaggedString
Verse.TranslatorFormattedStringExtensions::Translate(System.String key,
Verse.NamedArgument arg1, Verse.NamedArgument arg2)
IL_4FE1: call static Verse.TaggedString
Verse.TaggedString::op_Addition(Verse.TaggedString t1, Verse.TaggedString t2)
IL_4FE6: call static System.String
Verse.TaggedString::op_Implicit(Verse.TaggedString taggedString)
IL_4FEB: ldnull
IL_4FEC: ldc.i4.4
IL_4FED: ldnull
IL_4FEE: ldnull
IL_4FEF: ldc.r4 0
IL_4FF4: ldnull
IL_4FF5: ldnull
IL_4FF6: ldc.i4.1
IL_4FF7: ldc.i4.0
IL_4FF8: newobj System.Void Verse.FloatMenuOption::.ctor(System.String
label, System.Action action, Verse.MenuOptionPriority priority,
System.Action`1<UnityEngine.Rect> mouseoverGuiAction, Verse.Thing
revalidateClickTarget, System.Single extraPartWidth,
System.Func`2<UnityEngine.Rect, System.Boolean> extraPartOnGUI,
RimWorld.Planet.WorldObject revalidateWorldClickTarget, System.Boolean
playSelectionSound, System.Int32 orderInPriority)
IL_4FFD: callvirt virtual System.Void
System.Collections.Generic.List`1<Verse.FloatMenuOption>::Add(Verse.FloatMenuOption
item)
IL_5002: br => Label414
IL_5007: Label413
IL_5007: ldloc.s 133 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_38)
IL_5009: ldfld RimWorld.<>c__DisplayClass10_37
RimWorld.<>c__DisplayClass10_38::CS$<>8__locals37
IL_500E: ldfld RimWorld.<>c__DisplayClass10_0
RimWorld.<>c__DisplayClass10_37::CS$<>8__locals36
IL_5013: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_5018: ldloc.s 133 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_38)
IL_501A: ldfld RimWorld.<>c__DisplayClass10_37
RimWorld.<>c__DisplayClass10_38::CS$<>8__locals37
IL_501F: ldfld Verse.Thing RimWorld.<>c__DisplayClass10_37::item
IL_5024: ldloc.s 133 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_38)
IL_5026: ldfld RimWorld.<>c__DisplayClass10_37
RimWorld.<>c__DisplayClass10_38::CS$<>8__locals37
IL_502B: ldfld Verse.Thing RimWorld.<>c__DisplayClass10_37::item
IL_5030: ldfld System.Int32 Verse.Thing::stackCount
IL_5035: call static System.Boolean
RimWorld.MassUtility::WillBeOverEncumberedAfterPickingUp(Verse.Pawn pawn,
Verse.Thing thing, System.Int32 count)
IL_503A: brfalse => Label415
IL_503F: ldarg.2
IL_5040: ldstr "CannotPickUpAll"
IL_5045: ldloc.s 133 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_38)
IL_5047: ldfld RimWorld.<>c__DisplayClass10_37
RimWorld.<>c__DisplayClass10_38::CS$<>8__locals37
IL_504C: ldfld Verse.Thing RimWorld.<>c__DisplayClass10_37::item
IL_5051: callvirt abstract virtual System.String Verse.Entity::get_Label()
IL_5056: call static Verse.NamedArgument
Verse.NamedArgument::op_Implicit(System.String value)
IL_505B: ldloc.s 133 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_38)
IL_505D: ldfld RimWorld.<>c__DisplayClass10_37
RimWorld.<>c__DisplayClass10_38::CS$<>8__locals37
IL_5062: ldfld Verse.Thing RimWorld.<>c__DisplayClass10_37::item
IL_5067: call static Verse.NamedArgument
Verse.NamedArgument::op_Implicit(Verse.Thing value)
IL_506C: call static Verse.TaggedString
Verse.TranslatorFormattedStringExtensions::Translate(System.String key,
Verse.NamedArgument arg1, Verse.NamedArgument arg2)
IL_5071: ldstr ": "
IL_5076: call static Verse.TaggedString
Verse.TaggedString::op_Addition(Verse.TaggedString t1, System.String t2)
IL_507B: ldstr "TooHeavy"
IL_5080: call static Verse.TaggedString
Verse.Translator::Translate(System.String key)
IL_5085: call static Verse.TaggedString
Verse.TaggedString::op_Addition(Verse.TaggedString t1, Verse.TaggedString t2)
IL_508A: call static System.String
Verse.TaggedString::op_Implicit(Verse.TaggedString taggedString)
IL_508F: ldnull
IL_5090: ldc.i4.4
IL_5091: ldnull
IL_5092: ldnull
IL_5093: ldc.r4 0
IL_5098: ldnull
IL_5099: ldnull
IL_509A: ldc.i4.1
IL_509B: ldc.i4.0
IL_509C: newobj System.Void Verse.FloatMenuOption::.ctor(System.String
label, System.Action action, Verse.MenuOptionPriority priority,
System.Action`1<UnityEngine.Rect> mouseoverGuiAction, Verse.Thing
revalidateClickTarget, System.Single extraPartWidth,
System.Func`2<UnityEngine.Rect, System.Boolean> extraPartOnGUI,
RimWorld.Planet.WorldObject revalidateWorldClickTarget, System.Boolean
playSelectionSound, System.Int32 orderInPriority)
IL_50A1: callvirt virtual System.Void
System.Collections.Generic.List`1<Verse.FloatMenuOption>::Add(Verse.FloatMenuOption
item)
IL_50A6: br => Label416
IL_50AB: Label415
IL_50AB: ldarg.2
IL_50AC: ldstr "PickUpAll"
IL_50B1: ldloc.s 133 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_38)
IL_50B3: ldfld RimWorld.<>c__DisplayClass10_37
RimWorld.<>c__DisplayClass10_38::CS$<>8__locals37
IL_50B8: ldfld Verse.Thing RimWorld.<>c__DisplayClass10_37::item
IL_50BD: callvirt abstract virtual System.String Verse.Entity::get_Label()
IL_50C2: call static Verse.NamedArgument
Verse.NamedArgument::op_Implicit(System.String value)
IL_50C7: ldloc.s 133 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_38)
IL_50C9: ldfld RimWorld.<>c__DisplayClass10_37
RimWorld.<>c__DisplayClass10_38::CS$<>8__locals37
IL_50CE: ldfld Verse.Thing RimWorld.<>c__DisplayClass10_37::item
IL_50D3: call static Verse.NamedArgument
Verse.NamedArgument::op_Implicit(Verse.Thing value)
IL_50D8: call static Verse.TaggedString
Verse.TranslatorFormattedStringExtensions::Translate(System.String key,
Verse.NamedArgument arg1, Verse.NamedArgument arg2)
IL_50DD: call static System.String
Verse.TaggedString::op_Implicit(Verse.TaggedString taggedString)
IL_50E2: ldloc.s 133 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_38)
IL_50E4: ldfld RimWorld.<>c__DisplayClass10_37
RimWorld.<>c__DisplayClass10_38::CS$<>8__locals37
IL_50E9: ldftn System.Void
RimWorld.<>c__DisplayClass10_37::<AddHumanlikeOrders>b__51()
IL_50EF: newobj System.Void System.Action::.ctor(System.Object object,
System.IntPtr method)
IL_50F4: ldc.i4.5
IL_50F5: ldnull
IL_50F6: ldnull
IL_50F7: ldc.r4 0
IL_50FC: ldnull
IL_50FD: ldnull
IL_50FE: ldc.i4.1
IL_50FF: ldc.i4.0
IL_5100: newobj System.Void Verse.FloatMenuOption::.ctor(System.String
label, System.Action action, Verse.MenuOptionPriority priority,
System.Action`1<UnityEngine.Rect> mouseoverGuiAction, Verse.Thing
revalidateClickTarget, System.Single extraPartWidth,
System.Func`2<UnityEngine.Rect, System.Boolean> extraPartOnGUI,
RimWorld.Planet.WorldObject revalidateWorldClickTarget, System.Boolean
playSelectionSound, System.Int32 orderInPriority)
IL_5105: ldloc.s 133 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_38)
IL_5107: ldfld RimWorld.<>c__DisplayClass10_37
RimWorld.<>c__DisplayClass10_38::CS$<>8__locals37
IL_510C: ldfld RimWorld.<>c__DisplayClass10_0
RimWorld.<>c__DisplayClass10_37::CS$<>8__locals36
IL_5111: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_5116: ldloc.s 133 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_38)
IL_5118: ldfld RimWorld.<>c__DisplayClass10_37
RimWorld.<>c__DisplayClass10_38::CS$<>8__locals37
IL_511D: ldfld Verse.Thing RimWorld.<>c__DisplayClass10_37::item
IL_5122: call static Verse.LocalTargetInfo
Verse.LocalTargetInfo::op_Implicit(Verse.Thing t)
IL_5127: ldstr "ReservedBy"
IL_512C: ldnull
IL_512D: call static Verse.FloatMenuOption
RimWorld.FloatMenuUtility::DecoratePrioritizedTask(Verse.FloatMenuOption option,
Verse.Pawn pawn, Verse.LocalTargetInfo target, System.String reservedText,
Verse.ReservationLayerDef layer)
IL_5132: callvirt virtual System.Void
System.Collections.Generic.List`1<Verse.FloatMenuOption>::Add(Verse.FloatMenuOption
item)
IL_5137: Label414
IL_5137: Label416
IL_5137: ldarg.2
IL_5138: ldstr "PickUpSome"
IL_513D: ldloc.s 133 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_38)
IL_513F: ldfld RimWorld.<>c__DisplayClass10_37
RimWorld.<>c__DisplayClass10_38::CS$<>8__locals37
IL_5144: ldfld Verse.Thing RimWorld.<>c__DisplayClass10_37::item
IL_5149: callvirt virtual System.String Verse.Thing::get_LabelNoCount()
IL_514E: call static Verse.NamedArgument
Verse.NamedArgument::op_Implicit(System.String value)
IL_5153: ldloc.s 133 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_38)
IL_5155: ldfld RimWorld.<>c__DisplayClass10_37
RimWorld.<>c__DisplayClass10_38::CS$<>8__locals37
IL_515A: ldfld Verse.Thing RimWorld.<>c__DisplayClass10_37::item
IL_515F: call static Verse.NamedArgument
Verse.NamedArgument::op_Implicit(Verse.Thing value)
IL_5164: call static Verse.TaggedString
Verse.TranslatorFormattedStringExtensions::Translate(System.String key,
Verse.NamedArgument arg1, Verse.NamedArgument arg2)
IL_5169: call static System.String
Verse.TaggedString::op_Implicit(Verse.TaggedString taggedString)
IL_516E: ldloc.s 133 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_38)
IL_5170: ldftn System.Void
RimWorld.<>c__DisplayClass10_38::<AddHumanlikeOrders>b__52()
IL_5176: newobj System.Void System.Action::.ctor(System.Object object,
System.IntPtr method)
IL_517B: ldc.i4.5
IL_517C: ldnull
IL_517D: ldnull
IL_517E: ldc.r4 0
IL_5183: ldnull
IL_5184: ldnull
IL_5185: ldc.i4.1
IL_5186: ldc.i4.0
IL_5187: newobj System.Void Verse.FloatMenuOption::.ctor(System.String
label, System.Action action, Verse.MenuOptionPriority priority,
System.Action`1<UnityEngine.Rect> mouseoverGuiAction, Verse.Thing
revalidateClickTarget, System.Single extraPartWidth,
System.Func`2<UnityEngine.Rect, System.Boolean> extraPartOnGUI,
RimWorld.Planet.WorldObject revalidateWorldClickTarget, System.Boolean
playSelectionSound, System.Int32 orderInPriority)
IL_518C: ldloc.s 133 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_38)
IL_518E: ldfld RimWorld.<>c__DisplayClass10_37
RimWorld.<>c__DisplayClass10_38::CS$<>8__locals37
IL_5193: ldfld RimWorld.<>c__DisplayClass10_0
RimWorld.<>c__DisplayClass10_37::CS$<>8__locals36
IL_5198: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_519D: ldloc.s 133 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_38)
IL_519F: ldfld RimWorld.<>c__DisplayClass10_37
RimWorld.<>c__DisplayClass10_38::CS$<>8__locals37
IL_51A4: ldfld Verse.Thing RimWorld.<>c__DisplayClass10_37::item
IL_51A9: call static Verse.LocalTargetInfo
Verse.LocalTargetInfo::op_Implicit(Verse.Thing t)
IL_51AE: ldstr "ReservedBy"
IL_51B3: ldnull
IL_51B4: call static Verse.FloatMenuOption
RimWorld.FloatMenuUtility::DecoratePrioritizedTask(Verse.FloatMenuOption option,
Verse.Pawn pawn, Verse.LocalTargetInfo target, System.String reservedText,
Verse.ReservationLayerDef layer)
IL_51B9: callvirt virtual System.Void
System.Collections.Generic.List`1<Verse.FloatMenuOption>::Add(Verse.FloatMenuOption
item)
IL_51BE: Label399
IL_51BE: Label400
IL_51BE: Label401
IL_51BE: Label403
IL_51BE: Label405
IL_51BE: Label407
IL_51BE: Label409
IL_51BE: Label412
IL_51BE: ldloc.s 60
(System.Collections.Generic.IEnumerator`1[Verse.Thing])
IL_51C0: callvirt abstract virtual System.Boolean
System.Collections.IEnumerator::MoveNext()
IL_51C5: brtrue => Label417
IL_51CA: leave => Label418
IL_51CF: leave => (autogenerated)
} // end try
.finally
{
IL_51D4: ldloc.s 60
(System.Collections.Generic.IEnumerator`1[Verse.Thing])
IL_51D6: brfalse => Label419
IL_51DB: ldloc.s 60
(System.Collections.Generic.IEnumerator`1[Verse.Thing])
IL_51DD: callvirt abstract virtual System.Void
System.IDisposable::Dispose()
IL_51E2: Label419
IL_51E2: endfinally
IL_51E3: leave => (autogenerated)
} // end handler
IL_51E4: Label398
IL_51E4: Label418
IL_51E4: ldloc.0
IL_51E5: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_51EA: callvirt virtual Verse.Map Verse.Thing::get_Map()
IL_51EF: callvirt System.Boolean Verse.Map::get_IsPlayerHome()
IL_51F4: brtrue => Label420
IL_51F9: ldloc.0
IL_51FA: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_51FF: call static System.Boolean
RimWorld.Planet.CaravanFormingUtility::IsFormingCaravan(Verse.Pawn p)
IL_5204: brtrue => Label421
IL_5209: ldloc.1
IL_520A: ldloc.0
IL_520B: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_5210: callvirt virtual Verse.Map Verse.Thing::get_Map()
IL_5215: call static System.Collections.Generic.IEnumerable`1<Verse.Thing>
Verse.GridsUtility::GetItems(Verse.IntVec3 c, Verse.Map map)
IL_521A: callvirt abstract virtual
System.Collections.Generic.IEnumerator`1<Verse.Thing>
System.Collections.Generic.IEnumerable`1<Verse.Thing>::GetEnumerator()
IL_521F: stloc.s 60 (System.Collections.Generic.IEnumerator`1[Verse.Thing])
.try
{
IL_5221: br => Label422
IL_5226: Label433
IL_5226: newobj System.Void RimWorld.<>c__DisplayClass10_39::.ctor()
IL_522B: stloc.s 134 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_39)
IL_522D: ldloc.s 134 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_39)
IL_522F: ldloc.0
IL_5230: stfld RimWorld.<>c__DisplayClass10_0
RimWorld.<>c__DisplayClass10_39::CS$<>8__locals38
IL_5235: ldloc.s 134 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_39)
IL_5237: ldloc.s 60
(System.Collections.Generic.IEnumerator`1[Verse.Thing])
IL_5239: callvirt abstract virtual Verse.Thing
System.Collections.Generic.IEnumerator`1<Verse.Thing>::get_Current()
IL_523E: stfld Verse.Thing RimWorld.<>c__DisplayClass10_39::item
IL_5243: newobj System.Void RimWorld.<>c__DisplayClass10_40::.ctor()
IL_5248: stloc.s 135 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_40)
IL_524A: ldloc.s 135 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_40)
IL_524C: ldloc.s 134 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_39)
IL_524E: stfld RimWorld.<>c__DisplayClass10_39
RimWorld.<>c__DisplayClass10_40::CS$<>8__locals39
IL_5253: ldloc.s 135 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_40)
IL_5255: ldfld RimWorld.<>c__DisplayClass10_39
RimWorld.<>c__DisplayClass10_40::CS$<>8__locals39
IL_525A: ldfld Verse.Thing RimWorld.<>c__DisplayClass10_39::item
IL_525F: ldfld Verse.ThingDef Verse.Thing::def
IL_5264: callvirt System.Boolean Verse.ThingDef::get_EverHaulable()
IL_5269: brfalse => Label423
IL_526E: ldloc.s 135 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_40)
IL_5270: ldloc.s 135 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_40)
IL_5272: ldfld RimWorld.<>c__DisplayClass10_39
RimWorld.<>c__DisplayClass10_40::CS$<>8__locals39
IL_5277: ldfld RimWorld.<>c__DisplayClass10_0
RimWorld.<>c__DisplayClass10_39::CS$<>8__locals38
IL_527C: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_5281: call static Verse.Pawn
RimWorld.GiveToPackAnimalUtility::UsablePackAnimalWithTheMostFreeSpace(Verse.Pawn
pawn)
IL_5286: stfld Verse.Pawn
RimWorld.<>c__DisplayClass10_40::bestPackAnimal
IL_528B: ldloc.s 135 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_40)
IL_528D: ldfld Verse.Pawn
RimWorld.<>c__DisplayClass10_40::bestPackAnimal
IL_5292: brfalse => Label424
IL_5297: ldloc.s 135 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_40)
IL_5299: ldfld RimWorld.<>c__DisplayClass10_39
RimWorld.<>c__DisplayClass10_40::CS$<>8__locals39
IL_529E: ldfld RimWorld.<>c__DisplayClass10_0
RimWorld.<>c__DisplayClass10_39::CS$<>8__locals38
IL_52A3: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_52A8: ldloc.s 135 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_40)
IL_52AA: ldfld RimWorld.<>c__DisplayClass10_39
RimWorld.<>c__DisplayClass10_40::CS$<>8__locals39
IL_52AF: ldfld Verse.Thing RimWorld.<>c__DisplayClass10_39::item
IL_52B4: call static Verse.LocalTargetInfo
Verse.LocalTargetInfo::op_Implicit(Verse.Thing t)
IL_52B9: ldc.i4.3
IL_52BA: ldc.i4.3
IL_52BB: ldc.i4.0
IL_52BC: ldc.i4.0
IL_52BD: ldc.i4.0
IL_52BE: call static System.Boolean
Verse.ReachabilityUtility::CanReach(Verse.Pawn pawn, Verse.LocalTargetInfo dest,
Verse.AI.PathEndMode peMode, Verse.Danger maxDanger, System.Boolean canBashDoors,
System.Boolean canBashFences, Verse.TraverseMode mode)
IL_52C3: brtrue => Label425
IL_52C8: ldarg.2
IL_52C9: ldstr "CannotGiveToPackAnimal"
IL_52CE: ldloc.s 135 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_40)
IL_52D0: ldfld RimWorld.<>c__DisplayClass10_39
RimWorld.<>c__DisplayClass10_40::CS$<>8__locals39
IL_52D5: ldfld Verse.Thing RimWorld.<>c__DisplayClass10_39::item
IL_52DA: callvirt abstract virtual System.String Verse.Entity::get_Label()
IL_52DF: call static Verse.NamedArgument
Verse.NamedArgument::op_Implicit(System.String value)
IL_52E4: ldloc.s 135 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_40)
IL_52E6: ldfld RimWorld.<>c__DisplayClass10_39
RimWorld.<>c__DisplayClass10_40::CS$<>8__locals39
IL_52EB: ldfld Verse.Thing RimWorld.<>c__DisplayClass10_39::item
IL_52F0: call static Verse.NamedArgument
Verse.NamedArgument::op_Implicit(Verse.Thing value)
IL_52F5: call static Verse.TaggedString
Verse.TranslatorFormattedStringExtensions::Translate(System.String key,
Verse.NamedArgument arg1, Verse.NamedArgument arg2)
IL_52FA: ldstr ": "
IL_52FF: call static Verse.TaggedString
Verse.TaggedString::op_Addition(Verse.TaggedString t1, System.String t2)
IL_5304: ldstr "NoPath"
IL_5309: call static Verse.TaggedString
Verse.Translator::Translate(System.String key)
IL_530E: stloc.s 11 (Verse.TaggedString)
IL_5310: ldloca.s 11 (Verse.TaggedString)
IL_5312: call Verse.TaggedString Verse.TaggedString::CapitalizeFirst()
IL_5317: call static Verse.TaggedString
Verse.TaggedString::op_Addition(Verse.TaggedString t1, Verse.TaggedString t2)
IL_531C: call static System.String
Verse.TaggedString::op_Implicit(Verse.TaggedString taggedString)
IL_5321: ldnull
IL_5322: ldc.i4.4
IL_5323: ldnull
IL_5324: ldnull
IL_5325: ldc.r4 0
IL_532A: ldnull
IL_532B: ldnull
IL_532C: ldc.i4.1
IL_532D: ldc.i4.0
IL_532E: newobj System.Void Verse.FloatMenuOption::.ctor(System.String
label, System.Action action, Verse.MenuOptionPriority priority,
System.Action`1<UnityEngine.Rect> mouseoverGuiAction, Verse.Thing
revalidateClickTarget, System.Single extraPartWidth,
System.Func`2<UnityEngine.Rect, System.Boolean> extraPartOnGUI,
RimWorld.Planet.WorldObject revalidateWorldClickTarget, System.Boolean
playSelectionSound, System.Int32 orderInPriority)
IL_5333: callvirt virtual System.Void
System.Collections.Generic.List`1<Verse.FloatMenuOption>::Add(Verse.FloatMenuOption
item)
IL_5338: br => Label426
IL_533D: Label425
IL_533D: ldloc.s 135 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_40)
IL_533F: ldfld Verse.Pawn
RimWorld.<>c__DisplayClass10_40::bestPackAnimal
IL_5344: ldloc.s 135 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_40)
IL_5346: ldfld RimWorld.<>c__DisplayClass10_39
RimWorld.<>c__DisplayClass10_40::CS$<>8__locals39
IL_534B: ldfld Verse.Thing RimWorld.<>c__DisplayClass10_39::item
IL_5350: ldc.i4.1
IL_5351: call static System.Boolean
RimWorld.MassUtility::WillBeOverEncumberedAfterPickingUp(Verse.Pawn pawn,
Verse.Thing thing, System.Int32 count)
IL_5356: brfalse => Label427
IL_535B: ldarg.2
IL_535C: ldstr "CannotGiveToPackAnimal"
IL_5361: ldloc.s 135 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_40)
IL_5363: ldfld RimWorld.<>c__DisplayClass10_39
RimWorld.<>c__DisplayClass10_40::CS$<>8__locals39
IL_5368: ldfld Verse.Thing RimWorld.<>c__DisplayClass10_39::item
IL_536D: callvirt abstract virtual System.String Verse.Entity::get_Label()
IL_5372: call static Verse.NamedArgument
Verse.NamedArgument::op_Implicit(System.String value)
IL_5377: ldloc.s 135 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_40)
IL_5379: ldfld RimWorld.<>c__DisplayClass10_39
RimWorld.<>c__DisplayClass10_40::CS$<>8__locals39
IL_537E: ldfld Verse.Thing RimWorld.<>c__DisplayClass10_39::item
IL_5383: call static Verse.NamedArgument
Verse.NamedArgument::op_Implicit(Verse.Thing value)
IL_5388: call static Verse.TaggedString
Verse.TranslatorFormattedStringExtensions::Translate(System.String key,
Verse.NamedArgument arg1, Verse.NamedArgument arg2)
IL_538D: ldstr ": "
IL_5392: call static Verse.TaggedString
Verse.TaggedString::op_Addition(Verse.TaggedString t1, System.String t2)
IL_5397: ldstr "TooHeavy"
IL_539C: call static Verse.TaggedString
Verse.Translator::Translate(System.String key)
IL_53A1: call static Verse.TaggedString
Verse.TaggedString::op_Addition(Verse.TaggedString t1, Verse.TaggedString t2)
IL_53A6: call static System.String
Verse.TaggedString::op_Implicit(Verse.TaggedString taggedString)
IL_53AB: ldnull
IL_53AC: ldc.i4.4
IL_53AD: ldnull
IL_53AE: ldnull
IL_53AF: ldc.r4 0
IL_53B4: ldnull
IL_53B5: ldnull
IL_53B6: ldc.i4.1
IL_53B7: ldc.i4.0
IL_53B8: newobj System.Void Verse.FloatMenuOption::.ctor(System.String
label, System.Action action, Verse.MenuOptionPriority priority,
System.Action`1<UnityEngine.Rect> mouseoverGuiAction, Verse.Thing
revalidateClickTarget, System.Single extraPartWidth,
System.Func`2<UnityEngine.Rect, System.Boolean> extraPartOnGUI,
RimWorld.Planet.WorldObject revalidateWorldClickTarget, System.Boolean
playSelectionSound, System.Int32 orderInPriority)
IL_53BD: callvirt virtual System.Void
System.Collections.Generic.List`1<Verse.FloatMenuOption>::Add(Verse.FloatMenuOption
item)
IL_53C2: br => Label428
IL_53C7: Label427
IL_53C7: ldloc.s 135 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_40)
IL_53C9: ldfld RimWorld.<>c__DisplayClass10_39
RimWorld.<>c__DisplayClass10_40::CS$<>8__locals39
IL_53CE: ldfld Verse.Thing RimWorld.<>c__DisplayClass10_39::item
IL_53D3: ldfld System.Int32 Verse.Thing::stackCount
IL_53D8: ldc.i4.1
IL_53D9: bne.un => Label429
IL_53DE: ldarg.2
IL_53DF: ldstr "GiveToPackAnimal"
IL_53E4: ldloc.s 135 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_40)
IL_53E6: ldfld RimWorld.<>c__DisplayClass10_39
RimWorld.<>c__DisplayClass10_40::CS$<>8__locals39
IL_53EB: ldfld Verse.Thing RimWorld.<>c__DisplayClass10_39::item
IL_53F0: callvirt abstract virtual System.String Verse.Entity::get_Label()
IL_53F5: call static Verse.NamedArgument
Verse.NamedArgument::op_Implicit(System.String value)
IL_53FA: ldloc.s 135 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_40)
IL_53FC: ldfld RimWorld.<>c__DisplayClass10_39
RimWorld.<>c__DisplayClass10_40::CS$<>8__locals39
IL_5401: ldfld Verse.Thing RimWorld.<>c__DisplayClass10_39::item
IL_5406: call static Verse.NamedArgument
Verse.NamedArgument::op_Implicit(Verse.Thing value)
IL_540B: call static Verse.TaggedString
Verse.TranslatorFormattedStringExtensions::Translate(System.String key,
Verse.NamedArgument arg1, Verse.NamedArgument arg2)
IL_5410: call static System.String
Verse.TaggedString::op_Implicit(Verse.TaggedString taggedString)
IL_5415: ldloc.s 135 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_40)
IL_5417: ldfld RimWorld.<>c__DisplayClass10_39
RimWorld.<>c__DisplayClass10_40::CS$<>8__locals39
IL_541C: ldftn System.Void
RimWorld.<>c__DisplayClass10_39::<AddHumanlikeOrders>b__54()
IL_5422: newobj System.Void System.Action::.ctor(System.Object object,
System.IntPtr method)
IL_5427: ldc.i4.5
IL_5428: ldnull
IL_5429: ldnull
IL_542A: ldc.r4 0
IL_542F: ldnull
IL_5430: ldnull
IL_5431: ldc.i4.1
IL_5432: ldc.i4.0
IL_5433: newobj System.Void Verse.FloatMenuOption::.ctor(System.String
label, System.Action action, Verse.MenuOptionPriority priority,
System.Action`1<UnityEngine.Rect> mouseoverGuiAction, Verse.Thing
revalidateClickTarget, System.Single extraPartWidth,
System.Func`2<UnityEngine.Rect, System.Boolean> extraPartOnGUI,
RimWorld.Planet.WorldObject revalidateWorldClickTarget, System.Boolean
playSelectionSound, System.Int32 orderInPriority)
IL_5438: ldloc.s 135 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_40)
IL_543A: ldfld RimWorld.<>c__DisplayClass10_39
RimWorld.<>c__DisplayClass10_40::CS$<>8__locals39
IL_543F: ldfld RimWorld.<>c__DisplayClass10_0
RimWorld.<>c__DisplayClass10_39::CS$<>8__locals38
IL_5444: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_5449: ldloc.s 135 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_40)
IL_544B: ldfld RimWorld.<>c__DisplayClass10_39
RimWorld.<>c__DisplayClass10_40::CS$<>8__locals39
IL_5450: ldfld Verse.Thing RimWorld.<>c__DisplayClass10_39::item
IL_5455: call static Verse.LocalTargetInfo
Verse.LocalTargetInfo::op_Implicit(Verse.Thing t)
IL_545A: ldstr "ReservedBy"
IL_545F: ldnull
IL_5460: call static Verse.FloatMenuOption
RimWorld.FloatMenuUtility::DecoratePrioritizedTask(Verse.FloatMenuOption option,
Verse.Pawn pawn, Verse.LocalTargetInfo target, System.String reservedText,
Verse.ReservationLayerDef layer)
IL_5465: callvirt virtual System.Void
System.Collections.Generic.List`1<Verse.FloatMenuOption>::Add(Verse.FloatMenuOption
item)
IL_546A: br => Label430
IL_546F: Label429
IL_546F: ldloc.s 135 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_40)
IL_5471: ldfld Verse.Pawn
RimWorld.<>c__DisplayClass10_40::bestPackAnimal
IL_5476: ldloc.s 135 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_40)
IL_5478: ldfld RimWorld.<>c__DisplayClass10_39
RimWorld.<>c__DisplayClass10_40::CS$<>8__locals39
IL_547D: ldfld Verse.Thing RimWorld.<>c__DisplayClass10_39::item
IL_5482: ldloc.s 135 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_40)
IL_5484: ldfld RimWorld.<>c__DisplayClass10_39
RimWorld.<>c__DisplayClass10_40::CS$<>8__locals39
IL_5489: ldfld Verse.Thing RimWorld.<>c__DisplayClass10_39::item
IL_548E: ldfld System.Int32 Verse.Thing::stackCount
IL_5493: call static System.Boolean
RimWorld.MassUtility::WillBeOverEncumberedAfterPickingUp(Verse.Pawn pawn,
Verse.Thing thing, System.Int32 count)
IL_5498: brfalse => Label431
IL_549D: ldarg.2
IL_549E: ldstr "CannotGiveToPackAnimalAll"
IL_54A3: ldloc.s 135 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_40)
IL_54A5: ldfld RimWorld.<>c__DisplayClass10_39
RimWorld.<>c__DisplayClass10_40::CS$<>8__locals39
IL_54AA: ldfld Verse.Thing RimWorld.<>c__DisplayClass10_39::item
IL_54AF: callvirt abstract virtual System.String Verse.Entity::get_Label()
IL_54B4: call static Verse.NamedArgument
Verse.NamedArgument::op_Implicit(System.String value)
IL_54B9: ldloc.s 135 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_40)
IL_54BB: ldfld RimWorld.<>c__DisplayClass10_39
RimWorld.<>c__DisplayClass10_40::CS$<>8__locals39
IL_54C0: ldfld Verse.Thing RimWorld.<>c__DisplayClass10_39::item
IL_54C5: call static Verse.NamedArgument
Verse.NamedArgument::op_Implicit(Verse.Thing value)
IL_54CA: call static Verse.TaggedString
Verse.TranslatorFormattedStringExtensions::Translate(System.String key,
Verse.NamedArgument arg1, Verse.NamedArgument arg2)
IL_54CF: ldstr ": "
IL_54D4: call static Verse.TaggedString
Verse.TaggedString::op_Addition(Verse.TaggedString t1, System.String t2)
IL_54D9: ldstr "TooHeavy"
IL_54DE: call static Verse.TaggedString
Verse.Translator::Translate(System.String key)
IL_54E3: call static Verse.TaggedString
Verse.TaggedString::op_Addition(Verse.TaggedString t1, Verse.TaggedString t2)
IL_54E8: call static System.String
Verse.TaggedString::op_Implicit(Verse.TaggedString taggedString)
IL_54ED: ldnull
IL_54EE: ldc.i4.4
IL_54EF: ldnull
IL_54F0: ldnull
IL_54F1: ldc.r4 0
IL_54F6: ldnull
IL_54F7: ldnull
IL_54F8: ldc.i4.1
IL_54F9: ldc.i4.0
IL_54FA: newobj System.Void Verse.FloatMenuOption::.ctor(System.String
label, System.Action action, Verse.MenuOptionPriority priority,
System.Action`1<UnityEngine.Rect> mouseoverGuiAction, Verse.Thing
revalidateClickTarget, System.Single extraPartWidth,
System.Func`2<UnityEngine.Rect, System.Boolean> extraPartOnGUI,
RimWorld.Planet.WorldObject revalidateWorldClickTarget, System.Boolean
playSelectionSound, System.Int32 orderInPriority)
IL_54FF: callvirt virtual System.Void
System.Collections.Generic.List`1<Verse.FloatMenuOption>::Add(Verse.FloatMenuOption
item)
IL_5504: br => Label432
IL_5509: Label431
IL_5509: ldarg.2
IL_550A: ldstr "GiveToPackAnimalAll"
IL_550F: ldloc.s 135 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_40)
IL_5511: ldfld RimWorld.<>c__DisplayClass10_39
RimWorld.<>c__DisplayClass10_40::CS$<>8__locals39
IL_5516: ldfld Verse.Thing RimWorld.<>c__DisplayClass10_39::item
IL_551B: callvirt abstract virtual System.String Verse.Entity::get_Label()
IL_5520: call static Verse.NamedArgument
Verse.NamedArgument::op_Implicit(System.String value)
IL_5525: ldloc.s 135 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_40)
IL_5527: ldfld RimWorld.<>c__DisplayClass10_39
RimWorld.<>c__DisplayClass10_40::CS$<>8__locals39
IL_552C: ldfld Verse.Thing RimWorld.<>c__DisplayClass10_39::item
IL_5531: call static Verse.NamedArgument
Verse.NamedArgument::op_Implicit(Verse.Thing value)
IL_5536: call static Verse.TaggedString
Verse.TranslatorFormattedStringExtensions::Translate(System.String key,
Verse.NamedArgument arg1, Verse.NamedArgument arg2)
IL_553B: call static System.String
Verse.TaggedString::op_Implicit(Verse.TaggedString taggedString)
IL_5540: ldloc.s 135 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_40)
IL_5542: ldfld RimWorld.<>c__DisplayClass10_39
RimWorld.<>c__DisplayClass10_40::CS$<>8__locals39
IL_5547: ldftn System.Void
RimWorld.<>c__DisplayClass10_39::<AddHumanlikeOrders>b__55()
IL_554D: newobj System.Void System.Action::.ctor(System.Object object,
System.IntPtr method)
IL_5552: ldc.i4.5
IL_5553: ldnull
IL_5554: ldnull
IL_5555: ldc.r4 0
IL_555A: ldnull
IL_555B: ldnull
IL_555C: ldc.i4.1
IL_555D: ldc.i4.0
IL_555E: newobj System.Void Verse.FloatMenuOption::.ctor(System.String
label, System.Action action, Verse.MenuOptionPriority priority,
System.Action`1<UnityEngine.Rect> mouseoverGuiAction, Verse.Thing
revalidateClickTarget, System.Single extraPartWidth,
System.Func`2<UnityEngine.Rect, System.Boolean> extraPartOnGUI,
RimWorld.Planet.WorldObject revalidateWorldClickTarget, System.Boolean
playSelectionSound, System.Int32 orderInPriority)
IL_5563: ldloc.s 135 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_40)
IL_5565: ldfld RimWorld.<>c__DisplayClass10_39
RimWorld.<>c__DisplayClass10_40::CS$<>8__locals39
IL_556A: ldfld RimWorld.<>c__DisplayClass10_0
RimWorld.<>c__DisplayClass10_39::CS$<>8__locals38
IL_556F: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_5574: ldloc.s 135 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_40)
IL_5576: ldfld RimWorld.<>c__DisplayClass10_39
RimWorld.<>c__DisplayClass10_40::CS$<>8__locals39
IL_557B: ldfld Verse.Thing RimWorld.<>c__DisplayClass10_39::item
IL_5580: call static Verse.LocalTargetInfo
Verse.LocalTargetInfo::op_Implicit(Verse.Thing t)
IL_5585: ldstr "ReservedBy"
IL_558A: ldnull
IL_558B: call static Verse.FloatMenuOption
RimWorld.FloatMenuUtility::DecoratePrioritizedTask(Verse.FloatMenuOption option,
Verse.Pawn pawn, Verse.LocalTargetInfo target, System.String reservedText,
Verse.ReservationLayerDef layer)
IL_5590: callvirt virtual System.Void
System.Collections.Generic.List`1<Verse.FloatMenuOption>::Add(Verse.FloatMenuOption
item)
IL_5595: Label432
IL_5595: ldarg.2
IL_5596: ldstr "GiveToPackAnimalSome"
IL_559B: ldloc.s 135 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_40)
IL_559D: ldfld RimWorld.<>c__DisplayClass10_39
RimWorld.<>c__DisplayClass10_40::CS$<>8__locals39
IL_55A2: ldfld Verse.Thing RimWorld.<>c__DisplayClass10_39::item
IL_55A7: callvirt virtual System.String Verse.Thing::get_LabelNoCount()
IL_55AC: call static Verse.NamedArgument
Verse.NamedArgument::op_Implicit(System.String value)
IL_55B1: ldloc.s 135 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_40)
IL_55B3: ldfld RimWorld.<>c__DisplayClass10_39
RimWorld.<>c__DisplayClass10_40::CS$<>8__locals39
IL_55B8: ldfld Verse.Thing RimWorld.<>c__DisplayClass10_39::item
IL_55BD: call static Verse.NamedArgument
Verse.NamedArgument::op_Implicit(Verse.Thing value)
IL_55C2: call static Verse.TaggedString
Verse.TranslatorFormattedStringExtensions::Translate(System.String key,
Verse.NamedArgument arg1, Verse.NamedArgument arg2)
IL_55C7: call static System.String
Verse.TaggedString::op_Implicit(Verse.TaggedString taggedString)
IL_55CC: ldloc.s 135 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_40)
IL_55CE: ldftn System.Void
RimWorld.<>c__DisplayClass10_40::<AddHumanlikeOrders>b__56()
IL_55D4: newobj System.Void System.Action::.ctor(System.Object object,
System.IntPtr method)
IL_55D9: ldc.i4.5
IL_55DA: ldnull
IL_55DB: ldnull
IL_55DC: ldc.r4 0
IL_55E1: ldnull
IL_55E2: ldnull
IL_55E3: ldc.i4.1
IL_55E4: ldc.i4.0
IL_55E5: newobj System.Void Verse.FloatMenuOption::.ctor(System.String
label, System.Action action, Verse.MenuOptionPriority priority,
System.Action`1<UnityEngine.Rect> mouseoverGuiAction, Verse.Thing
revalidateClickTarget, System.Single extraPartWidth,
System.Func`2<UnityEngine.Rect, System.Boolean> extraPartOnGUI,
RimWorld.Planet.WorldObject revalidateWorldClickTarget, System.Boolean
playSelectionSound, System.Int32 orderInPriority)
IL_55EA: ldloc.s 135 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_40)
IL_55EC: ldfld RimWorld.<>c__DisplayClass10_39
RimWorld.<>c__DisplayClass10_40::CS$<>8__locals39
IL_55F1: ldfld RimWorld.<>c__DisplayClass10_0
RimWorld.<>c__DisplayClass10_39::CS$<>8__locals38
IL_55F6: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_55FB: ldloc.s 135 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_40)
IL_55FD: ldfld RimWorld.<>c__DisplayClass10_39
RimWorld.<>c__DisplayClass10_40::CS$<>8__locals39
IL_5602: ldfld Verse.Thing RimWorld.<>c__DisplayClass10_39::item
IL_5607: call static Verse.LocalTargetInfo
Verse.LocalTargetInfo::op_Implicit(Verse.Thing t)
IL_560C: ldstr "ReservedBy"
IL_5611: ldnull
IL_5612: call static Verse.FloatMenuOption
RimWorld.FloatMenuUtility::DecoratePrioritizedTask(Verse.FloatMenuOption option,
Verse.Pawn pawn, Verse.LocalTargetInfo target, System.String reservedText,
Verse.ReservationLayerDef layer)
IL_5617: callvirt virtual System.Void
System.Collections.Generic.List`1<Verse.FloatMenuOption>::Add(Verse.FloatMenuOption
item)
IL_561C: Label422
IL_561C: Label423
IL_561C: Label424
IL_561C: Label426
IL_561C: Label428
IL_561C: Label430
IL_561C: ldloc.s 60
(System.Collections.Generic.IEnumerator`1[Verse.Thing])
IL_561E: callvirt abstract virtual System.Boolean
System.Collections.IEnumerator::MoveNext()
IL_5623: brtrue => Label433
IL_5628: leave => Label434
IL_562D: leave => (autogenerated)
} // end try
.finally
{
IL_5632: ldloc.s 60
(System.Collections.Generic.IEnumerator`1[Verse.Thing])
IL_5634: brfalse => Label435
IL_5639: ldloc.s 60
(System.Collections.Generic.IEnumerator`1[Verse.Thing])
IL_563B: callvirt abstract virtual System.Void
System.IDisposable::Dispose()
IL_5640: Label435
IL_5640: endfinally
IL_5641: leave => (autogenerated)
} // end handler
IL_5642: Label420
IL_5642: Label421
IL_5642: Label434
IL_5642: ldloc.0
IL_5643: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_5648: callvirt virtual Verse.Map Verse.Thing::get_Map()
IL_564D: callvirt System.Boolean Verse.Map::get_IsPlayerHome()
IL_5652: brtrue => Label436
IL_5657: ldloc.0
IL_5658: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_565D: callvirt virtual Verse.Map Verse.Thing::get_Map()
IL_5662: ldfld Verse.ExitMapGrid Verse.Map::exitMapGrid
IL_5667: callvirt System.Boolean Verse.ExitMapGrid::get_MapUsesExitGrid()
IL_566C: brfalse => Label437
IL_5671: ldarg.0
IL_5672: ldloc.0
IL_5673: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_5678: call static RimWorld.TargetingParameters
RimWorld.TargetingParameters::ForRescue(Verse.Pawn p)
IL_567D: ldc.i4.1
IL_567E: ldnull
IL_567F: call static
System.Collections.Generic.IEnumerable`1<Verse.LocalTargetInfo>
Verse.GenUI::TargetsAt(UnityEngine.Vector3 clickPos, RimWorld.TargetingParameters
clickParams, System.Boolean thingsOnly, RimWorld.ITargetingSource source)
IL_5684: callvirt abstract virtual
System.Collections.Generic.IEnumerator`1<Verse.LocalTargetInfo>
System.Collections.Generic.IEnumerable`1<Verse.LocalTargetInfo>::GetEnumerator()
IL_5689: stloc.s 8
(System.Collections.Generic.IEnumerator`1[Verse.LocalTargetInfo])
.try
{
IL_568B: br => Label438
IL_5690: Label449
IL_5690: ldloc.s 8
(System.Collections.Generic.IEnumerator`1[Verse.LocalTargetInfo])
IL_5692: callvirt abstract virtual Verse.LocalTargetInfo
System.Collections.Generic.IEnumerator`1<Verse.LocalTargetInfo>::get_Current()
IL_5697: stloc.s 136 (Verse.LocalTargetInfo)
IL_5699: newobj System.Void RimWorld.<>c__DisplayClass10_41::.ctor()
IL_569E: stloc.s 137 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_41)
IL_56A0: ldloc.s 137 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_41)
IL_56A2: ldloc.0
IL_56A3: stfld RimWorld.<>c__DisplayClass10_0
RimWorld.<>c__DisplayClass10_41::CS$<>8__locals40
IL_56A8: ldloc.s 137 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_41)
IL_56AA: ldloca.s 136 (Verse.LocalTargetInfo)
IL_56AC: call Verse.Thing Verse.LocalTargetInfo::get_Thing()
IL_56B1: castclass Verse.Pawn
IL_56B6: stfld Verse.Pawn RimWorld.<>c__DisplayClass10_41::p
IL_56BB: ldloc.s 137 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_41)
IL_56BD: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_41::p
IL_56C2: callvirt virtual RimWorld.Faction Verse.Thing::get_Faction()
IL_56C7: call static RimWorld.Faction RimWorld.Faction::get_OfPlayer()
IL_56CC: beq => Label439
IL_56D1: ldloc.s 137 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_41)
IL_56D3: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_41::p
IL_56D8: callvirt System.Boolean Verse.Pawn::get_IsPrisonerOfColony()
IL_56DD: brtrue => Label440
IL_56E2: ldloc.s 137 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_41)
IL_56E4: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_41::p
IL_56E9: call static RimWorld.Faction RimWorld.Faction::get_OfPlayer()
IL_56EE: call static System.Boolean
RimWorld.Planet.CaravanUtility::ShouldAutoCapture(Verse.Pawn p, RimWorld.Faction
caravanFaction)
IL_56F3: brfalse => Label441
IL_56F8: Label439
IL_56F8: Label440
IL_56F8: ldloc.s 137 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_41)
IL_56FA: ldfld RimWorld.<>c__DisplayClass10_0
RimWorld.<>c__DisplayClass10_41::CS$<>8__locals40
IL_56FF: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_5704: ldloc.s 137 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_41)
IL_5706: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_41::p
IL_570B: call static Verse.LocalTargetInfo
Verse.LocalTargetInfo::op_Implicit(Verse.Thing t)
IL_5710: ldc.i4.3
IL_5711: ldc.i4.3
IL_5712: ldc.i4.0
IL_5713: ldc.i4.0
IL_5714: ldc.i4.0
IL_5715: call static System.Boolean
Verse.ReachabilityUtility::CanReach(Verse.Pawn pawn, Verse.LocalTargetInfo dest,
Verse.AI.PathEndMode peMode, Verse.Danger maxDanger, System.Boolean canBashDoors,
System.Boolean canBashFences, Verse.TraverseMode mode)
IL_571A: brtrue => Label442
IL_571F: ldarg.2
IL_5720: ldstr "CannotCarryToExit"
IL_5725: ldloc.s 137 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_41)
IL_5727: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_41::p
IL_572C: callvirt abstract virtual System.String Verse.Entity::get_Label()
IL_5731: call static Verse.NamedArgument
Verse.NamedArgument::op_Implicit(System.String value)
IL_5736: ldloc.s 137 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_41)
IL_5738: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_41::p
IL_573D: call static Verse.NamedArgument
Verse.NamedArgument::op_Implicit(Verse.Thing value)
IL_5742: call static Verse.TaggedString
Verse.TranslatorFormattedStringExtensions::Translate(System.String key,
Verse.NamedArgument arg1, Verse.NamedArgument arg2)
IL_5747: ldstr ": "
IL_574C: call static Verse.TaggedString
Verse.TaggedString::op_Addition(Verse.TaggedString t1, System.String t2)
IL_5751: ldstr "NoPath"
IL_5756: call static Verse.TaggedString
Verse.Translator::Translate(System.String key)
IL_575B: stloc.s 11 (Verse.TaggedString)
IL_575D: ldloca.s 11 (Verse.TaggedString)
IL_575F: call Verse.TaggedString Verse.TaggedString::CapitalizeFirst()
IL_5764: call static Verse.TaggedString
Verse.TaggedString::op_Addition(Verse.TaggedString t1, Verse.TaggedString t2)
IL_5769: call static System.String
Verse.TaggedString::op_Implicit(Verse.TaggedString taggedString)
IL_576E: ldnull
IL_576F: ldc.i4.4
IL_5770: ldnull
IL_5771: ldnull
IL_5772: ldc.r4 0
IL_5777: ldnull
IL_5778: ldnull
IL_5779: ldc.i4.1
IL_577A: ldc.i4.0
IL_577B: newobj System.Void Verse.FloatMenuOption::.ctor(System.String
label, System.Action action, Verse.MenuOptionPriority priority,
System.Action`1<UnityEngine.Rect> mouseoverGuiAction, Verse.Thing
revalidateClickTarget, System.Single extraPartWidth,
System.Func`2<UnityEngine.Rect, System.Boolean> extraPartOnGUI,
RimWorld.Planet.WorldObject revalidateWorldClickTarget, System.Boolean
playSelectionSound, System.Int32 orderInPriority)
IL_5780: callvirt virtual System.Void
System.Collections.Generic.List`1<Verse.FloatMenuOption>::Add(Verse.FloatMenuOption
item)
IL_5785: br => Label443
IL_578A: Label442
IL_578A: newobj System.Void RimWorld.<>c__DisplayClass10_42::.ctor()
IL_578F: stloc.s 138 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_42)
IL_5791: ldloc.s 138 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_42)
IL_5793: ldloc.s 137 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_41)
IL_5795: stfld RimWorld.<>c__DisplayClass10_41
RimWorld.<>c__DisplayClass10_42::CS$<>8__locals41
IL_579A: ldloc.s 138 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_42)
IL_579C: ldfld RimWorld.<>c__DisplayClass10_41
RimWorld.<>c__DisplayClass10_42::CS$<>8__locals41
IL_57A1: ldfld RimWorld.<>c__DisplayClass10_0
RimWorld.<>c__DisplayClass10_41::CS$<>8__locals40
IL_57A6: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_57AB: ldloc.s 138 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_42)
IL_57AD: ldflda Verse.IntVec3 RimWorld.<>c__DisplayClass10_42::exitSpot
IL_57B2: ldc.i4.0
IL_57B3: ldc.i4.1
IL_57B4: call static System.Boolean
RimWorld.RCellFinder::TryFindBestExitSpot(Verse.Pawn pawn, Verse.IntVec3& spot,
Verse.TraverseMode mode, System.Boolean canBash)
IL_57B9: brtrue => Label444
IL_57BE: ldarg.2
IL_57BF: ldstr "CannotCarryToExit"
IL_57C4: ldloc.s 138 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_42)
IL_57C6: ldfld RimWorld.<>c__DisplayClass10_41
RimWorld.<>c__DisplayClass10_42::CS$<>8__locals41
IL_57CB: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_41::p
IL_57D0: callvirt abstract virtual System.String Verse.Entity::get_Label()
IL_57D5: call static Verse.NamedArgument
Verse.NamedArgument::op_Implicit(System.String value)
IL_57DA: ldloc.s 138 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_42)
IL_57DC: ldfld RimWorld.<>c__DisplayClass10_41
RimWorld.<>c__DisplayClass10_42::CS$<>8__locals41
IL_57E1: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_41::p
IL_57E6: call static Verse.NamedArgument
Verse.NamedArgument::op_Implicit(Verse.Thing value)
IL_57EB: call static Verse.TaggedString
Verse.TranslatorFormattedStringExtensions::Translate(System.String key,
Verse.NamedArgument arg1, Verse.NamedArgument arg2)
IL_57F0: ldstr ": "
IL_57F5: call static Verse.TaggedString
Verse.TaggedString::op_Addition(Verse.TaggedString t1, System.String t2)
IL_57FA: ldstr "NoPath"
IL_57FF: call static Verse.TaggedString
Verse.Translator::Translate(System.String key)
IL_5804: stloc.s 11 (Verse.TaggedString)
IL_5806: ldloca.s 11 (Verse.TaggedString)
IL_5808: call Verse.TaggedString Verse.TaggedString::CapitalizeFirst()
IL_580D: call static Verse.TaggedString
Verse.TaggedString::op_Addition(Verse.TaggedString t1, Verse.TaggedString t2)
IL_5812: call static System.String
Verse.TaggedString::op_Implicit(Verse.TaggedString taggedString)
IL_5817: ldnull
IL_5818: ldc.i4.4
IL_5819: ldnull
IL_581A: ldnull
IL_581B: ldc.r4 0
IL_5820: ldnull
IL_5821: ldnull
IL_5822: ldc.i4.1
IL_5823: ldc.i4.0
IL_5824: newobj System.Void Verse.FloatMenuOption::.ctor(System.String
label, System.Action action, Verse.MenuOptionPriority priority,
System.Action`1<UnityEngine.Rect> mouseoverGuiAction, Verse.Thing
revalidateClickTarget, System.Single extraPartWidth,
System.Func`2<UnityEngine.Rect, System.Boolean> extraPartOnGUI,
RimWorld.Planet.WorldObject revalidateWorldClickTarget, System.Boolean
playSelectionSound, System.Int32 orderInPriority)
IL_5829: callvirt virtual System.Void
System.Collections.Generic.List`1<Verse.FloatMenuOption>::Add(Verse.FloatMenuOption
item)
IL_582E: br => Label445
IL_5833: Label444
IL_5833: ldloc.s 138 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_42)
IL_5835: ldfld RimWorld.<>c__DisplayClass10_41
RimWorld.<>c__DisplayClass10_42::CS$<>8__locals41
IL_583A: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_41::p
IL_583F: callvirt virtual RimWorld.Faction Verse.Thing::get_Faction()
IL_5844: call static RimWorld.Faction RimWorld.Faction::get_OfPlayer()
IL_5849: beq => Label446
IL_584E: ldloc.s 138 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_42)
IL_5850: ldfld RimWorld.<>c__DisplayClass10_41
RimWorld.<>c__DisplayClass10_42::CS$<>8__locals41
IL_5855: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_41::p
IL_585A: callvirt System.Boolean Verse.Pawn::get_IsPrisonerOfColony()
IL_585F: brtrue => Label447
IL_5864: ldstr "CarryToExitAndCapture"
IL_5869: ldloc.s 138 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_42)
IL_586B: ldfld RimWorld.<>c__DisplayClass10_41
RimWorld.<>c__DisplayClass10_42::CS$<>8__locals41
IL_5870: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_41::p
IL_5875: callvirt abstract virtual System.String Verse.Entity::get_Label()
IL_587A: call static Verse.NamedArgument
Verse.NamedArgument::op_Implicit(System.String value)
IL_587F: ldloc.s 138 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_42)
IL_5881: ldfld RimWorld.<>c__DisplayClass10_41
RimWorld.<>c__DisplayClass10_42::CS$<>8__locals41
IL_5886: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_41::p
IL_588B: call static Verse.NamedArgument
Verse.NamedArgument::op_Implicit(Verse.Thing value)
IL_5890: call static Verse.TaggedString
Verse.TranslatorFormattedStringExtensions::Translate(System.String key,
Verse.NamedArgument arg1, Verse.NamedArgument arg2)
IL_5895: br => Label448
IL_589A: Label446
IL_589A: Label447
IL_589A: ldstr "CarryToExit"
IL_589F: ldloc.s 138 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_42)
IL_58A1: ldfld RimWorld.<>c__DisplayClass10_41
RimWorld.<>c__DisplayClass10_42::CS$<>8__locals41
IL_58A6: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_41::p
IL_58AB: callvirt abstract virtual System.String Verse.Entity::get_Label()
IL_58B0: call static Verse.NamedArgument
Verse.NamedArgument::op_Implicit(System.String value)
IL_58B5: ldloc.s 138 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_42)
IL_58B7: ldfld RimWorld.<>c__DisplayClass10_41
RimWorld.<>c__DisplayClass10_42::CS$<>8__locals41
IL_58BC: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_41::p
IL_58C1: call static Verse.NamedArgument
Verse.NamedArgument::op_Implicit(Verse.Thing value)
IL_58C6: call static Verse.TaggedString
Verse.TranslatorFormattedStringExtensions::Translate(System.String key,
Verse.NamedArgument arg1, Verse.NamedArgument arg2)
IL_58CB: Label448
IL_58CB: stloc.s 139 (Verse.TaggedString)
IL_58CD: ldarg.2
IL_58CE: ldloc.s 139 (Verse.TaggedString)
IL_58D0: call static System.String
Verse.TaggedString::op_Implicit(Verse.TaggedString taggedString)
IL_58D5: ldloc.s 138 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_42)
IL_58D7: ldftn System.Void
RimWorld.<>c__DisplayClass10_42::<AddHumanlikeOrders>b__58()
IL_58DD: newobj System.Void System.Action::.ctor(System.Object object,
System.IntPtr method)
IL_58E2: ldc.i4.5
IL_58E3: ldnull
IL_58E4: ldnull
IL_58E5: ldc.r4 0
IL_58EA: ldnull
IL_58EB: ldnull
IL_58EC: ldc.i4.1
IL_58ED: ldc.i4.0
IL_58EE: newobj System.Void Verse.FloatMenuOption::.ctor(System.String
label, System.Action action, Verse.MenuOptionPriority priority,
System.Action`1<UnityEngine.Rect> mouseoverGuiAction, Verse.Thing
revalidateClickTarget, System.Single extraPartWidth,
System.Func`2<UnityEngine.Rect, System.Boolean> extraPartOnGUI,
RimWorld.Planet.WorldObject revalidateWorldClickTarget, System.Boolean
playSelectionSound, System.Int32 orderInPriority)
IL_58F3: ldloc.s 138 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_42)
IL_58F5: ldfld RimWorld.<>c__DisplayClass10_41
RimWorld.<>c__DisplayClass10_42::CS$<>8__locals41
IL_58FA: ldfld RimWorld.<>c__DisplayClass10_0
RimWorld.<>c__DisplayClass10_41::CS$<>8__locals40
IL_58FF: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_5904: ldloc.s 136 (Verse.LocalTargetInfo)
IL_5906: ldstr "ReservedBy"
IL_590B: ldnull
IL_590C: call static Verse.FloatMenuOption
RimWorld.FloatMenuUtility::DecoratePrioritizedTask(Verse.FloatMenuOption option,
Verse.Pawn pawn, Verse.LocalTargetInfo target, System.String reservedText,
Verse.ReservationLayerDef layer)
IL_5911: callvirt virtual System.Void
System.Collections.Generic.List`1<Verse.FloatMenuOption>::Add(Verse.FloatMenuOption
item)
IL_5916: Label438
IL_5916: Label441
IL_5916: Label443
IL_5916: Label445
IL_5916: ldloc.s 8
(System.Collections.Generic.IEnumerator`1[Verse.LocalTargetInfo])
IL_5918: callvirt abstract virtual System.Boolean
System.Collections.IEnumerator::MoveNext()
IL_591D: brtrue => Label449
IL_5922: leave => Label450
IL_5927: leave => (autogenerated)
} // end try
.finally
{
IL_592C: ldloc.s 8
(System.Collections.Generic.IEnumerator`1[Verse.LocalTargetInfo])
IL_592E: brfalse => Label451
IL_5933: ldloc.s 8
(System.Collections.Generic.IEnumerator`1[Verse.LocalTargetInfo])
IL_5935: callvirt abstract virtual System.Void
System.IDisposable::Dispose()
IL_593A: Label451
IL_593A: endfinally
IL_593B: leave => (autogenerated)
} // end handler
IL_593C: Label436
IL_593C: Label437
IL_593C: Label450
IL_593C: ldloc.0
IL_593D: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_5942: ldfld Verse.Pawn_EquipmentTracker Verse.Pawn::equipment
IL_5947: brfalse => Label452
IL_594C: ldloc.0
IL_594D: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_5952: ldfld Verse.Pawn_EquipmentTracker Verse.Pawn::equipment
IL_5957: callvirt Verse.ThingWithComps Verse.Pawn_EquipmentTracker::get_Primary()
IL_595C: brfalse => Label453
IL_5961: ldarg.0
IL_5962: ldloc.0
IL_5963: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_5968: call static RimWorld.TargetingParameters
RimWorld.TargetingParameters::ForSelf(Verse.Pawn p)
IL_596D: ldc.i4.1
IL_596E: ldnull
IL_596F: call static
System.Collections.Generic.IEnumerable`1<Verse.LocalTargetInfo>
Verse.GenUI::TargetsAt(UnityEngine.Vector3 clickPos, RimWorld.TargetingParameters
clickParams, System.Boolean thingsOnly, RimWorld.ITargetingSource source)
IL_5974: call static System.Boolean
System.Linq.Enumerable::Any(System.Collections.Generic.IEnumerable`1<Verse.LocalTar
getInfo> source)
IL_5979: brfalse => Label454
IL_597E: ldloc.0
IL_597F: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_5984: call static System.Boolean
RimWorld.QuestUtility::IsQuestLodger(Verse.Pawn p)
IL_5989: brfalse => Label455
IL_598E: ldloc.0
IL_598F: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_5994: ldfld Verse.Pawn_EquipmentTracker Verse.Pawn::equipment
IL_5999: callvirt Verse.ThingWithComps Verse.Pawn_EquipmentTracker::get_Primary()
IL_599E: ldloc.0
IL_599F: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_59A4: call static System.Boolean
RimWorld.EquipmentUtility::QuestLodgerCanUnequip(Verse.Thing thing, Verse.Pawn
pawn)
IL_59A9: brtrue => Label456
IL_59AE: ldarg.2
IL_59AF: ldstr "CannotDrop"
IL_59B4: ldloc.0
IL_59B5: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_59BA: ldfld Verse.Pawn_EquipmentTracker Verse.Pawn::equipment
IL_59BF: callvirt Verse.ThingWithComps Verse.Pawn_EquipmentTracker::get_Primary()
IL_59C4: callvirt abstract virtual System.String Verse.Entity::get_Label()
IL_59C9: call static Verse.NamedArgument
Verse.NamedArgument::op_Implicit(System.String value)
IL_59CE: ldloc.0
IL_59CF: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_59D4: ldfld Verse.Pawn_EquipmentTracker Verse.Pawn::equipment
IL_59D9: callvirt Verse.ThingWithComps Verse.Pawn_EquipmentTracker::get_Primary()
IL_59DE: call static Verse.NamedArgument
Verse.NamedArgument::op_Implicit(Verse.Thing value)
IL_59E3: call static Verse.TaggedString
Verse.TranslatorFormattedStringExtensions::Translate(System.String key,
Verse.NamedArgument arg1, Verse.NamedArgument arg2)
IL_59E8: ldstr ": "
IL_59ED: call static Verse.TaggedString
Verse.TaggedString::op_Addition(Verse.TaggedString t1, System.String t2)
IL_59F2: ldstr "QuestRelated"
IL_59F7: call static Verse.TaggedString
Verse.Translator::Translate(System.String key)
IL_59FC: stloc.s 11 (Verse.TaggedString)
IL_59FE: ldloca.s 11 (Verse.TaggedString)
IL_5A00: call Verse.TaggedString Verse.TaggedString::CapitalizeFirst()
IL_5A05: call static Verse.TaggedString
Verse.TaggedString::op_Addition(Verse.TaggedString t1, Verse.TaggedString t2)
IL_5A0A: call static System.String
Verse.TaggedString::op_Implicit(Verse.TaggedString taggedString)
IL_5A0F: ldnull
IL_5A10: ldc.i4.4
IL_5A11: ldnull
IL_5A12: ldnull
IL_5A13: ldc.r4 0
IL_5A18: ldnull
IL_5A19: ldnull
IL_5A1A: ldc.i4.1
IL_5A1B: ldc.i4.0
IL_5A1C: newobj System.Void Verse.FloatMenuOption::.ctor(System.String label,
System.Action action, Verse.MenuOptionPriority priority,
System.Action`1<UnityEngine.Rect> mouseoverGuiAction, Verse.Thing
revalidateClickTarget, System.Single extraPartWidth,
System.Func`2<UnityEngine.Rect, System.Boolean> extraPartOnGUI,
RimWorld.Planet.WorldObject revalidateWorldClickTarget, System.Boolean
playSelectionSound, System.Int32 orderInPriority)
IL_5A21: callvirt virtual System.Void
System.Collections.Generic.List`1<Verse.FloatMenuOption>::Add(Verse.FloatMenuOption
item)
IL_5A26: br => Label457
IL_5A2B: Label455
IL_5A2B: Label456
IL_5A2B: ldloc.0
IL_5A2C: ldftn System.Void
RimWorld.<>c__DisplayClass10_0::<AddHumanlikeOrders>b__59()
IL_5A32: newobj System.Void System.Action::.ctor(System.Object object,
System.IntPtr method)
IL_5A37: stloc.s 140 (System.Action)
IL_5A39: ldarg.2
IL_5A3A: ldstr "Drop"
IL_5A3F: ldloc.0
IL_5A40: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_5A45: ldfld Verse.Pawn_EquipmentTracker Verse.Pawn::equipment
IL_5A4A: callvirt Verse.ThingWithComps Verse.Pawn_EquipmentTracker::get_Primary()
IL_5A4F: callvirt abstract virtual System.String Verse.Entity::get_Label()
IL_5A54: call static Verse.NamedArgument
Verse.NamedArgument::op_Implicit(System.String value)
IL_5A59: ldloc.0
IL_5A5A: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_5A5F: ldfld Verse.Pawn_EquipmentTracker Verse.Pawn::equipment
IL_5A64: callvirt Verse.ThingWithComps Verse.Pawn_EquipmentTracker::get_Primary()
IL_5A69: call static Verse.NamedArgument
Verse.NamedArgument::op_Implicit(Verse.Thing value)
IL_5A6E: call static Verse.TaggedString
Verse.TranslatorFormattedStringExtensions::Translate(System.String key,
Verse.NamedArgument arg1, Verse.NamedArgument arg2)
IL_5A73: call static System.String
Verse.TaggedString::op_Implicit(Verse.TaggedString taggedString)
IL_5A78: ldloc.s 140 (System.Action)
IL_5A7A: ldc.i4.4
IL_5A7B: ldnull
IL_5A7C: ldloc.0
IL_5A7D: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_5A82: ldc.r4 0
IL_5A87: ldnull
IL_5A88: ldnull
IL_5A89: ldc.i4.1
IL_5A8A: ldc.i4.0
IL_5A8B: newobj System.Void Verse.FloatMenuOption::.ctor(System.String label,
System.Action action, Verse.MenuOptionPriority priority,
System.Action`1<UnityEngine.Rect> mouseoverGuiAction, Verse.Thing
revalidateClickTarget, System.Single extraPartWidth,
System.Func`2<UnityEngine.Rect, System.Boolean> extraPartOnGUI,
RimWorld.Planet.WorldObject revalidateWorldClickTarget, System.Boolean
playSelectionSound, System.Int32 orderInPriority)
IL_5A90: callvirt virtual System.Void
System.Collections.Generic.List`1<Verse.FloatMenuOption>::Add(Verse.FloatMenuOption
item)
IL_5A95: Label452
IL_5A95: Label453
IL_5A95: Label454
IL_5A95: Label457
IL_5A95: ldarg.0
IL_5A96: call static RimWorld.TargetingParameters
RimWorld.TargetingParameters::ForTrade()
IL_5A9B: ldc.i4.1
IL_5A9C: ldnull
IL_5A9D: call static
System.Collections.Generic.IEnumerable`1<Verse.LocalTargetInfo>
Verse.GenUI::TargetsAt(UnityEngine.Vector3 clickPos, RimWorld.TargetingParameters
clickParams, System.Boolean thingsOnly, RimWorld.ITargetingSource source)
IL_5AA2: callvirt abstract virtual
System.Collections.Generic.IEnumerator`1<Verse.LocalTargetInfo>
System.Collections.Generic.IEnumerable`1<Verse.LocalTargetInfo>::GetEnumerator()
IL_5AA7: stloc.s 8
(System.Collections.Generic.IEnumerator`1[Verse.LocalTargetInfo])
.try
{
IL_5AA9: br => Label458
IL_5AAE: Label466
IL_5AAE: ldloc.s 8
(System.Collections.Generic.IEnumerator`1[Verse.LocalTargetInfo])
IL_5AB0: callvirt abstract virtual Verse.LocalTargetInfo
System.Collections.Generic.IEnumerator`1<Verse.LocalTargetInfo>::get_Current()
IL_5AB5: stloc.s 141 (Verse.LocalTargetInfo)
IL_5AB7: ldloc.0
IL_5AB8: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_5ABD: ldloc.s 141 (Verse.LocalTargetInfo)
IL_5ABF: ldc.i4.1
IL_5AC0: ldc.i4.3
IL_5AC1: ldc.i4.0
IL_5AC2: ldc.i4.0
IL_5AC3: ldc.i4.0
IL_5AC4: call static System.Boolean
Verse.ReachabilityUtility::CanReach(Verse.Pawn pawn, Verse.LocalTargetInfo dest,
Verse.AI.PathEndMode peMode, Verse.Danger maxDanger, System.Boolean canBashDoors,
System.Boolean canBashFences, Verse.TraverseMode mode)
IL_5AC9: brtrue => Label459
IL_5ACE: ldarg.2
IL_5ACF: ldstr "CannotTrade"
IL_5AD4: call static Verse.TaggedString
Verse.Translator::Translate(System.String key)
IL_5AD9: ldstr ": "
IL_5ADE: call static Verse.TaggedString
Verse.TaggedString::op_Addition(Verse.TaggedString t1, System.String t2)
IL_5AE3: ldstr "NoPath"
IL_5AE8: call static Verse.TaggedString
Verse.Translator::Translate(System.String key)
IL_5AED: stloc.s 11 (Verse.TaggedString)
IL_5AEF: ldloca.s 11 (Verse.TaggedString)
IL_5AF1: call Verse.TaggedString Verse.TaggedString::CapitalizeFirst()
IL_5AF6: call static Verse.TaggedString
Verse.TaggedString::op_Addition(Verse.TaggedString t1, Verse.TaggedString t2)
IL_5AFB: call static System.String
Verse.TaggedString::op_Implicit(Verse.TaggedString taggedString)
IL_5B00: ldnull
IL_5B01: ldc.i4.4
IL_5B02: ldnull
IL_5B03: ldnull
IL_5B04: ldc.r4 0
IL_5B09: ldnull
IL_5B0A: ldnull
IL_5B0B: ldc.i4.1
IL_5B0C: ldc.i4.0
IL_5B0D: newobj System.Void Verse.FloatMenuOption::.ctor(System.String
label, System.Action action, Verse.MenuOptionPriority priority,
System.Action`1<UnityEngine.Rect> mouseoverGuiAction, Verse.Thing
revalidateClickTarget, System.Single extraPartWidth,
System.Func`2<UnityEngine.Rect, System.Boolean> extraPartOnGUI,
RimWorld.Planet.WorldObject revalidateWorldClickTarget, System.Boolean
playSelectionSound, System.Int32 orderInPriority)
IL_5B12: callvirt virtual System.Void
System.Collections.Generic.List`1<Verse.FloatMenuOption>::Add(Verse.FloatMenuOption
item)
IL_5B17: br => Label460
IL_5B1C: Label459
IL_5B1C: ldloc.0
IL_5B1D: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_5B22: ldfld RimWorld.Pawn_SkillTracker Verse.Pawn::skills
IL_5B27: ldsfld RimWorld.SkillDef RimWorld.SkillDefOf::Social
IL_5B2C: callvirt RimWorld.SkillRecord
RimWorld.Pawn_SkillTracker::GetSkill(RimWorld.SkillDef skillDef)
IL_5B31: callvirt System.Boolean
RimWorld.SkillRecord::get_TotallyDisabled()
IL_5B36: brfalse => Label461
IL_5B3B: ldarg.2
IL_5B3C: ldstr "CannotPrioritizeWorkTypeDisabled"
IL_5B41: ldsfld RimWorld.SkillDef RimWorld.SkillDefOf::Social
IL_5B46: callvirt virtual Verse.TaggedString Verse.Def::get_LabelCap()
IL_5B4B: call static Verse.NamedArgument
Verse.NamedArgument::op_Implicit(Verse.TaggedString value)
IL_5B50: call static Verse.TaggedString
Verse.TranslatorFormattedStringExtensions::Translate(System.String key,
Verse.NamedArgument arg1)
IL_5B55: call static System.String
Verse.TaggedString::op_Implicit(Verse.TaggedString taggedString)
IL_5B5A: ldnull
IL_5B5B: ldc.i4.4
IL_5B5C: ldnull
IL_5B5D: ldnull
IL_5B5E: ldc.r4 0
IL_5B63: ldnull
IL_5B64: ldnull
IL_5B65: ldc.i4.1
IL_5B66: ldc.i4.0
IL_5B67: newobj System.Void Verse.FloatMenuOption::.ctor(System.String
label, System.Action action, Verse.MenuOptionPriority priority,
System.Action`1<UnityEngine.Rect> mouseoverGuiAction, Verse.Thing
revalidateClickTarget, System.Single extraPartWidth,
System.Func`2<UnityEngine.Rect, System.Boolean> extraPartOnGUI,
RimWorld.Planet.WorldObject revalidateWorldClickTarget, System.Boolean
playSelectionSound, System.Int32 orderInPriority)
IL_5B6C: callvirt virtual System.Void
System.Collections.Generic.List`1<Verse.FloatMenuOption>::Add(Verse.FloatMenuOption
item)
IL_5B71: br => Label462
IL_5B76: Label461
IL_5B76: ldloc.0
IL_5B77: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_5B7C: ldloca.s 141 (Verse.LocalTargetInfo)
IL_5B7E: call Verse.Thing Verse.LocalTargetInfo::get_Thing()
IL_5B83: castclass Verse.Pawn
IL_5B88: callvirt virtual RimWorld.Faction Verse.Thing::get_Faction()
IL_5B8D: ldloca.s 141 (Verse.LocalTargetInfo)
IL_5B8F: call Verse.Thing Verse.LocalTargetInfo::get_Thing()
IL_5B94: castclass Verse.Pawn
IL_5B99: callvirt virtual RimWorld.TraderKindDef
Verse.Pawn::get_TraderKind()
IL_5B9E: call static Verse.AcceptanceReport
RimWorld.FactionUtility::CanTradeWith(Verse.Pawn p, RimWorld.Faction faction,
RimWorld.TraderKindDef traderKind)
IL_5BA3: stloc.s 142 (Verse.AcceptanceReport)
IL_5BA5: ldloca.s 142 (Verse.AcceptanceReport)
IL_5BA7: call System.Boolean Verse.AcceptanceReport::get_Accepted()
IL_5BAC: brtrue => Label463
IL_5BB1: ldarg.2
IL_5BB2: ldstr "CannotTrade"
IL_5BB7: call static Verse.TaggedString
Verse.Translator::Translate(System.String key)
IL_5BBC: ldstr ": "
IL_5BC1: call static Verse.TaggedString
Verse.TaggedString::op_Addition(Verse.TaggedString t1, System.String t2)
IL_5BC6: ldstr "MissingTitleAbility"
IL_5BCB: call static Verse.TaggedString
Verse.Translator::Translate(System.String key)
IL_5BD0: stloc.s 11 (Verse.TaggedString)
IL_5BD2: ldloca.s 11 (Verse.TaggedString)
IL_5BD4: call Verse.TaggedString Verse.TaggedString::CapitalizeFirst()
IL_5BD9: call static Verse.TaggedString
Verse.TaggedString::op_Addition(Verse.TaggedString t1, Verse.TaggedString t2)
IL_5BDE: call static System.String
Verse.TaggedString::op_Implicit(Verse.TaggedString taggedString)
IL_5BE3: ldnull
IL_5BE4: ldc.i4.4
IL_5BE5: ldnull
IL_5BE6: ldnull
IL_5BE7: ldc.r4 0
IL_5BEC: ldnull
IL_5BED: ldnull
IL_5BEE: ldc.i4.1
IL_5BEF: ldc.i4.0
IL_5BF0: newobj System.Void Verse.FloatMenuOption::.ctor(System.String
label, System.Action action, Verse.MenuOptionPriority priority,
System.Action`1<UnityEngine.Rect> mouseoverGuiAction, Verse.Thing
revalidateClickTarget, System.Single extraPartWidth,
System.Func`2<UnityEngine.Rect, System.Boolean> extraPartOnGUI,
RimWorld.Planet.WorldObject revalidateWorldClickTarget, System.Boolean
playSelectionSound, System.Int32 orderInPriority)
IL_5BF5: callvirt virtual System.Void
System.Collections.Generic.List`1<Verse.FloatMenuOption>::Add(Verse.FloatMenuOption
item)
IL_5BFA: br => Label464
IL_5BFF: Label463
IL_5BFF: newobj System.Void RimWorld.<>c__DisplayClass10_43::.ctor()
IL_5C04: stloc.s 143 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_43)
IL_5C06: ldloc.s 143 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_43)
IL_5C08: ldloc.0
IL_5C09: stfld RimWorld.<>c__DisplayClass10_0
RimWorld.<>c__DisplayClass10_43::CS$<>8__locals42
IL_5C0E: ldloc.s 143 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_43)
IL_5C10: ldloca.s 141 (Verse.LocalTargetInfo)
IL_5C12: call Verse.Thing Verse.LocalTargetInfo::get_Thing()
IL_5C17: castclass Verse.Pawn
IL_5C1C: stfld Verse.Pawn RimWorld.<>c__DisplayClass10_43::pTarg
IL_5C21: ldloc.s 143 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_43)
IL_5C23: ldftn System.Void
RimWorld.<>c__DisplayClass10_43::<AddHumanlikeOrders>b__60()
IL_5C29: newobj System.Void System.Action::.ctor(System.Object object,
System.IntPtr method)
IL_5C2E: stloc.s 144 (System.Action)
IL_5C30: ldstr ""
IL_5C35: stloc.s 145 (System.String)
IL_5C37: ldloc.s 143 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_43)
IL_5C39: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_43::pTarg
IL_5C3E: callvirt virtual RimWorld.Faction Verse.Thing::get_Faction()
IL_5C43: brfalse => Label465
IL_5C48: ldstr " ("
IL_5C4D: ldloc.s 143 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_43)
IL_5C4F: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_43::pTarg
IL_5C54: callvirt virtual RimWorld.Faction Verse.Thing::get_Faction()
IL_5C59: callvirt System.String RimWorld.Faction::get_Name()
IL_5C5E: ldstr ")"
IL_5C63: call static System.String System.String::Concat(System.String
str0, System.String str1, System.String str2)
IL_5C68: stloc.s 145 (System.String)
IL_5C6A: Label465
IL_5C6A: ldarg.2
IL_5C6B: ldstr "TradeWith"
IL_5C70: ldloc.s 143 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_43)
IL_5C72: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_43::pTarg
IL_5C77: callvirt virtual System.String Verse.Entity::get_LabelShort()
IL_5C7C: ldstr ", "
IL_5C81: ldloc.s 143 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_43)
IL_5C83: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_43::pTarg
IL_5C88: callvirt virtual RimWorld.TraderKindDef
Verse.Pawn::get_TraderKind()
IL_5C8D: ldfld System.String Verse.Def::label
IL_5C92: call static System.String System.String::Concat(System.String
str0, System.String str1, System.String str2)
IL_5C97: call static Verse.NamedArgument
Verse.NamedArgument::op_Implicit(System.String value)
IL_5C9C: call static Verse.TaggedString
Verse.TranslatorFormattedStringExtensions::Translate(System.String key,
Verse.NamedArgument arg1)
IL_5CA1: ldloc.s 145 (System.String)
IL_5CA3: call static Verse.TaggedString
Verse.TaggedString::op_Addition(Verse.TaggedString t1, System.String t2)
IL_5CA8: call static System.String
Verse.TaggedString::op_Implicit(Verse.TaggedString taggedString)
IL_5CAD: ldloc.s 144 (System.Action)
IL_5CAF: ldc.i4.7
IL_5CB0: ldnull
IL_5CB1: ldloca.s 141 (Verse.LocalTargetInfo)
IL_5CB3: call Verse.Thing Verse.LocalTargetInfo::get_Thing()
IL_5CB8: ldc.r4 0
IL_5CBD: ldnull
IL_5CBE: ldnull
IL_5CBF: ldc.i4.1
IL_5CC0: ldc.i4.0
IL_5CC1: newobj System.Void Verse.FloatMenuOption::.ctor(System.String
label, System.Action action, Verse.MenuOptionPriority priority,
System.Action`1<UnityEngine.Rect> mouseoverGuiAction, Verse.Thing
revalidateClickTarget, System.Single extraPartWidth,
System.Func`2<UnityEngine.Rect, System.Boolean> extraPartOnGUI,
RimWorld.Planet.WorldObject revalidateWorldClickTarget, System.Boolean
playSelectionSound, System.Int32 orderInPriority)
IL_5CC6: ldloc.s 143 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_43)
IL_5CC8: ldfld RimWorld.<>c__DisplayClass10_0
RimWorld.<>c__DisplayClass10_43::CS$<>8__locals42
IL_5CCD: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_5CD2: ldloc.s 143 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_43)
IL_5CD4: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_43::pTarg
IL_5CD9: call static Verse.LocalTargetInfo
Verse.LocalTargetInfo::op_Implicit(Verse.Thing t)
IL_5CDE: ldstr "ReservedBy"
IL_5CE3: ldnull
IL_5CE4: call static Verse.FloatMenuOption
RimWorld.FloatMenuUtility::DecoratePrioritizedTask(Verse.FloatMenuOption option,
Verse.Pawn pawn, Verse.LocalTargetInfo target, System.String reservedText,
Verse.ReservationLayerDef layer)
IL_5CE9: callvirt virtual System.Void
System.Collections.Generic.List`1<Verse.FloatMenuOption>::Add(Verse.FloatMenuOption
item)
IL_5CEE: Label458
IL_5CEE: Label460
IL_5CEE: Label462
IL_5CEE: Label464
IL_5CEE: ldloc.s 8
(System.Collections.Generic.IEnumerator`1[Verse.LocalTargetInfo])
IL_5CF0: callvirt abstract virtual System.Boolean
System.Collections.IEnumerator::MoveNext()
IL_5CF5: brtrue => Label466
IL_5CFA: leave => Label467
IL_5CFF: leave => (autogenerated)
} // end try
.finally
{
IL_5D04: ldloc.s 8
(System.Collections.Generic.IEnumerator`1[Verse.LocalTargetInfo])
IL_5D06: brfalse => Label468
IL_5D0B: ldloc.s 8
(System.Collections.Generic.IEnumerator`1[Verse.LocalTargetInfo])
IL_5D0D: callvirt abstract virtual System.Void
System.IDisposable::Dispose()
IL_5D12: Label468
IL_5D12: endfinally
IL_5D13: leave => (autogenerated)
} // end handler
IL_5D14: Label467
IL_5D14: ldarg.0
IL_5D15: ldloc.0
IL_5D16: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_5D1B: call static RimWorld.TargetingParameters
RimWorld.TargetingParameters::ForOpen(Verse.Pawn p)
IL_5D20: ldc.i4.1
IL_5D21: ldnull
IL_5D22: call static
System.Collections.Generic.IEnumerable`1<Verse.LocalTargetInfo>
Verse.GenUI::TargetsAt(UnityEngine.Vector3 clickPos, RimWorld.TargetingParameters
clickParams, System.Boolean thingsOnly, RimWorld.ITargetingSource source)
IL_5D27: callvirt abstract virtual
System.Collections.Generic.IEnumerator`1<Verse.LocalTargetInfo>
System.Collections.Generic.IEnumerable`1<Verse.LocalTargetInfo>::GetEnumerator()
IL_5D2C: stloc.s 8
(System.Collections.Generic.IEnumerator`1[Verse.LocalTargetInfo])
.try
{
IL_5D2E: br => Label469
IL_5D33: Label475
IL_5D33: newobj System.Void RimWorld.<>c__DisplayClass10_44::.ctor()
IL_5D38: stloc.s 146 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_44)
IL_5D3A: ldloc.s 146 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_44)
IL_5D3C: ldloc.0
IL_5D3D: stfld RimWorld.<>c__DisplayClass10_0
RimWorld.<>c__DisplayClass10_44::CS$<>8__locals43
IL_5D42: ldloc.s 146 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_44)
IL_5D44: ldloc.s 8
(System.Collections.Generic.IEnumerator`1[Verse.LocalTargetInfo])
IL_5D46: callvirt abstract virtual Verse.LocalTargetInfo
System.Collections.Generic.IEnumerator`1<Verse.LocalTargetInfo>::get_Current()
IL_5D4B: stfld Verse.LocalTargetInfo
RimWorld.<>c__DisplayClass10_44::casket
IL_5D50: ldloc.s 146 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_44)
IL_5D52: ldfld RimWorld.<>c__DisplayClass10_0
RimWorld.<>c__DisplayClass10_44::CS$<>8__locals43
IL_5D57: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_5D5C: ldloc.s 146 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_44)
IL_5D5E: ldfld Verse.LocalTargetInfo
RimWorld.<>c__DisplayClass10_44::casket
IL_5D63: ldc.i4.1
IL_5D64: ldc.i4.3
IL_5D65: ldc.i4.0
IL_5D66: ldc.i4.0
IL_5D67: ldc.i4.0
IL_5D68: call static System.Boolean
Verse.ReachabilityUtility::CanReach(Verse.Pawn pawn, Verse.LocalTargetInfo dest,
Verse.AI.PathEndMode peMode, Verse.Danger maxDanger, System.Boolean canBashDoors,
System.Boolean canBashFences, Verse.TraverseMode mode)
IL_5D6D: brtrue => Label470
IL_5D72: ldarg.2
IL_5D73: ldstr "CannotOpen"
IL_5D78: ldloc.s 146 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_44)
IL_5D7A: ldflda Verse.LocalTargetInfo
RimWorld.<>c__DisplayClass10_44::casket
IL_5D7F: call Verse.Thing Verse.LocalTargetInfo::get_Thing()
IL_5D84: call static Verse.NamedArgument
Verse.NamedArgument::op_Implicit(Verse.Thing value)
IL_5D89: call static Verse.TaggedString
Verse.TranslatorFormattedStringExtensions::Translate(System.String key,
Verse.NamedArgument arg1)
IL_5D8E: ldstr ": "
IL_5D93: call static Verse.TaggedString
Verse.TaggedString::op_Addition(Verse.TaggedString t1, System.String t2)
IL_5D98: ldstr "NoPath"
IL_5D9D: call static Verse.TaggedString
Verse.Translator::Translate(System.String key)
IL_5DA2: stloc.s 11 (Verse.TaggedString)
IL_5DA4: ldloca.s 11 (Verse.TaggedString)
IL_5DA6: call Verse.TaggedString Verse.TaggedString::CapitalizeFirst()
IL_5DAB: call static Verse.TaggedString
Verse.TaggedString::op_Addition(Verse.TaggedString t1, Verse.TaggedString t2)
IL_5DB0: call static System.String
Verse.TaggedString::op_Implicit(Verse.TaggedString taggedString)
IL_5DB5: ldnull
IL_5DB6: ldc.i4.4
IL_5DB7: ldnull
IL_5DB8: ldnull
IL_5DB9: ldc.r4 0
IL_5DBE: ldnull
IL_5DBF: ldnull
IL_5DC0: ldc.i4.1
IL_5DC1: ldc.i4.0
IL_5DC2: newobj System.Void Verse.FloatMenuOption::.ctor(System.String
label, System.Action action, Verse.MenuOptionPriority priority,
System.Action`1<UnityEngine.Rect> mouseoverGuiAction, Verse.Thing
revalidateClickTarget, System.Single extraPartWidth,
System.Func`2<UnityEngine.Rect, System.Boolean> extraPartOnGUI,
RimWorld.Planet.WorldObject revalidateWorldClickTarget, System.Boolean
playSelectionSound, System.Int32 orderInPriority)
IL_5DC7: callvirt virtual System.Void
System.Collections.Generic.List`1<Verse.FloatMenuOption>::Add(Verse.FloatMenuOption
item)
IL_5DCC: br => Label471
IL_5DD1: Label470
IL_5DD1: ldloc.s 146 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_44)
IL_5DD3: ldfld RimWorld.<>c__DisplayClass10_0
RimWorld.<>c__DisplayClass10_44::CS$<>8__locals43
IL_5DD8: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_5DDD: ldfld Verse.Pawn_HealthTracker Verse.Pawn::health
IL_5DE2: ldfld Verse.PawnCapacitiesHandler
Verse.Pawn_HealthTracker::capacities
IL_5DE7: ldsfld Verse.PawnCapacityDef
RimWorld.PawnCapacityDefOf::Manipulation
IL_5DEC: callvirt System.Boolean
Verse.PawnCapacitiesHandler::CapableOf(Verse.PawnCapacityDef capacity)
IL_5DF1: brtrue => Label472
IL_5DF6: ldarg.2
IL_5DF7: ldstr "CannotOpen"
IL_5DFC: ldloc.s 146 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_44)
IL_5DFE: ldflda Verse.LocalTargetInfo
RimWorld.<>c__DisplayClass10_44::casket
IL_5E03: call Verse.Thing Verse.LocalTargetInfo::get_Thing()
IL_5E08: call static Verse.NamedArgument
Verse.NamedArgument::op_Implicit(Verse.Thing value)
IL_5E0D: call static Verse.TaggedString
Verse.TranslatorFormattedStringExtensions::Translate(System.String key,
Verse.NamedArgument arg1)
IL_5E12: ldstr ": "
IL_5E17: call static Verse.TaggedString
Verse.TaggedString::op_Addition(Verse.TaggedString t1, System.String t2)
IL_5E1C: ldstr "Incapable"
IL_5E21: call static Verse.TaggedString
Verse.Translator::Translate(System.String key)
IL_5E26: stloc.s 11 (Verse.TaggedString)
IL_5E28: ldloca.s 11 (Verse.TaggedString)
IL_5E2A: call Verse.TaggedString Verse.TaggedString::CapitalizeFirst()
IL_5E2F: call static Verse.TaggedString
Verse.TaggedString::op_Addition(Verse.TaggedString t1, Verse.TaggedString t2)
IL_5E34: call static System.String
Verse.TaggedString::op_Implicit(Verse.TaggedString taggedString)
IL_5E39: ldnull
IL_5E3A: ldc.i4.4
IL_5E3B: ldnull
IL_5E3C: ldnull
IL_5E3D: ldc.r4 0
IL_5E42: ldnull
IL_5E43: ldnull
IL_5E44: ldc.i4.1
IL_5E45: ldc.i4.0
IL_5E46: newobj System.Void Verse.FloatMenuOption::.ctor(System.String
label, System.Action action, Verse.MenuOptionPriority priority,
System.Action`1<UnityEngine.Rect> mouseoverGuiAction, Verse.Thing
revalidateClickTarget, System.Single extraPartWidth,
System.Func`2<UnityEngine.Rect, System.Boolean> extraPartOnGUI,
RimWorld.Planet.WorldObject revalidateWorldClickTarget, System.Boolean
playSelectionSound, System.Int32 orderInPriority)
IL_5E4B: callvirt virtual System.Void
System.Collections.Generic.List`1<Verse.FloatMenuOption>::Add(Verse.FloatMenuOption
item)
IL_5E50: br => Label473
IL_5E55: Label472
IL_5E55: ldloc.s 146 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_44)
IL_5E57: ldflda Verse.LocalTargetInfo
RimWorld.<>c__DisplayClass10_44::casket
IL_5E5C: call Verse.Thing Verse.LocalTargetInfo::get_Thing()
IL_5E61: callvirt virtual Verse.Map Verse.Thing::get_Map()
IL_5E66: ldfld Verse.DesignationManager Verse.Map::designationManager
IL_5E6B: ldloc.s 146 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_44)
IL_5E6D: ldflda Verse.LocalTargetInfo
RimWorld.<>c__DisplayClass10_44::casket
IL_5E72: call Verse.Thing Verse.LocalTargetInfo::get_Thing()
IL_5E77: ldsfld Verse.DesignationDef RimWorld.DesignationDefOf::Open
IL_5E7C: callvirt Verse.Designation
Verse.DesignationManager::DesignationOn(Verse.Thing t, Verse.DesignationDef def)
IL_5E81: brtrue => Label474
IL_5E86: ldarg.2
IL_5E87: ldstr "Open"
IL_5E8C: ldloc.s 146 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_44)
IL_5E8E: ldflda Verse.LocalTargetInfo
RimWorld.<>c__DisplayClass10_44::casket
IL_5E93: call Verse.Thing Verse.LocalTargetInfo::get_Thing()
IL_5E98: call static Verse.NamedArgument
Verse.NamedArgument::op_Implicit(Verse.Thing value)
IL_5E9D: call static Verse.TaggedString
Verse.TranslatorFormattedStringExtensions::Translate(System.String key,
Verse.NamedArgument arg1)
IL_5EA2: call static System.String
Verse.TaggedString::op_Implicit(Verse.TaggedString taggedString)
IL_5EA7: ldloc.s 146 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_44)
IL_5EA9: ldftn System.Void
RimWorld.<>c__DisplayClass10_44::<AddHumanlikeOrders>b__61()
IL_5EAF: newobj System.Void System.Action::.ctor(System.Object object,
System.IntPtr method)
IL_5EB4: ldc.i4.5
IL_5EB5: ldnull
IL_5EB6: ldnull
IL_5EB7: ldc.r4 0
IL_5EBC: ldnull
IL_5EBD: ldnull
IL_5EBE: ldc.i4.1
IL_5EBF: ldc.i4.0
IL_5EC0: newobj System.Void Verse.FloatMenuOption::.ctor(System.String
label, System.Action action, Verse.MenuOptionPriority priority,
System.Action`1<UnityEngine.Rect> mouseoverGuiAction, Verse.Thing
revalidateClickTarget, System.Single extraPartWidth,
System.Func`2<UnityEngine.Rect, System.Boolean> extraPartOnGUI,
RimWorld.Planet.WorldObject revalidateWorldClickTarget, System.Boolean
playSelectionSound, System.Int32 orderInPriority)
IL_5EC5: ldloc.s 146 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_44)
IL_5EC7: ldfld RimWorld.<>c__DisplayClass10_0
RimWorld.<>c__DisplayClass10_44::CS$<>8__locals43
IL_5ECC: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_5ED1: ldloc.s 146 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_44)
IL_5ED3: ldflda Verse.LocalTargetInfo
RimWorld.<>c__DisplayClass10_44::casket
IL_5ED8: call Verse.Thing Verse.LocalTargetInfo::get_Thing()
IL_5EDD: call static Verse.LocalTargetInfo
Verse.LocalTargetInfo::op_Implicit(Verse.Thing t)
IL_5EE2: ldstr "ReservedBy"
IL_5EE7: ldnull
IL_5EE8: call static Verse.FloatMenuOption
RimWorld.FloatMenuUtility::DecoratePrioritizedTask(Verse.FloatMenuOption option,
Verse.Pawn pawn, Verse.LocalTargetInfo target, System.String reservedText,
Verse.ReservationLayerDef layer)
IL_5EED: callvirt virtual System.Void
System.Collections.Generic.List`1<Verse.FloatMenuOption>::Add(Verse.FloatMenuOption
item)
IL_5EF2: Label469
IL_5EF2: Label471
IL_5EF2: Label473
IL_5EF2: Label474
IL_5EF2: ldloc.s 8
(System.Collections.Generic.IEnumerator`1[Verse.LocalTargetInfo])
IL_5EF4: callvirt abstract virtual System.Boolean
System.Collections.IEnumerator::MoveNext()
IL_5EF9: brtrue => Label475
IL_5EFE: leave => Label476
IL_5F03: leave => (autogenerated)
} // end try
.finally
{
IL_5F08: ldloc.s 8
(System.Collections.Generic.IEnumerator`1[Verse.LocalTargetInfo])
IL_5F0A: brfalse => Label477
IL_5F0F: ldloc.s 8
(System.Collections.Generic.IEnumerator`1[Verse.LocalTargetInfo])
IL_5F11: callvirt abstract virtual System.Void
System.IDisposable::Dispose()
IL_5F16: Label477
IL_5F16: endfinally
IL_5F17: leave => (autogenerated)
} // end handler
IL_5F18: Label476
IL_5F18: ldloc.0
IL_5F19: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_5F1E: callvirt virtual Verse.Map Verse.Thing::get_Map()
IL_5F23: ldfld Verse.ThingGrid Verse.Map::thingGrid
IL_5F28: ldloc.1
IL_5F29: callvirt System.Collections.Generic.IEnumerable`1<Verse.Thing>
Verse.ThingGrid::ThingsAt(Verse.IntVec3 c)
IL_5F2E: callvirt abstract virtual
System.Collections.Generic.IEnumerator`1<Verse.Thing>
System.Collections.Generic.IEnumerable`1<Verse.Thing>::GetEnumerator()
IL_5F33: stloc.s 60 (System.Collections.Generic.IEnumerator`1[Verse.Thing])
.try
{
IL_5F35: br => Label478
IL_5F3A: Label483
IL_5F3A: ldloc.s 60
(System.Collections.Generic.IEnumerator`1[Verse.Thing])
IL_5F3C: callvirt abstract virtual Verse.Thing
System.Collections.Generic.IEnumerator`1<Verse.Thing>::get_Current()
IL_5F41: ldloc.0
IL_5F42: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_5F47: callvirt virtual
System.Collections.Generic.IEnumerable`1<Verse.FloatMenuOption>
Verse.Thing::GetFloatMenuOptions(Verse.Pawn selPawn)
IL_5F4C: callvirt abstract virtual
System.Collections.Generic.IEnumerator`1<Verse.FloatMenuOption>
System.Collections.Generic.IEnumerable`1<Verse.FloatMenuOption>::GetEnumerator()
IL_5F51: stloc.s 6
(System.Collections.Generic.IEnumerator`1[Verse.FloatMenuOption])
.try
{
IL_5F53: br => Label479
IL_5F58: Label480
IL_5F58: ldloc.s 6
(System.Collections.Generic.IEnumerator`1[Verse.FloatMenuOption])
IL_5F5A: callvirt abstract virtual Verse.FloatMenuOption
System.Collections.Generic.IEnumerator`1<Verse.FloatMenuOption>::get_Current()
IL_5F5F: stloc.s 147 (Verse.FloatMenuOption)
IL_5F61: ldarg.2
IL_5F62: ldloc.s 147 (Verse.FloatMenuOption)
IL_5F64: callvirt virtual System.Void
System.Collections.Generic.List`1<Verse.FloatMenuOption>::Add(Verse.FloatMenuOption
item)
IL_5F69: Label479
IL_5F69: ldloc.s 6
(System.Collections.Generic.IEnumerator`1[Verse.FloatMenuOption])
IL_5F6B: callvirt abstract virtual System.Boolean
System.Collections.IEnumerator::MoveNext()
IL_5F70: brtrue => Label480
IL_5F75: leave => Label481
IL_5F7A: leave => (autogenerated)
} // end try
.finally
{
IL_5F7F: ldloc.s 6
(System.Collections.Generic.IEnumerator`1[Verse.FloatMenuOption])
IL_5F81: brfalse => Label482
IL_5F86: ldloc.s 6
(System.Collections.Generic.IEnumerator`1[Verse.FloatMenuOption])
IL_5F88: callvirt abstract virtual System.Void
System.IDisposable::Dispose()
IL_5F8D: Label482
IL_5F8D: endfinally
IL_5F8E: leave => (autogenerated)
} // end handler
IL_5F8F: Label478
IL_5F8F: Label481
IL_5F8F: ldloc.s 60
(System.Collections.Generic.IEnumerator`1[Verse.Thing])
IL_5F91: callvirt abstract virtual System.Boolean
System.Collections.IEnumerator::MoveNext()
IL_5F96: brtrue => Label483
IL_5F9B: leave => Label484
IL_5FA0: leave => (autogenerated)
} // end try
.finally
{
IL_5FA5: ldloc.s 60
(System.Collections.Generic.IEnumerator`1[Verse.Thing])
IL_5FA7: brfalse => Label485
IL_5FAC: ldloc.s 60
(System.Collections.Generic.IEnumerator`1[Verse.Thing])
IL_5FAE: callvirt abstract virtual System.Void
System.IDisposable::Dispose()
IL_5FB3: Label485
IL_5FB3: endfinally
IL_5FB4: leave => (autogenerated)
} // end handler
IL_5FB5: // end original
IL_5FB5: Label484
IL_5FB5: ldarg 0
IL_5FB9: ldarg 1
IL_5FBD: ldarg 2
IL_5FC1: call static System.Void
ExtendedStorage.Patches.FloatMenuMakerMap_AddHumanlikeOrders::Postfix(UnityEngine.V
ector3 clickPos, Verse.Pawn pawn,
System.Collections.Generic.List`1<Verse.FloatMenuOption> opts)
IL_5FC6: ldarg 0
IL_5FCA: ldarg 1
IL_5FCE: ldarg 2
IL_5FD2: call static System.Void
PeteTimesSix.SimpleSidearms.Intercepts.FloatMenuMakerMap_AddHumanLikeOrders_Postfix
::AddHumanlikeOrders(UnityEngine.Vector3 clickPos, Verse.Pawn pawn,
System.Collections.Generic.List`1<Verse.FloatMenuOption> opts)
IL_5FD7: ldarg 0
IL_5FDB: ldarg 1
IL_5FDF: ldarga 2
IL_5FE3: call static System.Void
VFECore.AddHumanlikeOrders_Fix::Postfix(UnityEngine.Vector3 clickPos, Verse.Pawn
pawn, System.Collections.Generic.List`1& opts)
IL_5FE8: ldarg 0
IL_5FEC: ldarg 1
IL_5FF0: ldarga 2
IL_5FF4: call static System.Void
MechanoidFoundry.FloatMenuMakerMap_AddHumanlikeOrders_Patch::Postfix(UnityEngine.Ve
ctor3 clickPos, Verse.Pawn pawn, System.Collections.Generic.List`1& opts)
IL_5FF9: ldarg 2
IL_5FFD: ldarg 0
IL_6001: ldarg 1
IL_6005: call static System.Void
VFEAncients.HarmonyPatches.BuildingPatches::AddCarryJobs(System.Collections.Generic
.List`1<Verse.FloatMenuOption> opts, UnityEngine.Vector3 clickPos, Verse.Pawn pawn)
IL_600A: ret
DONE

### Patch: System.Void SurvivalTools.<>c__DisplayClass5_0::<MakeNewToils>b__1()


### Replacement: static System.Void
SurvivalTools.JobDriver_PlantWork+<>c__DisplayClass5_0::SurvivalTools.JobDriver_Pla
ntWork+c__DisplayClass5_0.<MakeNewToils>b__1_Patch0(SurvivalTools.<>c__DisplayClass
5_0 this)
IL_0000: Local var 0: Verse.Pawn
IL_0000: Local var 1: System.Single
IL_0000: Local var 2: System.Single
IL_0000: Local var 3: RimWorld.Plant
IL_0000: Local var 4: System.Boolean
IL_0000: Local var 5: System.Boolean
IL_0000: Local var 6: System.Boolean
IL_0000: Local var 7: System.Boolean
IL_0000: Local var 8: UnityEngine.Vector3
IL_0000: Local var 9: System.Int32
IL_0000: Local var 10: System.Boolean
IL_0000: Local var 11: Verse.Thing
IL_0000: Local var 12: System.Boolean
IL_0000: Local var 13: Verse.Rot4
IL_0000: // start original
IL_0000: nop
IL_0001: ldarg.0
IL_0002: ldfld Verse.AI.Toil SurvivalTools.<>c__DisplayClass5_0::cut
IL_0007: ldfld Verse.Pawn Verse.AI.Toil::actor
IL_000C: stloc.0
IL_000D: ldloc.0
IL_000E: ldsfld RimWorld.StatDef
SurvivalTools.ST_StatDefOf::PlantHarvestingSpeed
IL_0013: call static System.Void
SurvivalTools.SurvivalToolUtility::TryDegradeTool(Verse.Pawn pawn, RimWorld.StatDef
stat)
IL_0018: ldloc.0
IL_0019: ldsfld RimWorld.StatDef SurvivalTools.ST_StatDefOf::TreeFellingSpeed
IL_001E: call static System.Void
SurvivalTools.SurvivalToolUtility::TryDegradeTool(Verse.Pawn pawn, RimWorld.StatDef
stat)
IL_0023: nop
IL_0024: ldloc.0
IL_0025: ldfld RimWorld.Pawn_SkillTracker Verse.Pawn::skills
IL_002A: ldnull
IL_002B: cgt.un
IL_002D: stloc.s 4 (System.Boolean)
IL_002F: ldloc.s 4 (System.Boolean)
IL_0031: brfalse => Label0
IL_0036: nop
IL_0037: ldloc.0
IL_0038: ldfld RimWorld.Pawn_SkillTracker Verse.Pawn::skills
IL_003D: ldsfld RimWorld.SkillDef RimWorld.SkillDefOf::Plants
IL_0042: ldarg.0
IL_0043: ldfld SurvivalTools.JobDriver_PlantWork
SurvivalTools.<>c__DisplayClass5_0::<>4__this
IL_0048: ldfld System.Single SurvivalTools.JobDriver_PlantWork::xpPerTick
IL_004D: ldc.i4.0
IL_004E: callvirt System.Void RimWorld.Pawn_SkillTracker::Learn(RimWorld.SkillDef
sDef, System.Single xp, System.Boolean direct)
IL_0053: nop
IL_0054: nop
IL_0055: Label0
IL_0055: ldloc.0
IL_0056: ldsfld RimWorld.StatDef SurvivalTools.ST_StatDefOf::TreeFellingSpeed
IL_005B: ldc.i4.1
IL_005C: ldc.i4.m1
IL_005D: call static System.Single
RimWorld.StatExtension::GetStatValue(Verse.Thing thing, RimWorld.StatDef stat,
System.Boolean applyPostProcess, System.Int32 cacheStaleAfterTicks)
IL_0062: stloc.1
IL_0063: ldloc.1
IL_0064: stloc.2
IL_0065: ldarg.0
IL_0066: ldfld SurvivalTools.JobDriver_PlantWork
SurvivalTools.<>c__DisplayClass5_0::<>4__this
IL_006B: call RimWorld.Plant SurvivalTools.JobDriver_PlantWork::get_Plant()
IL_0070: stloc.3
IL_0071: ldloc.2
IL_0072: ldc.r4 3.3
IL_0077: ldc.r4 1
IL_007C: ldloc.3
IL_007D: callvirt virtual System.Single RimWorld.Plant::get_Growth()
IL_0082: call static System.Single UnityEngine.Mathf::Lerp(System.Single a,
System.Single b, System.Single t)
IL_0087: mul
IL_0088: stloc.2
IL_0089: ldarg.0
IL_008A: ldfld SurvivalTools.JobDriver_PlantWork
SurvivalTools.<>c__DisplayClass5_0::<>4__this
IL_008F: ldarg.0
IL_0090: ldfld SurvivalTools.JobDriver_PlantWork
SurvivalTools.<>c__DisplayClass5_0::<>4__this
IL_0095: ldfld System.Single SurvivalTools.JobDriver_PlantWork::workDone
IL_009A: ldloc.2
IL_009B: add
IL_009C: stfld System.Single SurvivalTools.JobDriver_PlantWork::workDone
IL_00A1: ldarg.0
IL_00A2: ldfld SurvivalTools.JobDriver_PlantWork
SurvivalTools.<>c__DisplayClass5_0::<>4__this
IL_00A7: ldfld System.Single SurvivalTools.JobDriver_PlantWork::workDone
IL_00AC: ldloc.3
IL_00AD: ldfld Verse.ThingDef Verse.Thing::def
IL_00B2: ldfld RimWorld.PlantProperties Verse.ThingDef::plant
IL_00B7: ldfld System.Single RimWorld.PlantProperties::harvestWork
IL_00BC: clt.un
IL_00BE: ldc.i4.0
IL_00BF: ceq
IL_00C1: stloc.s 5 (System.Boolean)
IL_00C3: ldloc.s 5 (System.Boolean)
IL_00C5: brfalse => Label1
IL_00CA: nop
IL_00CB: ldloc.3
IL_00CC: ldfld Verse.ThingDef Verse.Thing::def
IL_00D1: ldfld RimWorld.PlantProperties Verse.ThingDef::plant
IL_00D6: ldfld Verse.ThingDef RimWorld.PlantProperties::harvestedThingDef
IL_00DB: ldnull
IL_00DC: cgt.un
IL_00DE: stloc.s 6 (System.Boolean)
IL_00E0: ldloc.s 6 (System.Boolean)
IL_00E2: brfalse => Label2
IL_00E7: nop
IL_00E8: ldloc.0
IL_00E9: callvirt Verse.RaceProperties Verse.Pawn::get_RaceProps()
IL_00EE: callvirt System.Boolean Verse.RaceProperties::get_Humanlike()
IL_00F3: brfalse => Label3
IL_00F8: ldloc.3
IL_00F9: ldfld Verse.ThingDef Verse.Thing::def
IL_00FE: ldfld RimWorld.PlantProperties Verse.ThingDef::plant
IL_0103: ldfld System.Boolean RimWorld.PlantProperties::harvestFailable
IL_0108: brfalse => Label4
IL_010D: call static System.Single Verse.Rand::get_Value()
IL_0112: ldloc.0
IL_0113: ldsfld RimWorld.StatDef RimWorld.StatDefOf::PlantHarvestYield
IL_0118: ldc.i4.1
IL_0119: ldc.i4.m1
IL_011A: call static System.Single
RimWorld.StatExtension::GetStatValue(Verse.Thing thing, RimWorld.StatDef stat,
System.Boolean applyPostProcess, System.Int32 cacheStaleAfterTicks)
IL_011F: cgt
IL_0121: br => Label5
IL_0126: Label3
IL_0126: Label4
IL_0126: ldc.i4.0
IL_0127: Label5
IL_0127: stloc.s 7 (System.Boolean)
IL_0129: ldloc.s 7 (System.Boolean)
IL_012B: brfalse => Label6
IL_0130: nop
IL_0131: ldarg.0
IL_0132: ldfld SurvivalTools.JobDriver_PlantWork
SurvivalTools.<>c__DisplayClass5_0::<>4__this
IL_0137: ldfld Verse.Pawn Verse.AI.JobDriver::pawn
IL_013C: callvirt virtual UnityEngine.Vector3 Verse.Thing::get_DrawPos()
IL_0141: ldloc.3
IL_0142: callvirt virtual UnityEngine.Vector3 Verse.Thing::get_DrawPos()
IL_0147: call static UnityEngine.Vector3
UnityEngine.Vector3::op_Addition(UnityEngine.Vector3 a, UnityEngine.Vector3 b)
IL_014C: ldc.r4 2
IL_0151: call static UnityEngine.Vector3
UnityEngine.Vector3::op_Division(UnityEngine.Vector3 a, System.Single d)
IL_0156: stloc.s 8 (UnityEngine.Vector3)
IL_0158: ldloc.s 8 (UnityEngine.Vector3)
IL_015A: ldarg.0
IL_015B: ldfld SurvivalTools.JobDriver_PlantWork
SurvivalTools.<>c__DisplayClass5_0::<>4__this
IL_0160: call Verse.Map Verse.AI.JobDriver::get_Map()
IL_0165: ldstr "TextMote_HarvestFailed"
IL_016A: call static Verse.TaggedString
Verse.Translator::Translate(System.String key)
IL_016F: call static System.String
Verse.TaggedString::op_Implicit(Verse.TaggedString taggedString)
IL_0174: ldc.r4 3.65
IL_0179: call static System.Void
RimWorld.MoteMaker::ThrowText(UnityEngine.Vector3 loc, Verse.Map map, System.String
text, System.Single timeBeforeStartFadeout)
IL_017E: nop
IL_017F: nop
IL_0180: br => Label7
IL_0185: Label6
IL_0185: nop
IL_0186: ldloc.3
IL_0187: callvirt virtual System.Int32 RimWorld.Plant::YieldNow()
IL_018C: stloc.s 9 (System.Int32)
IL_018E: ldloc.s 9 (System.Int32)
IL_0190: ldc.i4.0
IL_0191: cgt
IL_0193: stloc.s 10 (System.Boolean)
IL_0195: ldloc.s 10 (System.Boolean)
IL_0197: brfalse => Label8
IL_019C: nop
IL_019D: ldloc.3
IL_019E: ldfld Verse.ThingDef Verse.Thing::def
IL_01A3: ldfld RimWorld.PlantProperties Verse.ThingDef::plant
IL_01A8: ldfld Verse.ThingDef RimWorld.PlantProperties::harvestedThingDef
IL_01AD: ldnull
IL_01AE: call static Verse.Thing Verse.ThingMaker::MakeThing(Verse.ThingDef
def, Verse.ThingDef stuff)
IL_01B3: stloc.s 11 (Verse.Thing)
IL_01B5: ldloc.s 11 (Verse.Thing)
IL_01B7: ldloc.s 9 (System.Int32)
IL_01B9: stfld System.Int32 Verse.Thing::stackCount
IL_01BE: ldloc.0
IL_01BF: callvirt virtual RimWorld.Faction Verse.Thing::get_Faction()
IL_01C4: call static RimWorld.Faction RimWorld.Faction::get_OfPlayer()
IL_01C9: ceq
IL_01CB: ldc.i4.0
IL_01CC: ceq
IL_01CE: stloc.s 12 (System.Boolean)
IL_01D0: ldloc.s 12 (System.Boolean)
IL_01D2: brfalse => Label9
IL_01D7: nop
IL_01D8: ldloc.s 11 (Verse.Thing)
IL_01DA: ldc.i4.1
IL_01DB: ldc.i4.1
IL_01DC: call static System.Void
RimWorld.ForbidUtility::SetForbidden(Verse.Thing t, System.Boolean value,
System.Boolean warnOnFail)
IL_01E1: nop
IL_01E2: nop
IL_01E3: Label9
IL_01E3: ldloc.s 11 (Verse.Thing)
IL_01E5: ldloc.0
IL_01E6: callvirt virtual Verse.IntVec3 Verse.Thing::get_Position()
IL_01EB: ldarg.0
IL_01EC: ldfld SurvivalTools.JobDriver_PlantWork
SurvivalTools.<>c__DisplayClass5_0::<>4__this
IL_01F1: call Verse.Map Verse.AI.JobDriver::get_Map()
IL_01F6: ldc.i4.1
IL_01F7: ldnull
IL_01F8: ldnull
IL_01F9: ldloca.s 13 (Verse.Rot4)
IL_01FB: initobj Verse.Rot4
IL_0201: ldloc.s 13 (Verse.Rot4)
IL_0203: call static System.Boolean Verse.GenPlace::TryPlaceThing(Verse.Thing
thing, Verse.IntVec3 center, Verse.Map map, Verse.ThingPlaceMode mode,
System.Action`2<Verse.Thing, System.Int32> placedAction,
System.Predicate`1<Verse.IntVec3> nearPlaceValidator, Verse.Rot4 rot)
IL_0208: pop
IL_0209: ldloc.0
IL_020A: ldfld RimWorld.Pawn_RecordsTracker Verse.Pawn::records
IL_020F: ldsfld RimWorld.RecordDef RimWorld.RecordDefOf::PlantsHarvested
IL_0214: callvirt System.Void
RimWorld.Pawn_RecordsTracker::Increment(RimWorld.RecordDef def)
IL_0219: nop
IL_021A: nop
IL_021B: Label8
IL_021B: nop
IL_021C: Label7
IL_021C: nop
IL_021D: Label2
IL_021D: ldloc.3
IL_021E: ldfld Verse.ThingDef Verse.Thing::def
IL_0223: ldfld RimWorld.PlantProperties Verse.ThingDef::plant
IL_0228: ldfld Verse.SoundDef RimWorld.PlantProperties::soundHarvestFinish
IL_022D: ldloc.0
IL_022E: call static Verse.Sound.SoundInfo
Verse.Sound.SoundInfo::op_Implicit(Verse.Thing sourceThing)
IL_0233: call static System.Void
Verse.Sound.SoundStarter::PlayOneShot(Verse.SoundDef soundDef,
Verse.Sound.SoundInfo info)
IL_0238: nop
IL_0239: ldloc.3
IL_023A: ldloc.0
IL_023B: ldc.i4.3
IL_023C: callvirt virtual System.Void RimWorld.Plant::PlantCollected(Verse.Pawn
by, RimWorld.PlantDestructionMode plantDestructionMode)
IL_0241: nop
IL_0242: ldarg.0
IL_0243: ldfld SurvivalTools.JobDriver_PlantWork
SurvivalTools.<>c__DisplayClass5_0::<>4__this
IL_0248: ldc.r4 0
IL_024D: stfld System.Single SurvivalTools.JobDriver_PlantWork::workDone
IL_0252: ldarg.0
IL_0253: ldfld SurvivalTools.JobDriver_PlantWork
SurvivalTools.<>c__DisplayClass5_0::<>4__this
IL_0258: call System.Void Verse.AI.JobDriver::ReadyForNextToil()
IL_025D: nop
IL_025E: br => Label10
IL_0263: // end original
IL_0263: Label1
IL_0263: Label10
IL_0263: ret
DONE

### Patch: System.Void RimWorld.<>c__DisplayClass9_0::<MakeNewToils>b__0()


### Replacement: static System.Void
RimWorld.JobDriver_Mine+<>c__DisplayClass9_0::RimWorld.JobDriver_Mine+c__DisplayCla
ss9_0.<MakeNewToils>b__0_Patch0(RimWorld.<>c__DisplayClass9_0 this)
IL_0000: Local var 0: Verse.Pawn
IL_0000: Local var 1: Verse.Thing
IL_0000: Local var 2: Verse.IntVec3
IL_0000: Local var 3: System.Int32
IL_0000: Local var 4: RimWorld.Mineable
IL_0000: Local var 5: Verse.DamageInfo
IL_0000: Local var 6: System.Collections.Generic.List`1<Verse.Thing>
IL_0000: Local var 7: System.Int32
IL_0000: // start original
IL_0000: ldarg.0
IL_0001: ldfld Verse.AI.Toil RimWorld.<>c__DisplayClass9_0::mine
IL_0006: ldfld Verse.Pawn Verse.AI.Toil::actor
IL_000B: stloc.0
IL_000C: ldloc.0
IL_000D: ldsfld RimWorld.StatDef SurvivalTools.ST_StatDefOf::DiggingSpeed
IL_0012: call static System.Void
SurvivalTools.SurvivalToolUtility::TryDegradeTool(Verse.Pawn pawn, RimWorld.StatDef
stat)
IL_0017: ldarg.0
IL_0018: ldfld RimWorld.JobDriver_Mine
RimWorld.<>c__DisplayClass9_0::<>4__this
IL_001D: call Verse.Thing RimWorld.JobDriver_Mine::get_MineTarget()
IL_0022: stloc.1
IL_0023: ldarg.0
IL_0024: ldfld RimWorld.JobDriver_Mine
RimWorld.<>c__DisplayClass9_0::<>4__this
IL_0029: ldfld System.Int32 RimWorld.JobDriver_Mine::ticksToPickHit
IL_002E: ldc.i4.s -100
IL_0030: bge => Label0
IL_0035: ldarg.0
IL_0036: ldfld RimWorld.JobDriver_Mine
RimWorld.<>c__DisplayClass9_0::<>4__this
IL_003B: call System.Void RimWorld.JobDriver_Mine::ResetTicksToPickHit()
IL_0040: Label0
IL_0040: ldloc.0
IL_0041: ldfld RimWorld.Pawn_SkillTracker Verse.Pawn::skills
IL_0046: brfalse => Label1
IL_004B: ldloc.1
IL_004C: callvirt virtual RimWorld.Faction Verse.Thing::get_Faction()
IL_0051: ldloc.0
IL_0052: callvirt virtual RimWorld.Faction Verse.Thing::get_Faction()
IL_0057: bne.un => Label2
IL_005C: ldloc.0
IL_005D: callvirt virtual RimWorld.Faction Verse.Thing::get_Faction()
IL_0062: brtrue => Label3
IL_0067: Label2
IL_0067: ldloc.0
IL_0068: ldfld RimWorld.Pawn_SkillTracker Verse.Pawn::skills
IL_006D: ldsfld RimWorld.SkillDef RimWorld.SkillDefOf::Mining
IL_0072: ldc.r4 0.07
IL_0077: ldc.i4.0
IL_0078: callvirt System.Void RimWorld.Pawn_SkillTracker::Learn(RimWorld.SkillDef
sDef, System.Single xp, System.Boolean direct)
IL_007D: Label1
IL_007D: Label3
IL_007D: ldarg.0
IL_007E: ldfld RimWorld.JobDriver_Mine
RimWorld.<>c__DisplayClass9_0::<>4__this
IL_0083: ldarg.0
IL_0084: ldfld RimWorld.JobDriver_Mine
RimWorld.<>c__DisplayClass9_0::<>4__this
IL_0089: ldfld System.Int32 RimWorld.JobDriver_Mine::ticksToPickHit
IL_008E: ldc.i4.1
IL_008F: sub
IL_0090: stfld System.Int32 RimWorld.JobDriver_Mine::ticksToPickHit
IL_0095: ldarg.0
IL_0096: ldfld RimWorld.JobDriver_Mine
RimWorld.<>c__DisplayClass9_0::<>4__this
IL_009B: ldfld System.Int32 RimWorld.JobDriver_Mine::ticksToPickHit
IL_00A0: ldc.i4.0
IL_00A1: bgt => Label4
IL_00A6: ldloc.1
IL_00A7: callvirt virtual Verse.IntVec3 Verse.Thing::get_Position()
IL_00AC: stloc.2
IL_00AD: ldarg.0
IL_00AE: ldfld RimWorld.JobDriver_Mine
RimWorld.<>c__DisplayClass9_0::<>4__this
IL_00B3: ldfld Verse.Effecter RimWorld.JobDriver_Mine::effecter
IL_00B8: brtrue => Label5
IL_00BD: ldarg.0
IL_00BE: ldfld RimWorld.JobDriver_Mine
RimWorld.<>c__DisplayClass9_0::<>4__this
IL_00C3: ldsfld Verse.EffecterDef RimWorld.EffecterDefOf::Mine
IL_00C8: callvirt Verse.Effecter Verse.EffecterDef::Spawn()
IL_00CD: stfld Verse.Effecter RimWorld.JobDriver_Mine::effecter
IL_00D2: Label5
IL_00D2: ldarg.0
IL_00D3: ldfld RimWorld.JobDriver_Mine
RimWorld.<>c__DisplayClass9_0::<>4__this
IL_00D8: ldfld Verse.Effecter RimWorld.JobDriver_Mine::effecter
IL_00DD: ldloc.0
IL_00DE: call static Verse.TargetInfo
Verse.TargetInfo::op_Implicit(Verse.Thing t)
IL_00E3: ldloc.1
IL_00E4: call static Verse.TargetInfo
Verse.TargetInfo::op_Implicit(Verse.Thing t)
IL_00E9: ldc.i4.m1
IL_00EA: callvirt System.Void Verse.Effecter::Trigger(Verse.TargetInfo A,
Verse.TargetInfo B, System.Int32 overrideSpawnTick)
IL_00EF: ldloc.1
IL_00F0: ldfld Verse.ThingDef Verse.Thing::def
IL_00F5: ldfld RimWorld.BuildingProperties Verse.ThingDef::building
IL_00FA: ldfld System.Boolean RimWorld.BuildingProperties::isNaturalRock
IL_00FF: brtrue => Label6
IL_0104: ldc.i4.s 40
IL_0106: br => Label7
IL_010B: Label6
IL_010B: ldc.i4.s 80
IL_010D: Label7
IL_010D: stloc.3
IL_010E: ldloc.1
IL_010F: isinst RimWorld.Mineable
IL_0114: stloc.s 4 (RimWorld.Mineable)
IL_0116: ldloc.s 4 (RimWorld.Mineable)
IL_0118: brfalse => Label8
IL_011D: ldloc.1
IL_011E: callvirt virtual System.Int32 Verse.Thing::get_HitPoints()
IL_0123: ldloc.3
IL_0124: ble => Label9
IL_0129: Label8
IL_0129: ldloca.s 5 (Verse.DamageInfo)
IL_012B: ldsfld Verse.DamageDef RimWorld.DamageDefOf::Mining
IL_0130: ldloc.3
IL_0131: conv.r4
IL_0132: ldc.r4 0
IL_0137: ldc.r4 -1
IL_013C: ldarg.0
IL_013D: ldfld Verse.AI.Toil RimWorld.<>c__DisplayClass9_0::mine
IL_0142: ldfld Verse.Pawn Verse.AI.Toil::actor
IL_0147: ldnull
IL_0148: ldnull
IL_0149: ldc.i4.0
IL_014A: ldnull
IL_014B: ldc.i4.1
IL_014C: ldc.i4.1
IL_014D: call System.Void Verse.DamageInfo::.ctor(Verse.DamageDef def,
System.Single amount, System.Single armorPenetration, System.Single angle,
Verse.Thing instigator, Verse.BodyPartRecord hitPart, Verse.ThingDef weapon,
Verse.SourceCategory category, Verse.Thing intendedTarget, System.Boolean
instigatorGuilty, System.Boolean spawnFilth)
IL_0152: ldloc.1
IL_0153: ldloc.s 5 (Verse.DamageInfo)
IL_0155: callvirt Verse.DamageResult Verse.Thing::TakeDamage(Verse.DamageInfo
dinfo)
IL_015A: pop
IL_015B: br => Label10
IL_0160: Label9
IL_0160: ldloc.s 4 (RimWorld.Mineable)
IL_0162: ldloc.1
IL_0163: callvirt virtual System.Int32 Verse.Thing::get_HitPoints()
IL_0168: ldarg.0
IL_0169: ldfld Verse.AI.Toil RimWorld.<>c__DisplayClass9_0::mine
IL_016E: ldfld Verse.Pawn Verse.AI.Toil::actor
IL_0173: callvirt System.Void
RimWorld.Mineable::Notify_TookMiningDamage(System.Int32 amount, Verse.Pawn miner)
IL_0178: ldloc.s 4 (RimWorld.Mineable)
IL_017A: ldc.i4.0
IL_017B: callvirt virtual System.Void Verse.Thing::set_HitPoints(System.Int32
value)
IL_0180: ldloc.s 4 (RimWorld.Mineable)
IL_0182: ldloc.0
IL_0183: callvirt System.Void RimWorld.Mineable::DestroyMined(Verse.Pawn pawn)
IL_0188: Label10
IL_0188: ldloc.1
IL_0189: callvirt System.Boolean Verse.Thing::get_Destroyed()
IL_018E: brfalse => Label11
IL_0193: ldloc.0
IL_0194: callvirt virtual Verse.Map Verse.Thing::get_Map()
IL_0199: ldfld RimWorld.MineStrikeManager Verse.Map::mineStrikeManager
IL_019E: ldloc.2
IL_019F: ldloc.1
IL_01A0: ldfld Verse.ThingDef Verse.Thing::def
IL_01A5: ldloc.0
IL_01A6: callvirt System.Void
RimWorld.MineStrikeManager::CheckStruckOre(Verse.IntVec3 justMinedPos,
Verse.ThingDef justMinedDef, Verse.Thing miner)
IL_01AB: ldloc.0
IL_01AC: ldfld RimWorld.Pawn_RecordsTracker Verse.Pawn::records
IL_01B1: ldsfld RimWorld.RecordDef RimWorld.RecordDefOf::CellsMined
IL_01B6: callvirt System.Void
RimWorld.Pawn_RecordsTracker::Increment(RimWorld.RecordDef def)
IL_01BB: ldarg.0
IL_01BC: ldfld RimWorld.JobDriver_Mine
RimWorld.<>c__DisplayClass9_0::<>4__this
IL_01C1: ldfld Verse.Pawn Verse.AI.JobDriver::pawn
IL_01C6: callvirt virtual RimWorld.Faction Verse.Thing::get_Faction()
IL_01CB: call static RimWorld.Faction RimWorld.Faction::get_OfPlayer()
IL_01D0: beq => Label12
IL_01D5: ldloc.2
IL_01D6: ldarg.0
IL_01D7: ldfld RimWorld.JobDriver_Mine
RimWorld.<>c__DisplayClass9_0::<>4__this
IL_01DC: call Verse.Map Verse.AI.JobDriver::get_Map()
IL_01E1: call static System.Collections.Generic.List`1<Verse.Thing>
Verse.GridsUtility::GetThingList(Verse.IntVec3 c, Verse.Map map)
IL_01E6: stloc.s 6 (System.Collections.Generic.List`1[Verse.Thing])
IL_01E8: ldc.i4.0
IL_01E9: stloc.s 7 (System.Int32)
IL_01EB: br => Label13
IL_01F0: Label14
IL_01F0: ldloc.s 6 (System.Collections.Generic.List`1[Verse.Thing])
IL_01F2: ldloc.s 7 (System.Int32)
IL_01F4: callvirt virtual Verse.Thing
System.Collections.Generic.List`1<Verse.Thing>::get_Item(System.Int32 index)
IL_01F9: ldc.i4.1
IL_01FA: ldc.i4.0
IL_01FB: call static System.Void
RimWorld.ForbidUtility::SetForbidden(Verse.Thing t, System.Boolean value,
System.Boolean warnOnFail)
IL_0200: ldloc.s 7 (System.Int32)
IL_0202: ldc.i4.1
IL_0203: add
IL_0204: stloc.s 7 (System.Int32)
IL_0206: Label13
IL_0206: ldloc.s 7 (System.Int32)
IL_0208: ldloc.s 6 (System.Collections.Generic.List`1[Verse.Thing])
IL_020A: callvirt virtual System.Int32
System.Collections.Generic.List`1<Verse.Thing>::get_Count()
IL_020F: blt => Label14
IL_0214: Label12
IL_0214: ldarg.0
IL_0215: ldfld RimWorld.JobDriver_Mine
RimWorld.<>c__DisplayClass9_0::<>4__this
IL_021A: ldfld Verse.Pawn Verse.AI.JobDriver::pawn
IL_021F: callvirt virtual RimWorld.Faction Verse.Thing::get_Faction()
IL_0224: call static RimWorld.Faction RimWorld.Faction::get_OfPlayer()
IL_0229: bne.un => Label15
IL_022E: ldloc.1
IL_022F: ldfld Verse.ThingDef Verse.Thing::def
IL_0234: call static System.Boolean
RimWorld.MineStrikeManager::MineableIsVeryValuable(Verse.ThingDef mineableDef)
IL_0239: brfalse => Label16
IL_023E: ldsfld RimWorld.TaleDef RimWorld.TaleDefOf::MinedValuable
IL_0243: ldc.i4.2
IL_0244: newarr System.Object
IL_0249: dup
IL_024A: ldc.i4.0
IL_024B: ldarg.0
IL_024C: ldfld RimWorld.JobDriver_Mine
RimWorld.<>c__DisplayClass9_0::<>4__this
IL_0251: ldfld Verse.Pawn Verse.AI.JobDriver::pawn
IL_0256: stelem.ref
IL_0257: dup
IL_0258: ldc.i4.1
IL_0259: ldloc.1
IL_025A: ldfld Verse.ThingDef Verse.Thing::def
IL_025F: ldfld RimWorld.BuildingProperties Verse.ThingDef::building
IL_0264: ldfld Verse.ThingDef RimWorld.BuildingProperties::mineableThing
IL_0269: stelem.ref
IL_026A: call static RimWorld.Tale
RimWorld.TaleRecorder::RecordTale(RimWorld.TaleDef def, System.Object[] args)
IL_026F: pop
IL_0270: Label15
IL_0270: Label16
IL_0270: ldarg.0
IL_0271: ldfld RimWorld.JobDriver_Mine
RimWorld.<>c__DisplayClass9_0::<>4__this
IL_0276: ldfld Verse.Pawn Verse.AI.JobDriver::pawn
IL_027B: callvirt virtual RimWorld.Faction Verse.Thing::get_Faction()
IL_0280: call static RimWorld.Faction RimWorld.Faction::get_OfPlayer()
IL_0285: bne.un => Label17
IL_028A: ldloc.1
IL_028B: ldfld Verse.ThingDef Verse.Thing::def
IL_0290: call static System.Boolean
RimWorld.MineStrikeManager::MineableIsValuable(Verse.ThingDef mineableDef)
IL_0295: brfalse => Label18
IL_029A: ldarg.0
IL_029B: ldfld RimWorld.JobDriver_Mine
RimWorld.<>c__DisplayClass9_0::<>4__this
IL_02A0: ldfld Verse.Pawn Verse.AI.JobDriver::pawn
IL_02A5: callvirt virtual Verse.Map Verse.Thing::get_Map()
IL_02AA: callvirt System.Boolean Verse.Map::get_IsPlayerHome()
IL_02AF: brtrue => Label19
IL_02B4: ldsfld RimWorld.TaleDef RimWorld.TaleDefOf::CaravanRemoteMining
IL_02B9: ldc.i4.2
IL_02BA: newarr System.Object
IL_02BF: dup
IL_02C0: ldc.i4.0
IL_02C1: ldarg.0
IL_02C2: ldfld RimWorld.JobDriver_Mine
RimWorld.<>c__DisplayClass9_0::<>4__this
IL_02C7: ldfld Verse.Pawn Verse.AI.JobDriver::pawn
IL_02CC: stelem.ref
IL_02CD: dup
IL_02CE: ldc.i4.1
IL_02CF: ldloc.1
IL_02D0: ldfld Verse.ThingDef Verse.Thing::def
IL_02D5: ldfld RimWorld.BuildingProperties Verse.ThingDef::building
IL_02DA: ldfld Verse.ThingDef RimWorld.BuildingProperties::mineableThing
IL_02DF: stelem.ref
IL_02E0: call static RimWorld.Tale
RimWorld.TaleRecorder::RecordTale(RimWorld.TaleDef def, System.Object[] args)
IL_02E5: pop
IL_02E6: Label17
IL_02E6: Label18
IL_02E6: Label19
IL_02E6: ldarg.0
IL_02E7: ldfld RimWorld.JobDriver_Mine
RimWorld.<>c__DisplayClass9_0::<>4__this
IL_02EC: call System.Void Verse.AI.JobDriver::ReadyForNextToil()
IL_02F1: br => Label20
IL_02F6: Label11
IL_02F6: ldarg.0
IL_02F7: ldfld RimWorld.JobDriver_Mine
RimWorld.<>c__DisplayClass9_0::<>4__this
IL_02FC: call System.Void RimWorld.JobDriver_Mine::ResetTicksToPickHit()
IL_0301: // end original
IL_0301: Label4
IL_0301: Label20
IL_0301: ret
DONE

### Patch: System.Void RimWorld.<>c__DisplayClass4_0::<MakeNewToils>b__0()


### Replacement: static System.Void
RimWorld.JobDriver_ConstructFinishFrame+<>c__DisplayClass4_0::RimWorld.JobDriver_Co
nstructFinishFrame+c__DisplayClass4_0.<MakeNewToils>b__0_Patch0(RimWorld.<>c__Displ
ayClass4_0 this)
IL_0000: // start original
IL_0000: ldarg.0
IL_0001: ldfld Verse.AI.Toil RimWorld.<>c__DisplayClass4_0::build
IL_0006: ldfld Verse.Pawn Verse.AI.Toil::actor
IL_000B: ldc.r4 15
IL_0010: ldsfld Verse.ClamorDef RimWorld.ClamorDefOf::Construction
IL_0015: call static System.Void Verse.GenClamor::DoClamor(Verse.Thing
source, System.Single radius, Verse.ClamorDef type)
IL_001A: // end original
IL_001A: ret
DONE

### Patch: System.Void RimWorld.<>c__DisplayClass4_0::<MakeNewToils>b__0()


### Replacement: static System.Void
RimWorld.JobDriver_Repair+<>c__DisplayClass4_0::RimWorld.JobDriver_Repair+c__Displa
yClass4_0.<MakeNewToils>b__0_Patch0(RimWorld.<>c__DisplayClass4_0 this)
IL_0000: // start original
IL_0000: ldarg.0
IL_0001: ldfld RimWorld.JobDriver_Repair
RimWorld.<>c__DisplayClass4_0::<>4__this
IL_0006: ldc.r4 80
IL_000B: stfld System.Single RimWorld.JobDriver_Repair::ticksToNextRepair
IL_0010: // end original
IL_0010: ret
DONE

### Patch: virtual System.Void RimWorld.JobDriver_Deconstruct::TickAction()


### Replacement: static System.Void
RimWorld.JobDriver_Deconstruct::RimWorld.JobDriver_Deconstruct.TickAction_Patch1(Ri
mWorld.JobDriver_Deconstruct this)
IL_0000: ldarg.0
IL_0001: call static System.Void
SurvivalTools.HarmonyPatches::Prefix_JobDriver_Deconstruct_TickAction(RimWorld.JobD
river_Deconstruct __instance)
IL_0006: // start original
IL_0006: ldarg.0
IL_0007: ldfld Verse.Pawn Verse.AI.JobDriver::pawn
IL_000C: ldfld RimWorld.Pawn_SkillTracker Verse.Pawn::skills
IL_0011: brfalse => Label0
IL_0016: ldarg.0
IL_0017: call Verse.Building
RimWorld.JobDriver_RemoveBuilding::get_Building()
IL_001C: ldfld Verse.ThingDef Verse.Thing::def
IL_0021: ldarg.0
IL_0022: call Verse.Building
RimWorld.JobDriver_RemoveBuilding::get_Building()
IL_0027: callvirt Verse.ThingDef Verse.Thing::get_Stuff()
IL_002C: ldc.i4.1
IL_002D: call static
System.Collections.Generic.List`1<Verse.ThingDefCountClass>
RimWorld.CostListCalculator::CostListAdjusted(Verse.BuildableDef entDef,
Verse.ThingDef stuff, System.Boolean errorOnNullStuff)
IL_0032: callvirt virtual System.Int32
System.Collections.Generic.List`1<Verse.ThingDefCountClass>::get_Count()
IL_0037: ldc.i4.0
IL_0038: ble => Label1
IL_003D: ldarg.0
IL_003E: ldfld Verse.Pawn Verse.AI.JobDriver::pawn
IL_0043: ldfld RimWorld.Pawn_SkillTracker Verse.Pawn::skills
IL_0048: ldsfld RimWorld.SkillDef RimWorld.SkillDefOf::Construction
IL_004D: ldc.r4 0.25
IL_0052: ldc.i4.0
IL_0053: callvirt System.Void RimWorld.Pawn_SkillTracker::Learn(RimWorld.SkillDef
sDef, System.Single xp, System.Boolean direct)
IL_0058: // end original
IL_0058: Label0
IL_0058: Label1
IL_0058: ret
DONE

### Patch: System.Void RimWorld.<>c__DisplayClass12_0::<MakeNewToils>b__0()


### Replacement: static System.Void
RimWorld.JobDriver_AffectRoof+<>c__DisplayClass12_0::RimWorld.JobDriver_AffectRoof+
c__DisplayClass12_0.<MakeNewToils>b__0_Patch0(RimWorld.<>c__DisplayClass12_0 this)
IL_0000: // start original
IL_0000: ldarg.0
IL_0001: ldfld RimWorld.JobDriver_AffectRoof
RimWorld.<>c__DisplayClass12_0::<>4__this
IL_0006: ldfld Verse.Pawn Verse.AI.JobDriver::pawn
IL_000B: ldsfld RimWorld.StatDef RimWorld.StatDefOf::ConstructionSpeed
IL_0010: call static System.Void
SurvivalTools.SurvivalToolUtility::TryDegradeTool(Verse.Pawn pawn, RimWorld.StatDef
stat)
IL_0015: ldarg.0
IL_0016: ldfld RimWorld.JobDriver_AffectRoof
RimWorld.<>c__DisplayClass12_0::<>4__this
IL_001B: ldc.r4 65
IL_0020: stfld System.Single RimWorld.JobDriver_AffectRoof::workLeft
IL_0025: // end original
IL_0025: ret
DONE

### Harmony id=Uuugggg.rimworld.TD_Enhancement_Pack.fluffy_patches,


version=2.2.2.0, location=C:\Program Files (x86)\Steam\steamapps\common\data-
000002130553D010, env/clr=4.0.30319.42000, platform=Win32NT,
ptrsize:runtime/env=8/Bits64, Windows
### Started from static System.Void TD_Enhancement_Pack.PatchFluffy::.cctor(),
location C:\Program Files (x86)\Steam\steamapps\common\data-000002130985E570
### At 2023-02-17 06.57.38
AccessTools.Method: Could not find method for type RimWorld.AreaAllowedGUI and name
DoAllowedAreaSelectors and parameters (UnityEngine.Rect, Verse.Area&, Verse.Map,
System.Single)
### Patch: virtual System.Void FluffyManager.ManagerTab_Foraging::PreOpen()
### Replacement: static System.Void
FluffyManager.ManagerTab_Foraging::FluffyManager.ManagerTab_Foraging.PreOpen_Patch1
(FluffyManager.ManagerTab_Foraging this)
IL_0000: call static System.Void
TD_Enhancement_Pack.PatchFluffy::PreFixOpenForColonists()
IL_0005: // start original
IL_0005: ldarg.0
IL_0006: call System.Void FluffyManager.ManagerTab_Foraging::Refresh()
IL_000B: // end original
IL_000B: ret
DONE

### Patch: virtual System.Void FluffyManager.ManagerTab_Forestry::PreOpen()


### Replacement: static System.Void
FluffyManager.ManagerTab_Forestry::FluffyManager.ManagerTab_Forestry.PreOpen_Patch1
(FluffyManager.ManagerTab_Forestry this)
IL_0000: call static System.Void
TD_Enhancement_Pack.PatchFluffy::PreFixOpenForColonists()
IL_0005: // start original
IL_0005: ldarg.0
IL_0006: call System.Void FluffyManager.ManagerTab_Forestry::Refresh()
IL_000B: // end original
IL_000B: ret
DONE

### Patch: virtual System.Void FluffyManager.ManagerTab_Hunting::PreOpen()


### Replacement: static System.Void
FluffyManager.ManagerTab_Hunting::FluffyManager.ManagerTab_Hunting.PreOpen_Patch1(F
luffyManager.ManagerTab_Hunting this)
IL_0000: call static System.Void
TD_Enhancement_Pack.PatchFluffy::PreFixOpenForColonists()
IL_0005: // start original
IL_0005: ldarg.0
IL_0006: call System.Void FluffyManager.ManagerTab_Hunting::Refresh()
IL_000B: // end original
IL_000B: ret
DONE

### Patch: virtual System.Void FluffyManager.ManagerTab_Mining::PreOpen()


### Replacement: static System.Void
FluffyManager.ManagerTab_Mining::FluffyManager.ManagerTab_Mining.PreOpen_Patch1(Flu
ffyManager.ManagerTab_Mining this)
IL_0000: call static System.Void
TD_Enhancement_Pack.PatchFluffy::PreFixOpenForColonists()
IL_0005: // start original
IL_0005: ldarg.0
IL_0006: call System.Void FluffyManager.ManagerTab_Mining::Refresh()
IL_000B: // end original
IL_000B: ret
DONE

### Patch: virtual System.Void FluffyManager.ManagerTab_Livestock::PreOpen()


### Replacement: static System.Void
FluffyManager.ManagerTab_Livestock::FluffyManager.ManagerTab_Livestock.PreOpen_Patc
h1(FluffyManager.ManagerTab_Livestock this)
IL_0000: call static System.Void
TD_Enhancement_Pack.PatchFluffy::PreFixOpenForAnimals()
IL_0005: // start original
IL_0005: ldarg.0
IL_0006: call System.Void FluffyManager.ManagerTab_Livestock::Refresh()
IL_000B: // end original
IL_000B: ret
DONE

AccessTools.TypeByName: Could not find type named ManagerTab_ImportExport


AccessTools.Method: type is null
### Patch: virtual System.Void FluffyManager.ManagerTab_Power::PreOpen()
### Replacement: static System.Void
FluffyManager.ManagerTab_Power::FluffyManager.ManagerTab_Power.PreOpen_Patch1(Fluff
yManager.ManagerTab_Power this)
IL_0000: call static System.Void
TD_Enhancement_Pack.PatchFluffy::PreFixOpenForNeither()
IL_0005: // start original
IL_0005: ldarg.0
IL_0006: call virtual System.Void FluffyManager.ManagerTab::PreOpen()
IL_000B: ldarg.0
IL_000C: call System.Boolean
FluffyManager.ManagerTab_Power::get_AnyPoweredStationOnline()
IL_0011: brtrue => Label0
IL_0016: ldsfld FluffyManager.ManagerTab
FluffyManager.MainTabWindow_Manager::CurrentTab
IL_001B: ldarg.0
IL_001C: bne.un => Label1
IL_0021: call static FluffyManager.ManagerTab
FluffyManager.MainTabWindow_Manager::get_DefaultTab()
IL_0026: stsfld FluffyManager.ManagerTab
FluffyManager.MainTabWindow_Manager::CurrentTab
IL_002B: ldsfld FluffyManager.ManagerTab
FluffyManager.MainTabWindow_Manager::CurrentTab
IL_0030: callvirt virtual System.Void FluffyManager.ManagerTab::PreOpen()
IL_0035: // end original
IL_0035: Label0
IL_0035: Label1
IL_0035: ret
DONE

AccessTools.TypeByName: Could not find type named ManagerTab_Production


AccessTools.Method: type is null
AccessTools.TypeByName: Could not find type named ManagerTab_Trading
AccessTools.Method: type is null
### Patch: virtual System.Void FluffyManager.ManagerTab_Overview::PreOpen()
### Replacement: static System.Void
FluffyManager.ManagerTab_Overview::FluffyManager.ManagerTab_Overview.PreOpen_Patch1
(FluffyManager.ManagerTab_Overview this)
IL_0000: call static System.Void
TD_Enhancement_Pack.PatchFluffy::PreFixOpenForNeither()
IL_0005: // start original
IL_0005: ldarg.0
IL_0006: call System.Void FluffyManager.ManagerTab_Overview::RefreshWorkers()
IL_000B: // end original
IL_000B: ret
DONE

### Harmony id=Uuugggg.rimworld.TD_Enhancement_Pack.main, version=2.2.2.0,


location=C:\Program Files (x86)\Steam\steamapps\common\data-000002130553D010,
env/clr=4.0.30319.42000, platform=Win32NT, ptrsize:runtime/env=8/Bits64, Windows
### Started from static System.Void TD_Enhancement_Pack.ColorVariation::.cctor(),
location C:\Program Files (x86)\Steam\steamapps\common\data-000002130985E570
### At 2023-02-17 06.57.40
### Patch: System.Void
Verse.AI.<>c__DisplayClass3_0::<FinishRecipeAndStartStoringProduct>b__0()
### Replacement: static System.Void
Verse.AI.Toils_Recipe+<>c__DisplayClass3_0::Verse.AI.Toils_Recipe+c__DisplayClass3_
0.<FinishRecipeAndStartStoringProduct>b__0_Patch0(Verse.AI.<>c__DisplayClass3_0
this)
IL_0000: Local var 0: Verse.Pawn
IL_0000: Local var 1: Verse.AI.Job
IL_0000: Local var 2: Verse.AI.JobDriver_DoBill
IL_0000: Local var 3: System.Collections.Generic.List`1<Verse.Thing>
IL_0000: Local var 4: Verse.Thing
IL_0000: Local var 5: Verse.ThingStyleDef
IL_0000: Local var 6: System.Collections.Generic.List`1<Verse.Thing>
IL_0000: Local var 7: RimWorld.Bill_Mech
IL_0000: Local var 8: Verse.UnfinishedThing
IL_0000: Local var 9: Verse.IntVec3
IL_0000: Local var 10: System.Single
IL_0000: Local var 11: System.Nullable`1<System.Int32>
IL_0000: Local var 12: System.Int32
IL_0000: Local var 13: Verse.Rot4
IL_0000: Local var 14: Verse.LocalTargetInfo
IL_0000: Local var 15: System.Int32
IL_0000: Local var 16: System.Int32
IL_0000: // start original
IL_0000: ldarg.0
IL_0001: ldfld Verse.AI.Toil Verse.AI.<>c__DisplayClass3_0::toil
IL_0006: ldfld Verse.Pawn Verse.AI.Toil::actor
IL_000B: stloc.0
IL_000C: ldloc.0
IL_000D: ldfld Verse.AI.Pawn_JobTracker Verse.Pawn::jobs
IL_0012: ldfld Verse.AI.Job Verse.AI.Pawn_JobTracker::curJob
IL_0017: stloc.1
IL_0018: ldloc.0
IL_0019: ldfld Verse.AI.Pawn_JobTracker Verse.Pawn::jobs
IL_001E: ldfld Verse.AI.JobDriver Verse.AI.Pawn_JobTracker::curDriver
IL_0023: castclass Verse.AI.JobDriver_DoBill
IL_0028: stloc.2
IL_0029: ldloc.1
IL_002A: callvirt Verse.RecipeDef Verse.AI.Job::get_RecipeDef()
IL_002F: ldfld RimWorld.SkillDef Verse.RecipeDef::workSkill
IL_0034: brfalse => Label0
IL_0039: ldloc.1
IL_003A: callvirt Verse.RecipeDef Verse.AI.Job::get_RecipeDef()
IL_003F: callvirt System.Boolean Verse.RecipeDef::get_UsesUnfinishedThing()
IL_0044: brtrue => Label1
IL_0049: ldloc.0
IL_004A: ldfld RimWorld.Pawn_SkillTracker Verse.Pawn::skills
IL_004F: brfalse => Label2
IL_0054: ldloc.2
IL_0055: ldfld System.Int32
Verse.AI.JobDriver_DoBill::ticksSpentDoingRecipeWork
IL_005A: conv.r4
IL_005B: ldc.r4 0.1
IL_0060: mul
IL_0061: ldloc.1
IL_0062: callvirt Verse.RecipeDef Verse.AI.Job::get_RecipeDef()
IL_0067: ldfld System.Single Verse.RecipeDef::workSkillLearnFactor
IL_006C: mul
IL_006D: stloc.s 10 (System.Single)
IL_006F: ldloc.0
IL_0070: ldfld RimWorld.Pawn_SkillTracker Verse.Pawn::skills
IL_0075: ldloc.1
IL_0076: callvirt Verse.RecipeDef Verse.AI.Job::get_RecipeDef()
IL_007B: ldfld RimWorld.SkillDef Verse.RecipeDef::workSkill
IL_0080: callvirt RimWorld.SkillRecord
RimWorld.Pawn_SkillTracker::GetSkill(RimWorld.SkillDef skillDef)
IL_0085: ldloc.s 10 (System.Single)
IL_0087: ldc.i4.0
IL_0088: callvirt System.Void RimWorld.SkillRecord::Learn(System.Single xp,
System.Boolean direct)
IL_008D: Label0
IL_008D: Label1
IL_008D: Label2
IL_008D: ldloc.1
IL_008E: ldloc.0
IL_008F: call static System.Collections.Generic.List`1<Verse.Thing>
Verse.AI.Toils_Recipe::CalculateIngredients(Verse.AI.Job job, Verse.Pawn actor)
IL_0094: stloc.3
IL_0095: ldloc.1
IL_0096: ldloc.3
IL_0097: call static Verse.Thing
Verse.AI.Toils_Recipe::CalculateDominantIngredient(Verse.AI.Job job,
System.Collections.Generic.List`1<Verse.Thing> ingredients)
IL_009C: stloc.s 4 (Verse.Thing)
IL_009E: ldnull
IL_009F: stloc.s 5 (Verse.ThingStyleDef)
IL_00A1: call static System.Boolean Verse.ModsConfig::get_IdeologyActive()
IL_00A6: brfalse => Label3
IL_00AB: ldloc.1
IL_00AC: ldfld RimWorld.Bill Verse.AI.Job::bill
IL_00B1: ldfld Verse.RecipeDef RimWorld.Bill::recipe
IL_00B6: ldfld System.Collections.Generic.List`1<Verse.ThingDefCountClass>
Verse.RecipeDef::products
IL_00BB: brfalse => Label4
IL_00C0: ldloc.1
IL_00C1: ldfld RimWorld.Bill Verse.AI.Job::bill
IL_00C6: ldfld Verse.RecipeDef RimWorld.Bill::recipe
IL_00CB: ldfld System.Collections.Generic.List`1<Verse.ThingDefCountClass>
Verse.RecipeDef::products
IL_00D0: callvirt virtual System.Int32
System.Collections.Generic.List`1<Verse.ThingDefCountClass>::get_Count()
IL_00D5: ldc.i4.1
IL_00D6: bne.un => Label5
IL_00DB: ldloc.1
IL_00DC: ldfld RimWorld.Bill Verse.AI.Job::bill
IL_00E1: ldfld System.Boolean RimWorld.Bill::globalStyle
IL_00E6: brtrue => Label6
IL_00EB: ldloc.1
IL_00EC: ldfld RimWorld.Bill Verse.AI.Job::bill
IL_00F1: ldfld Verse.ThingStyleDef RimWorld.Bill::style
IL_00F6: br => Label7
IL_00FB: Label6
IL_00FB: call static RimWorld.Faction RimWorld.Faction::get_OfPlayer()
IL_0100: ldfld RimWorld.FactionIdeosTracker RimWorld.Faction::ideos
IL_0105: callvirt RimWorld.Ideo RimWorld.FactionIdeosTracker::get_PrimaryIdeo()
IL_010A: ldfld RimWorld.IdeoStyleTracker RimWorld.Ideo::style
IL_010F: ldloc.1
IL_0110: ldfld RimWorld.Bill Verse.AI.Job::bill
IL_0115: ldfld Verse.RecipeDef RimWorld.Bill::recipe
IL_011A: callvirt Verse.ThingDef Verse.RecipeDef::get_ProducedThingDef()
IL_011F: ldnull
IL_0120: callvirt Verse.StyleCategoryPair
RimWorld.IdeoStyleTracker::StyleForThingDef(Verse.ThingDef thing, RimWorld.Precept
precept)
IL_0125: dup
IL_0126: brtrue => Label8
IL_012B: pop
IL_012C: ldnull
IL_012D: br => Label9
IL_0132: Label8
IL_0132: ldfld Verse.ThingStyleDef Verse.StyleCategoryPair::styleDef
IL_0137: Label7
IL_0137: Label9
IL_0137: stloc.s 5 (Verse.ThingStyleDef)
IL_0139: Label3
IL_0139: Label4
IL_0139: Label5
IL_0139: ldloc.1
IL_013A: ldfld RimWorld.Bill Verse.AI.Job::bill
IL_013F: isinst RimWorld.Bill_Mech
IL_0144: dup
IL_0145: stloc.s 7 (RimWorld.Bill_Mech)
IL_0147: brtrue => Label10
IL_014C: ldloc.1
IL_014D: callvirt Verse.RecipeDef Verse.AI.Job::get_RecipeDef()
IL_0152: ldloc.0
IL_0153: ldloc.3
IL_0154: ldloc.s 4 (Verse.Thing)
IL_0156: ldloc.2
IL_0157: callvirt RimWorld.IBillGiver Verse.AI.JobDriver_DoBill::get_BillGiver()
IL_015C: ldloc.1
IL_015D: ldfld RimWorld.Bill Verse.AI.Job::bill
IL_0162: ldfld RimWorld.Precept_ThingStyle RimWorld.Bill::precept
IL_0167: ldloc.s 5 (Verse.ThingStyleDef)
IL_0169: ldloc.1
IL_016A: ldfld RimWorld.Bill Verse.AI.Job::bill
IL_016F: ldfld System.Nullable`1<System.Int32>
RimWorld.Bill::graphicIndexOverride
IL_0174: call static System.Collections.Generic.IEnumerable`1<Verse.Thing>
Verse.GenRecipe::MakeRecipeProducts(Verse.RecipeDef recipeDef, Verse.Pawn worker,
System.Collections.Generic.List`1<Verse.Thing> ingredients, Verse.Thing
dominantIngredient, RimWorld.IBillGiver billGiver, RimWorld.Precept_ThingStyle
precept, Verse.ThingStyleDef style, System.Nullable`1<System.Int32>
overrideGraphicIndex)
IL_0179: call static System.Collections.Generic.IEnumerable`1<Verse.Thing>
TD_Enhancement_Pack.ColorVariation::Variate(System.Collections.Generic.IEnumerable`
1<Verse.Thing> things)
IL_017E: call static System.Collections.Generic.List`1<Verse.Thing>
System.Linq.Enumerable::ToList(System.Collections.Generic.IEnumerable`1<Verse.Thing
> source)
IL_0183: br => Label11
IL_0188: Label10
IL_0188: ldloc.s 7 (RimWorld.Bill_Mech)
IL_018A: ldloc.0
IL_018B: ldloc.s 5 (Verse.ThingStyleDef)
IL_018D: ldloca.s 11 (System.Nullable`1[System.Int32])
IL_018F: initobj System.Nullable`1[System.Int32]
IL_0195: ldloc.s 11 (System.Nullable`1[System.Int32])
IL_0197: call static System.Collections.Generic.IEnumerable`1<Verse.Thing>
Verse.GenRecipe::FinalizeGestatedPawns(RimWorld.Bill_Mech bill, Verse.Pawn worker,
Verse.ThingStyleDef style, System.Nullable`1<System.Int32> overrideGraphicIndex)
IL_019C: call static System.Collections.Generic.List`1<Verse.Thing>
System.Linq.Enumerable::ToList(System.Collections.Generic.IEnumerable`1<Verse.Thing
> source)
IL_01A1: Label11
IL_01A1: stloc.s 6 (System.Collections.Generic.List`1[Verse.Thing])
IL_01A3: ldloc.3
IL_01A4: ldloc.1
IL_01A5: callvirt Verse.RecipeDef Verse.AI.Job::get_RecipeDef()
IL_01AA: ldloc.0
IL_01AB: callvirt virtual Verse.Map Verse.Thing::get_Map()
IL_01B0: call static System.Void
Verse.AI.Toils_Recipe::ConsumeIngredients(System.Collections.Generic.List`1<Verse.T
hing> ingredients, Verse.RecipeDef recipe, Verse.Map map)
IL_01B5: ldloc.1
IL_01B6: ldfld RimWorld.Bill Verse.AI.Job::bill
IL_01BB: ldloc.0
IL_01BC: ldloc.3
IL_01BD: callvirt virtual System.Void
RimWorld.Bill::Notify_IterationCompleted(Verse.Pawn billDoer,
System.Collections.Generic.List`1<Verse.Thing> ingredients)
IL_01C2: ldloc.0
IL_01C3: ldloc.s 6 (System.Collections.Generic.List`1[Verse.Thing])
IL_01C5: call static System.Void
RimWorld.RecordsUtility::Notify_BillDone(Verse.Pawn billDoer,
System.Collections.Generic.List`1<Verse.Thing> products)
IL_01CA: ldloc.1
IL_01CB: brtrue => Label12
IL_01D0: ldnull
IL_01D1: br => Label13
IL_01D6: Label12
IL_01D6: ldloc.1
IL_01D7: ldfld RimWorld.Bill Verse.AI.Job::bill
IL_01DC: Label13
IL_01DC: brtrue => Label14
IL_01E1: ldc.i4.0
IL_01E2: stloc.s 12 (System.Int32)
IL_01E4: br => Label15
IL_01E9: Label17
IL_01E9: ldloc.s 6 (System.Collections.Generic.List`1[Verse.Thing])
IL_01EB: ldloc.s 12 (System.Int32)
IL_01ED: callvirt virtual Verse.Thing
System.Collections.Generic.List`1<Verse.Thing>::get_Item(System.Int32 index)
IL_01F2: ldloc.0
IL_01F3: callvirt virtual Verse.IntVec3 Verse.Thing::get_Position()
IL_01F8: ldloc.0
IL_01F9: callvirt virtual Verse.Map Verse.Thing::get_Map()
IL_01FE: ldc.i4.1
IL_01FF: ldnull
IL_0200: ldnull
IL_0201: ldloca.s 13 (Verse.Rot4)
IL_0203: initobj Verse.Rot4
IL_0209: ldloc.s 13 (Verse.Rot4)
IL_020B: call static System.Boolean Verse.GenPlace::TryPlaceThing(Verse.Thing
thing, Verse.IntVec3 center, Verse.Map map, Verse.ThingPlaceMode mode,
System.Action`2<Verse.Thing, System.Int32> placedAction,
System.Predicate`1<Verse.IntVec3> nearPlaceValidator, Verse.Rot4 rot)
IL_0210: brtrue => Label16
IL_0215: ldc.i4.5
IL_0216: newarr System.Object
IL_021B: dup
IL_021C: ldc.i4.0
IL_021D: ldloc.0
IL_021E: stelem.ref
IL_021F: dup
IL_0220: ldc.i4.1
IL_0221: ldstr " could not drop recipe product "
IL_0226: stelem.ref
IL_0227: dup
IL_0228: ldc.i4.2
IL_0229: ldloc.s 6 (System.Collections.Generic.List`1[Verse.Thing])
IL_022B: ldloc.s 12 (System.Int32)
IL_022D: callvirt virtual Verse.Thing
System.Collections.Generic.List`1<Verse.Thing>::get_Item(System.Int32 index)
IL_0232: stelem.ref
IL_0233: dup
IL_0234: ldc.i4.3
IL_0235: ldstr " near "
IL_023A: stelem.ref
IL_023B: dup
IL_023C: ldc.i4.4
IL_023D: ldloc.0
IL_023E: callvirt virtual Verse.IntVec3 Verse.Thing::get_Position()
IL_0243: box Verse.IntVec3
IL_0248: stelem.ref
IL_0249: call static System.String System.String::Concat(System.Object[]
args)
IL_024E: call static System.Void Verse.Log::Error(System.String text)
IL_0253: Label16
IL_0253: ldloc.s 12 (System.Int32)
IL_0255: ldc.i4.1
IL_0256: add
IL_0257: stloc.s 12 (System.Int32)
IL_0259: Label15
IL_0259: ldloc.s 12 (System.Int32)
IL_025B: ldloc.s 6 (System.Collections.Generic.List`1[Verse.Thing])
IL_025D: callvirt virtual System.Int32
System.Collections.Generic.List`1<Verse.Thing>::get_Count()
IL_0262: blt => Label17
IL_0267: br => Label39
IL_026C: Label14
IL_026C: ldloc.1
IL_026D: ldc.i4.2
IL_026E: callvirt Verse.LocalTargetInfo
Verse.AI.Job::GetTarget(Verse.AI.TargetIndex ind)
IL_0273: stloc.s 14 (Verse.LocalTargetInfo)
IL_0275: ldloca.s 14 (Verse.LocalTargetInfo)
IL_0277: call Verse.Thing Verse.LocalTargetInfo::get_Thing()
IL_027C: isinst Verse.UnfinishedThing
IL_0281: stloc.s 8 (Verse.UnfinishedThing)
IL_0283: ldloc.1
IL_0284: ldfld RimWorld.Bill Verse.AI.Job::bill
IL_0289: ldfld Verse.RecipeDef RimWorld.Bill::recipe
IL_028E: ldloc.s 8 (Verse.UnfinishedThing)
IL_0290: brtrue => Label18
IL_0295: ldnull
IL_0296: br => Label19
IL_029B: Label18
IL_029B: ldloc.s 8 (Verse.UnfinishedThing)
IL_029D: callvirt Verse.ThingDef Verse.Thing::get_Stuff()
IL_02A2: Label19
IL_02A2: callvirt System.Single Verse.RecipeDef::WorkAmountTotal(Verse.ThingDef
stuffDef)
IL_02A7: ldc.r4 10000
IL_02AC: blt.un => Label20
IL_02B1: ldloc.s 6 (System.Collections.Generic.List`1[Verse.Thing])
IL_02B3: callvirt virtual System.Int32
System.Collections.Generic.List`1<Verse.Thing>::get_Count()
IL_02B8: ldc.i4.0
IL_02B9: ble => Label21
IL_02BE: ldsfld RimWorld.TaleDef
RimWorld.TaleDefOf::CompletedLongCraftingProject
IL_02C3: ldc.i4.2
IL_02C4: newarr System.Object
IL_02C9: dup
IL_02CA: ldc.i4.0
IL_02CB: ldloc.0
IL_02CC: stelem.ref
IL_02CD: dup
IL_02CE: ldc.i4.1
IL_02CF: ldloc.s 6 (System.Collections.Generic.List`1[Verse.Thing])
IL_02D1: ldc.i4.0
IL_02D2: callvirt virtual Verse.Thing
System.Collections.Generic.List`1<Verse.Thing>::get_Item(System.Int32 index)
IL_02D7: call static Verse.Thing
RimWorld.MinifyUtility::GetInnerIfMinified(Verse.Thing outerThing)
IL_02DC: ldfld Verse.ThingDef Verse.Thing::def
IL_02E1: stelem.ref
IL_02E2: call static RimWorld.Tale
RimWorld.TaleRecorder::RecordTale(RimWorld.TaleDef def, System.Object[] args)
IL_02E7: pop
IL_02E8: Label20
IL_02E8: Label21
IL_02E8: ldloc.s 6 (System.Collections.Generic.List`1[Verse.Thing])
IL_02EA: call static System.Boolean
Verse.GenCollection::Any(System.Collections.Generic.List`1<Verse.Thing> list)
IL_02EF: brfalse => Label22
IL_02F4: call static RimWorld.QuestManager Verse.Find::get_QuestManager()
IL_02F9: ldloc.0
IL_02FA: ldloc.s 6 (System.Collections.Generic.List`1[Verse.Thing])
IL_02FC: callvirt System.Void
RimWorld.QuestManager::Notify_ThingsProduced(Verse.Pawn worker,
System.Collections.Generic.List`1<Verse.Thing> things)
IL_0301: Label22
IL_0301: ldloc.s 6 (System.Collections.Generic.List`1[Verse.Thing])
IL_0303: callvirt virtual System.Int32
System.Collections.Generic.List`1<Verse.Thing>::get_Count()
IL_0308: brtrue => Label23
IL_030D: ldloc.0
IL_030E: ldfld Verse.AI.Pawn_JobTracker Verse.Pawn::jobs
IL_0313: ldc.i4.2
IL_0314: ldc.i4.1
IL_0315: ldc.i4.1
IL_0316: callvirt System.Void
Verse.AI.Pawn_JobTracker::EndCurrentJob(Verse.AI.JobCondition condition,
System.Boolean startNewJob, System.Boolean canReturnToPool)
IL_031B: br => Label40
IL_0320: Label23
IL_0320: ldloc.1
IL_0321: ldfld RimWorld.Bill Verse.AI.Job::bill
IL_0326: callvirt virtual RimWorld.BillStoreModeDef RimWorld.Bill::GetStoreMode()
IL_032B: ldsfld RimWorld.BillStoreModeDef
RimWorld.BillStoreModeDefOf::DropOnFloor
IL_0330: bne.un => Label24
IL_0335: ldc.i4.0
IL_0336: stloc.s 15 (System.Int32)
IL_0338: br => Label25
IL_033D: Label27
IL_033D: ldloc.s 6 (System.Collections.Generic.List`1[Verse.Thing])
IL_033F: ldloc.s 15 (System.Int32)
IL_0341: callvirt virtual Verse.Thing
System.Collections.Generic.List`1<Verse.Thing>::get_Item(System.Int32 index)
IL_0346: ldloc.0
IL_0347: callvirt virtual Verse.IntVec3 Verse.Thing::get_Position()
IL_034C: ldloc.0
IL_034D: callvirt virtual Verse.Map Verse.Thing::get_Map()
IL_0352: ldc.i4.1
IL_0353: ldnull
IL_0354: ldnull
IL_0355: ldloca.s 13 (Verse.Rot4)
IL_0357: initobj Verse.Rot4
IL_035D: ldloc.s 13 (Verse.Rot4)
IL_035F: call static System.Boolean Verse.GenPlace::TryPlaceThing(Verse.Thing
thing, Verse.IntVec3 center, Verse.Map map, Verse.ThingPlaceMode mode,
System.Action`2<Verse.Thing, System.Int32> placedAction,
System.Predicate`1<Verse.IntVec3> nearPlaceValidator, Verse.Rot4 rot)
IL_0364: brtrue => Label26
IL_0369: ldc.i4.5
IL_036A: newarr System.Object
IL_036F: dup
IL_0370: ldc.i4.0
IL_0371: ldloc.0
IL_0372: stelem.ref
IL_0373: dup
IL_0374: ldc.i4.1
IL_0375: ldstr " could not drop recipe product "
IL_037A: stelem.ref
IL_037B: dup
IL_037C: ldc.i4.2
IL_037D: ldloc.s 6 (System.Collections.Generic.List`1[Verse.Thing])
IL_037F: ldloc.s 15 (System.Int32)
IL_0381: callvirt virtual Verse.Thing
System.Collections.Generic.List`1<Verse.Thing>::get_Item(System.Int32 index)
IL_0386: stelem.ref
IL_0387: dup
IL_0388: ldc.i4.3
IL_0389: ldstr " near "
IL_038E: stelem.ref
IL_038F: dup
IL_0390: ldc.i4.4
IL_0391: ldloc.0
IL_0392: callvirt virtual Verse.IntVec3 Verse.Thing::get_Position()
IL_0397: box Verse.IntVec3
IL_039C: stelem.ref
IL_039D: call static System.String System.String::Concat(System.Object[]
args)
IL_03A2: call static System.Void Verse.Log::Error(System.String text)
IL_03A7: Label26
IL_03A7: ldloc.s 15 (System.Int32)
IL_03A9: ldc.i4.1
IL_03AA: add
IL_03AB: stloc.s 15 (System.Int32)
IL_03AD: Label25
IL_03AD: ldloc.s 15 (System.Int32)
IL_03AF: ldloc.s 6 (System.Collections.Generic.List`1[Verse.Thing])
IL_03B1: callvirt virtual System.Int32
System.Collections.Generic.List`1<Verse.Thing>::get_Count()
IL_03B6: blt => Label27
IL_03BB: ldloc.0
IL_03BC: ldfld Verse.AI.Pawn_JobTracker Verse.Pawn::jobs
IL_03C1: ldc.i4.2
IL_03C2: ldc.i4.1
IL_03C3: ldc.i4.1
IL_03C4: callvirt System.Void
Verse.AI.Pawn_JobTracker::EndCurrentJob(Verse.AI.JobCondition condition,
System.Boolean startNewJob, System.Boolean canReturnToPool)
IL_03C9: br => Label41
IL_03CE: Label24
IL_03CE: ldloc.s 6 (System.Collections.Generic.List`1[Verse.Thing])
IL_03D0: callvirt virtual System.Int32
System.Collections.Generic.List`1<Verse.Thing>::get_Count()
IL_03D5: ldc.i4.1
IL_03D6: ble => Label28
IL_03DB: ldc.i4.1
IL_03DC: stloc.s 16 (System.Int32)
IL_03DE: br => Label29
IL_03E3: Label31
IL_03E3: ldloc.s 6 (System.Collections.Generic.List`1[Verse.Thing])
IL_03E5: ldloc.s 16 (System.Int32)
IL_03E7: callvirt virtual Verse.Thing
System.Collections.Generic.List`1<Verse.Thing>::get_Item(System.Int32 index)
IL_03EC: ldloc.0
IL_03ED: callvirt virtual Verse.IntVec3 Verse.Thing::get_Position()
IL_03F2: ldloc.0
IL_03F3: callvirt virtual Verse.Map Verse.Thing::get_Map()
IL_03F8: ldc.i4.1
IL_03F9: ldnull
IL_03FA: ldnull
IL_03FB: ldloca.s 13 (Verse.Rot4)
IL_03FD: initobj Verse.Rot4
IL_0403: ldloc.s 13 (Verse.Rot4)
IL_0405: call static System.Boolean Verse.GenPlace::TryPlaceThing(Verse.Thing
thing, Verse.IntVec3 center, Verse.Map map, Verse.ThingPlaceMode mode,
System.Action`2<Verse.Thing, System.Int32> placedAction,
System.Predicate`1<Verse.IntVec3> nearPlaceValidator, Verse.Rot4 rot)
IL_040A: brtrue => Label30
IL_040F: ldc.i4.5
IL_0410: newarr System.Object
IL_0415: dup
IL_0416: ldc.i4.0
IL_0417: ldloc.0
IL_0418: stelem.ref
IL_0419: dup
IL_041A: ldc.i4.1
IL_041B: ldstr " could not drop recipe product "
IL_0420: stelem.ref
IL_0421: dup
IL_0422: ldc.i4.2
IL_0423: ldloc.s 6 (System.Collections.Generic.List`1[Verse.Thing])
IL_0425: ldloc.s 16 (System.Int32)
IL_0427: callvirt virtual Verse.Thing
System.Collections.Generic.List`1<Verse.Thing>::get_Item(System.Int32 index)
IL_042C: stelem.ref
IL_042D: dup
IL_042E: ldc.i4.3
IL_042F: ldstr " near "
IL_0434: stelem.ref
IL_0435: dup
IL_0436: ldc.i4.4
IL_0437: ldloc.0
IL_0438: callvirt virtual Verse.IntVec3 Verse.Thing::get_Position()
IL_043D: box Verse.IntVec3
IL_0442: stelem.ref
IL_0443: call static System.String System.String::Concat(System.Object[]
args)
IL_0448: call static System.Void Verse.Log::Error(System.String text)
IL_044D: Label30
IL_044D: ldloc.s 16 (System.Int32)
IL_044F: ldc.i4.1
IL_0450: add
IL_0451: stloc.s 16 (System.Int32)
IL_0453: Label29
IL_0453: ldloc.s 16 (System.Int32)
IL_0455: ldloc.s 6 (System.Collections.Generic.List`1[Verse.Thing])
IL_0457: callvirt virtual System.Int32
System.Collections.Generic.List`1<Verse.Thing>::get_Count()
IL_045C: blt => Label31
IL_0461: Label28
IL_0461: ldsfld Verse.IntVec3 Verse.IntVec3::Invalid
IL_0466: stloc.s 9 (Verse.IntVec3)
IL_0468: ldloc.1
IL_0469: ldfld RimWorld.Bill Verse.AI.Job::bill
IL_046E: callvirt virtual RimWorld.BillStoreModeDef RimWorld.Bill::GetStoreMode()
IL_0473: ldsfld RimWorld.BillStoreModeDef
RimWorld.BillStoreModeDefOf::BestStockpile
IL_0478: bne.un => Label32
IL_047D: ldloc.s 6 (System.Collections.Generic.List`1[Verse.Thing])
IL_047F: ldc.i4.0
IL_0480: callvirt virtual Verse.Thing
System.Collections.Generic.List`1<Verse.Thing>::get_Item(System.Int32 index)
IL_0485: ldloc.0
IL_0486: ldloc.0
IL_0487: callvirt virtual Verse.Map Verse.Thing::get_Map()
IL_048C: ldc.i4.0
IL_048D: ldloc.0
IL_048E: callvirt virtual RimWorld.Faction Verse.Thing::get_Faction()
IL_0493: ldloca.s 9 (Verse.IntVec3)
IL_0495: ldc.i4.1
IL_0496: call static System.Boolean
RimWorld.StoreUtility::TryFindBestBetterStoreCellFor(Verse.Thing t, Verse.Pawn
carrier, Verse.Map map, RimWorld.StoragePriority currentPriority, RimWorld.Faction
faction, Verse.IntVec3& foundCell, System.Boolean needAccurateResult)
IL_049B: pop
IL_049C: br => Label33
IL_04A1: Label32
IL_04A1: ldloc.1
IL_04A2: ldfld RimWorld.Bill Verse.AI.Job::bill
IL_04A7: callvirt virtual RimWorld.BillStoreModeDef RimWorld.Bill::GetStoreMode()
IL_04AC: ldsfld RimWorld.BillStoreModeDef
RimWorld.BillStoreModeDefOf::SpecificStockpile
IL_04B1: bne.un => Label34
IL_04B6: ldloc.s 6 (System.Collections.Generic.List`1[Verse.Thing])
IL_04B8: ldc.i4.0
IL_04B9: callvirt virtual Verse.Thing
System.Collections.Generic.List`1<Verse.Thing>::get_Item(System.Int32 index)
IL_04BE: ldloc.0
IL_04BF: ldloc.0
IL_04C0: callvirt virtual Verse.Map Verse.Thing::get_Map()
IL_04C5: ldc.i4.0
IL_04C6: ldloc.0
IL_04C7: callvirt virtual RimWorld.Faction Verse.Thing::get_Faction()
IL_04CC: ldloc.1
IL_04CD: ldfld RimWorld.Bill Verse.AI.Job::bill
IL_04D2: callvirt virtual RimWorld.Zone_Stockpile RimWorld.Bill::GetStoreZone()
IL_04D7: ldfld RimWorld.SlotGroup RimWorld.Zone_Stockpile::slotGroup
IL_04DC: ldloca.s 9 (Verse.IntVec3)
IL_04DE: ldc.i4.1
IL_04DF: call static System.Boolean
RimWorld.StoreUtility::TryFindBestBetterStoreCellForIn(Verse.Thing t, Verse.Pawn
carrier, Verse.Map map, RimWorld.StoragePriority currentPriority, RimWorld.Faction
faction, RimWorld.SlotGroup slotGroup, Verse.IntVec3& foundCell, System.Boolean
needAccurateResult)
IL_04E4: pop
IL_04E5: br => Label35
IL_04EA: Label34
IL_04EA: ldstr "Unknown store mode"
IL_04EF: ldc.i4 9158246
IL_04F4: call static System.Void Verse.Log::ErrorOnce(System.String text,
System.Int32 key)
IL_04F9: Label33
IL_04F9: Label35
IL_04F9: ldloca.s 9 (Verse.IntVec3)
IL_04FB: call System.Boolean Verse.IntVec3::get_IsValid()
IL_0500: brfalse => Label36
IL_0505: ldloc.0
IL_0506: ldfld Verse.Pawn_CarryTracker Verse.Pawn::carryTracker
IL_050B: ldloc.s 6 (System.Collections.Generic.List`1[Verse.Thing])
IL_050D: ldc.i4.0
IL_050E: callvirt virtual Verse.Thing
System.Collections.Generic.List`1<Verse.Thing>::get_Item(System.Int32 index)
IL_0513: callvirt System.Boolean
Verse.Pawn_CarryTracker::TryStartCarry(Verse.Thing item)
IL_0518: pop
IL_0519: ldloc.1
IL_051A: ldloc.s 9 (Verse.IntVec3)
IL_051C: call static Verse.LocalTargetInfo
Verse.LocalTargetInfo::op_Implicit(Verse.IntVec3 c)
IL_0521: stfld Verse.LocalTargetInfo Verse.AI.Job::targetB
IL_0526: ldarg.0
IL_0527: ldfld Verse.AI.TargetIndex
Verse.AI.<>c__DisplayClass3_0::productIndex
IL_052C: brfalse => Label37
IL_0531: ldloc.1
IL_0532: ldarg.0
IL_0533: ldfld Verse.AI.TargetIndex
Verse.AI.<>c__DisplayClass3_0::productIndex
IL_0538: ldloc.s 6 (System.Collections.Generic.List`1[Verse.Thing])
IL_053A: ldc.i4.0
IL_053B: callvirt virtual Verse.Thing
System.Collections.Generic.List`1<Verse.Thing>::get_Item(System.Int32 index)
IL_0540: call static Verse.LocalTargetInfo
Verse.LocalTargetInfo::op_Implicit(Verse.Thing t)
IL_0545: callvirt System.Void Verse.AI.Job::SetTarget(Verse.AI.TargetIndex ind,
Verse.LocalTargetInfo pack)
IL_054A: Label37
IL_054A: ldloc.1
IL_054B: ldc.i4 99999
IL_0550: stfld System.Int32 Verse.AI.Job::count
IL_0555: br => Label42
IL_055A: Label36
IL_055A: ldloc.s 6 (System.Collections.Generic.List`1[Verse.Thing])
IL_055C: ldc.i4.0
IL_055D: callvirt virtual Verse.Thing
System.Collections.Generic.List`1<Verse.Thing>::get_Item(System.Int32 index)
IL_0562: ldloc.0
IL_0563: callvirt virtual Verse.IntVec3 Verse.Thing::get_Position()
IL_0568: ldloc.0
IL_0569: callvirt virtual Verse.Map Verse.Thing::get_Map()
IL_056E: ldc.i4.1
IL_056F: ldnull
IL_0570: ldnull
IL_0571: ldloca.s 13 (Verse.Rot4)
IL_0573: initobj Verse.Rot4
IL_0579: ldloc.s 13 (Verse.Rot4)
IL_057B: call static System.Boolean Verse.GenPlace::TryPlaceThing(Verse.Thing
thing, Verse.IntVec3 center, Verse.Map map, Verse.ThingPlaceMode mode,
System.Action`2<Verse.Thing, System.Int32> placedAction,
System.Predicate`1<Verse.IntVec3> nearPlaceValidator, Verse.Rot4 rot)
IL_0580: brtrue => Label38
IL_0585: ldc.i4.4
IL_0586: newarr System.Object
IL_058B: dup
IL_058C: ldc.i4.0
IL_058D: ldstr "Bill doer could not drop product "
IL_0592: stelem.ref
IL_0593: dup
IL_0594: ldc.i4.1
IL_0595: ldloc.s 6 (System.Collections.Generic.List`1[Verse.Thing])
IL_0597: ldc.i4.0
IL_0598: callvirt virtual Verse.Thing
System.Collections.Generic.List`1<Verse.Thing>::get_Item(System.Int32 index)
IL_059D: stelem.ref
IL_059E: dup
IL_059F: ldc.i4.2
IL_05A0: ldstr " near "
IL_05A5: stelem.ref
IL_05A6: dup
IL_05A7: ldc.i4.3
IL_05A8: ldloc.0
IL_05A9: callvirt virtual Verse.IntVec3 Verse.Thing::get_Position()
IL_05AE: box Verse.IntVec3
IL_05B3: stelem.ref
IL_05B4: call static System.String System.String::Concat(System.Object[]
args)
IL_05B9: call static System.Void Verse.Log::Error(System.String text)
IL_05BE: Label38
IL_05BE: ldloc.0
IL_05BF: ldfld Verse.AI.Pawn_JobTracker Verse.Pawn::jobs
IL_05C4: ldc.i4.2
IL_05C5: ldc.i4.1
IL_05C6: ldc.i4.1
IL_05C7: callvirt System.Void
Verse.AI.Pawn_JobTracker::EndCurrentJob(Verse.AI.JobCondition condition,
System.Boolean startNewJob, System.Boolean canReturnToPool)
IL_05CC: // end original
IL_05CC: Label39
IL_05CC: Label40
IL_05CC: Label41
IL_05CC: Label42
IL_05CC: ret
DONE

### Patch: virtual System.Boolean Verse.<MakeRecipeProducts>d__0::MoveNext()


### Replacement: static System.Boolean
Verse.GenRecipe+<MakeRecipeProducts>d__0::Verse.GenRecipe+<MakeRecipeProducts>d__0.
MoveNext_Patch0(Verse.<MakeRecipeProducts>d__0 this)
IL_0000: Local var 0: System.Boolean
IL_0000: Local var 1: System.Int32
IL_0000: Local var 2: RimWorld.Building_WorkTable
IL_0000: Local var 3: Verse.ThingDefCountClass
IL_0000: Local var 4: Verse.ThingDef
IL_0000: Local var 5: Verse.Thing
IL_0000: Local var 6: RimWorld.CompIngredients
IL_0000: Local var 7: RimWorld.CompFoodPoisonable
IL_0000: Local var 8: System.Int32
IL_0000: Local var 9: Verse.Room
IL_0000: Local var 10: System.Int32
IL_0000: Local var 11: Verse.Thing
IL_0000: Local var 12: Verse.SpecialProductType
IL_0000: Local var 13: Verse.Thing
IL_0000: Local var 14: Verse.Thing
IL_0000: // start original
.try
{
IL_0000: ldarg.0
IL_0001: ldfld System.Int32 Verse.<MakeRecipeProducts>d__0::<>1__state
IL_0006: stloc.1
IL_0007: ldloc.1
IL_0008: switch => Labels0,1,2,3
IL_001D: ldc.i4.0
IL_001E: stloc.0
IL_001F: leave => Label4
IL_0024: Label0
IL_0024: ldarg.0
IL_0025: ldc.i4.m1
IL_0026: stfld System.Int32 Verse.<MakeRecipeProducts>d__0::<>1__state
IL_002B: ldarg.0
IL_002C: ldfld Verse.RecipeDef Verse.<MakeRecipeProducts>d__0::recipeDef
IL_0031: ldfld RimWorld.StatDef Verse.RecipeDef::efficiencyStat
IL_0036: brtrue => Label5
IL_003B: ldarg.0
IL_003C: ldc.r4 1
IL_0041: stfld System.Single
Verse.<MakeRecipeProducts>d__0::<efficiency>5__2
IL_0046: br => Label6
IL_004B: Label5
IL_004B: ldarg.0
IL_004C: ldarg.0
IL_004D: ldfld Verse.Pawn Verse.<MakeRecipeProducts>d__0::worker
IL_0052: ldarg.0
IL_0053: ldfld Verse.RecipeDef Verse.<MakeRecipeProducts>d__0::recipeDef
IL_0058: ldfld RimWorld.StatDef Verse.RecipeDef::efficiencyStat
IL_005D: ldc.i4.1
IL_005E: ldc.i4.m1
IL_005F: call static System.Single
RimWorld.StatExtension::GetStatValue(Verse.Thing thing, RimWorld.StatDef stat,
System.Boolean applyPostProcess, System.Int32 cacheStaleAfterTicks)
IL_0064: stfld System.Single
Verse.<MakeRecipeProducts>d__0::<efficiency>5__2
IL_0069: Label6
IL_0069: ldarg.0
IL_006A: ldfld Verse.RecipeDef Verse.<MakeRecipeProducts>d__0::recipeDef
IL_006F: ldfld RimWorld.StatDef Verse.RecipeDef::workTableEfficiencyStat
IL_0074: brfalse => Label7
IL_0079: ldarg.0
IL_007A: ldfld RimWorld.IBillGiver
Verse.<MakeRecipeProducts>d__0::billGiver
IL_007F: isinst RimWorld.Building_WorkTable
IL_0084: stloc.2
IL_0085: ldloc.2
IL_0086: brfalse => Label8
IL_008B: ldarg.0
IL_008C: ldarg.0
IL_008D: ldfld System.Single
Verse.<MakeRecipeProducts>d__0::<efficiency>5__2
IL_0092: ldloc.2
IL_0093: ldarg.0
IL_0094: ldfld Verse.RecipeDef Verse.<MakeRecipeProducts>d__0::recipeDef
IL_0099: ldfld RimWorld.StatDef Verse.RecipeDef::workTableEfficiencyStat
IL_009E: ldc.i4.1
IL_009F: ldc.i4.m1
IL_00A0: call static System.Single
RimWorld.StatExtension::GetStatValue(Verse.Thing thing, RimWorld.StatDef stat,
System.Boolean applyPostProcess, System.Int32 cacheStaleAfterTicks)
IL_00A5: mul
IL_00A6: stfld System.Single
Verse.<MakeRecipeProducts>d__0::<efficiency>5__2
IL_00AB: Label7
IL_00AB: Label8
IL_00AB: ldarg.0
IL_00AC: ldfld Verse.RecipeDef Verse.<MakeRecipeProducts>d__0::recipeDef
IL_00B1: ldfld
System.Collections.Generic.List`1<Verse.ThingDefCountClass>
Verse.RecipeDef::products
IL_00B6: brfalse => Label9
IL_00BB: ldarg.0
IL_00BC: ldc.i4.0
IL_00BD: stfld System.Int32 Verse.<MakeRecipeProducts>d__0::<i>5__3
IL_00C2: br => Label10
IL_00C7: Label25
IL_00C7: ldarg.0
IL_00C8: ldfld Verse.RecipeDef Verse.<MakeRecipeProducts>d__0::recipeDef
IL_00CD: ldfld
System.Collections.Generic.List`1<Verse.ThingDefCountClass>
Verse.RecipeDef::products
IL_00D2: ldarg.0
IL_00D3: ldfld System.Int32 Verse.<MakeRecipeProducts>d__0::<i>5__3
IL_00D8: callvirt virtual Verse.ThingDefCountClass
System.Collections.Generic.List`1<Verse.ThingDefCountClass>::get_Item(System.Int32
index)
IL_00DD: stloc.3
IL_00DE: ldloc.3
IL_00DF: ldfld Verse.ThingDef Verse.ThingDefCountClass::thingDef
IL_00E4: callvirt System.Boolean Verse.BuildableDef::get_MadeFromStuff()
IL_00E9: brfalse => Label11
IL_00EE: ldarg.0
IL_00EF: ldfld Verse.Thing
Verse.<MakeRecipeProducts>d__0::dominantIngredient
IL_00F4: ldfld Verse.ThingDef Verse.Thing::def
IL_00F9: stloc.s 4 (Verse.ThingDef)
IL_00FB: br => Label12
IL_0100: Label11
IL_0100: ldnull
IL_0101: stloc.s 4 (Verse.ThingDef)
IL_0103: Label12
IL_0103: ldloc.3
IL_0104: ldfld Verse.ThingDef Verse.ThingDefCountClass::thingDef
IL_0109: ldloc.s 4 (Verse.ThingDef)
IL_010B: call static Verse.Thing
Verse.ThingMaker::MakeThing(Verse.ThingDef def, Verse.ThingDef stuff)
IL_0110: stloc.s 5 (Verse.Thing)
IL_0112: ldloc.s 5 (Verse.Thing)
IL_0114: ldloc.3
IL_0115: ldfld System.Int32 Verse.ThingDefCountClass::count
IL_011A: conv.r4
IL_011B: ldarg.0
IL_011C: ldfld System.Single
Verse.<MakeRecipeProducts>d__0::<efficiency>5__2
IL_0121: mul
IL_0122: call static System.Int32
UnityEngine.Mathf::CeilToInt(System.Single f)
IL_0127: stfld System.Int32 Verse.Thing::stackCount
IL_012C: ldarg.0
IL_012D: ldfld Verse.Thing
Verse.<MakeRecipeProducts>d__0::dominantIngredient
IL_0132: brfalse => Label13
IL_0137: ldarg.0
IL_0138: ldfld Verse.RecipeDef Verse.<MakeRecipeProducts>d__0::recipeDef
IL_013D: ldfld System.Boolean Verse.RecipeDef::useIngredientsForColor
IL_0142: brfalse => Label14
IL_0147: ldloc.s 5 (Verse.Thing)
IL_0149: ldarg.0
IL_014A: ldfld Verse.Thing
Verse.<MakeRecipeProducts>d__0::dominantIngredient
IL_014F: call static UnityEngine.Color
TD_Enhancement_Pack.ColorVariation::StuffColor(Verse.Thing stuff)
IL_0154: ldc.i4.0
IL_0155: call static System.Void
Verse.CompColorableUtility::SetColor(Verse.Thing t, UnityEngine.Color newColor,
System.Boolean reportFailure)
IL_015A: Label13
IL_015A: Label14
IL_015A: ldloc.s 5 (Verse.Thing)
IL_015C: call static RimWorld.CompIngredients
Verse.ThingCompUtility::TryGetComp(Verse.Thing thing)
IL_0161: stloc.s 6 (RimWorld.CompIngredients)
IL_0163: ldloc.s 6 (RimWorld.CompIngredients)
IL_0165: brfalse => Label15
IL_016A: ldc.i4.0
IL_016B: stloc.s 8 (System.Int32)
IL_016D: br => Label16
IL_0172: Label17
IL_0172: ldloc.s 6 (RimWorld.CompIngredients)
IL_0174: ldarg.0
IL_0175: ldfld System.Collections.Generic.List`1<Verse.Thing>
Verse.<MakeRecipeProducts>d__0::ingredients
IL_017A: ldloc.s 8 (System.Int32)
IL_017C: callvirt virtual Verse.Thing
System.Collections.Generic.List`1<Verse.Thing>::get_Item(System.Int32 index)
IL_0181: ldfld Verse.ThingDef Verse.Thing::def
IL_0186: callvirt System.Void
RimWorld.CompIngredients::RegisterIngredient(Verse.ThingDef def)
IL_018B: ldloc.s 8 (System.Int32)
IL_018D: ldc.i4.1
IL_018E: add
IL_018F: stloc.s 8 (System.Int32)
IL_0191: Label16
IL_0191: ldloc.s 8 (System.Int32)
IL_0193: ldarg.0
IL_0194: ldfld System.Collections.Generic.List`1<Verse.Thing>
Verse.<MakeRecipeProducts>d__0::ingredients
IL_0199: callvirt virtual System.Int32
System.Collections.Generic.List`1<Verse.Thing>::get_Count()
IL_019E: blt => Label17
IL_01A3: Label15
IL_01A3: ldloc.s 5 (Verse.Thing)
IL_01A5: call static RimWorld.CompFoodPoisonable
Verse.ThingCompUtility::TryGetComp(Verse.Thing thing)
IL_01AA: stloc.s 7 (RimWorld.CompFoodPoisonable)
IL_01AC: ldloc.s 7 (RimWorld.CompFoodPoisonable)
IL_01AE: brfalse => Label18
IL_01B3: ldarg.0
IL_01B4: ldfld Verse.Pawn Verse.<MakeRecipeProducts>d__0::worker
IL_01B9: ldc.i4.s 15
IL_01BB: call static Verse.Room
Verse.RegionAndRoomQuery::GetRoom(Verse.Thing thing, Verse.RegionType
allowedRegionTypes)
IL_01C0: stloc.s 9 (Verse.Room)
IL_01C2: ldloc.s 9 (Verse.Room)
IL_01C4: brtrue => Label19
IL_01C9: ldsfld Verse.RoomStatDef
RimWorld.RoomStatDefOf::FoodPoisonChance
IL_01CE: ldfld System.Single Verse.RoomStatDef::roomlessScore
IL_01D3: br => Label20
IL_01D8: Label19
IL_01D8: ldloc.s 9 (Verse.Room)
IL_01DA: ldsfld Verse.RoomStatDef
RimWorld.RoomStatDefOf::FoodPoisonChance
IL_01DF: callvirt System.Single Verse.Room::GetStat(Verse.RoomStatDef
roomStat)
IL_01E4: Label20
IL_01E4: call static System.Boolean Verse.Rand::Chance(System.Single
chance)
IL_01E9: brfalse => Label21
IL_01EE: ldloc.s 7 (RimWorld.CompFoodPoisonable)
IL_01F0: ldc.i4.2
IL_01F1: callvirt System.Void
RimWorld.CompFoodPoisonable::SetPoisoned(RimWorld.FoodPoisonCause newCause)
IL_01F6: br => Label22
IL_01FB: Label21
IL_01FB: ldarg.0
IL_01FC: ldfld Verse.Pawn Verse.<MakeRecipeProducts>d__0::worker
IL_0201: ldsfld RimWorld.StatDef RimWorld.StatDefOf::FoodPoisonChance
IL_0206: ldc.i4.1
IL_0207: ldc.i4.m1
IL_0208: call static System.Single
RimWorld.StatExtension::GetStatValue(Verse.Thing thing, RimWorld.StatDef stat,
System.Boolean applyPostProcess, System.Int32 cacheStaleAfterTicks)
IL_020D: call static System.Boolean Verse.Rand::Chance(System.Single
chance)
IL_0212: brfalse => Label23
IL_0217: ldloc.s 7 (RimWorld.CompFoodPoisonable)
IL_0219: ldc.i4.1
IL_021A: callvirt System.Void
RimWorld.CompFoodPoisonable::SetPoisoned(RimWorld.FoodPoisonCause newCause)
IL_021F: Label18
IL_021F: Label22
IL_021F: Label23
IL_021F: ldarg.0
IL_0220: ldloc.s 5 (Verse.Thing)
IL_0222: ldarg.0
IL_0223: ldfld Verse.RecipeDef Verse.<MakeRecipeProducts>d__0::recipeDef
IL_0228: ldarg.0
IL_0229: ldfld Verse.Pawn Verse.<MakeRecipeProducts>d__0::worker
IL_022E: ldarg.0
IL_022F: ldfld RimWorld.Precept_ThingStyle
Verse.<MakeRecipeProducts>d__0::precept
IL_0234: ldarg.0
IL_0235: ldfld Verse.ThingStyleDef Verse.<MakeRecipeProducts>d__0::style
IL_023A: ldarg.0
IL_023B: ldfld System.Nullable`1<System.Int32>
Verse.<MakeRecipeProducts>d__0::overrideGraphicIndex
IL_0240: call static Verse.Thing
Verse.GenRecipe::PostProcessProduct(Verse.Thing product, Verse.RecipeDef recipeDef,
Verse.Pawn worker, RimWorld.Precept_ThingStyle precept, Verse.ThingStyleDef style,
System.Nullable`1<System.Int32> overrideGraphicIndex)
IL_0245: stfld Verse.Thing Verse.<MakeRecipeProducts>d__0::<>2__current
IL_024A: ldarg.0
IL_024B: ldc.i4.1
IL_024C: stfld System.Int32 Verse.<MakeRecipeProducts>d__0::<>1__state
IL_0251: ldc.i4.1
IL_0252: stloc.0
IL_0253: leave => Label24
IL_0258: Label1
IL_0258: ldarg.0
IL_0259: ldc.i4.m1
IL_025A: stfld System.Int32 Verse.<MakeRecipeProducts>d__0::<>1__state
IL_025F: ldarg.0
IL_0260: ldfld System.Int32 Verse.<MakeRecipeProducts>d__0::<i>5__3
IL_0265: stloc.s 10 (System.Int32)
IL_0267: ldarg.0
IL_0268: ldloc.s 10 (System.Int32)
IL_026A: ldc.i4.1
IL_026B: add
IL_026C: stfld System.Int32 Verse.<MakeRecipeProducts>d__0::<i>5__3
IL_0271: Label10
IL_0271: ldarg.0
IL_0272: ldfld System.Int32 Verse.<MakeRecipeProducts>d__0::<i>5__3
IL_0277: ldarg.0
IL_0278: ldfld Verse.RecipeDef Verse.<MakeRecipeProducts>d__0::recipeDef
IL_027D: ldfld
System.Collections.Generic.List`1<Verse.ThingDefCountClass>
Verse.RecipeDef::products
IL_0282: callvirt virtual System.Int32
System.Collections.Generic.List`1<Verse.ThingDefCountClass>::get_Count()
IL_0287: blt => Label25
IL_028C: Label9
IL_028C: ldarg.0
IL_028D: ldfld Verse.RecipeDef Verse.<MakeRecipeProducts>d__0::recipeDef
IL_0292: ldfld
System.Collections.Generic.List`1<Verse.SpecialProductType>
Verse.RecipeDef::specialProducts
IL_0297: brfalse => Label26
IL_029C: ldarg.0
IL_029D: ldc.i4.0
IL_029E: stfld System.Int32 Verse.<MakeRecipeProducts>d__0::<i>5__3
IL_02A3: br => Label27
IL_02A8: Label40
IL_02A8: ldarg.0
IL_02A9: ldc.i4.0
IL_02AA: stfld System.Int32 Verse.<MakeRecipeProducts>d__0::<j>5__4
IL_02AF: br => Label28
IL_02B4: Label39
IL_02B4: ldarg.0
IL_02B5: ldfld System.Collections.Generic.List`1<Verse.Thing>
Verse.<MakeRecipeProducts>d__0::ingredients
IL_02BA: ldarg.0
IL_02BB: ldfld System.Int32 Verse.<MakeRecipeProducts>d__0::<j>5__4
IL_02C0: callvirt virtual Verse.Thing
System.Collections.Generic.List`1<Verse.Thing>::get_Item(System.Int32 index)
IL_02C5: stloc.s 11 (Verse.Thing)
IL_02C7: ldarg.0
IL_02C8: ldfld Verse.RecipeDef Verse.<MakeRecipeProducts>d__0::recipeDef
IL_02CD: ldfld
System.Collections.Generic.List`1<Verse.SpecialProductType>
Verse.RecipeDef::specialProducts
IL_02D2: ldarg.0
IL_02D3: ldfld System.Int32 Verse.<MakeRecipeProducts>d__0::<i>5__3
IL_02D8: callvirt virtual Verse.SpecialProductType
System.Collections.Generic.List`1<Verse.SpecialProductType>::get_Item(System.Int32
index)
IL_02DD: stloc.s 12 (Verse.SpecialProductType)
IL_02DF: ldloc.s 12 (Verse.SpecialProductType)
IL_02E1: brfalse => Label29
IL_02E6: ldloc.s 12 (Verse.SpecialProductType)
IL_02E8: ldc.i4.1
IL_02E9: beq => Label30
IL_02EE: br => Label31
IL_02F3: Label29
IL_02F3: ldarg.0
IL_02F4: ldloc.s 11 (Verse.Thing)
IL_02F6: ldarg.0
IL_02F7: ldfld Verse.Pawn Verse.<MakeRecipeProducts>d__0::worker
IL_02FC: ldarg.0
IL_02FD: ldfld System.Single
Verse.<MakeRecipeProducts>d__0::<efficiency>5__2
IL_0302: callvirt virtual
System.Collections.Generic.IEnumerable`1<Verse.Thing>
Verse.Thing::ButcherProducts(Verse.Pawn butcher, System.Single efficiency)
IL_0307: callvirt abstract virtual
System.Collections.Generic.IEnumerator`1<Verse.Thing>
System.Collections.Generic.IEnumerable`1<Verse.Thing>::GetEnumerator()
IL_030C: stfld System.Collections.Generic.IEnumerator`1<Verse.Thing>
Verse.<MakeRecipeProducts>d__0::<>7__wrap4
IL_0311: ldarg.0
IL_0312: ldc.i4.s -3
IL_0314: stfld System.Int32 Verse.<MakeRecipeProducts>d__0::<>1__state
IL_0319: br => Label32
IL_031E: Label34
IL_031E: ldarg.0
IL_031F: ldfld System.Collections.Generic.IEnumerator`1<Verse.Thing>
Verse.<MakeRecipeProducts>d__0::<>7__wrap4
IL_0324: callvirt abstract virtual Verse.Thing
System.Collections.Generic.IEnumerator`1<Verse.Thing>::get_Current()
IL_0329: stloc.s 13 (Verse.Thing)
IL_032B: ldarg.0
IL_032C: ldloc.s 13 (Verse.Thing)
IL_032E: ldarg.0
IL_032F: ldfld Verse.RecipeDef Verse.<MakeRecipeProducts>d__0::recipeDef
IL_0334: ldarg.0
IL_0335: ldfld Verse.Pawn Verse.<MakeRecipeProducts>d__0::worker
IL_033A: ldarg.0
IL_033B: ldfld RimWorld.Precept_ThingStyle
Verse.<MakeRecipeProducts>d__0::precept
IL_0340: ldarg.0
IL_0341: ldfld Verse.ThingStyleDef Verse.<MakeRecipeProducts>d__0::style
IL_0346: ldarg.0
IL_0347: ldfld System.Nullable`1<System.Int32>
Verse.<MakeRecipeProducts>d__0::overrideGraphicIndex
IL_034C: call static Verse.Thing
Verse.GenRecipe::PostProcessProduct(Verse.Thing product, Verse.RecipeDef recipeDef,
Verse.Pawn worker, RimWorld.Precept_ThingStyle precept, Verse.ThingStyleDef style,
System.Nullable`1<System.Int32> overrideGraphicIndex)
IL_0351: stfld Verse.Thing Verse.<MakeRecipeProducts>d__0::<>2__current
IL_0356: ldarg.0
IL_0357: ldc.i4.2
IL_0358: stfld System.Int32 Verse.<MakeRecipeProducts>d__0::<>1__state
IL_035D: ldc.i4.1
IL_035E: stloc.0
IL_035F: leave => Label33
IL_0364: Label2
IL_0364: ldarg.0
IL_0365: ldc.i4.s -3
IL_0367: stfld System.Int32 Verse.<MakeRecipeProducts>d__0::<>1__state
IL_036C: Label32
IL_036C: ldarg.0
IL_036D: ldfld System.Collections.Generic.IEnumerator`1<Verse.Thing>
Verse.<MakeRecipeProducts>d__0::<>7__wrap4
IL_0372: callvirt abstract virtual System.Boolean
System.Collections.IEnumerator::MoveNext()
IL_0377: brtrue => Label34
IL_037C: ldarg.0
IL_037D: call System.Void
Verse.<MakeRecipeProducts>d__0::<>m__Finally1()
IL_0382: ldarg.0
IL_0383: ldnull
IL_0384: stfld System.Collections.Generic.IEnumerator`1<Verse.Thing>
Verse.<MakeRecipeProducts>d__0::<>7__wrap4
IL_0389: br => Label35
IL_038E: Label30
IL_038E: ldarg.0
IL_038F: ldloc.s 11 (Verse.Thing)
IL_0391: ldarg.0
IL_0392: ldfld System.Single
Verse.<MakeRecipeProducts>d__0::<efficiency>5__2
IL_0397: callvirt virtual
System.Collections.Generic.IEnumerable`1<Verse.Thing>
Verse.Thing::SmeltProducts(System.Single efficiency)
IL_039C: callvirt abstract virtual
System.Collections.Generic.IEnumerator`1<Verse.Thing>
System.Collections.Generic.IEnumerable`1<Verse.Thing>::GetEnumerator()
IL_03A1: stfld System.Collections.Generic.IEnumerator`1<Verse.Thing>
Verse.<MakeRecipeProducts>d__0::<>7__wrap4
IL_03A6: ldarg.0
IL_03A7: ldc.i4.s -4
IL_03A9: stfld System.Int32 Verse.<MakeRecipeProducts>d__0::<>1__state
IL_03AE: br => Label36
IL_03B3: Label38
IL_03B3: ldarg.0
IL_03B4: ldfld System.Collections.Generic.IEnumerator`1<Verse.Thing>
Verse.<MakeRecipeProducts>d__0::<>7__wrap4
IL_03B9: callvirt abstract virtual Verse.Thing
System.Collections.Generic.IEnumerator`1<Verse.Thing>::get_Current()
IL_03BE: stloc.s 14 (Verse.Thing)
IL_03C0: ldarg.0
IL_03C1: ldloc.s 14 (Verse.Thing)
IL_03C3: ldarg.0
IL_03C4: ldfld Verse.RecipeDef Verse.<MakeRecipeProducts>d__0::recipeDef
IL_03C9: ldarg.0
IL_03CA: ldfld Verse.Pawn Verse.<MakeRecipeProducts>d__0::worker
IL_03CF: ldarg.0
IL_03D0: ldfld RimWorld.Precept_ThingStyle
Verse.<MakeRecipeProducts>d__0::precept
IL_03D5: ldarg.0
IL_03D6: ldfld Verse.ThingStyleDef Verse.<MakeRecipeProducts>d__0::style
IL_03DB: ldarg.0
IL_03DC: ldfld System.Nullable`1<System.Int32>
Verse.<MakeRecipeProducts>d__0::overrideGraphicIndex
IL_03E1: call static Verse.Thing
Verse.GenRecipe::PostProcessProduct(Verse.Thing product, Verse.RecipeDef recipeDef,
Verse.Pawn worker, RimWorld.Precept_ThingStyle precept, Verse.ThingStyleDef style,
System.Nullable`1<System.Int32> overrideGraphicIndex)
IL_03E6: stfld Verse.Thing Verse.<MakeRecipeProducts>d__0::<>2__current
IL_03EB: ldarg.0
IL_03EC: ldc.i4.3
IL_03ED: stfld System.Int32 Verse.<MakeRecipeProducts>d__0::<>1__state
IL_03F2: ldc.i4.1
IL_03F3: stloc.0
IL_03F4: leave => Label37
IL_03F9: Label3
IL_03F9: ldarg.0
IL_03FA: ldc.i4.s -4
IL_03FC: stfld System.Int32 Verse.<MakeRecipeProducts>d__0::<>1__state
IL_0401: Label36
IL_0401: ldarg.0
IL_0402: ldfld System.Collections.Generic.IEnumerator`1<Verse.Thing>
Verse.<MakeRecipeProducts>d__0::<>7__wrap4
IL_0407: callvirt abstract virtual System.Boolean
System.Collections.IEnumerator::MoveNext()
IL_040C: brtrue => Label38
IL_0411: ldarg.0
IL_0412: call System.Void
Verse.<MakeRecipeProducts>d__0::<>m__Finally2()
IL_0417: ldarg.0
IL_0418: ldnull
IL_0419: stfld System.Collections.Generic.IEnumerator`1<Verse.Thing>
Verse.<MakeRecipeProducts>d__0::<>7__wrap4
IL_041E: Label31
IL_041E: Label35
IL_041E: ldarg.0
IL_041F: ldfld System.Int32 Verse.<MakeRecipeProducts>d__0::<j>5__4
IL_0424: stloc.s 10 (System.Int32)
IL_0426: ldarg.0
IL_0427: ldloc.s 10 (System.Int32)
IL_0429: ldc.i4.1
IL_042A: add
IL_042B: stfld System.Int32 Verse.<MakeRecipeProducts>d__0::<j>5__4
IL_0430: Label28
IL_0430: ldarg.0
IL_0431: ldfld System.Int32 Verse.<MakeRecipeProducts>d__0::<j>5__4
IL_0436: ldarg.0
IL_0437: ldfld System.Collections.Generic.List`1<Verse.Thing>
Verse.<MakeRecipeProducts>d__0::ingredients
IL_043C: callvirt virtual System.Int32
System.Collections.Generic.List`1<Verse.Thing>::get_Count()
IL_0441: blt => Label39
IL_0446: ldarg.0
IL_0447: ldfld System.Int32 Verse.<MakeRecipeProducts>d__0::<i>5__3
IL_044C: stloc.s 10 (System.Int32)
IL_044E: ldarg.0
IL_044F: ldloc.s 10 (System.Int32)
IL_0451: ldc.i4.1
IL_0452: add
IL_0453: stfld System.Int32 Verse.<MakeRecipeProducts>d__0::<i>5__3
IL_0458: Label27
IL_0458: ldarg.0
IL_0459: ldfld System.Int32 Verse.<MakeRecipeProducts>d__0::<i>5__3
IL_045E: ldarg.0
IL_045F: ldfld Verse.RecipeDef Verse.<MakeRecipeProducts>d__0::recipeDef
IL_0464: ldfld
System.Collections.Generic.List`1<Verse.SpecialProductType>
Verse.RecipeDef::specialProducts
IL_0469: callvirt virtual System.Int32
System.Collections.Generic.List`1<Verse.SpecialProductType>::get_Count()
IL_046E: blt => Label40
IL_0473: Label26
IL_0473: ldc.i4.0
IL_0474: stloc.0
IL_0475: leave => Label41
IL_047A: leave => (autogenerated)
} // end try
.fault
{
IL_047F: ldarg.0
IL_0480: call virtual System.Void
Verse.<MakeRecipeProducts>d__0::System.IDisposable.Dispose()
IL_0485: endfinally
IL_0486: leave => (autogenerated)
} // end handler
IL_048B: Label4
IL_048B: Label24
IL_048B: Label33
IL_048B: Label37
IL_048B: Label41
IL_048B: ldloc.0
IL_048C: // end original
IL_048C: ret
DONE

### Harmony id=Uuugggg.rimworld.TD_Enhancement_Pack.main, version=2.2.2.0,


location=C:\Program Files (x86)\Steam\steamapps\common\data-000002130553D010,
env/clr=4.0.30319.42000, platform=Win32NT, ptrsize:runtime/env=8/Bits64, Windows
### Started from static System.Void
TD_Enhancement_Pack.DoNotHarvest_Building::.cctor(), location C:\Program Files
(x86)\Steam\steamapps\common\data-000002130985E570
### At 2023-02-17 06.57.40
### Patch: virtual System.Boolean
RimWorld.<PotentialWorkCellsGlobal>d__4::MoveNext()
### Replacement: static System.Boolean
RimWorld.WorkGiver_Grower+<PotentialWorkCellsGlobal>d__4::RimWorld.WorkGiver_Grower
+<PotentialWorkCellsGlobal>d__4.MoveNext_Patch0(RimWorld.<PotentialWorkCellsGlobal>
d__4 this)
IL_0000: Local var 0: System.Boolean
IL_0000: Local var 1: System.Int32
IL_0000: Local var 2: RimWorld.WorkGiver_Grower
IL_0000: Local var 3: RimWorld.Building_PlantGrower
IL_0000: Local var 4: Verse.CellRect
IL_0000: Local var 5: Verse.IntVec3
IL_0000: Local var 6: System.Int32
IL_0000: // start original
.try
{
IL_0000: ldarg.0
IL_0001: ldfld System.Int32
RimWorld.<PotentialWorkCellsGlobal>d__4::<>1__state
IL_0006: stloc.1
IL_0007: ldarg.0
IL_0008: ldfld RimWorld.WorkGiver_Grower
RimWorld.<PotentialWorkCellsGlobal>d__4::<>4__this
IL_000D: stloc.2
IL_000E: ldloc.1
IL_000F: switch => Labels0,1,2
IL_0020: ldc.i4.0
IL_0021: stloc.0
IL_0022: leave => Label3
IL_0027: Label0
IL_0027: ldarg.0
IL_0028: ldc.i4.m1
IL_0029: stfld System.Int32
RimWorld.<PotentialWorkCellsGlobal>d__4::<>1__state
IL_002E: ldarg.0
IL_002F: ldarg.0
IL_0030: ldfld Verse.Pawn RimWorld.<PotentialWorkCellsGlobal>d__4::pawn
IL_0035: call static Verse.Danger
Verse.DangerUtility::NormalMaxDanger(Verse.Pawn p)
IL_003A: stfld Verse.Danger
RimWorld.<PotentialWorkCellsGlobal>d__4::<maxDanger>5__2
IL_003F: ldarg.0
IL_0040: ldarg.0
IL_0041: ldfld Verse.Pawn RimWorld.<PotentialWorkCellsGlobal>d__4::pawn
IL_0046: callvirt virtual Verse.Map Verse.Thing::get_Map()
IL_004B: ldfld Verse.ListerBuildings Verse.Map::listerBuildings
IL_0050: ldfld System.Collections.Generic.List`1<Verse.Building>
Verse.ListerBuildings::allBuildingsColonist
IL_0055: stfld System.Collections.Generic.List`1<Verse.Building>
RimWorld.<PotentialWorkCellsGlobal>d__4::<bList>5__3
IL_005A: ldarg.0
IL_005B: ldc.i4.0
IL_005C: stfld System.Int32
RimWorld.<PotentialWorkCellsGlobal>d__4::<i>5__5
IL_0061: br => Label4
IL_0066: Label13
IL_0066: ldarg.0
IL_0067: ldfld System.Collections.Generic.List`1<Verse.Building>
RimWorld.<PotentialWorkCellsGlobal>d__4::<bList>5__3
IL_006C: ldarg.0
IL_006D: ldfld System.Int32
RimWorld.<PotentialWorkCellsGlobal>d__4::<i>5__5
IL_0072: callvirt virtual Verse.Building
System.Collections.Generic.List`1<Verse.Building>::get_Item(System.Int32 index)
IL_0077: isinst RimWorld.Building_PlantGrower
IL_007C: stloc.3
IL_007D: ldloc.3
IL_007E: brfalse => Label5
IL_0083: ldloc.2
IL_0084: ldloc.3
IL_0085: ldarg.0
IL_0086: ldfld Verse.Pawn RimWorld.<PotentialWorkCellsGlobal>d__4::pawn
IL_008B: callvirt virtual System.Boolean
RimWorld.WorkGiver_Grower::ExtraRequirements(RimWorld.IPlantToGrowSettable
settable, Verse.Pawn pawn)
IL_0090: brfalse => Label6
IL_0095: ldloc.3
IL_0096: ldarg.0
IL_0097: ldfld Verse.Pawn RimWorld.<PotentialWorkCellsGlobal>d__4::pawn
IL_009C: ldarg.0
IL_009D: ldfld RimWorld.WorkGiver_Grower
RimWorld.<PotentialWorkCellsGlobal>d__4::<>4__this
IL_00A2: call static System.Boolean
TD_Enhancement_Pack.DoNotHarvest_Building::IsForbiddenByType(Verse.Thing thing,
Verse.Pawn pawn, RimWorld.WorkGiver_Grower workGiver)
IL_00A7: brtrue => Label7
IL_00AC: ldarg.0
IL_00AD: ldfld Verse.Pawn RimWorld.<PotentialWorkCellsGlobal>d__4::pawn
IL_00B2: ldloc.3
IL_00B3: call static Verse.LocalTargetInfo
Verse.LocalTargetInfo::op_Implicit(Verse.Thing t)
IL_00B8: ldc.i4.1
IL_00B9: ldarg.0
IL_00BA: ldfld Verse.Danger
RimWorld.<PotentialWorkCellsGlobal>d__4::<maxDanger>5__2
IL_00BF: ldc.i4.0
IL_00C0: ldc.i4.0
IL_00C1: ldc.i4.0
IL_00C2: call static System.Boolean
Verse.ReachabilityUtility::CanReach(Verse.Pawn pawn, Verse.LocalTargetInfo dest,
Verse.AI.PathEndMode peMode, Verse.Danger maxDanger, System.Boolean canBashDoors,
System.Boolean canBashFences, Verse.TraverseMode mode)
IL_00C7: brfalse => Label8
IL_00CC: ldloc.3
IL_00CD: call static System.Boolean
RimWorld.FireUtility::IsBurning(Verse.Thing t)
IL_00D2: brtrue => Label9
IL_00D7: ldarg.0
IL_00D8: ldloc.3
IL_00D9: call static Verse.CellRect
Verse.GenAdj::OccupiedRect(Verse.Thing t)
IL_00DE: stloc.s 4 (Verse.CellRect)
IL_00E0: ldloca.s 4 (Verse.CellRect)
IL_00E2: call Verse.Enumerator Verse.CellRect::GetEnumerator()
IL_00E7: stfld Verse.Enumerator
RimWorld.<PotentialWorkCellsGlobal>d__4::<>7__wrap5
IL_00EC: ldarg.0
IL_00ED: ldc.i4.s -3
IL_00EF: stfld System.Int32
RimWorld.<PotentialWorkCellsGlobal>d__4::<>1__state
IL_00F4: br => Label10
IL_00F9: Label12
IL_00F9: ldarg.0
IL_00FA: ldflda Verse.Enumerator
RimWorld.<PotentialWorkCellsGlobal>d__4::<>7__wrap5
IL_00FF: call virtual Verse.IntVec3 Verse.Enumerator::get_Current()
IL_0104: stloc.s 5 (Verse.IntVec3)
IL_0106: ldarg.0
IL_0107: ldloc.s 5 (Verse.IntVec3)
IL_0109: stfld Verse.IntVec3
RimWorld.<PotentialWorkCellsGlobal>d__4::<>2__current
IL_010E: ldarg.0
IL_010F: ldc.i4.1
IL_0110: stfld System.Int32
RimWorld.<PotentialWorkCellsGlobal>d__4::<>1__state
IL_0115: ldc.i4.1
IL_0116: stloc.0
IL_0117: leave => Label11
IL_011C: Label1
IL_011C: ldarg.0
IL_011D: ldc.i4.s -3
IL_011F: stfld System.Int32
RimWorld.<PotentialWorkCellsGlobal>d__4::<>1__state
IL_0124: Label10
IL_0124: ldarg.0
IL_0125: ldflda Verse.Enumerator
RimWorld.<PotentialWorkCellsGlobal>d__4::<>7__wrap5
IL_012A: call virtual System.Boolean Verse.Enumerator::MoveNext()
IL_012F: brtrue => Label12
IL_0134: ldarg.0
IL_0135: call System.Void
RimWorld.<PotentialWorkCellsGlobal>d__4::<>m__Finally1()
IL_013A: ldnull
IL_013B: stsfld Verse.ThingDef RimWorld.WorkGiver_Grower::wantedPlantDef
IL_0140: Label5
IL_0140: Label6
IL_0140: Label7
IL_0140: Label8
IL_0140: Label9
IL_0140: ldarg.0
IL_0141: ldfld System.Int32
RimWorld.<PotentialWorkCellsGlobal>d__4::<i>5__5
IL_0146: stloc.s 6 (System.Int32)
IL_0148: ldarg.0
IL_0149: ldloc.s 6 (System.Int32)
IL_014B: ldc.i4.1
IL_014C: add
IL_014D: stfld System.Int32
RimWorld.<PotentialWorkCellsGlobal>d__4::<i>5__5
IL_0152: Label4
IL_0152: ldarg.0
IL_0153: ldfld System.Int32
RimWorld.<PotentialWorkCellsGlobal>d__4::<i>5__5
IL_0158: ldarg.0
IL_0159: ldfld System.Collections.Generic.List`1<Verse.Building>
RimWorld.<PotentialWorkCellsGlobal>d__4::<bList>5__3
IL_015E: callvirt virtual System.Int32
System.Collections.Generic.List`1<Verse.Building>::get_Count()
IL_0163: blt => Label13
IL_0168: ldnull
IL_0169: stsfld Verse.ThingDef RimWorld.WorkGiver_Grower::wantedPlantDef
IL_016E: ldarg.0
IL_016F: ldarg.0
IL_0170: ldfld Verse.Pawn RimWorld.<PotentialWorkCellsGlobal>d__4::pawn
IL_0175: callvirt virtual Verse.Map Verse.Thing::get_Map()
IL_017A: ldfld Verse.ZoneManager Verse.Map::zoneManager
IL_017F: callvirt System.Collections.Generic.List`1<Verse.Zone>
Verse.ZoneManager::get_AllZones()
IL_0184: stfld System.Collections.Generic.List`1<Verse.Zone>
RimWorld.<PotentialWorkCellsGlobal>d__4::<zonesList>5__4
IL_0189: ldarg.0
IL_018A: ldc.i4.0
IL_018B: stfld System.Int32
RimWorld.<PotentialWorkCellsGlobal>d__4::<i>5__5
IL_0190: br => Label14
IL_0195: Label24
IL_0195: ldarg.0
IL_0196: ldarg.0
IL_0197: ldfld System.Collections.Generic.List`1<Verse.Zone>
RimWorld.<PotentialWorkCellsGlobal>d__4::<zonesList>5__4
IL_019C: ldarg.0
IL_019D: ldfld System.Int32
RimWorld.<PotentialWorkCellsGlobal>d__4::<i>5__5
IL_01A2: callvirt virtual Verse.Zone
System.Collections.Generic.List`1<Verse.Zone>::get_Item(System.Int32 index)
IL_01A7: isinst RimWorld.Zone_Growing
IL_01AC: stfld RimWorld.Zone_Growing
RimWorld.<PotentialWorkCellsGlobal>d__4::<growZone>5__7
IL_01B1: ldarg.0
IL_01B2: ldfld RimWorld.Zone_Growing
RimWorld.<PotentialWorkCellsGlobal>d__4::<growZone>5__7
IL_01B7: brfalse => Label15
IL_01BC: ldarg.0
IL_01BD: ldfld RimWorld.Zone_Growing
RimWorld.<PotentialWorkCellsGlobal>d__4::<growZone>5__7
IL_01C2: ldfld System.Collections.Generic.List`1<Verse.IntVec3>
Verse.Zone::cells
IL_01C7: callvirt virtual System.Int32
System.Collections.Generic.List`1<Verse.IntVec3>::get_Count()
IL_01CC: brtrue => Label16
IL_01D1: ldstr "Grow zone has 0 cells: "
IL_01D6: ldarg.0
IL_01D7: ldfld RimWorld.Zone_Growing
RimWorld.<PotentialWorkCellsGlobal>d__4::<growZone>5__7
IL_01DC: call static System.String System.String::Concat(System.Object
arg0, System.Object arg1)
IL_01E1: ldc.i4 -563487
IL_01E6: call static System.Void Verse.Log::ErrorOnce(System.String
text, System.Int32 key)
IL_01EB: br => Label17
IL_01F0: Label16
IL_01F0: ldloc.2
IL_01F1: ldarg.0
IL_01F2: ldfld RimWorld.Zone_Growing
RimWorld.<PotentialWorkCellsGlobal>d__4::<growZone>5__7
IL_01F7: ldarg.0
IL_01F8: ldfld Verse.Pawn RimWorld.<PotentialWorkCellsGlobal>d__4::pawn
IL_01FD: callvirt virtual System.Boolean
RimWorld.WorkGiver_Grower::ExtraRequirements(RimWorld.IPlantToGrowSettable
settable, Verse.Pawn pawn)
IL_0202: brfalse => Label18
IL_0207: ldarg.0
IL_0208: ldfld RimWorld.Zone_Growing
RimWorld.<PotentialWorkCellsGlobal>d__4::<growZone>5__7
IL_020D: callvirt System.Boolean Verse.Zone::get_ContainsStaticFire()
IL_0212: brtrue => Label19
IL_0217: ldarg.0
IL_0218: ldfld Verse.Pawn RimWorld.<PotentialWorkCellsGlobal>d__4::pawn
IL_021D: ldarg.0
IL_021E: ldfld RimWorld.Zone_Growing
RimWorld.<PotentialWorkCellsGlobal>d__4::<growZone>5__7
IL_0223: callvirt System.Collections.Generic.List`1<Verse.IntVec3>
Verse.Zone::get_Cells()
IL_0228: ldc.i4.0
IL_0229: callvirt virtual Verse.IntVec3
System.Collections.Generic.List`1<Verse.IntVec3>::get_Item(System.Int32 index)
IL_022E: call static Verse.LocalTargetInfo
Verse.LocalTargetInfo::op_Implicit(Verse.IntVec3 c)
IL_0233: ldc.i4.1
IL_0234: ldarg.0
IL_0235: ldfld Verse.Danger
RimWorld.<PotentialWorkCellsGlobal>d__4::<maxDanger>5__2
IL_023A: ldc.i4.0
IL_023B: ldc.i4.0
IL_023C: ldc.i4.0
IL_023D: call static System.Boolean
Verse.ReachabilityUtility::CanReach(Verse.Pawn pawn, Verse.LocalTargetInfo dest,
Verse.AI.PathEndMode peMode, Verse.Danger maxDanger, System.Boolean canBashDoors,
System.Boolean canBashFences, Verse.TraverseMode mode)
IL_0242: brfalse => Label20
IL_0247: ldarg.0
IL_0248: ldc.i4.0
IL_0249: stfld System.Int32
RimWorld.<PotentialWorkCellsGlobal>d__4::<j>5__8
IL_024E: br => Label21
IL_0253: Label23
IL_0253: ldarg.0
IL_0254: ldarg.0
IL_0255: ldfld RimWorld.Zone_Growing
RimWorld.<PotentialWorkCellsGlobal>d__4::<growZone>5__7
IL_025A: ldfld System.Collections.Generic.List`1<Verse.IntVec3>
Verse.Zone::cells
IL_025F: ldarg.0
IL_0260: ldfld System.Int32
RimWorld.<PotentialWorkCellsGlobal>d__4::<j>5__8
IL_0265: callvirt virtual Verse.IntVec3
System.Collections.Generic.List`1<Verse.IntVec3>::get_Item(System.Int32 index)
IL_026A: stfld Verse.IntVec3
RimWorld.<PotentialWorkCellsGlobal>d__4::<>2__current
IL_026F: ldarg.0
IL_0270: ldc.i4.2
IL_0271: stfld System.Int32
RimWorld.<PotentialWorkCellsGlobal>d__4::<>1__state
IL_0276: ldc.i4.1
IL_0277: stloc.0
IL_0278: leave => Label22
IL_027D: Label2
IL_027D: ldarg.0
IL_027E: ldc.i4.m1
IL_027F: stfld System.Int32
RimWorld.<PotentialWorkCellsGlobal>d__4::<>1__state
IL_0284: ldarg.0
IL_0285: ldfld System.Int32
RimWorld.<PotentialWorkCellsGlobal>d__4::<j>5__8
IL_028A: stloc.s 6 (System.Int32)
IL_028C: ldarg.0
IL_028D: ldloc.s 6 (System.Int32)
IL_028F: ldc.i4.1
IL_0290: add
IL_0291: stfld System.Int32
RimWorld.<PotentialWorkCellsGlobal>d__4::<j>5__8
IL_0296: Label21
IL_0296: ldarg.0
IL_0297: ldfld System.Int32
RimWorld.<PotentialWorkCellsGlobal>d__4::<j>5__8
IL_029C: ldarg.0
IL_029D: ldfld RimWorld.Zone_Growing
RimWorld.<PotentialWorkCellsGlobal>d__4::<growZone>5__7
IL_02A2: ldfld System.Collections.Generic.List`1<Verse.IntVec3>
Verse.Zone::cells
IL_02A7: callvirt virtual System.Int32
System.Collections.Generic.List`1<Verse.IntVec3>::get_Count()
IL_02AC: blt => Label23
IL_02B1: ldnull
IL_02B2: stsfld Verse.ThingDef RimWorld.WorkGiver_Grower::wantedPlantDef
IL_02B7: ldarg.0
IL_02B8: ldnull
IL_02B9: stfld RimWorld.Zone_Growing
RimWorld.<PotentialWorkCellsGlobal>d__4::<growZone>5__7
IL_02BE: Label15
IL_02BE: Label17
IL_02BE: Label18
IL_02BE: Label19
IL_02BE: Label20
IL_02BE: ldarg.0
IL_02BF: ldfld System.Int32
RimWorld.<PotentialWorkCellsGlobal>d__4::<i>5__5
IL_02C4: stloc.s 6 (System.Int32)
IL_02C6: ldarg.0
IL_02C7: ldloc.s 6 (System.Int32)
IL_02C9: ldc.i4.1
IL_02CA: add
IL_02CB: stfld System.Int32
RimWorld.<PotentialWorkCellsGlobal>d__4::<i>5__5
IL_02D0: Label14
IL_02D0: ldarg.0
IL_02D1: ldfld System.Int32
RimWorld.<PotentialWorkCellsGlobal>d__4::<i>5__5
IL_02D6: ldarg.0
IL_02D7: ldfld System.Collections.Generic.List`1<Verse.Zone>
RimWorld.<PotentialWorkCellsGlobal>d__4::<zonesList>5__4
IL_02DC: callvirt virtual System.Int32
System.Collections.Generic.List`1<Verse.Zone>::get_Count()
IL_02E1: blt => Label24
IL_02E6: ldnull
IL_02E7: stsfld Verse.ThingDef RimWorld.WorkGiver_Grower::wantedPlantDef
IL_02EC: ldc.i4.0
IL_02ED: stloc.0
IL_02EE: leave => Label25
IL_02F3: leave => (autogenerated)
} // end try
.fault
{
IL_02F8: ldarg.0
IL_02F9: call virtual System.Void
RimWorld.<PotentialWorkCellsGlobal>d__4::System.IDisposable.Dispose()
IL_02FE: endfinally
IL_02FF: leave => (autogenerated)
} // end handler
IL_0304: Label3
IL_0304: Label11
IL_0304: Label22
IL_0304: Label25
IL_0304: ldloc.0
IL_0305: // end original
IL_0305: ret
DONE

### Harmony id=joseasoler.TradingOptions, version=2.2.2.0, location=C:\Program


Files (x86)\Steam\steamapps\common\data-000002130553D010, env/clr=4.0.30319.42000,
platform=Win32NT, ptrsize:runtime/env=8/Bits64, Windows
### Started from static System.Void TO.Harmony.HarmonyInitialization::.cctor(),
location C:\Program Files (x86)\Steam\steamapps\common\data-0000021309899DA0
### At 2023-02-17 06.57.40
### Patch: virtual Verse.AI.Group.StateGraph
RimWorld.LordJob_TradeWithColony::CreateGraph()
### Replacement: static Verse.AI.Group.StateGraph
RimWorld.LordJob_TradeWithColony::RimWorld.LordJob_TradeWithColony.CreateGraph_Patc
h0(RimWorld.LordJob_TradeWithColony this)
IL_0000: Local var 0: Verse.AI.Group.StateGraph
IL_0000: Local var 1: Verse.AI.Group.LordToil_Travel
IL_0000: Local var 2: RimWorld.LordToil_DefendTraderCaravan
IL_0000: Local var 3: RimWorld.LordToil_DefendTraderCaravan
IL_0000: Local var 4: RimWorld.LordToil_ExitMapAndEscortCarriers
IL_0000: Local var 5: Verse.AI.Group.LordToil_ExitMap
IL_0000: Local var 6: Verse.AI.Group.LordToil_ExitMap
IL_0000: Local var 7: Verse.AI.Group.LordToil_ExitMapTraderFighting
IL_0000: Local var 8: Verse.AI.Group.Transition
IL_0000: Local var 9: Verse.AI.Group.Transition
IL_0000: Local var 10: Verse.AI.Group.Transition
IL_0000: Local var 11: Verse.AI.Group.Transition
IL_0000: Local var 12: Verse.AI.Group.Transition
IL_0000: Local var 13: Verse.AI.Group.Transition
IL_0000: Local var 14: Verse.AI.Group.Transition
IL_0000: Local var 15: Verse.AI.Group.Transition
IL_0000: Local var 16: Verse.AI.Group.Transition
IL_0000: Local var 17: Verse.AI.Group.Transition
IL_0000: Local var 18: Verse.AI.Group.Transition
IL_0000: // start original
IL_0000: newobj System.Void Verse.AI.Group.StateGraph::.ctor()
IL_0005: stloc.0
IL_0006: ldarg.0
IL_0007: ldfld Verse.IntVec3 RimWorld.LordJob_TradeWithColony::chillSpot
IL_000C: newobj System.Void Verse.AI.Group.LordToil_Travel::.ctor(Verse.IntVec3
dest)
IL_0011: stloc.1
IL_0012: ldloc.0
IL_0013: ldloc.1
IL_0014: callvirt System.Void
Verse.AI.Group.StateGraph::set_StartingToil(Verse.AI.Group.LordToil value)
IL_0019: newobj System.Void RimWorld.LordToil_DefendTraderCaravan::.ctor()
IL_001E: stloc.2
IL_001F: ldloc.0
IL_0020: ldloc.2
IL_0021: callvirt System.Void
Verse.AI.Group.StateGraph::AddToil(Verse.AI.Group.LordToil toil)
IL_0026: ldarg.0
IL_0027: ldfld Verse.IntVec3 RimWorld.LordJob_TradeWithColony::chillSpot
IL_002C: newobj System.Void
RimWorld.LordToil_DefendTraderCaravan::.ctor(Verse.IntVec3 defendPoint)
IL_0031: stloc.3
IL_0032: ldloc.0
IL_0033: ldloc.3
IL_0034: callvirt System.Void
Verse.AI.Group.StateGraph::AddToil(Verse.AI.Group.LordToil toil)
IL_0039: newobj System.Void RimWorld.LordToil_ExitMapAndEscortCarriers::.ctor()
IL_003E: stloc.s 4 (RimWorld.LordToil_ExitMapAndEscortCarriers)
IL_0040: ldloc.0
IL_0041: ldloc.s 4 (RimWorld.LordToil_ExitMapAndEscortCarriers)
IL_0043: callvirt System.Void
Verse.AI.Group.StateGraph::AddToil(Verse.AI.Group.LordToil toil)
IL_0048: ldc.i4.0
IL_0049: ldc.i4.0
IL_004A: ldc.i4.0
IL_004B: newobj System.Void
Verse.AI.Group.LordToil_ExitMap::.ctor(Verse.AI.LocomotionUrgency locomotion,
System.Boolean canDig, System.Boolean interruptCurrentJob)
IL_0050: stloc.s 5 (Verse.AI.Group.LordToil_ExitMap)
IL_0052: ldloc.0
IL_0053: ldloc.s 5 (Verse.AI.Group.LordToil_ExitMap)
IL_0055: callvirt System.Void
Verse.AI.Group.StateGraph::AddToil(Verse.AI.Group.LordToil toil)
IL_005A: ldc.i4.2
IL_005B: ldc.i4.1
IL_005C: ldc.i4.0
IL_005D: newobj System.Void
Verse.AI.Group.LordToil_ExitMap::.ctor(Verse.AI.LocomotionUrgency locomotion,
System.Boolean canDig, System.Boolean interruptCurrentJob)
IL_0062: stloc.s 6 (Verse.AI.Group.LordToil_ExitMap)
IL_0064: ldloc.0
IL_0065: ldloc.s 6 (Verse.AI.Group.LordToil_ExitMap)
IL_0067: callvirt System.Void
Verse.AI.Group.StateGraph::AddToil(Verse.AI.Group.LordToil toil)
IL_006C: newobj System.Void
Verse.AI.Group.LordToil_ExitMapTraderFighting::.ctor()
IL_0071: stloc.s 7 (Verse.AI.Group.LordToil_ExitMapTraderFighting)
IL_0073: ldloc.0
IL_0074: ldloc.s 7 (Verse.AI.Group.LordToil_ExitMapTraderFighting)
IL_0076: callvirt System.Void
Verse.AI.Group.StateGraph::AddToil(Verse.AI.Group.LordToil toil)
IL_007B: ldloc.1
IL_007C: ldloc.s 4 (RimWorld.LordToil_ExitMapAndEscortCarriers)
IL_007E: ldc.i4.0
IL_007F: ldc.i4.1
IL_0080: newobj System.Void
Verse.AI.Group.Transition::.ctor(Verse.AI.Group.LordToil firstSource,
Verse.AI.Group.LordToil target, System.Boolean canMoveToSameState, System.Boolean
updateDutiesIfMovedToSameState)
IL_0085: stloc.s 8 (Verse.AI.Group.Transition)
IL_0087: ldloc.s 8 (Verse.AI.Group.Transition)
IL_0089: ldc.i4.2
IL_008A: newarr Verse.AI.Group.LordToil
IL_008F: dup
IL_0090: ldc.i4.0
IL_0091: ldloc.2
IL_0092: stelem.ref
IL_0093: dup
IL_0094: ldc.i4.1
IL_0095: ldloc.3
IL_0096: stelem.ref
IL_0097: callvirt System.Void
Verse.AI.Group.Transition::AddSources(Verse.AI.Group.LordToil[] sources)
IL_009C: ldloc.s 8 (Verse.AI.Group.Transition)
IL_009E: ldstr "MessageVisitorsDangerousTemperature"
IL_00A3: ldarg.0
IL_00A4: ldfld RimWorld.Faction RimWorld.LordJob_TradeWithColony::faction
IL_00A9: ldfld RimWorld.FactionDef RimWorld.Faction::def
IL_00AE: ldfld System.String RimWorld.FactionDef::pawnsPlural
IL_00B3: call static System.String
Verse.GenText::CapitalizeFirst(System.String str)
IL_00B8: call static Verse.NamedArgument
Verse.NamedArgument::op_Implicit(System.String value)
IL_00BD: ldarg.0
IL_00BE: ldfld RimWorld.Faction RimWorld.LordJob_TradeWithColony::faction
IL_00C3: callvirt System.String RimWorld.Faction::get_Name()
IL_00C8: call static Verse.NamedArgument
Verse.NamedArgument::op_Implicit(System.String value)
IL_00CD: call static Verse.TaggedString
Verse.TranslatorFormattedStringExtensions::Translate(System.String key,
Verse.NamedArgument arg1, Verse.NamedArgument arg2)
IL_00D2: call static System.String
Verse.TaggedString::op_Implicit(Verse.TaggedString taggedString)
IL_00D7: ldnull
IL_00D8: ldc.r4 1
IL_00DD: newobj System.Void
Verse.AI.Group.TransitionAction_Message::.ctor(System.String message, System.String
repeatAvoiderTag, System.Single repeatAvoiderSeconds)
IL_00E2: callvirt System.Void
Verse.AI.Group.Transition::AddPreAction(Verse.AI.Group.TransitionAction action)
IL_00E7: ldloc.s 8 (Verse.AI.Group.Transition)
IL_00E9: newobj System.Void Verse.AI.Group.TransitionAction_EndAllJobs::.ctor()
IL_00EE: callvirt System.Void
Verse.AI.Group.Transition::AddPostAction(Verse.AI.Group.TransitionAction action)
IL_00F3: ldloc.s 8 (Verse.AI.Group.Transition)
IL_00F5: newobj System.Void
Verse.AI.Group.Trigger_PawnExperiencingDangerousTemperatures::.ctor()
IL_00FA: callvirt System.Void
Verse.AI.Group.Transition::AddTrigger(Verse.AI.Group.Trigger trigger)
IL_00FF: ldloc.0
IL_0100: ldloc.s 8 (Verse.AI.Group.Transition)
IL_0102: ldc.i4.0
IL_0103: callvirt System.Void
Verse.AI.Group.StateGraph::AddTransition(Verse.AI.Group.Transition transition,
System.Boolean highPriority)
IL_0108: ldloc.1
IL_0109: ldloc.s 6 (Verse.AI.Group.LordToil_ExitMap)
IL_010B: ldc.i4.0
IL_010C: ldc.i4.1
IL_010D: newobj System.Void
Verse.AI.Group.Transition::.ctor(Verse.AI.Group.LordToil firstSource,
Verse.AI.Group.LordToil target, System.Boolean canMoveToSameState, System.Boolean
updateDutiesIfMovedToSameState)
IL_0112: stloc.s 9 (Verse.AI.Group.Transition)
IL_0114: ldloc.s 9 (Verse.AI.Group.Transition)
IL_0116: ldc.i4.5
IL_0117: newarr Verse.AI.Group.LordToil
IL_011C: dup
IL_011D: ldc.i4.0
IL_011E: ldloc.2
IL_011F: stelem.ref
IL_0120: dup
IL_0121: ldc.i4.1
IL_0122: ldloc.3
IL_0123: stelem.ref
IL_0124: dup
IL_0125: ldc.i4.2
IL_0126: ldloc.s 4 (RimWorld.LordToil_ExitMapAndEscortCarriers)
IL_0128: stelem.ref
IL_0129: dup
IL_012A: ldc.i4.3
IL_012B: ldloc.s 5 (Verse.AI.Group.LordToil_ExitMap)
IL_012D: stelem.ref
IL_012E: dup
IL_012F: ldc.i4.4
IL_0130: ldloc.s 7 (Verse.AI.Group.LordToil_ExitMapTraderFighting)
IL_0132: stelem.ref
IL_0133: callvirt System.Void
Verse.AI.Group.Transition::AddSources(Verse.AI.Group.LordToil[] sources)
IL_0138: ldloc.s 9 (Verse.AI.Group.Transition)
IL_013A: newobj System.Void
Verse.AI.Group.Trigger_PawnCannotReachMapEdge::.ctor()
IL_013F: callvirt System.Void
Verse.AI.Group.Transition::AddTrigger(Verse.AI.Group.Trigger trigger)
IL_0144: ldloc.s 9 (Verse.AI.Group.Transition)
IL_0146: ldstr "MessageVisitorsTrappedLeaving"
IL_014B: ldarg.0
IL_014C: ldfld RimWorld.Faction RimWorld.LordJob_TradeWithColony::faction
IL_0151: ldfld RimWorld.FactionDef RimWorld.Faction::def
IL_0156: ldfld System.String RimWorld.FactionDef::pawnsPlural
IL_015B: call static System.String
Verse.GenText::CapitalizeFirst(System.String str)
IL_0160: call static Verse.NamedArgument
Verse.NamedArgument::op_Implicit(System.String value)
IL_0165: ldarg.0
IL_0166: ldfld RimWorld.Faction RimWorld.LordJob_TradeWithColony::faction
IL_016B: callvirt System.String RimWorld.Faction::get_Name()
IL_0170: call static Verse.NamedArgument
Verse.NamedArgument::op_Implicit(System.String value)
IL_0175: call static Verse.TaggedString
Verse.TranslatorFormattedStringExtensions::Translate(System.String key,
Verse.NamedArgument arg1, Verse.NamedArgument arg2)
IL_017A: call static System.String
Verse.TaggedString::op_Implicit(Verse.TaggedString taggedString)
IL_017F: ldnull
IL_0180: ldc.r4 1
IL_0185: newobj System.Void
Verse.AI.Group.TransitionAction_Message::.ctor(System.String message, System.String
repeatAvoiderTag, System.Single repeatAvoiderSeconds)
IL_018A: callvirt System.Void
Verse.AI.Group.Transition::AddPostAction(Verse.AI.Group.TransitionAction action)
IL_018F: ldloc.s 9 (Verse.AI.Group.Transition)
IL_0191: newobj System.Void Verse.AI.Group.TransitionAction_WakeAll::.ctor()
IL_0196: callvirt System.Void
Verse.AI.Group.Transition::AddPostAction(Verse.AI.Group.TransitionAction action)
IL_019B: ldloc.s 9 (Verse.AI.Group.Transition)
IL_019D: newobj System.Void Verse.AI.Group.TransitionAction_EndAllJobs::.ctor()
IL_01A2: callvirt System.Void
Verse.AI.Group.Transition::AddPostAction(Verse.AI.Group.TransitionAction action)
IL_01A7: ldloc.0
IL_01A8: ldloc.s 9 (Verse.AI.Group.Transition)
IL_01AA: ldc.i4.0
IL_01AB: callvirt System.Void
Verse.AI.Group.StateGraph::AddTransition(Verse.AI.Group.Transition transition,
System.Boolean highPriority)
IL_01B0: ldloc.s 6 (Verse.AI.Group.LordToil_ExitMap)
IL_01B2: ldloc.s 7 (Verse.AI.Group.LordToil_ExitMapTraderFighting)
IL_01B4: ldc.i4.0
IL_01B5: ldc.i4.1
IL_01B6: newobj System.Void
Verse.AI.Group.Transition::.ctor(Verse.AI.Group.LordToil firstSource,
Verse.AI.Group.LordToil target, System.Boolean canMoveToSameState, System.Boolean
updateDutiesIfMovedToSameState)
IL_01BB: stloc.s 10 (Verse.AI.Group.Transition)
IL_01BD: ldloc.s 10 (Verse.AI.Group.Transition)
IL_01BF: newobj System.Void Verse.AI.Group.Trigger_PawnCanReachMapEdge::.ctor()
IL_01C4: callvirt System.Void
Verse.AI.Group.Transition::AddTrigger(Verse.AI.Group.Trigger trigger)
IL_01C9: ldloc.s 10 (Verse.AI.Group.Transition)
IL_01CB: newobj System.Void Verse.AI.Group.TransitionAction_EndAllJobs::.ctor()
IL_01D0: callvirt System.Void
Verse.AI.Group.Transition::AddPostAction(Verse.AI.Group.TransitionAction action)
IL_01D5: ldloc.0
IL_01D6: ldloc.s 10 (Verse.AI.Group.Transition)
IL_01D8: ldc.i4.0
IL_01D9: callvirt System.Void
Verse.AI.Group.StateGraph::AddTransition(Verse.AI.Group.Transition transition,
System.Boolean highPriority)
IL_01DE: ldloc.1
IL_01DF: ldloc.s 7 (Verse.AI.Group.LordToil_ExitMapTraderFighting)
IL_01E1: ldc.i4.0
IL_01E2: ldc.i4.1
IL_01E3: newobj System.Void
Verse.AI.Group.Transition::.ctor(Verse.AI.Group.LordToil firstSource,
Verse.AI.Group.LordToil target, System.Boolean canMoveToSameState, System.Boolean
updateDutiesIfMovedToSameState)
IL_01E8: stloc.s 11 (Verse.AI.Group.Transition)
IL_01EA: ldloc.s 11 (Verse.AI.Group.Transition)
IL_01EC: ldc.i4.4
IL_01ED: newarr Verse.AI.Group.LordToil
IL_01F2: dup
IL_01F3: ldc.i4.0
IL_01F4: ldloc.2
IL_01F5: stelem.ref
IL_01F6: dup
IL_01F7: ldc.i4.1
IL_01F8: ldloc.3
IL_01F9: stelem.ref
IL_01FA: dup
IL_01FB: ldc.i4.2
IL_01FC: ldloc.s 4 (RimWorld.LordToil_ExitMapAndEscortCarriers)
IL_01FE: stelem.ref
IL_01FF: dup
IL_0200: ldc.i4.3
IL_0201: ldloc.s 5 (Verse.AI.Group.LordToil_ExitMap)
IL_0203: stelem.ref
IL_0204: callvirt System.Void
Verse.AI.Group.Transition::AddSources(Verse.AI.Group.LordToil[] sources)
IL_0209: ldloc.s 11 (Verse.AI.Group.Transition)
IL_020B: ldc.r4 0.2
IL_0210: newobj System.Void
Verse.AI.Group.Trigger_FractionPawnsLost::.ctor(System.Single fraction)
IL_0215: callvirt System.Void
Verse.AI.Group.Transition::AddTrigger(Verse.AI.Group.Trigger trigger)
IL_021A: ldloc.s 11 (Verse.AI.Group.Transition)
IL_021C: newobj System.Void Verse.AI.Group.TransitionAction_EndAllJobs::.ctor()
IL_0221: callvirt System.Void
Verse.AI.Group.Transition::AddPostAction(Verse.AI.Group.TransitionAction action)
IL_0226: ldloc.0
IL_0227: ldloc.s 11 (Verse.AI.Group.Transition)
IL_0229: ldc.i4.0
IL_022A: callvirt System.Void
Verse.AI.Group.StateGraph::AddTransition(Verse.AI.Group.Transition transition,
System.Boolean highPriority)
IL_022F: ldloc.1
IL_0230: ldloc.2
IL_0231: ldc.i4.0
IL_0232: ldc.i4.1
IL_0233: newobj System.Void
Verse.AI.Group.Transition::.ctor(Verse.AI.Group.LordToil firstSource,
Verse.AI.Group.LordToil target, System.Boolean canMoveToSameState, System.Boolean
updateDutiesIfMovedToSameState)
IL_0238: stloc.s 12 (Verse.AI.Group.Transition)
IL_023A: ldloc.s 12 (Verse.AI.Group.Transition)
IL_023C: ldc.r4 1
IL_0241: ldc.i4.0
IL_0242: ldnull
IL_0243: newobj System.Void
Verse.AI.Group.Trigger_PawnHarmed::.ctor(System.Single chance, System.Boolean
requireInstigatorWithFaction, RimWorld.Faction
requireInstigatorWithSpecificFaction)
IL_0248: callvirt System.Void
Verse.AI.Group.Transition::AddTrigger(Verse.AI.Group.Trigger trigger)
IL_024D: ldloc.s 12 (Verse.AI.Group.Transition)
IL_024F: newobj System.Void
Verse.AI.Group.TransitionAction_SetDefendTrader::.ctor()
IL_0254: callvirt System.Void
Verse.AI.Group.Transition::AddPreAction(Verse.AI.Group.TransitionAction action)
IL_0259: ldloc.s 12 (Verse.AI.Group.Transition)
IL_025B: newobj System.Void Verse.AI.Group.TransitionAction_WakeAll::.ctor()
IL_0260: callvirt System.Void
Verse.AI.Group.Transition::AddPostAction(Verse.AI.Group.TransitionAction action)
IL_0265: ldloc.s 12 (Verse.AI.Group.Transition)
IL_0267: newobj System.Void Verse.AI.Group.TransitionAction_EndAllJobs::.ctor()
IL_026C: callvirt System.Void
Verse.AI.Group.Transition::AddPostAction(Verse.AI.Group.TransitionAction action)
IL_0271: ldloc.0
IL_0272: ldloc.s 12 (Verse.AI.Group.Transition)
IL_0274: ldc.i4.0
IL_0275: callvirt System.Void
Verse.AI.Group.StateGraph::AddTransition(Verse.AI.Group.Transition transition,
System.Boolean highPriority)
IL_027A: ldloc.2
IL_027B: ldloc.1
IL_027C: ldc.i4.0
IL_027D: ldc.i4.1
IL_027E: newobj System.Void
Verse.AI.Group.Transition::.ctor(Verse.AI.Group.LordToil firstSource,
Verse.AI.Group.LordToil target, System.Boolean canMoveToSameState, System.Boolean
updateDutiesIfMovedToSameState)
IL_0283: stloc.s 13 (Verse.AI.Group.Transition)
IL_0285: ldloc.s 13 (Verse.AI.Group.Transition)
IL_0287: ldc.i4 1200
IL_028C: newobj System.Void
Verse.AI.Group.Trigger_TicksPassedWithoutHarm::.ctor(System.Int32 tickLimit)
IL_0291: callvirt System.Void
Verse.AI.Group.Transition::AddTrigger(Verse.AI.Group.Trigger trigger)
IL_0296: ldloc.0
IL_0297: ldloc.s 13 (Verse.AI.Group.Transition)
IL_0299: ldc.i4.0
IL_029A: callvirt System.Void
Verse.AI.Group.StateGraph::AddTransition(Verse.AI.Group.Transition transition,
System.Boolean highPriority)
IL_029F: ldloc.1
IL_02A0: ldloc.3
IL_02A1: ldc.i4.0
IL_02A2: ldc.i4.1
IL_02A3: newobj System.Void
Verse.AI.Group.Transition::.ctor(Verse.AI.Group.LordToil firstSource,
Verse.AI.Group.LordToil target, System.Boolean canMoveToSameState, System.Boolean
updateDutiesIfMovedToSameState)
IL_02A8: stloc.s 14 (Verse.AI.Group.Transition)
IL_02AA: ldloc.s 14 (Verse.AI.Group.Transition)
IL_02AC: ldstr "TravelArrived"
IL_02B1: newobj System.Void Verse.AI.Group.Trigger_Memo::.ctor(System.String
memo)
IL_02B6: callvirt System.Void
Verse.AI.Group.Transition::AddTrigger(Verse.AI.Group.Trigger trigger)
IL_02BB: ldloc.0
IL_02BC: ldloc.s 14 (Verse.AI.Group.Transition)
IL_02BE: ldc.i4.0
IL_02BF: callvirt System.Void
Verse.AI.Group.StateGraph::AddTransition(Verse.AI.Group.Transition transition,
System.Boolean highPriority)
IL_02C4: ldloc.3
IL_02C5: ldloc.s 4 (RimWorld.LordToil_ExitMapAndEscortCarriers)
IL_02C7: ldc.i4.0
IL_02C8: ldc.i4.1
IL_02C9: newobj System.Void
Verse.AI.Group.Transition::.ctor(Verse.AI.Group.LordToil firstSource,
Verse.AI.Group.LordToil target, System.Boolean canMoveToSameState, System.Boolean
updateDutiesIfMovedToSameState)
IL_02CE: stloc.s 15 (Verse.AI.Group.Transition)
IL_02D0: ldloc.s 15 (Verse.AI.Group.Transition)
IL_02D2: ldsfld System.Boolean Verse.DebugSettings::instantVisitorsGift
IL_02D7: brtrue => Label0
IL_02DC: ldc.i4 27000
IL_02E1: ldc.i4 45000
IL_02E6: call static System.Int32
TO.Harmony.CaravanVisitorDepartureTime::GetCaravanDepartureTime(System.Int32 min,
System.Int32 max)
IL_02EB: br => Label1
IL_02F0: Label0
IL_02F0: ldc.i4.0
IL_02F1: Label1
IL_02F1: newobj System.Void
Verse.AI.Group.Trigger_TicksPassed::.ctor(System.Int32 tickLimit)
IL_02F6: callvirt System.Void
Verse.AI.Group.Transition::AddTrigger(Verse.AI.Group.Trigger trigger)
IL_02FB: ldloc.s 15 (Verse.AI.Group.Transition)
IL_02FD: newobj System.Void
Verse.AI.Group.TransitionAction_CheckGiveGift::.ctor()
IL_0302: callvirt System.Void
Verse.AI.Group.Transition::AddPreAction(Verse.AI.Group.TransitionAction action)
IL_0307: ldloc.s 15 (Verse.AI.Group.Transition)
IL_0309: ldstr "MessageTraderCaravanLeaving"
IL_030E: ldarg.0
IL_030F: ldfld RimWorld.Faction RimWorld.LordJob_TradeWithColony::faction
IL_0314: callvirt System.String RimWorld.Faction::get_Name()
IL_0319: call static Verse.NamedArgument
Verse.NamedArgument::op_Implicit(System.String value)
IL_031E: call static Verse.TaggedString
Verse.TranslatorFormattedStringExtensions::Translate(System.String key,
Verse.NamedArgument arg1)
IL_0323: call static System.String
Verse.TaggedString::op_Implicit(Verse.TaggedString taggedString)
IL_0328: ldnull
IL_0329: ldc.r4 1
IL_032E: newobj System.Void
Verse.AI.Group.TransitionAction_Message::.ctor(System.String message, System.String
repeatAvoiderTag, System.Single repeatAvoiderSeconds)
IL_0333: callvirt System.Void
Verse.AI.Group.Transition::AddPreAction(Verse.AI.Group.TransitionAction action)
IL_0338: ldloc.s 15 (Verse.AI.Group.Transition)
IL_033A: newobj System.Void Verse.AI.Group.TransitionAction_WakeAll::.ctor()
IL_033F: callvirt System.Void
Verse.AI.Group.Transition::AddPostAction(Verse.AI.Group.TransitionAction action)
IL_0344: ldloc.0
IL_0345: ldloc.s 15 (Verse.AI.Group.Transition)
IL_0347: ldc.i4.0
IL_0348: callvirt System.Void
Verse.AI.Group.StateGraph::AddTransition(Verse.AI.Group.Transition transition,
System.Boolean highPriority)
IL_034D: ldloc.s 4 (RimWorld.LordToil_ExitMapAndEscortCarriers)
IL_034F: ldloc.s 4 (RimWorld.LordToil_ExitMapAndEscortCarriers)
IL_0351: ldc.i4.1
IL_0352: ldc.i4.1
IL_0353: newobj System.Void
Verse.AI.Group.Transition::.ctor(Verse.AI.Group.LordToil firstSource,
Verse.AI.Group.LordToil target, System.Boolean canMoveToSameState, System.Boolean
updateDutiesIfMovedToSameState)
IL_0358: stloc.s 16 (Verse.AI.Group.Transition)
IL_035A: ldloc.s 16 (Verse.AI.Group.Transition)
IL_035C: ldc.i4.1
IL_035D: stfld System.Boolean Verse.AI.Group.Transition::canMoveToSameState
IL_0362: ldloc.s 16 (Verse.AI.Group.Transition)
IL_0364: ldc.i4.0
IL_0365: ldnull
IL_0366: newobj System.Void
Verse.AI.Group.Trigger_PawnLost::.ctor(Verse.AI.Group.PawnLostCondition condition,
Verse.Pawn pawn)
IL_036B: callvirt System.Void
Verse.AI.Group.Transition::AddTrigger(Verse.AI.Group.Trigger trigger)
IL_0370: ldloc.s 16 (Verse.AI.Group.Transition)
IL_0372: ldarg.0
IL_0373: ldftn System.Boolean
RimWorld.LordJob_TradeWithColony::<CreateGraph>b__7_0()
IL_0379: newobj System.Void System.Func`1<System.Boolean>::.ctor(System.Object
object, System.IntPtr method)
IL_037E: ldc.i4.s 60
IL_0380: newobj System.Void
Verse.AI.Group.Trigger_TickCondition::.ctor(System.Func`1<System.Boolean>
condition, System.Int32 checkEveryTicks)
IL_0385: callvirt System.Void
Verse.AI.Group.Transition::AddTrigger(Verse.AI.Group.Trigger trigger)
IL_038A: ldloc.0
IL_038B: ldloc.s 16 (Verse.AI.Group.Transition)
IL_038D: ldc.i4.0
IL_038E: callvirt System.Void
Verse.AI.Group.StateGraph::AddTransition(Verse.AI.Group.Transition transition,
System.Boolean highPriority)
IL_0393: ldloc.s 4 (RimWorld.LordToil_ExitMapAndEscortCarriers)
IL_0395: ldloc.s 5 (Verse.AI.Group.LordToil_ExitMap)
IL_0397: ldc.i4.0
IL_0398: ldc.i4.1
IL_0399: newobj System.Void
Verse.AI.Group.Transition::.ctor(Verse.AI.Group.LordToil firstSource,
Verse.AI.Group.LordToil target, System.Boolean canMoveToSameState, System.Boolean
updateDutiesIfMovedToSameState)
IL_039E: stloc.s 17 (Verse.AI.Group.Transition)
IL_03A0: ldloc.s 17 (Verse.AI.Group.Transition)
IL_03A2: ldc.i4 60000
IL_03A7: newobj System.Void
Verse.AI.Group.Trigger_TicksPassed::.ctor(System.Int32 tickLimit)
IL_03AC: callvirt System.Void
Verse.AI.Group.Transition::AddTrigger(Verse.AI.Group.Trigger trigger)
IL_03B1: ldloc.s 17 (Verse.AI.Group.Transition)
IL_03B3: newobj System.Void Verse.AI.Group.TransitionAction_WakeAll::.ctor()
IL_03B8: callvirt System.Void
Verse.AI.Group.Transition::AddPostAction(Verse.AI.Group.TransitionAction action)
IL_03BD: ldloc.0
IL_03BE: ldloc.s 17 (Verse.AI.Group.Transition)
IL_03C0: ldc.i4.0
IL_03C1: callvirt System.Void
Verse.AI.Group.StateGraph::AddTransition(Verse.AI.Group.Transition transition,
System.Boolean highPriority)
IL_03C6: ldloc.3
IL_03C7: ldloc.s 4 (RimWorld.LordToil_ExitMapAndEscortCarriers)
IL_03C9: ldc.i4.0
IL_03CA: ldc.i4.1
IL_03CB: newobj System.Void
Verse.AI.Group.Transition::.ctor(Verse.AI.Group.LordToil firstSource,
Verse.AI.Group.LordToil target, System.Boolean canMoveToSameState, System.Boolean
updateDutiesIfMovedToSameState)
IL_03D0: stloc.s 18 (Verse.AI.Group.Transition)
IL_03D2: ldloc.s 18 (Verse.AI.Group.Transition)
IL_03D4: ldc.i4.2
IL_03D5: newarr Verse.AI.Group.LordToil
IL_03DA: dup
IL_03DB: ldc.i4.0
IL_03DC: ldloc.1
IL_03DD: stelem.ref
IL_03DE: dup
IL_03DF: ldc.i4.1
IL_03E0: ldloc.2
IL_03E1: stelem.ref
IL_03E2: callvirt System.Void
Verse.AI.Group.Transition::AddSources(Verse.AI.Group.LordToil[] sources)
IL_03E7: ldloc.s 18 (Verse.AI.Group.Transition)
IL_03E9: newobj System.Void
Verse.AI.Group.Trigger_ImportantTraderCaravanPeopleLost::.ctor()
IL_03EE: callvirt System.Void
Verse.AI.Group.Transition::AddTrigger(Verse.AI.Group.Trigger trigger)
IL_03F3: ldloc.s 18 (Verse.AI.Group.Transition)
IL_03F5: newobj System.Void Verse.AI.Group.Trigger_BecamePlayerEnemy::.ctor()
IL_03FA: callvirt System.Void
Verse.AI.Group.Transition::AddTrigger(Verse.AI.Group.Trigger trigger)
IL_03FF: ldloc.s 18 (Verse.AI.Group.Transition)
IL_0401: newobj System.Void Verse.AI.Group.TransitionAction_WakeAll::.ctor()
IL_0406: callvirt System.Void
Verse.AI.Group.Transition::AddPostAction(Verse.AI.Group.TransitionAction action)
IL_040B: ldloc.s 18 (Verse.AI.Group.Transition)
IL_040D: newobj System.Void Verse.AI.Group.TransitionAction_EndAllJobs::.ctor()
IL_0412: callvirt System.Void
Verse.AI.Group.Transition::AddPostAction(Verse.AI.Group.TransitionAction action)
IL_0417: ldloc.0
IL_0418: ldloc.s 18 (Verse.AI.Group.Transition)
IL_041A: ldc.i4.0
IL_041B: callvirt System.Void
Verse.AI.Group.StateGraph::AddTransition(Verse.AI.Group.Transition transition,
System.Boolean highPriority)
IL_0420: ldloc.0
IL_0421: // end original
IL_0421: ret
DONE

### Patch: virtual Verse.AI.Group.StateGraph


RimWorld.LordJob_VisitColony::CreateGraph()
### Replacement: static Verse.AI.Group.StateGraph
RimWorld.LordJob_VisitColony::RimWorld.LordJob_VisitColony.CreateGraph_Patch0(RimWo
rld.LordJob_VisitColony this)
IL_0000: Local var 0: Verse.AI.Group.StateGraph
IL_0000: Local var 1: Verse.AI.Group.LordToil
IL_0000: Local var 2: Verse.AI.Group.LordToil_DefendPoint
IL_0000: Local var 3: RimWorld.LordToil_TakeWoundedGuest
IL_0000: Local var 4: Verse.AI.Group.LordToil
IL_0000: Local var 5: Verse.AI.Group.LordToil
IL_0000: Local var 6: Verse.AI.Group.LordToil_ExitMap
IL_0000: Local var 7: System.Nullable`1<System.Single>
IL_0000: Local var 8: Verse.AI.Group.Transition
IL_0000: Local var 9: Verse.AI.Group.Transition
IL_0000: Local var 10: Verse.AI.Group.Transition
IL_0000: Local var 11: Verse.AI.Group.Transition
IL_0000: Local var 12: Verse.AI.Group.Transition
IL_0000: Local var 13: Verse.AI.Group.Transition
IL_0000: Local var 14: Verse.AI.Group.Transition
IL_0000: Local var 15: System.Int32
IL_0000: // start original
IL_0000: newobj System.Void Verse.AI.Group.StateGraph::.ctor()
IL_0005: stloc.0
IL_0006: ldloc.0
IL_0007: ldarg.0
IL_0008: ldfld Verse.IntVec3 RimWorld.LordJob_VisitColony::chillSpot
IL_000D: newobj System.Void Verse.AI.Group.LordJob_Travel::.ctor(Verse.IntVec3
travelDest)
IL_0012: callvirt abstract virtual Verse.AI.Group.StateGraph
Verse.AI.Group.LordJob::CreateGraph()
IL_0017: callvirt Verse.AI.Group.StateGraph
Verse.AI.Group.StateGraph::AttachSubgraph(Verse.AI.Group.StateGraph subGraph)
IL_001C: callvirt Verse.AI.Group.LordToil
Verse.AI.Group.StateGraph::get_StartingToil()
IL_0021: stloc.1
IL_0022: ldloc.0
IL_0023: ldloc.1
IL_0024: callvirt System.Void
Verse.AI.Group.StateGraph::set_StartingToil(Verse.AI.Group.LordToil value)
IL_0029: ldarg.0
IL_002A: ldfld Verse.IntVec3 RimWorld.LordJob_VisitColony::chillSpot
IL_002F: ldc.r4 28
IL_0034: ldloca.s 7 (System.Nullable`1[System.Single])
IL_0036: initobj System.Nullable`1[System.Single]
IL_003C: ldloc.s 7 (System.Nullable`1[System.Single])
IL_003E: newobj System.Void
Verse.AI.Group.LordToil_DefendPoint::.ctor(Verse.IntVec3 defendPoint, System.Single
defendRadius, System.Nullable`1<System.Single> wanderRadius)
IL_0043: stloc.2
IL_0044: ldloc.0
IL_0045: ldloc.2
IL_0046: callvirt System.Void
Verse.AI.Group.StateGraph::AddToil(Verse.AI.Group.LordToil toil)
IL_004B: newobj System.Void RimWorld.LordToil_TakeWoundedGuest::.ctor()
IL_0050: stloc.3
IL_0051: ldloc.0
IL_0052: ldloc.3
IL_0053: callvirt System.Void
Verse.AI.Group.StateGraph::AddToil(Verse.AI.Group.LordToil toil)
IL_0058: ldarg.0
IL_0059: ldsfld Verse.IntVec3 Verse.IntVec3::Invalid
IL_005E: newobj System.Void
Verse.AI.Group.LordJob_TravelAndExit::.ctor(Verse.IntVec3 travelDest)
IL_0063: callvirt abstract virtual Verse.AI.Group.StateGraph
Verse.AI.Group.LordJob::CreateGraph()
IL_0068: stfld Verse.AI.Group.StateGraph
RimWorld.LordJob_VisitColony::exitSubgraph
IL_006D: ldloc.0
IL_006E: ldarg.0
IL_006F: ldfld Verse.AI.Group.StateGraph
RimWorld.LordJob_VisitColony::exitSubgraph
IL_0074: callvirt Verse.AI.Group.StateGraph
Verse.AI.Group.StateGraph::AttachSubgraph(Verse.AI.Group.StateGraph subGraph)
IL_0079: callvirt Verse.AI.Group.LordToil
Verse.AI.Group.StateGraph::get_StartingToil()
IL_007E: stloc.s 4 (Verse.AI.Group.LordToil)
IL_0080: ldarg.0
IL_0081: ldfld Verse.AI.Group.StateGraph
RimWorld.LordJob_VisitColony::exitSubgraph
IL_0086: ldfld System.Collections.Generic.List`1<Verse.AI.Group.LordToil>
Verse.AI.Group.StateGraph::lordToils
IL_008B: ldc.i4.1
IL_008C: callvirt virtual Verse.AI.Group.LordToil
System.Collections.Generic.List`1<Verse.AI.Group.LordToil>::get_Item(System.Int32
index)
IL_0091: stloc.s 5 (Verse.AI.Group.LordToil)
IL_0093: ldc.i4.2
IL_0094: ldc.i4.1
IL_0095: ldc.i4.0
IL_0096: newobj System.Void
Verse.AI.Group.LordToil_ExitMap::.ctor(Verse.AI.LocomotionUrgency locomotion,
System.Boolean canDig, System.Boolean interruptCurrentJob)
IL_009B: stloc.s 6 (Verse.AI.Group.LordToil_ExitMap)
IL_009D: ldloc.0
IL_009E: ldloc.s 6 (Verse.AI.Group.LordToil_ExitMap)
IL_00A0: callvirt System.Void
Verse.AI.Group.StateGraph::AddToil(Verse.AI.Group.LordToil toil)
IL_00A5: ldloc.1
IL_00A6: ldloc.s 4 (Verse.AI.Group.LordToil)
IL_00A8: ldc.i4.0
IL_00A9: ldc.i4.1
IL_00AA: newobj System.Void
Verse.AI.Group.Transition::.ctor(Verse.AI.Group.LordToil firstSource,
Verse.AI.Group.LordToil target, System.Boolean canMoveToSameState, System.Boolean
updateDutiesIfMovedToSameState)
IL_00AF: stloc.s 8 (Verse.AI.Group.Transition)
IL_00B1: ldloc.s 8 (Verse.AI.Group.Transition)
IL_00B3: ldc.i4.1
IL_00B4: newarr Verse.AI.Group.LordToil
IL_00B9: dup
IL_00BA: ldc.i4.0
IL_00BB: ldloc.2
IL_00BC: stelem.ref
IL_00BD: callvirt System.Void
Verse.AI.Group.Transition::AddSources(Verse.AI.Group.LordToil[] sources)
IL_00C2: ldloc.s 8 (Verse.AI.Group.Transition)
IL_00C4: newobj System.Void
Verse.AI.Group.Trigger_PawnExperiencingDangerousTemperatures::.ctor()
IL_00C9: callvirt System.Void
Verse.AI.Group.Transition::AddTrigger(Verse.AI.Group.Trigger trigger)
IL_00CE: ldarg.0
IL_00CF: ldfld RimWorld.Faction RimWorld.LordJob_VisitColony::faction
IL_00D4: brfalse => Label0
IL_00D9: ldloc.s 8 (Verse.AI.Group.Transition)
IL_00DB: ldstr "MessageVisitorsDangerousTemperature"
IL_00E0: ldarg.0
IL_00E1: ldfld RimWorld.Faction RimWorld.LordJob_VisitColony::faction
IL_00E6: ldfld RimWorld.FactionDef RimWorld.Faction::def
IL_00EB: ldfld System.String RimWorld.FactionDef::pawnsPlural
IL_00F0: call static System.String
Verse.GenText::CapitalizeFirst(System.String str)
IL_00F5: call static Verse.NamedArgument
Verse.NamedArgument::op_Implicit(System.String value)
IL_00FA: ldarg.0
IL_00FB: ldfld RimWorld.Faction RimWorld.LordJob_VisitColony::faction
IL_0100: callvirt System.String RimWorld.Faction::get_Name()
IL_0105: call static Verse.NamedArgument
Verse.NamedArgument::op_Implicit(System.String value)
IL_010A: call static Verse.TaggedString
Verse.TranslatorFormattedStringExtensions::Translate(System.String key,
Verse.NamedArgument arg1, Verse.NamedArgument arg2)
IL_010F: call static System.String
Verse.TaggedString::op_Implicit(Verse.TaggedString taggedString)
IL_0114: ldnull
IL_0115: ldc.r4 1
IL_011A: newobj System.Void
Verse.AI.Group.TransitionAction_Message::.ctor(System.String message, System.String
repeatAvoiderTag, System.Single repeatAvoiderSeconds)
IL_011F: callvirt System.Void
Verse.AI.Group.Transition::AddPreAction(Verse.AI.Group.TransitionAction action)
IL_0124: Label0
IL_0124: ldloc.s 8 (Verse.AI.Group.Transition)
IL_0126: newobj System.Void
Verse.AI.Group.TransitionAction_EnsureHaveExitDestination::.ctor()
IL_012B: callvirt System.Void
Verse.AI.Group.Transition::AddPreAction(Verse.AI.Group.TransitionAction action)
IL_0130: ldloc.s 8 (Verse.AI.Group.Transition)
IL_0132: newobj System.Void Verse.AI.Group.TransitionAction_EndAllJobs::.ctor()
IL_0137: callvirt System.Void
Verse.AI.Group.Transition::AddPostAction(Verse.AI.Group.TransitionAction action)
IL_013C: ldloc.0
IL_013D: ldloc.s 8 (Verse.AI.Group.Transition)
IL_013F: ldc.i4.0
IL_0140: callvirt System.Void
Verse.AI.Group.StateGraph::AddTransition(Verse.AI.Group.Transition transition,
System.Boolean highPriority)
IL_0145: ldloc.1
IL_0146: ldloc.s 6 (Verse.AI.Group.LordToil_ExitMap)
IL_0148: ldc.i4.0
IL_0149: ldc.i4.1
IL_014A: newobj System.Void
Verse.AI.Group.Transition::.ctor(Verse.AI.Group.LordToil firstSource,
Verse.AI.Group.LordToil target, System.Boolean canMoveToSameState, System.Boolean
updateDutiesIfMovedToSameState)
IL_014F: stloc.s 9 (Verse.AI.Group.Transition)
IL_0151: ldloc.s 9 (Verse.AI.Group.Transition)
IL_0153: ldc.i4.2
IL_0154: newarr Verse.AI.Group.LordToil
IL_0159: dup
IL_015A: ldc.i4.0
IL_015B: ldloc.2
IL_015C: stelem.ref
IL_015D: dup
IL_015E: ldc.i4.1
IL_015F: ldloc.3
IL_0160: stelem.ref
IL_0161: callvirt System.Void
Verse.AI.Group.Transition::AddSources(Verse.AI.Group.LordToil[] sources)
IL_0166: ldloc.s 9 (Verse.AI.Group.Transition)
IL_0168: ldarg.0
IL_0169: ldfld Verse.AI.Group.StateGraph
RimWorld.LordJob_VisitColony::exitSubgraph
IL_016E: ldfld System.Collections.Generic.List`1<Verse.AI.Group.LordToil>
Verse.AI.Group.StateGraph::lordToils
IL_0173: callvirt System.Void
Verse.AI.Group.Transition::AddSources(System.Collections.Generic.IEnumerable`1<Vers
e.AI.Group.LordToil> sources)
IL_0178: ldloc.s 9 (Verse.AI.Group.Transition)
IL_017A: newobj System.Void
Verse.AI.Group.Trigger_PawnCannotReachMapEdge::.ctor()
IL_017F: callvirt System.Void
Verse.AI.Group.Transition::AddTrigger(Verse.AI.Group.Trigger trigger)
IL_0184: ldarg.0
IL_0185: ldfld RimWorld.Faction RimWorld.LordJob_VisitColony::faction
IL_018A: brfalse => Label1
IL_018F: ldloc.s 9 (Verse.AI.Group.Transition)
IL_0191: ldstr "MessageVisitorsTrappedLeaving"
IL_0196: ldarg.0
IL_0197: ldfld RimWorld.Faction RimWorld.LordJob_VisitColony::faction
IL_019C: ldfld RimWorld.FactionDef RimWorld.Faction::def
IL_01A1: ldfld System.String RimWorld.FactionDef::pawnsPlural
IL_01A6: call static System.String
Verse.GenText::CapitalizeFirst(System.String str)
IL_01AB: call static Verse.NamedArgument
Verse.NamedArgument::op_Implicit(System.String value)
IL_01B0: ldarg.0
IL_01B1: ldfld RimWorld.Faction RimWorld.LordJob_VisitColony::faction
IL_01B6: callvirt System.String RimWorld.Faction::get_Name()
IL_01BB: call static Verse.NamedArgument
Verse.NamedArgument::op_Implicit(System.String value)
IL_01C0: call static Verse.TaggedString
Verse.TranslatorFormattedStringExtensions::Translate(System.String key,
Verse.NamedArgument arg1, Verse.NamedArgument arg2)
IL_01C5: call static System.String
Verse.TaggedString::op_Implicit(Verse.TaggedString taggedString)
IL_01CA: ldnull
IL_01CB: ldc.r4 1
IL_01D0: newobj System.Void
Verse.AI.Group.TransitionAction_Message::.ctor(System.String message, System.String
repeatAvoiderTag, System.Single repeatAvoiderSeconds)
IL_01D5: callvirt System.Void
Verse.AI.Group.Transition::AddPreAction(Verse.AI.Group.TransitionAction action)
IL_01DA: Label1
IL_01DA: ldloc.0
IL_01DB: ldloc.s 9 (Verse.AI.Group.Transition)
IL_01DD: ldc.i4.0
IL_01DE: callvirt System.Void
Verse.AI.Group.StateGraph::AddTransition(Verse.AI.Group.Transition transition,
System.Boolean highPriority)
IL_01E3: ldloc.s 6 (Verse.AI.Group.LordToil_ExitMap)
IL_01E5: ldloc.s 4 (Verse.AI.Group.LordToil)
IL_01E7: ldc.i4.0
IL_01E8: ldc.i4.1
IL_01E9: newobj System.Void
Verse.AI.Group.Transition::.ctor(Verse.AI.Group.LordToil firstSource,
Verse.AI.Group.LordToil target, System.Boolean canMoveToSameState, System.Boolean
updateDutiesIfMovedToSameState)
IL_01EE: stloc.s 10 (Verse.AI.Group.Transition)
IL_01F0: ldloc.s 10 (Verse.AI.Group.Transition)
IL_01F2: newobj System.Void Verse.AI.Group.Trigger_PawnCanReachMapEdge::.ctor()
IL_01F7: callvirt System.Void
Verse.AI.Group.Transition::AddTrigger(Verse.AI.Group.Trigger trigger)
IL_01FC: ldloc.s 10 (Verse.AI.Group.Transition)
IL_01FE: newobj System.Void
Verse.AI.Group.TransitionAction_EnsureHaveExitDestination::.ctor()
IL_0203: callvirt System.Void
Verse.AI.Group.Transition::AddPreAction(Verse.AI.Group.TransitionAction action)
IL_0208: ldloc.s 10 (Verse.AI.Group.Transition)
IL_020A: newobj System.Void Verse.AI.Group.TransitionAction_EndAllJobs::.ctor()
IL_020F: callvirt System.Void
Verse.AI.Group.Transition::AddPostAction(Verse.AI.Group.TransitionAction action)
IL_0214: ldloc.0
IL_0215: ldloc.s 10 (Verse.AI.Group.Transition)
IL_0217: ldc.i4.0
IL_0218: callvirt System.Void
Verse.AI.Group.StateGraph::AddTransition(Verse.AI.Group.Transition transition,
System.Boolean highPriority)
IL_021D: ldloc.1
IL_021E: ldloc.2
IL_021F: ldc.i4.0
IL_0220: ldc.i4.1
IL_0221: newobj System.Void
Verse.AI.Group.Transition::.ctor(Verse.AI.Group.LordToil firstSource,
Verse.AI.Group.LordToil target, System.Boolean canMoveToSameState, System.Boolean
updateDutiesIfMovedToSameState)
IL_0226: stloc.s 11 (Verse.AI.Group.Transition)
IL_0228: ldloc.s 11 (Verse.AI.Group.Transition)
IL_022A: ldstr "TravelArrived"
IL_022F: newobj System.Void Verse.AI.Group.Trigger_Memo::.ctor(System.String
memo)
IL_0234: callvirt System.Void
Verse.AI.Group.Transition::AddTrigger(Verse.AI.Group.Trigger trigger)
IL_0239: ldloc.0
IL_023A: ldloc.s 11 (Verse.AI.Group.Transition)
IL_023C: ldc.i4.0
IL_023D: callvirt System.Void
Verse.AI.Group.StateGraph::AddTransition(Verse.AI.Group.Transition transition,
System.Boolean highPriority)
IL_0242: ldarg.0
IL_0243: ldfld RimWorld.Faction RimWorld.LordJob_VisitColony::faction
IL_0248: brfalse => Label2
IL_024D: ldloc.2
IL_024E: ldloc.3
IL_024F: ldc.i4.0
IL_0250: ldc.i4.1
IL_0251: newobj System.Void
Verse.AI.Group.Transition::.ctor(Verse.AI.Group.LordToil firstSource,
Verse.AI.Group.LordToil target, System.Boolean canMoveToSameState, System.Boolean
updateDutiesIfMovedToSameState)
IL_0256: stloc.s 12 (Verse.AI.Group.Transition)
IL_0258: ldloc.s 12 (Verse.AI.Group.Transition)
IL_025A: newobj System.Void RimWorld.Trigger_WoundedGuestPresent::.ctor()
IL_025F: callvirt System.Void
Verse.AI.Group.Transition::AddTrigger(Verse.AI.Group.Trigger trigger)
IL_0264: ldloc.s 12 (Verse.AI.Group.Transition)
IL_0266: ldstr "MessageVisitorsTakingWounded"
IL_026B: ldarg.0
IL_026C: ldfld RimWorld.Faction RimWorld.LordJob_VisitColony::faction
IL_0271: ldfld RimWorld.FactionDef RimWorld.Faction::def
IL_0276: ldfld System.String RimWorld.FactionDef::pawnsPlural
IL_027B: call static System.String
Verse.GenText::CapitalizeFirst(System.String str)
IL_0280: call static Verse.NamedArgument
Verse.NamedArgument::op_Implicit(System.String value)
IL_0285: ldarg.0
IL_0286: ldfld RimWorld.Faction RimWorld.LordJob_VisitColony::faction
IL_028B: callvirt System.String RimWorld.Faction::get_Name()
IL_0290: call static Verse.NamedArgument
Verse.NamedArgument::op_Implicit(System.String value)
IL_0295: call static Verse.TaggedString
Verse.TranslatorFormattedStringExtensions::Translate(System.String key,
Verse.NamedArgument arg1, Verse.NamedArgument arg2)
IL_029A: call static System.String
Verse.TaggedString::op_Implicit(Verse.TaggedString taggedString)
IL_029F: ldnull
IL_02A0: ldc.r4 1
IL_02A5: newobj System.Void
Verse.AI.Group.TransitionAction_Message::.ctor(System.String message, System.String
repeatAvoiderTag, System.Single repeatAvoiderSeconds)
IL_02AA: callvirt System.Void
Verse.AI.Group.Transition::AddPreAction(Verse.AI.Group.TransitionAction action)
IL_02AF: ldloc.0
IL_02B0: ldloc.s 12 (Verse.AI.Group.Transition)
IL_02B2: ldc.i4.0
IL_02B3: callvirt System.Void
Verse.AI.Group.StateGraph::AddTransition(Verse.AI.Group.Transition transition,
System.Boolean highPriority)
IL_02B8: Label2
IL_02B8: ldloc.2
IL_02B9: ldloc.s 5 (Verse.AI.Group.LordToil)
IL_02BB: ldc.i4.0
IL_02BC: ldc.i4.1
IL_02BD: newobj System.Void
Verse.AI.Group.Transition::.ctor(Verse.AI.Group.LordToil firstSource,
Verse.AI.Group.LordToil target, System.Boolean canMoveToSameState, System.Boolean
updateDutiesIfMovedToSameState)
IL_02C2: stloc.s 13 (Verse.AI.Group.Transition)
IL_02C4: ldloc.s 13 (Verse.AI.Group.Transition)
IL_02C6: ldc.i4.2
IL_02C7: newarr Verse.AI.Group.LordToil
IL_02CC: dup
IL_02CD: ldc.i4.0
IL_02CE: ldloc.3
IL_02CF: stelem.ref
IL_02D0: dup
IL_02D1: ldc.i4.1
IL_02D2: ldloc.1
IL_02D3: stelem.ref
IL_02D4: callvirt System.Void
Verse.AI.Group.Transition::AddSources(Verse.AI.Group.LordToil[] sources)
IL_02D9: ldloc.s 13 (Verse.AI.Group.Transition)
IL_02DB: newobj System.Void Verse.AI.Group.Trigger_BecamePlayerEnemy::.ctor()
IL_02E0: callvirt System.Void
Verse.AI.Group.Transition::AddTrigger(Verse.AI.Group.Trigger trigger)
IL_02E5: ldloc.s 13 (Verse.AI.Group.Transition)
IL_02E7: newobj System.Void
Verse.AI.Group.TransitionAction_SetDefendLocalGroup::.ctor()
IL_02EC: callvirt System.Void
Verse.AI.Group.Transition::AddPreAction(Verse.AI.Group.TransitionAction action)
IL_02F1: ldloc.s 13 (Verse.AI.Group.Transition)
IL_02F3: newobj System.Void Verse.AI.Group.TransitionAction_WakeAll::.ctor()
IL_02F8: callvirt System.Void
Verse.AI.Group.Transition::AddPostAction(Verse.AI.Group.TransitionAction action)
IL_02FD: ldloc.s 13 (Verse.AI.Group.Transition)
IL_02FF: newobj System.Void Verse.AI.Group.TransitionAction_EndAllJobs::.ctor()
IL_0304: callvirt System.Void
Verse.AI.Group.Transition::AddPostAction(Verse.AI.Group.TransitionAction action)
IL_0309: ldloc.0
IL_030A: ldloc.s 13 (Verse.AI.Group.Transition)
IL_030C: ldc.i4.0
IL_030D: callvirt System.Void
Verse.AI.Group.StateGraph::AddTransition(Verse.AI.Group.Transition transition,
System.Boolean highPriority)
IL_0312: ldloc.2
IL_0313: ldloc.s 4 (Verse.AI.Group.LordToil)
IL_0315: ldc.i4.0
IL_0316: ldc.i4.1
IL_0317: newobj System.Void
Verse.AI.Group.Transition::.ctor(Verse.AI.Group.LordToil firstSource,
Verse.AI.Group.LordToil target, System.Boolean canMoveToSameState, System.Boolean
updateDutiesIfMovedToSameState)
IL_031C: stloc.s 14 (Verse.AI.Group.Transition)
IL_031E: ldsfld System.Boolean Verse.DebugSettings::instantVisitorsGift
IL_0323: brfalse => Label3
IL_0328: ldarg.0
IL_0329: ldfld RimWorld.Faction RimWorld.LordJob_VisitColony::faction
IL_032E: brfalse => Label4
IL_0333: ldc.i4.0
IL_0334: stloc.s 15 (System.Int32)
IL_0336: br => Label5
IL_033B: Label3
IL_033B: Label4
IL_033B: ldarg.0
IL_033C: ldflda System.Nullable`1<System.Int32>
RimWorld.LordJob_VisitColony::durationTicks
IL_0341: call System.Boolean System.Nullable`1<System.Int32>::get_HasValue()
IL_0346: brfalse => Label6
IL_034B: ldarg.0
IL_034C: ldflda System.Nullable`1<System.Int32>
RimWorld.LordJob_VisitColony::durationTicks
IL_0351: call System.Int32 System.Nullable`1<System.Int32>::get_Value()
IL_0356: stloc.s 15 (System.Int32)
IL_0358: br => Label7
IL_035D: Label6
IL_035D: ldc.i4 8000
IL_0362: ldc.i4 22000
IL_0367: call static System.Int32
TO.Harmony.CaravanVisitorDepartureTime::GetVisitorDepartureTime(System.Int32 min,
System.Int32 max)
IL_036C: stloc.s 15 (System.Int32)
IL_036E: Label5
IL_036E: Label7
IL_036E: ldloc.s 14 (Verse.AI.Group.Transition)
IL_0370: ldloc.s 15 (System.Int32)
IL_0372: newobj System.Void
Verse.AI.Group.Trigger_TicksPassed::.ctor(System.Int32 tickLimit)
IL_0377: callvirt System.Void
Verse.AI.Group.Transition::AddTrigger(Verse.AI.Group.Trigger trigger)
IL_037C: ldarg.0
IL_037D: ldfld RimWorld.Faction RimWorld.LordJob_VisitColony::faction
IL_0382: brfalse => Label8
IL_0387: ldloc.s 14 (Verse.AI.Group.Transition)
IL_0389: ldstr "VisitorsLeaving"
IL_038E: ldarg.0
IL_038F: ldfld RimWorld.Faction RimWorld.LordJob_VisitColony::faction
IL_0394: callvirt System.String RimWorld.Faction::get_Name()
IL_0399: call static Verse.NamedArgument
Verse.NamedArgument::op_Implicit(System.String value)
IL_039E: call static Verse.TaggedString
Verse.TranslatorFormattedStringExtensions::Translate(System.String key,
Verse.NamedArgument arg1)
IL_03A3: call static System.String
Verse.TaggedString::op_Implicit(Verse.TaggedString taggedString)
IL_03A8: ldnull
IL_03A9: ldc.r4 1
IL_03AE: newobj System.Void
Verse.AI.Group.TransitionAction_Message::.ctor(System.String message, System.String
repeatAvoiderTag, System.Single repeatAvoiderSeconds)
IL_03B3: callvirt System.Void
Verse.AI.Group.Transition::AddPreAction(Verse.AI.Group.TransitionAction action)
IL_03B8: Label8
IL_03B8: ldarg.0
IL_03B9: ldfld System.Collections.Generic.List`1<Verse.Thing>
RimWorld.LordJob_VisitColony::gifts
IL_03BE: brfalse => Label9
IL_03C3: ldloc.s 14 (Verse.AI.Group.Transition)
IL_03C5: newobj System.Void Verse.AI.Group.TransitionAction_GiveGift::.ctor()
IL_03CA: dup
IL_03CB: ldarg.0
IL_03CC: ldfld System.Collections.Generic.List`1<Verse.Thing>
RimWorld.LordJob_VisitColony::gifts
IL_03D1: stfld System.Collections.Generic.List`1<Verse.Thing>
Verse.AI.Group.TransitionAction_GiveGift::gifts
IL_03D6: callvirt System.Void
Verse.AI.Group.Transition::AddPreAction(Verse.AI.Group.TransitionAction action)
IL_03DB: br => Label10
IL_03E0: Label9
IL_03E0: ldloc.s 14 (Verse.AI.Group.Transition)
IL_03E2: newobj System.Void
Verse.AI.Group.TransitionAction_CheckGiveGift::.ctor()
IL_03E7: callvirt System.Void
Verse.AI.Group.Transition::AddPreAction(Verse.AI.Group.TransitionAction action)
IL_03EC: Label10
IL_03EC: ldloc.s 14 (Verse.AI.Group.Transition)
IL_03EE: newobj System.Void Verse.AI.Group.TransitionAction_WakeAll::.ctor()
IL_03F3: callvirt System.Void
Verse.AI.Group.Transition::AddPostAction(Verse.AI.Group.TransitionAction action)
IL_03F8: ldloc.s 14 (Verse.AI.Group.Transition)
IL_03FA: newobj System.Void
Verse.AI.Group.TransitionAction_EnsureHaveExitDestination::.ctor()
IL_03FF: callvirt System.Void
Verse.AI.Group.Transition::AddPreAction(Verse.AI.Group.TransitionAction action)
IL_0404: ldloc.0
IL_0405: ldloc.s 14 (Verse.AI.Group.Transition)
IL_0407: ldc.i4.0
IL_0408: callvirt System.Void
Verse.AI.Group.StateGraph::AddTransition(Verse.AI.Group.Transition transition,
System.Boolean highPriority)
IL_040D: ldloc.0
IL_040E: // end original
IL_040E: ret
DONE

### Patch: virtual System.Int32


RimWorld.Planet.Settlement_TraderTracker::get_RegenerateStockEveryDays()
### Replacement: static System.Int32
RimWorld.Planet.Settlement_TraderTracker::RimWorld.Planet.Settlement_TraderTracker.
get_RegenerateStockEveryDays_Patch1(RimWorld.Planet.Settlement_TraderTracker this)
IL_0000: Local var 0: System.Int32
IL_0000: ldc.i4 0
IL_0005: stloc 0 (System.Int32)
IL_0009: // start original
IL_0009: ldc.i4.s 30
IL_000B: // end original
IL_000B: stloc 0 (System.Int32)
IL_000F: ldloca 0 (System.Int32)
IL_0013: call static System.Void
TO.Harmony.SettlementRestock::ModifySettlementRestockDays(System.Int32& __result)
IL_0018: ldloc 0 (System.Int32)
IL_001C: ret
DONE

### Patch: System.Int32 RimWorld.StockGenerator::RandomCountOf(Verse.ThingDef def)


### Replacement: static System.Int32
RimWorld.StockGenerator::RimWorld.StockGenerator.RandomCountOf_Patch1(RimWorld.Stoc
kGenerator this, Verse.ThingDef def)
IL_0000: Local var 0: Verse.IntRange
IL_0000: Local var 1: System.Int32
IL_0000: Local var 2: System.Int32
IL_0000: Local var 3: System.Int32
IL_0000: Local var 4: System.Int32
IL_0000: ldc.i4 0
IL_0005: stloc 4 (System.Int32)
IL_0009: // start original
IL_0009: ldarg.0
IL_000A: ldfld Verse.IntRange RimWorld.StockGenerator::countRange
IL_000F: stloc.0
IL_0010: ldarg.0
IL_0011: ldfld
System.Collections.Generic.List`1<Verse.ThingDefCountRangeClass>
RimWorld.StockGenerator::customCountRanges
IL_0016: brfalse => Label0
IL_001B: ldc.i4.0
IL_001C: stloc.1
IL_001D: br => Label1
IL_0022: Label4
IL_0022: ldarg.0
IL_0023: ldfld
System.Collections.Generic.List`1<Verse.ThingDefCountRangeClass>
RimWorld.StockGenerator::customCountRanges
IL_0028: ldloc.1
IL_0029: callvirt virtual Verse.ThingDefCountRangeClass
System.Collections.Generic.List`1<Verse.ThingDefCountRangeClass>::get_Item(System.I
nt32 index)
IL_002E: ldfld Verse.ThingDef Verse.ThingDefCountRangeClass::thingDef
IL_0033: ldarg.1
IL_0034: bne.un => Label2
IL_0039: ldarg.0
IL_003A: ldfld
System.Collections.Generic.List`1<Verse.ThingDefCountRangeClass>
RimWorld.StockGenerator::customCountRanges
IL_003F: ldloc.1
IL_0040: callvirt virtual Verse.ThingDefCountRangeClass
System.Collections.Generic.List`1<Verse.ThingDefCountRangeClass>::get_Item(System.I
nt32 index)
IL_0045: ldfld Verse.IntRange Verse.ThingDefCountRangeClass::countRange
IL_004A: stloc.0
IL_004B: br => Label3
IL_0050: Label2
IL_0050: ldloc.1
IL_0051: ldc.i4.1
IL_0052: add
IL_0053: stloc.1
IL_0054: Label1
IL_0054: ldloc.1
IL_0055: ldarg.0
IL_0056: ldfld
System.Collections.Generic.List`1<Verse.ThingDefCountRangeClass>
RimWorld.StockGenerator::customCountRanges
IL_005B: callvirt virtual System.Int32
System.Collections.Generic.List`1<Verse.ThingDefCountRangeClass>::get_Count()
IL_0060: blt => Label4
IL_0065: Label0
IL_0065: Label3
IL_0065: ldloc.0
IL_0066: ldfld System.Int32 Verse.IntRange::max
IL_006B: ldc.i4.0
IL_006C: bgt => Label5
IL_0071: ldarg.0
IL_0072: ldflda Verse.FloatRange RimWorld.StockGenerator::totalPriceRange
IL_0077: ldfld System.Single Verse.FloatRange::max
IL_007C: ldc.r4 0
IL_0081: bgt.un => Label6
IL_0086: ldc.i4.0
IL_0087: br => Label13
IL_008C: Label5
IL_008C: Label6
IL_008C: ldloc.0
IL_008D: ldfld System.Int32 Verse.IntRange::max
IL_0092: ldc.i4.0
IL_0093: ble => Label7
IL_0098: ldarg.0
IL_0099: ldflda Verse.FloatRange RimWorld.StockGenerator::totalPriceRange
IL_009E: ldfld System.Single Verse.FloatRange::max
IL_00A3: ldc.r4 0
IL_00A8: bgt.un => Label8
IL_00AD: ldloca.s 0 (Verse.IntRange)
IL_00AF: call System.Int32 Verse.IntRange::get_RandomInRange()
IL_00B4: br => Label14
IL_00B9: Label7
IL_00B9: Label8
IL_00B9: ldloc.0
IL_00BA: ldfld System.Int32 Verse.IntRange::max
IL_00BF: ldc.i4.0
IL_00C0: bgt => Label9
IL_00C5: ldarg.0
IL_00C6: ldflda Verse.FloatRange RimWorld.StockGenerator::totalPriceRange
IL_00CB: ldfld System.Single Verse.FloatRange::max
IL_00D0: ldc.r4 0
IL_00D5: ble.un => Label10
IL_00DA: ldarg.0
IL_00DB: ldflda Verse.FloatRange RimWorld.StockGenerator::totalPriceRange
IL_00E0: call System.Single Verse.FloatRange::get_RandomInRange()
IL_00E5: ldarg.1
IL_00E6: callvirt System.Single Verse.ThingDef::get_BaseMarketValue()
IL_00EB: div
IL_00EC: call static System.Int32 UnityEngine.Mathf::RoundToInt(System.Single
f)
IL_00F1: br => Label15
IL_00F6: Label9
IL_00F6: Label10
IL_00F6: ldc.i4.0
IL_00F7: stloc.3
IL_00F8: Label12
IL_00F8: ldloca.s 0 (Verse.IntRange)
IL_00FA: call System.Int32 Verse.IntRange::get_RandomInRange()
IL_00FF: stloc.2
IL_0100: ldloc.3
IL_0101: ldc.i4.1
IL_0102: add
IL_0103: stloc.3
IL_0104: ldloc.3
IL_0105: ldc.i4.s 100
IL_0107: bgt => Label11
IL_010C: ldarg.0
IL_010D: ldflda Verse.FloatRange RimWorld.StockGenerator::totalPriceRange
IL_0112: ldloc.2
IL_0113: conv.r4
IL_0114: ldarg.1
IL_0115: callvirt System.Single Verse.ThingDef::get_BaseMarketValue()
IL_011A: mul
IL_011B: call System.Boolean Verse.FloatRange::Includes(System.Single f)
IL_0120: brfalse => Label12
IL_0125: Label11
IL_0125: ldloc.2
IL_0126: // end original
IL_0126: Label13
IL_0126: Label14
IL_0126: Label15
IL_0126: stloc 4 (System.Int32)
IL_012A: ldarga 0
IL_012E: ldloca 4 (System.Int32)
IL_0132: ldarg 1
IL_0136: call static System.Void
TO.Harmony.StockGeneratorCount::ModifyGeneratedAmounts(RimWorld.StockGenerator&
__instance, System.Int32& __result, Verse.ThingDef def)
IL_013B: ldloc 4 (System.Int32)
IL_013F: ret
DONE

### Patch: System.Single RimWorld.TraderKindDef::get_CalculatedCommonality()


### Replacement: static System.Single
RimWorld.TraderKindDef::RimWorld.TraderKindDef.get_CalculatedCommonality_Patch1(Rim
World.TraderKindDef this)
IL_0000: Local var 0: System.Single
IL_0000: Local var 1: System.Single
IL_0000: ldc.r4 0
IL_0005: stloc 1 (System.Single)
IL_0009: // start original
IL_0009: ldarg.0
IL_000A: ldfld System.Single RimWorld.TraderKindDef::commonality
IL_000F: stloc.0
IL_0010: ldarg.0
IL_0011: ldfld Verse.SimpleCurve
RimWorld.TraderKindDef::commonalityMultFromPopulationIntent
IL_0016: brfalse => Label0
IL_001B: ldloc.0
IL_001C: ldarg.0
IL_001D: ldfld Verse.SimpleCurve
RimWorld.TraderKindDef::commonalityMultFromPopulationIntent
IL_0022: call static System.Single
RimWorld.StorytellerUtilityPopulation::get_PopulationIntent()
IL_0027: callvirt System.Single Verse.SimpleCurve::Evaluate(System.Single x)
IL_002C: mul
IL_002D: stloc.0
IL_002E: Label0
IL_002E: ldloc.0
IL_002F: // end original
IL_002F: stloc 1 (System.Single)
IL_0033: ldarga 0
IL_0037: ldloca 1 (System.Single)
IL_003B: call static System.Void
TO.Harmony.TraderKind::CalculatedCommonalityPostfix(RimWorld.TraderKindDef&
__instance, System.Single& __result)
IL_0040: ldloc 1 (System.Single)
IL_0044: ret
DONE

### Patch: System.Void RimWorld.TradeShip::GenerateThings()


### Replacement: static System.Void
RimWorld.TradeShip::RimWorld.TradeShip.GenerateThings_Patch1(RimWorld.TradeShip
this)
IL_0000: Local var 0: RimWorld.ThingSetMakerParams
IL_0000: // start original
IL_0000: ldloca.s 0 (RimWorld.ThingSetMakerParams)
IL_0002: initobj RimWorld.ThingSetMakerParams
IL_0008: ldloca.s 0 (RimWorld.ThingSetMakerParams)
IL_000A: ldarg.0
IL_000B: ldfld RimWorld.TraderKindDef RimWorld.TradeShip::def
IL_0010: stfld RimWorld.TraderKindDef RimWorld.ThingSetMakerParams::traderDef
IL_0015: ldloca.s 0 (RimWorld.ThingSetMakerParams)
IL_0017: ldarg.0
IL_0018: call Verse.Map RimWorld.PassingShip::get_Map()
IL_001D: callvirt virtual System.Int32 Verse.Map::get_Tile()
IL_0022: newobj System.Void System.Nullable`1<System.Int32>::.ctor(System.Int32
value)
IL_0027: stfld System.Nullable`1<System.Int32>
RimWorld.ThingSetMakerParams::tile
IL_002C: ldarg.0
IL_002D: ldfld Verse.ThingOwner RimWorld.TradeShip::things
IL_0032: ldsfld RimWorld.ThingSetMakerDef
RimWorld.ThingSetMakerDefOf::TraderStock
IL_0037: ldfld RimWorld.ThingSetMaker RimWorld.ThingSetMakerDef::root
IL_003C: ldloc.0
IL_003D: callvirt System.Collections.Generic.List`1<Verse.Thing>
RimWorld.ThingSetMaker::Generate(RimWorld.ThingSetMakerParams parms)
IL_0042: ldc.i4.1
IL_0043: ldc.i4.0
IL_0044: callvirt System.Void
Verse.ThingOwner::TryAddRangeOrTransfer(System.Collections.Generic.IEnumerable`1<Ve
rse.Thing> things, System.Boolean canMergeWithExistingStacks, System.Boolean
destroyLeftover)
IL_0049: // end original
IL_0049: ldarga 0
IL_004D: call static System.Void
TO.Harmony.TradeShipDepartureTime::ChangeTicksUntilDeparture(RimWorld.TradeShip&
__instance)
IL_0052: ret
DONE

### Patch: static System.Void


RimWorld.PawnInventoryGenerator::GiveRandomFood(Verse.Pawn p)
### Replacement: static System.Void
RimWorld.PawnInventoryGenerator::RimWorld.PawnInventoryGenerator.GiveRandomFood_Pat
ch1(Verse.Pawn p)
IL_0000: Local var 0: Verse.ThingDef
IL_0000: Local var 1: Verse.Thing
IL_0000: Local var 2: System.Single
IL_0000: // start original
IL_0000: ldarg.0
IL_0001: ldfld Verse.PawnKindDef Verse.Pawn::kindDef
IL_0006: ldfld System.Single Verse.PawnKindDef::invNutrition
IL_000B: ldc.r4 0.001
IL_0010: ble.un => Label0
IL_0015: ldarg.0
IL_0016: ldfld Verse.PawnKindDef Verse.Pawn::kindDef
IL_001B: ldfld Verse.ThingDef Verse.PawnKindDef::invFoodDef
IL_0020: brfalse => Label1
IL_0025: ldarg.0
IL_0026: ldfld Verse.PawnKindDef Verse.Pawn::kindDef
IL_002B: ldfld Verse.ThingDef Verse.PawnKindDef::invFoodDef
IL_0030: stloc.0
IL_0031: br => Label2
IL_0036: Label1
IL_0036: call static System.Single Verse.Rand::get_Value()
IL_003B: stloc.2
IL_003C: ldloc.2
IL_003D: ldc.r4 0.5
IL_0042: bge.un => Label3
IL_0047: ldsfld Verse.ThingDef RimWorld.ThingDefOf::MealSimple
IL_004C: stloc.0
IL_004D: br => Label4
IL_0052: Label3
IL_0052: ldloc.2
IL_0053: conv.r8
IL_0054: ldc.r8 0.75
IL_005D: bge.un => Label5
IL_0062: ldsfld Verse.ThingDef RimWorld.ThingDefOf::MealFine
IL_0067: stloc.0
IL_0068: br => Label6
IL_006D: Label5
IL_006D: ldsfld Verse.ThingDef RimWorld.ThingDefOf::MealSurvivalPack
IL_0072: stloc.0
IL_0073: Label2
IL_0073: Label4
IL_0073: Label6
IL_0073: ldloc.0
IL_0074: ldnull
IL_0075: call static Verse.Thing Verse.ThingMaker::MakeThing(Verse.ThingDef
def, Verse.ThingDef stuff)
IL_007A: stloc.1
IL_007B: ldloc.1
IL_007C: ldarg.0
IL_007D: ldfld Verse.PawnKindDef Verse.Pawn::kindDef
IL_0082: ldfld System.Single Verse.PawnKindDef::invNutrition
IL_0087: ldloc.1
IL_0088: ldsfld RimWorld.StatDef RimWorld.StatDefOf::Nutrition
IL_008D: ldc.i4.1
IL_008E: ldc.i4.m1
IL_008F: call static System.Single
RimWorld.StatExtension::GetStatValue(Verse.Thing thing, RimWorld.StatDef stat,
System.Boolean applyPostProcess, System.Int32 cacheStaleAfterTicks)
IL_0094: div
IL_0095: call static System.Int32 Verse.GenMath::RoundRandom(System.Single f)
IL_009A: stfld System.Int32 Verse.Thing::stackCount
IL_009F: ldarg.0
IL_00A0: ldfld Verse.Pawn_InventoryTracker Verse.Pawn::inventory
IL_00A5: ldloc.1
IL_00A6: callvirt System.Void
Verse.Pawn_InventoryTracker::TryAddItemNotForSale(Verse.Thing item)
IL_00AB: // end original
IL_00AB: Label0
IL_00AB: ldarg 0
IL_00AF: call static System.Void TO.Harmony.GiveExtraFood::Postfix(Verse.Pawn
p)
IL_00B4: ret
DONE

### Patch: virtual System.Boolean


RimWorld.IncidentWorker_TraderCaravanArrival::TryExecuteWorker(RimWorld.IncidentPar
ms parms)
### Replacement: static System.Boolean
RimWorld.IncidentWorker_TraderCaravanArrival::RimWorld.IncidentWorker_TraderCaravan
Arrival.TryExecuteWorker_Patch2(RimWorld.IncidentWorker_TraderCaravanArrival this,
RimWorld.IncidentParms parms)
IL_0000: Local var 0:
RimWorld.IncidentWorker_TraderCaravanArrival/<>c__DisplayClass7_0
IL_0000: Local var 1: Verse.Map
IL_0000: Local var 2: RimWorld.TraderKindDef
IL_0000: Local var 3: Verse.IntVec3
IL_0000: Local var 4: RimWorld.LordJob_TradeWithColony
IL_0000: Local var 5: System.Int32
IL_0000: Local var 6: System.Int32
IL_0000: Local var 7: Verse.Pawn
IL_0000: Local var 8: System.Boolean
IL_0000: ldc.i4 0
IL_0005: stloc 8 (System.Boolean)
IL_0009: call static System.Void TO.Harmony.CaravanExtraFood::Prefix()
IL_000E: // start original
IL_000E: newobj System.Void RimWorld.<>c__DisplayClass7_0::.ctor()
IL_0013: stloc.0
IL_0014: ldarg.1
IL_0015: ldfld RimWorld.IIncidentTarget RimWorld.IncidentParms::target
IL_001A: castclass Verse.Map
IL_001F: stloc.1
IL_0020: ldarg.0
IL_0021: ldarg.1
IL_0022: call System.Boolean
RimWorld.IncidentWorker_NeutralGroup::TryResolveParms(RimWorld.IncidentParms parms)
IL_0027: brtrue => Label0
IL_002C: ldc.i4.0
IL_002D: br => Label11
IL_0032: Label0
IL_0032: ldarg.1
IL_0033: ldfld RimWorld.Faction RimWorld.IncidentParms::faction
IL_0038: call static RimWorld.Faction RimWorld.Faction::get_OfPlayer()
IL_003D: call static System.Boolean
RimWorld.FactionUtility::HostileTo(RimWorld.Faction fac, RimWorld.Faction other)
IL_0042: brfalse => Label1
IL_0047: ldc.i4.0
IL_0048: br => Label12
IL_004D: Label1
IL_004D: ldloc.0
IL_004E: ldarg.0
IL_004F: ldarg.1
IL_0050: call System.Collections.Generic.List`1<Verse.Pawn>
RimWorld.IncidentWorker_NeutralGroup::SpawnPawns(RimWorld.IncidentParms parms)
IL_0055: stfld System.Collections.Generic.List`1<Verse.Pawn>
RimWorld.<>c__DisplayClass7_0::pawns
IL_005A: ldloc.0
IL_005B: ldfld System.Collections.Generic.List`1<Verse.Pawn>
RimWorld.<>c__DisplayClass7_0::pawns
IL_0060: callvirt virtual System.Int32
System.Collections.Generic.List`1<Verse.Pawn>::get_Count()
IL_0065: brtrue => Label2
IL_006A: ldc.i4.0
IL_006B: br => Label13
IL_0070: Label2
IL_0070: ldc.i4.0
IL_0071: stloc.s 5 (System.Int32)
IL_0073: br => Label3
IL_0078: Label6
IL_0078: ldloc.0
IL_0079: ldfld System.Collections.Generic.List`1<Verse.Pawn>
RimWorld.<>c__DisplayClass7_0::pawns
IL_007E: ldloc.s 5 (System.Int32)
IL_0080: callvirt virtual Verse.Pawn
System.Collections.Generic.List`1<Verse.Pawn>::get_Item(System.Int32 index)
IL_0085: ldfld RimWorld.Pawn_NeedsTracker Verse.Pawn::needs
IL_008A: brfalse => Label4
IL_008F: ldloc.0
IL_0090: ldfld System.Collections.Generic.List`1<Verse.Pawn>
RimWorld.<>c__DisplayClass7_0::pawns
IL_0095: ldloc.s 5 (System.Int32)
IL_0097: callvirt virtual Verse.Pawn
System.Collections.Generic.List`1<Verse.Pawn>::get_Item(System.Int32 index)
IL_009C: ldfld RimWorld.Pawn_NeedsTracker Verse.Pawn::needs
IL_00A1: ldfld RimWorld.Need_Food RimWorld.Pawn_NeedsTracker::food
IL_00A6: brfalse => Label5
IL_00AB: ldloc.0
IL_00AC: ldfld System.Collections.Generic.List`1<Verse.Pawn>
RimWorld.<>c__DisplayClass7_0::pawns
IL_00B1: ldloc.s 5 (System.Int32)
IL_00B3: callvirt virtual Verse.Pawn
System.Collections.Generic.List`1<Verse.Pawn>::get_Item(System.Int32 index)
IL_00B8: ldfld RimWorld.Pawn_NeedsTracker Verse.Pawn::needs
IL_00BD: ldfld RimWorld.Need_Food RimWorld.Pawn_NeedsTracker::food
IL_00C2: ldloc.0
IL_00C3: ldfld System.Collections.Generic.List`1<Verse.Pawn>
RimWorld.<>c__DisplayClass7_0::pawns
IL_00C8: ldloc.s 5 (System.Int32)
IL_00CA: callvirt virtual Verse.Pawn
System.Collections.Generic.List`1<Verse.Pawn>::get_Item(System.Int32 index)
IL_00CF: ldfld RimWorld.Pawn_NeedsTracker Verse.Pawn::needs
IL_00D4: ldfld RimWorld.Need_Food RimWorld.Pawn_NeedsTracker::food
IL_00D9: callvirt virtual System.Single RimWorld.Need::get_MaxLevel()
IL_00DE: callvirt virtual System.Void RimWorld.Need::set_CurLevel(System.Single
value)
IL_00E3: Label4
IL_00E3: Label5
IL_00E3: ldloc.s 5 (System.Int32)
IL_00E5: ldc.i4.1
IL_00E6: add
IL_00E7: stloc.s 5 (System.Int32)
IL_00E9: Label3
IL_00E9: ldloc.s 5 (System.Int32)
IL_00EB: ldloc.0
IL_00EC: ldfld System.Collections.Generic.List`1<Verse.Pawn>
RimWorld.<>c__DisplayClass7_0::pawns
IL_00F1: callvirt virtual System.Int32
System.Collections.Generic.List`1<Verse.Pawn>::get_Count()
IL_00F6: blt => Label6
IL_00FB: ldnull
IL_00FC: stloc.2
IL_00FD: ldc.i4.0
IL_00FE: stloc.s 6 (System.Int32)
IL_0100: br => Label7
IL_0105: Label10
IL_0105: ldloc.0
IL_0106: ldfld System.Collections.Generic.List`1<Verse.Pawn>
RimWorld.<>c__DisplayClass7_0::pawns
IL_010B: ldloc.s 6 (System.Int32)
IL_010D: callvirt virtual Verse.Pawn
System.Collections.Generic.List`1<Verse.Pawn>::get_Item(System.Int32 index)
IL_0112: stloc.s 7 (Verse.Pawn)
IL_0114: ldloc.s 7 (Verse.Pawn)
IL_0116: callvirt virtual RimWorld.TraderKindDef Verse.Pawn::get_TraderKind()
IL_011B: brfalse => Label8
IL_0120: ldloc.s 7 (Verse.Pawn)
IL_0122: callvirt virtual RimWorld.TraderKindDef Verse.Pawn::get_TraderKind()
IL_0127: stloc.2
IL_0128: br => Label9
IL_012D: Label8
IL_012D: ldloc.s 6 (System.Int32)
IL_012F: ldc.i4.1
IL_0130: add
IL_0131: stloc.s 6 (System.Int32)
IL_0133: Label7
IL_0133: ldloc.s 6 (System.Int32)
IL_0135: ldloc.0
IL_0136: ldfld System.Collections.Generic.List`1<Verse.Pawn>
RimWorld.<>c__DisplayClass7_0::pawns
IL_013B: callvirt virtual System.Int32
System.Collections.Generic.List`1<Verse.Pawn>::get_Count()
IL_0140: blt => Label10
IL_0145: Label9
IL_0145: ldarg.0
IL_0146: ldarg.1
IL_0147: ldloc.0
IL_0148: ldfld System.Collections.Generic.List`1<Verse.Pawn>
RimWorld.<>c__DisplayClass7_0::pawns
IL_014D: ldloc.2
IL_014E: callvirt virtual System.Void
RimWorld.IncidentWorker_TraderCaravanArrival::SendLetter(RimWorld.IncidentParms
parms, System.Collections.Generic.List`1<Verse.Pawn> pawns, RimWorld.TraderKindDef
traderKind)
IL_0153: ldloc.0
IL_0154: ldfld System.Collections.Generic.List`1<Verse.Pawn>
RimWorld.<>c__DisplayClass7_0::pawns
IL_0159: ldc.i4.0
IL_015A: callvirt virtual Verse.Pawn
System.Collections.Generic.List`1<Verse.Pawn>::get_Item(System.Int32 index)
IL_015F: callvirt virtual Verse.IntVec3 Verse.Thing::get_Position()
IL_0164: ldloc.0
IL_0165: ldfld System.Collections.Generic.List`1<Verse.Pawn>
RimWorld.<>c__DisplayClass7_0::pawns
IL_016A: ldc.i4.0
IL_016B: callvirt virtual Verse.Pawn
System.Collections.Generic.List`1<Verse.Pawn>::get_Item(System.Int32 index)
IL_0170: callvirt Verse.Map Verse.Thing::get_MapHeld()
IL_0175: ldloc.0
IL_0176: ldfld System.Collections.Generic.List`1<Verse.Pawn>
RimWorld.<>c__DisplayClass7_0::pawns
IL_017B: ldc.i4.0
IL_017C: callvirt virtual Verse.Pawn
System.Collections.Generic.List`1<Verse.Pawn>::get_Item(System.Int32 index)
IL_0181: ldloca.s 3 (Verse.IntVec3)
IL_0183: ldloc.0
IL_0184: ldftn System.Boolean
RimWorld.<>c__DisplayClass7_0::<TryExecuteWorker>b__0(Verse.IntVec3 c)
IL_018A: newobj System.Void
System.Predicate`1<Verse.IntVec3>::.ctor(System.Object object, System.IntPtr
method)
IL_018F: call static System.Boolean
RimWorld.RCellFinder::TryFindRandomSpotJustOutsideColony(Verse.IntVec3 root,
Verse.Map map, Verse.Pawn searcher, Verse.IntVec3& result,
System.Predicate`1<Verse.IntVec3> extraValidator)
IL_0194: pop
IL_0195: ldarg.1
IL_0196: ldfld RimWorld.Faction RimWorld.IncidentParms::faction
IL_019B: ldloc.3
IL_019C: newobj System.Void
RimWorld.LordJob_TradeWithColony::.ctor(RimWorld.Faction faction, Verse.IntVec3
chillSpot)
IL_01A1: stloc.s 4 (RimWorld.LordJob_TradeWithColony)
IL_01A3: ldarg.1
IL_01A4: ldfld RimWorld.Faction RimWorld.IncidentParms::faction
IL_01A9: ldloc.s 4 (RimWorld.LordJob_TradeWithColony)
IL_01AB: ldloc.1
IL_01AC: ldloc.0
IL_01AD: ldfld System.Collections.Generic.List`1<Verse.Pawn>
RimWorld.<>c__DisplayClass7_0::pawns
IL_01B2: call static Verse.AI.Group.Lord
Verse.AI.Group.LordMaker::MakeNewLord(RimWorld.Faction faction,
Verse.AI.Group.LordJob lordJob, Verse.Map map,
System.Collections.Generic.IEnumerable`1<Verse.Pawn> startingPawns)
IL_01B7: pop
IL_01B8: ldc.i4.1
IL_01B9: // end original
IL_01B9: Label11
IL_01B9: Label12
IL_01B9: Label13
IL_01B9: stloc 8 (System.Boolean)
IL_01BD: call static System.Void TO.Harmony.CaravanExtraFood::Postfix()
IL_01C2: ldloc 8 (System.Boolean)
IL_01C6: ret
DONE

### Patch: virtual System.Boolean


RimWorld.IncidentWorker_VisitorGroup::TryExecuteWorker(RimWorld.IncidentParms
parms)
### Replacement: static System.Boolean
RimWorld.IncidentWorker_VisitorGroup::RimWorld.IncidentWorker_VisitorGroup.TryExecu
teWorker_Patch2(RimWorld.IncidentWorker_VisitorGroup this, RimWorld.IncidentParms
parms)
IL_0000: Local var 0: RimWorld.IncidentWorker_VisitorGroup/<>c__DisplayClass3_0
IL_0000: Local var 1: Verse.Map
IL_0000: Local var 2: System.Collections.Generic.List`1<Verse.Pawn>
IL_0000: Local var 3: System.Boolean
IL_0000: Local var 4: Verse.Pawn
IL_0000: Local var 5: System.Boolean
IL_0000: ldc.i4 0
IL_0005: stloc 5 (System.Boolean)
IL_0009: call static System.Void TO.Harmony.VisitorExtraFood::Prefix()
IL_000E: // start original
IL_000E: newobj System.Void RimWorld.<>c__DisplayClass3_0::.ctor()
IL_0013: stloc.0
IL_0014: ldloc.0
IL_0015: ldarg.1
IL_0016: stfld RimWorld.IncidentParms RimWorld.<>c__DisplayClass3_0::parms
IL_001B: ldloc.0
IL_001C: ldfld RimWorld.IncidentParms RimWorld.<>c__DisplayClass3_0::parms
IL_0021: ldfld RimWorld.IIncidentTarget RimWorld.IncidentParms::target
IL_0026: castclass Verse.Map
IL_002B: stloc.1
IL_002C: ldarg.0
IL_002D: ldloc.0
IL_002E: ldfld RimWorld.IncidentParms RimWorld.<>c__DisplayClass3_0::parms
IL_0033: call System.Boolean
RimWorld.IncidentWorker_NeutralGroup::TryResolveParms(RimWorld.IncidentParms parms)
IL_0038: brtrue => Label0
IL_003D: ldc.i4.0
IL_003E: br => Label3
IL_0043: Label0
IL_0043: ldarg.0
IL_0044: ldloc.0
IL_0045: ldfld RimWorld.IncidentParms RimWorld.<>c__DisplayClass3_0::parms
IL_004A: call System.Collections.Generic.List`1<Verse.Pawn>
RimWorld.IncidentWorker_NeutralGroup::SpawnPawns(RimWorld.IncidentParms parms)
IL_004F: stloc.2
IL_0050: ldloc.2
IL_0051: callvirt virtual System.Int32
System.Collections.Generic.List`1<Verse.Pawn>::get_Count()
IL_0056: brtrue => Label1
IL_005B: ldc.i4.0
IL_005C: br => Label4
IL_0061: Label1
IL_0061: ldloc.0
IL_0062: ldfld RimWorld.IncidentParms RimWorld.<>c__DisplayClass3_0::parms
IL_0067: ldfld RimWorld.Faction RimWorld.IncidentParms::faction
IL_006C: ldarg.0
IL_006D: ldloc.0
IL_006E: ldfld RimWorld.IncidentParms RimWorld.<>c__DisplayClass3_0::parms
IL_0073: ldloc.2
IL_0074: callvirt virtual RimWorld.LordJob_VisitColony
RimWorld.IncidentWorker_VisitorGroup::CreateLordJob(RimWorld.IncidentParms parms,
System.Collections.Generic.List`1<Verse.Pawn> pawns)
IL_0079: ldloc.1
IL_007A: ldloc.2
IL_007B: call static Verse.AI.Group.Lord
Verse.AI.Group.LordMaker::MakeNewLord(RimWorld.Faction faction,
Verse.AI.Group.LordJob lordJob, Verse.Map map,
System.Collections.Generic.IEnumerable`1<Verse.Pawn> startingPawns)
IL_0080: pop
IL_0081: ldc.i4.0
IL_0082: stloc.3
IL_0083: call static System.Single Verse.Rand::get_Value()
IL_0088: ldc.r4 0.75
IL_008D: bge.un => Label2
IL_0092: ldarg.0
IL_0093: ldloc.2
IL_0094: ldloc.0
IL_0095: ldfld RimWorld.IncidentParms RimWorld.<>c__DisplayClass3_0::parms
IL_009A: ldfld RimWorld.Faction RimWorld.IncidentParms::faction
IL_009F: ldloc.1
IL_00A0: call System.Boolean
RimWorld.IncidentWorker_VisitorGroup::TryConvertOnePawnToSmallTrader(System.Collect
ions.Generic.List`1<Verse.Pawn> pawns, RimWorld.Faction faction, Verse.Map map)
IL_00A5: stloc.3
IL_00A6: Label2
IL_00A6: ldloc.2
IL_00A7: ldloc.0
IL_00A8: ldftn System.Boolean
RimWorld.<>c__DisplayClass3_0::<TryExecuteWorker>b__0(Verse.Pawn x)
IL_00AE: newobj System.Void System.Predicate`1<Verse.Pawn>::.ctor(System.Object
object, System.IntPtr method)
IL_00B3: callvirt Verse.Pawn
System.Collections.Generic.List`1<Verse.Pawn>::Find(System.Predicate`1<Verse.Pawn>
match)
IL_00B8: stloc.s 4 (Verse.Pawn)
IL_00BA: ldarg.0
IL_00BB: ldloc.0
IL_00BC: ldfld RimWorld.IncidentParms RimWorld.<>c__DisplayClass3_0::parms
IL_00C1: ldloc.2
IL_00C2: ldloc.s 4 (Verse.Pawn)
IL_00C4: ldloc.3
IL_00C5: callvirt virtual System.Void
RimWorld.IncidentWorker_VisitorGroup::SendLetter(RimWorld.IncidentParms parms,
System.Collections.Generic.List`1<Verse.Pawn> pawns, Verse.Pawn leader,
System.Boolean traderExists)
IL_00CA: ldc.i4.1
IL_00CB: // end original
IL_00CB: Label3
IL_00CB: Label4
IL_00CB: stloc 5 (System.Boolean)
IL_00CF: call static System.Void TO.Harmony.VisitorExtraFood::Postfix()
IL_00D4: ldloc 5 (System.Boolean)
IL_00D8: ret
DONE

### Harmony id=net.velc.rimworld.mod.trapdisable, version=2.2.2.0, location=C:\


Program Files (x86)\Steam\steamapps\common\data-000002130553D010,
env/clr=4.0.30319.42000, platform=Win32NT, ptrsize:runtime/env=8/Bits64, Windows
### Started from static System.Void TrapDisable.HarmonyPatches::.cctor(), location
C:\Program Files (x86)\Steam\steamapps\common\data-00000213098A0DB0
### At 2023-02-17 06.57.40
### Patch: System.Void RimWorld.Building_Trap::CheckSpring(Verse.Pawn p)
### Replacement: static System.Void
RimWorld.Building_Trap::RimWorld.Building_Trap.CheckSpring_Patch1(RimWorld.Building
_Trap this, Verse.Pawn p)
IL_0000: Local var 0: Verse.Map
IL_0000: Local var 1: Verse.TaggedString
IL_0000: Local var 2: System.Boolean
IL_0000: ldc.i4 0
IL_0005: stloc 2 (System.Boolean)
IL_0009: ldc.i4.1
IL_000A: stloc 2 (System.Boolean)
IL_000E: ldloc 2 (System.Boolean)
IL_0012: brfalse => Label1
IL_0017: ldarg 1
IL_001B: call static System.Boolean
TrapDisable.HarmonyPatches::Building_Trap_CheckSpring(Verse.Pawn p)
IL_0020: stloc 2 (System.Boolean)
IL_0024: Label1
IL_0024: nop
IL_0025: ldloc 2 (System.Boolean)
IL_0029: brfalse => Label0
IL_002E: // start original
IL_002E: ldarg.0
IL_002F: ldarg.1
IL_0030: callvirt virtual System.Single
RimWorld.Building_Trap::SpringChance(Verse.Pawn p)
IL_0035: call static System.Boolean Verse.Rand::Chance(System.Single chance)
IL_003A: brfalse => Label2
IL_003F: ldarg.0
IL_0040: call virtual Verse.Map Verse.Thing::get_Map()
IL_0045: stloc.0
IL_0046: ldarg.0
IL_0047: ldarg.1
IL_0048: call System.Void RimWorld.Building_Trap::Spring(Verse.Pawn p)
IL_004D: ldarg.1
IL_004E: callvirt virtual RimWorld.Faction Verse.Thing::get_Faction()
IL_0053: call static RimWorld.Faction RimWorld.Faction::get_OfPlayer()
IL_0058: beq => Label3
IL_005D: ldarg.1
IL_005E: callvirt RimWorld.Faction Verse.Pawn::get_HostFaction()
IL_0063: call static RimWorld.Faction RimWorld.Faction::get_OfPlayer()
IL_0068: bne.un => Label4
IL_006D: Label3
IL_006D: call static Verse.LetterStack Verse.Find::get_LetterStack()
IL_0072: ldstr "LetterFriendlyTrapSprungLabel"
IL_0077: ldarg.1
IL_0078: callvirt virtual System.String Verse.Entity::get_LabelShort()
IL_007D: call static Verse.NamedArgument
Verse.NamedArgument::op_Implicit(System.String value)
IL_0082: ldarg.1
IL_0083: call static Verse.NamedArgument
Verse.NamedArgument::op_Implicit(Verse.Thing value)
IL_0088: call static Verse.TaggedString
Verse.TranslatorFormattedStringExtensions::Translate(System.String key,
Verse.NamedArgument arg1, Verse.NamedArgument arg2)
IL_008D: stloc.1
IL_008E: ldloca.s 1 (Verse.TaggedString)
IL_0090: call Verse.TaggedString Verse.TaggedString::CapitalizeFirst()
IL_0095: ldstr "LetterFriendlyTrapSprung"
IL_009A: ldarg.1
IL_009B: callvirt virtual System.String Verse.Entity::get_LabelShort()
IL_00A0: call static Verse.NamedArgument
Verse.NamedArgument::op_Implicit(System.String value)
IL_00A5: ldarg.1
IL_00A6: call static Verse.NamedArgument
Verse.NamedArgument::op_Implicit(Verse.Thing value)
IL_00AB: call static Verse.TaggedString
Verse.TranslatorFormattedStringExtensions::Translate(System.String key,
Verse.NamedArgument arg1, Verse.NamedArgument arg2)
IL_00B0: stloc.1
IL_00B1: ldloca.s 1 (Verse.TaggedString)
IL_00B3: call Verse.TaggedString Verse.TaggedString::CapitalizeFirst()
IL_00B8: ldsfld Verse.LetterDef RimWorld.LetterDefOf::NegativeEvent
IL_00BD: ldarg.0
IL_00BE: call virtual Verse.IntVec3 Verse.Thing::get_Position()
IL_00C3: ldloc.0
IL_00C4: ldc.i4.0
IL_00C5: newobj System.Void Verse.TargetInfo::.ctor(Verse.IntVec3 cell,
Verse.Map map, System.Boolean allowNullMap)
IL_00CA: call static Verse.LookTargets
Verse.LookTargets::op_Implicit(Verse.TargetInfo target)
IL_00CF: ldnull
IL_00D0: ldnull
IL_00D1: ldnull
IL_00D2: ldnull
IL_00D3: callvirt System.Void Verse.LetterStack::ReceiveLetter(Verse.TaggedString
label, Verse.TaggedString text, Verse.LetterDef textLetterDef, Verse.LookTargets
lookTargets, RimWorld.Faction relatedFaction, RimWorld.Quest quest,
System.Collections.Generic.List`1<Verse.ThingDef> hyperlinkThingDefs, System.String
debugInfo)
IL_00D8: // end original
IL_00D8: Label2
IL_00D8: Label4
IL_00D8: Label0
IL_00D8: ret
DONE

### Harmony id=OskarPotocki.HeavyWeapons, version=2.2.2.0, location=C:\Program


Files (x86)\Steam\steamapps\common\data-000002130553D010, env/clr=4.0.30319.42000,
platform=Win32NT, ptrsize:runtime/env=8/Bits64, Windows
### Started from static System.Void HeavyWeapons.HarmonyInit::.cctor(), location
C:\Program Files (x86)\Steam\steamapps\common\data-00000213098E4E30
### At 2023-02-17 06.57.40
### Patch: static System.Void
RimWorld.FloatMenuMakerMap::AddHumanlikeOrders(UnityEngine.Vector3 clickPos,
Verse.Pawn pawn, System.Collections.Generic.List`1<Verse.FloatMenuOption> opts)
### Replacement: static System.Void
RimWorld.FloatMenuMakerMap::RimWorld.FloatMenuMakerMap.AddHumanlikeOrders_Patch6(Un
ityEngine.Vector3 clickPos, Verse.Pawn pawn,
System.Collections.Generic.List`1<Verse.FloatMenuOption> opts)
IL_0000: Local var 0: RimWorld.FloatMenuMakerMap/<>c__DisplayClass10_0
IL_0000: Local var 1: Verse.IntVec3
IL_0000: Local var 2: System.Collections.Generic.List`1/Enumerator<Verse.Thing>
IL_0000: Local var 3: Verse.Pawn
IL_0000: Local var 4: Verse.AI.Group.Lord
IL_0000: Local var 5:
System.Collections.Generic.IEnumerable`1<Verse.FloatMenuOption>
IL_0000: Local var 6:
System.Collections.Generic.IEnumerator`1<Verse.FloatMenuOption>
IL_0000: Local var 7: Verse.FloatMenuOption
IL_0000: Local var 8:
System.Collections.Generic.IEnumerator`1<Verse.LocalTargetInfo>
IL_0000: Local var 9: Verse.LocalTargetInfo
IL_0000: Local var 10: System.Boolean
IL_0000: Local var 11: Verse.TaggedString
IL_0000: Local var 12: RimWorld.FloatMenuMakerMap/<>c__DisplayClass10_1
IL_0000: Local var 13: System.Action
IL_0000: Local var 14: Verse.Thing
IL_0000: Local var 15: RimWorld.FloatMenuMakerMap/<>c__DisplayClass10_2
IL_0000: Local var 16: Verse.FloatMenuOption
IL_0000: Local var 17: System.String
IL_0000: Local var 18: Verse.MenuOptionPriority
IL_0000: Local var 19: Verse.LocalTargetInfo
IL_0000: Local var 20: RimWorld.FloatMenuMakerMap/<>c__DisplayClass10_3
IL_0000: Local var 21: Verse.FloatMenuOption
IL_0000: Local var 22: System.Collections.Generic.List`1<Verse.Thing>
IL_0000: Local var 23: Verse.Thing
IL_0000: Local var 24: RimWorld.FloatMenuMakerMap/<>c__DisplayClass10_4
IL_0000: Local var 25: RimWorld.IHaulDestination
IL_0000: Local var 26: RimWorld.StoragePriority
IL_0000: Local var 27: RimWorld.FloatMenuMakerMap/<>c__DisplayClass10_5
IL_0000: Local var 28: Verse.Thing
IL_0000: Local var 29: RimWorld.FloatMenuMakerMap/<>c__DisplayClass10_6
IL_0000: Local var 30: Verse.LocalTargetInfo
IL_0000: Local var 31: RimWorld.FloatMenuMakerMap/<>c__DisplayClass10_7
IL_0000: Local var 32: RimWorld.FloatMenuMakerMap/<>c__DisplayClass10_8
IL_0000: Local var 33:
System.Nullable`1<RimWorld.ChildcareUtility/BreastfeedFailReason>
IL_0000: Local var 34: Verse.TaggedString
IL_0000: Local var 35: Verse.TaggedString
IL_0000: Local var 36: RimWorld.FloatMenuMakerMap/<>c__DisplayClass10_9
IL_0000: Local var 37: Verse.LocalTargetInfo
IL_0000: Local var 38: RimWorld.FloatMenuMakerMap/<>c__DisplayClass10_10
IL_0000: Local var 39: System.String
IL_0000: Local var 40: System.Action
IL_0000: Local var 41: Verse.LocalTargetInfo
IL_0000: Local var 42: Verse.Pawn
IL_0000: Local var 43: RimWorld.FloatMenuMakerMap/<>c__DisplayClass10_11
IL_0000: Local var 44: Verse.LocalTargetInfo
IL_0000: Local var 45: System.Predicate`1<Verse.Thing>
IL_0000: Local var 46: System.String
IL_0000: Local var 47: System.Action
IL_0000: Local var 48: RimWorld.FloatMenuMakerMap/<>c__DisplayClass10_12
IL_0000: Local var 49: RimWorld.CompHackable
IL_0000: Local var 50: Verse.TaggedString
IL_0000: Local var 51: RimWorld.FloatMenuMakerMap/<>c__DisplayClass10_13
IL_0000: Local var 52: RimWorld.FloatMenuMakerMap/<>c__DisplayClass10_14
IL_0000: Local var 53: RimWorld.FloatMenuMakerMap/<>c__DisplayClass10_15
IL_0000: Local var 54: System.String
IL_0000: Local var 55: Verse.IntVec3
IL_0000: Local var 56: RimWorld.IHaulDestination
IL_0000: Local var 57: RimWorld.FloatMenuMakerMap/<>c__DisplayClass10_16
IL_0000: Local var 58: System.Collections.Generic.IEnumerable`1<Verse.Thing>
IL_0000: Local var 59: System.Func`2<Verse.Thing,System.Boolean>
IL_0000: Local var 60: System.Collections.Generic.IEnumerator`1<Verse.Thing>
IL_0000: Local var 61: Verse.Thing
IL_0000: Local var 62: RimWorld.FloatMenuMakerMap/<>c__DisplayClass10_17
IL_0000: Local var 63: Verse.Thing
IL_0000: Local var 64: System.Collections.Generic.IEnumerable`1<Verse.Thing>
IL_0000: Local var 65: Verse.Thing
IL_0000: Local var 66: System.Predicate`1<Verse.Thing>
IL_0000: Local var 67: RimWorld.FloatMenuMakerMap/<>c__DisplayClass10_18
IL_0000: Local var 68: RimWorld.FloatMenuMakerMap/<>c__DisplayClass10_19
IL_0000: Local var 69: RimWorld.FloatMenuMakerMap/<>c__DisplayClass10_20
IL_0000: Local var 70: Verse.Pawn
IL_0000: Local var 71: Verse.AcceptanceReport
IL_0000: Local var 72: Verse.Thing
IL_0000: Local var 73: RimWorld.FloatMenuMakerMap/<>c__DisplayClass10_21
IL_0000: Local var 74: RimWorld.FloatMenuMakerMap/<>c__DisplayClass10_22
IL_0000: Local var 75: System.Collections.Generic.List`1<Verse.Thing>
IL_0000: Local var 76: System.Int32
IL_0000: Local var 77: RimWorld.FloatMenuMakerMap/<>c__DisplayClass10_23
IL_0000: Local var 78: Verse.AcceptanceReport
IL_0000: Local var 79: System.Boolean
IL_0000: Local var 80: RimWorld.Building_Bed
IL_0000: Local var 81: Verse.CellRect/Enumerator
IL_0000: Local var 82: Verse.CellRect
IL_0000: Local var 83: Verse.LocalTargetInfo
IL_0000: Local var 84: RimWorld.FloatMenuMakerMap/<>c__DisplayClass10_24
IL_0000: Local var 85: Verse.AcceptanceReport
IL_0000: Local var 86: Verse.LocalTargetInfo
IL_0000: Local var 87: RimWorld.FloatMenuMakerMap/<>c__DisplayClass10_25
IL_0000: Local var 88: RimWorld.FloatMenuMakerMap/<>c__DisplayClass10_26
IL_0000: Local var 89: System.Nullable`1<RimWorld.GuestStatus>
IL_0000: Local var 90: Verse.LocalTargetInfo
IL_0000: Local var 91: RimWorld.FloatMenuMakerMap/<>c__DisplayClass10_27
IL_0000: Local var 92: Verse.FloatMenuOption
IL_0000: Local var 93: Verse.LocalTargetInfo
IL_0000: Local var 94: RimWorld.FloatMenuMakerMap/<>c__DisplayClass10_28
IL_0000: Local var 95: Verse.FloatMenuOption
IL_0000: Local var 96:
System.Nullable`1<RimWorld.ChildcareUtility/BreastfeedFailReason>
IL_0000: Local var 97: Verse.LocalTargetInfo
IL_0000: Local var 98: Verse.Pawn
IL_0000: Local var 99: System.Boolean
IL_0000: Local var 100: Verse.FloatMenuOption
IL_0000: Local var 101: System.Single
IL_0000: Local var 102: Verse.LocalTargetInfo
IL_0000: Local var 103: RimWorld.FloatMenuMakerMap/<>c__DisplayClass10_29
IL_0000: Local var 104: Verse.FloatMenuOption
IL_0000: Local var 105: System.Collections.Generic.List`1<Verse.Thing>
IL_0000: Local var 106: System.Int32
IL_0000: Local var 107: RimWorld.FloatMenuMakerMap/<>c__DisplayClass10_30
IL_0000: Local var 108: System.String
IL_0000: Local var 109: Verse.FloatMenuOption
IL_0000: Local var 110: System.String
IL_0000: Local var 111: System.String
IL_0000: Local var 112: RimWorld.FloatMenuMakerMap/<>c__DisplayClass10_31
IL_0000: Local var 113:
System.Collections.Generic.IEnumerator`1<Verse.Pair`2<RimWorld.CompReloadable,Verse
.Thing>>
IL_0000: Local var 114: Verse.Pair`2<RimWorld.CompReloadable,Verse.Thing>
IL_0000: Local var 115: RimWorld.FloatMenuMakerMap/<>c__DisplayClass10_32
IL_0000: Local var 116: Verse.Thing
IL_0000: Local var 117: System.String
IL_0000: Local var 118: System.Collections.Generic.List`1<Verse.Thing>
IL_0000: Local var 119: System.Action
IL_0000: Local var 120: Verse.Thing
IL_0000: Local var 121: RimWorld.FloatMenuMakerMap/<>c__DisplayClass10_33
IL_0000: Local var 122: System.String
IL_0000: Local var 123: System.String
IL_0000: Local var 124: Verse.FloatMenuOption
IL_0000: Local var 125: System.String
IL_0000: Local var 126: RimWorld.FloatMenuMakerMap/<>c__DisplayClass10_34
IL_0000: Local var 127: RimWorld.FloatMenuMakerMap/<>c__DisplayClass10_35
IL_0000: Local var 128: RimWorld.FloatMenuMakerMap/<>c__DisplayClass10_36
IL_0000: Local var 129: RimWorld.LordJob_FormAndSendCaravan
IL_0000: Local var 130: System.Single
IL_0000: Local var 131: System.Single
IL_0000: Local var 132: RimWorld.FloatMenuMakerMap/<>c__DisplayClass10_37
IL_0000: Local var 133: RimWorld.FloatMenuMakerMap/<>c__DisplayClass10_38
IL_0000: Local var 134: RimWorld.FloatMenuMakerMap/<>c__DisplayClass10_39
IL_0000: Local var 135: RimWorld.FloatMenuMakerMap/<>c__DisplayClass10_40
IL_0000: Local var 136: Verse.LocalTargetInfo
IL_0000: Local var 137: RimWorld.FloatMenuMakerMap/<>c__DisplayClass10_41
IL_0000: Local var 138: RimWorld.FloatMenuMakerMap/<>c__DisplayClass10_42
IL_0000: Local var 139: Verse.TaggedString
IL_0000: Local var 140: System.Action
IL_0000: Local var 141: Verse.LocalTargetInfo
IL_0000: Local var 142: Verse.AcceptanceReport
IL_0000: Local var 143: RimWorld.FloatMenuMakerMap/<>c__DisplayClass10_43
IL_0000: Local var 144: System.Action
IL_0000: Local var 145: System.String
IL_0000: Local var 146: RimWorld.FloatMenuMakerMap/<>c__DisplayClass10_44
IL_0000: Local var 147: Verse.FloatMenuOption
IL_0000: // start original
IL_0000: newobj System.Void RimWorld.<>c__DisplayClass10_0::.ctor()
IL_0005: stloc.0
IL_0006: ldloc.0
IL_0007: ldarg.1
IL_0008: stfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_000D: ldarg.0
IL_000E: call static Verse.IntVec3
Verse.IntVec3::FromVector3(UnityEngine.Vector3 v)
IL_0013: stloc.1
IL_0014: ldloc.1
IL_0015: ldloc.0
IL_0016: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_001B: callvirt virtual Verse.Map Verse.Thing::get_Map()
IL_0020: call static System.Collections.Generic.List`1<Verse.Thing>
Verse.GridsUtility::GetThingList(Verse.IntVec3 c, Verse.Map map)
IL_0025: callvirt System.Collections.Generic.Enumerator<Verse.Thing>
System.Collections.Generic.List`1<Verse.Thing>::GetEnumerator()
IL_002A: stloc.2
.try
{
IL_002B: br => Label0
IL_0030: Label9
IL_0030: ldloca.s 2
(System.Collections.Generic.List`1+Enumerator[Verse.Thing])
IL_0032: call virtual Verse.Thing
System.Collections.Generic.Enumerator<Verse.Thing>::get_Current()
IL_0037: isinst Verse.Pawn
IL_003C: dup
IL_003D: stloc.3
IL_003E: brfalse => Label1
IL_0043: ldloc.3
IL_0044: call static Verse.AI.Group.Lord
Verse.AI.Group.LordUtility::GetLord(Verse.Pawn p)
IL_0049: stloc.s 4 (Verse.AI.Group.Lord)
IL_004B: ldloc.s 4 (Verse.AI.Group.Lord)
IL_004D: brfalse => Label2
IL_0052: ldloc.s 4 (Verse.AI.Group.Lord)
IL_0054: callvirt Verse.AI.Group.LordToil
Verse.AI.Group.Lord::get_CurLordToil()
IL_0059: brfalse => Label3
IL_005E: ldloc.s 4 (Verse.AI.Group.Lord)
IL_0060: callvirt Verse.AI.Group.LordToil
Verse.AI.Group.Lord::get_CurLordToil()
IL_0065: ldloc.3
IL_0066: ldloc.0
IL_0067: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_006C: callvirt virtual
System.Collections.Generic.IEnumerable`1<Verse.FloatMenuOption>
Verse.AI.Group.LordToil::ExtraFloatMenuOptions(Verse.Pawn target, Verse.Pawn
forPawn)
IL_0071: stloc.s 5
(System.Collections.Generic.IEnumerable`1[Verse.FloatMenuOption])
IL_0073: ldloc.s 5
(System.Collections.Generic.IEnumerable`1[Verse.FloatMenuOption])
IL_0075: brfalse => Label4
IL_007A: ldloc.s 5
(System.Collections.Generic.IEnumerable`1[Verse.FloatMenuOption])
IL_007C: callvirt abstract virtual
System.Collections.Generic.IEnumerator`1<Verse.FloatMenuOption>
System.Collections.Generic.IEnumerable`1<Verse.FloatMenuOption>::GetEnumerator()
IL_0081: stloc.s 6
(System.Collections.Generic.IEnumerator`1[Verse.FloatMenuOption])
.try
{
IL_0083: br => Label5
IL_0088: Label6
IL_0088: ldloc.s 6
(System.Collections.Generic.IEnumerator`1[Verse.FloatMenuOption])
IL_008A: callvirt abstract virtual Verse.FloatMenuOption
System.Collections.Generic.IEnumerator`1<Verse.FloatMenuOption>::get_Current()
IL_008F: stloc.s 7 (Verse.FloatMenuOption)
IL_0091: ldarg.2
IL_0092: ldloc.s 7 (Verse.FloatMenuOption)
IL_0094: callvirt virtual System.Void
System.Collections.Generic.List`1<Verse.FloatMenuOption>::Add(Verse.FloatMenuOption
item)
IL_0099: Label5
IL_0099: ldloc.s 6
(System.Collections.Generic.IEnumerator`1[Verse.FloatMenuOption])
IL_009B: callvirt abstract virtual System.Boolean
System.Collections.IEnumerator::MoveNext()
IL_00A0: brtrue => Label6
IL_00A5: leave => Label7
IL_00AA: leave => (autogenerated)
} // end try
.finally
{
IL_00AF: ldloc.s 6
(System.Collections.Generic.IEnumerator`1[Verse.FloatMenuOption])
IL_00B1: brfalse => Label8
IL_00B6: ldloc.s 6
(System.Collections.Generic.IEnumerator`1[Verse.FloatMenuOption])
IL_00B8: callvirt abstract virtual System.Void
System.IDisposable::Dispose()
IL_00BD: Label8
IL_00BD: endfinally
IL_00BE: leave => (autogenerated)
} // end handler
IL_00BF: Label0
IL_00BF: Label1
IL_00BF: Label2
IL_00BF: Label3
IL_00BF: Label4
IL_00BF: Label7
IL_00BF: ldloca.s 2
(System.Collections.Generic.List`1+Enumerator[Verse.Thing])
IL_00C1: call virtual System.Boolean
System.Collections.Generic.Enumerator<Verse.Thing>::MoveNext()
IL_00C6: brtrue => Label9
IL_00CB: leave => Label10
IL_00D0: leave => (autogenerated)
} // end try
.finally
{
IL_00D5: ldloca.s 2
(System.Collections.Generic.List`1+Enumerator[Verse.Thing])
IL_00D7: constrained.
System.Collections.Generic.List`1+Enumerator[Verse.Thing]
IL_00DD: callvirt abstract virtual System.Void
System.IDisposable::Dispose()
IL_00E2: endfinally
IL_00E3: leave => (autogenerated)
} // end handler
IL_00E4: Label10
IL_00E4: ldloc.0
IL_00E5: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_00EA: ldfld Verse.Pawn_HealthTracker Verse.Pawn::health
IL_00EF: ldfld Verse.PawnCapacitiesHandler
Verse.Pawn_HealthTracker::capacities
IL_00F4: ldsfld Verse.PawnCapacityDef RimWorld.PawnCapacityDefOf::Manipulation
IL_00F9: callvirt System.Boolean
Verse.PawnCapacitiesHandler::CapableOf(Verse.PawnCapacityDef capacity)
IL_00FE: brfalse => Label11
IL_0103: ldarg.0
IL_0104: ldloc.0
IL_0105: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_010A: call static RimWorld.TargetingParameters
RimWorld.TargetingParameters::ForArrest(Verse.Pawn arrester)
IL_010F: ldc.i4.1
IL_0110: ldnull
IL_0111: call static
System.Collections.Generic.IEnumerable`1<Verse.LocalTargetInfo>
Verse.GenUI::TargetsAt(UnityEngine.Vector3 clickPos, RimWorld.TargetingParameters
clickParams, System.Boolean thingsOnly, RimWorld.ITargetingSource source)
IL_0116: callvirt abstract virtual
System.Collections.Generic.IEnumerator`1<Verse.LocalTargetInfo>
System.Collections.Generic.IEnumerable`1<Verse.LocalTargetInfo>::GetEnumerator()
IL_011B: stloc.s 8
(System.Collections.Generic.IEnumerator`1[Verse.LocalTargetInfo])
.try
{
IL_011D: br => Label12
IL_0122: Label24
IL_0122: ldloc.s 8
(System.Collections.Generic.IEnumerator`1[Verse.LocalTargetInfo])
IL_0124: callvirt abstract virtual Verse.LocalTargetInfo
System.Collections.Generic.IEnumerator`1<Verse.LocalTargetInfo>::get_Current()
IL_0129: stloc.s 9 (Verse.LocalTargetInfo)
IL_012B: ldloca.s 9 (Verse.LocalTargetInfo)
IL_012D: call System.Boolean Verse.LocalTargetInfo::get_HasThing()
IL_0132: brfalse => Label13
IL_0137: ldloca.s 9 (Verse.LocalTargetInfo)
IL_0139: call Verse.Thing Verse.LocalTargetInfo::get_Thing()
IL_013E: isinst Verse.Pawn
IL_0143: brfalse => Label14
IL_0148: ldloca.s 9 (Verse.LocalTargetInfo)
IL_014A: call Verse.Thing Verse.LocalTargetInfo::get_Thing()
IL_014F: castclass Verse.Pawn
IL_0154: call static System.Boolean
Verse.WildManUtility::IsWildMan(Verse.Pawn p)
IL_0159: br => Label15
IL_015E: Label13
IL_015E: Label14
IL_015E: ldc.i4.0
IL_015F: Label15
IL_015F: stloc.s 10 (System.Boolean)
IL_0161: ldloc.0
IL_0162: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_0167: callvirt System.Boolean Verse.Pawn::get_Drafted()
IL_016C: brtrue => Label16
IL_0171: ldloc.s 10 (System.Boolean)
IL_0173: brfalse => Label17
IL_0178: Label16
IL_0178: ldloca.s 9 (Verse.LocalTargetInfo)
IL_017A: call Verse.Thing Verse.LocalTargetInfo::get_Thing()
IL_017F: isinst Verse.Pawn
IL_0184: brfalse => Label18
IL_0189: ldloc.0
IL_018A: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_018F: ldloca.s 9 (Verse.LocalTargetInfo)
IL_0191: call Verse.Thing Verse.LocalTargetInfo::get_Thing()
IL_0196: castclass Verse.Pawn
IL_019B: ldc.i4.0
IL_019C: ldnull
IL_019D: call static System.Boolean
RimWorld.QuestUtility::InSameExtraFaction(Verse.Pawn p, Verse.Pawn target,
RimWorld.ExtraFactionType type, RimWorld.Quest forQuest)
IL_01A2: brtrue => Label19
IL_01A7: ldloc.0
IL_01A8: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_01AD: ldloca.s 9 (Verse.LocalTargetInfo)
IL_01AF: call Verse.Thing Verse.LocalTargetInfo::get_Thing()
IL_01B4: castclass Verse.Pawn
IL_01B9: ldc.i4.2
IL_01BA: ldnull
IL_01BB: call static System.Boolean
RimWorld.QuestUtility::InSameExtraFaction(Verse.Pawn p, Verse.Pawn target,
RimWorld.ExtraFactionType type, RimWorld.Quest forQuest)
IL_01C0: brfalse => Label20
IL_01C5: Label19
IL_01C5: ldarg.2
IL_01C6: ldstr "CannotArrest"
IL_01CB: call static Verse.TaggedString
Verse.Translator::Translate(System.String key)
IL_01D0: ldstr ": "
IL_01D5: call static Verse.TaggedString
Verse.TaggedString::op_Addition(Verse.TaggedString t1, System.String t2)
IL_01DA: ldstr "SameFaction"
IL_01DF: ldloca.s 9 (Verse.LocalTargetInfo)
IL_01E1: call Verse.Thing Verse.LocalTargetInfo::get_Thing()
IL_01E6: castclass Verse.Pawn
IL_01EB: call static Verse.NamedArgument
Verse.NamedArgument::op_Implicit(Verse.Thing value)
IL_01F0: call static Verse.TaggedString
Verse.TranslatorFormattedStringExtensions::Translate(System.String key,
Verse.NamedArgument arg1)
IL_01F5: call static Verse.TaggedString
Verse.TaggedString::op_Addition(Verse.TaggedString t1, Verse.TaggedString t2)
IL_01FA: call static System.String
Verse.TaggedString::op_Implicit(Verse.TaggedString taggedString)
IL_01FF: ldnull
IL_0200: ldc.i4.4
IL_0201: ldnull
IL_0202: ldnull
IL_0203: ldc.r4 0
IL_0208: ldnull
IL_0209: ldnull
IL_020A: ldc.i4.1
IL_020B: ldc.i4.0
IL_020C: newobj System.Void Verse.FloatMenuOption::.ctor(System.String
label, System.Action action, Verse.MenuOptionPriority priority,
System.Action`1<UnityEngine.Rect> mouseoverGuiAction, Verse.Thing
revalidateClickTarget, System.Single extraPartWidth,
System.Func`2<UnityEngine.Rect, System.Boolean> extraPartOnGUI,
RimWorld.Planet.WorldObject revalidateWorldClickTarget, System.Boolean
playSelectionSound, System.Int32 orderInPriority)
IL_0211: callvirt virtual System.Void
System.Collections.Generic.List`1<Verse.FloatMenuOption>::Add(Verse.FloatMenuOption
item)
IL_0216: br => Label21
IL_021B: Label18
IL_021B: Label20
IL_021B: ldloc.0
IL_021C: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_0221: ldloc.s 9 (Verse.LocalTargetInfo)
IL_0223: ldc.i4.1
IL_0224: ldc.i4.3
IL_0225: ldc.i4.0
IL_0226: ldc.i4.0
IL_0227: ldc.i4.0
IL_0228: call static System.Boolean
Verse.ReachabilityUtility::CanReach(Verse.Pawn pawn, Verse.LocalTargetInfo dest,
Verse.AI.PathEndMode peMode, Verse.Danger maxDanger, System.Boolean canBashDoors,
System.Boolean canBashFences, Verse.TraverseMode mode)
IL_022D: brtrue => Label22
IL_0232: ldarg.2
IL_0233: ldstr "CannotArrest"
IL_0238: call static Verse.TaggedString
Verse.Translator::Translate(System.String key)
IL_023D: ldstr ": "
IL_0242: call static Verse.TaggedString
Verse.TaggedString::op_Addition(Verse.TaggedString t1, System.String t2)
IL_0247: ldstr "NoPath"
IL_024C: call static Verse.TaggedString
Verse.Translator::Translate(System.String key)
IL_0251: stloc.s 11 (Verse.TaggedString)
IL_0253: ldloca.s 11 (Verse.TaggedString)
IL_0255: call Verse.TaggedString Verse.TaggedString::CapitalizeFirst()
IL_025A: call static Verse.TaggedString
Verse.TaggedString::op_Addition(Verse.TaggedString t1, Verse.TaggedString t2)
IL_025F: call static System.String
Verse.TaggedString::op_Implicit(Verse.TaggedString taggedString)
IL_0264: ldnull
IL_0265: ldc.i4.4
IL_0266: ldnull
IL_0267: ldnull
IL_0268: ldc.r4 0
IL_026D: ldnull
IL_026E: ldnull
IL_026F: ldc.i4.1
IL_0270: ldc.i4.0
IL_0271: newobj System.Void Verse.FloatMenuOption::.ctor(System.String
label, System.Action action, Verse.MenuOptionPriority priority,
System.Action`1<UnityEngine.Rect> mouseoverGuiAction, Verse.Thing
revalidateClickTarget, System.Single extraPartWidth,
System.Func`2<UnityEngine.Rect, System.Boolean> extraPartOnGUI,
RimWorld.Planet.WorldObject revalidateWorldClickTarget, System.Boolean
playSelectionSound, System.Int32 orderInPriority)
IL_0276: callvirt virtual System.Void
System.Collections.Generic.List`1<Verse.FloatMenuOption>::Add(Verse.FloatMenuOption
item)
IL_027B: br => Label23
IL_0280: Label22
IL_0280: newobj System.Void RimWorld.<>c__DisplayClass10_1::.ctor()
IL_0285: stloc.s 12 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_1)
IL_0287: ldloc.s 12 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_1)
IL_0289: ldloc.0
IL_028A: stfld RimWorld.<>c__DisplayClass10_0
RimWorld.<>c__DisplayClass10_1::CS$<>8__locals1
IL_028F: ldloc.s 12 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_1)
IL_0291: ldloca.s 9 (Verse.LocalTargetInfo)
IL_0293: call Verse.Thing Verse.LocalTargetInfo::get_Thing()
IL_0298: castclass Verse.Pawn
IL_029D: stfld Verse.Pawn RimWorld.<>c__DisplayClass10_1::pTarg
IL_02A2: ldloc.s 12 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_1)
IL_02A4: ldftn System.Void
RimWorld.<>c__DisplayClass10_1::<AddHumanlikeOrders>b__0()
IL_02AA: newobj System.Void System.Action::.ctor(System.Object object,
System.IntPtr method)
IL_02AF: stloc.s 13 (System.Action)
IL_02B1: ldarg.2
IL_02B2: ldstr "TryToArrest"
IL_02B7: ldloca.s 9 (Verse.LocalTargetInfo)
IL_02B9: call Verse.Thing Verse.LocalTargetInfo::get_Thing()
IL_02BE: callvirt abstract virtual System.String
Verse.Entity::get_LabelCap()
IL_02C3: call static Verse.NamedArgument
Verse.NamedArgument::op_Implicit(System.String value)
IL_02C8: ldloca.s 9 (Verse.LocalTargetInfo)
IL_02CA: call Verse.Thing Verse.LocalTargetInfo::get_Thing()
IL_02CF: call static Verse.NamedArgument
Verse.NamedArgument::op_Implicit(Verse.Thing value)
IL_02D4: ldloc.s 12 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_1)
IL_02D6: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_1::pTarg
IL_02DB: ldloc.s 12 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_1)
IL_02DD: ldfld RimWorld.<>c__DisplayClass10_0
RimWorld.<>c__DisplayClass10_1::CS$<>8__locals1
IL_02E2: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_02E7: callvirt System.Single
Verse.Pawn::GetAcceptArrestChance(Verse.Pawn arrester)
IL_02EC: call static System.String
Verse.GenText::ToStringPercent(System.Single f)
IL_02F1: call static Verse.NamedArgument
Verse.NamedArgument::op_Implicit(System.String value)
IL_02F6: call static Verse.TaggedString
Verse.TranslatorFormattedStringExtensions::Translate(System.String key,
Verse.NamedArgument arg1, Verse.NamedArgument arg2, Verse.NamedArgument arg3)
IL_02FB: call static System.String
Verse.TaggedString::op_Implicit(Verse.TaggedString taggedString)
IL_0300: ldloc.s 13 (System.Action)
IL_0302: ldc.i4.5
IL_0303: ldnull
IL_0304: ldloca.s 9 (Verse.LocalTargetInfo)
IL_0306: call Verse.Thing Verse.LocalTargetInfo::get_Thing()
IL_030B: ldc.r4 0
IL_0310: ldnull
IL_0311: ldnull
IL_0312: ldc.i4.1
IL_0313: ldc.i4.0
IL_0314: newobj System.Void Verse.FloatMenuOption::.ctor(System.String
label, System.Action action, Verse.MenuOptionPriority priority,
System.Action`1<UnityEngine.Rect> mouseoverGuiAction, Verse.Thing
revalidateClickTarget, System.Single extraPartWidth,
System.Func`2<UnityEngine.Rect, System.Boolean> extraPartOnGUI,
RimWorld.Planet.WorldObject revalidateWorldClickTarget, System.Boolean
playSelectionSound, System.Int32 orderInPriority)
IL_0319: ldloc.s 12 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_1)
IL_031B: ldfld RimWorld.<>c__DisplayClass10_0
RimWorld.<>c__DisplayClass10_1::CS$<>8__locals1
IL_0320: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_0325: ldloc.s 12 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_1)
IL_0327: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_1::pTarg
IL_032C: call static Verse.LocalTargetInfo
Verse.LocalTargetInfo::op_Implicit(Verse.Thing t)
IL_0331: ldstr "ReservedBy"
IL_0336: ldnull
IL_0337: call static Verse.FloatMenuOption
RimWorld.FloatMenuUtility::DecoratePrioritizedTask(Verse.FloatMenuOption option,
Verse.Pawn pawn, Verse.LocalTargetInfo target, System.String reservedText,
Verse.ReservationLayerDef layer)
IL_033C: callvirt virtual System.Void
System.Collections.Generic.List`1<Verse.FloatMenuOption>::Add(Verse.FloatMenuOption
item)
IL_0341: Label12
IL_0341: Label17
IL_0341: Label21
IL_0341: Label23
IL_0341: ldloc.s 8
(System.Collections.Generic.IEnumerator`1[Verse.LocalTargetInfo])
IL_0343: callvirt abstract virtual System.Boolean
System.Collections.IEnumerator::MoveNext()
IL_0348: brtrue => Label24
IL_034D: leave => Label25
IL_0352: leave => (autogenerated)
} // end try
.finally
{
IL_0357: ldloc.s 8
(System.Collections.Generic.IEnumerator`1[Verse.LocalTargetInfo])
IL_0359: brfalse => Label26
IL_035E: ldloc.s 8
(System.Collections.Generic.IEnumerator`1[Verse.LocalTargetInfo])
IL_0360: callvirt abstract virtual System.Void
System.IDisposable::Dispose()
IL_0365: Label26
IL_0365: endfinally
IL_0366: leave => (autogenerated)
} // end handler
IL_0367: Label11
IL_0367: Label25
IL_0367: ldloc.1
IL_0368: ldloc.0
IL_0369: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_036E: callvirt virtual Verse.Map Verse.Thing::get_Map()
IL_0373: call static System.Collections.Generic.List`1<Verse.Thing>
Verse.GridsUtility::GetThingList(Verse.IntVec3 c, Verse.Map map)
IL_0378: callvirt System.Collections.Generic.Enumerator<Verse.Thing>
System.Collections.Generic.List`1<Verse.Thing>::GetEnumerator()
IL_037D: stloc.2
.try
{
IL_037E: br => Label27
IL_0383: Label58
IL_0383: ldloca.s 2
(System.Collections.Generic.List`1+Enumerator[Verse.Thing])
IL_0385: call virtual Verse.Thing
System.Collections.Generic.Enumerator<Verse.Thing>::get_Current()
IL_038A: stloc.s 14 (Verse.Thing)
IL_038C: newobj System.Void RimWorld.<>c__DisplayClass10_2::.ctor()
IL_0391: stloc.s 15 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_2)
IL_0393: ldloc.s 15 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_2)
IL_0395: ldloc.0
IL_0396: stfld RimWorld.<>c__DisplayClass10_0
RimWorld.<>c__DisplayClass10_2::CS$<>8__locals2
IL_039B: ldloc.s 15 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_2)
IL_039D: ldloc.s 14 (Verse.Thing)
IL_039F: stfld Verse.Thing RimWorld.<>c__DisplayClass10_2::t
IL_03A4: ldloc.s 15 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_2)
IL_03A6: ldfld Verse.Thing RimWorld.<>c__DisplayClass10_2::t
IL_03AB: ldfld Verse.ThingDef Verse.Thing::def
IL_03B0: ldfld RimWorld.IngestibleProperties Verse.ThingDef::ingestible
IL_03B5: brfalse => Label28
IL_03BA: ldloc.s 15 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_2)
IL_03BC: ldfld RimWorld.<>c__DisplayClass10_0
RimWorld.<>c__DisplayClass10_2::CS$<>8__locals2
IL_03C1: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_03C6: callvirt Verse.RaceProperties Verse.Pawn::get_RaceProps()
IL_03CB: ldloc.s 15 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_2)
IL_03CD: ldfld Verse.Thing RimWorld.<>c__DisplayClass10_2::t
IL_03D2: callvirt System.Boolean
Verse.RaceProperties::CanEverEat(Verse.Thing t)
IL_03D7: brfalse => Label29
IL_03DC: ldloc.s 15 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_2)
IL_03DE: ldfld Verse.Thing RimWorld.<>c__DisplayClass10_2::t
IL_03E3: callvirt virtual System.Boolean Verse.Thing::get_IngestibleNow()
IL_03E8: brfalse => Label30
IL_03ED: ldloc.s 15 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_2)
IL_03EF: ldfld Verse.Thing RimWorld.<>c__DisplayClass10_2::t
IL_03F4: ldfld Verse.ThingDef Verse.Thing::def
IL_03F9: ldfld RimWorld.IngestibleProperties Verse.ThingDef::ingestible
IL_03FE: ldfld System.String
RimWorld.IngestibleProperties::ingestCommandString
IL_0403: call static System.Boolean
Verse.GenText::NullOrEmpty(System.String str)
IL_0408: brfalse => Label31
IL_040D: ldstr "ConsumeThing"
IL_0412: ldloc.s 15 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_2)
IL_0414: ldfld Verse.Thing RimWorld.<>c__DisplayClass10_2::t
IL_0419: callvirt virtual System.String Verse.Entity::get_LabelShort()
IL_041E: call static Verse.NamedArgument
Verse.NamedArgument::op_Implicit(System.String value)
IL_0423: ldloc.s 15 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_2)
IL_0425: ldfld Verse.Thing RimWorld.<>c__DisplayClass10_2::t
IL_042A: call static Verse.NamedArgument
Verse.NamedArgument::op_Implicit(Verse.Thing value)
IL_042F: call static Verse.TaggedString
Verse.TranslatorFormattedStringExtensions::Translate(System.String key,
Verse.NamedArgument arg1, Verse.NamedArgument arg2)
IL_0434: call static System.String
Verse.TaggedString::op_Implicit(Verse.TaggedString taggedString)
IL_0439: stloc.s 17 (System.String)
IL_043B: br => Label32
IL_0440: Label31
IL_0440: ldloc.s 15 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_2)
IL_0442: ldfld Verse.Thing RimWorld.<>c__DisplayClass10_2::t
IL_0447: ldfld Verse.ThingDef Verse.Thing::def
IL_044C: ldfld RimWorld.IngestibleProperties Verse.ThingDef::ingestible
IL_0451: ldfld System.String
RimWorld.IngestibleProperties::ingestCommandString
IL_0456: ldloc.s 15 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_2)
IL_0458: ldfld Verse.Thing RimWorld.<>c__DisplayClass10_2::t
IL_045D: callvirt virtual System.String Verse.Entity::get_LabelShort()
IL_0462: call static Verse.NamedArgument
Verse.NamedArgument::op_Implicit(System.String value)
IL_0467: call static Verse.TaggedString
Verse.GrammarResolverSimpleStringExtensions::Formatted(System.String str,
Verse.NamedArgument arg1)
IL_046C: call static System.String
Verse.TaggedString::op_Implicit(Verse.TaggedString taggedString)
IL_0471: stloc.s 17 (System.String)
IL_0473: Label32
IL_0473: ldloc.s 15 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_2)
IL_0475: ldfld Verse.Thing RimWorld.<>c__DisplayClass10_2::t
IL_047A: ldloc.s 15 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_2)
IL_047C: ldfld RimWorld.<>c__DisplayClass10_0
RimWorld.<>c__DisplayClass10_2::CS$<>8__locals2
IL_0481: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_0486: call static System.Boolean
RimWorld.SocialProperness::IsSociallyProper(Verse.Thing t, Verse.Pawn p)
IL_048B: brtrue => Label33
IL_0490: ldloc.s 17 (System.String)
IL_0492: ldstr ": "
IL_0497: call static System.String System.String::Concat(System.String
str0, System.String str1)
IL_049C: ldstr "ReservedForPrisoners"
IL_04A1: call static Verse.TaggedString
Verse.Translator::Translate(System.String key)
IL_04A6: stloc.s 11 (Verse.TaggedString)
IL_04A8: ldloca.s 11 (Verse.TaggedString)
IL_04AA: call Verse.TaggedString Verse.TaggedString::CapitalizeFirst()
IL_04AF: call static Verse.TaggedString
Verse.TaggedString::op_Addition(System.String t1, Verse.TaggedString t2)
IL_04B4: call static System.String
Verse.TaggedString::op_Implicit(Verse.TaggedString taggedString)
IL_04B9: stloc.s 17 (System.String)
IL_04BB: br => Label34
IL_04C0: Label33
IL_04C0: ldloc.s 15 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_2)
IL_04C2: ldfld RimWorld.<>c__DisplayClass10_0
RimWorld.<>c__DisplayClass10_2::CS$<>8__locals2
IL_04C7: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_04CC: ldloc.s 15 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_2)
IL_04CE: ldfld Verse.Thing RimWorld.<>c__DisplayClass10_2::t
IL_04D3: ldloc.s 15 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_2)
IL_04D5: ldfld Verse.Thing RimWorld.<>c__DisplayClass10_2::t
IL_04DA: ldfld Verse.ThingDef Verse.Thing::def
IL_04DF: call static System.Single
RimWorld.FoodUtility::MoodFromIngesting(Verse.Pawn ingester, Verse.Thing
foodSource, Verse.ThingDef foodDef)
IL_04E4: ldc.r4 0
IL_04E9: bge.un => Label35
IL_04EE: ldstr "{0}: ({1})"
IL_04F3: ldloc.s 17 (System.String)
IL_04F5: ldstr "WarningFoodDisliked"
IL_04FA: call static Verse.TaggedString
Verse.Translator::Translate(System.String key)
IL_04FF: box Verse.TaggedString
IL_0504: call static System.String System.String::Format(System.String
format, System.Object arg0, System.Object arg1)
IL_0509: stloc.s 17 (System.String)
IL_050B: Label34
IL_050B: Label35
IL_050B: ldloc.s 15 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_2)
IL_050D: ldfld Verse.Thing RimWorld.<>c__DisplayClass10_2::t
IL_0512: ldfld Verse.ThingDef Verse.Thing::def
IL_0517: callvirt System.Boolean Verse.ThingDef::get_IsDrug()
IL_051C: brfalse => Label36
IL_0521: call static System.Boolean
Verse.ModsConfig::get_IdeologyActive()
IL_0526: brfalse => Label37
IL_052B: ldsfld RimWorld.HistoryEventDef
RimWorld.HistoryEventDefOf::IngestedDrug
IL_0530: ldloc.s 15 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_2)
IL_0532: ldfld RimWorld.<>c__DisplayClass10_0
RimWorld.<>c__DisplayClass10_2::CS$<>8__locals2
IL_0537: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_053C: ldsfld System.String RimWorld.HistoryEventArgsNames::Doer
IL_0541: call static Verse.NamedArgument
Verse.NamedArgumentUtility::Named(System.Object arg, System.String label)
IL_0546: newobj System.Void
RimWorld.HistoryEvent::.ctor(RimWorld.HistoryEventDef def, Verse.NamedArgument
arg1)
IL_054B: ldloca.s 16 (Verse.FloatMenuOption)
IL_054D: ldloc.s 17 (System.String)
IL_054F: call static System.Boolean
RimWorld.IdeoUtility::Notify_PawnAboutToDo(RimWorld.HistoryEvent ev,
Verse.FloatMenuOption& opt, System.String baseText)
IL_0554: brtrue => Label38
IL_0559: ldloc.s 15 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_2)
IL_055B: ldfld RimWorld.<>c__DisplayClass10_0
RimWorld.<>c__DisplayClass10_2::CS$<>8__locals2
IL_0560: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_0565: ldloc.s 15 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_2)
IL_0567: ldfld Verse.Thing RimWorld.<>c__DisplayClass10_2::t
IL_056C: ldfld Verse.ThingDef Verse.Thing::def
IL_0571: call static System.Boolean
RimWorld.PawnUtility::CanTakeDrugForDependency(Verse.Pawn pawn, Verse.ThingDef
drug)
IL_0576: brfalse => Label39
IL_057B: Label36
IL_057B: Label37
IL_057B: Label38
IL_057B: ldloc.s 15 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_2)
IL_057D: ldfld Verse.Thing RimWorld.<>c__DisplayClass10_2::t
IL_0582: ldfld Verse.ThingDef Verse.Thing::def
IL_0587: callvirt System.Boolean Verse.ThingDef::get_IsNonMedicalDrug()
IL_058C: brfalse => Label40
IL_0591: call static System.Boolean
Verse.ModsConfig::get_IdeologyActive()
IL_0596: brfalse => Label41
IL_059B: ldsfld RimWorld.HistoryEventDef
RimWorld.HistoryEventDefOf::IngestedRecreationalDrug
IL_05A0: ldloc.s 15 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_2)
IL_05A2: ldfld RimWorld.<>c__DisplayClass10_0
RimWorld.<>c__DisplayClass10_2::CS$<>8__locals2
IL_05A7: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_05AC: ldsfld System.String RimWorld.HistoryEventArgsNames::Doer
IL_05B1: call static Verse.NamedArgument
Verse.NamedArgumentUtility::Named(System.Object arg, System.String label)
IL_05B6: newobj System.Void
RimWorld.HistoryEvent::.ctor(RimWorld.HistoryEventDef def, Verse.NamedArgument
arg1)
IL_05BB: ldloca.s 16 (Verse.FloatMenuOption)
IL_05BD: ldloc.s 17 (System.String)
IL_05BF: call static System.Boolean
RimWorld.IdeoUtility::Notify_PawnAboutToDo(RimWorld.HistoryEvent ev,
Verse.FloatMenuOption& opt, System.String baseText)
IL_05C4: brtrue => Label42
IL_05C9: ldloc.s 15 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_2)
IL_05CB: ldfld RimWorld.<>c__DisplayClass10_0
RimWorld.<>c__DisplayClass10_2::CS$<>8__locals2
IL_05D0: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_05D5: ldloc.s 15 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_2)
IL_05D7: ldfld Verse.Thing RimWorld.<>c__DisplayClass10_2::t
IL_05DC: ldfld Verse.ThingDef Verse.Thing::def
IL_05E1: call static System.Boolean
RimWorld.PawnUtility::CanTakeDrugForDependency(Verse.Pawn pawn, Verse.ThingDef
drug)
IL_05E6: brfalse => Label43
IL_05EB: Label40
IL_05EB: Label41
IL_05EB: Label42
IL_05EB: ldloc.s 15 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_2)
IL_05ED: ldfld Verse.Thing RimWorld.<>c__DisplayClass10_2::t
IL_05F2: ldfld Verse.ThingDef Verse.Thing::def
IL_05F7: callvirt System.Boolean Verse.ThingDef::get_IsDrug()
IL_05FC: brfalse => Label44
IL_0601: call static System.Boolean
Verse.ModsConfig::get_IdeologyActive()
IL_0606: brfalse => Label45
IL_060B: ldloc.s 15 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_2)
IL_060D: ldfld Verse.Thing RimWorld.<>c__DisplayClass10_2::t
IL_0612: ldfld Verse.ThingDef Verse.Thing::def
IL_0617: ldfld RimWorld.IngestibleProperties Verse.ThingDef::ingestible
IL_061C: ldfld RimWorld.DrugCategory
RimWorld.IngestibleProperties::drugCategory
IL_0621: ldc.i4.3
IL_0622: bne.un => Label46
IL_0627: ldsfld RimWorld.HistoryEventDef
RimWorld.HistoryEventDefOf::IngestedHardDrug
IL_062C: ldloc.s 15 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_2)
IL_062E: ldfld RimWorld.<>c__DisplayClass10_0
RimWorld.<>c__DisplayClass10_2::CS$<>8__locals2
IL_0633: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_0638: ldsfld System.String RimWorld.HistoryEventArgsNames::Doer
IL_063D: call static Verse.NamedArgument
Verse.NamedArgumentUtility::Named(System.Object arg, System.String label)
IL_0642: newobj System.Void
RimWorld.HistoryEvent::.ctor(RimWorld.HistoryEventDef def, Verse.NamedArgument
arg1)
IL_0647: ldloca.s 16 (Verse.FloatMenuOption)
IL_0649: ldloc.s 17 (System.String)
IL_064B: call static System.Boolean
RimWorld.IdeoUtility::Notify_PawnAboutToDo(RimWorld.HistoryEvent ev,
Verse.FloatMenuOption& opt, System.String baseText)
IL_0650: brfalse => Label47
IL_0655: Label44
IL_0655: Label45
IL_0655: Label46
IL_0655: ldloc.s 15 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_2)
IL_0657: ldfld Verse.Thing RimWorld.<>c__DisplayClass10_2::t
IL_065C: ldfld Verse.ThingDef Verse.Thing::def
IL_0661: callvirt System.Boolean Verse.ThingDef::get_IsNonMedicalDrug()
IL_0666: brfalse => Label48
IL_066B: ldloc.s 15 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_2)
IL_066D: ldfld RimWorld.<>c__DisplayClass10_0
RimWorld.<>c__DisplayClass10_2::CS$<>8__locals2
IL_0672: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_0677: ldloc.s 15 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_2)
IL_0679: ldfld Verse.Thing RimWorld.<>c__DisplayClass10_2::t
IL_067E: ldfld Verse.ThingDef Verse.Thing::def
IL_0683: call static System.Boolean
RimWorld.PawnUtility::CanTakeDrug(Verse.Pawn pawn, Verse.ThingDef drug)
IL_0688: brtrue => Label49
IL_068D: ldloc.s 17 (System.String)
IL_068F: ldstr ": "
IL_0694: ldsfld RimWorld.TraitDef RimWorld.TraitDefOf::DrugDesire
IL_0699: ldc.i4.m1
IL_069A: callvirt RimWorld.TraitDegreeData
RimWorld.TraitDef::DataAtDegree(System.Int32 degree)
IL_069F: ldloc.s 15 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_2)
IL_06A1: ldfld RimWorld.<>c__DisplayClass10_0
RimWorld.<>c__DisplayClass10_2::CS$<>8__locals2
IL_06A6: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_06AB: callvirt System.String
RimWorld.TraitDegreeData::GetLabelCapFor(Verse.Pawn pawn)
IL_06B0: call static System.String System.String::Concat(System.String
str0, System.String str1, System.String str2)
IL_06B5: ldnull
IL_06B6: ldc.i4.4
IL_06B7: ldnull
IL_06B8: ldnull
IL_06B9: ldc.r4 0
IL_06BE: ldnull
IL_06BF: ldnull
IL_06C0: ldc.i4.1
IL_06C1: ldc.i4.0
IL_06C2: newobj System.Void Verse.FloatMenuOption::.ctor(System.String
label, System.Action action, Verse.MenuOptionPriority priority,
System.Action`1<UnityEngine.Rect> mouseoverGuiAction, Verse.Thing
revalidateClickTarget, System.Single extraPartWidth,
System.Func`2<UnityEngine.Rect, System.Boolean> extraPartOnGUI,
RimWorld.Planet.WorldObject revalidateWorldClickTarget, System.Boolean
playSelectionSound, System.Int32 orderInPriority)
IL_06C7: stloc.s 16 (Verse.FloatMenuOption)
IL_06C9: br => Label50
IL_06CE: Label48
IL_06CE: Label49
IL_06CE: ldloc.s 15 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_2)
IL_06D0: ldfld Verse.Thing RimWorld.<>c__DisplayClass10_2::t
IL_06D5: ldfld Verse.ThingDef Verse.Thing::def
IL_06DA: ldloc.s 15 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_2)
IL_06DC: ldfld RimWorld.<>c__DisplayClass10_0
RimWorld.<>c__DisplayClass10_2::CS$<>8__locals2
IL_06E1: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_06E6: ldc.i4.1
IL_06E7: call static System.Boolean
RimWorld.FoodUtility::InappropriateForTitle(Verse.ThingDef food, Verse.Pawn p,
System.Boolean allowIfStarving)
IL_06EC: brfalse => Label51
IL_06F1: ldloc.s 17 (System.String)
IL_06F3: ldstr ": "
IL_06F8: call static System.String System.String::Concat(System.String
str0, System.String str1)
IL_06FD: ldstr "FoodBelowTitleRequirements"
IL_0702: ldloc.s 15 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_2)
IL_0704: ldfld RimWorld.<>c__DisplayClass10_0
RimWorld.<>c__DisplayClass10_2::CS$<>8__locals2
IL_0709: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_070E: ldfld RimWorld.Pawn_RoyaltyTracker Verse.Pawn::royalty
IL_0713: callvirt RimWorld.RoyalTitle
RimWorld.Pawn_RoyaltyTracker::get_MostSeniorTitle()
IL_0718: ldfld RimWorld.RoyalTitleDef RimWorld.RoyalTitle::def
IL_071D: ldloc.s 15 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_2)
IL_071F: ldfld RimWorld.<>c__DisplayClass10_0
RimWorld.<>c__DisplayClass10_2::CS$<>8__locals2
IL_0724: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_0729: callvirt System.String
RimWorld.RoyalTitleDef::GetLabelFor(Verse.Pawn p)
IL_072E: call static System.String
Verse.GenText::CapitalizeFirst(System.String str)
IL_0733: call static Verse.NamedArgument
Verse.NamedArgument::op_Implicit(System.String value)
IL_0738: call static Verse.TaggedString
Verse.TranslatorFormattedStringExtensions::Translate(System.String key,
Verse.NamedArgument arg1)
IL_073D: stloc.s 11 (Verse.TaggedString)
IL_073F: ldloca.s 11 (Verse.TaggedString)
IL_0741: call Verse.TaggedString Verse.TaggedString::CapitalizeFirst()
IL_0746: call static Verse.TaggedString
Verse.TaggedString::op_Addition(System.String t1, Verse.TaggedString t2)
IL_074B: call static System.String
Verse.TaggedString::op_Implicit(Verse.TaggedString taggedString)
IL_0750: ldnull
IL_0751: ldc.i4.4
IL_0752: ldnull
IL_0753: ldnull
IL_0754: ldc.r4 0
IL_0759: ldnull
IL_075A: ldnull
IL_075B: ldc.i4.1
IL_075C: ldc.i4.0
IL_075D: newobj System.Void Verse.FloatMenuOption::.ctor(System.String
label, System.Action action, Verse.MenuOptionPriority priority,
System.Action`1<UnityEngine.Rect> mouseoverGuiAction, Verse.Thing
revalidateClickTarget, System.Single extraPartWidth,
System.Func`2<UnityEngine.Rect, System.Boolean> extraPartOnGUI,
RimWorld.Planet.WorldObject revalidateWorldClickTarget, System.Boolean
playSelectionSound, System.Int32 orderInPriority)
IL_0762: stloc.s 16 (Verse.FloatMenuOption)
IL_0764: br => Label52
IL_0769: Label51
IL_0769: ldloc.s 15 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_2)
IL_076B: ldfld RimWorld.<>c__DisplayClass10_0
RimWorld.<>c__DisplayClass10_2::CS$<>8__locals2
IL_0770: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_0775: ldloc.s 15 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_2)
IL_0777: ldfld Verse.Thing RimWorld.<>c__DisplayClass10_2::t
IL_077C: call static Verse.LocalTargetInfo
Verse.LocalTargetInfo::op_Implicit(Verse.Thing t)
IL_0781: ldc.i4.1
IL_0782: ldc.i4.3
IL_0783: ldc.i4.0
IL_0784: ldc.i4.0
IL_0785: ldc.i4.0
IL_0786: call static System.Boolean
Verse.ReachabilityUtility::CanReach(Verse.Pawn pawn, Verse.LocalTargetInfo dest,
Verse.AI.PathEndMode peMode, Verse.Danger maxDanger, System.Boolean canBashDoors,
System.Boolean canBashFences, Verse.TraverseMode mode)
IL_078B: brtrue => Label53
IL_0790: ldloc.s 17 (System.String)
IL_0792: ldstr ": "
IL_0797: call static System.String System.String::Concat(System.String
str0, System.String str1)
IL_079C: ldstr "NoPath"
IL_07A1: call static Verse.TaggedString
Verse.Translator::Translate(System.String key)
IL_07A6: stloc.s 11 (Verse.TaggedString)
IL_07A8: ldloca.s 11 (Verse.TaggedString)
IL_07AA: call Verse.TaggedString Verse.TaggedString::CapitalizeFirst()
IL_07AF: call static Verse.TaggedString
Verse.TaggedString::op_Addition(System.String t1, Verse.TaggedString t2)
IL_07B4: call static System.String
Verse.TaggedString::op_Implicit(Verse.TaggedString taggedString)
IL_07B9: ldnull
IL_07BA: ldc.i4.4
IL_07BB: ldnull
IL_07BC: ldnull
IL_07BD: ldc.r4 0
IL_07C2: ldnull
IL_07C3: ldnull
IL_07C4: ldc.i4.1
IL_07C5: ldc.i4.0
IL_07C6: newobj System.Void Verse.FloatMenuOption::.ctor(System.String
label, System.Action action, Verse.MenuOptionPriority priority,
System.Action`1<UnityEngine.Rect> mouseoverGuiAction, Verse.Thing
revalidateClickTarget, System.Single extraPartWidth,
System.Func`2<UnityEngine.Rect, System.Boolean> extraPartOnGUI,
RimWorld.Planet.WorldObject revalidateWorldClickTarget, System.Boolean
playSelectionSound, System.Int32 orderInPriority)
IL_07CB: stloc.s 16 (Verse.FloatMenuOption)
IL_07CD: br => Label54
IL_07D2: Label53
IL_07D2: ldloc.s 15 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_2)
IL_07D4: ldfld Verse.Thing RimWorld.<>c__DisplayClass10_2::t
IL_07D9: isinst Verse.Corpse
IL_07DE: brtrue => Label55
IL_07E3: ldc.i4.4
IL_07E4: br => Label56
IL_07E9: Label55
IL_07E9: ldc.i4.2
IL_07EA: Label56
IL_07EA: stloc.s 18 (Verse.MenuOptionPriority)
IL_07EC: ldloc.s 15 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_2)
IL_07EE: ldfld Verse.Thing RimWorld.<>c__DisplayClass10_2::t
IL_07F3: ldloc.s 15 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_2)
IL_07F5: ldfld RimWorld.<>c__DisplayClass10_0
RimWorld.<>c__DisplayClass10_2::CS$<>8__locals2
IL_07FA: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_07FF: ldloc.s 15 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_2)
IL_0801: ldfld RimWorld.<>c__DisplayClass10_0
RimWorld.<>c__DisplayClass10_2::CS$<>8__locals2
IL_0806: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_080B: ldloc.s 15 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_2)
IL_080D: ldfld Verse.Thing RimWorld.<>c__DisplayClass10_2::t
IL_0812: ldfld Verse.ThingDef Verse.Thing::def
IL_0817: ldloc.s 15 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_2)
IL_0819: ldfld RimWorld.<>c__DisplayClass10_0
RimWorld.<>c__DisplayClass10_2::CS$<>8__locals2
IL_081E: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_0823: ldloc.s 15 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_2)
IL_0825: ldfld Verse.Thing RimWorld.<>c__DisplayClass10_2::t
IL_082A: call static System.Single
RimWorld.FoodUtility::NutritionForEater(Verse.Pawn eater, Verse.Thing food)
IL_082F: call static System.Int32
RimWorld.FoodUtility::WillIngestStackCountOf(Verse.Pawn ingester, Verse.ThingDef
def, System.Single singleFoodNutrition)
IL_0834: call static System.Int32
RimWorld.FoodUtility::GetMaxAmountToPickup(Verse.Thing food, Verse.Pawn pawn,
System.Int32 wantedCount)
IL_0839: ldloc.s 17 (System.String)
IL_083B: ldloc.s 15 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_2)
IL_083D: ldftn System.Void
RimWorld.<>c__DisplayClass10_2::<AddHumanlikeOrders>b__1()
IL_0843: newobj System.Void System.Action::.ctor(System.Object object,
System.IntPtr method)
IL_0848: ldloc.s 18 (Verse.MenuOptionPriority)
IL_084A: ldnull
IL_084B: ldnull
IL_084C: ldc.r4 0
IL_0851: ldnull
IL_0852: ldnull
IL_0853: ldc.i4.1
IL_0854: ldc.i4.0
IL_0855: newobj System.Void Verse.FloatMenuOption::.ctor(System.String
label, System.Action action, Verse.MenuOptionPriority priority,
System.Action`1<UnityEngine.Rect> mouseoverGuiAction, Verse.Thing
revalidateClickTarget, System.Single extraPartWidth,
System.Func`2<UnityEngine.Rect, System.Boolean> extraPartOnGUI,
RimWorld.Planet.WorldObject revalidateWorldClickTarget, System.Boolean
playSelectionSound, System.Int32 orderInPriority)
IL_085A: ldloc.s 15 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_2)
IL_085C: ldfld RimWorld.<>c__DisplayClass10_0
RimWorld.<>c__DisplayClass10_2::CS$<>8__locals2
IL_0861: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_0866: ldloc.s 15 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_2)
IL_0868: ldfld Verse.Thing RimWorld.<>c__DisplayClass10_2::t
IL_086D: call static Verse.LocalTargetInfo
Verse.LocalTargetInfo::op_Implicit(Verse.Thing t)
IL_0872: ldstr "ReservedBy"
IL_0877: ldnull
IL_0878: call static Verse.FloatMenuOption
RimWorld.FloatMenuUtility::DecoratePrioritizedTask(Verse.FloatMenuOption option,
Verse.Pawn pawn, Verse.LocalTargetInfo target, System.String reservedText,
Verse.ReservationLayerDef layer)
IL_087D: stloc.s 16 (Verse.FloatMenuOption)
IL_087F: brtrue => Label57
IL_0884: ldloc.s 16 (Verse.FloatMenuOption)
IL_0886: ldnull
IL_0887: stfld System.Action Verse.FloatMenuOption::action
IL_088C: Label39
IL_088C: Label43
IL_088C: Label47
IL_088C: Label50
IL_088C: Label52
IL_088C: Label54
IL_088C: Label57
IL_088C: ldarg.2
IL_088D: ldloc.s 16 (Verse.FloatMenuOption)
IL_088F: callvirt virtual System.Void
System.Collections.Generic.List`1<Verse.FloatMenuOption>::Add(Verse.FloatMenuOption
item)
IL_0894: Label27
IL_0894: Label28
IL_0894: Label29
IL_0894: Label30
IL_0894: ldloca.s 2
(System.Collections.Generic.List`1+Enumerator[Verse.Thing])
IL_0896: call virtual System.Boolean
System.Collections.Generic.Enumerator<Verse.Thing>::MoveNext()
IL_089B: brtrue => Label58
IL_08A0: leave => Label59
IL_08A5: leave => (autogenerated)
} // end try
.finally
{
IL_08AA: ldloca.s 2
(System.Collections.Generic.List`1+Enumerator[Verse.Thing])
IL_08AC: constrained.
System.Collections.Generic.List`1+Enumerator[Verse.Thing]
IL_08B2: callvirt abstract virtual System.Void
System.IDisposable::Dispose()
IL_08B7: endfinally
IL_08B8: leave => (autogenerated)
} // end handler
IL_08B9: Label59
IL_08B9: ldarg.0
IL_08BA: ldloc.0
IL_08BB: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_08C0: call static RimWorld.TargetingParameters
RimWorld.TargetingParameters::ForQuestPawnsWhoWillJoinColony(Verse.Pawn p)
IL_08C5: ldc.i4.1
IL_08C6: ldnull
IL_08C7: call static
System.Collections.Generic.IEnumerable`1<Verse.LocalTargetInfo>
Verse.GenUI::TargetsAt(UnityEngine.Vector3 clickPos, RimWorld.TargetingParameters
clickParams, System.Boolean thingsOnly, RimWorld.ITargetingSource source)
IL_08CC: callvirt abstract virtual
System.Collections.Generic.IEnumerator`1<Verse.LocalTargetInfo>
System.Collections.Generic.IEnumerable`1<Verse.LocalTargetInfo>::GetEnumerator()
IL_08D1: stloc.s 8
(System.Collections.Generic.IEnumerator`1[Verse.LocalTargetInfo])
.try
{
IL_08D3: br => Label60
IL_08D8: Label65
IL_08D8: ldloc.s 8
(System.Collections.Generic.IEnumerator`1[Verse.LocalTargetInfo])
IL_08DA: callvirt abstract virtual Verse.LocalTargetInfo
System.Collections.Generic.IEnumerator`1<Verse.LocalTargetInfo>::get_Current()
IL_08DF: stloc.s 19 (Verse.LocalTargetInfo)
IL_08E1: newobj System.Void RimWorld.<>c__DisplayClass10_3::.ctor()
IL_08E6: stloc.s 20 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_3)
IL_08E8: ldloc.s 20 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_3)
IL_08EA: ldloc.0
IL_08EB: stfld RimWorld.<>c__DisplayClass10_0
RimWorld.<>c__DisplayClass10_3::CS$<>8__locals3
IL_08F0: ldloc.s 20 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_3)
IL_08F2: ldloca.s 19 (Verse.LocalTargetInfo)
IL_08F4: call Verse.Thing Verse.LocalTargetInfo::get_Thing()
IL_08F9: castclass Verse.Pawn
IL_08FE: stfld Verse.Pawn RimWorld.<>c__DisplayClass10_3::toHelpPawn
IL_0903: ldloc.s 20 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_3)
IL_0905: ldfld RimWorld.<>c__DisplayClass10_0
RimWorld.<>c__DisplayClass10_3::CS$<>8__locals3
IL_090A: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_090F: ldloc.s 19 (Verse.LocalTargetInfo)
IL_0911: ldc.i4.2
IL_0912: ldc.i4.3
IL_0913: ldc.i4.0
IL_0914: ldc.i4.0
IL_0915: ldc.i4.0
IL_0916: call static System.Boolean
Verse.ReachabilityUtility::CanReach(Verse.Pawn pawn, Verse.LocalTargetInfo dest,
Verse.AI.PathEndMode peMode, Verse.Danger maxDanger, System.Boolean canBashDoors,
System.Boolean canBashFences, Verse.TraverseMode mode)
IL_091B: brtrue => Label61
IL_0920: ldstr "CannotGoNoPath"
IL_0925: call static Verse.TaggedString
Verse.Translator::Translate(System.String key)
IL_092A: call static System.String
Verse.TaggedString::op_Implicit(Verse.TaggedString taggedString)
IL_092F: ldnull
IL_0930: ldc.i4.4
IL_0931: ldnull
IL_0932: ldnull
IL_0933: ldc.r4 0
IL_0938: ldnull
IL_0939: ldnull
IL_093A: ldc.i4.1
IL_093B: ldc.i4.0
IL_093C: newobj System.Void Verse.FloatMenuOption::.ctor(System.String
label, System.Action action, Verse.MenuOptionPriority priority,
System.Action`1<UnityEngine.Rect> mouseoverGuiAction, Verse.Thing
revalidateClickTarget, System.Single extraPartWidth,
System.Func`2<UnityEngine.Rect, System.Boolean> extraPartOnGUI,
RimWorld.Planet.WorldObject revalidateWorldClickTarget, System.Boolean
playSelectionSound, System.Int32 orderInPriority)
IL_0941: stloc.s 21 (Verse.FloatMenuOption)
IL_0943: br => Label62
IL_0948: Label61
IL_0948: ldloc.s 20 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_3)
IL_094A: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_3::toHelpPawn
IL_094F: callvirt System.Boolean Verse.Pawn::get_IsPrisoner()
IL_0954: brtrue => Label63
IL_0959: ldstr "OfferHelp"
IL_095E: call static Verse.TaggedString
Verse.Translator::Translate(System.String key)
IL_0963: br => Label64
IL_0968: Label63
IL_0968: ldstr "FreePrisoner"
IL_096D: call static Verse.TaggedString
Verse.Translator::Translate(System.String key)
IL_0972: Label64
IL_0972: call static System.String
Verse.TaggedString::op_Implicit(Verse.TaggedString taggedString)
IL_0977: ldloc.s 20 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_3)
IL_0979: ldftn System.Void
RimWorld.<>c__DisplayClass10_3::<AddHumanlikeOrders>b__2()
IL_097F: newobj System.Void System.Action::.ctor(System.Object object,
System.IntPtr method)
IL_0984: ldc.i4.8
IL_0985: ldnull
IL_0986: ldloc.s 20 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_3)
IL_0988: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_3::toHelpPawn
IL_098D: ldc.r4 0
IL_0992: ldnull
IL_0993: ldnull
IL_0994: ldc.i4.1
IL_0995: ldc.i4.0
IL_0996: newobj System.Void Verse.FloatMenuOption::.ctor(System.String
label, System.Action action, Verse.MenuOptionPriority priority,
System.Action`1<UnityEngine.Rect> mouseoverGuiAction, Verse.Thing
revalidateClickTarget, System.Single extraPartWidth,
System.Func`2<UnityEngine.Rect, System.Boolean> extraPartOnGUI,
RimWorld.Planet.WorldObject revalidateWorldClickTarget, System.Boolean
playSelectionSound, System.Int32 orderInPriority)
IL_099B: ldloc.s 20 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_3)
IL_099D: ldfld RimWorld.<>c__DisplayClass10_0
RimWorld.<>c__DisplayClass10_3::CS$<>8__locals3
IL_09A2: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_09A7: ldloc.s 20 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_3)
IL_09A9: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_3::toHelpPawn
IL_09AE: call static Verse.LocalTargetInfo
Verse.LocalTargetInfo::op_Implicit(Verse.Thing t)
IL_09B3: ldstr "ReservedBy"
IL_09B8: ldnull
IL_09B9: call static Verse.FloatMenuOption
RimWorld.FloatMenuUtility::DecoratePrioritizedTask(Verse.FloatMenuOption option,
Verse.Pawn pawn, Verse.LocalTargetInfo target, System.String reservedText,
Verse.ReservationLayerDef layer)
IL_09BE: stloc.s 21 (Verse.FloatMenuOption)
IL_09C0: Label62
IL_09C0: ldarg.2
IL_09C1: ldloc.s 21 (Verse.FloatMenuOption)
IL_09C3: callvirt virtual System.Void
System.Collections.Generic.List`1<Verse.FloatMenuOption>::Add(Verse.FloatMenuOption
item)
IL_09C8: Label60
IL_09C8: ldloc.s 8
(System.Collections.Generic.IEnumerator`1[Verse.LocalTargetInfo])
IL_09CA: callvirt abstract virtual System.Boolean
System.Collections.IEnumerator::MoveNext()
IL_09CF: brtrue => Label65
IL_09D4: leave => Label66
IL_09D9: leave => (autogenerated)
} // end try
.finally
{
IL_09DE: ldloc.s 8
(System.Collections.Generic.IEnumerator`1[Verse.LocalTargetInfo])
IL_09E0: brfalse => Label67
IL_09E5: ldloc.s 8
(System.Collections.Generic.IEnumerator`1[Verse.LocalTargetInfo])
IL_09E7: callvirt abstract virtual System.Void
System.IDisposable::Dispose()
IL_09EC: Label67
IL_09EC: endfinally
IL_09ED: leave => (autogenerated)
} // end handler
IL_09EE: Label66
IL_09EE: ldloc.0
IL_09EF: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_09F4: ldfld Verse.Pawn_HealthTracker Verse.Pawn::health
IL_09F9: ldfld Verse.PawnCapacitiesHandler
Verse.Pawn_HealthTracker::capacities
IL_09FE: ldsfld Verse.PawnCapacityDef RimWorld.PawnCapacityDefOf::Manipulation
IL_0A03: callvirt System.Boolean
Verse.PawnCapacitiesHandler::CapableOf(Verse.PawnCapacityDef capacity)
IL_0A08: brfalse => Label68
IL_0A0D: ldloc.1
IL_0A0E: ldloc.0
IL_0A0F: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_0A14: callvirt virtual Verse.Map Verse.Thing::get_Map()
IL_0A19: call static System.Collections.Generic.List`1<Verse.Thing>
Verse.GridsUtility::GetThingList(Verse.IntVec3 c, Verse.Map map)
IL_0A1E: stloc.s 22 (System.Collections.Generic.List`1[Verse.Thing])
IL_0A20: ldloc.s 22 (System.Collections.Generic.List`1[Verse.Thing])
IL_0A22: callvirt System.Collections.Generic.Enumerator<Verse.Thing>
System.Collections.Generic.List`1<Verse.Thing>::GetEnumerator()
IL_0A27: stloc.2
.try
{
IL_0A28: br => Label69
IL_0A2D: Label75
IL_0A2D: ldloca.s 2
(System.Collections.Generic.List`1+Enumerator[Verse.Thing])
IL_0A2F: call virtual Verse.Thing
System.Collections.Generic.Enumerator<Verse.Thing>::get_Current()
IL_0A34: stloc.s 23 (Verse.Thing)
IL_0A36: newobj System.Void RimWorld.<>c__DisplayClass10_4::.ctor()
IL_0A3B: stloc.s 24 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_4)
IL_0A3D: ldloc.s 24 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_4)
IL_0A3F: ldloc.0
IL_0A40: stfld RimWorld.<>c__DisplayClass10_0
RimWorld.<>c__DisplayClass10_4::CS$<>8__locals4
IL_0A45: ldloc.s 24 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_4)
IL_0A47: ldloc.s 23 (Verse.Thing)
IL_0A49: isinst Verse.Corpse
IL_0A4E: stfld Verse.Corpse RimWorld.<>c__DisplayClass10_4::corpse
IL_0A53: ldloc.s 24 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_4)
IL_0A55: ldfld Verse.Corpse RimWorld.<>c__DisplayClass10_4::corpse
IL_0A5A: brfalse => Label70
IL_0A5F: ldloc.s 24 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_4)
IL_0A61: ldfld Verse.Corpse RimWorld.<>c__DisplayClass10_4::corpse
IL_0A66: call static System.Boolean
RimWorld.StoreUtility::IsInValidStorage(Verse.Thing t)
IL_0A6B: brfalse => Label71
IL_0A70: ldloc.s 24 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_4)
IL_0A72: ldfld Verse.Corpse RimWorld.<>c__DisplayClass10_4::corpse
IL_0A77: call static RimWorld.IHaulDestination
RimWorld.StoreUtility::CurrentHaulDestinationOf(Verse.Thing t)
IL_0A7C: callvirt abstract virtual RimWorld.StorageSettings
RimWorld.IStoreSettingsParent::GetStoreSettings()
IL_0A81: callvirt RimWorld.StoragePriority
RimWorld.StorageSettings::get_Priority()
IL_0A86: stloc.s 26 (RimWorld.StoragePriority)
IL_0A88: ldloc.s 24 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_4)
IL_0A8A: ldfld Verse.Corpse RimWorld.<>c__DisplayClass10_4::corpse
IL_0A8F: ldloc.s 24 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_4)
IL_0A91: ldfld RimWorld.<>c__DisplayClass10_0
RimWorld.<>c__DisplayClass10_4::CS$<>8__locals4
IL_0A96: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_0A9B: ldloc.s 24 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_4)
IL_0A9D: ldfld RimWorld.<>c__DisplayClass10_0
RimWorld.<>c__DisplayClass10_4::CS$<>8__locals4
IL_0AA2: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_0AA7: callvirt virtual Verse.Map Verse.Thing::get_Map()
IL_0AAC: ldloc.s 26 (RimWorld.StoragePriority)
IL_0AAE: call static RimWorld.Faction RimWorld.Faction::get_OfPlayer()
IL_0AB3: ldloca.s 25 (RimWorld.IHaulDestination)
IL_0AB5: ldc.i4.1
IL_0AB6: call static System.Boolean
RimWorld.StoreUtility::TryFindBestBetterNonSlotGroupStorageFor(Verse.Thing t,
Verse.Pawn carrier, Verse.Map map, RimWorld.StoragePriority currentPriority,
RimWorld.Faction faction, RimWorld.IHaulDestination& haulDestination,
System.Boolean acceptSamePriority)
IL_0ABB: brfalse => Label72
IL_0AC0: ldloc.s 25 (RimWorld.IHaulDestination)
IL_0AC2: callvirt abstract virtual RimWorld.StorageSettings
RimWorld.IStoreSettingsParent::GetStoreSettings()
IL_0AC7: callvirt RimWorld.StoragePriority
RimWorld.StorageSettings::get_Priority()
IL_0ACC: ldloc.s 26 (RimWorld.StoragePriority)
IL_0ACE: bne.un => Label73
IL_0AD3: ldloc.s 25 (RimWorld.IHaulDestination)
IL_0AD5: isinst RimWorld.Building_Grave
IL_0ADA: brfalse => Label74
IL_0ADF: newobj System.Void RimWorld.<>c__DisplayClass10_5::.ctor()
IL_0AE4: stloc.s 27 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_5)
IL_0AE6: ldloc.s 27 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_5)
IL_0AE8: ldloc.s 24 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_4)
IL_0AEA: stfld RimWorld.<>c__DisplayClass10_4
RimWorld.<>c__DisplayClass10_5::CS$<>8__locals5
IL_0AEF: ldloc.s 27 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_5)
IL_0AF1: ldloc.s 25 (RimWorld.IHaulDestination)
IL_0AF3: isinst RimWorld.Building_Grave
IL_0AF8: stfld RimWorld.Building_Grave
RimWorld.<>c__DisplayClass10_5::grave
IL_0AFD: ldarg.2
IL_0AFE: ldstr "PrioritizeGeneric"
IL_0B03: ldstr "Burying"
IL_0B08: call static Verse.TaggedString
Verse.Translator::Translate(System.String key)
IL_0B0D: call static Verse.NamedArgument
Verse.NamedArgument::op_Implicit(Verse.TaggedString value)
IL_0B12: ldloc.s 27 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_5)
IL_0B14: ldfld RimWorld.<>c__DisplayClass10_4
RimWorld.<>c__DisplayClass10_5::CS$<>8__locals5
IL_0B19: ldfld Verse.Corpse RimWorld.<>c__DisplayClass10_4::corpse
IL_0B1E: callvirt abstract virtual System.String Verse.Entity::get_Label()
IL_0B23: call static Verse.NamedArgument
Verse.NamedArgument::op_Implicit(System.String value)
IL_0B28: call static Verse.TaggedString
Verse.TranslatorFormattedStringExtensions::Translate(System.String key,
Verse.NamedArgument arg1, Verse.NamedArgument arg2)
IL_0B2D: stloc.s 11 (Verse.TaggedString)
IL_0B2F: ldloca.s 11 (Verse.TaggedString)
IL_0B31: call Verse.TaggedString Verse.TaggedString::CapitalizeFirst()
IL_0B36: call static System.String
Verse.TaggedString::op_Implicit(Verse.TaggedString taggedString)
IL_0B3B: ldloc.s 27 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_5)
IL_0B3D: ldftn System.Void
RimWorld.<>c__DisplayClass10_5::<AddHumanlikeOrders>b__3()
IL_0B43: newobj System.Void System.Action::.ctor(System.Object object,
System.IntPtr method)
IL_0B48: ldc.i4.4
IL_0B49: ldnull
IL_0B4A: ldnull
IL_0B4B: ldc.r4 0
IL_0B50: ldnull
IL_0B51: ldnull
IL_0B52: ldc.i4.1
IL_0B53: ldc.i4.0
IL_0B54: newobj System.Void Verse.FloatMenuOption::.ctor(System.String
label, System.Action action, Verse.MenuOptionPriority priority,
System.Action`1<UnityEngine.Rect> mouseoverGuiAction, Verse.Thing
revalidateClickTarget, System.Single extraPartWidth,
System.Func`2<UnityEngine.Rect, System.Boolean> extraPartOnGUI,
RimWorld.Planet.WorldObject revalidateWorldClickTarget, System.Boolean
playSelectionSound, System.Int32 orderInPriority)
IL_0B59: ldloc.s 27 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_5)
IL_0B5B: ldfld RimWorld.<>c__DisplayClass10_4
RimWorld.<>c__DisplayClass10_5::CS$<>8__locals5
IL_0B60: ldfld RimWorld.<>c__DisplayClass10_0
RimWorld.<>c__DisplayClass10_4::CS$<>8__locals4
IL_0B65: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_0B6A: ldloc.s 27 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_5)
IL_0B6C: ldfld RimWorld.<>c__DisplayClass10_4
RimWorld.<>c__DisplayClass10_5::CS$<>8__locals5
IL_0B71: ldfld Verse.Corpse RimWorld.<>c__DisplayClass10_4::corpse
IL_0B76: newobj System.Void Verse.LocalTargetInfo::.ctor(Verse.Thing
thing)
IL_0B7B: ldstr "ReservedBy"
IL_0B80: ldnull
IL_0B81: call static Verse.FloatMenuOption
RimWorld.FloatMenuUtility::DecoratePrioritizedTask(Verse.FloatMenuOption option,
Verse.Pawn pawn, Verse.LocalTargetInfo target, System.String reservedText,
Verse.ReservationLayerDef layer)
IL_0B86: callvirt virtual System.Void
System.Collections.Generic.List`1<Verse.FloatMenuOption>::Add(Verse.FloatMenuOption
item)
IL_0B8B: Label69
IL_0B8B: Label70
IL_0B8B: Label71
IL_0B8B: Label72
IL_0B8B: Label73
IL_0B8B: Label74
IL_0B8B: ldloca.s 2
(System.Collections.Generic.List`1+Enumerator[Verse.Thing])
IL_0B8D: call virtual System.Boolean
System.Collections.Generic.Enumerator<Verse.Thing>::MoveNext()
IL_0B92: brtrue => Label75
IL_0B97: leave => Label76
IL_0B9C: leave => (autogenerated)
} // end try
.finally
{
IL_0BA1: ldloca.s 2
(System.Collections.Generic.List`1+Enumerator[Verse.Thing])
IL_0BA3: constrained.
System.Collections.Generic.List`1+Enumerator[Verse.Thing]
IL_0BA9: callvirt abstract virtual System.Void
System.IDisposable::Dispose()
IL_0BAE: endfinally
IL_0BAF: leave => (autogenerated)
} // end handler
IL_0BB0: Label76
IL_0BB0: ldloc.s 22 (System.Collections.Generic.List`1[Verse.Thing])
IL_0BB2: callvirt System.Collections.Generic.Enumerator<Verse.Thing>
System.Collections.Generic.List`1<Verse.Thing>::GetEnumerator()
IL_0BB7: stloc.2
.try
{
IL_0BB8: br => Label77
IL_0BBD: Label82
IL_0BBD: ldloca.s 2
(System.Collections.Generic.List`1+Enumerator[Verse.Thing])
IL_0BBF: call virtual Verse.Thing
System.Collections.Generic.Enumerator<Verse.Thing>::get_Current()
IL_0BC4: stloc.s 28 (Verse.Thing)
IL_0BC6: newobj System.Void RimWorld.<>c__DisplayClass10_6::.ctor()
IL_0BCB: stloc.s 29 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_6)
IL_0BCD: ldloc.s 29 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_6)
IL_0BCF: ldloc.0
IL_0BD0: stfld RimWorld.<>c__DisplayClass10_0
RimWorld.<>c__DisplayClass10_6::CS$<>8__locals6
IL_0BD5: ldloc.s 29 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_6)
IL_0BD7: ldloc.s 28 (Verse.Thing)
IL_0BD9: isinst Verse.Corpse
IL_0BDE: stfld Verse.Corpse RimWorld.<>c__DisplayClass10_6::corpse
IL_0BE3: ldloc.s 29 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_6)
IL_0BE5: ldfld Verse.Corpse RimWorld.<>c__DisplayClass10_6::corpse
IL_0BEA: brfalse => Label78
IL_0BEF: ldloc.s 29 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_6)
IL_0BF1: ldloc.s 29 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_6)
IL_0BF3: ldfld Verse.Corpse RimWorld.<>c__DisplayClass10_6::corpse
IL_0BF8: ldloc.s 29 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_6)
IL_0BFA: ldfld RimWorld.<>c__DisplayClass10_0
RimWorld.<>c__DisplayClass10_6::CS$<>8__locals6
IL_0BFF: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_0C04: ldc.i4.0
IL_0C05: call static RimWorld.Building_GibbetCage
RimWorld.Building_GibbetCage::FindGibbetCageFor(Verse.Corpse c, Verse.Pawn
traveler, System.Boolean ignoreOtherReservations)
IL_0C0A: stfld RimWorld.Building_GibbetCage
RimWorld.<>c__DisplayClass10_6::cage
IL_0C0F: ldloc.s 29 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_6)
IL_0C11: ldfld RimWorld.Building_GibbetCage
RimWorld.<>c__DisplayClass10_6::cage
IL_0C16: brfalse => Label79
IL_0C1B: ldarg.2
IL_0C1C: ldstr "PlaceIn"
IL_0C21: ldloc.s 29 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_6)
IL_0C23: ldfld Verse.Corpse RimWorld.<>c__DisplayClass10_6::corpse
IL_0C28: call static Verse.NamedArgument
Verse.NamedArgument::op_Implicit(Verse.Thing value)
IL_0C2D: ldloc.s 29 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_6)
IL_0C2F: ldfld RimWorld.Building_GibbetCage
RimWorld.<>c__DisplayClass10_6::cage
IL_0C34: call static Verse.NamedArgument
Verse.NamedArgument::op_Implicit(Verse.Thing value)
IL_0C39: call static Verse.TaggedString
Verse.TranslatorFormattedStringExtensions::Translate(System.String key,
Verse.NamedArgument arg1, Verse.NamedArgument arg2)
IL_0C3E: call static System.String
Verse.TaggedString::op_Implicit(Verse.TaggedString taggedString)
IL_0C43: ldloc.s 29 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_6)
IL_0C45: ldftn System.Void
RimWorld.<>c__DisplayClass10_6::<AddHumanlikeOrders>b__4()
IL_0C4B: newobj System.Void System.Action::.ctor(System.Object object,
System.IntPtr method)
IL_0C50: ldc.i4.4
IL_0C51: ldnull
IL_0C52: ldnull
IL_0C53: ldc.r4 0
IL_0C58: ldnull
IL_0C59: ldnull
IL_0C5A: ldc.i4.1
IL_0C5B: ldc.i4.0
IL_0C5C: newobj System.Void Verse.FloatMenuOption::.ctor(System.String
label, System.Action action, Verse.MenuOptionPriority priority,
System.Action`1<UnityEngine.Rect> mouseoverGuiAction, Verse.Thing
revalidateClickTarget, System.Single extraPartWidth,
System.Func`2<UnityEngine.Rect, System.Boolean> extraPartOnGUI,
RimWorld.Planet.WorldObject revalidateWorldClickTarget, System.Boolean
playSelectionSound, System.Int32 orderInPriority)
IL_0C61: ldloc.s 29 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_6)
IL_0C63: ldfld RimWorld.<>c__DisplayClass10_0
RimWorld.<>c__DisplayClass10_6::CS$<>8__locals6
IL_0C68: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_0C6D: ldloc.s 29 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_6)
IL_0C6F: ldfld Verse.Corpse RimWorld.<>c__DisplayClass10_6::corpse
IL_0C74: newobj System.Void Verse.LocalTargetInfo::.ctor(Verse.Thing
thing)
IL_0C79: ldstr "ReservedBy"
IL_0C7E: ldnull
IL_0C7F: call static Verse.FloatMenuOption
RimWorld.FloatMenuUtility::DecoratePrioritizedTask(Verse.FloatMenuOption option,
Verse.Pawn pawn, Verse.LocalTargetInfo target, System.String reservedText,
Verse.ReservationLayerDef layer)
IL_0C84: callvirt virtual System.Void
System.Collections.Generic.List`1<Verse.FloatMenuOption>::Add(Verse.FloatMenuOption
item)
IL_0C89: Label79
IL_0C89: call static System.Boolean
Verse.ModsConfig::get_BiotechActive()
IL_0C8E: brfalse => Label80
IL_0C93: ldloc.s 29 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_6)
IL_0C95: ldfld Verse.Corpse RimWorld.<>c__DisplayClass10_6::corpse
IL_0C9A: callvirt Verse.Pawn Verse.Corpse::get_InnerPawn()
IL_0C9F: ldfld Verse.Pawn_HealthTracker Verse.Pawn::health
IL_0CA4: ldfld Verse.HediffSet Verse.Pawn_HealthTracker::hediffSet
IL_0CA9: ldsfld Verse.HediffDef RimWorld.HediffDefOf::MechlinkImplant
IL_0CAE: ldc.i4.0
IL_0CAF: callvirt System.Boolean Verse.HediffSet::HasHediff(Verse.HediffDef
def, System.Boolean mustBeVisible)
IL_0CB4: brfalse => Label81
IL_0CB9: ldarg.2
IL_0CBA: ldstr "Extract"
IL_0CBF: call static Verse.TaggedString
Verse.Translator::Translate(System.String key)
IL_0CC4: ldstr " "
IL_0CC9: call static Verse.TaggedString
Verse.TaggedString::op_Addition(Verse.TaggedString t1, System.String t2)
IL_0CCE: ldsfld Verse.HediffDef RimWorld.HediffDefOf::MechlinkImplant
IL_0CD3: ldfld System.String Verse.Def::label
IL_0CD8: call static Verse.TaggedString
Verse.TaggedString::op_Addition(Verse.TaggedString t1, System.String t2)
IL_0CDD: call static System.String
Verse.TaggedString::op_Implicit(Verse.TaggedString taggedString)
IL_0CE2: ldloc.s 29 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_6)
IL_0CE4: ldftn System.Void
RimWorld.<>c__DisplayClass10_6::<AddHumanlikeOrders>b__5()
IL_0CEA: newobj System.Void System.Action::.ctor(System.Object object,
System.IntPtr method)
IL_0CEF: ldc.i4.4
IL_0CF0: ldnull
IL_0CF1: ldnull
IL_0CF2: ldc.r4 0
IL_0CF7: ldnull
IL_0CF8: ldnull
IL_0CF9: ldc.i4.1
IL_0CFA: ldc.i4.0
IL_0CFB: newobj System.Void Verse.FloatMenuOption::.ctor(System.String
label, System.Action action, Verse.MenuOptionPriority priority,
System.Action`1<UnityEngine.Rect> mouseoverGuiAction, Verse.Thing
revalidateClickTarget, System.Single extraPartWidth,
System.Func`2<UnityEngine.Rect, System.Boolean> extraPartOnGUI,
RimWorld.Planet.WorldObject revalidateWorldClickTarget, System.Boolean
playSelectionSound, System.Int32 orderInPriority)
IL_0D00: ldloc.s 29 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_6)
IL_0D02: ldfld RimWorld.<>c__DisplayClass10_0
RimWorld.<>c__DisplayClass10_6::CS$<>8__locals6
IL_0D07: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_0D0C: ldloc.s 29 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_6)
IL_0D0E: ldfld Verse.Corpse RimWorld.<>c__DisplayClass10_6::corpse
IL_0D13: newobj System.Void Verse.LocalTargetInfo::.ctor(Verse.Thing
thing)
IL_0D18: ldstr "ReservedBy"
IL_0D1D: ldnull
IL_0D1E: call static Verse.FloatMenuOption
RimWorld.FloatMenuUtility::DecoratePrioritizedTask(Verse.FloatMenuOption option,
Verse.Pawn pawn, Verse.LocalTargetInfo target, System.String reservedText,
Verse.ReservationLayerDef layer)
IL_0D23: callvirt virtual System.Void
System.Collections.Generic.List`1<Verse.FloatMenuOption>::Add(Verse.FloatMenuOption
item)
IL_0D28: Label77
IL_0D28: Label78
IL_0D28: Label80
IL_0D28: Label81
IL_0D28: ldloca.s 2
(System.Collections.Generic.List`1+Enumerator[Verse.Thing])
IL_0D2A: call virtual System.Boolean
System.Collections.Generic.Enumerator<Verse.Thing>::MoveNext()
IL_0D2F: brtrue => Label82
IL_0D34: leave => Label83
IL_0D39: leave => (autogenerated)
} // end try
.finally
{
IL_0D3E: ldloca.s 2
(System.Collections.Generic.List`1+Enumerator[Verse.Thing])
IL_0D40: constrained.
System.Collections.Generic.List`1+Enumerator[Verse.Thing]
IL_0D46: callvirt abstract virtual System.Void
System.IDisposable::Dispose()
IL_0D4B: endfinally
IL_0D4C: leave => (autogenerated)
} // end handler
IL_0D4D: Label83
IL_0D4D: ldarg.0
IL_0D4E: ldloc.0
IL_0D4F: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_0D54: call static RimWorld.TargetingParameters
RimWorld.TargetingParameters::ForRescue(Verse.Pawn p)
IL_0D59: ldc.i4.1
IL_0D5A: ldnull
IL_0D5B: call static
System.Collections.Generic.IEnumerable`1<Verse.LocalTargetInfo>
Verse.GenUI::TargetsAt(UnityEngine.Vector3 clickPos, RimWorld.TargetingParameters
clickParams, System.Boolean thingsOnly, RimWorld.ITargetingSource source)
IL_0D60: callvirt abstract virtual
System.Collections.Generic.IEnumerator`1<Verse.LocalTargetInfo>
System.Collections.Generic.IEnumerable`1<Verse.LocalTargetInfo>::GetEnumerator()
IL_0D65: stloc.s 8
(System.Collections.Generic.IEnumerator`1[Verse.LocalTargetInfo])
.try
{
IL_0D67: br => Label84
IL_0D6C: Label119
IL_0D6C: ldloc.s 8
(System.Collections.Generic.IEnumerator`1[Verse.LocalTargetInfo])
IL_0D6E: callvirt abstract virtual Verse.LocalTargetInfo
System.Collections.Generic.IEnumerator`1<Verse.LocalTargetInfo>::get_Current()
IL_0D73: stloc.s 30 (Verse.LocalTargetInfo)
IL_0D75: newobj System.Void RimWorld.<>c__DisplayClass10_7::.ctor()
IL_0D7A: stloc.s 31 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_7)
IL_0D7C: ldloc.s 31 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_7)
IL_0D7E: ldloc.0
IL_0D7F: stfld RimWorld.<>c__DisplayClass10_0
RimWorld.<>c__DisplayClass10_7::CS$<>8__locals7
IL_0D84: ldloc.s 31 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_7)
IL_0D86: ldloca.s 30 (Verse.LocalTargetInfo)
IL_0D88: call Verse.Thing Verse.LocalTargetInfo::get_Thing()
IL_0D8D: castclass Verse.Pawn
IL_0D92: stfld Verse.Pawn RimWorld.<>c__DisplayClass10_7::victim
IL_0D97: ldloc.s 31 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_7)
IL_0D99: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_7::victim
IL_0D9E: call static System.Boolean
RimWorld.RestUtility::InBed(Verse.Pawn p)
IL_0DA3: brtrue => Label85
IL_0DA8: ldloc.s 31 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_7)
IL_0DAA: ldfld RimWorld.<>c__DisplayClass10_0
RimWorld.<>c__DisplayClass10_7::CS$<>8__locals7
IL_0DAF: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_0DB4: ldloc.s 31 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_7)
IL_0DB6: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_7::victim
IL_0DBB: call static Verse.LocalTargetInfo
Verse.LocalTargetInfo::op_Implicit(Verse.Thing t)
IL_0DC0: ldc.i4.1
IL_0DC1: ldc.i4.3
IL_0DC2: ldc.i4.1
IL_0DC3: ldc.i4.m1
IL_0DC4: ldnull
IL_0DC5: ldc.i4.1
IL_0DC6: call static System.Boolean
Verse.AI.ReservationUtility::CanReserveAndReach(Verse.Pawn p, Verse.LocalTargetInfo
target, Verse.AI.PathEndMode peMode, Verse.Danger maxDanger, System.Int32 maxPawns,
System.Int32 stackCount, Verse.ReservationLayerDef layer, System.Boolean
ignoreOtherReservations)
IL_0DCB: brfalse => Label86
IL_0DD0: ldloc.s 31 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_7)
IL_0DD2: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_7::victim
IL_0DD7: ldfld Verse.AI.Pawn_MindState Verse.Pawn::mindState
IL_0DDC: callvirt System.Boolean
Verse.AI.Pawn_MindState::get_WillJoinColonyIfRescued()
IL_0DE1: brtrue => Label87
IL_0DE6: ldloc.s 31 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_7)
IL_0DE8: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_7::victim
IL_0DED: callvirt System.Boolean Verse.Pawn::get_IsPrisonerOfColony()
IL_0DF2: brtrue => Label88
IL_0DF7: ldloc.s 31 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_7)
IL_0DF9: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_7::victim
IL_0DFE: callvirt System.Boolean Verse.Pawn::get_IsSlaveOfColony()
IL_0E03: brtrue => Label89
IL_0E08: ldloc.s 31 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_7)
IL_0E0A: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_7::victim
IL_0E0F: callvirt System.Boolean Verse.Pawn::get_InMentalState()
IL_0E14: brfalse => Label90
IL_0E19: ldloc.s 31 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_7)
IL_0E1B: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_7::victim
IL_0E20: ldfld Verse.Pawn_HealthTracker Verse.Pawn::health
IL_0E25: ldfld Verse.HediffSet Verse.Pawn_HealthTracker::hediffSet
IL_0E2A: ldsfld Verse.HediffDef RimWorld.HediffDefOf::Scaria
IL_0E2F: ldc.i4.0
IL_0E30: callvirt System.Boolean Verse.HediffSet::HasHediff(Verse.HediffDef
def, System.Boolean mustBeVisible)
IL_0E35: brfalse => Label91
IL_0E3A: Label90
IL_0E3A: ldloc.s 31 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_7)
IL_0E3C: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_7::victim
IL_0E41: callvirt System.Boolean Verse.Pawn::get_IsColonyMech()
IL_0E46: brtrue => Label92
IL_0E4B: newobj System.Void RimWorld.<>c__DisplayClass10_8::.ctor()
IL_0E50: stloc.s 32 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_8)
IL_0E52: ldloc.s 32 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_8)
IL_0E54: ldloc.s 31 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_7)
IL_0E56: stfld RimWorld.<>c__DisplayClass10_7
RimWorld.<>c__DisplayClass10_8::CS$<>8__locals8
IL_0E5B: ldloc.s 32 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_8)
IL_0E5D: ldloc.s 32 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_8)
IL_0E5F: ldfld RimWorld.<>c__DisplayClass10_7
RimWorld.<>c__DisplayClass10_8::CS$<>8__locals8
IL_0E64: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_7::victim
IL_0E69: ldloca.s 33
(System.Nullable`1[RimWorld.ChildcareUtility+BreastfeedFailReason])
IL_0E6B: call static System.Boolean
RimWorld.ChildcareUtility::CanSuckle(Verse.Pawn baby, System.Nullable`1& reason)
IL_0E70: stfld System.Boolean RimWorld.<>c__DisplayClass10_8::isBaby
IL_0E75: ldloc.s 32 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_8)
IL_0E77: ldfld RimWorld.<>c__DisplayClass10_7
RimWorld.<>c__DisplayClass10_8::CS$<>8__locals8
IL_0E7C: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_7::victim
IL_0E81: callvirt virtual RimWorld.Faction Verse.Thing::get_Faction()
IL_0E86: call static RimWorld.Faction RimWorld.Faction::get_OfPlayer()
IL_0E8B: beq => Label93
IL_0E90: ldloc.s 32 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_8)
IL_0E92: ldfld RimWorld.<>c__DisplayClass10_7
RimWorld.<>c__DisplayClass10_8::CS$<>8__locals8
IL_0E97: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_7::victim
IL_0E9C: callvirt virtual RimWorld.Faction Verse.Thing::get_Faction()
IL_0EA1: brfalse => Label94
IL_0EA6: ldloc.s 32 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_8)
IL_0EA8: ldfld RimWorld.<>c__DisplayClass10_7
RimWorld.<>c__DisplayClass10_8::CS$<>8__locals8
IL_0EAD: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_7::victim
IL_0EB2: callvirt virtual RimWorld.Faction Verse.Thing::get_Faction()
IL_0EB7: call static RimWorld.Faction RimWorld.Faction::get_OfPlayer()
IL_0EBC: call static System.Boolean
RimWorld.FactionUtility::HostileTo(RimWorld.Faction fac, RimWorld.Faction other)
IL_0EC1: ldc.i4.0
IL_0EC2: ceq
IL_0EC4: br => Label95
IL_0EC9: Label94
IL_0EC9: ldc.i4.1
IL_0ECA: br => Label96
IL_0ECF: Label93
IL_0ECF: ldc.i4.1
IL_0ED0: Label95
IL_0ED0: Label96
IL_0ED0: ldloc.s 32 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_8)
IL_0ED2: ldfld System.Boolean RimWorld.<>c__DisplayClass10_8::isBaby
IL_0ED7: or
IL_0ED8: brfalse => Label97
IL_0EDD: ldloc.s 32 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_8)
IL_0EDF: ldfld RimWorld.<>c__DisplayClass10_7
RimWorld.<>c__DisplayClass10_8::CS$<>8__locals8
IL_0EE4: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_7::victim
IL_0EE9: call static System.Boolean
RimWorld.HealthAIUtility::ShouldSeekMedicalRest(Verse.Pawn pawn)
IL_0EEE: brtrue => Label98
IL_0EF3: ldloc.s 32 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_8)
IL_0EF5: ldfld RimWorld.<>c__DisplayClass10_7
RimWorld.<>c__DisplayClass10_8::CS$<>8__locals8
IL_0EFA: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_7::victim
IL_0EFF: ldfld Verse.Pawn_AgeTracker Verse.Pawn::ageTracker
IL_0F04: callvirt RimWorld.LifeStageDef
Verse.Pawn_AgeTracker::get_CurLifeStage()
IL_0F09: ldfld System.Boolean RimWorld.LifeStageDef::alwaysDowned
IL_0F0E: ldc.i4.0
IL_0F0F: ceq
IL_0F11: br => Label99
IL_0F16: Label98
IL_0F16: ldc.i4.1
IL_0F17: Label99
IL_0F17: brtrue => Label100
IL_0F1C: ldstr "PutSomewhereSafe"
IL_0F21: ldloc.s 32 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_8)
IL_0F23: ldfld RimWorld.<>c__DisplayClass10_7
RimWorld.<>c__DisplayClass10_8::CS$<>8__locals8
IL_0F28: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_7::victim
IL_0F2D: callvirt abstract virtual System.String
Verse.Entity::get_LabelCap()
IL_0F32: call static Verse.NamedArgument
Verse.NamedArgument::op_Implicit(System.String value)
IL_0F37: ldloc.s 32 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_8)
IL_0F39: ldfld RimWorld.<>c__DisplayClass10_7
RimWorld.<>c__DisplayClass10_8::CS$<>8__locals8
IL_0F3E: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_7::victim
IL_0F43: call static Verse.NamedArgument
Verse.NamedArgument::op_Implicit(Verse.Thing value)
IL_0F48: call static Verse.TaggedString
Verse.TranslatorFormattedStringExtensions::Translate(System.String key,
Verse.NamedArgument arg1, Verse.NamedArgument arg2)
IL_0F4D: br => Label101
IL_0F52: Label100
IL_0F52: ldstr "Rescue"
IL_0F57: ldloc.s 32 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_8)
IL_0F59: ldfld RimWorld.<>c__DisplayClass10_7
RimWorld.<>c__DisplayClass10_8::CS$<>8__locals8
IL_0F5E: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_7::victim
IL_0F63: callvirt abstract virtual System.String
Verse.Entity::get_LabelCap()
IL_0F68: call static Verse.NamedArgument
Verse.NamedArgument::op_Implicit(System.String value)
IL_0F6D: ldloc.s 32 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_8)
IL_0F6F: ldfld RimWorld.<>c__DisplayClass10_7
RimWorld.<>c__DisplayClass10_8::CS$<>8__locals8
IL_0F74: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_7::victim
IL_0F79: call static Verse.NamedArgument
Verse.NamedArgument::op_Implicit(Verse.Thing value)
IL_0F7E: call static Verse.TaggedString
Verse.TranslatorFormattedStringExtensions::Translate(System.String key,
Verse.NamedArgument arg1, Verse.NamedArgument arg2)
IL_0F83: Label101
IL_0F83: stloc.s 34 (Verse.TaggedString)
IL_0F85: ldarg.2
IL_0F86: ldloc.s 34 (Verse.TaggedString)
IL_0F88: call static System.String
Verse.TaggedString::op_Implicit(Verse.TaggedString taggedString)
IL_0F8D: ldloc.s 32 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_8)
IL_0F8F: ldftn System.Void
RimWorld.<>c__DisplayClass10_8::<AddHumanlikeOrders>b__7()
IL_0F95: newobj System.Void System.Action::.ctor(System.Object object,
System.IntPtr method)
IL_0F9A: ldc.i4.8
IL_0F9B: ldnull
IL_0F9C: ldloc.s 32 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_8)
IL_0F9E: ldfld RimWorld.<>c__DisplayClass10_7
RimWorld.<>c__DisplayClass10_8::CS$<>8__locals8
IL_0FA3: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_7::victim
IL_0FA8: ldc.r4 0
IL_0FAD: ldnull
IL_0FAE: ldnull
IL_0FAF: ldc.i4.1
IL_0FB0: ldc.i4.0
IL_0FB1: newobj System.Void Verse.FloatMenuOption::.ctor(System.String
label, System.Action action, Verse.MenuOptionPriority priority,
System.Action`1<UnityEngine.Rect> mouseoverGuiAction, Verse.Thing
revalidateClickTarget, System.Single extraPartWidth,
System.Func`2<UnityEngine.Rect, System.Boolean> extraPartOnGUI,
RimWorld.Planet.WorldObject revalidateWorldClickTarget, System.Boolean
playSelectionSound, System.Int32 orderInPriority)
IL_0FB6: ldloc.s 32 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_8)
IL_0FB8: ldfld RimWorld.<>c__DisplayClass10_7
RimWorld.<>c__DisplayClass10_8::CS$<>8__locals8
IL_0FBD: ldfld RimWorld.<>c__DisplayClass10_0
RimWorld.<>c__DisplayClass10_7::CS$<>8__locals7
IL_0FC2: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_0FC7: ldloc.s 32 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_8)
IL_0FC9: ldfld RimWorld.<>c__DisplayClass10_7
RimWorld.<>c__DisplayClass10_8::CS$<>8__locals8
IL_0FCE: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_7::victim
IL_0FD3: call static Verse.LocalTargetInfo
Verse.LocalTargetInfo::op_Implicit(Verse.Thing t)
IL_0FD8: ldstr "ReservedBy"
IL_0FDD: ldnull
IL_0FDE: call static Verse.FloatMenuOption
RimWorld.FloatMenuUtility::DecoratePrioritizedTask(Verse.FloatMenuOption option,
Verse.Pawn pawn, Verse.LocalTargetInfo target, System.String reservedText,
Verse.ReservationLayerDef layer)
IL_0FE3: callvirt virtual System.Void
System.Collections.Generic.List`1<Verse.FloatMenuOption>::Add(Verse.FloatMenuOption
item)
IL_0FE8: Label88
IL_0FE8: Label89
IL_0FE8: Label91
IL_0FE8: Label92
IL_0FE8: Label97
IL_0FE8: ldloc.s 31 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_7)
IL_0FEA: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_7::victim
IL_0FEF: callvirt System.Boolean Verse.Pawn::get_IsSlaveOfColony()
IL_0FF4: brfalse => Label102
IL_0FF9: ldloc.s 31 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_7)
IL_0FFB: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_7::victim
IL_1000: callvirt System.Boolean Verse.Pawn::get_InMentalState()
IL_1005: brtrue => Label103
IL_100A: ldarg.2
IL_100B: ldstr "ReturnToSlaveBed"
IL_1010: call static Verse.TaggedString
Verse.Translator::Translate(System.String key)
IL_1015: call static System.String
Verse.TaggedString::op_Implicit(Verse.TaggedString taggedString)
IL_101A: ldloc.s 31 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_7)
IL_101C: ldftn System.Void
RimWorld.<>c__DisplayClass10_7::<AddHumanlikeOrders>b__6()
IL_1022: newobj System.Void System.Action::.ctor(System.Object object,
System.IntPtr method)
IL_1027: ldc.i4.8
IL_1028: ldnull
IL_1029: ldloc.s 31 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_7)
IL_102B: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_7::victim
IL_1030: ldc.r4 0
IL_1035: ldnull
IL_1036: ldnull
IL_1037: ldc.i4.1
IL_1038: ldc.i4.0
IL_1039: newobj System.Void Verse.FloatMenuOption::.ctor(System.String
label, System.Action action, Verse.MenuOptionPriority priority,
System.Action`1<UnityEngine.Rect> mouseoverGuiAction, Verse.Thing
revalidateClickTarget, System.Single extraPartWidth,
System.Func`2<UnityEngine.Rect, System.Boolean> extraPartOnGUI,
RimWorld.Planet.WorldObject revalidateWorldClickTarget, System.Boolean
playSelectionSound, System.Int32 orderInPriority)
IL_103E: ldloc.s 31 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_7)
IL_1040: ldfld RimWorld.<>c__DisplayClass10_0
RimWorld.<>c__DisplayClass10_7::CS$<>8__locals7
IL_1045: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_104A: ldloc.s 31 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_7)
IL_104C: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_7::victim
IL_1051: call static Verse.LocalTargetInfo
Verse.LocalTargetInfo::op_Implicit(Verse.Thing t)
IL_1056: ldstr "ReservedBy"
IL_105B: ldnull
IL_105C: call static Verse.FloatMenuOption
RimWorld.FloatMenuUtility::DecoratePrioritizedTask(Verse.FloatMenuOption option,
Verse.Pawn pawn, Verse.LocalTargetInfo target, System.String reservedText,
Verse.ReservationLayerDef layer)
IL_1061: callvirt virtual System.Void
System.Collections.Generic.List`1<Verse.FloatMenuOption>::Add(Verse.FloatMenuOption
item)
IL_1066: Label102
IL_1066: Label103
IL_1066: ldloc.s 31 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_7)
IL_1068: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_7::victim
IL_106D: callvirt Verse.RaceProperties Verse.Pawn::get_RaceProps()
IL_1072: callvirt System.Boolean Verse.RaceProperties::get_Humanlike()
IL_1077: brfalse => Label104
IL_107C: ldloc.s 31 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_7)
IL_107E: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_7::victim
IL_1083: ldfld Verse.Pawn_AgeTracker Verse.Pawn::ageTracker
IL_1088: callvirt RimWorld.LifeStageDef
Verse.Pawn_AgeTracker::get_CurLifeStage()
IL_108D: dup
IL_108E: brtrue => Label105
IL_1093: pop
IL_1094: ldc.i4.1
IL_1095: br => Label106
IL_109A: Label105
IL_109A: ldfld System.Boolean RimWorld.LifeStageDef::claimable
IL_109F: ldc.i4.0
IL_10A0: ceq
IL_10A2: Label106
IL_10A2: brfalse => Label107
IL_10A7: ldloc.s 31 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_7)
IL_10A9: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_7::victim
IL_10AE: callvirt System.Boolean Verse.Pawn::get_InMentalState()
IL_10B3: brtrue => Label108
IL_10B8: ldloc.s 31 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_7)
IL_10BA: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_7::victim
IL_10BF: callvirt virtual RimWorld.Faction Verse.Thing::get_Faction()
IL_10C4: call static RimWorld.Faction RimWorld.Faction::get_OfPlayer()
IL_10C9: bne.un => Label109
IL_10CE: ldloc.s 31 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_7)
IL_10D0: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_7::victim
IL_10D5: callvirt System.Boolean Verse.Pawn::get_Downed()
IL_10DA: brfalse => Label110
IL_10DF: ldloc.s 31 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_7)
IL_10E1: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_7::victim
IL_10E6: ldfld RimWorld.Pawn_GuiltTracker Verse.Pawn::guilt
IL_10EB: callvirt System.Boolean RimWorld.Pawn_GuiltTracker::get_IsGuilty()
IL_10F0: brtrue => Label111
IL_10F5: ldloc.s 31 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_7)
IL_10F7: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_7::victim
IL_10FC: callvirt System.Boolean Verse.Pawn::get_IsPrisonerOfColony()
IL_1101: brfalse => Label112
IL_1106: Label108
IL_1106: Label109
IL_1106: Label111
IL_1106: ldstr "Capture"
IL_110B: ldloc.s 31 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_7)
IL_110D: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_7::victim
IL_1112: callvirt abstract virtual System.String
Verse.Entity::get_LabelCap()
IL_1117: call static Verse.NamedArgument
Verse.NamedArgument::op_Implicit(System.String value)
IL_111C: ldloc.s 31 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_7)
IL_111E: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_7::victim
IL_1123: call static Verse.NamedArgument
Verse.NamedArgument::op_Implicit(Verse.Thing value)
IL_1128: call static Verse.TaggedString
Verse.TranslatorFormattedStringExtensions::Translate(System.String key,
Verse.NamedArgument arg1, Verse.NamedArgument arg2)
IL_112D: stloc.s 35 (Verse.TaggedString)
IL_112F: ldloc.s 31 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_7)
IL_1131: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_7::victim
IL_1136: ldfld RimWorld.Pawn_GuestTracker Verse.Pawn::guest
IL_113B: callvirt System.Boolean
RimWorld.Pawn_GuestTracker::get_Recruitable()
IL_1140: brtrue => Label113
IL_1145: ldloc.s 35 (Verse.TaggedString)
IL_1147: ldstr " ("
IL_114C: ldstr "Unrecruitable"
IL_1151: call static Verse.TaggedString
Verse.Translator::Translate(System.String key)
IL_1156: call static Verse.TaggedString
Verse.TaggedString::op_Addition(System.String t1, Verse.TaggedString t2)
IL_115B: ldstr ")"
IL_1160: call static Verse.TaggedString
Verse.TaggedString::op_Addition(Verse.TaggedString t1, System.String t2)
IL_1165: call static Verse.TaggedString
Verse.TaggedString::op_Addition(Verse.TaggedString t1, Verse.TaggedString t2)
IL_116A: stloc.s 35 (Verse.TaggedString)
IL_116C: Label113
IL_116C: ldloc.s 31 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_7)
IL_116E: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_7::victim
IL_1173: callvirt virtual RimWorld.Faction Verse.Thing::get_Faction()
IL_1178: brfalse => Label114
IL_117D: ldloc.s 31 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_7)
IL_117F: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_7::victim
IL_1184: callvirt virtual RimWorld.Faction Verse.Thing::get_Faction()
IL_1189: call static RimWorld.Faction RimWorld.Faction::get_OfPlayer()
IL_118E: beq => Label115
IL_1193: ldloc.s 31 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_7)
IL_1195: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_7::victim
IL_119A: callvirt virtual RimWorld.Faction Verse.Thing::get_Faction()
IL_119F: callvirt System.Boolean RimWorld.Faction::get_Hidden()
IL_11A4: brtrue => Label116
IL_11A9: ldloc.s 31 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_7)
IL_11AB: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_7::victim
IL_11B0: callvirt virtual RimWorld.Faction Verse.Thing::get_Faction()
IL_11B5: call static RimWorld.Faction RimWorld.Faction::get_OfPlayer()
IL_11BA: call static System.Boolean
RimWorld.FactionUtility::HostileTo(RimWorld.Faction fac, RimWorld.Faction other)
IL_11BF: brtrue => Label117
IL_11C4: ldloc.s 31 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_7)
IL_11C6: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_7::victim
IL_11CB: callvirt System.Boolean Verse.Pawn::get_IsPrisonerOfColony()
IL_11D0: brtrue => Label118
IL_11D5: ldloc.s 35 (Verse.TaggedString)
IL_11D7: ldstr ": "
IL_11DC: ldstr "AngersFaction"
IL_11E1: call static Verse.TaggedString
Verse.Translator::Translate(System.String key)
IL_11E6: stloc.s 11 (Verse.TaggedString)
IL_11E8: ldloca.s 11 (Verse.TaggedString)
IL_11EA: call Verse.TaggedString Verse.TaggedString::CapitalizeFirst()
IL_11EF: call static Verse.TaggedString
Verse.TaggedString::op_Addition(System.String t1, Verse.TaggedString t2)
IL_11F4: call static Verse.TaggedString
Verse.TaggedString::op_Addition(Verse.TaggedString t1, Verse.TaggedString t2)
IL_11F9: stloc.s 35 (Verse.TaggedString)
IL_11FB: Label114
IL_11FB: Label115
IL_11FB: Label116
IL_11FB: Label117
IL_11FB: Label118
IL_11FB: ldarg.2
IL_11FC: ldloc.s 35 (Verse.TaggedString)
IL_11FE: call static System.String
Verse.TaggedString::op_Implicit(Verse.TaggedString taggedString)
IL_1203: ldloc.s 31 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_7)
IL_1205: ldftn System.Void
RimWorld.<>c__DisplayClass10_7::<AddHumanlikeOrders>b__8()
IL_120B: newobj System.Void System.Action::.ctor(System.Object object,
System.IntPtr method)
IL_1210: ldc.i4.8
IL_1211: ldnull
IL_1212: ldloc.s 31 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_7)
IL_1214: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_7::victim
IL_1219: ldc.r4 0
IL_121E: ldnull
IL_121F: ldnull
IL_1220: ldc.i4.1
IL_1221: ldc.i4.0
IL_1222: newobj System.Void Verse.FloatMenuOption::.ctor(System.String
label, System.Action action, Verse.MenuOptionPriority priority,
System.Action`1<UnityEngine.Rect> mouseoverGuiAction, Verse.Thing
revalidateClickTarget, System.Single extraPartWidth,
System.Func`2<UnityEngine.Rect, System.Boolean> extraPartOnGUI,
RimWorld.Planet.WorldObject revalidateWorldClickTarget, System.Boolean
playSelectionSound, System.Int32 orderInPriority)
IL_1227: ldloc.s 31 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_7)
IL_1229: ldfld RimWorld.<>c__DisplayClass10_0
RimWorld.<>c__DisplayClass10_7::CS$<>8__locals7
IL_122E: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_1233: ldloc.s 31 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_7)
IL_1235: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_7::victim
IL_123A: call static Verse.LocalTargetInfo
Verse.LocalTargetInfo::op_Implicit(Verse.Thing t)
IL_123F: ldstr "ReservedBy"
IL_1244: ldnull
IL_1245: call static Verse.FloatMenuOption
RimWorld.FloatMenuUtility::DecoratePrioritizedTask(Verse.FloatMenuOption option,
Verse.Pawn pawn, Verse.LocalTargetInfo target, System.String reservedText,
Verse.ReservationLayerDef layer)
IL_124A: callvirt virtual System.Void
System.Collections.Generic.List`1<Verse.FloatMenuOption>::Add(Verse.FloatMenuOption
item)
IL_124F: Label84
IL_124F: Label85
IL_124F: Label86
IL_124F: Label87
IL_124F: Label104
IL_124F: Label107
IL_124F: Label110
IL_124F: Label112
IL_124F: ldloc.s 8
(System.Collections.Generic.IEnumerator`1[Verse.LocalTargetInfo])
IL_1251: callvirt abstract virtual System.Boolean
System.Collections.IEnumerator::MoveNext()
IL_1256: brtrue => Label119
IL_125B: leave => Label120
IL_1260: leave => (autogenerated)
} // end try
.finally
{
IL_1265: ldloc.s 8
(System.Collections.Generic.IEnumerator`1[Verse.LocalTargetInfo])
IL_1267: brfalse => Label121
IL_126C: ldloc.s 8
(System.Collections.Generic.IEnumerator`1[Verse.LocalTargetInfo])
IL_126E: callvirt abstract virtual System.Void
System.IDisposable::Dispose()
IL_1273: Label121
IL_1273: endfinally
IL_1274: leave => (autogenerated)
} // end handler
IL_1275: Label120
IL_1275: ldarg.0
IL_1276: ldloc.0
IL_1277: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_127C: call static RimWorld.TargetingParameters
RimWorld.TargetingParameters::ForRescue(Verse.Pawn p)
IL_1281: ldc.i4.1
IL_1282: ldnull
IL_1283: call static
System.Collections.Generic.IEnumerable`1<Verse.LocalTargetInfo>
Verse.GenUI::TargetsAt(UnityEngine.Vector3 clickPos, RimWorld.TargetingParameters
clickParams, System.Boolean thingsOnly, RimWorld.ITargetingSource source)
IL_1288: callvirt abstract virtual
System.Collections.Generic.IEnumerator`1<Verse.LocalTargetInfo>
System.Collections.Generic.IEnumerable`1<Verse.LocalTargetInfo>::GetEnumerator()
IL_128D: stloc.s 8
(System.Collections.Generic.IEnumerator`1[Verse.LocalTargetInfo])
.try
{
IL_128F: br => Label122
IL_1294: Label130
IL_1294: ldloc.s 8
(System.Collections.Generic.IEnumerator`1[Verse.LocalTargetInfo])
IL_1296: callvirt abstract virtual Verse.LocalTargetInfo
System.Collections.Generic.IEnumerator`1<Verse.LocalTargetInfo>::get_Current()
IL_129B: newobj System.Void RimWorld.<>c__DisplayClass10_9::.ctor()
IL_12A0: stloc.s 36 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_9)
IL_12A2: ldloc.s 36 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_9)
IL_12A4: ldloc.0
IL_12A5: stfld RimWorld.<>c__DisplayClass10_0
RimWorld.<>c__DisplayClass10_9::CS$<>8__locals9
IL_12AA: stloc.s 37 (Verse.LocalTargetInfo)
IL_12AC: ldloc.s 36 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_9)
IL_12AE: ldloca.s 37 (Verse.LocalTargetInfo)
IL_12B0: call Verse.Thing Verse.LocalTargetInfo::get_Thing()
IL_12B5: castclass Verse.Pawn
IL_12BA: stfld Verse.Pawn RimWorld.<>c__DisplayClass10_9::victim
IL_12BF: ldloc.s 36 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_9)
IL_12C1: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_9::victim
IL_12C6: callvirt System.Boolean Verse.Pawn::get_Downed()
IL_12CB: brfalse => Label123
IL_12D0: ldloc.s 36 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_9)
IL_12D2: ldfld RimWorld.<>c__DisplayClass10_0
RimWorld.<>c__DisplayClass10_9::CS$<>8__locals9
IL_12D7: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_12DC: ldloc.s 36 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_9)
IL_12DE: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_9::victim
IL_12E3: call static Verse.LocalTargetInfo
Verse.LocalTargetInfo::op_Implicit(Verse.Thing t)
IL_12E8: ldc.i4.1
IL_12E9: ldc.i4.3
IL_12EA: ldc.i4.1
IL_12EB: ldc.i4.m1
IL_12EC: ldnull
IL_12ED: ldc.i4.1
IL_12EE: call static System.Boolean
Verse.AI.ReservationUtility::CanReserveAndReach(Verse.Pawn p, Verse.LocalTargetInfo
target, Verse.AI.PathEndMode peMode, Verse.Danger maxDanger, System.Int32 maxPawns,
System.Int32 stackCount, Verse.ReservationLayerDef layer, System.Boolean
ignoreOtherReservations)
IL_12F3: brfalse => Label124
IL_12F8: ldloc.s 36 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_9)
IL_12FA: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_9::victim
IL_12FF: ldloc.s 36 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_9)
IL_1301: ldfld RimWorld.<>c__DisplayClass10_0
RimWorld.<>c__DisplayClass10_9::CS$<>8__locals9
IL_1306: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_130B: ldc.i4.1
IL_130C: call static RimWorld.Building_CryptosleepCasket
RimWorld.Building_CryptosleepCasket::FindCryptosleepCasketFor(Verse.Pawn p,
Verse.Pawn traveler, System.Boolean ignoreOtherReservations)
IL_1311: brfalse => Label125
IL_1316: newobj System.Void RimWorld.<>c__DisplayClass10_10::.ctor()
IL_131B: stloc.s 38 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_10)
IL_131D: ldloc.s 38 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_10)
IL_131F: ldloc.s 36 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_9)
IL_1321: stfld RimWorld.<>c__DisplayClass10_9
RimWorld.<>c__DisplayClass10_10::CS$<>8__locals10
IL_1326: ldstr "CarryToCryptosleepCasket"
IL_132B: ldloca.s 37 (Verse.LocalTargetInfo)
IL_132D: call Verse.Thing Verse.LocalTargetInfo::get_Thing()
IL_1332: callvirt abstract virtual System.String
Verse.Entity::get_LabelCap()
IL_1337: call static Verse.NamedArgument
Verse.NamedArgument::op_Implicit(System.String value)
IL_133C: ldloca.s 37 (Verse.LocalTargetInfo)
IL_133E: call Verse.Thing Verse.LocalTargetInfo::get_Thing()
IL_1343: call static Verse.NamedArgument
Verse.NamedArgument::op_Implicit(Verse.Thing value)
IL_1348: call static Verse.TaggedString
Verse.TranslatorFormattedStringExtensions::Translate(System.String key,
Verse.NamedArgument arg1, Verse.NamedArgument arg2)
IL_134D: call static System.String
Verse.TaggedString::op_Implicit(Verse.TaggedString taggedString)
IL_1352: stloc.s 39 (System.String)
IL_1354: ldloc.s 38 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_10)
IL_1356: ldsfld Verse.JobDef RimWorld.JobDefOf::CarryToCryptosleepCasket
IL_135B: stfld Verse.JobDef RimWorld.<>c__DisplayClass10_10::jDef
IL_1360: ldloc.s 38 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_10)
IL_1362: ldftn System.Void
RimWorld.<>c__DisplayClass10_10::<AddHumanlikeOrders>b__9()
IL_1368: newobj System.Void System.Action::.ctor(System.Object object,
System.IntPtr method)
IL_136D: stloc.s 40 (System.Action)
IL_136F: ldloc.s 38 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_10)
IL_1371: ldfld RimWorld.<>c__DisplayClass10_9
RimWorld.<>c__DisplayClass10_10::CS$<>8__locals10
IL_1376: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_9::victim
IL_137B: call static System.Boolean
RimWorld.QuestUtility::IsQuestLodger(Verse.Pawn p)
IL_1380: brfalse => Label126
IL_1385: ldloc.s 39 (System.String)
IL_1387: ldstr " ("
IL_138C: ldstr "CryptosleepCasketGuestsNotAllowed"
IL_1391: call static Verse.TaggedString
Verse.Translator::Translate(System.String key)
IL_1396: call static Verse.TaggedString
Verse.TaggedString::op_Addition(System.String t1, Verse.TaggedString t2)
IL_139B: ldstr ")"
IL_13A0: call static Verse.TaggedString
Verse.TaggedString::op_Addition(Verse.TaggedString t1, System.String t2)
IL_13A5: call static Verse.TaggedString
Verse.TaggedString::op_Addition(System.String t1, Verse.TaggedString t2)
IL_13AA: call static System.String
Verse.TaggedString::op_Implicit(Verse.TaggedString taggedString)
IL_13AF: stloc.s 39 (System.String)
IL_13B1: ldarg.2
IL_13B2: ldloc.s 39 (System.String)
IL_13B4: ldnull
IL_13B5: ldc.i4.4
IL_13B6: ldnull
IL_13B7: ldloc.s 38 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_10)
IL_13B9: ldfld RimWorld.<>c__DisplayClass10_9
RimWorld.<>c__DisplayClass10_10::CS$<>8__locals10
IL_13BE: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_9::victim
IL_13C3: ldc.r4 0
IL_13C8: ldnull
IL_13C9: ldnull
IL_13CA: ldc.i4.1
IL_13CB: ldc.i4.0
IL_13CC: newobj System.Void Verse.FloatMenuOption::.ctor(System.String
label, System.Action action, Verse.MenuOptionPriority priority,
System.Action`1<UnityEngine.Rect> mouseoverGuiAction, Verse.Thing
revalidateClickTarget, System.Single extraPartWidth,
System.Func`2<UnityEngine.Rect, System.Boolean> extraPartOnGUI,
RimWorld.Planet.WorldObject revalidateWorldClickTarget, System.Boolean
playSelectionSound, System.Int32 orderInPriority)
IL_13D1: ldloc.s 38 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_10)
IL_13D3: ldfld RimWorld.<>c__DisplayClass10_9
RimWorld.<>c__DisplayClass10_10::CS$<>8__locals10
IL_13D8: ldfld RimWorld.<>c__DisplayClass10_0
RimWorld.<>c__DisplayClass10_9::CS$<>8__locals9
IL_13DD: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_13E2: ldloc.s 38 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_10)
IL_13E4: ldfld RimWorld.<>c__DisplayClass10_9
RimWorld.<>c__DisplayClass10_10::CS$<>8__locals10
IL_13E9: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_9::victim
IL_13EE: call static Verse.LocalTargetInfo
Verse.LocalTargetInfo::op_Implicit(Verse.Thing t)
IL_13F3: ldstr "ReservedBy"
IL_13F8: ldnull
IL_13F9: call static Verse.FloatMenuOption
RimWorld.FloatMenuUtility::DecoratePrioritizedTask(Verse.FloatMenuOption option,
Verse.Pawn pawn, Verse.LocalTargetInfo target, System.String reservedText,
Verse.ReservationLayerDef layer)
IL_13FE: callvirt virtual System.Void
System.Collections.Generic.List`1<Verse.FloatMenuOption>::Add(Verse.FloatMenuOption
item)
IL_1403: br => Label127
IL_1408: Label126
IL_1408: ldloc.s 38 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_10)
IL_140A: ldfld RimWorld.<>c__DisplayClass10_9
RimWorld.<>c__DisplayClass10_10::CS$<>8__locals10
IL_140F: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_9::victim
IL_1414: ldnull
IL_1415: call static RimWorld.Faction
RimWorld.QuestUtility::GetExtraHostFaction(Verse.Pawn p, RimWorld.Quest forQuest)
IL_141A: brfalse => Label128
IL_141F: ldloc.s 39 (System.String)
IL_1421: ldstr " ("
IL_1426: ldstr "CryptosleepCasketGuestPrisonersNotAllowed"
IL_142B: call static Verse.TaggedString
Verse.Translator::Translate(System.String key)
IL_1430: call static Verse.TaggedString
Verse.TaggedString::op_Addition(System.String t1, Verse.TaggedString t2)
IL_1435: ldstr ")"
IL_143A: call static Verse.TaggedString
Verse.TaggedString::op_Addition(Verse.TaggedString t1, System.String t2)
IL_143F: call static Verse.TaggedString
Verse.TaggedString::op_Addition(System.String t1, Verse.TaggedString t2)
IL_1444: call static System.String
Verse.TaggedString::op_Implicit(Verse.TaggedString taggedString)
IL_1449: stloc.s 39 (System.String)
IL_144B: ldarg.2
IL_144C: ldloc.s 39 (System.String)
IL_144E: ldnull
IL_144F: ldc.i4.4
IL_1450: ldnull
IL_1451: ldloc.s 38 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_10)
IL_1453: ldfld RimWorld.<>c__DisplayClass10_9
RimWorld.<>c__DisplayClass10_10::CS$<>8__locals10
IL_1458: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_9::victim
IL_145D: ldc.r4 0
IL_1462: ldnull
IL_1463: ldnull
IL_1464: ldc.i4.1
IL_1465: ldc.i4.0
IL_1466: newobj System.Void Verse.FloatMenuOption::.ctor(System.String
label, System.Action action, Verse.MenuOptionPriority priority,
System.Action`1<UnityEngine.Rect> mouseoverGuiAction, Verse.Thing
revalidateClickTarget, System.Single extraPartWidth,
System.Func`2<UnityEngine.Rect, System.Boolean> extraPartOnGUI,
RimWorld.Planet.WorldObject revalidateWorldClickTarget, System.Boolean
playSelectionSound, System.Int32 orderInPriority)
IL_146B: ldloc.s 38 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_10)
IL_146D: ldfld RimWorld.<>c__DisplayClass10_9
RimWorld.<>c__DisplayClass10_10::CS$<>8__locals10
IL_1472: ldfld RimWorld.<>c__DisplayClass10_0
RimWorld.<>c__DisplayClass10_9::CS$<>8__locals9
IL_1477: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_147C: ldloc.s 38 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_10)
IL_147E: ldfld RimWorld.<>c__DisplayClass10_9
RimWorld.<>c__DisplayClass10_10::CS$<>8__locals10
IL_1483: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_9::victim
IL_1488: call static Verse.LocalTargetInfo
Verse.LocalTargetInfo::op_Implicit(Verse.Thing t)
IL_148D: ldstr "ReservedBy"
IL_1492: ldnull
IL_1493: call static Verse.FloatMenuOption
RimWorld.FloatMenuUtility::DecoratePrioritizedTask(Verse.FloatMenuOption option,
Verse.Pawn pawn, Verse.LocalTargetInfo target, System.String reservedText,
Verse.ReservationLayerDef layer)
IL_1498: callvirt virtual System.Void
System.Collections.Generic.List`1<Verse.FloatMenuOption>::Add(Verse.FloatMenuOption
item)
IL_149D: br => Label129
IL_14A2: Label128
IL_14A2: ldarg.2
IL_14A3: ldloc.s 39 (System.String)
IL_14A5: ldloc.s 40 (System.Action)
IL_14A7: ldc.i4.4
IL_14A8: ldnull
IL_14A9: ldloc.s 38 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_10)
IL_14AB: ldfld RimWorld.<>c__DisplayClass10_9
RimWorld.<>c__DisplayClass10_10::CS$<>8__locals10
IL_14B0: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_9::victim
IL_14B5: ldc.r4 0
IL_14BA: ldnull
IL_14BB: ldnull
IL_14BC: ldc.i4.1
IL_14BD: ldc.i4.0
IL_14BE: newobj System.Void Verse.FloatMenuOption::.ctor(System.String
label, System.Action action, Verse.MenuOptionPriority priority,
System.Action`1<UnityEngine.Rect> mouseoverGuiAction, Verse.Thing
revalidateClickTarget, System.Single extraPartWidth,
System.Func`2<UnityEngine.Rect, System.Boolean> extraPartOnGUI,
RimWorld.Planet.WorldObject revalidateWorldClickTarget, System.Boolean
playSelectionSound, System.Int32 orderInPriority)
IL_14C3: ldloc.s 38 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_10)
IL_14C5: ldfld RimWorld.<>c__DisplayClass10_9
RimWorld.<>c__DisplayClass10_10::CS$<>8__locals10
IL_14CA: ldfld RimWorld.<>c__DisplayClass10_0
RimWorld.<>c__DisplayClass10_9::CS$<>8__locals9
IL_14CF: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_14D4: ldloc.s 38 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_10)
IL_14D6: ldfld RimWorld.<>c__DisplayClass10_9
RimWorld.<>c__DisplayClass10_10::CS$<>8__locals10
IL_14DB: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_9::victim
IL_14E0: call static Verse.LocalTargetInfo
Verse.LocalTargetInfo::op_Implicit(Verse.Thing t)
IL_14E5: ldstr "ReservedBy"
IL_14EA: ldnull
IL_14EB: call static Verse.FloatMenuOption
RimWorld.FloatMenuUtility::DecoratePrioritizedTask(Verse.FloatMenuOption option,
Verse.Pawn pawn, Verse.LocalTargetInfo target, System.String reservedText,
Verse.ReservationLayerDef layer)
IL_14F0: callvirt virtual System.Void
System.Collections.Generic.List`1<Verse.FloatMenuOption>::Add(Verse.FloatMenuOption
item)
IL_14F5: Label122
IL_14F5: Label123
IL_14F5: Label124
IL_14F5: Label125
IL_14F5: Label127
IL_14F5: Label129
IL_14F5: ldloc.s 8
(System.Collections.Generic.IEnumerator`1[Verse.LocalTargetInfo])
IL_14F7: callvirt abstract virtual System.Boolean
System.Collections.IEnumerator::MoveNext()
IL_14FC: brtrue => Label130
IL_1501: leave => Label131
IL_1506: leave => (autogenerated)
} // end try
.finally
{
IL_150B: ldloc.s 8
(System.Collections.Generic.IEnumerator`1[Verse.LocalTargetInfo])
IL_150D: brfalse => Label132
IL_1512: ldloc.s 8
(System.Collections.Generic.IEnumerator`1[Verse.LocalTargetInfo])
IL_1514: callvirt abstract virtual System.Void
System.IDisposable::Dispose()
IL_1519: Label132
IL_1519: endfinally
IL_151A: leave => (autogenerated)
} // end handler
IL_151B: Label131
IL_151B: call static System.Boolean Verse.ModsConfig::get_IdeologyActive()
IL_1520: brfalse => Label133
IL_1525: ldarg.0
IL_1526: ldloc.0
IL_1527: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_152C: call static RimWorld.TargetingParameters
RimWorld.TargetingParameters::ForCarryToBiosculpterPod(Verse.Pawn p)
IL_1531: ldc.i4.1
IL_1532: ldnull
IL_1533: call static
System.Collections.Generic.IEnumerable`1<Verse.LocalTargetInfo>
Verse.GenUI::TargetsAt(UnityEngine.Vector3 clickPos, RimWorld.TargetingParameters
clickParams, System.Boolean thingsOnly, RimWorld.ITargetingSource source)
IL_1538: callvirt abstract virtual
System.Collections.Generic.IEnumerator`1<Verse.LocalTargetInfo>
System.Collections.Generic.IEnumerable`1<Verse.LocalTargetInfo>::GetEnumerator()
IL_153D: stloc.s 8
(System.Collections.Generic.IEnumerator`1[Verse.LocalTargetInfo])
.try
{
IL_153F: br => Label134
IL_1544: Label138
IL_1544: ldloc.s 8
(System.Collections.Generic.IEnumerator`1[Verse.LocalTargetInfo])
IL_1546: callvirt abstract virtual Verse.LocalTargetInfo
System.Collections.Generic.IEnumerator`1<Verse.LocalTargetInfo>::get_Current()
IL_154B: stloc.s 41 (Verse.LocalTargetInfo)
IL_154D: ldloca.s 41 (Verse.LocalTargetInfo)
IL_154F: call Verse.Thing Verse.LocalTargetInfo::get_Thing()
IL_1554: castclass Verse.Pawn
IL_1559: stloc.s 42 (Verse.Pawn)
IL_155B: ldloc.s 42 (Verse.Pawn)
IL_155D: callvirt System.Boolean Verse.Pawn::get_IsColonist()
IL_1562: brfalse => Label135
IL_1567: ldloc.s 42 (Verse.Pawn)
IL_1569: callvirt System.Boolean Verse.Pawn::get_Downed()
IL_156E: brtrue => Label136
IL_1573: Label135
IL_1573: ldloc.s 42 (Verse.Pawn)
IL_1575: callvirt System.Boolean Verse.Pawn::get_IsPrisonerOfColony()
IL_157A: brfalse => Label137
IL_157F: Label136
IL_157F: ldarg.2
IL_1580: ldloc.0
IL_1581: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_1586: ldloc.s 42 (Verse.Pawn)
IL_1588: call static System.Void
RimWorld.CompBiosculpterPod::AddCarryToPodJobs(System.Collections.Generic.List`1<Ve
rse.FloatMenuOption> opts, Verse.Pawn pawn, Verse.Pawn traveller)
IL_158D: Label134
IL_158D: Label137
IL_158D: ldloc.s 8
(System.Collections.Generic.IEnumerator`1[Verse.LocalTargetInfo])
IL_158F: callvirt abstract virtual System.Boolean
System.Collections.IEnumerator::MoveNext()
IL_1594: brtrue => Label138
IL_1599: leave => Label139
IL_159E: leave => (autogenerated)
} // end try
.finally
{
IL_15A3: ldloc.s 8
(System.Collections.Generic.IEnumerator`1[Verse.LocalTargetInfo])
IL_15A5: brfalse => Label140
IL_15AA: ldloc.s 8
(System.Collections.Generic.IEnumerator`1[Verse.LocalTargetInfo])
IL_15AC: callvirt abstract virtual System.Void
System.IDisposable::Dispose()
IL_15B1: Label140
IL_15B1: endfinally
IL_15B2: leave => (autogenerated)
} // end handler
IL_15B3: Label133
IL_15B3: Label139
IL_15B3: call static System.Boolean Verse.ModsConfig::get_RoyaltyActive()
IL_15B8: brfalse => Label141
IL_15BD: ldarg.0
IL_15BE: ldloc.0
IL_15BF: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_15C4: call static RimWorld.TargetingParameters
RimWorld.TargetingParameters::ForShuttle(Verse.Pawn hauler)
IL_15C9: ldc.i4.1
IL_15CA: ldnull
IL_15CB: call static
System.Collections.Generic.IEnumerable`1<Verse.LocalTargetInfo>
Verse.GenUI::TargetsAt(UnityEngine.Vector3 clickPos, RimWorld.TargetingParameters
clickParams, System.Boolean thingsOnly, RimWorld.ITargetingSource source)
IL_15D0: callvirt abstract virtual
System.Collections.Generic.IEnumerator`1<Verse.LocalTargetInfo>
System.Collections.Generic.IEnumerable`1<Verse.LocalTargetInfo>::GetEnumerator()
IL_15D5: stloc.s 8
(System.Collections.Generic.IEnumerator`1[Verse.LocalTargetInfo])
.try
{
IL_15D7: br => Label142
IL_15DC: Label147
IL_15DC: ldloc.s 8
(System.Collections.Generic.IEnumerator`1[Verse.LocalTargetInfo])
IL_15DE: callvirt abstract virtual Verse.LocalTargetInfo
System.Collections.Generic.IEnumerator`1<Verse.LocalTargetInfo>::get_Current()
IL_15E3: newobj System.Void RimWorld.<>c__DisplayClass10_11::.ctor()
IL_15E8: stloc.s 43 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_11)
IL_15EA: ldloc.s 43 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_11)
IL_15EC: ldloc.0
IL_15ED: stfld RimWorld.<>c__DisplayClass10_0
RimWorld.<>c__DisplayClass10_11::CS$<>8__locals11
IL_15F2: stloc.s 44 (Verse.LocalTargetInfo)
IL_15F4: ldloc.s 43 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_11)
IL_15F6: ldloca.s 44 (Verse.LocalTargetInfo)
IL_15F8: call Verse.Thing Verse.LocalTargetInfo::get_Thing()
IL_15FD: castclass Verse.Pawn
IL_1602: stfld Verse.Pawn RimWorld.<>c__DisplayClass10_11::victim
IL_1607: ldloc.s 43 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_11)
IL_1609: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_11::victim
IL_160E: callvirt System.Boolean Verse.Thing::get_Spawned()
IL_1613: brfalse => Label143
IL_1618: ldloc.s 43 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_11)
IL_161A: ldftn System.Boolean
RimWorld.<>c__DisplayClass10_11::<AddHumanlikeOrders>b__10(Verse.Thing thing)
IL_1620: newobj System.Void
System.Predicate`1<Verse.Thing>::.ctor(System.Object object, System.IntPtr method)
IL_1625: stloc.s 45 (System.Predicate`1[Verse.Thing])
IL_1627: ldloc.s 43 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_11)
IL_1629: ldloc.s 43 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_11)
IL_162B: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_11::victim
IL_1630: callvirt virtual Verse.IntVec3 Verse.Thing::get_Position()
IL_1635: ldloc.s 43 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_11)
IL_1637: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_11::victim
IL_163C: callvirt virtual Verse.Map Verse.Thing::get_Map()
IL_1641: ldsfld Verse.ThingDef RimWorld.ThingDefOf::Shuttle
IL_1646: call static Verse.ThingRequest
Verse.ThingRequest::ForDef(Verse.ThingDef singleDef)
IL_164B: ldc.i4.3
IL_164C: ldloc.s 43 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_11)
IL_164E: ldfld RimWorld.<>c__DisplayClass10_0
RimWorld.<>c__DisplayClass10_11::CS$<>8__locals11
IL_1653: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_1658: ldc.i4.3
IL_1659: ldc.i4.0
IL_165A: ldc.i4.0
IL_165B: ldc.i4.0
IL_165C: ldc.i4.0
IL_165D: call static Verse.TraverseParms
Verse.TraverseParms::For(Verse.Pawn pawn, Verse.Danger maxDanger,
Verse.TraverseMode mode, System.Boolean canBashDoors, System.Boolean
alwaysUseAvoidGrid, System.Boolean canBashFences)
IL_1662: ldc.r4 9999
IL_1667: ldloc.s 45 (System.Predicate`1[Verse.Thing])
IL_1669: ldnull
IL_166A: ldc.i4.0
IL_166B: ldc.i4.m1
IL_166C: ldc.i4.0
IL_166D: ldc.i4.s 14
IL_166F: ldc.i4.0
IL_1670: call static Verse.Thing
Verse.GenClosest::ClosestThingReachable(Verse.IntVec3 root, Verse.Map map,
Verse.ThingRequest thingReq, Verse.AI.PathEndMode peMode, Verse.TraverseParms
traverseParams, System.Single maxDistance, System.Predicate`1<Verse.Thing>
validator, System.Collections.Generic.IEnumerable`1<Verse.Thing>
customGlobalSearchSet, System.Int32 searchRegionsMin, System.Int32
searchRegionsMax, System.Boolean forceAllowGlobalSearch, Verse.RegionType
traversableRegionTypes, System.Boolean ignoreEntirelyForbiddenRegions)
IL_1675: stfld Verse.Thing RimWorld.<>c__DisplayClass10_11::shuttleThing
IL_167A: ldloc.s 43 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_11)
IL_167C: ldfld Verse.Thing RimWorld.<>c__DisplayClass10_11::shuttleThing
IL_1681: brfalse => Label144
IL_1686: ldloc.s 43 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_11)
IL_1688: ldfld RimWorld.<>c__DisplayClass10_0
RimWorld.<>c__DisplayClass10_11::CS$<>8__locals11
IL_168D: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_1692: ldloc.s 43 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_11)
IL_1694: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_11::victim
IL_1699: call static Verse.LocalTargetInfo
Verse.LocalTargetInfo::op_Implicit(Verse.Thing t)
IL_169E: ldc.i4.1
IL_169F: ldc.i4.3
IL_16A0: ldc.i4.1
IL_16A1: ldc.i4.m1
IL_16A2: ldnull
IL_16A3: ldc.i4.1
IL_16A4: call static System.Boolean
Verse.AI.ReservationUtility::CanReserveAndReach(Verse.Pawn p, Verse.LocalTargetInfo
target, Verse.AI.PathEndMode peMode, Verse.Danger maxDanger, System.Int32 maxPawns,
System.Int32 stackCount, Verse.ReservationLayerDef layer, System.Boolean
ignoreOtherReservations)
IL_16A9: brfalse => Label145
IL_16AE: ldloc.s 43 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_11)
IL_16B0: ldfld RimWorld.<>c__DisplayClass10_0
RimWorld.<>c__DisplayClass10_11::CS$<>8__locals11
IL_16B5: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_16BA: ldsfld Verse.WorkTypeDef RimWorld.WorkTypeDefOf::Hauling
IL_16BF: callvirt System.Boolean
Verse.Pawn::WorkTypeIsDisabled(Verse.WorkTypeDef w)
IL_16C4: brtrue => Label146
IL_16C9: ldstr "CarryToShuttle"
IL_16CE: ldloca.s 44 (Verse.LocalTargetInfo)
IL_16D0: call Verse.Thing Verse.LocalTargetInfo::get_Thing()
IL_16D5: call static Verse.NamedArgument
Verse.NamedArgument::op_Implicit(Verse.Thing value)
IL_16DA: call static Verse.TaggedString
Verse.TranslatorFormattedStringExtensions::Translate(System.String key,
Verse.NamedArgument arg1)
IL_16DF: call static System.String
Verse.TaggedString::op_Implicit(Verse.TaggedString taggedString)
IL_16E4: stloc.s 46 (System.String)
IL_16E6: ldloc.s 43 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_11)
IL_16E8: ldftn System.Void
RimWorld.<>c__DisplayClass10_11::<AddHumanlikeOrders>b__11()
IL_16EE: newobj System.Void System.Action::.ctor(System.Object object,
System.IntPtr method)
IL_16F3: stloc.s 47 (System.Action)
IL_16F5: ldarg.2
IL_16F6: ldloc.s 46 (System.String)
IL_16F8: ldloc.s 47 (System.Action)
IL_16FA: ldc.i4.4
IL_16FB: ldnull
IL_16FC: ldnull
IL_16FD: ldc.r4 0
IL_1702: ldnull
IL_1703: ldnull
IL_1704: ldc.i4.1
IL_1705: ldc.i4.0
IL_1706: newobj System.Void Verse.FloatMenuOption::.ctor(System.String
label, System.Action action, Verse.MenuOptionPriority priority,
System.Action`1<UnityEngine.Rect> mouseoverGuiAction, Verse.Thing
revalidateClickTarget, System.Single extraPartWidth,
System.Func`2<UnityEngine.Rect, System.Boolean> extraPartOnGUI,
RimWorld.Planet.WorldObject revalidateWorldClickTarget, System.Boolean
playSelectionSound, System.Int32 orderInPriority)
IL_170B: ldloc.s 43 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_11)
IL_170D: ldfld RimWorld.<>c__DisplayClass10_0
RimWorld.<>c__DisplayClass10_11::CS$<>8__locals11
IL_1712: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_1717: ldloc.s 43 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_11)
IL_1719: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_11::victim
IL_171E: call static Verse.LocalTargetInfo
Verse.LocalTargetInfo::op_Implicit(Verse.Thing t)
IL_1723: ldstr "ReservedBy"
IL_1728: ldnull
IL_1729: call static Verse.FloatMenuOption
RimWorld.FloatMenuUtility::DecoratePrioritizedTask(Verse.FloatMenuOption option,
Verse.Pawn pawn, Verse.LocalTargetInfo target, System.String reservedText,
Verse.ReservationLayerDef layer)
IL_172E: callvirt virtual System.Void
System.Collections.Generic.List`1<Verse.FloatMenuOption>::Add(Verse.FloatMenuOption
item)
IL_1733: Label142
IL_1733: Label143
IL_1733: Label144
IL_1733: Label145
IL_1733: Label146
IL_1733: ldloc.s 8
(System.Collections.Generic.IEnumerator`1[Verse.LocalTargetInfo])
IL_1735: callvirt abstract virtual System.Boolean
System.Collections.IEnumerator::MoveNext()
IL_173A: brtrue => Label147
IL_173F: leave => Label148
IL_1744: leave => (autogenerated)
} // end try
.finally
{
IL_1749: ldloc.s 8
(System.Collections.Generic.IEnumerator`1[Verse.LocalTargetInfo])
IL_174B: brfalse => Label149
IL_1750: ldloc.s 8
(System.Collections.Generic.IEnumerator`1[Verse.LocalTargetInfo])
IL_1752: callvirt abstract virtual System.Void
System.IDisposable::Dispose()
IL_1757: Label149
IL_1757: endfinally
IL_1758: leave => (autogenerated)
} // end handler
IL_1759: Label141
IL_1759: Label148
IL_1759: call static System.Boolean Verse.ModsConfig::get_IdeologyActive()
IL_175E: brfalse => Label150
IL_1763: ldloc.s 22 (System.Collections.Generic.List`1[Verse.Thing])
IL_1765: callvirt System.Collections.Generic.Enumerator<Verse.Thing>
System.Collections.Generic.List`1<Verse.Thing>::GetEnumerator()
IL_176A: stloc.2
.try
{
IL_176B: br => Label151
IL_1770: Label163
IL_1770: newobj System.Void RimWorld.<>c__DisplayClass10_12::.ctor()
IL_1775: stloc.s 48 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_12)
IL_1777: ldloc.s 48 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_12)
IL_1779: ldloc.0
IL_177A: stfld RimWorld.<>c__DisplayClass10_0
RimWorld.<>c__DisplayClass10_12::CS$<>8__locals12
IL_177F: ldloc.s 48 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_12)
IL_1781: ldloca.s 2
(System.Collections.Generic.List`1+Enumerator[Verse.Thing])
IL_1783: call virtual Verse.Thing
System.Collections.Generic.Enumerator<Verse.Thing>::get_Current()
IL_1788: stfld Verse.Thing RimWorld.<>c__DisplayClass10_12::thing
IL_178D: ldloc.s 48 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_12)
IL_178F: ldfld Verse.Thing RimWorld.<>c__DisplayClass10_12::thing
IL_1794: call static RimWorld.CompHackable
Verse.ThingCompUtility::TryGetComp(Verse.Thing thing)
IL_1799: stloc.s 49 (RimWorld.CompHackable)
IL_179B: ldloc.s 49 (RimWorld.CompHackable)
IL_179D: brfalse => Label152
IL_17A2: ldloc.s 49 (RimWorld.CompHackable)
IL_17A4: callvirt System.Boolean RimWorld.CompHackable::get_IsHacked()
IL_17A9: brfalse => Label153
IL_17AE: ldarg.2
IL_17AF: ldstr "CannotHack"
IL_17B4: ldloc.s 48 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_12)
IL_17B6: ldfld Verse.Thing RimWorld.<>c__DisplayClass10_12::thing
IL_17BB: callvirt abstract virtual System.String Verse.Entity::get_Label()
IL_17C0: call static Verse.NamedArgument
Verse.NamedArgument::op_Implicit(System.String value)
IL_17C5: call static Verse.TaggedString
Verse.TranslatorFormattedStringExtensions::Translate(System.String key,
Verse.NamedArgument arg1)
IL_17CA: ldstr ": "
IL_17CF: call static Verse.TaggedString
Verse.TaggedString::op_Addition(Verse.TaggedString t1, System.String t2)
IL_17D4: ldstr "AlreadyHacked"
IL_17D9: call static Verse.TaggedString
Verse.Translator::Translate(System.String key)
IL_17DE: call static Verse.TaggedString
Verse.TaggedString::op_Addition(Verse.TaggedString t1, Verse.TaggedString t2)
IL_17E3: call static System.String
Verse.TaggedString::op_Implicit(Verse.TaggedString taggedString)
IL_17E8: ldnull
IL_17E9: ldc.i4.4
IL_17EA: ldnull
IL_17EB: ldnull
IL_17EC: ldc.r4 0
IL_17F1: ldnull
IL_17F2: ldnull
IL_17F3: ldc.i4.1
IL_17F4: ldc.i4.0
IL_17F5: newobj System.Void Verse.FloatMenuOption::.ctor(System.String
label, System.Action action, Verse.MenuOptionPriority priority,
System.Action`1<UnityEngine.Rect> mouseoverGuiAction, Verse.Thing
revalidateClickTarget, System.Single extraPartWidth,
System.Func`2<UnityEngine.Rect, System.Boolean> extraPartOnGUI,
RimWorld.Planet.WorldObject revalidateWorldClickTarget, System.Boolean
playSelectionSound, System.Int32 orderInPriority)
IL_17FA: callvirt virtual System.Void
System.Collections.Generic.List`1<Verse.FloatMenuOption>::Add(Verse.FloatMenuOption
item)
IL_17FF: br => Label154
IL_1804: Label153
IL_1804: ldloc.s 48 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_12)
IL_1806: ldfld RimWorld.<>c__DisplayClass10_0
RimWorld.<>c__DisplayClass10_12::CS$<>8__locals12
IL_180B: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_1810: call static System.Boolean
RimWorld.HackUtility::IsCapableOfHacking(Verse.Pawn pawn)
IL_1815: brtrue => Label155
IL_181A: ldarg.2
IL_181B: ldstr "CannotHack"
IL_1820: ldloc.s 48 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_12)
IL_1822: ldfld Verse.Thing RimWorld.<>c__DisplayClass10_12::thing
IL_1827: callvirt abstract virtual System.String Verse.Entity::get_Label()
IL_182C: call static Verse.NamedArgument
Verse.NamedArgument::op_Implicit(System.String value)
IL_1831: call static Verse.TaggedString
Verse.TranslatorFormattedStringExtensions::Translate(System.String key,
Verse.NamedArgument arg1)
IL_1836: ldstr ": "
IL_183B: call static Verse.TaggedString
Verse.TaggedString::op_Addition(Verse.TaggedString t1, System.String t2)
IL_1840: ldstr "IncapableOfHacking"
IL_1845: call static Verse.TaggedString
Verse.Translator::Translate(System.String key)
IL_184A: call static Verse.TaggedString
Verse.TaggedString::op_Addition(Verse.TaggedString t1, Verse.TaggedString t2)
IL_184F: call static System.String
Verse.TaggedString::op_Implicit(Verse.TaggedString taggedString)
IL_1854: ldnull
IL_1855: ldc.i4.4
IL_1856: ldnull
IL_1857: ldnull
IL_1858: ldc.r4 0
IL_185D: ldnull
IL_185E: ldnull
IL_185F: ldc.i4.1
IL_1860: ldc.i4.0
IL_1861: newobj System.Void Verse.FloatMenuOption::.ctor(System.String
label, System.Action action, Verse.MenuOptionPriority priority,
System.Action`1<UnityEngine.Rect> mouseoverGuiAction, Verse.Thing
revalidateClickTarget, System.Single extraPartWidth,
System.Func`2<UnityEngine.Rect, System.Boolean> extraPartOnGUI,
RimWorld.Planet.WorldObject revalidateWorldClickTarget, System.Boolean
playSelectionSound, System.Int32 orderInPriority)
IL_1866: callvirt virtual System.Void
System.Collections.Generic.List`1<Verse.FloatMenuOption>::Add(Verse.FloatMenuOption
item)
IL_186B: br => Label156
IL_1870: Label155
IL_1870: ldloc.s 48 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_12)
IL_1872: ldfld RimWorld.<>c__DisplayClass10_0
RimWorld.<>c__DisplayClass10_12::CS$<>8__locals12
IL_1877: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_187C: ldloc.s 48 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_12)
IL_187E: ldfld Verse.Thing RimWorld.<>c__DisplayClass10_12::thing
IL_1883: call static Verse.LocalTargetInfo
Verse.LocalTargetInfo::op_Implicit(Verse.Thing t)
IL_1888: ldc.i4.3
IL_1889: ldc.i4.3
IL_188A: ldc.i4.0
IL_188B: ldc.i4.0
IL_188C: ldc.i4.0
IL_188D: call static System.Boolean
Verse.ReachabilityUtility::CanReach(Verse.Pawn pawn, Verse.LocalTargetInfo dest,
Verse.AI.PathEndMode peMode, Verse.Danger maxDanger, System.Boolean canBashDoors,
System.Boolean canBashFences, Verse.TraverseMode mode)
IL_1892: brtrue => Label157
IL_1897: ldarg.2
IL_1898: ldstr "CannotHack"
IL_189D: ldloc.s 48 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_12)
IL_189F: ldfld Verse.Thing RimWorld.<>c__DisplayClass10_12::thing
IL_18A4: callvirt abstract virtual System.String Verse.Entity::get_Label()
IL_18A9: call static Verse.NamedArgument
Verse.NamedArgument::op_Implicit(System.String value)
IL_18AE: call static Verse.TaggedString
Verse.TranslatorFormattedStringExtensions::Translate(System.String key,
Verse.NamedArgument arg1)
IL_18B3: ldstr ": "
IL_18B8: call static Verse.TaggedString
Verse.TaggedString::op_Addition(Verse.TaggedString t1, System.String t2)
IL_18BD: ldstr "NoPath"
IL_18C2: call static Verse.TaggedString
Verse.Translator::Translate(System.String key)
IL_18C7: stloc.s 11 (Verse.TaggedString)
IL_18C9: ldloca.s 11 (Verse.TaggedString)
IL_18CB: call Verse.TaggedString Verse.TaggedString::CapitalizeFirst()
IL_18D0: call static Verse.TaggedString
Verse.TaggedString::op_Addition(Verse.TaggedString t1, Verse.TaggedString t2)
IL_18D5: call static System.String
Verse.TaggedString::op_Implicit(Verse.TaggedString taggedString)
IL_18DA: ldnull
IL_18DB: ldc.i4.4
IL_18DC: ldnull
IL_18DD: ldnull
IL_18DE: ldc.r4 0
IL_18E3: ldnull
IL_18E4: ldnull
IL_18E5: ldc.i4.1
IL_18E6: ldc.i4.0
IL_18E7: newobj System.Void Verse.FloatMenuOption::.ctor(System.String
label, System.Action action, Verse.MenuOptionPriority priority,
System.Action`1<UnityEngine.Rect> mouseoverGuiAction, Verse.Thing
revalidateClickTarget, System.Single extraPartWidth,
System.Func`2<UnityEngine.Rect, System.Boolean> extraPartOnGUI,
RimWorld.Planet.WorldObject revalidateWorldClickTarget, System.Boolean
playSelectionSound, System.Int32 orderInPriority)
IL_18EC: callvirt virtual System.Void
System.Collections.Generic.List`1<Verse.FloatMenuOption>::Add(Verse.FloatMenuOption
item)
IL_18F1: br => Label158
IL_18F6: Label157
IL_18F6: ldloc.s 48 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_12)
IL_18F8: ldfld Verse.Thing RimWorld.<>c__DisplayClass10_12::thing
IL_18FD: ldfld Verse.ThingDef Verse.Thing::def
IL_1902: ldsfld Verse.ThingDef RimWorld.ThingDefOf::AncientEnemyTerminal
IL_1907: bne.un => Label159
IL_190C: ldarg.2
IL_190D: ldstr "Hack"
IL_1912: ldloc.s 48 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_12)
IL_1914: ldfld Verse.Thing RimWorld.<>c__DisplayClass10_12::thing
IL_1919: callvirt abstract virtual System.String Verse.Entity::get_Label()
IL_191E: call static Verse.NamedArgument
Verse.NamedArgument::op_Implicit(System.String value)
IL_1923: call static Verse.TaggedString
Verse.TranslatorFormattedStringExtensions::Translate(System.String key,
Verse.NamedArgument arg1)
IL_1928: call static System.String
Verse.TaggedString::op_Implicit(Verse.TaggedString taggedString)
IL_192D: ldloc.s 48 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_12)
IL_192F: ldftn System.Void
RimWorld.<>c__DisplayClass10_12::<AddHumanlikeOrders>b__12()
IL_1935: newobj System.Void System.Action::.ctor(System.Object object,
System.IntPtr method)
IL_193A: ldc.i4.4
IL_193B: ldnull
IL_193C: ldnull
IL_193D: ldc.r4 0
IL_1942: ldnull
IL_1943: ldnull
IL_1944: ldc.i4.1
IL_1945: ldc.i4.0
IL_1946: newobj System.Void Verse.FloatMenuOption::.ctor(System.String
label, System.Action action, Verse.MenuOptionPriority priority,
System.Action`1<UnityEngine.Rect> mouseoverGuiAction, Verse.Thing
revalidateClickTarget, System.Single extraPartWidth,
System.Func`2<UnityEngine.Rect, System.Boolean> extraPartOnGUI,
RimWorld.Planet.WorldObject revalidateWorldClickTarget, System.Boolean
playSelectionSound, System.Int32 orderInPriority)
IL_194B: ldloc.s 48 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_12)
IL_194D: ldfld RimWorld.<>c__DisplayClass10_0
RimWorld.<>c__DisplayClass10_12::CS$<>8__locals12
IL_1952: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_1957: ldloc.s 48 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_12)
IL_1959: ldfld Verse.Thing RimWorld.<>c__DisplayClass10_12::thing
IL_195E: newobj System.Void Verse.LocalTargetInfo::.ctor(Verse.Thing
thing)
IL_1963: ldstr "ReservedBy"
IL_1968: ldnull
IL_1969: call static Verse.FloatMenuOption
RimWorld.FloatMenuUtility::DecoratePrioritizedTask(Verse.FloatMenuOption option,
Verse.Pawn pawn, Verse.LocalTargetInfo target, System.String reservedText,
Verse.ReservationLayerDef layer)
IL_196E: callvirt virtual System.Void
System.Collections.Generic.List`1<Verse.FloatMenuOption>::Add(Verse.FloatMenuOption
item)
IL_1973: br => Label160
IL_1978: Label159
IL_1978: ldloc.s 48 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_12)
IL_197A: ldfld Verse.Thing RimWorld.<>c__DisplayClass10_12::thing
IL_197F: ldfld Verse.ThingDef Verse.Thing::def
IL_1984: ldsfld Verse.ThingDef RimWorld.ThingDefOf::AncientCommsConsole
IL_1989: beq => Label161
IL_198E: ldstr "Hack"
IL_1993: ldloc.s 48 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_12)
IL_1995: ldfld Verse.Thing RimWorld.<>c__DisplayClass10_12::thing
IL_199A: callvirt abstract virtual System.String Verse.Entity::get_Label()
IL_199F: call static Verse.NamedArgument
Verse.NamedArgument::op_Implicit(System.String value)
IL_19A4: call static Verse.TaggedString
Verse.TranslatorFormattedStringExtensions::Translate(System.String key,
Verse.NamedArgument arg1)
IL_19A9: br => Label162
IL_19AE: Label161
IL_19AE: ldstr "Hack"
IL_19B3: ldstr "ToDropSupplies"
IL_19B8: call static Verse.TaggedString
Verse.Translator::Translate(System.String key)
IL_19BD: call static Verse.NamedArgument
Verse.NamedArgument::op_Implicit(Verse.TaggedString value)
IL_19C2: call static Verse.TaggedString
Verse.TranslatorFormattedStringExtensions::Translate(System.String key,
Verse.NamedArgument arg1)
IL_19C7: Label162
IL_19C7: stloc.s 50 (Verse.TaggedString)
IL_19C9: ldarg.2
IL_19CA: ldloc.s 50 (Verse.TaggedString)
IL_19CC: call static System.String
Verse.TaggedString::op_Implicit(Verse.TaggedString taggedString)
IL_19D1: ldloc.s 48 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_12)
IL_19D3: ldftn System.Void
RimWorld.<>c__DisplayClass10_12::<AddHumanlikeOrders>b__14()
IL_19D9: newobj System.Void System.Action::.ctor(System.Object object,
System.IntPtr method)
IL_19DE: ldc.i4.4
IL_19DF: ldnull
IL_19E0: ldnull
IL_19E1: ldc.r4 0
IL_19E6: ldnull
IL_19E7: ldnull
IL_19E8: ldc.i4.1
IL_19E9: ldc.i4.0
IL_19EA: newobj System.Void Verse.FloatMenuOption::.ctor(System.String
label, System.Action action, Verse.MenuOptionPriority priority,
System.Action`1<UnityEngine.Rect> mouseoverGuiAction, Verse.Thing
revalidateClickTarget, System.Single extraPartWidth,
System.Func`2<UnityEngine.Rect, System.Boolean> extraPartOnGUI,
RimWorld.Planet.WorldObject revalidateWorldClickTarget, System.Boolean
playSelectionSound, System.Int32 orderInPriority)
IL_19EF: ldloc.s 48 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_12)
IL_19F1: ldfld RimWorld.<>c__DisplayClass10_0
RimWorld.<>c__DisplayClass10_12::CS$<>8__locals12
IL_19F6: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_19FB: ldloc.s 48 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_12)
IL_19FD: ldfld Verse.Thing RimWorld.<>c__DisplayClass10_12::thing
IL_1A02: newobj System.Void Verse.LocalTargetInfo::.ctor(Verse.Thing
thing)
IL_1A07: ldstr "ReservedBy"
IL_1A0C: ldnull
IL_1A0D: call static Verse.FloatMenuOption
RimWorld.FloatMenuUtility::DecoratePrioritizedTask(Verse.FloatMenuOption option,
Verse.Pawn pawn, Verse.LocalTargetInfo target, System.String reservedText,
Verse.ReservationLayerDef layer)
IL_1A12: callvirt virtual System.Void
System.Collections.Generic.List`1<Verse.FloatMenuOption>::Add(Verse.FloatMenuOption
item)
IL_1A17: Label151
IL_1A17: Label152
IL_1A17: Label154
IL_1A17: Label156
IL_1A17: Label158
IL_1A17: Label160
IL_1A17: ldloca.s 2
(System.Collections.Generic.List`1+Enumerator[Verse.Thing])
IL_1A19: call virtual System.Boolean
System.Collections.Generic.Enumerator<Verse.Thing>::MoveNext()
IL_1A1E: brtrue => Label163
IL_1A23: leave => Label164
IL_1A28: leave => (autogenerated)
} // end try
.finally
{
IL_1A2D: ldloca.s 2
(System.Collections.Generic.List`1+Enumerator[Verse.Thing])
IL_1A2F: constrained.
System.Collections.Generic.List`1+Enumerator[Verse.Thing]
IL_1A35: callvirt abstract virtual System.Void
System.IDisposable::Dispose()
IL_1A3A: endfinally
IL_1A3B: leave => (autogenerated)
} // end handler
IL_1A3C: Label164
IL_1A3C: ldarg.0
IL_1A3D: ldsfld Verse.ThingDef RimWorld.ThingDefOf::ArchonexusCore
IL_1A42: call static RimWorld.TargetingParameters
RimWorld.TargetingParameters::ForBuilding(Verse.ThingDef def)
IL_1A47: ldc.i4.0
IL_1A48: ldnull
IL_1A49: call static
System.Collections.Generic.IEnumerable`1<Verse.LocalTargetInfo>
Verse.GenUI::TargetsAt(UnityEngine.Vector3 clickPos, RimWorld.TargetingParameters
clickParams, System.Boolean thingsOnly, RimWorld.ITargetingSource source)
IL_1A4E: callvirt abstract virtual
System.Collections.Generic.IEnumerator`1<Verse.LocalTargetInfo>
System.Collections.Generic.IEnumerable`1<Verse.LocalTargetInfo>::GetEnumerator()
IL_1A53: stloc.s 8
(System.Collections.Generic.IEnumerator`1[Verse.LocalTargetInfo])
.try
{
IL_1A55: br => Label165
IL_1A5A: Label170
IL_1A5A: newobj System.Void RimWorld.<>c__DisplayClass10_13::.ctor()
IL_1A5F: stloc.s 51 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_13)
IL_1A61: ldloc.s 51 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_13)
IL_1A63: ldloc.0
IL_1A64: stfld RimWorld.<>c__DisplayClass10_0
RimWorld.<>c__DisplayClass10_13::CS$<>8__locals13
IL_1A69: ldloc.s 51 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_13)
IL_1A6B: ldloc.s 8
(System.Collections.Generic.IEnumerator`1[Verse.LocalTargetInfo])
IL_1A6D: callvirt abstract virtual Verse.LocalTargetInfo
System.Collections.Generic.IEnumerator`1<Verse.LocalTargetInfo>::get_Current()
IL_1A72: stfld Verse.LocalTargetInfo
RimWorld.<>c__DisplayClass10_13::thing
IL_1A77: ldloc.s 51 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_13)
IL_1A79: ldfld RimWorld.<>c__DisplayClass10_0
RimWorld.<>c__DisplayClass10_13::CS$<>8__locals13
IL_1A7E: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_1A83: ldloc.s 51 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_13)
IL_1A85: ldfld Verse.LocalTargetInfo
RimWorld.<>c__DisplayClass10_13::thing
IL_1A8A: ldc.i4.4
IL_1A8B: ldc.i4.3
IL_1A8C: ldc.i4.0
IL_1A8D: ldc.i4.0
IL_1A8E: ldc.i4.0
IL_1A8F: call static System.Boolean
Verse.ReachabilityUtility::CanReach(Verse.Pawn pawn, Verse.LocalTargetInfo dest,
Verse.AI.PathEndMode peMode, Verse.Danger maxDanger, System.Boolean canBashDoors,
System.Boolean canBashFences, Verse.TraverseMode mode)
IL_1A94: brtrue => Label166
IL_1A99: ldarg.2
IL_1A9A: ldstr "CannotInvoke"
IL_1A9F: ldstr "Power"
IL_1AA4: call static Verse.TaggedString
Verse.Translator::Translate(System.String key)
IL_1AA9: call static Verse.NamedArgument
Verse.NamedArgument::op_Implicit(Verse.TaggedString value)
IL_1AAE: call static Verse.TaggedString
Verse.TranslatorFormattedStringExtensions::Translate(System.String key,
Verse.NamedArgument arg1)
IL_1AB3: ldstr ": "
IL_1AB8: call static Verse.TaggedString
Verse.TaggedString::op_Addition(Verse.TaggedString t1, System.String t2)
IL_1ABD: ldstr "NoPath"
IL_1AC2: call static Verse.TaggedString
Verse.Translator::Translate(System.String key)
IL_1AC7: stloc.s 11 (Verse.TaggedString)
IL_1AC9: ldloca.s 11 (Verse.TaggedString)
IL_1ACB: call Verse.TaggedString Verse.TaggedString::CapitalizeFirst()
IL_1AD0: call static Verse.TaggedString
Verse.TaggedString::op_Addition(Verse.TaggedString t1, Verse.TaggedString t2)
IL_1AD5: call static System.String
Verse.TaggedString::op_Implicit(Verse.TaggedString taggedString)
IL_1ADA: ldnull
IL_1ADB: ldc.i4.4
IL_1ADC: ldnull
IL_1ADD: ldnull
IL_1ADE: ldc.r4 0
IL_1AE3: ldnull
IL_1AE4: ldnull
IL_1AE5: ldc.i4.1
IL_1AE6: ldc.i4.0
IL_1AE7: newobj System.Void Verse.FloatMenuOption::.ctor(System.String
label, System.Action action, Verse.MenuOptionPriority priority,
System.Action`1<UnityEngine.Rect> mouseoverGuiAction, Verse.Thing
revalidateClickTarget, System.Single extraPartWidth,
System.Func`2<UnityEngine.Rect, System.Boolean> extraPartOnGUI,
RimWorld.Planet.WorldObject revalidateWorldClickTarget, System.Boolean
playSelectionSound, System.Int32 orderInPriority)
IL_1AEC: callvirt virtual System.Void
System.Collections.Generic.List`1<Verse.FloatMenuOption>::Add(Verse.FloatMenuOption
item)
IL_1AF1: br => Label167
IL_1AF6: Label166
IL_1AF6: ldloc.s 51 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_13)
IL_1AF8: ldfld Verse.LocalTargetInfo
RimWorld.<>c__DisplayClass10_13::thing
IL_1AFD: call static Verse.Thing
Verse.LocalTargetInfo::op_Explicit(Verse.LocalTargetInfo targ)
IL_1B02: castclass RimWorld.Building_ArchonexusCore
IL_1B07: callvirt System.Boolean
RimWorld.Building_ArchonexusCore::get_CanActivateNow()
IL_1B0C: brtrue => Label168
IL_1B11: ldarg.2
IL_1B12: ldstr "CannotInvoke"
IL_1B17: ldstr "Power"
IL_1B1C: call static Verse.TaggedString
Verse.Translator::Translate(System.String key)
IL_1B21: call static Verse.NamedArgument
Verse.NamedArgument::op_Implicit(Verse.TaggedString value)
IL_1B26: call static Verse.TaggedString
Verse.TranslatorFormattedStringExtensions::Translate(System.String key,
Verse.NamedArgument arg1)
IL_1B2B: ldstr ": "
IL_1B30: call static Verse.TaggedString
Verse.TaggedString::op_Addition(Verse.TaggedString t1, System.String t2)
IL_1B35: ldstr "AlreadyInvoked"
IL_1B3A: call static Verse.TaggedString
Verse.Translator::Translate(System.String key)
IL_1B3F: call static Verse.TaggedString
Verse.TaggedString::op_Addition(Verse.TaggedString t1, Verse.TaggedString t2)
IL_1B44: call static System.String
Verse.TaggedString::op_Implicit(Verse.TaggedString taggedString)
IL_1B49: ldnull
IL_1B4A: ldc.i4.4
IL_1B4B: ldnull
IL_1B4C: ldnull
IL_1B4D: ldc.r4 0
IL_1B52: ldnull
IL_1B53: ldnull
IL_1B54: ldc.i4.1
IL_1B55: ldc.i4.0
IL_1B56: newobj System.Void Verse.FloatMenuOption::.ctor(System.String
label, System.Action action, Verse.MenuOptionPriority priority,
System.Action`1<UnityEngine.Rect> mouseoverGuiAction, Verse.Thing
revalidateClickTarget, System.Single extraPartWidth,
System.Func`2<UnityEngine.Rect, System.Boolean> extraPartOnGUI,
RimWorld.Planet.WorldObject revalidateWorldClickTarget, System.Boolean
playSelectionSound, System.Int32 orderInPriority)
IL_1B5B: callvirt virtual System.Void
System.Collections.Generic.List`1<Verse.FloatMenuOption>::Add(Verse.FloatMenuOption
item)
IL_1B60: br => Label169
IL_1B65: Label168
IL_1B65: ldarg.2
IL_1B66: ldstr "Invoke"
IL_1B6B: ldstr "Power"
IL_1B70: call static Verse.TaggedString
Verse.Translator::Translate(System.String key)
IL_1B75: call static Verse.NamedArgument
Verse.NamedArgument::op_Implicit(Verse.TaggedString value)
IL_1B7A: call static Verse.TaggedString
Verse.TranslatorFormattedStringExtensions::Translate(System.String key,
Verse.NamedArgument arg1)
IL_1B7F: call static System.String
Verse.TaggedString::op_Implicit(Verse.TaggedString taggedString)
IL_1B84: ldloc.s 51 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_13)
IL_1B86: ldftn System.Void
RimWorld.<>c__DisplayClass10_13::<AddHumanlikeOrders>b__15()
IL_1B8C: newobj System.Void System.Action::.ctor(System.Object object,
System.IntPtr method)
IL_1B91: ldc.i4.4
IL_1B92: ldnull
IL_1B93: ldnull
IL_1B94: ldc.r4 0
IL_1B99: ldnull
IL_1B9A: ldnull
IL_1B9B: ldc.i4.1
IL_1B9C: ldc.i4.0
IL_1B9D: newobj System.Void Verse.FloatMenuOption::.ctor(System.String
label, System.Action action, Verse.MenuOptionPriority priority,
System.Action`1<UnityEngine.Rect> mouseoverGuiAction, Verse.Thing
revalidateClickTarget, System.Single extraPartWidth,
System.Func`2<UnityEngine.Rect, System.Boolean> extraPartOnGUI,
RimWorld.Planet.WorldObject revalidateWorldClickTarget, System.Boolean
playSelectionSound, System.Int32 orderInPriority)
IL_1BA2: ldloc.s 51 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_13)
IL_1BA4: ldfld RimWorld.<>c__DisplayClass10_0
RimWorld.<>c__DisplayClass10_13::CS$<>8__locals13
IL_1BA9: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_1BAE: ldloc.s 51 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_13)
IL_1BB0: ldfld Verse.LocalTargetInfo
RimWorld.<>c__DisplayClass10_13::thing
IL_1BB5: ldstr "ReservedBy"
IL_1BBA: ldnull
IL_1BBB: call static Verse.FloatMenuOption
RimWorld.FloatMenuUtility::DecoratePrioritizedTask(Verse.FloatMenuOption option,
Verse.Pawn pawn, Verse.LocalTargetInfo target, System.String reservedText,
Verse.ReservationLayerDef layer)
IL_1BC0: callvirt virtual System.Void
System.Collections.Generic.List`1<Verse.FloatMenuOption>::Add(Verse.FloatMenuOption
item)
IL_1BC5: Label165
IL_1BC5: Label167
IL_1BC5: Label169
IL_1BC5: ldloc.s 8
(System.Collections.Generic.IEnumerator`1[Verse.LocalTargetInfo])
IL_1BC7: callvirt abstract virtual System.Boolean
System.Collections.IEnumerator::MoveNext()
IL_1BCC: brtrue => Label170
IL_1BD1: leave => Label171
IL_1BD6: leave => (autogenerated)
} // end try
.finally
{
IL_1BDB: ldloc.s 8
(System.Collections.Generic.IEnumerator`1[Verse.LocalTargetInfo])
IL_1BDD: brfalse => Label172
IL_1BE2: ldloc.s 8
(System.Collections.Generic.IEnumerator`1[Verse.LocalTargetInfo])
IL_1BE4: callvirt abstract virtual System.Void
System.IDisposable::Dispose()
IL_1BE9: Label172
IL_1BE9: endfinally
IL_1BEA: leave => (autogenerated)
} // end handler
IL_1BEB: Label150
IL_1BEB: Label171
IL_1BEB: call static System.Boolean Verse.ModsConfig::get_IdeologyActive()
IL_1BF0: brfalse => Label173
IL_1BF5: ldloc.s 22 (System.Collections.Generic.List`1[Verse.Thing])
IL_1BF7: callvirt System.Collections.Generic.Enumerator<Verse.Thing>
System.Collections.Generic.List`1<Verse.Thing>::GetEnumerator()
IL_1BFC: stloc.2
.try
{
IL_1BFD: br => Label174
IL_1C02: Label190
IL_1C02: newobj System.Void RimWorld.<>c__DisplayClass10_14::.ctor()
IL_1C07: stloc.s 52 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_14)
IL_1C09: ldloc.s 52 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_14)
IL_1C0B: ldloc.0
IL_1C0C: stfld RimWorld.<>c__DisplayClass10_0
RimWorld.<>c__DisplayClass10_14::CS$<>8__locals14
IL_1C11: ldloc.s 52 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_14)
IL_1C13: ldloca.s 2
(System.Collections.Generic.List`1+Enumerator[Verse.Thing])
IL_1C15: call virtual Verse.Thing
System.Collections.Generic.Enumerator<Verse.Thing>::get_Current()
IL_1C1A: stfld Verse.Thing RimWorld.<>c__DisplayClass10_14::thing
IL_1C1F: newobj System.Void RimWorld.<>c__DisplayClass10_15::.ctor()
IL_1C24: stloc.s 53 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_15)
IL_1C26: ldloc.s 53 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_15)
IL_1C28: ldloc.s 52 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_14)
IL_1C2A: stfld RimWorld.<>c__DisplayClass10_14
RimWorld.<>c__DisplayClass10_15::CS$<>8__locals15
IL_1C2F: ldloc.s 53 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_15)
IL_1C31: ldloc.s 53 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_15)
IL_1C33: ldfld RimWorld.<>c__DisplayClass10_14
RimWorld.<>c__DisplayClass10_15::CS$<>8__locals15
IL_1C38: ldfld Verse.Thing RimWorld.<>c__DisplayClass10_14::thing
IL_1C3D: call static RimWorld.CompRelicContainer
Verse.ThingCompUtility::TryGetComp(Verse.Thing thing)
IL_1C42: stfld RimWorld.CompRelicContainer
RimWorld.<>c__DisplayClass10_15::container
IL_1C47: ldloc.s 53 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_15)
IL_1C49: ldfld RimWorld.CompRelicContainer
RimWorld.<>c__DisplayClass10_15::container
IL_1C4E: brfalse => Label175
IL_1C53: ldloc.s 53 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_15)
IL_1C55: ldfld RimWorld.CompRelicContainer
RimWorld.<>c__DisplayClass10_15::container
IL_1C5A: callvirt System.Boolean RimWorld.CompThingContainer::get_Full()
IL_1C5F: brfalse => Label176
IL_1C64: ldstr "ExtractRelic"
IL_1C69: ldloc.s 53 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_15)
IL_1C6B: ldfld RimWorld.CompRelicContainer
RimWorld.<>c__DisplayClass10_15::container
IL_1C70: callvirt Verse.Thing
RimWorld.CompThingContainer::get_ContainedThing()
IL_1C75: callvirt abstract virtual System.String Verse.Entity::get_Label()
IL_1C7A: call static Verse.NamedArgument
Verse.NamedArgument::op_Implicit(System.String value)
IL_1C7F: call static Verse.TaggedString
Verse.TranslatorFormattedStringExtensions::Translate(System.String key,
Verse.NamedArgument arg1)
IL_1C84: call static System.String
Verse.TaggedString::op_Implicit(Verse.TaggedString taggedString)
IL_1C89: stloc.s 54 (System.String)
IL_1C8B: ldloc.s 53 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_15)
IL_1C8D: ldfld RimWorld.CompRelicContainer
RimWorld.<>c__DisplayClass10_15::container
IL_1C92: callvirt Verse.Thing
RimWorld.CompThingContainer::get_ContainedThing()
IL_1C97: ldloc.s 53 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_15)
IL_1C99: ldfld RimWorld.<>c__DisplayClass10_14
RimWorld.<>c__DisplayClass10_15::CS$<>8__locals15
IL_1C9E: ldfld RimWorld.<>c__DisplayClass10_0
RimWorld.<>c__DisplayClass10_14::CS$<>8__locals14
IL_1CA3: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_1CA8: ldloc.s 53 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_15)
IL_1CAA: ldfld RimWorld.<>c__DisplayClass10_14
RimWorld.<>c__DisplayClass10_15::CS$<>8__locals15
IL_1CAF: ldfld RimWorld.<>c__DisplayClass10_0
RimWorld.<>c__DisplayClass10_14::CS$<>8__locals14
IL_1CB4: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_1CB9: callvirt virtual Verse.Map Verse.Thing::get_Map()
IL_1CBE: ldc.i4.0
IL_1CBF: ldloc.s 53 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_15)
IL_1CC1: ldfld RimWorld.<>c__DisplayClass10_14
RimWorld.<>c__DisplayClass10_15::CS$<>8__locals15
IL_1CC6: ldfld RimWorld.<>c__DisplayClass10_0
RimWorld.<>c__DisplayClass10_14::CS$<>8__locals14
IL_1CCB: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_1CD0: callvirt virtual RimWorld.Faction Verse.Thing::get_Faction()
IL_1CD5: ldloca.s 55 (Verse.IntVec3)
IL_1CD7: ldloca.s 56 (RimWorld.IHaulDestination)
IL_1CD9: ldc.i4.1
IL_1CDA: call static System.Boolean
RimWorld.StoreUtility::TryFindBestBetterStorageFor(Verse.Thing t, Verse.Pawn
carrier, Verse.Map map, RimWorld.StoragePriority currentPriority, RimWorld.Faction
faction, Verse.IntVec3& foundCell, RimWorld.IHaulDestination& haulDestination,
System.Boolean needAccurateResult)
IL_1CDF: brtrue => Label177
IL_1CE4: ldarg.2
IL_1CE5: ldloc.s 54 (System.String)
IL_1CE7: ldstr " ("
IL_1CEC: ldsfld System.String
Verse.AI.HaulAIUtility::NoEmptyPlaceLowerTrans
IL_1CF1: ldstr ")"
IL_1CF6: call static System.String System.String::Concat(System.String
str0, System.String str1, System.String str2, System.String str3)
IL_1CFB: ldnull
IL_1CFC: ldc.i4.4
IL_1CFD: ldnull
IL_1CFE: ldnull
IL_1CFF: ldc.r4 0
IL_1D04: ldnull
IL_1D05: ldnull
IL_1D06: ldc.i4.1
IL_1D07: ldc.i4.0
IL_1D08: newobj System.Void Verse.FloatMenuOption::.ctor(System.String
label, System.Action action, Verse.MenuOptionPriority priority,
System.Action`1<UnityEngine.Rect> mouseoverGuiAction, Verse.Thing
revalidateClickTarget, System.Single extraPartWidth,
System.Func`2<UnityEngine.Rect, System.Boolean> extraPartOnGUI,
RimWorld.Planet.WorldObject revalidateWorldClickTarget, System.Boolean
playSelectionSound, System.Int32 orderInPriority)
IL_1D0D: callvirt virtual System.Void
System.Collections.Generic.List`1<Verse.FloatMenuOption>::Add(Verse.FloatMenuOption
item)
IL_1D12: br => Label178
IL_1D17: Label177
IL_1D17: newobj System.Void RimWorld.<>c__DisplayClass10_16::.ctor()
IL_1D1C: stloc.s 57 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_16)
IL_1D1E: ldloc.s 57 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_16)
IL_1D20: ldloc.s 53 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_15)
IL_1D22: stfld RimWorld.<>c__DisplayClass10_15
RimWorld.<>c__DisplayClass10_16::CS$<>8__locals16
IL_1D27: ldloc.s 57 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_16)
IL_1D29: ldsfld Verse.JobDef RimWorld.JobDefOf::ExtractRelic
IL_1D2E: ldloc.s 57 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_16)
IL_1D30: ldfld RimWorld.<>c__DisplayClass10_15
RimWorld.<>c__DisplayClass10_16::CS$<>8__locals16
IL_1D35: ldfld RimWorld.<>c__DisplayClass10_14
RimWorld.<>c__DisplayClass10_15::CS$<>8__locals15
IL_1D3A: ldfld Verse.Thing RimWorld.<>c__DisplayClass10_14::thing
IL_1D3F: call static Verse.LocalTargetInfo
Verse.LocalTargetInfo::op_Implicit(Verse.Thing t)
IL_1D44: ldloc.s 57 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_16)
IL_1D46: ldfld RimWorld.<>c__DisplayClass10_15
RimWorld.<>c__DisplayClass10_16::CS$<>8__locals16
IL_1D4B: ldfld RimWorld.CompRelicContainer
RimWorld.<>c__DisplayClass10_15::container
IL_1D50: callvirt Verse.Thing
RimWorld.CompThingContainer::get_ContainedThing()
IL_1D55: call static Verse.LocalTargetInfo
Verse.LocalTargetInfo::op_Implicit(Verse.Thing t)
IL_1D5A: ldloc.s 55 (Verse.IntVec3)
IL_1D5C: call static Verse.LocalTargetInfo
Verse.LocalTargetInfo::op_Implicit(Verse.IntVec3 c)
IL_1D61: call static Verse.AI.Job Verse.JobMaker::MakeJob(Verse.JobDef
def, Verse.LocalTargetInfo targetA, Verse.LocalTargetInfo targetB,
Verse.LocalTargetInfo targetC)
IL_1D66: stfld Verse.AI.Job RimWorld.<>c__DisplayClass10_16::job
IL_1D6B: ldloc.s 57 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_16)
IL_1D6D: ldfld Verse.AI.Job RimWorld.<>c__DisplayClass10_16::job
IL_1D72: ldc.i4.1
IL_1D73: stfld System.Int32 Verse.AI.Job::count
IL_1D78: ldarg.2
IL_1D79: ldloc.s 54 (System.String)
IL_1D7B: ldloc.s 57 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_16)
IL_1D7D: ldftn System.Void
RimWorld.<>c__DisplayClass10_16::<AddHumanlikeOrders>b__17()
IL_1D83: newobj System.Void System.Action::.ctor(System.Object object,
System.IntPtr method)
IL_1D88: ldc.i4.4
IL_1D89: ldnull
IL_1D8A: ldnull
IL_1D8B: ldc.r4 0
IL_1D90: ldnull
IL_1D91: ldnull
IL_1D92: ldc.i4.1
IL_1D93: ldc.i4.0
IL_1D94: newobj System.Void Verse.FloatMenuOption::.ctor(System.String
label, System.Action action, Verse.MenuOptionPriority priority,
System.Action`1<UnityEngine.Rect> mouseoverGuiAction, Verse.Thing
revalidateClickTarget, System.Single extraPartWidth,
System.Func`2<UnityEngine.Rect, System.Boolean> extraPartOnGUI,
RimWorld.Planet.WorldObject revalidateWorldClickTarget, System.Boolean
playSelectionSound, System.Int32 orderInPriority)
IL_1D99: ldloc.s 57 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_16)
IL_1D9B: ldfld RimWorld.<>c__DisplayClass10_15
RimWorld.<>c__DisplayClass10_16::CS$<>8__locals16
IL_1DA0: ldfld RimWorld.<>c__DisplayClass10_14
RimWorld.<>c__DisplayClass10_15::CS$<>8__locals15
IL_1DA5: ldfld RimWorld.<>c__DisplayClass10_0
RimWorld.<>c__DisplayClass10_14::CS$<>8__locals14
IL_1DAA: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_1DAF: ldloc.s 57 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_16)
IL_1DB1: ldfld RimWorld.<>c__DisplayClass10_15
RimWorld.<>c__DisplayClass10_16::CS$<>8__locals16
IL_1DB6: ldfld RimWorld.<>c__DisplayClass10_14
RimWorld.<>c__DisplayClass10_15::CS$<>8__locals15
IL_1DBB: ldfld Verse.Thing RimWorld.<>c__DisplayClass10_14::thing
IL_1DC0: newobj System.Void Verse.LocalTargetInfo::.ctor(Verse.Thing
thing)
IL_1DC5: ldstr "ReservedBy"
IL_1DCA: ldnull
IL_1DCB: call static Verse.FloatMenuOption
RimWorld.FloatMenuUtility::DecoratePrioritizedTask(Verse.FloatMenuOption option,
Verse.Pawn pawn, Verse.LocalTargetInfo target, System.String reservedText,
Verse.ReservationLayerDef layer)
IL_1DD0: callvirt virtual System.Void
System.Collections.Generic.List`1<Verse.FloatMenuOption>::Add(Verse.FloatMenuOption
item)
IL_1DD5: br => Label179
IL_1DDA: Label176
IL_1DDA: ldloc.s 53 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_15)
IL_1DDC: ldfld RimWorld.<>c__DisplayClass10_14
RimWorld.<>c__DisplayClass10_15::CS$<>8__locals15
IL_1DE1: ldfld RimWorld.<>c__DisplayClass10_0
RimWorld.<>c__DisplayClass10_14::CS$<>8__locals14
IL_1DE6: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_1DEB: callvirt virtual Verse.Map Verse.Thing::get_Map()
IL_1DF0: ldfld Verse.ListerThings Verse.Map::listerThings
IL_1DF5: callvirt System.Collections.Generic.List`1<Verse.Thing>
Verse.ListerThings::get_AllThings()
IL_1DFA: ldloc.s 53 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_15)
IL_1DFC: ldfld RimWorld.<>c__DisplayClass10_14
RimWorld.<>c__DisplayClass10_15::CS$<>8__locals15
IL_1E01: ldfld RimWorld.<>c__DisplayClass10_0
RimWorld.<>c__DisplayClass10_14::CS$<>8__locals14
IL_1E06: ldfld System.Func`2<Verse.Thing, System.Boolean>
RimWorld.<>c__DisplayClass10_0::<>9__18
IL_1E0B: dup
IL_1E0C: brtrue => Label180
IL_1E11: pop
IL_1E12: ldloc.s 53 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_15)
IL_1E14: ldfld RimWorld.<>c__DisplayClass10_14
RimWorld.<>c__DisplayClass10_15::CS$<>8__locals15
IL_1E19: ldfld RimWorld.<>c__DisplayClass10_0
RimWorld.<>c__DisplayClass10_14::CS$<>8__locals14
IL_1E1E: ldloc.s 53 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_15)
IL_1E20: ldfld RimWorld.<>c__DisplayClass10_14
RimWorld.<>c__DisplayClass10_15::CS$<>8__locals15
IL_1E25: ldfld RimWorld.<>c__DisplayClass10_0
RimWorld.<>c__DisplayClass10_14::CS$<>8__locals14
IL_1E2A: ldftn System.Boolean
RimWorld.<>c__DisplayClass10_0::<AddHumanlikeOrders>b__18(Verse.Thing x)
IL_1E30: newobj System.Void System.Func`2<Verse.Thing,
System.Boolean>::.ctor(System.Object object, System.IntPtr method)
IL_1E35: dup
IL_1E36: stloc.s 59 (System.Func`2[Verse.Thing,System.Boolean])
IL_1E38: stfld System.Func`2<Verse.Thing, System.Boolean>
RimWorld.<>c__DisplayClass10_0::<>9__18
IL_1E3D: ldloc.s 59 (System.Func`2[Verse.Thing,System.Boolean])
IL_1E3F: Label180
IL_1E3F: call static
System.Collections.Generic.IEnumerable`1<Verse.Thing>
System.Linq.Enumerable::Where(System.Collections.Generic.IEnumerable`1<Verse.Thing>
source, System.Func`2<Verse.Thing, System.Boolean> predicate)
IL_1E44: stloc.s 58
(System.Collections.Generic.IEnumerable`1[Verse.Thing])
IL_1E46: ldloc.s 58
(System.Collections.Generic.IEnumerable`1[Verse.Thing])
IL_1E48: call static System.Boolean
System.Linq.Enumerable::Any(System.Collections.Generic.IEnumerable`1<Verse.Thing>
source)
IL_1E4D: brtrue => Label181
IL_1E52: ldarg.2
IL_1E53: ldstr "NoRelicToInstall"
IL_1E58: call static Verse.TaggedString
Verse.Translator::Translate(System.String key)
IL_1E5D: call static System.String
Verse.TaggedString::op_Implicit(Verse.TaggedString taggedString)
IL_1E62: ldnull
IL_1E63: ldc.i4.4
IL_1E64: ldnull
IL_1E65: ldnull
IL_1E66: ldc.r4 0
IL_1E6B: ldnull
IL_1E6C: ldnull
IL_1E6D: ldc.i4.1
IL_1E6E: ldc.i4.0
IL_1E6F: newobj System.Void Verse.FloatMenuOption::.ctor(System.String
label, System.Action action, Verse.MenuOptionPriority priority,
System.Action`1<UnityEngine.Rect> mouseoverGuiAction, Verse.Thing
revalidateClickTarget, System.Single extraPartWidth,
System.Func`2<UnityEngine.Rect, System.Boolean> extraPartOnGUI,
RimWorld.Planet.WorldObject revalidateWorldClickTarget, System.Boolean
playSelectionSound, System.Int32 orderInPriority)
IL_1E74: callvirt virtual System.Void
System.Collections.Generic.List`1<Verse.FloatMenuOption>::Add(Verse.FloatMenuOption
item)
IL_1E79: br => Label182
IL_1E7E: Label181
IL_1E7E: ldloc.s 58
(System.Collections.Generic.IEnumerable`1[Verse.Thing])
IL_1E80: callvirt abstract virtual
System.Collections.Generic.IEnumerator`1<Verse.Thing>
System.Collections.Generic.IEnumerable`1<Verse.Thing>::GetEnumerator()
IL_1E85: stloc.s 60
(System.Collections.Generic.IEnumerator`1[Verse.Thing])
.try
{
IL_1E87: br => Label183
IL_1E8C: Label184
IL_1E8C: ldloc.s 60
(System.Collections.Generic.IEnumerator`1[Verse.Thing])
IL_1E8E: callvirt abstract virtual Verse.Thing
System.Collections.Generic.IEnumerator`1<Verse.Thing>::get_Current()
IL_1E93: stloc.s 61 (Verse.Thing)
IL_1E95: newobj System.Void
RimWorld.<>c__DisplayClass10_17::.ctor()
IL_1E9A: stloc.s 62
(RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_17)
IL_1E9C: ldloc.s 62
(RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_17)
IL_1E9E: ldloc.s 53
(RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_15)
IL_1EA0: stfld RimWorld.<>c__DisplayClass10_15
RimWorld.<>c__DisplayClass10_17::CS$<>8__locals17
IL_1EA5: ldloc.s 62
(RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_17)
IL_1EA7: ldsfld Verse.JobDef RimWorld.JobDefOf::InstallRelic
IL_1EAC: ldloc.s 61 (Verse.Thing)
IL_1EAE: call static Verse.LocalTargetInfo
Verse.LocalTargetInfo::op_Implicit(Verse.Thing t)
IL_1EB3: ldloc.s 62
(RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_17)
IL_1EB5: ldfld RimWorld.<>c__DisplayClass10_15
RimWorld.<>c__DisplayClass10_17::CS$<>8__locals17
IL_1EBA: ldfld RimWorld.<>c__DisplayClass10_14
RimWorld.<>c__DisplayClass10_15::CS$<>8__locals15
IL_1EBF: ldfld Verse.Thing RimWorld.<>c__DisplayClass10_14::thing
IL_1EC4: call static Verse.LocalTargetInfo
Verse.LocalTargetInfo::op_Implicit(Verse.Thing t)
IL_1EC9: ldloc.s 62
(RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_17)
IL_1ECB: ldfld RimWorld.<>c__DisplayClass10_15
RimWorld.<>c__DisplayClass10_17::CS$<>8__locals17
IL_1ED0: ldfld RimWorld.<>c__DisplayClass10_14
RimWorld.<>c__DisplayClass10_15::CS$<>8__locals15
IL_1ED5: ldfld Verse.Thing RimWorld.<>c__DisplayClass10_14::thing
IL_1EDA: callvirt virtual Verse.IntVec3
Verse.Thing::get_InteractionCell()
IL_1EDF: call static Verse.LocalTargetInfo
Verse.LocalTargetInfo::op_Implicit(Verse.IntVec3 c)
IL_1EE4: call static Verse.AI.Job
Verse.JobMaker::MakeJob(Verse.JobDef def, Verse.LocalTargetInfo targetA,
Verse.LocalTargetInfo targetB, Verse.LocalTargetInfo targetC)
IL_1EE9: stfld Verse.AI.Job RimWorld.<>c__DisplayClass10_17::job
IL_1EEE: ldloc.s 62
(RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_17)
IL_1EF0: ldfld Verse.AI.Job RimWorld.<>c__DisplayClass10_17::job
IL_1EF5: ldc.i4.1
IL_1EF6: stfld System.Int32 Verse.AI.Job::count
IL_1EFB: ldarg.2
IL_1EFC: ldstr "InstallRelic"
IL_1F01: ldloc.s 61 (Verse.Thing)
IL_1F03: callvirt abstract virtual System.String
Verse.Entity::get_Label()
IL_1F08: call static Verse.NamedArgument
Verse.NamedArgument::op_Implicit(System.String value)
IL_1F0D: call static Verse.TaggedString
Verse.TranslatorFormattedStringExtensions::Translate(System.String key,
Verse.NamedArgument arg1)
IL_1F12: call static System.String
Verse.TaggedString::op_Implicit(Verse.TaggedString taggedString)
IL_1F17: ldloc.s 62
(RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_17)
IL_1F19: ldftn System.Void
RimWorld.<>c__DisplayClass10_17::<AddHumanlikeOrders>b__19()
IL_1F1F: newobj System.Void System.Action::.ctor(System.Object
object, System.IntPtr method)
IL_1F24: ldc.i4.4
IL_1F25: ldnull
IL_1F26: ldnull
IL_1F27: ldc.r4 0
IL_1F2C: ldnull
IL_1F2D: ldnull
IL_1F2E: ldc.i4.1
IL_1F2F: ldc.i4.0
IL_1F30: newobj System.Void
Verse.FloatMenuOption::.ctor(System.String label, System.Action action,
Verse.MenuOptionPriority priority, System.Action`1<UnityEngine.Rect>
mouseoverGuiAction, Verse.Thing revalidateClickTarget, System.Single
extraPartWidth, System.Func`2<UnityEngine.Rect, System.Boolean> extraPartOnGUI,
RimWorld.Planet.WorldObject revalidateWorldClickTarget, System.Boolean
playSelectionSound, System.Int32 orderInPriority)
IL_1F35: ldloc.s 62
(RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_17)
IL_1F37: ldfld RimWorld.<>c__DisplayClass10_15
RimWorld.<>c__DisplayClass10_17::CS$<>8__locals17
IL_1F3C: ldfld RimWorld.<>c__DisplayClass10_14
RimWorld.<>c__DisplayClass10_15::CS$<>8__locals15
IL_1F41: ldfld RimWorld.<>c__DisplayClass10_0
RimWorld.<>c__DisplayClass10_14::CS$<>8__locals14
IL_1F46: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_1F4B: ldloc.s 62
(RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_17)
IL_1F4D: ldfld RimWorld.<>c__DisplayClass10_15
RimWorld.<>c__DisplayClass10_17::CS$<>8__locals17
IL_1F52: ldfld RimWorld.<>c__DisplayClass10_14
RimWorld.<>c__DisplayClass10_15::CS$<>8__locals15
IL_1F57: ldfld Verse.Thing RimWorld.<>c__DisplayClass10_14::thing
IL_1F5C: newobj System.Void
Verse.LocalTargetInfo::.ctor(Verse.Thing thing)
IL_1F61: ldstr "ReservedBy"
IL_1F66: ldnull
IL_1F67: call static Verse.FloatMenuOption
RimWorld.FloatMenuUtility::DecoratePrioritizedTask(Verse.FloatMenuOption option,
Verse.Pawn pawn, Verse.LocalTargetInfo target, System.String reservedText,
Verse.ReservationLayerDef layer)
IL_1F6C: callvirt virtual System.Void
System.Collections.Generic.List`1<Verse.FloatMenuOption>::Add(Verse.FloatMenuOption
item)
IL_1F71: Label183
IL_1F71: ldloc.s 60
(System.Collections.Generic.IEnumerator`1[Verse.Thing])
IL_1F73: callvirt abstract virtual System.Boolean
System.Collections.IEnumerator::MoveNext()
IL_1F78: brtrue => Label184
IL_1F7D: leave => Label185
IL_1F82: leave => (autogenerated)
} // end try
.finally
{
IL_1F87: ldloc.s 60
(System.Collections.Generic.IEnumerator`1[Verse.Thing])
IL_1F89: brfalse => Label186
IL_1F8E: ldloc.s 60
(System.Collections.Generic.IEnumerator`1[Verse.Thing])
IL_1F90: callvirt abstract virtual System.Void
System.IDisposable::Dispose()
IL_1F95: Label186
IL_1F95: endfinally
IL_1F96: leave => (autogenerated)
} // end handler
IL_1F97: Label178
IL_1F97: Label179
IL_1F97: Label182
IL_1F97: Label185
IL_1F97: ldloc.s 53 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_15)
IL_1F99: ldfld RimWorld.<>c__DisplayClass10_14
RimWorld.<>c__DisplayClass10_15::CS$<>8__locals15
IL_1F9E: ldfld RimWorld.<>c__DisplayClass10_0
RimWorld.<>c__DisplayClass10_14::CS$<>8__locals14
IL_1FA3: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_1FA8: callvirt virtual Verse.Map Verse.Thing::get_Map()
IL_1FAD: ldc.i4.0
IL_1FAE: ldc.i4.0
IL_1FAF: brtrue => Label187
IL_1FB4: ldloc.s 53 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_15)
IL_1FB6: ldfld RimWorld.<>c__DisplayClass10_14
RimWorld.<>c__DisplayClass10_15::CS$<>8__locals15
IL_1FBB: ldfld RimWorld.<>c__DisplayClass10_0
RimWorld.<>c__DisplayClass10_14::CS$<>8__locals14
IL_1FC0: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_1FC5: call static System.Boolean
RimWorld.Planet.CaravanFormingUtility::IsFormingCaravan(Verse.Pawn p)
IL_1FCA: brtrue => Label188
IL_1FCF: ldloc.s 53 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_15)
IL_1FD1: ldfld RimWorld.CompRelicContainer
RimWorld.<>c__DisplayClass10_15::container
IL_1FD6: callvirt System.Boolean RimWorld.CompThingContainer::get_Full()
IL_1FDB: brfalse => Label189
IL_1FE0: ldarg.2
IL_1FE1: ldstr "ExtractRelicToInventory"
IL_1FE6: ldloc.s 53 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_15)
IL_1FE8: ldfld RimWorld.CompRelicContainer
RimWorld.<>c__DisplayClass10_15::container
IL_1FED: callvirt Verse.Thing
RimWorld.CompThingContainer::get_ContainedThing()
IL_1FF2: callvirt abstract virtual System.String Verse.Entity::get_Label()
IL_1FF7: call static Verse.NamedArgument
Verse.NamedArgument::op_Implicit(System.String value)
IL_1FFC: ldc.i4 300
IL_2001: ldc.i4.1
IL_2002: ldc.i4.0
IL_2003: ldc.i4.1
IL_2004: ldc.i4.1
IL_2005: ldc.i4.0
IL_2006: call static System.String
RimWorld.GenDate::ToStringTicksToPeriod(System.Int32 numTicks, System.Boolean
allowSeconds, System.Boolean shortForm, System.Boolean canUseDecimals,
System.Boolean allowYears, System.Boolean canUseDecimalsShortForm)
IL_200B: call static Verse.NamedArgument
Verse.NamedArgument::op_Implicit(System.String value)
IL_2010: call static Verse.TaggedString
Verse.TranslatorFormattedStringExtensions::Translate(System.String key,
Verse.NamedArgument arg1, Verse.NamedArgument arg2)
IL_2015: call static System.String
Verse.TaggedString::op_Implicit(Verse.TaggedString taggedString)
IL_201A: ldloc.s 53 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_15)
IL_201C: ldftn System.Void
RimWorld.<>c__DisplayClass10_15::<AddHumanlikeOrders>b__16()
IL_2022: newobj System.Void System.Action::.ctor(System.Object object,
System.IntPtr method)
IL_2027: ldc.i4.4
IL_2028: ldnull
IL_2029: ldnull
IL_202A: ldc.r4 0
IL_202F: ldnull
IL_2030: ldnull
IL_2031: ldc.i4.1
IL_2032: ldc.i4.0
IL_2033: newobj System.Void Verse.FloatMenuOption::.ctor(System.String
label, System.Action action, Verse.MenuOptionPriority priority,
System.Action`1<UnityEngine.Rect> mouseoverGuiAction, Verse.Thing
revalidateClickTarget, System.Single extraPartWidth,
System.Func`2<UnityEngine.Rect, System.Boolean> extraPartOnGUI,
RimWorld.Planet.WorldObject revalidateWorldClickTarget, System.Boolean
playSelectionSound, System.Int32 orderInPriority)
IL_2038: ldloc.s 53 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_15)
IL_203A: ldfld RimWorld.<>c__DisplayClass10_14
RimWorld.<>c__DisplayClass10_15::CS$<>8__locals15
IL_203F: ldfld RimWorld.<>c__DisplayClass10_0
RimWorld.<>c__DisplayClass10_14::CS$<>8__locals14
IL_2044: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_2049: ldloc.s 53 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_15)
IL_204B: ldfld RimWorld.<>c__DisplayClass10_14
RimWorld.<>c__DisplayClass10_15::CS$<>8__locals15
IL_2050: ldfld Verse.Thing RimWorld.<>c__DisplayClass10_14::thing
IL_2055: newobj System.Void Verse.LocalTargetInfo::.ctor(Verse.Thing
thing)
IL_205A: ldstr "ReservedBy"
IL_205F: ldnull
IL_2060: call static Verse.FloatMenuOption
RimWorld.FloatMenuUtility::DecoratePrioritizedTask(Verse.FloatMenuOption option,
Verse.Pawn pawn, Verse.LocalTargetInfo target, System.String reservedText,
Verse.ReservationLayerDef layer)
IL_2065: callvirt virtual System.Void
System.Collections.Generic.List`1<Verse.FloatMenuOption>::Add(Verse.FloatMenuOption
item)
IL_206A: Label174
IL_206A: Label175
IL_206A: Label187
IL_206A: Label188
IL_206A: Label189
IL_206A: ldloca.s 2
(System.Collections.Generic.List`1+Enumerator[Verse.Thing])
IL_206C: call virtual System.Boolean
System.Collections.Generic.Enumerator<Verse.Thing>::MoveNext()
IL_2071: brtrue => Label190
IL_2076: leave => Label191
IL_207B: leave => (autogenerated)
} // end try
.finally
{
IL_2080: ldloca.s 2
(System.Collections.Generic.List`1+Enumerator[Verse.Thing])
IL_2082: constrained.
System.Collections.Generic.List`1+Enumerator[Verse.Thing]
IL_2088: callvirt abstract virtual System.Void
System.IDisposable::Dispose()
IL_208D: endfinally
IL_208E: leave => (autogenerated)
} // end handler
IL_208F: Label191
IL_208F: ldloc.s 22 (System.Collections.Generic.List`1[Verse.Thing])
IL_2091: callvirt System.Collections.Generic.Enumerator<Verse.Thing>
System.Collections.Generic.List`1<Verse.Thing>::GetEnumerator()
IL_2096: stloc.2
.try
{
IL_2097: br => Label192
IL_209C: Label198
IL_209C: ldloca.s 2
(System.Collections.Generic.List`1+Enumerator[Verse.Thing])
IL_209E: call virtual Verse.Thing
System.Collections.Generic.Enumerator<Verse.Thing>::get_Current()
IL_20A3: stloc.s 63 (Verse.Thing)
IL_20A5: ldloc.s 63 (Verse.Thing)
IL_20A7: call static System.Boolean
RimWorld.CompRelicContainer::IsRelic(Verse.Thing thing)
IL_20AC: brfalse => Label193
IL_20B1: ldloc.s 63 (Verse.Thing)
IL_20B3: callvirt virtual Verse.Map Verse.Thing::get_Map()
IL_20B8: ldfld Verse.ListerThings Verse.Map::listerThings
IL_20BD: ldsfld Verse.ThingDef RimWorld.ThingDefOf::Reliquary
IL_20C2: callvirt System.Collections.Generic.List`1<Verse.Thing>
Verse.ListerThings::ThingsOfDef(Verse.ThingDef def)
IL_20C7: ldsfld System.Func`2<Verse.Thing, System.Boolean>
RimWorld.<>c::<>9__10_20
IL_20CC: dup
IL_20CD: brtrue => Label194
IL_20D2: pop
IL_20D3: ldsfld RimWorld.<>c RimWorld.<>c::<>9
IL_20D8: ldftn System.Boolean
RimWorld.<>c::<AddHumanlikeOrders>b__10_20(Verse.Thing x)
IL_20DE: newobj System.Void System.Func`2<Verse.Thing,
System.Boolean>::.ctor(System.Object object, System.IntPtr method)
IL_20E3: dup
IL_20E4: stsfld System.Func`2<Verse.Thing, System.Boolean>
RimWorld.<>c::<>9__10_20
IL_20E9: Label194
IL_20E9: call static
System.Collections.Generic.IEnumerable`1<Verse.Thing>
System.Linq.Enumerable::Where(System.Collections.Generic.IEnumerable`1<Verse.Thing>
source, System.Func`2<Verse.Thing, System.Boolean> predicate)
IL_20EE: stloc.s 64
(System.Collections.Generic.IEnumerable`1[Verse.Thing])
IL_20F0: ldloc.s 63 (Verse.Thing)
IL_20F2: callvirt virtual Verse.IntVec3 Verse.Thing::get_Position()
IL_20F7: ldloc.s 63 (Verse.Thing)
IL_20F9: callvirt virtual Verse.Map Verse.Thing::get_Map()
IL_20FE: ldloc.s 64
(System.Collections.Generic.IEnumerable`1[Verse.Thing])
IL_2100: ldc.i4.2
IL_2101: ldloc.0
IL_2102: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_2107: ldc.i4.3
IL_2108: ldc.i4.0
IL_2109: ldc.i4.0
IL_210A: ldc.i4.0
IL_210B: ldc.i4.0
IL_210C: call static Verse.TraverseParms
Verse.TraverseParms::For(Verse.Pawn pawn, Verse.Danger maxDanger,
Verse.TraverseMode mode, System.Boolean canBashDoors, System.Boolean
alwaysUseAvoidGrid, System.Boolean canBashFences)
IL_2111: ldc.r4 9999
IL_2116: ldloc.0
IL_2117: ldfld System.Predicate`1<Verse.Thing>
RimWorld.<>c__DisplayClass10_0::<>9__21
IL_211C: dup
IL_211D: brtrue => Label195
IL_2122: pop
IL_2123: ldloc.0
IL_2124: ldloc.0
IL_2125: ldftn System.Boolean
RimWorld.<>c__DisplayClass10_0::<AddHumanlikeOrders>b__21(Verse.Thing t)
IL_212B: newobj System.Void
System.Predicate`1<Verse.Thing>::.ctor(System.Object object, System.IntPtr method)
IL_2130: dup
IL_2131: stloc.s 66 (System.Predicate`1[Verse.Thing])
IL_2133: stfld System.Predicate`1<Verse.Thing>
RimWorld.<>c__DisplayClass10_0::<>9__21
IL_2138: ldloc.s 66 (System.Predicate`1[Verse.Thing])
IL_213A: Label195
IL_213A: ldnull
IL_213B: call static Verse.Thing
Verse.GenClosest::ClosestThing_Global_Reachable(Verse.IntVec3 center, Verse.Map
map, System.Collections.Generic.IEnumerable`1<Verse.Thing> searchSet,
Verse.AI.PathEndMode peMode, Verse.TraverseParms traverseParams, System.Single
maxDistance, System.Predicate`1<Verse.Thing> validator, System.Func`2<Verse.Thing,
System.Single> priorityGetter)
IL_2140: stloc.s 65 (Verse.Thing)
IL_2142: ldloc.s 65 (Verse.Thing)
IL_2144: brtrue => Label196
IL_2149: ldarg.2
IL_214A: ldstr "InstallInReliquary"
IL_214F: call static Verse.TaggedString
Verse.Translator::Translate(System.String key)
IL_2154: ldstr " ("
IL_2159: call static Verse.TaggedString
Verse.TaggedString::op_Addition(Verse.TaggedString t1, System.String t2)
IL_215E: ldstr "NoEmptyReliquary"
IL_2163: call static Verse.TaggedString
Verse.Translator::Translate(System.String key)
IL_2168: call static Verse.TaggedString
Verse.TaggedString::op_Addition(Verse.TaggedString t1, Verse.TaggedString t2)
IL_216D: ldstr ")"
IL_2172: call static Verse.TaggedString
Verse.TaggedString::op_Addition(Verse.TaggedString t1, System.String t2)
IL_2177: call static System.String
Verse.TaggedString::op_Implicit(Verse.TaggedString taggedString)
IL_217C: ldnull
IL_217D: ldc.i4.4
IL_217E: ldnull
IL_217F: ldnull
IL_2180: ldc.r4 0
IL_2185: ldnull
IL_2186: ldnull
IL_2187: ldc.i4.1
IL_2188: ldc.i4.0
IL_2189: newobj System.Void Verse.FloatMenuOption::.ctor(System.String
label, System.Action action, Verse.MenuOptionPriority priority,
System.Action`1<UnityEngine.Rect> mouseoverGuiAction, Verse.Thing
revalidateClickTarget, System.Single extraPartWidth,
System.Func`2<UnityEngine.Rect, System.Boolean> extraPartOnGUI,
RimWorld.Planet.WorldObject revalidateWorldClickTarget, System.Boolean
playSelectionSound, System.Int32 orderInPriority)
IL_218E: callvirt virtual System.Void
System.Collections.Generic.List`1<Verse.FloatMenuOption>::Add(Verse.FloatMenuOption
item)
IL_2193: br => Label197
IL_2198: Label196
IL_2198: newobj System.Void RimWorld.<>c__DisplayClass10_18::.ctor()
IL_219D: stloc.s 67 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_18)
IL_219F: ldloc.s 67 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_18)
IL_21A1: ldloc.0
IL_21A2: stfld RimWorld.<>c__DisplayClass10_0
RimWorld.<>c__DisplayClass10_18::CS$<>8__locals18
IL_21A7: ldloc.s 67 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_18)
IL_21A9: ldsfld Verse.JobDef RimWorld.JobDefOf::InstallRelic
IL_21AE: ldloc.s 63 (Verse.Thing)
IL_21B0: call static Verse.LocalTargetInfo
Verse.LocalTargetInfo::op_Implicit(Verse.Thing t)
IL_21B5: ldloc.s 65 (Verse.Thing)
IL_21B7: call static Verse.LocalTargetInfo
Verse.LocalTargetInfo::op_Implicit(Verse.Thing t)
IL_21BC: ldloc.s 65 (Verse.Thing)
IL_21BE: callvirt virtual Verse.IntVec3 Verse.Thing::get_InteractionCell()
IL_21C3: call static Verse.LocalTargetInfo
Verse.LocalTargetInfo::op_Implicit(Verse.IntVec3 c)
IL_21C8: call static Verse.AI.Job Verse.JobMaker::MakeJob(Verse.JobDef
def, Verse.LocalTargetInfo targetA, Verse.LocalTargetInfo targetB,
Verse.LocalTargetInfo targetC)
IL_21CD: stfld Verse.AI.Job RimWorld.<>c__DisplayClass10_18::job
IL_21D2: ldloc.s 67 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_18)
IL_21D4: ldfld Verse.AI.Job RimWorld.<>c__DisplayClass10_18::job
IL_21D9: ldc.i4.1
IL_21DA: stfld System.Int32 Verse.AI.Job::count
IL_21DF: ldarg.2
IL_21E0: ldstr "InstallInReliquary"
IL_21E5: call static Verse.TaggedString
Verse.Translator::Translate(System.String key)
IL_21EA: call static System.String
Verse.TaggedString::op_Implicit(Verse.TaggedString taggedString)
IL_21EF: ldloc.s 67 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_18)
IL_21F1: ldftn System.Void
RimWorld.<>c__DisplayClass10_18::<AddHumanlikeOrders>b__22()
IL_21F7: newobj System.Void System.Action::.ctor(System.Object object,
System.IntPtr method)
IL_21FC: ldc.i4.4
IL_21FD: ldnull
IL_21FE: ldnull
IL_21FF: ldc.r4 0
IL_2204: ldnull
IL_2205: ldnull
IL_2206: ldc.i4.1
IL_2207: ldc.i4.0
IL_2208: newobj System.Void Verse.FloatMenuOption::.ctor(System.String
label, System.Action action, Verse.MenuOptionPriority priority,
System.Action`1<UnityEngine.Rect> mouseoverGuiAction, Verse.Thing
revalidateClickTarget, System.Single extraPartWidth,
System.Func`2<UnityEngine.Rect, System.Boolean> extraPartOnGUI,
RimWorld.Planet.WorldObject revalidateWorldClickTarget, System.Boolean
playSelectionSound, System.Int32 orderInPriority)
IL_220D: ldloc.s 67 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_18)
IL_220F: ldfld RimWorld.<>c__DisplayClass10_0
RimWorld.<>c__DisplayClass10_18::CS$<>8__locals18
IL_2214: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_2219: ldloc.s 63 (Verse.Thing)
IL_221B: newobj System.Void Verse.LocalTargetInfo::.ctor(Verse.Thing
thing)
IL_2220: ldstr "ReservedBy"
IL_2225: ldnull
IL_2226: call static Verse.FloatMenuOption
RimWorld.FloatMenuUtility::DecoratePrioritizedTask(Verse.FloatMenuOption option,
Verse.Pawn pawn, Verse.LocalTargetInfo target, System.String reservedText,
Verse.ReservationLayerDef layer)
IL_222B: callvirt virtual System.Void
System.Collections.Generic.List`1<Verse.FloatMenuOption>::Add(Verse.FloatMenuOption
item)
IL_2230: Label192
IL_2230: Label193
IL_2230: Label197
IL_2230: ldloca.s 2
(System.Collections.Generic.List`1+Enumerator[Verse.Thing])
IL_2232: call virtual System.Boolean
System.Collections.Generic.Enumerator<Verse.Thing>::MoveNext()
IL_2237: brtrue => Label198
IL_223C: leave => Label199
IL_2241: leave => (autogenerated)
} // end try
.finally
{
IL_2246: ldloca.s 2
(System.Collections.Generic.List`1+Enumerator[Verse.Thing])
IL_2248: constrained.
System.Collections.Generic.List`1+Enumerator[Verse.Thing]
IL_224E: callvirt abstract virtual System.Void
System.IDisposable::Dispose()
IL_2253: endfinally
IL_2254: leave => (autogenerated)
} // end handler
IL_2255: Label173
IL_2255: Label199
IL_2255: call static System.Boolean Verse.ModsConfig::get_BiotechActive()
IL_225A: brfalse => Label200
IL_225F: ldloc.0
IL_2260: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_2265: call static System.Boolean
MechanitorUtility::IsMechanitor(Verse.Pawn pawn)
IL_226A: brfalse => Label201
IL_226F: ldloc.s 22 (System.Collections.Generic.List`1[Verse.Thing])
IL_2271: callvirt System.Collections.Generic.Enumerator<Verse.Thing>
System.Collections.Generic.List`1<Verse.Thing>::GetEnumerator()
IL_2276: stloc.2
.try
{
IL_2277: br => Label202
IL_227C: Label217
IL_227C: newobj System.Void RimWorld.<>c__DisplayClass10_19::.ctor()
IL_2281: stloc.s 68 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_19)
IL_2283: ldloc.s 68 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_19)
IL_2285: ldloc.0
IL_2286: stfld RimWorld.<>c__DisplayClass10_0
RimWorld.<>c__DisplayClass10_19::CS$<>8__locals19
IL_228B: ldloc.s 68 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_19)
IL_228D: ldloca.s 2
(System.Collections.Generic.List`1+Enumerator[Verse.Thing])
IL_228F: call virtual Verse.Thing
System.Collections.Generic.Enumerator<Verse.Thing>::get_Current()
IL_2294: stfld Verse.Thing RimWorld.<>c__DisplayClass10_19::thing
IL_2299: newobj System.Void RimWorld.<>c__DisplayClass10_20::.ctor()
IL_229E: stloc.s 69 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_20)
IL_22A0: ldloc.s 69 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_20)
IL_22A2: ldloc.s 68 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_19)
IL_22A4: stfld RimWorld.<>c__DisplayClass10_19
RimWorld.<>c__DisplayClass10_20::CS$<>8__locals20
IL_22A9: ldloc.s 69 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_20)
IL_22AB: ldloc.s 69 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_20)
IL_22AD: ldfld RimWorld.<>c__DisplayClass10_19
RimWorld.<>c__DisplayClass10_20::CS$<>8__locals20
IL_22B2: ldfld Verse.Thing RimWorld.<>c__DisplayClass10_19::thing
IL_22B7: isinst Verse.Pawn
IL_22BC: dup
IL_22BD: stloc.s 70 (Verse.Pawn)
IL_22BF: stfld Verse.Pawn RimWorld.<>c__DisplayClass10_20::mech
IL_22C4: ldloc.s 70 (Verse.Pawn)
IL_22C6: brfalse => Label203
IL_22CB: ldloc.s 69 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_20)
IL_22CD: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_20::mech
IL_22D2: callvirt System.Boolean Verse.Pawn::get_IsColonyMech()
IL_22D7: brfalse => Label204
IL_22DC: ldloc.s 69 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_20)
IL_22DE: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_20::mech
IL_22E3: call static Verse.Pawn
MechanitorUtility::GetOverseer(Verse.Pawn pawn)
IL_22E8: ldloc.s 69 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_20)
IL_22EA: ldfld RimWorld.<>c__DisplayClass10_19
RimWorld.<>c__DisplayClass10_20::CS$<>8__locals20
IL_22EF: ldfld RimWorld.<>c__DisplayClass10_0
RimWorld.<>c__DisplayClass10_19::CS$<>8__locals19
IL_22F4: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_22F9: beq => Label205
IL_22FE: ldloc.s 69 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_20)
IL_2300: ldfld RimWorld.<>c__DisplayClass10_19
RimWorld.<>c__DisplayClass10_20::CS$<>8__locals20
IL_2305: ldfld RimWorld.<>c__DisplayClass10_0
RimWorld.<>c__DisplayClass10_19::CS$<>8__locals19
IL_230A: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_230F: ldloc.s 69 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_20)
IL_2311: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_20::mech
IL_2316: call static Verse.LocalTargetInfo
Verse.LocalTargetInfo::op_Implicit(Verse.Thing t)
IL_231B: ldc.i4.2
IL_231C: ldc.i4.3
IL_231D: ldc.i4.0
IL_231E: ldc.i4.0
IL_231F: ldc.i4.0
IL_2320: call static System.Boolean
Verse.ReachabilityUtility::CanReach(Verse.Pawn pawn, Verse.LocalTargetInfo dest,
Verse.AI.PathEndMode peMode, Verse.Danger maxDanger, System.Boolean canBashDoors,
System.Boolean canBashFences, Verse.TraverseMode mode)
IL_2325: brtrue => Label206
IL_232A: ldarg.2
IL_232B: ldstr "CannotControlMech"
IL_2330: ldloc.s 69 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_20)
IL_2332: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_20::mech
IL_2337: callvirt virtual System.String Verse.Entity::get_LabelShort()
IL_233C: call static Verse.NamedArgument
Verse.NamedArgument::op_Implicit(System.String value)
IL_2341: call static Verse.TaggedString
Verse.TranslatorFormattedStringExtensions::Translate(System.String key,
Verse.NamedArgument arg1)
IL_2346: ldstr ": "
IL_234B: call static Verse.TaggedString
Verse.TaggedString::op_Addition(Verse.TaggedString t1, System.String t2)
IL_2350: ldstr "NoPath"
IL_2355: call static Verse.TaggedString
Verse.Translator::Translate(System.String key)
IL_235A: stloc.s 11 (Verse.TaggedString)
IL_235C: ldloca.s 11 (Verse.TaggedString)
IL_235E: call Verse.TaggedString Verse.TaggedString::CapitalizeFirst()
IL_2363: call static Verse.TaggedString
Verse.TaggedString::op_Addition(Verse.TaggedString t1, Verse.TaggedString t2)
IL_2368: call static System.String
Verse.TaggedString::op_Implicit(Verse.TaggedString taggedString)
IL_236D: ldnull
IL_236E: ldc.i4.4
IL_236F: ldnull
IL_2370: ldnull
IL_2371: ldc.r4 0
IL_2376: ldnull
IL_2377: ldnull
IL_2378: ldc.i4.1
IL_2379: ldc.i4.0
IL_237A: newobj System.Void Verse.FloatMenuOption::.ctor(System.String
label, System.Action action, Verse.MenuOptionPriority priority,
System.Action`1<UnityEngine.Rect> mouseoverGuiAction, Verse.Thing
revalidateClickTarget, System.Single extraPartWidth,
System.Func`2<UnityEngine.Rect, System.Boolean> extraPartOnGUI,
RimWorld.Planet.WorldObject revalidateWorldClickTarget, System.Boolean
playSelectionSound, System.Int32 orderInPriority)
IL_237F: callvirt virtual System.Void
System.Collections.Generic.List`1<Verse.FloatMenuOption>::Add(Verse.FloatMenuOption
item)
IL_2384: br => Label207
IL_2389: Label206
IL_2389: ldloc.s 69 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_20)
IL_238B: ldfld RimWorld.<>c__DisplayClass10_19
RimWorld.<>c__DisplayClass10_20::CS$<>8__locals20
IL_2390: ldfld RimWorld.<>c__DisplayClass10_0
RimWorld.<>c__DisplayClass10_19::CS$<>8__locals19
IL_2395: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_239A: ldloc.s 69 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_20)
IL_239C: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_20::mech
IL_23A1: call static Verse.AcceptanceReport
MechanitorUtility::CanControlMech(Verse.Pawn pawn, Verse.Pawn mech)
IL_23A6: call static System.Boolean
Verse.AcceptanceReport::op_Implicit(Verse.AcceptanceReport report)
IL_23AB: brtrue => Label208
IL_23B0: ldloc.s 69 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_20)
IL_23B2: ldfld RimWorld.<>c__DisplayClass10_19
RimWorld.<>c__DisplayClass10_20::CS$<>8__locals20
IL_23B7: ldfld RimWorld.<>c__DisplayClass10_0
RimWorld.<>c__DisplayClass10_19::CS$<>8__locals19
IL_23BC: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_23C1: ldloc.s 69 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_20)
IL_23C3: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_20::mech
IL_23C8: call static Verse.AcceptanceReport
MechanitorUtility::CanControlMech(Verse.Pawn pawn, Verse.Pawn mech)
IL_23CD: stloc.s 71 (Verse.AcceptanceReport)
IL_23CF: ldloca.s 71 (Verse.AcceptanceReport)
IL_23D1: call System.String Verse.AcceptanceReport::get_Reason()
IL_23D6: call static System.Boolean
Verse.GenText::NullOrEmpty(System.String str)
IL_23DB: brtrue => Label209
IL_23E0: ldarg.2
IL_23E1: ldstr "CannotControlMech"
IL_23E6: ldloc.s 69 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_20)
IL_23E8: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_20::mech
IL_23ED: callvirt virtual System.String Verse.Entity::get_LabelShort()
IL_23F2: call static Verse.NamedArgument
Verse.NamedArgument::op_Implicit(System.String value)
IL_23F7: call static Verse.TaggedString
Verse.TranslatorFormattedStringExtensions::Translate(System.String key,
Verse.NamedArgument arg1)
IL_23FC: ldstr ": "
IL_2401: call static Verse.TaggedString
Verse.TaggedString::op_Addition(Verse.TaggedString t1, System.String t2)
IL_2406: ldloca.s 71 (Verse.AcceptanceReport)
IL_2408: call System.String Verse.AcceptanceReport::get_Reason()
IL_240D: call static Verse.TaggedString
Verse.TaggedString::op_Addition(Verse.TaggedString t1, System.String t2)
IL_2412: call static System.String
Verse.TaggedString::op_Implicit(Verse.TaggedString taggedString)
IL_2417: ldnull
IL_2418: ldc.i4.4
IL_2419: ldnull
IL_241A: ldnull
IL_241B: ldc.r4 0
IL_2420: ldnull
IL_2421: ldnull
IL_2422: ldc.i4.1
IL_2423: ldc.i4.0
IL_2424: newobj System.Void Verse.FloatMenuOption::.ctor(System.String
label, System.Action action, Verse.MenuOptionPriority priority,
System.Action`1<UnityEngine.Rect> mouseoverGuiAction, Verse.Thing
revalidateClickTarget, System.Single extraPartWidth,
System.Func`2<UnityEngine.Rect, System.Boolean> extraPartOnGUI,
RimWorld.Planet.WorldObject revalidateWorldClickTarget, System.Boolean
playSelectionSound, System.Int32 orderInPriority)
IL_2429: callvirt virtual System.Void
System.Collections.Generic.List`1<Verse.FloatMenuOption>::Add(Verse.FloatMenuOption
item)
IL_242E: br => Label210
IL_2433: Label208
IL_2433: ldarg.2
IL_2434: ldstr "ControlMech"
IL_2439: ldloc.s 69 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_20)
IL_243B: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_20::mech
IL_2440: callvirt virtual System.String Verse.Entity::get_LabelShort()
IL_2445: call static Verse.NamedArgument
Verse.NamedArgument::op_Implicit(System.String value)
IL_244A: call static Verse.TaggedString
Verse.TranslatorFormattedStringExtensions::Translate(System.String key,
Verse.NamedArgument arg1)
IL_244F: call static System.String
Verse.TaggedString::op_Implicit(Verse.TaggedString taggedString)
IL_2454: ldloc.s 69 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_20)
IL_2456: ldfld RimWorld.<>c__DisplayClass10_19
RimWorld.<>c__DisplayClass10_20::CS$<>8__locals20
IL_245B: ldftn System.Void
RimWorld.<>c__DisplayClass10_19::<AddHumanlikeOrders>b__23()
IL_2461: newobj System.Void System.Action::.ctor(System.Object object,
System.IntPtr method)
IL_2466: ldc.i4.4
IL_2467: ldnull
IL_2468: ldnull
IL_2469: ldc.r4 0
IL_246E: ldnull
IL_246F: ldnull
IL_2470: ldc.i4.1
IL_2471: ldc.i4.0
IL_2472: newobj System.Void Verse.FloatMenuOption::.ctor(System.String
label, System.Action action, Verse.MenuOptionPriority priority,
System.Action`1<UnityEngine.Rect> mouseoverGuiAction, Verse.Thing
revalidateClickTarget, System.Single extraPartWidth,
System.Func`2<UnityEngine.Rect, System.Boolean> extraPartOnGUI,
RimWorld.Planet.WorldObject revalidateWorldClickTarget, System.Boolean
playSelectionSound, System.Int32 orderInPriority)
IL_2477: ldloc.s 69 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_20)
IL_2479: ldfld RimWorld.<>c__DisplayClass10_19
RimWorld.<>c__DisplayClass10_20::CS$<>8__locals20
IL_247E: ldfld RimWorld.<>c__DisplayClass10_0
RimWorld.<>c__DisplayClass10_19::CS$<>8__locals19
IL_2483: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_2488: ldloc.s 69 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_20)
IL_248A: ldfld RimWorld.<>c__DisplayClass10_19
RimWorld.<>c__DisplayClass10_20::CS$<>8__locals20
IL_248F: ldfld Verse.Thing RimWorld.<>c__DisplayClass10_19::thing
IL_2494: newobj System.Void Verse.LocalTargetInfo::.ctor(Verse.Thing
thing)
IL_2499: ldstr "ReservedBy"
IL_249E: ldnull
IL_249F: call static Verse.FloatMenuOption
RimWorld.FloatMenuUtility::DecoratePrioritizedTask(Verse.FloatMenuOption option,
Verse.Pawn pawn, Verse.LocalTargetInfo target, System.String reservedText,
Verse.ReservationLayerDef layer)
IL_24A4: callvirt virtual System.Void
System.Collections.Generic.List`1<Verse.FloatMenuOption>::Add(Verse.FloatMenuOption
item)
IL_24A9: Label207
IL_24A9: Label209
IL_24A9: Label210
IL_24A9: ldarg.2
IL_24AA: ldstr "CannotDisassembleMech"
IL_24AF: ldloc.s 69 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_20)
IL_24B1: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_20::mech
IL_24B6: callvirt abstract virtual System.String
Verse.Entity::get_LabelCap()
IL_24BB: call static Verse.NamedArgument
Verse.NamedArgument::op_Implicit(System.String value)
IL_24C0: call static Verse.TaggedString
Verse.TranslatorFormattedStringExtensions::Translate(System.String key,
Verse.NamedArgument arg1)
IL_24C5: ldstr ": "
IL_24CA: call static Verse.TaggedString
Verse.TaggedString::op_Addition(Verse.TaggedString t1, System.String t2)
IL_24CF: ldstr "MustBeOverseer"
IL_24D4: call static Verse.TaggedString
Verse.Translator::Translate(System.String key)
IL_24D9: stloc.s 11 (Verse.TaggedString)
IL_24DB: ldloca.s 11 (Verse.TaggedString)
IL_24DD: call Verse.TaggedString Verse.TaggedString::CapitalizeFirst()
IL_24E2: call static Verse.TaggedString
Verse.TaggedString::op_Addition(Verse.TaggedString t1, Verse.TaggedString t2)
IL_24E7: call static System.String
Verse.TaggedString::op_Implicit(Verse.TaggedString taggedString)
IL_24EC: ldnull
IL_24ED: ldc.i4.4
IL_24EE: ldnull
IL_24EF: ldnull
IL_24F0: ldc.r4 0
IL_24F5: ldnull
IL_24F6: ldnull
IL_24F7: ldc.i4.1
IL_24F8: ldc.i4.0
IL_24F9: newobj System.Void Verse.FloatMenuOption::.ctor(System.String
label, System.Action action, Verse.MenuOptionPriority priority,
System.Action`1<UnityEngine.Rect> mouseoverGuiAction, Verse.Thing
revalidateClickTarget, System.Single extraPartWidth,
System.Func`2<UnityEngine.Rect, System.Boolean> extraPartOnGUI,
RimWorld.Planet.WorldObject revalidateWorldClickTarget, System.Boolean
playSelectionSound, System.Int32 orderInPriority)
IL_24FE: callvirt virtual System.Void
System.Collections.Generic.List`1<Verse.FloatMenuOption>::Add(Verse.FloatMenuOption
item)
IL_2503: br => Label211
IL_2508: Label205
IL_2508: ldarg.2
IL_2509: ldstr "DisconnectMech"
IL_250E: ldloc.s 69 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_20)
IL_2510: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_20::mech
IL_2515: callvirt virtual System.String Verse.Entity::get_LabelShort()
IL_251A: call static Verse.NamedArgument
Verse.NamedArgument::op_Implicit(System.String value)
IL_251F: call static Verse.TaggedString
Verse.TranslatorFormattedStringExtensions::Translate(System.String key,
Verse.NamedArgument arg1)
IL_2524: call static System.String
Verse.TaggedString::op_Implicit(Verse.TaggedString taggedString)
IL_2529: ldloc.s 69 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_20)
IL_252B: ldftn System.Void
RimWorld.<>c__DisplayClass10_20::<AddHumanlikeOrders>b__24()
IL_2531: newobj System.Void System.Action::.ctor(System.Object object,
System.IntPtr method)
IL_2536: ldc.i4.2
IL_2537: ldnull
IL_2538: ldnull
IL_2539: ldc.r4 0
IL_253E: ldnull
IL_253F: ldnull
IL_2540: ldc.i4.1
IL_2541: ldc.i4.s -10
IL_2543: newobj System.Void Verse.FloatMenuOption::.ctor(System.String
label, System.Action action, Verse.MenuOptionPriority priority,
System.Action`1<UnityEngine.Rect> mouseoverGuiAction, Verse.Thing
revalidateClickTarget, System.Single extraPartWidth,
System.Func`2<UnityEngine.Rect, System.Boolean> extraPartOnGUI,
RimWorld.Planet.WorldObject revalidateWorldClickTarget, System.Boolean
playSelectionSound, System.Int32 orderInPriority)
IL_2548: ldloc.s 69 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_20)
IL_254A: ldfld RimWorld.<>c__DisplayClass10_19
RimWorld.<>c__DisplayClass10_20::CS$<>8__locals20
IL_254F: ldfld RimWorld.<>c__DisplayClass10_0
RimWorld.<>c__DisplayClass10_19::CS$<>8__locals19
IL_2554: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_2559: ldloc.s 69 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_20)
IL_255B: ldfld RimWorld.<>c__DisplayClass10_19
RimWorld.<>c__DisplayClass10_20::CS$<>8__locals20
IL_2560: ldfld Verse.Thing RimWorld.<>c__DisplayClass10_19::thing
IL_2565: newobj System.Void Verse.LocalTargetInfo::.ctor(Verse.Thing
thing)
IL_256A: ldstr "ReservedBy"
IL_256F: ldnull
IL_2570: call static Verse.FloatMenuOption
RimWorld.FloatMenuUtility::DecoratePrioritizedTask(Verse.FloatMenuOption option,
Verse.Pawn pawn, Verse.LocalTargetInfo target, System.String reservedText,
Verse.ReservationLayerDef layer)
IL_2575: callvirt virtual System.Void
System.Collections.Generic.List`1<Verse.FloatMenuOption>::Add(Verse.FloatMenuOption
item)
IL_257A: ldloc.s 69 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_20)
IL_257C: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_20::mech
IL_2581: call static System.Boolean
RimWorld.PawnUtility::IsFighting(Verse.Pawn pawn)
IL_2586: brtrue => Label212
IL_258B: ldarg.2
IL_258C: ldstr "DisassembleMech"
IL_2591: ldloc.s 69 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_20)
IL_2593: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_20::mech
IL_2598: callvirt abstract virtual System.String
Verse.Entity::get_LabelCap()
IL_259D: call static Verse.NamedArgument
Verse.NamedArgument::op_Implicit(System.String value)
IL_25A2: call static Verse.TaggedString
Verse.TranslatorFormattedStringExtensions::Translate(System.String key,
Verse.NamedArgument arg1)
IL_25A7: call static System.String
Verse.TaggedString::op_Implicit(Verse.TaggedString taggedString)
IL_25AC: ldloc.s 69 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_20)
IL_25AE: ldftn System.Void
RimWorld.<>c__DisplayClass10_20::<AddHumanlikeOrders>b__25()
IL_25B4: newobj System.Void System.Action::.ctor(System.Object object,
System.IntPtr method)
IL_25B9: ldc.i4.2
IL_25BA: ldnull
IL_25BB: ldnull
IL_25BC: ldc.r4 0
IL_25C1: ldnull
IL_25C2: ldnull
IL_25C3: ldc.i4.1
IL_25C4: ldc.i4.s -20
IL_25C6: newobj System.Void Verse.FloatMenuOption::.ctor(System.String
label, System.Action action, Verse.MenuOptionPriority priority,
System.Action`1<UnityEngine.Rect> mouseoverGuiAction, Verse.Thing
revalidateClickTarget, System.Single extraPartWidth,
System.Func`2<UnityEngine.Rect, System.Boolean> extraPartOnGUI,
RimWorld.Planet.WorldObject revalidateWorldClickTarget, System.Boolean
playSelectionSound, System.Int32 orderInPriority)
IL_25CB: ldloc.s 69 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_20)
IL_25CD: ldfld RimWorld.<>c__DisplayClass10_19
RimWorld.<>c__DisplayClass10_20::CS$<>8__locals20
IL_25D2: ldfld RimWorld.<>c__DisplayClass10_0
RimWorld.<>c__DisplayClass10_19::CS$<>8__locals19
IL_25D7: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_25DC: ldloc.s 69 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_20)
IL_25DE: ldfld RimWorld.<>c__DisplayClass10_19
RimWorld.<>c__DisplayClass10_20::CS$<>8__locals20
IL_25E3: ldfld Verse.Thing RimWorld.<>c__DisplayClass10_19::thing
IL_25E8: newobj System.Void Verse.LocalTargetInfo::.ctor(Verse.Thing
thing)
IL_25ED: ldstr "ReservedBy"
IL_25F2: ldnull
IL_25F3: call static Verse.FloatMenuOption
RimWorld.FloatMenuUtility::DecoratePrioritizedTask(Verse.FloatMenuOption option,
Verse.Pawn pawn, Verse.LocalTargetInfo target, System.String reservedText,
Verse.ReservationLayerDef layer)
IL_25F8: callvirt virtual System.Void
System.Collections.Generic.List`1<Verse.FloatMenuOption>::Add(Verse.FloatMenuOption
item)
IL_25FD: Label211
IL_25FD: Label212
IL_25FD: ldloc.s 69 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_20)
IL_25FF: ldfld RimWorld.<>c__DisplayClass10_19
RimWorld.<>c__DisplayClass10_20::CS$<>8__locals20
IL_2604: ldfld RimWorld.<>c__DisplayClass10_0
RimWorld.<>c__DisplayClass10_19::CS$<>8__locals19
IL_2609: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_260E: callvirt System.Boolean Verse.Pawn::get_Drafted()
IL_2613: brfalse => Label213
IL_2618: ldloc.s 69 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_20)
IL_261A: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_20::mech
IL_261F: call static System.Boolean
RimWorld.MechRepairUtility::CanRepair(Verse.Pawn mech)
IL_2624: brfalse => Label214
IL_2629: ldloc.s 69 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_20)
IL_262B: ldfld RimWorld.<>c__DisplayClass10_19
RimWorld.<>c__DisplayClass10_20::CS$<>8__locals20
IL_2630: ldfld RimWorld.<>c__DisplayClass10_0
RimWorld.<>c__DisplayClass10_19::CS$<>8__locals19
IL_2635: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_263A: ldloc.s 69 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_20)
IL_263C: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_20::mech
IL_2641: call static Verse.LocalTargetInfo
Verse.LocalTargetInfo::op_Implicit(Verse.Thing t)
IL_2646: ldc.i4.2
IL_2647: ldc.i4.3
IL_2648: ldc.i4.0
IL_2649: ldc.i4.0
IL_264A: ldc.i4.0
IL_264B: call static System.Boolean
Verse.ReachabilityUtility::CanReach(Verse.Pawn pawn, Verse.LocalTargetInfo dest,
Verse.AI.PathEndMode peMode, Verse.Danger maxDanger, System.Boolean canBashDoors,
System.Boolean canBashFences, Verse.TraverseMode mode)
IL_2650: brtrue => Label215
IL_2655: ldarg.2
IL_2656: ldstr "CannotRepairMech"
IL_265B: ldloc.s 69 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_20)
IL_265D: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_20::mech
IL_2662: callvirt virtual System.String Verse.Entity::get_LabelShort()
IL_2667: call static Verse.NamedArgument
Verse.NamedArgument::op_Implicit(System.String value)
IL_266C: call static Verse.TaggedString
Verse.TranslatorFormattedStringExtensions::Translate(System.String key,
Verse.NamedArgument arg1)
IL_2671: ldstr ": "
IL_2676: call static Verse.TaggedString
Verse.TaggedString::op_Addition(Verse.TaggedString t1, System.String t2)
IL_267B: ldstr "NoPath"
IL_2680: call static Verse.TaggedString
Verse.Translator::Translate(System.String key)
IL_2685: stloc.s 11 (Verse.TaggedString)
IL_2687: ldloca.s 11 (Verse.TaggedString)
IL_2689: call Verse.TaggedString Verse.TaggedString::CapitalizeFirst()
IL_268E: call static Verse.TaggedString
Verse.TaggedString::op_Addition(Verse.TaggedString t1, Verse.TaggedString t2)
IL_2693: call static System.String
Verse.TaggedString::op_Implicit(Verse.TaggedString taggedString)
IL_2698: ldnull
IL_2699: ldc.i4.4
IL_269A: ldnull
IL_269B: ldnull
IL_269C: ldc.r4 0
IL_26A1: ldnull
IL_26A2: ldnull
IL_26A3: ldc.i4.1
IL_26A4: ldc.i4.0
IL_26A5: newobj System.Void Verse.FloatMenuOption::.ctor(System.String
label, System.Action action, Verse.MenuOptionPriority priority,
System.Action`1<UnityEngine.Rect> mouseoverGuiAction, Verse.Thing
revalidateClickTarget, System.Single extraPartWidth,
System.Func`2<UnityEngine.Rect, System.Boolean> extraPartOnGUI,
RimWorld.Planet.WorldObject revalidateWorldClickTarget, System.Boolean
playSelectionSound, System.Int32 orderInPriority)
IL_26AA: callvirt virtual System.Void
System.Collections.Generic.List`1<Verse.FloatMenuOption>::Add(Verse.FloatMenuOption
item)
IL_26AF: br => Label216
IL_26B4: Label215
IL_26B4: ldarg.2
IL_26B5: ldstr "RepairThing"
IL_26BA: ldloc.s 69 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_20)
IL_26BC: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_20::mech
IL_26C1: callvirt virtual System.String Verse.Entity::get_LabelShort()
IL_26C6: call static Verse.NamedArgument
Verse.NamedArgument::op_Implicit(System.String value)
IL_26CB: call static Verse.TaggedString
Verse.TranslatorFormattedStringExtensions::Translate(System.String key,
Verse.NamedArgument arg1)
IL_26D0: call static System.String
Verse.TaggedString::op_Implicit(Verse.TaggedString taggedString)
IL_26D5: ldloc.s 69 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_20)
IL_26D7: ldftn System.Void
RimWorld.<>c__DisplayClass10_20::<AddHumanlikeOrders>b__26()
IL_26DD: newobj System.Void System.Action::.ctor(System.Object object,
System.IntPtr method)
IL_26E2: ldc.i4.4
IL_26E3: ldnull
IL_26E4: ldnull
IL_26E5: ldc.r4 0
IL_26EA: ldnull
IL_26EB: ldnull
IL_26EC: ldc.i4.1
IL_26ED: ldc.i4.0
IL_26EE: newobj System.Void Verse.FloatMenuOption::.ctor(System.String
label, System.Action action, Verse.MenuOptionPriority priority,
System.Action`1<UnityEngine.Rect> mouseoverGuiAction, Verse.Thing
revalidateClickTarget, System.Single extraPartWidth,
System.Func`2<UnityEngine.Rect, System.Boolean> extraPartOnGUI,
RimWorld.Planet.WorldObject revalidateWorldClickTarget, System.Boolean
playSelectionSound, System.Int32 orderInPriority)
IL_26F3: ldloc.s 69 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_20)
IL_26F5: ldfld RimWorld.<>c__DisplayClass10_19
RimWorld.<>c__DisplayClass10_20::CS$<>8__locals20
IL_26FA: ldfld RimWorld.<>c__DisplayClass10_0
RimWorld.<>c__DisplayClass10_19::CS$<>8__locals19
IL_26FF: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_2704: ldloc.s 69 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_20)
IL_2706: ldfld RimWorld.<>c__DisplayClass10_19
RimWorld.<>c__DisplayClass10_20::CS$<>8__locals20
IL_270B: ldfld Verse.Thing RimWorld.<>c__DisplayClass10_19::thing
IL_2710: newobj System.Void Verse.LocalTargetInfo::.ctor(Verse.Thing
thing)
IL_2715: ldstr "ReservedBy"
IL_271A: ldnull
IL_271B: call static Verse.FloatMenuOption
RimWorld.FloatMenuUtility::DecoratePrioritizedTask(Verse.FloatMenuOption option,
Verse.Pawn pawn, Verse.LocalTargetInfo target, System.String reservedText,
Verse.ReservationLayerDef layer)
IL_2720: callvirt virtual System.Void
System.Collections.Generic.List`1<Verse.FloatMenuOption>::Add(Verse.FloatMenuOption
item)
IL_2725: Label202
IL_2725: Label203
IL_2725: Label204
IL_2725: Label213
IL_2725: Label214
IL_2725: Label216
IL_2725: ldloca.s 2
(System.Collections.Generic.List`1+Enumerator[Verse.Thing])
IL_2727: call virtual System.Boolean
System.Collections.Generic.Enumerator<Verse.Thing>::MoveNext()
IL_272C: brtrue => Label217
IL_2731: leave => Label218
IL_2736: leave => (autogenerated)
} // end try
.finally
{
IL_273B: ldloca.s 2
(System.Collections.Generic.List`1+Enumerator[Verse.Thing])
IL_273D: constrained.
System.Collections.Generic.List`1+Enumerator[Verse.Thing]
IL_2743: callvirt abstract virtual System.Void
System.IDisposable::Dispose()
IL_2748: endfinally
IL_2749: leave => (autogenerated)
} // end handler
IL_274A: Label200
IL_274A: Label201
IL_274A: Label218
IL_274A: call static System.Boolean Verse.ModsConfig::get_BiotechActive()
IL_274F: brfalse => Label219
IL_2754: ldloc.s 22 (System.Collections.Generic.List`1[Verse.Thing])
IL_2756: callvirt System.Collections.Generic.Enumerator<Verse.Thing>
System.Collections.Generic.List`1<Verse.Thing>::GetEnumerator()
IL_275B: stloc.2
.try
{
IL_275C: br => Label220
IL_2761: Label228
IL_2761: ldloca.s 2
(System.Collections.Generic.List`1+Enumerator[Verse.Thing])
IL_2763: call virtual Verse.Thing
System.Collections.Generic.Enumerator<Verse.Thing>::get_Current()
IL_2768: stloc.s 72 (Verse.Thing)
IL_276A: newobj System.Void RimWorld.<>c__DisplayClass10_21::.ctor()
IL_276F: stloc.s 73 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_21)
IL_2771: ldloc.s 73 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_21)
IL_2773: ldloc.0
IL_2774: stfld RimWorld.<>c__DisplayClass10_0
RimWorld.<>c__DisplayClass10_21::CS$<>8__locals21
IL_2779: ldloc.s 73 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_21)
IL_277B: ldloc.s 72 (Verse.Thing)
IL_277D: isinst Verse.Pawn
IL_2782: dup
IL_2783: stloc.s 70 (Verse.Pawn)
IL_2785: stfld Verse.Pawn RimWorld.<>c__DisplayClass10_21::p
IL_278A: ldloc.s 70 (Verse.Pawn)
IL_278C: brfalse => Label221
IL_2791: ldloc.s 73 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_21)
IL_2793: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_21::p
IL_2798: call static System.Boolean
RimWorld.RestUtility::IsSelfShutdown(Verse.Pawn p)
IL_279D: brfalse => Label222
IL_27A2: newobj System.Void RimWorld.<>c__DisplayClass10_22::.ctor()
IL_27A7: stloc.s 74 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_22)
IL_27A9: ldloc.s 74 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_22)
IL_27AB: ldloc.s 73 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_21)
IL_27AD: stfld RimWorld.<>c__DisplayClass10_21
RimWorld.<>c__DisplayClass10_22::CS$<>8__locals22
IL_27B2: ldloc.s 74 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_22)
IL_27B4: ldloc.s 74 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_22)
IL_27B6: ldfld RimWorld.<>c__DisplayClass10_21
RimWorld.<>c__DisplayClass10_22::CS$<>8__locals22
IL_27BB: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_21::p
IL_27C0: ldloc.s 74 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_22)
IL_27C2: ldfld RimWorld.<>c__DisplayClass10_21
RimWorld.<>c__DisplayClass10_22::CS$<>8__locals22
IL_27C7: ldfld RimWorld.<>c__DisplayClass10_0
RimWorld.<>c__DisplayClass10_21::CS$<>8__locals21
IL_27CC: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_27D1: ldc.i4.0
IL_27D2: call static RimWorld.Building_MechCharger
RimWorld.JobGiver_GetEnergy_Charger::GetClosestCharger(Verse.Pawn mech, Verse.Pawn
carrier, System.Boolean forced)
IL_27D7: stfld RimWorld.Building_MechCharger
RimWorld.<>c__DisplayClass10_22::charger
IL_27DC: ldloc.s 74 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_22)
IL_27DE: ldfld RimWorld.Building_MechCharger
RimWorld.<>c__DisplayClass10_22::charger
IL_27E3: brtrue => Label223
IL_27E8: ldloc.s 74 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_22)
IL_27EA: ldloc.s 74 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_22)
IL_27EC: ldfld RimWorld.<>c__DisplayClass10_21
RimWorld.<>c__DisplayClass10_22::CS$<>8__locals22
IL_27F1: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_21::p
IL_27F6: ldloc.s 74 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_22)
IL_27F8: ldfld RimWorld.<>c__DisplayClass10_21
RimWorld.<>c__DisplayClass10_22::CS$<>8__locals22
IL_27FD: ldfld RimWorld.<>c__DisplayClass10_0
RimWorld.<>c__DisplayClass10_21::CS$<>8__locals21
IL_2802: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_2807: ldc.i4.1
IL_2808: call static RimWorld.Building_MechCharger
RimWorld.JobGiver_GetEnergy_Charger::GetClosestCharger(Verse.Pawn mech, Verse.Pawn
carrier, System.Boolean forced)
IL_280D: stfld RimWorld.Building_MechCharger
RimWorld.<>c__DisplayClass10_22::charger
IL_2812: Label223
IL_2812: ldloc.s 74 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_22)
IL_2814: ldfld RimWorld.Building_MechCharger
RimWorld.<>c__DisplayClass10_22::charger
IL_2819: brtrue => Label224
IL_281E: ldarg.2
IL_281F: ldstr "CannotCarryToRecharger"
IL_2824: ldloc.s 74 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_22)
IL_2826: ldfld RimWorld.<>c__DisplayClass10_21
RimWorld.<>c__DisplayClass10_22::CS$<>8__locals22
IL_282B: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_21::p
IL_2830: ldstr "PAWN"
IL_2835: call static Verse.NamedArgument
Verse.NamedArgumentUtility::Named(System.Object arg, System.String label)
IL_283A: call static Verse.TaggedString
Verse.TranslatorFormattedStringExtensions::Translate(System.String key,
Verse.NamedArgument arg1)
IL_283F: ldstr ": "
IL_2844: call static Verse.TaggedString
Verse.TaggedString::op_Addition(Verse.TaggedString t1, System.String t2)
IL_2849: ldstr "CannotCarryToRechargerNoneAvailable"
IL_284E: call static Verse.TaggedString
Verse.Translator::Translate(System.String key)
IL_2853: call static Verse.TaggedString
Verse.TaggedString::op_Addition(Verse.TaggedString t1, Verse.TaggedString t2)
IL_2858: call static System.String
Verse.TaggedString::op_Implicit(Verse.TaggedString taggedString)
IL_285D: ldnull
IL_285E: ldc.i4.4
IL_285F: ldnull
IL_2860: ldnull
IL_2861: ldc.r4 0
IL_2866: ldnull
IL_2867: ldnull
IL_2868: ldc.i4.1
IL_2869: ldc.i4.0
IL_286A: newobj System.Void Verse.FloatMenuOption::.ctor(System.String
label, System.Action action, Verse.MenuOptionPriority priority,
System.Action`1<UnityEngine.Rect> mouseoverGuiAction, Verse.Thing
revalidateClickTarget, System.Single extraPartWidth,
System.Func`2<UnityEngine.Rect, System.Boolean> extraPartOnGUI,
RimWorld.Planet.WorldObject revalidateWorldClickTarget, System.Boolean
playSelectionSound, System.Int32 orderInPriority)
IL_286F: callvirt virtual System.Void
System.Collections.Generic.List`1<Verse.FloatMenuOption>::Add(Verse.FloatMenuOption
item)
IL_2874: br => Label225
IL_2879: Label224
IL_2879: ldloc.s 74 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_22)
IL_287B: ldfld RimWorld.<>c__DisplayClass10_21
RimWorld.<>c__DisplayClass10_22::CS$<>8__locals22
IL_2880: ldfld RimWorld.<>c__DisplayClass10_0
RimWorld.<>c__DisplayClass10_21::CS$<>8__locals21
IL_2885: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_288A: ldloc.s 74 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_22)
IL_288C: ldfld RimWorld.Building_MechCharger
RimWorld.<>c__DisplayClass10_22::charger
IL_2891: call static Verse.LocalTargetInfo
Verse.LocalTargetInfo::op_Implicit(Verse.Thing t)
IL_2896: ldc.i4.2
IL_2897: ldc.i4.3
IL_2898: ldc.i4.0
IL_2899: ldc.i4.0
IL_289A: ldc.i4.0
IL_289B: call static System.Boolean
Verse.ReachabilityUtility::CanReach(Verse.Pawn pawn, Verse.LocalTargetInfo dest,
Verse.AI.PathEndMode peMode, Verse.Danger maxDanger, System.Boolean canBashDoors,
System.Boolean canBashFences, Verse.TraverseMode mode)
IL_28A0: brtrue => Label226
IL_28A5: ldarg.2
IL_28A6: ldstr "CannotCarryToRecharger"
IL_28AB: ldloc.s 74 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_22)
IL_28AD: ldfld RimWorld.<>c__DisplayClass10_21
RimWorld.<>c__DisplayClass10_22::CS$<>8__locals22
IL_28B2: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_21::p
IL_28B7: ldstr "PAWN"
IL_28BC: call static Verse.NamedArgument
Verse.NamedArgumentUtility::Named(System.Object arg, System.String label)
IL_28C1: call static Verse.TaggedString
Verse.TranslatorFormattedStringExtensions::Translate(System.String key,
Verse.NamedArgument arg1)
IL_28C6: ldstr ": "
IL_28CB: call static Verse.TaggedString
Verse.TaggedString::op_Addition(Verse.TaggedString t1, System.String t2)
IL_28D0: ldstr "NoPath"
IL_28D5: call static Verse.TaggedString
Verse.Translator::Translate(System.String key)
IL_28DA: stloc.s 11 (Verse.TaggedString)
IL_28DC: ldloca.s 11 (Verse.TaggedString)
IL_28DE: call Verse.TaggedString Verse.TaggedString::CapitalizeFirst()
IL_28E3: call static Verse.TaggedString
Verse.TaggedString::op_Addition(Verse.TaggedString t1, Verse.TaggedString t2)
IL_28E8: call static System.String
Verse.TaggedString::op_Implicit(Verse.TaggedString taggedString)
IL_28ED: ldnull
IL_28EE: ldc.i4.4
IL_28EF: ldnull
IL_28F0: ldnull
IL_28F1: ldc.r4 0
IL_28F6: ldnull
IL_28F7: ldnull
IL_28F8: ldc.i4.1
IL_28F9: ldc.i4.0
IL_28FA: newobj System.Void Verse.FloatMenuOption::.ctor(System.String
label, System.Action action, Verse.MenuOptionPriority priority,
System.Action`1<UnityEngine.Rect> mouseoverGuiAction, Verse.Thing
revalidateClickTarget, System.Single extraPartWidth,
System.Func`2<UnityEngine.Rect, System.Boolean> extraPartOnGUI,
RimWorld.Planet.WorldObject revalidateWorldClickTarget, System.Boolean
playSelectionSound, System.Int32 orderInPriority)
IL_28FF: callvirt virtual System.Void
System.Collections.Generic.List`1<Verse.FloatMenuOption>::Add(Verse.FloatMenuOption
item)
IL_2904: br => Label227
IL_2909: Label226
IL_2909: ldarg.2
IL_290A: ldstr "CarryToRechargerOrdered"
IL_290F: ldloc.s 74 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_22)
IL_2911: ldfld RimWorld.<>c__DisplayClass10_21
RimWorld.<>c__DisplayClass10_22::CS$<>8__locals22
IL_2916: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_21::p
IL_291B: ldstr "PAWN"
IL_2920: call static Verse.NamedArgument
Verse.NamedArgumentUtility::Named(System.Object arg, System.String label)
IL_2925: call static Verse.TaggedString
Verse.TranslatorFormattedStringExtensions::Translate(System.String key,
Verse.NamedArgument arg1)
IL_292A: call static System.String
Verse.TaggedString::op_Implicit(Verse.TaggedString taggedString)
IL_292F: ldloc.s 74 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_22)
IL_2931: ldftn System.Void
RimWorld.<>c__DisplayClass10_22::<AddHumanlikeOrders>b__29()
IL_2937: newobj System.Void System.Action::.ctor(System.Object object,
System.IntPtr method)
IL_293C: ldc.i4.4
IL_293D: ldnull
IL_293E: ldnull
IL_293F: ldc.r4 0
IL_2944: ldnull
IL_2945: ldnull
IL_2946: ldc.i4.1
IL_2947: ldc.i4.0
IL_2948: newobj System.Void Verse.FloatMenuOption::.ctor(System.String
label, System.Action action, Verse.MenuOptionPriority priority,
System.Action`1<UnityEngine.Rect> mouseoverGuiAction, Verse.Thing
revalidateClickTarget, System.Single extraPartWidth,
System.Func`2<UnityEngine.Rect, System.Boolean> extraPartOnGUI,
RimWorld.Planet.WorldObject revalidateWorldClickTarget, System.Boolean
playSelectionSound, System.Int32 orderInPriority)
IL_294D: ldloc.s 74 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_22)
IL_294F: ldfld RimWorld.<>c__DisplayClass10_21
RimWorld.<>c__DisplayClass10_22::CS$<>8__locals22
IL_2954: ldfld RimWorld.<>c__DisplayClass10_0
RimWorld.<>c__DisplayClass10_21::CS$<>8__locals21
IL_2959: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_295E: ldloc.s 74 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_22)
IL_2960: ldfld RimWorld.<>c__DisplayClass10_21
RimWorld.<>c__DisplayClass10_22::CS$<>8__locals22
IL_2965: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_21::p
IL_296A: newobj System.Void Verse.LocalTargetInfo::.ctor(Verse.Thing
thing)
IL_296F: ldstr "ReservedBy"
IL_2974: ldnull
IL_2975: call static Verse.FloatMenuOption
RimWorld.FloatMenuUtility::DecoratePrioritizedTask(Verse.FloatMenuOption option,
Verse.Pawn pawn, Verse.LocalTargetInfo target, System.String reservedText,
Verse.ReservationLayerDef layer)
IL_297A: callvirt virtual System.Void
System.Collections.Generic.List`1<Verse.FloatMenuOption>::Add(Verse.FloatMenuOption
item)
IL_297F: Label220
IL_297F: Label221
IL_297F: Label222
IL_297F: Label225
IL_297F: Label227
IL_297F: ldloca.s 2
(System.Collections.Generic.List`1+Enumerator[Verse.Thing])
IL_2981: call virtual System.Boolean
System.Collections.Generic.Enumerator<Verse.Thing>::MoveNext()
IL_2986: brtrue => Label228
IL_298B: leave => Label229
IL_2990: leave => (autogenerated)
} // end try
.finally
{
IL_2995: ldloca.s 2
(System.Collections.Generic.List`1+Enumerator[Verse.Thing])
IL_2997: constrained.
System.Collections.Generic.List`1+Enumerator[Verse.Thing]
IL_299D: callvirt abstract virtual System.Void
System.IDisposable::Dispose()
IL_29A2: endfinally
IL_29A3: leave => (autogenerated)
} // end handler
IL_29A4: Label68
IL_29A4: Label219
IL_29A4: Label229
IL_29A4: call static System.Boolean Verse.ModsConfig::get_BiotechActive()
IL_29A9: brfalse => Label230
IL_29AE: ldloc.0
IL_29AF: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_29B4: call static System.Boolean
RimWorld.GeneUtility::CanDeathrest(Verse.Pawn pawn)
IL_29B9: brfalse => Label231
IL_29BE: ldloc.1
IL_29BF: ldloc.0
IL_29C0: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_29C5: callvirt virtual Verse.Map Verse.Thing::get_Map()
IL_29CA: call static System.Collections.Generic.List`1<Verse.Thing>
Verse.GridsUtility::GetThingList(Verse.IntVec3 c, Verse.Map map)
IL_29CF: stloc.s 75 (System.Collections.Generic.List`1[Verse.Thing])
IL_29D1: ldc.i4.0
IL_29D2: stloc.s 76 (System.Int32)
IL_29D4: br => Label232
IL_29D9: Label251
IL_29D9: newobj System.Void RimWorld.<>c__DisplayClass10_23::.ctor()
IL_29DE: stloc.s 77 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_23)
IL_29E0: ldloc.s 77 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_23)
IL_29E2: ldloc.0
IL_29E3: stfld RimWorld.<>c__DisplayClass10_0
RimWorld.<>c__DisplayClass10_23::CS$<>8__locals23
IL_29E8: ldloc.s 77 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_23)
IL_29EA: ldloc.s 75 (System.Collections.Generic.List`1[Verse.Thing])
IL_29EC: ldloc.s 76 (System.Int32)
IL_29EE: callvirt virtual Verse.Thing
System.Collections.Generic.List`1<Verse.Thing>::get_Item(System.Int32 index)
IL_29F3: isinst RimWorld.Building_Bed
IL_29F8: dup
IL_29F9: stloc.s 80 (RimWorld.Building_Bed)
IL_29FB: stfld RimWorld.Building_Bed RimWorld.<>c__DisplayClass10_23::bed
IL_2A00: ldloc.s 80 (RimWorld.Building_Bed)
IL_2A02: brfalse => Label233
IL_2A07: ldloc.s 77 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_23)
IL_2A09: ldfld RimWorld.Building_Bed RimWorld.<>c__DisplayClass10_23::bed
IL_2A0E: ldfld Verse.ThingDef Verse.Thing::def
IL_2A13: ldfld RimWorld.BuildingProperties Verse.ThingDef::building
IL_2A18: ldfld System.Boolean RimWorld.BuildingProperties::bed_humanlike
IL_2A1D: brfalse => Label234
IL_2A22: ldloc.s 77 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_23)
IL_2A24: ldfld RimWorld.<>c__DisplayClass10_0
RimWorld.<>c__DisplayClass10_23::CS$<>8__locals23
IL_2A29: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_2A2E: ldloc.s 77 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_23)
IL_2A30: ldfld RimWorld.Building_Bed RimWorld.<>c__DisplayClass10_23::bed
IL_2A35: call static Verse.LocalTargetInfo
Verse.LocalTargetInfo::op_Implicit(Verse.Thing t)
IL_2A3A: ldc.i4.1
IL_2A3B: ldc.i4.3
IL_2A3C: ldc.i4.0
IL_2A3D: ldc.i4.0
IL_2A3E: ldc.i4.0
IL_2A3F: call static System.Boolean
Verse.ReachabilityUtility::CanReach(Verse.Pawn pawn, Verse.LocalTargetInfo dest,
Verse.AI.PathEndMode peMode, Verse.Danger maxDanger, System.Boolean canBashDoors,
System.Boolean canBashFences, Verse.TraverseMode mode)
IL_2A44: brtrue => Label235
IL_2A49: ldarg.2
IL_2A4A: ldstr "CannotDeathrest"
IL_2A4F: call static Verse.TaggedString
Verse.Translator::Translate(System.String key)
IL_2A54: ldstr ": "
IL_2A59: call static Verse.TaggedString
Verse.TaggedString::op_Addition(Verse.TaggedString t1, System.String t2)
IL_2A5E: ldstr "NoPath"
IL_2A63: call static Verse.TaggedString
Verse.Translator::Translate(System.String key)
IL_2A68: stloc.s 11 (Verse.TaggedString)
IL_2A6A: ldloca.s 11 (Verse.TaggedString)
IL_2A6C: call Verse.TaggedString Verse.TaggedString::CapitalizeFirst()
IL_2A71: call static Verse.TaggedString
Verse.TaggedString::op_Addition(Verse.TaggedString t1, Verse.TaggedString t2)
IL_2A76: call static System.String
Verse.TaggedString::op_Implicit(Verse.TaggedString taggedString)
IL_2A7B: ldnull
IL_2A7C: ldc.i4.4
IL_2A7D: ldnull
IL_2A7E: ldnull
IL_2A7F: ldc.r4 0
IL_2A84: ldnull
IL_2A85: ldnull
IL_2A86: ldc.i4.1
IL_2A87: ldc.i4.0
IL_2A88: newobj System.Void Verse.FloatMenuOption::.ctor(System.String label,
System.Action action, Verse.MenuOptionPriority priority,
System.Action`1<UnityEngine.Rect> mouseoverGuiAction, Verse.Thing
revalidateClickTarget, System.Single extraPartWidth,
System.Func`2<UnityEngine.Rect, System.Boolean> extraPartOnGUI,
RimWorld.Planet.WorldObject revalidateWorldClickTarget, System.Boolean
playSelectionSound, System.Int32 orderInPriority)
IL_2A8D: callvirt virtual System.Void
System.Collections.Generic.List`1<Verse.FloatMenuOption>::Add(Verse.FloatMenuOption
item)
IL_2A92: br => Label236
IL_2A97: Label235
IL_2A97: ldloc.s 77 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_23)
IL_2A99: ldfld RimWorld.Building_Bed RimWorld.<>c__DisplayClass10_23::bed
IL_2A9E: callvirt RimWorld.CompAssignableToPawn
RimWorld.Building_Bed::get_CompAssignableToPawn()
IL_2AA3: ldloc.s 77 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_23)
IL_2AA5: ldfld RimWorld.<>c__DisplayClass10_0
RimWorld.<>c__DisplayClass10_23::CS$<>8__locals23
IL_2AAA: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_2AAF: callvirt virtual Verse.AcceptanceReport
RimWorld.CompAssignableToPawn::CanAssignTo(Verse.Pawn pawn)
IL_2AB4: stloc.s 78 (Verse.AcceptanceReport)
IL_2AB6: ldloca.s 78 (Verse.AcceptanceReport)
IL_2AB8: call System.Boolean Verse.AcceptanceReport::get_Accepted()
IL_2ABD: brtrue => Label237
IL_2AC2: ldarg.2
IL_2AC3: ldstr "CannotDeathrest"
IL_2AC8: call static Verse.TaggedString
Verse.Translator::Translate(System.String key)
IL_2ACD: ldstr ": "
IL_2AD2: call static Verse.TaggedString
Verse.TaggedString::op_Addition(Verse.TaggedString t1, System.String t2)
IL_2AD7: ldloca.s 78 (Verse.AcceptanceReport)
IL_2AD9: call System.String Verse.AcceptanceReport::get_Reason()
IL_2ADE: call static Verse.TaggedString
Verse.TaggedString::op_Addition(Verse.TaggedString t1, System.String t2)
IL_2AE3: call static System.String
Verse.TaggedString::op_Implicit(Verse.TaggedString taggedString)
IL_2AE8: ldnull
IL_2AE9: ldc.i4.4
IL_2AEA: ldnull
IL_2AEB: ldnull
IL_2AEC: ldc.r4 0
IL_2AF1: ldnull
IL_2AF2: ldnull
IL_2AF3: ldc.i4.1
IL_2AF4: ldc.i4.0
IL_2AF5: newobj System.Void Verse.FloatMenuOption::.ctor(System.String label,
System.Action action, Verse.MenuOptionPriority priority,
System.Action`1<UnityEngine.Rect> mouseoverGuiAction, Verse.Thing
revalidateClickTarget, System.Single extraPartWidth,
System.Func`2<UnityEngine.Rect, System.Boolean> extraPartOnGUI,
RimWorld.Planet.WorldObject revalidateWorldClickTarget, System.Boolean
playSelectionSound, System.Int32 orderInPriority)
IL_2AFA: callvirt virtual System.Void
System.Collections.Generic.List`1<Verse.FloatMenuOption>::Add(Verse.FloatMenuOption
item)
IL_2AFF: br => Label238
IL_2B04: Label237
IL_2B04: ldloc.s 77 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_23)
IL_2B06: ldfld RimWorld.Building_Bed RimWorld.<>c__DisplayClass10_23::bed
IL_2B0B: callvirt RimWorld.CompAssignableToPawn
RimWorld.Building_Bed::get_CompAssignableToPawn()
IL_2B10: callvirt System.Boolean RimWorld.CompAssignableToPawn::get_HasFreeSlot()
IL_2B15: brfalse => Label239
IL_2B1A: ldloc.s 77 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_23)
IL_2B1C: ldfld RimWorld.Building_Bed RimWorld.<>c__DisplayClass10_23::bed
IL_2B21: ldloc.s 77 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_23)
IL_2B23: ldfld RimWorld.<>c__DisplayClass10_0
RimWorld.<>c__DisplayClass10_23::CS$<>8__locals23
IL_2B28: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_2B2D: ldloc.s 77 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_23)
IL_2B2F: ldfld RimWorld.<>c__DisplayClass10_0
RimWorld.<>c__DisplayClass10_23::CS$<>8__locals23
IL_2B34: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_2B39: ldfld RimWorld.Pawn_GuestTracker Verse.Pawn::guest
IL_2B3E: callvirt RimWorld.GuestStatus
RimWorld.Pawn_GuestTracker::get_GuestStatus()
IL_2B43: newobj System.Void
System.Nullable`1<RimWorld.GuestStatus>::.ctor(RimWorld.GuestStatus value)
IL_2B48: call static System.Boolean
RimWorld.RestUtility::BedOwnerWillShare(RimWorld.Building_Bed bed, Verse.Pawn
sleeper, System.Nullable`1<RimWorld.GuestStatus> guestStatus)
IL_2B4D: brtrue => Label240
IL_2B52: Label239
IL_2B52: ldloc.s 77 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_23)
IL_2B54: ldfld RimWorld.Building_Bed RimWorld.<>c__DisplayClass10_23::bed
IL_2B59: ldloc.s 77 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_23)
IL_2B5B: ldfld RimWorld.<>c__DisplayClass10_0
RimWorld.<>c__DisplayClass10_23::CS$<>8__locals23
IL_2B60: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_2B65: callvirt System.Boolean RimWorld.Building_Bed::IsOwner(Verse.Pawn p)
IL_2B6A: brtrue => Label241
IL_2B6F: ldarg.2
IL_2B70: ldstr "CannotDeathrest"
IL_2B75: call static Verse.TaggedString
Verse.Translator::Translate(System.String key)
IL_2B7A: ldstr ": "
IL_2B7F: call static Verse.TaggedString
Verse.TaggedString::op_Addition(Verse.TaggedString t1, System.String t2)
IL_2B84: ldstr "AssignedToOtherPawn"
IL_2B89: ldloc.s 77 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_23)
IL_2B8B: ldfld RimWorld.Building_Bed RimWorld.<>c__DisplayClass10_23::bed
IL_2B90: call static Verse.NamedArgument
Verse.NamedArgument::op_Implicit(Verse.Thing value)
IL_2B95: call static Verse.TaggedString
Verse.TranslatorFormattedStringExtensions::Translate(System.String key,
Verse.NamedArgument arg1)
IL_2B9A: stloc.s 11 (Verse.TaggedString)
IL_2B9C: ldloca.s 11 (Verse.TaggedString)
IL_2B9E: call Verse.TaggedString Verse.TaggedString::CapitalizeFirst()
IL_2BA3: call static Verse.TaggedString
Verse.TaggedString::op_Addition(Verse.TaggedString t1, Verse.TaggedString t2)
IL_2BA8: call static System.String
Verse.TaggedString::op_Implicit(Verse.TaggedString taggedString)
IL_2BAD: ldnull
IL_2BAE: ldc.i4.4
IL_2BAF: ldnull
IL_2BB0: ldnull
IL_2BB1: ldc.r4 0
IL_2BB6: ldnull
IL_2BB7: ldnull
IL_2BB8: ldc.i4.1
IL_2BB9: ldc.i4.0
IL_2BBA: newobj System.Void Verse.FloatMenuOption::.ctor(System.String label,
System.Action action, Verse.MenuOptionPriority priority,
System.Action`1<UnityEngine.Rect> mouseoverGuiAction, Verse.Thing
revalidateClickTarget, System.Single extraPartWidth,
System.Func`2<UnityEngine.Rect, System.Boolean> extraPartOnGUI,
RimWorld.Planet.WorldObject revalidateWorldClickTarget, System.Boolean
playSelectionSound, System.Int32 orderInPriority)
IL_2BBF: callvirt virtual System.Void
System.Collections.Generic.List`1<Verse.FloatMenuOption>::Add(Verse.FloatMenuOption
item)
IL_2BC4: br => Label242
IL_2BC9: Label240
IL_2BC9: Label241
IL_2BC9: ldc.i4.0
IL_2BCA: stloc.s 79 (System.Boolean)
IL_2BCC: ldloc.s 77 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_23)
IL_2BCE: ldfld RimWorld.Building_Bed RimWorld.<>c__DisplayClass10_23::bed
IL_2BD3: call static Verse.CellRect Verse.GenAdj::OccupiedRect(Verse.Thing t)
IL_2BD8: stloc.s 82 (Verse.CellRect)
IL_2BDA: ldloca.s 82 (Verse.CellRect)
IL_2BDC: call Verse.Enumerator Verse.CellRect::GetEnumerator()
IL_2BE1: stloc.s 81 (Verse.CellRect+Enumerator)
.try
{
IL_2BE3: br => Label243
IL_2BE8: Label246
IL_2BE8: ldloca.s 81 (Verse.CellRect+Enumerator)
IL_2BEA: call virtual Verse.IntVec3 Verse.Enumerator::get_Current()
IL_2BEF: ldloc.s 77 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_23)
IL_2BF1: ldfld RimWorld.Building_Bed
RimWorld.<>c__DisplayClass10_23::bed
IL_2BF6: callvirt virtual Verse.Map Verse.Thing::get_Map()
IL_2BFB: call static Verse.RoofDef
Verse.GridsUtility::GetRoof(Verse.IntVec3 c, Verse.Map map)
IL_2C00: brtrue => Label244
IL_2C05: ldc.i4.1
IL_2C06: stloc.s 79 (System.Boolean)
IL_2C08: leave => Label245
IL_2C0D: Label243
IL_2C0D: Label244
IL_2C0D: ldloca.s 81 (Verse.CellRect+Enumerator)
IL_2C0F: call virtual System.Boolean Verse.Enumerator::MoveNext()
IL_2C14: brtrue => Label246
IL_2C19: leave => Label247
IL_2C1E: leave => (autogenerated)
} // end try
.finally
{
IL_2C23: ldloca.s 81 (Verse.CellRect+Enumerator)
IL_2C25: constrained. Verse.CellRect+Enumerator
IL_2C2B: callvirt abstract virtual System.Void
System.IDisposable::Dispose()
IL_2C30: endfinally
IL_2C31: leave => (autogenerated)
} // end handler
IL_2C32: Label245
IL_2C32: Label247
IL_2C32: ldloc.s 79 (System.Boolean)
IL_2C34: brfalse => Label248
IL_2C39: ldarg.2
IL_2C3A: ldstr "CannotDeathrest"
IL_2C3F: call static Verse.TaggedString
Verse.Translator::Translate(System.String key)
IL_2C44: ldstr ": "
IL_2C49: call static Verse.TaggedString
Verse.TaggedString::op_Addition(Verse.TaggedString t1, System.String t2)
IL_2C4E: ldstr "ThingIsSkyExposed"
IL_2C53: ldloc.s 77 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_23)
IL_2C55: ldfld RimWorld.Building_Bed RimWorld.<>c__DisplayClass10_23::bed
IL_2C5A: call static Verse.NamedArgument
Verse.NamedArgument::op_Implicit(Verse.Thing value)
IL_2C5F: call static Verse.TaggedString
Verse.TranslatorFormattedStringExtensions::Translate(System.String key,
Verse.NamedArgument arg1)
IL_2C64: stloc.s 11 (Verse.TaggedString)
IL_2C66: ldloca.s 11 (Verse.TaggedString)
IL_2C68: call Verse.TaggedString Verse.TaggedString::CapitalizeFirst()
IL_2C6D: call static Verse.TaggedString
Verse.TaggedString::op_Addition(Verse.TaggedString t1, Verse.TaggedString t2)
IL_2C72: call static System.String
Verse.TaggedString::op_Implicit(Verse.TaggedString taggedString)
IL_2C77: ldnull
IL_2C78: ldc.i4.4
IL_2C79: ldnull
IL_2C7A: ldnull
IL_2C7B: ldc.r4 0
IL_2C80: ldnull
IL_2C81: ldnull
IL_2C82: ldc.i4.1
IL_2C83: ldc.i4.0
IL_2C84: newobj System.Void Verse.FloatMenuOption::.ctor(System.String label,
System.Action action, Verse.MenuOptionPriority priority,
System.Action`1<UnityEngine.Rect> mouseoverGuiAction, Verse.Thing
revalidateClickTarget, System.Single extraPartWidth,
System.Func`2<UnityEngine.Rect, System.Boolean> extraPartOnGUI,
RimWorld.Planet.WorldObject revalidateWorldClickTarget, System.Boolean
playSelectionSound, System.Int32 orderInPriority)
IL_2C89: callvirt virtual System.Void
System.Collections.Generic.List`1<Verse.FloatMenuOption>::Add(Verse.FloatMenuOption
item)
IL_2C8E: br => Label249
IL_2C93: Label248
IL_2C93: ldloc.s 77 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_23)
IL_2C95: ldfld RimWorld.Building_Bed RimWorld.<>c__DisplayClass10_23::bed
IL_2C9A: ldloc.s 77 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_23)
IL_2C9C: ldfld RimWorld.<>c__DisplayClass10_0
RimWorld.<>c__DisplayClass10_23::CS$<>8__locals23
IL_2CA1: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_2CA6: ldloc.s 77 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_23)
IL_2CA8: ldfld RimWorld.<>c__DisplayClass10_0
RimWorld.<>c__DisplayClass10_23::CS$<>8__locals23
IL_2CAD: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_2CB2: ldc.i4.1
IL_2CB3: ldc.i4.0
IL_2CB4: ldc.i4.0
IL_2CB5: ldloc.s 77 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_23)
IL_2CB7: ldfld RimWorld.<>c__DisplayClass10_0
RimWorld.<>c__DisplayClass10_23::CS$<>8__locals23
IL_2CBC: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_2CC1: callvirt System.Nullable`1<RimWorld.GuestStatus>
Verse.Pawn::get_GuestStatus()
IL_2CC6: call static System.Boolean
RimWorld.RestUtility::IsValidBedFor(Verse.Thing bedThing, Verse.Pawn sleeper,
Verse.Pawn traveler, System.Boolean checkSocialProperness, System.Boolean
allowMedBedEvenIfSetToNoCare, System.Boolean ignoreOtherReservations,
System.Nullable`1<RimWorld.GuestStatus> guestStatus)
IL_2CCB: brfalse => Label250
IL_2CD0: ldarg.2
IL_2CD1: ldstr "StartDeathrest"
IL_2CD6: call static Verse.TaggedString
Verse.Translator::Translate(System.String key)
IL_2CDB: call static System.String
Verse.TaggedString::op_Implicit(Verse.TaggedString taggedString)
IL_2CE0: ldloc.s 77 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_23)
IL_2CE2: ldftn System.Void
RimWorld.<>c__DisplayClass10_23::<AddHumanlikeOrders>b__30()
IL_2CE8: newobj System.Void System.Action::.ctor(System.Object object,
System.IntPtr method)
IL_2CED: ldc.i4.4
IL_2CEE: ldnull
IL_2CEF: ldnull
IL_2CF0: ldc.r4 0
IL_2CF5: ldnull
IL_2CF6: ldnull
IL_2CF7: ldc.i4.1
IL_2CF8: ldc.i4.0
IL_2CF9: newobj System.Void Verse.FloatMenuOption::.ctor(System.String label,
System.Action action, Verse.MenuOptionPriority priority,
System.Action`1<UnityEngine.Rect> mouseoverGuiAction, Verse.Thing
revalidateClickTarget, System.Single extraPartWidth,
System.Func`2<UnityEngine.Rect, System.Boolean> extraPartOnGUI,
RimWorld.Planet.WorldObject revalidateWorldClickTarget, System.Boolean
playSelectionSound, System.Int32 orderInPriority)
IL_2CFE: callvirt virtual System.Void
System.Collections.Generic.List`1<Verse.FloatMenuOption>::Add(Verse.FloatMenuOption
item)
IL_2D03: Label233
IL_2D03: Label234
IL_2D03: Label236
IL_2D03: Label238
IL_2D03: Label242
IL_2D03: Label249
IL_2D03: Label250
IL_2D03: ldloc.s 76 (System.Int32)
IL_2D05: ldc.i4.1
IL_2D06: add
IL_2D07: stloc.s 76 (System.Int32)
IL_2D09: Label232
IL_2D09: ldloc.s 76 (System.Int32)
IL_2D0B: ldloc.s 75 (System.Collections.Generic.List`1[Verse.Thing])
IL_2D0D: callvirt virtual System.Int32
System.Collections.Generic.List`1<Verse.Thing>::get_Count()
IL_2D12: blt => Label251
IL_2D17: Label230
IL_2D17: Label231
IL_2D17: call static System.Boolean Verse.ModsConfig::get_BiotechActive()
IL_2D1C: brfalse => Label252
IL_2D21: ldloc.0
IL_2D22: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_2D27: call static System.Boolean
RimWorld.GeneUtility::IsBloodfeeder(Verse.Pawn pawn)
IL_2D2C: brfalse => Label253
IL_2D31: ldloc.0
IL_2D32: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_2D37: ldfld RimWorld.Pawn_GeneTracker Verse.Pawn::genes
IL_2D3C: dup
IL_2D3D: brtrue => Label254
IL_2D42: pop
IL_2D43: ldnull
IL_2D44: br => Label255
IL_2D49: Label254
IL_2D49: call RimWorld.Gene_Hemogen
RimWorld.Pawn_GeneTracker::GetFirstGeneOfType()
IL_2D4E: Label255
IL_2D4E: brfalse => Label256
IL_2D53: ldarg.0
IL_2D54: ldloc.0
IL_2D55: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_2D5A: call static RimWorld.TargetingParameters
RimWorld.TargetingParameters::ForBloodfeeding(Verse.Pawn pawn)
IL_2D5F: ldc.i4.0
IL_2D60: ldnull
IL_2D61: call static
System.Collections.Generic.IEnumerable`1<Verse.LocalTargetInfo>
Verse.GenUI::TargetsAt(UnityEngine.Vector3 clickPos, RimWorld.TargetingParameters
clickParams, System.Boolean thingsOnly, RimWorld.ITargetingSource source)
IL_2D66: callvirt abstract virtual
System.Collections.Generic.IEnumerator`1<Verse.LocalTargetInfo>
System.Collections.Generic.IEnumerable`1<Verse.LocalTargetInfo>::GetEnumerator()
IL_2D6B: stloc.s 8
(System.Collections.Generic.IEnumerator`1[Verse.LocalTargetInfo])
.try
{
IL_2D6D: br => Label257
IL_2D72: Label263
IL_2D72: ldloc.s 8
(System.Collections.Generic.IEnumerator`1[Verse.LocalTargetInfo])
IL_2D74: callvirt abstract virtual Verse.LocalTargetInfo
System.Collections.Generic.IEnumerator`1<Verse.LocalTargetInfo>::get_Current()
IL_2D79: stloc.s 83 (Verse.LocalTargetInfo)
IL_2D7B: newobj System.Void RimWorld.<>c__DisplayClass10_24::.ctor()
IL_2D80: stloc.s 84 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_24)
IL_2D82: ldloc.s 84 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_24)
IL_2D84: ldloc.0
IL_2D85: stfld RimWorld.<>c__DisplayClass10_0
RimWorld.<>c__DisplayClass10_24::CS$<>8__locals24
IL_2D8A: ldloc.s 84 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_24)
IL_2D8C: ldloca.s 83 (Verse.LocalTargetInfo)
IL_2D8E: call Verse.Thing Verse.LocalTargetInfo::get_Thing()
IL_2D93: castclass Verse.Pawn
IL_2D98: stfld Verse.Pawn RimWorld.<>c__DisplayClass10_24::targPawn
IL_2D9D: ldloc.s 84 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_24)
IL_2D9F: ldfld RimWorld.<>c__DisplayClass10_0
RimWorld.<>c__DisplayClass10_24::CS$<>8__locals24
IL_2DA4: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_2DA9: ldloc.s 84 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_24)
IL_2DAB: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_24::targPawn
IL_2DB0: call static Verse.LocalTargetInfo
Verse.LocalTargetInfo::op_Implicit(Verse.Thing t)
IL_2DB5: ldc.i4.3
IL_2DB6: ldc.i4.3
IL_2DB7: ldc.i4.0
IL_2DB8: ldc.i4.0
IL_2DB9: ldc.i4.0
IL_2DBA: call static System.Boolean
Verse.ReachabilityUtility::CanReach(Verse.Pawn pawn, Verse.LocalTargetInfo dest,
Verse.AI.PathEndMode peMode, Verse.Danger maxDanger, System.Boolean canBashDoors,
System.Boolean canBashFences, Verse.TraverseMode mode)
IL_2DBF: brtrue => Label258
IL_2DC4: ldarg.2
IL_2DC5: ldstr "CannotBloodfeedOn"
IL_2DCA: ldloc.s 84 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_24)
IL_2DCC: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_24::targPawn
IL_2DD1: ldstr "PAWN"
IL_2DD6: call static Verse.NamedArgument
Verse.NamedArgumentUtility::Named(System.Object arg, System.String label)
IL_2DDB: call static Verse.TaggedString
Verse.TranslatorFormattedStringExtensions::Translate(System.String key,
Verse.NamedArgument arg1)
IL_2DE0: ldstr ": "
IL_2DE5: call static Verse.TaggedString
Verse.TaggedString::op_Addition(Verse.TaggedString t1, System.String t2)
IL_2DEA: ldstr "NoPath"
IL_2DEF: call static Verse.TaggedString
Verse.Translator::Translate(System.String key)
IL_2DF4: stloc.s 11 (Verse.TaggedString)
IL_2DF6: ldloca.s 11 (Verse.TaggedString)
IL_2DF8: call Verse.TaggedString Verse.TaggedString::CapitalizeFirst()
IL_2DFD: call static Verse.TaggedString
Verse.TaggedString::op_Addition(Verse.TaggedString t1, Verse.TaggedString t2)
IL_2E02: call static System.String
Verse.TaggedString::op_Implicit(Verse.TaggedString taggedString)
IL_2E07: ldnull
IL_2E08: ldc.i4.4
IL_2E09: ldnull
IL_2E0A: ldnull
IL_2E0B: ldc.r4 0
IL_2E10: ldnull
IL_2E11: ldnull
IL_2E12: ldc.i4.1
IL_2E13: ldc.i4.0
IL_2E14: newobj System.Void Verse.FloatMenuOption::.ctor(System.String
label, System.Action action, Verse.MenuOptionPriority priority,
System.Action`1<UnityEngine.Rect> mouseoverGuiAction, Verse.Thing
revalidateClickTarget, System.Single extraPartWidth,
System.Func`2<UnityEngine.Rect, System.Boolean> extraPartOnGUI,
RimWorld.Planet.WorldObject revalidateWorldClickTarget, System.Boolean
playSelectionSound, System.Int32 orderInPriority)
IL_2E19: callvirt virtual System.Void
System.Collections.Generic.List`1<Verse.FloatMenuOption>::Add(Verse.FloatMenuOption
item)
IL_2E1E: br => Label259
IL_2E23: Label258
IL_2E23: ldloc.s 84 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_24)
IL_2E25: ldfld RimWorld.<>c__DisplayClass10_0
RimWorld.<>c__DisplayClass10_24::CS$<>8__locals24
IL_2E2A: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_2E2F: ldloc.s 84 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_24)
IL_2E31: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_24::targPawn
IL_2E36: call static Verse.AcceptanceReport
RimWorld.JobGiver_GetHemogen::CanFeedOnPrisoner(Verse.Pawn bloodfeeder, Verse.Pawn
prisoner)
IL_2E3B: stloc.s 85 (Verse.AcceptanceReport)
IL_2E3D: ldloca.s 85 (Verse.AcceptanceReport)
IL_2E3F: call System.Boolean Verse.AcceptanceReport::get_Accepted()
IL_2E44: brfalse => Label260
IL_2E49: ldarg.2
IL_2E4A: ldstr "BloodfeedOn"
IL_2E4F: ldloc.s 84 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_24)
IL_2E51: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_24::targPawn
IL_2E56: ldstr "PAWN"
IL_2E5B: call static Verse.NamedArgument
Verse.NamedArgumentUtility::Named(System.Object arg, System.String label)
IL_2E60: call static Verse.TaggedString
Verse.TranslatorFormattedStringExtensions::Translate(System.String key,
Verse.NamedArgument arg1)
IL_2E65: call static System.String
Verse.TaggedString::op_Implicit(Verse.TaggedString taggedString)
IL_2E6A: ldloc.s 84 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_24)
IL_2E6C: ldftn System.Void
RimWorld.<>c__DisplayClass10_24::<AddHumanlikeOrders>b__31()
IL_2E72: newobj System.Void System.Action::.ctor(System.Object object,
System.IntPtr method)
IL_2E77: ldc.i4.4
IL_2E78: ldnull
IL_2E79: ldnull
IL_2E7A: ldc.r4 0
IL_2E7F: ldnull
IL_2E80: ldnull
IL_2E81: ldc.i4.1
IL_2E82: ldc.i4.0
IL_2E83: newobj System.Void Verse.FloatMenuOption::.ctor(System.String
label, System.Action action, Verse.MenuOptionPriority priority,
System.Action`1<UnityEngine.Rect> mouseoverGuiAction, Verse.Thing
revalidateClickTarget, System.Single extraPartWidth,
System.Func`2<UnityEngine.Rect, System.Boolean> extraPartOnGUI,
RimWorld.Planet.WorldObject revalidateWorldClickTarget, System.Boolean
playSelectionSound, System.Int32 orderInPriority)
IL_2E88: ldloc.s 84 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_24)
IL_2E8A: ldfld RimWorld.<>c__DisplayClass10_0
RimWorld.<>c__DisplayClass10_24::CS$<>8__locals24
IL_2E8F: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_2E94: ldloc.s 84 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_24)
IL_2E96: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_24::targPawn
IL_2E9B: call static Verse.LocalTargetInfo
Verse.LocalTargetInfo::op_Implicit(Verse.Thing t)
IL_2EA0: ldstr "ReservedBy"
IL_2EA5: ldnull
IL_2EA6: call static Verse.FloatMenuOption
RimWorld.FloatMenuUtility::DecoratePrioritizedTask(Verse.FloatMenuOption option,
Verse.Pawn pawn, Verse.LocalTargetInfo target, System.String reservedText,
Verse.ReservationLayerDef layer)
IL_2EAB: callvirt virtual System.Void
System.Collections.Generic.List`1<Verse.FloatMenuOption>::Add(Verse.FloatMenuOption
item)
IL_2EB0: br => Label261
IL_2EB5: Label260
IL_2EB5: ldloca.s 85 (Verse.AcceptanceReport)
IL_2EB7: call System.String Verse.AcceptanceReport::get_Reason()
IL_2EBC: call static System.Boolean
Verse.GenText::NullOrEmpty(System.String str)
IL_2EC1: brtrue => Label262
IL_2EC6: ldarg.2
IL_2EC7: ldstr "CannotBloodfeedOn"
IL_2ECC: ldloc.s 84 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_24)
IL_2ECE: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_24::targPawn
IL_2ED3: ldstr "PAWN"
IL_2ED8: call static Verse.NamedArgument
Verse.NamedArgumentUtility::Named(System.Object arg, System.String label)
IL_2EDD: call static Verse.TaggedString
Verse.TranslatorFormattedStringExtensions::Translate(System.String key,
Verse.NamedArgument arg1)
IL_2EE2: ldstr ": "
IL_2EE7: call static Verse.TaggedString
Verse.TaggedString::op_Addition(Verse.TaggedString t1, System.String t2)
IL_2EEC: ldloca.s 85 (Verse.AcceptanceReport)
IL_2EEE: call System.String Verse.AcceptanceReport::get_Reason()
IL_2EF3: call static System.String
Verse.GenText::CapitalizeFirst(System.String str)
IL_2EF8: call static Verse.TaggedString
Verse.TaggedString::op_Addition(Verse.TaggedString t1, System.String t2)
IL_2EFD: call static System.String
Verse.TaggedString::op_Implicit(Verse.TaggedString taggedString)
IL_2F02: ldnull
IL_2F03: ldc.i4.4
IL_2F04: ldnull
IL_2F05: ldnull
IL_2F06: ldc.r4 0
IL_2F0B: ldnull
IL_2F0C: ldnull
IL_2F0D: ldc.i4.1
IL_2F0E: ldc.i4.0
IL_2F0F: newobj System.Void Verse.FloatMenuOption::.ctor(System.String
label, System.Action action, Verse.MenuOptionPriority priority,
System.Action`1<UnityEngine.Rect> mouseoverGuiAction, Verse.Thing
revalidateClickTarget, System.Single extraPartWidth,
System.Func`2<UnityEngine.Rect, System.Boolean> extraPartOnGUI,
RimWorld.Planet.WorldObject revalidateWorldClickTarget, System.Boolean
playSelectionSound, System.Int32 orderInPriority)
IL_2F14: callvirt virtual System.Void
System.Collections.Generic.List`1<Verse.FloatMenuOption>::Add(Verse.FloatMenuOption
item)
IL_2F19: Label257
IL_2F19: Label259
IL_2F19: Label261
IL_2F19: Label262
IL_2F19: ldloc.s 8
(System.Collections.Generic.IEnumerator`1[Verse.LocalTargetInfo])
IL_2F1B: callvirt abstract virtual System.Boolean
System.Collections.IEnumerator::MoveNext()
IL_2F20: brtrue => Label263
IL_2F25: leave => Label264
IL_2F2A: leave => (autogenerated)
} // end try
.finally
{
IL_2F2F: ldloc.s 8
(System.Collections.Generic.IEnumerator`1[Verse.LocalTargetInfo])
IL_2F31: brfalse => Label265
IL_2F36: ldloc.s 8
(System.Collections.Generic.IEnumerator`1[Verse.LocalTargetInfo])
IL_2F38: callvirt abstract virtual System.Void
System.IDisposable::Dispose()
IL_2F3D: Label265
IL_2F3D: endfinally
IL_2F3E: leave => (autogenerated)
} // end handler
IL_2F3F: Label252
IL_2F3F: Label253
IL_2F3F: Label256
IL_2F3F: Label264
IL_2F3F: call static System.Boolean Verse.ModsConfig::get_BiotechActive()
IL_2F44: brfalse => Label266
IL_2F49: ldloc.0
IL_2F4A: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_2F4F: ldfld Verse.Pawn_HealthTracker Verse.Pawn::health
IL_2F54: ldfld Verse.PawnCapacitiesHandler
Verse.Pawn_HealthTracker::capacities
IL_2F59: ldsfld Verse.PawnCapacityDef RimWorld.PawnCapacityDefOf::Manipulation
IL_2F5E: callvirt System.Boolean
Verse.PawnCapacitiesHandler::CapableOf(Verse.PawnCapacityDef capacity)
IL_2F63: brfalse => Label267
IL_2F68: ldarg.0
IL_2F69: ldloc.0
IL_2F6A: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_2F6F: call static RimWorld.TargetingParameters
RimWorld.TargetingParameters::ForCarryDeathresterToBed(Verse.Pawn p)
IL_2F74: ldc.i4.0
IL_2F75: ldnull
IL_2F76: call static
System.Collections.Generic.IEnumerable`1<Verse.LocalTargetInfo>
Verse.GenUI::TargetsAt(UnityEngine.Vector3 clickPos, RimWorld.TargetingParameters
clickParams, System.Boolean thingsOnly, RimWorld.ITargetingSource source)
IL_2F7B: callvirt abstract virtual
System.Collections.Generic.IEnumerator`1<Verse.LocalTargetInfo>
System.Collections.Generic.IEnumerable`1<Verse.LocalTargetInfo>::GetEnumerator()
IL_2F80: stloc.s 8
(System.Collections.Generic.IEnumerator`1[Verse.LocalTargetInfo])
.try
{
IL_2F82: br => Label268
IL_2F87: Label275
IL_2F87: ldloc.s 8
(System.Collections.Generic.IEnumerator`1[Verse.LocalTargetInfo])
IL_2F89: callvirt abstract virtual Verse.LocalTargetInfo
System.Collections.Generic.IEnumerator`1<Verse.LocalTargetInfo>::get_Current()
IL_2F8E: stloc.s 86 (Verse.LocalTargetInfo)
IL_2F90: newobj System.Void RimWorld.<>c__DisplayClass10_25::.ctor()
IL_2F95: stloc.s 87 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_25)
IL_2F97: ldloc.s 87 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_25)
IL_2F99: ldloc.0
IL_2F9A: stfld RimWorld.<>c__DisplayClass10_0
RimWorld.<>c__DisplayClass10_25::CS$<>8__locals25
IL_2F9F: ldloc.s 87 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_25)
IL_2FA1: ldloca.s 86 (Verse.LocalTargetInfo)
IL_2FA3: call Verse.Thing Verse.LocalTargetInfo::get_Thing()
IL_2FA8: castclass Verse.Pawn
IL_2FAD: stfld Verse.Pawn RimWorld.<>c__DisplayClass10_25::targPawn
IL_2FB2: ldloc.s 87 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_25)
IL_2FB4: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_25::targPawn
IL_2FB9: call static System.Boolean
RimWorld.RestUtility::InBed(Verse.Pawn p)
IL_2FBE: brtrue => Label269
IL_2FC3: ldloc.s 87 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_25)
IL_2FC5: ldfld RimWorld.<>c__DisplayClass10_0
RimWorld.<>c__DisplayClass10_25::CS$<>8__locals25
IL_2FCA: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_2FCF: ldloc.s 87 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_25)
IL_2FD1: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_25::targPawn
IL_2FD6: call static Verse.LocalTargetInfo
Verse.LocalTargetInfo::op_Implicit(Verse.Thing t)
IL_2FDB: ldc.i4.3
IL_2FDC: ldc.i4.3
IL_2FDD: ldc.i4.0
IL_2FDE: ldc.i4.0
IL_2FDF: ldc.i4.0
IL_2FE0: call static System.Boolean
Verse.ReachabilityUtility::CanReach(Verse.Pawn pawn, Verse.LocalTargetInfo dest,
Verse.AI.PathEndMode peMode, Verse.Danger maxDanger, System.Boolean canBashDoors,
System.Boolean canBashFences, Verse.TraverseMode mode)
IL_2FE5: brtrue => Label270
IL_2FEA: ldarg.2
IL_2FEB: ldstr "CannotCarry"
IL_2FF0: ldloc.s 87 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_25)
IL_2FF2: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_25::targPawn
IL_2FF7: call static Verse.NamedArgument
Verse.NamedArgument::op_Implicit(Verse.Thing value)
IL_2FFC: call static Verse.TaggedString
Verse.TranslatorFormattedStringExtensions::Translate(System.String key,
Verse.NamedArgument arg1)
IL_3001: ldstr ": "
IL_3006: call static Verse.TaggedString
Verse.TaggedString::op_Addition(Verse.TaggedString t1, System.String t2)
IL_300B: ldstr "NoPath"
IL_3010: call static Verse.TaggedString
Verse.Translator::Translate(System.String key)
IL_3015: stloc.s 11 (Verse.TaggedString)
IL_3017: ldloca.s 11 (Verse.TaggedString)
IL_3019: call Verse.TaggedString Verse.TaggedString::CapitalizeFirst()
IL_301E: call static Verse.TaggedString
Verse.TaggedString::op_Addition(Verse.TaggedString t1, Verse.TaggedString t2)
IL_3023: call static System.String
Verse.TaggedString::op_Implicit(Verse.TaggedString taggedString)
IL_3028: ldnull
IL_3029: ldc.i4.4
IL_302A: ldnull
IL_302B: ldnull
IL_302C: ldc.r4 0
IL_3031: ldnull
IL_3032: ldnull
IL_3033: ldc.i4.1
IL_3034: ldc.i4.0
IL_3035: newobj System.Void Verse.FloatMenuOption::.ctor(System.String
label, System.Action action, Verse.MenuOptionPriority priority,
System.Action`1<UnityEngine.Rect> mouseoverGuiAction, Verse.Thing
revalidateClickTarget, System.Single extraPartWidth,
System.Func`2<UnityEngine.Rect, System.Boolean> extraPartOnGUI,
RimWorld.Planet.WorldObject revalidateWorldClickTarget, System.Boolean
playSelectionSound, System.Int32 orderInPriority)
IL_303A: callvirt virtual System.Void
System.Collections.Generic.List`1<Verse.FloatMenuOption>::Add(Verse.FloatMenuOption
item)
IL_303F: br => Label271
IL_3044: Label270
IL_3044: newobj System.Void RimWorld.<>c__DisplayClass10_26::.ctor()
IL_3049: stloc.s 88 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_26)
IL_304B: ldloc.s 88 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_26)
IL_304D: ldloc.s 87 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_25)
IL_304F: stfld RimWorld.<>c__DisplayClass10_25
RimWorld.<>c__DisplayClass10_26::CS$<>8__locals26
IL_3054: ldloc.s 88 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_26)
IL_3056: ldloc.s 88 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_26)
IL_3058: ldfld RimWorld.<>c__DisplayClass10_25
RimWorld.<>c__DisplayClass10_26::CS$<>8__locals26
IL_305D: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_25::targPawn
IL_3062: callvirt Verse.IntVec3 Verse.Thing::get_PositionHeld()
IL_3067: ldloc.s 88 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_26)
IL_3069: ldfld RimWorld.<>c__DisplayClass10_25
RimWorld.<>c__DisplayClass10_26::CS$<>8__locals26
IL_306E: ldfld RimWorld.<>c__DisplayClass10_0
RimWorld.<>c__DisplayClass10_25::CS$<>8__locals25
IL_3073: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_3078: callvirt virtual Verse.Map Verse.Thing::get_Map()
IL_307D: ldsfld Verse.ThingDef RimWorld.ThingDefOf::DeathrestCasket
IL_3082: call static Verse.ThingRequest
Verse.ThingRequest::ForDef(Verse.ThingDef singleDef)
IL_3087: ldc.i4.3
IL_3088: ldloc.s 88 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_26)
IL_308A: ldfld RimWorld.<>c__DisplayClass10_25
RimWorld.<>c__DisplayClass10_26::CS$<>8__locals26
IL_308F: ldfld RimWorld.<>c__DisplayClass10_0
RimWorld.<>c__DisplayClass10_25::CS$<>8__locals25
IL_3094: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_3099: ldc.i4.3
IL_309A: ldc.i4.0
IL_309B: ldc.i4.0
IL_309C: ldc.i4.0
IL_309D: ldc.i4.0
IL_309E: call static Verse.TraverseParms
Verse.TraverseParms::For(Verse.Pawn pawn, Verse.Danger maxDanger,
Verse.TraverseMode mode, System.Boolean canBashDoors, System.Boolean
alwaysUseAvoidGrid, System.Boolean canBashFences)
IL_30A3: ldc.r4 9999
IL_30A8: ldloc.s 88 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_26)
IL_30AA: ldfld RimWorld.<>c__DisplayClass10_25
RimWorld.<>c__DisplayClass10_26::CS$<>8__locals26
IL_30AF: ldftn System.Boolean
RimWorld.<>c__DisplayClass10_25::<AddHumanlikeOrders>b__32(Verse.Thing casket)
IL_30B5: newobj System.Void
System.Predicate`1<Verse.Thing>::.ctor(System.Object object, System.IntPtr method)
IL_30BA: ldnull
IL_30BB: ldc.i4.0
IL_30BC: ldc.i4.m1
IL_30BD: ldc.i4.0
IL_30BE: ldc.i4.s 14
IL_30C0: ldc.i4.0
IL_30C1: call static Verse.Thing
Verse.GenClosest::ClosestThingReachable(Verse.IntVec3 root, Verse.Map map,
Verse.ThingRequest thingReq, Verse.AI.PathEndMode peMode, Verse.TraverseParms
traverseParams, System.Single maxDistance, System.Predicate`1<Verse.Thing>
validator, System.Collections.Generic.IEnumerable`1<Verse.Thing>
customGlobalSearchSet, System.Int32 searchRegionsMin, System.Int32
searchRegionsMax, System.Boolean forceAllowGlobalSearch, Verse.RegionType
traversableRegionTypes, System.Boolean ignoreEntirelyForbiddenRegions)
IL_30C6: stfld Verse.Thing
RimWorld.<>c__DisplayClass10_26::bestBedOrCasket
IL_30CB: ldloc.s 88 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_26)
IL_30CD: ldfld Verse.Thing
RimWorld.<>c__DisplayClass10_26::bestBedOrCasket
IL_30D2: brtrue => Label272
IL_30D7: ldloc.s 88 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_26)
IL_30D9: ldloc.s 88 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_26)
IL_30DB: ldfld RimWorld.<>c__DisplayClass10_25
RimWorld.<>c__DisplayClass10_26::CS$<>8__locals26
IL_30E0: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_25::targPawn
IL_30E5: ldloc.s 88 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_26)
IL_30E7: ldfld RimWorld.<>c__DisplayClass10_25
RimWorld.<>c__DisplayClass10_26::CS$<>8__locals26
IL_30EC: ldfld RimWorld.<>c__DisplayClass10_0
RimWorld.<>c__DisplayClass10_25::CS$<>8__locals25
IL_30F1: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_30F6: ldc.i4.0
IL_30F7: ldc.i4.0
IL_30F8: ldloca.s 89 (System.Nullable`1[RimWorld.GuestStatus])
IL_30FA: initobj System.Nullable`1[RimWorld.GuestStatus]
IL_3100: ldloc.s 89 (System.Nullable`1[RimWorld.GuestStatus])
IL_3102: call static RimWorld.Building_Bed
RimWorld.RestUtility::FindBedFor(Verse.Pawn sleeper, Verse.Pawn traveler,
System.Boolean checkSocialProperness, System.Boolean ignoreOtherReservations,
System.Nullable`1<RimWorld.GuestStatus> guestStatus)
IL_3107: stfld Verse.Thing
RimWorld.<>c__DisplayClass10_26::bestBedOrCasket
IL_310C: Label272
IL_310C: ldloc.s 88 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_26)
IL_310E: ldfld Verse.Thing
RimWorld.<>c__DisplayClass10_26::bestBedOrCasket
IL_3113: brfalse => Label273
IL_3118: ldarg.2
IL_3119: ldstr "CarryToSpecificThing"
IL_311E: ldloc.s 88 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_26)
IL_3120: ldfld Verse.Thing
RimWorld.<>c__DisplayClass10_26::bestBedOrCasket
IL_3125: call static Verse.NamedArgument
Verse.NamedArgument::op_Implicit(Verse.Thing value)
IL_312A: call static Verse.TaggedString
Verse.TranslatorFormattedStringExtensions::Translate(System.String key,
Verse.NamedArgument arg1)
IL_312F: call static System.String
Verse.TaggedString::op_Implicit(Verse.TaggedString taggedString)
IL_3134: ldloc.s 88 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_26)
IL_3136: ldftn System.Void
RimWorld.<>c__DisplayClass10_26::<AddHumanlikeOrders>b__33()
IL_313C: newobj System.Void System.Action::.ctor(System.Object object,
System.IntPtr method)
IL_3141: ldc.i4.8
IL_3142: ldnull
IL_3143: ldloc.s 88 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_26)
IL_3145: ldfld RimWorld.<>c__DisplayClass10_25
RimWorld.<>c__DisplayClass10_26::CS$<>8__locals26
IL_314A: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_25::targPawn
IL_314F: ldc.r4 0
IL_3154: ldnull
IL_3155: ldnull
IL_3156: ldc.i4.1
IL_3157: ldc.i4.0
IL_3158: newobj System.Void Verse.FloatMenuOption::.ctor(System.String
label, System.Action action, Verse.MenuOptionPriority priority,
System.Action`1<UnityEngine.Rect> mouseoverGuiAction, Verse.Thing
revalidateClickTarget, System.Single extraPartWidth,
System.Func`2<UnityEngine.Rect, System.Boolean> extraPartOnGUI,
RimWorld.Planet.WorldObject revalidateWorldClickTarget, System.Boolean
playSelectionSound, System.Int32 orderInPriority)
IL_315D: ldloc.s 88 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_26)
IL_315F: ldfld RimWorld.<>c__DisplayClass10_25
RimWorld.<>c__DisplayClass10_26::CS$<>8__locals26
IL_3164: ldfld RimWorld.<>c__DisplayClass10_0
RimWorld.<>c__DisplayClass10_25::CS$<>8__locals25
IL_3169: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_316E: ldloc.s 88 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_26)
IL_3170: ldfld RimWorld.<>c__DisplayClass10_25
RimWorld.<>c__DisplayClass10_26::CS$<>8__locals26
IL_3175: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_25::targPawn
IL_317A: call static Verse.LocalTargetInfo
Verse.LocalTargetInfo::op_Implicit(Verse.Thing t)
IL_317F: ldstr "ReservedBy"
IL_3184: ldnull
IL_3185: call static Verse.FloatMenuOption
RimWorld.FloatMenuUtility::DecoratePrioritizedTask(Verse.FloatMenuOption option,
Verse.Pawn pawn, Verse.LocalTargetInfo target, System.String reservedText,
Verse.ReservationLayerDef layer)
IL_318A: callvirt virtual System.Void
System.Collections.Generic.List`1<Verse.FloatMenuOption>::Add(Verse.FloatMenuOption
item)
IL_318F: br => Label274
IL_3194: Label273
IL_3194: ldarg.2
IL_3195: ldstr "CannotCarry"
IL_319A: ldloc.s 88 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_26)
IL_319C: ldfld RimWorld.<>c__DisplayClass10_25
RimWorld.<>c__DisplayClass10_26::CS$<>8__locals26
IL_31A1: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_25::targPawn
IL_31A6: call static Verse.NamedArgument
Verse.NamedArgument::op_Implicit(Verse.Thing value)
IL_31AB: call static Verse.TaggedString
Verse.TranslatorFormattedStringExtensions::Translate(System.String key,
Verse.NamedArgument arg1)
IL_31B0: ldstr ": "
IL_31B5: call static Verse.TaggedString
Verse.TaggedString::op_Addition(Verse.TaggedString t1, System.String t2)
IL_31BA: ldstr "NoCasketOrBed"
IL_31BF: call static Verse.TaggedString
Verse.Translator::Translate(System.String key)
IL_31C4: call static Verse.TaggedString
Verse.TaggedString::op_Addition(Verse.TaggedString t1, Verse.TaggedString t2)
IL_31C9: call static System.String
Verse.TaggedString::op_Implicit(Verse.TaggedString taggedString)
IL_31CE: ldnull
IL_31CF: ldc.i4.4
IL_31D0: ldnull
IL_31D1: ldnull
IL_31D2: ldc.r4 0
IL_31D7: ldnull
IL_31D8: ldnull
IL_31D9: ldc.i4.1
IL_31DA: ldc.i4.0
IL_31DB: newobj System.Void Verse.FloatMenuOption::.ctor(System.String
label, System.Action action, Verse.MenuOptionPriority priority,
System.Action`1<UnityEngine.Rect> mouseoverGuiAction, Verse.Thing
revalidateClickTarget, System.Single extraPartWidth,
System.Func`2<UnityEngine.Rect, System.Boolean> extraPartOnGUI,
RimWorld.Planet.WorldObject revalidateWorldClickTarget, System.Boolean
playSelectionSound, System.Int32 orderInPriority)
IL_31E0: callvirt virtual System.Void
System.Collections.Generic.List`1<Verse.FloatMenuOption>::Add(Verse.FloatMenuOption
item)
IL_31E5: Label268
IL_31E5: Label269
IL_31E5: Label271
IL_31E5: Label274
IL_31E5: ldloc.s 8
(System.Collections.Generic.IEnumerator`1[Verse.LocalTargetInfo])
IL_31E7: callvirt abstract virtual System.Boolean
System.Collections.IEnumerator::MoveNext()
IL_31EC: brtrue => Label275
IL_31F1: leave => Label276
IL_31F6: leave => (autogenerated)
} // end try
.finally
{
IL_31FB: ldloc.s 8
(System.Collections.Generic.IEnumerator`1[Verse.LocalTargetInfo])
IL_31FD: brfalse => Label277
IL_3202: ldloc.s 8
(System.Collections.Generic.IEnumerator`1[Verse.LocalTargetInfo])
IL_3204: callvirt abstract virtual System.Void
System.IDisposable::Dispose()
IL_3209: Label277
IL_3209: endfinally
IL_320A: leave => (autogenerated)
} // end handler
IL_320B: Label266
IL_320B: Label267
IL_320B: Label276
IL_320B: call static System.Boolean Verse.ModsConfig::get_BiotechActive()
IL_3210: brfalse => Label278
IL_3215: ldloc.0
IL_3216: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_321B: ldfld RimWorld.Pawn_GeneTracker Verse.Pawn::genes
IL_3220: brfalse => Label279
IL_3225: ldarg.0
IL_3226: ldloc.0
IL_3227: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_322C: call static RimWorld.TargetingParameters
RimWorld.TargetingParameters::ForXenogermAbsorption(Verse.Pawn p)
IL_3231: ldc.i4.1
IL_3232: ldnull
IL_3233: call static
System.Collections.Generic.IEnumerable`1<Verse.LocalTargetInfo>
Verse.GenUI::TargetsAt(UnityEngine.Vector3 clickPos, RimWorld.TargetingParameters
clickParams, System.Boolean thingsOnly, RimWorld.ITargetingSource source)
IL_3238: callvirt abstract virtual
System.Collections.Generic.IEnumerator`1<Verse.LocalTargetInfo>
System.Collections.Generic.IEnumerable`1<Verse.LocalTargetInfo>::GetEnumerator()
IL_323D: stloc.s 8
(System.Collections.Generic.IEnumerator`1[Verse.LocalTargetInfo])
.try
{
IL_323F: br => Label280
IL_3244: Label290
IL_3244: ldloc.s 8
(System.Collections.Generic.IEnumerator`1[Verse.LocalTargetInfo])
IL_3246: callvirt abstract virtual Verse.LocalTargetInfo
System.Collections.Generic.IEnumerator`1<Verse.LocalTargetInfo>::get_Current()
IL_324B: stloc.s 90 (Verse.LocalTargetInfo)
IL_324D: newobj System.Void RimWorld.<>c__DisplayClass10_27::.ctor()
IL_3252: stloc.s 91 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_27)
IL_3254: ldloc.s 91 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_27)
IL_3256: ldloc.0
IL_3257: stfld RimWorld.<>c__DisplayClass10_0
RimWorld.<>c__DisplayClass10_27::CS$<>8__locals27
IL_325C: ldloc.s 91 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_27)
IL_325E: ldloca.s 90 (Verse.LocalTargetInfo)
IL_3260: call Verse.Thing Verse.LocalTargetInfo::get_Thing()
IL_3265: castclass Verse.Pawn
IL_326A: stfld Verse.Pawn RimWorld.<>c__DisplayClass10_27::targPawn
IL_326F: ldloc.s 91 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_27)
IL_3271: ldfld RimWorld.<>c__DisplayClass10_0
RimWorld.<>c__DisplayClass10_27::CS$<>8__locals27
IL_3276: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_327B: ldloc.s 91 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_27)
IL_327D: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_27::targPawn
IL_3282: call static Verse.LocalTargetInfo
Verse.LocalTargetInfo::op_Implicit(Verse.Thing t)
IL_3287: ldc.i4.1
IL_3288: ldc.i4.3
IL_3289: ldc.i4.1
IL_328A: ldc.i4.m1
IL_328B: ldnull
IL_328C: ldc.i4.1
IL_328D: call static System.Boolean
Verse.AI.ReservationUtility::CanReserveAndReach(Verse.Pawn p, Verse.LocalTargetInfo
target, Verse.AI.PathEndMode peMode, Verse.Danger maxDanger, System.Int32 maxPawns,
System.Int32 stackCount, Verse.ReservationLayerDef layer, System.Boolean
ignoreOtherReservations)
IL_3292: brfalse => Label281
IL_3297: ldloc.s 91 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_27)
IL_3299: ldfld RimWorld.<>c__DisplayClass10_0
RimWorld.<>c__DisplayClass10_27::CS$<>8__locals27
IL_329E: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_32A3: call static System.Boolean
RimWorld.QuestUtility::IsQuestLodger(Verse.Pawn p)
IL_32A8: brfalse => Label282
IL_32AD: ldstr "CannotAbsorbXenogerm"
IL_32B2: ldloc.s 91 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_27)
IL_32B4: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_27::targPawn
IL_32B9: ldstr "PAWN"
IL_32BE: call static Verse.NamedArgument
Verse.NamedArgumentUtility::Named(System.Object arg, System.String label)
IL_32C3: call static Verse.TaggedString
Verse.TranslatorFormattedStringExtensions::Translate(System.String key,
Verse.NamedArgument arg1)
IL_32C8: ldstr ": "
IL_32CD: call static Verse.TaggedString
Verse.TaggedString::op_Addition(Verse.TaggedString t1, System.String t2)
IL_32D2: ldstr "TemporaryFactionMember"
IL_32D7: ldloc.s 91 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_27)
IL_32D9: ldfld RimWorld.<>c__DisplayClass10_0
RimWorld.<>c__DisplayClass10_27::CS$<>8__locals27
IL_32DE: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_32E3: ldstr "PAWN"
IL_32E8: call static Verse.NamedArgument
Verse.NamedArgumentUtility::Named(System.Object arg, System.String label)
IL_32ED: call static Verse.TaggedString
Verse.TranslatorFormattedStringExtensions::Translate(System.String key,
Verse.NamedArgument arg1)
IL_32F2: call static Verse.TaggedString
Verse.TaggedString::op_Addition(Verse.TaggedString t1, Verse.TaggedString t2)
IL_32F7: call static System.String
Verse.TaggedString::op_Implicit(Verse.TaggedString taggedString)
IL_32FC: ldnull
IL_32FD: ldc.i4.4
IL_32FE: ldnull
IL_32FF: ldnull
IL_3300: ldc.r4 0
IL_3305: ldnull
IL_3306: ldnull
IL_3307: ldc.i4.1
IL_3308: ldc.i4.0
IL_3309: newobj System.Void Verse.FloatMenuOption::.ctor(System.String
label, System.Action action, Verse.MenuOptionPriority priority,
System.Action`1<UnityEngine.Rect> mouseoverGuiAction, Verse.Thing
revalidateClickTarget, System.Single extraPartWidth,
System.Func`2<UnityEngine.Rect, System.Boolean> extraPartOnGUI,
RimWorld.Planet.WorldObject revalidateWorldClickTarget, System.Boolean
playSelectionSound, System.Int32 orderInPriority)
IL_330E: stloc.s 92 (Verse.FloatMenuOption)
IL_3310: br => Label283
IL_3315: Label282
IL_3315: ldloc.s 91 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_27)
IL_3317: ldfld RimWorld.<>c__DisplayClass10_0
RimWorld.<>c__DisplayClass10_27::CS$<>8__locals27
IL_331C: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_3321: ldloc.s 91 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_27)
IL_3323: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_27::targPawn
IL_3328: call static System.Boolean
RimWorld.GeneUtility::SameXenotype(Verse.Pawn pawn1, Verse.Pawn pawn2)
IL_332D: brfalse => Label284
IL_3332: ldstr "CannotAbsorbXenogerm"
IL_3337: ldloc.s 91 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_27)
IL_3339: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_27::targPawn
IL_333E: ldstr "PAWN"
IL_3343: call static Verse.NamedArgument
Verse.NamedArgumentUtility::Named(System.Object arg, System.String label)
IL_3348: call static Verse.TaggedString
Verse.TranslatorFormattedStringExtensions::Translate(System.String key,
Verse.NamedArgument arg1)
IL_334D: ldstr ": "
IL_3352: call static Verse.TaggedString
Verse.TaggedString::op_Addition(Verse.TaggedString t1, System.String t2)
IL_3357: ldstr "SameXenotype"
IL_335C: ldloc.s 91 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_27)
IL_335E: ldfld RimWorld.<>c__DisplayClass10_0
RimWorld.<>c__DisplayClass10_27::CS$<>8__locals27
IL_3363: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_3368: ldstr "PAWN"
IL_336D: call static Verse.NamedArgument
Verse.NamedArgumentUtility::Named(System.Object arg, System.String label)
IL_3372: call static Verse.TaggedString
Verse.TranslatorFormattedStringExtensions::Translate(System.String key,
Verse.NamedArgument arg1)
IL_3377: call static Verse.TaggedString
Verse.TaggedString::op_Addition(Verse.TaggedString t1, Verse.TaggedString t2)
IL_337C: call static System.String
Verse.TaggedString::op_Implicit(Verse.TaggedString taggedString)
IL_3381: ldnull
IL_3382: ldc.i4.4
IL_3383: ldnull
IL_3384: ldnull
IL_3385: ldc.r4 0
IL_338A: ldnull
IL_338B: ldnull
IL_338C: ldc.i4.1
IL_338D: ldc.i4.0
IL_338E: newobj System.Void Verse.FloatMenuOption::.ctor(System.String
label, System.Action action, Verse.MenuOptionPriority priority,
System.Action`1<UnityEngine.Rect> mouseoverGuiAction, Verse.Thing
revalidateClickTarget, System.Single extraPartWidth,
System.Func`2<UnityEngine.Rect, System.Boolean> extraPartOnGUI,
RimWorld.Planet.WorldObject revalidateWorldClickTarget, System.Boolean
playSelectionSound, System.Int32 orderInPriority)
IL_3393: stloc.s 92 (Verse.FloatMenuOption)
IL_3395: br => Label285
IL_339A: Label284
IL_339A: ldloc.s 91 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_27)
IL_339C: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_27::targPawn
IL_33A1: ldfld Verse.Pawn_HealthTracker Verse.Pawn::health
IL_33A6: ldfld Verse.HediffSet Verse.Pawn_HealthTracker::hediffSet
IL_33AB: ldsfld Verse.HediffDef RimWorld.HediffDefOf::XenogermLossShock
IL_33B0: ldc.i4.0
IL_33B1: callvirt System.Boolean Verse.HediffSet::HasHediff(Verse.HediffDef
def, System.Boolean mustBeVisible)
IL_33B6: brfalse => Label286
IL_33BB: ldstr "CannotAbsorbXenogerm"
IL_33C0: ldloc.s 91 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_27)
IL_33C2: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_27::targPawn
IL_33C7: ldstr "PAWN"
IL_33CC: call static Verse.NamedArgument
Verse.NamedArgumentUtility::Named(System.Object arg, System.String label)
IL_33D1: call static Verse.TaggedString
Verse.TranslatorFormattedStringExtensions::Translate(System.String key,
Verse.NamedArgument arg1)
IL_33D6: ldstr ": "
IL_33DB: call static Verse.TaggedString
Verse.TaggedString::op_Addition(Verse.TaggedString t1, System.String t2)
IL_33E0: ldstr "XenogermLossShockPresent"
IL_33E5: ldloc.s 91 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_27)
IL_33E7: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_27::targPawn
IL_33EC: ldstr "PAWN"
IL_33F1: call static Verse.NamedArgument
Verse.NamedArgumentUtility::Named(System.Object arg, System.String label)
IL_33F6: call static Verse.TaggedString
Verse.TranslatorFormattedStringExtensions::Translate(System.String key,
Verse.NamedArgument arg1)
IL_33FB: call static Verse.TaggedString
Verse.TaggedString::op_Addition(Verse.TaggedString t1, Verse.TaggedString t2)
IL_3400: call static System.String
Verse.TaggedString::op_Implicit(Verse.TaggedString taggedString)
IL_3405: ldnull
IL_3406: ldc.i4.4
IL_3407: ldnull
IL_3408: ldnull
IL_3409: ldc.r4 0
IL_340E: ldnull
IL_340F: ldnull
IL_3410: ldc.i4.1
IL_3411: ldc.i4.0
IL_3412: newobj System.Void Verse.FloatMenuOption::.ctor(System.String
label, System.Action action, Verse.MenuOptionPriority priority,
System.Action`1<UnityEngine.Rect> mouseoverGuiAction, Verse.Thing
revalidateClickTarget, System.Single extraPartWidth,
System.Func`2<UnityEngine.Rect, System.Boolean> extraPartOnGUI,
RimWorld.Planet.WorldObject revalidateWorldClickTarget, System.Boolean
playSelectionSound, System.Int32 orderInPriority)
IL_3417: stloc.s 92 (Verse.FloatMenuOption)
IL_3419: br => Label287
IL_341E: Label286
IL_341E: ldloc.s 91 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_27)
IL_3420: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_27::targPawn
IL_3425: ldloc.s 91 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_27)
IL_3427: ldfld RimWorld.<>c__DisplayClass10_0
RimWorld.<>c__DisplayClass10_27::CS$<>8__locals27
IL_342C: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_3431: call static System.Boolean
RimWorld.CompAbilityEffect_ReimplantXenogerm::PawnIdeoCanAcceptReimplant(Verse.Pawn
implanter, Verse.Pawn implantee)
IL_3436: brtrue => Label288
IL_343B: ldstr "CannotAbsorbXenogerm"
IL_3440: ldloc.s 91 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_27)
IL_3442: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_27::targPawn
IL_3447: ldstr "PAWN"
IL_344C: call static Verse.NamedArgument
Verse.NamedArgumentUtility::Named(System.Object arg, System.String label)
IL_3451: call static Verse.TaggedString
Verse.TranslatorFormattedStringExtensions::Translate(System.String key,
Verse.NamedArgument arg1)
IL_3456: ldstr ": "
IL_345B: call static Verse.TaggedString
Verse.TaggedString::op_Addition(Verse.TaggedString t1, System.String t2)
IL_3460: ldstr "IdeoligionForbids"
IL_3465: call static Verse.TaggedString
Verse.Translator::Translate(System.String key)
IL_346A: call static Verse.TaggedString
Verse.TaggedString::op_Addition(Verse.TaggedString t1, Verse.TaggedString t2)
IL_346F: call static System.String
Verse.TaggedString::op_Implicit(Verse.TaggedString taggedString)
IL_3474: ldnull
IL_3475: ldc.i4.4
IL_3476: ldnull
IL_3477: ldnull
IL_3478: ldc.r4 0
IL_347D: ldnull
IL_347E: ldnull
IL_347F: ldc.i4.1
IL_3480: ldc.i4.0
IL_3481: newobj System.Void Verse.FloatMenuOption::.ctor(System.String
label, System.Action action, Verse.MenuOptionPriority priority,
System.Action`1<UnityEngine.Rect> mouseoverGuiAction, Verse.Thing
revalidateClickTarget, System.Single extraPartWidth,
System.Func`2<UnityEngine.Rect, System.Boolean> extraPartOnGUI,
RimWorld.Planet.WorldObject revalidateWorldClickTarget, System.Boolean
playSelectionSound, System.Int32 orderInPriority)
IL_3486: stloc.s 92 (Verse.FloatMenuOption)
IL_3488: br => Label289
IL_348D: Label288
IL_348D: ldstr "AbsorbXenogerm"
IL_3492: ldloc.s 91 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_27)
IL_3494: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_27::targPawn
IL_3499: ldstr "PAWN"
IL_349E: call static Verse.NamedArgument
Verse.NamedArgumentUtility::Named(System.Object arg, System.String label)
IL_34A3: call static Verse.TaggedString
Verse.TranslatorFormattedStringExtensions::Translate(System.String key,
Verse.NamedArgument arg1)
IL_34A8: call static System.String
Verse.TaggedString::op_Implicit(Verse.TaggedString taggedString)
IL_34AD: ldloc.s 91 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_27)
IL_34AF: ldftn System.Void
RimWorld.<>c__DisplayClass10_27::<AddHumanlikeOrders>b__34()
IL_34B5: newobj System.Void System.Action::.ctor(System.Object object,
System.IntPtr method)
IL_34BA: ldc.i4.4
IL_34BB: ldnull
IL_34BC: ldnull
IL_34BD: ldc.r4 0
IL_34C2: ldnull
IL_34C3: ldnull
IL_34C4: ldc.i4.1
IL_34C5: ldc.i4.0
IL_34C6: newobj System.Void Verse.FloatMenuOption::.ctor(System.String
label, System.Action action, Verse.MenuOptionPriority priority,
System.Action`1<UnityEngine.Rect> mouseoverGuiAction, Verse.Thing
revalidateClickTarget, System.Single extraPartWidth,
System.Func`2<UnityEngine.Rect, System.Boolean> extraPartOnGUI,
RimWorld.Planet.WorldObject revalidateWorldClickTarget, System.Boolean
playSelectionSound, System.Int32 orderInPriority)
IL_34CB: ldloc.s 91 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_27)
IL_34CD: ldfld RimWorld.<>c__DisplayClass10_0
RimWorld.<>c__DisplayClass10_27::CS$<>8__locals27
IL_34D2: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_34D7: ldloc.s 91 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_27)
IL_34D9: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_27::targPawn
IL_34DE: call static Verse.LocalTargetInfo
Verse.LocalTargetInfo::op_Implicit(Verse.Thing t)
IL_34E3: ldstr "ReservedBy"
IL_34E8: ldnull
IL_34E9: call static Verse.FloatMenuOption
RimWorld.FloatMenuUtility::DecoratePrioritizedTask(Verse.FloatMenuOption option,
Verse.Pawn pawn, Verse.LocalTargetInfo target, System.String reservedText,
Verse.ReservationLayerDef layer)
IL_34EE: stloc.s 92 (Verse.FloatMenuOption)
IL_34F0: Label283
IL_34F0: Label285
IL_34F0: Label287
IL_34F0: Label289
IL_34F0: ldarg.2
IL_34F1: ldloc.s 92 (Verse.FloatMenuOption)
IL_34F3: callvirt virtual System.Void
System.Collections.Generic.List`1<Verse.FloatMenuOption>::Add(Verse.FloatMenuOption
item)
IL_34F8: Label280
IL_34F8: Label281
IL_34F8: ldloc.s 8
(System.Collections.Generic.IEnumerator`1[Verse.LocalTargetInfo])
IL_34FA: callvirt abstract virtual System.Boolean
System.Collections.IEnumerator::MoveNext()
IL_34FF: brtrue => Label290
IL_3504: leave => Label291
IL_3509: leave => (autogenerated)
} // end try
.finally
{
IL_350E: ldloc.s 8
(System.Collections.Generic.IEnumerator`1[Verse.LocalTargetInfo])
IL_3510: brfalse => Label292
IL_3515: ldloc.s 8
(System.Collections.Generic.IEnumerator`1[Verse.LocalTargetInfo])
IL_3517: callvirt abstract virtual System.Void
System.IDisposable::Dispose()
IL_351C: Label292
IL_351C: endfinally
IL_351D: leave => (autogenerated)
} // end handler
IL_351E: Label278
IL_351E: Label279
IL_351E: Label291
IL_351E: call static System.Boolean Verse.ModsConfig::get_BiotechActive()
IL_3523: brfalse => Label293
IL_3528: ldloc.0
IL_3529: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_352E: ldloca.s 33
(System.Nullable`1[RimWorld.ChildcareUtility+BreastfeedFailReason])
IL_3530: call static System.Boolean
RimWorld.ChildcareUtility::CanBreastfeed(Verse.Pawn mom, System.Nullable`1& reason)
IL_3535: brfalse => Label294
IL_353A: ldloc.0
IL_353B: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_3540: callvirt System.Boolean Verse.Pawn::get_Downed()
IL_3545: brtrue => Label295
IL_354A: ldloc.0
IL_354B: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_3550: callvirt System.Boolean Verse.Pawn::get_Drafted()
IL_3555: brtrue => Label296
IL_355A: ldarg.0
IL_355B: ldloc.0
IL_355C: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_3561: call static RimWorld.TargetingParameters
RimWorld.TargetingParameters::ForBabyCare(Verse.Pawn _)
IL_3566: ldc.i4.1
IL_3567: ldnull
IL_3568: call static
System.Collections.Generic.IEnumerable`1<Verse.LocalTargetInfo>
Verse.GenUI::TargetsAt(UnityEngine.Vector3 clickPos, RimWorld.TargetingParameters
clickParams, System.Boolean thingsOnly, RimWorld.ITargetingSource source)
IL_356D: callvirt abstract virtual
System.Collections.Generic.IEnumerator`1<Verse.LocalTargetInfo>
System.Collections.Generic.IEnumerable`1<Verse.LocalTargetInfo>::GetEnumerator()
IL_3572: stloc.s 8
(System.Collections.Generic.IEnumerator`1[Verse.LocalTargetInfo])
.try
{
IL_3574: br => Label297
IL_3579: Label302
IL_3579: ldloc.s 8
(System.Collections.Generic.IEnumerator`1[Verse.LocalTargetInfo])
IL_357B: callvirt abstract virtual Verse.LocalTargetInfo
System.Collections.Generic.IEnumerator`1<Verse.LocalTargetInfo>::get_Current()
IL_3580: stloc.s 93 (Verse.LocalTargetInfo)
IL_3582: newobj System.Void RimWorld.<>c__DisplayClass10_28::.ctor()
IL_3587: stloc.s 94 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_28)
IL_3589: ldloc.s 94 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_28)
IL_358B: ldloc.0
IL_358C: stfld RimWorld.<>c__DisplayClass10_0
RimWorld.<>c__DisplayClass10_28::CS$<>8__locals28
IL_3591: ldloc.s 94 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_28)
IL_3593: ldloca.s 93 (Verse.LocalTargetInfo)
IL_3595: call Verse.Thing Verse.LocalTargetInfo::get_Thing()
IL_359A: castclass Verse.Pawn
IL_359F: stfld Verse.Pawn RimWorld.<>c__DisplayClass10_28::baby
IL_35A4: ldloc.s 94 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_28)
IL_35A6: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_28::baby
IL_35AB: ldloca.s 33
(System.Nullable`1[RimWorld.ChildcareUtility+BreastfeedFailReason])
IL_35AD: call static System.Boolean
RimWorld.ChildcareUtility::CanSuckle(Verse.Pawn baby, System.Nullable`1& reason)
IL_35B2: brfalse => Label298
IL_35B7: ldloc.s 94 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_28)
IL_35B9: ldfld RimWorld.<>c__DisplayClass10_0
RimWorld.<>c__DisplayClass10_28::CS$<>8__locals28
IL_35BE: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_35C3: ldloc.s 94 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_28)
IL_35C5: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_28::baby
IL_35CA: call static System.Boolean
RimWorld.ChildcareUtility::HasBreastfeedCompatibleFactions(Verse.Pawn mom,
Verse.Pawn baby)
IL_35CF: brfalse => Label299
IL_35D4: ldloc.s 94 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_28)
IL_35D6: ldfld RimWorld.<>c__DisplayClass10_0
RimWorld.<>c__DisplayClass10_28::CS$<>8__locals28
IL_35DB: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_35E0: ldloc.s 94 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_28)
IL_35E2: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_28::baby
IL_35E7: ldc.i4.1
IL_35E8: ldloca.s 96
(System.Nullable`1[RimWorld.ChildcareUtility+BreastfeedFailReason])
IL_35EA: call static System.Boolean
RimWorld.ChildcareUtility::CanMomAutoBreastfeedBabyNow(Verse.Pawn mother,
Verse.Pawn baby, System.Boolean forced, System.Nullable`1& reason)
IL_35EF: brtrue => Label300
IL_35F4: ldstr "BabyCareBreastfeedUnable"
IL_35F9: ldloc.s 94 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_28)
IL_35FB: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_28::baby
IL_3600: ldstr "BABY"
IL_3605: call static Verse.NamedArgument
Verse.NamedArgumentUtility::Named(System.Object arg, System.String label)
IL_360A: call static Verse.TaggedString
Verse.TranslatorFormattedStringExtensions::Translate(System.String key,
Verse.NamedArgument arg1)
IL_360F: ldstr ": "
IL_3614: call static Verse.TaggedString
Verse.TaggedString::op_Addition(Verse.TaggedString t1, System.String t2)
IL_3619: ldloca.s 96
(System.Nullable`1[RimWorld.ChildcareUtility+BreastfeedFailReason])
IL_361B: call RimWorld.BreastfeedFailReason
System.Nullable`1<RimWorld.BreastfeedFailReason>::get_Value()
IL_3620: ldloc.s 94 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_28)
IL_3622: ldfld RimWorld.<>c__DisplayClass10_0
RimWorld.<>c__DisplayClass10_28::CS$<>8__locals28
IL_3627: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_362C: ldloc.s 94 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_28)
IL_362E: ldfld RimWorld.<>c__DisplayClass10_0
RimWorld.<>c__DisplayClass10_28::CS$<>8__locals28
IL_3633: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_3638: ldloc.s 94 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_28)
IL_363A: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_28::baby
IL_363F: call static Verse.TaggedString
RimWorld.ChildcareUtility::Translate(RimWorld.BreastfeedFailReason reason,
Verse.Pawn hauler, Verse.Pawn mom, Verse.Pawn baby)
IL_3644: stloc.s 11 (Verse.TaggedString)
IL_3646: ldloca.s 11 (Verse.TaggedString)
IL_3648: call Verse.TaggedString Verse.TaggedString::CapitalizeFirst()
IL_364D: call static Verse.TaggedString
Verse.TaggedString::op_Addition(Verse.TaggedString t1, Verse.TaggedString t2)
IL_3652: call static System.String
Verse.TaggedString::op_Implicit(Verse.TaggedString taggedString)
IL_3657: ldnull
IL_3658: ldc.i4.4
IL_3659: ldnull
IL_365A: ldnull
IL_365B: ldc.r4 0
IL_3660: ldnull
IL_3661: ldnull
IL_3662: ldc.i4.1
IL_3663: ldc.i4.0
IL_3664: newobj System.Void Verse.FloatMenuOption::.ctor(System.String
label, System.Action action, Verse.MenuOptionPriority priority,
System.Action`1<UnityEngine.Rect> mouseoverGuiAction, Verse.Thing
revalidateClickTarget, System.Single extraPartWidth,
System.Func`2<UnityEngine.Rect, System.Boolean> extraPartOnGUI,
RimWorld.Planet.WorldObject revalidateWorldClickTarget, System.Boolean
playSelectionSound, System.Int32 orderInPriority)
IL_3669: stloc.s 95 (Verse.FloatMenuOption)
IL_366B: br => Label301
IL_3670: Label300
IL_3670: ldstr "BabyCareBreastfeed"
IL_3675: ldloc.s 94 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_28)
IL_3677: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_28::baby
IL_367C: ldstr "BABY"
IL_3681: call static Verse.NamedArgument
Verse.NamedArgumentUtility::Named(System.Object arg, System.String label)
IL_3686: call static Verse.TaggedString
Verse.TranslatorFormattedStringExtensions::Translate(System.String key,
Verse.NamedArgument arg1)
IL_368B: call static System.String
Verse.TaggedString::op_Implicit(Verse.TaggedString taggedString)
IL_3690: ldloc.s 94 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_28)
IL_3692: ldftn System.Void
RimWorld.<>c__DisplayClass10_28::<AddHumanlikeOrders>b__36()
IL_3698: newobj System.Void System.Action::.ctor(System.Object object,
System.IntPtr method)
IL_369D: ldc.i4.4
IL_369E: ldnull
IL_369F: ldnull
IL_36A0: ldc.r4 0
IL_36A5: ldnull
IL_36A6: ldnull
IL_36A7: ldc.i4.1
IL_36A8: ldc.i4.0
IL_36A9: newobj System.Void Verse.FloatMenuOption::.ctor(System.String
label, System.Action action, Verse.MenuOptionPriority priority,
System.Action`1<UnityEngine.Rect> mouseoverGuiAction, Verse.Thing
revalidateClickTarget, System.Single extraPartWidth,
System.Func`2<UnityEngine.Rect, System.Boolean> extraPartOnGUI,
RimWorld.Planet.WorldObject revalidateWorldClickTarget, System.Boolean
playSelectionSound, System.Int32 orderInPriority)
IL_36AE: ldloc.s 94 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_28)
IL_36B0: ldfld RimWorld.<>c__DisplayClass10_0
RimWorld.<>c__DisplayClass10_28::CS$<>8__locals28
IL_36B5: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_36BA: ldloc.s 94 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_28)
IL_36BC: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_28::baby
IL_36C1: call static Verse.LocalTargetInfo
Verse.LocalTargetInfo::op_Implicit(Verse.Thing t)
IL_36C6: ldstr "ReservedBy"
IL_36CB: ldnull
IL_36CC: call static Verse.FloatMenuOption
RimWorld.FloatMenuUtility::DecoratePrioritizedTask(Verse.FloatMenuOption option,
Verse.Pawn pawn, Verse.LocalTargetInfo target, System.String reservedText,
Verse.ReservationLayerDef layer)
IL_36D1: stloc.s 95 (Verse.FloatMenuOption)
IL_36D3: Label301
IL_36D3: ldarg.2
IL_36D4: ldloc.s 95 (Verse.FloatMenuOption)
IL_36D6: callvirt virtual System.Void
System.Collections.Generic.List`1<Verse.FloatMenuOption>::Add(Verse.FloatMenuOption
item)
IL_36DB: Label297
IL_36DB: Label298
IL_36DB: Label299
IL_36DB: ldloc.s 8
(System.Collections.Generic.IEnumerator`1[Verse.LocalTargetInfo])
IL_36DD: callvirt abstract virtual System.Boolean
System.Collections.IEnumerator::MoveNext()
IL_36E2: brtrue => Label302
IL_36E7: leave => Label303
IL_36EC: leave => (autogenerated)
} // end try
.finally
{
IL_36F1: ldloc.s 8
(System.Collections.Generic.IEnumerator`1[Verse.LocalTargetInfo])
IL_36F3: brfalse => Label304
IL_36F8: ldloc.s 8
(System.Collections.Generic.IEnumerator`1[Verse.LocalTargetInfo])
IL_36FA: callvirt abstract virtual System.Void
System.IDisposable::Dispose()
IL_36FF: Label304
IL_36FF: endfinally
IL_3700: leave => (autogenerated)
} // end handler
IL_3701: Label293
IL_3701: Label294
IL_3701: Label295
IL_3701: Label296
IL_3701: Label303
IL_3701: ldloc.0
IL_3702: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_3707: callvirt System.Boolean Verse.Pawn::get_Drafted()
IL_370C: brtrue => Label305
IL_3711: call static System.Boolean Verse.ModsConfig::get_BiotechActive()
IL_3716: brfalse => Label306
IL_371B: ldarg.0
IL_371C: ldloc.0
IL_371D: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_3722: call static RimWorld.TargetingParameters
RimWorld.TargetingParameters::ForRomance(Verse.Pawn _)
IL_3727: ldc.i4.1
IL_3728: ldnull
IL_3729: call static
System.Collections.Generic.IEnumerable`1<Verse.LocalTargetInfo>
Verse.GenUI::TargetsAt(UnityEngine.Vector3 clickPos, RimWorld.TargetingParameters
clickParams, System.Boolean thingsOnly, RimWorld.ITargetingSource source)
IL_372E: callvirt abstract virtual
System.Collections.Generic.IEnumerator`1<Verse.LocalTargetInfo>
System.Collections.Generic.IEnumerable`1<Verse.LocalTargetInfo>::GetEnumerator()
IL_3733: stloc.s 8
(System.Collections.Generic.IEnumerator`1[Verse.LocalTargetInfo])
.try
{
IL_3735: br => Label307
IL_373A: Label313
IL_373A: ldloc.s 8
(System.Collections.Generic.IEnumerator`1[Verse.LocalTargetInfo])
IL_373C: callvirt abstract virtual Verse.LocalTargetInfo
System.Collections.Generic.IEnumerator`1<Verse.LocalTargetInfo>::get_Current()
IL_3741: stloc.s 97 (Verse.LocalTargetInfo)
IL_3743: ldloca.s 97 (Verse.LocalTargetInfo)
IL_3745: call Verse.Thing Verse.LocalTargetInfo::get_Thing()
IL_374A: castclass Verse.Pawn
IL_374F: stloc.s 98 (Verse.Pawn)
IL_3751: ldloc.s 98 (Verse.Pawn)
IL_3753: callvirt System.Boolean Verse.Pawn::get_Drafted()
IL_3758: brtrue => Label308
IL_375D: ldloc.s 98 (Verse.Pawn)
IL_375F: ldloca.s 33
(System.Nullable`1[RimWorld.ChildcareUtility+BreastfeedFailReason])
IL_3761: call static System.Boolean
RimWorld.ChildcareUtility::CanSuckle(Verse.Pawn baby, System.Nullable`1& reason)
IL_3766: brtrue => Label309
IL_376B: ldloc.0
IL_376C: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_3771: ldloc.s 98 (Verse.Pawn)
IL_3773: ldloca.s 100 (Verse.FloatMenuOption)
IL_3775: ldloca.s 101 (System.Single)
IL_3777: call static System.Boolean
RimWorld.RelationsUtility::RomanceOption(Verse.Pawn initiator, Verse.Pawn
romanceTarget, Verse.FloatMenuOption& option, System.Single& chance)
IL_377C: stloc.s 99 (System.Boolean)
IL_377E: ldloc.s 100 (Verse.FloatMenuOption)
IL_3780: brfalse => Label310
IL_3785: ldloc.s 100 (Verse.FloatMenuOption)
IL_3787: ldloc.s 99 (System.Boolean)
IL_3789: brtrue => Label311
IL_378E: ldstr "CannotRomance"
IL_3793: br => Label312
IL_3798: Label311
IL_3798: ldstr "CanRomance"
IL_379D: Label312
IL_379D: ldloc.s 100 (Verse.FloatMenuOption)
IL_379F: callvirt System.String Verse.FloatMenuOption::get_Label()
IL_37A4: call static Verse.NamedArgument
Verse.NamedArgument::op_Implicit(System.String value)
IL_37A9: call static Verse.TaggedString
Verse.TranslatorFormattedStringExtensions::Translate(System.String key,
Verse.NamedArgument arg1)
IL_37AE: call static System.String
Verse.TaggedString::op_Implicit(Verse.TaggedString taggedString)
IL_37B3: callvirt System.Void
Verse.FloatMenuOption::set_Label(System.String value)
IL_37B8: ldarg.2
IL_37B9: ldloc.s 100 (Verse.FloatMenuOption)
IL_37BB: callvirt virtual System.Void
System.Collections.Generic.List`1<Verse.FloatMenuOption>::Add(Verse.FloatMenuOption
item)
IL_37C0: Label307
IL_37C0: Label308
IL_37C0: Label309
IL_37C0: Label310
IL_37C0: ldloc.s 8
(System.Collections.Generic.IEnumerator`1[Verse.LocalTargetInfo])
IL_37C2: callvirt abstract virtual System.Boolean
System.Collections.IEnumerator::MoveNext()
IL_37C7: brtrue => Label313
IL_37CC: leave => Label314
IL_37D1: leave => (autogenerated)
} // end try
.finally
{
IL_37D6: ldloc.s 8
(System.Collections.Generic.IEnumerator`1[Verse.LocalTargetInfo])
IL_37D8: brfalse => Label315
IL_37DD: ldloc.s 8
(System.Collections.Generic.IEnumerator`1[Verse.LocalTargetInfo])
IL_37DF: callvirt abstract virtual System.Void
System.IDisposable::Dispose()
IL_37E4: Label315
IL_37E4: endfinally
IL_37E5: leave => (autogenerated)
} // end handler
IL_37E6: Label305
IL_37E6: Label306
IL_37E6: Label314
IL_37E6: ldarg.0
IL_37E7: ldloc.0
IL_37E8: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_37ED: call static RimWorld.TargetingParameters
RimWorld.TargetingParameters::ForStrip(Verse.Pawn p)
IL_37F2: ldc.i4.1
IL_37F3: ldnull
IL_37F4: call static
System.Collections.Generic.IEnumerable`1<Verse.LocalTargetInfo>
Verse.GenUI::TargetsAt(UnityEngine.Vector3 clickPos, RimWorld.TargetingParameters
clickParams, System.Boolean thingsOnly, RimWorld.ITargetingSource source)
IL_37F9: callvirt abstract virtual
System.Collections.Generic.IEnumerator`1<Verse.LocalTargetInfo>
System.Collections.Generic.IEnumerable`1<Verse.LocalTargetInfo>::GetEnumerator()
IL_37FE: stloc.s 8
(System.Collections.Generic.IEnumerator`1[Verse.LocalTargetInfo])
.try
{
IL_3800: br => Label316
IL_3805: Label322
IL_3805: ldloc.s 8
(System.Collections.Generic.IEnumerator`1[Verse.LocalTargetInfo])
IL_3807: callvirt abstract virtual Verse.LocalTargetInfo
System.Collections.Generic.IEnumerator`1<Verse.LocalTargetInfo>::get_Current()
IL_380C: stloc.s 102 (Verse.LocalTargetInfo)
IL_380E: newobj System.Void RimWorld.<>c__DisplayClass10_29::.ctor()
IL_3813: stloc.s 103 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_29)
IL_3815: ldloc.s 103 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_29)
IL_3817: ldloc.0
IL_3818: stfld RimWorld.<>c__DisplayClass10_0
RimWorld.<>c__DisplayClass10_29::CS$<>8__locals29
IL_381D: ldloc.s 103 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_29)
IL_381F: ldloc.s 102 (Verse.LocalTargetInfo)
IL_3821: stfld Verse.LocalTargetInfo
RimWorld.<>c__DisplayClass10_29::stripTarg
IL_3826: ldloc.s 103 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_29)
IL_3828: ldfld RimWorld.<>c__DisplayClass10_0
RimWorld.<>c__DisplayClass10_29::CS$<>8__locals29
IL_382D: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_3832: ldloc.s 103 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_29)
IL_3834: ldfld Verse.LocalTargetInfo
RimWorld.<>c__DisplayClass10_29::stripTarg
IL_3839: ldc.i4.3
IL_383A: ldc.i4.3
IL_383B: ldc.i4.0
IL_383C: ldc.i4.0
IL_383D: ldc.i4.0
IL_383E: call static System.Boolean
Verse.ReachabilityUtility::CanReach(Verse.Pawn pawn, Verse.LocalTargetInfo dest,
Verse.AI.PathEndMode peMode, Verse.Danger maxDanger, System.Boolean canBashDoors,
System.Boolean canBashFences, Verse.TraverseMode mode)
IL_3843: brtrue => Label317
IL_3848: ldstr "CannotStrip"
IL_384D: ldloc.s 103 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_29)
IL_384F: ldflda Verse.LocalTargetInfo
RimWorld.<>c__DisplayClass10_29::stripTarg
IL_3854: call Verse.Thing Verse.LocalTargetInfo::get_Thing()
IL_3859: callvirt abstract virtual System.String
Verse.Entity::get_LabelCap()
IL_385E: call static Verse.NamedArgument
Verse.NamedArgument::op_Implicit(System.String value)
IL_3863: ldloc.s 103 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_29)
IL_3865: ldflda Verse.LocalTargetInfo
RimWorld.<>c__DisplayClass10_29::stripTarg
IL_386A: call Verse.Thing Verse.LocalTargetInfo::get_Thing()
IL_386F: call static Verse.NamedArgument
Verse.NamedArgument::op_Implicit(Verse.Thing value)
IL_3874: call static Verse.TaggedString
Verse.TranslatorFormattedStringExtensions::Translate(System.String key,
Verse.NamedArgument arg1, Verse.NamedArgument arg2)
IL_3879: ldstr ": "
IL_387E: call static Verse.TaggedString
Verse.TaggedString::op_Addition(Verse.TaggedString t1, System.String t2)
IL_3883: ldstr "NoPath"
IL_3888: call static Verse.TaggedString
Verse.Translator::Translate(System.String key)
IL_388D: stloc.s 11 (Verse.TaggedString)
IL_388F: ldloca.s 11 (Verse.TaggedString)
IL_3891: call Verse.TaggedString Verse.TaggedString::CapitalizeFirst()
IL_3896: call static Verse.TaggedString
Verse.TaggedString::op_Addition(Verse.TaggedString t1, Verse.TaggedString t2)
IL_389B: call static System.String
Verse.TaggedString::op_Implicit(Verse.TaggedString taggedString)
IL_38A0: ldnull
IL_38A1: ldc.i4.4
IL_38A2: ldnull
IL_38A3: ldnull
IL_38A4: ldc.r4 0
IL_38A9: ldnull
IL_38AA: ldnull
IL_38AB: ldc.i4.1
IL_38AC: ldc.i4.0
IL_38AD: newobj System.Void Verse.FloatMenuOption::.ctor(System.String
label, System.Action action, Verse.MenuOptionPriority priority,
System.Action`1<UnityEngine.Rect> mouseoverGuiAction, Verse.Thing
revalidateClickTarget, System.Single extraPartWidth,
System.Func`2<UnityEngine.Rect, System.Boolean> extraPartOnGUI,
RimWorld.Planet.WorldObject revalidateWorldClickTarget, System.Boolean
playSelectionSound, System.Int32 orderInPriority)
IL_38B2: stloc.s 104 (Verse.FloatMenuOption)
IL_38B4: br => Label318
IL_38B9: Label317
IL_38B9: ldloc.s 103 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_29)
IL_38BB: ldflda Verse.LocalTargetInfo
RimWorld.<>c__DisplayClass10_29::stripTarg
IL_38C0: call Verse.Pawn Verse.LocalTargetInfo::get_Pawn()
IL_38C5: brfalse => Label319
IL_38CA: ldloc.s 103 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_29)
IL_38CC: ldflda Verse.LocalTargetInfo
RimWorld.<>c__DisplayClass10_29::stripTarg
IL_38D1: call Verse.Pawn Verse.LocalTargetInfo::get_Pawn()
IL_38D6: ldnull
IL_38D7: call static System.Boolean
RimWorld.QuestUtility::HasExtraHomeFaction(Verse.Pawn p, RimWorld.Quest forQuest)
IL_38DC: brfalse => Label320
IL_38E1: ldstr "CannotStrip"
IL_38E6: ldloc.s 103 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_29)
IL_38E8: ldflda Verse.LocalTargetInfo
RimWorld.<>c__DisplayClass10_29::stripTarg
IL_38ED: call Verse.Thing Verse.LocalTargetInfo::get_Thing()
IL_38F2: callvirt abstract virtual System.String
Verse.Entity::get_LabelCap()
IL_38F7: call static Verse.NamedArgument
Verse.NamedArgument::op_Implicit(System.String value)
IL_38FC: ldloc.s 103 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_29)
IL_38FE: ldflda Verse.LocalTargetInfo
RimWorld.<>c__DisplayClass10_29::stripTarg
IL_3903: call Verse.Thing Verse.LocalTargetInfo::get_Thing()
IL_3908: call static Verse.NamedArgument
Verse.NamedArgument::op_Implicit(Verse.Thing value)
IL_390D: call static Verse.TaggedString
Verse.TranslatorFormattedStringExtensions::Translate(System.String key,
Verse.NamedArgument arg1, Verse.NamedArgument arg2)
IL_3912: ldstr ": "
IL_3917: call static Verse.TaggedString
Verse.TaggedString::op_Addition(Verse.TaggedString t1, System.String t2)
IL_391C: ldstr "QuestRelated"
IL_3921: call static Verse.TaggedString
Verse.Translator::Translate(System.String key)
IL_3926: stloc.s 11 (Verse.TaggedString)
IL_3928: ldloca.s 11 (Verse.TaggedString)
IL_392A: call Verse.TaggedString Verse.TaggedString::CapitalizeFirst()
IL_392F: call static Verse.TaggedString
Verse.TaggedString::op_Addition(Verse.TaggedString t1, Verse.TaggedString t2)
IL_3934: call static System.String
Verse.TaggedString::op_Implicit(Verse.TaggedString taggedString)
IL_3939: ldnull
IL_393A: ldc.i4.4
IL_393B: ldnull
IL_393C: ldnull
IL_393D: ldc.r4 0
IL_3942: ldnull
IL_3943: ldnull
IL_3944: ldc.i4.1
IL_3945: ldc.i4.0
IL_3946: newobj System.Void Verse.FloatMenuOption::.ctor(System.String
label, System.Action action, Verse.MenuOptionPriority priority,
System.Action`1<UnityEngine.Rect> mouseoverGuiAction, Verse.Thing
revalidateClickTarget, System.Single extraPartWidth,
System.Func`2<UnityEngine.Rect, System.Boolean> extraPartOnGUI,
RimWorld.Planet.WorldObject revalidateWorldClickTarget, System.Boolean
playSelectionSound, System.Int32 orderInPriority)
IL_394B: stloc.s 104 (Verse.FloatMenuOption)
IL_394D: br => Label321
IL_3952: Label319
IL_3952: Label320
IL_3952: ldstr "Strip"
IL_3957: ldloc.s 103 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_29)
IL_3959: ldflda Verse.LocalTargetInfo
RimWorld.<>c__DisplayClass10_29::stripTarg
IL_395E: call Verse.Thing Verse.LocalTargetInfo::get_Thing()
IL_3963: callvirt abstract virtual System.String
Verse.Entity::get_LabelCap()
IL_3968: call static Verse.NamedArgument
Verse.NamedArgument::op_Implicit(System.String value)
IL_396D: ldloc.s 103 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_29)
IL_396F: ldflda Verse.LocalTargetInfo
RimWorld.<>c__DisplayClass10_29::stripTarg
IL_3974: call Verse.Thing Verse.LocalTargetInfo::get_Thing()
IL_3979: call static Verse.NamedArgument
Verse.NamedArgument::op_Implicit(Verse.Thing value)
IL_397E: call static Verse.TaggedString
Verse.TranslatorFormattedStringExtensions::Translate(System.String key,
Verse.NamedArgument arg1, Verse.NamedArgument arg2)
IL_3983: call static System.String
Verse.TaggedString::op_Implicit(Verse.TaggedString taggedString)
IL_3988: ldloc.s 103 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_29)
IL_398A: ldftn System.Void
RimWorld.<>c__DisplayClass10_29::<AddHumanlikeOrders>b__37()
IL_3990: newobj System.Void System.Action::.ctor(System.Object object,
System.IntPtr method)
IL_3995: ldc.i4.4
IL_3996: ldnull
IL_3997: ldnull
IL_3998: ldc.r4 0
IL_399D: ldnull
IL_399E: ldnull
IL_399F: ldc.i4.1
IL_39A0: ldc.i4.0
IL_39A1: newobj System.Void Verse.FloatMenuOption::.ctor(System.String
label, System.Action action, Verse.MenuOptionPriority priority,
System.Action`1<UnityEngine.Rect> mouseoverGuiAction, Verse.Thing
revalidateClickTarget, System.Single extraPartWidth,
System.Func`2<UnityEngine.Rect, System.Boolean> extraPartOnGUI,
RimWorld.Planet.WorldObject revalidateWorldClickTarget, System.Boolean
playSelectionSound, System.Int32 orderInPriority)
IL_39A6: ldloc.s 103 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_29)
IL_39A8: ldfld RimWorld.<>c__DisplayClass10_0
RimWorld.<>c__DisplayClass10_29::CS$<>8__locals29
IL_39AD: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_39B2: ldloc.s 103 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_29)
IL_39B4: ldfld Verse.LocalTargetInfo
RimWorld.<>c__DisplayClass10_29::stripTarg
IL_39B9: ldstr "ReservedBy"
IL_39BE: ldnull
IL_39BF: call static Verse.FloatMenuOption
RimWorld.FloatMenuUtility::DecoratePrioritizedTask(Verse.FloatMenuOption option,
Verse.Pawn pawn, Verse.LocalTargetInfo target, System.String reservedText,
Verse.ReservationLayerDef layer)
IL_39C4: stloc.s 104 (Verse.FloatMenuOption)
IL_39C6: Label318
IL_39C6: Label321
IL_39C6: ldarg.2
IL_39C7: ldloc.s 104 (Verse.FloatMenuOption)
IL_39C9: callvirt virtual System.Void
System.Collections.Generic.List`1<Verse.FloatMenuOption>::Add(Verse.FloatMenuOption
item)
IL_39CE: Label316
IL_39CE: ldloc.s 8
(System.Collections.Generic.IEnumerator`1[Verse.LocalTargetInfo])
IL_39D0: callvirt abstract virtual System.Boolean
System.Collections.IEnumerator::MoveNext()
IL_39D5: brtrue => Label322
IL_39DA: leave => Label323
IL_39DF: leave => (autogenerated)
} // end try
.finally
{
IL_39E4: ldloc.s 8
(System.Collections.Generic.IEnumerator`1[Verse.LocalTargetInfo])
IL_39E6: brfalse => Label324
IL_39EB: ldloc.s 8
(System.Collections.Generic.IEnumerator`1[Verse.LocalTargetInfo])
IL_39ED: callvirt abstract virtual System.Void
System.IDisposable::Dispose()
IL_39F2: Label324
IL_39F2: endfinally
IL_39F3: leave => (autogenerated)
} // end handler
IL_39F4: Label323
IL_39F4: ldloc.0
IL_39F5: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_39FA: ldfld Verse.Pawn_EquipmentTracker Verse.Pawn::equipment
IL_39FF: brfalse => Label325
IL_3A04: ldloc.1
IL_3A05: ldloc.0
IL_3A06: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_3A0B: callvirt virtual Verse.Map Verse.Thing::get_Map()
IL_3A10: call static System.Collections.Generic.List`1<Verse.Thing>
Verse.GridsUtility::GetThingList(Verse.IntVec3 c, Verse.Map map)
IL_3A15: stloc.s 105 (System.Collections.Generic.List`1[Verse.Thing])
IL_3A17: ldc.i4.0
IL_3A18: stloc.s 106 (System.Int32)
IL_3A1A: br => Label326
IL_3A1F: Label350
IL_3A1F: newobj System.Void RimWorld.<>c__DisplayClass10_30::.ctor()
IL_3A24: stloc.s 107 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_30)
IL_3A26: ldloc.s 107 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_30)
IL_3A28: ldloc.0
IL_3A29: stfld RimWorld.<>c__DisplayClass10_0
RimWorld.<>c__DisplayClass10_30::CS$<>8__locals30
IL_3A2E: ldloc.s 105 (System.Collections.Generic.List`1[Verse.Thing])
IL_3A30: ldloc.s 106 (System.Int32)
IL_3A32: callvirt virtual Verse.Thing
System.Collections.Generic.List`1<Verse.Thing>::get_Item(System.Int32 index)
IL_3A37: call static Verse.CompEquippable
Verse.ThingCompUtility::TryGetComp(Verse.Thing thing)
IL_3A3C: brfalse => Label327
IL_3A41: ldloc.s 107 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_30)
IL_3A43: ldloc.s 105 (System.Collections.Generic.List`1[Verse.Thing])
IL_3A45: ldloc.s 106 (System.Int32)
IL_3A47: callvirt virtual Verse.Thing
System.Collections.Generic.List`1<Verse.Thing>::get_Item(System.Int32 index)
IL_3A4C: castclass Verse.ThingWithComps
IL_3A51: stfld Verse.ThingWithComps RimWorld.<>c__DisplayClass10_30::equipment
IL_3A56: ldloc.s 107 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_30)
IL_3A58: ldfld Verse.ThingWithComps RimWorld.<>c__DisplayClass10_30::equipment
IL_3A5D: callvirt virtual System.String Verse.Entity::get_LabelShort()
IL_3A62: stloc.s 110 (System.String)
IL_3A64: ldloc.s 107 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_30)
IL_3A66: ldfld Verse.ThingWithComps RimWorld.<>c__DisplayClass10_30::equipment
IL_3A6B: ldfld Verse.ThingDef Verse.Thing::def
IL_3A70: callvirt System.Boolean Verse.ThingDef::get_IsWeapon()
IL_3A75: brfalse => Label328
IL_3A7A: ldloc.s 107 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_30)
IL_3A7C: ldfld RimWorld.<>c__DisplayClass10_0
RimWorld.<>c__DisplayClass10_30::CS$<>8__locals30
IL_3A81: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_3A86: ldc.i4.8
IL_3A87: callvirt System.Boolean Verse.Pawn::WorkTagIsDisabled(Verse.WorkTags w)
IL_3A8C: brfalse => Label329
IL_3A91: ldstr "CannotEquip"
IL_3A96: ldloc.s 110 (System.String)
IL_3A98: call static Verse.NamedArgument
Verse.NamedArgument::op_Implicit(System.String value)
IL_3A9D: call static Verse.TaggedString
Verse.TranslatorFormattedStringExtensions::Translate(System.String key,
Verse.NamedArgument arg1)
IL_3AA2: ldstr ": "
IL_3AA7: call static Verse.TaggedString
Verse.TaggedString::op_Addition(Verse.TaggedString t1, System.String t2)
IL_3AAC: ldstr "IsIncapableOfViolenceLower"
IL_3AB1: ldloc.s 107 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_30)
IL_3AB3: ldfld RimWorld.<>c__DisplayClass10_0
RimWorld.<>c__DisplayClass10_30::CS$<>8__locals30
IL_3AB8: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_3ABD: callvirt virtual System.String Verse.Entity::get_LabelShort()
IL_3AC2: call static Verse.NamedArgument
Verse.NamedArgument::op_Implicit(System.String value)
IL_3AC7: ldloc.s 107 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_30)
IL_3AC9: ldfld RimWorld.<>c__DisplayClass10_0
RimWorld.<>c__DisplayClass10_30::CS$<>8__locals30
IL_3ACE: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_3AD3: call static Verse.NamedArgument
Verse.NamedArgument::op_Implicit(Verse.Thing value)
IL_3AD8: call static Verse.TaggedString
Verse.TranslatorFormattedStringExtensions::Translate(System.String key,
Verse.NamedArgument arg1, Verse.NamedArgument arg2)
IL_3ADD: call static Verse.TaggedString
Verse.TaggedString::op_Addition(Verse.TaggedString t1, Verse.TaggedString t2)
IL_3AE2: call static System.String
Verse.TaggedString::op_Implicit(Verse.TaggedString taggedString)
IL_3AE7: ldnull
IL_3AE8: ldc.i4.4
IL_3AE9: ldnull
IL_3AEA: ldnull
IL_3AEB: ldc.r4 0
IL_3AF0: ldnull
IL_3AF1: ldnull
IL_3AF2: ldc.i4.1
IL_3AF3: ldc.i4.0
IL_3AF4: newobj System.Void Verse.FloatMenuOption::.ctor(System.String label,
System.Action action, Verse.MenuOptionPriority priority,
System.Action`1<UnityEngine.Rect> mouseoverGuiAction, Verse.Thing
revalidateClickTarget, System.Single extraPartWidth,
System.Func`2<UnityEngine.Rect, System.Boolean> extraPartOnGUI,
RimWorld.Planet.WorldObject revalidateWorldClickTarget, System.Boolean
playSelectionSound, System.Int32 orderInPriority)
IL_3AF9: stloc.s 109 (Verse.FloatMenuOption)
IL_3AFB: br => Label330
IL_3B00: Label328
IL_3B00: Label329
IL_3B00: ldloc.s 107 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_30)
IL_3B02: ldfld Verse.ThingWithComps RimWorld.<>c__DisplayClass10_30::equipment
IL_3B07: ldfld Verse.ThingDef Verse.Thing::def
IL_3B0C: callvirt System.Boolean Verse.ThingDef::get_IsRangedWeapon()
IL_3B11: brfalse => Label331
IL_3B16: ldloc.s 107 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_30)
IL_3B18: ldfld RimWorld.<>c__DisplayClass10_0
RimWorld.<>c__DisplayClass10_30::CS$<>8__locals30
IL_3B1D: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_3B22: ldc.i4 524288
IL_3B27: callvirt System.Boolean Verse.Pawn::WorkTagIsDisabled(Verse.WorkTags w)
IL_3B2C: brfalse => Label332
IL_3B31: ldstr "CannotEquip"
IL_3B36: ldloc.s 110 (System.String)
IL_3B38: call static Verse.NamedArgument
Verse.NamedArgument::op_Implicit(System.String value)
IL_3B3D: call static Verse.TaggedString
Verse.TranslatorFormattedStringExtensions::Translate(System.String key,
Verse.NamedArgument arg1)
IL_3B42: ldstr ": "
IL_3B47: call static Verse.TaggedString
Verse.TaggedString::op_Addition(Verse.TaggedString t1, System.String t2)
IL_3B4C: ldstr "IsIncapableOfShootingLower"
IL_3B51: ldloc.s 107 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_30)
IL_3B53: ldfld RimWorld.<>c__DisplayClass10_0
RimWorld.<>c__DisplayClass10_30::CS$<>8__locals30
IL_3B58: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_3B5D: call static Verse.NamedArgument
Verse.NamedArgument::op_Implicit(Verse.Thing value)
IL_3B62: call static Verse.TaggedString
Verse.TranslatorFormattedStringExtensions::Translate(System.String key,
Verse.NamedArgument arg1)
IL_3B67: call static Verse.TaggedString
Verse.TaggedString::op_Addition(Verse.TaggedString t1, Verse.TaggedString t2)
IL_3B6C: call static System.String
Verse.TaggedString::op_Implicit(Verse.TaggedString taggedString)
IL_3B71: ldnull
IL_3B72: ldc.i4.4
IL_3B73: ldnull
IL_3B74: ldnull
IL_3B75: ldc.r4 0
IL_3B7A: ldnull
IL_3B7B: ldnull
IL_3B7C: ldc.i4.1
IL_3B7D: ldc.i4.0
IL_3B7E: newobj System.Void Verse.FloatMenuOption::.ctor(System.String label,
System.Action action, Verse.MenuOptionPriority priority,
System.Action`1<UnityEngine.Rect> mouseoverGuiAction, Verse.Thing
revalidateClickTarget, System.Single extraPartWidth,
System.Func`2<UnityEngine.Rect, System.Boolean> extraPartOnGUI,
RimWorld.Planet.WorldObject revalidateWorldClickTarget, System.Boolean
playSelectionSound, System.Int32 orderInPriority)
IL_3B83: stloc.s 109 (Verse.FloatMenuOption)
IL_3B85: br => Label333
IL_3B8A: Label331
IL_3B8A: Label332
IL_3B8A: ldloc.s 107 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_30)
IL_3B8C: ldfld RimWorld.<>c__DisplayClass10_0
RimWorld.<>c__DisplayClass10_30::CS$<>8__locals30
IL_3B91: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_3B96: ldloc.s 107 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_30)
IL_3B98: ldfld Verse.ThingWithComps RimWorld.<>c__DisplayClass10_30::equipment
IL_3B9D: call static Verse.LocalTargetInfo
Verse.LocalTargetInfo::op_Implicit(Verse.Thing t)
IL_3BA2: ldc.i4.3
IL_3BA3: ldc.i4.3
IL_3BA4: ldc.i4.0
IL_3BA5: ldc.i4.0
IL_3BA6: ldc.i4.0
IL_3BA7: call static System.Boolean
Verse.ReachabilityUtility::CanReach(Verse.Pawn pawn, Verse.LocalTargetInfo dest,
Verse.AI.PathEndMode peMode, Verse.Danger maxDanger, System.Boolean canBashDoors,
System.Boolean canBashFences, Verse.TraverseMode mode)
IL_3BAC: brtrue => Label334
IL_3BB1: ldstr "CannotEquip"
IL_3BB6: ldloc.s 110 (System.String)
IL_3BB8: call static Verse.NamedArgument
Verse.NamedArgument::op_Implicit(System.String value)
IL_3BBD: call static Verse.TaggedString
Verse.TranslatorFormattedStringExtensions::Translate(System.String key,
Verse.NamedArgument arg1)
IL_3BC2: ldstr ": "
IL_3BC7: call static Verse.TaggedString
Verse.TaggedString::op_Addition(Verse.TaggedString t1, System.String t2)
IL_3BCC: ldstr "NoPath"
IL_3BD1: call static Verse.TaggedString
Verse.Translator::Translate(System.String key)
IL_3BD6: stloc.s 11 (Verse.TaggedString)
IL_3BD8: ldloca.s 11 (Verse.TaggedString)
IL_3BDA: call Verse.TaggedString Verse.TaggedString::CapitalizeFirst()
IL_3BDF: call static Verse.TaggedString
Verse.TaggedString::op_Addition(Verse.TaggedString t1, Verse.TaggedString t2)
IL_3BE4: call static System.String
Verse.TaggedString::op_Implicit(Verse.TaggedString taggedString)
IL_3BE9: ldnull
IL_3BEA: ldc.i4.4
IL_3BEB: ldnull
IL_3BEC: ldnull
IL_3BED: ldc.r4 0
IL_3BF2: ldnull
IL_3BF3: ldnull
IL_3BF4: ldc.i4.1
IL_3BF5: ldc.i4.0
IL_3BF6: newobj System.Void Verse.FloatMenuOption::.ctor(System.String label,
System.Action action, Verse.MenuOptionPriority priority,
System.Action`1<UnityEngine.Rect> mouseoverGuiAction, Verse.Thing
revalidateClickTarget, System.Single extraPartWidth,
System.Func`2<UnityEngine.Rect, System.Boolean> extraPartOnGUI,
RimWorld.Planet.WorldObject revalidateWorldClickTarget, System.Boolean
playSelectionSound, System.Int32 orderInPriority)
IL_3BFB: stloc.s 109 (Verse.FloatMenuOption)
IL_3BFD: br => Label335
IL_3C02: Label334
IL_3C02: ldloc.s 107 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_30)
IL_3C04: ldfld RimWorld.<>c__DisplayClass10_0
RimWorld.<>c__DisplayClass10_30::CS$<>8__locals30
IL_3C09: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_3C0E: ldfld Verse.Pawn_HealthTracker Verse.Pawn::health
IL_3C13: ldfld Verse.PawnCapacitiesHandler
Verse.Pawn_HealthTracker::capacities
IL_3C18: ldsfld Verse.PawnCapacityDef RimWorld.PawnCapacityDefOf::Manipulation
IL_3C1D: callvirt System.Boolean
Verse.PawnCapacitiesHandler::CapableOf(Verse.PawnCapacityDef capacity)
IL_3C22: brtrue => Label336
IL_3C27: ldstr "CannotEquip"
IL_3C2C: ldloc.s 110 (System.String)
IL_3C2E: call static Verse.NamedArgument
Verse.NamedArgument::op_Implicit(System.String value)
IL_3C33: call static Verse.TaggedString
Verse.TranslatorFormattedStringExtensions::Translate(System.String key,
Verse.NamedArgument arg1)
IL_3C38: ldstr ": "
IL_3C3D: call static Verse.TaggedString
Verse.TaggedString::op_Addition(Verse.TaggedString t1, System.String t2)
IL_3C42: ldstr "Incapable"
IL_3C47: call static Verse.TaggedString
Verse.Translator::Translate(System.String key)
IL_3C4C: stloc.s 11 (Verse.TaggedString)
IL_3C4E: ldloca.s 11 (Verse.TaggedString)
IL_3C50: call Verse.TaggedString Verse.TaggedString::CapitalizeFirst()
IL_3C55: call static Verse.TaggedString
Verse.TaggedString::op_Addition(Verse.TaggedString t1, Verse.TaggedString t2)
IL_3C5A: call static System.String
Verse.TaggedString::op_Implicit(Verse.TaggedString taggedString)
IL_3C5F: ldnull
IL_3C60: ldc.i4.4
IL_3C61: ldnull
IL_3C62: ldnull
IL_3C63: ldc.r4 0
IL_3C68: ldnull
IL_3C69: ldnull
IL_3C6A: ldc.i4.1
IL_3C6B: ldc.i4.0
IL_3C6C: newobj System.Void Verse.FloatMenuOption::.ctor(System.String label,
System.Action action, Verse.MenuOptionPriority priority,
System.Action`1<UnityEngine.Rect> mouseoverGuiAction, Verse.Thing
revalidateClickTarget, System.Single extraPartWidth,
System.Func`2<UnityEngine.Rect, System.Boolean> extraPartOnGUI,
RimWorld.Planet.WorldObject revalidateWorldClickTarget, System.Boolean
playSelectionSound, System.Int32 orderInPriority)
IL_3C71: stloc.s 109 (Verse.FloatMenuOption)
IL_3C73: br => Label337
IL_3C78: Label336
IL_3C78: ldloc.s 107 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_30)
IL_3C7A: ldfld Verse.ThingWithComps RimWorld.<>c__DisplayClass10_30::equipment
IL_3C7F: call static System.Boolean
RimWorld.FireUtility::IsBurning(Verse.Thing t)
IL_3C84: brfalse => Label338
IL_3C89: ldstr "CannotEquip"
IL_3C8E: ldloc.s 110 (System.String)
IL_3C90: call static Verse.NamedArgument
Verse.NamedArgument::op_Implicit(System.String value)
IL_3C95: call static Verse.TaggedString
Verse.TranslatorFormattedStringExtensions::Translate(System.String key,
Verse.NamedArgument arg1)
IL_3C9A: ldstr ": "
IL_3C9F: call static Verse.TaggedString
Verse.TaggedString::op_Addition(Verse.TaggedString t1, System.String t2)
IL_3CA4: ldstr "BurningLower"
IL_3CA9: call static Verse.TaggedString
Verse.Translator::Translate(System.String key)
IL_3CAE: call static Verse.TaggedString
Verse.TaggedString::op_Addition(Verse.TaggedString t1, Verse.TaggedString t2)
IL_3CB3: call static System.String
Verse.TaggedString::op_Implicit(Verse.TaggedString taggedString)
IL_3CB8: ldnull
IL_3CB9: ldc.i4.4
IL_3CBA: ldnull
IL_3CBB: ldnull
IL_3CBC: ldc.r4 0
IL_3CC1: ldnull
IL_3CC2: ldnull
IL_3CC3: ldc.i4.1
IL_3CC4: ldc.i4.0
IL_3CC5: newobj System.Void Verse.FloatMenuOption::.ctor(System.String label,
System.Action action, Verse.MenuOptionPriority priority,
System.Action`1<UnityEngine.Rect> mouseoverGuiAction, Verse.Thing
revalidateClickTarget, System.Single extraPartWidth,
System.Func`2<UnityEngine.Rect, System.Boolean> extraPartOnGUI,
RimWorld.Planet.WorldObject revalidateWorldClickTarget, System.Boolean
playSelectionSound, System.Int32 orderInPriority)
IL_3CCA: stloc.s 109 (Verse.FloatMenuOption)
IL_3CCC: br => Label339
IL_3CD1: Label338
IL_3CD1: ldloc.s 107 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_30)
IL_3CD3: ldfld RimWorld.<>c__DisplayClass10_0
RimWorld.<>c__DisplayClass10_30::CS$<>8__locals30
IL_3CD8: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_3CDD: call static System.Boolean
RimWorld.QuestUtility::IsQuestLodger(Verse.Pawn p)
IL_3CE2: brfalse => Label340
IL_3CE7: ldloc.s 107 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_30)
IL_3CE9: ldfld Verse.ThingWithComps RimWorld.<>c__DisplayClass10_30::equipment
IL_3CEE: ldloc.s 107 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_30)
IL_3CF0: ldfld RimWorld.<>c__DisplayClass10_0
RimWorld.<>c__DisplayClass10_30::CS$<>8__locals30
IL_3CF5: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_3CFA: call static System.Boolean
RimWorld.EquipmentUtility::QuestLodgerCanEquip(Verse.Thing thing, Verse.Pawn pawn)
IL_3CFF: brtrue => Label341
IL_3D04: ldstr "CannotEquip"
IL_3D09: ldloc.s 110 (System.String)
IL_3D0B: call static Verse.NamedArgument
Verse.NamedArgument::op_Implicit(System.String value)
IL_3D10: call static Verse.TaggedString
Verse.TranslatorFormattedStringExtensions::Translate(System.String key,
Verse.NamedArgument arg1)
IL_3D15: ldstr ": "
IL_3D1A: call static Verse.TaggedString
Verse.TaggedString::op_Addition(Verse.TaggedString t1, System.String t2)
IL_3D1F: ldstr "QuestRelated"
IL_3D24: call static Verse.TaggedString
Verse.Translator::Translate(System.String key)
IL_3D29: stloc.s 11 (Verse.TaggedString)
IL_3D2B: ldloca.s 11 (Verse.TaggedString)
IL_3D2D: call Verse.TaggedString Verse.TaggedString::CapitalizeFirst()
IL_3D32: call static Verse.TaggedString
Verse.TaggedString::op_Addition(Verse.TaggedString t1, Verse.TaggedString t2)
IL_3D37: call static System.String
Verse.TaggedString::op_Implicit(Verse.TaggedString taggedString)
IL_3D3C: ldnull
IL_3D3D: ldc.i4.4
IL_3D3E: ldnull
IL_3D3F: ldnull
IL_3D40: ldc.r4 0
IL_3D45: ldnull
IL_3D46: ldnull
IL_3D47: ldc.i4.1
IL_3D48: ldc.i4.0
IL_3D49: newobj System.Void Verse.FloatMenuOption::.ctor(System.String label,
System.Action action, Verse.MenuOptionPriority priority,
System.Action`1<UnityEngine.Rect> mouseoverGuiAction, Verse.Thing
revalidateClickTarget, System.Single extraPartWidth,
System.Func`2<UnityEngine.Rect, System.Boolean> extraPartOnGUI,
RimWorld.Planet.WorldObject revalidateWorldClickTarget, System.Boolean
playSelectionSound, System.Int32 orderInPriority)
IL_3D4E: stloc.s 109 (Verse.FloatMenuOption)
IL_3D50: br => Label342
IL_3D55: Label340
IL_3D55: Label341
IL_3D55: ldloc.s 107 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_30)
IL_3D57: ldfld Verse.ThingWithComps RimWorld.<>c__DisplayClass10_30::equipment
IL_3D5C: ldloc.s 107 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_30)
IL_3D5E: ldfld RimWorld.<>c__DisplayClass10_0
RimWorld.<>c__DisplayClass10_30::CS$<>8__locals30
IL_3D63: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_3D68: ldloca.s 108 (System.String)
IL_3D6A: ldc.i4.0
IL_3D6B: call static System.Boolean
RimWorld.EquipmentUtility::CanEquip(Verse.Thing thing, Verse.Pawn pawn,
System.String& cantReason, System.Boolean checkBonded)
IL_3D70: brtrue => Label343
IL_3D75: ldstr "CannotEquip"
IL_3D7A: ldloc.s 110 (System.String)
IL_3D7C: call static Verse.NamedArgument
Verse.NamedArgument::op_Implicit(System.String value)
IL_3D81: call static Verse.TaggedString
Verse.TranslatorFormattedStringExtensions::Translate(System.String key,
Verse.NamedArgument arg1)
IL_3D86: ldstr ": "
IL_3D8B: call static Verse.TaggedString
Verse.TaggedString::op_Addition(Verse.TaggedString t1, System.String t2)
IL_3D90: ldloc.s 108 (System.String)
IL_3D92: call static System.String
Verse.GenText::CapitalizeFirst(System.String str)
IL_3D97: call static Verse.TaggedString
Verse.TaggedString::op_Addition(Verse.TaggedString t1, System.String t2)
IL_3D9C: call static System.String
Verse.TaggedString::op_Implicit(Verse.TaggedString taggedString)
IL_3DA1: ldnull
IL_3DA2: ldc.i4.4
IL_3DA3: ldnull
IL_3DA4: ldnull
IL_3DA5: ldc.r4 0
IL_3DAA: ldnull
IL_3DAB: ldnull
IL_3DAC: ldc.i4.1
IL_3DAD: ldc.i4.0
IL_3DAE: newobj System.Void Verse.FloatMenuOption::.ctor(System.String label,
System.Action action, Verse.MenuOptionPriority priority,
System.Action`1<UnityEngine.Rect> mouseoverGuiAction, Verse.Thing
revalidateClickTarget, System.Single extraPartWidth,
System.Func`2<UnityEngine.Rect, System.Boolean> extraPartOnGUI,
RimWorld.Planet.WorldObject revalidateWorldClickTarget, System.Boolean
playSelectionSound, System.Int32 orderInPriority)
IL_3DB3: stloc.s 109 (Verse.FloatMenuOption)
IL_3DB5: br => Label344
IL_3DBA: Label343
IL_3DBA: ldstr "Equip"
IL_3DBF: ldloc.s 110 (System.String)
IL_3DC1: call static Verse.NamedArgument
Verse.NamedArgument::op_Implicit(System.String value)
IL_3DC6: call static Verse.TaggedString
Verse.TranslatorFormattedStringExtensions::Translate(System.String key,
Verse.NamedArgument arg1)
IL_3DCB: call static System.String
Verse.TaggedString::op_Implicit(Verse.TaggedString taggedString)
IL_3DD0: stloc.s 111 (System.String)
IL_3DD2: ldloc.s 107 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_30)
IL_3DD4: ldfld Verse.ThingWithComps RimWorld.<>c__DisplayClass10_30::equipment
IL_3DD9: ldfld Verse.ThingDef Verse.Thing::def
IL_3DDE: callvirt System.Boolean Verse.ThingDef::get_IsRangedWeapon()
IL_3DE3: brfalse => Label345
IL_3DE8: ldloc.s 107 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_30)
IL_3DEA: ldfld RimWorld.<>c__DisplayClass10_0
RimWorld.<>c__DisplayClass10_30::CS$<>8__locals30
IL_3DEF: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_3DF4: ldfld RimWorld.Pawn_StoryTracker Verse.Pawn::story
IL_3DF9: brfalse => Label346
IL_3DFE: ldloc.s 107 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_30)
IL_3E00: ldfld RimWorld.<>c__DisplayClass10_0
RimWorld.<>c__DisplayClass10_30::CS$<>8__locals30
IL_3E05: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_3E0A: ldfld RimWorld.Pawn_StoryTracker Verse.Pawn::story
IL_3E0F: ldfld RimWorld.TraitSet RimWorld.Pawn_StoryTracker::traits
IL_3E14: ldsfld RimWorld.TraitDef RimWorld.TraitDefOf::Brawler
IL_3E19: callvirt System.Boolean RimWorld.TraitSet::HasTrait(RimWorld.TraitDef
tDef)
IL_3E1E: brfalse => Label347
IL_3E23: ldloc.s 111 (System.String)
IL_3E25: ldstr " "
IL_3E2A: ldstr "EquipWarningBrawler"
IL_3E2F: call static Verse.TaggedString
Verse.Translator::Translate(System.String key)
IL_3E34: call static Verse.TaggedString
Verse.TaggedString::op_Addition(System.String t1, Verse.TaggedString t2)
IL_3E39: call static Verse.TaggedString
Verse.TaggedString::op_Addition(System.String t1, Verse.TaggedString t2)
IL_3E3E: call static System.String
Verse.TaggedString::op_Implicit(Verse.TaggedString taggedString)
IL_3E43: stloc.s 111 (System.String)
IL_3E45: Label345
IL_3E45: Label346
IL_3E45: Label347
IL_3E45: ldloc.s 107 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_30)
IL_3E47: ldfld Verse.ThingWithComps RimWorld.<>c__DisplayClass10_30::equipment
IL_3E4C: ldloc.s 107 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_30)
IL_3E4E: ldfld RimWorld.<>c__DisplayClass10_0
RimWorld.<>c__DisplayClass10_30::CS$<>8__locals30
IL_3E53: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_3E58: call static System.Boolean
RimWorld.EquipmentUtility::AlreadyBondedToWeapon(Verse.Thing thing, Verse.Pawn
pawn)
IL_3E5D: brfalse => Label348
IL_3E62: newobj System.Void RimWorld.<>c__DisplayClass10_31::.ctor()
IL_3E67: stloc.s 112 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_31)
IL_3E69: ldloc.s 111 (System.String)
IL_3E6B: ldstr " "
IL_3E70: ldstr "BladelinkAlreadyBonded"
IL_3E75: call static Verse.TaggedString
Verse.Translator::Translate(System.String key)
IL_3E7A: call static Verse.TaggedString
Verse.TaggedString::op_Addition(System.String t1, Verse.TaggedString t2)
IL_3E7F: call static Verse.TaggedString
Verse.TaggedString::op_Addition(System.String t1, Verse.TaggedString t2)
IL_3E84: call static System.String
Verse.TaggedString::op_Implicit(Verse.TaggedString taggedString)
IL_3E89: stloc.s 111 (System.String)
IL_3E8B: ldloc.s 112 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_31)
IL_3E8D: ldstr "BladelinkAlreadyBondedDialog"
IL_3E92: ldloc.s 107 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_30)
IL_3E94: ldfld RimWorld.<>c__DisplayClass10_0
RimWorld.<>c__DisplayClass10_30::CS$<>8__locals30
IL_3E99: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_3E9E: ldstr "PAWN"
IL_3EA3: call static Verse.NamedArgument
Verse.NamedArgumentUtility::Named(System.Object arg, System.String label)
IL_3EA8: ldloc.s 107 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_30)
IL_3EAA: ldfld Verse.ThingWithComps RimWorld.<>c__DisplayClass10_30::equipment
IL_3EAF: ldstr "WEAPON"
IL_3EB4: call static Verse.NamedArgument
Verse.NamedArgumentUtility::Named(System.Object arg, System.String label)
IL_3EB9: ldloc.s 107 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_30)
IL_3EBB: ldfld RimWorld.<>c__DisplayClass10_0
RimWorld.<>c__DisplayClass10_30::CS$<>8__locals30
IL_3EC0: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_3EC5: ldfld Verse.Pawn_EquipmentTracker Verse.Pawn::equipment
IL_3ECA: ldfld Verse.Thing Verse.Pawn_EquipmentTracker::bondedWeapon
IL_3ECF: ldstr "BONDEDWEAPON"
IL_3ED4: call static Verse.NamedArgument
Verse.NamedArgumentUtility::Named(System.Object arg, System.String label)
IL_3ED9: call static Verse.TaggedString
Verse.TranslatorFormattedStringExtensions::Translate(System.String key,
Verse.NamedArgument arg1, Verse.NamedArgument arg2, Verse.NamedArgument arg3)
IL_3EDE: stfld Verse.TaggedString RimWorld.<>c__DisplayClass10_31::dialogText
IL_3EE3: ldloc.s 111 (System.String)
IL_3EE5: ldloc.s 112 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_31)
IL_3EE7: ldftn System.Void
RimWorld.<>c__DisplayClass10_31::<AddHumanlikeOrders>b__39()
IL_3EED: newobj System.Void System.Action::.ctor(System.Object object,
System.IntPtr method)
IL_3EF2: ldc.i4.5
IL_3EF3: ldnull
IL_3EF4: ldnull
IL_3EF5: ldc.r4 0
IL_3EFA: ldnull
IL_3EFB: ldnull
IL_3EFC: ldc.i4.1
IL_3EFD: ldc.i4.0
IL_3EFE: newobj System.Void Verse.FloatMenuOption::.ctor(System.String label,
System.Action action, Verse.MenuOptionPriority priority,
System.Action`1<UnityEngine.Rect> mouseoverGuiAction, Verse.Thing
revalidateClickTarget, System.Single extraPartWidth,
System.Func`2<UnityEngine.Rect, System.Boolean> extraPartOnGUI,
RimWorld.Planet.WorldObject revalidateWorldClickTarget, System.Boolean
playSelectionSound, System.Int32 orderInPriority)
IL_3F03: ldloc.s 107 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_30)
IL_3F05: ldfld RimWorld.<>c__DisplayClass10_0
RimWorld.<>c__DisplayClass10_30::CS$<>8__locals30
IL_3F0A: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_3F0F: ldloc.s 107 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_30)
IL_3F11: ldfld Verse.ThingWithComps RimWorld.<>c__DisplayClass10_30::equipment
IL_3F16: call static Verse.LocalTargetInfo
Verse.LocalTargetInfo::op_Implicit(Verse.Thing t)
IL_3F1B: ldstr "ReservedBy"
IL_3F20: ldnull
IL_3F21: call static Verse.FloatMenuOption
RimWorld.FloatMenuUtility::DecoratePrioritizedTask(Verse.FloatMenuOption option,
Verse.Pawn pawn, Verse.LocalTargetInfo target, System.String reservedText,
Verse.ReservationLayerDef layer)
IL_3F26: stloc.s 109 (Verse.FloatMenuOption)
IL_3F28: br => Label349
IL_3F2D: Label348
IL_3F2D: ldloc.s 111 (System.String)
IL_3F2F: ldloc.s 107 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_30)
IL_3F31: ldftn System.Void
RimWorld.<>c__DisplayClass10_30::<AddHumanlikeOrders>b__38()
IL_3F37: newobj System.Void System.Action::.ctor(System.Object object,
System.IntPtr method)
IL_3F3C: ldc.i4.5
IL_3F3D: ldnull
IL_3F3E: ldnull
IL_3F3F: ldc.r4 0
IL_3F44: ldnull
IL_3F45: ldnull
IL_3F46: ldc.i4.1
IL_3F47: ldc.i4.0
IL_3F48: newobj System.Void Verse.FloatMenuOption::.ctor(System.String label,
System.Action action, Verse.MenuOptionPriority priority,
System.Action`1<UnityEngine.Rect> mouseoverGuiAction, Verse.Thing
revalidateClickTarget, System.Single extraPartWidth,
System.Func`2<UnityEngine.Rect, System.Boolean> extraPartOnGUI,
RimWorld.Planet.WorldObject revalidateWorldClickTarget, System.Boolean
playSelectionSound, System.Int32 orderInPriority)
IL_3F4D: ldloc.s 107 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_30)
IL_3F4F: ldfld RimWorld.<>c__DisplayClass10_0
RimWorld.<>c__DisplayClass10_30::CS$<>8__locals30
IL_3F54: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_3F59: ldloc.s 107 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_30)
IL_3F5B: ldfld Verse.ThingWithComps RimWorld.<>c__DisplayClass10_30::equipment
IL_3F60: call static Verse.LocalTargetInfo
Verse.LocalTargetInfo::op_Implicit(Verse.Thing t)
IL_3F65: ldstr "ReservedBy"
IL_3F6A: ldnull
IL_3F6B: call static Verse.FloatMenuOption
RimWorld.FloatMenuUtility::DecoratePrioritizedTask(Verse.FloatMenuOption option,
Verse.Pawn pawn, Verse.LocalTargetInfo target, System.String reservedText,
Verse.ReservationLayerDef layer)
IL_3F70: stloc.s 109 (Verse.FloatMenuOption)
IL_3F72: Label330
IL_3F72: Label333
IL_3F72: Label335
IL_3F72: Label337
IL_3F72: Label339
IL_3F72: Label342
IL_3F72: Label344
IL_3F72: Label349
IL_3F72: ldarg.2
IL_3F73: ldloc.s 109 (Verse.FloatMenuOption)
IL_3F75: callvirt virtual System.Void
System.Collections.Generic.List`1<Verse.FloatMenuOption>::Add(Verse.FloatMenuOption
item)
IL_3F7A: Label327
IL_3F7A: ldloc.s 106 (System.Int32)
IL_3F7C: ldc.i4.1
IL_3F7D: add
IL_3F7E: stloc.s 106 (System.Int32)
IL_3F80: Label326
IL_3F80: ldloc.s 106 (System.Int32)
IL_3F82: ldloc.s 105 (System.Collections.Generic.List`1[Verse.Thing])
IL_3F84: callvirt virtual System.Int32
System.Collections.Generic.List`1<Verse.Thing>::get_Count()
IL_3F89: blt => Label350
IL_3F8E: Label325
IL_3F8E: ldloc.0
IL_3F8F: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_3F94: ldloc.1
IL_3F95: ldloc.0
IL_3F96: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_3F9B: callvirt virtual Verse.Map Verse.Thing::get_Map()
IL_3FA0: call static System.Collections.Generic.List`1<Verse.Thing>
Verse.GridsUtility::GetThingList(Verse.IntVec3 c, Verse.Map map)
IL_3FA5: call static
System.Collections.Generic.IEnumerable`1<Verse.Pair`2<RimWorld.CompReloadable,
Verse.Thing>> RimWorld.ReloadableUtility::FindPotentiallyReloadableGear(Verse.Pawn
pawn, System.Collections.Generic.List`1<Verse.Thing> potentialAmmo)
IL_3FAA: callvirt abstract virtual
System.Collections.Generic.IEnumerator`1<Verse.Pair`2<RimWorld.CompReloadable,
Verse.Thing>>
System.Collections.Generic.IEnumerable`1<Verse.Pair`2<RimWorld.CompReloadable,
Verse.Thing>>::GetEnumerator()
IL_3FAF: stloc.s 113
(System.Collections.Generic.IEnumerator`1[Verse.Pair`2[RimWorld.CompReloadable,Vers
e.Thing]])
.try
{
IL_3FB1: br => Label351
IL_3FB6: Label360
IL_3FB6: ldloc.s 113
(System.Collections.Generic.IEnumerator`1[Verse.Pair`2[RimWorld.CompReloadable,Vers
e.Thing]])
IL_3FB8: callvirt abstract virtual Verse.Pair`2<RimWorld.CompReloadable,
Verse.Thing>
System.Collections.Generic.IEnumerator`1<Verse.Pair`2<RimWorld.CompReloadable,
Verse.Thing>>::get_Current()
IL_3FBD: stloc.s 114 (Verse.Pair`2[RimWorld.CompReloadable,Verse.Thing])
IL_3FBF: newobj System.Void RimWorld.<>c__DisplayClass10_32::.ctor()
IL_3FC4: stloc.s 115 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_32)
IL_3FC6: ldloc.s 115 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_32)
IL_3FC8: ldloc.0
IL_3FC9: stfld RimWorld.<>c__DisplayClass10_0
RimWorld.<>c__DisplayClass10_32::CS$<>8__locals31
IL_3FCE: ldloc.s 115 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_32)
IL_3FD0: ldloca.s 114 (Verse.Pair`2[RimWorld.CompReloadable,Verse.Thing])
IL_3FD2: call RimWorld.CompReloadable
Verse.Pair`2<RimWorld.CompReloadable, Verse.Thing>::get_First()
IL_3FD7: stfld RimWorld.CompReloadable
RimWorld.<>c__DisplayClass10_32::comp
IL_3FDC: ldloca.s 114 (Verse.Pair`2[RimWorld.CompReloadable,Verse.Thing])
IL_3FDE: call Verse.Thing Verse.Pair`2<RimWorld.CompReloadable,
Verse.Thing>::get_Second()
IL_3FE3: stloc.s 116 (Verse.Thing)
IL_3FE5: ldstr "Reload"
IL_3FEA: ldloc.s 115 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_32)
IL_3FEC: ldfld RimWorld.CompReloadable
RimWorld.<>c__DisplayClass10_32::comp
IL_3FF1: ldfld Verse.ThingWithComps Verse.ThingComp::parent
IL_3FF6: ldstr "GEAR"
IL_3FFB: call static Verse.NamedArgument
Verse.NamedArgumentUtility::Named(System.Object arg, System.String label)
IL_4000: ldloc.s 115 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_32)
IL_4002: ldfld RimWorld.CompReloadable
RimWorld.<>c__DisplayClass10_32::comp
IL_4007: callvirt Verse.ThingDef RimWorld.CompReloadable::get_AmmoDef()
IL_400C: ldstr "AMMO"
IL_4011: call static Verse.NamedArgument
Verse.NamedArgumentUtility::Named(System.Object arg, System.String label)
IL_4016: call static Verse.TaggedString
Verse.TranslatorFormattedStringExtensions::Translate(System.String key,
Verse.NamedArgument arg1, Verse.NamedArgument arg2)
IL_401B: ldstr " ("
IL_4020: call static Verse.TaggedString
Verse.TaggedString::op_Addition(Verse.TaggedString t1, System.String t2)
IL_4025: ldloc.s 115 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_32)
IL_4027: ldfld RimWorld.CompReloadable
RimWorld.<>c__DisplayClass10_32::comp
IL_402C: callvirt System.String
RimWorld.CompReloadable::get_LabelRemaining()
IL_4031: call static Verse.TaggedString
Verse.TaggedString::op_Addition(Verse.TaggedString t1, System.String t2)
IL_4036: ldstr ")"
IL_403B: call static Verse.TaggedString
Verse.TaggedString::op_Addition(Verse.TaggedString t1, System.String t2)
IL_4040: call static System.String
Verse.TaggedString::op_Implicit(Verse.TaggedString taggedString)
IL_4045: stloc.s 117 (System.String)
IL_4047: ldloc.s 115 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_32)
IL_4049: ldfld RimWorld.<>c__DisplayClass10_0
RimWorld.<>c__DisplayClass10_32::CS$<>8__locals31
IL_404E: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_4053: ldloc.s 116 (Verse.Thing)
IL_4055: call static Verse.LocalTargetInfo
Verse.LocalTargetInfo::op_Implicit(Verse.Thing t)
IL_405A: ldc.i4.3
IL_405B: ldc.i4.3
IL_405C: ldc.i4.0
IL_405D: ldc.i4.0
IL_405E: ldc.i4.0
IL_405F: call static System.Boolean
Verse.ReachabilityUtility::CanReach(Verse.Pawn pawn, Verse.LocalTargetInfo dest,
Verse.AI.PathEndMode peMode, Verse.Danger maxDanger, System.Boolean canBashDoors,
System.Boolean canBashFences, Verse.TraverseMode mode)
IL_4064: brtrue => Label352
IL_4069: ldarg.2
IL_406A: ldloc.s 117 (System.String)
IL_406C: ldstr ": "
IL_4071: call static System.String System.String::Concat(System.String
str0, System.String str1)
IL_4076: ldstr "NoPath"
IL_407B: call static Verse.TaggedString
Verse.Translator::Translate(System.String key)
IL_4080: stloc.s 11 (Verse.TaggedString)
IL_4082: ldloca.s 11 (Verse.TaggedString)
IL_4084: call Verse.TaggedString Verse.TaggedString::CapitalizeFirst()
IL_4089: call static Verse.TaggedString
Verse.TaggedString::op_Addition(System.String t1, Verse.TaggedString t2)
IL_408E: call static System.String
Verse.TaggedString::op_Implicit(Verse.TaggedString taggedString)
IL_4093: ldnull
IL_4094: ldc.i4.4
IL_4095: ldnull
IL_4096: ldnull
IL_4097: ldc.r4 0
IL_409C: ldnull
IL_409D: ldnull
IL_409E: ldc.i4.1
IL_409F: ldc.i4.0
IL_40A0: newobj System.Void Verse.FloatMenuOption::.ctor(System.String
label, System.Action action, Verse.MenuOptionPriority priority,
System.Action`1<UnityEngine.Rect> mouseoverGuiAction, Verse.Thing
revalidateClickTarget, System.Single extraPartWidth,
System.Func`2<UnityEngine.Rect, System.Boolean> extraPartOnGUI,
RimWorld.Planet.WorldObject revalidateWorldClickTarget, System.Boolean
playSelectionSound, System.Int32 orderInPriority)
IL_40A5: callvirt virtual System.Void
System.Collections.Generic.List`1<Verse.FloatMenuOption>::Add(Verse.FloatMenuOption
item)
IL_40AA: br => Label353
IL_40AF: Label352
IL_40AF: ldloc.s 115 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_32)
IL_40B1: ldfld RimWorld.CompReloadable
RimWorld.<>c__DisplayClass10_32::comp
IL_40B6: ldc.i4.1
IL_40B7: callvirt System.Boolean
RimWorld.CompReloadable::NeedsReload(System.Boolean allowForcedReload)
IL_40BC: brtrue => Label354
IL_40C1: ldarg.2
IL_40C2: ldloc.s 117 (System.String)
IL_40C4: ldstr ": "
IL_40C9: call static System.String System.String::Concat(System.String
str0, System.String str1)
IL_40CE: ldstr "ReloadFull"
IL_40D3: call static Verse.TaggedString
Verse.Translator::Translate(System.String key)
IL_40D8: call static Verse.TaggedString
Verse.TaggedString::op_Addition(System.String t1, Verse.TaggedString t2)
IL_40DD: call static System.String
Verse.TaggedString::op_Implicit(Verse.TaggedString taggedString)
IL_40E2: ldnull
IL_40E3: ldc.i4.4
IL_40E4: ldnull
IL_40E5: ldnull
IL_40E6: ldc.r4 0
IL_40EB: ldnull
IL_40EC: ldnull
IL_40ED: ldc.i4.1
IL_40EE: ldc.i4.0
IL_40EF: newobj System.Void Verse.FloatMenuOption::.ctor(System.String
label, System.Action action, Verse.MenuOptionPriority priority,
System.Action`1<UnityEngine.Rect> mouseoverGuiAction, Verse.Thing
revalidateClickTarget, System.Single extraPartWidth,
System.Func`2<UnityEngine.Rect, System.Boolean> extraPartOnGUI,
RimWorld.Planet.WorldObject revalidateWorldClickTarget, System.Boolean
playSelectionSound, System.Int32 orderInPriority)
IL_40F4: callvirt virtual System.Void
System.Collections.Generic.List`1<Verse.FloatMenuOption>::Add(Verse.FloatMenuOption
item)
IL_40F9: br => Label355
IL_40FE: Label354
IL_40FE: ldloc.s 115 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_32)
IL_4100: ldloc.s 115 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_32)
IL_4102: ldfld RimWorld.<>c__DisplayClass10_0
RimWorld.<>c__DisplayClass10_32::CS$<>8__locals31
IL_4107: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_410C: ldloc.s 116 (Verse.Thing)
IL_410E: callvirt virtual Verse.IntVec3 Verse.Thing::get_Position()
IL_4113: ldloc.s 115 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_32)
IL_4115: ldfld RimWorld.CompReloadable
RimWorld.<>c__DisplayClass10_32::comp
IL_411A: ldc.i4.1
IL_411B: call static System.Collections.Generic.List`1<Verse.Thing>
RimWorld.ReloadableUtility::FindEnoughAmmo(Verse.Pawn pawn, Verse.IntVec3 rootCell,
RimWorld.CompReloadable comp, System.Boolean forceReload)
IL_4120: dup
IL_4121: stloc.s 118 (System.Collections.Generic.List`1[Verse.Thing])
IL_4123: stfld System.Collections.Generic.List`1<Verse.Thing>
RimWorld.<>c__DisplayClass10_32::chosenAmmo
IL_4128: ldloc.s 118 (System.Collections.Generic.List`1[Verse.Thing])
IL_412A: brtrue => Label356
IL_412F: ldarg.2
IL_4130: ldloc.s 117 (System.String)
IL_4132: ldstr ": "
IL_4137: call static System.String System.String::Concat(System.String
str0, System.String str1)
IL_413C: ldstr "ReloadNotEnough"
IL_4141: call static Verse.TaggedString
Verse.Translator::Translate(System.String key)
IL_4146: call static Verse.TaggedString
Verse.TaggedString::op_Addition(System.String t1, Verse.TaggedString t2)
IL_414B: call static System.String
Verse.TaggedString::op_Implicit(Verse.TaggedString taggedString)
IL_4150: ldnull
IL_4151: ldc.i4.4
IL_4152: ldnull
IL_4153: ldnull
IL_4154: ldc.r4 0
IL_4159: ldnull
IL_415A: ldnull
IL_415B: ldc.i4.1
IL_415C: ldc.i4.0
IL_415D: newobj System.Void Verse.FloatMenuOption::.ctor(System.String
label, System.Action action, Verse.MenuOptionPriority priority,
System.Action`1<UnityEngine.Rect> mouseoverGuiAction, Verse.Thing
revalidateClickTarget, System.Single extraPartWidth,
System.Func`2<UnityEngine.Rect, System.Boolean> extraPartOnGUI,
RimWorld.Planet.WorldObject revalidateWorldClickTarget, System.Boolean
playSelectionSound, System.Int32 orderInPriority)
IL_4162: callvirt virtual System.Void
System.Collections.Generic.List`1<Verse.FloatMenuOption>::Add(Verse.FloatMenuOption
item)
IL_4167: br => Label357
IL_416C: Label356
IL_416C: ldloc.s 115 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_32)
IL_416E: ldfld RimWorld.<>c__DisplayClass10_0
RimWorld.<>c__DisplayClass10_32::CS$<>8__locals31
IL_4173: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_4178: ldfld Verse.Pawn_CarryTracker Verse.Pawn::carryTracker
IL_417D: ldloc.s 115 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_32)
IL_417F: ldfld RimWorld.CompReloadable
RimWorld.<>c__DisplayClass10_32::comp
IL_4184: callvirt Verse.ThingDef RimWorld.CompReloadable::get_AmmoDef()
IL_4189: callvirt System.Int32
Verse.Pawn_CarryTracker::AvailableStackSpace(Verse.ThingDef td)
IL_418E: ldloc.s 115 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_32)
IL_4190: ldfld RimWorld.CompReloadable
RimWorld.<>c__DisplayClass10_32::comp
IL_4195: ldc.i4.1
IL_4196: callvirt System.Int32
RimWorld.CompReloadable::MinAmmoNeeded(System.Boolean allowForcedReload)
IL_419B: bge => Label358
IL_41A0: ldarg.2
IL_41A1: ldloc.s 117 (System.String)
IL_41A3: ldstr ": "
IL_41A8: call static System.String System.String::Concat(System.String
str0, System.String str1)
IL_41AD: ldstr "ReloadCannotCarryEnough"
IL_41B2: ldloc.s 115 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_32)
IL_41B4: ldfld RimWorld.CompReloadable
RimWorld.<>c__DisplayClass10_32::comp
IL_41B9: callvirt Verse.ThingDef RimWorld.CompReloadable::get_AmmoDef()
IL_41BE: ldstr "AMMO"
IL_41C3: call static Verse.NamedArgument
Verse.NamedArgumentUtility::Named(System.Object arg, System.String label)
IL_41C8: call static Verse.TaggedString
Verse.TranslatorFormattedStringExtensions::Translate(System.String key,
Verse.NamedArgument arg1)
IL_41CD: call static Verse.TaggedString
Verse.TaggedString::op_Addition(System.String t1, Verse.TaggedString t2)
IL_41D2: call static System.String
Verse.TaggedString::op_Implicit(Verse.TaggedString taggedString)
IL_41D7: ldnull
IL_41D8: ldc.i4.4
IL_41D9: ldnull
IL_41DA: ldnull
IL_41DB: ldc.r4 0
IL_41E0: ldnull
IL_41E1: ldnull
IL_41E2: ldc.i4.1
IL_41E3: ldc.i4.0
IL_41E4: newobj System.Void Verse.FloatMenuOption::.ctor(System.String
label, System.Action action, Verse.MenuOptionPriority priority,
System.Action`1<UnityEngine.Rect> mouseoverGuiAction, Verse.Thing
revalidateClickTarget, System.Single extraPartWidth,
System.Func`2<UnityEngine.Rect, System.Boolean> extraPartOnGUI,
RimWorld.Planet.WorldObject revalidateWorldClickTarget, System.Boolean
playSelectionSound, System.Int32 orderInPriority)
IL_41E9: callvirt virtual System.Void
System.Collections.Generic.List`1<Verse.FloatMenuOption>::Add(Verse.FloatMenuOption
item)
IL_41EE: br => Label359
IL_41F3: Label358
IL_41F3: ldloc.s 115 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_32)
IL_41F5: ldftn System.Void
RimWorld.<>c__DisplayClass10_32::<AddHumanlikeOrders>b__42()
IL_41FB: newobj System.Void System.Action::.ctor(System.Object object,
System.IntPtr method)
IL_4200: stloc.s 119 (System.Action)
IL_4202: ldarg.2
IL_4203: ldloc.s 117 (System.String)
IL_4205: ldloc.s 119 (System.Action)
IL_4207: ldc.i4.4
IL_4208: ldnull
IL_4209: ldnull
IL_420A: ldc.r4 0
IL_420F: ldnull
IL_4210: ldnull
IL_4211: ldc.i4.1
IL_4212: ldc.i4.0
IL_4213: newobj System.Void Verse.FloatMenuOption::.ctor(System.String
label, System.Action action, Verse.MenuOptionPriority priority,
System.Action`1<UnityEngine.Rect> mouseoverGuiAction, Verse.Thing
revalidateClickTarget, System.Single extraPartWidth,
System.Func`2<UnityEngine.Rect, System.Boolean> extraPartOnGUI,
RimWorld.Planet.WorldObject revalidateWorldClickTarget, System.Boolean
playSelectionSound, System.Int32 orderInPriority)
IL_4218: ldloc.s 115 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_32)
IL_421A: ldfld RimWorld.<>c__DisplayClass10_0
RimWorld.<>c__DisplayClass10_32::CS$<>8__locals31
IL_421F: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_4224: ldloc.s 116 (Verse.Thing)
IL_4226: call static Verse.LocalTargetInfo
Verse.LocalTargetInfo::op_Implicit(Verse.Thing t)
IL_422B: ldstr "ReservedBy"
IL_4230: ldnull
IL_4231: call static Verse.FloatMenuOption
RimWorld.FloatMenuUtility::DecoratePrioritizedTask(Verse.FloatMenuOption option,
Verse.Pawn pawn, Verse.LocalTargetInfo target, System.String reservedText,
Verse.ReservationLayerDef layer)
IL_4236: callvirt virtual System.Void
System.Collections.Generic.List`1<Verse.FloatMenuOption>::Add(Verse.FloatMenuOption
item)
IL_423B: Label351
IL_423B: Label353
IL_423B: Label355
IL_423B: Label357
IL_423B: Label359
IL_423B: ldloc.s 113
(System.Collections.Generic.IEnumerator`1[Verse.Pair`2[RimWorld.CompReloadable,Vers
e.Thing]])
IL_423D: callvirt abstract virtual System.Boolean
System.Collections.IEnumerator::MoveNext()
IL_4242: brtrue => Label360
IL_4247: leave => Label361
IL_424C: leave => (autogenerated)
} // end try
.finally
{
IL_4251: ldloc.s 113
(System.Collections.Generic.IEnumerator`1[Verse.Pair`2[RimWorld.CompReloadable,Vers
e.Thing]])
IL_4253: brfalse => Label362
IL_4258: ldloc.s 113
(System.Collections.Generic.IEnumerator`1[Verse.Pair`2[RimWorld.CompReloadable,Vers
e.Thing]])
IL_425A: callvirt abstract virtual System.Void
System.IDisposable::Dispose()
IL_425F: Label362
IL_425F: endfinally
IL_4260: leave => (autogenerated)
} // end handler
IL_4261: Label361
IL_4261: ldloc.0
IL_4262: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_4267: ldfld RimWorld.Pawn_ApparelTracker Verse.Pawn::apparel
IL_426C: brfalse => Label363
IL_4271: ldloc.0
IL_4272: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_4277: callvirt virtual Verse.Map Verse.Thing::get_Map()
IL_427C: ldfld Verse.ThingGrid Verse.Map::thingGrid
IL_4281: ldloc.1
IL_4282: callvirt System.Collections.Generic.IEnumerable`1<Verse.Thing>
Verse.ThingGrid::ThingsAt(Verse.IntVec3 c)
IL_4287: callvirt abstract virtual
System.Collections.Generic.IEnumerator`1<Verse.Thing>
System.Collections.Generic.IEnumerable`1<Verse.Thing>::GetEnumerator()
IL_428C: stloc.s 60 (System.Collections.Generic.IEnumerator`1[Verse.Thing])
.try
{
IL_428E: br => Label364
IL_4293: Label377
IL_4293: ldloc.s 60
(System.Collections.Generic.IEnumerator`1[Verse.Thing])
IL_4295: callvirt abstract virtual Verse.Thing
System.Collections.Generic.IEnumerator`1<Verse.Thing>::get_Current()
IL_429A: stloc.s 120 (Verse.Thing)
IL_429C: newobj System.Void RimWorld.<>c__DisplayClass10_33::.ctor()
IL_42A1: stloc.s 121 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_33)
IL_42A3: ldloc.s 121 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_33)
IL_42A5: ldloc.0
IL_42A6: stfld RimWorld.<>c__DisplayClass10_0
RimWorld.<>c__DisplayClass10_33::CS$<>8__locals32
IL_42AB: ldloc.s 121 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_33)
IL_42AD: ldloc.s 120 (Verse.Thing)
IL_42AF: isinst RimWorld.Apparel
IL_42B4: stfld RimWorld.Apparel RimWorld.<>c__DisplayClass10_33::apparel
IL_42B9: ldloc.s 121 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_33)
IL_42BB: ldfld RimWorld.Apparel RimWorld.<>c__DisplayClass10_33::apparel
IL_42C0: brfalse => Label365
IL_42C5: ldstr "CannotWear"
IL_42CA: stloc.s 122 (System.String)
IL_42CC: ldstr "ForceWear"
IL_42D1: stloc.s 123 (System.String)
IL_42D3: ldloc.s 121 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_33)
IL_42D5: ldfld RimWorld.Apparel RimWorld.<>c__DisplayClass10_33::apparel
IL_42DA: ldfld Verse.ThingDef Verse.Thing::def
IL_42DF: ldfld RimWorld.ApparelProperties Verse.ThingDef::apparel
IL_42E4: callvirt Verse.ApparelLayerDef
RimWorld.ApparelProperties::get_LastLayer()
IL_42E9: callvirt System.Boolean
Verse.ApparelLayerDef::get_IsUtilityLayer()
IL_42EE: brfalse => Label366
IL_42F3: ldstr "CannotEquipApparel"
IL_42F8: stloc.s 122 (System.String)
IL_42FA: ldstr "ForceEquipApparel"
IL_42FF: stloc.s 123 (System.String)
IL_4301: Label366
IL_4301: ldloc.s 121 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_33)
IL_4303: ldfld RimWorld.<>c__DisplayClass10_0
RimWorld.<>c__DisplayClass10_33::CS$<>8__locals32
IL_4308: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_430D: ldloc.s 121 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_33)
IL_430F: ldfld RimWorld.Apparel RimWorld.<>c__DisplayClass10_33::apparel
IL_4314: call static Verse.LocalTargetInfo
Verse.LocalTargetInfo::op_Implicit(Verse.Thing t)
IL_4319: ldc.i4.3
IL_431A: ldc.i4.3
IL_431B: ldc.i4.0
IL_431C: ldc.i4.0
IL_431D: ldc.i4.0
IL_431E: call static System.Boolean
Verse.ReachabilityUtility::CanReach(Verse.Pawn pawn, Verse.LocalTargetInfo dest,
Verse.AI.PathEndMode peMode, Verse.Danger maxDanger, System.Boolean canBashDoors,
System.Boolean canBashFences, Verse.TraverseMode mode)
IL_4323: brtrue => Label367
IL_4328: ldloc.s 122 (System.String)
IL_432A: ldloc.s 121 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_33)
IL_432C: ldfld RimWorld.Apparel RimWorld.<>c__DisplayClass10_33::apparel
IL_4331: callvirt abstract virtual System.String Verse.Entity::get_Label()
IL_4336: call static Verse.NamedArgument
Verse.NamedArgument::op_Implicit(System.String value)
IL_433B: ldloc.s 121 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_33)
IL_433D: ldfld RimWorld.Apparel RimWorld.<>c__DisplayClass10_33::apparel
IL_4342: call static Verse.NamedArgument
Verse.NamedArgument::op_Implicit(Verse.Thing value)
IL_4347: call static Verse.TaggedString
Verse.TranslatorFormattedStringExtensions::Translate(System.String key,
Verse.NamedArgument arg1, Verse.NamedArgument arg2)
IL_434C: ldstr ": "
IL_4351: call static Verse.TaggedString
Verse.TaggedString::op_Addition(Verse.TaggedString t1, System.String t2)
IL_4356: ldstr "NoPath"
IL_435B: call static Verse.TaggedString
Verse.Translator::Translate(System.String key)
IL_4360: stloc.s 11 (Verse.TaggedString)
IL_4362: ldloca.s 11 (Verse.TaggedString)
IL_4364: call Verse.TaggedString Verse.TaggedString::CapitalizeFirst()
IL_4369: call static Verse.TaggedString
Verse.TaggedString::op_Addition(Verse.TaggedString t1, Verse.TaggedString t2)
IL_436E: call static System.String
Verse.TaggedString::op_Implicit(Verse.TaggedString taggedString)
IL_4373: ldnull
IL_4374: ldc.i4.4
IL_4375: ldnull
IL_4376: ldnull
IL_4377: ldc.r4 0
IL_437C: ldnull
IL_437D: ldnull
IL_437E: ldc.i4.1
IL_437F: ldc.i4.0
IL_4380: newobj System.Void Verse.FloatMenuOption::.ctor(System.String
label, System.Action action, Verse.MenuOptionPriority priority,
System.Action`1<UnityEngine.Rect> mouseoverGuiAction, Verse.Thing
revalidateClickTarget, System.Single extraPartWidth,
System.Func`2<UnityEngine.Rect, System.Boolean> extraPartOnGUI,
RimWorld.Planet.WorldObject revalidateWorldClickTarget, System.Boolean
playSelectionSound, System.Int32 orderInPriority)
IL_4385: stloc.s 124 (Verse.FloatMenuOption)
IL_4387: br => Label368
IL_438C: Label367
IL_438C: ldloc.s 121 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_33)
IL_438E: ldfld RimWorld.Apparel RimWorld.<>c__DisplayClass10_33::apparel
IL_4393: call static System.Boolean
RimWorld.FireUtility::IsBurning(Verse.Thing t)
IL_4398: brfalse => Label369
IL_439D: ldloc.s 122 (System.String)
IL_439F: ldloc.s 121 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_33)
IL_43A1: ldfld RimWorld.Apparel RimWorld.<>c__DisplayClass10_33::apparel
IL_43A6: callvirt abstract virtual System.String Verse.Entity::get_Label()
IL_43AB: call static Verse.NamedArgument
Verse.NamedArgument::op_Implicit(System.String value)
IL_43B0: ldloc.s 121 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_33)
IL_43B2: ldfld RimWorld.Apparel RimWorld.<>c__DisplayClass10_33::apparel
IL_43B7: call static Verse.NamedArgument
Verse.NamedArgument::op_Implicit(Verse.Thing value)
IL_43BC: call static Verse.TaggedString
Verse.TranslatorFormattedStringExtensions::Translate(System.String key,
Verse.NamedArgument arg1, Verse.NamedArgument arg2)
IL_43C1: ldstr ": "
IL_43C6: call static Verse.TaggedString
Verse.TaggedString::op_Addition(Verse.TaggedString t1, System.String t2)
IL_43CB: ldstr "Burning"
IL_43D0: call static Verse.TaggedString
Verse.Translator::Translate(System.String key)
IL_43D5: call static Verse.TaggedString
Verse.TaggedString::op_Addition(Verse.TaggedString t1, Verse.TaggedString t2)
IL_43DA: call static System.String
Verse.TaggedString::op_Implicit(Verse.TaggedString taggedString)
IL_43DF: ldnull
IL_43E0: ldc.i4.4
IL_43E1: ldnull
IL_43E2: ldnull
IL_43E3: ldc.r4 0
IL_43E8: ldnull
IL_43E9: ldnull
IL_43EA: ldc.i4.1
IL_43EB: ldc.i4.0
IL_43EC: newobj System.Void Verse.FloatMenuOption::.ctor(System.String
label, System.Action action, Verse.MenuOptionPriority priority,
System.Action`1<UnityEngine.Rect> mouseoverGuiAction, Verse.Thing
revalidateClickTarget, System.Single extraPartWidth,
System.Func`2<UnityEngine.Rect, System.Boolean> extraPartOnGUI,
RimWorld.Planet.WorldObject revalidateWorldClickTarget, System.Boolean
playSelectionSound, System.Int32 orderInPriority)
IL_43F1: stloc.s 124 (Verse.FloatMenuOption)
IL_43F3: br => Label370
IL_43F8: Label369
IL_43F8: ldloc.s 121 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_33)
IL_43FA: ldfld RimWorld.<>c__DisplayClass10_0
RimWorld.<>c__DisplayClass10_33::CS$<>8__locals32
IL_43FF: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_4404: ldfld RimWorld.Pawn_ApparelTracker Verse.Pawn::apparel
IL_4409: ldloc.s 121 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_33)
IL_440B: ldfld RimWorld.Apparel RimWorld.<>c__DisplayClass10_33::apparel
IL_4410: callvirt System.Boolean
RimWorld.Pawn_ApparelTracker::WouldReplaceLockedApparel(RimWorld.Apparel
newApparel)
IL_4415: brfalse => Label371
IL_441A: ldloc.s 122 (System.String)
IL_441C: ldloc.s 121 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_33)
IL_441E: ldfld RimWorld.Apparel RimWorld.<>c__DisplayClass10_33::apparel
IL_4423: callvirt abstract virtual System.String Verse.Entity::get_Label()
IL_4428: call static Verse.NamedArgument
Verse.NamedArgument::op_Implicit(System.String value)
IL_442D: ldloc.s 121 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_33)
IL_442F: ldfld RimWorld.Apparel RimWorld.<>c__DisplayClass10_33::apparel
IL_4434: call static Verse.NamedArgument
Verse.NamedArgument::op_Implicit(Verse.Thing value)
IL_4439: call static Verse.TaggedString
Verse.TranslatorFormattedStringExtensions::Translate(System.String key,
Verse.NamedArgument arg1, Verse.NamedArgument arg2)
IL_443E: ldstr ": "
IL_4443: call static Verse.TaggedString
Verse.TaggedString::op_Addition(Verse.TaggedString t1, System.String t2)
IL_4448: ldstr "WouldReplaceLockedApparel"
IL_444D: call static Verse.TaggedString
Verse.Translator::Translate(System.String key)
IL_4452: stloc.s 11 (Verse.TaggedString)
IL_4454: ldloca.s 11 (Verse.TaggedString)
IL_4456: call Verse.TaggedString Verse.TaggedString::CapitalizeFirst()
IL_445B: call static Verse.TaggedString
Verse.TaggedString::op_Addition(Verse.TaggedString t1, Verse.TaggedString t2)
IL_4460: call static System.String
Verse.TaggedString::op_Implicit(Verse.TaggedString taggedString)
IL_4465: ldnull
IL_4466: ldc.i4.4
IL_4467: ldnull
IL_4468: ldnull
IL_4469: ldc.r4 0
IL_446E: ldnull
IL_446F: ldnull
IL_4470: ldc.i4.1
IL_4471: ldc.i4.0
IL_4472: newobj System.Void Verse.FloatMenuOption::.ctor(System.String
label, System.Action action, Verse.MenuOptionPriority priority,
System.Action`1<UnityEngine.Rect> mouseoverGuiAction, Verse.Thing
revalidateClickTarget, System.Single extraPartWidth,
System.Func`2<UnityEngine.Rect, System.Boolean> extraPartOnGUI,
RimWorld.Planet.WorldObject revalidateWorldClickTarget, System.Boolean
playSelectionSound, System.Int32 orderInPriority)
IL_4477: stloc.s 124 (Verse.FloatMenuOption)
IL_4479: br => Label372
IL_447E: Label371
IL_447E: ldloc.s 121 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_33)
IL_4480: ldfld RimWorld.<>c__DisplayClass10_0
RimWorld.<>c__DisplayClass10_33::CS$<>8__locals32
IL_4485: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_448A: ldloc.s 121 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_33)
IL_448C: ldfld RimWorld.Apparel RimWorld.<>c__DisplayClass10_33::apparel
IL_4491: ldfld Verse.ThingDef Verse.Thing::def
IL_4496: call static System.Boolean
RimWorld.ApparelUtility::HasPartsToWear(Verse.Pawn p, Verse.ThingDef apparel)
IL_449B: brtrue => Label373
IL_44A0: ldloc.s 122 (System.String)
IL_44A2: ldloc.s 121 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_33)
IL_44A4: ldfld RimWorld.Apparel RimWorld.<>c__DisplayClass10_33::apparel
IL_44A9: callvirt abstract virtual System.String Verse.Entity::get_Label()
IL_44AE: call static Verse.NamedArgument
Verse.NamedArgument::op_Implicit(System.String value)
IL_44B3: ldloc.s 121 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_33)
IL_44B5: ldfld RimWorld.Apparel RimWorld.<>c__DisplayClass10_33::apparel
IL_44BA: call static Verse.NamedArgument
Verse.NamedArgument::op_Implicit(Verse.Thing value)
IL_44BF: call static Verse.TaggedString
Verse.TranslatorFormattedStringExtensions::Translate(System.String key,
Verse.NamedArgument arg1, Verse.NamedArgument arg2)
IL_44C4: ldstr ": "
IL_44C9: call static Verse.TaggedString
Verse.TaggedString::op_Addition(Verse.TaggedString t1, System.String t2)
IL_44CE: ldstr "CannotWearBecauseOfMissingBodyParts"
IL_44D3: call static Verse.TaggedString
Verse.Translator::Translate(System.String key)
IL_44D8: stloc.s 11 (Verse.TaggedString)
IL_44DA: ldloca.s 11 (Verse.TaggedString)
IL_44DC: call Verse.TaggedString Verse.TaggedString::CapitalizeFirst()
IL_44E1: call static Verse.TaggedString
Verse.TaggedString::op_Addition(Verse.TaggedString t1, Verse.TaggedString t2)
IL_44E6: call static System.String
Verse.TaggedString::op_Implicit(Verse.TaggedString taggedString)
IL_44EB: ldnull
IL_44EC: ldc.i4.4
IL_44ED: ldnull
IL_44EE: ldnull
IL_44EF: ldc.r4 0
IL_44F4: ldnull
IL_44F5: ldnull
IL_44F6: ldc.i4.1
IL_44F7: ldc.i4.0
IL_44F8: newobj System.Void Verse.FloatMenuOption::.ctor(System.String
label, System.Action action, Verse.MenuOptionPriority priority,
System.Action`1<UnityEngine.Rect> mouseoverGuiAction, Verse.Thing
revalidateClickTarget, System.Single extraPartWidth,
System.Func`2<UnityEngine.Rect, System.Boolean> extraPartOnGUI,
RimWorld.Planet.WorldObject revalidateWorldClickTarget, System.Boolean
playSelectionSound, System.Int32 orderInPriority)
IL_44FD: stloc.s 124 (Verse.FloatMenuOption)
IL_44FF: br => Label374
IL_4504: Label373
IL_4504: ldloc.s 121 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_33)
IL_4506: ldfld RimWorld.Apparel RimWorld.<>c__DisplayClass10_33::apparel
IL_450B: ldloc.s 121 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_33)
IL_450D: ldfld RimWorld.<>c__DisplayClass10_0
RimWorld.<>c__DisplayClass10_33::CS$<>8__locals32
IL_4512: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_4517: ldloca.s 125 (System.String)
IL_4519: ldc.i4.1
IL_451A: call static System.Boolean
RimWorld.EquipmentUtility::CanEquip(Verse.Thing thing, Verse.Pawn pawn,
System.String& cantReason, System.Boolean checkBonded)
IL_451F: brtrue => Label375
IL_4524: ldloc.s 122 (System.String)
IL_4526: ldloc.s 121 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_33)
IL_4528: ldfld RimWorld.Apparel RimWorld.<>c__DisplayClass10_33::apparel
IL_452D: callvirt abstract virtual System.String Verse.Entity::get_Label()
IL_4532: call static Verse.NamedArgument
Verse.NamedArgument::op_Implicit(System.String value)
IL_4537: ldloc.s 121 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_33)
IL_4539: ldfld RimWorld.Apparel RimWorld.<>c__DisplayClass10_33::apparel
IL_453E: call static Verse.NamedArgument
Verse.NamedArgument::op_Implicit(Verse.Thing value)
IL_4543: call static Verse.TaggedString
Verse.TranslatorFormattedStringExtensions::Translate(System.String key,
Verse.NamedArgument arg1, Verse.NamedArgument arg2)
IL_4548: ldstr ": "
IL_454D: call static Verse.TaggedString
Verse.TaggedString::op_Addition(Verse.TaggedString t1, System.String t2)
IL_4552: ldloc.s 125 (System.String)
IL_4554: call static Verse.TaggedString
Verse.TaggedString::op_Addition(Verse.TaggedString t1, System.String t2)
IL_4559: call static System.String
Verse.TaggedString::op_Implicit(Verse.TaggedString taggedString)
IL_455E: ldnull
IL_455F: ldc.i4.4
IL_4560: ldnull
IL_4561: ldnull
IL_4562: ldc.r4 0
IL_4567: ldnull
IL_4568: ldnull
IL_4569: ldc.i4.1
IL_456A: ldc.i4.0
IL_456B: newobj System.Void Verse.FloatMenuOption::.ctor(System.String
label, System.Action action, Verse.MenuOptionPriority priority,
System.Action`1<UnityEngine.Rect> mouseoverGuiAction, Verse.Thing
revalidateClickTarget, System.Single extraPartWidth,
System.Func`2<UnityEngine.Rect, System.Boolean> extraPartOnGUI,
RimWorld.Planet.WorldObject revalidateWorldClickTarget, System.Boolean
playSelectionSound, System.Int32 orderInPriority)
IL_4570: stloc.s 124 (Verse.FloatMenuOption)
IL_4572: br => Label376
IL_4577: Label375
IL_4577: ldloc.s 123 (System.String)
IL_4579: ldloc.s 121 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_33)
IL_457B: ldfld RimWorld.Apparel RimWorld.<>c__DisplayClass10_33::apparel
IL_4580: callvirt virtual System.String Verse.Entity::get_LabelShort()
IL_4585: call static Verse.NamedArgument
Verse.NamedArgument::op_Implicit(System.String value)
IL_458A: ldloc.s 121 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_33)
IL_458C: ldfld RimWorld.Apparel RimWorld.<>c__DisplayClass10_33::apparel
IL_4591: call static Verse.NamedArgument
Verse.NamedArgument::op_Implicit(Verse.Thing value)
IL_4596: call static Verse.TaggedString
Verse.TranslatorFormattedStringExtensions::Translate(System.String key,
Verse.NamedArgument arg1, Verse.NamedArgument arg2)
IL_459B: call static System.String
Verse.TaggedString::op_Implicit(Verse.TaggedString taggedString)
IL_45A0: ldloc.s 121 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_33)
IL_45A2: ldftn System.Void
RimWorld.<>c__DisplayClass10_33::<AddHumanlikeOrders>b__43()
IL_45A8: newobj System.Void System.Action::.ctor(System.Object object,
System.IntPtr method)
IL_45AD: ldc.i4.5
IL_45AE: ldnull
IL_45AF: ldnull
IL_45B0: ldc.r4 0
IL_45B5: ldnull
IL_45B6: ldnull
IL_45B7: ldc.i4.1
IL_45B8: ldc.i4.0
IL_45B9: newobj System.Void Verse.FloatMenuOption::.ctor(System.String
label, System.Action action, Verse.MenuOptionPriority priority,
System.Action`1<UnityEngine.Rect> mouseoverGuiAction, Verse.Thing
revalidateClickTarget, System.Single extraPartWidth,
System.Func`2<UnityEngine.Rect, System.Boolean> extraPartOnGUI,
RimWorld.Planet.WorldObject revalidateWorldClickTarget, System.Boolean
playSelectionSound, System.Int32 orderInPriority)
IL_45BE: ldloc.s 121 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_33)
IL_45C0: ldfld RimWorld.<>c__DisplayClass10_0
RimWorld.<>c__DisplayClass10_33::CS$<>8__locals32
IL_45C5: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_45CA: ldloc.s 121 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_33)
IL_45CC: ldfld RimWorld.Apparel RimWorld.<>c__DisplayClass10_33::apparel
IL_45D1: call static Verse.LocalTargetInfo
Verse.LocalTargetInfo::op_Implicit(Verse.Thing t)
IL_45D6: ldstr "ReservedBy"
IL_45DB: ldnull
IL_45DC: call static Verse.FloatMenuOption
RimWorld.FloatMenuUtility::DecoratePrioritizedTask(Verse.FloatMenuOption option,
Verse.Pawn pawn, Verse.LocalTargetInfo target, System.String reservedText,
Verse.ReservationLayerDef layer)
IL_45E1: stloc.s 124 (Verse.FloatMenuOption)
IL_45E3: Label368
IL_45E3: Label370
IL_45E3: Label372
IL_45E3: Label374
IL_45E3: Label376
IL_45E3: ldarg.2
IL_45E4: ldloc.s 124 (Verse.FloatMenuOption)
IL_45E6: callvirt virtual System.Void
System.Collections.Generic.List`1<Verse.FloatMenuOption>::Add(Verse.FloatMenuOption
item)
IL_45EB: Label364
IL_45EB: Label365
IL_45EB: ldloc.s 60
(System.Collections.Generic.IEnumerator`1[Verse.Thing])
IL_45ED: callvirt abstract virtual System.Boolean
System.Collections.IEnumerator::MoveNext()
IL_45F2: brtrue => Label377
IL_45F7: leave => Label378
IL_45FC: leave => (autogenerated)
} // end try
.finally
{
IL_4601: ldloc.s 60
(System.Collections.Generic.IEnumerator`1[Verse.Thing])
IL_4603: brfalse => Label379
IL_4608: ldloc.s 60
(System.Collections.Generic.IEnumerator`1[Verse.Thing])
IL_460A: callvirt abstract virtual System.Void
System.IDisposable::Dispose()
IL_460F: Label379
IL_460F: endfinally
IL_4610: leave => (autogenerated)
} // end handler
IL_4611: Label363
IL_4611: Label378
IL_4611: ldloc.0
IL_4612: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_4617: call static System.Boolean
RimWorld.Planet.CaravanFormingUtility::IsFormingCaravan(Verse.Pawn p)
IL_461C: brfalse => Label380
IL_4621: ldloc.1
IL_4622: ldloc.0
IL_4623: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_4628: callvirt virtual Verse.Map Verse.Thing::get_Map()
IL_462D: call static System.Collections.Generic.IEnumerable`1<Verse.Thing>
Verse.GridsUtility::GetItems(Verse.IntVec3 c, Verse.Map map)
IL_4632: callvirt abstract virtual
System.Collections.Generic.IEnumerator`1<Verse.Thing>
System.Collections.Generic.IEnumerable`1<Verse.Thing>::GetEnumerator()
IL_4637: stloc.s 60 (System.Collections.Generic.IEnumerator`1[Verse.Thing])
.try
{
IL_4639: br => Label381
IL_463E: Label395
IL_463E: newobj System.Void RimWorld.<>c__DisplayClass10_34::.ctor()
IL_4643: stloc.s 126 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_34)
IL_4645: ldloc.s 126 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_34)
IL_4647: ldloc.0
IL_4648: stfld RimWorld.<>c__DisplayClass10_0
RimWorld.<>c__DisplayClass10_34::CS$<>8__locals33
IL_464D: ldloc.s 126 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_34)
IL_464F: ldloc.s 60
(System.Collections.Generic.IEnumerator`1[Verse.Thing])
IL_4651: callvirt abstract virtual Verse.Thing
System.Collections.Generic.IEnumerator`1<Verse.Thing>::get_Current()
IL_4656: stfld Verse.Thing RimWorld.<>c__DisplayClass10_34::item
IL_465B: newobj System.Void RimWorld.<>c__DisplayClass10_35::.ctor()
IL_4660: stloc.s 127 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_35)
IL_4662: ldloc.s 127 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_35)
IL_4664: ldloc.s 126 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_34)
IL_4666: stfld RimWorld.<>c__DisplayClass10_34
RimWorld.<>c__DisplayClass10_35::CS$<>8__locals34
IL_466B: ldloc.s 127 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_35)
IL_466D: ldfld RimWorld.<>c__DisplayClass10_34
RimWorld.<>c__DisplayClass10_35::CS$<>8__locals34
IL_4672: ldfld Verse.Thing RimWorld.<>c__DisplayClass10_34::item
IL_4677: ldfld Verse.ThingDef Verse.Thing::def
IL_467C: callvirt System.Boolean Verse.ThingDef::get_EverHaulable()
IL_4681: brfalse => Label382
IL_4686: ldloc.s 127 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_35)
IL_4688: ldfld RimWorld.<>c__DisplayClass10_34
RimWorld.<>c__DisplayClass10_35::CS$<>8__locals34
IL_468D: ldfld Verse.Thing RimWorld.<>c__DisplayClass10_34::item
IL_4692: ldfld Verse.ThingDef Verse.Thing::def
IL_4697: ldfld System.Boolean Verse.ThingDef::canLoadIntoCaravan
IL_469C: brfalse => Label383
IL_46A1: ldloc.s 127 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_35)
IL_46A3: ldloc.s 127 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_35)
IL_46A5: ldfld RimWorld.<>c__DisplayClass10_34
RimWorld.<>c__DisplayClass10_35::CS$<>8__locals34
IL_46AA: ldfld RimWorld.<>c__DisplayClass10_0
RimWorld.<>c__DisplayClass10_34::CS$<>8__locals33
IL_46AF: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_46B4: call static Verse.Pawn
RimWorld.GiveToPackAnimalUtility::UsablePackAnimalWithTheMostFreeSpace(Verse.Pawn
pawn)
IL_46B9: dup
IL_46BA: brtrue => Label384
IL_46BF: pop
IL_46C0: ldloc.s 127 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_35)
IL_46C2: ldfld RimWorld.<>c__DisplayClass10_34
RimWorld.<>c__DisplayClass10_35::CS$<>8__locals34
IL_46C7: ldfld RimWorld.<>c__DisplayClass10_0
RimWorld.<>c__DisplayClass10_34::CS$<>8__locals33
IL_46CC: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_46D1: Label384
IL_46D1: stfld Verse.Pawn RimWorld.<>c__DisplayClass10_35::packTarget
IL_46D6: ldloc.s 127 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_35)
IL_46D8: ldloc.s 127 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_35)
IL_46DA: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_35::packTarget
IL_46DF: ldloc.s 127 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_35)
IL_46E1: ldfld RimWorld.<>c__DisplayClass10_34
RimWorld.<>c__DisplayClass10_35::CS$<>8__locals34
IL_46E6: ldfld RimWorld.<>c__DisplayClass10_0
RimWorld.<>c__DisplayClass10_34::CS$<>8__locals33
IL_46EB: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_46F0: beq => Label385
IL_46F5: ldsfld Verse.JobDef RimWorld.JobDefOf::GiveToPackAnimal
IL_46FA: br => Label386
IL_46FF: Label385
IL_46FF: ldsfld Verse.JobDef RimWorld.JobDefOf::TakeInventory
IL_4704: Label386
IL_4704: stfld Verse.JobDef RimWorld.<>c__DisplayClass10_35::jobDef
IL_4709: ldloc.s 127 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_35)
IL_470B: ldfld RimWorld.<>c__DisplayClass10_34
RimWorld.<>c__DisplayClass10_35::CS$<>8__locals34
IL_4710: ldfld RimWorld.<>c__DisplayClass10_0
RimWorld.<>c__DisplayClass10_34::CS$<>8__locals33
IL_4715: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_471A: ldloc.s 127 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_35)
IL_471C: ldfld RimWorld.<>c__DisplayClass10_34
RimWorld.<>c__DisplayClass10_35::CS$<>8__locals34
IL_4721: ldfld Verse.Thing RimWorld.<>c__DisplayClass10_34::item
IL_4726: call static Verse.LocalTargetInfo
Verse.LocalTargetInfo::op_Implicit(Verse.Thing t)
IL_472B: ldc.i4.3
IL_472C: ldc.i4.3
IL_472D: ldc.i4.0
IL_472E: ldc.i4.0
IL_472F: ldc.i4.0
IL_4730: call static System.Boolean
Verse.ReachabilityUtility::CanReach(Verse.Pawn pawn, Verse.LocalTargetInfo dest,
Verse.AI.PathEndMode peMode, Verse.Danger maxDanger, System.Boolean canBashDoors,
System.Boolean canBashFences, Verse.TraverseMode mode)
IL_4735: brtrue => Label387
IL_473A: ldarg.2
IL_473B: ldstr "CannotLoadIntoCaravan"
IL_4740: ldloc.s 127 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_35)
IL_4742: ldfld RimWorld.<>c__DisplayClass10_34
RimWorld.<>c__DisplayClass10_35::CS$<>8__locals34
IL_4747: ldfld Verse.Thing RimWorld.<>c__DisplayClass10_34::item
IL_474C: callvirt abstract virtual System.String Verse.Entity::get_Label()
IL_4751: call static Verse.NamedArgument
Verse.NamedArgument::op_Implicit(System.String value)
IL_4756: ldloc.s 127 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_35)
IL_4758: ldfld RimWorld.<>c__DisplayClass10_34
RimWorld.<>c__DisplayClass10_35::CS$<>8__locals34
IL_475D: ldfld Verse.Thing RimWorld.<>c__DisplayClass10_34::item
IL_4762: call static Verse.NamedArgument
Verse.NamedArgument::op_Implicit(Verse.Thing value)
IL_4767: call static Verse.TaggedString
Verse.TranslatorFormattedStringExtensions::Translate(System.String key,
Verse.NamedArgument arg1, Verse.NamedArgument arg2)
IL_476C: ldstr ": "
IL_4771: call static Verse.TaggedString
Verse.TaggedString::op_Addition(Verse.TaggedString t1, System.String t2)
IL_4776: ldstr "NoPath"
IL_477B: call static Verse.TaggedString
Verse.Translator::Translate(System.String key)
IL_4780: stloc.s 11 (Verse.TaggedString)
IL_4782: ldloca.s 11 (Verse.TaggedString)
IL_4784: call Verse.TaggedString Verse.TaggedString::CapitalizeFirst()
IL_4789: call static Verse.TaggedString
Verse.TaggedString::op_Addition(Verse.TaggedString t1, Verse.TaggedString t2)
IL_478E: call static System.String
Verse.TaggedString::op_Implicit(Verse.TaggedString taggedString)
IL_4793: ldnull
IL_4794: ldc.i4.4
IL_4795: ldnull
IL_4796: ldnull
IL_4797: ldc.r4 0
IL_479C: ldnull
IL_479D: ldnull
IL_479E: ldc.i4.1
IL_479F: ldc.i4.0
IL_47A0: newobj System.Void Verse.FloatMenuOption::.ctor(System.String
label, System.Action action, Verse.MenuOptionPriority priority,
System.Action`1<UnityEngine.Rect> mouseoverGuiAction, Verse.Thing
revalidateClickTarget, System.Single extraPartWidth,
System.Func`2<UnityEngine.Rect, System.Boolean> extraPartOnGUI,
RimWorld.Planet.WorldObject revalidateWorldClickTarget, System.Boolean
playSelectionSound, System.Int32 orderInPriority)
IL_47A5: callvirt virtual System.Void
System.Collections.Generic.List`1<Verse.FloatMenuOption>::Add(Verse.FloatMenuOption
item)
IL_47AA: br => Label388
IL_47AF: Label387
IL_47AF: ldloc.s 127 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_35)
IL_47B1: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_35::packTarget
IL_47B6: ldloc.s 127 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_35)
IL_47B8: ldfld RimWorld.<>c__DisplayClass10_34
RimWorld.<>c__DisplayClass10_35::CS$<>8__locals34
IL_47BD: ldfld Verse.Thing RimWorld.<>c__DisplayClass10_34::item
IL_47C2: ldc.i4.1
IL_47C3: call static System.Boolean
RimWorld.MassUtility::WillBeOverEncumberedAfterPickingUp(Verse.Pawn pawn,
Verse.Thing thing, System.Int32 count)
IL_47C8: brfalse => Label389
IL_47CD: ldarg.2
IL_47CE: ldstr "CannotLoadIntoCaravan"
IL_47D3: ldloc.s 127 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_35)
IL_47D5: ldfld RimWorld.<>c__DisplayClass10_34
RimWorld.<>c__DisplayClass10_35::CS$<>8__locals34
IL_47DA: ldfld Verse.Thing RimWorld.<>c__DisplayClass10_34::item
IL_47DF: callvirt abstract virtual System.String Verse.Entity::get_Label()
IL_47E4: call static Verse.NamedArgument
Verse.NamedArgument::op_Implicit(System.String value)
IL_47E9: ldloc.s 127 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_35)
IL_47EB: ldfld RimWorld.<>c__DisplayClass10_34
RimWorld.<>c__DisplayClass10_35::CS$<>8__locals34
IL_47F0: ldfld Verse.Thing RimWorld.<>c__DisplayClass10_34::item
IL_47F5: call static Verse.NamedArgument
Verse.NamedArgument::op_Implicit(Verse.Thing value)
IL_47FA: call static Verse.TaggedString
Verse.TranslatorFormattedStringExtensions::Translate(System.String key,
Verse.NamedArgument arg1, Verse.NamedArgument arg2)
IL_47FF: ldstr ": "
IL_4804: call static Verse.TaggedString
Verse.TaggedString::op_Addition(Verse.TaggedString t1, System.String t2)
IL_4809: ldstr "TooHeavy"
IL_480E: call static Verse.TaggedString
Verse.Translator::Translate(System.String key)
IL_4813: call static Verse.TaggedString
Verse.TaggedString::op_Addition(Verse.TaggedString t1, Verse.TaggedString t2)
IL_4818: call static System.String
Verse.TaggedString::op_Implicit(Verse.TaggedString taggedString)
IL_481D: ldnull
IL_481E: ldc.i4.4
IL_481F: ldnull
IL_4820: ldnull
IL_4821: ldc.r4 0
IL_4826: ldnull
IL_4827: ldnull
IL_4828: ldc.i4.1
IL_4829: ldc.i4.0
IL_482A: newobj System.Void Verse.FloatMenuOption::.ctor(System.String
label, System.Action action, Verse.MenuOptionPriority priority,
System.Action`1<UnityEngine.Rect> mouseoverGuiAction, Verse.Thing
revalidateClickTarget, System.Single extraPartWidth,
System.Func`2<UnityEngine.Rect, System.Boolean> extraPartOnGUI,
RimWorld.Planet.WorldObject revalidateWorldClickTarget, System.Boolean
playSelectionSound, System.Int32 orderInPriority)
IL_482F: callvirt virtual System.Void
System.Collections.Generic.List`1<Verse.FloatMenuOption>::Add(Verse.FloatMenuOption
item)
IL_4834: br => Label390
IL_4839: Label389
IL_4839: newobj System.Void RimWorld.<>c__DisplayClass10_36::.ctor()
IL_483E: stloc.s 128 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_36)
IL_4840: ldloc.s 128 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_36)
IL_4842: ldloc.s 127 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_35)
IL_4844: stfld RimWorld.<>c__DisplayClass10_35
RimWorld.<>c__DisplayClass10_36::CS$<>8__locals35
IL_4849: ldloc.s 128 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_36)
IL_484B: ldfld RimWorld.<>c__DisplayClass10_35
RimWorld.<>c__DisplayClass10_36::CS$<>8__locals35
IL_4850: ldfld RimWorld.<>c__DisplayClass10_34
RimWorld.<>c__DisplayClass10_35::CS$<>8__locals34
IL_4855: ldfld RimWorld.<>c__DisplayClass10_0
RimWorld.<>c__DisplayClass10_34::CS$<>8__locals33
IL_485A: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_485F: call static Verse.AI.Group.Lord
Verse.AI.Group.LordUtility::GetLord(Verse.Pawn p)
IL_4864: callvirt Verse.AI.Group.LordJob Verse.AI.Group.Lord::get_LordJob()
IL_4869: castclass RimWorld.LordJob_FormAndSendCaravan
IL_486E: stloc.s 129 (RimWorld.LordJob_FormAndSendCaravan)
IL_4870: ldloc.s 128 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_36)
IL_4872: ldloc.s 129 (RimWorld.LordJob_FormAndSendCaravan)
IL_4874: call static System.Single
RimWorld.Planet.CaravanFormingUtility::CapacityLeft(RimWorld.LordJob_FormAndSendCar
avan lordJob)
IL_4879: stfld System.Single
RimWorld.<>c__DisplayClass10_36::capacityLeft
IL_487E: ldloc.s 128 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_36)
IL_4880: ldfld RimWorld.<>c__DisplayClass10_35
RimWorld.<>c__DisplayClass10_36::CS$<>8__locals35
IL_4885: ldfld RimWorld.<>c__DisplayClass10_34
RimWorld.<>c__DisplayClass10_35::CS$<>8__locals34
IL_488A: ldfld Verse.Thing RimWorld.<>c__DisplayClass10_34::item
IL_488F: ldfld System.Int32 Verse.Thing::stackCount
IL_4894: ldc.i4.1
IL_4895: bne.un => Label391
IL_489A: ldloc.s 128 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_36)
IL_489C: ldfld System.Single
RimWorld.<>c__DisplayClass10_36::capacityLeft
IL_48A1: ldloc.s 128 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_36)
IL_48A3: ldfld RimWorld.<>c__DisplayClass10_35
RimWorld.<>c__DisplayClass10_36::CS$<>8__locals35
IL_48A8: ldfld RimWorld.<>c__DisplayClass10_34
RimWorld.<>c__DisplayClass10_35::CS$<>8__locals34
IL_48AD: ldfld Verse.Thing RimWorld.<>c__DisplayClass10_34::item
IL_48B2: ldsfld RimWorld.StatDef RimWorld.StatDefOf::Mass
IL_48B7: ldc.i4.1
IL_48B8: ldc.i4.m1
IL_48B9: call static System.Single
RimWorld.StatExtension::GetStatValue(Verse.Thing thing, RimWorld.StatDef stat,
System.Boolean applyPostProcess, System.Int32 cacheStaleAfterTicks)
IL_48BE: sub
IL_48BF: stloc.s 130 (System.Single)
IL_48C1: ldarg.2
IL_48C2: ldstr "LoadIntoCaravan"
IL_48C7: ldloc.s 128 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_36)
IL_48C9: ldfld RimWorld.<>c__DisplayClass10_35
RimWorld.<>c__DisplayClass10_36::CS$<>8__locals35
IL_48CE: ldfld RimWorld.<>c__DisplayClass10_34
RimWorld.<>c__DisplayClass10_35::CS$<>8__locals34
IL_48D3: ldfld Verse.Thing RimWorld.<>c__DisplayClass10_34::item
IL_48D8: callvirt abstract virtual System.String Verse.Entity::get_Label()
IL_48DD: call static Verse.NamedArgument
Verse.NamedArgument::op_Implicit(System.String value)
IL_48E2: ldloc.s 128 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_36)
IL_48E4: ldfld RimWorld.<>c__DisplayClass10_35
RimWorld.<>c__DisplayClass10_36::CS$<>8__locals35
IL_48E9: ldfld RimWorld.<>c__DisplayClass10_34
RimWorld.<>c__DisplayClass10_35::CS$<>8__locals34
IL_48EE: ldfld Verse.Thing RimWorld.<>c__DisplayClass10_34::item
IL_48F3: call static Verse.NamedArgument
Verse.NamedArgument::op_Implicit(Verse.Thing value)
IL_48F8: call static Verse.TaggedString
Verse.TranslatorFormattedStringExtensions::Translate(System.String key,
Verse.NamedArgument arg1, Verse.NamedArgument arg2)
IL_48FD: call static System.String
Verse.TaggedString::op_Implicit(Verse.TaggedString taggedString)
IL_4902: ldloc.s 130 (System.Single)
IL_4904: call static System.String
RimWorld.Planet.CaravanFormingUtility::AppendOverweightInfo(System.String text,
System.Single capacityLeft)
IL_4909: ldloc.s 128 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_36)
IL_490B: ldfld RimWorld.<>c__DisplayClass10_35
RimWorld.<>c__DisplayClass10_36::CS$<>8__locals35
IL_4910: ldftn System.Void
RimWorld.<>c__DisplayClass10_35::<AddHumanlikeOrders>b__46()
IL_4916: newobj System.Void System.Action::.ctor(System.Object object,
System.IntPtr method)
IL_491B: ldc.i4.5
IL_491C: ldnull
IL_491D: ldnull
IL_491E: ldc.r4 0
IL_4923: ldnull
IL_4924: ldnull
IL_4925: ldc.i4.1
IL_4926: ldc.i4.0
IL_4927: newobj System.Void Verse.FloatMenuOption::.ctor(System.String
label, System.Action action, Verse.MenuOptionPriority priority,
System.Action`1<UnityEngine.Rect> mouseoverGuiAction, Verse.Thing
revalidateClickTarget, System.Single extraPartWidth,
System.Func`2<UnityEngine.Rect, System.Boolean> extraPartOnGUI,
RimWorld.Planet.WorldObject revalidateWorldClickTarget, System.Boolean
playSelectionSound, System.Int32 orderInPriority)
IL_492C: ldloc.s 128 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_36)
IL_492E: ldfld RimWorld.<>c__DisplayClass10_35
RimWorld.<>c__DisplayClass10_36::CS$<>8__locals35
IL_4933: ldfld RimWorld.<>c__DisplayClass10_34
RimWorld.<>c__DisplayClass10_35::CS$<>8__locals34
IL_4938: ldfld RimWorld.<>c__DisplayClass10_0
RimWorld.<>c__DisplayClass10_34::CS$<>8__locals33
IL_493D: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_4942: ldloc.s 128 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_36)
IL_4944: ldfld RimWorld.<>c__DisplayClass10_35
RimWorld.<>c__DisplayClass10_36::CS$<>8__locals35
IL_4949: ldfld RimWorld.<>c__DisplayClass10_34
RimWorld.<>c__DisplayClass10_35::CS$<>8__locals34
IL_494E: ldfld Verse.Thing RimWorld.<>c__DisplayClass10_34::item
IL_4953: call static Verse.LocalTargetInfo
Verse.LocalTargetInfo::op_Implicit(Verse.Thing t)
IL_4958: ldstr "ReservedBy"
IL_495D: ldnull
IL_495E: call static Verse.FloatMenuOption
RimWorld.FloatMenuUtility::DecoratePrioritizedTask(Verse.FloatMenuOption option,
Verse.Pawn pawn, Verse.LocalTargetInfo target, System.String reservedText,
Verse.ReservationLayerDef layer)
IL_4963: callvirt virtual System.Void
System.Collections.Generic.List`1<Verse.FloatMenuOption>::Add(Verse.FloatMenuOption
item)
IL_4968: br => Label392
IL_496D: Label391
IL_496D: ldloc.s 128 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_36)
IL_496F: ldfld RimWorld.<>c__DisplayClass10_35
RimWorld.<>c__DisplayClass10_36::CS$<>8__locals35
IL_4974: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_35::packTarget
IL_4979: ldloc.s 128 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_36)
IL_497B: ldfld RimWorld.<>c__DisplayClass10_35
RimWorld.<>c__DisplayClass10_36::CS$<>8__locals35
IL_4980: ldfld RimWorld.<>c__DisplayClass10_34
RimWorld.<>c__DisplayClass10_35::CS$<>8__locals34
IL_4985: ldfld Verse.Thing RimWorld.<>c__DisplayClass10_34::item
IL_498A: ldloc.s 128 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_36)
IL_498C: ldfld RimWorld.<>c__DisplayClass10_35
RimWorld.<>c__DisplayClass10_36::CS$<>8__locals35
IL_4991: ldfld RimWorld.<>c__DisplayClass10_34
RimWorld.<>c__DisplayClass10_35::CS$<>8__locals34
IL_4996: ldfld Verse.Thing RimWorld.<>c__DisplayClass10_34::item
IL_499B: ldfld System.Int32 Verse.Thing::stackCount
IL_49A0: call static System.Boolean
RimWorld.MassUtility::WillBeOverEncumberedAfterPickingUp(Verse.Pawn pawn,
Verse.Thing thing, System.Int32 count)
IL_49A5: brfalse => Label393
IL_49AA: ldarg.2
IL_49AB: ldstr "CannotLoadIntoCaravanAll"
IL_49B0: ldloc.s 128 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_36)
IL_49B2: ldfld RimWorld.<>c__DisplayClass10_35
RimWorld.<>c__DisplayClass10_36::CS$<>8__locals35
IL_49B7: ldfld RimWorld.<>c__DisplayClass10_34
RimWorld.<>c__DisplayClass10_35::CS$<>8__locals34
IL_49BC: ldfld Verse.Thing RimWorld.<>c__DisplayClass10_34::item
IL_49C1: callvirt abstract virtual System.String Verse.Entity::get_Label()
IL_49C6: call static Verse.NamedArgument
Verse.NamedArgument::op_Implicit(System.String value)
IL_49CB: ldloc.s 128 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_36)
IL_49CD: ldfld RimWorld.<>c__DisplayClass10_35
RimWorld.<>c__DisplayClass10_36::CS$<>8__locals35
IL_49D2: ldfld RimWorld.<>c__DisplayClass10_34
RimWorld.<>c__DisplayClass10_35::CS$<>8__locals34
IL_49D7: ldfld Verse.Thing RimWorld.<>c__DisplayClass10_34::item
IL_49DC: call static Verse.NamedArgument
Verse.NamedArgument::op_Implicit(Verse.Thing value)
IL_49E1: call static Verse.TaggedString
Verse.TranslatorFormattedStringExtensions::Translate(System.String key,
Verse.NamedArgument arg1, Verse.NamedArgument arg2)
IL_49E6: ldstr ": "
IL_49EB: call static Verse.TaggedString
Verse.TaggedString::op_Addition(Verse.TaggedString t1, System.String t2)
IL_49F0: ldstr "TooHeavy"
IL_49F5: call static Verse.TaggedString
Verse.Translator::Translate(System.String key)
IL_49FA: call static Verse.TaggedString
Verse.TaggedString::op_Addition(Verse.TaggedString t1, Verse.TaggedString t2)
IL_49FF: call static System.String
Verse.TaggedString::op_Implicit(Verse.TaggedString taggedString)
IL_4A04: ldnull
IL_4A05: ldc.i4.4
IL_4A06: ldnull
IL_4A07: ldnull
IL_4A08: ldc.r4 0
IL_4A0D: ldnull
IL_4A0E: ldnull
IL_4A0F: ldc.i4.1
IL_4A10: ldc.i4.0
IL_4A11: newobj System.Void Verse.FloatMenuOption::.ctor(System.String
label, System.Action action, Verse.MenuOptionPriority priority,
System.Action`1<UnityEngine.Rect> mouseoverGuiAction, Verse.Thing
revalidateClickTarget, System.Single extraPartWidth,
System.Func`2<UnityEngine.Rect, System.Boolean> extraPartOnGUI,
RimWorld.Planet.WorldObject revalidateWorldClickTarget, System.Boolean
playSelectionSound, System.Int32 orderInPriority)
IL_4A16: callvirt virtual System.Void
System.Collections.Generic.List`1<Verse.FloatMenuOption>::Add(Verse.FloatMenuOption
item)
IL_4A1B: br => Label394
IL_4A20: Label393
IL_4A20: ldloc.s 128 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_36)
IL_4A22: ldfld System.Single
RimWorld.<>c__DisplayClass10_36::capacityLeft
IL_4A27: ldloc.s 128 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_36)
IL_4A29: ldfld RimWorld.<>c__DisplayClass10_35
RimWorld.<>c__DisplayClass10_36::CS$<>8__locals35
IL_4A2E: ldfld RimWorld.<>c__DisplayClass10_34
RimWorld.<>c__DisplayClass10_35::CS$<>8__locals34
IL_4A33: ldfld Verse.Thing RimWorld.<>c__DisplayClass10_34::item
IL_4A38: ldfld System.Int32 Verse.Thing::stackCount
IL_4A3D: conv.r4
IL_4A3E: ldloc.s 128 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_36)
IL_4A40: ldfld RimWorld.<>c__DisplayClass10_35
RimWorld.<>c__DisplayClass10_36::CS$<>8__locals35
IL_4A45: ldfld RimWorld.<>c__DisplayClass10_34
RimWorld.<>c__DisplayClass10_35::CS$<>8__locals34
IL_4A4A: ldfld Verse.Thing RimWorld.<>c__DisplayClass10_34::item
IL_4A4F: ldsfld RimWorld.StatDef RimWorld.StatDefOf::Mass
IL_4A54: ldc.i4.1
IL_4A55: ldc.i4.m1
IL_4A56: call static System.Single
RimWorld.StatExtension::GetStatValue(Verse.Thing thing, RimWorld.StatDef stat,
System.Boolean applyPostProcess, System.Int32 cacheStaleAfterTicks)
IL_4A5B: mul
IL_4A5C: sub
IL_4A5D: stloc.s 131 (System.Single)
IL_4A5F: ldarg.2
IL_4A60: ldstr "LoadIntoCaravanAll"
IL_4A65: ldloc.s 128 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_36)
IL_4A67: ldfld RimWorld.<>c__DisplayClass10_35
RimWorld.<>c__DisplayClass10_36::CS$<>8__locals35
IL_4A6C: ldfld RimWorld.<>c__DisplayClass10_34
RimWorld.<>c__DisplayClass10_35::CS$<>8__locals34
IL_4A71: ldfld Verse.Thing RimWorld.<>c__DisplayClass10_34::item
IL_4A76: callvirt abstract virtual System.String Verse.Entity::get_Label()
IL_4A7B: call static Verse.NamedArgument
Verse.NamedArgument::op_Implicit(System.String value)
IL_4A80: ldloc.s 128 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_36)
IL_4A82: ldfld RimWorld.<>c__DisplayClass10_35
RimWorld.<>c__DisplayClass10_36::CS$<>8__locals35
IL_4A87: ldfld RimWorld.<>c__DisplayClass10_34
RimWorld.<>c__DisplayClass10_35::CS$<>8__locals34
IL_4A8C: ldfld Verse.Thing RimWorld.<>c__DisplayClass10_34::item
IL_4A91: call static Verse.NamedArgument
Verse.NamedArgument::op_Implicit(Verse.Thing value)
IL_4A96: call static Verse.TaggedString
Verse.TranslatorFormattedStringExtensions::Translate(System.String key,
Verse.NamedArgument arg1, Verse.NamedArgument arg2)
IL_4A9B: call static System.String
Verse.TaggedString::op_Implicit(Verse.TaggedString taggedString)
IL_4AA0: ldloc.s 131 (System.Single)
IL_4AA2: call static System.String
RimWorld.Planet.CaravanFormingUtility::AppendOverweightInfo(System.String text,
System.Single capacityLeft)
IL_4AA7: ldloc.s 128 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_36)
IL_4AA9: ldfld RimWorld.<>c__DisplayClass10_35
RimWorld.<>c__DisplayClass10_36::CS$<>8__locals35
IL_4AAE: ldftn System.Void
RimWorld.<>c__DisplayClass10_35::<AddHumanlikeOrders>b__47()
IL_4AB4: newobj System.Void System.Action::.ctor(System.Object object,
System.IntPtr method)
IL_4AB9: ldc.i4.5
IL_4ABA: ldnull
IL_4ABB: ldnull
IL_4ABC: ldc.r4 0
IL_4AC1: ldnull
IL_4AC2: ldnull
IL_4AC3: ldc.i4.1
IL_4AC4: ldc.i4.0
IL_4AC5: newobj System.Void Verse.FloatMenuOption::.ctor(System.String
label, System.Action action, Verse.MenuOptionPriority priority,
System.Action`1<UnityEngine.Rect> mouseoverGuiAction, Verse.Thing
revalidateClickTarget, System.Single extraPartWidth,
System.Func`2<UnityEngine.Rect, System.Boolean> extraPartOnGUI,
RimWorld.Planet.WorldObject revalidateWorldClickTarget, System.Boolean
playSelectionSound, System.Int32 orderInPriority)
IL_4ACA: ldloc.s 128 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_36)
IL_4ACC: ldfld RimWorld.<>c__DisplayClass10_35
RimWorld.<>c__DisplayClass10_36::CS$<>8__locals35
IL_4AD1: ldfld RimWorld.<>c__DisplayClass10_34
RimWorld.<>c__DisplayClass10_35::CS$<>8__locals34
IL_4AD6: ldfld RimWorld.<>c__DisplayClass10_0
RimWorld.<>c__DisplayClass10_34::CS$<>8__locals33
IL_4ADB: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_4AE0: ldloc.s 128 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_36)
IL_4AE2: ldfld RimWorld.<>c__DisplayClass10_35
RimWorld.<>c__DisplayClass10_36::CS$<>8__locals35
IL_4AE7: ldfld RimWorld.<>c__DisplayClass10_34
RimWorld.<>c__DisplayClass10_35::CS$<>8__locals34
IL_4AEC: ldfld Verse.Thing RimWorld.<>c__DisplayClass10_34::item
IL_4AF1: call static Verse.LocalTargetInfo
Verse.LocalTargetInfo::op_Implicit(Verse.Thing t)
IL_4AF6: ldstr "ReservedBy"
IL_4AFB: ldnull
IL_4AFC: call static Verse.FloatMenuOption
RimWorld.FloatMenuUtility::DecoratePrioritizedTask(Verse.FloatMenuOption option,
Verse.Pawn pawn, Verse.LocalTargetInfo target, System.String reservedText,
Verse.ReservationLayerDef layer)
IL_4B01: callvirt virtual System.Void
System.Collections.Generic.List`1<Verse.FloatMenuOption>::Add(Verse.FloatMenuOption
item)
IL_4B06: Label394
IL_4B06: ldarg.2
IL_4B07: ldstr "LoadIntoCaravanSome"
IL_4B0C: ldloc.s 128 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_36)
IL_4B0E: ldfld RimWorld.<>c__DisplayClass10_35
RimWorld.<>c__DisplayClass10_36::CS$<>8__locals35
IL_4B13: ldfld RimWorld.<>c__DisplayClass10_34
RimWorld.<>c__DisplayClass10_35::CS$<>8__locals34
IL_4B18: ldfld Verse.Thing RimWorld.<>c__DisplayClass10_34::item
IL_4B1D: callvirt virtual System.String Verse.Thing::get_LabelNoCount()
IL_4B22: call static Verse.NamedArgument
Verse.NamedArgument::op_Implicit(System.String value)
IL_4B27: ldloc.s 128 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_36)
IL_4B29: ldfld RimWorld.<>c__DisplayClass10_35
RimWorld.<>c__DisplayClass10_36::CS$<>8__locals35
IL_4B2E: ldfld RimWorld.<>c__DisplayClass10_34
RimWorld.<>c__DisplayClass10_35::CS$<>8__locals34
IL_4B33: ldfld Verse.Thing RimWorld.<>c__DisplayClass10_34::item
IL_4B38: call static Verse.NamedArgument
Verse.NamedArgument::op_Implicit(Verse.Thing value)
IL_4B3D: call static Verse.TaggedString
Verse.TranslatorFormattedStringExtensions::Translate(System.String key,
Verse.NamedArgument arg1, Verse.NamedArgument arg2)
IL_4B42: call static System.String
Verse.TaggedString::op_Implicit(Verse.TaggedString taggedString)
IL_4B47: ldloc.s 128 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_36)
IL_4B49: ldftn System.Void
RimWorld.<>c__DisplayClass10_36::<AddHumanlikeOrders>b__45()
IL_4B4F: newobj System.Void System.Action::.ctor(System.Object object,
System.IntPtr method)
IL_4B54: ldc.i4.5
IL_4B55: ldnull
IL_4B56: ldnull
IL_4B57: ldc.r4 0
IL_4B5C: ldnull
IL_4B5D: ldnull
IL_4B5E: ldc.i4.1
IL_4B5F: ldc.i4.0
IL_4B60: newobj System.Void Verse.FloatMenuOption::.ctor(System.String
label, System.Action action, Verse.MenuOptionPriority priority,
System.Action`1<UnityEngine.Rect> mouseoverGuiAction, Verse.Thing
revalidateClickTarget, System.Single extraPartWidth,
System.Func`2<UnityEngine.Rect, System.Boolean> extraPartOnGUI,
RimWorld.Planet.WorldObject revalidateWorldClickTarget, System.Boolean
playSelectionSound, System.Int32 orderInPriority)
IL_4B65: ldloc.s 128 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_36)
IL_4B67: ldfld RimWorld.<>c__DisplayClass10_35
RimWorld.<>c__DisplayClass10_36::CS$<>8__locals35
IL_4B6C: ldfld RimWorld.<>c__DisplayClass10_34
RimWorld.<>c__DisplayClass10_35::CS$<>8__locals34
IL_4B71: ldfld RimWorld.<>c__DisplayClass10_0
RimWorld.<>c__DisplayClass10_34::CS$<>8__locals33
IL_4B76: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_4B7B: ldloc.s 128 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_36)
IL_4B7D: ldfld RimWorld.<>c__DisplayClass10_35
RimWorld.<>c__DisplayClass10_36::CS$<>8__locals35
IL_4B82: ldfld RimWorld.<>c__DisplayClass10_34
RimWorld.<>c__DisplayClass10_35::CS$<>8__locals34
IL_4B87: ldfld Verse.Thing RimWorld.<>c__DisplayClass10_34::item
IL_4B8C: call static Verse.LocalTargetInfo
Verse.LocalTargetInfo::op_Implicit(Verse.Thing t)
IL_4B91: ldstr "ReservedBy"
IL_4B96: ldnull
IL_4B97: call static Verse.FloatMenuOption
RimWorld.FloatMenuUtility::DecoratePrioritizedTask(Verse.FloatMenuOption option,
Verse.Pawn pawn, Verse.LocalTargetInfo target, System.String reservedText,
Verse.ReservationLayerDef layer)
IL_4B9C: callvirt virtual System.Void
System.Collections.Generic.List`1<Verse.FloatMenuOption>::Add(Verse.FloatMenuOption
item)
IL_4BA1: Label381
IL_4BA1: Label382
IL_4BA1: Label383
IL_4BA1: Label388
IL_4BA1: Label390
IL_4BA1: Label392
IL_4BA1: ldloc.s 60
(System.Collections.Generic.IEnumerator`1[Verse.Thing])
IL_4BA3: callvirt abstract virtual System.Boolean
System.Collections.IEnumerator::MoveNext()
IL_4BA8: brtrue => Label395
IL_4BAD: leave => Label396
IL_4BB2: leave => (autogenerated)
} // end try
.finally
{
IL_4BB7: ldloc.s 60
(System.Collections.Generic.IEnumerator`1[Verse.Thing])
IL_4BB9: brfalse => Label397
IL_4BBE: ldloc.s 60
(System.Collections.Generic.IEnumerator`1[Verse.Thing])
IL_4BC0: callvirt abstract virtual System.Void
System.IDisposable::Dispose()
IL_4BC5: Label397
IL_4BC5: endfinally
IL_4BC6: leave => (autogenerated)
} // end handler
IL_4BC7: Label380
IL_4BC7: Label396
IL_4BC7: ldloc.0
IL_4BC8: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_4BCD: call static System.Boolean
RimWorld.Planet.CaravanFormingUtility::IsFormingCaravan(Verse.Pawn p)
IL_4BD2: brtrue => Label398
IL_4BD7: ldloc.1
IL_4BD8: ldloc.0
IL_4BD9: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_4BDE: callvirt virtual Verse.Map Verse.Thing::get_Map()
IL_4BE3: call static System.Collections.Generic.IEnumerable`1<Verse.Thing>
Verse.GridsUtility::GetItems(Verse.IntVec3 c, Verse.Map map)
IL_4BE8: callvirt abstract virtual
System.Collections.Generic.IEnumerator`1<Verse.Thing>
System.Collections.Generic.IEnumerable`1<Verse.Thing>::GetEnumerator()
IL_4BED: stloc.s 60 (System.Collections.Generic.IEnumerator`1[Verse.Thing])
.try
{
IL_4BEF: br => Label399
IL_4BF4: Label417
IL_4BF4: newobj System.Void RimWorld.<>c__DisplayClass10_37::.ctor()
IL_4BF9: stloc.s 132 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_37)
IL_4BFB: ldloc.s 132 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_37)
IL_4BFD: ldloc.0
IL_4BFE: stfld RimWorld.<>c__DisplayClass10_0
RimWorld.<>c__DisplayClass10_37::CS$<>8__locals36
IL_4C03: ldloc.s 132 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_37)
IL_4C05: ldloc.s 60
(System.Collections.Generic.IEnumerator`1[Verse.Thing])
IL_4C07: callvirt abstract virtual Verse.Thing
System.Collections.Generic.IEnumerator`1<Verse.Thing>::get_Current()
IL_4C0C: stfld Verse.Thing RimWorld.<>c__DisplayClass10_37::item
IL_4C11: ldloc.s 132 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_37)
IL_4C13: ldfld Verse.Thing RimWorld.<>c__DisplayClass10_37::item
IL_4C18: ldfld Verse.ThingDef Verse.Thing::def
IL_4C1D: callvirt System.Boolean Verse.ThingDef::get_EverHaulable()
IL_4C22: brfalse => Label400
IL_4C27: ldloc.s 132 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_37)
IL_4C29: ldfld RimWorld.<>c__DisplayClass10_0
RimWorld.<>c__DisplayClass10_37::CS$<>8__locals36
IL_4C2E: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_4C33: ldloc.s 132 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_37)
IL_4C35: ldfld Verse.Thing RimWorld.<>c__DisplayClass10_37::item
IL_4C3A: ldfld Verse.ThingDef Verse.Thing::def
IL_4C3F: call static System.Boolean
RimWorld.PawnUtility::CanPickUp(Verse.Pawn pawn, Verse.ThingDef thingDef)
IL_4C44: brfalse => Label401
IL_4C49: ldloc.s 132 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_37)
IL_4C4B: ldfld RimWorld.<>c__DisplayClass10_0
RimWorld.<>c__DisplayClass10_37::CS$<>8__locals36
IL_4C50: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_4C55: callvirt virtual Verse.Map Verse.Thing::get_Map()
IL_4C5A: callvirt System.Boolean Verse.Map::get_IsPlayerHome()
IL_4C5F: brfalse => Label402
IL_4C64: ldloc.s 132 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_37)
IL_4C66: ldfld RimWorld.<>c__DisplayClass10_0
RimWorld.<>c__DisplayClass10_37::CS$<>8__locals36
IL_4C6B: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_4C70: ldloc.s 132 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_37)
IL_4C72: ldfld Verse.Thing RimWorld.<>c__DisplayClass10_37::item
IL_4C77: call static System.Boolean
RimWorld.JobGiver_DropUnusedInventory::ShouldKeepDrugInInventory(Verse.Pawn pawn,
Verse.Thing drug)
IL_4C7C: brfalse => Label403
IL_4C81: Label402
IL_4C81: ldloc.s 132 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_37)
IL_4C83: ldfld RimWorld.<>c__DisplayClass10_0
RimWorld.<>c__DisplayClass10_37::CS$<>8__locals36
IL_4C88: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_4C8D: ldloc.s 132 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_37)
IL_4C8F: ldfld Verse.Thing RimWorld.<>c__DisplayClass10_37::item
IL_4C94: call static Verse.LocalTargetInfo
Verse.LocalTargetInfo::op_Implicit(Verse.Thing t)
IL_4C99: ldc.i4.3
IL_4C9A: ldc.i4.3
IL_4C9B: ldc.i4.0
IL_4C9C: ldc.i4.0
IL_4C9D: ldc.i4.0
IL_4C9E: call static System.Boolean
Verse.ReachabilityUtility::CanReach(Verse.Pawn pawn, Verse.LocalTargetInfo dest,
Verse.AI.PathEndMode peMode, Verse.Danger maxDanger, System.Boolean canBashDoors,
System.Boolean canBashFences, Verse.TraverseMode mode)
IL_4CA3: brtrue => Label404
IL_4CA8: ldarg.2
IL_4CA9: ldstr "CannotPickUp"
IL_4CAE: ldloc.s 132 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_37)
IL_4CB0: ldfld Verse.Thing RimWorld.<>c__DisplayClass10_37::item
IL_4CB5: callvirt abstract virtual System.String Verse.Entity::get_Label()
IL_4CBA: call static Verse.NamedArgument
Verse.NamedArgument::op_Implicit(System.String value)
IL_4CBF: ldloc.s 132 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_37)
IL_4CC1: ldfld Verse.Thing RimWorld.<>c__DisplayClass10_37::item
IL_4CC6: call static Verse.NamedArgument
Verse.NamedArgument::op_Implicit(Verse.Thing value)
IL_4CCB: call static Verse.TaggedString
Verse.TranslatorFormattedStringExtensions::Translate(System.String key,
Verse.NamedArgument arg1, Verse.NamedArgument arg2)
IL_4CD0: ldstr ": "
IL_4CD5: call static Verse.TaggedString
Verse.TaggedString::op_Addition(Verse.TaggedString t1, System.String t2)
IL_4CDA: ldstr "NoPath"
IL_4CDF: call static Verse.TaggedString
Verse.Translator::Translate(System.String key)
IL_4CE4: stloc.s 11 (Verse.TaggedString)
IL_4CE6: ldloca.s 11 (Verse.TaggedString)
IL_4CE8: call Verse.TaggedString Verse.TaggedString::CapitalizeFirst()
IL_4CED: call static Verse.TaggedString
Verse.TaggedString::op_Addition(Verse.TaggedString t1, Verse.TaggedString t2)
IL_4CF2: call static System.String
Verse.TaggedString::op_Implicit(Verse.TaggedString taggedString)
IL_4CF7: ldnull
IL_4CF8: ldc.i4.4
IL_4CF9: ldnull
IL_4CFA: ldnull
IL_4CFB: ldc.r4 0
IL_4D00: ldnull
IL_4D01: ldnull
IL_4D02: ldc.i4.1
IL_4D03: ldc.i4.0
IL_4D04: newobj System.Void Verse.FloatMenuOption::.ctor(System.String
label, System.Action action, Verse.MenuOptionPriority priority,
System.Action`1<UnityEngine.Rect> mouseoverGuiAction, Verse.Thing
revalidateClickTarget, System.Single extraPartWidth,
System.Func`2<UnityEngine.Rect, System.Boolean> extraPartOnGUI,
RimWorld.Planet.WorldObject revalidateWorldClickTarget, System.Boolean
playSelectionSound, System.Int32 orderInPriority)
IL_4D09: callvirt virtual System.Void
System.Collections.Generic.List`1<Verse.FloatMenuOption>::Add(Verse.FloatMenuOption
item)
IL_4D0E: br => Label405
IL_4D13: Label404
IL_4D13: ldloc.s 132 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_37)
IL_4D15: ldfld RimWorld.<>c__DisplayClass10_0
RimWorld.<>c__DisplayClass10_37::CS$<>8__locals36
IL_4D1A: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_4D1F: ldloc.s 132 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_37)
IL_4D21: ldfld Verse.Thing RimWorld.<>c__DisplayClass10_37::item
IL_4D26: ldc.i4.1
IL_4D27: call static System.Boolean
RimWorld.MassUtility::WillBeOverEncumberedAfterPickingUp(Verse.Pawn pawn,
Verse.Thing thing, System.Int32 count)
IL_4D2C: brfalse => Label406
IL_4D31: ldarg.2
IL_4D32: ldstr "CannotPickUp"
IL_4D37: ldloc.s 132 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_37)
IL_4D39: ldfld Verse.Thing RimWorld.<>c__DisplayClass10_37::item
IL_4D3E: callvirt abstract virtual System.String Verse.Entity::get_Label()
IL_4D43: call static Verse.NamedArgument
Verse.NamedArgument::op_Implicit(System.String value)
IL_4D48: ldloc.s 132 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_37)
IL_4D4A: ldfld Verse.Thing RimWorld.<>c__DisplayClass10_37::item
IL_4D4F: call static Verse.NamedArgument
Verse.NamedArgument::op_Implicit(Verse.Thing value)
IL_4D54: call static Verse.TaggedString
Verse.TranslatorFormattedStringExtensions::Translate(System.String key,
Verse.NamedArgument arg1, Verse.NamedArgument arg2)
IL_4D59: ldstr ": "
IL_4D5E: call static Verse.TaggedString
Verse.TaggedString::op_Addition(Verse.TaggedString t1, System.String t2)
IL_4D63: ldstr "TooHeavy"
IL_4D68: call static Verse.TaggedString
Verse.Translator::Translate(System.String key)
IL_4D6D: call static Verse.TaggedString
Verse.TaggedString::op_Addition(Verse.TaggedString t1, Verse.TaggedString t2)
IL_4D72: call static System.String
Verse.TaggedString::op_Implicit(Verse.TaggedString taggedString)
IL_4D77: ldnull
IL_4D78: ldc.i4.4
IL_4D79: ldnull
IL_4D7A: ldnull
IL_4D7B: ldc.r4 0
IL_4D80: ldnull
IL_4D81: ldnull
IL_4D82: ldc.i4.1
IL_4D83: ldc.i4.0
IL_4D84: newobj System.Void Verse.FloatMenuOption::.ctor(System.String
label, System.Action action, Verse.MenuOptionPriority priority,
System.Action`1<UnityEngine.Rect> mouseoverGuiAction, Verse.Thing
revalidateClickTarget, System.Single extraPartWidth,
System.Func`2<UnityEngine.Rect, System.Boolean> extraPartOnGUI,
RimWorld.Planet.WorldObject revalidateWorldClickTarget, System.Boolean
playSelectionSound, System.Int32 orderInPriority)
IL_4D89: callvirt virtual System.Void
System.Collections.Generic.List`1<Verse.FloatMenuOption>::Add(Verse.FloatMenuOption
item)
IL_4D8E: br => Label407
IL_4D93: Label406
IL_4D93: newobj System.Void RimWorld.<>c__DisplayClass10_38::.ctor()
IL_4D98: stloc.s 133 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_38)
IL_4D9A: ldloc.s 133 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_38)
IL_4D9C: ldloc.s 132 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_37)
IL_4D9E: stfld RimWorld.<>c__DisplayClass10_37
RimWorld.<>c__DisplayClass10_38::CS$<>8__locals37
IL_4DA3: ldloc.s 133 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_38)
IL_4DA5: ldloc.s 133 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_38)
IL_4DA7: ldfld RimWorld.<>c__DisplayClass10_37
RimWorld.<>c__DisplayClass10_38::CS$<>8__locals37
IL_4DAC: ldfld RimWorld.<>c__DisplayClass10_0
RimWorld.<>c__DisplayClass10_37::CS$<>8__locals36
IL_4DB1: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_4DB6: ldloc.s 133 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_38)
IL_4DB8: ldfld RimWorld.<>c__DisplayClass10_37
RimWorld.<>c__DisplayClass10_38::CS$<>8__locals37
IL_4DBD: ldfld Verse.Thing RimWorld.<>c__DisplayClass10_37::item
IL_4DC2: ldfld Verse.ThingDef Verse.Thing::def
IL_4DC7: call static System.Int32
RimWorld.PawnUtility::GetMaxAllowedToPickUp(Verse.Pawn pawn, Verse.ThingDef
thingDef)
IL_4DCC: stfld System.Int32
RimWorld.<>c__DisplayClass10_38::maxAllowedToPickUp
IL_4DD1: ldloc.s 133 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_38)
IL_4DD3: ldfld System.Int32
RimWorld.<>c__DisplayClass10_38::maxAllowedToPickUp
IL_4DD8: brtrue => Label408
IL_4DDD: ldarg.2
IL_4DDE: ldstr "CannotPickUp"
IL_4DE3: ldloc.s 133 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_38)
IL_4DE5: ldfld RimWorld.<>c__DisplayClass10_37
RimWorld.<>c__DisplayClass10_38::CS$<>8__locals37
IL_4DEA: ldfld Verse.Thing RimWorld.<>c__DisplayClass10_37::item
IL_4DEF: callvirt abstract virtual System.String Verse.Entity::get_Label()
IL_4DF4: call static Verse.NamedArgument
Verse.NamedArgument::op_Implicit(System.String value)
IL_4DF9: ldloc.s 133 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_38)
IL_4DFB: ldfld RimWorld.<>c__DisplayClass10_37
RimWorld.<>c__DisplayClass10_38::CS$<>8__locals37
IL_4E00: ldfld Verse.Thing RimWorld.<>c__DisplayClass10_37::item
IL_4E05: call static Verse.NamedArgument
Verse.NamedArgument::op_Implicit(Verse.Thing value)
IL_4E0A: call static Verse.TaggedString
Verse.TranslatorFormattedStringExtensions::Translate(System.String key,
Verse.NamedArgument arg1, Verse.NamedArgument arg2)
IL_4E0F: ldstr ": "
IL_4E14: call static Verse.TaggedString
Verse.TaggedString::op_Addition(Verse.TaggedString t1, System.String t2)
IL_4E19: ldstr "MaxPickUpAllowed"
IL_4E1E: ldloc.s 133 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_38)
IL_4E20: ldfld RimWorld.<>c__DisplayClass10_37
RimWorld.<>c__DisplayClass10_38::CS$<>8__locals37
IL_4E25: ldfld Verse.Thing RimWorld.<>c__DisplayClass10_37::item
IL_4E2A: ldfld Verse.ThingDef Verse.Thing::def
IL_4E2F: ldfld Verse.OrderedTakeGroupDef
Verse.ThingDef::orderedTakeGroup
IL_4E34: ldfld System.Int32 Verse.OrderedTakeGroupDef::max
IL_4E39: call static Verse.NamedArgument
Verse.NamedArgument::op_Implicit(System.Int32 value)
IL_4E3E: ldloc.s 133 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_38)
IL_4E40: ldfld RimWorld.<>c__DisplayClass10_37
RimWorld.<>c__DisplayClass10_38::CS$<>8__locals37
IL_4E45: ldfld Verse.Thing RimWorld.<>c__DisplayClass10_37::item
IL_4E4A: ldfld Verse.ThingDef Verse.Thing::def
IL_4E4F: ldfld Verse.OrderedTakeGroupDef
Verse.ThingDef::orderedTakeGroup
IL_4E54: ldfld System.String Verse.Def::label
IL_4E59: call static Verse.NamedArgument
Verse.NamedArgument::op_Implicit(System.String value)
IL_4E5E: call static Verse.TaggedString
Verse.TranslatorFormattedStringExtensions::Translate(System.String key,
Verse.NamedArgument arg1, Verse.NamedArgument arg2)
IL_4E63: call static Verse.TaggedString
Verse.TaggedString::op_Addition(Verse.TaggedString t1, Verse.TaggedString t2)
IL_4E68: call static System.String
Verse.TaggedString::op_Implicit(Verse.TaggedString taggedString)
IL_4E6D: ldnull
IL_4E6E: ldc.i4.4
IL_4E6F: ldnull
IL_4E70: ldnull
IL_4E71: ldc.r4 0
IL_4E76: ldnull
IL_4E77: ldnull
IL_4E78: ldc.i4.1
IL_4E79: ldc.i4.0
IL_4E7A: newobj System.Void Verse.FloatMenuOption::.ctor(System.String
label, System.Action action, Verse.MenuOptionPriority priority,
System.Action`1<UnityEngine.Rect> mouseoverGuiAction, Verse.Thing
revalidateClickTarget, System.Single extraPartWidth,
System.Func`2<UnityEngine.Rect, System.Boolean> extraPartOnGUI,
RimWorld.Planet.WorldObject revalidateWorldClickTarget, System.Boolean
playSelectionSound, System.Int32 orderInPriority)
IL_4E7F: callvirt virtual System.Void
System.Collections.Generic.List`1<Verse.FloatMenuOption>::Add(Verse.FloatMenuOption
item)
IL_4E84: br => Label409
IL_4E89: Label408
IL_4E89: ldloc.s 133 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_38)
IL_4E8B: ldfld RimWorld.<>c__DisplayClass10_37
RimWorld.<>c__DisplayClass10_38::CS$<>8__locals37
IL_4E90: ldfld Verse.Thing RimWorld.<>c__DisplayClass10_37::item
IL_4E95: ldfld System.Int32 Verse.Thing::stackCount
IL_4E9A: ldc.i4.1
IL_4E9B: beq => Label410
IL_4EA0: ldloc.s 133 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_38)
IL_4EA2: ldfld System.Int32
RimWorld.<>c__DisplayClass10_38::maxAllowedToPickUp
IL_4EA7: ldc.i4.1
IL_4EA8: bne.un => Label411
IL_4EAD: Label410
IL_4EAD: ldarg.2
IL_4EAE: ldstr "PickUpOne"
IL_4EB3: ldloc.s 133 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_38)
IL_4EB5: ldfld RimWorld.<>c__DisplayClass10_37
RimWorld.<>c__DisplayClass10_38::CS$<>8__locals37
IL_4EBA: ldfld Verse.Thing RimWorld.<>c__DisplayClass10_37::item
IL_4EBF: callvirt virtual System.String Verse.Thing::get_LabelNoCount()
IL_4EC4: call static Verse.NamedArgument
Verse.NamedArgument::op_Implicit(System.String value)
IL_4EC9: ldloc.s 133 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_38)
IL_4ECB: ldfld RimWorld.<>c__DisplayClass10_37
RimWorld.<>c__DisplayClass10_38::CS$<>8__locals37
IL_4ED0: ldfld Verse.Thing RimWorld.<>c__DisplayClass10_37::item
IL_4ED5: call static Verse.NamedArgument
Verse.NamedArgument::op_Implicit(Verse.Thing value)
IL_4EDA: call static Verse.TaggedString
Verse.TranslatorFormattedStringExtensions::Translate(System.String key,
Verse.NamedArgument arg1, Verse.NamedArgument arg2)
IL_4EDF: call static System.String
Verse.TaggedString::op_Implicit(Verse.TaggedString taggedString)
IL_4EE4: ldloc.s 133 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_38)
IL_4EE6: ldfld RimWorld.<>c__DisplayClass10_37
RimWorld.<>c__DisplayClass10_38::CS$<>8__locals37
IL_4EEB: ldftn System.Void
RimWorld.<>c__DisplayClass10_37::<AddHumanlikeOrders>b__50()
IL_4EF1: newobj System.Void System.Action::.ctor(System.Object object,
System.IntPtr method)
IL_4EF6: ldc.i4.5
IL_4EF7: ldnull
IL_4EF8: ldnull
IL_4EF9: ldc.r4 0
IL_4EFE: ldnull
IL_4EFF: ldnull
IL_4F00: ldc.i4.1
IL_4F01: ldc.i4.0
IL_4F02: newobj System.Void Verse.FloatMenuOption::.ctor(System.String
label, System.Action action, Verse.MenuOptionPriority priority,
System.Action`1<UnityEngine.Rect> mouseoverGuiAction, Verse.Thing
revalidateClickTarget, System.Single extraPartWidth,
System.Func`2<UnityEngine.Rect, System.Boolean> extraPartOnGUI,
RimWorld.Planet.WorldObject revalidateWorldClickTarget, System.Boolean
playSelectionSound, System.Int32 orderInPriority)
IL_4F07: ldloc.s 133 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_38)
IL_4F09: ldfld RimWorld.<>c__DisplayClass10_37
RimWorld.<>c__DisplayClass10_38::CS$<>8__locals37
IL_4F0E: ldfld RimWorld.<>c__DisplayClass10_0
RimWorld.<>c__DisplayClass10_37::CS$<>8__locals36
IL_4F13: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_4F18: ldloc.s 133 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_38)
IL_4F1A: ldfld RimWorld.<>c__DisplayClass10_37
RimWorld.<>c__DisplayClass10_38::CS$<>8__locals37
IL_4F1F: ldfld Verse.Thing RimWorld.<>c__DisplayClass10_37::item
IL_4F24: call static Verse.LocalTargetInfo
Verse.LocalTargetInfo::op_Implicit(Verse.Thing t)
IL_4F29: ldstr "ReservedBy"
IL_4F2E: ldnull
IL_4F2F: call static Verse.FloatMenuOption
RimWorld.FloatMenuUtility::DecoratePrioritizedTask(Verse.FloatMenuOption option,
Verse.Pawn pawn, Verse.LocalTargetInfo target, System.String reservedText,
Verse.ReservationLayerDef layer)
IL_4F34: callvirt virtual System.Void
System.Collections.Generic.List`1<Verse.FloatMenuOption>::Add(Verse.FloatMenuOption
item)
IL_4F39: br => Label412
IL_4F3E: Label411
IL_4F3E: ldloc.s 133 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_38)
IL_4F40: ldfld System.Int32
RimWorld.<>c__DisplayClass10_38::maxAllowedToPickUp
IL_4F45: ldloc.s 133 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_38)
IL_4F47: ldfld RimWorld.<>c__DisplayClass10_37
RimWorld.<>c__DisplayClass10_38::CS$<>8__locals37
IL_4F4C: ldfld Verse.Thing RimWorld.<>c__DisplayClass10_37::item
IL_4F51: ldfld System.Int32 Verse.Thing::stackCount
IL_4F56: bge => Label413
IL_4F5B: ldarg.2
IL_4F5C: ldstr "CannotPickUpAll"
IL_4F61: ldloc.s 133 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_38)
IL_4F63: ldfld RimWorld.<>c__DisplayClass10_37
RimWorld.<>c__DisplayClass10_38::CS$<>8__locals37
IL_4F68: ldfld Verse.Thing RimWorld.<>c__DisplayClass10_37::item
IL_4F6D: callvirt abstract virtual System.String Verse.Entity::get_Label()
IL_4F72: call static Verse.NamedArgument
Verse.NamedArgument::op_Implicit(System.String value)
IL_4F77: ldloc.s 133 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_38)
IL_4F79: ldfld RimWorld.<>c__DisplayClass10_37
RimWorld.<>c__DisplayClass10_38::CS$<>8__locals37
IL_4F7E: ldfld Verse.Thing RimWorld.<>c__DisplayClass10_37::item
IL_4F83: call static Verse.NamedArgument
Verse.NamedArgument::op_Implicit(Verse.Thing value)
IL_4F88: call static Verse.TaggedString
Verse.TranslatorFormattedStringExtensions::Translate(System.String key,
Verse.NamedArgument arg1, Verse.NamedArgument arg2)
IL_4F8D: ldstr ": "
IL_4F92: call static Verse.TaggedString
Verse.TaggedString::op_Addition(Verse.TaggedString t1, System.String t2)
IL_4F97: ldstr "MaxPickUpAllowed"
IL_4F9C: ldloc.s 133 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_38)
IL_4F9E: ldfld RimWorld.<>c__DisplayClass10_37
RimWorld.<>c__DisplayClass10_38::CS$<>8__locals37
IL_4FA3: ldfld Verse.Thing RimWorld.<>c__DisplayClass10_37::item
IL_4FA8: ldfld Verse.ThingDef Verse.Thing::def
IL_4FAD: ldfld Verse.OrderedTakeGroupDef
Verse.ThingDef::orderedTakeGroup
IL_4FB2: ldfld System.Int32 Verse.OrderedTakeGroupDef::max
IL_4FB7: call static Verse.NamedArgument
Verse.NamedArgument::op_Implicit(System.Int32 value)
IL_4FBC: ldloc.s 133 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_38)
IL_4FBE: ldfld RimWorld.<>c__DisplayClass10_37
RimWorld.<>c__DisplayClass10_38::CS$<>8__locals37
IL_4FC3: ldfld Verse.Thing RimWorld.<>c__DisplayClass10_37::item
IL_4FC8: ldfld Verse.ThingDef Verse.Thing::def
IL_4FCD: ldfld Verse.OrderedTakeGroupDef
Verse.ThingDef::orderedTakeGroup
IL_4FD2: ldfld System.String Verse.Def::label
IL_4FD7: call static Verse.NamedArgument
Verse.NamedArgument::op_Implicit(System.String value)
IL_4FDC: call static Verse.TaggedString
Verse.TranslatorFormattedStringExtensions::Translate(System.String key,
Verse.NamedArgument arg1, Verse.NamedArgument arg2)
IL_4FE1: call static Verse.TaggedString
Verse.TaggedString::op_Addition(Verse.TaggedString t1, Verse.TaggedString t2)
IL_4FE6: call static System.String
Verse.TaggedString::op_Implicit(Verse.TaggedString taggedString)
IL_4FEB: ldnull
IL_4FEC: ldc.i4.4
IL_4FED: ldnull
IL_4FEE: ldnull
IL_4FEF: ldc.r4 0
IL_4FF4: ldnull
IL_4FF5: ldnull
IL_4FF6: ldc.i4.1
IL_4FF7: ldc.i4.0
IL_4FF8: newobj System.Void Verse.FloatMenuOption::.ctor(System.String
label, System.Action action, Verse.MenuOptionPriority priority,
System.Action`1<UnityEngine.Rect> mouseoverGuiAction, Verse.Thing
revalidateClickTarget, System.Single extraPartWidth,
System.Func`2<UnityEngine.Rect, System.Boolean> extraPartOnGUI,
RimWorld.Planet.WorldObject revalidateWorldClickTarget, System.Boolean
playSelectionSound, System.Int32 orderInPriority)
IL_4FFD: callvirt virtual System.Void
System.Collections.Generic.List`1<Verse.FloatMenuOption>::Add(Verse.FloatMenuOption
item)
IL_5002: br => Label414
IL_5007: Label413
IL_5007: ldloc.s 133 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_38)
IL_5009: ldfld RimWorld.<>c__DisplayClass10_37
RimWorld.<>c__DisplayClass10_38::CS$<>8__locals37
IL_500E: ldfld RimWorld.<>c__DisplayClass10_0
RimWorld.<>c__DisplayClass10_37::CS$<>8__locals36
IL_5013: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_5018: ldloc.s 133 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_38)
IL_501A: ldfld RimWorld.<>c__DisplayClass10_37
RimWorld.<>c__DisplayClass10_38::CS$<>8__locals37
IL_501F: ldfld Verse.Thing RimWorld.<>c__DisplayClass10_37::item
IL_5024: ldloc.s 133 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_38)
IL_5026: ldfld RimWorld.<>c__DisplayClass10_37
RimWorld.<>c__DisplayClass10_38::CS$<>8__locals37
IL_502B: ldfld Verse.Thing RimWorld.<>c__DisplayClass10_37::item
IL_5030: ldfld System.Int32 Verse.Thing::stackCount
IL_5035: call static System.Boolean
RimWorld.MassUtility::WillBeOverEncumberedAfterPickingUp(Verse.Pawn pawn,
Verse.Thing thing, System.Int32 count)
IL_503A: brfalse => Label415
IL_503F: ldarg.2
IL_5040: ldstr "CannotPickUpAll"
IL_5045: ldloc.s 133 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_38)
IL_5047: ldfld RimWorld.<>c__DisplayClass10_37
RimWorld.<>c__DisplayClass10_38::CS$<>8__locals37
IL_504C: ldfld Verse.Thing RimWorld.<>c__DisplayClass10_37::item
IL_5051: callvirt abstract virtual System.String Verse.Entity::get_Label()
IL_5056: call static Verse.NamedArgument
Verse.NamedArgument::op_Implicit(System.String value)
IL_505B: ldloc.s 133 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_38)
IL_505D: ldfld RimWorld.<>c__DisplayClass10_37
RimWorld.<>c__DisplayClass10_38::CS$<>8__locals37
IL_5062: ldfld Verse.Thing RimWorld.<>c__DisplayClass10_37::item
IL_5067: call static Verse.NamedArgument
Verse.NamedArgument::op_Implicit(Verse.Thing value)
IL_506C: call static Verse.TaggedString
Verse.TranslatorFormattedStringExtensions::Translate(System.String key,
Verse.NamedArgument arg1, Verse.NamedArgument arg2)
IL_5071: ldstr ": "
IL_5076: call static Verse.TaggedString
Verse.TaggedString::op_Addition(Verse.TaggedString t1, System.String t2)
IL_507B: ldstr "TooHeavy"
IL_5080: call static Verse.TaggedString
Verse.Translator::Translate(System.String key)
IL_5085: call static Verse.TaggedString
Verse.TaggedString::op_Addition(Verse.TaggedString t1, Verse.TaggedString t2)
IL_508A: call static System.String
Verse.TaggedString::op_Implicit(Verse.TaggedString taggedString)
IL_508F: ldnull
IL_5090: ldc.i4.4
IL_5091: ldnull
IL_5092: ldnull
IL_5093: ldc.r4 0
IL_5098: ldnull
IL_5099: ldnull
IL_509A: ldc.i4.1
IL_509B: ldc.i4.0
IL_509C: newobj System.Void Verse.FloatMenuOption::.ctor(System.String
label, System.Action action, Verse.MenuOptionPriority priority,
System.Action`1<UnityEngine.Rect> mouseoverGuiAction, Verse.Thing
revalidateClickTarget, System.Single extraPartWidth,
System.Func`2<UnityEngine.Rect, System.Boolean> extraPartOnGUI,
RimWorld.Planet.WorldObject revalidateWorldClickTarget, System.Boolean
playSelectionSound, System.Int32 orderInPriority)
IL_50A1: callvirt virtual System.Void
System.Collections.Generic.List`1<Verse.FloatMenuOption>::Add(Verse.FloatMenuOption
item)
IL_50A6: br => Label416
IL_50AB: Label415
IL_50AB: ldarg.2
IL_50AC: ldstr "PickUpAll"
IL_50B1: ldloc.s 133 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_38)
IL_50B3: ldfld RimWorld.<>c__DisplayClass10_37
RimWorld.<>c__DisplayClass10_38::CS$<>8__locals37
IL_50B8: ldfld Verse.Thing RimWorld.<>c__DisplayClass10_37::item
IL_50BD: callvirt abstract virtual System.String Verse.Entity::get_Label()
IL_50C2: call static Verse.NamedArgument
Verse.NamedArgument::op_Implicit(System.String value)
IL_50C7: ldloc.s 133 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_38)
IL_50C9: ldfld RimWorld.<>c__DisplayClass10_37
RimWorld.<>c__DisplayClass10_38::CS$<>8__locals37
IL_50CE: ldfld Verse.Thing RimWorld.<>c__DisplayClass10_37::item
IL_50D3: call static Verse.NamedArgument
Verse.NamedArgument::op_Implicit(Verse.Thing value)
IL_50D8: call static Verse.TaggedString
Verse.TranslatorFormattedStringExtensions::Translate(System.String key,
Verse.NamedArgument arg1, Verse.NamedArgument arg2)
IL_50DD: call static System.String
Verse.TaggedString::op_Implicit(Verse.TaggedString taggedString)
IL_50E2: ldloc.s 133 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_38)
IL_50E4: ldfld RimWorld.<>c__DisplayClass10_37
RimWorld.<>c__DisplayClass10_38::CS$<>8__locals37
IL_50E9: ldftn System.Void
RimWorld.<>c__DisplayClass10_37::<AddHumanlikeOrders>b__51()
IL_50EF: newobj System.Void System.Action::.ctor(System.Object object,
System.IntPtr method)
IL_50F4: ldc.i4.5
IL_50F5: ldnull
IL_50F6: ldnull
IL_50F7: ldc.r4 0
IL_50FC: ldnull
IL_50FD: ldnull
IL_50FE: ldc.i4.1
IL_50FF: ldc.i4.0
IL_5100: newobj System.Void Verse.FloatMenuOption::.ctor(System.String
label, System.Action action, Verse.MenuOptionPriority priority,
System.Action`1<UnityEngine.Rect> mouseoverGuiAction, Verse.Thing
revalidateClickTarget, System.Single extraPartWidth,
System.Func`2<UnityEngine.Rect, System.Boolean> extraPartOnGUI,
RimWorld.Planet.WorldObject revalidateWorldClickTarget, System.Boolean
playSelectionSound, System.Int32 orderInPriority)
IL_5105: ldloc.s 133 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_38)
IL_5107: ldfld RimWorld.<>c__DisplayClass10_37
RimWorld.<>c__DisplayClass10_38::CS$<>8__locals37
IL_510C: ldfld RimWorld.<>c__DisplayClass10_0
RimWorld.<>c__DisplayClass10_37::CS$<>8__locals36
IL_5111: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_5116: ldloc.s 133 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_38)
IL_5118: ldfld RimWorld.<>c__DisplayClass10_37
RimWorld.<>c__DisplayClass10_38::CS$<>8__locals37
IL_511D: ldfld Verse.Thing RimWorld.<>c__DisplayClass10_37::item
IL_5122: call static Verse.LocalTargetInfo
Verse.LocalTargetInfo::op_Implicit(Verse.Thing t)
IL_5127: ldstr "ReservedBy"
IL_512C: ldnull
IL_512D: call static Verse.FloatMenuOption
RimWorld.FloatMenuUtility::DecoratePrioritizedTask(Verse.FloatMenuOption option,
Verse.Pawn pawn, Verse.LocalTargetInfo target, System.String reservedText,
Verse.ReservationLayerDef layer)
IL_5132: callvirt virtual System.Void
System.Collections.Generic.List`1<Verse.FloatMenuOption>::Add(Verse.FloatMenuOption
item)
IL_5137: Label414
IL_5137: Label416
IL_5137: ldarg.2
IL_5138: ldstr "PickUpSome"
IL_513D: ldloc.s 133 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_38)
IL_513F: ldfld RimWorld.<>c__DisplayClass10_37
RimWorld.<>c__DisplayClass10_38::CS$<>8__locals37
IL_5144: ldfld Verse.Thing RimWorld.<>c__DisplayClass10_37::item
IL_5149: callvirt virtual System.String Verse.Thing::get_LabelNoCount()
IL_514E: call static Verse.NamedArgument
Verse.NamedArgument::op_Implicit(System.String value)
IL_5153: ldloc.s 133 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_38)
IL_5155: ldfld RimWorld.<>c__DisplayClass10_37
RimWorld.<>c__DisplayClass10_38::CS$<>8__locals37
IL_515A: ldfld Verse.Thing RimWorld.<>c__DisplayClass10_37::item
IL_515F: call static Verse.NamedArgument
Verse.NamedArgument::op_Implicit(Verse.Thing value)
IL_5164: call static Verse.TaggedString
Verse.TranslatorFormattedStringExtensions::Translate(System.String key,
Verse.NamedArgument arg1, Verse.NamedArgument arg2)
IL_5169: call static System.String
Verse.TaggedString::op_Implicit(Verse.TaggedString taggedString)
IL_516E: ldloc.s 133 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_38)
IL_5170: ldftn System.Void
RimWorld.<>c__DisplayClass10_38::<AddHumanlikeOrders>b__52()
IL_5176: newobj System.Void System.Action::.ctor(System.Object object,
System.IntPtr method)
IL_517B: ldc.i4.5
IL_517C: ldnull
IL_517D: ldnull
IL_517E: ldc.r4 0
IL_5183: ldnull
IL_5184: ldnull
IL_5185: ldc.i4.1
IL_5186: ldc.i4.0
IL_5187: newobj System.Void Verse.FloatMenuOption::.ctor(System.String
label, System.Action action, Verse.MenuOptionPriority priority,
System.Action`1<UnityEngine.Rect> mouseoverGuiAction, Verse.Thing
revalidateClickTarget, System.Single extraPartWidth,
System.Func`2<UnityEngine.Rect, System.Boolean> extraPartOnGUI,
RimWorld.Planet.WorldObject revalidateWorldClickTarget, System.Boolean
playSelectionSound, System.Int32 orderInPriority)
IL_518C: ldloc.s 133 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_38)
IL_518E: ldfld RimWorld.<>c__DisplayClass10_37
RimWorld.<>c__DisplayClass10_38::CS$<>8__locals37
IL_5193: ldfld RimWorld.<>c__DisplayClass10_0
RimWorld.<>c__DisplayClass10_37::CS$<>8__locals36
IL_5198: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_519D: ldloc.s 133 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_38)
IL_519F: ldfld RimWorld.<>c__DisplayClass10_37
RimWorld.<>c__DisplayClass10_38::CS$<>8__locals37
IL_51A4: ldfld Verse.Thing RimWorld.<>c__DisplayClass10_37::item
IL_51A9: call static Verse.LocalTargetInfo
Verse.LocalTargetInfo::op_Implicit(Verse.Thing t)
IL_51AE: ldstr "ReservedBy"
IL_51B3: ldnull
IL_51B4: call static Verse.FloatMenuOption
RimWorld.FloatMenuUtility::DecoratePrioritizedTask(Verse.FloatMenuOption option,
Verse.Pawn pawn, Verse.LocalTargetInfo target, System.String reservedText,
Verse.ReservationLayerDef layer)
IL_51B9: callvirt virtual System.Void
System.Collections.Generic.List`1<Verse.FloatMenuOption>::Add(Verse.FloatMenuOption
item)
IL_51BE: Label399
IL_51BE: Label400
IL_51BE: Label401
IL_51BE: Label403
IL_51BE: Label405
IL_51BE: Label407
IL_51BE: Label409
IL_51BE: Label412
IL_51BE: ldloc.s 60
(System.Collections.Generic.IEnumerator`1[Verse.Thing])
IL_51C0: callvirt abstract virtual System.Boolean
System.Collections.IEnumerator::MoveNext()
IL_51C5: brtrue => Label417
IL_51CA: leave => Label418
IL_51CF: leave => (autogenerated)
} // end try
.finally
{
IL_51D4: ldloc.s 60
(System.Collections.Generic.IEnumerator`1[Verse.Thing])
IL_51D6: brfalse => Label419
IL_51DB: ldloc.s 60
(System.Collections.Generic.IEnumerator`1[Verse.Thing])
IL_51DD: callvirt abstract virtual System.Void
System.IDisposable::Dispose()
IL_51E2: Label419
IL_51E2: endfinally
IL_51E3: leave => (autogenerated)
} // end handler
IL_51E4: Label398
IL_51E4: Label418
IL_51E4: ldloc.0
IL_51E5: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_51EA: callvirt virtual Verse.Map Verse.Thing::get_Map()
IL_51EF: callvirt System.Boolean Verse.Map::get_IsPlayerHome()
IL_51F4: brtrue => Label420
IL_51F9: ldloc.0
IL_51FA: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_51FF: call static System.Boolean
RimWorld.Planet.CaravanFormingUtility::IsFormingCaravan(Verse.Pawn p)
IL_5204: brtrue => Label421
IL_5209: ldloc.1
IL_520A: ldloc.0
IL_520B: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_5210: callvirt virtual Verse.Map Verse.Thing::get_Map()
IL_5215: call static System.Collections.Generic.IEnumerable`1<Verse.Thing>
Verse.GridsUtility::GetItems(Verse.IntVec3 c, Verse.Map map)
IL_521A: callvirt abstract virtual
System.Collections.Generic.IEnumerator`1<Verse.Thing>
System.Collections.Generic.IEnumerable`1<Verse.Thing>::GetEnumerator()
IL_521F: stloc.s 60 (System.Collections.Generic.IEnumerator`1[Verse.Thing])
.try
{
IL_5221: br => Label422
IL_5226: Label433
IL_5226: newobj System.Void RimWorld.<>c__DisplayClass10_39::.ctor()
IL_522B: stloc.s 134 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_39)
IL_522D: ldloc.s 134 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_39)
IL_522F: ldloc.0
IL_5230: stfld RimWorld.<>c__DisplayClass10_0
RimWorld.<>c__DisplayClass10_39::CS$<>8__locals38
IL_5235: ldloc.s 134 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_39)
IL_5237: ldloc.s 60
(System.Collections.Generic.IEnumerator`1[Verse.Thing])
IL_5239: callvirt abstract virtual Verse.Thing
System.Collections.Generic.IEnumerator`1<Verse.Thing>::get_Current()
IL_523E: stfld Verse.Thing RimWorld.<>c__DisplayClass10_39::item
IL_5243: newobj System.Void RimWorld.<>c__DisplayClass10_40::.ctor()
IL_5248: stloc.s 135 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_40)
IL_524A: ldloc.s 135 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_40)
IL_524C: ldloc.s 134 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_39)
IL_524E: stfld RimWorld.<>c__DisplayClass10_39
RimWorld.<>c__DisplayClass10_40::CS$<>8__locals39
IL_5253: ldloc.s 135 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_40)
IL_5255: ldfld RimWorld.<>c__DisplayClass10_39
RimWorld.<>c__DisplayClass10_40::CS$<>8__locals39
IL_525A: ldfld Verse.Thing RimWorld.<>c__DisplayClass10_39::item
IL_525F: ldfld Verse.ThingDef Verse.Thing::def
IL_5264: callvirt System.Boolean Verse.ThingDef::get_EverHaulable()
IL_5269: brfalse => Label423
IL_526E: ldloc.s 135 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_40)
IL_5270: ldloc.s 135 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_40)
IL_5272: ldfld RimWorld.<>c__DisplayClass10_39
RimWorld.<>c__DisplayClass10_40::CS$<>8__locals39
IL_5277: ldfld RimWorld.<>c__DisplayClass10_0
RimWorld.<>c__DisplayClass10_39::CS$<>8__locals38
IL_527C: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_5281: call static Verse.Pawn
RimWorld.GiveToPackAnimalUtility::UsablePackAnimalWithTheMostFreeSpace(Verse.Pawn
pawn)
IL_5286: stfld Verse.Pawn
RimWorld.<>c__DisplayClass10_40::bestPackAnimal
IL_528B: ldloc.s 135 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_40)
IL_528D: ldfld Verse.Pawn
RimWorld.<>c__DisplayClass10_40::bestPackAnimal
IL_5292: brfalse => Label424
IL_5297: ldloc.s 135 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_40)
IL_5299: ldfld RimWorld.<>c__DisplayClass10_39
RimWorld.<>c__DisplayClass10_40::CS$<>8__locals39
IL_529E: ldfld RimWorld.<>c__DisplayClass10_0
RimWorld.<>c__DisplayClass10_39::CS$<>8__locals38
IL_52A3: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_52A8: ldloc.s 135 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_40)
IL_52AA: ldfld RimWorld.<>c__DisplayClass10_39
RimWorld.<>c__DisplayClass10_40::CS$<>8__locals39
IL_52AF: ldfld Verse.Thing RimWorld.<>c__DisplayClass10_39::item
IL_52B4: call static Verse.LocalTargetInfo
Verse.LocalTargetInfo::op_Implicit(Verse.Thing t)
IL_52B9: ldc.i4.3
IL_52BA: ldc.i4.3
IL_52BB: ldc.i4.0
IL_52BC: ldc.i4.0
IL_52BD: ldc.i4.0
IL_52BE: call static System.Boolean
Verse.ReachabilityUtility::CanReach(Verse.Pawn pawn, Verse.LocalTargetInfo dest,
Verse.AI.PathEndMode peMode, Verse.Danger maxDanger, System.Boolean canBashDoors,
System.Boolean canBashFences, Verse.TraverseMode mode)
IL_52C3: brtrue => Label425
IL_52C8: ldarg.2
IL_52C9: ldstr "CannotGiveToPackAnimal"
IL_52CE: ldloc.s 135 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_40)
IL_52D0: ldfld RimWorld.<>c__DisplayClass10_39
RimWorld.<>c__DisplayClass10_40::CS$<>8__locals39
IL_52D5: ldfld Verse.Thing RimWorld.<>c__DisplayClass10_39::item
IL_52DA: callvirt abstract virtual System.String Verse.Entity::get_Label()
IL_52DF: call static Verse.NamedArgument
Verse.NamedArgument::op_Implicit(System.String value)
IL_52E4: ldloc.s 135 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_40)
IL_52E6: ldfld RimWorld.<>c__DisplayClass10_39
RimWorld.<>c__DisplayClass10_40::CS$<>8__locals39
IL_52EB: ldfld Verse.Thing RimWorld.<>c__DisplayClass10_39::item
IL_52F0: call static Verse.NamedArgument
Verse.NamedArgument::op_Implicit(Verse.Thing value)
IL_52F5: call static Verse.TaggedString
Verse.TranslatorFormattedStringExtensions::Translate(System.String key,
Verse.NamedArgument arg1, Verse.NamedArgument arg2)
IL_52FA: ldstr ": "
IL_52FF: call static Verse.TaggedString
Verse.TaggedString::op_Addition(Verse.TaggedString t1, System.String t2)
IL_5304: ldstr "NoPath"
IL_5309: call static Verse.TaggedString
Verse.Translator::Translate(System.String key)
IL_530E: stloc.s 11 (Verse.TaggedString)
IL_5310: ldloca.s 11 (Verse.TaggedString)
IL_5312: call Verse.TaggedString Verse.TaggedString::CapitalizeFirst()
IL_5317: call static Verse.TaggedString
Verse.TaggedString::op_Addition(Verse.TaggedString t1, Verse.TaggedString t2)
IL_531C: call static System.String
Verse.TaggedString::op_Implicit(Verse.TaggedString taggedString)
IL_5321: ldnull
IL_5322: ldc.i4.4
IL_5323: ldnull
IL_5324: ldnull
IL_5325: ldc.r4 0
IL_532A: ldnull
IL_532B: ldnull
IL_532C: ldc.i4.1
IL_532D: ldc.i4.0
IL_532E: newobj System.Void Verse.FloatMenuOption::.ctor(System.String
label, System.Action action, Verse.MenuOptionPriority priority,
System.Action`1<UnityEngine.Rect> mouseoverGuiAction, Verse.Thing
revalidateClickTarget, System.Single extraPartWidth,
System.Func`2<UnityEngine.Rect, System.Boolean> extraPartOnGUI,
RimWorld.Planet.WorldObject revalidateWorldClickTarget, System.Boolean
playSelectionSound, System.Int32 orderInPriority)
IL_5333: callvirt virtual System.Void
System.Collections.Generic.List`1<Verse.FloatMenuOption>::Add(Verse.FloatMenuOption
item)
IL_5338: br => Label426
IL_533D: Label425
IL_533D: ldloc.s 135 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_40)
IL_533F: ldfld Verse.Pawn
RimWorld.<>c__DisplayClass10_40::bestPackAnimal
IL_5344: ldloc.s 135 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_40)
IL_5346: ldfld RimWorld.<>c__DisplayClass10_39
RimWorld.<>c__DisplayClass10_40::CS$<>8__locals39
IL_534B: ldfld Verse.Thing RimWorld.<>c__DisplayClass10_39::item
IL_5350: ldc.i4.1
IL_5351: call static System.Boolean
RimWorld.MassUtility::WillBeOverEncumberedAfterPickingUp(Verse.Pawn pawn,
Verse.Thing thing, System.Int32 count)
IL_5356: brfalse => Label427
IL_535B: ldarg.2
IL_535C: ldstr "CannotGiveToPackAnimal"
IL_5361: ldloc.s 135 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_40)
IL_5363: ldfld RimWorld.<>c__DisplayClass10_39
RimWorld.<>c__DisplayClass10_40::CS$<>8__locals39
IL_5368: ldfld Verse.Thing RimWorld.<>c__DisplayClass10_39::item
IL_536D: callvirt abstract virtual System.String Verse.Entity::get_Label()
IL_5372: call static Verse.NamedArgument
Verse.NamedArgument::op_Implicit(System.String value)
IL_5377: ldloc.s 135 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_40)
IL_5379: ldfld RimWorld.<>c__DisplayClass10_39
RimWorld.<>c__DisplayClass10_40::CS$<>8__locals39
IL_537E: ldfld Verse.Thing RimWorld.<>c__DisplayClass10_39::item
IL_5383: call static Verse.NamedArgument
Verse.NamedArgument::op_Implicit(Verse.Thing value)
IL_5388: call static Verse.TaggedString
Verse.TranslatorFormattedStringExtensions::Translate(System.String key,
Verse.NamedArgument arg1, Verse.NamedArgument arg2)
IL_538D: ldstr ": "
IL_5392: call static Verse.TaggedString
Verse.TaggedString::op_Addition(Verse.TaggedString t1, System.String t2)
IL_5397: ldstr "TooHeavy"
IL_539C: call static Verse.TaggedString
Verse.Translator::Translate(System.String key)
IL_53A1: call static Verse.TaggedString
Verse.TaggedString::op_Addition(Verse.TaggedString t1, Verse.TaggedString t2)
IL_53A6: call static System.String
Verse.TaggedString::op_Implicit(Verse.TaggedString taggedString)
IL_53AB: ldnull
IL_53AC: ldc.i4.4
IL_53AD: ldnull
IL_53AE: ldnull
IL_53AF: ldc.r4 0
IL_53B4: ldnull
IL_53B5: ldnull
IL_53B6: ldc.i4.1
IL_53B7: ldc.i4.0
IL_53B8: newobj System.Void Verse.FloatMenuOption::.ctor(System.String
label, System.Action action, Verse.MenuOptionPriority priority,
System.Action`1<UnityEngine.Rect> mouseoverGuiAction, Verse.Thing
revalidateClickTarget, System.Single extraPartWidth,
System.Func`2<UnityEngine.Rect, System.Boolean> extraPartOnGUI,
RimWorld.Planet.WorldObject revalidateWorldClickTarget, System.Boolean
playSelectionSound, System.Int32 orderInPriority)
IL_53BD: callvirt virtual System.Void
System.Collections.Generic.List`1<Verse.FloatMenuOption>::Add(Verse.FloatMenuOption
item)
IL_53C2: br => Label428
IL_53C7: Label427
IL_53C7: ldloc.s 135 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_40)
IL_53C9: ldfld RimWorld.<>c__DisplayClass10_39
RimWorld.<>c__DisplayClass10_40::CS$<>8__locals39
IL_53CE: ldfld Verse.Thing RimWorld.<>c__DisplayClass10_39::item
IL_53D3: ldfld System.Int32 Verse.Thing::stackCount
IL_53D8: ldc.i4.1
IL_53D9: bne.un => Label429
IL_53DE: ldarg.2
IL_53DF: ldstr "GiveToPackAnimal"
IL_53E4: ldloc.s 135 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_40)
IL_53E6: ldfld RimWorld.<>c__DisplayClass10_39
RimWorld.<>c__DisplayClass10_40::CS$<>8__locals39
IL_53EB: ldfld Verse.Thing RimWorld.<>c__DisplayClass10_39::item
IL_53F0: callvirt abstract virtual System.String Verse.Entity::get_Label()
IL_53F5: call static Verse.NamedArgument
Verse.NamedArgument::op_Implicit(System.String value)
IL_53FA: ldloc.s 135 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_40)
IL_53FC: ldfld RimWorld.<>c__DisplayClass10_39
RimWorld.<>c__DisplayClass10_40::CS$<>8__locals39
IL_5401: ldfld Verse.Thing RimWorld.<>c__DisplayClass10_39::item
IL_5406: call static Verse.NamedArgument
Verse.NamedArgument::op_Implicit(Verse.Thing value)
IL_540B: call static Verse.TaggedString
Verse.TranslatorFormattedStringExtensions::Translate(System.String key,
Verse.NamedArgument arg1, Verse.NamedArgument arg2)
IL_5410: call static System.String
Verse.TaggedString::op_Implicit(Verse.TaggedString taggedString)
IL_5415: ldloc.s 135 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_40)
IL_5417: ldfld RimWorld.<>c__DisplayClass10_39
RimWorld.<>c__DisplayClass10_40::CS$<>8__locals39
IL_541C: ldftn System.Void
RimWorld.<>c__DisplayClass10_39::<AddHumanlikeOrders>b__54()
IL_5422: newobj System.Void System.Action::.ctor(System.Object object,
System.IntPtr method)
IL_5427: ldc.i4.5
IL_5428: ldnull
IL_5429: ldnull
IL_542A: ldc.r4 0
IL_542F: ldnull
IL_5430: ldnull
IL_5431: ldc.i4.1
IL_5432: ldc.i4.0
IL_5433: newobj System.Void Verse.FloatMenuOption::.ctor(System.String
label, System.Action action, Verse.MenuOptionPriority priority,
System.Action`1<UnityEngine.Rect> mouseoverGuiAction, Verse.Thing
revalidateClickTarget, System.Single extraPartWidth,
System.Func`2<UnityEngine.Rect, System.Boolean> extraPartOnGUI,
RimWorld.Planet.WorldObject revalidateWorldClickTarget, System.Boolean
playSelectionSound, System.Int32 orderInPriority)
IL_5438: ldloc.s 135 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_40)
IL_543A: ldfld RimWorld.<>c__DisplayClass10_39
RimWorld.<>c__DisplayClass10_40::CS$<>8__locals39
IL_543F: ldfld RimWorld.<>c__DisplayClass10_0
RimWorld.<>c__DisplayClass10_39::CS$<>8__locals38
IL_5444: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_5449: ldloc.s 135 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_40)
IL_544B: ldfld RimWorld.<>c__DisplayClass10_39
RimWorld.<>c__DisplayClass10_40::CS$<>8__locals39
IL_5450: ldfld Verse.Thing RimWorld.<>c__DisplayClass10_39::item
IL_5455: call static Verse.LocalTargetInfo
Verse.LocalTargetInfo::op_Implicit(Verse.Thing t)
IL_545A: ldstr "ReservedBy"
IL_545F: ldnull
IL_5460: call static Verse.FloatMenuOption
RimWorld.FloatMenuUtility::DecoratePrioritizedTask(Verse.FloatMenuOption option,
Verse.Pawn pawn, Verse.LocalTargetInfo target, System.String reservedText,
Verse.ReservationLayerDef layer)
IL_5465: callvirt virtual System.Void
System.Collections.Generic.List`1<Verse.FloatMenuOption>::Add(Verse.FloatMenuOption
item)
IL_546A: br => Label430
IL_546F: Label429
IL_546F: ldloc.s 135 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_40)
IL_5471: ldfld Verse.Pawn
RimWorld.<>c__DisplayClass10_40::bestPackAnimal
IL_5476: ldloc.s 135 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_40)
IL_5478: ldfld RimWorld.<>c__DisplayClass10_39
RimWorld.<>c__DisplayClass10_40::CS$<>8__locals39
IL_547D: ldfld Verse.Thing RimWorld.<>c__DisplayClass10_39::item
IL_5482: ldloc.s 135 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_40)
IL_5484: ldfld RimWorld.<>c__DisplayClass10_39
RimWorld.<>c__DisplayClass10_40::CS$<>8__locals39
IL_5489: ldfld Verse.Thing RimWorld.<>c__DisplayClass10_39::item
IL_548E: ldfld System.Int32 Verse.Thing::stackCount
IL_5493: call static System.Boolean
RimWorld.MassUtility::WillBeOverEncumberedAfterPickingUp(Verse.Pawn pawn,
Verse.Thing thing, System.Int32 count)
IL_5498: brfalse => Label431
IL_549D: ldarg.2
IL_549E: ldstr "CannotGiveToPackAnimalAll"
IL_54A3: ldloc.s 135 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_40)
IL_54A5: ldfld RimWorld.<>c__DisplayClass10_39
RimWorld.<>c__DisplayClass10_40::CS$<>8__locals39
IL_54AA: ldfld Verse.Thing RimWorld.<>c__DisplayClass10_39::item
IL_54AF: callvirt abstract virtual System.String Verse.Entity::get_Label()
IL_54B4: call static Verse.NamedArgument
Verse.NamedArgument::op_Implicit(System.String value)
IL_54B9: ldloc.s 135 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_40)
IL_54BB: ldfld RimWorld.<>c__DisplayClass10_39
RimWorld.<>c__DisplayClass10_40::CS$<>8__locals39
IL_54C0: ldfld Verse.Thing RimWorld.<>c__DisplayClass10_39::item
IL_54C5: call static Verse.NamedArgument
Verse.NamedArgument::op_Implicit(Verse.Thing value)
IL_54CA: call static Verse.TaggedString
Verse.TranslatorFormattedStringExtensions::Translate(System.String key,
Verse.NamedArgument arg1, Verse.NamedArgument arg2)
IL_54CF: ldstr ": "
IL_54D4: call static Verse.TaggedString
Verse.TaggedString::op_Addition(Verse.TaggedString t1, System.String t2)
IL_54D9: ldstr "TooHeavy"
IL_54DE: call static Verse.TaggedString
Verse.Translator::Translate(System.String key)
IL_54E3: call static Verse.TaggedString
Verse.TaggedString::op_Addition(Verse.TaggedString t1, Verse.TaggedString t2)
IL_54E8: call static System.String
Verse.TaggedString::op_Implicit(Verse.TaggedString taggedString)
IL_54ED: ldnull
IL_54EE: ldc.i4.4
IL_54EF: ldnull
IL_54F0: ldnull
IL_54F1: ldc.r4 0
IL_54F6: ldnull
IL_54F7: ldnull
IL_54F8: ldc.i4.1
IL_54F9: ldc.i4.0
IL_54FA: newobj System.Void Verse.FloatMenuOption::.ctor(System.String
label, System.Action action, Verse.MenuOptionPriority priority,
System.Action`1<UnityEngine.Rect> mouseoverGuiAction, Verse.Thing
revalidateClickTarget, System.Single extraPartWidth,
System.Func`2<UnityEngine.Rect, System.Boolean> extraPartOnGUI,
RimWorld.Planet.WorldObject revalidateWorldClickTarget, System.Boolean
playSelectionSound, System.Int32 orderInPriority)
IL_54FF: callvirt virtual System.Void
System.Collections.Generic.List`1<Verse.FloatMenuOption>::Add(Verse.FloatMenuOption
item)
IL_5504: br => Label432
IL_5509: Label431
IL_5509: ldarg.2
IL_550A: ldstr "GiveToPackAnimalAll"
IL_550F: ldloc.s 135 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_40)
IL_5511: ldfld RimWorld.<>c__DisplayClass10_39
RimWorld.<>c__DisplayClass10_40::CS$<>8__locals39
IL_5516: ldfld Verse.Thing RimWorld.<>c__DisplayClass10_39::item
IL_551B: callvirt abstract virtual System.String Verse.Entity::get_Label()
IL_5520: call static Verse.NamedArgument
Verse.NamedArgument::op_Implicit(System.String value)
IL_5525: ldloc.s 135 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_40)
IL_5527: ldfld RimWorld.<>c__DisplayClass10_39
RimWorld.<>c__DisplayClass10_40::CS$<>8__locals39
IL_552C: ldfld Verse.Thing RimWorld.<>c__DisplayClass10_39::item
IL_5531: call static Verse.NamedArgument
Verse.NamedArgument::op_Implicit(Verse.Thing value)
IL_5536: call static Verse.TaggedString
Verse.TranslatorFormattedStringExtensions::Translate(System.String key,
Verse.NamedArgument arg1, Verse.NamedArgument arg2)
IL_553B: call static System.String
Verse.TaggedString::op_Implicit(Verse.TaggedString taggedString)
IL_5540: ldloc.s 135 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_40)
IL_5542: ldfld RimWorld.<>c__DisplayClass10_39
RimWorld.<>c__DisplayClass10_40::CS$<>8__locals39
IL_5547: ldftn System.Void
RimWorld.<>c__DisplayClass10_39::<AddHumanlikeOrders>b__55()
IL_554D: newobj System.Void System.Action::.ctor(System.Object object,
System.IntPtr method)
IL_5552: ldc.i4.5
IL_5553: ldnull
IL_5554: ldnull
IL_5555: ldc.r4 0
IL_555A: ldnull
IL_555B: ldnull
IL_555C: ldc.i4.1
IL_555D: ldc.i4.0
IL_555E: newobj System.Void Verse.FloatMenuOption::.ctor(System.String
label, System.Action action, Verse.MenuOptionPriority priority,
System.Action`1<UnityEngine.Rect> mouseoverGuiAction, Verse.Thing
revalidateClickTarget, System.Single extraPartWidth,
System.Func`2<UnityEngine.Rect, System.Boolean> extraPartOnGUI,
RimWorld.Planet.WorldObject revalidateWorldClickTarget, System.Boolean
playSelectionSound, System.Int32 orderInPriority)
IL_5563: ldloc.s 135 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_40)
IL_5565: ldfld RimWorld.<>c__DisplayClass10_39
RimWorld.<>c__DisplayClass10_40::CS$<>8__locals39
IL_556A: ldfld RimWorld.<>c__DisplayClass10_0
RimWorld.<>c__DisplayClass10_39::CS$<>8__locals38
IL_556F: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_5574: ldloc.s 135 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_40)
IL_5576: ldfld RimWorld.<>c__DisplayClass10_39
RimWorld.<>c__DisplayClass10_40::CS$<>8__locals39
IL_557B: ldfld Verse.Thing RimWorld.<>c__DisplayClass10_39::item
IL_5580: call static Verse.LocalTargetInfo
Verse.LocalTargetInfo::op_Implicit(Verse.Thing t)
IL_5585: ldstr "ReservedBy"
IL_558A: ldnull
IL_558B: call static Verse.FloatMenuOption
RimWorld.FloatMenuUtility::DecoratePrioritizedTask(Verse.FloatMenuOption option,
Verse.Pawn pawn, Verse.LocalTargetInfo target, System.String reservedText,
Verse.ReservationLayerDef layer)
IL_5590: callvirt virtual System.Void
System.Collections.Generic.List`1<Verse.FloatMenuOption>::Add(Verse.FloatMenuOption
item)
IL_5595: Label432
IL_5595: ldarg.2
IL_5596: ldstr "GiveToPackAnimalSome"
IL_559B: ldloc.s 135 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_40)
IL_559D: ldfld RimWorld.<>c__DisplayClass10_39
RimWorld.<>c__DisplayClass10_40::CS$<>8__locals39
IL_55A2: ldfld Verse.Thing RimWorld.<>c__DisplayClass10_39::item
IL_55A7: callvirt virtual System.String Verse.Thing::get_LabelNoCount()
IL_55AC: call static Verse.NamedArgument
Verse.NamedArgument::op_Implicit(System.String value)
IL_55B1: ldloc.s 135 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_40)
IL_55B3: ldfld RimWorld.<>c__DisplayClass10_39
RimWorld.<>c__DisplayClass10_40::CS$<>8__locals39
IL_55B8: ldfld Verse.Thing RimWorld.<>c__DisplayClass10_39::item
IL_55BD: call static Verse.NamedArgument
Verse.NamedArgument::op_Implicit(Verse.Thing value)
IL_55C2: call static Verse.TaggedString
Verse.TranslatorFormattedStringExtensions::Translate(System.String key,
Verse.NamedArgument arg1, Verse.NamedArgument arg2)
IL_55C7: call static System.String
Verse.TaggedString::op_Implicit(Verse.TaggedString taggedString)
IL_55CC: ldloc.s 135 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_40)
IL_55CE: ldftn System.Void
RimWorld.<>c__DisplayClass10_40::<AddHumanlikeOrders>b__56()
IL_55D4: newobj System.Void System.Action::.ctor(System.Object object,
System.IntPtr method)
IL_55D9: ldc.i4.5
IL_55DA: ldnull
IL_55DB: ldnull
IL_55DC: ldc.r4 0
IL_55E1: ldnull
IL_55E2: ldnull
IL_55E3: ldc.i4.1
IL_55E4: ldc.i4.0
IL_55E5: newobj System.Void Verse.FloatMenuOption::.ctor(System.String
label, System.Action action, Verse.MenuOptionPriority priority,
System.Action`1<UnityEngine.Rect> mouseoverGuiAction, Verse.Thing
revalidateClickTarget, System.Single extraPartWidth,
System.Func`2<UnityEngine.Rect, System.Boolean> extraPartOnGUI,
RimWorld.Planet.WorldObject revalidateWorldClickTarget, System.Boolean
playSelectionSound, System.Int32 orderInPriority)
IL_55EA: ldloc.s 135 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_40)
IL_55EC: ldfld RimWorld.<>c__DisplayClass10_39
RimWorld.<>c__DisplayClass10_40::CS$<>8__locals39
IL_55F1: ldfld RimWorld.<>c__DisplayClass10_0
RimWorld.<>c__DisplayClass10_39::CS$<>8__locals38
IL_55F6: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_55FB: ldloc.s 135 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_40)
IL_55FD: ldfld RimWorld.<>c__DisplayClass10_39
RimWorld.<>c__DisplayClass10_40::CS$<>8__locals39
IL_5602: ldfld Verse.Thing RimWorld.<>c__DisplayClass10_39::item
IL_5607: call static Verse.LocalTargetInfo
Verse.LocalTargetInfo::op_Implicit(Verse.Thing t)
IL_560C: ldstr "ReservedBy"
IL_5611: ldnull
IL_5612: call static Verse.FloatMenuOption
RimWorld.FloatMenuUtility::DecoratePrioritizedTask(Verse.FloatMenuOption option,
Verse.Pawn pawn, Verse.LocalTargetInfo target, System.String reservedText,
Verse.ReservationLayerDef layer)
IL_5617: callvirt virtual System.Void
System.Collections.Generic.List`1<Verse.FloatMenuOption>::Add(Verse.FloatMenuOption
item)
IL_561C: Label422
IL_561C: Label423
IL_561C: Label424
IL_561C: Label426
IL_561C: Label428
IL_561C: Label430
IL_561C: ldloc.s 60
(System.Collections.Generic.IEnumerator`1[Verse.Thing])
IL_561E: callvirt abstract virtual System.Boolean
System.Collections.IEnumerator::MoveNext()
IL_5623: brtrue => Label433
IL_5628: leave => Label434
IL_562D: leave => (autogenerated)
} // end try
.finally
{
IL_5632: ldloc.s 60
(System.Collections.Generic.IEnumerator`1[Verse.Thing])
IL_5634: brfalse => Label435
IL_5639: ldloc.s 60
(System.Collections.Generic.IEnumerator`1[Verse.Thing])
IL_563B: callvirt abstract virtual System.Void
System.IDisposable::Dispose()
IL_5640: Label435
IL_5640: endfinally
IL_5641: leave => (autogenerated)
} // end handler
IL_5642: Label420
IL_5642: Label421
IL_5642: Label434
IL_5642: ldloc.0
IL_5643: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_5648: callvirt virtual Verse.Map Verse.Thing::get_Map()
IL_564D: callvirt System.Boolean Verse.Map::get_IsPlayerHome()
IL_5652: brtrue => Label436
IL_5657: ldloc.0
IL_5658: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_565D: callvirt virtual Verse.Map Verse.Thing::get_Map()
IL_5662: ldfld Verse.ExitMapGrid Verse.Map::exitMapGrid
IL_5667: callvirt System.Boolean Verse.ExitMapGrid::get_MapUsesExitGrid()
IL_566C: brfalse => Label437
IL_5671: ldarg.0
IL_5672: ldloc.0
IL_5673: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_5678: call static RimWorld.TargetingParameters
RimWorld.TargetingParameters::ForRescue(Verse.Pawn p)
IL_567D: ldc.i4.1
IL_567E: ldnull
IL_567F: call static
System.Collections.Generic.IEnumerable`1<Verse.LocalTargetInfo>
Verse.GenUI::TargetsAt(UnityEngine.Vector3 clickPos, RimWorld.TargetingParameters
clickParams, System.Boolean thingsOnly, RimWorld.ITargetingSource source)
IL_5684: callvirt abstract virtual
System.Collections.Generic.IEnumerator`1<Verse.LocalTargetInfo>
System.Collections.Generic.IEnumerable`1<Verse.LocalTargetInfo>::GetEnumerator()
IL_5689: stloc.s 8
(System.Collections.Generic.IEnumerator`1[Verse.LocalTargetInfo])
.try
{
IL_568B: br => Label438
IL_5690: Label449
IL_5690: ldloc.s 8
(System.Collections.Generic.IEnumerator`1[Verse.LocalTargetInfo])
IL_5692: callvirt abstract virtual Verse.LocalTargetInfo
System.Collections.Generic.IEnumerator`1<Verse.LocalTargetInfo>::get_Current()
IL_5697: stloc.s 136 (Verse.LocalTargetInfo)
IL_5699: newobj System.Void RimWorld.<>c__DisplayClass10_41::.ctor()
IL_569E: stloc.s 137 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_41)
IL_56A0: ldloc.s 137 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_41)
IL_56A2: ldloc.0
IL_56A3: stfld RimWorld.<>c__DisplayClass10_0
RimWorld.<>c__DisplayClass10_41::CS$<>8__locals40
IL_56A8: ldloc.s 137 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_41)
IL_56AA: ldloca.s 136 (Verse.LocalTargetInfo)
IL_56AC: call Verse.Thing Verse.LocalTargetInfo::get_Thing()
IL_56B1: castclass Verse.Pawn
IL_56B6: stfld Verse.Pawn RimWorld.<>c__DisplayClass10_41::p
IL_56BB: ldloc.s 137 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_41)
IL_56BD: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_41::p
IL_56C2: callvirt virtual RimWorld.Faction Verse.Thing::get_Faction()
IL_56C7: call static RimWorld.Faction RimWorld.Faction::get_OfPlayer()
IL_56CC: beq => Label439
IL_56D1: ldloc.s 137 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_41)
IL_56D3: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_41::p
IL_56D8: callvirt System.Boolean Verse.Pawn::get_IsPrisonerOfColony()
IL_56DD: brtrue => Label440
IL_56E2: ldloc.s 137 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_41)
IL_56E4: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_41::p
IL_56E9: call static RimWorld.Faction RimWorld.Faction::get_OfPlayer()
IL_56EE: call static System.Boolean
RimWorld.Planet.CaravanUtility::ShouldAutoCapture(Verse.Pawn p, RimWorld.Faction
caravanFaction)
IL_56F3: brfalse => Label441
IL_56F8: Label439
IL_56F8: Label440
IL_56F8: ldloc.s 137 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_41)
IL_56FA: ldfld RimWorld.<>c__DisplayClass10_0
RimWorld.<>c__DisplayClass10_41::CS$<>8__locals40
IL_56FF: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_5704: ldloc.s 137 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_41)
IL_5706: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_41::p
IL_570B: call static Verse.LocalTargetInfo
Verse.LocalTargetInfo::op_Implicit(Verse.Thing t)
IL_5710: ldc.i4.3
IL_5711: ldc.i4.3
IL_5712: ldc.i4.0
IL_5713: ldc.i4.0
IL_5714: ldc.i4.0
IL_5715: call static System.Boolean
Verse.ReachabilityUtility::CanReach(Verse.Pawn pawn, Verse.LocalTargetInfo dest,
Verse.AI.PathEndMode peMode, Verse.Danger maxDanger, System.Boolean canBashDoors,
System.Boolean canBashFences, Verse.TraverseMode mode)
IL_571A: brtrue => Label442
IL_571F: ldarg.2
IL_5720: ldstr "CannotCarryToExit"
IL_5725: ldloc.s 137 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_41)
IL_5727: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_41::p
IL_572C: callvirt abstract virtual System.String Verse.Entity::get_Label()
IL_5731: call static Verse.NamedArgument
Verse.NamedArgument::op_Implicit(System.String value)
IL_5736: ldloc.s 137 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_41)
IL_5738: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_41::p
IL_573D: call static Verse.NamedArgument
Verse.NamedArgument::op_Implicit(Verse.Thing value)
IL_5742: call static Verse.TaggedString
Verse.TranslatorFormattedStringExtensions::Translate(System.String key,
Verse.NamedArgument arg1, Verse.NamedArgument arg2)
IL_5747: ldstr ": "
IL_574C: call static Verse.TaggedString
Verse.TaggedString::op_Addition(Verse.TaggedString t1, System.String t2)
IL_5751: ldstr "NoPath"
IL_5756: call static Verse.TaggedString
Verse.Translator::Translate(System.String key)
IL_575B: stloc.s 11 (Verse.TaggedString)
IL_575D: ldloca.s 11 (Verse.TaggedString)
IL_575F: call Verse.TaggedString Verse.TaggedString::CapitalizeFirst()
IL_5764: call static Verse.TaggedString
Verse.TaggedString::op_Addition(Verse.TaggedString t1, Verse.TaggedString t2)
IL_5769: call static System.String
Verse.TaggedString::op_Implicit(Verse.TaggedString taggedString)
IL_576E: ldnull
IL_576F: ldc.i4.4
IL_5770: ldnull
IL_5771: ldnull
IL_5772: ldc.r4 0
IL_5777: ldnull
IL_5778: ldnull
IL_5779: ldc.i4.1
IL_577A: ldc.i4.0
IL_577B: newobj System.Void Verse.FloatMenuOption::.ctor(System.String
label, System.Action action, Verse.MenuOptionPriority priority,
System.Action`1<UnityEngine.Rect> mouseoverGuiAction, Verse.Thing
revalidateClickTarget, System.Single extraPartWidth,
System.Func`2<UnityEngine.Rect, System.Boolean> extraPartOnGUI,
RimWorld.Planet.WorldObject revalidateWorldClickTarget, System.Boolean
playSelectionSound, System.Int32 orderInPriority)
IL_5780: callvirt virtual System.Void
System.Collections.Generic.List`1<Verse.FloatMenuOption>::Add(Verse.FloatMenuOption
item)
IL_5785: br => Label443
IL_578A: Label442
IL_578A: newobj System.Void RimWorld.<>c__DisplayClass10_42::.ctor()
IL_578F: stloc.s 138 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_42)
IL_5791: ldloc.s 138 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_42)
IL_5793: ldloc.s 137 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_41)
IL_5795: stfld RimWorld.<>c__DisplayClass10_41
RimWorld.<>c__DisplayClass10_42::CS$<>8__locals41
IL_579A: ldloc.s 138 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_42)
IL_579C: ldfld RimWorld.<>c__DisplayClass10_41
RimWorld.<>c__DisplayClass10_42::CS$<>8__locals41
IL_57A1: ldfld RimWorld.<>c__DisplayClass10_0
RimWorld.<>c__DisplayClass10_41::CS$<>8__locals40
IL_57A6: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_57AB: ldloc.s 138 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_42)
IL_57AD: ldflda Verse.IntVec3 RimWorld.<>c__DisplayClass10_42::exitSpot
IL_57B2: ldc.i4.0
IL_57B3: ldc.i4.1
IL_57B4: call static System.Boolean
RimWorld.RCellFinder::TryFindBestExitSpot(Verse.Pawn pawn, Verse.IntVec3& spot,
Verse.TraverseMode mode, System.Boolean canBash)
IL_57B9: brtrue => Label444
IL_57BE: ldarg.2
IL_57BF: ldstr "CannotCarryToExit"
IL_57C4: ldloc.s 138 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_42)
IL_57C6: ldfld RimWorld.<>c__DisplayClass10_41
RimWorld.<>c__DisplayClass10_42::CS$<>8__locals41
IL_57CB: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_41::p
IL_57D0: callvirt abstract virtual System.String Verse.Entity::get_Label()
IL_57D5: call static Verse.NamedArgument
Verse.NamedArgument::op_Implicit(System.String value)
IL_57DA: ldloc.s 138 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_42)
IL_57DC: ldfld RimWorld.<>c__DisplayClass10_41
RimWorld.<>c__DisplayClass10_42::CS$<>8__locals41
IL_57E1: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_41::p
IL_57E6: call static Verse.NamedArgument
Verse.NamedArgument::op_Implicit(Verse.Thing value)
IL_57EB: call static Verse.TaggedString
Verse.TranslatorFormattedStringExtensions::Translate(System.String key,
Verse.NamedArgument arg1, Verse.NamedArgument arg2)
IL_57F0: ldstr ": "
IL_57F5: call static Verse.TaggedString
Verse.TaggedString::op_Addition(Verse.TaggedString t1, System.String t2)
IL_57FA: ldstr "NoPath"
IL_57FF: call static Verse.TaggedString
Verse.Translator::Translate(System.String key)
IL_5804: stloc.s 11 (Verse.TaggedString)
IL_5806: ldloca.s 11 (Verse.TaggedString)
IL_5808: call Verse.TaggedString Verse.TaggedString::CapitalizeFirst()
IL_580D: call static Verse.TaggedString
Verse.TaggedString::op_Addition(Verse.TaggedString t1, Verse.TaggedString t2)
IL_5812: call static System.String
Verse.TaggedString::op_Implicit(Verse.TaggedString taggedString)
IL_5817: ldnull
IL_5818: ldc.i4.4
IL_5819: ldnull
IL_581A: ldnull
IL_581B: ldc.r4 0
IL_5820: ldnull
IL_5821: ldnull
IL_5822: ldc.i4.1
IL_5823: ldc.i4.0
IL_5824: newobj System.Void Verse.FloatMenuOption::.ctor(System.String
label, System.Action action, Verse.MenuOptionPriority priority,
System.Action`1<UnityEngine.Rect> mouseoverGuiAction, Verse.Thing
revalidateClickTarget, System.Single extraPartWidth,
System.Func`2<UnityEngine.Rect, System.Boolean> extraPartOnGUI,
RimWorld.Planet.WorldObject revalidateWorldClickTarget, System.Boolean
playSelectionSound, System.Int32 orderInPriority)
IL_5829: callvirt virtual System.Void
System.Collections.Generic.List`1<Verse.FloatMenuOption>::Add(Verse.FloatMenuOption
item)
IL_582E: br => Label445
IL_5833: Label444
IL_5833: ldloc.s 138 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_42)
IL_5835: ldfld RimWorld.<>c__DisplayClass10_41
RimWorld.<>c__DisplayClass10_42::CS$<>8__locals41
IL_583A: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_41::p
IL_583F: callvirt virtual RimWorld.Faction Verse.Thing::get_Faction()
IL_5844: call static RimWorld.Faction RimWorld.Faction::get_OfPlayer()
IL_5849: beq => Label446
IL_584E: ldloc.s 138 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_42)
IL_5850: ldfld RimWorld.<>c__DisplayClass10_41
RimWorld.<>c__DisplayClass10_42::CS$<>8__locals41
IL_5855: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_41::p
IL_585A: callvirt System.Boolean Verse.Pawn::get_IsPrisonerOfColony()
IL_585F: brtrue => Label447
IL_5864: ldstr "CarryToExitAndCapture"
IL_5869: ldloc.s 138 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_42)
IL_586B: ldfld RimWorld.<>c__DisplayClass10_41
RimWorld.<>c__DisplayClass10_42::CS$<>8__locals41
IL_5870: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_41::p
IL_5875: callvirt abstract virtual System.String Verse.Entity::get_Label()
IL_587A: call static Verse.NamedArgument
Verse.NamedArgument::op_Implicit(System.String value)
IL_587F: ldloc.s 138 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_42)
IL_5881: ldfld RimWorld.<>c__DisplayClass10_41
RimWorld.<>c__DisplayClass10_42::CS$<>8__locals41
IL_5886: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_41::p
IL_588B: call static Verse.NamedArgument
Verse.NamedArgument::op_Implicit(Verse.Thing value)
IL_5890: call static Verse.TaggedString
Verse.TranslatorFormattedStringExtensions::Translate(System.String key,
Verse.NamedArgument arg1, Verse.NamedArgument arg2)
IL_5895: br => Label448
IL_589A: Label446
IL_589A: Label447
IL_589A: ldstr "CarryToExit"
IL_589F: ldloc.s 138 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_42)
IL_58A1: ldfld RimWorld.<>c__DisplayClass10_41
RimWorld.<>c__DisplayClass10_42::CS$<>8__locals41
IL_58A6: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_41::p
IL_58AB: callvirt abstract virtual System.String Verse.Entity::get_Label()
IL_58B0: call static Verse.NamedArgument
Verse.NamedArgument::op_Implicit(System.String value)
IL_58B5: ldloc.s 138 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_42)
IL_58B7: ldfld RimWorld.<>c__DisplayClass10_41
RimWorld.<>c__DisplayClass10_42::CS$<>8__locals41
IL_58BC: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_41::p
IL_58C1: call static Verse.NamedArgument
Verse.NamedArgument::op_Implicit(Verse.Thing value)
IL_58C6: call static Verse.TaggedString
Verse.TranslatorFormattedStringExtensions::Translate(System.String key,
Verse.NamedArgument arg1, Verse.NamedArgument arg2)
IL_58CB: Label448
IL_58CB: stloc.s 139 (Verse.TaggedString)
IL_58CD: ldarg.2
IL_58CE: ldloc.s 139 (Verse.TaggedString)
IL_58D0: call static System.String
Verse.TaggedString::op_Implicit(Verse.TaggedString taggedString)
IL_58D5: ldloc.s 138 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_42)
IL_58D7: ldftn System.Void
RimWorld.<>c__DisplayClass10_42::<AddHumanlikeOrders>b__58()
IL_58DD: newobj System.Void System.Action::.ctor(System.Object object,
System.IntPtr method)
IL_58E2: ldc.i4.5
IL_58E3: ldnull
IL_58E4: ldnull
IL_58E5: ldc.r4 0
IL_58EA: ldnull
IL_58EB: ldnull
IL_58EC: ldc.i4.1
IL_58ED: ldc.i4.0
IL_58EE: newobj System.Void Verse.FloatMenuOption::.ctor(System.String
label, System.Action action, Verse.MenuOptionPriority priority,
System.Action`1<UnityEngine.Rect> mouseoverGuiAction, Verse.Thing
revalidateClickTarget, System.Single extraPartWidth,
System.Func`2<UnityEngine.Rect, System.Boolean> extraPartOnGUI,
RimWorld.Planet.WorldObject revalidateWorldClickTarget, System.Boolean
playSelectionSound, System.Int32 orderInPriority)
IL_58F3: ldloc.s 138 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_42)
IL_58F5: ldfld RimWorld.<>c__DisplayClass10_41
RimWorld.<>c__DisplayClass10_42::CS$<>8__locals41
IL_58FA: ldfld RimWorld.<>c__DisplayClass10_0
RimWorld.<>c__DisplayClass10_41::CS$<>8__locals40
IL_58FF: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_5904: ldloc.s 136 (Verse.LocalTargetInfo)
IL_5906: ldstr "ReservedBy"
IL_590B: ldnull
IL_590C: call static Verse.FloatMenuOption
RimWorld.FloatMenuUtility::DecoratePrioritizedTask(Verse.FloatMenuOption option,
Verse.Pawn pawn, Verse.LocalTargetInfo target, System.String reservedText,
Verse.ReservationLayerDef layer)
IL_5911: callvirt virtual System.Void
System.Collections.Generic.List`1<Verse.FloatMenuOption>::Add(Verse.FloatMenuOption
item)
IL_5916: Label438
IL_5916: Label441
IL_5916: Label443
IL_5916: Label445
IL_5916: ldloc.s 8
(System.Collections.Generic.IEnumerator`1[Verse.LocalTargetInfo])
IL_5918: callvirt abstract virtual System.Boolean
System.Collections.IEnumerator::MoveNext()
IL_591D: brtrue => Label449
IL_5922: leave => Label450
IL_5927: leave => (autogenerated)
} // end try
.finally
{
IL_592C: ldloc.s 8
(System.Collections.Generic.IEnumerator`1[Verse.LocalTargetInfo])
IL_592E: brfalse => Label451
IL_5933: ldloc.s 8
(System.Collections.Generic.IEnumerator`1[Verse.LocalTargetInfo])
IL_5935: callvirt abstract virtual System.Void
System.IDisposable::Dispose()
IL_593A: Label451
IL_593A: endfinally
IL_593B: leave => (autogenerated)
} // end handler
IL_593C: Label436
IL_593C: Label437
IL_593C: Label450
IL_593C: ldloc.0
IL_593D: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_5942: ldfld Verse.Pawn_EquipmentTracker Verse.Pawn::equipment
IL_5947: brfalse => Label452
IL_594C: ldloc.0
IL_594D: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_5952: ldfld Verse.Pawn_EquipmentTracker Verse.Pawn::equipment
IL_5957: callvirt Verse.ThingWithComps Verse.Pawn_EquipmentTracker::get_Primary()
IL_595C: brfalse => Label453
IL_5961: ldarg.0
IL_5962: ldloc.0
IL_5963: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_5968: call static RimWorld.TargetingParameters
RimWorld.TargetingParameters::ForSelf(Verse.Pawn p)
IL_596D: ldc.i4.1
IL_596E: ldnull
IL_596F: call static
System.Collections.Generic.IEnumerable`1<Verse.LocalTargetInfo>
Verse.GenUI::TargetsAt(UnityEngine.Vector3 clickPos, RimWorld.TargetingParameters
clickParams, System.Boolean thingsOnly, RimWorld.ITargetingSource source)
IL_5974: call static System.Boolean
System.Linq.Enumerable::Any(System.Collections.Generic.IEnumerable`1<Verse.LocalTar
getInfo> source)
IL_5979: brfalse => Label454
IL_597E: ldloc.0
IL_597F: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_5984: call static System.Boolean
RimWorld.QuestUtility::IsQuestLodger(Verse.Pawn p)
IL_5989: brfalse => Label455
IL_598E: ldloc.0
IL_598F: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_5994: ldfld Verse.Pawn_EquipmentTracker Verse.Pawn::equipment
IL_5999: callvirt Verse.ThingWithComps Verse.Pawn_EquipmentTracker::get_Primary()
IL_599E: ldloc.0
IL_599F: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_59A4: call static System.Boolean
RimWorld.EquipmentUtility::QuestLodgerCanUnequip(Verse.Thing thing, Verse.Pawn
pawn)
IL_59A9: brtrue => Label456
IL_59AE: ldarg.2
IL_59AF: ldstr "CannotDrop"
IL_59B4: ldloc.0
IL_59B5: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_59BA: ldfld Verse.Pawn_EquipmentTracker Verse.Pawn::equipment
IL_59BF: callvirt Verse.ThingWithComps Verse.Pawn_EquipmentTracker::get_Primary()
IL_59C4: callvirt abstract virtual System.String Verse.Entity::get_Label()
IL_59C9: call static Verse.NamedArgument
Verse.NamedArgument::op_Implicit(System.String value)
IL_59CE: ldloc.0
IL_59CF: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_59D4: ldfld Verse.Pawn_EquipmentTracker Verse.Pawn::equipment
IL_59D9: callvirt Verse.ThingWithComps Verse.Pawn_EquipmentTracker::get_Primary()
IL_59DE: call static Verse.NamedArgument
Verse.NamedArgument::op_Implicit(Verse.Thing value)
IL_59E3: call static Verse.TaggedString
Verse.TranslatorFormattedStringExtensions::Translate(System.String key,
Verse.NamedArgument arg1, Verse.NamedArgument arg2)
IL_59E8: ldstr ": "
IL_59ED: call static Verse.TaggedString
Verse.TaggedString::op_Addition(Verse.TaggedString t1, System.String t2)
IL_59F2: ldstr "QuestRelated"
IL_59F7: call static Verse.TaggedString
Verse.Translator::Translate(System.String key)
IL_59FC: stloc.s 11 (Verse.TaggedString)
IL_59FE: ldloca.s 11 (Verse.TaggedString)
IL_5A00: call Verse.TaggedString Verse.TaggedString::CapitalizeFirst()
IL_5A05: call static Verse.TaggedString
Verse.TaggedString::op_Addition(Verse.TaggedString t1, Verse.TaggedString t2)
IL_5A0A: call static System.String
Verse.TaggedString::op_Implicit(Verse.TaggedString taggedString)
IL_5A0F: ldnull
IL_5A10: ldc.i4.4
IL_5A11: ldnull
IL_5A12: ldnull
IL_5A13: ldc.r4 0
IL_5A18: ldnull
IL_5A19: ldnull
IL_5A1A: ldc.i4.1
IL_5A1B: ldc.i4.0
IL_5A1C: newobj System.Void Verse.FloatMenuOption::.ctor(System.String label,
System.Action action, Verse.MenuOptionPriority priority,
System.Action`1<UnityEngine.Rect> mouseoverGuiAction, Verse.Thing
revalidateClickTarget, System.Single extraPartWidth,
System.Func`2<UnityEngine.Rect, System.Boolean> extraPartOnGUI,
RimWorld.Planet.WorldObject revalidateWorldClickTarget, System.Boolean
playSelectionSound, System.Int32 orderInPriority)
IL_5A21: callvirt virtual System.Void
System.Collections.Generic.List`1<Verse.FloatMenuOption>::Add(Verse.FloatMenuOption
item)
IL_5A26: br => Label457
IL_5A2B: Label455
IL_5A2B: Label456
IL_5A2B: ldloc.0
IL_5A2C: ldftn System.Void
RimWorld.<>c__DisplayClass10_0::<AddHumanlikeOrders>b__59()
IL_5A32: newobj System.Void System.Action::.ctor(System.Object object,
System.IntPtr method)
IL_5A37: stloc.s 140 (System.Action)
IL_5A39: ldarg.2
IL_5A3A: ldstr "Drop"
IL_5A3F: ldloc.0
IL_5A40: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_5A45: ldfld Verse.Pawn_EquipmentTracker Verse.Pawn::equipment
IL_5A4A: callvirt Verse.ThingWithComps Verse.Pawn_EquipmentTracker::get_Primary()
IL_5A4F: callvirt abstract virtual System.String Verse.Entity::get_Label()
IL_5A54: call static Verse.NamedArgument
Verse.NamedArgument::op_Implicit(System.String value)
IL_5A59: ldloc.0
IL_5A5A: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_5A5F: ldfld Verse.Pawn_EquipmentTracker Verse.Pawn::equipment
IL_5A64: callvirt Verse.ThingWithComps Verse.Pawn_EquipmentTracker::get_Primary()
IL_5A69: call static Verse.NamedArgument
Verse.NamedArgument::op_Implicit(Verse.Thing value)
IL_5A6E: call static Verse.TaggedString
Verse.TranslatorFormattedStringExtensions::Translate(System.String key,
Verse.NamedArgument arg1, Verse.NamedArgument arg2)
IL_5A73: call static System.String
Verse.TaggedString::op_Implicit(Verse.TaggedString taggedString)
IL_5A78: ldloc.s 140 (System.Action)
IL_5A7A: ldc.i4.4
IL_5A7B: ldnull
IL_5A7C: ldloc.0
IL_5A7D: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_5A82: ldc.r4 0
IL_5A87: ldnull
IL_5A88: ldnull
IL_5A89: ldc.i4.1
IL_5A8A: ldc.i4.0
IL_5A8B: newobj System.Void Verse.FloatMenuOption::.ctor(System.String label,
System.Action action, Verse.MenuOptionPriority priority,
System.Action`1<UnityEngine.Rect> mouseoverGuiAction, Verse.Thing
revalidateClickTarget, System.Single extraPartWidth,
System.Func`2<UnityEngine.Rect, System.Boolean> extraPartOnGUI,
RimWorld.Planet.WorldObject revalidateWorldClickTarget, System.Boolean
playSelectionSound, System.Int32 orderInPriority)
IL_5A90: callvirt virtual System.Void
System.Collections.Generic.List`1<Verse.FloatMenuOption>::Add(Verse.FloatMenuOption
item)
IL_5A95: Label452
IL_5A95: Label453
IL_5A95: Label454
IL_5A95: Label457
IL_5A95: ldarg.0
IL_5A96: call static RimWorld.TargetingParameters
RimWorld.TargetingParameters::ForTrade()
IL_5A9B: ldc.i4.1
IL_5A9C: ldnull
IL_5A9D: call static
System.Collections.Generic.IEnumerable`1<Verse.LocalTargetInfo>
Verse.GenUI::TargetsAt(UnityEngine.Vector3 clickPos, RimWorld.TargetingParameters
clickParams, System.Boolean thingsOnly, RimWorld.ITargetingSource source)
IL_5AA2: callvirt abstract virtual
System.Collections.Generic.IEnumerator`1<Verse.LocalTargetInfo>
System.Collections.Generic.IEnumerable`1<Verse.LocalTargetInfo>::GetEnumerator()
IL_5AA7: stloc.s 8
(System.Collections.Generic.IEnumerator`1[Verse.LocalTargetInfo])
.try
{
IL_5AA9: br => Label458
IL_5AAE: Label466
IL_5AAE: ldloc.s 8
(System.Collections.Generic.IEnumerator`1[Verse.LocalTargetInfo])
IL_5AB0: callvirt abstract virtual Verse.LocalTargetInfo
System.Collections.Generic.IEnumerator`1<Verse.LocalTargetInfo>::get_Current()
IL_5AB5: stloc.s 141 (Verse.LocalTargetInfo)
IL_5AB7: ldloc.0
IL_5AB8: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_5ABD: ldloc.s 141 (Verse.LocalTargetInfo)
IL_5ABF: ldc.i4.1
IL_5AC0: ldc.i4.3
IL_5AC1: ldc.i4.0
IL_5AC2: ldc.i4.0
IL_5AC3: ldc.i4.0
IL_5AC4: call static System.Boolean
Verse.ReachabilityUtility::CanReach(Verse.Pawn pawn, Verse.LocalTargetInfo dest,
Verse.AI.PathEndMode peMode, Verse.Danger maxDanger, System.Boolean canBashDoors,
System.Boolean canBashFences, Verse.TraverseMode mode)
IL_5AC9: brtrue => Label459
IL_5ACE: ldarg.2
IL_5ACF: ldstr "CannotTrade"
IL_5AD4: call static Verse.TaggedString
Verse.Translator::Translate(System.String key)
IL_5AD9: ldstr ": "
IL_5ADE: call static Verse.TaggedString
Verse.TaggedString::op_Addition(Verse.TaggedString t1, System.String t2)
IL_5AE3: ldstr "NoPath"
IL_5AE8: call static Verse.TaggedString
Verse.Translator::Translate(System.String key)
IL_5AED: stloc.s 11 (Verse.TaggedString)
IL_5AEF: ldloca.s 11 (Verse.TaggedString)
IL_5AF1: call Verse.TaggedString Verse.TaggedString::CapitalizeFirst()
IL_5AF6: call static Verse.TaggedString
Verse.TaggedString::op_Addition(Verse.TaggedString t1, Verse.TaggedString t2)
IL_5AFB: call static System.String
Verse.TaggedString::op_Implicit(Verse.TaggedString taggedString)
IL_5B00: ldnull
IL_5B01: ldc.i4.4
IL_5B02: ldnull
IL_5B03: ldnull
IL_5B04: ldc.r4 0
IL_5B09: ldnull
IL_5B0A: ldnull
IL_5B0B: ldc.i4.1
IL_5B0C: ldc.i4.0
IL_5B0D: newobj System.Void Verse.FloatMenuOption::.ctor(System.String
label, System.Action action, Verse.MenuOptionPriority priority,
System.Action`1<UnityEngine.Rect> mouseoverGuiAction, Verse.Thing
revalidateClickTarget, System.Single extraPartWidth,
System.Func`2<UnityEngine.Rect, System.Boolean> extraPartOnGUI,
RimWorld.Planet.WorldObject revalidateWorldClickTarget, System.Boolean
playSelectionSound, System.Int32 orderInPriority)
IL_5B12: callvirt virtual System.Void
System.Collections.Generic.List`1<Verse.FloatMenuOption>::Add(Verse.FloatMenuOption
item)
IL_5B17: br => Label460
IL_5B1C: Label459
IL_5B1C: ldloc.0
IL_5B1D: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_5B22: ldfld RimWorld.Pawn_SkillTracker Verse.Pawn::skills
IL_5B27: ldsfld RimWorld.SkillDef RimWorld.SkillDefOf::Social
IL_5B2C: callvirt RimWorld.SkillRecord
RimWorld.Pawn_SkillTracker::GetSkill(RimWorld.SkillDef skillDef)
IL_5B31: callvirt System.Boolean
RimWorld.SkillRecord::get_TotallyDisabled()
IL_5B36: brfalse => Label461
IL_5B3B: ldarg.2
IL_5B3C: ldstr "CannotPrioritizeWorkTypeDisabled"
IL_5B41: ldsfld RimWorld.SkillDef RimWorld.SkillDefOf::Social
IL_5B46: callvirt virtual Verse.TaggedString Verse.Def::get_LabelCap()
IL_5B4B: call static Verse.NamedArgument
Verse.NamedArgument::op_Implicit(Verse.TaggedString value)
IL_5B50: call static Verse.TaggedString
Verse.TranslatorFormattedStringExtensions::Translate(System.String key,
Verse.NamedArgument arg1)
IL_5B55: call static System.String
Verse.TaggedString::op_Implicit(Verse.TaggedString taggedString)
IL_5B5A: ldnull
IL_5B5B: ldc.i4.4
IL_5B5C: ldnull
IL_5B5D: ldnull
IL_5B5E: ldc.r4 0
IL_5B63: ldnull
IL_5B64: ldnull
IL_5B65: ldc.i4.1
IL_5B66: ldc.i4.0
IL_5B67: newobj System.Void Verse.FloatMenuOption::.ctor(System.String
label, System.Action action, Verse.MenuOptionPriority priority,
System.Action`1<UnityEngine.Rect> mouseoverGuiAction, Verse.Thing
revalidateClickTarget, System.Single extraPartWidth,
System.Func`2<UnityEngine.Rect, System.Boolean> extraPartOnGUI,
RimWorld.Planet.WorldObject revalidateWorldClickTarget, System.Boolean
playSelectionSound, System.Int32 orderInPriority)
IL_5B6C: callvirt virtual System.Void
System.Collections.Generic.List`1<Verse.FloatMenuOption>::Add(Verse.FloatMenuOption
item)
IL_5B71: br => Label462
IL_5B76: Label461
IL_5B76: ldloc.0
IL_5B77: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_5B7C: ldloca.s 141 (Verse.LocalTargetInfo)
IL_5B7E: call Verse.Thing Verse.LocalTargetInfo::get_Thing()
IL_5B83: castclass Verse.Pawn
IL_5B88: callvirt virtual RimWorld.Faction Verse.Thing::get_Faction()
IL_5B8D: ldloca.s 141 (Verse.LocalTargetInfo)
IL_5B8F: call Verse.Thing Verse.LocalTargetInfo::get_Thing()
IL_5B94: castclass Verse.Pawn
IL_5B99: callvirt virtual RimWorld.TraderKindDef
Verse.Pawn::get_TraderKind()
IL_5B9E: call static Verse.AcceptanceReport
RimWorld.FactionUtility::CanTradeWith(Verse.Pawn p, RimWorld.Faction faction,
RimWorld.TraderKindDef traderKind)
IL_5BA3: stloc.s 142 (Verse.AcceptanceReport)
IL_5BA5: ldloca.s 142 (Verse.AcceptanceReport)
IL_5BA7: call System.Boolean Verse.AcceptanceReport::get_Accepted()
IL_5BAC: brtrue => Label463
IL_5BB1: ldarg.2
IL_5BB2: ldstr "CannotTrade"
IL_5BB7: call static Verse.TaggedString
Verse.Translator::Translate(System.String key)
IL_5BBC: ldstr ": "
IL_5BC1: call static Verse.TaggedString
Verse.TaggedString::op_Addition(Verse.TaggedString t1, System.String t2)
IL_5BC6: ldstr "MissingTitleAbility"
IL_5BCB: call static Verse.TaggedString
Verse.Translator::Translate(System.String key)
IL_5BD0: stloc.s 11 (Verse.TaggedString)
IL_5BD2: ldloca.s 11 (Verse.TaggedString)
IL_5BD4: call Verse.TaggedString Verse.TaggedString::CapitalizeFirst()
IL_5BD9: call static Verse.TaggedString
Verse.TaggedString::op_Addition(Verse.TaggedString t1, Verse.TaggedString t2)
IL_5BDE: call static System.String
Verse.TaggedString::op_Implicit(Verse.TaggedString taggedString)
IL_5BE3: ldnull
IL_5BE4: ldc.i4.4
IL_5BE5: ldnull
IL_5BE6: ldnull
IL_5BE7: ldc.r4 0
IL_5BEC: ldnull
IL_5BED: ldnull
IL_5BEE: ldc.i4.1
IL_5BEF: ldc.i4.0
IL_5BF0: newobj System.Void Verse.FloatMenuOption::.ctor(System.String
label, System.Action action, Verse.MenuOptionPriority priority,
System.Action`1<UnityEngine.Rect> mouseoverGuiAction, Verse.Thing
revalidateClickTarget, System.Single extraPartWidth,
System.Func`2<UnityEngine.Rect, System.Boolean> extraPartOnGUI,
RimWorld.Planet.WorldObject revalidateWorldClickTarget, System.Boolean
playSelectionSound, System.Int32 orderInPriority)
IL_5BF5: callvirt virtual System.Void
System.Collections.Generic.List`1<Verse.FloatMenuOption>::Add(Verse.FloatMenuOption
item)
IL_5BFA: br => Label464
IL_5BFF: Label463
IL_5BFF: newobj System.Void RimWorld.<>c__DisplayClass10_43::.ctor()
IL_5C04: stloc.s 143 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_43)
IL_5C06: ldloc.s 143 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_43)
IL_5C08: ldloc.0
IL_5C09: stfld RimWorld.<>c__DisplayClass10_0
RimWorld.<>c__DisplayClass10_43::CS$<>8__locals42
IL_5C0E: ldloc.s 143 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_43)
IL_5C10: ldloca.s 141 (Verse.LocalTargetInfo)
IL_5C12: call Verse.Thing Verse.LocalTargetInfo::get_Thing()
IL_5C17: castclass Verse.Pawn
IL_5C1C: stfld Verse.Pawn RimWorld.<>c__DisplayClass10_43::pTarg
IL_5C21: ldloc.s 143 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_43)
IL_5C23: ldftn System.Void
RimWorld.<>c__DisplayClass10_43::<AddHumanlikeOrders>b__60()
IL_5C29: newobj System.Void System.Action::.ctor(System.Object object,
System.IntPtr method)
IL_5C2E: stloc.s 144 (System.Action)
IL_5C30: ldstr ""
IL_5C35: stloc.s 145 (System.String)
IL_5C37: ldloc.s 143 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_43)
IL_5C39: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_43::pTarg
IL_5C3E: callvirt virtual RimWorld.Faction Verse.Thing::get_Faction()
IL_5C43: brfalse => Label465
IL_5C48: ldstr " ("
IL_5C4D: ldloc.s 143 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_43)
IL_5C4F: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_43::pTarg
IL_5C54: callvirt virtual RimWorld.Faction Verse.Thing::get_Faction()
IL_5C59: callvirt System.String RimWorld.Faction::get_Name()
IL_5C5E: ldstr ")"
IL_5C63: call static System.String System.String::Concat(System.String
str0, System.String str1, System.String str2)
IL_5C68: stloc.s 145 (System.String)
IL_5C6A: Label465
IL_5C6A: ldarg.2
IL_5C6B: ldstr "TradeWith"
IL_5C70: ldloc.s 143 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_43)
IL_5C72: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_43::pTarg
IL_5C77: callvirt virtual System.String Verse.Entity::get_LabelShort()
IL_5C7C: ldstr ", "
IL_5C81: ldloc.s 143 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_43)
IL_5C83: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_43::pTarg
IL_5C88: callvirt virtual RimWorld.TraderKindDef
Verse.Pawn::get_TraderKind()
IL_5C8D: ldfld System.String Verse.Def::label
IL_5C92: call static System.String System.String::Concat(System.String
str0, System.String str1, System.String str2)
IL_5C97: call static Verse.NamedArgument
Verse.NamedArgument::op_Implicit(System.String value)
IL_5C9C: call static Verse.TaggedString
Verse.TranslatorFormattedStringExtensions::Translate(System.String key,
Verse.NamedArgument arg1)
IL_5CA1: ldloc.s 145 (System.String)
IL_5CA3: call static Verse.TaggedString
Verse.TaggedString::op_Addition(Verse.TaggedString t1, System.String t2)
IL_5CA8: call static System.String
Verse.TaggedString::op_Implicit(Verse.TaggedString taggedString)
IL_5CAD: ldloc.s 144 (System.Action)
IL_5CAF: ldc.i4.7
IL_5CB0: ldnull
IL_5CB1: ldloca.s 141 (Verse.LocalTargetInfo)
IL_5CB3: call Verse.Thing Verse.LocalTargetInfo::get_Thing()
IL_5CB8: ldc.r4 0
IL_5CBD: ldnull
IL_5CBE: ldnull
IL_5CBF: ldc.i4.1
IL_5CC0: ldc.i4.0
IL_5CC1: newobj System.Void Verse.FloatMenuOption::.ctor(System.String
label, System.Action action, Verse.MenuOptionPriority priority,
System.Action`1<UnityEngine.Rect> mouseoverGuiAction, Verse.Thing
revalidateClickTarget, System.Single extraPartWidth,
System.Func`2<UnityEngine.Rect, System.Boolean> extraPartOnGUI,
RimWorld.Planet.WorldObject revalidateWorldClickTarget, System.Boolean
playSelectionSound, System.Int32 orderInPriority)
IL_5CC6: ldloc.s 143 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_43)
IL_5CC8: ldfld RimWorld.<>c__DisplayClass10_0
RimWorld.<>c__DisplayClass10_43::CS$<>8__locals42
IL_5CCD: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_5CD2: ldloc.s 143 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_43)
IL_5CD4: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_43::pTarg
IL_5CD9: call static Verse.LocalTargetInfo
Verse.LocalTargetInfo::op_Implicit(Verse.Thing t)
IL_5CDE: ldstr "ReservedBy"
IL_5CE3: ldnull
IL_5CE4: call static Verse.FloatMenuOption
RimWorld.FloatMenuUtility::DecoratePrioritizedTask(Verse.FloatMenuOption option,
Verse.Pawn pawn, Verse.LocalTargetInfo target, System.String reservedText,
Verse.ReservationLayerDef layer)
IL_5CE9: callvirt virtual System.Void
System.Collections.Generic.List`1<Verse.FloatMenuOption>::Add(Verse.FloatMenuOption
item)
IL_5CEE: Label458
IL_5CEE: Label460
IL_5CEE: Label462
IL_5CEE: Label464
IL_5CEE: ldloc.s 8
(System.Collections.Generic.IEnumerator`1[Verse.LocalTargetInfo])
IL_5CF0: callvirt abstract virtual System.Boolean
System.Collections.IEnumerator::MoveNext()
IL_5CF5: brtrue => Label466
IL_5CFA: leave => Label467
IL_5CFF: leave => (autogenerated)
} // end try
.finally
{
IL_5D04: ldloc.s 8
(System.Collections.Generic.IEnumerator`1[Verse.LocalTargetInfo])
IL_5D06: brfalse => Label468
IL_5D0B: ldloc.s 8
(System.Collections.Generic.IEnumerator`1[Verse.LocalTargetInfo])
IL_5D0D: callvirt abstract virtual System.Void
System.IDisposable::Dispose()
IL_5D12: Label468
IL_5D12: endfinally
IL_5D13: leave => (autogenerated)
} // end handler
IL_5D14: Label467
IL_5D14: ldarg.0
IL_5D15: ldloc.0
IL_5D16: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_5D1B: call static RimWorld.TargetingParameters
RimWorld.TargetingParameters::ForOpen(Verse.Pawn p)
IL_5D20: ldc.i4.1
IL_5D21: ldnull
IL_5D22: call static
System.Collections.Generic.IEnumerable`1<Verse.LocalTargetInfo>
Verse.GenUI::TargetsAt(UnityEngine.Vector3 clickPos, RimWorld.TargetingParameters
clickParams, System.Boolean thingsOnly, RimWorld.ITargetingSource source)
IL_5D27: callvirt abstract virtual
System.Collections.Generic.IEnumerator`1<Verse.LocalTargetInfo>
System.Collections.Generic.IEnumerable`1<Verse.LocalTargetInfo>::GetEnumerator()
IL_5D2C: stloc.s 8
(System.Collections.Generic.IEnumerator`1[Verse.LocalTargetInfo])
.try
{
IL_5D2E: br => Label469
IL_5D33: Label475
IL_5D33: newobj System.Void RimWorld.<>c__DisplayClass10_44::.ctor()
IL_5D38: stloc.s 146 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_44)
IL_5D3A: ldloc.s 146 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_44)
IL_5D3C: ldloc.0
IL_5D3D: stfld RimWorld.<>c__DisplayClass10_0
RimWorld.<>c__DisplayClass10_44::CS$<>8__locals43
IL_5D42: ldloc.s 146 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_44)
IL_5D44: ldloc.s 8
(System.Collections.Generic.IEnumerator`1[Verse.LocalTargetInfo])
IL_5D46: callvirt abstract virtual Verse.LocalTargetInfo
System.Collections.Generic.IEnumerator`1<Verse.LocalTargetInfo>::get_Current()
IL_5D4B: stfld Verse.LocalTargetInfo
RimWorld.<>c__DisplayClass10_44::casket
IL_5D50: ldloc.s 146 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_44)
IL_5D52: ldfld RimWorld.<>c__DisplayClass10_0
RimWorld.<>c__DisplayClass10_44::CS$<>8__locals43
IL_5D57: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_5D5C: ldloc.s 146 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_44)
IL_5D5E: ldfld Verse.LocalTargetInfo
RimWorld.<>c__DisplayClass10_44::casket
IL_5D63: ldc.i4.1
IL_5D64: ldc.i4.3
IL_5D65: ldc.i4.0
IL_5D66: ldc.i4.0
IL_5D67: ldc.i4.0
IL_5D68: call static System.Boolean
Verse.ReachabilityUtility::CanReach(Verse.Pawn pawn, Verse.LocalTargetInfo dest,
Verse.AI.PathEndMode peMode, Verse.Danger maxDanger, System.Boolean canBashDoors,
System.Boolean canBashFences, Verse.TraverseMode mode)
IL_5D6D: brtrue => Label470
IL_5D72: ldarg.2
IL_5D73: ldstr "CannotOpen"
IL_5D78: ldloc.s 146 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_44)
IL_5D7A: ldflda Verse.LocalTargetInfo
RimWorld.<>c__DisplayClass10_44::casket
IL_5D7F: call Verse.Thing Verse.LocalTargetInfo::get_Thing()
IL_5D84: call static Verse.NamedArgument
Verse.NamedArgument::op_Implicit(Verse.Thing value)
IL_5D89: call static Verse.TaggedString
Verse.TranslatorFormattedStringExtensions::Translate(System.String key,
Verse.NamedArgument arg1)
IL_5D8E: ldstr ": "
IL_5D93: call static Verse.TaggedString
Verse.TaggedString::op_Addition(Verse.TaggedString t1, System.String t2)
IL_5D98: ldstr "NoPath"
IL_5D9D: call static Verse.TaggedString
Verse.Translator::Translate(System.String key)
IL_5DA2: stloc.s 11 (Verse.TaggedString)
IL_5DA4: ldloca.s 11 (Verse.TaggedString)
IL_5DA6: call Verse.TaggedString Verse.TaggedString::CapitalizeFirst()
IL_5DAB: call static Verse.TaggedString
Verse.TaggedString::op_Addition(Verse.TaggedString t1, Verse.TaggedString t2)
IL_5DB0: call static System.String
Verse.TaggedString::op_Implicit(Verse.TaggedString taggedString)
IL_5DB5: ldnull
IL_5DB6: ldc.i4.4
IL_5DB7: ldnull
IL_5DB8: ldnull
IL_5DB9: ldc.r4 0
IL_5DBE: ldnull
IL_5DBF: ldnull
IL_5DC0: ldc.i4.1
IL_5DC1: ldc.i4.0
IL_5DC2: newobj System.Void Verse.FloatMenuOption::.ctor(System.String
label, System.Action action, Verse.MenuOptionPriority priority,
System.Action`1<UnityEngine.Rect> mouseoverGuiAction, Verse.Thing
revalidateClickTarget, System.Single extraPartWidth,
System.Func`2<UnityEngine.Rect, System.Boolean> extraPartOnGUI,
RimWorld.Planet.WorldObject revalidateWorldClickTarget, System.Boolean
playSelectionSound, System.Int32 orderInPriority)
IL_5DC7: callvirt virtual System.Void
System.Collections.Generic.List`1<Verse.FloatMenuOption>::Add(Verse.FloatMenuOption
item)
IL_5DCC: br => Label471
IL_5DD1: Label470
IL_5DD1: ldloc.s 146 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_44)
IL_5DD3: ldfld RimWorld.<>c__DisplayClass10_0
RimWorld.<>c__DisplayClass10_44::CS$<>8__locals43
IL_5DD8: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_5DDD: ldfld Verse.Pawn_HealthTracker Verse.Pawn::health
IL_5DE2: ldfld Verse.PawnCapacitiesHandler
Verse.Pawn_HealthTracker::capacities
IL_5DE7: ldsfld Verse.PawnCapacityDef
RimWorld.PawnCapacityDefOf::Manipulation
IL_5DEC: callvirt System.Boolean
Verse.PawnCapacitiesHandler::CapableOf(Verse.PawnCapacityDef capacity)
IL_5DF1: brtrue => Label472
IL_5DF6: ldarg.2
IL_5DF7: ldstr "CannotOpen"
IL_5DFC: ldloc.s 146 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_44)
IL_5DFE: ldflda Verse.LocalTargetInfo
RimWorld.<>c__DisplayClass10_44::casket
IL_5E03: call Verse.Thing Verse.LocalTargetInfo::get_Thing()
IL_5E08: call static Verse.NamedArgument
Verse.NamedArgument::op_Implicit(Verse.Thing value)
IL_5E0D: call static Verse.TaggedString
Verse.TranslatorFormattedStringExtensions::Translate(System.String key,
Verse.NamedArgument arg1)
IL_5E12: ldstr ": "
IL_5E17: call static Verse.TaggedString
Verse.TaggedString::op_Addition(Verse.TaggedString t1, System.String t2)
IL_5E1C: ldstr "Incapable"
IL_5E21: call static Verse.TaggedString
Verse.Translator::Translate(System.String key)
IL_5E26: stloc.s 11 (Verse.TaggedString)
IL_5E28: ldloca.s 11 (Verse.TaggedString)
IL_5E2A: call Verse.TaggedString Verse.TaggedString::CapitalizeFirst()
IL_5E2F: call static Verse.TaggedString
Verse.TaggedString::op_Addition(Verse.TaggedString t1, Verse.TaggedString t2)
IL_5E34: call static System.String
Verse.TaggedString::op_Implicit(Verse.TaggedString taggedString)
IL_5E39: ldnull
IL_5E3A: ldc.i4.4
IL_5E3B: ldnull
IL_5E3C: ldnull
IL_5E3D: ldc.r4 0
IL_5E42: ldnull
IL_5E43: ldnull
IL_5E44: ldc.i4.1
IL_5E45: ldc.i4.0
IL_5E46: newobj System.Void Verse.FloatMenuOption::.ctor(System.String
label, System.Action action, Verse.MenuOptionPriority priority,
System.Action`1<UnityEngine.Rect> mouseoverGuiAction, Verse.Thing
revalidateClickTarget, System.Single extraPartWidth,
System.Func`2<UnityEngine.Rect, System.Boolean> extraPartOnGUI,
RimWorld.Planet.WorldObject revalidateWorldClickTarget, System.Boolean
playSelectionSound, System.Int32 orderInPriority)
IL_5E4B: callvirt virtual System.Void
System.Collections.Generic.List`1<Verse.FloatMenuOption>::Add(Verse.FloatMenuOption
item)
IL_5E50: br => Label473
IL_5E55: Label472
IL_5E55: ldloc.s 146 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_44)
IL_5E57: ldflda Verse.LocalTargetInfo
RimWorld.<>c__DisplayClass10_44::casket
IL_5E5C: call Verse.Thing Verse.LocalTargetInfo::get_Thing()
IL_5E61: callvirt virtual Verse.Map Verse.Thing::get_Map()
IL_5E66: ldfld Verse.DesignationManager Verse.Map::designationManager
IL_5E6B: ldloc.s 146 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_44)
IL_5E6D: ldflda Verse.LocalTargetInfo
RimWorld.<>c__DisplayClass10_44::casket
IL_5E72: call Verse.Thing Verse.LocalTargetInfo::get_Thing()
IL_5E77: ldsfld Verse.DesignationDef RimWorld.DesignationDefOf::Open
IL_5E7C: callvirt Verse.Designation
Verse.DesignationManager::DesignationOn(Verse.Thing t, Verse.DesignationDef def)
IL_5E81: brtrue => Label474
IL_5E86: ldarg.2
IL_5E87: ldstr "Open"
IL_5E8C: ldloc.s 146 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_44)
IL_5E8E: ldflda Verse.LocalTargetInfo
RimWorld.<>c__DisplayClass10_44::casket
IL_5E93: call Verse.Thing Verse.LocalTargetInfo::get_Thing()
IL_5E98: call static Verse.NamedArgument
Verse.NamedArgument::op_Implicit(Verse.Thing value)
IL_5E9D: call static Verse.TaggedString
Verse.TranslatorFormattedStringExtensions::Translate(System.String key,
Verse.NamedArgument arg1)
IL_5EA2: call static System.String
Verse.TaggedString::op_Implicit(Verse.TaggedString taggedString)
IL_5EA7: ldloc.s 146 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_44)
IL_5EA9: ldftn System.Void
RimWorld.<>c__DisplayClass10_44::<AddHumanlikeOrders>b__61()
IL_5EAF: newobj System.Void System.Action::.ctor(System.Object object,
System.IntPtr method)
IL_5EB4: ldc.i4.5
IL_5EB5: ldnull
IL_5EB6: ldnull
IL_5EB7: ldc.r4 0
IL_5EBC: ldnull
IL_5EBD: ldnull
IL_5EBE: ldc.i4.1
IL_5EBF: ldc.i4.0
IL_5EC0: newobj System.Void Verse.FloatMenuOption::.ctor(System.String
label, System.Action action, Verse.MenuOptionPriority priority,
System.Action`1<UnityEngine.Rect> mouseoverGuiAction, Verse.Thing
revalidateClickTarget, System.Single extraPartWidth,
System.Func`2<UnityEngine.Rect, System.Boolean> extraPartOnGUI,
RimWorld.Planet.WorldObject revalidateWorldClickTarget, System.Boolean
playSelectionSound, System.Int32 orderInPriority)
IL_5EC5: ldloc.s 146 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_44)
IL_5EC7: ldfld RimWorld.<>c__DisplayClass10_0
RimWorld.<>c__DisplayClass10_44::CS$<>8__locals43
IL_5ECC: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_5ED1: ldloc.s 146 (RimWorld.FloatMenuMakerMap+<>c__DisplayClass10_44)
IL_5ED3: ldflda Verse.LocalTargetInfo
RimWorld.<>c__DisplayClass10_44::casket
IL_5ED8: call Verse.Thing Verse.LocalTargetInfo::get_Thing()
IL_5EDD: call static Verse.LocalTargetInfo
Verse.LocalTargetInfo::op_Implicit(Verse.Thing t)
IL_5EE2: ldstr "ReservedBy"
IL_5EE7: ldnull
IL_5EE8: call static Verse.FloatMenuOption
RimWorld.FloatMenuUtility::DecoratePrioritizedTask(Verse.FloatMenuOption option,
Verse.Pawn pawn, Verse.LocalTargetInfo target, System.String reservedText,
Verse.ReservationLayerDef layer)
IL_5EED: callvirt virtual System.Void
System.Collections.Generic.List`1<Verse.FloatMenuOption>::Add(Verse.FloatMenuOption
item)
IL_5EF2: Label469
IL_5EF2: Label471
IL_5EF2: Label473
IL_5EF2: Label474
IL_5EF2: ldloc.s 8
(System.Collections.Generic.IEnumerator`1[Verse.LocalTargetInfo])
IL_5EF4: callvirt abstract virtual System.Boolean
System.Collections.IEnumerator::MoveNext()
IL_5EF9: brtrue => Label475
IL_5EFE: leave => Label476
IL_5F03: leave => (autogenerated)
} // end try
.finally
{
IL_5F08: ldloc.s 8
(System.Collections.Generic.IEnumerator`1[Verse.LocalTargetInfo])
IL_5F0A: brfalse => Label477
IL_5F0F: ldloc.s 8
(System.Collections.Generic.IEnumerator`1[Verse.LocalTargetInfo])
IL_5F11: callvirt abstract virtual System.Void
System.IDisposable::Dispose()
IL_5F16: Label477
IL_5F16: endfinally
IL_5F17: leave => (autogenerated)
} // end handler
IL_5F18: Label476
IL_5F18: ldloc.0
IL_5F19: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_5F1E: callvirt virtual Verse.Map Verse.Thing::get_Map()
IL_5F23: ldfld Verse.ThingGrid Verse.Map::thingGrid
IL_5F28: ldloc.1
IL_5F29: callvirt System.Collections.Generic.IEnumerable`1<Verse.Thing>
Verse.ThingGrid::ThingsAt(Verse.IntVec3 c)
IL_5F2E: callvirt abstract virtual
System.Collections.Generic.IEnumerator`1<Verse.Thing>
System.Collections.Generic.IEnumerable`1<Verse.Thing>::GetEnumerator()
IL_5F33: stloc.s 60 (System.Collections.Generic.IEnumerator`1[Verse.Thing])
.try
{
IL_5F35: br => Label478
IL_5F3A: Label483
IL_5F3A: ldloc.s 60
(System.Collections.Generic.IEnumerator`1[Verse.Thing])
IL_5F3C: callvirt abstract virtual Verse.Thing
System.Collections.Generic.IEnumerator`1<Verse.Thing>::get_Current()
IL_5F41: ldloc.0
IL_5F42: ldfld Verse.Pawn RimWorld.<>c__DisplayClass10_0::pawn
IL_5F47: callvirt virtual
System.Collections.Generic.IEnumerable`1<Verse.FloatMenuOption>
Verse.Thing::GetFloatMenuOptions(Verse.Pawn selPawn)
IL_5F4C: callvirt abstract virtual
System.Collections.Generic.IEnumerator`1<Verse.FloatMenuOption>
System.Collections.Generic.IEnumerable`1<Verse.FloatMenuOption>::GetEnumerator()
IL_5F51: stloc.s 6
(System.Collections.Generic.IEnumerator`1[Verse.FloatMenuOption])
.try
{
IL_5F53: br => Label479
IL_5F58: Label480
IL_5F58: ldloc.s 6
(System.Collections.Generic.IEnumerator`1[Verse.FloatMenuOption])
IL_5F5A: callvirt abstract virtual Verse.FloatMenuOption
System.Collections.Generic.IEnumerator`1<Verse.FloatMenuOption>::get_Current()
IL_5F5F: stloc.s 147 (Verse.FloatMenuOption)
IL_5F61: ldarg.2
IL_5F62: ldloc.s 147 (Verse.FloatMenuOption)
IL_5F64: callvirt virtual System.Void
System.Collections.Generic.List`1<Verse.FloatMenuOption>::Add(Verse.FloatMenuOption
item)
IL_5F69: Label479
IL_5F69: ldloc.s 6
(System.Collections.Generic.IEnumerator`1[Verse.FloatMenuOption])
IL_5F6B: callvirt abstract virtual System.Boolean
System.Collections.IEnumerator::MoveNext()
IL_5F70: brtrue => Label480
IL_5F75: leave => Label481
IL_5F7A: leave => (autogenerated)
} // end try
.finally
{
IL_5F7F: ldloc.s 6
(System.Collections.Generic.IEnumerator`1[Verse.FloatMenuOption])
IL_5F81: brfalse => Label482
IL_5F86: ldloc.s 6
(System.Collections.Generic.IEnumerator`1[Verse.FloatMenuOption])
IL_5F88: callvirt abstract virtual System.Void
System.IDisposable::Dispose()
IL_5F8D: Label482
IL_5F8D: endfinally
IL_5F8E: leave => (autogenerated)
} // end handler
IL_5F8F: Label478
IL_5F8F: Label481
IL_5F8F: ldloc.s 60
(System.Collections.Generic.IEnumerator`1[Verse.Thing])
IL_5F91: callvirt abstract virtual System.Boolean
System.Collections.IEnumerator::MoveNext()
IL_5F96: brtrue => Label483
IL_5F9B: leave => Label484
IL_5FA0: leave => (autogenerated)
} // end try
.finally
{
IL_5FA5: ldloc.s 60
(System.Collections.Generic.IEnumerator`1[Verse.Thing])
IL_5FA7: brfalse => Label485
IL_5FAC: ldloc.s 60
(System.Collections.Generic.IEnumerator`1[Verse.Thing])
IL_5FAE: callvirt abstract virtual System.Void
System.IDisposable::Dispose()
IL_5FB3: Label485
IL_5FB3: endfinally
IL_5FB4: leave => (autogenerated)
} // end handler
IL_5FB5: // end original
IL_5FB5: Label484
IL_5FB5: ldarg 0
IL_5FB9: ldarg 1
IL_5FBD: ldarg 2
IL_5FC1: call static System.Void
ExtendedStorage.Patches.FloatMenuMakerMap_AddHumanlikeOrders::Postfix(UnityEngine.V
ector3 clickPos, Verse.Pawn pawn,
System.Collections.Generic.List`1<Verse.FloatMenuOption> opts)
IL_5FC6: ldarg 0
IL_5FCA: ldarg 1
IL_5FCE: ldarg 2
IL_5FD2: call static System.Void
PeteTimesSix.SimpleSidearms.Intercepts.FloatMenuMakerMap_AddHumanLikeOrders_Postfix
::AddHumanlikeOrders(UnityEngine.Vector3 clickPos, Verse.Pawn pawn,
System.Collections.Generic.List`1<Verse.FloatMenuOption> opts)
IL_5FD7: ldarg 0
IL_5FDB: ldarg 1
IL_5FDF: ldarga 2
IL_5FE3: call static System.Void
VFECore.AddHumanlikeOrders_Fix::Postfix(UnityEngine.Vector3 clickPos, Verse.Pawn
pawn, System.Collections.Generic.List`1& opts)
IL_5FE8: ldarg 0
IL_5FEC: ldarg 1
IL_5FF0: ldarga 2
IL_5FF4: call static System.Void
MechanoidFoundry.FloatMenuMakerMap_AddHumanlikeOrders_Patch::Postfix(UnityEngine.Ve
ctor3 clickPos, Verse.Pawn pawn, System.Collections.Generic.List`1& opts)
IL_5FF9: ldarg 2
IL_5FFD: ldarg 0
IL_6001: ldarg 1
IL_6005: call static System.Void
VFEAncients.HarmonyPatches.BuildingPatches::AddCarryJobs(System.Collections.Generic
.List`1<Verse.FloatMenuOption> opts, UnityEngine.Vector3 clickPos, Verse.Pawn pawn)
IL_600A: ldarg 0
IL_600E: ldarg 1
IL_6012: ldarga 2
IL_6016: call static System.Void
HeavyWeapons.AddHumanlikeOrders_Fix::Postfix(UnityEngine.Vector3 clickPos,
Verse.Pawn pawn, System.Collections.Generic.List`1& opts)
IL_601B: ret
DONE

### Harmony id=Kikohi.KCSG, version=2.2.2.0, location=C:\Program Files (x86)\Steam\


steamapps\common\data-000002130553D010, env/clr=4.0.30319.42000, platform=Win32NT,
ptrsize:runtime/env=8/Bits64, Windows
### Started from static System.Void KCSG.HarmonyInit::.cctor(), location C:\Program
Files (x86)\Steam\steamapps\common\data-00000213098E9040
### At 2023-02-17 06.57.41
### Patch: static System.Void
RimWorld.Planet.SettlementUtility::AttackNow(RimWorld.Planet.Caravan caravan,
RimWorld.Planet.Settlement settlement)
### Replacement: static System.Void
RimWorld.Planet.SettlementUtility::RimWorld.Planet.SettlementUtility.AttackNow_Patc
h1(RimWorld.Planet.Caravan caravan, RimWorld.Planet.Settlement settlement)
IL_0000: Local var 0: Verse.Map
IL_0000: Local var 1: Verse.TaggedString
IL_0000: Local var 2: Verse.TaggedString
IL_0000: Local var 3: Verse.TaggedString
IL_0000: Local var 4: System.Boolean
IL_0000: ldc.i4 0
IL_0005: stloc 4 (System.Boolean)
IL_0009: ldc.i4.1
IL_000A: stloc 4 (System.Boolean)
IL_000E: ldloc 4 (System.Boolean)
IL_0012: brfalse => Label1
IL_0017: ldarg 0
IL_001B: ldarg 1
IL_001F: call static System.Void
KCSG.Postfix_SettlementUtility_Attack::Prefix(RimWorld.Planet.Caravan caravan,
RimWorld.Planet.Settlement settlement)
IL_0024: Label1
IL_0024: nop
IL_0025: ldloc 4 (System.Boolean)
IL_0029: brfalse => Label0
IL_002E: // start original
IL_002E: ldarg.1
IL_002F: callvirt System.Boolean RimWorld.Planet.MapParent::get_HasMap()
IL_0034: ldc.i4.0
IL_0035: ceq
IL_0037: ldarg.1
IL_0038: callvirt virtual System.Int32 RimWorld.Planet.WorldObject::get_Tile()
IL_003D: ldnull
IL_003E: call static Verse.Map
Verse.GetOrGenerateMapUtility::GetOrGenerateMap(System.Int32 tile,
RimWorld.WorldObjectDef suggestedMapParentDef)
IL_0043: stloc.0
IL_0044: ldstr "LetterLabelCaravanEnteredEnemyBase"
IL_0049: call static Verse.TaggedString
Verse.Translator::Translate(System.String key)
IL_004E: stloc.1
IL_004F: ldstr "LetterCaravanEnteredEnemyBase"
IL_0054: ldarg.0
IL_0055: callvirt virtual System.String RimWorld.Planet.WorldObject::get_Label()
IL_005A: call static Verse.NamedArgument
Verse.NamedArgument::op_Implicit(System.String value)
IL_005F: ldarg.1
IL_0060: callvirt virtual System.String RimWorld.Planet.WorldObject::get_Label()
IL_0065: ldc.i4.3
IL_0066: ldarg.1
IL_0067: callvirt virtual RimWorld.Faction
RimWorld.Planet.WorldObject::get_Faction()
IL_006C: callvirt virtual System.String RimWorld.Faction::GetUniqueLoadID()
IL_0071: call static Verse.TaggedString
Verse.ColoredText::ApplyTag(System.String s, Verse.TagType tagType, System.String
arg)
IL_0076: call static Verse.NamedArgument
Verse.NamedArgument::op_Implicit(Verse.TaggedString value)
IL_007B: call static Verse.TaggedString
Verse.TranslatorFormattedStringExtensions::Translate(System.String key,
Verse.NamedArgument arg1, Verse.NamedArgument arg2)
IL_0080: stloc.3
IL_0081: ldloca.s 3 (Verse.TaggedString)
IL_0083: call Verse.TaggedString Verse.TaggedString::CapitalizeFirst()
IL_0088: stloc.2
IL_0089: ldarg.1
IL_008A: ldloca.s 2 (Verse.TaggedString)
IL_008C: call static System.Void
RimWorld.Planet.SettlementUtility::AffectRelationsOnAttacked(RimWorld.Planet.MapPar
ent mapParent, Verse.TaggedString& letterText)
IL_0091: brfalse => Label2
IL_0096: call static Verse.TickManager Verse.Find::get_TickManager()
IL_009B: callvirt System.Void
Verse.TickManager::Notify_GeneratedPotentiallyHostileMap()
IL_00A0: ldloc.0
IL_00A1: ldfld Verse.MapPawns Verse.Map::mapPawns
IL_00A6: callvirt System.Collections.Generic.List`1<Verse.Pawn>
Verse.MapPawns::get_AllPawns()
IL_00AB: ldloca.s 1 (Verse.TaggedString)
IL_00AD: ldloca.s 2 (Verse.TaggedString)
IL_00AF: ldstr "LetterRelatedPawnsSettlement"
IL_00B4: call static RimWorld.Faction RimWorld.Faction::get_OfPlayer()
IL_00B9: ldfld RimWorld.FactionDef RimWorld.Faction::def
IL_00BE: ldfld System.String RimWorld.FactionDef::pawnsPlural
IL_00C3: call static Verse.NamedArgument
Verse.NamedArgument::op_Implicit(System.String value)
IL_00C8: call static Verse.TaggedString
Verse.TranslatorFormattedStringExtensions::Translate(System.String key,
Verse.NamedArgument arg1)
IL_00CD: call static System.String
Verse.TaggedString::op_Implicit(Verse.TaggedString taggedString)
IL_00D2: ldc.i4.1
IL_00D3: ldc.i4.1
IL_00D4: call static System.Void
RimWorld.PawnRelationUtility::Notify_PawnsSeenByPlayer_Letter(System.Collections.Ge
neric.IEnumerable`1<Verse.Pawn> seenPawns, Verse.TaggedString& letterLabel,
Verse.TaggedString& letterText, System.String relationsInfoHeader, System.Boolean
informEvenIfSeenBefore, System.Boolean writeSeenPawnsNames)
IL_00D9: Label2
IL_00D9: call static Verse.LetterStack Verse.Find::get_LetterStack()
IL_00DE: ldloc.1
IL_00DF: ldloc.2
IL_00E0: ldsfld Verse.LetterDef RimWorld.LetterDefOf::NeutralEvent
IL_00E5: ldarg.0
IL_00E6: callvirt System.Collections.Generic.List`1<Verse.Pawn>
RimWorld.Planet.Caravan::get_PawnsListForReading()
IL_00EB: call static Verse.LookTargets
Verse.LookTargets::op_Implicit(System.Collections.Generic.List`1<Verse.Pawn>
targets)
IL_00F0: ldarg.1
IL_00F1: callvirt virtual RimWorld.Faction
RimWorld.Planet.WorldObject::get_Faction()
IL_00F6: ldnull
IL_00F7: ldnull
IL_00F8: ldnull
IL_00F9: callvirt System.Void Verse.LetterStack::ReceiveLetter(Verse.TaggedString
label, Verse.TaggedString text, Verse.LetterDef textLetterDef, Verse.LookTargets
lookTargets, RimWorld.Faction relatedFaction, RimWorld.Quest quest,
System.Collections.Generic.List`1<Verse.ThingDef> hyperlinkThingDefs, System.String
debugInfo)
IL_00FE: ldarg.0
IL_00FF: ldloc.0
IL_0100: ldc.i4.1
IL_0101: ldc.i4.0
IL_0102: ldc.i4.1
IL_0103: ldnull
IL_0104: call static System.Void
RimWorld.Planet.CaravanEnterMapUtility::Enter(RimWorld.Planet.Caravan caravan,
Verse.Map map, RimWorld.Planet.CaravanEnterMode enterMode,
RimWorld.Planet.CaravanDropInventoryMode dropInventoryMode, System.Boolean
draftColonists, System.Predicate`1<Verse.IntVec3> extraCellValidator)
IL_0109: call static RimWorld.GoodwillSituationManager
Verse.Find::get_GoodwillSituationManager()
IL_010E: ldc.i4.1
IL_010F: callvirt System.Void
RimWorld.GoodwillSituationManager::RecalculateAll(System.Boolean
canSendHostilityChangedLetter)
IL_0114: // end original
IL_0114: Label0
IL_0114: ret
DONE

### Patch: System.Void


RimWorld.Planet.WorldObjectsHolder::Add(RimWorld.Planet.WorldObject o)
### Replacement: static System.Void
RimWorld.Planet.WorldObjectsHolder::RimWorld.Planet.WorldObjectsHolder.Add_Patch1(R
imWorld.Planet.WorldObjectsHolder this, RimWorld.Planet.WorldObject o)
IL_0000: Local var 0: System.Boolean
IL_0000: ldc.i4 0
IL_0005: stloc 0 (System.Boolean)
IL_0009: ldc.i4.1
IL_000A: stloc 0 (System.Boolean)
IL_000E: ldloc 0 (System.Boolean)
IL_0012: brfalse => Label1
IL_0017: ldarg 1
IL_001B: call static System.Boolean
KCSG.Prefix_WorldObjectsHolder_Add::Prefix(RimWorld.Planet.WorldObject o)
IL_0020: stloc 0 (System.Boolean)
IL_0024: Label1
IL_0024: nop
IL_0025: ldloc 0 (System.Boolean)
IL_0029: brfalse => Label0
IL_002E: // start original
IL_002E: ldarg.0
IL_002F: ldfld System.Collections.Generic.List`1<RimWorld.Planet.WorldObject>
RimWorld.Planet.WorldObjectsHolder::worldObjects
IL_0034: ldarg.1
IL_0035: callvirt virtual System.Boolean
System.Collections.Generic.List`1<RimWorld.Planet.WorldObject>::Contains(RimWorld.P
lanet.WorldObject item)
IL_003A: brfalse => Label2
IL_003F: ldstr "Tried to add world object "
IL_0044: ldarg.1
IL_0045: ldstr " to world, but it\'s already here."
IL_004A: call static System.String System.String::Concat(System.Object arg0,
System.Object arg1, System.Object arg2)
IL_004F: call static System.Void Verse.Log::Error(System.String text)
IL_0054: br => Label4
IL_0059: Label2
IL_0059: ldarg.1
IL_005A: callvirt virtual System.Int32 RimWorld.Planet.WorldObject::get_Tile()
IL_005F: ldc.i4.0
IL_0060: bge => Label3
IL_0065: ldstr "Tried to add world object "
IL_006A: ldarg.1
IL_006B: ldstr " but its tile is not set. Setting to 0."
IL_0070: call static System.String System.String::Concat(System.Object arg0,
System.Object arg1, System.Object arg2)
IL_0075: call static System.Void Verse.Log::Error(System.String text)
IL_007A: ldarg.1
IL_007B: ldc.i4.0
IL_007C: callvirt System.Void RimWorld.Planet.WorldObject::set_Tile(System.Int32
value)
IL_0081: Label3
IL_0081: ldarg.0
IL_0082: ldfld System.Collections.Generic.List`1<RimWorld.Planet.WorldObject>
RimWorld.Planet.WorldObjectsHolder::worldObjects
IL_0087: ldarg.1
IL_0088: callvirt virtual System.Void
System.Collections.Generic.List`1<RimWorld.Planet.WorldObject>::Add(RimWorld.Planet
.WorldObject item)
IL_008D: ldarg.0
IL_008E: ldarg.1
IL_008F: call System.Void
RimWorld.Planet.WorldObjectsHolder::AddToCache(RimWorld.Planet.WorldObject o)
IL_0094: ldarg.1
IL_0095: callvirt virtual System.Void RimWorld.Planet.WorldObject::SpawnSetup()
IL_009A: ldarg.1
IL_009B: callvirt virtual System.Void RimWorld.Planet.WorldObject::PostAdd()
IL_00A0: // end original
IL_00A0: Label4
IL_00A0: Label0
IL_00A0: ret
DONE

### Patch: virtual System.Void Verse.Map::ExposeData()


### Replacement: static System.Void
Verse.Map::Verse.Map.ExposeData_Patch1(Verse.Map this)
IL_0000: Local var 0: System.Collections.Generic.HashSet`1<System.String>
IL_0000: Local var 1: System.Collections.Generic.List`1/Enumerator<Verse.Thing>
IL_0000: Local var 2: Verse.Thing
IL_0000: Local var 3: Verse.Thing
IL_0000: Local var 4: System.Exception
IL_0000: ldarg.0
IL_0001: call static System.Void KCSG.Prefix_Map_ExposeData::Prefix(Verse.Map
__instance)
IL_0006: // start original
IL_0006: ldarg.0
IL_0007: ldflda System.Int32 Verse.Map::uniqueID
IL_000C: ldstr "uniqueID"
IL_0011: ldc.i4.m1
IL_0012: ldc.i4.0
IL_0013: call static System.Void Verse.Scribe_Values::Look(System.Int32&
value, System.String label, System.Int32 defaultValue, System.Boolean forceSave)
IL_0018: ldarg.0
IL_0019: ldflda System.Int32 Verse.Map::generationTick
IL_001E: ldstr "generationTick"
IL_0023: ldc.i4.0
IL_0024: ldc.i4.0
IL_0025: call static System.Void Verse.Scribe_Values::Look(System.Int32&
value, System.String label, System.Int32 defaultValue, System.Boolean forceSave)
IL_002A: ldarg.0
IL_002B: ldflda Verse.MapInfo Verse.Map::info
IL_0030: ldstr "mapInfo"
IL_0035: call static System.Object[] System.Array::Empty()
IL_003A: call static System.Void Verse.Scribe_Deep::Look(Verse.MapInfo&
target, System.String label, System.Object[] ctorArgs)
IL_003F: ldsfld Verse.LoadSaveMode Verse.Scribe::mode
IL_0044: ldc.i4.1
IL_0045: bne.un => Label0
IL_004A: ldarg.0
IL_004B: ldarg.0
IL_004C: newobj System.Void Verse.MapFileCompressor::.ctor(Verse.Map map)
IL_0051: stfld Verse.MapFileCompressor Verse.Map::compressor
IL_0056: ldarg.0
IL_0057: ldfld Verse.MapFileCompressor Verse.Map::compressor
IL_005C: callvirt System.Void Verse.MapFileCompressor::BuildCompressedString()
IL_0061: ldarg.0
IL_0062: call System.Void Verse.Map::ExposeComponents()
IL_0067: ldarg.0
IL_0068: ldfld Verse.MapFileCompressor Verse.Map::compressor
IL_006D: callvirt virtual System.Void Verse.MapFileCompressor::ExposeData()
IL_0072: newobj System.Void
System.Collections.Generic.HashSet`1<System.String>::.ctor()
IL_0077: stloc.0
IL_0078: ldstr "things"
IL_007D: call static System.Boolean Verse.Scribe::EnterNode(System.String
nodeName)
IL_0082: brfalse => Label1
.try
{
IL_0087: ldarg.0
IL_0088: ldfld Verse.ListerThings Verse.Map::listerThings
IL_008D: callvirt System.Collections.Generic.List`1<Verse.Thing>
Verse.ListerThings::get_AllThings()
IL_0092: callvirt System.Collections.Generic.Enumerator<Verse.Thing>
System.Collections.Generic.List`1<Verse.Thing>::GetEnumerator()
IL_0097: stloc.1
.try
{
IL_0098: br => Label2
IL_009D: Label9
IL_009D: ldloca.s 1
(System.Collections.Generic.List`1+Enumerator[Verse.Thing])
IL_009F: call virtual Verse.Thing
System.Collections.Generic.Enumerator<Verse.Thing>::get_Current()
IL_00A4: stloc.2
.try
{
.try
{
IL_00A5: ldloc.2
IL_00A6: ldfld Verse.ThingDef Verse.Thing::def
IL_00AB: ldfld System.Boolean
Verse.ThingDef::isSaveable
IL_00B0: brfalse => Label3
IL_00B5: ldloc.2
IL_00B6: call static System.Boolean
Verse.CompressibilityDeciderUtility::IsSaveCompressible(Verse.Thing t)
IL_00BB: brtrue => Label4
IL_00C0: ldloc.0
IL_00C1: ldloc.2
IL_00C2: callvirt System.String
Verse.Thing::get_ThingID()
IL_00C7: callvirt virtual System.Boolean
System.Collections.Generic.HashSet`1<System.String>::Contains(System.String item)
IL_00CC: brfalse => Label5
IL_00D1: ldstr "Saving Thing with already-used ID "
IL_00D6: ldloc.2
IL_00D7: callvirt System.String
Verse.Thing::get_ThingID()
IL_00DC: call static System.String
System.String::Concat(System.String str0, System.String str1)
IL_00E1: call static System.Void
Verse.Log::Error(System.String text)
IL_00E6: br => Label6
IL_00EB: Label5
IL_00EB: ldloc.0
IL_00EC: ldloc.2
IL_00ED: callvirt System.String
Verse.Thing::get_ThingID()
IL_00F2: callvirt virtual System.Boolean
System.Collections.Generic.HashSet`1<System.String>::Add(System.String item)
IL_00F7: pop
IL_00F8: Label6
IL_00F8: ldloc.2
IL_00F9: stloc.3
IL_00FA: ldloca.s 3 (Verse.Thing)
IL_00FC: ldstr "thing"
IL_0101: call static System.Object[]
System.Array::Empty()
IL_0106: call static System.Void
Verse.Scribe_Deep::Look(Verse.Thing& target, System.String label, System.Object[]
ctorArgs)
IL_010B: Label3
IL_010B: Label4
IL_010B: leave => Label7
IL_0110: leave => (autogenerated)
} // end try
.catch System.OutOfMemoryException
{
IL_0115: pop
IL_0116: rethrow
IL_0118: leave => (autogenerated)
} // end handler
IL_011D: leave => (autogenerated)
} // end try
.catch System.Exception
{
IL_0122: stloc.s 4 (System.Exception)
IL_0124: ldc.i4.4
IL_0125: newarr System.Object
IL_012A: dup
IL_012B: ldc.i4.0
IL_012C: ldstr "Exception saving "
IL_0131: stelem.ref
IL_0132: dup
IL_0133: ldc.i4.1
IL_0134: ldloc.2
IL_0135: stelem.ref
IL_0136: dup
IL_0137: ldc.i4.2
IL_0138: ldstr ": "
IL_013D: stelem.ref
IL_013E: dup
IL_013F: ldc.i4.3
IL_0140: ldloc.s 4 (System.Exception)
IL_0142: stelem.ref
IL_0143: call static System.String
System.String::Concat(System.Object[] args)
IL_0148: call static System.Void
Verse.Log::Error(System.String text)
IL_014D: leave => Label8
IL_0152: leave => (autogenerated)
} // end handler
IL_0157: Label2
IL_0157: Label7
IL_0157: Label8
IL_0157: ldloca.s 1
(System.Collections.Generic.List`1+Enumerator[Verse.Thing])
IL_0159: call virtual System.Boolean
System.Collections.Generic.Enumerator<Verse.Thing>::MoveNext()
IL_015E: brtrue => Label9
IL_0163: leave => Label10
IL_0168: leave => (autogenerated)
} // end try
.finally
{
IL_016D: ldloca.s 1
(System.Collections.Generic.List`1+Enumerator[Verse.Thing])
IL_016F: constrained.
System.Collections.Generic.List`1+Enumerator[Verse.Thing]
IL_0175: callvirt abstract virtual System.Void
System.IDisposable::Dispose()
IL_017A: endfinally
IL_017B: leave => (autogenerated)
} // end handler
IL_017C: leave => (autogenerated)
} // end try
.finally
{
IL_0181: call static System.Void Verse.Scribe::ExitNode()
IL_0186: endfinally
IL_0187: leave => (autogenerated)
} // end handler
IL_0188: Label1
IL_0188: ldstr "Could not enter the things node while saving."
IL_018D: call static System.Void Verse.Log::Error(System.String text)
IL_0192: Label10
IL_0192: ldarg.0
IL_0193: ldnull
IL_0194: stfld Verse.MapFileCompressor Verse.Map::compressor
IL_0199: br => Label28
IL_019E: Label0
IL_019E: ldsfld Verse.LoadSaveMode Verse.Scribe::mode
IL_01A3: ldc.i4.2
IL_01A4: bne.un => Label11
IL_01A9: ldarg.0
IL_01AA: call System.Void Verse.Map::ConstructComponents()
IL_01AF: ldarg.0
IL_01B0: ldfld Verse.RegionAndRoomUpdater Verse.Map::regionAndRoomUpdater
IL_01B5: ldc.i4.0
IL_01B6: callvirt System.Void
Verse.RegionAndRoomUpdater::set_Enabled(System.Boolean value)
IL_01BB: ldarg.0
IL_01BC: ldarg.0
IL_01BD: newobj System.Void Verse.MapFileCompressor::.ctor(Verse.Map map)
IL_01C2: stfld Verse.MapFileCompressor Verse.Map::compressor
IL_01C7: Label11
IL_01C7: ldarg.0
IL_01C8: call System.Void Verse.Map::ExposeComponents()
IL_01CD: ldstr "Load compressed things"
IL_01D2: call static System.Void Verse.DeepProfiler::Start(System.String
label)
IL_01D7: ldarg.0
IL_01D8: ldfld Verse.MapFileCompressor Verse.Map::compressor
IL_01DD: callvirt virtual System.Void Verse.MapFileCompressor::ExposeData()
IL_01E2: call static System.Void Verse.DeepProfiler::End()
IL_01E7: ldstr "Load non-compressed things"
IL_01EC: call static System.Void Verse.DeepProfiler::Start(System.String
label)
IL_01F1: ldarg.0
IL_01F2: ldflda System.Collections.Generic.List`1<Verse.Thing>
Verse.Map::loadedFullThings
IL_01F7: ldstr "things"
IL_01FC: ldc.i4.2
IL_01FD: call static System.Object[] System.Array::Empty()
IL_0202: call static System.Void
Verse.Scribe_Collections::Look(System.Collections.Generic.List`1& list,
System.String label, Verse.LookMode lookMode, System.Object[] ctorArgs)
IL_0207: call static System.Void Verse.DeepProfiler::End()
IL_020C: // end original
IL_020C: Label28
IL_020C: ret
DONE

### Patch: virtual System.Void RimWorld.GenStep_Power::Generate(Verse.Map map,


Verse.GenStepParams parms)
### Replacement: static System.Void
RimWorld.GenStep_Power::RimWorld.GenStep_Power.Generate_Patch1(RimWorld.GenStep_Pow
er this, Verse.Map map, Verse.GenStepParams parms)
IL_0000: Local var 0: System.Boolean
IL_0000: ldc.i4 0
IL_0005: stloc 0 (System.Boolean)
IL_0009: ldc.i4.1
IL_000A: stloc 0 (System.Boolean)
IL_000E: ldloc 0 (System.Boolean)
IL_0012: brfalse => Label1
IL_0017: ldarg 1
IL_001B: call static System.Boolean
KCSG.Prefix_GenStep_Power::Prefix(Verse.Map map)
IL_0020: stloc 0 (System.Boolean)
IL_0024: Label1
IL_0024: nop
IL_0025: ldloc 0 (System.Boolean)
IL_0029: brfalse => Label0
IL_002E: // start original
IL_002E: ldarg.1
IL_002F: ldfld Verse.SkyManager Verse.Map::skyManager
IL_0034: ldc.r4 1
IL_0039: callvirt System.Void Verse.SkyManager::ForceSetCurSkyGlow(System.Single
curSkyGlow)
IL_003E: ldarg.1
IL_003F: ldfld RimWorld.PowerNetManager Verse.Map::powerNetManager
IL_0044: callvirt System.Void
RimWorld.PowerNetManager::UpdatePowerNetsAndConnections_First()
IL_0049: ldarg.0
IL_004A: ldarg.1
IL_004B: call System.Void
RimWorld.GenStep_Power::UpdateDesiredPowerOutputForAllGenerators(Verse.Map map)
IL_0050: ldarg.0
IL_0051: ldarg.1
IL_0052: call System.Void
RimWorld.GenStep_Power::EnsureBatteriesConnectedAndMakeSense(Verse.Map map)
IL_0057: ldarg.0
IL_0058: ldarg.1
IL_0059: call System.Void
RimWorld.GenStep_Power::EnsurePowerUsersConnected(Verse.Map map)
IL_005E: ldarg.0
IL_005F: ldarg.1
IL_0060: call System.Void
RimWorld.GenStep_Power::EnsureGeneratorsConnectedAndMakeSense(Verse.Map map)
IL_0065: ldarg.0
IL_0066: ldfld System.Collections.Generic.List`1<Verse.Thing>
RimWorld.GenStep_Power::tmpThings
IL_006B: callvirt virtual System.Void
System.Collections.Generic.List`1<Verse.Thing>::Clear()
IL_0070: // end original
IL_0070: Label0
IL_0070: ret
DONE

### Patch: virtual System.Void RimWorld.Page_ConfigureStartingPawns::PreOpen()


### Replacement: static System.Void
RimWorld.Page_ConfigureStartingPawns::RimWorld.Page_ConfigureStartingPawns.PreOpen_
Patch1(RimWorld.Page_ConfigureStartingPawns this)
IL_0000: // start original
IL_0000: ldarg.0
IL_0001: call virtual System.Void Verse.Window::PreOpen()
IL_0006: call static Verse.GameInitData Verse.Find::get_GameInitData()
IL_000B: ldfld System.Collections.Generic.List`1<Verse.Pawn>
Verse.GameInitData::startingAndOptionalPawns
IL_0010: callvirt virtual System.Int32
System.Collections.Generic.List`1<Verse.Pawn>::get_Count()
IL_0015: ldc.i4.0
IL_0016: ble => Label0
IL_001B: ldarg.0
IL_001C: call static Verse.GameInitData Verse.Find::get_GameInitData()
IL_0021: ldfld System.Collections.Generic.List`1<Verse.Pawn>
Verse.GameInitData::startingAndOptionalPawns
IL_0026: ldc.i4.0
IL_0027: callvirt virtual Verse.Pawn
System.Collections.Generic.List`1<Verse.Pawn>::get_Item(System.Int32 index)
IL_002C: stfld Verse.Pawn RimWorld.Page_ConfigureStartingPawns::curPawn
IL_0031: Label0
IL_0031: ldarg.0
IL_0032: ldc.i4.1
IL_0033: stfld System.Boolean
RimWorld.Page_ConfigureStartingPawns::renderClothes
IL_0038: ldarg.0
IL_0039: ldc.i4.1
IL_003A: stfld System.Boolean
RimWorld.Page_ConfigureStartingPawns::renderHeadgear
IL_003F: // end original
IL_003F: call static System.Void
KCSG.Postfix_Page_ConfigureStartingPawns_PreOpen::Postfix()
IL_0044: ret
DONE

### Patch: virtual Verse.MapGeneratorDef


RimWorld.Planet.MapParent::get_MapGeneratorDef()
### Replacement: static Verse.MapGeneratorDef
RimWorld.Planet.MapParent::RimWorld.Planet.MapParent.get_MapGeneratorDef_Patch1(Rim
World.Planet.MapParent this)
IL_0000: Local var 0: Verse.MapGeneratorDef
IL_0000: ldnull
IL_0001: stloc 0 (Verse.MapGeneratorDef)
IL_0005: // start original
IL_0005: ldarg.0
IL_0006: ldfld RimWorld.WorldObjectDef RimWorld.Planet.WorldObject::def
IL_000B: ldfld Verse.MapGeneratorDef RimWorld.WorldObjectDef::mapGenerator
IL_0010: brtrue => Label0
IL_0015: ldsfld Verse.MapGeneratorDef RimWorld.MapGeneratorDefOf::Encounter
IL_001A: br => Label1
IL_001F: Label0
IL_001F: ldarg.0
IL_0020: ldfld RimWorld.WorldObjectDef RimWorld.Planet.WorldObject::def
IL_0025: ldfld Verse.MapGeneratorDef RimWorld.WorldObjectDef::mapGenerator
IL_002A: // end original
IL_002A: Label1
IL_002A: stloc 0 (Verse.MapGeneratorDef)
IL_002E: ldarg.0
IL_002F: ldloca 0 (Verse.MapGeneratorDef)
IL_0033: call static System.Void
KCSG.MapParent_MapGeneratorDef_Patch::Postfix(RimWorld.Planet.MapParent __instance,
Verse.MapGeneratorDef& __result)
IL_0038: ldloc 0 (Verse.MapGeneratorDef)
IL_003C: ret
DONE

### Patch: virtual Verse.MapGeneratorDef


RimWorld.Planet.Settlement::get_MapGeneratorDef()
### Replacement: static Verse.MapGeneratorDef
RimWorld.Planet.Settlement::RimWorld.Planet.Settlement.get_MapGeneratorDef_Patch1(R
imWorld.Planet.Settlement this)
IL_0000: Local var 0: Verse.MapGeneratorDef
IL_0000: ldnull
IL_0001: stloc 0 (Verse.MapGeneratorDef)
IL_0005: // start original
IL_0005: ldarg.0
IL_0006: ldfld RimWorld.WorldObjectDef RimWorld.Planet.WorldObject::def
IL_000B: ldfld Verse.MapGeneratorDef RimWorld.WorldObjectDef::mapGenerator
IL_0010: brfalse => Label0
IL_0015: ldarg.0
IL_0016: ldfld RimWorld.WorldObjectDef RimWorld.Planet.WorldObject::def
IL_001B: ldfld Verse.MapGeneratorDef RimWorld.WorldObjectDef::mapGenerator
IL_0020: br => Label2
IL_0025: Label0
IL_0025: ldarg.0
IL_0026: call virtual RimWorld.Faction
RimWorld.Planet.WorldObject::get_Faction()
IL_002B: call static RimWorld.Faction RimWorld.Faction::get_OfPlayer()
IL_0030: bne.un => Label1
IL_0035: ldsfld Verse.MapGeneratorDef RimWorld.MapGeneratorDefOf::Base_Player
IL_003A: br => Label3
IL_003F: Label1
IL_003F: ldsfld Verse.MapGeneratorDef RimWorld.MapGeneratorDefOf::Base_Faction
IL_0044: // end original
IL_0044: Label2
IL_0044: Label3
IL_0044: stloc 0 (Verse.MapGeneratorDef)
IL_0048: ldarg.0
IL_0049: ldloca 0 (Verse.MapGeneratorDef)
IL_004D: call static System.Void
KCSG.Settlement_MapGeneratorDef_Patch::Postfix(RimWorld.Planet.Settlement
__instance, Verse.MapGeneratorDef& __result)
IL_0052: ldloc 0 (Verse.MapGeneratorDef)
IL_0056: ret
DONE

### Harmony id=Kikohi.PipeSystem, version=2.2.2.0, location=C:\Program Files (x86)\


Steam\steamapps\common\data-000002130553D010, env/clr=4.0.30319.42000,
platform=Win32NT, ptrsize:runtime/env=8/Bits64, Windows
### Started from static System.Void PipeSystem.HarmonyInit::.cctor(), location C:\
Program Files (x86)\Steam\steamapps\common\data-00000213099A9A40
### At 2023-02-17 06.57.42
### Patch: virtual System.Void Verse.CompGlower::ReceiveCompSignal(System.String
signal)
### Replacement: static System.Void
Verse.CompGlower::Verse.CompGlower.ReceiveCompSignal_Patch1(Verse.CompGlower this,
System.String signal)
IL_0000: // start original
IL_0000: ldarg.1
IL_0001: ldstr "PowerTurnedOn"
IL_0006: call static System.Boolean System.String::op_Equality(System.String
a, System.String b)
IL_000B: brtrue => Label0
IL_0010: ldarg.1
IL_0011: ldstr "PowerTurnedOff"
IL_0016: call static System.Boolean System.String::op_Equality(System.String
a, System.String b)
IL_001B: brtrue => Label1
IL_0020: ldarg.1
IL_0021: ldstr "FlickedOn"
IL_0026: call static System.Boolean System.String::op_Equality(System.String
a, System.String b)
IL_002B: brtrue => Label2
IL_0030: ldarg.1
IL_0031: ldstr "FlickedOff"
IL_0036: call static System.Boolean System.String::op_Equality(System.String
a, System.String b)
IL_003B: brtrue => Label3
IL_0040: ldarg.1
IL_0041: ldstr "Refueled"
IL_0046: call static System.Boolean System.String::op_Equality(System.String
a, System.String b)
IL_004B: brtrue => Label4
IL_0050: ldarg.1
IL_0051: ldstr "RanOutOfFuel"
IL_0056: call static System.Boolean System.String::op_Equality(System.String
a, System.String b)
IL_005B: brtrue => Label5
IL_0060: ldarg.1
IL_0061: ldstr "ScheduledOn"
IL_0066: call static System.Boolean System.String::op_Equality(System.String
a, System.String b)
IL_006B: brtrue => Label6
IL_0070: ldarg.1
IL_0071: ldstr "ScheduledOff"
IL_0076: call static System.Boolean System.String::op_Equality(System.String
a, System.String b)
IL_007B: brtrue => Label7
IL_0080: ldarg.1
IL_0081: ldstr "MechClusterDefeated"
IL_0086: call static System.Boolean System.String::op_Equality(System.String
a, System.String b)
IL_008B: brtrue => Label8
IL_0090: ldarg.1
IL_0091: ldstr "Hackend"
IL_0096: call static System.Boolean System.String::op_Equality(System.String
a, System.String b)
IL_009B: brtrue => Label9
IL_00A0: ldarg.1
IL_00A1: ldstr "RitualTargetChanged"
IL_00A6: call static System.Boolean System.String::op_Equality(System.String
a, System.String b)
IL_00AB: brtrue => Label10
IL_00B0: ldarg.1
IL_00B1: ldstr "CrateContentsChanged"
IL_00B6: call static System.Boolean System.String::op_Equality(System.String
a, System.String b)
IL_00BB: brfalse => Label11
IL_00C0: Label0
IL_00C0: Label1
IL_00C0: Label2
IL_00C0: Label3
IL_00C0: Label4
IL_00C0: Label5
IL_00C0: Label6
IL_00C0: Label7
IL_00C0: Label8
IL_00C0: Label9
IL_00C0: Label10
IL_00C0: ldarg.0
IL_00C1: ldarg.0
IL_00C2: ldfld Verse.ThingWithComps Verse.ThingComp::parent
IL_00C7: callvirt virtual Verse.Map Verse.Thing::get_Map()
IL_00CC: call System.Void Verse.CompGlower::UpdateLit(Verse.Map map)
IL_00D1: // end original
IL_00D1: Label11
IL_00D1: ldarg 1
IL_00D5: ldarg.0
IL_00D6: ldfld Verse.ThingWithComps Verse.ThingComp::parent
IL_00DB: ldarg.0
IL_00DC: call static System.Void
PipeSystem.ReceiveCompSignal_Postfix::Postfix(System.String signal,
Verse.ThingWithComps ___parent, Verse.CompGlower __instance)
IL_00E1: ret
DONE

### Patch: virtual System.Boolean Verse.CompGlower::get_ShouldBeLitNow()


### Replacement: static System.Boolean
Verse.CompGlower::Verse.CompGlower.get_ShouldBeLitNow_Patch1(Verse.CompGlower this)
IL_0000: Local var 0: RimWorld.CompPowerTrader
IL_0000: Local var 1: RimWorld.CompRefuelable
IL_0000: Local var 2: RimWorld.CompSendSignalOnCountdown
IL_0000: Local var 3: RimWorld.CompSendSignalOnMotion
IL_0000: Local var 4: RimWorld.CompLoudspeaker
IL_0000: Local var 5: RimWorld.CompHackable
IL_0000: Local var 6: RimWorld.CompRitualSignalSender
IL_0000: Local var 7: RimWorld.Building_Crate
IL_0000: Local var 8: System.Boolean
IL_0000: ldc.i4 0
IL_0005: stloc 8 (System.Boolean)
IL_0009: // start original
IL_0009: ldarg.0
IL_000A: ldfld Verse.ThingWithComps Verse.ThingComp::parent
IL_000F: callvirt System.Boolean Verse.Thing::get_Spawned()
IL_0014: brtrue => Label0
IL_0019: ldc.i4.0
IL_001A: br => Label19
IL_001F: Label0
IL_001F: ldarg.0
IL_0020: ldfld Verse.ThingWithComps Verse.ThingComp::parent
IL_0025: call static System.Boolean
RimWorld.FlickUtility::WantsToBeOn(Verse.Thing t)
IL_002A: brtrue => Label1
IL_002F: ldc.i4.0
IL_0030: br => Label20
IL_0035: Label1
IL_0035: ldarg.0
IL_0036: ldfld Verse.ThingWithComps Verse.ThingComp::parent
IL_003B: call static RimWorld.CompPowerTrader
Verse.ThingCompUtility::TryGetComp(Verse.Thing thing)
IL_0040: stloc.0
IL_0041: ldloc.0
IL_0042: brfalse => Label2
IL_0047: ldloc.0
IL_0048: callvirt System.Boolean RimWorld.CompPowerTrader::get_PowerOn()
IL_004D: brtrue => Label3
IL_0052: ldc.i4.0
IL_0053: br => Label21
IL_0058: Label2
IL_0058: Label3
IL_0058: ldarg.0
IL_0059: ldfld Verse.ThingWithComps Verse.ThingComp::parent
IL_005E: call static RimWorld.CompRefuelable
Verse.ThingCompUtility::TryGetComp(Verse.Thing thing)
IL_0063: stloc.1
IL_0064: ldloc.1
IL_0065: brfalse => Label4
IL_006A: ldloc.1
IL_006B: callvirt System.Boolean RimWorld.CompRefuelable::get_HasFuel()
IL_0070: brtrue => Label5
IL_0075: ldc.i4.0
IL_0076: br => Label22
IL_007B: Label4
IL_007B: Label5
IL_007B: ldarg.0
IL_007C: ldfld Verse.ThingWithComps Verse.ThingComp::parent
IL_0081: call static RimWorld.CompSendSignalOnCountdown
Verse.ThingCompUtility::TryGetComp(Verse.Thing thing)
IL_0086: stloc.2
IL_0087: ldloc.2
IL_0088: brfalse => Label6
IL_008D: ldloc.2
IL_008E: ldfld System.Int32 RimWorld.CompSendSignalOnCountdown::ticksLeft
IL_0093: ldc.i4.0
IL_0094: bgt => Label7
IL_0099: ldc.i4.0
IL_009A: br => Label23
IL_009F: Label6
IL_009F: Label7
IL_009F: ldarg.0
IL_00A0: ldfld Verse.ThingWithComps Verse.ThingComp::parent
IL_00A5: call static RimWorld.CompSendSignalOnMotion
Verse.ThingCompUtility::TryGetComp(Verse.Thing thing)
IL_00AA: stloc.3
IL_00AB: ldloc.3
IL_00AC: brfalse => Label8
IL_00B1: ldloc.3
IL_00B2: callvirt System.Boolean RimWorld.CompSendSignalOnMotion::get_Sent()
IL_00B7: brfalse => Label9
IL_00BC: ldc.i4.0
IL_00BD: br => Label24
IL_00C2: Label8
IL_00C2: Label9
IL_00C2: ldarg.0
IL_00C3: ldfld Verse.ThingWithComps Verse.ThingComp::parent
IL_00C8: call static RimWorld.CompLoudspeaker
Verse.ThingCompUtility::TryGetComp(Verse.Thing thing)
IL_00CD: stloc.s 4 (RimWorld.CompLoudspeaker)
IL_00CF: ldloc.s 4 (RimWorld.CompLoudspeaker)
IL_00D1: brfalse => Label10
IL_00D6: ldloc.s 4 (RimWorld.CompLoudspeaker)
IL_00D8: callvirt System.Boolean RimWorld.CompLoudspeaker::get_Active()
IL_00DD: brtrue => Label11
IL_00E2: ldc.i4.0
IL_00E3: br => Label25
IL_00E8: Label10
IL_00E8: Label11
IL_00E8: ldarg.0
IL_00E9: ldfld Verse.ThingWithComps Verse.ThingComp::parent
IL_00EE: call static RimWorld.CompHackable
Verse.ThingCompUtility::TryGetComp(Verse.Thing thing)
IL_00F3: stloc.s 5 (RimWorld.CompHackable)
IL_00F5: ldloc.s 5 (RimWorld.CompHackable)
IL_00F7: brfalse => Label12
IL_00FC: ldloc.s 5 (RimWorld.CompHackable)
IL_00FE: callvirt System.Boolean RimWorld.CompHackable::get_IsHacked()
IL_0103: brfalse => Label13
IL_0108: ldloc.s 5 (RimWorld.CompHackable)
IL_010A: callvirt RimWorld.CompProperties_Hackable
RimWorld.CompHackable::get_Props()
IL_010F: ldfld System.Boolean RimWorld.CompProperties_Hackable::glowIfHacked
IL_0114: brtrue => Label14
IL_0119: ldc.i4.0
IL_011A: br => Label26
IL_011F: Label12
IL_011F: Label13
IL_011F: Label14
IL_011F: ldarg.0
IL_0120: ldfld Verse.ThingWithComps Verse.ThingComp::parent
IL_0125: call static RimWorld.CompRitualSignalSender
Verse.ThingCompUtility::TryGetComp(Verse.Thing thing)
IL_012A: stloc.s 6 (RimWorld.CompRitualSignalSender)
IL_012C: ldloc.s 6 (RimWorld.CompRitualSignalSender)
IL_012E: brfalse => Label15
IL_0133: ldloc.s 6 (RimWorld.CompRitualSignalSender)
IL_0135: ldfld System.Boolean RimWorld.CompRitualSignalSender::ritualTarget
IL_013A: brtrue => Label16
IL_013F: ldc.i4.0
IL_0140: br => Label27
IL_0145: Label15
IL_0145: Label16
IL_0145: ldarg.0
IL_0146: ldfld Verse.ThingWithComps Verse.ThingComp::parent
IL_014B: isinst RimWorld.Building_Crate
IL_0150: dup
IL_0151: stloc.s 7 (RimWorld.Building_Crate)
IL_0153: brfalse => Label17
IL_0158: ldloc.s 7 (RimWorld.Building_Crate)
IL_015A: callvirt System.Boolean RimWorld.Building_Casket::get_HasAnyContents()
IL_015F: brtrue => Label18
IL_0164: ldc.i4.0
IL_0165: br => Label28
IL_016A: Label17
IL_016A: Label18
IL_016A: ldc.i4.1
IL_016B: // end original
IL_016B: Label19
IL_016B: Label20
IL_016B: Label21
IL_016B: Label22
IL_016B: Label23
IL_016B: Label24
IL_016B: Label25
IL_016B: Label26
IL_016B: Label27
IL_016B: Label28
IL_016B: stloc 8 (System.Boolean)
IL_016F: ldarg.0
IL_0170: ldfld Verse.ThingWithComps Verse.ThingComp::parent
IL_0175: ldloca 8 (System.Boolean)
IL_0179: call static System.Void
PipeSystem.ShouldBeLitNow_Postfix::Postfix(Verse.ThingWithComps ___parent,
System.Boolean& __result)
IL_017E: ldloc 8 (System.Boolean)
IL_0182: ret
DONE

### Patch: virtual System.Void RimWorld.Designator_Install::SelectedUpdate()


### Replacement: static System.Void
RimWorld.Designator_Install::RimWorld.Designator_Install.SelectedUpdate_Patch1(RimW
orld.Designator_Install this)
IL_0000: // start original
IL_0000: ldarg.0
IL_0001: call virtual System.Void RimWorld.Designator_Place::SelectedUpdate()
IL_0006: ldarg.0
IL_0007: callvirt abstract virtual Verse.BuildableDef
RimWorld.Designator_Place::get_PlacingDef()
IL_000C: ldarg.0
IL_000D: ldfld Verse.Rot4 RimWorld.Designator_Place::placingRot
IL_0012: call static System.Void
RimWorld.BuildDesignatorUtility::TryDrawPowerGridAndAnticipatedConnection(Verse.Bui
ldableDef def, Verse.Rot4 rotation)
IL_0017: // end original
IL_0017: ldarg.0
IL_0018: call static System.Void
PipeSystem.Designator_Install_Patch::Postfix(RimWorld.Designator_Install
__instance)
IL_001D: ret
DONE

### Patch: virtual System.Void RimWorld.Designator_Build::SelectedUpdate()


### Replacement: static System.Void
RimWorld.Designator_Build::RimWorld.Designator_Build.SelectedUpdate_Patch1(RimWorld
.Designator_Build this)
IL_0000: // start original
IL_0000: ldarg.0
IL_0001: call virtual System.Void RimWorld.Designator_Place::SelectedUpdate()
IL_0006: ldarg.0
IL_0007: ldfld Verse.BuildableDef RimWorld.Designator_Build::entDef
IL_000C: ldarg.0
IL_000D: ldfld Verse.Rot4 RimWorld.Designator_Place::placingRot
IL_0012: call static System.Void
RimWorld.BuildDesignatorUtility::TryDrawPowerGridAndAnticipatedConnection(Verse.Bui
ldableDef def, Verse.Rot4 rotation)
IL_0017: // end original
IL_0017: ldarg.0
IL_0018: ldfld Verse.BuildableDef RimWorld.Designator_Build::entDef
IL_001D: call static System.Void
PipeSystem.Designator_Build_Patch::Postfix(Verse.BuildableDef ___entDef)
IL_0022: ret
DONE

### Patch: System.Collections.Generic.IEnumerable`1<Verse.Designator>


Verse.DesignationCategoryDef::get_ResolvedAllowedDesignators()
### Replacement: static System.Collections.Generic.IEnumerable`1<Verse.Designator>
Verse.DesignationCategoryDef::Verse.DesignationCategoryDef.get_ResolvedAllowedDesig
nators_Patch1(Verse.DesignationCategoryDef this)
IL_0000: Local var 0: System.Collections.Generic.IEnumerable`1<Verse.Designator>
IL_0000: ldnull
IL_0001: stloc 0 (System.Collections.Generic.IEnumerable`1[Verse.Designator])
IL_0005: // start original
IL_0005: ldc.i4.s -2
IL_0007: newobj System.Void
Verse.<get_ResolvedAllowedDesignators>d__13::.ctor(System.Int32 <>1__state)
IL_000C: dup
IL_000D: ldarg.0
IL_000E: stfld Verse.DesignationCategoryDef
Verse.<get_ResolvedAllowedDesignators>d__13::<>4__this
IL_0013: // end original
IL_0013: stloc 0 (System.Collections.Generic.IEnumerable`1[Verse.Designator])
IL_0017: ldarga 0
IL_001B: ldarg.0
IL_001C: ldflda System.Collections.Generic.List`1<Verse.Designator>
Verse.DesignationCategoryDef::resolvedDesignators
IL_0021: call static System.Void
PipeSystem.ResolvedAllowedDesignators_Patch::Postfix(Verse.DesignationCategoryDef&
__instance, System.Collections.Generic.List`1& ___resolvedDesignators)
IL_0026: ldloc 0 (System.Collections.Generic.IEnumerable`1[Verse.Designator])
IL_002A: ret
DONE

### Patch: virtual System.Void


RimWorld.PawnsArrivalModeWorker_CenterDrop::Arrive(System.Collections.Generic.List`
1<Verse.Pawn> pawns, RimWorld.IncidentParms parms)
### Replacement: static System.Void
RimWorld.PawnsArrivalModeWorker_CenterDrop::RimWorld.PawnsArrivalModeWorker_CenterD
rop.Arrive_Patch1(RimWorld.PawnsArrivalModeWorker_CenterDrop this,
System.Collections.Generic.List`1<Verse.Pawn> pawns, RimWorld.IncidentParms parms)
IL_0000: // start original
IL_0000: ldarg.2
IL_0001: ldarg.1
IL_0002: call static System.Void
RimWorld.PawnsArrivalModeWorkerUtility::DropInDropPodsNearSpawnCenter(RimWorld.Inci
dentParms parms, System.Collections.Generic.List`1<Verse.Pawn> pawns)
IL_0007: // end original
IL_0007: ldarg 1
IL_000B: ldarg 2
IL_000F: call static System.Void
VanillaStorytellersExpanded.RaidPatches::RaidGroupChecker(System.Collections.Generi
c.List`1<Verse.Pawn> pawns, RimWorld.IncidentParms parms)
IL_0014: ret
DONE

### Patch: virtual System.Void


RimWorld.PawnsArrivalModeWorker_ClusterDrop::Arrive(System.Collections.Generic.List
`1<Verse.Pawn> pawns, RimWorld.IncidentParms parms)
### Replacement: static System.Void
RimWorld.PawnsArrivalModeWorker_ClusterDrop::RimWorld.PawnsArrivalModeWorker_Cluste
rDrop.Arrive_Patch1(RimWorld.PawnsArrivalModeWorker_ClusterDrop this,
System.Collections.Generic.List`1<Verse.Pawn> pawns, RimWorld.IncidentParms parms)
IL_0000: // start original
IL_0000: // end original
IL_0000: ldarg 1
IL_0004: ldarg 2
IL_0008: call static System.Void
VanillaStorytellersExpanded.RaidPatches::RaidGroupChecker(System.Collections.Generi
c.List`1<Verse.Pawn> pawns, RimWorld.IncidentParms parms)
IL_000D: ret
DONE

### Patch: virtual System.Void


RimWorld.PawnsArrivalModeWorker_EdgeDrop::Arrive(System.Collections.Generic.List`1<
Verse.Pawn> pawns, RimWorld.IncidentParms parms)
### Replacement: static System.Void
RimWorld.PawnsArrivalModeWorker_EdgeDrop::RimWorld.PawnsArrivalModeWorker_EdgeDrop.
Arrive_Patch1(RimWorld.PawnsArrivalModeWorker_EdgeDrop this,
System.Collections.Generic.List`1<Verse.Pawn> pawns, RimWorld.IncidentParms parms)
IL_0000: // start original
IL_0000: ldarg.2
IL_0001: ldarg.1
IL_0002: call static System.Void
RimWorld.PawnsArrivalModeWorkerUtility::DropInDropPodsNearSpawnCenter(RimWorld.Inci
dentParms parms, System.Collections.Generic.List`1<Verse.Pawn> pawns)
IL_0007: // end original
IL_0007: ldarg 1
IL_000B: ldarg 2
IL_000F: call static System.Void
VanillaStorytellersExpanded.RaidPatches::RaidGroupChecker(System.Collections.Generi
c.List`1<Verse.Pawn> pawns, RimWorld.IncidentParms parms)
IL_0014: ret
DONE

### Patch: virtual System.Void


RimWorld.PawnsArrivalModeWorker_EdgeDropGroups::Arrive(System.Collections.Generic.L
ist`1<Verse.Pawn> pawns, RimWorld.IncidentParms parms)
### Replacement: static System.Void
RimWorld.PawnsArrivalModeWorker_EdgeDropGroups::RimWorld.PawnsArrivalModeWorker_Edg
eDropGroups.Arrive_Patch1(RimWorld.PawnsArrivalModeWorker_EdgeDropGroups this,
System.Collections.Generic.List`1<Verse.Pawn> pawns, RimWorld.IncidentParms parms)
IL_0000: Local var 0: Verse.Map
IL_0000: Local var 1: System.Boolean
IL_0000: Local var 2:
System.Collections.Generic.List`1<Verse.Pair`2<System.Collections.Generic.List`1<Ve
rse.Pawn>,Verse.IntVec3>>
IL_0000: Local var 3: System.Int32
IL_0000: Local var 4:
Verse.Pair`2<System.Collections.Generic.List`1<Verse.Pawn>,Verse.IntVec3>
IL_0000: // start original
IL_0000: ldarg.2
IL_0001: ldfld RimWorld.IIncidentTarget RimWorld.IncidentParms::target
IL_0006: castclass Verse.Map
IL_000B: stloc.0
IL_000C: ldarg.2
IL_000D: ldfld RimWorld.Faction RimWorld.IncidentParms::faction
IL_0012: brfalse => Label0
IL_0017: ldarg.2
IL_0018: ldfld RimWorld.Faction RimWorld.IncidentParms::faction
IL_001D: call static RimWorld.Faction RimWorld.Faction::get_OfPlayer()
IL_0022: call static System.Boolean
RimWorld.FactionUtility::HostileTo(RimWorld.Faction fac, RimWorld.Faction other)
IL_0027: br => Label1
IL_002C: Label0
IL_002C: ldc.i4.0
IL_002D: Label1
IL_002D: stloc.1
IL_002E: ldarg.1
IL_002F: ldloc.0
IL_0030: ldc.i4.1
IL_0031: call static
System.Collections.Generic.List`1<Verse.Pair`2<System.Collections.Generic.List`1<Ve
rse.Pawn>, Verse.IntVec3>>
RimWorld.PawnsArrivalModeWorkerUtility::SplitIntoRandomGroupsNearMapEdge(System.Col
lections.Generic.List`1<Verse.Pawn> pawns, Verse.Map map, System.Boolean
arriveInPods)
IL_0036: stloc.2
IL_0037: ldarg.2
IL_0038: ldloc.2
IL_0039: call static System.Void
RimWorld.PawnsArrivalModeWorkerUtility::SetPawnGroupsInfo(RimWorld.IncidentParms
parms,
System.Collections.Generic.List`1<Verse.Pair`2<System.Collections.Generic.List`1<Ve
rse.Pawn>, Verse.IntVec3>> groups)
IL_003E: ldc.i4.0
IL_003F: stloc.3
IL_0040: br => Label2
IL_0045: Label3
IL_0045: ldloc.2
IL_0046: ldloc.3
IL_0047: callvirt virtual
Verse.Pair`2<System.Collections.Generic.List`1<Verse.Pawn>, Verse.IntVec3>
System.Collections.Generic.List`1<Verse.Pair`2<System.Collections.Generic.List`1<Ve
rse.Pawn>, Verse.IntVec3>>::get_Item(System.Int32 index)
IL_004C: stloc.s 4
(Verse.Pair`2[System.Collections.Generic.List`1[Verse.Pawn],Verse.IntVec3])
IL_004E: ldloca.s 4
(Verse.Pair`2[System.Collections.Generic.List`1[Verse.Pawn],Verse.IntVec3])
IL_0050: call Verse.IntVec3
Verse.Pair`2<System.Collections.Generic.List`1<Verse.Pawn>,
Verse.IntVec3>::get_Second()
IL_0055: ldloc.0
IL_0056: ldloc.2
IL_0057: ldloc.3
IL_0058: callvirt virtual
Verse.Pair`2<System.Collections.Generic.List`1<Verse.Pawn>, Verse.IntVec3>
System.Collections.Generic.List`1<Verse.Pair`2<System.Collections.Generic.List`1<Ve
rse.Pawn>, Verse.IntVec3>>::get_Item(System.Int32 index)
IL_005D: stloc.s 4
(Verse.Pair`2[System.Collections.Generic.List`1[Verse.Pawn],Verse.IntVec3])
IL_005F: ldloca.s 4
(Verse.Pair`2[System.Collections.Generic.List`1[Verse.Pawn],Verse.IntVec3])
IL_0061: call System.Collections.Generic.List`1<Verse.Pawn>
Verse.Pair`2<System.Collections.Generic.List`1<Verse.Pawn>,
Verse.IntVec3>::get_First()
IL_0066: call static System.Collections.Generic.IEnumerable`1<Verse.Thing>
System.Linq.Enumerable::Cast(System.Collections.IEnumerable source)
IL_006B: ldarg.2
IL_006C: ldfld System.Int32 RimWorld.IncidentParms::podOpenDelay
IL_0071: ldc.i4.0
IL_0072: ldc.i4.1
IL_0073: ldloc.1
IL_0074: ldc.i4.1
IL_0075: ldc.i4.1
IL_0076: ldnull
IL_0077: call static System.Void
RimWorld.DropPodUtility::DropThingsNear(Verse.IntVec3 dropCenter, Verse.Map map,
System.Collections.Generic.IEnumerable`1<Verse.Thing> things, System.Int32
openDelay, System.Boolean canInstaDropDuringInit, System.Boolean leaveSlag,
System.Boolean canRoofPunch, System.Boolean forbid, System.Boolean allowFogged,
RimWorld.Faction faction)
IL_007C: ldloc.3
IL_007D: ldc.i4.1
IL_007E: add
IL_007F: stloc.3
IL_0080: Label2
IL_0080: ldloc.3
IL_0081: ldloc.2
IL_0082: callvirt virtual System.Int32
System.Collections.Generic.List`1<Verse.Pair`2<System.Collections.Generic.List`1<Ve
rse.Pawn>, Verse.IntVec3>>::get_Count()
IL_0087: blt => Label3
IL_008C: // end original
IL_008C: ldarg 1
IL_0090: ldarg 2
IL_0094: call static System.Void
VanillaStorytellersExpanded.RaidPatches::RaidGroupChecker(System.Collections.Generi
c.List`1<Verse.Pawn> pawns, RimWorld.IncidentParms parms)
IL_0099: ret
DONE

### Patch: virtual System.Void


RimWorld.PawnsArrivalModeWorker_EdgeWalkIn::Arrive(System.Collections.Generic.List`
1<Verse.Pawn> pawns, RimWorld.IncidentParms parms)
### Replacement: static System.Void
RimWorld.PawnsArrivalModeWorker_EdgeWalkIn::RimWorld.PawnsArrivalModeWorker_EdgeWal
kIn.Arrive_Patch1(RimWorld.PawnsArrivalModeWorker_EdgeWalkIn this,
System.Collections.Generic.List`1<Verse.Pawn> pawns, RimWorld.IncidentParms parms)
IL_0000: Local var 0: Verse.Map
IL_0000: Local var 1: System.Int32
IL_0000: Local var 2: Verse.IntVec3
IL_0000: // start original
IL_0000: ldarg.2
IL_0001: ldfld RimWorld.IIncidentTarget RimWorld.IncidentParms::target
IL_0006: castclass Verse.Map
IL_000B: stloc.0
IL_000C: ldc.i4.0
IL_000D: stloc.1
IL_000E: br => Label0
IL_0013: Label1
IL_0013: ldarg.2
IL_0014: ldfld Verse.IntVec3 RimWorld.IncidentParms::spawnCenter
IL_0019: ldloc.0
IL_001A: ldc.i4.8
IL_001B: ldnull
IL_001C: call static Verse.IntVec3
Verse.CellFinder::RandomClosewalkCellNear(Verse.IntVec3 root, Verse.Map map,
System.Int32 radius, System.Predicate`1<Verse.IntVec3> extraValidator)
IL_0021: stloc.2
IL_0022: ldarg.1
IL_0023: ldloc.1
IL_0024: callvirt virtual Verse.Pawn
System.Collections.Generic.List`1<Verse.Pawn>::get_Item(System.Int32 index)
IL_0029: ldloc.2
IL_002A: ldloc.0
IL_002B: ldarg.2
IL_002C: ldfld Verse.Rot4 RimWorld.IncidentParms::spawnRotation
IL_0031: ldc.i4.0
IL_0032: ldc.i4.0
IL_0033: call static Verse.Thing Verse.GenSpawn::Spawn(Verse.Thing newThing,
Verse.IntVec3 loc, Verse.Map map, Verse.Rot4 rot, Verse.WipeMode wipeMode,
System.Boolean respawningAfterLoad)
IL_0038: pop
IL_0039: ldloc.1
IL_003A: ldc.i4.1
IL_003B: add
IL_003C: stloc.1
IL_003D: Label0
IL_003D: ldloc.1
IL_003E: ldarg.1
IL_003F: callvirt virtual System.Int32
System.Collections.Generic.List`1<Verse.Pawn>::get_Count()
IL_0044: blt => Label1
IL_0049: // end original
IL_0049: ldarg 1
IL_004D: ldarg 2
IL_0051: call static System.Void
VanillaStorytellersExpanded.RaidPatches::RaidGroupChecker(System.Collections.Generi
c.List`1<Verse.Pawn> pawns, RimWorld.IncidentParms parms)
IL_0056: ret
DONE

### Patch: virtual System.Void


RimWorld.PawnsArrivalModeWorker_EdgeWalkInGroups::Arrive(System.Collections.Generic
.List`1<Verse.Pawn> pawns, RimWorld.IncidentParms parms)
### Replacement: static System.Void
RimWorld.PawnsArrivalModeWorker_EdgeWalkInGroups::RimWorld.PawnsArrivalModeWorker_E
dgeWalkInGroups.Arrive_Patch1(RimWorld.PawnsArrivalModeWorker_EdgeWalkInGroups
this, System.Collections.Generic.List`1<Verse.Pawn> pawns, RimWorld.IncidentParms
parms)
IL_0000: Local var 0: Verse.Map
IL_0000: Local var 1:
System.Collections.Generic.List`1<Verse.Pair`2<System.Collections.Generic.List`1<Ve
rse.Pawn>,Verse.IntVec3>>
IL_0000: Local var 2: System.Int32
IL_0000: Local var 3: System.Int32
IL_0000: Local var 4: Verse.IntVec3
IL_0000: Local var 5:
Verse.Pair`2<System.Collections.Generic.List`1<Verse.Pawn>,Verse.IntVec3>
IL_0000: // start original
IL_0000: ldarg.2
IL_0001: ldfld RimWorld.IIncidentTarget RimWorld.IncidentParms::target
IL_0006: castclass Verse.Map
IL_000B: stloc.0
IL_000C: ldarg.1
IL_000D: ldloc.0
IL_000E: ldc.i4.0
IL_000F: call static
System.Collections.Generic.List`1<Verse.Pair`2<System.Collections.Generic.List`1<Ve
rse.Pawn>, Verse.IntVec3>>
RimWorld.PawnsArrivalModeWorkerUtility::SplitIntoRandomGroupsNearMapEdge(System.Col
lections.Generic.List`1<Verse.Pawn> pawns, Verse.Map map, System.Boolean
arriveInPods)
IL_0014: stloc.1
IL_0015: ldarg.2
IL_0016: ldloc.1
IL_0017: call static System.Void
RimWorld.PawnsArrivalModeWorkerUtility::SetPawnGroupsInfo(RimWorld.IncidentParms
parms,
System.Collections.Generic.List`1<Verse.Pair`2<System.Collections.Generic.List`1<Ve
rse.Pawn>, Verse.IntVec3>> groups)
IL_001C: ldc.i4.0
IL_001D: stloc.2
IL_001E: br => Label0
IL_0023: Label3
IL_0023: ldc.i4.0
IL_0024: stloc.3
IL_0025: br => Label1
IL_002A: Label2
IL_002A: ldloc.1
IL_002B: ldloc.2
IL_002C: callvirt virtual
Verse.Pair`2<System.Collections.Generic.List`1<Verse.Pawn>, Verse.IntVec3>
System.Collections.Generic.List`1<Verse.Pair`2<System.Collections.Generic.List`1<Ve
rse.Pawn>, Verse.IntVec3>>::get_Item(System.Int32 index)
IL_0031: stloc.s 5
(Verse.Pair`2[System.Collections.Generic.List`1[Verse.Pawn],Verse.IntVec3])
IL_0033: ldloca.s 5
(Verse.Pair`2[System.Collections.Generic.List`1[Verse.Pawn],Verse.IntVec3])
IL_0035: call Verse.IntVec3
Verse.Pair`2<System.Collections.Generic.List`1<Verse.Pawn>,
Verse.IntVec3>::get_Second()
IL_003A: ldloc.0
IL_003B: ldc.i4.8
IL_003C: ldnull
IL_003D: call static Verse.IntVec3
Verse.CellFinder::RandomClosewalkCellNear(Verse.IntVec3 root, Verse.Map map,
System.Int32 radius, System.Predicate`1<Verse.IntVec3> extraValidator)
IL_0042: stloc.s 4 (Verse.IntVec3)
IL_0044: ldloc.1
IL_0045: ldloc.2
IL_0046: callvirt virtual
Verse.Pair`2<System.Collections.Generic.List`1<Verse.Pawn>, Verse.IntVec3>
System.Collections.Generic.List`1<Verse.Pair`2<System.Collections.Generic.List`1<Ve
rse.Pawn>, Verse.IntVec3>>::get_Item(System.Int32 index)
IL_004B: stloc.s 5
(Verse.Pair`2[System.Collections.Generic.List`1[Verse.Pawn],Verse.IntVec3])
IL_004D: ldloca.s 5
(Verse.Pair`2[System.Collections.Generic.List`1[Verse.Pawn],Verse.IntVec3])
IL_004F: call System.Collections.Generic.List`1<Verse.Pawn>
Verse.Pair`2<System.Collections.Generic.List`1<Verse.Pawn>,
Verse.IntVec3>::get_First()
IL_0054: ldloc.3
IL_0055: callvirt virtual Verse.Pawn
System.Collections.Generic.List`1<Verse.Pawn>::get_Item(System.Int32 index)
IL_005A: ldloc.s 4 (Verse.IntVec3)
IL_005C: ldloc.0
IL_005D: ldarg.2
IL_005E: ldfld Verse.Rot4 RimWorld.IncidentParms::spawnRotation
IL_0063: ldc.i4.0
IL_0064: ldc.i4.0
IL_0065: call static Verse.Thing Verse.GenSpawn::Spawn(Verse.Thing newThing,
Verse.IntVec3 loc, Verse.Map map, Verse.Rot4 rot, Verse.WipeMode wipeMode,
System.Boolean respawningAfterLoad)
IL_006A: pop
IL_006B: ldloc.3
IL_006C: ldc.i4.1
IL_006D: add
IL_006E: stloc.3
IL_006F: Label1
IL_006F: ldloc.3
IL_0070: ldloc.1
IL_0071: ldloc.2
IL_0072: callvirt virtual
Verse.Pair`2<System.Collections.Generic.List`1<Verse.Pawn>, Verse.IntVec3>
System.Collections.Generic.List`1<Verse.Pair`2<System.Collections.Generic.List`1<Ve
rse.Pawn>, Verse.IntVec3>>::get_Item(System.Int32 index)
IL_0077: stloc.s 5
(Verse.Pair`2[System.Collections.Generic.List`1[Verse.Pawn],Verse.IntVec3])
IL_0079: ldloca.s 5
(Verse.Pair`2[System.Collections.Generic.List`1[Verse.Pawn],Verse.IntVec3])
IL_007B: call System.Collections.Generic.List`1<Verse.Pawn>
Verse.Pair`2<System.Collections.Generic.List`1<Verse.Pawn>,
Verse.IntVec3>::get_First()
IL_0080: callvirt virtual System.Int32
System.Collections.Generic.List`1<Verse.Pawn>::get_Count()
IL_0085: blt => Label2
IL_008A: ldloc.2
IL_008B: ldc.i4.1
IL_008C: add
IL_008D: stloc.2
IL_008E: Label0
IL_008E: ldloc.2
IL_008F: ldloc.1
IL_0090: callvirt virtual System.Int32
System.Collections.Generic.List`1<Verse.Pair`2<System.Collections.Generic.List`1<Ve
rse.Pawn>, Verse.IntVec3>>::get_Count()
IL_0095: blt => Label3
IL_009A: // end original
IL_009A: ldarg 1
IL_009E: ldarg 2
IL_00A2: call static System.Void
VanillaStorytellersExpanded.RaidPatches::RaidGroupChecker(System.Collections.Generi
c.List`1<Verse.Pawn> pawns, RimWorld.IncidentParms parms)
IL_00A7: ret
DONE

### Patch: virtual System.Void


RimWorld.PawnsArrivalModeWorker_RandomDrop::Arrive(System.Collections.Generic.List`
1<Verse.Pawn> pawns, RimWorld.IncidentParms parms)
### Replacement: static System.Void
RimWorld.PawnsArrivalModeWorker_RandomDrop::RimWorld.PawnsArrivalModeWorker_RandomD
rop.Arrive_Patch1(RimWorld.PawnsArrivalModeWorker_RandomDrop this,
System.Collections.Generic.List`1<Verse.Pawn> pawns, RimWorld.IncidentParms parms)
IL_0000: Local var 0: Verse.Map
IL_0000: Local var 1: System.Boolean
IL_0000: Local var 2: System.Int32
IL_0000: // start original
IL_0000: ldarg.2
IL_0001: ldfld RimWorld.IIncidentTarget RimWorld.IncidentParms::target
IL_0006: castclass Verse.Map
IL_000B: stloc.0
IL_000C: ldarg.2
IL_000D: ldfld RimWorld.Faction RimWorld.IncidentParms::faction
IL_0012: brfalse => Label0
IL_0017: ldarg.2
IL_0018: ldfld RimWorld.Faction RimWorld.IncidentParms::faction
IL_001D: call static RimWorld.Faction RimWorld.Faction::get_OfPlayer()
IL_0022: call static System.Boolean
RimWorld.FactionUtility::HostileTo(RimWorld.Faction fac, RimWorld.Faction other)
IL_0027: br => Label1
IL_002C: Label0
IL_002C: ldc.i4.0
IL_002D: Label1
IL_002D: stloc.1
IL_002E: ldc.i4.0
IL_002F: stloc.2
IL_0030: br => Label2
IL_0035: Label3
IL_0035: ldloc.0
IL_0036: ldc.i4.1
IL_0037: call static Verse.IntVec3
RimWorld.DropCellFinder::RandomDropSpot(Verse.Map map, System.Boolean
standableOnly)
IL_003C: ldloc.0
IL_003D: ldarg.1
IL_003E: ldloc.2
IL_003F: callvirt virtual Verse.Pawn
System.Collections.Generic.List`1<Verse.Pawn>::get_Item(System.Int32 index)
IL_0044: call static System.Collections.Generic.IEnumerable`1<Verse.Thing>
Verse.Gen::YieldSingle(Verse.Thing val)
IL_0049: ldarg.2
IL_004A: ldfld System.Int32 RimWorld.IncidentParms::podOpenDelay
IL_004F: ldc.i4.0
IL_0050: ldc.i4.1
IL_0051: ldloc.1
IL_0052: ldc.i4.1
IL_0053: ldc.i4.1
IL_0054: ldnull
IL_0055: call static System.Void
RimWorld.DropPodUtility::DropThingsNear(Verse.IntVec3 dropCenter, Verse.Map map,
System.Collections.Generic.IEnumerable`1<Verse.Thing> things, System.Int32
openDelay, System.Boolean canInstaDropDuringInit, System.Boolean leaveSlag,
System.Boolean canRoofPunch, System.Boolean forbid, System.Boolean allowFogged,
RimWorld.Faction faction)
IL_005A: ldloc.2
IL_005B: ldc.i4.1
IL_005C: add
IL_005D: stloc.2
IL_005E: Label2
IL_005E: ldloc.2
IL_005F: ldarg.1
IL_0060: callvirt virtual System.Int32
System.Collections.Generic.List`1<Verse.Pawn>::get_Count()
IL_0065: blt => Label3
IL_006A: // end original
IL_006A: ldarg 1
IL_006E: ldarg 2
IL_0072: call static System.Void
VanillaStorytellersExpanded.RaidPatches::RaidGroupChecker(System.Collections.Generi
c.List`1<Verse.Pawn> pawns, RimWorld.IncidentParms parms)
IL_0077: ret
DONE

### Patch: virtual System.Void


KCSG.FallingStructureArrival::Arrive(System.Collections.Generic.List`1<Verse.Pawn>
pawns, RimWorld.IncidentParms parms)
### Replacement: static System.Void
KCSG.FallingStructureArrival::KCSG.FallingStructureArrival.Arrive_Patch1(KCSG.Falli
ngStructureArrival this, System.Collections.Generic.List`1<Verse.Pawn> pawns,
RimWorld.IncidentParms parms)
IL_0000: // start original
IL_0000: nop
IL_0001: ldarg.2
IL_0002: ldarg.1
IL_0003: call static System.Void
RimWorld.PawnsArrivalModeWorkerUtility::DropInDropPodsNearSpawnCenter(RimWorld.Inci
dentParms parms, System.Collections.Generic.List`1<Verse.Pawn> pawns)
IL_0008: nop
IL_0009: // end original
IL_0009: ldarg 1
IL_000D: ldarg 2
IL_0011: call static System.Void
VanillaStorytellersExpanded.RaidPatches::RaidGroupChecker(System.Collections.Generi
c.List`1<Verse.Pawn> pawns, RimWorld.IncidentParms parms)
IL_0016: ret
DONE

### Patch: virtual System.Void


VFEI.RaidArrivalModes.PawnArrivalModeWorker_GigalocustSwarm::Arrive(System.Collecti
ons.Generic.List`1<Verse.Pawn> pawns, RimWorld.IncidentParms parms)
### Replacement: static System.Void
VFEI.RaidArrivalModes.PawnArrivalModeWorker_GigalocustSwarm::VFEI.RaidArrivalModes.
PawnArrivalModeWorker_GigalocustSwarm.Arrive_Patch1(VFEI.RaidArrivalModes.PawnArriv
alModeWorker_GigalocustSwarm this, System.Collections.Generic.List`1<Verse.Pawn>
pawns, RimWorld.IncidentParms parms)
IL_0000: Local var 0:
VFEI.RaidArrivalModes.PawnArrivalModeWorker_GigalocustSwarm/<>c__DisplayClass0_0
IL_0000: Local var 1: System.Int32
IL_0000: Local var 2: System.Int32
IL_0000: Local var 3: Verse.IntVec3
IL_0000: Local var 4: Verse.Pawn
IL_0000: Local var 5: System.Predicate`1<Verse.IntVec3>
IL_0000: Local var 6: System.Boolean
IL_0000: // start original
IL_0000: newobj System.Void VFEI.RaidArrivalModes.<>c__DisplayClass0_0::.ctor()
IL_0005: stloc.0
IL_0006: nop
IL_0007: ldarg.1
IL_0008: callvirt virtual System.Void
System.Collections.Generic.List`1<Verse.Pawn>::Clear()
IL_000D: nop
IL_000E: ldloc.0
IL_000F: ldarg.2
IL_0010: ldfld RimWorld.IIncidentTarget RimWorld.IncidentParms::target
IL_0015: castclass Verse.Map
IL_001A: stfld Verse.Map VFEI.RaidArrivalModes.<>c__DisplayClass0_0::map
IL_001F: ldarg.2
IL_0020: ldfld System.Single RimWorld.IncidentParms::points
IL_0025: conv.i4
IL_0026: ldsfld Verse.PawnKindDef VFEI.VFEIDefOf::VFEI_Insectoid_Gigalocust
IL_002B: ldfld System.Single Verse.PawnKindDef::combatPower
IL_0030: conv.i4
IL_0031: div
IL_0032: stloc.1
IL_0033: ldc.i4.0
IL_0034: stloc.2
IL_0035: br => Label0
IL_003A: Label2
IL_003A: nop
IL_003B: ldarg.2
IL_003C: ldfld Verse.IntVec3 RimWorld.IncidentParms::spawnCenter
IL_0041: ldloc.0
IL_0042: ldfld System.Predicate`1<Verse.IntVec3>
VFEI.RaidArrivalModes.<>c__DisplayClass0_0::<>9__0
IL_0047: dup
IL_0048: brtrue => Label1
IL_004D: pop
IL_004E: ldloc.0
IL_004F: ldloc.0
IL_0050: ldftn System.Boolean
VFEI.RaidArrivalModes.<>c__DisplayClass0_0::<Arrive>b__0(Verse.IntVec3 c)
IL_0056: newobj System.Void
System.Predicate`1<Verse.IntVec3>::.ctor(System.Object object, System.IntPtr
method)
IL_005B: dup
IL_005C: stloc.s 5 (System.Predicate`1[Verse.IntVec3])
IL_005E: stfld System.Predicate`1<Verse.IntVec3>
VFEI.RaidArrivalModes.<>c__DisplayClass0_0::<>9__0
IL_0063: ldloc.s 5 (System.Predicate`1[Verse.IntVec3])
IL_0065: Label1
IL_0065: ldloc.0
IL_0066: ldfld Verse.Map VFEI.RaidArrivalModes.<>c__DisplayClass0_0::map
IL_006B: ldloca.s 3 (Verse.IntVec3)
IL_006D: ldc.i4.1
IL_006E: ldc.i4.s 20
IL_0070: call static System.Boolean
RimWorld.RCellFinder::TryFindRandomCellNearWith(Verse.IntVec3 near,
System.Predicate`1<Verse.IntVec3> validator, Verse.Map map, Verse.IntVec3& result,
System.Int32 startingSearchRadius, System.Int32 maxSearchRadius)
IL_0075: pop
IL_0076: ldsfld Verse.PawnKindDef VFEI.VFEIDefOf::VFEI_Insectoid_Gigalocust
IL_007B: ldarg.2
IL_007C: ldfld RimWorld.Faction RimWorld.IncidentParms::faction
IL_0081: call static Verse.Pawn
Verse.PawnGenerator::GeneratePawn(Verse.PawnKindDef kindDef, RimWorld.Faction
faction)
IL_0086: stloc.s 4 (Verse.Pawn)
IL_0088: ldsfld Verse.ThingDef VFEI.VFEIDefOf::VFEI_GigalocustIncoming
IL_008D: ldloc.s 4 (Verse.Pawn)
IL_008F: ldloc.3
IL_0090: ldloc.0
IL_0091: ldfld Verse.Map VFEI.RaidArrivalModes.<>c__DisplayClass0_0::map
IL_0096: call static RimWorld.Skyfaller
RimWorld.SkyfallerMaker::SpawnSkyfaller(Verse.ThingDef skyfaller, Verse.Thing
innerThing, Verse.IntVec3 pos, Verse.Map map)
IL_009B: pop
IL_009C: ldarg.1
IL_009D: ldloc.s 4 (Verse.Pawn)
IL_009F: callvirt virtual System.Void
System.Collections.Generic.List`1<Verse.Pawn>::Add(Verse.Pawn item)
IL_00A4: nop
IL_00A5: nop
IL_00A6: ldloc.2
IL_00A7: ldc.i4.1
IL_00A8: add
IL_00A9: stloc.2
IL_00AA: Label0
IL_00AA: ldloc.2
IL_00AB: ldloc.1
IL_00AC: clt
IL_00AE: stloc.s 6 (System.Boolean)
IL_00B0: ldloc.s 6 (System.Boolean)
IL_00B2: brtrue => Label2
IL_00B7: // end original
IL_00B7: ldarg 1
IL_00BB: ldarg 2
IL_00BF: call static System.Void
VanillaStorytellersExpanded.RaidPatches::RaidGroupChecker(System.Collections.Generi
c.List`1<Verse.Pawn> pawns, RimWorld.IncidentParms parms)
IL_00C4: ret
DONE

### Patch: virtual System.Void


VFEI.RaidArrivalModes.PawnsArrivalModeWorker_Burrow::Arrive(System.Collections.Gene
ric.List`1<Verse.Pawn> pawns, RimWorld.IncidentParms parms)
### Replacement: static System.Void
VFEI.RaidArrivalModes.PawnsArrivalModeWorker_Burrow::VFEI.RaidArrivalModes.PawnsArr
ivalModeWorker_Burrow.Arrive_Patch1(VFEI.RaidArrivalModes.PawnsArrivalModeWorker_Bu
rrow this, System.Collections.Generic.List`1<Verse.Pawn> pawns,
RimWorld.IncidentParms parms)
IL_0000: // start original
IL_0000: nop
IL_0001: ldarg.2
IL_0002: ldarg.1
IL_0003: call static System.Void
VFEI.RaidArrivalModes.PawnsArrivalModeWorker_Burrow::InsectTunnel(RimWorld.Incident
Parms parms, System.Collections.Generic.List`1<Verse.Pawn> pawns)
IL_0008: nop
IL_0009: // end original
IL_0009: ldarg 1
IL_000D: ldarg 2
IL_0011: call static System.Void
VanillaStorytellersExpanded.RaidPatches::RaidGroupChecker(System.Collections.Generi
c.List`1<Verse.Pawn> pawns, RimWorld.IncidentParms parms)
IL_0016: ret
DONE

### Patch: virtual System.Void


VFEI.RaidArrivalModes.PawnsArrivalModeWorker_Meteorite::Arrive(System.Collections.G
eneric.List`1<Verse.Pawn> pawns, RimWorld.IncidentParms parms)
### Replacement: static System.Void
VFEI.RaidArrivalModes.PawnsArrivalModeWorker_Meteorite::VFEI.RaidArrivalModes.Pawns
ArrivalModeWorker_Meteorite.Arrive_Patch1(VFEI.RaidArrivalModes.PawnsArrivalModeWor
ker_Meteorite this, System.Collections.Generic.List`1<Verse.Pawn> pawns,
RimWorld.IncidentParms parms)
IL_0000: Local var 0:
VFEI.RaidArrivalModes.PawnsArrivalModeWorker_Meteorite/<>c__DisplayClass0_0
IL_0000: Local var 1: System.Int32
IL_0000: Local var 2: System.Int32
IL_0000: Local var 3: Verse.AI.Group.Lord
IL_0000: Local var 4: Verse.IntVec3
IL_0000: Local var 5: System.Int32
IL_0000: Local var 6: System.Collections.Generic.List`1<Verse.Thing>
IL_0000: Local var 7: System.Predicate`1<Verse.IntVec3>
IL_0000: Local var 8: System.Int32
IL_0000: Local var 9: System.Boolean
IL_0000: Local var 10: System.Boolean
IL_0000: Local var 11: System.Boolean
IL_0000: // start original
IL_0000: newobj System.Void VFEI.RaidArrivalModes.<>c__DisplayClass0_0::.ctor()
IL_0005: stloc.0
IL_0006: nop
IL_0007: ldloc.0
IL_0008: ldarg.2
IL_0009: ldfld RimWorld.IIncidentTarget RimWorld.IncidentParms::target
IL_000E: castclass Verse.Map
IL_0013: stfld Verse.Map VFEI.RaidArrivalModes.<>c__DisplayClass0_0::map
IL_0018: ldc.i4.2
IL_0019: ldarg.2
IL_001A: ldfld System.Single RimWorld.IncidentParms::points
IL_001F: conv.i4
IL_0020: ldc.i4 500
IL_0025: div
IL_0026: call static System.Int32 Verse.Rand::RangeInclusive(System.Int32
min, System.Int32 max)
IL_002B: stloc.1
IL_002C: ldarg.1
IL_002D: callvirt virtual System.Int32
System.Collections.Generic.List`1<Verse.Pawn>::get_Count()
IL_0032: ldloc.1
IL_0033: div
IL_0034: stloc.2
IL_0035: ldarg.2
IL_0036: ldfld RimWorld.Faction RimWorld.IncidentParms::faction
IL_003B: ldarg.2
IL_003C: ldfld RimWorld.Faction RimWorld.IncidentParms::faction
IL_0041: ldc.i4.0
IL_0042: ldc.i4.0
IL_0043: ldc.i4.0
IL_0044: ldc.i4.0
IL_0045: ldc.i4.0
IL_0046: ldc.i4.0
IL_0047: ldc.i4.0
IL_0048: newobj System.Void
RimWorld.LordJob_AssaultColony::.ctor(RimWorld.Faction assaulterFaction,
System.Boolean canKidnap, System.Boolean canTimeoutOrFlee, System.Boolean sappers,
System.Boolean useAvoidGridSmart, System.Boolean canSteal, System.Boolean
breachers, System.Boolean canPickUpOpportunisticWeapons)
IL_004D: ldloc.0
IL_004E: ldfld Verse.Map VFEI.RaidArrivalModes.<>c__DisplayClass0_0::map
IL_0053: ldnull
IL_0054: call static Verse.AI.Group.Lord
Verse.AI.Group.LordMaker::MakeNewLord(RimWorld.Faction faction,
Verse.AI.Group.LordJob lordJob, Verse.Map map,
System.Collections.Generic.IEnumerable`1<Verse.Pawn> startingPawns)
IL_0059: stloc.3
IL_005A: ldloca.s 4 (Verse.IntVec3)
IL_005C: initobj Verse.IntVec3
IL_0062: ldc.i4.0
IL_0063: stloc.s 5 (System.Int32)
IL_0065: br => Label0
IL_006A: Label7
IL_006A: nop
IL_006B: ldloc.0
IL_006C: ldfld System.Predicate`1<Verse.IntVec3>
VFEI.RaidArrivalModes.<>c__DisplayClass0_0::<>9__0
IL_0071: dup
IL_0072: brtrue => Label1
IL_0077: pop
IL_0078: ldloc.0
IL_0079: ldloc.0
IL_007A: ldftn System.Boolean
VFEI.RaidArrivalModes.<>c__DisplayClass0_0::<Arrive>b__0(Verse.IntVec3 i)
IL_0080: newobj System.Void
System.Predicate`1<Verse.IntVec3>::.ctor(System.Object object, System.IntPtr
method)
IL_0085: dup
IL_0086: stloc.s 7 (System.Predicate`1[Verse.IntVec3])
IL_0088: stfld System.Predicate`1<Verse.IntVec3>
VFEI.RaidArrivalModes.<>c__DisplayClass0_0::<>9__0
IL_008D: ldloc.s 7 (System.Predicate`1[Verse.IntVec3])
IL_008F: Label1
IL_008F: ldloc.0
IL_0090: ldfld Verse.Map VFEI.RaidArrivalModes.<>c__DisplayClass0_0::map
IL_0095: ldc.i4 1000
IL_009A: call static Verse.IntVec3
Verse.CellFinderLoose::RandomCellWith(System.Predicate`1<Verse.IntVec3> validator,
Verse.Map map, System.Int32 maxTries)
IL_009F: stloc.s 4 (Verse.IntVec3)
IL_00A1: ldsfld RimWorld.ThingSetMakerDef
RimWorld.ThingSetMakerDefOf::Meteorite
IL_00A6: ldfld RimWorld.ThingSetMaker RimWorld.ThingSetMakerDef::root
IL_00AB: callvirt System.Collections.Generic.List`1<Verse.Thing>
RimWorld.ThingSetMaker::Generate()
IL_00B0: stloc.s 6 (System.Collections.Generic.List`1[Verse.Thing])
IL_00B2: ldc.i4.0
IL_00B3: stloc.s 8 (System.Int32)
IL_00B5: br => Label2
IL_00BA: Label6
IL_00BA: nop
IL_00BB: ldarg.1
IL_00BC: ldc.i4.0
IL_00BD: callvirt virtual Verse.Pawn
System.Collections.Generic.List`1<Verse.Pawn>::get_Item(System.Int32 index)
IL_00C2: ldnull
IL_00C3: cgt.un
IL_00C5: stloc.s 9 (System.Boolean)
IL_00C7: ldloc.s 9 (System.Boolean)
IL_00C9: brfalse => Label3
IL_00CE: nop
IL_00CF: ldloc.s 6 (System.Collections.Generic.List`1[Verse.Thing])
IL_00D1: ldarg.1
IL_00D2: ldc.i4.0
IL_00D3: callvirt virtual Verse.Pawn
System.Collections.Generic.List`1<Verse.Pawn>::get_Item(System.Int32 index)
IL_00D8: callvirt virtual System.Void
System.Collections.Generic.List`1<Verse.Thing>::Add(Verse.Thing item)
IL_00DD: nop
IL_00DE: ldloc.3
IL_00DF: ldarg.1
IL_00E0: ldc.i4.0
IL_00E1: callvirt virtual Verse.Pawn
System.Collections.Generic.List`1<Verse.Pawn>::get_Item(System.Int32 index)
IL_00E6: callvirt System.Void Verse.AI.Group.Lord::AddPawn(Verse.Pawn p)
IL_00EB: nop
IL_00EC: ldarg.1
IL_00ED: ldc.i4.0
IL_00EE: callvirt virtual System.Void
System.Collections.Generic.List`1<Verse.Pawn>::RemoveAt(System.Int32 index)
IL_00F3: nop
IL_00F4: nop
IL_00F5: br => Label4
IL_00FA: Label3
IL_00FA: nop
IL_00FB: br => Label5
IL_0100: Label4
IL_0100: nop
IL_0101: ldloc.s 8 (System.Int32)
IL_0103: ldc.i4.1
IL_0104: add
IL_0105: stloc.s 8 (System.Int32)
IL_0107: Label2
IL_0107: ldloc.s 8 (System.Int32)
IL_0109: ldloc.2
IL_010A: clt
IL_010C: stloc.s 10 (System.Boolean)
IL_010E: ldloc.s 10 (System.Boolean)
IL_0110: brtrue => Label6
IL_0115: Label5
IL_0115: ldsfld Verse.ThingDef VFEI.VFEIDefOf::VFEI_InsectMeteoriteIncoming
IL_011A: ldloc.s 6 (System.Collections.Generic.List`1[Verse.Thing])
IL_011C: ldloc.s 4 (Verse.IntVec3)
IL_011E: ldloc.0
IL_011F: ldfld Verse.Map VFEI.RaidArrivalModes.<>c__DisplayClass0_0::map
IL_0124: call static RimWorld.Skyfaller
RimWorld.SkyfallerMaker::SpawnSkyfaller(Verse.ThingDef skyfaller,
System.Collections.Generic.IEnumerable`1<Verse.Thing> things, Verse.IntVec3 pos,
Verse.Map map)
IL_0129: pop
IL_012A: nop
IL_012B: ldloc.s 5 (System.Int32)
IL_012D: ldc.i4.1
IL_012E: add
IL_012F: stloc.s 5 (System.Int32)
IL_0131: Label0
IL_0131: ldloc.s 5 (System.Int32)
IL_0133: ldloc.1
IL_0134: clt
IL_0136: stloc.s 11 (System.Boolean)
IL_0138: ldloc.s 11 (System.Boolean)
IL_013A: brtrue => Label7
IL_013F: ldarg.2
IL_0140: ldloc.s 4 (Verse.IntVec3)
IL_0142: stfld Verse.IntVec3 RimWorld.IncidentParms::spawnCenter
IL_0147: // end original
IL_0147: ldarg 1
IL_014B: ldarg 2
IL_014F: call static System.Void
VanillaStorytellersExpanded.RaidPatches::RaidGroupChecker(System.Collections.Generi
c.List`1<Verse.Pawn> pawns, RimWorld.IncidentParms parms)
IL_0154: ret
DONE

### Patch: virtual System.Void


VFEI.RaidArrivalModes.PawnsArrivalModeWorker_Tunneling::Arrive(System.Collections.G
eneric.List`1<Verse.Pawn> pawns, RimWorld.IncidentParms parms)
### Replacement: static System.Void
VFEI.RaidArrivalModes.PawnsArrivalModeWorker_Tunneling::VFEI.RaidArrivalModes.Pawns
ArrivalModeWorker_Tunneling.Arrive_Patch1(VFEI.RaidArrivalModes.PawnsArrivalModeWor
ker_Tunneling this, System.Collections.Generic.List`1<Verse.Pawn> pawns,
RimWorld.IncidentParms parms)
IL_0000: // start original
IL_0000: nop
IL_0001: ldarg.2
IL_0002: ldarg.1
IL_0003: call static System.Void
VFEI.RaidArrivalModes.PawnsArrivalModeWorker_Tunneling::InsectTunnel(RimWorld.Incid
entParms parms, System.Collections.Generic.List`1<Verse.Pawn> pawns)
IL_0008: nop
IL_0009: // end original
IL_0009: ldarg 1
IL_000D: ldarg 2
IL_0011: call static System.Void
VanillaStorytellersExpanded.RaidPatches::RaidGroupChecker(System.Collections.Generi
c.List`1<Verse.Pawn> pawns, RimWorld.IncidentParms parms)
IL_0016: ret
DONE

### Patch: virtual System.Void


VFEPirates.PawnsArrivalModeWorker_Gauntlet::Arrive(System.Collections.Generic.List`
1<Verse.Pawn> pawns, RimWorld.IncidentParms parms)
### Replacement: static System.Void
VFEPirates.PawnsArrivalModeWorker_Gauntlet::VFEPirates.PawnsArrivalModeWorker_Gaunt
let.Arrive_Patch1(VFEPirates.PawnsArrivalModeWorker_Gauntlet this,
System.Collections.Generic.List`1<Verse.Pawn> pawns, RimWorld.IncidentParms parms)
IL_0000: Local var 0:
VFEPirates.PawnsArrivalModeWorker_Gauntlet/<>c__DisplayClass3_0
IL_0000: Local var 1: System.Int32
IL_0000: Local var 2: System.Int32
IL_0000: Local var 3: Verse.IntVec3
IL_0000: Local var 4: System.Boolean
IL_0000: Local var 5: System.Int32
IL_0000: Local var 6:
System.Collections.Generic.KeyValuePair`2<Verse.ThingDef,Verse.ThingDef>
IL_0000: Local var 7: VFEPirates.Building_CrashedShip
IL_0000: Local var 8: Verse.IntVec3
IL_0000: Local var 9: System.Int32
IL_0000: Local var 10: System.Boolean
IL_0000: Local var 11: System.Boolean
IL_0000: Local var 12: System.Boolean
IL_0000: Local var 13: System.Predicate`1<Verse.IntVec3>
IL_0000: Local var 14: System.Boolean
IL_0000: // start original
IL_0000: newobj System.Void VFEPirates.<>c__DisplayClass3_0::.ctor()
IL_0005: stloc.0
IL_0006: nop
IL_0007: ldloc.0
IL_0008: ldarg.2
IL_0009: ldfld RimWorld.IIncidentTarget RimWorld.IncidentParms::target
IL_000E: castclass Verse.Map
IL_0013: stfld Verse.Map VFEPirates.<>c__DisplayClass3_0::target
IL_0018: ldarg.1
IL_0019: callvirt virtual System.Int32
System.Collections.Generic.List`1<Verse.Pawn>::get_Count()
IL_001E: ldsfld System.Int32
VFEPirates.PawnsArrivalModeWorker_Gauntlet::PawnsPerShip
IL_0023: div
IL_0024: stloc.1
IL_0025: ldarg.1
IL_0026: callvirt virtual System.Int32
System.Collections.Generic.List`1<Verse.Pawn>::get_Count()
IL_002B: ldsfld System.Int32
VFEPirates.PawnsArrivalModeWorker_Gauntlet::PawnsPerShip
IL_0030: rem
IL_0031: stloc.2
IL_0032: ldloc.2
IL_0033: ldc.i4.0
IL_0034: cgt
IL_0036: stloc.s 4 (System.Boolean)
IL_0038: ldloc.s 4 (System.Boolean)
IL_003A: brfalse => Label0
IL_003F: ldloc.1
IL_0040: ldc.i4.1
IL_0041: add
IL_0042: stloc.1
IL_0043: Label0
IL_0043: ldarg.2
IL_0044: ldfld Verse.IntVec3 RimWorld.IncidentParms::spawnCenter
IL_0049: ldloc.0
IL_004A: ldftn System.Boolean
VFEPirates.<>c__DisplayClass3_0::<Arrive>b__0(Verse.IntVec3 c)
IL_0050: newobj System.Void
System.Predicate`1<Verse.IntVec3>::.ctor(System.Object object, System.IntPtr
method)
IL_0055: ldloc.0
IL_0056: ldfld Verse.Map VFEPirates.<>c__DisplayClass3_0::target
IL_005B: ldloca.s 3 (Verse.IntVec3)
IL_005D: ldc.i4.5
IL_005E: ldc.i4 2147483647
IL_0063: call static System.Boolean
RimWorld.RCellFinder::TryFindRandomCellNearWith(Verse.IntVec3 near,
System.Predicate`1<Verse.IntVec3> validator, Verse.Map map, Verse.IntVec3& result,
System.Int32 startingSearchRadius, System.Int32 maxSearchRadius)
IL_0068: pop
IL_0069: ldc.i4.0
IL_006A: stloc.s 5 (System.Int32)
IL_006C: br => Label1
IL_0071: Label9
IL_0071: nop
IL_0072: ldsfld System.Collections.Generic.Dictionary`2<Verse.ThingDef,
Verse.ThingDef> VFEPirates.PawnsArrivalModeWorker_Gauntlet::shipAssoc
IL_0077: call static
System.Collections.Generic.KeyValuePair`2<Verse.ThingDef, Verse.ThingDef>
Verse.GenCollection::RandomElement(System.Collections.Generic.IEnumerable`1<System.
Collections.Generic.KeyValuePair`2<Verse.ThingDef, Verse.ThingDef>> source)
IL_007C: stloc.s 6
(System.Collections.Generic.KeyValuePair`2[Verse.ThingDef,Verse.ThingDef])
IL_007E: ldloca.s 6
(System.Collections.Generic.KeyValuePair`2[Verse.ThingDef,Verse.ThingDef])
IL_0080: call Verse.ThingDef
System.Collections.Generic.KeyValuePair`2<Verse.ThingDef,
Verse.ThingDef>::get_Value()
IL_0085: ldnull
IL_0086: call static Verse.Thing Verse.ThingMaker::MakeThing(Verse.ThingDef
def, Verse.ThingDef stuff)
IL_008B: castclass VFEPirates.Building_CrashedShip
IL_0090: stloc.s 7 (VFEPirates.Building_CrashedShip)
IL_0092: ldloc.s 7 (VFEPirates.Building_CrashedShip)
IL_0094: ldarg.1
IL_0095: ldc.i4.0
IL_0096: callvirt virtual Verse.Pawn
System.Collections.Generic.List`1<Verse.Pawn>::get_Item(System.Int32 index)
IL_009B: callvirt virtual RimWorld.Faction Verse.Thing::get_Faction()
IL_00A0: callvirt System.Void Verse.Thing::SetFactionDirect(RimWorld.Faction
newFaction)
IL_00A5: nop
IL_00A6: ldc.i4.0
IL_00A7: stloc.s 9 (System.Int32)
IL_00A9: br => Label2
IL_00AE: Label7
IL_00AE: nop
IL_00AF: ldarg.1
IL_00B0: callvirt virtual System.Int32
System.Collections.Generic.List`1<Verse.Pawn>::get_Count()
IL_00B5: ldc.i4.0
IL_00B6: cgt
IL_00B8: stloc.s 10 (System.Boolean)
IL_00BA: ldloc.s 10 (System.Boolean)
IL_00BC: brfalse => Label3
IL_00C1: nop
IL_00C2: ldarg.1
IL_00C3: ldc.i4.0
IL_00C4: callvirt virtual Verse.Pawn
System.Collections.Generic.List`1<Verse.Pawn>::get_Item(System.Int32 index)
IL_00C9: call static System.Boolean
RimWorld.Planet.WorldPawnsUtility::IsWorldPawn(Verse.Pawn p)
IL_00CE: stloc.s 11 (System.Boolean)
IL_00D0: ldloc.s 11 (System.Boolean)
IL_00D2: brfalse => Label4
IL_00D7: nop
IL_00D8: call static RimWorld.Planet.WorldPawns Verse.Find::get_WorldPawns()
IL_00DD: ldarg.1
IL_00DE: ldc.i4.0
IL_00DF: callvirt virtual Verse.Pawn
System.Collections.Generic.List`1<Verse.Pawn>::get_Item(System.Int32 index)
IL_00E4: callvirt System.Void RimWorld.Planet.WorldPawns::RemovePawn(Verse.Pawn
p)
IL_00E9: nop
IL_00EA: ldarg.1
IL_00EB: ldc.i4.0
IL_00EC: callvirt virtual Verse.Pawn
System.Collections.Generic.List`1<Verse.Pawn>::get_Item(System.Int32 index)
IL_00F1: ldfld RimWorld.Pawn_PsychicEntropyTracker Verse.Pawn::psychicEntropy
IL_00F6: dup
IL_00F7: brtrue => Label5
IL_00FC: pop
IL_00FD: br => Label6
IL_0102: Label5
IL_0102: call System.Void
RimWorld.Pawn_PsychicEntropyTracker::SetInitialPsyfocusLevel()
IL_0107: nop
IL_0108: Label6
IL_0108: nop
IL_0109: Label4
IL_0109: ldloc.s 7 (VFEPirates.Building_CrashedShip)
IL_010B: ldarg.1
IL_010C: ldc.i4.0
IL_010D: callvirt virtual Verse.Pawn
System.Collections.Generic.List`1<Verse.Pawn>::get_Item(System.Int32 index)
IL_0112: callvirt System.Void
VFEPirates.Building_CrashedShip::AddPawnToShip(Verse.Pawn p)
IL_0117: nop
IL_0118: ldarg.1
IL_0119: ldc.i4.0
IL_011A: callvirt virtual System.Void
System.Collections.Generic.List`1<Verse.Pawn>::RemoveAt(System.Int32 index)
IL_011F: nop
IL_0120: nop
IL_0121: Label3
IL_0121: nop
IL_0122: ldloc.s 9 (System.Int32)
IL_0124: ldc.i4.1
IL_0125: add
IL_0126: stloc.s 9 (System.Int32)
IL_0128: Label2
IL_0128: ldloc.s 9 (System.Int32)
IL_012A: ldsfld System.Int32
VFEPirates.PawnsArrivalModeWorker_Gauntlet::PawnsPerShip
IL_012F: clt
IL_0131: stloc.s 12 (System.Boolean)
IL_0133: ldloc.s 12 (System.Boolean)
IL_0135: brtrue => Label7
IL_013A: ldloc.3
IL_013B: ldloc.0
IL_013C: ldfld Verse.Map VFEPirates.<>c__DisplayClass3_0::target
IL_0141: ldloca.s 8 (Verse.IntVec3)
IL_0143: ldc.i4.0
IL_0144: ldc.i4.1
IL_0145: ldc.i4.1
IL_0146: ldsfld Verse.ThingDef VFEPirates.VFEP_DefOf::VFEP_Ship_Black
IL_014B: callvirt virtual Verse.IntVec2 Verse.BuildableDef::get_Size()
IL_0150: newobj System.Void
System.Nullable`1<Verse.IntVec2>::.ctor(Verse.IntVec2 value)
IL_0155: ldc.i4.1
IL_0156: call static System.Boolean
RimWorld.DropCellFinder::TryFindDropSpotNear(Verse.IntVec3 center, Verse.Map map,
Verse.IntVec3& result, System.Boolean allowFogged, System.Boolean canRoofPunch,
System.Boolean allowIndoors, System.Nullable`1<Verse.IntVec2> size, System.Boolean
mustBeReachableFromCenter)
IL_015B: pop
IL_015C: ldloc.s 8 (Verse.IntVec3)
IL_015E: ldloc.0
IL_015F: ldfld System.Predicate`1<Verse.IntVec3>
VFEPirates.<>c__DisplayClass3_0::<>9__1
IL_0164: dup
IL_0165: brtrue => Label8
IL_016A: pop
IL_016B: ldloc.0
IL_016C: ldloc.0
IL_016D: ldftn System.Boolean
VFEPirates.<>c__DisplayClass3_0::<Arrive>b__1(Verse.IntVec3 c)
IL_0173: newobj System.Void
System.Predicate`1<Verse.IntVec3>::.ctor(System.Object object, System.IntPtr
method)
IL_0178: dup
IL_0179: stloc.s 13 (System.Predicate`1[Verse.IntVec3])
IL_017B: stfld System.Predicate`1<Verse.IntVec3>
VFEPirates.<>c__DisplayClass3_0::<>9__1
IL_0180: ldloc.s 13 (System.Predicate`1[Verse.IntVec3])
IL_0182: Label8
IL_0182: ldloc.0
IL_0183: ldfld Verse.Map VFEPirates.<>c__DisplayClass3_0::target
IL_0188: ldloca.s 3 (Verse.IntVec3)
IL_018A: ldc.i4.5
IL_018B: ldc.i4 2147483647
IL_0190: call static System.Boolean
RimWorld.RCellFinder::TryFindRandomCellNearWith(Verse.IntVec3 near,
System.Predicate`1<Verse.IntVec3> validator, Verse.Map map, Verse.IntVec3& result,
System.Int32 startingSearchRadius, System.Int32 maxSearchRadius)
IL_0195: pop
IL_0196: ldloca.s 6
(System.Collections.Generic.KeyValuePair`2[Verse.ThingDef,Verse.ThingDef])
IL_0198: call Verse.ThingDef
System.Collections.Generic.KeyValuePair`2<Verse.ThingDef,
Verse.ThingDef>::get_Key()
IL_019D: ldloc.s 7 (VFEPirates.Building_CrashedShip)
IL_019F: ldloc.s 8 (Verse.IntVec3)
IL_01A1: ldarg.2
IL_01A2: ldfld RimWorld.IIncidentTarget RimWorld.IncidentParms::target
IL_01A7: castclass Verse.Map
IL_01AC: call static RimWorld.Skyfaller
RimWorld.SkyfallerMaker::SpawnSkyfaller(Verse.ThingDef skyfaller, Verse.Thing
innerThing, Verse.IntVec3 pos, Verse.Map map)
IL_01B1: pop
IL_01B2: nop
IL_01B3: ldloc.s 5 (System.Int32)
IL_01B5: ldc.i4.1
IL_01B6: add
IL_01B7: stloc.s 5 (System.Int32)
IL_01B9: Label1
IL_01B9: ldloc.s 5 (System.Int32)
IL_01BB: ldloc.1
IL_01BC: clt
IL_01BE: stloc.s 14 (System.Boolean)
IL_01C0: ldloc.s 14 (System.Boolean)
IL_01C2: brtrue => Label9
IL_01C7: // end original
IL_01C7: ldarg 1
IL_01CB: ldarg 2
IL_01CF: call static System.Void
VanillaStorytellersExpanded.RaidPatches::RaidGroupChecker(System.Collections.Generi
c.List`1<Verse.Pawn> pawns, RimWorld.IncidentParms parms)
IL_01D4: ret
DONE

### Patch: System.Int32 RimWorld.Faction::get_NaturalGoodwill()


### Replacement: static System.Int32
RimWorld.Faction::RimWorld.Faction.get_NaturalGoodwill_Patch1(RimWorld.Faction
this)
IL_0000: Local var 0: System.Int32
IL_0000: ldc.i4 0
IL_0005: stloc 0 (System.Int32)
IL_0009: // start original
IL_0009: call static RimWorld.GoodwillSituationManager
Verse.Find::get_GoodwillSituationManager()
IL_000E: ldarg.0
IL_000F: callvirt System.Int32
RimWorld.GoodwillSituationManager::GetNaturalGoodwill(RimWorld.Faction other)
IL_0014: // end original
IL_0014: stloc 0 (System.Int32)
IL_0018: ldarg.0
IL_0019: ldloca 0 (System.Int32)
IL_001D: call static System.Void
VanillaStorytellersExpanded.Patch_NaturalGoodwill::Postfix(RimWorld.Faction
__instance, System.Int32& __result)
IL_0022: ldloc 0 (System.Int32)
IL_0026: ret
DONE

### Patch: System.Single


RimWorld.StorytellerComp::IncidentChanceFinal(RimWorld.IncidentDef def)
### Replacement: static System.Single
RimWorld.StorytellerComp::RimWorld.StorytellerComp.IncidentChanceFinal_Patch1(RimWo
rld.StorytellerComp this, RimWorld.IncidentDef def)
IL_0000: Local var 0: System.Single
IL_0000: Local var 1: System.Single
IL_0000: ldc.r4 0
IL_0005: stloc 1 (System.Single)
IL_0009: // start original
IL_0009: ldarg.1
IL_000A: callvirt RimWorld.IncidentWorker RimWorld.IncidentDef::get_Worker()
IL_000F: callvirt virtual System.Single
RimWorld.IncidentWorker::get_BaseChanceThisGame()
IL_0014: stloc.0
IL_0015: ldloc.0
IL_0016: ldarg.0
IL_0017: ldarg.1
IL_0018: call System.Single
RimWorld.StorytellerComp::IncidentChanceFactor_CurrentPopulation(RimWorld.IncidentD
ef def)
IL_001D: mul
IL_001E: stloc.0
IL_001F: ldloc.0
IL_0020: ldarg.0
IL_0021: ldarg.1
IL_0022: call System.Single
RimWorld.StorytellerComp::IncidentChanceFactor_PopulationIntent(RimWorld.IncidentDe
f def)
IL_0027: mul
IL_0028: stloc.0
IL_0029: ldc.r4 0
IL_002E: ldloc.0
IL_002F: call static System.Single UnityEngine.Mathf::Max(System.Single a,
System.Single b)
IL_0034: // end original
IL_0034: stloc 1 (System.Single)
IL_0038: ldloca 1 (System.Single)
IL_003C: ldarg 1
IL_0040: call static System.Void
VanillaStorytellersExpanded.Patch_IncidentChanceFinal::Postfix(System.Single&
__result, RimWorld.IncidentDef def)
IL_0045: ldloc 1 (System.Single)
IL_0049: ret
DONE

### Patch: System.Void Verse.AI.Group.Lord::AddPawn(Verse.Pawn p)


### Replacement: static System.Void
Verse.AI.Group.Lord::Verse.AI.Group.Lord.AddPawn_Patch1(Verse.AI.Group.Lord this,
Verse.Pawn p)
IL_0000: // start original
IL_0000: ldarg.0
IL_0001: ldarg.1
IL_0002: ldc.i4.1
IL_0003: call System.Void Verse.AI.Group.Lord::AddPawnInternal(Verse.Pawn p,
System.Boolean updateDuties)
IL_0008: // end original
IL_0008: ldarg.0
IL_0009: ldarg 1
IL_000D: call static System.Void
VanillaStorytellersExpanded.Patch_AddPawn::Postfix(Verse.AI.Group.Lord __instance,
Verse.Pawn p)
IL_0012: ret
DONE

### Patch: System.Void


Verse.DamageWorker_AddInjury::ApplyDamageToPart(Verse.DamageInfo dinfo, Verse.Pawn
pawn, Verse.DamageResult result)
### Replacement: static System.Void
Verse.DamageWorker_AddInjury::Verse.DamageWorker_AddInjury.ApplyDamageToPart_Patch1
(Verse.DamageWorker_AddInjury this, Verse.DamageInfo dinfo, Verse.Pawn pawn,
Verse.DamageResult result)
IL_0000: Local var 0: System.Single
IL_0000: Local var 1: System.Boolean
IL_0000: Local var 2: Verse.BodyPartRecord
IL_0000: Local var 3: System.Boolean
IL_0000: Local var 4: Verse.DamageDef
IL_0000: Local var 5: System.Boolean
IL_0000: ldc.i4 0
IL_0005: stloc 5 (System.Boolean)
IL_0009: ldc.i4.1
IL_000A: stloc 5 (System.Boolean)
IL_000E: ldloc 5 (System.Boolean)
IL_0012: brfalse => Label1
IL_0017: ldarga 1
IL_001B: ldarg 2
IL_001F: ldarg 3
IL_0023: call static System.Void
VanillaStorytellersExpanded.Patch_ApplyDamageToPart::Prefix(Verse.DamageInfo&
dinfo, Verse.Pawn pawn, Verse.DamageResult result)
IL_0028: Label1
IL_0028: nop
IL_0029: ldloc 5 (System.Boolean)
IL_002D: brfalse => Label0
IL_0032: // start original
IL_0032: ldarg.0
IL_0033: ldarg.1
IL_0034: ldarg.2
IL_0035: call Verse.BodyPartRecord
Verse.DamageWorker_AddInjury::GetExactPartFromDamageInfo(Verse.DamageInfo dinfo,
Verse.Pawn pawn)
IL_003A: stloc.2
IL_003B: ldloc.2
IL_003C: brtrue => Label2
IL_0041: br => Label15
IL_0046: Label2
IL_0046: ldarga.s 1
IL_0048: ldloc.2
IL_0049: call System.Void Verse.DamageInfo::SetHitPart(Verse.BodyPartRecord
forceHitPart)
IL_004E: ldarga.s 1
IL_0050: call System.Single Verse.DamageInfo::get_Amount()
IL_0055: stloc.0
IL_0056: ldarga.s 1
IL_0058: call System.Boolean Verse.DamageInfo::get_InstantPermanentInjury()
IL_005D: brtrue => Label3
IL_0062: ldarga.s 1
IL_0064: call System.Boolean Verse.DamageInfo::get_IgnoreArmor()
IL_0069: ldc.i4.0
IL_006A: ceq
IL_006C: br => Label4
IL_0071: Label3
IL_0071: ldc.i4.0
IL_0072: Label4
IL_0072: ldc.i4.0
IL_0073: stloc.1
IL_0074: brfalse => Label5
IL_0079: ldarga.s 1
IL_007B: call Verse.DamageDef Verse.DamageInfo::get_Def()
IL_0080: stloc.s 4 (Verse.DamageDef)
IL_0082: ldarg.2
IL_0083: ldloc.0
IL_0084: ldarga.s 1
IL_0086: call System.Single Verse.DamageInfo::get_ArmorPenetrationInt()
IL_008B: ldarga.s 1
IL_008D: call Verse.BodyPartRecord Verse.DamageInfo::get_HitPart()
IL_0092: ldloca.s 4 (Verse.DamageDef)
IL_0094: ldloca.s 1 (System.Boolean)
IL_0096: ldloca.s 3 (System.Boolean)
IL_0098: call static System.Single
Verse.ArmorUtility::GetPostArmorDamage(Verse.Pawn pawn, System.Single amount,
System.Single armorPenetration, Verse.BodyPartRecord part, Verse.DamageDef&
damageDef, System.Boolean& deflectedByMetalArmor, System.Boolean&
diminishedByMetalArmor)
IL_009D: stloc.0
IL_009E: ldarga.s 1
IL_00A0: ldloc.s 4 (Verse.DamageDef)
IL_00A2: call System.Void Verse.DamageInfo::set_Def(Verse.DamageDef value)
IL_00A7: ldloc.0
IL_00A8: ldarga.s 1
IL_00AA: call System.Single Verse.DamageInfo::get_Amount()
IL_00AF: bge.un => Label6
IL_00B4: ldarg.3
IL_00B5: ldc.i4.1
IL_00B6: stfld System.Boolean Verse.DamageResult::diminished
IL_00BB: ldarg.3
IL_00BC: ldloc.3
IL_00BD: stfld System.Boolean Verse.DamageResult::diminishedByMetalArmor
IL_00C2: Label5
IL_00C2: Label6
IL_00C2: ldarga.s 1
IL_00C4: call Verse.DamageDef Verse.DamageInfo::get_Def()
IL_00C9: ldarg.2
IL_00CA: callvirt System.Boolean Verse.DamageDef::ExternalViolenceFor(Verse.Thing
thing)
IL_00CF: brfalse => Label7
IL_00D4: ldloc.0
IL_00D5: ldarg.2
IL_00D6: ldsfld RimWorld.StatDef RimWorld.StatDefOf::IncomingDamageFactor
IL_00DB: ldc.i4.1
IL_00DC: ldc.i4.m1
IL_00DD: call static System.Single
RimWorld.StatExtension::GetStatValue(Verse.Thing thing, RimWorld.StatDef stat,
System.Boolean applyPostProcess, System.Int32 cacheStaleAfterTicks)
IL_00E2: mul
IL_00E3: stloc.0
IL_00E4: Label7
IL_00E4: ldloc.0
IL_00E5: ldc.r4 0
IL_00EA: bgt.un => Label8
IL_00EF: ldarg.3
IL_00F0: ldarg.2
IL_00F1: ldarga.s 1
IL_00F3: call Verse.BodyPartRecord Verse.DamageInfo::get_HitPart()
IL_00F8: callvirt System.Void Verse.DamageResult::AddPart(Verse.Thing hitThing,
Verse.BodyPartRecord part)
IL_00FD: ldarg.3
IL_00FE: ldc.i4.1
IL_00FF: stfld System.Boolean Verse.DamageResult::deflected
IL_0104: ldarg.3
IL_0105: ldloc.1
IL_0106: stfld System.Boolean Verse.DamageResult::deflectedByMetalArmor
IL_010B: br => Label16
IL_0110: Label8
IL_0110: ldarg.1
IL_0111: ldarg.2
IL_0112: call static System.Boolean
Verse.DamageWorker_AddInjury::IsHeadshot(Verse.DamageInfo dinfo, Verse.Pawn pawn)
IL_0117: brfalse => Label9
IL_011C: ldarg.3
IL_011D: ldc.i4.1
IL_011E: stfld System.Boolean Verse.DamageResult::headshot
IL_0123: Label9
IL_0123: ldarga.s 1
IL_0125: call System.Boolean Verse.DamageInfo::get_InstantPermanentInjury()
IL_012A: brfalse => Label10
IL_012F: ldarga.s 1
IL_0131: call Verse.DamageDef Verse.DamageInfo::get_Def()
IL_0136: ldarg.2
IL_0137: ldarga.s 1
IL_0139: call Verse.BodyPartRecord Verse.DamageInfo::get_HitPart()
IL_013E: call static Verse.HediffDef
Verse.HealthUtility::GetHediffDefFromDamage(Verse.DamageDef dam, Verse.Pawn pawn,
Verse.BodyPartRecord part)
IL_0143: ldtoken Verse.HediffComp_GetsPermanent
IL_0148: call static System.Type
System.Type::GetTypeFromHandle(System.RuntimeTypeHandle handle)
IL_014D: callvirt Verse.HediffCompProperties
Verse.HediffDef::CompPropsFor(System.Type compClass)
IL_0152: brfalse => Label11
IL_0157: ldarga.s 1
IL_0159: call Verse.BodyPartRecord Verse.DamageInfo::get_HitPart()
IL_015E: ldfld Verse.BodyPartDef Verse.BodyPartRecord::def
IL_0163: ldfld System.Single Verse.BodyPartDef::permanentInjuryChanceFactor
IL_0168: ldc.r4 0
IL_016D: beq => Label12
IL_0172: ldarg.2
IL_0173: ldfld Verse.Pawn_HealthTracker Verse.Pawn::health
IL_0178: ldfld Verse.HediffSet Verse.Pawn_HealthTracker::hediffSet
IL_017D: ldarga.s 1
IL_017F: call Verse.BodyPartRecord Verse.DamageInfo::get_HitPart()
IL_0184: callvirt System.Boolean
Verse.HediffSet::PartOrAnyAncestorHasDirectlyAddedParts(Verse.BodyPartRecord part)
IL_0189: brfalse => Label13
IL_018E: Label11
IL_018E: Label12
IL_018E: br => Label17
IL_0193: Label10
IL_0193: Label13
IL_0193: ldarga.s 1
IL_0195: call System.Boolean Verse.DamageInfo::get_AllowDamagePropagation()
IL_019A: brtrue => Label14
IL_019F: ldarg.0
IL_01A0: ldarg.2
IL_01A1: ldloc.0
IL_01A2: ldarg.1
IL_01A3: ldarg.3
IL_01A4: call System.Single
Verse.DamageWorker_AddInjury::FinalizeAndAddInjury(Verse.Pawn pawn, System.Single
totalDamage, Verse.DamageInfo dinfo, Verse.DamageResult result)
IL_01A9: pop
IL_01AA: br => Label18
IL_01AF: Label14
IL_01AF: ldarg.0
IL_01B0: ldarg.2
IL_01B1: ldloc.0
IL_01B2: ldarg.1
IL_01B3: ldarg.3
IL_01B4: callvirt virtual System.Void
Verse.DamageWorker_AddInjury::ApplySpecialEffectsToPart(Verse.Pawn pawn,
System.Single totalDamage, Verse.DamageInfo dinfo, Verse.DamageResult result)
IL_01B9: // end original
IL_01B9: Label15
IL_01B9: Label16
IL_01B9: Label17
IL_01B9: Label18
IL_01B9: Label0
IL_01B9: ret
DONE

### Patch: virtual System.Void Verse.Pawn::Kill(System.Nullable`1<Verse.DamageInfo>


dinfo, Verse.Hediff exactCulprit)
### Replacement: static System.Void Verse.Pawn::Verse.Pawn.Kill_Patch8(Verse.Pawn
this, System.Nullable`1<Verse.DamageInfo> dinfo, Verse.Hediff exactCulprit)
IL_0000: Local var 0: System.Int32
IL_0000: Local var 1: Verse.IntVec3
IL_0000: Local var 2: Verse.Map
IL_0000: Local var 3: Verse.Map
IL_0000: Local var 4: System.Boolean
IL_0000: Local var 5: System.Boolean
IL_0000: Local var 6: System.Boolean
IL_0000: Local var 7: System.Nullable`1<System.Boolean>
IL_0000: Local var 8: RimWorld.Planet.Caravan
IL_0000: Local var 9: RimWorld.Building_Grave
IL_0000: Local var 10: RimWorld.Building_Bed
IL_0000: Local var 11: Verse.ThingOwner
IL_0000: Local var 12: System.Boolean
IL_0000: Local var 13: System.Boolean
IL_0000: Local var 14: System.Boolean
IL_0000: Local var 15: System.Boolean
IL_0000: Local var 16: System.Boolean
IL_0000: Local var 17: System.Single
IL_0000: Local var 18: Verse.Thing
IL_0000: Local var 19: Verse.AI.Group.Lord
IL_0000: Local var 20: Verse.Corpse
IL_0000: Local var 21: RimWorld.Faction
IL_0000: Local var 22: System.Nullable`1<System.Boolean>
IL_0000: Local var 23:
System.Collections.Generic.List`1/Enumerator<Verse.AI.Group.Lord>
IL_0000: Local var 24: RimWorld.LordJob_Ritual
IL_0000: Local var 25: Verse.DamageInfo
IL_0000: Local var 26: Verse.Rot4
IL_0000: Local var 27: Verse.Hediff
IL_0000: Local var 28: Verse.Hediff
IL_0000: Local var 29: RimWorld.CompRottable
IL_0000: Local var 30: System.Boolean
IL_0000: Local var 31: System.Exception
IL_0000: Local var 32: System.Exception
IL_0000: Local var 33: System.Boolean
IL_0000: ldc.i4 0
IL_0005: stloc 33 (System.Boolean)
IL_0009: ldc.i4.1
IL_000A: stloc 33 (System.Boolean)
IL_000E: ldloc 33 (System.Boolean)
IL_0012: brfalse => Label1
IL_0017: ldarg.0
IL_0018: call static System.Boolean VFECore.Patch_Kill::Prefix(Verse.Pawn
__instance)
IL_001D: stloc 33 (System.Boolean)
IL_0021: Label1
IL_0021: nop
IL_0022: ldloc 33 (System.Boolean)
IL_0026: brfalse => Label2
IL_002B: ldarga 0
IL_002F: ldarg 1
IL_0033: ldarg 2
IL_0037: call static System.Boolean
ATReforged.Kill_Patch::Listener(Verse.Pawn& __instance,
System.Nullable`1<Verse.DamageInfo> dinfo, Verse.Hediff exactCulprit)
IL_003C: stloc 33 (System.Boolean)
IL_0040: Label2
IL_0040: nop
IL_0041: ldloc 33 (System.Boolean)
IL_0045: brfalse => Label3
IL_004A: ldarg.0
IL_004B: ldarg 1
IL_004F: ldarg 2
IL_0053: call static System.Void
VanillaStorytellersExpanded.Patch_Kill::Prefix(Verse.Pawn __instance,
System.Nullable`1<Verse.DamageInfo> dinfo, Verse.Hediff exactCulprit)
IL_0058: Label3
IL_0058: nop
IL_0059: ldloc 33 (System.Boolean)
IL_005D: brfalse => Label0
IL_0062: // start original
IL_0062: ldc.i4.0
IL_0063: stloc.0
.try
{
IL_0064: ldc.i4.1
IL_0065: stloc.0
IL_0066: ldarg.0
IL_0067: call Verse.IntVec3 Verse.Thing::get_PositionHeld()
IL_006C: stloc.1
IL_006D: ldarg.0
IL_006E: call virtual Verse.Map Verse.Thing::get_Map()
IL_0073: stloc.2
IL_0074: ldarg.0
IL_0075: call Verse.Map Verse.Thing::get_MapHeld()
IL_007A: stloc.3
IL_007B: ldarg.0
IL_007C: call System.Boolean Verse.Thing::get_Spawned()
IL_0081: stloc.s 4 (System.Boolean)
IL_0083: ldarg.0
IL_0084: call System.Boolean
Verse.Thing::get_SpawnedOrAnyParentSpawned()
IL_0089: stloc.s 5 (System.Boolean)
IL_008B: ldarg.0
IL_008C: call static System.Boolean
RimWorld.Planet.WorldPawnsUtility::IsWorldPawn(Verse.Pawn p)
IL_0091: stloc.s 6 (System.Boolean)
IL_0093: ldarg.0
IL_0094: ldfld RimWorld.Pawn_GuiltTracker Verse.Pawn::guilt
IL_0099: dup
IL_009A: brtrue => Label4
IL_009F: pop
IL_00A0: ldloca.s 22 (System.Nullable`1[System.Boolean])
IL_00A2: initobj System.Nullable`1[System.Boolean]
IL_00A8: ldloc.s 22 (System.Nullable`1[System.Boolean])
IL_00AA: br => Label5
IL_00AF: Label4
IL_00AF: call System.Boolean RimWorld.Pawn_GuiltTracker::get_IsGuilty()
IL_00B4: newobj System.Void
System.Nullable`1<System.Boolean>::.ctor(System.Boolean value)
IL_00B9: Label5
IL_00B9: stloc.s 7 (System.Nullable`1[System.Boolean])
IL_00BB: ldarg.0
IL_00BC: call static RimWorld.Planet.Caravan
RimWorld.Planet.CaravanUtility::GetCaravan(Verse.Pawn pawn)
IL_00C1: stloc.s 8 (RimWorld.Planet.Caravan)
IL_00C3: ldnull
IL_00C4: stloc.s 9 (RimWorld.Building_Grave)
IL_00C6: ldarg.0
IL_00C7: ldfld RimWorld.Pawn_Ownership Verse.Pawn::ownership
IL_00CC: brfalse => Label6
IL_00D1: ldarg.0
IL_00D2: ldfld RimWorld.Pawn_Ownership Verse.Pawn::ownership
IL_00D7: callvirt RimWorld.Building_Grave
RimWorld.Pawn_Ownership::get_AssignedGrave()
IL_00DC: stloc.s 9 (RimWorld.Building_Grave)
IL_00DE: Label6
IL_00DE: ldarg.0
IL_00DF: call static RimWorld.Building_Bed
RimWorld.RestUtility::CurrentBed(Verse.Pawn p)
IL_00E4: stloc.s 10 (RimWorld.Building_Bed)
IL_00E6: ldnull
IL_00E7: stloc.s 11 (Verse.ThingOwner)
IL_00E9: ldarg.0
IL_00EA: call System.Boolean Verse.Pawn::get_InContainerEnclosed()
IL_00EF: stloc.s 12 (System.Boolean)
IL_00F1: ldloc.s 12 (System.Boolean)
IL_00F3: brfalse => Label7
IL_00F8: ldarg.0
IL_00F9: ldfld Verse.ThingOwner Verse.Thing::holdingOwner
IL_00FE: stloc.s 11 (Verse.ThingOwner)
IL_0100: ldloc.s 11 (Verse.ThingOwner)
IL_0102: ldarg.0
IL_0103: callvirt abstract virtual System.Boolean
Verse.ThingOwner::Remove(Verse.Thing item)
IL_0108: pop
IL_0109: Label7
IL_0109: ldc.i4.0
IL_010A: stloc.s 13 (System.Boolean)
IL_010C: ldc.i4.0
IL_010D: stloc.s 14 (System.Boolean)
IL_010F: ldc.i4.0
IL_0110: stloc.s 15 (System.Boolean)
IL_0112: call static Verse.ProgramState
Verse.Current::get_ProgramState()
IL_0117: ldc.i4.2
IL_0118: bne.un => Label8
IL_011D: ldloc.2
IL_011E: brfalse => Label9
IL_0123: ldloc.2
IL_0124: ldfld Verse.DesignationManager Verse.Map::designationManager
IL_0129: ldarg.0
IL_012A: ldsfld Verse.DesignationDef RimWorld.DesignationDefOf::Hunt
IL_012F: callvirt Verse.Designation
Verse.DesignationManager::DesignationOn(Verse.Thing t, Verse.DesignationDef def)
IL_0134: ldnull
IL_0135: cgt.un
IL_0137: stloc.s 13 (System.Boolean)
IL_0139: ldarg.0
IL_013A: call static System.Boolean
RimWorld.PawnUtility::ShouldBeSlaughtered(Verse.Pawn pawn)
IL_013F: stloc.s 14 (System.Boolean)
IL_0141: ldloc.2
IL_0142: ldfld Verse.AI.Group.LordManager Verse.Map::lordManager
IL_0147: ldfld System.Collections.Generic.List`1<Verse.AI.Group.Lord>
Verse.AI.Group.LordManager::lords
IL_014C: callvirt
System.Collections.Generic.Enumerator<Verse.AI.Group.Lord>
System.Collections.Generic.List`1<Verse.AI.Group.Lord>::GetEnumerator()
IL_0151: stloc.s 23
(System.Collections.Generic.List`1+Enumerator[Verse.AI.Group.Lord])
.try
{
IL_0153: br => Label10
IL_0158: Label14
IL_0158: ldloca.s 23
(System.Collections.Generic.List`1+Enumerator[Verse.AI.Group.Lord])
IL_015A: call virtual Verse.AI.Group.Lord
System.Collections.Generic.Enumerator<Verse.AI.Group.Lord>::get_Current()
IL_015F: callvirt Verse.AI.Group.LordJob
Verse.AI.Group.Lord::get_LordJob()
IL_0164: isinst RimWorld.LordJob_Ritual
IL_0169: dup
IL_016A: stloc.s 24 (RimWorld.LordJob_Ritual)
IL_016C: brfalse => Label11
IL_0171: ldloc.s 24 (RimWorld.LordJob_Ritual)
IL_0173: ldfld System.Collections.Generic.List`1<Verse.Pawn>
RimWorld.LordJob_Ritual::pawnsDeathIgnored
IL_0178: ldarg.0
IL_0179: callvirt virtual System.Boolean
System.Collections.Generic.List`1<Verse.Pawn>::Contains(Verse.Pawn item)
IL_017E: brfalse => Label12
IL_0183: ldc.i4.1
IL_0184: stloc.s 15 (System.Boolean)
IL_0186: br => Label13
IL_018B: Label10
IL_018B: Label11
IL_018B: Label12
IL_018B: ldloca.s 23
(System.Collections.Generic.List`1+Enumerator[Verse.AI.Group.Lord])
IL_018D: call virtual System.Boolean
System.Collections.Generic.Enumerator<Verse.AI.Group.Lord>::MoveNext()
IL_0192: brtrue => Label14
IL_0197: Label13
IL_0197: leave => Label15
IL_019C: leave => (autogenerated)
} // end try
.finally
{
IL_01A1: ldloca.s 23
(System.Collections.Generic.List`1+Enumerator[Verse.AI.Group.Lord])
IL_01A3: constrained.
System.Collections.Generic.List`1+Enumerator[Verse.AI.Group.Lord]
IL_01A9: callvirt abstract virtual System.Void
System.IDisposable::Dispose()
IL_01AE: endfinally
IL_01AF: leave => (autogenerated)
} // end handler
IL_01B0: Label8
IL_01B0: Label9
IL_01B0: Label15
IL_01B0: ldarg.0
IL_01B1: call static System.Boolean
RimWorld.PawnUtility::ShouldSendNotificationAbout(Verse.Pawn p)
IL_01B6: brfalse => Label16
IL_01BB: ldloc.s 14 (System.Boolean)
IL_01BD: ldloc.s 15 (System.Boolean)
IL_01BF: or
IL_01C0: brfalse => Label17
IL_01C5: ldarga.s 1
IL_01C7: call System.Boolean
System.Nullable`1<Verse.DamageInfo>::get_HasValue()
IL_01CC: brfalse => Label18
IL_01D1: ldarga.s 1
IL_01D3: call Verse.DamageInfo
System.Nullable`1<Verse.DamageInfo>::get_Value()
IL_01D8: stloc.s 25 (Verse.DamageInfo)
IL_01DA: ldloca.s 25 (Verse.DamageInfo)
IL_01DC: call Verse.DamageDef Verse.DamageInfo::get_Def()
IL_01E1: ldsfld Verse.DamageDef RimWorld.DamageDefOf::ExecutionCut
IL_01E6: beq => Label19
IL_01EB: Label17
IL_01EB: Label18
IL_01EB: ldarg.0
IL_01EC: call System.Boolean Verse.Pawn::get_ForceNoDeathNotification()
IL_01F1: ldc.i4.0
IL_01F2: ceq
IL_01F4: br => Label20
IL_01F9: Label16
IL_01F9: Label19
IL_01F9: ldc.i4.0
IL_01FA: Label20
IL_01FA: stloc.s 16 (System.Boolean)
IL_01FC: ldc.r4 0
IL_0201: stloc.s 17 (System.Single)
IL_0203: ldarg.0
IL_0204: ldsfld Verse.ThingDef RimWorld.ThingDefOf::Fire
IL_0209: call static Verse.Thing
Verse.AttachmentUtility::GetAttachment(Verse.Thing t, Verse.ThingDef def)
IL_020E: stloc.s 18 (Verse.Thing)
IL_0210: ldloc.s 18 (Verse.Thing)
IL_0212: brfalse => Label21
IL_0217: ldloc.s 18 (Verse.Thing)
IL_0219: castclass RimWorld.Fire
IL_021E: callvirt virtual System.Single RimWorld.Fire::CurrentSize()
IL_0223: stloc.s 17 (System.Single)
IL_0225: Label21
IL_0225: ldc.i4.2
IL_0226: stloc.0
IL_0227: ldarg.0
IL_0228: ldarg.1
IL_0229: ldarg.2
IL_022A: ldloc.s 4 (System.Boolean)
IL_022C: call System.Void
Verse.Pawn::DoKillSideEffects(System.Nullable`1<Verse.DamageInfo> dinfo,
Verse.Hediff exactCulprit, System.Boolean spawned)
IL_0231: ldc.i4.3
IL_0232: stloc.0
IL_0233: ldarg.0
IL_0234: ldarg.1
IL_0235: ldloc.2
IL_0236: call System.Void
Verse.Pawn::PreDeathPawnModifications(System.Nullable`1<Verse.DamageInfo> dinfo,
Verse.Map map)
IL_023B: ldc.i4.4
IL_023C: stloc.0
IL_023D: ldarg.0
IL_023E: ldarg.1
IL_023F: ldloca.s 2 (Verse.Map)
IL_0241: ldloca.s 4 (System.Boolean)
IL_0243: call System.Void
Verse.Pawn::DropBeforeDying(System.Nullable`1<Verse.DamageInfo> dinfo, Verse.Map&
map, System.Boolean& spawned)
IL_0248: ldc.i4.5
IL_0249: stloc.0
IL_024A: ldarg.0
IL_024B: ldfld Verse.Pawn_HealthTracker Verse.Pawn::health
IL_0250: callvirt System.Void Verse.Pawn_HealthTracker::SetDead()
IL_0255: ldarg.0
IL_0256: ldfld Verse.Pawn_HealthTracker Verse.Pawn::health
IL_025B: ldfld Verse.Effecter
Verse.Pawn_HealthTracker::deflectionEffecter
IL_0260: brfalse => Label22
IL_0265: ldarg.0
IL_0266: ldfld Verse.Pawn_HealthTracker Verse.Pawn::health
IL_026B: ldfld Verse.Effecter
Verse.Pawn_HealthTracker::deflectionEffecter
IL_0270: callvirt System.Void Verse.Effecter::Cleanup()
IL_0275: ldarg.0
IL_0276: ldfld Verse.Pawn_HealthTracker Verse.Pawn::health
IL_027B: ldnull
IL_027C: stfld Verse.Effecter
Verse.Pawn_HealthTracker::deflectionEffecter
IL_0281: Label22
IL_0281: ldarg.0
IL_0282: ldfld Verse.Pawn_HealthTracker Verse.Pawn::health
IL_0287: ldfld Verse.Effecter Verse.Pawn_HealthTracker::woundedEffecter
IL_028C: brfalse => Label23
IL_0291: ldarg.0
IL_0292: ldfld Verse.Pawn_HealthTracker Verse.Pawn::health
IL_0297: ldfld Verse.Effecter Verse.Pawn_HealthTracker::woundedEffecter
IL_029C: callvirt System.Void Verse.Effecter::Cleanup()
IL_02A1: ldarg.0
IL_02A2: ldfld Verse.Pawn_HealthTracker Verse.Pawn::health
IL_02A7: ldnull
IL_02A8: stfld Verse.Effecter Verse.Pawn_HealthTracker::woundedEffecter
IL_02AD: Label23
IL_02AD: ldloc.s 8 (RimWorld.Planet.Caravan)
IL_02AF: brfalse => Label24
IL_02B4: ldloc.s 8 (RimWorld.Planet.Caravan)
IL_02B6: ldarg.0
IL_02B7: callvirt virtual System.Void
RimWorld.Planet.Caravan::Notify_MemberDied(Verse.Pawn member)
IL_02BC: Label24
IL_02BC: ldarg.0
IL_02BD: call static Verse.AI.Group.Lord
Verse.AI.Group.LordUtility::GetLord(Verse.Pawn p)
IL_02C2: stloc.s 19 (Verse.AI.Group.Lord)
IL_02C4: ldloc.s 19 (Verse.AI.Group.Lord)
IL_02C6: brfalse => Label25
IL_02CB: ldloc.s 19 (Verse.AI.Group.Lord)
IL_02CD: ldarg.0
IL_02CE: ldc.i4.3
IL_02CF: ldarg.1
IL_02D0: callvirt System.Void
Verse.AI.Group.Lord::Notify_PawnLost(Verse.Pawn pawn,
Verse.AI.Group.PawnLostCondition cond, System.Nullable`1<Verse.DamageInfo> dinfo)
IL_02D5: Label25
IL_02D5: ldloc.s 4 (System.Boolean)
IL_02D7: brfalse => Label26
IL_02DC: ldarg.0
IL_02DD: ldc.i4.0
IL_02DE: ldc.i4.0
IL_02DF: call System.Void
Verse.Pawn::DropAndForbidEverything(System.Boolean
keepInventoryAndEquipmentIfInBed, System.Boolean rememberPrimary)
IL_02E4: Label26
IL_02E4: ldloc.s 4 (System.Boolean)
IL_02E6: brfalse => Label27
IL_02EB: ldarg.0
IL_02EC: ldloc.2
IL_02ED: ldc.i4.2
IL_02EE: ldnull
IL_02EF: call static System.Void
RimWorld.GenLeaving::DoLeavingsFor(Verse.Thing diedThing, Verse.Map map,
Verse.DestroyMode mode, System.Collections.Generic.List`1<Verse.Thing>
listOfLeavingsOut)
IL_02F4: Label27
IL_02F4: ldarg.0
IL_02F5: ldc.i4.0
IL_02F6: call System.Boolean
Verse.Thing::DeSpawnOrDeselect(Verse.DestroyMode mode)
IL_02FB: ldarg.0
IL_02FC: ldfld RimWorld.Pawn_RoyaltyTracker Verse.Pawn::royalty
IL_0301: brfalse => Label28
IL_0306: ldarg.0
IL_0307: ldfld RimWorld.Pawn_RoyaltyTracker Verse.Pawn::royalty
IL_030C: callvirt System.Void
RimWorld.Pawn_RoyaltyTracker::Notify_PawnKilled()
IL_0311: Label28
IL_0311: ldnull
IL_0312: stloc.s 20 (Verse.Corpse)
IL_0314: ldarg.0
IL_0315: call static System.Boolean
Verse.PawnGenerator::IsPawnBeingGeneratedAndNotAllowsDead(Verse.Pawn pawn)
IL_031A: brtrue => Label29
IL_031F: ldloc.s 12 (System.Boolean)
IL_0321: brfalse => Label30
IL_0326: ldarg.0
IL_0327: ldloc.s 9 (RimWorld.Building_Grave)
IL_0329: ldloc.s 10 (RimWorld.Building_Bed)
IL_032B: call Verse.Corpse
Verse.Pawn::MakeCorpse(RimWorld.Building_Grave assignedGrave, RimWorld.Building_Bed
currentBed)
IL_0330: stloc.s 20 (Verse.Corpse)
IL_0332: ldloc.s 11 (Verse.ThingOwner)
IL_0334: ldloc.s 20 (Verse.Corpse)
IL_0336: ldc.i4.1
IL_0337: callvirt abstract virtual System.Boolean
Verse.ThingOwner::TryAdd(Verse.Thing item, System.Boolean
canMergeWithExistingStacks)
IL_033C: brtrue => Label31
IL_0341: ldloc.s 20 (Verse.Corpse)
IL_0343: ldc.i4.0
IL_0344: callvirt virtual System.Void
Verse.Thing::Destroy(Verse.DestroyMode mode)
IL_0349: ldnull
IL_034A: stloc.s 20 (Verse.Corpse)
IL_034C: br => Label32
IL_0351: Label30
IL_0351: ldloc.s 5 (System.Boolean)
IL_0353: brfalse => Label33
IL_0358: ldarg.0
IL_0359: ldfld Verse.ThingOwner Verse.Thing::holdingOwner
IL_035E: brfalse => Label34
IL_0363: ldarg.0
IL_0364: ldfld Verse.ThingOwner Verse.Thing::holdingOwner
IL_0369: ldarg.0
IL_036A: callvirt abstract virtual System.Boolean
Verse.ThingOwner::Remove(Verse.Thing item)
IL_036F: pop
IL_0370: Label34
IL_0370: ldarg.0
IL_0371: ldloc.s 9 (RimWorld.Building_Grave)
IL_0373: ldloc.s 10 (RimWorld.Building_Bed)
IL_0375: call Verse.Corpse
Verse.Pawn::MakeCorpse(RimWorld.Building_Grave assignedGrave, RimWorld.Building_Bed
currentBed)
IL_037A: stloc.s 20 (Verse.Corpse)
IL_037C: ldloc.s 20 (Verse.Corpse)
IL_037E: ldloc.1
IL_037F: ldloc.3
IL_0380: ldc.i4.0
IL_0381: ldnull
IL_0382: ldnull
IL_0383: ldloca.s 26 (Verse.Rot4)
IL_0385: initobj Verse.Rot4
IL_038B: ldloc.s 26 (Verse.Rot4)
IL_038D: call static System.Boolean
Verse.GenPlace::TryPlaceThing(Verse.Thing thing, Verse.IntVec3 center, Verse.Map
map, Verse.ThingPlaceMode mode, System.Action`2<Verse.Thing, System.Int32>
placedAction, System.Predicate`1<Verse.IntVec3> nearPlaceValidator, Verse.Rot4 rot)
IL_0392: brfalse => Label35
IL_0397: ldloc.s 20 (Verse.Corpse)
IL_0399: ldarg.0
IL_039A: call Verse.Rot4 Verse.Thing::get_Rotation()
IL_039F: callvirt System.Void Verse.Thing::set_Rotation(Verse.Rot4 value)
IL_03A4: ldarg.0
IL_03A5: ldarg.1
IL_03A6: call static System.Boolean
RimWorld.HuntJobUtility::WasKilledByHunter(Verse.Pawn pawn,
System.Nullable`1<Verse.DamageInfo> dinfo)
IL_03AB: brfalse => Label36
IL_03B0: ldarga.s 1
IL_03B2: call Verse.DamageInfo
System.Nullable`1<Verse.DamageInfo>::get_Value()
IL_03B7: stloc.s 25 (Verse.DamageInfo)
IL_03B9: ldloca.s 25 (Verse.DamageInfo)
IL_03BB: call Verse.Thing Verse.DamageInfo::get_Instigator()
IL_03C0: castclass Verse.Pawn
IL_03C5: ldloc.s 20 (Verse.Corpse)
IL_03C7: call static Verse.LocalTargetInfo
Verse.LocalTargetInfo::op_Implicit(Verse.Thing t)
IL_03CC: ldarga.s 1
IL_03CE: call Verse.DamageInfo
System.Nullable`1<Verse.DamageInfo>::get_Value()
IL_03D3: stloc.s 25 (Verse.DamageInfo)
IL_03D5: ldloca.s 25 (Verse.DamageInfo)
IL_03D7: call Verse.Thing Verse.DamageInfo::get_Instigator()
IL_03DC: castclass Verse.Pawn
IL_03E1: callvirt Verse.AI.Job Verse.Pawn::get_CurJob()
IL_03E6: ldc.i4.1
IL_03E7: ldc.i4.m1
IL_03E8: ldnull
IL_03E9: ldc.i4.1
IL_03EA: call static System.Boolean
Verse.AI.ReservationUtility::Reserve(Verse.Pawn p, Verse.LocalTargetInfo target,
Verse.AI.Job job, System.Int32 maxPawns, System.Int32 stackCount,
Verse.ReservationLayerDef layer, System.Boolean errorOnFailed)
IL_03EF: pop
IL_03F0: br => Label37
IL_03F5: Label36
IL_03F5: ldloc.s 13 (System.Boolean)
IL_03F7: brtrue => Label38
IL_03FC: ldloc.s 14 (System.Boolean)
IL_03FE: brtrue => Label39
IL_0403: ldloc.s 20 (Verse.Corpse)
IL_0405: call static System.Void
RimWorld.ForbidUtility::SetForbiddenIfOutsideHomeArea(Verse.Thing t)
IL_040A: Label37
IL_040A: Label38
IL_040A: Label39
IL_040A: ldloc.s 17 (System.Single)
IL_040C: ldc.r4 0
IL_0411: ble.un => Label40
IL_0416: ldloc.s 20 (Verse.Corpse)
IL_0418: callvirt virtual Verse.IntVec3 Verse.Thing::get_Position()
IL_041D: ldloc.s 20 (Verse.Corpse)
IL_041F: callvirt virtual Verse.Map Verse.Thing::get_Map()
IL_0424: ldloc.s 17 (System.Single)
IL_0426: call static System.Boolean
RimWorld.FireUtility::TryStartFireIn(Verse.IntVec3 c, Verse.Map map, System.Single
fireSize)
IL_042B: pop
IL_042C: br => Label41
IL_0431: Label35
IL_0431: ldloc.s 20 (Verse.Corpse)
IL_0433: ldc.i4.0
IL_0434: callvirt virtual System.Void
Verse.Thing::Destroy(Verse.DestroyMode mode)
IL_0439: ldnull
IL_043A: stloc.s 20 (Verse.Corpse)
IL_043C: br => Label42
IL_0441: Label33
IL_0441: ldloc.s 8 (RimWorld.Planet.Caravan)
IL_0443: brfalse => Label43
IL_0448: ldloc.s 8 (RimWorld.Planet.Caravan)
IL_044A: callvirt System.Boolean RimWorld.Planet.WorldObject::get_Spawned()
IL_044F: brfalse => Label44
IL_0454: ldarg.0
IL_0455: ldloc.s 9 (RimWorld.Building_Grave)
IL_0457: ldloc.s 10 (RimWorld.Building_Bed)
IL_0459: call Verse.Corpse
Verse.Pawn::MakeCorpse(RimWorld.Building_Grave assignedGrave, RimWorld.Building_Bed
currentBed)
IL_045E: stloc.s 20 (Verse.Corpse)
IL_0460: ldloc.s 8 (RimWorld.Planet.Caravan)
IL_0462: ldloc.s 20 (Verse.Corpse)
IL_0464: ldc.i4.1
IL_0465: callvirt System.Void
RimWorld.Planet.Caravan::AddPawnOrItem(Verse.Thing thing, System.Boolean
addCarriedPawnToWorldPawnsIfAny)
IL_046A: br => Label45
IL_046F: Label43
IL_046F: Label44
IL_046F: ldarg.0
IL_0470: ldfld Verse.ThingOwner Verse.Thing::holdingOwner
IL_0475: brtrue => Label46
IL_047A: ldarg.0
IL_047B: call static System.Boolean
RimWorld.Planet.WorldPawnsUtility::IsWorldPawn(Verse.Pawn p)
IL_0480: brfalse => Label47
IL_0485: Label46
IL_0485: ldarg.0
IL_0486: call static System.Void
Verse.Corpse::PostCorpseDestroy(Verse.Pawn pawn)
IL_048B: br => Label48
IL_0490: Label47
IL_0490: ldarg.0
IL_0491: ldloc.s 9 (RimWorld.Building_Grave)
IL_0493: ldloc.s 10 (RimWorld.Building_Bed)
IL_0495: call Verse.Corpse
Verse.Pawn::MakeCorpse(RimWorld.Building_Grave assignedGrave, RimWorld.Building_Bed
currentBed)
IL_049A: stloc.s 20 (Verse.Corpse)
IL_049C: Label29
IL_049C: Label31
IL_049C: Label32
IL_049C: Label40
IL_049C: Label41
IL_049C: Label42
IL_049C: Label45
IL_049C: Label48
IL_049C: ldloc.s 20 (Verse.Corpse)
IL_049E: brfalse => Label49
IL_04A3: ldarg.0
IL_04A4: ldfld Verse.Pawn_HealthTracker Verse.Pawn::health
IL_04A9: ldfld Verse.HediffSet Verse.Pawn_HealthTracker::hediffSet
IL_04AE: ldsfld Verse.HediffDef RimWorld.HediffDefOf::ToxicBuildup
IL_04B3: ldc.i4.0
IL_04B4: callvirt Verse.Hediff
Verse.HediffSet::GetFirstHediffOfDef(Verse.HediffDef def, System.Boolean
mustBeVisible)
IL_04B9: stloc.s 27 (Verse.Hediff)
IL_04BB: ldarg.0
IL_04BC: ldfld Verse.Pawn_HealthTracker Verse.Pawn::health
IL_04C1: ldfld Verse.HediffSet Verse.Pawn_HealthTracker::hediffSet
IL_04C6: ldsfld Verse.HediffDef RimWorld.HediffDefOf::Scaria
IL_04CB: ldc.i4.0
IL_04CC: callvirt Verse.Hediff
Verse.HediffSet::GetFirstHediffOfDef(Verse.HediffDef def, System.Boolean
mustBeVisible)
IL_04D1: stloc.s 28 (Verse.Hediff)
IL_04D3: ldloc.s 20 (Verse.Corpse)
IL_04D5: callvirt RimWorld.CompRottable Verse.ThingWithComps::GetComp()
IL_04DA: dup
IL_04DB: stloc.s 29 (RimWorld.CompRottable)
IL_04DD: brfalse => Label50
IL_04E2: ldloc.s 27 (Verse.Hediff)
IL_04E4: brfalse => Label51
IL_04E9: call static System.Single Verse.Rand::get_Value()
IL_04EE: ldloc.s 27 (Verse.Hediff)
IL_04F0: callvirt virtual System.Single Verse.Hediff::get_Severity()
IL_04F5: blt => Label52
IL_04FA: Label51
IL_04FA: ldloc.s 28 (Verse.Hediff)
IL_04FC: brfalse => Label53
IL_0501: call static RimWorld.Storyteller Verse.Find::get_Storyteller()
IL_0506: ldfld RimWorld.Difficulty RimWorld.Storyteller::difficulty
IL_050B: ldfld System.Single RimWorld.Difficulty::scariaRotChance
IL_0510: call static System.Boolean Verse.Rand::Chance(System.Single
chance)
IL_0515: brfalse => Label54
IL_051A: Label52
IL_051A: ldloc.s 29 (RimWorld.CompRottable)
IL_051C: callvirt System.Void RimWorld.CompRottable::RotImmediately()
IL_0521: Label49
IL_0521: Label50
IL_0521: Label53
IL_0521: Label54
IL_0521: ldarg.0
IL_0522: call System.Boolean Verse.Thing::get_Destroyed()
IL_0527: brtrue => Label55
IL_052C: ldarg.0
IL_052D: ldc.i4.2
IL_052E: callvirt virtual System.Void
Verse.Thing::Destroy(Verse.DestroyMode mode)
IL_0533: Label55
IL_0533: ldarg.0
IL_0534: call static System.Void
RimWorld.PawnComponentsUtility::RemoveComponentsOnKilled(Verse.Pawn pawn)
IL_0539: ldarg.0
IL_053A: ldfld Verse.Pawn_HealthTracker Verse.Pawn::health
IL_053F: ldfld Verse.HediffSet Verse.Pawn_HealthTracker::hediffSet
IL_0544: callvirt System.Void Verse.HediffSet::DirtyCache()
IL_0549: ldarg.0
IL_054A: call static System.Void
RimWorld.PortraitsCache::SetDirty(Verse.Pawn pawn)
IL_054F: ldarg.0
IL_0550: call static System.Boolean
Verse.GlobalTextureAtlasManager::TryMarkPawnFrameSetDirty(Verse.Pawn pawn)
IL_0555: pop
IL_0556: brfalse => Label56
IL_055B: ldloc.s 20 (Verse.Corpse)
IL_055D: brfalse => Label57
IL_0562: call static RimWorld.Selector Verse.Find::get_Selector()
IL_0567: ldloc.s 20 (Verse.Corpse)
IL_0569: ldc.i4.0
IL_056A: ldc.i4.0
IL_056B: callvirt System.Void RimWorld.Selector::Select(System.Object obj,
System.Boolean playSound, System.Boolean forceDesignatorDeselect)
IL_0570: Label56
IL_0570: Label57
IL_0570: ldc.i4.6
IL_0571: stloc.0
IL_0572: ldarg.0
IL_0573: ldfld Verse.Pawn_HealthTracker Verse.Pawn::health
IL_0578: ldfld Verse.HediffSet Verse.Pawn_HealthTracker::hediffSet
IL_057D: callvirt System.Void Verse.HediffSet::Notify_PawnDied()
IL_0582: ldarg.0
IL_0583: ldfld RimWorld.Pawn_GeneTracker Verse.Pawn::genes
IL_0588: dup
IL_0589: brtrue => Label58
IL_058E: pop
IL_058F: br => Label59
IL_0594: Label58
IL_0594: call System.Void RimWorld.Pawn_GeneTracker::Notify_PawnDied()
IL_0599: Label59
IL_0599: ldarg.0
IL_059A: call RimWorld.Faction Verse.Pawn::get_HomeFaction()
IL_059F: stloc.s 21 (RimWorld.Faction)
IL_05A1: ldloc.s 21 (RimWorld.Faction)
IL_05A3: brfalse => Label60
IL_05A8: ldloc.s 21 (RimWorld.Faction)
IL_05AA: ldarg.0
IL_05AB: ldarg.1
IL_05AC: ldloc.s 6 (System.Boolean)
IL_05AE: ldloc.s 7 (System.Nullable`1[System.Boolean])
IL_05B0: stloc.s 22 (System.Nullable`1[System.Boolean])
IL_05B2: ldc.i4.1
IL_05B3: stloc.s 30 (System.Boolean)
IL_05B5: ldloca.s 22 (System.Nullable`1[System.Boolean])
IL_05B7: call System.Boolean
System.Nullable`1<System.Boolean>::GetValueOrDefault()
IL_05BC: ldloc.s 30 (System.Boolean)
IL_05BE: ceq
IL_05C0: ldloca.s 22 (System.Nullable`1[System.Boolean])
IL_05C2: call System.Boolean
System.Nullable`1<System.Boolean>::get_HasValue()
IL_05C7: and
IL_05C8: ldloc.3
IL_05C9: callvirt System.Void
RimWorld.Faction::Notify_MemberDied(Verse.Pawn member,
System.Nullable`1<Verse.DamageInfo> dinfo, System.Boolean wasWorldPawn,
System.Boolean wasGuilty, Verse.Map map)
IL_05CE: Label60
IL_05CE: ldloc.s 20 (Verse.Corpse)
IL_05D0: brfalse => Label61
IL_05D5: ldarg.0
IL_05D6: call Verse.RaceProperties Verse.Pawn::get_RaceProps()
IL_05DB: callvirt Verse.DeathActionWorker
Verse.RaceProperties::get_DeathActionWorker()
IL_05E0: ldnull
IL_05E1: cgt.un
IL_05E3: ldloc.s 4 (System.Boolean)
IL_05E5: and
IL_05E6: brfalse => Label62
IL_05EB: ldarg.0
IL_05EC: call Verse.RaceProperties Verse.Pawn::get_RaceProps()
IL_05F1: callvirt Verse.DeathActionWorker
Verse.RaceProperties::get_DeathActionWorker()
IL_05F6: ldloc.s 20 (Verse.Corpse)
IL_05F8: callvirt abstract virtual System.Void
Verse.DeathActionWorker::PawnDied(Verse.Corpse corpse)
IL_05FD: Label62
IL_05FD: call static RimWorld.Scenario Verse.Find::get_Scenario()
IL_0602: brfalse => Label63
IL_0607: call static RimWorld.Scenario Verse.Find::get_Scenario()
IL_060C: ldloc.s 20 (Verse.Corpse)
IL_060E: callvirt System.Void
RimWorld.Scenario::Notify_PawnDied(Verse.Corpse corpse)
IL_0613: Label61
IL_0613: Label63
IL_0613: ldarg.0
IL_0614: call virtual RimWorld.Faction Verse.Thing::get_Faction()
IL_0619: brfalse => Label64
IL_061E: ldarg.0
IL_061F: call virtual RimWorld.Faction Verse.Thing::get_Faction()
IL_0624: callvirt System.Boolean RimWorld.Faction::get_IsPlayer()
IL_0629: brfalse => Label65
IL_062E: ldarg.0
IL_062F: call static System.Void
RimWorld.BillUtility::Notify_ColonistUnavailable(Verse.Pawn pawn)
IL_0634: Label64
IL_0634: Label65
IL_0634: ldloc.s 5 (System.Boolean)
IL_0636: brfalse => Label66
IL_063B: ldarg.0
IL_063C: ldloc.3
IL_063D: call static System.Void
RimWorld.GenHostility::Notify_PawnLostForTutor(Verse.Pawn pawn, Verse.Map map)
IL_0642: Label66
IL_0642: ldarg.0
IL_0643: call virtual RimWorld.Faction Verse.Thing::get_Faction()
IL_0648: brfalse => Label67
IL_064D: ldarg.0
IL_064E: call virtual RimWorld.Faction Verse.Thing::get_Faction()
IL_0653: callvirt System.Boolean RimWorld.Faction::get_IsPlayer()
IL_0658: brfalse => Label68
IL_065D: call static Verse.ProgramState
Verse.Current::get_ProgramState()
IL_0662: ldc.i4.2
IL_0663: bne.un => Label69
IL_0668: call static RimWorld.ColonistBar Verse.Find::get_ColonistBar()
IL_066D: callvirt System.Void RimWorld.ColonistBar::MarkColonistsDirty()
IL_0672: Label67
IL_0672: Label68
IL_0672: Label69
IL_0672: ldarg.0
IL_0673: ldfld RimWorld.Pawn_PsychicEntropyTracker
Verse.Pawn::psychicEntropy
IL_0678: dup
IL_0679: brtrue => Label70
IL_067E: pop
IL_067F: br => Label71
IL_0684: Label70
IL_0684: call System.Void
RimWorld.Pawn_PsychicEntropyTracker::Notify_PawnDied()
IL_0689: Label71
IL_0689: nop
.try
{
IL_068A: ldarg.0
IL_068B: call RimWorld.Ideo Verse.Pawn::get_Ideo()
IL_0690: dup
IL_0691: brtrue => Label72
IL_0696: pop
IL_0697: br => Label73
IL_069C: Label72
IL_069C: ldarg.0
IL_069D: call System.Void
RimWorld.Ideo::Notify_MemberDied(Verse.Pawn member)
IL_06A2: Label73
IL_06A2: ldarg.0
IL_06A3: call RimWorld.Ideo Verse.Pawn::get_Ideo()
IL_06A8: dup
IL_06A9: brtrue => Label74
IL_06AE: pop
IL_06AF: br => Label75
IL_06B4: Label74
IL_06B4: ldarg.0
IL_06B5: ldloc.2
IL_06B6: call System.Void
RimWorld.Ideo::Notify_MemberLost(Verse.Pawn member, Verse.Map map)
IL_06BB: Label75
IL_06BB: leave => Label76
IL_06C0: leave => (autogenerated)
} // end try
.catch System.Exception
{
IL_06C5: stloc.s 31 (System.Exception)
IL_06C7: ldstr "Error while notifying ideo of pawn death: "
IL_06CC: ldloc.s 31 (System.Exception)
IL_06CE: call static System.String
System.String::Concat(System.Object arg0, System.Object arg1)
IL_06D3: call static System.Void Verse.Log::Error(System.String
text)
IL_06D8: leave => Label77
IL_06DD: leave => (autogenerated)
} // end handler
IL_06E2: Label76
IL_06E2: Label77
IL_06E2: ldloc.s 16 (System.Boolean)
IL_06E4: brfalse => Label78
IL_06E9: ldarg.0
IL_06EA: ldfld Verse.Pawn_HealthTracker Verse.Pawn::health
IL_06EF: ldarg.1
IL_06F0: ldarg.2
IL_06F1: ldloc.s 8 (RimWorld.Planet.Caravan)
IL_06F3: callvirt System.Void
Verse.Pawn_HealthTracker::NotifyPlayerOfKilled(System.Nullable`1<Verse.DamageInfo>
dinfo, Verse.Hediff hediff, RimWorld.Planet.Caravan caravan)
IL_06F8: Label78
IL_06F8: call static RimWorld.QuestManager
Verse.Find::get_QuestManager()
IL_06FD: ldarg.0
IL_06FE: ldarg.1
IL_06FF: callvirt System.Void
RimWorld.QuestManager::Notify_PawnKilled(Verse.Pawn pawn,
System.Nullable`1<Verse.DamageInfo> dinfo)
IL_0704: call static RimWorld.FactionManager
Verse.Find::get_FactionManager()
IL_0709: ldarg.0
IL_070A: callvirt System.Void
RimWorld.FactionManager::Notify_PawnKilled(Verse.Pawn pawn)
IL_070F: call static RimWorld.IdeoManager Verse.Find::get_IdeoManager()
IL_0714: ldarg.0
IL_0715: callvirt System.Void
RimWorld.IdeoManager::Notify_PawnKilled(Verse.Pawn pawn)
IL_071A: call static System.Boolean
Verse.ModsConfig::get_BiotechActive()
IL_071F: brfalse => Label79
IL_0724: ldarg.0
IL_0725: call static System.Boolean
MechanitorUtility::IsMechanitor(Verse.Pawn pawn)
IL_072A: brfalse => Label80
IL_072F: call static RimWorld.History Verse.Find::get_History()
IL_0734: callvirt System.Void RimWorld.History::Notify_MechanitorDied()
IL_0739: Label79
IL_0739: Label80
IL_0739: call static RimWorld.GameComponent_Bossgroup
Verse.Find::get_BossgroupManager()
IL_073E: ldarg.0
IL_073F: callvirt virtual System.Void
RimWorld.GameComponent_Bossgroup::Notify_PawnKilled(Verse.Pawn pawn)
IL_0744: leave => Label81
IL_0749: leave => (autogenerated)
} // end try
.catch System.Exception
{
IL_074E: stloc.s 32 (System.Exception)
IL_0750: ldstr "Error while killing {0} during phase {1}: {2}"
IL_0755: ldarg.0
IL_0756: call static System.String Verse.Gen::ToStringSafe(Verse.Pawn
obj)
IL_075B: ldloc.0
IL_075C: box System.Int32
IL_0761: ldloc.s 32 (System.Exception)
IL_0763: call static System.String System.String::Format(System.String
format, System.Object arg0, System.Object arg1, System.Object arg2)
IL_0768: call static System.Void Verse.Log::Error(System.String text)
IL_076D: leave => Label82
IL_0772: leave => (autogenerated)
} // end handler
IL_0777: // end original
IL_0777: Label81
IL_0777: Label82
IL_0777: Label0
IL_0777: ldarg.0
IL_0778: call static System.Void
AnimalTab.Patch_Pawn_Kill::Postfix(Verse.Pawn __instance)
IL_077D: ldarg.0
IL_077E: ldarg 1
IL_0782: call static System.Void
AllowTool.Patches.Pawn_Kill_Patch::UnforbidDraftedHuntBody(Verse.Pawn __instance,
System.Nullable`1<Verse.DamageInfo> dinfo)
IL_0787: ldarg.0
IL_0788: call static System.Void
VFE.Mechanoids.HarmonyPatches.MachinesDie::Postfix(Verse.Pawn __instance)
IL_078D: ldarg.0
IL_078E: call static System.Void VFECore.Patch_Kill::Postfix(Verse.Pawn
__instance)
IL_0793: ldarga 1
IL_0797: call static System.Void
Rimatomics.Harmony_Pawn_Kill::Postfix(System.Nullable`1& dinfo)
IL_079C: ret
DONE

### Patch: System.Boolean


RimWorld.IncidentWorker::TryExecute(RimWorld.IncidentParms parms)
### Replacement: static System.Boolean
RimWorld.IncidentWorker::RimWorld.IncidentWorker.TryExecute_Patch2(RimWorld.Inciden
tWorker this, RimWorld.IncidentParms parms)
IL_0000: Local var 0: Verse.Map
IL_0000: Local var 1: System.Boolean
IL_0000: Local var 2: Verse.Pawn
IL_0000: Local var 3: RimWorld.Tale
IL_0000: Local var 4: System.Boolean
IL_0000: Local var 5: System.Boolean
IL_0000: ldc.i4 0
IL_0005: stloc 4 (System.Boolean)
IL_0009: ldc.i4 0
IL_000E: stloc 5 (System.Boolean)
IL_0012: ldc.i4.1
IL_0013: stloc 5 (System.Boolean)
IL_0017: ldloc 5 (System.Boolean)
IL_001B: brfalse => Label1
IL_0020: ldarg.0
IL_0021: ldarg 1
IL_0025: call static System.Boolean
VanillaStorytellersExpanded.Patch_TryExecute::Prefix(RimWorld.IncidentWorker
__instance, RimWorld.IncidentParms parms)
IL_002A: stloc 5 (System.Boolean)
IL_002E: Label1
IL_002E: nop
IL_002F: ldloc 5 (System.Boolean)
IL_0033: brfalse => Label0
IL_0038: // start original
IL_0038: ldarg.1
IL_0039: ldfld RimWorld.IIncidentTarget RimWorld.IncidentParms::target
IL_003E: isinst Verse.Map
IL_0043: dup
IL_0044: stloc.0
IL_0045: brfalse => Label2
IL_004A: ldarg.0
IL_004B: ldfld RimWorld.IncidentDef RimWorld.IncidentWorker::def
IL_0050: ldfld System.Boolean RimWorld.IncidentDef::requireColonistsPresent
IL_0055: brfalse => Label3
IL_005A: ldloc.0
IL_005B: ldfld Verse.MapPawns Verse.Map::mapPawns
IL_0060: callvirt System.Int32 Verse.MapPawns::get_FreeColonistsSpawnedCount()
IL_0065: brtrue => Label4
IL_006A: ldc.i4.1
IL_006B: br => Label15
IL_0070: Label2
IL_0070: Label3
IL_0070: Label4
IL_0070: ldarg.0
IL_0071: ldarg.1
IL_0072: callvirt virtual System.Boolean
RimWorld.IncidentWorker::TryExecuteWorker(RimWorld.IncidentParms parms)
IL_0077: stloc.1
IL_0078: ldloc.1
IL_0079: brfalse => Label5
IL_007E: ldarg.0
IL_007F: ldfld RimWorld.IncidentDef RimWorld.IncidentWorker::def
IL_0084: ldfld RimWorld.TaleDef RimWorld.IncidentDef::tale
IL_0089: brfalse => Label6
IL_008E: ldnull
IL_008F: stloc.2
IL_0090: ldarg.1
IL_0091: ldfld RimWorld.IIncidentTarget RimWorld.IncidentParms::target
IL_0096: isinst RimWorld.Planet.Caravan
IL_009B: brfalse => Label7
IL_00A0: ldarg.1
IL_00A1: ldfld RimWorld.IIncidentTarget RimWorld.IncidentParms::target
IL_00A6: castclass RimWorld.Planet.Caravan
IL_00AB: call static Verse.Pawn
RimWorld.Planet.CaravanUtility::RandomOwner(RimWorld.Planet.Caravan caravan)
IL_00B0: stloc.2
IL_00B1: br => Label8
IL_00B6: Label7
IL_00B6: ldarg.1
IL_00B7: ldfld RimWorld.IIncidentTarget RimWorld.IncidentParms::target
IL_00BC: isinst Verse.Map
IL_00C1: brfalse => Label9
IL_00C6: ldarg.1
IL_00C7: ldfld RimWorld.IIncidentTarget RimWorld.IncidentParms::target
IL_00CC: castclass Verse.Map
IL_00D1: ldfld Verse.MapPawns Verse.Map::mapPawns
IL_00D6: callvirt System.Collections.Generic.List`1<Verse.Pawn>
Verse.MapPawns::get_FreeColonistsSpawned()
IL_00DB: ldnull
IL_00DC: call static Verse.Pawn
Verse.GenCollection::RandomElementWithFallback(System.Collections.Generic.IEnumerab
le`1<Verse.Pawn> source, Verse.Pawn fallback)
IL_00E1: stloc.2
IL_00E2: br => Label10
IL_00E7: Label9
IL_00E7: ldarg.1
IL_00E8: ldfld RimWorld.IIncidentTarget RimWorld.IncidentParms::target
IL_00ED: isinst RimWorld.Planet.World
IL_00F2: brfalse => Label11
IL_00F7: call static System.Collections.Generic.List`1<Verse.Pawn>
RimWorld.PawnsFinder::get_AllMapsCaravansAndTravelingTransportPods_Alive_FreeColoni
sts_NoSuspended()
IL_00FC: ldnull
IL_00FD: call static Verse.Pawn
Verse.GenCollection::RandomElementWithFallback(System.Collections.Generic.IEnumerab
le`1<Verse.Pawn> source, Verse.Pawn fallback)
IL_0102: stloc.2
IL_0103: Label8
IL_0103: Label10
IL_0103: Label11
IL_0103: ldloc.2
IL_0104: brfalse => Label12
IL_0109: ldarg.0
IL_010A: ldfld RimWorld.IncidentDef RimWorld.IncidentWorker::def
IL_010F: ldfld RimWorld.TaleDef RimWorld.IncidentDef::tale
IL_0114: ldc.i4.1
IL_0115: newarr System.Object
IL_011A: dup
IL_011B: ldc.i4.0
IL_011C: ldloc.2
IL_011D: stelem.ref
IL_011E: call static RimWorld.Tale
RimWorld.TaleRecorder::RecordTale(RimWorld.TaleDef def, System.Object[] args)
IL_0123: pop
IL_0124: Label6
IL_0124: Label12
IL_0124: ldarg.0
IL_0125: ldfld RimWorld.IncidentDef RimWorld.IncidentWorker::def
IL_012A: ldfld RimWorld.IncidentCategoryDef RimWorld.IncidentDef::category
IL_012F: ldfld RimWorld.TaleDef RimWorld.IncidentCategoryDef::tale
IL_0134: brfalse => Label13
IL_0139: ldarg.0
IL_013A: ldfld RimWorld.IncidentDef RimWorld.IncidentWorker::def
IL_013F: ldfld RimWorld.IncidentCategoryDef RimWorld.IncidentDef::category
IL_0144: ldfld RimWorld.TaleDef RimWorld.IncidentCategoryDef::tale
IL_0149: call static System.Object[] System.Array::Empty()
IL_014E: call static RimWorld.Tale
RimWorld.TaleRecorder::RecordTale(RimWorld.TaleDef def, System.Object[] args)
IL_0153: stloc.3
IL_0154: ldloc.3
IL_0155: brfalse => Label14
IL_015A: ldloc.3
IL_015B: ldarg.0
IL_015C: ldfld RimWorld.IncidentDef RimWorld.IncidentWorker::def
IL_0161: ldfld System.String Verse.Def::label
IL_0166: stfld System.String RimWorld.Tale::customLabel
IL_016B: Label5
IL_016B: Label13
IL_016B: Label14
IL_016B: ldloc.1
IL_016C: // end original
IL_016C: Label15
IL_016C: stloc 4 (System.Boolean)
IL_0170: Label0
IL_0170: call static System.Void Hotseat.PatchStoryteller::Postfix()
IL_0175: ldloc 4 (System.Boolean)
IL_0179: ret
DONE

### Patch: System.Boolean RimWorld.Storyteller::TryFire(RimWorld.FiringIncident fi)


### Replacement: static System.Boolean
RimWorld.Storyteller::RimWorld.Storyteller.TryFire_Patch1(RimWorld.Storyteller
this, RimWorld.FiringIncident fi)
IL_0000: Local var 0: System.Boolean
IL_0000: Local var 1: System.Boolean
IL_0000: ldc.i4 0
IL_0005: stloc 0 (System.Boolean)
IL_0009: ldc.i4 0
IL_000E: stloc 1 (System.Boolean)
IL_0012: ldc.i4.1
IL_0013: stloc 1 (System.Boolean)
IL_0017: ldloc 1 (System.Boolean)
IL_001B: brfalse => Label1
IL_0020: ldarg 1
IL_0024: call static System.Boolean
VanillaStorytellersExpanded.Patch_MakeIncidentsForInterval::Prefix(RimWorld.FiringI
ncident fi)
IL_0029: stloc 1 (System.Boolean)
IL_002D: Label1
IL_002D: nop
IL_002E: ldloc 1 (System.Boolean)
IL_0032: brfalse => Label0
IL_0037: // start original
IL_0037: ldarg.1
IL_0038: ldfld RimWorld.IncidentDef RimWorld.FiringIncident::def
IL_003D: callvirt RimWorld.IncidentWorker RimWorld.IncidentDef::get_Worker()
IL_0042: ldarg.1
IL_0043: ldfld RimWorld.IncidentParms RimWorld.FiringIncident::parms
IL_0048: callvirt System.Boolean
RimWorld.IncidentWorker::CanFireNow(RimWorld.IncidentParms parms)
IL_004D: brfalse => Label2
IL_0052: ldarg.1
IL_0053: ldfld RimWorld.IncidentDef RimWorld.FiringIncident::def
IL_0058: callvirt RimWorld.IncidentWorker RimWorld.IncidentDef::get_Worker()
IL_005D: ldarg.1
IL_005E: ldfld RimWorld.IncidentParms RimWorld.FiringIncident::parms
IL_0063: callvirt System.Boolean
RimWorld.IncidentWorker::TryExecute(RimWorld.IncidentParms parms)
IL_0068: brfalse => Label3
IL_006D: ldarg.1
IL_006E: ldfld RimWorld.IncidentParms RimWorld.FiringIncident::parms
IL_0073: ldfld RimWorld.IIncidentTarget RimWorld.IncidentParms::target
IL_0078: callvirt abstract virtual RimWorld.StoryState
RimWorld.IIncidentTarget::get_StoryState()
IL_007D: ldarg.1
IL_007E: callvirt System.Void
RimWorld.StoryState::Notify_IncidentFired(RimWorld.FiringIncident fi)
IL_0083: ldc.i4.1
IL_0084: br => Label4
IL_0089: Label2
IL_0089: Label3
IL_0089: ldc.i4.0
IL_008A: // end original
IL_008A: Label4
IL_008A: stloc 0 (System.Boolean)
IL_008E: Label0
IL_008E: ldloc 0 (System.Boolean)
IL_0092: ret
DONE

### Patch: virtual System.Boolean


RimWorld.IncidentWorker_Raid::TryExecuteWorker(RimWorld.IncidentParms parms)
### Replacement: static System.Boolean
RimWorld.IncidentWorker_Raid::RimWorld.IncidentWorker_Raid.TryExecuteWorker_Patch1(
RimWorld.IncidentWorker_Raid this, RimWorld.IncidentParms parms)
IL_0000: Local var 0: System.Collections.Generic.List`1<Verse.Pawn>
IL_0000: Local var 1: Verse.TaggedString
IL_0000: Local var 2: Verse.TaggedString
IL_0000: Local var 3: System.Collections.Generic.List`1<Verse.TargetInfo>
IL_0000: Local var 4:
System.Collections.Generic.List`1<System.Collections.Generic.List`1<Verse.Pawn>>
IL_0000: Local var 5: System.Collections.Generic.List`1<Verse.Pawn>
IL_0000: Local var 6: System.Int32
IL_0000: Local var 7: System.Collections.Generic.List`1/Enumerator<Verse.Pawn>
IL_0000: Local var 8: Verse.Pawn
IL_0000: Local var 9: System.Int32
IL_0000: Local var 10: Verse.Pawn
IL_0000: Local var 11: System.Boolean
IL_0000: Local var 12: System.Boolean
IL_0000: ldc.i4 0
IL_0005: stloc 11 (System.Boolean)
IL_0009: ldc.i4 0
IL_000E: stloc 12 (System.Boolean)
IL_0012: ldc.i4.1
IL_0013: stloc 12 (System.Boolean)
IL_0017: ldloc 12 (System.Boolean)
IL_001B: brfalse => Label1
IL_0020: ldarg.0
IL_0021: ldarg 1
IL_0025: call static System.Boolean
VanillaStorytellersExpanded.Patch_TryExecuteWorker::Prefix(RimWorld.IncidentWorker_
Raid __instance, RimWorld.IncidentParms parms)
IL_002A: stloc 12 (System.Boolean)
IL_002E: Label1
IL_002E: nop
IL_002F: ldloc 12 (System.Boolean)
IL_0033: brfalse => Label0
IL_0038: // start original
IL_0038: ldarg.0
IL_0039: ldarg.1
IL_003A: ldloca.s 0 (System.Collections.Generic.List`1[Verse.Pawn])
IL_003C: ldc.i4.0
IL_003D: call System.Boolean
RimWorld.IncidentWorker_Raid::TryGenerateRaidInfo(RimWorld.IncidentParms parms,
System.Collections.Generic.List`1& pawns, System.Boolean debugTest)
IL_0042: brtrue => Label2
IL_0047: ldc.i4.0
IL_0048: br => Label25
IL_004D: Label2
IL_004D: ldarg.0
IL_004E: ldarg.1
IL_004F: callvirt abstract virtual System.String
RimWorld.IncidentWorker_Raid::GetLetterLabel(RimWorld.IncidentParms parms)
IL_0054: call static Verse.TaggedString
Verse.TaggedString::op_Implicit(System.String str)
IL_0059: stloc.1
IL_005A: ldarg.0
IL_005B: ldarg.1
IL_005C: ldloc.0
IL_005D: callvirt abstract virtual System.String
RimWorld.IncidentWorker_Raid::GetLetterText(RimWorld.IncidentParms parms,
System.Collections.Generic.List`1<Verse.Pawn> pawns)
IL_0062: call static Verse.TaggedString
Verse.TaggedString::op_Implicit(System.String str)
IL_0067: stloc.2
IL_0068: ldloc.0
IL_0069: ldloca.s 1 (Verse.TaggedString)
IL_006B: ldloca.s 2 (Verse.TaggedString)
IL_006D: ldarg.0
IL_006E: ldarg.1
IL_006F: callvirt abstract virtual System.String
RimWorld.IncidentWorker_Raid::GetRelatedPawnsInfoLetterText(RimWorld.IncidentParms
parms)
IL_0074: ldc.i4.1
IL_0075: ldc.i4.1
IL_0076: call static System.Void
RimWorld.PawnRelationUtility::Notify_PawnsSeenByPlayer_Letter(System.Collections.Ge
neric.IEnumerable`1<Verse.Pawn> seenPawns, Verse.TaggedString& letterLabel,
Verse.TaggedString& letterText, System.String relationsInfoHeader, System.Boolean
informEvenIfSeenBefore, System.Boolean writeSeenPawnsNames)
IL_007B: newobj System.Void
System.Collections.Generic.List`1<Verse.TargetInfo>::.ctor()
IL_0080: stloc.3
IL_0081: ldarg.1
IL_0082: ldfld System.Collections.Generic.Dictionary`2<Verse.Pawn,
System.Int32> RimWorld.IncidentParms::pawnGroups
IL_0087: brfalse => Label3
IL_008C: ldloc.0
IL_008D: ldarg.1
IL_008E: ldfld System.Collections.Generic.Dictionary`2<Verse.Pawn,
System.Int32> RimWorld.IncidentParms::pawnGroups
IL_0093: call static
System.Collections.Generic.List`1<System.Collections.Generic.List`1<Verse.Pawn>>
RimWorld.IncidentParmsUtility::SplitIntoGroups(System.Collections.Generic.List`1<Ve
rse.Pawn> pawns, System.Collections.Generic.Dictionary`2<Verse.Pawn, System.Int32>
groups)
IL_0098: stloc.s 4
(System.Collections.Generic.List`1[System.Collections.Generic.List`1[Verse.Pawn]])
IL_009A: ldloc.s 4
(System.Collections.Generic.List`1[System.Collections.Generic.List`1[Verse.Pawn]])
IL_009C: ldsfld System.Func`2<System.Collections.Generic.List`1<Verse.Pawn>,
System.Int32> RimWorld.<>c::<>9__11_0
IL_00A1: dup
IL_00A2: brtrue => Label4
IL_00A7: pop
IL_00A8: ldsfld RimWorld.<>c RimWorld.<>c::<>9
IL_00AD: ldftn System.Int32
RimWorld.<>c::<TryExecuteWorker>b__11_0(System.Collections.Generic.List`1<Verse.Paw
n> x)
IL_00B3: newobj System.Void
System.Func`2<System.Collections.Generic.List`1<Verse.Pawn>,
System.Int32>::.ctor(System.Object object, System.IntPtr method)
IL_00B8: dup
IL_00B9: stsfld System.Func`2<System.Collections.Generic.List`1<Verse.Pawn>,
System.Int32> RimWorld.<>c::<>9__11_0
IL_00BE: Label4
IL_00BE: call static System.Collections.Generic.List`1<Verse.Pawn>
Verse.GenCollection::MaxBy(System.Collections.Generic.IEnumerable`1<System.Collecti
ons.Generic.List`1<Verse.Pawn>> source,
System.Func`2<System.Collections.Generic.List`1<Verse.Pawn>, System.Int32>
selector)
IL_00C3: stloc.s 5 (System.Collections.Generic.List`1[Verse.Pawn])
IL_00C5: ldloc.s 5 (System.Collections.Generic.List`1[Verse.Pawn])
IL_00C7: call static System.Boolean
Verse.GenCollection::Any(System.Collections.Generic.List`1<Verse.Pawn> list)
IL_00CC: brfalse => Label5
IL_00D1: ldloc.3
IL_00D2: ldloc.s 5 (System.Collections.Generic.List`1[Verse.Pawn])
IL_00D4: ldc.i4.0
IL_00D5: callvirt virtual Verse.Pawn
System.Collections.Generic.List`1<Verse.Pawn>::get_Item(System.Int32 index)
IL_00DA: call static Verse.TargetInfo
Verse.TargetInfo::op_Implicit(Verse.Thing t)
IL_00DF: callvirt virtual System.Void
System.Collections.Generic.List`1<Verse.TargetInfo>::Add(Verse.TargetInfo item)
IL_00E4: Label5
IL_00E4: ldc.i4.0
IL_00E5: stloc.s 6 (System.Int32)
IL_00E7: br => Label6
IL_00EC: Label9
IL_00EC: ldloc.s 4
(System.Collections.Generic.List`1[System.Collections.Generic.List`1[Verse.Pawn]])
IL_00EE: ldloc.s 6 (System.Int32)
IL_00F0: callvirt virtual System.Collections.Generic.List`1<Verse.Pawn>
System.Collections.Generic.List`1<System.Collections.Generic.List`1<Verse.Pawn>>::g
et_Item(System.Int32 index)
IL_00F5: ldloc.s 5 (System.Collections.Generic.List`1[Verse.Pawn])
IL_00F7: beq => Label7
IL_00FC: ldloc.s 4
(System.Collections.Generic.List`1[System.Collections.Generic.List`1[Verse.Pawn]])
IL_00FE: ldloc.s 6 (System.Int32)
IL_0100: callvirt virtual System.Collections.Generic.List`1<Verse.Pawn>
System.Collections.Generic.List`1<System.Collections.Generic.List`1<Verse.Pawn>>::g
et_Item(System.Int32 index)
IL_0105: call static System.Boolean
Verse.GenCollection::Any(System.Collections.Generic.List`1<Verse.Pawn> list)
IL_010A: brfalse => Label8
IL_010F: ldloc.3
IL_0110: ldloc.s 4
(System.Collections.Generic.List`1[System.Collections.Generic.List`1[Verse.Pawn]])
IL_0112: ldloc.s 6 (System.Int32)
IL_0114: callvirt virtual System.Collections.Generic.List`1<Verse.Pawn>
System.Collections.Generic.List`1<System.Collections.Generic.List`1<Verse.Pawn>>::g
et_Item(System.Int32 index)
IL_0119: ldc.i4.0
IL_011A: callvirt virtual Verse.Pawn
System.Collections.Generic.List`1<Verse.Pawn>::get_Item(System.Int32 index)
IL_011F: call static Verse.TargetInfo
Verse.TargetInfo::op_Implicit(Verse.Thing t)
IL_0124: callvirt virtual System.Void
System.Collections.Generic.List`1<Verse.TargetInfo>::Add(Verse.TargetInfo item)
IL_0129: Label7
IL_0129: Label8
IL_0129: ldloc.s 6 (System.Int32)
IL_012B: ldc.i4.1
IL_012C: add
IL_012D: stloc.s 6 (System.Int32)
IL_012F: Label6
IL_012F: ldloc.s 6 (System.Int32)
IL_0131: ldloc.s 4
(System.Collections.Generic.List`1[System.Collections.Generic.List`1[Verse.Pawn]])
IL_0133: callvirt virtual System.Int32
System.Collections.Generic.List`1<System.Collections.Generic.List`1<Verse.Pawn>>::g
et_Count()
IL_0138: blt => Label9
IL_013D: br => Label10
IL_0142: Label3
IL_0142: ldloc.0
IL_0143: call static System.Boolean
Verse.GenCollection::Any(System.Collections.Generic.List`1<Verse.Pawn> list)
IL_0148: brfalse => Label11
IL_014D: ldloc.0
IL_014E: callvirt System.Collections.Generic.Enumerator<Verse.Pawn>
System.Collections.Generic.List`1<Verse.Pawn>::GetEnumerator()
IL_0153: stloc.s 7 (System.Collections.Generic.List`1+Enumerator[Verse.Pawn])
.try
{
IL_0155: br => Label12
IL_015A: Label13
IL_015A: ldloca.s 7
(System.Collections.Generic.List`1+Enumerator[Verse.Pawn])
IL_015C: call virtual Verse.Pawn
System.Collections.Generic.Enumerator<Verse.Pawn>::get_Current()
IL_0161: stloc.s 8 (Verse.Pawn)
IL_0163: ldloc.3
IL_0164: ldloc.s 8 (Verse.Pawn)
IL_0166: call static Verse.TargetInfo
Verse.TargetInfo::op_Implicit(Verse.Thing t)
IL_016B: callvirt virtual System.Void
System.Collections.Generic.List`1<Verse.TargetInfo>::Add(Verse.TargetInfo item)
IL_0170: Label12
IL_0170: ldloca.s 7
(System.Collections.Generic.List`1+Enumerator[Verse.Pawn])
IL_0172: call virtual System.Boolean
System.Collections.Generic.Enumerator<Verse.Pawn>::MoveNext()
IL_0177: brtrue => Label13
IL_017C: leave => Label14
IL_0181: leave => (autogenerated)
} // end try
.finally
{
IL_0186: ldloca.s 7
(System.Collections.Generic.List`1+Enumerator[Verse.Pawn])
IL_0188: constrained.
System.Collections.Generic.List`1+Enumerator[Verse.Pawn]
IL_018E: callvirt abstract virtual System.Void
System.IDisposable::Dispose()
IL_0193: endfinally
IL_0194: leave => (autogenerated)
} // end handler
IL_0195: Label10
IL_0195: Label11
IL_0195: Label14
IL_0195: ldarg.0
IL_0196: ldloc.1
IL_0197: ldloc.2
IL_0198: ldarg.0
IL_0199: callvirt abstract virtual Verse.LetterDef
RimWorld.IncidentWorker_Raid::GetLetterDef()
IL_019E: ldarg.1
IL_019F: ldloc.3
IL_01A0: call static Verse.LookTargets
Verse.LookTargets::op_Implicit(System.Collections.Generic.List`1<Verse.TargetInfo>
targets)
IL_01A5: call static Verse.NamedArgument[] System.Array::Empty()
IL_01AA: call System.Void
RimWorld.IncidentWorker::SendStandardLetter(Verse.TaggedString baseLetterLabel,
Verse.TaggedString baseLetterText, Verse.LetterDef baseLetterDef,
RimWorld.IncidentParms parms, Verse.LookTargets lookTargets, Verse.NamedArgument[]
textArgs)
IL_01AF: ldarg.1
IL_01B0: ldfld Verse.Pawn RimWorld.IncidentParms::controllerPawn
IL_01B5: brfalse => Label15
IL_01BA: ldarg.1
IL_01BB: ldfld Verse.Pawn RimWorld.IncidentParms::controllerPawn
IL_01C0: callvirt virtual RimWorld.Faction Verse.Thing::get_Faction()
IL_01C5: call static RimWorld.Faction RimWorld.Faction::get_OfPlayer()
IL_01CA: beq => Label16
IL_01CF: Label15
IL_01CF: ldarg.1
IL_01D0: ldfld RimWorld.RaidStrategyDef RimWorld.IncidentParms::raidStrategy
IL_01D5: callvirt RimWorld.RaidStrategyWorker
RimWorld.RaidStrategyDef::get_Worker()
IL_01DA: ldarg.1
IL_01DB: ldloc.0
IL_01DC: callvirt virtual System.Void
RimWorld.RaidStrategyWorker::MakeLords(RimWorld.IncidentParms parms,
System.Collections.Generic.List`1<Verse.Pawn> pawns)
IL_01E1: Label16
IL_01E1: ldsfld RimWorld.ConceptDef RimWorld.ConceptDefOf::EquippingWeapons
IL_01E6: ldc.i4.2
IL_01E7: call static System.Void
RimWorld.LessonAutoActivator::TeachOpportunity(RimWorld.ConceptDef conc,
RimWorld.OpportunityType opp)
IL_01EC: ldsfld RimWorld.ConceptDef RimWorld.ConceptDefOf::ShieldBelts
IL_01F1: call static System.Boolean
RimWorld.PlayerKnowledgeDatabase::IsComplete(RimWorld.ConceptDef conc)
IL_01F6: brtrue => Label17
IL_01FB: ldc.i4.0
IL_01FC: stloc.s 9 (System.Int32)
IL_01FE: br => Label18
IL_0203: Label23
IL_0203: ldloc.0
IL_0204: ldloc.s 9 (System.Int32)
IL_0206: callvirt virtual Verse.Pawn
System.Collections.Generic.List`1<Verse.Pawn>::get_Item(System.Int32 index)
IL_020B: stloc.s 10 (Verse.Pawn)
IL_020D: ldloc.s 10 (Verse.Pawn)
IL_020F: ldfld RimWorld.Pawn_ApparelTracker Verse.Pawn::apparel
IL_0214: brfalse => Label19
IL_0219: ldloc.s 10 (Verse.Pawn)
IL_021B: ldfld RimWorld.Pawn_ApparelTracker Verse.Pawn::apparel
IL_0220: callvirt System.Collections.Generic.List`1<RimWorld.Apparel>
RimWorld.Pawn_ApparelTracker::get_WornApparel()
IL_0225: ldsfld System.Predicate`1<RimWorld.Apparel> RimWorld.<>c::<>9__11_1
IL_022A: dup
IL_022B: brtrue => Label20
IL_0230: pop
IL_0231: ldsfld RimWorld.<>c RimWorld.<>c::<>9
IL_0236: ldftn System.Boolean
RimWorld.<>c::<TryExecuteWorker>b__11_1(RimWorld.Apparel ap)
IL_023C: newobj System.Void
System.Predicate`1<RimWorld.Apparel>::.ctor(System.Object object, System.IntPtr
method)
IL_0241: dup
IL_0242: stsfld System.Predicate`1<RimWorld.Apparel> RimWorld.<>c::<>9__11_1
IL_0247: Label20
IL_0247: call static System.Boolean
Verse.GenCollection::Any(System.Collections.Generic.List`1<RimWorld.Apparel> list,
System.Predicate`1<RimWorld.Apparel> predicate)
IL_024C: brfalse => Label21
IL_0251: ldsfld RimWorld.ConceptDef RimWorld.ConceptDefOf::ShieldBelts
IL_0256: ldc.i4.2
IL_0257: call static System.Void
RimWorld.LessonAutoActivator::TeachOpportunity(RimWorld.ConceptDef conc,
RimWorld.OpportunityType opp)
IL_025C: br => Label22
IL_0261: Label19
IL_0261: Label21
IL_0261: ldloc.s 9 (System.Int32)
IL_0263: ldc.i4.1
IL_0264: add
IL_0265: stloc.s 9 (System.Int32)
IL_0267: Label18
IL_0267: ldloc.s 9 (System.Int32)
IL_0269: ldloc.0
IL_026A: callvirt virtual System.Int32
System.Collections.Generic.List`1<Verse.Pawn>::get_Count()
IL_026F: blt => Label23
IL_0274: Label17
IL_0274: Label22
IL_0274: ldsfld System.Boolean Verse.DebugSettings::logRaidInfo
IL_0279: brfalse => Label24
IL_027E: ldstr "Raid: {0} ({1}) {2} {3} c={4} p={5}"
IL_0283: ldc.i4.6
IL_0284: newarr System.Object
IL_0289: dup
IL_028A: ldc.i4.0
IL_028B: ldarg.1
IL_028C: ldfld RimWorld.Faction RimWorld.IncidentParms::faction
IL_0291: callvirt System.String RimWorld.Faction::get_Name()
IL_0296: stelem.ref
IL_0297: dup
IL_0298: ldc.i4.1
IL_0299: ldarg.1
IL_029A: ldfld RimWorld.Faction RimWorld.IncidentParms::faction
IL_029F: ldfld RimWorld.FactionDef RimWorld.Faction::def
IL_02A4: ldfld System.String Verse.Def::defName
IL_02A9: stelem.ref
IL_02AA: dup
IL_02AB: ldc.i4.2
IL_02AC: ldarg.1
IL_02AD: ldfld RimWorld.PawnsArrivalModeDef
RimWorld.IncidentParms::raidArrivalMode
IL_02B2: ldfld System.String Verse.Def::defName
IL_02B7: stelem.ref
IL_02B8: dup
IL_02B9: ldc.i4.3
IL_02BA: ldarg.1
IL_02BB: ldfld RimWorld.RaidStrategyDef RimWorld.IncidentParms::raidStrategy
IL_02C0: ldfld System.String Verse.Def::defName
IL_02C5: stelem.ref
IL_02C6: dup
IL_02C7: ldc.i4.4
IL_02C8: ldarg.1
IL_02C9: ldfld Verse.IntVec3 RimWorld.IncidentParms::spawnCenter
IL_02CE: box Verse.IntVec3
IL_02D3: stelem.ref
IL_02D4: dup
IL_02D5: ldc.i4.5
IL_02D6: ldarg.1
IL_02D7: ldfld System.Single RimWorld.IncidentParms::points
IL_02DC: box System.Single
IL_02E1: stelem.ref
IL_02E2: call static System.String System.String::Format(System.String
format, System.Object[] args)
IL_02E7: call static System.Void Verse.Log::Message(System.String text)
IL_02EC: Label24
IL_02EC: ldc.i4.1
IL_02ED: // end original
IL_02ED: Label25
IL_02ED: stloc 11 (System.Boolean)
IL_02F1: Label0
IL_02F1: ldloc 11 (System.Boolean)
IL_02F5: ret
DONE

### Patch: System.Void Verse.AI.Group.Lord::Cleanup()


### Replacement: static System.Void
Verse.AI.Group.Lord::Verse.AI.Group.Lord.Cleanup_Patch1(Verse.AI.Group.Lord this)
IL_0000: Local var 0: System.Exception
IL_0000: Local var 1: System.Exception
IL_0000: Local var 2: System.Int32
IL_0000: Local var 3: System.Exception
IL_0000: ldarg.0
IL_0001: call static System.Void
VanillaStorytellersExpanded.Patch_Cleanup::Prefix(Verse.AI.Group.Lord __instance)
IL_0006: // start original
.try
{
IL_0006: ldarg.0
IL_0007: ldfld Verse.AI.Group.LordJob Verse.AI.Group.Lord::curJob
IL_000C: callvirt virtual System.Void Verse.AI.Group.LordJob::Cleanup()
IL_0011: leave => Label0
IL_0016: leave => (autogenerated)
} // end try
.catch System.Exception
{
IL_001B: stloc.0
IL_001C: ldstr "Error in LordJob.Cleanup(): "
IL_0021: ldloc.0
IL_0022: call static System.String System.String::Concat(System.Object
arg0, System.Object arg1)
IL_0027: call static System.Void Verse.Log::Error(System.String text)
IL_002C: leave => Label1
IL_0031: leave => (autogenerated)
} // end handler
IL_0036: Label0
IL_0036: Label1
IL_0036: ldarg.0
IL_0037: ldfld Verse.AI.Group.LordToil Verse.AI.Group.Lord::curLordToil
IL_003C: brfalse => Label2
.try
{
IL_0041: ldarg.0
IL_0042: ldfld Verse.AI.Group.LordToil Verse.AI.Group.Lord::curLordToil
IL_0047: callvirt virtual System.Void Verse.AI.Group.LordToil::Cleanup()
IL_004C: leave => Label3
IL_0051: leave => (autogenerated)
} // end try
.catch System.Exception
{
IL_0056: stloc.1
IL_0057: ldstr "Error in LordToil.Cleanup(): "
IL_005C: ldloc.1
IL_005D: call static System.String System.String::Concat(System.Object
arg0, System.Object arg1)
IL_0062: call static System.Void Verse.Log::Error(System.String text)
IL_0067: leave => Label4
IL_006C: leave => (autogenerated)
} // end handler
IL_0071: Label2
IL_0071: Label3
IL_0071: Label4
IL_0071: ldc.i4.0
IL_0072: stloc.2
IL_0073: br => Label5
IL_0078: Label12
IL_0078: ldarg.0
IL_0079: ldfld System.Collections.Generic.List`1<Verse.Pawn>
Verse.AI.Group.Lord::ownedPawns
IL_007E: ldloc.2
IL_007F: callvirt virtual Verse.Pawn
System.Collections.Generic.List`1<Verse.Pawn>::get_Item(System.Int32 index)
IL_0084: ldfld Verse.AI.Pawn_MindState Verse.Pawn::mindState
IL_0089: brfalse => Label6
IL_008E: ldarg.0
IL_008F: ldfld System.Collections.Generic.List`1<Verse.Pawn>
Verse.AI.Group.Lord::ownedPawns
IL_0094: ldloc.2
IL_0095: callvirt virtual Verse.Pawn
System.Collections.Generic.List`1<Verse.Pawn>::get_Item(System.Int32 index)
IL_009A: ldfld Verse.AI.Pawn_MindState Verse.Pawn::mindState
IL_009F: ldnull
IL_00A0: stfld Verse.AI.PawnDuty Verse.AI.Pawn_MindState::duty
IL_00A5: Label6
IL_00A5: ldarg.0
IL_00A6: call Verse.Map Verse.AI.Group.Lord::get_Map()
IL_00AB: ldfld Verse.AI.AttackTargetsCache Verse.Map::attackTargetsCache
IL_00B0: ldarg.0
IL_00B1: ldfld System.Collections.Generic.List`1<Verse.Pawn>
Verse.AI.Group.Lord::ownedPawns
IL_00B6: ldloc.2
IL_00B7: callvirt virtual Verse.Pawn
System.Collections.Generic.List`1<Verse.Pawn>::get_Item(System.Int32 index)
IL_00BC: callvirt System.Void
Verse.AI.AttackTargetsCache::UpdateTarget(Verse.AI.IAttackTarget t)
IL_00C1: ldarg.0
IL_00C2: ldfld Verse.AI.Group.LordJob Verse.AI.Group.Lord::curJob
IL_00C7: ldarg.0
IL_00C8: ldfld System.Collections.Generic.List`1<Verse.Pawn>
Verse.AI.Group.Lord::ownedPawns
IL_00CD: ldloc.2
IL_00CE: callvirt virtual Verse.Pawn
System.Collections.Generic.List`1<Verse.Pawn>::get_Item(System.Int32 index)
IL_00D3: callvirt virtual System.Boolean
Verse.AI.Group.LordJob::EndPawnJobOnCleanup(Verse.Pawn p)
IL_00D8: brfalse => Label7
IL_00DD: ldarg.0
IL_00DE: ldfld System.Collections.Generic.List`1<Verse.Pawn>
Verse.AI.Group.Lord::ownedPawns
IL_00E3: ldloc.2
IL_00E4: callvirt virtual Verse.Pawn
System.Collections.Generic.List`1<Verse.Pawn>::get_Item(System.Int32 index)
IL_00E9: callvirt System.Boolean Verse.Thing::get_Spawned()
IL_00EE: brfalse => Label8
IL_00F3: ldarg.0
IL_00F4: ldfld System.Collections.Generic.List`1<Verse.Pawn>
Verse.AI.Group.Lord::ownedPawns
IL_00F9: ldloc.2
IL_00FA: callvirt virtual Verse.Pawn
System.Collections.Generic.List`1<Verse.Pawn>::get_Item(System.Int32 index)
IL_00FF: callvirt Verse.AI.Job Verse.Pawn::get_CurJob()
IL_0104: brfalse => Label9
IL_0109: ldarg.0
IL_010A: ldfld Verse.AI.Group.LordJob Verse.AI.Group.Lord::curJob
IL_010F: callvirt virtual System.Boolean
Verse.AI.Group.LordJob::get_DontInterruptLayingPawnsOnCleanup()
IL_0114: brfalse => Label10
IL_0119: ldarg.0
IL_011A: ldfld System.Collections.Generic.List`1<Verse.Pawn>
Verse.AI.Group.Lord::ownedPawns
IL_011F: ldloc.2
IL_0120: callvirt virtual Verse.Pawn
System.Collections.Generic.List`1<Verse.Pawn>::get_Item(System.Int32 index)
IL_0125: call static System.Boolean
RimWorld.RestUtility::IsLayingForJobCleanup(Verse.Pawn p)
IL_012A: brtrue => Label11
IL_012F: Label10
IL_012F: ldarg.0
IL_0130: ldfld System.Collections.Generic.List`1<Verse.Pawn>
Verse.AI.Group.Lord::ownedPawns
IL_0135: ldloc.2
IL_0136: callvirt virtual Verse.Pawn
System.Collections.Generic.List`1<Verse.Pawn>::get_Item(System.Int32 index)
IL_013B: ldfld Verse.AI.Pawn_JobTracker Verse.Pawn::jobs
IL_0140: ldc.i4.5
IL_0141: ldc.i4.1
IL_0142: ldc.i4.1
IL_0143: callvirt System.Void
Verse.AI.Pawn_JobTracker::EndCurrentJob(Verse.AI.JobCondition condition,
System.Boolean startNewJob, System.Boolean canReturnToPool)
IL_0148: Label7
IL_0148: Label8
IL_0148: Label9
IL_0148: Label11
IL_0148: ldloc.2
IL_0149: ldc.i4.1
IL_014A: add
IL_014B: stloc.2
IL_014C: Label5
IL_014C: ldloc.2
IL_014D: ldarg.0
IL_014E: ldfld System.Collections.Generic.List`1<Verse.Pawn>
Verse.AI.Group.Lord::ownedPawns
IL_0153: callvirt virtual System.Int32
System.Collections.Generic.List`1<Verse.Pawn>::get_Count()
IL_0158: blt => Label12
IL_015D: nop
.try
{
IL_015E: ldarg.0
IL_015F: ldfld Verse.AI.Group.LordJob Verse.AI.Group.Lord::curJob
IL_0164: callvirt virtual System.Void Verse.AI.Group.LordJob::PostCleanup()
IL_0169: leave => Label13
IL_016E: leave => (autogenerated)
} // end try
.catch System.Exception
{
IL_0173: stloc.3
IL_0174: ldstr "Error in LordJob.PostCleanup(): "
IL_0179: ldloc.3
IL_017A: call static System.String System.String::Concat(System.Object
arg0, System.Object arg1)
IL_017F: call static System.Void Verse.Log::Error(System.String text)
IL_0184: leave => Label14
IL_0189: leave => (autogenerated)
} // end handler
IL_018E: // end original
IL_018E: Label13
IL_018E: Label14
IL_018E: ret
DONE

### Patch: System.Void Verse.AI.Group.Transition::Execute(Verse.AI.Group.Lord lord)


### Replacement: static System.Void
Verse.AI.Group.Transition::Verse.AI.Group.Transition.Execute_Patch1(Verse.AI.Group.
Transition this, Verse.AI.Group.Lord lord)
IL_0000: Local var 0: System.Int32
IL_0000: Local var 1: System.Exception
IL_0000: Local var 2: System.Int32
IL_0000: Local var 3: System.Exception
IL_0000: Local var 4: System.Boolean
IL_0000: ldc.i4 0
IL_0005: stloc 4 (System.Boolean)
IL_0009: ldc.i4.1
IL_000A: stloc 4 (System.Boolean)
IL_000E: ldloc 4 (System.Boolean)
IL_0012: brfalse => Label1
IL_0017: ldarg.0
IL_0018: ldarg 1
IL_001C: call static System.Void
VanillaStorytellersExpanded.Patch_Execute::Prefix(Verse.AI.Group.Transition
__instance, Verse.AI.Group.Lord lord)
IL_0021: Label1
IL_0021: nop
IL_0022: ldloc 4 (System.Boolean)
IL_0026: brfalse => Label0
IL_002B: // start original
IL_002B: ldarg.0
IL_002C: ldfld System.Boolean Verse.AI.Group.Transition::canMoveToSameState
IL_0031: brtrue => Label2
IL_0036: ldarg.0
IL_0037: ldfld Verse.AI.Group.LordToil Verse.AI.Group.Transition::target
IL_003C: ldarg.1
IL_003D: callvirt Verse.AI.Group.LordToil Verse.AI.Group.Lord::get_CurLordToil()
IL_0042: bne.un => Label3
IL_0047: br => Label14
IL_004C: Label2
IL_004C: Label3
IL_004C: ldc.i4.0
IL_004D: stloc.0
IL_004E: br => Label4
IL_0053: Label7
IL_0053: nop
.try
{
IL_0054: ldarg.0
IL_0055: ldfld
System.Collections.Generic.List`1<Verse.AI.Group.TransitionAction>
Verse.AI.Group.Transition::preActions
IL_005A: ldloc.0
IL_005B: callvirt virtual Verse.AI.Group.TransitionAction
System.Collections.Generic.List`1<Verse.AI.Group.TransitionAction>::get_Item(System
.Int32 index)
IL_0060: ldarg.0
IL_0061: callvirt abstract virtual System.Void
Verse.AI.Group.TransitionAction::DoAction(Verse.AI.Group.Transition trans)
IL_0066: leave => Label5
IL_006B: leave => (autogenerated)
} // end try
.catch System.Exception
{
IL_0070: stloc.1
IL_0071: ldstr "Error in lord\'s preAction: "
IL_0076: ldloc.1
IL_0077: call static System.String System.String::Concat(System.Object
arg0, System.Object arg1)
IL_007C: call static System.Void Verse.Log::Error(System.String text)
IL_0081: leave => Label6
IL_0086: leave => (autogenerated)
} // end handler
IL_008B: Label5
IL_008B: Label6
IL_008B: ldloc.0
IL_008C: ldc.i4.1
IL_008D: add
IL_008E: stloc.0
IL_008F: Label4
IL_008F: ldloc.0
IL_0090: ldarg.0
IL_0091: ldfld
System.Collections.Generic.List`1<Verse.AI.Group.TransitionAction>
Verse.AI.Group.Transition::preActions
IL_0096: callvirt virtual System.Int32
System.Collections.Generic.List`1<Verse.AI.Group.TransitionAction>::get_Count()
IL_009B: blt => Label7
IL_00A0: ldarg.0
IL_00A1: ldfld Verse.AI.Group.LordToil Verse.AI.Group.Transition::target
IL_00A6: ldarg.1
IL_00A7: callvirt Verse.AI.Group.LordToil Verse.AI.Group.Lord::get_CurLordToil()
IL_00AC: bne.un => Label8
IL_00B1: ldarg.0
IL_00B2: ldfld System.Boolean
Verse.AI.Group.Transition::updateDutiesIfMovedToSameState
IL_00B7: brfalse => Label9
IL_00BC: Label8
IL_00BC: ldarg.1
IL_00BD: ldarg.0
IL_00BE: ldfld Verse.AI.Group.LordToil Verse.AI.Group.Transition::target
IL_00C3: callvirt System.Void
Verse.AI.Group.Lord::GotoToil(Verse.AI.Group.LordToil newLordToil)
IL_00C8: Label9
IL_00C8: ldc.i4.0
IL_00C9: stloc.2
IL_00CA: br => Label10
IL_00CF: Label13
IL_00CF: nop
.try
{
IL_00D0: ldarg.0
IL_00D1: ldfld
System.Collections.Generic.List`1<Verse.AI.Group.TransitionAction>
Verse.AI.Group.Transition::postActions
IL_00D6: ldloc.2
IL_00D7: callvirt virtual Verse.AI.Group.TransitionAction
System.Collections.Generic.List`1<Verse.AI.Group.TransitionAction>::get_Item(System
.Int32 index)
IL_00DC: ldarg.0
IL_00DD: callvirt abstract virtual System.Void
Verse.AI.Group.TransitionAction::DoAction(Verse.AI.Group.Transition trans)
IL_00E2: leave => Label11
IL_00E7: leave => (autogenerated)
} // end try
.catch System.Exception
{
IL_00EC: stloc.3
IL_00ED: ldstr "Error in lord\'s postAction: "
IL_00F2: ldloc.3
IL_00F3: call static System.String System.String::Concat(System.Object
arg0, System.Object arg1)
IL_00F8: call static System.Void Verse.Log::Error(System.String text)
IL_00FD: leave => Label12
IL_0102: leave => (autogenerated)
} // end handler
IL_0107: Label11
IL_0107: Label12
IL_0107: ldloc.2
IL_0108: ldc.i4.1
IL_0109: add
IL_010A: stloc.2
IL_010B: Label10
IL_010B: ldloc.2
IL_010C: ldarg.0
IL_010D: ldfld
System.Collections.Generic.List`1<Verse.AI.Group.TransitionAction>
Verse.AI.Group.Transition::postActions
IL_0112: callvirt virtual System.Int32
System.Collections.Generic.List`1<Verse.AI.Group.TransitionAction>::get_Count()
IL_0117: blt => Label13
IL_011C: // end original
IL_011C: Label14
IL_011C: Label0
IL_011C: ret
DONE

### Patch: static System.Boolean


RimWorld.Planet.SettlementDefeatUtility::IsDefeated(Verse.Map map, RimWorld.Faction
faction)
### Replacement: static System.Boolean
RimWorld.Planet.SettlementDefeatUtility::RimWorld.Planet.SettlementDefeatUtility.Is
Defeated_Patch1(Verse.Map map, RimWorld.Faction faction)
IL_0000: Local var 0: System.Collections.Generic.List`1<Verse.Pawn>
IL_0000: Local var 1: System.Int32
IL_0000: Local var 2: Verse.Pawn
IL_0000: Local var 3: System.Boolean
IL_0000: ldc.i4 0
IL_0005: stloc 3 (System.Boolean)
IL_0009: // start original
IL_0009: ldarg.0
IL_000A: ldfld Verse.MapPawns Verse.Map::mapPawns
IL_000F: ldarg.1
IL_0010: callvirt System.Collections.Generic.List`1<Verse.Pawn>
Verse.MapPawns::SpawnedPawnsInFaction(RimWorld.Faction faction)
IL_0015: stloc.0
IL_0016: ldc.i4.0
IL_0017: stloc.1
IL_0018: br => Label0
IL_001D: Label3
IL_001D: ldloc.0
IL_001E: ldloc.1
IL_001F: callvirt virtual Verse.Pawn
System.Collections.Generic.List`1<Verse.Pawn>::get_Item(System.Int32 index)
IL_0024: stloc.2
IL_0025: ldloc.2
IL_0026: callvirt Verse.RaceProperties Verse.Pawn::get_RaceProps()
IL_002B: callvirt System.Boolean Verse.RaceProperties::get_Humanlike()
IL_0030: brfalse => Label1
IL_0035: ldloc.2
IL_0036: call static System.Boolean
RimWorld.GenHostility::IsActiveThreatToPlayer(Verse.AI.IAttackTarget target)
IL_003B: brfalse => Label2
IL_0040: ldc.i4.0
IL_0041: br => Label4
IL_0046: Label1
IL_0046: Label2
IL_0046: ldloc.1
IL_0047: ldc.i4.1
IL_0048: add
IL_0049: stloc.1
IL_004A: Label0
IL_004A: ldloc.1
IL_004B: ldloc.0
IL_004C: callvirt virtual System.Int32
System.Collections.Generic.List`1<Verse.Pawn>::get_Count()
IL_0051: blt => Label3
IL_0056: ldc.i4.1
IL_0057: // end original
IL_0057: Label4
IL_0057: stloc 3 (System.Boolean)
IL_005B: ldarg 0
IL_005F: ldarg 1
IL_0063: ldloc 3 (System.Boolean)
IL_0067: call static System.Void
VanillaStorytellersExpanded.Patch_IsDefeated::Postfix(Verse.Map map,
RimWorld.Faction faction, System.Boolean __result)
IL_006C: ldloc 3 (System.Boolean)
IL_0070: ret
DONE

### Patch: System.Void RimWorld.Quest::End(RimWorld.QuestEndOutcome outcome,


System.Boolean sendLetter)
### Replacement: static System.Void
RimWorld.Quest::RimWorld.Quest.End_Patch1(RimWorld.Quest this,
RimWorld.QuestEndOutcome outcome, System.Boolean sendLetter)
IL_0000: Local var 0: System.String
IL_0000: Local var 1: System.String
IL_0000: Local var 2: Verse.LetterDef
IL_0000: Local var 3: RimWorld.QuestState
IL_0000: ldarg.0
IL_0001: ldarg 1
IL_0005: ldarg 2
IL_0009: call static System.Void
VanillaStorytellersExpanded.Patch_End::Prefix(RimWorld.Quest __instance,
RimWorld.QuestEndOutcome outcome, System.Boolean sendLetter)
IL_000E: // start original
IL_000E: ldarg.0
IL_000F: call System.Boolean RimWorld.Quest::get_Historical()
IL_0014: brfalse => Label0
IL_0019: ldstr "Tried to resolve a historical quest. id="
IL_001E: ldarg.0
IL_001F: ldfld System.Int32 RimWorld.Quest::id
IL_0024: box System.Int32
IL_0029: call static System.String System.String::Concat(System.Object arg0,
System.Object arg1)
IL_002E: call static System.Void Verse.Log::Error(System.String text)
IL_0033: br => Label12
IL_0038: Label0
IL_0038: ldarg.0
IL_0039: ldc.i4.1
IL_003A: stfld System.Boolean RimWorld.Quest::ended
IL_003F: ldarg.0
IL_0040: ldarg.1
IL_0041: stfld RimWorld.QuestEndOutcome RimWorld.Quest::endOutcome
IL_0046: ldarg.0
IL_0047: call System.Void RimWorld.Quest::CleanupQuestParts()
IL_004C: ldarg.0
IL_004D: call System.Boolean RimWorld.Quest::get_EverAccepted()
IL_0052: brtrue => Label1
IL_0057: ldarg.0
IL_0058: call RimWorld.QuestState RimWorld.Quest::get_State()
IL_005D: ldc.i4.3
IL_005E: bne.un => Label2
IL_0063: br => Label13
IL_0068: Label1
IL_0068: Label2
IL_0068: ldarg.2
IL_0069: brfalse => Label3
IL_006E: ldarg.0
IL_006F: ldfld System.Boolean RimWorld.Quest::hidden
IL_0074: brtrue => Label4
IL_0079: ldnull
IL_007A: stloc.0
IL_007B: ldnull
IL_007C: stloc.1
IL_007D: ldnull
IL_007E: stloc.2
IL_007F: ldarg.0
IL_0080: call RimWorld.QuestState RimWorld.Quest::get_State()
IL_0085: stloc.3
IL_0086: ldloc.3
IL_0087: ldc.i4.2
IL_0088: sub
IL_0089: switch => Labels5,6,7,8
IL_009E: br => Label9
IL_00A3: Label8
IL_00A3: ldstr "LetterQuestFailedLabel"
IL_00A8: stloc.1
IL_00A9: ldstr "LetterQuestCompletedFail"
IL_00AE: stloc.0
IL_00AF: ldsfld Verse.LetterDef RimWorld.LetterDefOf::NegativeEvent
IL_00B4: stloc.2
IL_00B5: ldsfld Verse.SoundDef RimWorld.SoundDefOf::Quest_Failed
IL_00BA: ldnull
IL_00BB: call static System.Void
Verse.Sound.SoundStarter::PlayOneShotOnCamera(Verse.SoundDef soundDef, Verse.Map
onlyThisMap)
IL_00C0: br => Label10
IL_00C5: Label7
IL_00C5: ldstr "LetterQuestCompletedLabel"
IL_00CA: stloc.1
IL_00CB: ldstr "LetterQuestCompletedSuccess"
IL_00D0: stloc.0
IL_00D1: ldsfld Verse.LetterDef RimWorld.LetterDefOf::PositiveEvent
IL_00D6: stloc.2
IL_00D7: ldsfld Verse.SoundDef RimWorld.SoundDefOf::Quest_Succeded
IL_00DC: ldnull
IL_00DD: call static System.Void
Verse.Sound.SoundStarter::PlayOneShotOnCamera(Verse.SoundDef soundDef, Verse.Map
onlyThisMap)
IL_00E2: br => Label11
IL_00E7: Label5
IL_00E7: ldstr "LetterQuestConcludedLabel"
IL_00EC: stloc.1
IL_00ED: ldstr "LetterQuestCompletedConcluded"
IL_00F2: stloc.0
IL_00F3: ldsfld Verse.LetterDef RimWorld.LetterDefOf::NeutralEvent
IL_00F8: stloc.2
IL_00F9: ldsfld Verse.SoundDef RimWorld.SoundDefOf::Quest_Concluded
IL_00FE: ldnull
IL_00FF: call static System.Void
Verse.Sound.SoundStarter::PlayOneShotOnCamera(Verse.SoundDef soundDef, Verse.Map
onlyThisMap)
IL_0104: Label6
IL_0104: Label9
IL_0104: Label10
IL_0104: Label11
IL_0104: call static Verse.LetterStack Verse.Find::get_LetterStack()
IL_0109: ldloc.1
IL_010A: call static Verse.TaggedString
Verse.Translator::Translate(System.String key)
IL_010F: ldloc.0
IL_0110: ldarg.0
IL_0111: ldfld System.String RimWorld.Quest::name
IL_0116: call static System.String
Verse.GenText::CapitalizeFirst(System.String str)
IL_011B: call static Verse.NamedArgument
Verse.NamedArgument::op_Implicit(System.String value)
IL_0120: call static Verse.TaggedString
Verse.TranslatorFormattedStringExtensions::Translate(System.String key,
Verse.NamedArgument arg1)
IL_0125: ldloc.2
IL_0126: ldnull
IL_0127: ldnull
IL_0128: ldarg.0
IL_0129: ldnull
IL_012A: ldnull
IL_012B: callvirt System.Void Verse.LetterStack::ReceiveLetter(Verse.TaggedString
label, Verse.TaggedString text, Verse.LetterDef textLetterDef, Verse.LookTargets
lookTargets, RimWorld.Faction relatedFaction, RimWorld.Quest quest,
System.Collections.Generic.List`1<Verse.ThingDef> hyperlinkThingDefs, System.String
debugInfo)
IL_0130: // end original
IL_0130: Label3
IL_0130: Label4
IL_0130: Label12
IL_0130: Label13
IL_0130: ret
DONE

### Patch: static System.Void RimWorld.QuestGen.QuestGen::AddSlateQuestTags()


### Replacement: static System.Void
RimWorld.QuestGen.QuestGen::RimWorld.QuestGen.QuestGen.AddSlateQuestTags_Patch1()
IL_0000: Local var 0: System.Int32
IL_0000: Local var 1: System.Object
IL_0000: Local var 2: System.String
IL_0000: // start original
IL_0000: ldc.i4.0
IL_0001: stloc.0
IL_0002: br => Label0
IL_0007: Label2
IL_0007: ldsfld RimWorld.QuestGen.Slate RimWorld.QuestGen.QuestGen::slate
IL_000C: ldsfld System.Collections.Generic.List`1<System.String>
RimWorld.QuestGen.QuestGen::slateQuestTagsToAddWhenFinished
IL_0011: ldloc.0
IL_0012: callvirt virtual System.String
System.Collections.Generic.List`1<System.String>::get_Item(System.Int32 index)
IL_0017: ldloca.s 1 (System.Object)
IL_0019: ldc.i4.1
IL_001A: callvirt System.Boolean RimWorld.QuestGen.Slate::TryGet(System.String
name, System.Object& var, System.Boolean isAbsoluteName)
IL_001F: brfalse => Label1
IL_0024: ldsfld System.Collections.Generic.List`1<System.String>
RimWorld.QuestGen.QuestGen::slateQuestTagsToAddWhenFinished
IL_0029: ldloc.0
IL_002A: callvirt virtual System.String
System.Collections.Generic.List`1<System.String>::get_Item(System.Int32 index)
IL_002F: ldc.i4.0
IL_0030: call static System.String
RimWorld.QuestGen.QuestGen::GenerateNewTargetQuestTag(System.String targetString,
System.Boolean ensureUnique)
IL_0035: stloc.2
IL_0036: ldloc.1
IL_0037: ldloc.2
IL_0038: call static System.Void
RimWorld.QuestUtility::AddQuestTag(System.Object obj, System.String questTagToAdd)
IL_003D: Label1
IL_003D: ldloc.0
IL_003E: ldc.i4.1
IL_003F: add
IL_0040: stloc.0
IL_0041: Label0
IL_0041: ldloc.0
IL_0042: ldsfld System.Collections.Generic.List`1<System.String>
RimWorld.QuestGen.QuestGen::slateQuestTagsToAddWhenFinished
IL_0047: callvirt virtual System.Int32
System.Collections.Generic.List`1<System.String>::get_Count()
IL_004C: blt => Label2
IL_0051: ldsfld System.Collections.Generic.List`1<System.String>
RimWorld.QuestGen.QuestGen::slateQuestTagsToAddWhenFinished
IL_0056: callvirt virtual System.Void
System.Collections.Generic.List`1<System.String>::Clear()
IL_005B: // end original
IL_005B: call static System.Void
VanillaStorytellersExpanded.Patch_AddSlateQuestTags::Postfix()
IL_0060: ret
DONE

### Patch: virtual System.Void


RimWorld.CompUseEffect_FinishRandomResearchProject::DoEffect(Verse.Pawn usedBy)
### Replacement: static System.Void
RimWorld.CompUseEffect_FinishRandomResearchProject::RimWorld.CompUseEffect_FinishRa
ndomResearchProject.DoEffect_Patch1(RimWorld.CompUseEffect_FinishRandomResearchProj
ect this, Verse.Pawn usedBy)
IL_0000: Local var 0: Verse.ResearchProjectDef
IL_0000: // start original
IL_0000: ldarg.0
IL_0001: ldarg.1
IL_0002: call virtual System.Void RimWorld.CompUseEffect::DoEffect(Verse.Pawn
usedBy)
IL_0007: call static RimWorld.ResearchManager
Verse.Find::get_ResearchManager()
IL_000C: ldfld Verse.ResearchProjectDef RimWorld.ResearchManager::currentProj
IL_0011: stloc.0
IL_0012: ldloc.0
IL_0013: brfalse => Label0
IL_0018: ldarg.0
IL_0019: ldloc.0
IL_001A: ldarg.1
IL_001B: call System.Void
RimWorld.CompUseEffect_FinishRandomResearchProject::FinishInstantly(Verse.ResearchP
rojectDef proj, Verse.Pawn usedBy)
IL_0020: // end original
IL_0020: Label0
IL_0020: ldarg.0
IL_0021: ldarg 1
IL_0025: call static System.Void
VanillaStorytellersExpanded.DoEffect::Postfix(RimWorld.CompUseEffect_FinishRandomRe
searchProject __instance, Verse.Pawn usedBy)
IL_002A: ret
DONE

### Patch: virtual System.Boolean


RimWorld.CompUseEffect_FinishRandomResearchProject::CanBeUsedBy(Verse.Pawn p,
System.String& failReason)
### Replacement: static System.Boolean
RimWorld.CompUseEffect_FinishRandomResearchProject::RimWorld.CompUseEffect_FinishRa
ndomResearchProject.CanBeUsedBy_Patch1(RimWorld.CompUseEffect_FinishRandomResearchP
roject this, Verse.Pawn p, System.String& failReason)
IL_0000: Local var 0: System.Boolean
IL_0000: ldc.i4 0
IL_0005: stloc 0 (System.Boolean)
IL_0009: // start original
IL_0009: call static RimWorld.ResearchManager
Verse.Find::get_ResearchManager()
IL_000E: ldfld Verse.ResearchProjectDef RimWorld.ResearchManager::currentProj
IL_0013: brtrue => Label0
IL_0018: ldarg.2
IL_0019: ldstr "NoActiveResearchProjectToFinish"
IL_001E: call static Verse.TaggedString
Verse.Translator::Translate(System.String key)
IL_0023: call static System.String
Verse.TaggedString::op_Implicit(Verse.TaggedString taggedString)
IL_0028: stind.ref
IL_0029: ldc.i4.0
IL_002A: br => Label1
IL_002F: Label0
IL_002F: ldarg.2
IL_0030: ldnull
IL_0031: stind.ref
IL_0032: ldc.i4.1
IL_0033: // end original
IL_0033: Label1
IL_0033: stloc 0 (System.Boolean)
IL_0037: ldarg.0
IL_0038: ldarg 1
IL_003C: ldarg 2
IL_0040: ldloca 0 (System.Boolean)
IL_0044: call static System.Void
VanillaStorytellersExpanded.CanBeUsedBy::Postfix(RimWorld.CompUseEffect_FinishRando
mResearchProject __instance, Verse.Pawn p, System.String& failReason,
System.Boolean& __result)
IL_0049: ldloc 0 (System.Boolean)
IL_004D: ret
DONE

### Patch: static System.Void


RimWorld.FactionGenerator::GenerateFactionsIntoWorld(System.Collections.Generic.Lis
t`1<RimWorld.FactionDef> factions)
### Replacement: static System.Void
RimWorld.FactionGenerator::RimWorld.FactionGenerator.GenerateFactionsIntoWorld_Patc
h0(System.Collections.Generic.List`1<RimWorld.FactionDef> factions)
IL_0000: Local var 0: System.Collections.Generic.IEnumerable`1<RimWorld.Faction>
IL_0000: Local var 1:
System.Collections.Generic.List`1/Enumerator<RimWorld.FactionDef>
IL_0000: Local var 2: RimWorld.FactionDef
IL_0000: Local var 3: RimWorld.IdeoGenerationParms
IL_0000: Local var 4: System.Nullable`1<System.Boolean>
IL_0000: Local var 5: System.Collections.Generic.IEnumerator`1<RimWorld.FactionDef>
IL_0000: Local var 6: RimWorld.FactionDef
IL_0000: Local var 7: System.Int32
IL_0000: Local var 8: System.Int32
IL_0000: Local var 9: Verse.FloatRange
IL_0000: Local var 10: System.Int32
IL_0000: Local var 11: RimWorld.Faction
IL_0000: Local var 12: RimWorld.Planet.Settlement
IL_0000: // start original
IL_0000: ldarg.0
IL_0001: brfalse => Label0
IL_0006: ldarg.0
IL_0007: callvirt System.Collections.Generic.Enumerator<RimWorld.FactionDef>
System.Collections.Generic.List`1<RimWorld.FactionDef>::GetEnumerator()
IL_000C: stloc.1
.try
{
IL_000D: br => Label1
IL_0012: Label2
IL_0012: ldloca.s 1
(System.Collections.Generic.List`1+Enumerator[RimWorld.FactionDef])
IL_0014: call virtual RimWorld.FactionDef
System.Collections.Generic.Enumerator<RimWorld.FactionDef>::get_Current()
IL_0019: stloc.2
IL_001A: ldloc.2
IL_001B: call static System.Boolean
VanillaStorytellersExpanded.CustomStorytellerUtility::FactionAllowed(RimWorld.Facti
onDef def)
IL_0020: brfalse => Label1
IL_0025: call static RimWorld.FactionManager
Verse.Find::get_FactionManager()
IL_002A: ldloc.2
IL_002B: ldloca.s 3 (RimWorld.IdeoGenerationParms)
IL_002D: initobj RimWorld.IdeoGenerationParms
IL_0033: ldloc.3
IL_0034: ldloca.s 4 (System.Nullable`1[System.Boolean])
IL_0036: initobj System.Nullable`1[System.Boolean]
IL_003C: ldloc.s 4 (System.Nullable`1[System.Boolean])
IL_003E: newobj System.Void
RimWorld.FactionGeneratorParms::.ctor(RimWorld.FactionDef factionDef,
RimWorld.IdeoGenerationParms ideoGenerationParms, System.Nullable`1<System.Boolean>
hidden)
IL_0043: call static RimWorld.Faction
RimWorld.FactionGenerator::NewGeneratedFaction(RimWorld.FactionGeneratorParms
parms)
IL_0048: callvirt System.Void RimWorld.FactionManager::Add(RimWorld.Faction
faction)
IL_004D: Label1
IL_004D: ldloca.s 1
(System.Collections.Generic.List`1+Enumerator[RimWorld.FactionDef])
IL_004F: call virtual System.Boolean
System.Collections.Generic.Enumerator<RimWorld.FactionDef>::MoveNext()
IL_0054: brtrue => Label2
IL_0059: leave => Label3
IL_005E: leave => (autogenerated)
} // end try
.finally
{
IL_0063: ldloca.s 1
(System.Collections.Generic.List`1+Enumerator[RimWorld.FactionDef])
IL_0065: constrained.
System.Collections.Generic.List`1+Enumerator[RimWorld.FactionDef]
IL_006B: callvirt abstract virtual System.Void
System.IDisposable::Dispose()
IL_0070: endfinally
IL_0071: leave => (autogenerated)
} // end handler
IL_0072: Label0
IL_0072: call static
System.Collections.Generic.IEnumerable`1<RimWorld.FactionDef>
Verse.DefDatabase`1<RimWorld.FactionDef>::get_AllDefs()
IL_0077: call static
System.Collections.Generic.IEnumerable`1<RimWorld.FactionDef>
VanillaStorytellersExpanded.GenerateFactionsIntoWorld::AllowedFactionDefs(System.Co
llections.Generic.IEnumerable`1<RimWorld.FactionDef> original)
IL_007C: ldsfld System.Func`2<RimWorld.FactionDef, System.Boolean>
RimWorld.<>c::<>9__4_1
IL_0081: dup
IL_0082: brtrue => Label4
IL_0087: pop
IL_0088: ldsfld RimWorld.<>c RimWorld.<>c::<>9
IL_008D: ldftn System.Boolean
RimWorld.<>c::<GenerateFactionsIntoWorld>b__4_1(RimWorld.FactionDef x)
IL_0093: newobj System.Void System.Func`2<RimWorld.FactionDef,
System.Boolean>::.ctor(System.Object object, System.IntPtr method)
IL_0098: dup
IL_0099: stsfld System.Func`2<RimWorld.FactionDef, System.Boolean>
RimWorld.<>c::<>9__4_1
IL_009E: Label4
IL_009E: call static System.Linq.IOrderedEnumerable`1<RimWorld.FactionDef>
System.Linq.Enumerable::OrderBy(System.Collections.Generic.IEnumerable`1<RimWorld.F
actionDef> source, System.Func`2<RimWorld.FactionDef, System.Boolean> keySelector)
IL_00A3: callvirt abstract virtual
System.Collections.Generic.IEnumerator`1<RimWorld.FactionDef>
System.Collections.Generic.IEnumerable`1<RimWorld.FactionDef>::GetEnumerator()
IL_00A8: stloc.s 5
(System.Collections.Generic.IEnumerator`1[RimWorld.FactionDef])
.try
{
IL_00AA: br => Label5
IL_00AF: Label8
IL_00AF: ldloc.s 5
(System.Collections.Generic.IEnumerator`1[RimWorld.FactionDef])
IL_00B1: callvirt abstract virtual RimWorld.FactionDef
System.Collections.Generic.IEnumerator`1<RimWorld.FactionDef>::get_Current()
IL_00B6: stloc.s 6 (RimWorld.FactionDef)
IL_00B8: ldc.i4.0
IL_00B9: stloc.s 7 (System.Int32)
IL_00BB: br => Label6
IL_00C0: Label7
IL_00C0: call static RimWorld.FactionManager
Verse.Find::get_FactionManager()
IL_00C5: ldloc.s 6 (RimWorld.FactionDef)
IL_00C7: ldloca.s 3 (RimWorld.IdeoGenerationParms)
IL_00C9: initobj RimWorld.IdeoGenerationParms
IL_00CF: ldloc.3
IL_00D0: ldloca.s 4 (System.Nullable`1[System.Boolean])
IL_00D2: initobj System.Nullable`1[System.Boolean]
IL_00D8: ldloc.s 4 (System.Nullable`1[System.Boolean])
IL_00DA: newobj System.Void
RimWorld.FactionGeneratorParms::.ctor(RimWorld.FactionDef factionDef,
RimWorld.IdeoGenerationParms ideoGenerationParms, System.Nullable`1<System.Boolean>
hidden)
IL_00DF: call static RimWorld.Faction
RimWorld.FactionGenerator::NewGeneratedFaction(RimWorld.FactionGeneratorParms
parms)
IL_00E4: callvirt System.Void RimWorld.FactionManager::Add(RimWorld.Faction
faction)
IL_00E9: ldloc.s 7 (System.Int32)
IL_00EB: ldc.i4.1
IL_00EC: add
IL_00ED: stloc.s 7 (System.Int32)
IL_00EF: Label6
IL_00EF: ldloc.s 7 (System.Int32)
IL_00F1: ldloc.s 6 (RimWorld.FactionDef)
IL_00F3: ldfld System.Int32
RimWorld.FactionDef::requiredCountAtGameStart
IL_00F8: blt => Label7
IL_00FD: Label5
IL_00FD: ldloc.s 5
(System.Collections.Generic.IEnumerator`1[RimWorld.FactionDef])
IL_00FF: callvirt abstract virtual System.Boolean
System.Collections.IEnumerator::MoveNext()
IL_0104: brtrue => Label8
IL_0109: leave => Label9
IL_010E: leave => (autogenerated)
} // end try
.finally
{
IL_0113: ldloc.s 5
(System.Collections.Generic.IEnumerator`1[RimWorld.FactionDef])
IL_0115: brfalse => Label10
IL_011A: ldloc.s 5
(System.Collections.Generic.IEnumerator`1[RimWorld.FactionDef])
IL_011C: callvirt abstract virtual System.Void
System.IDisposable::Dispose()
IL_0121: Label10
IL_0121: endfinally
IL_0122: leave => (autogenerated)
} // end handler
IL_0123: Label3
IL_0123: Label9
IL_0123: call static RimWorld.Planet.World Verse.Find::get_World()
IL_0128: ldfld RimWorld.FactionManager RimWorld.Planet.World::factionManager
IL_012D: callvirt System.Collections.Generic.List`1<RimWorld.Faction>
RimWorld.FactionManager::get_AllFactionsListForReading()
IL_0132: ldsfld System.Func`2<RimWorld.Faction, System.Boolean>
RimWorld.<>c::<>9__4_0
IL_0137: dup
IL_0138: brtrue => Label11
IL_013D: pop
IL_013E: ldsfld RimWorld.<>c RimWorld.<>c::<>9
IL_0143: ldftn System.Boolean
RimWorld.<>c::<GenerateFactionsIntoWorld>b__4_0(RimWorld.Faction x)
IL_0149: newobj System.Void System.Func`2<RimWorld.Faction,
System.Boolean>::.ctor(System.Object object, System.IntPtr method)
IL_014E: dup
IL_014F: stsfld System.Func`2<RimWorld.Faction, System.Boolean>
RimWorld.<>c::<>9__4_0
IL_0154: Label11
IL_0154: call static
System.Collections.Generic.IEnumerable`1<RimWorld.Faction>
System.Linq.Enumerable::Where(System.Collections.Generic.IEnumerable`1<RimWorld.Fac
tion> source, System.Func`2<RimWorld.Faction, System.Boolean> predicate)
IL_0159: stloc.0
IL_015A: ldloc.0
IL_015B: call static System.Boolean
System.Linq.Enumerable::Any(System.Collections.Generic.IEnumerable`1<RimWorld.Facti
on> source)
IL_0160: brfalse => Label12
IL_0165: call static RimWorld.Planet.WorldGrid Verse.Find::get_WorldGrid()
IL_016A: callvirt System.Int32 RimWorld.Planet.WorldGrid::get_TilesCount()
IL_016F: conv.r4
IL_0170: ldc.r4 100000
IL_0175: div
IL_0176: ldsfld Verse.FloatRange
RimWorld.FactionGenerator::SettlementsPer100kTiles
IL_017B: stloc.s 9 (Verse.FloatRange)
IL_017D: ldloca.s 9 (Verse.FloatRange)
IL_017F: call System.Single Verse.FloatRange::get_RandomInRange()
IL_0184: mul
IL_0185: call static RimWorld.Planet.World Verse.Find::get_World()
IL_018A: ldfld RimWorld.Planet.WorldInfo RimWorld.Planet.World::info
IL_018F: ldfld RimWorld.Planet.OverallPopulation
RimWorld.Planet.WorldInfo::overallPopulation
IL_0194: call static System.Single
RimWorld.Planet.OverallPopulationUtility::GetScaleFactor(RimWorld.Planet.OverallPop
ulation population)
IL_0199: mul
IL_019A: call static System.Int32 Verse.GenMath::RoundRandom(System.Single f)
IL_019F: stloc.s 8 (System.Int32)
IL_01A1: ldloc.s 8 (System.Int32)
IL_01A3: call static RimWorld.Planet.WorldObjectsHolder
Verse.Find::get_WorldObjects()
IL_01A8: callvirt System.Collections.Generic.List`1<RimWorld.Planet.Settlement>
RimWorld.Planet.WorldObjectsHolder::get_Settlements()
IL_01AD: callvirt virtual System.Int32
System.Collections.Generic.List`1<RimWorld.Planet.Settlement>::get_Count()
IL_01B2: sub
IL_01B3: stloc.s 8 (System.Int32)
IL_01B5: ldc.i4.0
IL_01B6: stloc.s 10 (System.Int32)
IL_01B8: br => Label13
IL_01BD: Label15
IL_01BD: ldloc.0
IL_01BE: ldsfld System.Func`2<RimWorld.Faction, System.Single>
RimWorld.<>c::<>9__4_2
IL_01C3: dup
IL_01C4: brtrue => Label14
IL_01C9: pop
IL_01CA: ldsfld RimWorld.<>c RimWorld.<>c::<>9
IL_01CF: ldftn System.Single
RimWorld.<>c::<GenerateFactionsIntoWorld>b__4_2(RimWorld.Faction x)
IL_01D5: newobj System.Void System.Func`2<RimWorld.Faction,
System.Single>::.ctor(System.Object object, System.IntPtr method)
IL_01DA: dup
IL_01DB: stsfld System.Func`2<RimWorld.Faction, System.Single>
RimWorld.<>c::<>9__4_2
IL_01E0: Label14
IL_01E0: call static RimWorld.Faction
Verse.GenCollection::RandomElementByWeight(System.Collections.Generic.IEnumerable`1
<RimWorld.Faction> source, System.Func`2<RimWorld.Faction, System.Single>
weightSelector)
IL_01E5: stloc.s 11 (RimWorld.Faction)
IL_01E7: ldsfld RimWorld.WorldObjectDef RimWorld.WorldObjectDefOf::Settlement
IL_01EC: call static RimWorld.Planet.WorldObject
RimWorld.Planet.WorldObjectMaker::MakeWorldObject(RimWorld.WorldObjectDef def)
IL_01F1: castclass RimWorld.Planet.Settlement
IL_01F6: stloc.s 12 (RimWorld.Planet.Settlement)
IL_01F8: ldloc.s 12 (RimWorld.Planet.Settlement)
IL_01FA: ldloc.s 11 (RimWorld.Faction)
IL_01FC: callvirt virtual System.Void
RimWorld.Planet.WorldObject::SetFaction(RimWorld.Faction newFaction)
IL_0201: ldloc.s 12 (RimWorld.Planet.Settlement)
IL_0203: ldloc.s 11 (RimWorld.Faction)
IL_0205: ldc.i4.0
IL_0206: ldnull
IL_0207: call static System.Int32
RimWorld.Planet.TileFinder::RandomSettlementTileFor(RimWorld.Faction faction,
System.Boolean mustBeAutoChoosable, System.Predicate`1<System.Int32>
extraValidator)
IL_020C: callvirt System.Void RimWorld.Planet.WorldObject::set_Tile(System.Int32
value)
IL_0211: ldloc.s 12 (RimWorld.Planet.Settlement)
IL_0213: ldloc.s 12 (RimWorld.Planet.Settlement)
IL_0215: ldnull
IL_0216: call static System.String
RimWorld.Planet.SettlementNameGenerator::GenerateSettlementName(RimWorld.Planet.Set
tlement factionBase, Verse.RulePackDef rulePack)
IL_021B: callvirt System.Void RimWorld.Planet.Settlement::set_Name(System.String
value)
IL_0220: call static RimWorld.Planet.WorldObjectsHolder
Verse.Find::get_WorldObjects()
IL_0225: ldloc.s 12 (RimWorld.Planet.Settlement)
IL_0227: callvirt System.Void
RimWorld.Planet.WorldObjectsHolder::Add(RimWorld.Planet.WorldObject o)
IL_022C: ldloc.s 10 (System.Int32)
IL_022E: ldc.i4.1
IL_022F: add
IL_0230: stloc.s 10 (System.Int32)
IL_0232: Label13
IL_0232: ldloc.s 10 (System.Int32)
IL_0234: ldloc.s 8 (System.Int32)
IL_0236: blt => Label15
IL_023B: Label12
IL_023B: call static RimWorld.IdeoManager Verse.Find::get_IdeoManager()
IL_0240: callvirt System.Void RimWorld.IdeoManager::SortIdeos()
IL_0245: // end original
IL_0245: ret
DONE

### Patch: System.Void


RimWorld.MainTabWindow_Research::DrawRightRect(UnityEngine.Rect rightOutRect)
### Replacement: static System.Void
RimWorld.MainTabWindow_Research::RimWorld.MainTabWindow_Research.DrawRightRect_Patc
h0(RimWorld.MainTabWindow_Research this, UnityEngine.Rect rightOutRect)
IL_0000: Local var 0: System.Boolean
IL_0000: Local var 1: UnityEngine.Rect
IL_0000: Local var 2: UnityEngine.Rect
IL_0000: Local var 3: UnityEngine.Vector2
IL_0000: Local var 4: UnityEngine.Vector2
IL_0000: Local var 5: UnityEngine.Rect
IL_0000: Local var 6: System.Text.StringBuilder
IL_0000: Local var 7:
System.Collections.Generic.IEnumerator`1<Verse.ResearchProjectDef>
IL_0000: Local var 8: Verse.ResearchProjectDef
IL_0000: Local var 9: System.Single
IL_0000: Local var 10: System.Collections.Generic.List`1<Verse.ResearchProjectDef>
IL_0000: Local var 11: UnityEngine.Rect
IL_0000: Local var 12: System.Int32
IL_0000: Local var 13: System.Int32
IL_0000: Local var 14: Verse.ResearchProjectDef
IL_0000: Local var 15: System.Int32
IL_0000: Local var 16: Verse.ResearchProjectDef
IL_0000: Local var 17: System.Int32
IL_0000: Local var 18: Verse.ResearchProjectDef
IL_0000: Local var 19: UnityEngine.Rect
IL_0000: Local var 20: UnityEngine.Rect
IL_0000: Local var 21: System.Boolean
IL_0000: Local var 22: System.Boolean
IL_0000: Local var 23: System.String
IL_0000: Local var 24: UnityEngine.Color
IL_0000: Local var 25: UnityEngine.Color
IL_0000: Local var 26: UnityEngine.Color
IL_0000: Local var 27: System.Boolean
IL_0000: Local var 28: UnityEngine.Color
IL_0000: Local var 29: UnityEngine.Color
IL_0000: Local var 30: UnityEngine.Rect
IL_0000: Local var 31: UnityEngine.Rect
IL_0000: Local var 32: UnityEngine.Color
IL_0000: Local var 33: System.Single
IL_0000: Local var 34: System.Int32
IL_0000: Local var 35: Verse.ResearchProjectDef
IL_0000: Local var 36: System.Nullable`1<UnityEngine.Color>
IL_0000: Local var 37: System.String
IL_0000: Local var 38: UnityEngine.Vector2
IL_0000: Local var 39: System.String
IL_0000: Local var 40: UnityEngine.Vector2
IL_0000: Local var 41: System.Int32
IL_0000: Local var 42: System.Int32
IL_0000: // start original
IL_0000: ldarga.s 1
IL_0002: dup
IL_0003: call System.Single UnityEngine.Rect::get_yMin()
IL_0008: ldc.r4 32
IL_000D: add
IL_000E: call System.Void UnityEngine.Rect::set_yMin(System.Single value)
IL_0013: ldarg.1
IL_0014: call static System.Void
Verse.Widgets::DrawMenuSection(UnityEngine.Rect rect)
IL_0019: ldarg.1
IL_001A: ldarg.0
IL_001B: ldfld System.Collections.Generic.List`1<RimWorld.ResearchTabRecord>
RimWorld.MainTabWindow_Research::tabs
IL_0020: ldc.r4 200
IL_0025: call static RimWorld.ResearchTabRecord
Verse.TabDrawer::DrawTabs(UnityEngine.Rect baseRect,
System.Collections.Generic.List`1<RimWorld.ResearchTabRecord> tabs, System.Single
maxTabWidth)
IL_002A: pop
IL_002B: call static System.Boolean Verse.Prefs::get_DevMode()
IL_0030: brfalse => Label0
IL_0035: ldarg.1
IL_0036: stloc.s 5 (UnityEngine.Rect)
IL_0038: ldloca.s 5 (UnityEngine.Rect)
IL_003A: ldloca.s 5 (UnityEngine.Rect)
IL_003C: call System.Single UnityEngine.Rect::get_yMin()
IL_0041: ldc.r4 20
IL_0046: add
IL_0047: call System.Void UnityEngine.Rect::set_yMax(System.Single value)
IL_004C: ldloca.s 5 (UnityEngine.Rect)
IL_004E: ldloca.s 5 (UnityEngine.Rect)
IL_0050: call System.Single UnityEngine.Rect::get_xMax()
IL_0055: ldc.r4 80
IL_005A: sub
IL_005B: call System.Void UnityEngine.Rect::set_xMin(System.Single value)
IL_0060: ldloc.s 5 (UnityEngine.Rect)
IL_0062: ldc.r4 30
IL_0067: call static UnityEngine.Rect
Verse.GenUI::RightPartPixels(UnityEngine.Rect rect, System.Single width)
IL_006C: ldloc.s 5 (UnityEngine.Rect)
IL_006E: ldloca.s 5 (UnityEngine.Rect)
IL_0070: call System.Single UnityEngine.Rect::get_width()
IL_0075: ldc.r4 30
IL_007A: sub
IL_007B: call static UnityEngine.Rect
Verse.GenUI::LeftPartPixels(UnityEngine.Rect rect, System.Single width)
IL_0080: stloc.s 5 (UnityEngine.Rect)
IL_0082: ldloc.s 5 (UnityEngine.Rect)
IL_0084: ldstr "Edit"
IL_0089: ldarg.0
IL_008A: ldflda System.Boolean RimWorld.MainTabWindow_Research::editMode
IL_008F: ldc.i4.0
IL_0090: ldnull
IL_0091: ldnull
IL_0092: ldc.i4.0
IL_0093: call static System.Void
Verse.Widgets::CheckboxLabeled(UnityEngine.Rect rect, System.String label,
System.Boolean& checkOn, System.Boolean disabled, UnityEngine.Texture2D texChecked,
UnityEngine.Texture2D texUnchecked, System.Boolean placeCheckboxNearText)
IL_0098: ldsfld UnityEngine.Texture2D Verse.TexButton::Copy
IL_009D: call static System.Boolean
Verse.Widgets::ButtonImageFitted(UnityEngine.Rect butRect, UnityEngine.Texture2D
tex)
IL_00A2: brfalse => Label1
IL_00A7: newobj System.Void System.Text.StringBuilder::.ctor()
IL_00AC: stloc.s 6 (System.Text.StringBuilder)
IL_00AE: ldarg.0
IL_00AF: call System.Collections.Generic.List`1<Verse.ResearchProjectDef>
RimWorld.MainTabWindow_Research::get_VisibleResearchProjects()
IL_00B4: ldsfld System.Func`2<Verse.ResearchProjectDef, System.Boolean>
RimWorld.<>c::<>9__78_0
IL_00B9: dup
IL_00BA: brtrue => Label2
IL_00BF: pop
IL_00C0: ldsfld RimWorld.<>c RimWorld.<>c::<>9
IL_00C5: ldftn System.Boolean
RimWorld.<>c::<DrawRightRect>b__78_0(Verse.ResearchProjectDef def)
IL_00CB: newobj System.Void System.Func`2<Verse.ResearchProjectDef,
System.Boolean>::.ctor(System.Object object, System.IntPtr method)
IL_00D0: dup
IL_00D1: stsfld System.Func`2<Verse.ResearchProjectDef, System.Boolean>
RimWorld.<>c::<>9__78_0
IL_00D6: Label2
IL_00D6: call static
System.Collections.Generic.IEnumerable`1<Verse.ResearchProjectDef>
System.Linq.Enumerable::Where(System.Collections.Generic.IEnumerable`1<Verse.Resear
chProjectDef> source, System.Func`2<Verse.ResearchProjectDef, System.Boolean>
predicate)
IL_00DB: callvirt abstract virtual
System.Collections.Generic.IEnumerator`1<Verse.ResearchProjectDef>
System.Collections.Generic.IEnumerable`1<Verse.ResearchProjectDef>::GetEnumerator()
IL_00E0: stloc.s 7
(System.Collections.Generic.IEnumerator`1[Verse.ResearchProjectDef])
.try
{
IL_00E2: br => Label3
IL_00E7: Label4
IL_00E7: ldloc.s 7
(System.Collections.Generic.IEnumerator`1[Verse.ResearchProjectDef])
IL_00E9: callvirt abstract virtual Verse.ResearchProjectDef
System.Collections.Generic.IEnumerator`1<Verse.ResearchProjectDef>::get_Current()
IL_00EE: stloc.s 8 (Verse.ResearchProjectDef)
IL_00F0: ldloc.s 6 (System.Text.StringBuilder)
IL_00F2: ldloc.s 8 (Verse.ResearchProjectDef)
IL_00F4: ldfld System.String Verse.Def::defName
IL_00F9: callvirt System.Text.StringBuilder
System.Text.StringBuilder::AppendLine(System.String value)
IL_00FE: pop
IL_00FF: ldloc.s 6 (System.Text.StringBuilder)
IL_0101: ldstr " <researchViewX>{0}</researchViewX>"
IL_0106: ldloc.s 8 (Verse.ResearchProjectDef)
IL_0108: callvirt System.Single
Verse.ResearchProjectDef::get_ResearchViewX()
IL_010D: stloc.s 9 (System.Single)
IL_010F: ldloca.s 9 (System.Single)
IL_0111: ldstr "F2"
IL_0116: call System.String System.Single::ToString(System.String
format)
IL_011B: call static System.String System.String::Format(System.String
format, System.Object arg0)
IL_0120: callvirt System.Text.StringBuilder
System.Text.StringBuilder::AppendLine(System.String value)
IL_0125: pop
IL_0126: ldloc.s 6 (System.Text.StringBuilder)
IL_0128: ldstr " <researchViewY>{0}</researchViewY>"
IL_012D: ldloc.s 8 (Verse.ResearchProjectDef)
IL_012F: callvirt System.Single
Verse.ResearchProjectDef::get_ResearchViewY()
IL_0134: stloc.s 9 (System.Single)
IL_0136: ldloca.s 9 (System.Single)
IL_0138: ldstr "F2"
IL_013D: call System.String System.Single::ToString(System.String
format)
IL_0142: call static System.String System.String::Format(System.String
format, System.Object arg0)
IL_0147: callvirt System.Text.StringBuilder
System.Text.StringBuilder::AppendLine(System.String value)
IL_014C: pop
IL_014D: ldloc.s 6 (System.Text.StringBuilder)
IL_014F: callvirt System.Text.StringBuilder
System.Text.StringBuilder::AppendLine()
IL_0154: pop
IL_0155: Label3
IL_0155: ldloc.s 7
(System.Collections.Generic.IEnumerator`1[Verse.ResearchProjectDef])
IL_0157: callvirt abstract virtual System.Boolean
System.Collections.IEnumerator::MoveNext()
IL_015C: brtrue => Label4
IL_0161: leave => Label5
IL_0166: leave => (autogenerated)
} // end try
.finally
{
IL_016B: ldloc.s 7
(System.Collections.Generic.IEnumerator`1[Verse.ResearchProjectDef])
IL_016D: brfalse => Label6
IL_0172: ldloc.s 7
(System.Collections.Generic.IEnumerator`1[Verse.ResearchProjectDef])
IL_0174: callvirt abstract virtual System.Void
System.IDisposable::Dispose()
IL_0179: Label6
IL_0179: endfinally
IL_017A: leave => (autogenerated)
} // end handler
IL_017B: Label5
IL_017B: ldloc.s 6 (System.Text.StringBuilder)
IL_017D: callvirt virtual System.String System.Object::ToString()
IL_0182: call static System.Void
UnityEngine.GUIUtility::set_systemCopyBuffer(System.String value)
IL_0187: ldstr "Modified data copied to clipboard."
IL_018C: ldsfld Verse.MessageTypeDef
RimWorld.MessageTypeDefOf::SituationResolved
IL_0191: ldc.i4.0
IL_0192: call static System.Void Verse.Messages::Message(System.String text,
Verse.MessageTypeDef def, System.Boolean historical)
IL_0197: br => Label7
IL_019C: Label0
IL_019C: ldarg.0
IL_019D: ldc.i4.0
IL_019E: stfld System.Boolean RimWorld.MainTabWindow_Research::editMode
IL_01A3: Label1
IL_01A3: Label7
IL_01A3: ldc.i4.0
IL_01A4: stloc.0
IL_01A5: ldarg.1
IL_01A6: ldc.r4 10
IL_01AB: call static UnityEngine.Rect
Verse.GenUI::ContractedBy(UnityEngine.Rect rect, System.Single margin)
IL_01B0: stloc.1
IL_01B1: ldloca.s 2 (UnityEngine.Rect)
IL_01B3: ldc.r4 0
IL_01B8: ldc.r4 0
IL_01BD: ldarg.0
IL_01BE: ldfld System.Single RimWorld.MainTabWindow_Research::rightViewWidth
IL_01C3: ldarg.0
IL_01C4: ldfld System.Single RimWorld.MainTabWindow_Research::rightViewHeight
IL_01C9: call System.Void UnityEngine.Rect::.ctor(System.Single x,
System.Single y, System.Single width, System.Single height)
IL_01CE: ldloc.2
IL_01CF: ldc.r4 10
IL_01D4: call static UnityEngine.Rect
Verse.GenUI::ContractedBy(UnityEngine.Rect rect, System.Single margin)
IL_01D9: pop
IL_01DA: ldloca.s 2 (UnityEngine.Rect)
IL_01DC: ldarg.0
IL_01DD: ldfld System.Single RimWorld.MainTabWindow_Research::rightViewWidth
IL_01E2: call System.Void UnityEngine.Rect::set_width(System.Single value)
IL_01E7: ldloc.2
IL_01E8: ldc.r4 10
IL_01ED: call static UnityEngine.Rect
Verse.GenUI::ContractedBy(UnityEngine.Rect rect, System.Single margin)
IL_01F2: ldloca.s 3 (UnityEngine.Vector2)
IL_01F4: initobj UnityEngine.Vector2
IL_01FA: ldloca.s 4 (UnityEngine.Vector2)
IL_01FC: initobj UnityEngine.Vector2
IL_0202: ldarg.0
IL_0203: ldfld Verse.ScrollPositioner
RimWorld.MainTabWindow_Research::scrollPositioner
IL_0208: callvirt System.Void Verse.ScrollPositioner::ClearInterestRects()
IL_020D: ldloc.1
IL_020E: ldarg.0
IL_020F: ldflda UnityEngine.Vector2
RimWorld.MainTabWindow_Research::rightScrollPosition
IL_0214: ldloc.2
IL_0215: ldc.r4 20
IL_021A: call static System.Void
Verse.Widgets::ScrollHorizontal(UnityEngine.Rect outRect, UnityEngine.Vector2&
scrollPosition, UnityEngine.Rect viewRect, System.Single ScrollWheelSpeed)
IL_021F: ldloc.1
IL_0220: ldarg.0
IL_0221: ldflda UnityEngine.Vector2
RimWorld.MainTabWindow_Research::rightScrollPosition
IL_0226: ldloc.2
IL_0227: ldc.i4.1
IL_0228: call static System.Void
Verse.Widgets::BeginScrollView(UnityEngine.Rect outRect, UnityEngine.Vector2&
scrollPosition, UnityEngine.Rect viewRect, System.Boolean showScrollbars)
IL_022D: call static System.Void Verse.Widgets::BeginGroup(UnityEngine.Rect
rect)
IL_0232: ldarg.0
IL_0233: call System.Collections.Generic.List`1<Verse.ResearchProjectDef>
RimWorld.MainTabWindow_Research::get_VisibleResearchProjects()
IL_0238: stloc.s 10
(System.Collections.Generic.List`1[Verse.ResearchProjectDef])
IL_023A: ldc.i4.0
IL_023B: stloc.s 12 (System.Int32)
IL_023D: br => Label8
IL_0242: Label21
IL_0242: ldc.i4.0
IL_0243: stloc.s 13 (System.Int32)
IL_0245: br => Label9
IL_024A: Label20
IL_024A: ldloc.s 10
(System.Collections.Generic.List`1[Verse.ResearchProjectDef])
IL_024C: ldloc.s 13 (System.Int32)
IL_024E: callvirt virtual Verse.ResearchProjectDef
System.Collections.Generic.List`1<Verse.ResearchProjectDef>::get_Item(System.Int32
index)
IL_0253: stloc.s 14 (Verse.ResearchProjectDef)
IL_0255: ldloc.s 14 (Verse.ResearchProjectDef)
IL_0257: ldfld RimWorld.ResearchTabDef Verse.ResearchProjectDef::tab
IL_025C: ldarg.0
IL_025D: call RimWorld.ResearchTabDef
RimWorld.MainTabWindow_Research::get_CurTab()
IL_0262: bne.un => Label10
IL_0267: ldloca.s 3 (UnityEngine.Vector2)
IL_0269: ldarg.0
IL_026A: ldloc.s 14 (Verse.ResearchProjectDef)
IL_026C: call System.Single
RimWorld.MainTabWindow_Research::PosX(Verse.ResearchProjectDef d)
IL_0271: stfld System.Single UnityEngine.Vector2::x
IL_0276: ldloca.s 3 (UnityEngine.Vector2)
IL_0278: ldarg.0
IL_0279: ldloc.s 14 (Verse.ResearchProjectDef)
IL_027B: call System.Single
RimWorld.MainTabWindow_Research::PosY(Verse.ResearchProjectDef d)
IL_0280: ldc.r4 25
IL_0285: add
IL_0286: stfld System.Single UnityEngine.Vector2::y
IL_028B: ldc.i4.0
IL_028C: stloc.s 15 (System.Int32)
IL_028E: br => Label11
IL_0293: Label19
IL_0293: ldloc.s 14 (Verse.ResearchProjectDef)
IL_0295: ldfld System.Collections.Generic.List`1<Verse.ResearchProjectDef>
Verse.ResearchProjectDef::prerequisites
IL_029A: ldloc.s 15 (System.Int32)
IL_029C: callvirt virtual Verse.ResearchProjectDef
System.Collections.Generic.List`1<Verse.ResearchProjectDef>::get_Item(System.Int32
index)
IL_02A1: stloc.s 16 (Verse.ResearchProjectDef)
IL_02A3: ldloc.s 16 (Verse.ResearchProjectDef)
IL_02A5: brfalse => Label12
IL_02AA: ldloc.s 16 (Verse.ResearchProjectDef)
IL_02AC: ldfld RimWorld.ResearchTabDef Verse.ResearchProjectDef::tab
IL_02B1: ldarg.0
IL_02B2: call RimWorld.ResearchTabDef
RimWorld.MainTabWindow_Research::get_CurTab()
IL_02B7: bne.un => Label13
IL_02BC: ldloca.s 4 (UnityEngine.Vector2)
IL_02BE: ldarg.0
IL_02BF: ldloc.s 16 (Verse.ResearchProjectDef)
IL_02C1: call System.Single
RimWorld.MainTabWindow_Research::PosX(Verse.ResearchProjectDef d)
IL_02C6: ldc.r4 140
IL_02CB: add
IL_02CC: stfld System.Single UnityEngine.Vector2::x
IL_02D1: ldloca.s 4 (UnityEngine.Vector2)
IL_02D3: ldarg.0
IL_02D4: ldloc.s 16 (Verse.ResearchProjectDef)
IL_02D6: call System.Single
RimWorld.MainTabWindow_Research::PosY(Verse.ResearchProjectDef d)
IL_02DB: ldc.r4 25
IL_02E0: add
IL_02E1: stfld System.Single UnityEngine.Vector2::y
IL_02E6: ldarg.0
IL_02E7: ldfld Verse.ResearchProjectDef
RimWorld.MainTabWindow_Research::selectedProject
IL_02EC: ldloc.s 14 (Verse.ResearchProjectDef)
IL_02EE: beq => Label14
IL_02F3: ldarg.0
IL_02F4: ldfld Verse.ResearchProjectDef
RimWorld.MainTabWindow_Research::selectedProject
IL_02F9: ldloc.s 16 (Verse.ResearchProjectDef)
IL_02FB: bne.un => Label15
IL_0300: Label14
IL_0300: ldloc.s 12 (System.Int32)
IL_0302: ldc.i4.1
IL_0303: bne.un => Label16
IL_0308: ldloc.3
IL_0309: ldloc.s 4 (UnityEngine.Vector2)
IL_030B: ldsfld UnityEngine.Color Verse.TexUI::HighlightLineResearchColor
IL_0310: ldc.r4 4
IL_0315: call static System.Void Verse.Widgets::DrawLine(UnityEngine.Vector2
start, UnityEngine.Vector2 end, UnityEngine.Color color, System.Single width)
IL_031A: br => Label17
IL_031F: Label15
IL_031F: ldloc.s 12 (System.Int32)
IL_0321: brtrue => Label18
IL_0326: ldloc.3
IL_0327: ldloc.s 4 (UnityEngine.Vector2)
IL_0329: ldsfld UnityEngine.Color Verse.TexUI::DefaultLineResearchColor
IL_032E: ldc.r4 2
IL_0333: call static System.Void Verse.Widgets::DrawLine(UnityEngine.Vector2
start, UnityEngine.Vector2 end, UnityEngine.Color color, System.Single width)
IL_0338: Label12
IL_0338: Label13
IL_0338: Label16
IL_0338: Label17
IL_0338: Label18
IL_0338: ldloc.s 15 (System.Int32)
IL_033A: ldc.i4.1
IL_033B: add
IL_033C: stloc.s 15 (System.Int32)
IL_033E: Label11
IL_033E: ldloc.s 15 (System.Int32)
IL_0340: ldloc.s 14 (Verse.ResearchProjectDef)
IL_0342: ldfld System.Collections.Generic.List`1<Verse.ResearchProjectDef>
Verse.ResearchProjectDef::prerequisites
IL_0347: call static System.Int32
Verse.GenList::CountAllowNull(System.Collections.Generic.IList`1<Verse.ResearchProj
ectDef> list)
IL_034C: blt => Label19
IL_0351: Label10
IL_0351: ldloc.s 13 (System.Int32)
IL_0353: ldc.i4.1
IL_0354: add
IL_0355: stloc.s 13 (System.Int32)
IL_0357: Label9
IL_0357: ldloc.s 13 (System.Int32)
IL_0359: ldloc.s 10
(System.Collections.Generic.List`1[Verse.ResearchProjectDef])
IL_035B: callvirt virtual System.Int32
System.Collections.Generic.List`1<Verse.ResearchProjectDef>::get_Count()
IL_0360: blt => Label20
IL_0365: ldloc.s 12 (System.Int32)
IL_0367: ldc.i4.1
IL_0368: add
IL_0369: stloc.s 12 (System.Int32)
IL_036B: Label8
IL_036B: ldloc.s 12 (System.Int32)
IL_036D: ldc.i4.2
IL_036E: blt => Label21
IL_0373: ldarg.0
IL_0374: ldflda UnityEngine.Vector2
RimWorld.MainTabWindow_Research::rightScrollPosition
IL_0379: ldfld System.Single UnityEngine.Vector2::x
IL_037E: ldarg.0
IL_037F: ldflda UnityEngine.Vector2
RimWorld.MainTabWindow_Research::rightScrollPosition
IL_0384: ldfld System.Single UnityEngine.Vector2::y
IL_0389: ldloca.s 1 (UnityEngine.Rect)
IL_038B: call System.Single UnityEngine.Rect::get_width()
IL_0390: ldloca.s 1 (UnityEngine.Rect)
IL_0392: call System.Single UnityEngine.Rect::get_height()
IL_0397: newobj System.Void UnityEngine.Rect::.ctor(System.Single x,
System.Single y, System.Single width, System.Single height)
IL_039C: ldc.r4 10
IL_03A1: call static UnityEngine.Rect
Verse.GenUI::ExpandedBy(UnityEngine.Rect rect, System.Single margin)
IL_03A6: stloc.s 11 (UnityEngine.Rect)
IL_03A8: ldc.i4.0
IL_03A9: stloc.s 17 (System.Int32)
IL_03AB: br => Label22
IL_03B0: Label81
IL_03B0: ldloc.s 10
(System.Collections.Generic.List`1[Verse.ResearchProjectDef])
IL_03B2: ldloc.s 17 (System.Int32)
IL_03B4: callvirt virtual Verse.ResearchProjectDef
System.Collections.Generic.List`1<Verse.ResearchProjectDef>::get_Item(System.Int32
index)
IL_03B9: stloc.s 18 (Verse.ResearchProjectDef)
IL_03BB: ldloc.s 18 (Verse.ResearchProjectDef)
IL_03BD: ldfld RimWorld.ResearchTabDef Verse.ResearchProjectDef::tab
IL_03C2: ldarg.0
IL_03C3: call RimWorld.ResearchTabDef
RimWorld.MainTabWindow_Research::get_CurTab()
IL_03C8: bne.un => Label23
IL_03CD: ldloca.s 19 (UnityEngine.Rect)
IL_03CF: ldarg.0
IL_03D0: ldloc.s 18 (Verse.ResearchProjectDef)
IL_03D2: call System.Single
RimWorld.MainTabWindow_Research::PosX(Verse.ResearchProjectDef d)
IL_03D7: ldarg.0
IL_03D8: ldloc.s 18 (Verse.ResearchProjectDef)
IL_03DA: call System.Single
RimWorld.MainTabWindow_Research::PosY(Verse.ResearchProjectDef d)
IL_03DF: ldc.r4 140
IL_03E4: ldc.r4 50
IL_03E9: call System.Void UnityEngine.Rect::.ctor(System.Single x,
System.Single y, System.Single width, System.Single height)
IL_03EE: ldloca.s 20 (UnityEngine.Rect)
IL_03F0: ldloc.s 19 (UnityEngine.Rect)
IL_03F2: call System.Void UnityEngine.Rect::.ctor(UnityEngine.Rect source)
IL_03F7: ldarg.0
IL_03F8: ldfld RimWorld.QuickSearchWidget
RimWorld.MainTabWindow_Research::quickSearchWidget
IL_03FD: ldfld RimWorld.QuickSearchFilter RimWorld.QuickSearchWidget::filter
IL_0402: callvirt System.Boolean RimWorld.QuickSearchFilter::get_Active()
IL_0407: brfalse => Label24
IL_040C: ldarg.0
IL_040D: ldfld System.Collections.Generic.HashSet`1<Verse.ResearchProjectDef>
RimWorld.MainTabWindow_Research::matchingProjects
IL_0412: ldloc.s 18 (Verse.ResearchProjectDef)
IL_0414: callvirt virtual System.Boolean
System.Collections.Generic.HashSet`1<Verse.ResearchProjectDef>::Contains(Verse.Rese
archProjectDef item)
IL_0419: ldc.i4.0
IL_041A: ceq
IL_041C: br => Label25
IL_0421: Label24
IL_0421: ldc.i4.0
IL_0422: Label25
IL_0422: stloc.s 21 (System.Boolean)
IL_0424: ldarg.0
IL_0425: ldfld RimWorld.QuickSearchWidget
RimWorld.MainTabWindow_Research::quickSearchWidget
IL_042A: ldfld RimWorld.QuickSearchFilter RimWorld.QuickSearchWidget::filter
IL_042F: callvirt System.Boolean RimWorld.QuickSearchFilter::get_Active()
IL_0434: brfalse => Label26
IL_0439: ldarg.0
IL_043A: ldfld System.Collections.Generic.HashSet`1<Verse.ResearchProjectDef>
RimWorld.MainTabWindow_Research::matchingProjects
IL_043F: ldloc.s 18 (Verse.ResearchProjectDef)
IL_0441: callvirt virtual System.Boolean
System.Collections.Generic.HashSet`1<Verse.ResearchProjectDef>::Contains(Verse.Rese
archProjectDef item)
IL_0446: br => Label27
IL_044B: Label26
IL_044B: ldc.i4.0
IL_044C: Label27
IL_044C: stloc.s 22 (System.Boolean)
IL_044E: ldloc.s 22 (System.Boolean)
IL_0450: brtrue => Label28
IL_0455: ldarg.0
IL_0456: ldfld Verse.ResearchProjectDef
RimWorld.MainTabWindow_Research::selectedProject
IL_045B: ldloc.s 18 (Verse.ResearchProjectDef)
IL_045D: bne.un => Label29
IL_0462: Label28
IL_0462: ldarg.0
IL_0463: ldfld Verse.ScrollPositioner
RimWorld.MainTabWindow_Research::scrollPositioner
IL_0468: ldloc.s 19 (UnityEngine.Rect)
IL_046A: callvirt System.Void
Verse.ScrollPositioner::RegisterInterestRect(UnityEngine.Rect rect)
IL_046F: Label29
IL_046F: ldarg.0
IL_0470: ldloc.s 18 (Verse.ResearchProjectDef)
IL_0472: call System.String
RimWorld.MainTabWindow_Research::GetLabel(Verse.ResearchProjectDef r)
IL_0477: stloc.s 23 (System.String)
IL_0479: ldloca.s 20 (UnityEngine.Rect)
IL_047B: ldarg.0
IL_047C: ldloc.s 23 (System.String)
IL_047E: call System.String
RimWorld.MainTabWindow_Research::GetLabelWithNewlineCached(System.String label)
IL_0483: ldc.i4.1
IL_0484: ldc.i4.0
IL_0485: call static System.Void
Verse.Widgets::LabelCacheHeight(UnityEngine.Rect& rect, System.String label,
System.Boolean renderLabel, System.Boolean forceInvalidation)
IL_048A: ldloca.s 20 (UnityEngine.Rect)
IL_048C: ldloc.s 11 (UnityEngine.Rect)
IL_048E: call System.Boolean UnityEngine.Rect::Overlaps(UnityEngine.Rect
other)
IL_0493: brfalse => Label30
IL_0498: ldsfld UnityEngine.Color Verse.Widgets::NormalOptionColor
IL_049D: stloc.s 24 (UnityEngine.Color)
IL_049F: ldloca.s 25 (UnityEngine.Color)
IL_04A1: initobj UnityEngine.Color
IL_04A7: ldloca.s 26 (UnityEngine.Color)
IL_04A9: initobj UnityEngine.Color
IL_04AF: ldloc.s 18 (Verse.ResearchProjectDef)
IL_04B1: callvirt System.Boolean Verse.ResearchProjectDef::get_IsFinished()
IL_04B6: brtrue => Label31
IL_04BB: ldloc.s 18 (Verse.ResearchProjectDef)
IL_04BD: callvirt System.Boolean Verse.ResearchProjectDef::get_CanStartNow()
IL_04C2: ldc.i4.0
IL_04C3: ceq
IL_04C5: br => Label32
IL_04CA: Label31
IL_04CA: ldc.i4.0
IL_04CB: Label32
IL_04CB: stloc.s 27 (System.Boolean)
IL_04CD: ldloc.s 18 (Verse.ResearchProjectDef)
IL_04CF: call static RimWorld.ResearchManager
Verse.Find::get_ResearchManager()
IL_04D4: ldfld Verse.ResearchProjectDef RimWorld.ResearchManager::currentProj
IL_04D9: bne.un => Label33
IL_04DE: ldsfld UnityEngine.Color Verse.TexUI::ActiveResearchColor
IL_04E3: stloc.s 25 (UnityEngine.Color)
IL_04E5: br => Label34
IL_04EA: Label33
IL_04EA: ldloc.s 18 (Verse.ResearchProjectDef)
IL_04EC: callvirt System.Boolean Verse.ResearchProjectDef::get_IsFinished()
IL_04F1: brfalse => Label35
IL_04F6: ldsfld UnityEngine.Color Verse.TexUI::FinishedResearchColor
IL_04FB: stloc.s 25 (UnityEngine.Color)
IL_04FD: br => Label36
IL_0502: Label35
IL_0502: ldloc.s 27 (System.Boolean)
IL_0504: brfalse => Label37
IL_0509: ldsfld UnityEngine.Color Verse.TexUI::LockedResearchColor
IL_050E: stloc.s 25 (UnityEngine.Color)
IL_0510: br => Label38
IL_0515: Label37
IL_0515: ldloc.s 18 (Verse.ResearchProjectDef)
IL_0517: callvirt System.Boolean Verse.ResearchProjectDef::get_CanStartNow()
IL_051C: brfalse => Label39
IL_0521: ldsfld UnityEngine.Color Verse.TexUI::AvailResearchColor
IL_0526: stloc.s 25 (UnityEngine.Color)
IL_0528: Label34
IL_0528: Label36
IL_0528: Label38
IL_0528: Label39
IL_0528: ldarg.0
IL_0529: ldfld System.Boolean RimWorld.MainTabWindow_Research::editMode
IL_052E: brfalse => Label40
IL_0533: ldarg.0
IL_0534: ldfld System.Collections.Generic.List`1<Verse.ResearchProjectDef>
RimWorld.MainTabWindow_Research::draggingTabs
IL_0539: ldloc.s 18 (Verse.ResearchProjectDef)
IL_053B: callvirt virtual System.Boolean
System.Collections.Generic.List`1<Verse.ResearchProjectDef>::Contains(Verse.Researc
hProjectDef item)
IL_0540: brfalse => Label41
IL_0545: call static UnityEngine.Color UnityEngine.Color::get_yellow()
IL_054A: stloc.s 26 (UnityEngine.Color)
IL_054C: br => Label42
IL_0551: Label40
IL_0551: Label41
IL_0551: ldarg.0
IL_0552: ldfld Verse.ResearchProjectDef
RimWorld.MainTabWindow_Research::selectedProject
IL_0557: ldloc.s 18 (Verse.ResearchProjectDef)
IL_0559: bne.un => Label43
IL_055E: ldloc.s 25 (UnityEngine.Color)
IL_0560: ldsfld UnityEngine.Color Verse.TexUI::HighlightBgResearchColor
IL_0565: call static UnityEngine.Color
UnityEngine.Color::op_Addition(UnityEngine.Color a, UnityEngine.Color b)
IL_056A: stloc.s 25 (UnityEngine.Color)
IL_056C: ldsfld UnityEngine.Color Verse.TexUI::HighlightBorderResearchColor
IL_0571: stloc.s 26 (UnityEngine.Color)
IL_0573: br => Label44
IL_0578: Label43
IL_0578: ldsfld UnityEngine.Color Verse.TexUI::DefaultBorderResearchColor
IL_057D: stloc.s 26 (UnityEngine.Color)
IL_057F: Label42
IL_057F: Label44
IL_057F: ldloc.s 27 (System.Boolean)
IL_0581: brfalse => Label45
IL_0586: ldsfld UnityEngine.Color
RimWorld.MainTabWindow_Research::ProjectWithMissingPrerequisiteLabelColor
IL_058B: stloc.s 24 (UnityEngine.Color)
IL_058D: Label45
IL_058D: ldarg.0
IL_058E: ldfld Verse.ResearchProjectDef
RimWorld.MainTabWindow_Research::selectedProject
IL_0593: brfalse => Label46
IL_0598: ldloc.s 18 (Verse.ResearchProjectDef)
IL_059A: ldfld System.Collections.Generic.List`1<Verse.ResearchProjectDef>
Verse.ResearchProjectDef::prerequisites
IL_059F: brfalse => Label47
IL_05A4: ldloc.s 18 (Verse.ResearchProjectDef)
IL_05A6: ldfld System.Collections.Generic.List`1<Verse.ResearchProjectDef>
Verse.ResearchProjectDef::prerequisites
IL_05AB: ldarg.0
IL_05AC: ldfld Verse.ResearchProjectDef
RimWorld.MainTabWindow_Research::selectedProject
IL_05B1: callvirt virtual System.Boolean
System.Collections.Generic.List`1<Verse.ResearchProjectDef>::Contains(Verse.Researc
hProjectDef item)
IL_05B6: brtrue => Label48
IL_05BB: Label47
IL_05BB: ldloc.s 18 (Verse.ResearchProjectDef)
IL_05BD: ldfld System.Collections.Generic.List`1<Verse.ResearchProjectDef>
Verse.ResearchProjectDef::hiddenPrerequisites
IL_05C2: brfalse => Label49
IL_05C7: ldloc.s 18 (Verse.ResearchProjectDef)
IL_05C9: ldfld System.Collections.Generic.List`1<Verse.ResearchProjectDef>
Verse.ResearchProjectDef::hiddenPrerequisites
IL_05CE: ldarg.0
IL_05CF: ldfld Verse.ResearchProjectDef
RimWorld.MainTabWindow_Research::selectedProject
IL_05D4: callvirt virtual System.Boolean
System.Collections.Generic.List`1<Verse.ResearchProjectDef>::Contains(Verse.Researc
hProjectDef item)
IL_05D9: brfalse => Label50
IL_05DE: Label48
IL_05DE: ldsfld UnityEngine.Color Verse.TexUI::HighlightLineResearchColor
IL_05E3: stloc.s 26 (UnityEngine.Color)
IL_05E5: Label49
IL_05E5: Label50
IL_05E5: ldloc.s 18 (Verse.ResearchProjectDef)
IL_05E7: callvirt System.Boolean Verse.ResearchProjectDef::get_IsFinished()
IL_05EC: brtrue => Label51
IL_05F1: ldarg.0
IL_05F2: ldfld Verse.ResearchProjectDef
RimWorld.MainTabWindow_Research::selectedProject
IL_05F7: ldfld System.Collections.Generic.List`1<Verse.ResearchProjectDef>
Verse.ResearchProjectDef::prerequisites
IL_05FC: brfalse => Label52
IL_0601: ldarg.0
IL_0602: ldfld Verse.ResearchProjectDef
RimWorld.MainTabWindow_Research::selectedProject
IL_0607: ldfld System.Collections.Generic.List`1<Verse.ResearchProjectDef>
Verse.ResearchProjectDef::prerequisites
IL_060C: ldloc.s 18 (Verse.ResearchProjectDef)
IL_060E: callvirt virtual System.Boolean
System.Collections.Generic.List`1<Verse.ResearchProjectDef>::Contains(Verse.Researc
hProjectDef item)
IL_0613: brtrue => Label53
IL_0618: Label52
IL_0618: ldarg.0
IL_0619: ldfld Verse.ResearchProjectDef
RimWorld.MainTabWindow_Research::selectedProject
IL_061E: ldfld System.Collections.Generic.List`1<Verse.ResearchProjectDef>
Verse.ResearchProjectDef::hiddenPrerequisites
IL_0623: brfalse => Label54
IL_0628: ldarg.0
IL_0629: ldfld Verse.ResearchProjectDef
RimWorld.MainTabWindow_Research::selectedProject
IL_062E: ldfld System.Collections.Generic.List`1<Verse.ResearchProjectDef>
Verse.ResearchProjectDef::hiddenPrerequisites
IL_0633: ldloc.s 18 (Verse.ResearchProjectDef)
IL_0635: callvirt virtual System.Boolean
System.Collections.Generic.List`1<Verse.ResearchProjectDef>::Contains(Verse.Researc
hProjectDef item)
IL_063A: brfalse => Label55
IL_063F: Label53
IL_063F: ldsfld UnityEngine.Color Verse.TexUI::DependencyOutlineResearchColor
IL_0644: stloc.s 26 (UnityEngine.Color)
IL_0646: Label46
IL_0646: Label51
IL_0646: Label54
IL_0646: Label55
IL_0646: ldarg.0
IL_0647: ldfld System.Boolean
RimWorld.MainTabWindow_Research::requiredByThisFound
IL_064C: brfalse => Label56
IL_0651: ldc.i4.0
IL_0652: stloc.s 34 (System.Int32)
IL_0654: br => Label57
IL_0659: Label59
IL_0659: ldloc.s 18 (Verse.ResearchProjectDef)
IL_065B: ldfld System.Collections.Generic.List`1<Verse.ResearchProjectDef>
Verse.ResearchProjectDef::requiredByThis
IL_0660: ldloc.s 34 (System.Int32)
IL_0662: callvirt virtual Verse.ResearchProjectDef
System.Collections.Generic.List`1<Verse.ResearchProjectDef>::get_Item(System.Int32
index)
IL_0667: stloc.s 35 (Verse.ResearchProjectDef)
IL_0669: ldarg.0
IL_066A: ldfld Verse.ResearchProjectDef
RimWorld.MainTabWindow_Research::selectedProject
IL_066F: ldloc.s 35 (Verse.ResearchProjectDef)
IL_0671: bne.un => Label58
IL_0676: ldsfld UnityEngine.Color Verse.TexUI::HighlightLineResearchColor
IL_067B: stloc.s 26 (UnityEngine.Color)
IL_067D: Label58
IL_067D: ldloc.s 34 (System.Int32)
IL_067F: ldc.i4.1
IL_0680: add
IL_0681: stloc.s 34 (System.Int32)
IL_0683: Label57
IL_0683: ldloc.s 34 (System.Int32)
IL_0685: ldloc.s 18 (Verse.ResearchProjectDef)
IL_0687: ldfld System.Collections.Generic.List`1<Verse.ResearchProjectDef>
Verse.ResearchProjectDef::requiredByThis
IL_068C: call static System.Int32
Verse.GenList::CountAllowNull(System.Collections.Generic.IList`1<Verse.ResearchProj
ectDef> list)
IL_0691: blt => Label59
IL_0696: Label56
IL_0696: ldloc.s 18 (Verse.ResearchProjectDef)
IL_0698: callvirt System.Boolean
Verse.ResearchProjectDef::get_TechprintRequirementMet()
IL_069D: brtrue => Label60
IL_06A2: ldsfld UnityEngine.Color
RimWorld.MainTabWindow_Research::MissingPrerequisiteColor
IL_06A7: br => Label61
IL_06AC: Label60
IL_06AC: ldsfld UnityEngine.Color
RimWorld.MainTabWindow_Research::FulfilledPrerequisiteColor
IL_06B1: Label61
IL_06B1: stloc.s 28 (UnityEngine.Color)
IL_06B3: ldloc.s 18 (Verse.ResearchProjectDef)
IL_06B5: callvirt System.Boolean
Verse.ResearchProjectDef::get_StudiedThingsRequirementsMet()
IL_06BA: brtrue => Label62
IL_06BF: ldsfld UnityEngine.Color
RimWorld.MainTabWindow_Research::MissingPrerequisiteColor
IL_06C4: br => Label63
IL_06C9: Label62
IL_06C9: ldsfld UnityEngine.Color
RimWorld.MainTabWindow_Research::FulfilledPrerequisiteColor
IL_06CE: Label63
IL_06CE: stloc.s 29 (UnityEngine.Color)
IL_06D0: ldloc.s 21 (System.Boolean)
IL_06D2: brfalse => Label64
IL_06D7: ldarg.0
IL_06D8: ldloc.s 24 (UnityEngine.Color)
IL_06DA: call UnityEngine.Color
RimWorld.MainTabWindow_Research::NoMatchTint(UnityEngine.Color color)
IL_06DF: stloc.s 24 (UnityEngine.Color)
IL_06E1: ldarg.0
IL_06E2: ldloc.s 25 (UnityEngine.Color)
IL_06E4: call UnityEngine.Color
RimWorld.MainTabWindow_Research::NoMatchTint(UnityEngine.Color color)
IL_06E9: stloc.s 25 (UnityEngine.Color)
IL_06EB: ldarg.0
IL_06EC: ldloc.s 26 (UnityEngine.Color)
IL_06EE: call UnityEngine.Color
RimWorld.MainTabWindow_Research::NoMatchTint(UnityEngine.Color color)
IL_06F3: stloc.s 26 (UnityEngine.Color)
IL_06F5: ldarg.0
IL_06F6: ldloc.s 28 (UnityEngine.Color)
IL_06F8: call UnityEngine.Color
RimWorld.MainTabWindow_Research::NoMatchTint(UnityEngine.Color color)
IL_06FD: stloc.s 28 (UnityEngine.Color)
IL_06FF: ldarg.0
IL_0700: ldloc.s 29 (UnityEngine.Color)
IL_0702: call UnityEngine.Color
RimWorld.MainTabWindow_Research::NoMatchTint(UnityEngine.Color color)
IL_0707: stloc.s 29 (UnityEngine.Color)
IL_0709: Label64
IL_0709: ldloc.s 20 (UnityEngine.Rect)
IL_070B: stloc.s 30 (UnityEngine.Rect)
IL_070D: ldloca.s 30 (UnityEngine.Rect)
IL_070F: ldstr " "
IL_0714: ldc.i4.1
IL_0715: ldc.i4.0
IL_0716: call static System.Void
Verse.Widgets::LabelCacheHeight(UnityEngine.Rect& rect, System.String label,
System.Boolean renderLabel, System.Boolean forceInvalidation)
IL_071B: ldloc.s 22 (System.Boolean)
IL_071D: brfalse => Label65
IL_0722: ldloc.s 20 (UnityEngine.Rect)
IL_0724: ldc.r4 12
IL_0729: call static UnityEngine.Rect
Verse.GenUI::ExpandedBy(UnityEngine.Rect rect, System.Single margin)
IL_072E: ldloca.s 36 (System.Nullable`1[UnityEngine.Color])
IL_0730: initobj System.Nullable`1[UnityEngine.Color]
IL_0736: ldloc.s 36 (System.Nullable`1[UnityEngine.Color])
IL_0738: call static System.Void
Verse.Widgets::DrawStrongHighlight(UnityEngine.Rect rect,
System.Nullable`1<UnityEngine.Color> color)
IL_073D: Label65
IL_073D: ldloca.s 20 (UnityEngine.Rect)
IL_073F: ldstr ""
IL_0744: ldloc.s 25 (UnityEngine.Color)
IL_0746: ldloc.s 24 (UnityEngine.Color)
IL_0748: ldloc.s 26 (UnityEngine.Color)
IL_074A: ldc.i4.0
IL_074B: ldc.i4.1
IL_074C: ldc.i4.1
IL_074D: ldc.i4.1
IL_074E: call static System.Boolean
Verse.Widgets::CustomButtonText(UnityEngine.Rect& rect, System.String label,
UnityEngine.Color bgColor, UnityEngine.Color textColor, UnityEngine.Color
borderColor, System.Boolean cacheHeight, System.Int32 borderSize, System.Boolean
doMouseoverSound, System.Boolean active)
IL_0753: brfalse => Label66
IL_0758: ldsfld Verse.SoundDef RimWorld.SoundDefOf::Click
IL_075D: ldnull
IL_075E: call static System.Void
Verse.Sound.SoundStarter::PlayOneShotOnCamera(Verse.SoundDef soundDef, Verse.Map
onlyThisMap)
IL_0763: ldarg.0
IL_0764: ldloc.s 18 (Verse.ResearchProjectDef)
IL_0766: stfld Verse.ResearchProjectDef
RimWorld.MainTabWindow_Research::selectedProject
IL_076B: Label66
IL_076B: ldloca.s 30 (UnityEngine.Rect)
IL_076D: ldloca.s 20 (UnityEngine.Rect)
IL_076F: call System.Single UnityEngine.Rect::get_y()
IL_0774: ldloca.s 20 (UnityEngine.Rect)
IL_0776: call System.Single UnityEngine.Rect::get_height()
IL_077B: add
IL_077C: ldloca.s 30 (UnityEngine.Rect)
IL_077E: call System.Single UnityEngine.Rect::get_height()
IL_0783: sub
IL_0784: call System.Void UnityEngine.Rect::set_y(System.Single value)
IL_0789: ldloc.s 30 (UnityEngine.Rect)
IL_078B: stloc.s 31 (UnityEngine.Rect)
IL_078D: ldloca.s 31 (UnityEngine.Rect)
IL_078F: dup
IL_0790: call System.Single UnityEngine.Rect::get_x()
IL_0795: ldc.r4 10
IL_079A: add
IL_079B: call System.Void UnityEngine.Rect::set_x(System.Single value)
IL_07A0: ldloca.s 31 (UnityEngine.Rect)
IL_07A2: ldloca.s 31 (UnityEngine.Rect)
IL_07A4: call System.Single UnityEngine.Rect::get_width()
IL_07A9: ldc.r4 2
IL_07AE: div
IL_07AF: ldc.r4 10
IL_07B4: sub
IL_07B5: call System.Void UnityEngine.Rect::set_width(System.Single value)
IL_07BA: call static UnityEngine.Color UnityEngine.GUI::get_color()
IL_07BF: stloc.s 32 (UnityEngine.Color)
IL_07C1: call static UnityEngine.TextAnchor Verse.Text::get_Anchor()
IL_07C6: ldloc.s 24 (UnityEngine.Color)
IL_07C8: call static System.Void UnityEngine.GUI::set_color(UnityEngine.Color
value)
IL_07CD: ldc.i4.1
IL_07CE: call static System.Void
Verse.Text::set_Anchor(UnityEngine.TextAnchor value)
IL_07D3: ldloc.s 20 (UnityEngine.Rect)
IL_07D5: ldloc.s 23 (System.String)
IL_07D7: call static System.Void Verse.Widgets::Label(UnityEngine.Rect rect,
System.String label)
IL_07DC: ldloc.s 24 (UnityEngine.Color)
IL_07DE: call static System.Void UnityEngine.GUI::set_color(UnityEngine.Color
value)
IL_07E3: ldc.i4.3
IL_07E4: call static System.Void
Verse.Text::set_Anchor(UnityEngine.TextAnchor value)
IL_07E9: ldloc.s 31 (UnityEngine.Rect)
IL_07EB: ldloc.s 18 (Verse.ResearchProjectDef)
IL_07ED: callvirt System.Single Verse.ResearchProjectDef::get_CostApparent()
IL_07F2: stloc.s 9 (System.Single)
IL_07F4: ldloca.s 9 (System.Single)
IL_07F6: call virtual System.String System.Single::ToString()
IL_07FB: call static System.Void Verse.Widgets::Label(UnityEngine.Rect rect,
System.String label)
IL_0800: ldloca.s 19 (UnityEngine.Rect)
IL_0802: call System.Single UnityEngine.Rect::get_xMax()
IL_0807: stloc.s 33 (System.Single)
IL_0809: ldloc.s 18 (Verse.ResearchProjectDef)
IL_080B: callvirt System.Int32 Verse.ResearchProjectDef::get_TechprintCount()
IL_0810: ldc.i4.0
IL_0811: ble => Label67
IL_0816: ldarg.0
IL_0817: ldloc.s 18 (Verse.ResearchProjectDef)
IL_0819: callvirt System.Int32 Verse.ResearchProjectDef::get_TechprintsApplied()
IL_081E: ldloc.s 18 (Verse.ResearchProjectDef)
IL_0820: callvirt System.Int32 Verse.ResearchProjectDef::get_TechprintCount()
IL_0825: call System.String
RimWorld.MainTabWindow_Research::GetTechprintsInfoCached(System.Int32 applied,
System.Int32 total)
IL_082A: stloc.s 37 (System.String)
IL_082C: ldloc.s 37 (System.String)
IL_082E: call static UnityEngine.Vector2 Verse.Text::CalcSize(System.String
text)
IL_0833: stloc.s 38 (UnityEngine.Vector2)
IL_0835: ldloc.s 33 (System.Single)
IL_0837: ldloc.s 38 (UnityEngine.Vector2)
IL_0839: ldfld System.Single UnityEngine.Vector2::x
IL_083E: ldc.r4 10
IL_0843: add
IL_0844: sub
IL_0845: stloc.s 33 (System.Single)
IL_0847: ldloc.s 33 (System.Single)
IL_0849: ldloca.s 31 (UnityEngine.Rect)
IL_084B: call System.Single UnityEngine.Rect::get_y()
IL_0850: ldloc.s 38 (UnityEngine.Vector2)
IL_0852: ldfld System.Single UnityEngine.Vector2::x
IL_0857: ldloca.s 31 (UnityEngine.Rect)
IL_0859: call System.Single UnityEngine.Rect::get_height()
IL_085E: newobj System.Void UnityEngine.Rect::.ctor(System.Single x,
System.Single y, System.Single width, System.Single height)
IL_0863: ldloc.s 28 (UnityEngine.Color)
IL_0865: call static System.Void UnityEngine.GUI::set_color(UnityEngine.Color
value)
IL_086A: ldc.i4.5
IL_086B: call static System.Void
Verse.Text::set_Anchor(UnityEngine.TextAnchor value)
IL_0870: ldloc.s 37 (System.String)
IL_0872: call static System.Void Verse.Widgets::Label(UnityEngine.Rect rect,
System.String label)
IL_0877: ldloc.s 33 (System.Single)
IL_0879: ldloca.s 31 (UnityEngine.Rect)
IL_087B: call System.Single UnityEngine.Rect::get_height()
IL_0880: sub
IL_0881: stloc.s 33 (System.Single)
IL_0883: call static UnityEngine.Color UnityEngine.Color::get_white()
IL_0888: call static System.Void UnityEngine.GUI::set_color(UnityEngine.Color
value)
IL_088D: ldloc.s 33 (System.Single)
IL_088F: ldloca.s 31 (UnityEngine.Rect)
IL_0891: call System.Single UnityEngine.Rect::get_y()
IL_0896: ldloca.s 31 (UnityEngine.Rect)
IL_0898: call System.Single UnityEngine.Rect::get_height()
IL_089D: ldloca.s 31 (UnityEngine.Rect)
IL_089F: call System.Single UnityEngine.Rect::get_height()
IL_08A4: newobj System.Void UnityEngine.Rect::.ctor(System.Single x,
System.Single y, System.Single width, System.Single height)
IL_08A9: ldc.r4 4
IL_08AE: call static UnityEngine.Rect
Verse.GenUI::ContractedBy(UnityEngine.Rect rect, System.Single margin)
IL_08B3: ldsfld Verse.CachedTexture
RimWorld.MainTabWindow_Research::TechprintRequirementTex
IL_08B8: callvirt UnityEngine.Texture2D Verse.CachedTexture::get_Texture()
IL_08BD: call static System.Void
UnityEngine.GUI::DrawTexture(UnityEngine.Rect position, UnityEngine.Texture image)
IL_08C2: ldloc.s 32 (UnityEngine.Color)
IL_08C4: call static System.Void UnityEngine.GUI::set_color(UnityEngine.Color
value)
IL_08C9: Label67
IL_08C9: ldloc.s 18 (Verse.ResearchProjectDef)
IL_08CB: callvirt System.Int32
Verse.ResearchProjectDef::get_RequiredStudiedThingCount()
IL_08D0: ldc.i4.0
IL_08D1: ble => Label68
IL_08D6: ldarg.0
IL_08D7: ldloc.s 18 (Verse.ResearchProjectDef)
IL_08D9: callvirt System.Int32
Verse.ResearchProjectDef::get_StudiedThingsCompleted()
IL_08DE: ldloc.s 18 (Verse.ResearchProjectDef)
IL_08E0: callvirt System.Int32
Verse.ResearchProjectDef::get_RequiredStudiedThingCount()
IL_08E5: call System.String
RimWorld.MainTabWindow_Research::GetTechprintsInfoCached(System.Int32 applied,
System.Int32 total)
IL_08EA: stloc.s 39 (System.String)
IL_08EC: ldloc.s 39 (System.String)
IL_08EE: call static UnityEngine.Vector2 Verse.Text::CalcSize(System.String
text)
IL_08F3: stloc.s 40 (UnityEngine.Vector2)
IL_08F5: ldloc.s 33 (System.Single)
IL_08F7: ldloc.s 40 (UnityEngine.Vector2)
IL_08F9: ldfld System.Single UnityEngine.Vector2::x
IL_08FE: ldc.r4 10
IL_0903: add
IL_0904: sub
IL_0905: stloc.s 33 (System.Single)
IL_0907: ldloc.s 33 (System.Single)
IL_0909: ldloca.s 31 (UnityEngine.Rect)
IL_090B: call System.Single UnityEngine.Rect::get_y()
IL_0910: ldloc.s 40 (UnityEngine.Vector2)
IL_0912: ldfld System.Single UnityEngine.Vector2::x
IL_0917: ldloca.s 31 (UnityEngine.Rect)
IL_0919: call System.Single UnityEngine.Rect::get_height()
IL_091E: newobj System.Void UnityEngine.Rect::.ctor(System.Single x,
System.Single y, System.Single width, System.Single height)
IL_0923: ldloc.s 29 (UnityEngine.Color)
IL_0925: call static System.Void UnityEngine.GUI::set_color(UnityEngine.Color
value)
IL_092A: ldc.i4.5
IL_092B: call static System.Void
Verse.Text::set_Anchor(UnityEngine.TextAnchor value)
IL_0930: ldloc.s 39 (System.String)
IL_0932: call static System.Void Verse.Widgets::Label(UnityEngine.Rect rect,
System.String label)
IL_0937: ldloc.s 33 (System.Single)
IL_0939: ldloca.s 31 (UnityEngine.Rect)
IL_093B: call System.Single UnityEngine.Rect::get_height()
IL_0940: sub
IL_0941: stloc.s 33 (System.Single)
IL_0943: call static UnityEngine.Color UnityEngine.Color::get_white()
IL_0948: call static System.Void UnityEngine.GUI::set_color(UnityEngine.Color
value)
IL_094D: ldloc.s 33 (System.Single)
IL_094F: ldloca.s 31 (UnityEngine.Rect)
IL_0951: call System.Single UnityEngine.Rect::get_y()
IL_0956: ldloca.s 31 (UnityEngine.Rect)
IL_0958: call System.Single UnityEngine.Rect::get_height()
IL_095D: ldloca.s 31 (UnityEngine.Rect)
IL_095F: call System.Single UnityEngine.Rect::get_height()
IL_0964: newobj System.Void UnityEngine.Rect::.ctor(System.Single x,
System.Single y, System.Single width, System.Single height)
IL_0969: ldc.r4 4
IL_096E: call static UnityEngine.Rect
Verse.GenUI::ContractedBy(UnityEngine.Rect rect, System.Single margin)
IL_0973: ldsfld Verse.CachedTexture
RimWorld.MainTabWindow_Research::StudyRequirementTex
IL_0978: callvirt UnityEngine.Texture2D Verse.CachedTexture::get_Texture()
IL_097D: call static System.Void
UnityEngine.GUI::DrawTexture(UnityEngine.Rect position, UnityEngine.Texture image)
IL_0982: ldloc.s 32 (UnityEngine.Color)
IL_0984: call static System.Void UnityEngine.GUI::set_color(UnityEngine.Color
value)
IL_0989: Label68
IL_0989: ldarg.0
IL_098A: ldloc.s 18 (Verse.ResearchProjectDef)
IL_098C: call UnityEngine.Color
RimWorld.MainTabWindow_Research::GetSourceColor(Verse.ResearchProjectDef project)
IL_0991: call static System.Void UnityEngine.GUI::set_color(UnityEngine.Color
value)
IL_0996: ldloca.s 20 (UnityEngine.Rect)
IL_0998: call System.Single UnityEngine.Rect::get_xMax()
IL_099D: ldc.r4 7
IL_09A2: sub
IL_09A3: ldloca.s 20 (UnityEngine.Rect)
IL_09A5: call System.Single UnityEngine.Rect::get_y()
IL_09AA: ldc.r4 7
IL_09AF: ldc.r4 7
IL_09B4: newobj System.Void UnityEngine.Rect::.ctor(System.Single x,
System.Single y, System.Single width, System.Single height)
IL_09B9: ldsfld UnityEngine.Texture2D
RimWorld.MainTabWindow_Research::TopCornerTex
IL_09BE: call static System.Void
UnityEngine.GUI::DrawTexture(UnityEngine.Rect position, UnityEngine.Texture image)
IL_09C3: ldloc.s 32 (UnityEngine.Color)
IL_09C5: call static System.Void UnityEngine.GUI::set_color(UnityEngine.Color
value)
IL_09CA: call static System.Void
Verse.Text::set_Anchor(UnityEngine.TextAnchor value)
IL_09CF: ldloc.s 20 (UnityEngine.Rect)
IL_09D1: call static System.Boolean Verse.Mouse::IsOver(UnityEngine.Rect
rect)
IL_09D6: brfalse => Label69
IL_09DB: ldarg.0
IL_09DC: ldfld System.Boolean RimWorld.MainTabWindow_Research::editMode
IL_09E1: brtrue => Label70
IL_09E6: ldloc.s 20 (UnityEngine.Rect)
IL_09E8: call static System.Void
Verse.Widgets::DrawLightHighlight(UnityEngine.Rect rect)
IL_09ED: ldloc.s 20 (UnityEngine.Rect)
IL_09EF: ldloc.s 18 (Verse.ResearchProjectDef)
IL_09F1: callvirt System.String Verse.ResearchProjectDef::GetTip()
IL_09F6: call static Verse.TipSignal
Verse.TipSignal::op_Implicit(System.String str)
IL_09FB: call static System.Void
Verse.TooltipHandler::TipRegion(UnityEngine.Rect rect, Verse.TipSignal tip)
IL_0A00: Label69
IL_0A00: Label70
IL_0A00: ldarg.0
IL_0A01: ldfld System.Boolean RimWorld.MainTabWindow_Research::editMode
IL_0A06: brfalse => Label71
IL_0A0B: ldloc.s 20 (UnityEngine.Rect)
IL_0A0D: call static System.Boolean Verse.Mouse::IsOver(UnityEngine.Rect
rect)
IL_0A12: brfalse => Label72
IL_0A17: ldc.i4.0
IL_0A18: call static System.Boolean
UnityEngine.Input::GetMouseButtonDown(System.Int32 button)
IL_0A1D: brfalse => Label73
IL_0A22: ldc.i4.1
IL_0A23: stloc.0
IL_0A24: ldc.i4 304
IL_0A29: call static System.Boolean
UnityEngine.Input::GetKey(UnityEngine.KeyCode key)
IL_0A2E: brfalse => Label74
IL_0A33: ldarg.0
IL_0A34: ldfld System.Collections.Generic.List`1<Verse.ResearchProjectDef>
RimWorld.MainTabWindow_Research::draggingTabs
IL_0A39: ldloc.s 18 (Verse.ResearchProjectDef)
IL_0A3B: callvirt virtual System.Boolean
System.Collections.Generic.List`1<Verse.ResearchProjectDef>::Contains(Verse.Researc
hProjectDef item)
IL_0A40: brtrue => Label75
IL_0A45: ldarg.0
IL_0A46: ldfld System.Collections.Generic.List`1<Verse.ResearchProjectDef>
RimWorld.MainTabWindow_Research::draggingTabs
IL_0A4B: ldloc.s 18 (Verse.ResearchProjectDef)
IL_0A4D: callvirt virtual System.Void
System.Collections.Generic.List`1<Verse.ResearchProjectDef>::Add(Verse.ResearchProj
ectDef item)
IL_0A52: br => Label76
IL_0A57: Label74
IL_0A57: ldc.i4 306
IL_0A5C: call static System.Boolean
UnityEngine.Input::GetKey(UnityEngine.KeyCode key)
IL_0A61: brtrue => Label77
IL_0A66: ldarg.0
IL_0A67: ldfld System.Collections.Generic.List`1<Verse.ResearchProjectDef>
RimWorld.MainTabWindow_Research::draggingTabs
IL_0A6C: ldloc.s 18 (Verse.ResearchProjectDef)
IL_0A6E: callvirt virtual System.Boolean
System.Collections.Generic.List`1<Verse.ResearchProjectDef>::Contains(Verse.Researc
hProjectDef item)
IL_0A73: brtrue => Label78
IL_0A78: ldarg.0
IL_0A79: ldfld System.Collections.Generic.List`1<Verse.ResearchProjectDef>
RimWorld.MainTabWindow_Research::draggingTabs
IL_0A7E: callvirt virtual System.Void
System.Collections.Generic.List`1<Verse.ResearchProjectDef>::Clear()
IL_0A83: ldarg.0
IL_0A84: ldfld System.Collections.Generic.List`1<Verse.ResearchProjectDef>
RimWorld.MainTabWindow_Research::draggingTabs
IL_0A89: ldloc.s 18 (Verse.ResearchProjectDef)
IL_0A8B: callvirt virtual System.Void
System.Collections.Generic.List`1<Verse.ResearchProjectDef>::Add(Verse.ResearchProj
ectDef item)
IL_0A90: Label75
IL_0A90: Label76
IL_0A90: Label77
IL_0A90: Label78
IL_0A90: ldc.i4 306
IL_0A95: call static System.Boolean
UnityEngine.Input::GetKey(UnityEngine.KeyCode key)
IL_0A9A: brfalse => Label79
IL_0A9F: ldarg.0
IL_0AA0: ldfld System.Collections.Generic.List`1<Verse.ResearchProjectDef>
RimWorld.MainTabWindow_Research::draggingTabs
IL_0AA5: ldloc.s 18 (Verse.ResearchProjectDef)
IL_0AA7: callvirt virtual System.Boolean
System.Collections.Generic.List`1<Verse.ResearchProjectDef>::Contains(Verse.Researc
hProjectDef item)
IL_0AAC: brfalse => Label80
IL_0AB1: ldarg.0
IL_0AB2: ldfld System.Collections.Generic.List`1<Verse.ResearchProjectDef>
RimWorld.MainTabWindow_Research::draggingTabs
IL_0AB7: ldloc.s 18 (Verse.ResearchProjectDef)
IL_0AB9: callvirt virtual System.Boolean
System.Collections.Generic.List`1<Verse.ResearchProjectDef>::Remove(Verse.ResearchP
rojectDef item)
IL_0ABE: pop
IL_0ABF: Label23
IL_0ABF: Label30
IL_0ABF: Label71
IL_0ABF: Label72
IL_0ABF: Label73
IL_0ABF: Label79
IL_0ABF: Label80
IL_0ABF: ldloc.s 17 (System.Int32)
IL_0AC1: ldc.i4.1
IL_0AC2: add
IL_0AC3: stloc.s 17 (System.Int32)
IL_0AC5: Label22
IL_0AC5: ldloc.s 17 (System.Int32)
IL_0AC7: ldloc.s 10
(System.Collections.Generic.List`1[Verse.ResearchProjectDef])
IL_0AC9: callvirt virtual System.Int32
System.Collections.Generic.List`1<Verse.ResearchProjectDef>::get_Count()
IL_0ACE: blt => Label81
IL_0AD3: call static System.Void Verse.Widgets::EndGroup()
IL_0AD8: call static System.Void Verse.Widgets::EndScrollView()
IL_0ADD: ldarg.0
IL_0ADE: ldfld Verse.ScrollPositioner
RimWorld.MainTabWindow_Research::scrollPositioner
IL_0AE3: ldarg.0
IL_0AE4: ldflda UnityEngine.Vector2
RimWorld.MainTabWindow_Research::rightScrollPosition
IL_0AE9: ldloca.s 1 (UnityEngine.Rect)
IL_0AEB: call UnityEngine.Vector2 UnityEngine.Rect::get_size()
IL_0AF0: callvirt System.Void
Verse.ScrollPositioner::ScrollHorizontally(UnityEngine.Vector2& scrollPos,
UnityEngine.Vector2 outRectSize)
IL_0AF5: ldarg.0
IL_0AF6: ldfld System.Boolean RimWorld.MainTabWindow_Research::editMode
IL_0AFB: brfalse => Label82
IL_0B00: ldloc.0
IL_0B01: brtrue => Label83
IL_0B06: ldc.i4.0
IL_0B07: call static System.Boolean
UnityEngine.Input::GetMouseButtonDown(System.Int32 button)
IL_0B0C: brfalse => Label84
IL_0B11: ldarg.0
IL_0B12: ldfld System.Collections.Generic.List`1<Verse.ResearchProjectDef>
RimWorld.MainTabWindow_Research::draggingTabs
IL_0B17: callvirt virtual System.Void
System.Collections.Generic.List`1<Verse.ResearchProjectDef>::Clear()
IL_0B1C: Label83
IL_0B1C: Label84
IL_0B1C: ldarg.0
IL_0B1D: ldfld System.Collections.Generic.List`1<Verse.ResearchProjectDef>
RimWorld.MainTabWindow_Research::draggingTabs
IL_0B22: call static System.Boolean
Verse.GenList::NullOrEmpty(System.Collections.Generic.IList`1<Verse.ResearchProject
Def> list)
IL_0B27: brtrue => Label85
IL_0B2C: ldc.i4.0
IL_0B2D: call static System.Boolean
UnityEngine.Input::GetMouseButtonUp(System.Int32 button)
IL_0B32: brfalse => Label86
IL_0B37: ldc.i4.0
IL_0B38: stloc.s 41 (System.Int32)
IL_0B3A: br => Label87
IL_0B3F: Label88
IL_0B3F: ldarg.0
IL_0B40: ldfld System.Collections.Generic.List`1<Verse.ResearchProjectDef>
RimWorld.MainTabWindow_Research::draggingTabs
IL_0B45: ldloc.s 41 (System.Int32)
IL_0B47: callvirt virtual Verse.ResearchProjectDef
System.Collections.Generic.List`1<Verse.ResearchProjectDef>::get_Item(System.Int32
index)
IL_0B4C: callvirt System.Void Verse.ResearchProjectDef::Debug_SnapPositionData()
IL_0B51: ldloc.s 41 (System.Int32)
IL_0B53: ldc.i4.1
IL_0B54: add
IL_0B55: stloc.s 41 (System.Int32)
IL_0B57: Label87
IL_0B57: ldloc.s 41 (System.Int32)
IL_0B59: ldarg.0
IL_0B5A: ldfld System.Collections.Generic.List`1<Verse.ResearchProjectDef>
RimWorld.MainTabWindow_Research::draggingTabs
IL_0B5F: callvirt virtual System.Int32
System.Collections.Generic.List`1<Verse.ResearchProjectDef>::get_Count()
IL_0B64: blt => Label88
IL_0B69: br => Label98
IL_0B6E: Label86
IL_0B6E: ldc.i4.0
IL_0B6F: call static System.Boolean
UnityEngine.Input::GetMouseButton(System.Int32 button)
IL_0B74: brfalse => Label89
IL_0B79: ldc.i4.0
IL_0B7A: call static System.Boolean
UnityEngine.Input::GetMouseButtonDown(System.Int32 button)
IL_0B7F: brtrue => Label90
IL_0B84: call static UnityEngine.Event UnityEngine.Event::get_current()
IL_0B89: callvirt UnityEngine.EventType UnityEngine.Event::get_type()
IL_0B8E: ldc.i4.8
IL_0B8F: bne.un => Label91
IL_0B94: ldc.i4.0
IL_0B95: stloc.s 42 (System.Int32)
IL_0B97: br => Label92
IL_0B9C: Label93
IL_0B9C: ldarg.0
IL_0B9D: ldfld System.Collections.Generic.List`1<Verse.ResearchProjectDef>
RimWorld.MainTabWindow_Research::draggingTabs
IL_0BA2: ldloc.s 42 (System.Int32)
IL_0BA4: callvirt virtual Verse.ResearchProjectDef
System.Collections.Generic.List`1<Verse.ResearchProjectDef>::get_Item(System.Int32
index)
IL_0BA9: ldarg.0
IL_0BAA: call static UnityEngine.Event UnityEngine.Event::get_current()
IL_0BAF: callvirt UnityEngine.Vector2 UnityEngine.Event::get_delta()
IL_0BB4: ldfld System.Single UnityEngine.Vector2::x
IL_0BB9: call System.Single
RimWorld.MainTabWindow_Research::PixelsToCoordX(System.Single x)
IL_0BBE: ldarg.0
IL_0BBF: call static UnityEngine.Event UnityEngine.Event::get_current()
IL_0BC4: callvirt UnityEngine.Vector2 UnityEngine.Event::get_delta()
IL_0BC9: ldfld System.Single UnityEngine.Vector2::y
IL_0BCE: call System.Single
RimWorld.MainTabWindow_Research::PixelsToCoordY(System.Single y)
IL_0BD3: newobj System.Void UnityEngine.Vector2::.ctor(System.Single x,
System.Single y)
IL_0BD8: callvirt System.Void
Verse.ResearchProjectDef::Debug_ApplyPositionDelta(UnityEngine.Vector2 delta)
IL_0BDD: ldloc.s 42 (System.Int32)
IL_0BDF: ldc.i4.1
IL_0BE0: add
IL_0BE1: stloc.s 42 (System.Int32)
IL_0BE3: Label92
IL_0BE3: ldloc.s 42 (System.Int32)
IL_0BE5: ldarg.0
IL_0BE6: ldfld System.Collections.Generic.List`1<Verse.ResearchProjectDef>
RimWorld.MainTabWindow_Research::draggingTabs
IL_0BEB: callvirt virtual System.Int32
System.Collections.Generic.List`1<Verse.ResearchProjectDef>::get_Count()
IL_0BF0: blt => Label93
IL_0BF5: // end original
IL_0BF5: Label82
IL_0BF5: Label85
IL_0BF5: Label89
IL_0BF5: Label90
IL_0BF5: Label91
IL_0BF5: Label98
IL_0BF5: ret
DONE

### Patch: System.Boolean Verse.ResearchProjectDef::get_CanStartNow()


### Replacement: static System.Boolean
Verse.ResearchProjectDef::Verse.ResearchProjectDef.get_CanStartNow_Patch1(Verse.Res
earchProjectDef this)
IL_0000: Local var 0: System.Boolean
IL_0000: ldc.i4 0
IL_0005: stloc 0 (System.Boolean)
IL_0009: // start original
IL_0009: ldarg.0
IL_000A: call System.Boolean Verse.ResearchProjectDef::get_IsFinished()
IL_000F: brtrue => Label0
IL_0014: ldarg.0
IL_0015: call System.Boolean
Verse.ResearchProjectDef::get_PrerequisitesCompleted()
IL_001A: brfalse => Label1
IL_001F: ldarg.0
IL_0020: call System.Boolean
Verse.ResearchProjectDef::get_TechprintRequirementMet()
IL_0025: brfalse => Label2
IL_002A: ldarg.0
IL_002B: ldfld Verse.ThingDef
Verse.ResearchProjectDef::requiredResearchBuilding
IL_0030: brfalse => Label3
IL_0035: ldarg.0
IL_0036: call System.Boolean
Verse.ResearchProjectDef::get_PlayerHasAnyAppropriateResearchBench()
IL_003B: brfalse => Label4
IL_0040: Label3
IL_0040: ldarg.0
IL_0041: call System.Boolean
Verse.ResearchProjectDef::get_PlayerMechanitorRequirementMet()
IL_0046: brfalse => Label5
IL_004B: ldarg.0
IL_004C: call System.Boolean
Verse.ResearchProjectDef::get_StudiedThingsRequirementsMet()
IL_0051: br => Label6
IL_0056: Label0
IL_0056: Label1
IL_0056: Label2
IL_0056: Label4
IL_0056: Label5
IL_0056: ldc.i4.0
IL_0057: // end original
IL_0057: Label6
IL_0057: stloc 0 (System.Boolean)
IL_005B: ldarg.0
IL_005C: ldloca 0 (System.Boolean)
IL_0060: call static System.Void
VanillaStorytellersExpanded.get_CanStartNow::Postfix(Verse.ResearchProjectDef
__instance, System.Boolean& __result)
IL_0065: ldloc 0 (System.Boolean)
IL_0069: ret
DONE

### Harmony id=com.ogliss.rimworld.mod.VanillaWeaponsExpandedLaser,


version=2.2.2.0, location=C:\Program Files (x86)\Steam\steamapps\common\data-
000002130553D010, env/clr=4.0.30319.42000, platform=Win32NT,
ptrsize:runtime/env=8/Bits64, Windows
### Started from static System.Void
VanillaWeaponsExpandedLaser.HarmonyPatches.Main::.cctor(), location C:\Program
Files (x86)\Steam\steamapps\common\data-00000213099E7C70
### At 2023-02-17 06.57.42
### Patch: virtual System.Collections.Generic.IEnumerable`1<Verse.Gizmo>
Verse.Pawn::GetGizmos()
### Replacement: static System.Collections.Generic.IEnumerable`1<Verse.Gizmo>
Verse.Pawn::Verse.Pawn.GetGizmos_Patch10(Verse.Pawn this)
IL_0000: Local var 0: System.Collections.Generic.IEnumerable`1<Verse.Gizmo>
IL_0000: ldnull
IL_0001: stloc 0 (System.Collections.Generic.IEnumerable`1[Verse.Gizmo])
IL_0005: // start original
IL_0005: ldc.i4.s -2
IL_0007: newobj System.Void Verse.<GetGizmos>d__274::.ctor(System.Int32
<>1__state)
IL_000C: dup
IL_000D: ldarg.0
IL_000E: stfld Verse.Pawn Verse.<GetGizmos>d__274::<>4__this
IL_0013: // end original
IL_0013: stloc 0 (System.Collections.Generic.IEnumerable`1[Verse.Gizmo])
IL_0017: ldarg.0
IL_0018: ldloca 0 (System.Collections.Generic.IEnumerable`1[Verse.Gizmo])
IL_001C: call static System.Void
AllowTool.Patches.Pawn_GetGizmos_Patch::InsertPartyHuntGizmo(Verse.Pawn __instance,
System.Collections.Generic.IEnumerable`1& __result)
IL_0021: ldloca 0 (System.Collections.Generic.IEnumerable`1[Verse.Gizmo])
IL_0025: ldarg.0
IL_0026: call static System.Void
TD_Enhancement_Pack.StopGizmo::Postfix(System.Collections.Generic.IEnumerable`1&
__result, Verse.Pawn __instance)
IL_002B: ldloca 0 (System.Collections.Generic.IEnumerable`1[Verse.Gizmo])
IL_002F: ldarg.0
IL_0030: call static System.Void
UseBedrolls.PickBackUpBedGizmo::Postfix(System.Collections.Generic.IEnumerable`1&
__result, Verse.Pawn __instance)
IL_0035: ldarg.0
IL_0036: ldloca 0 (System.Collections.Generic.IEnumerable`1[Verse.Gizmo])
IL_003A: call static System.Void
VanillaWeaponsExpandedLaser.HarmonyPatches.VWEL_Pawn_GetGizmos_WeaponGizmoGetter_Pa
tch::GetGizmos_PostFix(Verse.Pawn __instance,
System.Collections.Generic.IEnumerable`1& __result)
IL_003F: ldloc 0 (System.Collections.Generic.IEnumerable`1[Verse.Gizmo])
IL_0043: ldarg.0
IL_0044: call static System.Collections.Generic.IEnumerable`1<Verse.Gizmo>
AnimalTab.Patch_InjectTrainerSettingsGizmo::Postfix(System.Collections.Generic.IEnu
merable`1<Verse.Gizmo> __result, Verse.Pawn __instance)
IL_0049: ldarg.0
IL_004A: call static System.Collections.Generic.IEnumerable`1<Verse.Gizmo>
PeteTimesSix.SimpleSidearms.Intercepts.Pawn_GetGizmos_Postfix::Postfix(System.Colle
ctions.Generic.IEnumerable`1<Verse.Gizmo> __result, Verse.Pawn __instance)
IL_004F: ldarg.0
IL_0050: call static System.Collections.Generic.IEnumerable`1<Verse.Gizmo>
AnimalBehaviours.Pawn_GetGizmos_Patch::Postfix(System.Collections.Generic.IEnumerab
le`1<Verse.Gizmo> __result, Verse.Pawn __instance)
IL_0055: ldarg.0
IL_0056: call static System.Collections.Generic.IEnumerable`1<Verse.Gizmo>
VFEAncients.HarmonyPatches.AbilityPatches::AddGizmos(System.Collections.Generic.IEn
umerable`1<Verse.Gizmo> gizmos, Verse.Pawn __instance)
IL_005B: ldarg.0
IL_005C: call static System.Collections.Generic.IEnumerable`1<Verse.Gizmo>
CONN.Pawn_GetGizmos::Postfix(System.Collections.Generic.IEnumerable`1<Verse.Gizmo>
list, Verse.Pawn __instance)
IL_0061: ldarg.0
IL_0062: call static System.Collections.Generic.IEnumerable`1<Verse.Gizmo>
MoreDryads.Pawn_GetGizmos_Patch::Postfix(System.Collections.Generic.IEnumerable`1<V
erse.Gizmo> __result, Verse.Pawn __instance)
IL_0067: ret
DONE

### Patch: virtual System.Boolean Verse.Verb::TryStartCastOn(Verse.LocalTargetInfo


castTarg, Verse.LocalTargetInfo destTarg, System.Boolean surpriseAttack,
System.Boolean canHitNonTargetPawns, System.Boolean preventFriendlyFire,
System.Boolean nonInterruptingSelfCast)
### Replacement: static System.Boolean
Verse.Verb::Verse.Verb.TryStartCastOn_Patch2(Verse.Verb this, Verse.LocalTargetInfo
castTarg, Verse.LocalTargetInfo destTarg, System.Boolean surpriseAttack,
System.Boolean canHitNonTargetPawns, System.Boolean preventFriendlyFire,
System.Boolean nonInterruptingSelfCast)
IL_0000: Local var 0: Verse.ShootLine
IL_0000: Local var 1: System.Single
IL_0000: Local var 2: System.Int32
IL_0000: Local var 3: System.Boolean
IL_0000: Local var 4: System.Single
IL_0000: ldc.i4 0
IL_0005: stloc 3 (System.Boolean)
IL_0009: ldc.r4 0
IL_000E: stloc 4 (System.Single)
IL_0012: ldarga 0
IL_0016: ldarg 1
IL_001A: call static System.Void
VanillaWeaponsExpandedLaser.HarmonyPatches.VWEL_Verb_Shoot_TryStartCastOn_RapidFire
_Patch::TryStartCastOn_RapidFire_Prefix(Verse.Verb& __instance,
Verse.LocalTargetInfo castTarg)
IL_001F: // start original
IL_001F: ldarg.0
IL_0020: ldfld Verse.Thing Verse.Verb::caster
IL_0025: brtrue => Label0
IL_002A: ldstr "Verb "
IL_002F: ldarg.0
IL_0030: call virtual System.String Verse.Verb::GetUniqueLoadID()
IL_0035: ldstr " needs caster to work (possibly lost during saving/loading)."
IL_003A: call static System.String System.String::Concat(System.String str0,
System.String str1, System.String str2)
IL_003F: call static System.Void Verse.Log::Error(System.String text)
IL_0044: ldc.i4.0
IL_0045: br => Label11
IL_004A: Label0
IL_004A: ldarg.0
IL_004B: ldfld Verse.Thing Verse.Verb::caster
IL_0050: callvirt System.Boolean Verse.Thing::get_Spawned()
IL_0055: brtrue => Label1
IL_005A: ldc.i4.0
IL_005B: br => Label12
IL_0060: Label1
IL_0060: ldarg.0
IL_0061: ldfld Verse.VerbState Verse.Verb::state
IL_0066: ldc.i4.1
IL_0067: beq => Label2
IL_006C: ldarg.0
IL_006D: ldarg.1
IL_006E: callvirt virtual System.Boolean
Verse.Verb::CanHitTarget(Verse.LocalTargetInfo targ)
IL_0073: brtrue => Label3
IL_0078: Label2
IL_0078: ldc.i4.0
IL_0079: br => Label13
IL_007E: Label3
IL_007E: ldarg.0
IL_007F: ldarg.1
IL_0080: call System.Boolean
Verse.Verb::CausesTimeSlowdown(Verse.LocalTargetInfo castTarg)
IL_0085: brfalse => Label4
IL_008A: call static Verse.TickManager Verse.Find::get_TickManager()
IL_008F: ldfld Verse.TimeSlower Verse.TickManager::slower
IL_0094: callvirt System.Void Verse.TimeSlower::SignalForceNormalSpeed()
IL_0099: Label4
IL_0099: ldarg.0
IL_009A: ldarg.3
IL_009B: stfld System.Boolean Verse.Verb::surpriseAttack
IL_00A0: ldarg.0
IL_00A1: ldarg.s 4
IL_00A3: stfld System.Boolean Verse.Verb::canHitNonTargetPawnsNow
IL_00A8: ldarg.0
IL_00A9: ldarg.s 5
IL_00AB: stfld System.Boolean Verse.Verb::preventFriendlyFire
IL_00B0: ldarg.0
IL_00B1: ldarg.s 6
IL_00B3: stfld System.Boolean Verse.Verb::nonInterruptingSelfCast
IL_00B8: ldarg.0
IL_00B9: ldarg.1
IL_00BA: stfld Verse.LocalTargetInfo Verse.Verb::currentTarget
IL_00BF: ldarg.0
IL_00C0: ldarg.2
IL_00C1: stfld Verse.LocalTargetInfo Verse.Verb::currentDestination
IL_00C6: ldarg.0
IL_00C7: callvirt virtual System.Boolean Verse.Verb::get_CasterIsPawn()
IL_00CC: brfalse => Label5
IL_00D1: ldarg.0
IL_00D2: ldfld Verse.VerbProperties Verse.Verb::verbProps
IL_00D7: ldfld System.Single Verse.VerbProperties::warmupTime
IL_00DC: ldc.r4 0
IL_00E1: ble.un => Label6
IL_00E6: ldarg.0
IL_00E7: ldarg.0
IL_00E8: ldfld Verse.Thing Verse.Verb::caster
IL_00ED: callvirt virtual Verse.IntVec3 Verse.Thing::get_Position()
IL_00F2: ldarg.1
IL_00F3: ldloca.s 0 (Verse.ShootLine)
IL_00F5: call System.Boolean Verse.Verb::TryFindShootLineFromTo(Verse.IntVec3
root, Verse.LocalTargetInfo targ, Verse.ShootLine& resultingLine)
IL_00FA: brfalse => Label7
IL_00FF: ldarg.0
IL_0100: callvirt virtual Verse.Pawn Verse.Verb::get_CasterPawn()
IL_0105: callvirt Verse.Pawn_DrawTracker Verse.Pawn::get_Drawer()
IL_010A: ldloc.0
IL_010B: ldarg.0
IL_010C: ldfld Verse.Thing Verse.Verb::caster
IL_0111: callvirt virtual Verse.IntVec3 Verse.Thing::get_Position()
IL_0116: callvirt System.Void
Verse.Pawn_DrawTracker::Notify_WarmingCastAlongLine(Verse.ShootLine newShootLine,
Verse.IntVec3 ShootPosition)
IL_011B: ldarg.0
IL_011C: callvirt virtual Verse.Pawn Verse.Verb::get_CasterPawn()
IL_0121: ldsfld RimWorld.StatDef RimWorld.StatDefOf::AimingDelayFactor
IL_0126: ldc.i4.1
IL_0127: ldc.i4.m1
IL_0128: call static System.Single
RimWorld.StatExtension::GetStatValue(Verse.Thing thing, RimWorld.StatDef stat,
System.Boolean applyPostProcess, System.Int32 cacheStaleAfterTicks)
IL_012D: stloc.1
IL_012E: ldarg.0
IL_012F: ldfld Verse.VerbProperties Verse.Verb::verbProps
IL_0134: ldfld System.Single Verse.VerbProperties::warmupTime
IL_0139: ldloc.1
IL_013A: mul
IL_013B: call static System.Int32
Verse.GenTicks::SecondsToTicks(System.Single numSeconds)
IL_0140: stloc.2
IL_0141: ldarg.0
IL_0142: callvirt virtual Verse.Pawn Verse.Verb::get_CasterPawn()
IL_0147: ldfld Verse.Pawn_StanceTracker Verse.Pawn::stances
IL_014C: ldloc.2
IL_014D: ldarg.1
IL_014E: ldarg.0
IL_014F: newobj System.Void Verse.Stance_Warmup::.ctor(System.Int32 ticks,
Verse.LocalTargetInfo focusTarg, Verse.Verb verb)
IL_0154: callvirt System.Void Verse.Pawn_StanceTracker::SetStance(Verse.Stance
newStance)
IL_0159: ldarg.0
IL_015A: ldfld Verse.VerbProperties Verse.Verb::verbProps
IL_015F: ldfld System.Boolean Verse.VerbProperties::stunTargetOnCastStart
IL_0164: brfalse => Label8
IL_0169: ldarga.s 1
IL_016B: call Verse.Pawn Verse.LocalTargetInfo::get_Pawn()
IL_0170: brfalse => Label9
IL_0175: ldarga.s 1
IL_0177: call Verse.Pawn Verse.LocalTargetInfo::get_Pawn()
IL_017C: ldfld Verse.Pawn_StanceTracker Verse.Pawn::stances
IL_0181: ldfld RimWorld.StunHandler Verse.Pawn_StanceTracker::stunner
IL_0186: ldloc.2
IL_0187: ldnull
IL_0188: ldc.i4.0
IL_0189: ldc.i4.1
IL_018A: callvirt System.Void RimWorld.StunHandler::StunFor(System.Int32 ticks,
Verse.Thing instigator, System.Boolean addBattleLog, System.Boolean showMote)
IL_018F: br => Label10
IL_0194: Label7
IL_0194: ldc.i4.0
IL_0195: br => Label14
IL_019A: Label5
IL_019A: Label6
IL_019A: ldarg.0
IL_019B: callvirt virtual System.Void Verse.Verb::WarmupComplete()
IL_01A0: Label8
IL_01A0: Label9
IL_01A0: Label10
IL_01A0: ldc.i4.1
IL_01A1: // end original
IL_01A1: Label11
IL_01A1: Label12
IL_01A1: Label13
IL_01A1: Label14
IL_01A1: stloc 3 (System.Boolean)
IL_01A5: ldarga 0
IL_01A9: ldarg 1
IL_01AD: ldloc 4 (System.Single)
IL_01B1: call static System.Void
VanillaWeaponsExpandedLaser.HarmonyPatches.VWEL_Verb_Shoot_TryStartCastOn_RapidFire
_Patch::TryStartCastOn_RapidFire_Postfix(Verse.Verb& __instance,
Verse.LocalTargetInfo castTarg, System.Single __state)
IL_01B6: ldloc 3 (System.Boolean)
IL_01BA: ret
DONE
### Patch: System.Void Verse.PawnRenderer::DrawEquipmentAiming(Verse.Thing eq,
UnityEngine.Vector3 drawLoc, System.Single aimAngle)
### Replacement: static System.Void
Verse.PawnRenderer::Verse.PawnRenderer.DrawEquipmentAiming_Patch5(Verse.PawnRendere
r this, Verse.Thing eq, UnityEngine.Vector3 drawLoc, System.Single aimAngle)
IL_0000: Local var 0: UnityEngine.Mesh
IL_0000: Local var 1: System.Single
IL_0000: Local var 2: Verse.CompEquippable
IL_0000: Local var 3: UnityEngine.Material
IL_0000: Local var 4: Verse.Graphic_StackCount
IL_0000: Local var 5: UnityEngine.Vector3
IL_0000: Local var 6: UnityEngine.Matrix4x4
IL_0000: Local var 7: UnityEngine.Vector3
IL_0000: Local var 8: System.Single
IL_0000: Local var 9: System.Boolean
IL_0000: ldc.i4 0
IL_0005: stloc 9 (System.Boolean)
IL_0009: ldc.i4.1
IL_000A: stloc 9 (System.Boolean)
IL_000E: ldloc 9 (System.Boolean)
IL_0012: brfalse => Label1
IL_0017: ldarg.0
IL_0018: ldarg.0
IL_0019: ldfld Verse.Pawn Verse.PawnRenderer::pawn
IL_001E: ldarg 1
IL_0022: ldarga 2
IL_0026: ldarga 3
IL_002A: ldarg.0
IL_002B: dup
IL_002C: ldvirtftn System.Boolean Verse.PawnRenderer::CarryWeaponOpenly()
IL_0032: newobj System.Void VFECore.CarryWeaponOpenly::.ctor(System.Object
object, System.IntPtr method)
IL_0037: call static System.Void
VFECore.PawnRenderer_DrawEquipmentAiming_Patch::Prefix(Verse.PawnRenderer
__instance, Verse.Pawn ___pawn, Verse.Thing eq, UnityEngine.Vector3& drawLoc,
System.Single& aimAngle, VFECore.CarryWeaponOpenly carryWeaponOpenly)
IL_003C: Label1
IL_003C: nop
IL_003D: ldloc 9 (System.Boolean)
IL_0041: brfalse => Label2
IL_0046: ldarg.0
IL_0047: call static System.Boolean
VFE.Mechanoids.HarmonyPatches.RenderTurretCentered::Prefix(Verse.PawnRenderer
__instance)
IL_004C: stloc 9 (System.Boolean)
IL_0050: Label2
IL_0050: nop
IL_0051: ldloc 9 (System.Boolean)
IL_0055: brfalse => Label3
IL_005A: ldarg 1
IL_005E: ldarga 2
IL_0062: ldarg.0
IL_0063: ldfld Verse.Pawn Verse.PawnRenderer::pawn
IL_0068: call static System.Boolean
EnableOversizedWeapons.HarmonyPatch::Prefix_Drawloc(Verse.Thing eq,
UnityEngine.Vector3& drawLoc, Verse.Pawn ___pawn)
IL_006D: stloc 9 (System.Boolean)
IL_0071: Label3
IL_0071: nop
IL_0072: ldloc 9 (System.Boolean)
IL_0076: brfalse => Label4
IL_007B: ldarga 1
IL_007F: ldarga 2
IL_0083: ldarga 3
IL_0087: ldarg.0
IL_0088: call static System.Void
VanillaWeaponsExpandedLaser.HarmonyPatches.CYA_PawnRenderer_Draw_EquipmentAiming_Gu
nDrawing_Patch::Prefix(Verse.Thing& eq, UnityEngine.Vector3& drawLoc,
System.Single& aimAngle, Verse.PawnRenderer __instance)
IL_008D: Label4
IL_008D: nop
IL_008E: ldloc 9 (System.Boolean)
IL_0092: brfalse => Label0
IL_0097: // start original
IL_0097: ldnull
IL_0098: stloc.0
IL_0099: ldarg.3
IL_009A: ldc.r4 90
IL_009F: sub
IL_00A0: stloc.1
IL_00A1: ldarg.3
IL_00A2: ldc.r4 20
IL_00A7: ble.un => Label5
IL_00AC: ldarg.3
IL_00AD: ldc.r4 160
IL_00B2: bge.un => Label6
IL_00B7: ldsfld UnityEngine.Mesh Verse.MeshPool::plane10
IL_00BC: stloc.0
IL_00BD: ldloc.1
IL_00BE: ldarg.1
IL_00BF: ldfld Verse.ThingDef Verse.Thing::def
IL_00C4: ldfld System.Single Verse.ThingDef::equippedAngleOffset
IL_00C9: add
IL_00CA: stloc.1
IL_00CB: br => Label7
IL_00D0: Label5
IL_00D0: Label6
IL_00D0: ldarg.3
IL_00D1: ldc.r4 200
IL_00D6: ble.un => Label8
IL_00DB: ldarg.3
IL_00DC: ldc.r4 340
IL_00E1: bge.un => Label9
IL_00E6: ldsfld UnityEngine.Mesh Verse.MeshPool::plane10Flip
IL_00EB: stloc.0
IL_00EC: ldloc.1
IL_00ED: ldc.r4 180
IL_00F2: sub
IL_00F3: stloc.1
IL_00F4: ldloc.1
IL_00F5: ldarg.1
IL_00F6: ldfld Verse.ThingDef Verse.Thing::def
IL_00FB: ldfld System.Single Verse.ThingDef::equippedAngleOffset
IL_0100: sub
IL_0101: stloc.1
IL_0102: br => Label10
IL_0107: Label8
IL_0107: Label9
IL_0107: ldsfld UnityEngine.Mesh Verse.MeshPool::plane10
IL_010C: stloc.0
IL_010D: ldloc.1
IL_010E: ldarg.1
IL_010F: ldfld Verse.ThingDef Verse.Thing::def
IL_0114: ldfld System.Single Verse.ThingDef::equippedAngleOffset
IL_0119: add
IL_011A: stloc.1
IL_011B: Label7
IL_011B: Label10
IL_011B: ldloc.1
IL_011C: ldc.r4 360
IL_0121: rem
IL_0122: stloc.1
IL_0123: ldarg.1
IL_0124: call static Verse.CompEquippable
Verse.ThingCompUtility::TryGetComp(Verse.Thing thing)
IL_0129: stloc.2
IL_012A: ldloc.2
IL_012B: brfalse => Label11
IL_0130: ldarg.1
IL_0131: ldfld Verse.ThingDef Verse.Thing::def
IL_0136: ldloc.2
IL_0137: callvirt System.Collections.Generic.List`1<Verse.Verb>
Verse.CompEquippable::get_AllVerbs()
IL_013C: call static Verse.Verb_LaunchProjectile
RimWorld.EquipmentUtility::GetRecoilVerb(System.Collections.Generic.List`1<Verse.Ve
rb> allWeaponVerbs)
IL_0141: ldloca.s 7 (UnityEngine.Vector3)
IL_0143: ldloca.s 8 (System.Single)
IL_0145: ldarg.3
IL_0146: call static System.Void
RimWorld.EquipmentUtility::Recoil(Verse.ThingDef weaponDef,
Verse.Verb_LaunchProjectile shootVerb, UnityEngine.Vector3& drawOffset,
System.Single& angleOffset, System.Single aimAngle)
IL_014B: ldarg.2
IL_014C: ldloc.s 7 (UnityEngine.Vector3)
IL_014E: call static UnityEngine.Vector3
UnityEngine.Vector3::op_Addition(UnityEngine.Vector3 a, UnityEngine.Vector3 b)
IL_0153: starg.s 2
IL_0155: ldloc.1
IL_0156: ldloc.s 8 (System.Single)
IL_0158: add
IL_0159: stloc.1
IL_015A: Label11
IL_015A: ldnull
IL_015B: stloc.3
IL_015C: ldarg.1
IL_015D: callvirt virtual Verse.Graphic Verse.Thing::get_Graphic()
IL_0162: isinst Verse.Graphic_StackCount
IL_0167: stloc.s 4 (Verse.Graphic_StackCount)
IL_0169: ldloc.s 4 (Verse.Graphic_StackCount)
IL_016B: brfalse => Label12
IL_0170: ldloc.s 4 (Verse.Graphic_StackCount)
IL_0172: ldc.i4.1
IL_0173: ldarg.1
IL_0174: ldfld Verse.ThingDef Verse.Thing::def
IL_0179: callvirt Verse.Graphic
Verse.Graphic_StackCount::SubGraphicForStackCount(System.Int32 stackCount,
Verse.ThingDef def)
IL_017E: ldarg.1
IL_017F: callvirt virtual UnityEngine.Material
Verse.Graphic::MatSingleFor(Verse.Thing thing)
IL_0184: stloc.3
IL_0185: br => Label13
IL_018A: Label12
IL_018A: ldarg.1
IL_018B: callvirt virtual Verse.Graphic Verse.Thing::get_Graphic()
IL_0190: ldarg.1
IL_0191: callvirt virtual UnityEngine.Material
Verse.Graphic::MatSingleFor(Verse.Thing thing)
IL_0196: stloc.3
IL_0197: Label13
IL_0197: ldloca.s 5 (UnityEngine.Vector3)
IL_0199: ldarg.1
IL_019A: callvirt virtual Verse.Graphic Verse.Thing::get_Graphic()
IL_019F: ldflda UnityEngine.Vector2 Verse.Graphic::drawSize
IL_01A4: ldfld System.Single UnityEngine.Vector2::x
IL_01A9: ldc.r4 0
IL_01AE: ldarg.1
IL_01AF: callvirt virtual Verse.Graphic Verse.Thing::get_Graphic()
IL_01B4: ldflda UnityEngine.Vector2 Verse.Graphic::drawSize
IL_01B9: ldfld System.Single UnityEngine.Vector2::y
IL_01BE: call System.Void UnityEngine.Vector3::.ctor(System.Single x,
System.Single y, System.Single z)
IL_01C3: ldarg.2
IL_01C4: ldloc.1
IL_01C5: call static UnityEngine.Vector3 UnityEngine.Vector3::get_up()
IL_01CA: call static UnityEngine.Quaternion
UnityEngine.Quaternion::AngleAxis(System.Single angle, UnityEngine.Vector3 axis)
IL_01CF: ldloc.s 5 (UnityEngine.Vector3)
IL_01D1: call static UnityEngine.Matrix4x4
UnityEngine.Matrix4x4::TRS(UnityEngine.Vector3 pos, UnityEngine.Quaternion q,
UnityEngine.Vector3 s)
IL_01D6: stloc.s 6 (UnityEngine.Matrix4x4)
IL_01D8: ldloc.0
IL_01D9: ldloc.s 6 (UnityEngine.Matrix4x4)
IL_01DB: ldloc.3
IL_01DC: ldc.i4.0
IL_01DD: call static System.Void
UnityEngine.Graphics::DrawMesh(UnityEngine.Mesh mesh, UnityEngine.Matrix4x4 matrix,
UnityEngine.Material material, System.Int32 layer)
IL_01E2: // end original
IL_01E2: Label0
IL_01E2: ldarg.0
IL_01E3: ldarg 1
IL_01E7: ldarg 2
IL_01EB: ldarg 3
IL_01EF: call static System.Void
VFE.Mechanoids.HarmonyPatches.RenderTurretCentered::Postfix(Verse.PawnRenderer
__instance, Verse.Thing eq, UnityEngine.Vector3 drawLoc, System.Single aimAngle)
IL_01F4: ret
DONE

### Patch: System.Void RimWorld.TurretTop::DrawTurret(UnityEngine.Vector3


recoilDrawOffset, System.Single recoilAngleOffset)
### Replacement: static System.Void
RimWorld.TurretTop::RimWorld.TurretTop.DrawTurret_Patch1(RimWorld.TurretTop this,
UnityEngine.Vector3 recoilDrawOffset, System.Single recoilAngleOffset)
IL_0000: Local var 0: UnityEngine.Vector3
IL_0000: Local var 1: System.Single
IL_0000: Local var 2: System.Single
IL_0000: Local var 3: UnityEngine.Matrix4x4
IL_0000: Local var 4: System.Nullable`1<System.Single>
IL_0000: Local var 5: System.Nullable`1<System.Single>
IL_0000: Local var 6: System.Boolean
IL_0000: ldc.i4 0
IL_0005: stloc 6 (System.Boolean)
IL_0009: ldc.i4.1
IL_000A: stloc 6 (System.Boolean)
IL_000E: ldloc 6 (System.Boolean)
IL_0012: brfalse => Label1
IL_0017: ldarg.0
IL_0018: call static System.Boolean
VanillaWeaponsExpandedLaser.HarmonyPatches.CYA_TuretTop_DrawTurret_LaserTurret_Patc
h::Prefix(RimWorld.TurretTop __instance)
IL_001D: stloc 6 (System.Boolean)
IL_0021: Label1
IL_0021: nop
IL_0022: ldloc 6 (System.Boolean)
IL_0026: brfalse => Label0
IL_002B: // start original
IL_002B: ldarg.0
IL_002C: ldfld RimWorld.Building_Turret RimWorld.TurretTop::parentTurret
IL_0031: ldfld Verse.ThingDef Verse.Thing::def
IL_0036: ldfld RimWorld.BuildingProperties Verse.ThingDef::building
IL_003B: ldflda UnityEngine.Vector2
RimWorld.BuildingProperties::turretTopOffset
IL_0040: ldfld System.Single UnityEngine.Vector2::x
IL_0045: ldc.r4 0
IL_004A: ldarg.0
IL_004B: ldfld RimWorld.Building_Turret RimWorld.TurretTop::parentTurret
IL_0050: ldfld Verse.ThingDef Verse.Thing::def
IL_0055: ldfld RimWorld.BuildingProperties Verse.ThingDef::building
IL_005A: ldflda UnityEngine.Vector2
RimWorld.BuildingProperties::turretTopOffset
IL_005F: ldfld System.Single UnityEngine.Vector2::y
IL_0064: newobj System.Void UnityEngine.Vector3::.ctor(System.Single x,
System.Single y, System.Single z)
IL_0069: ldarg.0
IL_006A: call System.Single RimWorld.TurretTop::get_CurRotation()
IL_006F: call static UnityEngine.Vector3
Verse.Vector3Utility::RotatedBy(UnityEngine.Vector3 v3, System.Single angle)
IL_0074: stloc.0
IL_0075: ldarg.0
IL_0076: ldfld RimWorld.Building_Turret RimWorld.TurretTop::parentTurret
IL_007B: ldfld Verse.ThingDef Verse.Thing::def
IL_0080: ldfld RimWorld.BuildingProperties Verse.ThingDef::building
IL_0085: ldfld System.Single RimWorld.BuildingProperties::turretTopDrawSize
IL_008A: stloc.1
IL_008B: ldloc.0
IL_008C: ldarg.2
IL_008D: call static UnityEngine.Vector3
Verse.Vector3Utility::RotatedBy(UnityEngine.Vector3 v3, System.Single angle)
IL_0092: stloc.0
IL_0093: ldloc.0
IL_0094: ldarg.1
IL_0095: call static UnityEngine.Vector3
UnityEngine.Vector3::op_Addition(UnityEngine.Vector3 a, UnityEngine.Vector3 b)
IL_009A: stloc.0
IL_009B: ldarg.0
IL_009C: ldfld RimWorld.Building_Turret RimWorld.TurretTop::parentTurret
IL_00A1: callvirt virtual Verse.Verb
RimWorld.Building_Turret::get_CurrentEffectiveVerb()
IL_00A6: dup
IL_00A7: brtrue => Label2
IL_00AC: pop
IL_00AD: ldloca.s 5 (System.Nullable`1[System.Single])
IL_00AF: initobj System.Nullable`1[System.Single]
IL_00B5: ldloc.s 5 (System.Nullable`1[System.Single])
IL_00B7: br => Label3
IL_00BC: Label2
IL_00BC: callvirt virtual System.Nullable`1<System.Single>
Verse.Verb::get_AimAngleOverride()
IL_00C1: Label3
IL_00C1: stloc.s 4 (System.Nullable`1[System.Single])
IL_00C3: ldloca.s 4 (System.Nullable`1[System.Single])
IL_00C5: call System.Boolean System.Nullable`1<System.Single>::get_HasValue()
IL_00CA: brtrue => Label4
IL_00CF: ldarg.0
IL_00D0: call System.Single RimWorld.TurretTop::get_CurRotation()
IL_00D5: br => Label5
IL_00DA: Label4
IL_00DA: ldloca.s 4 (System.Nullable`1[System.Single])
IL_00DC: call System.Single
System.Nullable`1<System.Single>::GetValueOrDefault()
IL_00E1: Label5
IL_00E1: stloc.2
IL_00E2: ldloca.s 3 (UnityEngine.Matrix4x4)
IL_00E4: initobj UnityEngine.Matrix4x4
IL_00EA: ldloca.s 3 (UnityEngine.Matrix4x4)
IL_00EC: ldarg.0
IL_00ED: ldfld RimWorld.Building_Turret RimWorld.TurretTop::parentTurret
IL_00F2: callvirt virtual UnityEngine.Vector3 Verse.Thing::get_DrawPos()
IL_00F7: ldsfld UnityEngine.Vector3 Verse.Altitudes::AltIncVect
IL_00FC: call static UnityEngine.Vector3
UnityEngine.Vector3::op_Addition(UnityEngine.Vector3 a, UnityEngine.Vector3 b)
IL_0101: ldloc.0
IL_0102: call static UnityEngine.Vector3
UnityEngine.Vector3::op_Addition(UnityEngine.Vector3 a, UnityEngine.Vector3 b)
IL_0107: ldsfld System.Int32 RimWorld.TurretTop::ArtworkRotation
IL_010C: conv.r4
IL_010D: ldloc.2
IL_010E: add
IL_010F: call static UnityEngine.Quaternion
Verse.GenMath::ToQuat(System.Single ang)
IL_0114: ldloc.1
IL_0115: ldc.r4 1
IL_011A: ldloc.1
IL_011B: newobj System.Void UnityEngine.Vector3::.ctor(System.Single x,
System.Single y, System.Single z)
IL_0120: call System.Void UnityEngine.Matrix4x4::SetTRS(UnityEngine.Vector3
pos, UnityEngine.Quaternion q, UnityEngine.Vector3 s)
IL_0125: ldsfld UnityEngine.Mesh Verse.MeshPool::plane10
IL_012A: ldloc.3
IL_012B: ldarg.0
IL_012C: ldfld RimWorld.Building_Turret RimWorld.TurretTop::parentTurret
IL_0131: callvirt virtual UnityEngine.Material
RimWorld.Building_Turret::get_TurretTopMaterial()
IL_0136: ldc.i4.0
IL_0137: call static System.Void
UnityEngine.Graphics::DrawMesh(UnityEngine.Mesh mesh, UnityEngine.Matrix4x4 matrix,
UnityEngine.Material material, System.Int32 layer)
IL_013C: // end original
IL_013C: Label0
IL_013C: ret
DONE

### Patch: static System.Boolean


PeteTimesSix.SimpleSidearms.Extensions::IsValidSidearmsCarrier(Verse.Pawn pawn)
### Replacement: static System.Boolean
PeteTimesSix.SimpleSidearms.Extensions::PeteTimesSix.SimpleSidearms.Extensions.IsVa
lidSidearmsCarrier_Patch1(Verse.Pawn pawn)
IL_0000: Local var 0: System.Boolean
IL_0000: Local var 1: System.Boolean
IL_0000: ldc.i4 0
IL_0005: stloc 1 (System.Boolean)
IL_0009: // start original
IL_0009: nop
IL_000A: ldarg.0
IL_000B: brfalse => Label0
IL_0010: ldarg.0
IL_0011: callvirt System.Boolean Verse.Pawn::get_Dead()
IL_0016: brtrue => Label1
IL_001B: ldarg.0
IL_001C: ldfld Verse.Pawn_EquipmentTracker Verse.Pawn::equipment
IL_0021: brfalse => Label2
IL_0026: ldarg.0
IL_0027: ldfld Verse.Pawn_InventoryTracker Verse.Pawn::inventory
IL_002C: brfalse => Label3
IL_0031: ldarg.0
IL_0032: callvirt Verse.RaceProperties Verse.Pawn::get_RaceProps()
IL_0037: callvirt System.Boolean Verse.RaceProperties::get_Humanlike()
IL_003C: br => Label4
IL_0041: Label0
IL_0041: Label1
IL_0041: Label2
IL_0041: Label3
IL_0041: ldc.i4.0
IL_0042: Label4
IL_0042: stloc.0
IL_0043: br => Label5
IL_0048: Label5
IL_0048: ldloc.0
IL_0049: // end original
IL_0049: stloc 1 (System.Boolean)
IL_004D: ldloca 1 (System.Boolean)
IL_0051: ldarg 0
IL_0055: call static System.Void
VFE.Mechanoids.HarmonyPatches.SimpleSidearmsPatch::IsValidSidearmsCarrierPostfix(Sy
stem.Boolean& __result, Verse.Pawn pawn)
IL_005A: ldloc 1 (System.Boolean)
IL_005E: ret
DONE
### Patch: static SimpleSidearms.rimworld.CompSidearmMemory
SimpleSidearms.rimworld.CompSidearmMemory::GetMemoryCompForPawn(Verse.Pawn pawn,
System.Boolean fillExistingIfCreating)
### Replacement: static SimpleSidearms.rimworld.CompSidearmMemory
SimpleSidearms.rimworld.CompSidearmMemory::SimpleSidearms.rimworld.CompSidearmMemor
y.GetMemoryCompForPawn_Patch1(Verse.Pawn pawn, System.Boolean
fillExistingIfCreating)
IL_0000: Local var 0: SimpleSidearms.rimworld.CompSidearmMemory
IL_0000: Local var 1: System.Boolean
IL_0000: Local var 2: SimpleSidearms.rimworld.CompSidearmMemory
IL_0000: Local var 3: System.Boolean
IL_0000: Local var 4: System.Boolean
IL_0000: Local var 5: SimpleSidearms.rimworld.CompSidearmMemory
IL_0000: Local var 6: System.Boolean
IL_0000: ldnull
IL_0001: stloc 5 (SimpleSidearms.rimworld.CompSidearmMemory)
IL_0005: ldc.i4 0
IL_000A: stloc 6 (System.Boolean)
IL_000E: ldc.i4.1
IL_000F: stloc 6 (System.Boolean)
IL_0013: ldloc 6 (System.Boolean)
IL_0017: brfalse => Label1
IL_001C: ldloca 5 (SimpleSidearms.rimworld.CompSidearmMemory)
IL_0020: ldarg 0
IL_0024: ldarg 1
IL_0028: call static System.Boolean
VFE.Mechanoids.HarmonyPatches.SimpleSidearmsPatch::GetMemoryCompForPawnPrefix(Syste
m.Object& __result, Verse.Pawn pawn, System.Boolean fillExistingIfCreating)
IL_002D: stloc 6 (System.Boolean)
IL_0031: Label1
IL_0031: nop
IL_0032: ldloc 6 (System.Boolean)
IL_0036: brfalse => Label0
IL_003B: // start original
IL_003B: nop
IL_003C: ldarg.0
IL_003D: ldnull
IL_003E: ceq
IL_0040: stloc.1
IL_0041: ldloc.1
IL_0042: brfalse => Label2
IL_0047: ldnull
IL_0048: stloc.2
IL_0049: br => Label3
IL_004E: Label2
IL_004E: ldarg.0
IL_004F: callvirt Verse.RaceProperties Verse.Pawn::get_RaceProps()
IL_0054: callvirt System.Boolean Verse.RaceProperties::get_Humanlike()
IL_0059: ldc.i4.0
IL_005A: ceq
IL_005C: stloc.3
IL_005D: ldloc.3
IL_005E: brfalse => Label4
IL_0063: nop
IL_0064: ldstr "CompSidearmMemory accessed for non-humanlike pawn "
IL_0069: ldarg.0
IL_006A: callvirt abstract virtual System.String Verse.Entity::get_Label()
IL_006F: call static System.String System.String::Concat(System.String str0,
System.String str1)
IL_0074: call static System.Void Verse.Log::Warning(System.String text)
IL_0079: nop
IL_007A: ldnull
IL_007B: stloc.2
IL_007C: br => Label5
IL_0081: Label4
IL_0081: ldarg.0
IL_0082: call static SimpleSidearms.rimworld.CompSidearmMemory
Verse.ThingCompUtility::TryGetComp(Verse.Thing thing)
IL_0087: stloc.0
IL_0088: ldloc.0
IL_0089: ldnull
IL_008A: ceq
IL_008C: stloc.s 4 (System.Boolean)
IL_008E: ldloc.s 4 (System.Boolean)
IL_0090: brfalse => Label6
IL_0095: ldnull
IL_0096: stloc.2
IL_0097: br => Label7
IL_009C: Label6
IL_009C: ldloc.0
IL_009D: stloc.2
IL_009E: br => Label8
IL_00A3: Label3
IL_00A3: Label5
IL_00A3: Label7
IL_00A3: Label8
IL_00A3: ldloc.2
IL_00A4: // end original
IL_00A4: stloc 5 (SimpleSidearms.rimworld.CompSidearmMemory)
IL_00A8: Label0
IL_00A8: ldloc 5 (SimpleSidearms.rimworld.CompSidearmMemory)
IL_00AC: ret
DONE

### Patch: System.Void


SimpleSidearms.rimworld.Gizmo_SidearmsList::DrawGizmoLabel(System.String labelText,
UnityEngine.Rect gizmoRect)
### Replacement: static System.Void
SimpleSidearms.rimworld.Gizmo_SidearmsList::SimpleSidearms.rimworld.Gizmo_SidearmsL
ist.DrawGizmoLabel_Patch1(SimpleSidearms.rimworld.Gizmo_SidearmsList this,
System.String labelText, UnityEngine.Rect gizmoRect)
IL_0000: Local var 0: System.Single
IL_0000: Local var 1: UnityEngine.Rect
IL_0000: Local var 2: System.Boolean
IL_0000: ldc.i4 0
IL_0005: stloc 2 (System.Boolean)
IL_0009: ldc.i4.1
IL_000A: stloc 2 (System.Boolean)
IL_000E: ldloc 2 (System.Boolean)
IL_0012: brfalse => Label1
IL_0017: ldarga 1
IL_001B: ldarg 2
IL_001F: call static System.Void
VFE.Mechanoids.HarmonyPatches.SimpleSidearmsPatch::GizmoLabelFixer(System.String&
labelText, UnityEngine.Rect gizmoRect)
IL_0024: Label1
IL_0024: nop
IL_0025: ldloc 2 (System.Boolean)
IL_0029: brfalse => Label0
IL_002E: // start original
IL_002E: nop
IL_002F: ldarg.1
IL_0030: ldarga.s 2
IL_0032: call System.Single UnityEngine.Rect::get_width()
IL_0037: call static System.Single Verse.Text::CalcHeight(System.String text,
System.Single width)
IL_003C: stloc.0
IL_003D: ldloc.0
IL_003E: ldc.r4 2
IL_0043: sub
IL_0044: stloc.0
IL_0045: ldloca.s 1 (UnityEngine.Rect)
IL_0047: ldarga.s 2
IL_0049: call System.Single UnityEngine.Rect::get_x()
IL_004E: ldarga.s 2
IL_0050: call System.Single UnityEngine.Rect::get_yMax()
IL_0055: ldloc.0
IL_0056: sub
IL_0057: ldc.r4 12
IL_005C: add
IL_005D: ldarga.s 2
IL_005F: call System.Single UnityEngine.Rect::get_width()
IL_0064: ldloc.0
IL_0065: call System.Void UnityEngine.Rect::.ctor(System.Single x,
System.Single y, System.Single width, System.Single height)
IL_006A: ldloc.1
IL_006B: ldsfld UnityEngine.Texture2D Verse.TexUI::GrayTextBG
IL_0070: call static System.Void
UnityEngine.GUI::DrawTexture(UnityEngine.Rect position, UnityEngine.Texture image)
IL_0075: nop
IL_0076: call static UnityEngine.Color UnityEngine.Color::get_white()
IL_007B: call static System.Void UnityEngine.GUI::set_color(UnityEngine.Color
value)
IL_0080: nop
IL_0081: ldc.i4.1
IL_0082: call static System.Void
Verse.Text::set_Anchor(UnityEngine.TextAnchor value)
IL_0087: nop
IL_0088: ldloc.1
IL_0089: ldarg.1
IL_008A: call static System.Void Verse.Widgets::Label(UnityEngine.Rect rect,
System.String label)
IL_008F: nop
IL_0090: ldc.i4.0
IL_0091: call static System.Void
Verse.Text::set_Anchor(UnityEngine.TextAnchor value)
IL_0096: nop
IL_0097: call static UnityEngine.Color UnityEngine.Color::get_white()
IL_009C: call static System.Void UnityEngine.GUI::set_color(UnityEngine.Color
value)
IL_00A1: nop
IL_00A2: // end original
IL_00A2: Label0
IL_00A2: ret
DONE

### Patch: System.Boolean RimWorld.PossibleApparelSet::CoatButNoShirt()


### Replacement: static System.Boolean
RimWorld.PawnApparelGenerator+PossibleApparelSet::RimWorld.PawnApparelGenerator+Pos
sibleApparelSet.CoatButNoShirt_Patch0(RimWorld.PossibleApparelSet this)
IL_0000: Local var 0: System.Boolean
IL_0000: Local var 1: System.Boolean
IL_0000: Local var 2: System.Int32
IL_0000: Local var 3: System.Int32
IL_0000: Local var 4: Verse.ApparelLayerDef
IL_0000: // start original
IL_0000: ldc.i4.0
IL_0001: stloc.0
IL_0002: ldc.i4.0
IL_0003: stloc.1
IL_0004: ldc.i4.0
IL_0005: stloc.2
IL_0006: br => Label0
IL_000B: Label7
IL_000B: ldarg.0
IL_000C: ldfld System.Collections.Generic.List`1<RimWorld.ThingStuffPair>
RimWorld.PossibleApparelSet::aps
IL_0011: ldloc.2
IL_0012: callvirt virtual RimWorld.ThingStuffPair
System.Collections.Generic.List`1<RimWorld.ThingStuffPair>::get_Item(System.Int32
index)
IL_0017: ldfld Verse.ThingDef RimWorld.ThingStuffPair::thing
IL_001C: ldfld RimWorld.ApparelProperties Verse.ThingDef::apparel
IL_0021: ldfld System.Collections.Generic.List`1<Verse.BodyPartGroupDef>
RimWorld.ApparelProperties::bodyPartGroups
IL_0026: ldsfld Verse.BodyPartGroupDef RimWorld.BodyPartGroupDefOf::Torso
IL_002B: callvirt virtual System.Boolean
System.Collections.Generic.List`1<Verse.BodyPartGroupDef>::Contains(Verse.BodyPartG
roupDef item)
IL_0030: brfalse => Label1
IL_0035: ldc.i4.0
IL_0036: stloc.3
IL_0037: br => Label2
IL_003C: Label6
IL_003C: ldarg.0
IL_003D: ldfld System.Collections.Generic.List`1<RimWorld.ThingStuffPair>
RimWorld.PossibleApparelSet::aps
IL_0042: ldloc.2
IL_0043: callvirt virtual RimWorld.ThingStuffPair
System.Collections.Generic.List`1<RimWorld.ThingStuffPair>::get_Item(System.Int32
index)
IL_0048: ldfld Verse.ThingDef RimWorld.ThingStuffPair::thing
IL_004D: ldfld RimWorld.ApparelProperties Verse.ThingDef::apparel
IL_0052: ldfld System.Collections.Generic.List`1<Verse.ApparelLayerDef>
RimWorld.ApparelProperties::layers
IL_0057: ldloc.3
IL_0058: callvirt virtual Verse.ApparelLayerDef
System.Collections.Generic.List`1<Verse.ApparelLayerDef>::get_Item(System.Int32
index)
IL_005D: stloc.s 4 (Verse.ApparelLayerDef)
IL_005F: ldloc.s 4 (Verse.ApparelLayerDef)
IL_0061: ldsfld Verse.ApparelLayerDef RimWorld.ApparelLayerDefOf::OnSkin
IL_0066: bne.un => Label3
IL_006B: ldc.i4.1
IL_006C: stloc.1
IL_006D: Label3
IL_006D: ldloc.s 4 (Verse.ApparelLayerDef)
IL_006F: ldsfld Verse.ApparelLayerDef RimWorld.ApparelLayerDefOf::Shell
IL_0074: beq => Label4
IL_0079: Label3
IL_0079: ldloc.s 4 (Verse.ApparelLayerDef)
IL_007B: ldsfld Verse.ApparelLayerDef
VFECore.ApparelLayerDefOf::VFEC_OuterShell
IL_0080: beq => Label4
IL_0085: ldloc.s 4 (Verse.ApparelLayerDef)
IL_0087: ldsfld Verse.ApparelLayerDef RimWorld.ApparelLayerDefOf::Middle
IL_008C: bne.un => Label5
IL_0091: Label4
IL_0091: ldc.i4.1
IL_0092: stloc.0
IL_0093: Label5
IL_0093: ldloc.3
IL_0094: ldc.i4.1
IL_0095: add
IL_0096: stloc.3
IL_0097: Label2
IL_0097: ldloc.3
IL_0098: ldarg.0
IL_0099: ldfld System.Collections.Generic.List`1<RimWorld.ThingStuffPair>
RimWorld.PossibleApparelSet::aps
IL_009E: ldloc.2
IL_009F: callvirt virtual RimWorld.ThingStuffPair
System.Collections.Generic.List`1<RimWorld.ThingStuffPair>::get_Item(System.Int32
index)
IL_00A4: ldfld Verse.ThingDef RimWorld.ThingStuffPair::thing
IL_00A9: ldfld RimWorld.ApparelProperties Verse.ThingDef::apparel
IL_00AE: ldfld System.Collections.Generic.List`1<Verse.ApparelLayerDef>
RimWorld.ApparelProperties::layers
IL_00B3: callvirt virtual System.Int32
System.Collections.Generic.List`1<Verse.ApparelLayerDef>::get_Count()
IL_00B8: blt => Label6
IL_00BD: Label1
IL_00BD: ldloc.2
IL_00BE: ldc.i4.1
IL_00BF: add
IL_00C0: stloc.2
IL_00C1: Label0
IL_00C1: ldloc.2
IL_00C2: ldarg.0
IL_00C3: ldfld System.Collections.Generic.List`1<RimWorld.ThingStuffPair>
RimWorld.PossibleApparelSet::aps
IL_00C8: callvirt virtual System.Int32
System.Collections.Generic.List`1<RimWorld.ThingStuffPair>::get_Count()
IL_00CD: blt => Label7
IL_00D2: ldloc.0
IL_00D3: brfalse => Label8
IL_00D8: ldloc.1
IL_00D9: ldc.i4.0
IL_00DA: ceq
IL_00DC: br => Label9
IL_00E1: Label8
IL_00E1: ldc.i4.0
IL_00E2: // end original
IL_00E2: Label9
IL_00E2: ret
DONE

### Patch: static System.Void


RimWorld.PawnApparelGenerator::GenerateStartingApparelFor(Verse.Pawn pawn,
Verse.PawnGenerationRequest request)
### Replacement: static System.Void
RimWorld.PawnApparelGenerator::RimWorld.PawnApparelGenerator.GenerateStartingAppare
lFor_Patch3(Verse.Pawn pawn, Verse.PawnGenerationRequest request)
IL_0000: Local var 0: RimWorld.PawnApparelGenerator/<>c__DisplayClass11_0
IL_0000: Local var 1: System.Single
IL_0000: Local var 2: System.Single
IL_0000: Local var 3: RimWorld.NeededWarmth
IL_0000: Local var 4: System.Boolean
IL_0000: Local var 5: System.Single
IL_0000: Local var 6: System.Int32
IL_0000: Local var 7: System.Int32
IL_0000: Local var 8: RimWorld.ThingStuffPair
IL_0000: Local var 9: System.Int32
IL_0000: Local var 10: System.Single
IL_0000: Local var 11: System.Single
IL_0000: Local var 12: System.Single
IL_0000: Local var 13: System.Boolean
IL_0000: Local var 14:
System.Collections.Generic.List`1/Enumerator<RimWorld.Apparel>
IL_0000: Local var 15: RimWorld.CompBiocodable
IL_0000: Local var 16: System.Boolean
IL_0000: ldc.i4 0
IL_0005: stloc 16 (System.Boolean)
IL_0009: ldc.i4.1
IL_000A: stloc 16 (System.Boolean)
IL_000E: ldloc 16 (System.Boolean)
IL_0012: brfalse => Label1
IL_0017: ldarg 0
IL_001B: call static System.Void
AlienRace.HarmonyPatches::GenerateStartingApparelForPrefix(Verse.Pawn pawn)
IL_0020: Label1
IL_0020: nop
IL_0021: ldloc 16 (System.Boolean)
IL_0025: brfalse => Label0
IL_002A: // start original
IL_002A: newobj System.Void RimWorld.<>c__DisplayClass11_0::.ctor()
IL_002F: stloc.0
IL_0030: ldloc.0
IL_0031: ldarg.0
IL_0032: stfld Verse.Pawn RimWorld.<>c__DisplayClass11_0::pawn
IL_0037: ldloc.0
IL_0038: ldarg.1
IL_0039: stfld Verse.PawnGenerationRequest
RimWorld.<>c__DisplayClass11_0::request
IL_003E: ldloc.0
IL_003F: ldfld Verse.Pawn RimWorld.<>c__DisplayClass11_0::pawn
IL_0044: callvirt Verse.RaceProperties Verse.Pawn::get_RaceProps()
IL_0049: callvirt System.Boolean Verse.RaceProperties::get_ToolUser()
IL_004E: brfalse => Label2
IL_0053: ldloc.0
IL_0054: ldfld Verse.Pawn RimWorld.<>c__DisplayClass11_0::pawn
IL_0059: callvirt Verse.RaceProperties Verse.Pawn::get_RaceProps()
IL_005E: callvirt System.Boolean Verse.RaceProperties::get_IsFlesh()
IL_0063: brtrue => Label3
IL_0068: Label2
IL_0068: br => Label61
IL_006D: Label3
IL_006D: ldloc.0
IL_006E: ldfld Verse.Pawn RimWorld.<>c__DisplayClass11_0::pawn
IL_0073: ldfld RimWorld.Pawn_ApparelTracker Verse.Pawn::apparel
IL_0078: ldc.i4.0
IL_0079: callvirt System.Void
RimWorld.Pawn_ApparelTracker::DestroyAll(Verse.DestroyMode mode)
IL_007E: ldloc.0
IL_007F: ldfld Verse.Pawn RimWorld.<>c__DisplayClass11_0::pawn
IL_0084: ldfld RimWorld.Pawn_OutfitTracker Verse.Pawn::outfits
IL_0089: dup
IL_008A: brtrue => Label4
IL_008F: pop
IL_0090: br => Label5
IL_0095: Label4
IL_0095: ldfld RimWorld.OutfitForcedHandler
RimWorld.Pawn_OutfitTracker::forcedHandler
IL_009A: dup
IL_009B: brtrue => Label6
IL_00A0: pop
IL_00A1: br => Label7
IL_00A6: Label6
IL_00A6: call System.Void RimWorld.OutfitForcedHandler::Reset()
IL_00AB: Label5
IL_00AB: Label7
IL_00AB: ldloc.0
IL_00AC: ldfld Verse.Pawn RimWorld.<>c__DisplayClass11_0::pawn
IL_00B1: ldfld Verse.PawnKindDef Verse.Pawn::kindDef
IL_00B6: ldflda Verse.FloatRange Verse.PawnKindDef::apparelMoney
IL_00BB: call System.Single Verse.FloatRange::get_RandomInRange()
IL_00C0: stloc.2
IL_00C1: ldloc.0
IL_00C2: ldfld Verse.Pawn RimWorld.<>c__DisplayClass11_0::pawn
IL_00C7: ldloc.0
IL_00C8: ldfld Verse.PawnGenerationRequest
RimWorld.<>c__DisplayClass11_0::request
IL_00CD: ldloca.s 1 (System.Single)
IL_00CF: call static RimWorld.NeededWarmth
RimWorld.PawnApparelGenerator::ApparelWarmthNeededNow(Verse.Pawn pawn,
Verse.PawnGenerationRequest request, System.Single& mapTemperature)
IL_00D4: stloc.3
IL_00D5: call static System.Single Verse.Rand::get_Value()
IL_00DA: ldloc.0
IL_00DB: ldfld Verse.Pawn RimWorld.<>c__DisplayClass11_0::pawn
IL_00E0: ldfld Verse.PawnKindDef Verse.Pawn::kindDef
IL_00E5: ldfld System.Single Verse.PawnKindDef::apparelAllowHeadgearChance
IL_00EA: clt
IL_00EC: stloc.s 4 (System.Boolean)
IL_00EE: ldloc.0
IL_00EF: ldfld Verse.Pawn RimWorld.<>c__DisplayClass11_0::pawn
IL_00F4: ldloc.0
IL_00F5: ldfld Verse.PawnGenerationRequest
RimWorld.<>c__DisplayClass11_0::request
IL_00FA: call static System.Single
RimWorld.PawnApparelGenerator::ApparelToxicEnvironmentToAddress(Verse.Pawn pawn,
Verse.PawnGenerationRequest request)
IL_00FF: stloc.s 5 (System.Single)
IL_0101: ldnull
IL_0102: stsfld System.Text.StringBuilder
RimWorld.PawnApparelGenerator::debugSb
IL_0107: ldsfld System.Boolean Verse.DebugViewSettings::logApparelGeneration
IL_010C: brfalse => Label8
IL_0111: newobj System.Void System.Text.StringBuilder::.ctor()
IL_0116: stsfld System.Text.StringBuilder
RimWorld.PawnApparelGenerator::debugSb
IL_011B: ldsfld System.Text.StringBuilder
RimWorld.PawnApparelGenerator::debugSb
IL_0120: ldstr "Generating apparel for "
IL_0125: ldloc.0
IL_0126: ldfld Verse.Pawn RimWorld.<>c__DisplayClass11_0::pawn
IL_012B: call static System.String System.String::Concat(System.Object arg0,
System.Object arg1)
IL_0130: callvirt System.Text.StringBuilder
System.Text.StringBuilder::AppendLine(System.String value)
IL_0135: pop
IL_0136: ldsfld System.Text.StringBuilder
RimWorld.PawnApparelGenerator::debugSb
IL_013B: ldstr "Money: "
IL_0140: ldloca.s 2 (System.Single)
IL_0142: ldstr "F0"
IL_0147: call System.String System.Single::ToString(System.String format)
IL_014C: call static System.String System.String::Concat(System.String str0,
System.String str1)
IL_0151: callvirt System.Text.StringBuilder
System.Text.StringBuilder::AppendLine(System.String value)
IL_0156: pop
IL_0157: ldsfld System.Text.StringBuilder
RimWorld.PawnApparelGenerator::debugSb
IL_015C: ldstr "Needed warmth: "
IL_0161: ldloc.3
IL_0162: box RimWorld.NeededWarmth
IL_0167: call static System.String System.String::Concat(System.Object arg0,
System.Object arg1)
IL_016C: callvirt System.Text.StringBuilder
System.Text.StringBuilder::AppendLine(System.String value)
IL_0171: pop
IL_0172: ldsfld System.Text.StringBuilder
RimWorld.PawnApparelGenerator::debugSb
IL_0177: ldstr "Needed toxic environment resistance: "
IL_017C: ldloc.s 5 (System.Single)
IL_017E: box System.Single
IL_0183: call static System.String System.String::Concat(System.Object arg0,
System.Object arg1)
IL_0188: callvirt System.Text.StringBuilder
System.Text.StringBuilder::AppendLine(System.String value)
IL_018D: pop
IL_018E: ldsfld System.Text.StringBuilder
RimWorld.PawnApparelGenerator::debugSb
IL_0193: ldstr "Headgear allowed: "
IL_0198: ldloca.s 4 (System.Boolean)
IL_019A: call virtual System.String System.Boolean::ToString()
IL_019F: call static System.String System.String::Concat(System.String str0,
System.String str1)
IL_01A4: callvirt System.Text.StringBuilder
System.Text.StringBuilder::AppendLine(System.String value)
IL_01A9: pop
IL_01AA: Label8
IL_01AA: call static System.Int32 Verse.Rand::get_Int()
IL_01AF: stloc.s 6 (System.Int32)
IL_01B1: ldsfld System.Collections.Generic.List`1<RimWorld.ThingStuffPair>
RimWorld.PawnApparelGenerator::tmpApparelCandidates
IL_01B6: callvirt virtual System.Void
System.Collections.Generic.List`1<RimWorld.ThingStuffPair>::Clear()
IL_01BB: ldc.i4.0
IL_01BC: stloc.s 7 (System.Int32)
IL_01BE: br => Label9
IL_01C3: Label11
IL_01C3: ldsfld System.Collections.Generic.List`1<RimWorld.ThingStuffPair>
RimWorld.PawnApparelGenerator::allApparelPairs
IL_01C8: ldloc.s 7 (System.Int32)
IL_01CA: callvirt virtual RimWorld.ThingStuffPair
System.Collections.Generic.List`1<RimWorld.ThingStuffPair>::get_Item(System.Int32
index)
IL_01CF: stloc.s 8 (RimWorld.ThingStuffPair)
IL_01D1: ldloc.s 8 (RimWorld.ThingStuffPair)
IL_01D3: ldloc.0
IL_01D4: ldfld Verse.Pawn RimWorld.<>c__DisplayClass11_0::pawn
IL_01D9: ldloc.2
IL_01DA: ldloc.s 4 (System.Boolean)
IL_01DC: ldloc.s 6 (System.Int32)
IL_01DE: call static System.Boolean
RimWorld.PawnApparelGenerator::CanUsePair(RimWorld.ThingStuffPair pair, Verse.Pawn
pawn, System.Single moneyLeft, System.Boolean allowHeadgear, System.Int32
fixedSeed)
IL_01E3: brfalse => Label10
IL_01E8: ldsfld System.Collections.Generic.List`1<RimWorld.ThingStuffPair>
RimWorld.PawnApparelGenerator::tmpApparelCandidates
IL_01ED: ldloc.s 8 (RimWorld.ThingStuffPair)
IL_01EF: callvirt virtual System.Void
System.Collections.Generic.List`1<RimWorld.ThingStuffPair>::Add(RimWorld.ThingStuff
Pair item)
IL_01F4: Label10
IL_01F4: ldloc.s 7 (System.Int32)
IL_01F6: ldc.i4.1
IL_01F7: add
IL_01F8: stloc.s 7 (System.Int32)
IL_01FA: Label9
IL_01FA: ldloc.s 7 (System.Int32)
IL_01FC: ldsfld System.Collections.Generic.List`1<RimWorld.ThingStuffPair>
RimWorld.PawnApparelGenerator::allApparelPairs
IL_0201: callvirt virtual System.Int32
System.Collections.Generic.List`1<RimWorld.ThingStuffPair>::get_Count()
IL_0206: blt => Label11
IL_020B: ldloc.2
IL_020C: ldc.r4 0.001
IL_0211: bge.un => Label12
IL_0216: ldloc.0
IL_0217: ldfld Verse.Pawn RimWorld.<>c__DisplayClass11_0::pawn
IL_021C: ldloc.2
IL_021D: ldsfld System.Collections.Generic.List`1<RimWorld.ThingStuffPair>
RimWorld.PawnApparelGenerator::tmpApparelCandidates
IL_0222: call static System.Void
RimWorld.PawnApparelGenerator::GenerateWorkingPossibleApparelSetFor(Verse.Pawn
pawn, System.Single money,
System.Collections.Generic.List`1<RimWorld.ThingStuffPair> apparelCandidates)
IL_0227: br => Label13
IL_022C: Label12
IL_022C: ldc.i4.0
IL_022D: stloc.s 9 (System.Int32)
IL_022F: Label46
IL_022F: ldloc.0
IL_0230: ldfld Verse.Pawn RimWorld.<>c__DisplayClass11_0::pawn
IL_0235: ldloc.2
IL_0236: ldsfld System.Collections.Generic.List`1<RimWorld.ThingStuffPair>
RimWorld.PawnApparelGenerator::tmpApparelCandidates
IL_023B: call static System.Void
RimWorld.PawnApparelGenerator::GenerateWorkingPossibleApparelSetFor(Verse.Pawn
pawn, System.Single money,
System.Collections.Generic.List`1<RimWorld.ThingStuffPair> apparelCandidates)
IL_0240: ldsfld System.Boolean Verse.DebugViewSettings::logApparelGeneration
IL_0245: brfalse => Label14
IL_024A: ldsfld System.Text.StringBuilder
RimWorld.PawnApparelGenerator::debugSb
IL_024F: ldloca.s 9 (System.Int32)
IL_0251: call virtual System.String System.Int32::ToString()
IL_0256: ldc.i4.5
IL_0257: callvirt System.String System.String::PadRight(System.Int32 totalWidth)
IL_025C: ldstr "Trying: "
IL_0261: ldsfld RimWorld.PossibleApparelSet
RimWorld.PawnApparelGenerator::workingSet
IL_0266: callvirt virtual System.String System.Object::ToString()
IL_026B: call static System.String System.String::Concat(System.String str0,
System.String str1, System.String str2)
IL_0270: callvirt System.Text.StringBuilder
System.Text.StringBuilder::Append(System.String value)
IL_0275: pop
IL_0276: Label14
IL_0276: ldloc.s 9 (System.Int32)
IL_0278: ldc.i4.s 10
IL_027A: bge => Label15
IL_027F: call static System.Single Verse.Rand::get_Value()
IL_0284: ldc.r4 0.85
IL_0289: bge.un => Label16
IL_028E: ldloc.2
IL_028F: ldc.r4 9999999
IL_0294: bge.un => Label17
IL_0299: ldc.r4 0.45
IL_029E: ldc.r4 0.8
IL_02A3: call static System.Single Verse.Rand::Range(System.Single min,
System.Single max)
IL_02A8: stloc.s 10 (System.Single)
IL_02AA: ldsfld RimWorld.PossibleApparelSet
RimWorld.PawnApparelGenerator::workingSet
IL_02AF: callvirt System.Single RimWorld.PossibleApparelSet::get_TotalPrice()
IL_02B4: stloc.s 11 (System.Single)
IL_02B6: ldloc.s 11 (System.Single)
IL_02B8: ldloc.2
IL_02B9: ldloc.s 10 (System.Single)
IL_02BB: mul
IL_02BC: bge.un => Label18
IL_02C1: ldsfld System.Boolean Verse.DebugViewSettings::logApparelGeneration
IL_02C6: brfalse => Label19
IL_02CB: ldsfld System.Text.StringBuilder
RimWorld.PawnApparelGenerator::debugSb
IL_02D0: ldc.i4.5
IL_02D1: newarr System.String
IL_02D6: dup
IL_02D7: ldc.i4.0
IL_02D8: ldstr " -- Failed: Spent $"
IL_02DD: stelem.ref
IL_02DE: dup
IL_02DF: ldc.i4.1
IL_02E0: ldloca.s 11 (System.Single)
IL_02E2: ldstr "F0"
IL_02E7: call System.String System.Single::ToString(System.String format)
IL_02EC: stelem.ref
IL_02ED: dup
IL_02EE: ldc.i4.2
IL_02EF: ldstr ", < "
IL_02F4: stelem.ref
IL_02F5: dup
IL_02F6: ldc.i4.3
IL_02F7: ldloc.s 10 (System.Single)
IL_02F9: ldc.r4 100
IL_02FE: mul
IL_02FF: stloc.s 12 (System.Single)
IL_0301: ldloca.s 12 (System.Single)
IL_0303: ldstr "F0"
IL_0308: call System.String System.Single::ToString(System.String format)
IL_030D: stelem.ref
IL_030E: dup
IL_030F: ldc.i4.4
IL_0310: ldstr "% of money."
IL_0315: stelem.ref
IL_0316: call static System.String System.String::Concat(System.String[]
values)
IL_031B: callvirt System.Text.StringBuilder
System.Text.StringBuilder::AppendLine(System.String value)
IL_0320: pop
IL_0321: br => Label20
IL_0326: Label15
IL_0326: Label16
IL_0326: Label17
IL_0326: Label18
IL_0326: ldloc.s 9 (System.Int32)
IL_0328: ldc.i4.s 20
IL_032A: bge => Label21
IL_032F: call static System.Single Verse.Rand::get_Value()
IL_0334: ldc.r4 0.97
IL_0339: bge.un => Label22
IL_033E: ldsfld RimWorld.PossibleApparelSet
RimWorld.PawnApparelGenerator::workingSet
IL_0343: ldsfld Verse.BodyPartGroupDef RimWorld.BodyPartGroupDefOf::Torso
IL_0348: callvirt System.Boolean
RimWorld.PossibleApparelSet::Covers(Verse.BodyPartGroupDef bp)
IL_034D: brtrue => Label23
IL_0352: ldsfld System.Boolean Verse.DebugViewSettings::logApparelGeneration
IL_0357: brfalse => Label24
IL_035C: ldsfld System.Text.StringBuilder
RimWorld.PawnApparelGenerator::debugSb
IL_0361: ldstr " -- Failed: Does not cover torso."
IL_0366: callvirt System.Text.StringBuilder
System.Text.StringBuilder::AppendLine(System.String value)
IL_036B: pop
IL_036C: br => Label25
IL_0371: Label21
IL_0371: Label22
IL_0371: Label23
IL_0371: ldloc.s 9 (System.Int32)
IL_0373: ldc.i4.s 30
IL_0375: bge => Label26
IL_037A: call static System.Single Verse.Rand::get_Value()
IL_037F: ldc.r4 0.8
IL_0384: bge.un => Label27
IL_0389: ldsfld RimWorld.PossibleApparelSet
RimWorld.PawnApparelGenerator::workingSet
IL_038E: callvirt System.Boolean RimWorld.PossibleApparelSet::CoatButNoShirt()
IL_0393: brfalse => Label28
IL_0398: ldsfld System.Boolean Verse.DebugViewSettings::logApparelGeneration
IL_039D: brfalse => Label29
IL_03A2: ldsfld System.Text.StringBuilder
RimWorld.PawnApparelGenerator::debugSb
IL_03A7: ldstr " -- Failed: Coat but no shirt."
IL_03AC: callvirt System.Text.StringBuilder
System.Text.StringBuilder::AppendLine(System.String value)
IL_03B1: pop
IL_03B2: br => Label30
IL_03B7: Label26
IL_03B7: Label27
IL_03B7: Label28
IL_03B7: ldloc.s 9 (System.Int32)
IL_03B9: ldc.i4.s 50
IL_03BB: bge => Label31
IL_03C0: ldloc.s 9 (System.Int32)
IL_03C2: ldc.i4.s 17
IL_03C4: clt
IL_03C6: stloc.s 13 (System.Boolean)
IL_03C8: ldsfld RimWorld.PossibleApparelSet
RimWorld.PawnApparelGenerator::workingSet
IL_03CD: ldloc.3
IL_03CE: ldloc.s 13 (System.Boolean)
IL_03D0: ldloc.1
IL_03D1: callvirt System.Boolean
RimWorld.PossibleApparelSet::SatisfiesNeededWarmth(RimWorld.NeededWarmth warmth,
System.Boolean mustBeSafe, System.Single mapTemperature)
IL_03D6: brtrue => Label32
IL_03DB: ldsfld System.Boolean Verse.DebugViewSettings::logApparelGeneration
IL_03E0: brfalse => Label33
IL_03E5: ldsfld System.Text.StringBuilder
RimWorld.PawnApparelGenerator::debugSb
IL_03EA: ldstr " -- Failed: Wrong warmth."
IL_03EF: callvirt System.Text.StringBuilder
System.Text.StringBuilder::AppendLine(System.String value)
IL_03F4: pop
IL_03F5: br => Label34
IL_03FA: Label31
IL_03FA: Label32
IL_03FA: call static System.Boolean Verse.ModsConfig::get_BiotechActive()
IL_03FF: brfalse => Label35
IL_0404: ldloc.s 9 (System.Int32)
IL_0406: ldc.i4.s 10
IL_0408: bge => Label36
IL_040D: ldsfld RimWorld.PossibleApparelSet
RimWorld.PawnApparelGenerator::workingSet
IL_0412: ldloc.s 5 (System.Single)
IL_0414: callvirt System.Boolean
RimWorld.PossibleApparelSet::SatisfiesNeededToxicEnvironmentResistance(System.Singl
e pollution)
IL_0419: brtrue => Label37
IL_041E: ldsfld System.Boolean Verse.DebugViewSettings::logApparelGeneration
IL_0423: brfalse => Label38
IL_0428: ldsfld System.Text.StringBuilder
RimWorld.PawnApparelGenerator::debugSb
IL_042D: ldstr " -- Failed: Wrong toxic environment resistance."
IL_0432: callvirt System.Text.StringBuilder
System.Text.StringBuilder::AppendLine(System.String value)
IL_0437: pop
IL_0438: br => Label39
IL_043D: Label35
IL_043D: Label36
IL_043D: Label37
IL_043D: ldloc.s 9 (System.Int32)
IL_043F: ldc.i4.s 80
IL_0441: bge => Label40
IL_0446: ldsfld RimWorld.PossibleApparelSet
RimWorld.PawnApparelGenerator::workingSet
IL_044B: ldloc.0
IL_044C: ldfld Verse.Pawn RimWorld.<>c__DisplayClass11_0::pawn
IL_0451: ldfld Verse.Gender Verse.Pawn::gender
IL_0456: callvirt System.Boolean
RimWorld.PossibleApparelSet::IsNaked(Verse.Gender gender)
IL_045B: brfalse => Label41
IL_0460: ldsfld System.Boolean Verse.DebugViewSettings::logApparelGeneration
IL_0465: brfalse => Label42
IL_046A: ldsfld System.Text.StringBuilder
RimWorld.PawnApparelGenerator::debugSb
IL_046F: ldstr " -- Failed: Naked."
IL_0474: callvirt System.Text.StringBuilder
System.Text.StringBuilder::AppendLine(System.String value)
IL_0479: pop
IL_047A: br => Label43
IL_047F: Label40
IL_047F: Label41
IL_047F: ldsfld System.Boolean Verse.DebugViewSettings::logApparelGeneration
IL_0484: brfalse => Label44
IL_0489: ldsfld System.Text.StringBuilder
RimWorld.PawnApparelGenerator::debugSb
IL_048E: ldc.i4.4
IL_048F: newarr System.Object
IL_0494: dup
IL_0495: ldc.i4.0
IL_0496: ldstr " -- Approved! Total price: $"
IL_049B: stelem.ref
IL_049C: dup
IL_049D: ldc.i4.1
IL_049E: ldsfld RimWorld.PossibleApparelSet
RimWorld.PawnApparelGenerator::workingSet
IL_04A3: callvirt System.Single RimWorld.PossibleApparelSet::get_TotalPrice()
IL_04A8: stloc.s 12 (System.Single)
IL_04AA: ldloca.s 12 (System.Single)
IL_04AC: ldstr "F0"
IL_04B1: call System.String System.Single::ToString(System.String format)
IL_04B6: stelem.ref
IL_04B7: dup
IL_04B8: ldc.i4.2
IL_04B9: ldstr ", TotalInsulationCold: "
IL_04BE: stelem.ref
IL_04BF: dup
IL_04C0: ldc.i4.3
IL_04C1: ldsfld RimWorld.PossibleApparelSet
RimWorld.PawnApparelGenerator::workingSet
IL_04C6: callvirt System.Single
RimWorld.PossibleApparelSet::get_TotalInsulationCold()
IL_04CB: box System.Single
IL_04D0: stelem.ref
IL_04D1: call static System.String System.String::Concat(System.Object[]
args)
IL_04D6: callvirt System.Text.StringBuilder
System.Text.StringBuilder::Append(System.String value)
IL_04DB: pop
IL_04DC: br => Label45
IL_04E1: Label19
IL_04E1: Label20
IL_04E1: Label24
IL_04E1: Label25
IL_04E1: Label29
IL_04E1: Label30
IL_04E1: Label33
IL_04E1: Label34
IL_04E1: Label38
IL_04E1: Label39
IL_04E1: Label42
IL_04E1: Label43
IL_04E1: ldloc.s 9 (System.Int32)
IL_04E3: ldc.i4.1
IL_04E4: add
IL_04E5: stloc.s 9 (System.Int32)
IL_04E7: br => Label46
IL_04EC: Label13
IL_04EC: Label44
IL_04EC: Label45
IL_04EC: ldloc.0
IL_04ED: ldfld Verse.Pawn RimWorld.<>c__DisplayClass11_0::pawn
IL_04F2: ldfld Verse.PawnKindDef Verse.Pawn::kindDef
IL_04F7: ldfld System.Boolean Verse.PawnKindDef::apparelIgnoreSeasons
IL_04FC: brfalse => Label47
IL_0501: ldloc.0
IL_0502: ldflda Verse.PawnGenerationRequest
RimWorld.<>c__DisplayClass11_0::request
IL_0507: call System.Boolean
Verse.PawnGenerationRequest::get_ForceAddFreeWarmLayerIfNeeded()
IL_050C: brfalse => Label48
IL_0511: Label47
IL_0511: ldsfld RimWorld.PossibleApparelSet
RimWorld.PawnApparelGenerator::workingSet
IL_0516: ldloc.3
IL_0517: ldc.i4.1
IL_0518: ldloc.1
IL_0519: callvirt System.Boolean
RimWorld.PossibleApparelSet::SatisfiesNeededWarmth(RimWorld.NeededWarmth warmth,
System.Boolean mustBeSafe, System.Single mapTemperature)
IL_051E: brtrue => Label49
IL_0523: ldsfld RimWorld.PossibleApparelSet
RimWorld.PawnApparelGenerator::workingSet
IL_0528: ldloc.3
IL_0529: ldloc.1
IL_052A: ldloc.0
IL_052B: ldfld Verse.Pawn RimWorld.<>c__DisplayClass11_0::pawn
IL_0530: callvirt System.Void
RimWorld.PossibleApparelSet::AddFreeWarmthAsNeeded(RimWorld.NeededWarmth warmth,
System.Single mapTemperature, Verse.Pawn pawn)
IL_0535: Label48
IL_0535: Label49
IL_0535: call static System.Boolean Verse.ModsConfig::get_BiotechActive()
IL_053A: brfalse => Label50
IL_053F: ldloc.0
IL_0540: ldfld Verse.Pawn RimWorld.<>c__DisplayClass11_0::pawn
IL_0545: ldfld Verse.PawnKindDef Verse.Pawn::kindDef
IL_054A: ldfld System.Boolean Verse.PawnKindDef::apparelIgnorePollution
IL_054F: brtrue => Label51
IL_0554: ldloc.s 5 (System.Single)
IL_0556: ldc.r4 0.05
IL_055B: ble.un => Label52
IL_0560: ldsfld RimWorld.PossibleApparelSet
RimWorld.PawnApparelGenerator::workingSet
IL_0565: ldloc.s 5 (System.Single)
IL_0567: callvirt System.Boolean
RimWorld.PossibleApparelSet::SatisfiesNeededToxicEnvironmentResistance(System.Singl
e pollution)
IL_056C: brtrue => Label53
IL_0571: ldsfld RimWorld.PossibleApparelSet
RimWorld.PawnApparelGenerator::workingSet
IL_0576: ldloc.s 5 (System.Single)
IL_0578: ldloc.0
IL_0579: ldftn System.Boolean
RimWorld.<>c__DisplayClass11_0::<GenerateStartingApparelFor>b__0(RimWorld.ThingStuf
fPair pa)
IL_057F: newobj System.Void System.Func`2<RimWorld.ThingStuffPair,
System.Boolean>::.ctor(System.Object object, System.IntPtr method)
IL_0584: callvirt System.Void
RimWorld.PossibleApparelSet::AddFreeToxicEnvironmentResistanceAsNeeded(System.Singl
e pollution, System.Func`2<RimWorld.ThingStuffPair, System.Boolean> extraValidator)
IL_0589: Label50
IL_0589: Label51
IL_0589: Label52
IL_0589: Label53
IL_0589: ldsfld System.Boolean Verse.DebugViewSettings::logApparelGeneration
IL_058E: brfalse => Label54
IL_0593: ldsfld System.Text.StringBuilder
RimWorld.PawnApparelGenerator::debugSb
IL_0598: callvirt virtual System.String System.Object::ToString()
IL_059D: call static System.Void Verse.Log::Message(System.String text)
IL_05A2: Label54
IL_05A2: ldsfld RimWorld.PossibleApparelSet
RimWorld.PawnApparelGenerator::workingSet
IL_05A7: ldloc.0
IL_05A8: ldfld Verse.Pawn RimWorld.<>c__DisplayClass11_0::pawn
IL_05AD: callvirt System.Void RimWorld.PossibleApparelSet::GiveToPawn(Verse.Pawn
pawn)
IL_05B2: ldsfld RimWorld.PossibleApparelSet
RimWorld.PawnApparelGenerator::workingSet
IL_05B7: ldnull
IL_05B8: ldnull
IL_05B9: callvirt System.Void RimWorld.PossibleApparelSet::Reset(Verse.BodyDef
body, Verse.ThingDef raceDef)
IL_05BE: ldloc.0
IL_05BF: ldfld Verse.Pawn RimWorld.<>c__DisplayClass11_0::pawn
IL_05C4: ldfld RimWorld.Pawn_ApparelTracker Verse.Pawn::apparel
IL_05C9: callvirt System.Collections.Generic.List`1<RimWorld.Apparel>
RimWorld.Pawn_ApparelTracker::get_WornApparel()
IL_05CE: callvirt System.Collections.Generic.Enumerator<RimWorld.Apparel>
System.Collections.Generic.List`1<RimWorld.Apparel>::GetEnumerator()
IL_05D3: stloc.s 14
(System.Collections.Generic.List`1+Enumerator[RimWorld.Apparel])
.try
{
IL_05D5: br => Label55
IL_05DA: Label59
IL_05DA: ldloca.s 14
(System.Collections.Generic.List`1+Enumerator[RimWorld.Apparel])
IL_05DC: call virtual RimWorld.Apparel
System.Collections.Generic.Enumerator<RimWorld.Apparel>::get_Current()
IL_05E1: dup
IL_05E2: ldloc.0
IL_05E3: ldfld Verse.Pawn RimWorld.<>c__DisplayClass11_0::pawn
IL_05E8: call static System.Void
RimWorld.PawnApparelGenerator::PostProcessApparel(RimWorld.Apparel apparel,
Verse.Pawn pawn)
IL_05ED: call static RimWorld.CompBiocodable
Verse.ThingCompUtility::TryGetComp(Verse.Thing thing)
IL_05F2: stloc.s 15 (RimWorld.CompBiocodable)
IL_05F4: ldloc.s 15 (RimWorld.CompBiocodable)
IL_05F6: brfalse => Label56
IL_05FB: ldloc.s 15 (RimWorld.CompBiocodable)
IL_05FD: callvirt System.Boolean RimWorld.CompBiocodable::get_Biocoded()
IL_0602: brtrue => Label57
IL_0607: ldloc.0
IL_0608: ldflda Verse.PawnGenerationRequest
RimWorld.<>c__DisplayClass11_0::request
IL_060D: call System.Single
Verse.PawnGenerationRequest::get_BiocodeApparelChance()
IL_0612: call static System.Boolean Verse.Rand::Chance(System.Single
chance)
IL_0617: brfalse => Label58
IL_061C: ldloc.s 15 (RimWorld.CompBiocodable)
IL_061E: ldloc.0
IL_061F: ldfld Verse.Pawn RimWorld.<>c__DisplayClass11_0::pawn
IL_0624: callvirt virtual System.Void
RimWorld.CompBiocodable::CodeFor(Verse.Pawn p)
IL_0629: Label55
IL_0629: Label56
IL_0629: Label57
IL_0629: Label58
IL_0629: ldloca.s 14
(System.Collections.Generic.List`1+Enumerator[RimWorld.Apparel])
IL_062B: call virtual System.Boolean
System.Collections.Generic.Enumerator<RimWorld.Apparel>::MoveNext()
IL_0630: brtrue => Label59
IL_0635: leave => Label60
IL_063A: leave => (autogenerated)
} // end try
.finally
{
IL_063F: ldloca.s 14
(System.Collections.Generic.List`1+Enumerator[RimWorld.Apparel])
IL_0641: constrained.
System.Collections.Generic.List`1+Enumerator[RimWorld.Apparel]
IL_0647: callvirt abstract virtual System.Void
System.IDisposable::Dispose()
IL_064C: endfinally
IL_064D: leave => (autogenerated)
} // end handler
IL_064E: // end original
IL_064E: Label60
IL_064E: Label61
IL_064E: Label0
IL_064E: call static System.Void
AlienRace.HarmonyPatches::GenerateStartingApparelForPostfix()
IL_0653: ldarg 0
IL_0657: call static System.Void
VFECore.Patch_PawnApparelGenerator::GenerateStartingApparelFor_Postfix(Verse.Pawn
pawn)
IL_065C: ret
DONE

### Patch: Verse.AI.PawnPath Verse.AI.Pawn_PathFollower::GenerateNewPath()


### Replacement: static Verse.AI.PawnPath
Verse.AI.Pawn_PathFollower::Verse.AI.Pawn_PathFollower.GenerateNewPath_Patch1(Verse
.AI.Pawn_PathFollower this)
IL_0000: Local var 0: Verse.AI.PawnPath
IL_0000: Local var 1: System.Boolean
IL_0000: ldnull
IL_0001: stloc 0 (Verse.AI.PawnPath)
IL_0005: ldc.i4 0
IL_000A: stloc 1 (System.Boolean)
IL_000E: ldc.i4.1
IL_000F: stloc 1 (System.Boolean)
IL_0013: ldloc 1 (System.Boolean)
IL_0017: brfalse => Label1
IL_001C: ldarg.0
IL_001D: ldarg.0
IL_001E: ldfld Verse.Pawn Verse.AI.Pawn_PathFollower::pawn
IL_0023: ldarg.0
IL_0024: ldfld Verse.LocalTargetInfo Verse.AI.Pawn_PathFollower::destination
IL_0029: ldarg.0
IL_002A: ldfld Verse.AI.PathEndMode Verse.AI.Pawn_PathFollower::peMode
IL_002F: ldloca 0 (Verse.AI.PawnPath)
IL_0033: call static System.Boolean
VFECore.PhasingPatches::GenerateNewPath_Prefix(Verse.AI.Pawn_PathFollower
__instance, Verse.Pawn ___pawn, Verse.LocalTargetInfo ___destination,
Verse.AI.PathEndMode ___peMode, Verse.AI.PawnPath& __result)
IL_0038: stloc 1 (System.Boolean)
IL_003C: Label1
IL_003C: nop
IL_003D: ldloc 1 (System.Boolean)
IL_0041: brfalse => Label0
IL_0046: // start original
IL_0046: ldarg.0
IL_0047: ldarg.0
IL_0048: ldflda Verse.LocalTargetInfo Verse.AI.Pawn_PathFollower::destination
IL_004D: call Verse.IntVec3 Verse.LocalTargetInfo::get_Cell()
IL_0052: stfld Verse.IntVec3
Verse.AI.Pawn_PathFollower::lastPathedTargetPosition
IL_0057: ldarg.0
IL_0058: ldfld Verse.Pawn Verse.AI.Pawn_PathFollower::pawn
IL_005D: callvirt virtual Verse.Map Verse.Thing::get_Map()
IL_0062: ldfld Verse.AI.PathFinder Verse.Map::pathFinder
IL_0067: ldarg.0
IL_0068: ldfld Verse.Pawn Verse.AI.Pawn_PathFollower::pawn
IL_006D: callvirt virtual Verse.IntVec3 Verse.Thing::get_Position()
IL_0072: ldarg.0
IL_0073: ldfld Verse.LocalTargetInfo Verse.AI.Pawn_PathFollower::destination
IL_0078: ldarg.0
IL_0079: ldfld Verse.Pawn Verse.AI.Pawn_PathFollower::pawn
IL_007E: ldarg.0
IL_007F: ldfld Verse.AI.PathEndMode Verse.AI.Pawn_PathFollower::peMode
IL_0084: ldnull
IL_0085: callvirt Verse.AI.PawnPath Verse.AI.PathFinder::FindPath(Verse.IntVec3
start, Verse.LocalTargetInfo dest, Verse.Pawn pawn, Verse.AI.PathEndMode peMode,
Verse.AI.PathFinderCostTuning tuning)
IL_008A: // end original
IL_008A: stloc 0 (Verse.AI.PawnPath)
IL_008E: Label0
IL_008E: ldloc 0 (Verse.AI.PawnPath)
IL_0092: ret
DONE

### Patch: static System.Int32


Verse.AI.Pawn_PathFollower::CostToMoveIntoCell(Verse.Pawn pawn, Verse.IntVec3 c)
### Replacement: static System.Int32
Verse.AI.Pawn_PathFollower::Verse.AI.Pawn_PathFollower.CostToMoveIntoCell_Patch2(Ve
rse.Pawn pawn, Verse.IntVec3 c)
IL_0000: Local var 0: System.Int32
IL_0000: Local var 1: Verse.Building
IL_0000: Local var 2: Verse.Pawn
IL_0000: Local var 3: System.Int32
IL_0000: Local var 4: Verse.AI.LocomotionUrgency
IL_0000: Local var 5: System.Int32
IL_0000: ldc.i4 0
IL_0005: stloc 5 (System.Int32)
IL_0009: // start original
IL_0009: ldarg.1
IL_000A: ldfld System.Int32 Verse.IntVec3::x
IL_000F: ldarg.0
IL_0010: callvirt virtual Verse.IntVec3 Verse.Thing::get_Position()
IL_0015: ldfld System.Int32 Verse.IntVec3::x
IL_001A: beq => Label0
IL_001F: ldarg.1
IL_0020: ldfld System.Int32 Verse.IntVec3::z
IL_0025: ldarg.0
IL_0026: callvirt virtual Verse.IntVec3 Verse.Thing::get_Position()
IL_002B: ldfld System.Int32 Verse.IntVec3::z
IL_0030: bne.un => Label1
IL_0035: Label0
IL_0035: ldarg.0
IL_0036: callvirt System.Int32 Verse.Pawn::get_TicksPerMoveCardinal()
IL_003B: stloc.0
IL_003C: br => Label2
IL_0041: Label1
IL_0041: ldarg.0
IL_0042: callvirt System.Int32 Verse.Pawn::get_TicksPerMoveDiagonal()
IL_0047: stloc.0
IL_0048: Label2
IL_0048: ldarg.0
IL_0049: call static System.Boolean
VFECore.PhasingUtils::IsPhasing(Verse.Pawn p)
IL_004E: brtrue => Label21
IL_0053: ldloc.0
IL_0054: ldarg.0
IL_0055: callvirt virtual Verse.Map Verse.Thing::get_Map()
IL_005A: ldfld Verse.AI.Pathing Verse.Map::pathing
IL_005F: ldarg.0
IL_0060: callvirt Verse.AI.PathingContext Verse.AI.Pathing::For(Verse.Pawn pawn)
IL_0065: ldfld Verse.AI.PathGrid Verse.AI.PathingContext::pathGrid
IL_006A: ldarg.1
IL_006B: ldc.i4.0
IL_006C: ldarg.0
IL_006D: callvirt virtual Verse.IntVec3 Verse.Thing::get_Position()
IL_0072: callvirt System.Int32 Verse.AI.PathGrid::CalculatedCostAt(Verse.IntVec3
c, System.Boolean perceivedStatic, Verse.IntVec3 prevCell)
IL_0077: add
IL_0078: stloc.0
IL_0079: ldarg.1
IL_007A: ldarg.0
IL_007B: callvirt virtual Verse.Map Verse.Thing::get_Map()
IL_0080: call static Verse.Building
Verse.GridsUtility::GetEdifice(Verse.IntVec3 c, Verse.Map map)
IL_0085: stloc.1
IL_0086: ldloc.1
IL_0087: brfalse => Label3
IL_008C: ldloc.0
IL_008D: ldloc.1
IL_008E: ldarg.0
IL_008F: callvirt virtual System.UInt16
Verse.Building::PathWalkCostFor(Verse.Pawn p)
IL_0094: add
IL_0095: stloc.0
IL_0096: Label3
IL_0096: ldloc.0
IL_0097: ldc.i4 450
IL_009C: ble => Label4
IL_00A1: ldc.i4 450
IL_00A6: stloc.0
IL_00A7: Label4
IL_00A7: Label21
IL_00A7: ldarg.0
IL_00A8: callvirt Verse.AI.Job Verse.Pawn::get_CurJob()
IL_00AD: brfalse => Label5
IL_00B2: ldarg.0
IL_00B3: ldfld Verse.AI.Pawn_JobTracker Verse.Pawn::jobs
IL_00B8: ldfld Verse.AI.JobDriver Verse.AI.Pawn_JobTracker::curDriver
IL_00BD: ldfld Verse.Pawn Verse.AI.JobDriver::locomotionUrgencySameAs
IL_00C2: stloc.2
IL_00C3: ldloc.2
IL_00C4: brfalse => Label6
IL_00C9: ldloc.2
IL_00CA: ldarg.0
IL_00CB: beq => Label7
IL_00D0: ldloc.2
IL_00D1: callvirt System.Boolean Verse.Thing::get_Spawned()
IL_00D6: brfalse => Label8
IL_00DB: ldloc.2
IL_00DC: ldarg.1
IL_00DD: call static System.Int32
Verse.AI.Pawn_PathFollower::CostToMoveIntoCell(Verse.Pawn pawn, Verse.IntVec3 c)
IL_00E2: stloc.3
IL_00E3: ldloc.0
IL_00E4: ldloc.3
IL_00E5: bge => Label9
IL_00EA: ldloc.3
IL_00EB: stloc.0
IL_00EC: br => Label10
IL_00F1: Label6
IL_00F1: Label7
IL_00F1: Label8
IL_00F1: ldarg.0
IL_00F2: ldfld Verse.AI.Pawn_JobTracker Verse.Pawn::jobs
IL_00F7: ldfld Verse.AI.Job Verse.AI.Pawn_JobTracker::curJob
IL_00FC: ldfld Verse.AI.LocomotionUrgency Verse.AI.Job::locomotionUrgency
IL_0101: stloc.s 4 (Verse.AI.LocomotionUrgency)
IL_0103: ldloc.s 4 (Verse.AI.LocomotionUrgency)
IL_0105: ldc.i4.1
IL_0106: sub
IL_0107: switch => Labels11,12,13,14
IL_011C: br => Label15
IL_0121: Label11
IL_0121: ldloc.0
IL_0122: ldc.i4.3
IL_0123: mul
IL_0124: stloc.0
IL_0125: ldloc.0
IL_0126: ldc.i4.s 60
IL_0128: bge => Label16
IL_012D: ldc.i4.s 60
IL_012F: stloc.0
IL_0130: br => Label17
IL_0135: Label12
IL_0135: ldloc.0
IL_0136: ldc.i4.2
IL_0137: mul
IL_0138: stloc.0
IL_0139: ldloc.0
IL_013A: ldc.i4.s 50
IL_013C: bge => Label18
IL_0141: ldc.i4.s 50
IL_0143: stloc.0
IL_0144: br => Label19
IL_0149: Label13
IL_0149: ldloc.0
IL_014A: stloc.0
IL_014B: br => Label20
IL_0150: Label14
IL_0150: ldloc.0
IL_0151: conv.r4
IL_0152: ldc.r4 0.75
IL_0157: mul
IL_0158: call static System.Int32 UnityEngine.Mathf::RoundToInt(System.Single
f)
IL_015D: stloc.0
IL_015E: Label5
IL_015E: Label9
IL_015E: Label10
IL_015E: Label15
IL_015E: Label16
IL_015E: Label17
IL_015E: Label18
IL_015E: Label19
IL_015E: Label20
IL_015E: ldloc.0
IL_015F: ldc.i4.1
IL_0160: call static System.Int32 UnityEngine.Mathf::Max(System.Int32 a,
System.Int32 b)
IL_0165: // end original
IL_0165: stloc 5 (System.Int32)
IL_0169: ldarg 0
IL_016D: ldarg 1
IL_0171: ldloca 5 (System.Int32)
IL_0175: call static System.Void
AnimalBehaviours.VanillaExpandedFramework_Pawn_PathFollower_CostToMoveIntoCell_Patc
h::DisablePathCostForFloatingCreatures(Verse.Pawn pawn, Verse.IntVec3 c,
System.Int32& __result)
IL_017A: ldloc 5 (System.Int32)
IL_017E: ldarg 0
IL_0182: ldarg 1
IL_0186: call static System.Int32 CF.CostToMoveIntoCell::Postfix(System.Int32
__result, Verse.Pawn pawn, Verse.IntVec3 c)
IL_018B: ret
DONE

### Patch: static System.Boolean Verse.GenGrid::WalkableBy(Verse.IntVec3 c,


Verse.Map map, Verse.Pawn pawn)
### Replacement: static System.Boolean
Verse.GenGrid::Verse.GenGrid.WalkableBy_Patch1(Verse.IntVec3 c, Verse.Map map,
Verse.Pawn pawn)
IL_0000: Local var 0: System.Boolean
IL_0000: Local var 1: System.Boolean
IL_0000: ldc.i4 0
IL_0005: stloc 0 (System.Boolean)
IL_0009: ldc.i4 0
IL_000E: stloc 1 (System.Boolean)
IL_0012: ldc.i4.1
IL_0013: stloc 1 (System.Boolean)
IL_0017: ldloc 1 (System.Boolean)
IL_001B: brfalse => Label1
IL_0020: ldloca 0 (System.Boolean)
IL_0024: ldarg 2
IL_0028: ldarg 0
IL_002C: call static System.Boolean
VFECore.PhasingPatches::WalkableBy_Prefix(System.Boolean& __result, Verse.Pawn
pawn, Verse.IntVec3 c)
IL_0031: stloc 1 (System.Boolean)
IL_0035: Label1
IL_0035: nop
IL_0036: ldloc 1 (System.Boolean)
IL_003A: brfalse => Label0
IL_003F: // start original
IL_003F: ldarg.1
IL_0040: ldfld Verse.AI.Pathing Verse.Map::pathing
IL_0045: ldarg.2
IL_0046: callvirt Verse.AI.PathingContext Verse.AI.Pathing::For(Verse.Pawn pawn)
IL_004B: ldfld Verse.AI.PathGrid Verse.AI.PathingContext::pathGrid
IL_0050: ldarg.0
IL_0051: callvirt System.Boolean Verse.AI.PathGrid::Walkable(Verse.IntVec3 loc)
IL_0056: // end original
IL_0056: stloc 0 (System.Boolean)
IL_005A: Label0
IL_005A: ldloc 0 (System.Boolean)
IL_005E: ret
DONE

### Patch: Verse.Building


Verse.AI.Pawn_PathFollower::BuildingBlockingNextPathCell()
### Replacement: static Verse.Building
Verse.AI.Pawn_PathFollower::Verse.AI.Pawn_PathFollower.BuildingBlockingNextPathCell
_Patch1(Verse.AI.Pawn_PathFollower this)
IL_0000: Local var 0: Verse.Building
IL_0000: Local var 1: Verse.Building
IL_0000: Local var 2: System.Boolean
IL_0000: ldnull
IL_0001: stloc 1 (Verse.Building)
IL_0005: ldc.i4 0
IL_000A: stloc 2 (System.Boolean)
IL_000E: ldc.i4.1
IL_000F: stloc 2 (System.Boolean)
IL_0013: ldloc 2 (System.Boolean)
IL_0017: brfalse => Label1
IL_001C: ldloca 1 (Verse.Building)
IL_0020: ldarg.0
IL_0021: ldfld Verse.Pawn Verse.AI.Pawn_PathFollower::pawn
IL_0026: call static System.Boolean
VFECore.PhasingPatches::NoBuildingBlocking(Verse.Building& __result, Verse.Pawn
___pawn)
IL_002B: stloc 2 (System.Boolean)
IL_002F: Label1
IL_002F: nop
IL_0030: ldloc 2 (System.Boolean)
IL_0034: brfalse => Label0
IL_0039: // start original
IL_0039: ldarg.0
IL_003A: ldfld Verse.IntVec3 Verse.AI.Pawn_PathFollower::nextCell
IL_003F: ldarg.0
IL_0040: ldfld Verse.Pawn Verse.AI.Pawn_PathFollower::pawn
IL_0045: callvirt virtual Verse.Map Verse.Thing::get_Map()
IL_004A: call static Verse.Building
Verse.GridsUtility::GetEdifice(Verse.IntVec3 c, Verse.Map map)
IL_004F: stloc.0
IL_0050: ldloc.0
IL_0051: brfalse => Label2
IL_0056: ldloc.0
IL_0057: ldarg.0
IL_0058: ldfld Verse.Pawn Verse.AI.Pawn_PathFollower::pawn
IL_005D: callvirt virtual System.Boolean Verse.Thing::BlocksPawn(Verse.Pawn p)
IL_0062: brfalse => Label3
IL_0067: ldloc.0
IL_0068: br => Label4
IL_006D: Label2
IL_006D: Label3
IL_006D: ldnull
IL_006E: // end original
IL_006E: Label4
IL_006E: stloc 1 (Verse.Building)
IL_0072: Label0
IL_0072: ldloc 1 (Verse.Building)
IL_0076: ret
DONE

### Patch: System.Void Verse.AI.Pawn_PathFollower::TryEnterNextPathCell()


### Replacement: static System.Void
Verse.AI.Pawn_PathFollower::Verse.AI.Pawn_PathFollower.TryEnterNextPathCell_Patch1(
Verse.AI.Pawn_PathFollower this)
IL_0000: Local var 0: Verse.Building
IL_0000: Local var 1: RimWorld.Building_Door
IL_0000: Local var 2: RimWorld.Building_Door
IL_0000: Local var 3: Verse.Pawn
IL_0000: Local var 4: RimWorld.Building_Door
IL_0000: Local var 5: Verse.Stance_Cooldown
IL_0000: Local var 6: Verse.Stance_Cooldown
IL_0000: // start original
IL_0000: ldarg.0
IL_0001: call Verse.Building
Verse.AI.Pawn_PathFollower::BuildingBlockingNextPathCell()
IL_0006: stloc.0
IL_0007: ldloc.0
IL_0008: brfalse => Label0
IL_000D: ldloc.0
IL_000E: isinst RimWorld.Building_Door
IL_0013: stloc.s 4 (RimWorld.Building_Door)
IL_0015: ldloc.s 4 (RimWorld.Building_Door)
IL_0017: brfalse => Label1
IL_001C: ldloc.s 4 (RimWorld.Building_Door)
IL_001E: callvirt System.Boolean RimWorld.Building_Door::get_FreePassage()
IL_0023: brtrue => Label2
IL_0028: Label1
IL_0028: ldarg.0
IL_0029: ldfld Verse.Pawn Verse.AI.Pawn_PathFollower::pawn
IL_002E: callvirt Verse.AI.Job Verse.Pawn::get_CurJob()
IL_0033: brfalse => Label3
IL_0038: ldarg.0
IL_0039: ldfld Verse.Pawn Verse.AI.Pawn_PathFollower::pawn
IL_003E: callvirt Verse.AI.Job Verse.Pawn::get_CurJob()
IL_0043: ldfld System.Boolean Verse.AI.Job::canBashDoors
IL_0048: brtrue => Label4
IL_004D: Label3
IL_004D: ldarg.0
IL_004E: ldfld Verse.Pawn Verse.AI.Pawn_PathFollower::pawn
IL_0053: ldloc.0
IL_0054: call static System.Boolean
RimWorld.GenHostility::HostileTo(Verse.Thing a, Verse.Thing b)
IL_0059: brfalse => Label5
IL_005E: Label4
IL_005E: ldarg.0
IL_005F: ldloc.0
IL_0060: call System.Void
Verse.AI.Pawn_PathFollower::MakeBashBlockerJob(Verse.Building blocker)
IL_0065: br => Label25
IL_006A: Label5
IL_006A: ldarg.0
IL_006B: call System.Void Verse.AI.Pawn_PathFollower::PatherFailed()
IL_0070: br => Label26
IL_0075: Label2
IL_0075: ldloc.0
IL_0076: ldfld Verse.ThingDef Verse.Thing::def
IL_007B: callvirt System.Boolean Verse.ThingDef::get_IsFence()
IL_0080: brfalse => Label6
IL_0085: ldarg.0
IL_0086: ldfld Verse.Pawn Verse.AI.Pawn_PathFollower::pawn
IL_008B: ldfld Verse.ThingDef Verse.Thing::def
IL_0090: ldfld Verse.RaceProperties Verse.ThingDef::race
IL_0095: callvirt System.Boolean Verse.RaceProperties::get_FenceBlocked()
IL_009A: brfalse => Label7
IL_009F: ldarg.0
IL_00A0: ldfld Verse.Pawn Verse.AI.Pawn_PathFollower::pawn
IL_00A5: callvirt Verse.AI.Job Verse.Pawn::get_CurJob()
IL_00AA: brfalse => Label8
IL_00AF: ldarg.0
IL_00B0: ldfld Verse.Pawn Verse.AI.Pawn_PathFollower::pawn
IL_00B5: callvirt Verse.AI.Job Verse.Pawn::get_CurJob()
IL_00BA: ldfld System.Boolean Verse.AI.Job::canBashFences
IL_00BF: brfalse => Label9
IL_00C4: ldarg.0
IL_00C5: ldloc.0
IL_00C6: call System.Void
Verse.AI.Pawn_PathFollower::MakeBashBlockerJob(Verse.Building blocker)
IL_00CB: br => Label27
IL_00D0: Label8
IL_00D0: Label9
IL_00D0: ldarg.0
IL_00D1: call System.Void Verse.AI.Pawn_PathFollower::PatherFailed()
IL_00D6: br => Label28
IL_00DB: Label0
IL_00DB: Label6
IL_00DB: Label7
IL_00DB: ldarg.0
IL_00DC: call RimWorld.Building_Door
Verse.AI.Pawn_PathFollower::NextCellDoorToWaitForOrManuallyOpen()
IL_00E1: stloc.1
IL_00E2: ldloc.1
IL_00E3: brfalse => Label10
IL_00E8: ldloc.1
IL_00E9: callvirt System.Boolean RimWorld.Building_Door::get_Open()
IL_00EE: brtrue => Label11
IL_00F3: ldloc.1
IL_00F4: ldarg.0
IL_00F5: ldfld Verse.Pawn Verse.AI.Pawn_PathFollower::pawn
IL_00FA: callvirt System.Void
RimWorld.Building_Door::StartManualOpenBy(Verse.Pawn opener)
IL_00FF: Label11
IL_00FF: ldloc.1
IL_0100: callvirt System.Int32 RimWorld.Building_Door::get_TicksTillFullyOpened()
IL_0105: ldloc.1
IL_0106: call static Verse.LocalTargetInfo
Verse.LocalTargetInfo::op_Implicit(Verse.Thing t)
IL_010B: ldnull
IL_010C: newobj System.Void Verse.Stance_Cooldown::.ctor(System.Int32 ticks,
Verse.LocalTargetInfo focusTarg, Verse.Verb verb)
IL_0111: stloc.s 5 (Verse.Stance_Cooldown)
IL_0113: ldloc.s 5 (Verse.Stance_Cooldown)
IL_0115: ldc.i4.1
IL_0116: stfld System.Boolean Verse.Stance_Busy::neverAimWeapon
IL_011B: ldarg.0
IL_011C: ldfld Verse.Pawn Verse.AI.Pawn_PathFollower::pawn
IL_0121: ldfld Verse.Pawn_StanceTracker Verse.Pawn::stances
IL_0126: ldloc.s 5 (Verse.Stance_Cooldown)
IL_0128: callvirt System.Void Verse.Pawn_StanceTracker::SetStance(Verse.Stance
newStance)
IL_012D: ldloc.1
IL_012E: ldarg.0
IL_012F: ldfld Verse.Pawn Verse.AI.Pawn_PathFollower::pawn
IL_0134: callvirt System.Void
RimWorld.Building_Door::CheckFriendlyTouched(Verse.Pawn p)
IL_0139: br => Label29
IL_013E: Label10
IL_013E: ldarg.0
IL_013F: ldarg.0
IL_0140: ldfld Verse.Pawn Verse.AI.Pawn_PathFollower::pawn
IL_0145: callvirt virtual Verse.IntVec3 Verse.Thing::get_Position()
IL_014A: stfld Verse.IntVec3 Verse.AI.Pawn_PathFollower::lastCell
IL_014F: ldarg.0
IL_0150: ldfld Verse.Pawn Verse.AI.Pawn_PathFollower::pawn
IL_0155: ldarg.0
IL_0156: ldfld Verse.IntVec3 Verse.AI.Pawn_PathFollower::nextCell
IL_015B: callvirt System.Void Verse.Thing::set_Position(Verse.IntVec3 value)
IL_0160: ldarg.0
IL_0161: ldfld Verse.Pawn Verse.AI.Pawn_PathFollower::pawn
IL_0166: callvirt Verse.RaceProperties Verse.Pawn::get_RaceProps()
IL_016B: callvirt System.Boolean Verse.RaceProperties::get_Humanlike()
IL_0170: brfalse => Label12
IL_0175: ldarg.0
IL_0176: ldarg.0
IL_0177: ldfld System.Int32 Verse.AI.Pawn_PathFollower::cellsUntilClamor
IL_017C: ldc.i4.1
IL_017D: sub
IL_017E: stfld System.Int32 Verse.AI.Pawn_PathFollower::cellsUntilClamor
IL_0183: ldarg.0
IL_0184: ldfld System.Int32 Verse.AI.Pawn_PathFollower::cellsUntilClamor
IL_0189: ldc.i4.0
IL_018A: bgt => Label13
IL_018F: ldarg.0
IL_0190: ldfld Verse.Pawn Verse.AI.Pawn_PathFollower::pawn
IL_0195: ldc.r4 7
IL_019A: ldsfld Verse.ClamorDef RimWorld.ClamorDefOf::Movement
IL_019F: call static System.Void Verse.GenClamor::DoClamor(Verse.Thing
source, System.Single radius, Verse.ClamorDef type)
IL_01A4: ldarg.0
IL_01A5: ldc.i4.s 12
IL_01A7: stfld System.Int32 Verse.AI.Pawn_PathFollower::cellsUntilClamor
IL_01AC: Label12
IL_01AC: Label13
IL_01AC: ldarg.0
IL_01AD: ldfld Verse.Pawn Verse.AI.Pawn_PathFollower::pawn
IL_01B2: ldfld RimWorld.Pawn_FilthTracker Verse.Pawn::filth
IL_01B7: callvirt System.Void RimWorld.Pawn_FilthTracker::Notify_EnteredNewCell()
IL_01BC: ldarg.0
IL_01BD: ldfld Verse.Pawn Verse.AI.Pawn_PathFollower::pawn
IL_01C2: callvirt System.Single Verse.Pawn::get_BodySize()
IL_01C7: ldc.r4 0.9
IL_01CC: ble.un => Label14
IL_01D1: ldarg.0
IL_01D2: ldfld Verse.Pawn Verse.AI.Pawn_PathFollower::pawn
IL_01D7: callvirt virtual Verse.Map Verse.Thing::get_Map()
IL_01DC: ldfld Verse.SnowGrid Verse.Map::snowGrid
IL_01E1: ldarg.0
IL_01E2: ldfld Verse.Pawn Verse.AI.Pawn_PathFollower::pawn
IL_01E7: callvirt virtual Verse.IntVec3 Verse.Thing::get_Position()
IL_01EC: ldc.r4 -0.001
IL_01F1: callvirt System.Void Verse.SnowGrid::AddDepth(Verse.IntVec3 c,
System.Single depthToAdd)
IL_01F6: Label14
IL_01F6: ldarg.0
IL_01F7: ldfld Verse.Pawn Verse.AI.Pawn_PathFollower::pawn
IL_01FC: callvirt virtual Verse.Map Verse.Thing::get_Map()
IL_0201: ldfld Verse.ThingGrid Verse.Map::thingGrid
IL_0206: ldarg.0
IL_0207: ldfld Verse.IntVec3 Verse.AI.Pawn_PathFollower::lastCell
IL_020C: callvirt RimWorld.Building_Door Verse.ThingGrid::ThingAt(Verse.IntVec3
c)
IL_0211: stloc.2
IL_0212: ldloc.2
IL_0213: brfalse => Label15
IL_0218: ldarg.0
IL_0219: ldfld Verse.Pawn Verse.AI.Pawn_PathFollower::pawn
IL_021E: ldloc.2
IL_021F: call static System.Boolean
RimWorld.GenHostility::HostileTo(Verse.Thing a, Verse.Thing b)
IL_0224: brtrue => Label16
IL_0229: ldloc.2
IL_022A: ldarg.0
IL_022B: ldfld Verse.Pawn Verse.AI.Pawn_PathFollower::pawn
IL_0230: callvirt System.Void
RimWorld.Building_Door::CheckFriendlyTouched(Verse.Pawn p)
IL_0235: ldloc.2
IL_0236: callvirt System.Boolean
RimWorld.Building_Door::get_BlockedOpenMomentary()
IL_023B: brtrue => Label17
IL_0240: ldloc.2
IL_0241: callvirt System.Boolean RimWorld.Building_Door::get_HoldOpen()
IL_0246: brtrue => Label18
IL_024B: ldloc.2
IL_024C: callvirt System.Boolean RimWorld.Building_Door::get_SlowsPawns()
IL_0251: brfalse => Label19
IL_0256: ldloc.2
IL_0257: ldarg.0
IL_0258: ldfld Verse.Pawn Verse.AI.Pawn_PathFollower::pawn
IL_025D: callvirt virtual System.Boolean
RimWorld.Building_Door::PawnCanOpen(Verse.Pawn p)
IL_0262: brfalse => Label20
IL_0267: ldloc.2
IL_0268: ldarg.0
IL_0269: ldfld Verse.Pawn Verse.AI.Pawn_PathFollower::pawn
IL_026E: callvirt System.Void
RimWorld.Building_Door::StartManualCloseBy(Verse.Pawn closer)
IL_0273: br => Label30
IL_0278: Label15
IL_0278: Label16
IL_0278: Label17
IL_0278: Label18
IL_0278: Label19
IL_0278: Label20
IL_0278: ldarg.0
IL_0279: call Verse.Pawn
Verse.AI.Pawn_PathFollower::RopeeWithStretchedRopeAtNextPathCell()
IL_027E: stloc.3
IL_027F: ldloc.3
IL_0280: brfalse => Label21
IL_0285: ldc.i4.s 60
IL_0287: ldloc.3
IL_0288: call static Verse.LocalTargetInfo
Verse.LocalTargetInfo::op_Implicit(Verse.Thing t)
IL_028D: ldnull
IL_028E: newobj System.Void Verse.Stance_Cooldown::.ctor(System.Int32 ticks,
Verse.LocalTargetInfo focusTarg, Verse.Verb verb)
IL_0293: stloc.s 6 (Verse.Stance_Cooldown)
IL_0295: ldloc.s 6 (Verse.Stance_Cooldown)
IL_0297: ldc.i4.1
IL_0298: stfld System.Boolean Verse.Stance_Busy::neverAimWeapon
IL_029D: ldarg.0
IL_029E: ldfld Verse.Pawn Verse.AI.Pawn_PathFollower::pawn
IL_02A3: ldfld Verse.Pawn_StanceTracker Verse.Pawn::stances
IL_02A8: ldloc.s 6 (Verse.Stance_Cooldown)
IL_02AA: callvirt System.Void Verse.Pawn_StanceTracker::SetStance(Verse.Stance
newStance)
IL_02AF: br => Label31
IL_02B4: Label21
IL_02B4: ldarg.0
IL_02B5: call System.Boolean Verse.AI.Pawn_PathFollower::NeedNewPath()
IL_02BA: brfalse => Label22
IL_02BF: ldarg.0
IL_02C0: call System.Boolean Verse.AI.Pawn_PathFollower::TrySetNewPath()
IL_02C5: brtrue => Label23
IL_02CA: br => Label32
IL_02CF: Label22
IL_02CF: Label23
IL_02CF: ldarg.0
IL_02D0: call System.Boolean
Verse.AI.Pawn_PathFollower::AtDestinationPosition()
IL_02D5: brfalse => Label24
IL_02DA: ldarg.0
IL_02DB: call System.Void Verse.AI.Pawn_PathFollower::PatherArrived()
IL_02E0: br => Label33
IL_02E5: Label24
IL_02E5: ldarg.0
IL_02E6: call System.Void Verse.AI.Pawn_PathFollower::SetupMoveIntoNextCell()
IL_02EB: // end original
IL_02EB: Label25
IL_02EB: Label26
IL_02EB: Label27
IL_02EB: Label28
IL_02EB: Label29
IL_02EB: Label30
IL_02EB: Label31
IL_02EB: Label32
IL_02EB: Label33
IL_02EB: ldarg.0
IL_02EC: ldarg.0
IL_02ED: ldfld Verse.Pawn Verse.AI.Pawn_PathFollower::pawn
IL_02F2: call static System.Void
VFECore.PhasingPatches::UnfogEnteredCells(Verse.AI.Pawn_PathFollower __instance,
Verse.Pawn ___pawn)
IL_02F7: ret
DONE

### Patch: System.Boolean Verse.Reachability::CanReach(Verse.IntVec3 start,


Verse.LocalTargetInfo dest, Verse.AI.PathEndMode peMode, Verse.TraverseParms
traverseParams)
### Replacement: static System.Boolean
Verse.Reachability::Verse.Reachability.CanReach_Patch1(Verse.Reachability this,
Verse.IntVec3 start, Verse.LocalTargetInfo dest, Verse.AI.PathEndMode peMode,
Verse.TraverseParms traverseParams)
IL_0000: Local var 0: Verse.District
IL_0000: Local var 1: Verse.TraverseParms
IL_0000: Local var 2: Verse.Region
IL_0000: Local var 3: System.Boolean
IL_0000: Local var 4: Verse.BoolUnknown
IL_0000: Local var 5: System.Boolean
IL_0000: Local var 6: System.Boolean
IL_0000: ldc.i4 0
IL_0005: stloc 5 (System.Boolean)
IL_0009: ldc.i4 0
IL_000E: stloc 6 (System.Boolean)
IL_0012: ldc.i4.1
IL_0013: stloc 6 (System.Boolean)
IL_0017: ldloc 6 (System.Boolean)
IL_001B: brfalse => Label1
IL_0020: ldarg 4
IL_0024: ldloca 5 (System.Boolean)
IL_0028: call static System.Boolean
VFECore.PhasingPatches::AllReachable(Verse.TraverseParms traverseParams,
System.Boolean& __result)
IL_002D: stloc 6 (System.Boolean)
IL_0031: Label1
IL_0031: nop
IL_0032: ldloc 6 (System.Boolean)
IL_0036: brfalse => Label0
IL_003B: // start original
IL_003B: ldarg.0
IL_003C: ldfld System.Boolean Verse.Reachability::working
IL_0041: brfalse => Label2
IL_0046: ldstr "Called CanReach() while working. This should never happen.
Suppressing further errors."
IL_004B: ldc.i4 7312233
IL_0050: call static System.Void Verse.Log::ErrorOnce(System.String text,
System.Int32 key)
IL_0055: ldc.i4.0
IL_0056: br => Label48
IL_005B: Label2
IL_005B: ldarg.s 4
IL_005D: ldfld Verse.Pawn Verse.TraverseParms::pawn
IL_0062: brfalse => Label3
IL_0067: ldarg.s 4
IL_0069: ldfld Verse.Pawn Verse.TraverseParms::pawn
IL_006E: callvirt System.Boolean Verse.Thing::get_Spawned()
IL_0073: brtrue => Label4
IL_0078: ldc.i4.0
IL_0079: br => Label49
IL_007E: Label4
IL_007E: ldarg.s 4
IL_0080: ldfld Verse.Pawn Verse.TraverseParms::pawn
IL_0085: callvirt virtual Verse.Map Verse.Thing::get_Map()
IL_008A: ldarg.0
IL_008B: ldfld Verse.Map Verse.Reachability::map
IL_0090: beq => Label5
IL_0095: ldc.i4.6
IL_0096: newarr System.Object
IL_009B: dup
IL_009C: ldc.i4.0
IL_009D: ldstr "Called CanReach() with a pawn spawned not on this map. This
means that we can\'t check his reachability here. Pawn\'s current map should have
been used instead of this one. pawn="
IL_00A2: stelem.ref
IL_00A3: dup
IL_00A4: ldc.i4.1
IL_00A5: ldarg.s 4
IL_00A7: ldfld Verse.Pawn Verse.TraverseParms::pawn
IL_00AC: stelem.ref
IL_00AD: dup
IL_00AE: ldc.i4.2
IL_00AF: ldstr " pawn.Map="
IL_00B4: stelem.ref
IL_00B5: dup
IL_00B6: ldc.i4.3
IL_00B7: ldarg.s 4
IL_00B9: ldfld Verse.Pawn Verse.TraverseParms::pawn
IL_00BE: callvirt virtual Verse.Map Verse.Thing::get_Map()
IL_00C3: stelem.ref
IL_00C4: dup
IL_00C5: ldc.i4.4
IL_00C6: ldstr " map="
IL_00CB: stelem.ref
IL_00CC: dup
IL_00CD: ldc.i4.5
IL_00CE: ldarg.0
IL_00CF: ldfld Verse.Map Verse.Reachability::map
IL_00D4: stelem.ref
IL_00D5: call static System.String System.String::Concat(System.Object[]
args)
IL_00DA: call static System.Void Verse.Log::Error(System.String text)
IL_00DF: ldc.i4.0
IL_00E0: br => Label50
IL_00E5: Label3
IL_00E5: Label5
IL_00E5: ldarg.1
IL_00E6: ldarg.2
IL_00E7: ldarg.0
IL_00E8: ldfld Verse.Map Verse.Reachability::map
IL_00ED: ldarg.3
IL_00EE: ldarg.s 4
IL_00F0: ldfld Verse.Pawn Verse.TraverseParms::pawn
IL_00F5: call static System.Boolean
Verse.ReachabilityImmediate::CanReachImmediate(Verse.IntVec3 start,
Verse.LocalTargetInfo target, Verse.Map map, Verse.AI.PathEndMode peMode,
Verse.Pawn pawn)
IL_00FA: brfalse => Label6
IL_00FF: ldc.i4.1
IL_0100: br => Label51
IL_0105: Label6
IL_0105: ldarga.s 2
IL_0107: call System.Boolean Verse.LocalTargetInfo::get_IsValid()
IL_010C: brtrue => Label7
IL_0111: ldc.i4.0
IL_0112: br => Label52
IL_0117: Label7
IL_0117: ldarga.s 2
IL_0119: call System.Boolean Verse.LocalTargetInfo::get_HasThing()
IL_011E: brfalse => Label8
IL_0123: ldarga.s 2
IL_0125: call Verse.Thing Verse.LocalTargetInfo::get_Thing()
IL_012A: callvirt Verse.Map Verse.Thing::get_MapHeld()
IL_012F: ldarg.0
IL_0130: ldfld Verse.Map Verse.Reachability::map
IL_0135: beq => Label9
IL_013A: ldc.i4.0
IL_013B: br => Label53
IL_0140: Label8
IL_0140: Label9
IL_0140: ldarg.1
IL_0141: ldarg.0
IL_0142: ldfld Verse.Map Verse.Reachability::map
IL_0147: call static System.Boolean Verse.GenGrid::InBounds(Verse.IntVec3 c,
Verse.Map map)
IL_014C: brfalse => Label10
IL_0151: ldarga.s 2
IL_0153: call Verse.IntVec3 Verse.LocalTargetInfo::get_Cell()
IL_0158: ldarg.0
IL_0159: ldfld Verse.Map Verse.Reachability::map
IL_015E: call static System.Boolean Verse.GenGrid::InBounds(Verse.IntVec3 c,
Verse.Map map)
IL_0163: brtrue => Label11
IL_0168: Label10
IL_0168: ldc.i4.0
IL_0169: br => Label54
IL_016E: Label11
IL_016E: ldarg.3
IL_016F: ldc.i4.1
IL_0170: beq => Label12
IL_0175: ldarg.3
IL_0176: ldc.i4.2
IL_0177: beq => Label13
IL_017C: ldarg.3
IL_017D: ldc.i4.3
IL_017E: bne.un => Label14
IL_0183: Label12
IL_0183: Label13
IL_0183: ldarg.s 4
IL_0185: ldfld Verse.TraverseMode Verse.TraverseParms::mode
IL_018A: ldc.i4.4
IL_018B: beq => Label15
IL_0190: ldarg.s 4
IL_0192: ldfld Verse.TraverseMode Verse.TraverseParms::mode
IL_0197: ldc.i4.5
IL_0198: beq => Label16
IL_019D: ldarg.1
IL_019E: ldarg.0
IL_019F: ldfld Verse.Map Verse.Reachability::map
IL_01A4: ldc.i4.s 14
IL_01A6: call static Verse.District
Verse.RegionAndRoomQuery::DistirctAtFast(Verse.IntVec3 c, Verse.Map map,
Verse.RegionType allowedRegionTypes)
IL_01AB: stloc.0
IL_01AC: ldloc.0
IL_01AD: brfalse => Label17
IL_01B2: ldloc.0
IL_01B3: ldarga.s 2
IL_01B5: call Verse.IntVec3 Verse.LocalTargetInfo::get_Cell()
IL_01BA: ldarg.0
IL_01BB: ldfld Verse.Map Verse.Reachability::map
IL_01C0: ldc.i4.s 14
IL_01C2: call static Verse.District
Verse.RegionAndRoomQuery::DistirctAtFast(Verse.IntVec3 c, Verse.Map map,
Verse.RegionType allowedRegionTypes)
IL_01C7: bne.un => Label18
IL_01CC: ldc.i4.1
IL_01CD: br => Label55
IL_01D2: Label14
IL_01D2: Label15
IL_01D2: Label16
IL_01D2: Label17
IL_01D2: Label18
IL_01D2: ldarg.s 4
IL_01D4: ldfld Verse.TraverseMode Verse.TraverseParms::mode
IL_01D9: ldc.i4.3
IL_01DA: bne.un => Label19
IL_01DF: ldarg.s 4
IL_01E1: stloc.1
IL_01E2: ldloca.s 1 (Verse.TraverseParms)
IL_01E4: ldc.i4.1
IL_01E5: stfld Verse.TraverseMode Verse.TraverseParms::mode
IL_01EA: ldarg.0
IL_01EB: ldarg.1
IL_01EC: ldarg.2
IL_01ED: ldarg.3
IL_01EE: ldloc.1
IL_01EF: call System.Boolean Verse.Reachability::CanReach(Verse.IntVec3
start, Verse.LocalTargetInfo dest, Verse.AI.PathEndMode peMode, Verse.TraverseParms
traverseParams)
IL_01F4: brfalse => Label20
IL_01F9: ldc.i4.1
IL_01FA: br => Label56
IL_01FF: Label19
IL_01FF: Label20
IL_01FF: ldarg.s 4
IL_0201: ldfld Verse.Pawn Verse.TraverseParms::pawn
IL_0206: ldarga.s 2
IL_0208: ldarg.0
IL_0209: ldfld Verse.Map Verse.Reachability::map
IL_020E: call Verse.TargetInfo Verse.LocalTargetInfo::ToTargetInfo(Verse.Map
map)
IL_0213: ldarga.s 3
IL_0215: call static Verse.TargetInfo
Verse.AI.GenPath::ResolvePathMode(Verse.Pawn pawn, Verse.TargetInfo dest,
Verse.AI.PathEndMode& peMode)
IL_021A: call static Verse.LocalTargetInfo
Verse.TargetInfo::op_Explicit(Verse.TargetInfo t)
IL_021F: starg.s 2
IL_0221: ldarg.0
IL_0222: ldc.i4.1
IL_0223: stfld System.Boolean Verse.Reachability::working
.try
{
IL_0228: ldarg.0
IL_0229: ldarg.0
IL_022A: ldfld Verse.Map Verse.Reachability::map
IL_022F: ldfld Verse.AI.Pathing Verse.Map::pathing
IL_0234: ldarg.s 4
IL_0236: callvirt Verse.AI.PathingContext
Verse.AI.Pathing::For(Verse.TraverseParms parms)
IL_023B: ldfld Verse.AI.PathGrid Verse.AI.PathingContext::pathGrid
IL_0240: stfld Verse.AI.PathGrid Verse.Reachability::pathGrid
IL_0245: ldarg.0
IL_0246: ldarg.0
IL_0247: ldfld Verse.Map Verse.Reachability::map
IL_024C: ldfld Verse.RegionGrid Verse.Map::regionGrid
IL_0251: stfld Verse.RegionGrid Verse.Reachability::regionGrid
IL_0256: ldarg.0
IL_0257: ldarg.0
IL_0258: ldfld System.UInt32 Verse.Reachability::reachedIndex
IL_025D: ldc.i4.1
IL_025E: add
IL_025F: stfld System.UInt32 Verse.Reachability::reachedIndex
IL_0264: ldarg.0
IL_0265: ldfld System.Collections.Generic.List`1<Verse.Region>
Verse.Reachability::destRegions
IL_026A: callvirt virtual System.Void
System.Collections.Generic.List`1<Verse.Region>::Clear()
IL_026F: ldarg.3
IL_0270: ldc.i4.1
IL_0271: bne.un => Label21
IL_0276: ldarga.s 2
IL_0278: call Verse.IntVec3 Verse.LocalTargetInfo::get_Cell()
IL_027D: ldarg.0
IL_027E: ldfld Verse.Map Verse.Reachability::map
IL_0283: ldc.i4.s 14
IL_0285: call static Verse.Region
Verse.GridsUtility::GetRegion(Verse.IntVec3 loc, Verse.Map map, Verse.RegionType
allowedRegionTypes)
IL_028A: stloc.2
IL_028B: ldloc.2
IL_028C: brfalse => Label22
IL_0291: ldloc.2
IL_0292: ldarg.s 4
IL_0294: ldc.i4.1
IL_0295: callvirt System.Boolean Verse.Region::Allows(Verse.TraverseParms
tp, System.Boolean isDestination)
IL_029A: brfalse => Label23
IL_029F: ldarg.0
IL_02A0: ldfld System.Collections.Generic.List`1<Verse.Region>
Verse.Reachability::destRegions
IL_02A5: ldloc.2
IL_02A6: callvirt virtual System.Void
System.Collections.Generic.List`1<Verse.Region>::Add(Verse.Region item)
IL_02AB: br => Label24
IL_02B0: Label21
IL_02B0: ldarg.3
IL_02B1: ldc.i4.2
IL_02B2: bne.un => Label25
IL_02B7: ldarg.2
IL_02B8: ldarg.s 4
IL_02BA: ldarg.0
IL_02BB: ldfld Verse.Map Verse.Reachability::map
IL_02C0: ldarg.0
IL_02C1: ldfld System.Collections.Generic.List`1<Verse.Region>
Verse.Reachability::destRegions
IL_02C6: call static System.Void
Verse.AI.TouchPathEndModeUtility::AddAllowedAdjacentRegions(Verse.LocalTargetInfo
dest, Verse.TraverseParms traverseParams, Verse.Map map,
System.Collections.Generic.List`1<Verse.Region> regions)
IL_02CB: Label22
IL_02CB: Label23
IL_02CB: Label24
IL_02CB: Label25
IL_02CB: ldarg.0
IL_02CC: ldfld System.Collections.Generic.List`1<Verse.Region>
Verse.Reachability::destRegions
IL_02D1: callvirt virtual System.Int32
System.Collections.Generic.List`1<Verse.Region>::get_Count()
IL_02D6: brtrue => Label26
IL_02DB: ldarg.s 4
IL_02DD: ldfld Verse.TraverseMode Verse.TraverseParms::mode
IL_02E2: ldc.i4.3
IL_02E3: beq => Label27
IL_02E8: ldarg.s 4
IL_02EA: ldfld Verse.TraverseMode Verse.TraverseParms::mode
IL_02EF: ldc.i4.5
IL_02F0: beq => Label28
IL_02F5: ldarg.0
IL_02F6: call System.Void Verse.Reachability::FinalizeCheck()
IL_02FB: ldc.i4.0
IL_02FC: stloc.3
IL_02FD: leave => Label29
IL_0302: Label26
IL_0302: Label27
IL_0302: Label28
IL_0302: ldarg.0
IL_0303: ldfld System.Collections.Generic.List`1<Verse.Region>
Verse.Reachability::destRegions
IL_0308: ldnull
IL_0309: call static System.Void
Verse.GenList::RemoveDuplicates(System.Collections.Generic.List`1<Verse.Region>
list, System.Func`3<Verse.Region, Verse.Region, System.Boolean> comparer)
IL_030E: ldarg.0
IL_030F: ldfld System.Collections.Generic.Queue`1<Verse.Region>
Verse.Reachability::openQueue
IL_0314: callvirt System.Void
System.Collections.Generic.Queue`1<Verse.Region>::Clear()
IL_0319: ldarg.0
IL_031A: ldc.i4.0
IL_031B: stfld System.Int32 Verse.Reachability::numRegionsOpened
IL_0320: ldarg.0
IL_0321: ldarg.1
IL_0322: call System.Void
Verse.Reachability::DetermineStartRegions(Verse.IntVec3 start)
IL_0327: ldarg.0
IL_0328: ldfld System.Collections.Generic.Queue`1<Verse.Region>
Verse.Reachability::openQueue
IL_032D: callvirt virtual System.Int32
System.Collections.Generic.Queue`1<Verse.Region>::get_Count()
IL_0332: brtrue => Label30
IL_0337: ldarg.s 4
IL_0339: ldfld Verse.TraverseMode Verse.TraverseParms::mode
IL_033E: ldc.i4.3
IL_033F: beq => Label31
IL_0344: ldarg.s 4
IL_0346: ldfld Verse.TraverseMode Verse.TraverseParms::mode
IL_034B: ldc.i4.5
IL_034C: beq => Label32
IL_0351: ldarg.0
IL_0352: call System.Void Verse.Reachability::FinalizeCheck()
IL_0357: ldc.i4.0
IL_0358: stloc.3
IL_0359: leave => Label33
IL_035E: Label30
IL_035E: Label31
IL_035E: Label32
IL_035E: ldarg.0
IL_035F: ldfld System.Collections.Generic.List`1<Verse.Region>
Verse.Reachability::startingRegions
IL_0364: call static System.Boolean
Verse.GenCollection::Any(System.Collections.Generic.List`1<Verse.Region> list)
IL_0369: brfalse => Label34
IL_036E: ldarg.0
IL_036F: ldfld System.Collections.Generic.List`1<Verse.Region>
Verse.Reachability::destRegions
IL_0374: call static System.Boolean
Verse.GenCollection::Any(System.Collections.Generic.List`1<Verse.Region> list)
IL_0379: brfalse => Label35
IL_037E: ldarg.0
IL_037F: ldarg.s 4
IL_0381: ldfld Verse.TraverseMode Verse.TraverseParms::mode
IL_0386: call System.Boolean
Verse.Reachability::CanUseCache(Verse.TraverseMode mode)
IL_038B: brfalse => Label36
IL_0390: ldarg.0
IL_0391: ldarg.s 4
IL_0393: call Verse.BoolUnknown
Verse.Reachability::GetCachedResult(Verse.TraverseParms traverseParams)
IL_0398: stloc.s 4 (Verse.BoolUnknown)
IL_039A: ldloc.s 4 (Verse.BoolUnknown)
IL_039C: switch => Labels37,38,39
IL_03AD: br => Label40
IL_03B2: Label37
IL_03B2: ldarg.0
IL_03B3: call System.Void Verse.Reachability::FinalizeCheck()
IL_03B8: ldc.i4.1
IL_03B9: stloc.3
IL_03BA: leave => Label41
IL_03BF: Label38
IL_03BF: ldarg.0
IL_03C0: call System.Void Verse.Reachability::FinalizeCheck()
IL_03C5: ldc.i4.0
IL_03C6: stloc.3
IL_03C7: leave => Label42
IL_03CC: Label34
IL_03CC: Label35
IL_03CC: Label36
IL_03CC: Label39
IL_03CC: Label40
IL_03CC: ldarg.s 4
IL_03CE: ldfld Verse.TraverseMode Verse.TraverseParms::mode
IL_03D3: ldc.i4.3
IL_03D4: beq => Label43
IL_03D9: ldarg.s 4
IL_03DB: ldfld Verse.TraverseMode Verse.TraverseParms::mode
IL_03E0: ldc.i4.5
IL_03E1: beq => Label44
IL_03E6: ldarg.s 4
IL_03E8: ldfld Verse.TraverseMode Verse.TraverseParms::mode
IL_03ED: ldc.i4.4
IL_03EE: bne.un => Label45
IL_03F3: Label43
IL_03F3: Label44
IL_03F3: ldarg.0
IL_03F4: ldarg.1
IL_03F5: ldarg.2
IL_03F6: ldarg.3
IL_03F7: ldarg.s 4
IL_03F9: call System.Boolean
Verse.Reachability::CheckCellBasedReachability(Verse.IntVec3 start,
Verse.LocalTargetInfo dest, Verse.AI.PathEndMode peMode, Verse.TraverseParms
traverseParams)
IL_03FE: ldarg.0
IL_03FF: call System.Void Verse.Reachability::FinalizeCheck()
IL_0404: stloc.3
IL_0405: leave => Label46
IL_040A: Label45
IL_040A: ldarg.0
IL_040B: ldarg.s 4
IL_040D: call System.Boolean
Verse.Reachability::CheckRegionBasedReachability(Verse.TraverseParms
traverseParams)
IL_0412: ldarg.0
IL_0413: call System.Void Verse.Reachability::FinalizeCheck()
IL_0418: stloc.3
IL_0419: leave => Label47
IL_041E: leave => (autogenerated)
} // end try
.finally
{
IL_0423: ldarg.0
IL_0424: ldc.i4.0
IL_0425: stfld System.Boolean Verse.Reachability::working
IL_042A: endfinally
IL_042B: leave => (autogenerated)
} // end handler
IL_042C: Label29
IL_042C: Label33
IL_042C: Label41
IL_042C: Label42
IL_042C: Label46
IL_042C: Label47
IL_042C: ldloc.3
IL_042D: // end original
IL_042D: Label48
IL_042D: Label49
IL_042D: Label50
IL_042D: Label51
IL_042D: Label52
IL_042D: Label53
IL_042D: Label54
IL_042D: Label55
IL_042D: Label56
IL_042D: stloc 5 (System.Boolean)
IL_0431: Label0
IL_0431: ldloc 5 (System.Boolean)
IL_0435: ret
DONE

### Patch: System.Void Verse.AI.Pawn_PathFollower::StartPath(Verse.LocalTargetInfo


dest, Verse.AI.PathEndMode peMode)
### Replacement: static System.Void
Verse.AI.Pawn_PathFollower::Verse.AI.Pawn_PathFollower.StartPath_Patch2(Verse.AI.Pa
wn_PathFollower this, Verse.LocalTargetInfo dest, Verse.AI.PathEndMode peMode)
IL_0000: Local var 0:
Verse.PawnDestinationReservationManager/PawnDestinationReservation
IL_0000: Local var 1: System.Boolean
IL_0000: ldc.i4 0
IL_0005: stloc 1 (System.Boolean)
IL_0009: ldc.i4.1
IL_000A: stloc 1 (System.Boolean)
IL_000E: ldloc 1 (System.Boolean)
IL_0012: brfalse => Label1
IL_0017: ldarg.0
IL_0018: ldfld Verse.Pawn Verse.AI.Pawn_PathFollower::pawn
IL_001D: call static System.Void
VFECore.PhasingPatches::StartPath_Prefix(Verse.Pawn ___pawn)
IL_0022: Label1
IL_0022: nop
IL_0023: ldloc 1 (System.Boolean)
IL_0027: brfalse => Label0
IL_002C: // start original
IL_002C: ldarg.0
IL_002D: ldfld Verse.Pawn Verse.AI.Pawn_PathFollower::pawn
IL_0032: ldarga.s 1
IL_0034: ldarg.0
IL_0035: ldfld Verse.Pawn Verse.AI.Pawn_PathFollower::pawn
IL_003A: callvirt virtual Verse.Map Verse.Thing::get_Map()
IL_003F: call Verse.TargetInfo Verse.LocalTargetInfo::ToTargetInfo(Verse.Map
map)
IL_0044: ldarga.s 2
IL_0046: call static Verse.TargetInfo
Verse.AI.GenPath::ResolvePathMode(Verse.Pawn pawn, Verse.TargetInfo dest,
Verse.AI.PathEndMode& peMode)
IL_004B: call static Verse.LocalTargetInfo
Verse.TargetInfo::op_Explicit(Verse.TargetInfo t)
IL_0050: starg.s 1
IL_0052: ldarga.s 1
IL_0054: call System.Boolean Verse.LocalTargetInfo::get_HasThing()
IL_0059: brfalse => Label2
IL_005E: ldarga.s 1
IL_0060: call System.Boolean Verse.LocalTargetInfo::get_ThingDestroyed()
IL_0065: brfalse => Label3
IL_006A: ldc.i4.5
IL_006B: newarr System.Object
IL_0070: dup
IL_0071: ldc.i4.0
IL_0072: ldarg.0
IL_0073: ldfld Verse.Pawn Verse.AI.Pawn_PathFollower::pawn
IL_0078: stelem.ref
IL_0079: dup
IL_007A: ldc.i4.1
IL_007B: ldstr " pathing to destroyed thing "
IL_0080: stelem.ref
IL_0081: dup
IL_0082: ldc.i4.2
IL_0083: ldarga.s 1
IL_0085: call Verse.Thing Verse.LocalTargetInfo::get_Thing()
IL_008A: stelem.ref
IL_008B: dup
IL_008C: ldc.i4.3
IL_008D: ldstr " curJob="
IL_0092: stelem.ref
IL_0093: dup
IL_0094: ldc.i4.4
IL_0095: ldarg.0
IL_0096: ldfld Verse.Pawn Verse.AI.Pawn_PathFollower::pawn
IL_009B: callvirt Verse.AI.Job Verse.Pawn::get_CurJob()
IL_00A0: call static System.String Verse.Gen::ToStringSafe(Verse.AI.Job obj)
IL_00A5: stelem.ref
IL_00A6: call static System.String System.String::Concat(System.Object[]
args)
IL_00AB: call static System.Void Verse.Log::Error(System.String text)
IL_00B0: ldarg.0
IL_00B1: call System.Void Verse.AI.Pawn_PathFollower::PatherFailed()
IL_00B6: br => Label22
IL_00BB: Label2
IL_00BB: Label3
IL_00BB: ldarg.0
IL_00BC: ldarg.0
IL_00BD: ldfld Verse.Pawn Verse.AI.Pawn_PathFollower::pawn
IL_00C2: callvirt virtual Verse.IntVec3 Verse.Thing::get_Position()
IL_00C7: call System.Boolean
Verse.AI.Pawn_PathFollower::PawnCanOccupy(Verse.IntVec3 c)
IL_00CC: brtrue => Label4
IL_00D1: ldarg.0
IL_00D2: ldc.i4.1
IL_00D3: call System.Boolean
Verse.AI.Pawn_PathFollower::TryRecoverFromUnwalkablePosition(System.Boolean error)
IL_00D8: brtrue => Label5
IL_00DD: br => Label23
IL_00E2: Label4
IL_00E2: Label5
IL_00E2: ldarg.0
IL_00E3: ldfld System.Boolean Verse.AI.Pawn_PathFollower::moving
IL_00E8: brfalse => Label6
IL_00ED: ldarg.0
IL_00EE: ldfld Verse.AI.PawnPath Verse.AI.Pawn_PathFollower::curPath
IL_00F3: brfalse => Label7
IL_00F8: ldarg.0
IL_00F9: ldfld Verse.LocalTargetInfo Verse.AI.Pawn_PathFollower::destination
IL_00FE: ldarg.1
IL_00FF: call static System.Boolean
Verse.LocalTargetInfo::op_Equality(Verse.LocalTargetInfo a, Verse.LocalTargetInfo
b)
IL_0104: brfalse => Label8
IL_0109: ldarg.0
IL_010A: ldfld Verse.AI.PathEndMode Verse.AI.Pawn_PathFollower::peMode
IL_010F: ldarg.2
IL_0110: bne.un => Label9
IL_0115: br => Label24
IL_011A: Label6
IL_011A: Label7
IL_011A: Label8
IL_011A: Label9
IL_011A: ldarg.0
IL_011B: ldfld Verse.Pawn Verse.AI.Pawn_PathFollower::pawn
IL_0120: callvirt virtual Verse.Map Verse.Thing::get_Map()
IL_0125: ldfld Verse.Reachability Verse.Map::reachability
IL_012A: ldarg.0
IL_012B: ldfld Verse.Pawn Verse.AI.Pawn_PathFollower::pawn
IL_0130: callvirt virtual Verse.IntVec3 Verse.Thing::get_Position()
IL_0135: ldarg.1
IL_0136: ldarg.2
IL_0137: ldc.i4.1
IL_0138: ldc.i4.3
IL_0139: ldc.i4.0
IL_013A: ldc.i4.0
IL_013B: ldc.i4.0
IL_013C: call static Verse.TraverseParms
Verse.TraverseParms::For(Verse.TraverseMode mode, Verse.Danger maxDanger,
System.Boolean canBashDoors, System.Boolean alwaysUseAvoidGrid, System.Boolean
canBashFences)
IL_0141: callvirt System.Boolean Verse.Reachability::CanReach(Verse.IntVec3
start, Verse.LocalTargetInfo dest, Verse.AI.PathEndMode peMode, Verse.TraverseParms
traverseParams)
IL_0146: brtrue => Label10
IL_014B: ldarg.0
IL_014C: call System.Void Verse.AI.Pawn_PathFollower::PatherFailed()
IL_0151: br => Label25
IL_0156: Label10
IL_0156: ldarg.0
IL_0157: ldarg.2
IL_0158: stfld Verse.AI.PathEndMode Verse.AI.Pawn_PathFollower::peMode
IL_015D: ldarg.0
IL_015E: ldarg.1
IL_015F: stfld Verse.LocalTargetInfo Verse.AI.Pawn_PathFollower::destination
IL_0164: ldarg.0
IL_0165: call System.Boolean Verse.AI.Pawn_PathFollower::IsNextCellWalkable()
IL_016A: brfalse => Label11
IL_016F: ldarg.0
IL_0170: call RimWorld.Building_Door
Verse.AI.Pawn_PathFollower::NextCellDoorToWaitForOrManuallyOpen()
IL_0175: brtrue => Label12
IL_017A: ldarg.0
IL_017B: ldfld System.Single Verse.AI.Pawn_PathFollower::nextCellCostLeft
IL_0180: ldarg.0
IL_0181: ldfld System.Single Verse.AI.Pawn_PathFollower::nextCellCostTotal
IL_0186: bne.un => Label13
IL_018B: Label11
IL_018B: Label12
IL_018B: ldarg.0
IL_018C: call System.Void
Verse.AI.Pawn_PathFollower::ResetToCurrentPosition()
IL_0191: Label13
IL_0191: ldarg.0
IL_0192: ldfld Verse.Pawn Verse.AI.Pawn_PathFollower::pawn
IL_0197: callvirt virtual Verse.Map Verse.Thing::get_Map()
IL_019C: ldfld Verse.PawnDestinationReservationManager
Verse.Map::pawnDestinationReservationManager
IL_01A1: ldarg.0
IL_01A2: ldfld Verse.Pawn Verse.AI.Pawn_PathFollower::pawn
IL_01A7: callvirt Verse.PawnDestinationReservation
Verse.PawnDestinationReservationManager::MostRecentReservationFor(Verse.Pawn p)
IL_01AC: stloc.0
IL_01AD: ldloc.0
IL_01AE: brfalse => Label14
IL_01B3: ldarg.0
IL_01B4: ldflda Verse.LocalTargetInfo Verse.AI.Pawn_PathFollower::destination
IL_01B9: call System.Boolean Verse.LocalTargetInfo::get_HasThing()
IL_01BE: brfalse => Label15
IL_01C3: ldloc.0
IL_01C4: ldfld Verse.IntVec3 Verse.PawnDestinationReservation::target
IL_01C9: ldarg.0
IL_01CA: ldflda Verse.LocalTargetInfo Verse.AI.Pawn_PathFollower::destination
IL_01CF: call Verse.IntVec3 Verse.LocalTargetInfo::get_Cell()
IL_01D4: call static System.Boolean
Verse.IntVec3::op_Inequality(Verse.IntVec3 a, Verse.IntVec3 b)
IL_01D9: brtrue => Label16
IL_01DE: Label15
IL_01DE: ldloc.0
IL_01DF: ldfld Verse.AI.Job Verse.PawnDestinationReservation::job
IL_01E4: ldarg.0
IL_01E5: ldfld Verse.Pawn Verse.AI.Pawn_PathFollower::pawn
IL_01EA: callvirt Verse.AI.Job Verse.Pawn::get_CurJob()
IL_01EF: beq => Label17
IL_01F4: ldloc.0
IL_01F5: ldfld Verse.IntVec3 Verse.PawnDestinationReservation::target
IL_01FA: ldarg.0
IL_01FB: ldflda Verse.LocalTargetInfo Verse.AI.Pawn_PathFollower::destination
IL_0200: call Verse.IntVec3 Verse.LocalTargetInfo::get_Cell()
IL_0205: call static System.Boolean
Verse.IntVec3::op_Inequality(Verse.IntVec3 a, Verse.IntVec3 b)
IL_020A: brfalse => Label18
IL_020F: Label16
IL_020F: ldarg.0
IL_0210: ldfld Verse.Pawn Verse.AI.Pawn_PathFollower::pawn
IL_0215: callvirt virtual Verse.Map Verse.Thing::get_Map()
IL_021A: ldfld Verse.PawnDestinationReservationManager
Verse.Map::pawnDestinationReservationManager
IL_021F: ldarg.0
IL_0220: ldfld Verse.Pawn Verse.AI.Pawn_PathFollower::pawn
IL_0225: callvirt System.Void
Verse.PawnDestinationReservationManager::ObsoleteAllClaimedBy(Verse.Pawn p)
IL_022A: Label14
IL_022A: Label17
IL_022A: Label18
IL_022A: ldarg.0
IL_022B: call System.Boolean
Verse.AI.Pawn_PathFollower::AtDestinationPosition()
IL_0230: brfalse => Label19
IL_0235: ldarg.0
IL_0236: call System.Void Verse.AI.Pawn_PathFollower::PatherArrived()
IL_023B: br => Label26
IL_0240: Label19
IL_0240: ldarg.0
IL_0241: ldfld Verse.Pawn Verse.AI.Pawn_PathFollower::pawn
IL_0246: callvirt System.Boolean Verse.Pawn::get_Downed()
IL_024B: brfalse => Label20
IL_0250: ldarg.0
IL_0251: ldfld Verse.Pawn Verse.AI.Pawn_PathFollower::pawn
IL_0256: callvirt abstract virtual System.String Verse.Entity::get_LabelCap()
IL_025B: ldstr " tried to path while downed. This should never happen.
curJob="
IL_0260: ldarg.0
IL_0261: ldfld Verse.Pawn Verse.AI.Pawn_PathFollower::pawn
IL_0266: callvirt Verse.AI.Job Verse.Pawn::get_CurJob()
IL_026B: call static System.String Verse.Gen::ToStringSafe(Verse.AI.Job obj)
IL_0270: call static System.String System.String::Concat(System.String str0,
System.String str1, System.String str2)
IL_0275: call static System.Void Verse.Log::Error(System.String text)
IL_027A: ldarg.0
IL_027B: call System.Void Verse.AI.Pawn_PathFollower::PatherFailed()
IL_0280: br => Label27
IL_0285: Label20
IL_0285: ldarg.0
IL_0286: ldfld Verse.AI.PawnPath Verse.AI.Pawn_PathFollower::curPath
IL_028B: brfalse => Label21
IL_0290: ldarg.0
IL_0291: ldfld Verse.AI.PawnPath Verse.AI.Pawn_PathFollower::curPath
IL_0296: callvirt System.Void Verse.AI.PawnPath::ReleaseToPool()
IL_029B: Label21
IL_029B: ldarg.0
IL_029C: ldnull
IL_029D: stfld Verse.AI.PawnPath Verse.AI.Pawn_PathFollower::curPath
IL_02A2: ldarg.0
IL_02A3: ldc.i4.1
IL_02A4: stfld System.Boolean Verse.AI.Pawn_PathFollower::moving
IL_02A9: ldarg.0
IL_02AA: ldfld Verse.Pawn Verse.AI.Pawn_PathFollower::pawn
IL_02AF: ldfld Verse.AI.Pawn_JobTracker Verse.Pawn::jobs
IL_02B4: ldc.i4.0
IL_02B5: stfld RimWorld.PawnPosture Verse.AI.Pawn_JobTracker::posture
IL_02BA: // end original
IL_02BA: Label22
IL_02BA: Label23
IL_02BA: Label24
IL_02BA: Label25
IL_02BA: Label26
IL_02BA: Label27
IL_02BA: Label0
IL_02BA: call static System.Void VFECore.PhasingPatches::StartPath_Postfix()
IL_02BF: ret
DONE

### Patch: virtual System.Void Verse.Pawn::SpawnSetup(Verse.Map map, System.Boolean


respawningAfterLoad)
### Replacement: static System.Void
Verse.Pawn::Verse.Pawn.SpawnSetup_Patch4(Verse.Pawn this, Verse.Map map,
System.Boolean respawningAfterLoad)
IL_0000: Local var 0: System.Exception
IL_0000: Local var 1: System.Int32
IL_0000: // start original
IL_0000: ldarg.0
IL_0001: call System.Boolean Verse.Pawn::get_Dead()
IL_0006: brfalse => Label0
IL_000B: ldstr "Tried to spawn Dead Pawn "
IL_0010: ldarg.0
IL_0011: call static System.String Verse.Gen::ToStringSafe(Verse.Pawn obj)
IL_0016: ldstr ". Replacing with corpse."
IL_001B: call static System.String System.String::Concat(System.String str0,
System.String str1, System.String str2)
IL_0020: call static System.Void Verse.Log::Warning(System.String text)
IL_0025: ldarg.0
IL_0026: call Verse.RaceProperties Verse.Pawn::get_RaceProps()
IL_002B: ldfld Verse.ThingDef Verse.RaceProperties::corpseDef
IL_0030: ldnull
IL_0031: call static Verse.Thing Verse.ThingMaker::MakeThing(Verse.ThingDef
def, Verse.ThingDef stuff)
IL_0036: castclass Verse.Corpse
IL_003B: dup
IL_003C: ldarg.0
IL_003D: callvirt System.Void Verse.Corpse::set_InnerPawn(Verse.Pawn value)
IL_0042: ldarg.0
IL_0043: call virtual Verse.IntVec3 Verse.Thing::get_Position()
IL_0048: ldarg.1
IL_0049: ldc.i4.0
IL_004A: call static Verse.Thing Verse.GenSpawn::Spawn(Verse.Thing newThing,
Verse.IntVec3 loc, Verse.Map map, Verse.WipeMode wipeMode)
IL_004F: pop
IL_0050: br => Label24
IL_0055: Label0
IL_0055: ldarg.0
IL_0056: ldfld Verse.ThingDef Verse.Thing::def
IL_005B: brfalse => Label1
IL_0060: ldarg.0
IL_0061: ldfld Verse.PawnKindDef Verse.Pawn::kindDef
IL_0066: brtrue => Label2
IL_006B: Label1
IL_006B: ldstr "Tried to spawn pawn without def "
IL_0070: ldarg.0
IL_0071: call static System.String Verse.Gen::ToStringSafe(Verse.Pawn obj)
IL_0076: ldstr "."
IL_007B: call static System.String System.String::Concat(System.String str0,
System.String str1, System.String str2)
IL_0080: call static System.Void Verse.Log::Warning(System.String text)
IL_0085: br => Label25
IL_008A: Label2
IL_008A: ldarg.0
IL_008B: ldarg.1
IL_008C: ldarg.2
IL_008D: call virtual System.Void Verse.ThingWithComps::SpawnSetup(Verse.Map
map, System.Boolean respawningAfterLoad)
IL_0092: call static RimWorld.Planet.WorldPawns Verse.Find::get_WorldPawns()
IL_0097: ldarg.0
IL_0098: callvirt System.Boolean RimWorld.Planet.WorldPawns::Contains(Verse.Pawn
p)
IL_009D: brfalse => Label3
IL_00A2: call static RimWorld.Planet.WorldPawns Verse.Find::get_WorldPawns()
IL_00A7: ldarg.0
IL_00A8: callvirt System.Void RimWorld.Planet.WorldPawns::RemovePawn(Verse.Pawn
p)
IL_00AD: Label3
IL_00AD: ldarg.0
IL_00AE: call static System.Void
RimWorld.PawnComponentsUtility::AddComponentsForSpawn(Verse.Pawn pawn)
IL_00B3: ldarg.0
IL_00B4: call static System.Boolean
RimWorld.PawnUtility::InValidState(Verse.Pawn p)
IL_00B9: brtrue => Label4
IL_00BE: ldstr "Pawn "
IL_00C3: ldarg.0
IL_00C4: call static System.String Verse.Gen::ToStringSafe(Verse.Pawn obj)
IL_00C9: ldstr " spawned in invalid state. Destroying..."
IL_00CE: call static System.String System.String::Concat(System.String str0,
System.String str1, System.String str2)
IL_00D3: call static System.Void Verse.Log::Error(System.String text)
.try
{
IL_00D8: ldarg.0
IL_00D9: ldc.i4.0
IL_00DA: callvirt abstract virtual System.Void
Verse.Entity::DeSpawn(Verse.DestroyMode mode)
IL_00DF: leave => Label5
IL_00E4: leave => (autogenerated)
} // end try
.catch System.Exception
{
IL_00E9: stloc.0
IL_00EA: ldc.i4.4
IL_00EB: newarr System.Object
IL_00F0: dup
IL_00F1: ldc.i4.0
IL_00F2: ldstr "Tried to despawn "
IL_00F7: stelem.ref
IL_00F8: dup
IL_00F9: ldc.i4.1
IL_00FA: ldarg.0
IL_00FB: call static System.String Verse.Gen::ToStringSafe(Verse.Pawn
obj)
IL_0100: stelem.ref
IL_0101: dup
IL_0102: ldc.i4.2
IL_0103: ldstr " because of the previous error but couldn\'t: "
IL_0108: stelem.ref
IL_0109: dup
IL_010A: ldc.i4.3
IL_010B: ldloc.0
IL_010C: stelem.ref
IL_010D: call static System.String
System.String::Concat(System.Object[] args)
IL_0112: call static System.Void Verse.Log::Error(System.String text)
IL_0117: leave => Label6
IL_011C: leave => (autogenerated)
} // end handler
IL_0121: Label5
IL_0121: Label6
IL_0121: call static RimWorld.Planet.WorldPawns Verse.Find::get_WorldPawns()
IL_0126: ldarg.0
IL_0127: ldc.i4.2
IL_0128: callvirt System.Void RimWorld.Planet.WorldPawns::PassToWorld(Verse.Pawn
pawn, RimWorld.Planet.PawnDiscardDecideMode discardMode)
IL_012D: br => Label30
IL_0132: Label4
IL_0132: ldarg.0
IL_0133: call Verse.Pawn_DrawTracker Verse.Pawn::get_Drawer()
IL_0138: callvirt System.Void Verse.Pawn_DrawTracker::Notify_Spawned()
IL_013D: ldarg.0
IL_013E: ldfld Verse.Pawn_RotationTracker Verse.Pawn::rotationTracker
IL_0143: callvirt System.Void Verse.Pawn_RotationTracker::Notify_Spawned()
IL_0148: ldarg.2
IL_0149: brtrue => Label7
IL_014E: ldarg.0
IL_014F: ldfld Verse.AI.Pawn_PathFollower Verse.Pawn::pather
IL_0154: callvirt System.Void
Verse.AI.Pawn_PathFollower::ResetToCurrentPosition()
IL_0159: Label7
IL_0159: ldarg.0
IL_015A: call virtual Verse.Map Verse.Thing::get_Map()
IL_015F: ldfld Verse.MapPawns Verse.Map::mapPawns
IL_0164: ldarg.0
IL_0165: callvirt System.Void Verse.MapPawns::RegisterPawn(Verse.Pawn p)
IL_016A: ldarg.0
IL_016B: call virtual Verse.Map Verse.Thing::get_Map()
IL_0170: ldfld Verse.AutoSlaughterManager Verse.Map::autoSlaughterManager
IL_0175: callvirt System.Void Verse.AutoSlaughterManager::Notify_PawnSpawned()
IL_017A: ldarg.0
IL_017B: call Verse.RaceProperties Verse.Pawn::get_RaceProps()
IL_0180: callvirt System.Boolean Verse.RaceProperties::get_IsFlesh()
IL_0185: brfalse => Label8
IL_018A: ldarg.0
IL_018B: ldfld RimWorld.Pawn_RelationsTracker Verse.Pawn::relations
IL_0190: ldc.i4.1
IL_0191: stfld System.Boolean RimWorld.Pawn_RelationsTracker::everSeenByPlayer
IL_0196: Label8
IL_0196: ldarg.0
IL_0197: call static System.Void
RimWorld.AddictionUtility::CheckDrugAddictionTeachOpportunity(Verse.Pawn pawn)
IL_019C: ldarg.0
IL_019D: ldfld RimWorld.Pawn_NeedsTracker Verse.Pawn::needs
IL_01A2: brfalse => Label9
IL_01A7: ldarg.0
IL_01A8: ldfld RimWorld.Pawn_NeedsTracker Verse.Pawn::needs
IL_01AD: ldfld RimWorld.Need_Mood RimWorld.Pawn_NeedsTracker::mood
IL_01B2: brfalse => Label10
IL_01B7: ldarg.0
IL_01B8: ldfld RimWorld.Pawn_NeedsTracker Verse.Pawn::needs
IL_01BD: ldfld RimWorld.Need_Mood RimWorld.Pawn_NeedsTracker::mood
IL_01C2: ldfld RimWorld.PawnRecentMemory RimWorld.Need_Mood::recentMemory
IL_01C7: brfalse => Label11
IL_01CC: ldarg.0
IL_01CD: ldfld RimWorld.Pawn_NeedsTracker Verse.Pawn::needs
IL_01D2: ldfld RimWorld.Need_Mood RimWorld.Pawn_NeedsTracker::mood
IL_01D7: ldfld RimWorld.PawnRecentMemory RimWorld.Need_Mood::recentMemory
IL_01DC: ldarg.2
IL_01DD: callvirt System.Void
RimWorld.PawnRecentMemory::Notify_Spawned(System.Boolean respawningAfterLoad)
IL_01E2: Label9
IL_01E2: Label10
IL_01E2: Label11
IL_01E2: ldarg.0
IL_01E3: ldfld Verse.Pawn_EquipmentTracker Verse.Pawn::equipment
IL_01E8: brfalse => Label12
IL_01ED: ldarg.0
IL_01EE: ldfld Verse.Pawn_EquipmentTracker Verse.Pawn::equipment
IL_01F3: callvirt System.Void Verse.Pawn_EquipmentTracker::Notify_PawnSpawned()
IL_01F8: Label12
IL_01F8: ldarg.0
IL_01F9: ldfld RimWorld.Pawn_MechanitorTracker Verse.Pawn::mechanitor
IL_01FE: brfalse => Label13
IL_0203: ldarg.0
IL_0204: ldfld RimWorld.Pawn_MechanitorTracker Verse.Pawn::mechanitor
IL_0209: ldarg.2
IL_020A: callvirt System.Void
RimWorld.Pawn_MechanitorTracker::Notify_PawnSpawned(System.Boolean
respawningAfterLoad)
IL_020F: Label13
IL_020F: ldarg.0
IL_0210: call virtual RimWorld.Faction Verse.Thing::get_Faction()
IL_0215: call static RimWorld.Faction RimWorld.Faction::get_OfPlayer()
IL_021A: bne.un => Label14
IL_021F: ldarg.0
IL_0220: call RimWorld.Ideo Verse.Pawn::get_Ideo()
IL_0225: dup
IL_0226: brtrue => Label15
IL_022B: pop
IL_022C: br => Label16
IL_0231: Label15
IL_0231: call System.Int32 RimWorld.Ideo::RecacheColonistBelieverCount()
IL_0236: pop
IL_0237: Label14
IL_0237: Label16
IL_0237: ldarg.2
IL_0238: brtrue => Label17
IL_023D: call static RimWorld.GameEnder Verse.Find::get_GameEnder()
IL_0242: callvirt System.Void RimWorld.GameEnder::CheckOrUpdateGameOver()
IL_0247: ldarg.0
IL_0248: call virtual RimWorld.Faction Verse.Thing::get_Faction()
IL_024D: call static RimWorld.Faction RimWorld.Faction::get_OfPlayer()
IL_0252: bne.un => Label18
IL_0257: call static RimWorld.StoryWatcher Verse.Find::get_StoryWatcher()
IL_025C: ldfld RimWorld.StatsRecord RimWorld.StoryWatcher::statsRecord
IL_0261: callvirt System.Void RimWorld.StatsRecord::UpdateGreatestPopulation()
IL_0266: call static RimWorld.Planet.World Verse.Find::get_World()
IL_026B: callvirt virtual RimWorld.StoryState
RimWorld.Planet.World::get_StoryState()
IL_0270: callvirt System.Void RimWorld.StoryState::RecordPopulationIncrease()
IL_0275: Label18
IL_0275: ldarg.0
IL_0276: call static System.Void
RimWorld.PawnDiedOrDownedThoughtsUtility::RemoveDiedThoughts(Verse.Pawn pawn)
IL_027B: ldarg.0
IL_027C: call static System.Boolean
RimWorld.QuestUtility::IsQuestLodger(Verse.Pawn p)
IL_0281: brfalse => Label19
IL_0286: ldarg.0
IL_0287: ldfld Verse.Pawn_HealthTracker Verse.Pawn::health
IL_028C: ldfld Verse.HediffSet Verse.Pawn_HealthTracker::hediffSet
IL_0291: ldfld System.Collections.Generic.List`1<Verse.Hediff>
Verse.HediffSet::hediffs
IL_0296: callvirt virtual System.Int32
System.Collections.Generic.List`1<Verse.Hediff>::get_Count()
IL_029B: ldc.i4.1
IL_029C: sub
IL_029D: stloc.1
IL_029E: br => Label20
IL_02A3: Label22
IL_02A3: ldarg.0
IL_02A4: ldfld Verse.Pawn_HealthTracker Verse.Pawn::health
IL_02A9: ldfld Verse.HediffSet Verse.Pawn_HealthTracker::hediffSet
IL_02AE: ldfld System.Collections.Generic.List`1<Verse.Hediff>
Verse.HediffSet::hediffs
IL_02B3: ldloc.1
IL_02B4: callvirt virtual Verse.Hediff
System.Collections.Generic.List`1<Verse.Hediff>::get_Item(System.Int32 index)
IL_02B9: ldfld Verse.HediffDef Verse.Hediff::def
IL_02BE: ldfld System.Boolean Verse.HediffDef::removeOnQuestLodgers
IL_02C3: brfalse => Label21
IL_02C8: ldarg.0
IL_02C9: ldfld Verse.Pawn_HealthTracker Verse.Pawn::health
IL_02CE: ldarg.0
IL_02CF: ldfld Verse.Pawn_HealthTracker Verse.Pawn::health
IL_02D4: ldfld Verse.HediffSet Verse.Pawn_HealthTracker::hediffSet
IL_02D9: ldfld System.Collections.Generic.List`1<Verse.Hediff>
Verse.HediffSet::hediffs
IL_02DE: ldloc.1
IL_02DF: callvirt virtual Verse.Hediff
System.Collections.Generic.List`1<Verse.Hediff>::get_Item(System.Int32 index)
IL_02E4: callvirt System.Void Verse.Pawn_HealthTracker::RemoveHediff(Verse.Hediff
hediff)
IL_02E9: Label21
IL_02E9: ldloc.1
IL_02EA: ldc.i4.1
IL_02EB: sub
IL_02EC: stloc.1
IL_02ED: Label20
IL_02ED: ldloc.1
IL_02EE: ldc.i4.0
IL_02EF: bge => Label22
IL_02F4: Label17
IL_02F4: Label19
IL_02F4: ldarg.0
IL_02F5: call Verse.RaceProperties Verse.Pawn::get_RaceProps()
IL_02FA: ldfld Verse.SoundDef Verse.RaceProperties::soundAmbience
IL_02FF: brfalse => Label23
IL_0304: ldarg.0
IL_0305: ldftn System.Void Verse.Pawn::<SpawnSetup>b__223_0()
IL_030B: newobj System.Void System.Action::.ctor(System.Object object,
System.IntPtr method)
IL_0310: call static System.Void
Verse.LongEventHandler::ExecuteWhenFinished(System.Action action)
IL_0315: // end original
IL_0315: Label23
IL_0315: Label24
IL_0315: Label25
IL_0315: Label30
IL_0315: ldarg.0
IL_0316: ldarg 1
IL_031A: ldarg 2
IL_031E: call static System.Void
UseBedrolls.SpawnClaimHomeBed::Postfix(Verse.Pawn __instance, Verse.Map map,
System.Boolean respawningAfterLoad)
IL_0323: ldarg.0
IL_0324: call static System.Void VFECore.SpawnSetup_Patch::Postfix(Verse.Pawn
__instance)
IL_0329: ldarg.0
IL_032A: call static System.Void
VFECore.Shields.ShieldsSystem::OnPawnSpawn(Verse.Pawn __instance)
IL_032F: ldarg.0
IL_0330: call static System.Void
VFECore.PhasingPatches::CheckPhasing(Verse.Pawn __instance)
IL_0335: ret
DONE

### Patch: virtual System.Void Verse.Pawn::DeSpawn(Verse.DestroyMode mode)


### Replacement: static System.Void
Verse.Pawn::Verse.Pawn.DeSpawn_Patch2(Verse.Pawn this, Verse.DestroyMode mode)
IL_0000: Local var 0: Verse.Map
IL_0000: // start original
IL_0000: ldarg.0
IL_0001: call virtual Verse.Map Verse.Thing::get_Map()
IL_0006: stloc.0
IL_0007: ldarg.0
IL_0008: ldfld Verse.AI.Pawn_JobTracker Verse.Pawn::jobs
IL_000D: brfalse => Label0
IL_0012: ldarg.0
IL_0013: ldfld Verse.AI.Pawn_JobTracker Verse.Pawn::jobs
IL_0018: ldfld Verse.AI.Job Verse.AI.Pawn_JobTracker::curJob
IL_001D: brfalse => Label1
IL_0022: ldarg.0
IL_0023: ldfld Verse.AI.Pawn_JobTracker Verse.Pawn::jobs
IL_0028: ldc.i4.0
IL_0029: ldc.i4.1
IL_002A: callvirt System.Void Verse.AI.Pawn_JobTracker::StopAll(System.Boolean
ifLayingKeepLaying, System.Boolean canReturnToPool)
IL_002F: Label0
IL_002F: Label1
IL_002F: ldarg.0
IL_0030: ldarg.1
IL_0031: call virtual System.Void
Verse.ThingWithComps::DeSpawn(Verse.DestroyMode mode)
IL_0036: ldarg.0
IL_0037: ldfld Verse.AI.Pawn_PathFollower Verse.Pawn::pather
IL_003C: brfalse => Label2
IL_0041: ldarg.0
IL_0042: ldfld Verse.AI.Pawn_PathFollower Verse.Pawn::pather
IL_0047: callvirt System.Void Verse.AI.Pawn_PathFollower::StopDead()
IL_004C: Label2
IL_004C: ldarg.0
IL_004D: ldfld RimWorld.Pawn_RopeTracker Verse.Pawn::roping
IL_0052: dup
IL_0053: brtrue => Label3
IL_0058: pop
IL_0059: br => Label4
IL_005E: Label3
IL_005E: call System.Void RimWorld.Pawn_RopeTracker::Notify_DeSpawned()
IL_0063: Label4
IL_0063: ldarg.0
IL_0064: ldfld Verse.AI.Pawn_MindState Verse.Pawn::mindState
IL_0069: ldnull
IL_006A: stfld Verse.Thing Verse.AI.Pawn_MindState::droppedWeapon
IL_006F: ldarg.0
IL_0070: ldfld RimWorld.Pawn_NeedsTracker Verse.Pawn::needs
IL_0075: brfalse => Label5
IL_007A: ldarg.0
IL_007B: ldfld RimWorld.Pawn_NeedsTracker Verse.Pawn::needs
IL_0080: ldfld RimWorld.Need_Mood RimWorld.Pawn_NeedsTracker::mood
IL_0085: brfalse => Label6
IL_008A: ldarg.0
IL_008B: ldfld RimWorld.Pawn_NeedsTracker Verse.Pawn::needs
IL_0090: ldfld RimWorld.Need_Mood RimWorld.Pawn_NeedsTracker::mood
IL_0095: ldfld RimWorld.ThoughtHandler RimWorld.Need_Mood::thoughts
IL_009A: ldfld RimWorld.SituationalThoughtHandler
RimWorld.ThoughtHandler::situational
IL_009F: callvirt System.Void
RimWorld.SituationalThoughtHandler::Notify_SituationalThoughtsDirty()
IL_00A4: Label5
IL_00A4: Label6
IL_00A4: ldarg.0
IL_00A5: ldfld RimWorld.Pawn_MeleeVerbs Verse.Pawn::meleeVerbs
IL_00AA: brfalse => Label7
IL_00AF: ldarg.0
IL_00B0: ldfld RimWorld.Pawn_MeleeVerbs Verse.Pawn::meleeVerbs
IL_00B5: callvirt System.Void RimWorld.Pawn_MeleeVerbs::Notify_PawnDespawned()
IL_00BA: Label7
IL_00BA: ldarg.0
IL_00BB: ldfld RimWorld.Pawn_MechanitorTracker Verse.Pawn::mechanitor
IL_00C0: dup
IL_00C1: brtrue => Label8
IL_00C6: pop
IL_00C7: br => Label9
IL_00CC: Label8
IL_00CC: ldarg.1
IL_00CD: call System.Void
RimWorld.Pawn_MechanitorTracker::Notify_DeSpawned(Verse.DestroyMode mode)
IL_00D2: Label9
IL_00D2: ldarg.0
IL_00D3: ldc.i4.0
IL_00D4: call System.Void Verse.Pawn::ClearAllReservations(System.Boolean
releaseDestinationsOnlyIfObsolete)
IL_00D9: ldloc.0
IL_00DA: brfalse => Label10
IL_00DF: ldloc.0
IL_00E0: ldfld Verse.MapPawns Verse.Map::mapPawns
IL_00E5: ldarg.0
IL_00E6: callvirt System.Void Verse.MapPawns::DeRegisterPawn(Verse.Pawn p)
IL_00EB: ldloc.0
IL_00EC: ldfld Verse.AutoSlaughterManager Verse.Map::autoSlaughterManager
IL_00F1: callvirt System.Void Verse.AutoSlaughterManager::Notify_PawnDespawned()
IL_00F6: Label10
IL_00F6: ldarg.0
IL_00F7: call static System.Void
RimWorld.PawnComponentsUtility::RemoveComponentsOnDespawned(Verse.Pawn pawn)
IL_00FC: ldarg.0
IL_00FD: ldfld Verse.Sound.Sustainer Verse.Pawn::sustainerAmbient
IL_0102: brfalse => Label11
IL_0107: ldarg.0
IL_0108: ldfld Verse.Sound.Sustainer Verse.Pawn::sustainerAmbient
IL_010D: callvirt System.Void Verse.Sound.Sustainer::End()
IL_0112: ldarg.0
IL_0113: ldnull
IL_0114: stfld Verse.Sound.Sustainer Verse.Pawn::sustainerAmbient
IL_0119: // end original
IL_0119: Label11
IL_0119: ldarg.0
IL_011A: call static System.Void
VFECore.Shields.ShieldsSystem::OnPawnDespawn(Verse.Pawn __instance)
IL_011F: ldarg.0
IL_0120: call static System.Void
VFECore.PhasingPatches::Despawn_Postfix(Verse.Pawn __instance)
IL_0125: ret
DONE

### Patch: static System.Void


RunAndGun.Harmony.Verb_TryCastNextBurstShot::SetStanceRunAndGun(Verse.Pawn_StanceTr
acker stanceTracker, Verse.Stance_Cooldown stance)
### Replacement: static System.Void
RunAndGun.Harmony.Verb_TryCastNextBurstShot::RunAndGun.Harmony.Verb_TryCastNextBurs
tShot.SetStanceRunAndGun_Patch0(Verse.Pawn_StanceTracker stanceTracker,
Verse.Stance_Cooldown stance)
IL_0000: Local var 0: System.Boolean
IL_0000: Local var 1: System.Boolean
IL_0000: Local var 2: System.Boolean
IL_0000: // start original
IL_0000: nop
IL_0001: ldarg.0
IL_0002: ldfld Verse.Pawn Verse.Pawn_StanceTracker::pawn
IL_0007: ldfld Verse.Pawn_EquipmentTracker Verse.Pawn::equipment
IL_000C: ldnull
IL_000D: ceq
IL_000F: stloc.0
IL_0010: ldloc.0
IL_0011: brfalse => Label0
IL_0016: nop
IL_0017: ldarg.0
IL_0018: ldarg.1
IL_0019: callvirt System.Void Verse.Pawn_StanceTracker::SetStance(Verse.Stance
newStance)
IL_001E: nop
IL_001F: br => Label1
IL_0024: Label0
IL_0024: ldarg.0
IL_0025: ldfld Verse.Pawn Verse.Pawn_StanceTracker::pawn
IL_002A: ldfld Verse.Pawn_EquipmentTracker Verse.Pawn::equipment
IL_002F: callvirt Verse.ThingWithComps Verse.Pawn_EquipmentTracker::get_Primary()
IL_0034: ldarg.1
IL_0035: ldfld Verse.Verb Verse.Stance_Busy::verb
IL_003A: callvirt Verse.ThingWithComps Verse.Verb::get_EquipmentSource()
IL_003F: beq => Label2
IL_0044: ldarg.1
IL_0045: ldfld Verse.Verb Verse.Stance_Busy::verb
IL_004A: callvirt Verse.ThingWithComps Verse.Verb::get_EquipmentSource()
IL_004F: brfalse => Label3
IL_0054: ldarg.1
IL_0055: ldfld Verse.Verb Verse.Stance_Busy::verb
IL_005A: callvirt Verse.ThingWithComps Verse.Verb::get_EquipmentSource()
IL_005F: isinst RimWorld.Apparel
IL_0064: ldnull
IL_0065: cgt.un
IL_0067: br => Label4
IL_006C: Label2
IL_006C: Label3
IL_006C: ldc.i4.1
IL_006D: Label4
IL_006D: stloc.1
IL_006E: ldloc.1
IL_006F: ldarg.0
IL_0070: ldarg.1
IL_0071: call static System.Boolean
VFECore.manual_SetStanceRunAndGun::ShouldSetStance(System.Boolean original,
Verse.Pawn_StanceTracker stanceTracker, Verse.Stance_Cooldown stance)
IL_0076: stloc.1
IL_0077: ldloc.1
IL_0078: brfalse => Label5
IL_007D: nop
IL_007E: ldarg.0
IL_007F: ldfld Verse.Stance Verse.Pawn_StanceTracker::curStance
IL_0084: isinst RunAndGun.Stance_RunAndGun
IL_0089: brtrue => Label6
IL_008E: ldarg.0
IL_008F: ldfld Verse.Stance Verse.Pawn_StanceTracker::curStance
IL_0094: isinst RunAndGun.Stance_RunAndGun_Cooldown
IL_0099: brfalse => Label7
IL_009E: Label6
IL_009E: ldarg.0
IL_009F: ldfld Verse.Pawn Verse.Pawn_StanceTracker::pawn
IL_00A4: ldfld Verse.AI.Pawn_PathFollower Verse.Pawn::pather
IL_00A9: callvirt System.Boolean Verse.AI.Pawn_PathFollower::get_Moving()
IL_00AE: br => Label8
IL_00B3: Label7
IL_00B3: ldc.i4.0
IL_00B4: Label8
IL_00B4: stloc.2
IL_00B5: ldloc.2
IL_00B6: brfalse => Label9
IL_00BB: nop
IL_00BC: ldarg.0
IL_00BD: ldarg.1
IL_00BE: ldfld System.Int32 Verse.Stance_Busy::ticksLeft
IL_00C3: ldarg.1
IL_00C4: ldfld Verse.LocalTargetInfo Verse.Stance_Busy::focusTarg
IL_00C9: ldarg.1
IL_00CA: ldfld Verse.Verb Verse.Stance_Busy::verb
IL_00CF: newobj System.Void
RunAndGun.Stance_RunAndGun_Cooldown::.ctor(System.Int32 ticks,
Verse.LocalTargetInfo focusTarg, Verse.Verb verb)
IL_00D4: callvirt System.Void Verse.Pawn_StanceTracker::SetStance(Verse.Stance
newStance)
IL_00D9: nop
IL_00DA: nop
IL_00DB: br => Label10
IL_00E0: Label9
IL_00E0: nop
IL_00E1: ldarg.0
IL_00E2: ldarg.1
IL_00E3: callvirt System.Void Verse.Pawn_StanceTracker::SetStance(Verse.Stance
newStance)
IL_00E8: nop
IL_00E9: nop
IL_00EA: Label10
IL_00EA: nop
IL_00EB: // end original
IL_00EB: Label1
IL_00EB: Label5
IL_00EB: ret
DONE

### Patch: System.Collections.Generic.IEnumerable`1<RimWorld.ICommunicable>


RimWorld.Building_CommsConsole::GetCommTargets(Verse.Pawn myPawn)
### Replacement: static
System.Collections.Generic.IEnumerable`1<RimWorld.ICommunicable>
RimWorld.Building_CommsConsole::RimWorld.Building_CommsConsole.GetCommTargets_Patch
2(RimWorld.Building_CommsConsole this, Verse.Pawn myPawn)
IL_0000: Local var 0:
System.Collections.Generic.IEnumerable`1<RimWorld.ICommunicable>
IL_0000: ldnull
IL_0001: stloc 0
(System.Collections.Generic.IEnumerable`1[RimWorld.ICommunicable])
IL_0005: // start original
IL_0005: ldarg.1
IL_0006: callvirt virtual Verse.Map Verse.Thing::get_Map()
IL_000B: ldfld RimWorld.PassingShipManager Verse.Map::passingShipManager
IL_0010: ldfld System.Collections.Generic.List`1<RimWorld.PassingShip>
RimWorld.PassingShipManager::passingShips
IL_0015: call static
System.Collections.Generic.IEnumerable`1<RimWorld.ICommunicable>
System.Linq.Enumerable::Cast(System.Collections.IEnumerable source)
IL_001A: call static RimWorld.FactionManager Verse.Find::get_FactionManager()
IL_001F: callvirt System.Collections.Generic.IEnumerable`1<RimWorld.Faction>
RimWorld.FactionManager::get_AllFactionsVisibleInViewOrder()
IL_0024: ldsfld System.Func`2<RimWorld.Faction, System.Boolean>
RimWorld.<>c::<>9__6_0
IL_0029: dup
IL_002A: brtrue => Label0
IL_002F: pop
IL_0030: ldsfld RimWorld.<>c RimWorld.<>c::<>9
IL_0035: ldftn System.Boolean
RimWorld.<>c::<GetCommTargets>b__6_0(RimWorld.Faction f)
IL_003B: newobj System.Void System.Func`2<RimWorld.Faction,
System.Boolean>::.ctor(System.Object object, System.IntPtr method)
IL_0040: dup
IL_0041: stsfld System.Func`2<RimWorld.Faction, System.Boolean>
RimWorld.<>c::<>9__6_0
IL_0046: Label0
IL_0046: call static
System.Collections.Generic.IEnumerable`1<RimWorld.Faction>
System.Linq.Enumerable::Where(System.Collections.Generic.IEnumerable`1<RimWorld.Fac
tion> source, System.Func`2<RimWorld.Faction, System.Boolean> predicate)
IL_004B: call static
System.Collections.Generic.IEnumerable`1<RimWorld.ICommunicable>
System.Linq.Enumerable::Cast(System.Collections.IEnumerable source)
IL_0050: call static
System.Collections.Generic.IEnumerable`1<RimWorld.ICommunicable>
System.Linq.Enumerable::Concat(System.Collections.Generic.IEnumerable`1<RimWorld.IC
ommunicable> first,
System.Collections.Generic.IEnumerable`1<RimWorld.ICommunicable> second)
IL_0055: // end original
IL_0055: stloc 0
(System.Collections.Generic.IEnumerable`1[RimWorld.ICommunicable])
IL_0059: ldloc 0
(System.Collections.Generic.IEnumerable`1[RimWorld.ICommunicable])
IL_005D: call static
System.Collections.Generic.IEnumerable`1<RimWorld.ICommunicable>
VFECore.Building_CommsConsole_GetCommTargets_Patch::Postfix(System.Collections.Gene
ric.IEnumerable`1<RimWorld.ICommunicable> __result)
IL_0062: call static
System.Collections.Generic.IEnumerable`1<RimWorld.ICommunicable>
VFECore.Misc.HireableSystemStaticInitialization::GetCommTargets_Postfix(System.Coll
ections.Generic.IEnumerable`1<RimWorld.ICommunicable> communicables)
IL_0067: ret
DONE

### Patch: System.Void Verse.LoadedObjectDirectory::Clear()


### Replacement: static System.Void
Verse.LoadedObjectDirectory::Verse.LoadedObjectDirectory.Clear_Patch1(Verse.LoadedO
bjectDirectory this)
IL_0000: // start original
IL_0000: ldarg.0
IL_0001: ldfld System.Collections.Generic.Dictionary`2<System.String,
Verse.ILoadReferenceable> Verse.LoadedObjectDirectory::allObjectsByLoadID
IL_0006: callvirt virtual System.Void
System.Collections.Generic.Dictionary`2<System.String,
Verse.ILoadReferenceable>::Clear()
IL_000B: ldarg.0
IL_000C: ldfld System.Collections.Generic.Dictionary`2<System.Int32,
Verse.ILoadReferenceable> Verse.LoadedObjectDirectory::allThingsByThingID
IL_0011: callvirt virtual System.Void
System.Collections.Generic.Dictionary`2<System.Int32,
Verse.ILoadReferenceable>::Clear()
IL_0016: // end original
IL_0016: ldarg.0
IL_0017: call static System.Void
VFECore.Misc.HireableSystemStaticInitialization::AddHireablesToLoadedObjectDirector
y(Verse.LoadedObjectDirectory __instance)
IL_001C: ret
DONE
### Patch: static System.Boolean RimWorld.QuestUtility::IsQuestLodger(Verse.Pawn p)
### Replacement: static System.Boolean
RimWorld.QuestUtility::RimWorld.QuestUtility.IsQuestLodger_Patch1(Verse.Pawn p)
IL_0000: Local var 0: System.Boolean
IL_0000: ldc.i4 0
IL_0005: stloc 0 (System.Boolean)
IL_0009: // start original
IL_0009: ldarg.0
IL_000A: ldnull
IL_000B: call static System.Boolean
RimWorld.QuestUtility::HasExtraHomeFaction(Verse.Pawn p, RimWorld.Quest forQuest)
IL_0010: brtrue => Label0
IL_0015: ldarg.0
IL_0016: ldnull
IL_0017: call static System.Boolean
RimWorld.QuestUtility::HasExtraMiniFaction(Verse.Pawn p, RimWorld.Quest forQuest)
IL_001C: br => Label1
IL_0021: Label0
IL_0021: ldc.i4.1
IL_0022: // end original
IL_0022: Label1
IL_0022: stloc 0 (System.Boolean)
IL_0026: ldarg 0
IL_002A: ldloca 0 (System.Boolean)
IL_002E: call static System.Void
VFECore.Misc.HireableSystemStaticInitialization::IsQuestLodger_Postfix(Verse.Pawn
p, System.Boolean& __result)
IL_0033: ldloc 0 (System.Boolean)
IL_0037: ret
DONE

### Patch: static System.Boolean


RimWorld.EquipmentUtility::QuestLodgerCanUnequip(Verse.Thing thing, Verse.Pawn
pawn)
### Replacement: static System.Boolean
RimWorld.EquipmentUtility::RimWorld.EquipmentUtility.QuestLodgerCanUnequip_Patch1(V
erse.Thing thing, Verse.Pawn pawn)
IL_0000: Local var 0: System.Boolean
IL_0000: ldc.i4 0
IL_0005: stloc 0 (System.Boolean)
IL_0009: // start original
IL_0009: ldarg.0
IL_000A: ldarg.1
IL_000B: call static System.Boolean
RimWorld.CompBiocodable::IsBiocodedFor(Verse.Thing thing, Verse.Pawn pawn)
IL_0010: brfalse => Label0
IL_0015: ldc.i4.0
IL_0016: br => Label2
IL_001B: Label0
IL_001B: ldarg.0
IL_001C: ldarg.1
IL_001D: call static System.Boolean
RimWorld.EquipmentUtility::IsBondedTo(Verse.Thing thing, Verse.Pawn pawn)
IL_0022: brfalse => Label1
IL_0027: ldc.i4.0
IL_0028: br => Label3
IL_002D: Label1
IL_002D: ldc.i4.1
IL_002E: // end original
IL_002E: Label2
IL_002E: Label3
IL_002E: stloc 0 (System.Boolean)
IL_0032: ldarg 1
IL_0036: ldloca 0 (System.Boolean)
IL_003A: call static System.Void
VFECore.Misc.HireableSystemStaticInitialization::QuestLodgerCanUnequip_Postfix(Vers
e.Pawn pawn, System.Boolean& __result)
IL_003F: ldloc 0 (System.Boolean)
IL_0043: ret
DONE

### Patch: static System.Collections.Generic.List`1<Verse.Pawn>


RimWorld.Planet.CaravanFormingUtility::AllSendablePawns(Verse.Map map,
System.Boolean allowEvenIfDowned, System.Boolean allowEvenIfInMentalState,
System.Boolean allowEvenIfPrisonerNotSecure, System.Boolean
allowCapturableDownedPawns, System.Boolean allowLodgers, System.Int32
allowLoadAndEnterTransportersLordForGroupID)
### Replacement: static System.Collections.Generic.List`1<Verse.Pawn>
RimWorld.Planet.CaravanFormingUtility::RimWorld.Planet.CaravanFormingUtility.AllSen
dablePawns_Patch0(Verse.Map map, System.Boolean allowEvenIfDowned, System.Boolean
allowEvenIfInMentalState, System.Boolean allowEvenIfPrisonerNotSecure,
System.Boolean allowCapturableDownedPawns, System.Boolean allowLodgers,
System.Int32 allowLoadAndEnterTransportersLordForGroupID)
IL_0000: Local var 0: System.Collections.Generic.List`1<Verse.Pawn>
IL_0000: Local var 1: System.Collections.Generic.List`1<Verse.Pawn>
IL_0000: Local var 2: System.Int32
IL_0000: Local var 3: Verse.Pawn
IL_0000: // start original
IL_0000: newobj System.Void
System.Collections.Generic.List`1<Verse.Pawn>::.ctor()
IL_0005: stloc.0
IL_0006: ldarg.0
IL_0007: ldfld Verse.MapPawns Verse.Map::mapPawns
IL_000C: callvirt System.Collections.Generic.List`1<Verse.Pawn>
Verse.MapPawns::get_AllPawnsSpawned()
IL_0011: stloc.1
IL_0012: ldc.i4.0
IL_0013: stloc.2
IL_0014: br => Label0
IL_0019: Label23
IL_0019: ldloc.1
IL_001A: ldloc.2
IL_001B: callvirt virtual Verse.Pawn
System.Collections.Generic.List`1<Verse.Pawn>::get_Item(System.Int32 index)
IL_0020: stloc.3
IL_0021: ldarg.1
IL_0022: brtrue => Label1
IL_0027: ldloc.3
IL_0028: callvirt System.Boolean Verse.Pawn::get_Downed()
IL_002D: brtrue => Label2
IL_0032: Label1
IL_0032: ldarg.2
IL_0033: brtrue => Label3
IL_0038: ldloc.3
IL_0039: callvirt System.Boolean Verse.Pawn::get_InMentalState()
IL_003E: brtrue => Label4
IL_0043: Label3
IL_0043: ldloc.3
IL_0044: callvirt virtual RimWorld.Faction Verse.Thing::get_Faction()
IL_0049: call static RimWorld.Faction RimWorld.Faction::get_OfPlayer()
IL_004E: beq => Label5
IL_0053: ldloc.3
IL_0054: callvirt System.Boolean Verse.Pawn::get_IsPrisonerOfColony()
IL_0059: brtrue => Label6
IL_005E: ldarg.s 4
IL_0060: brfalse => Label7
IL_0065: ldloc.3
IL_0066: call static System.Boolean
RimWorld.Planet.CaravanFormingUtility::CanListAsAutoCapturable(Verse.Pawn p)
IL_006B: brfalse => Label8
IL_0070: Label5
IL_0070: Label6
IL_0070: ldloc.3
IL_0071: callvirt Verse.RaceProperties Verse.Pawn::get_RaceProps()
IL_0076: ldfld System.Boolean Verse.RaceProperties::allowedOnCaravan
IL_007B: brfalse => Label9
IL_0080: ldloc.3
IL_0081: call static System.Boolean
RimWorld.QuestUtility::IsQuestHelper(Verse.Pawn p)
IL_0086: brtrue => Label10
IL_008B: ldloc.3
IL_008C: dup
IL_008D: call static System.Boolean
RimWorld.QuestUtility::IsQuestLodger(Verse.Pawn p)
IL_0092: call static System.Boolean
VFECore.Misc.HireableSystemStaticInitialization::CaravanAllSendablePawns_Helper(Ver
se.Pawn pawn, System.Boolean questLodger)
IL_0097: brfalse => Label11
IL_009C: ldarg.s 5
IL_009E: brfalse => Label12
IL_00A3: Label11
IL_00A3: ldarg.3
IL_00A4: brtrue => Label13
IL_00A9: ldloc.3
IL_00AA: callvirt System.Boolean Verse.Pawn::get_IsPrisoner()
IL_00AF: brfalse => Label14
IL_00B4: ldloc.3
IL_00B5: ldfld RimWorld.Pawn_GuestTracker Verse.Pawn::guest
IL_00BA: callvirt System.Boolean
RimWorld.Pawn_GuestTracker::get_PrisonerIsSecure()
IL_00BF: brfalse => Label15
IL_00C4: Label13
IL_00C4: Label14
IL_00C4: ldloc.3
IL_00C5: call static Verse.AI.Group.Lord
Verse.AI.Group.LordUtility::GetLord(Verse.Pawn p)
IL_00CA: brfalse => Label16
IL_00CF: ldloc.3
IL_00D0: call static Verse.AI.Group.Lord
Verse.AI.Group.LordUtility::GetLord(Verse.Pawn p)
IL_00D5: callvirt Verse.AI.Group.LordJob Verse.AI.Group.Lord::get_LordJob()
IL_00DA: isinst RimWorld.LordJob_VoluntarilyJoinable
IL_00DF: brtrue => Label17
IL_00E4: ldloc.3
IL_00E5: call static Verse.AI.Group.Lord
Verse.AI.Group.LordUtility::GetLord(Verse.Pawn p)
IL_00EA: callvirt Verse.AI.Group.LordJob Verse.AI.Group.Lord::get_LordJob()
IL_00EF: callvirt virtual System.Boolean
Verse.AI.Group.LordJob::get_IsCaravanSendable()
IL_00F4: brtrue => Label18
IL_00F9: ldarg.s 6
IL_00FB: ldc.i4.0
IL_00FC: blt => Label19
IL_0101: ldloc.3
IL_0102: call static Verse.AI.Group.Lord
Verse.AI.Group.LordUtility::GetLord(Verse.Pawn p)
IL_0107: callvirt Verse.AI.Group.LordJob Verse.AI.Group.Lord::get_LordJob()
IL_010C: isinst RimWorld.LordJob_LoadAndEnterTransporters
IL_0111: brfalse => Label20
IL_0116: ldloc.3
IL_0117: call static Verse.AI.Group.Lord
Verse.AI.Group.LordUtility::GetLord(Verse.Pawn p)
IL_011C: callvirt Verse.AI.Group.LordJob Verse.AI.Group.Lord::get_LordJob()
IL_0121: castclass RimWorld.LordJob_LoadAndEnterTransporters
IL_0126: ldfld System.Int32
RimWorld.LordJob_LoadAndEnterTransporters::transportersGroup
IL_012B: ldarg.s 6
IL_012D: ceq
IL_012F: br => Label21
IL_0134: Label19
IL_0134: Label20
IL_0134: ldc.i4.0
IL_0135: Label21
IL_0135: brfalse => Label22
IL_013A: Label16
IL_013A: Label17
IL_013A: Label18
IL_013A: ldloc.0
IL_013B: ldloc.3
IL_013C: callvirt virtual System.Void
System.Collections.Generic.List`1<Verse.Pawn>::Add(Verse.Pawn item)
IL_0141: Label2
IL_0141: Label4
IL_0141: Label7
IL_0141: Label8
IL_0141: Label9
IL_0141: Label10
IL_0141: Label12
IL_0141: Label15
IL_0141: Label22
IL_0141: ldloc.2
IL_0142: ldc.i4.1
IL_0143: add
IL_0144: stloc.2
IL_0145: Label0
IL_0145: ldloc.2
IL_0146: ldloc.1
IL_0147: callvirt virtual System.Int32
System.Collections.Generic.List`1<Verse.Pawn>::get_Count()
IL_014C: blt => Label23
IL_0151: ldloc.0
IL_0152: // end original
IL_0152: ret
DONE

### Patch: System.Boolean Verse.Pawn::CheckAcceptArrest(Verse.Pawn arrester)


### Replacement: static System.Boolean
Verse.Pawn::Verse.Pawn.CheckAcceptArrest_Patch1(Verse.Pawn this, Verse.Pawn
arrester)
IL_0000: Local var 0: RimWorld.Faction
IL_0000: Local var 1: System.Single
IL_0000: Local var 2: System.Boolean
IL_0000: ldc.i4 0
IL_0005: stloc 2 (System.Boolean)
IL_0009: // start original
IL_0009: ldarg.0
IL_000A: call RimWorld.Faction Verse.Pawn::get_HomeFaction()
IL_000F: stloc.0
IL_0010: ldloc.0
IL_0011: brfalse => Label0
IL_0016: ldloc.0
IL_0017: ldarg.1
IL_0018: ldfld RimWorld.Faction Verse.Thing::factionInt
IL_001D: beq => Label1
IL_0022: ldloc.0
IL_0023: ldarg.0
IL_0024: ldarg.1
IL_0025: callvirt virtual RimWorld.Faction Verse.Thing::get_Faction()
IL_002A: callvirt System.Void RimWorld.Faction::Notify_MemberCaptured(Verse.Pawn
member, RimWorld.Faction violator)
IL_002F: Label0
IL_002F: Label1
IL_002F: ldarg.0
IL_0030: call System.Boolean Verse.Pawn::get_Downed()
IL_0035: brfalse => Label2
IL_003A: ldc.i4.1
IL_003B: br => Label7
IL_0040: Label2
IL_0040: ldarg.0
IL_0041: ldc.i4.8
IL_0042: call System.Boolean Verse.Pawn::WorkTagIsDisabled(Verse.WorkTags w)
IL_0047: brfalse => Label3
IL_004C: ldc.i4.1
IL_004D: br => Label8
IL_0052: Label3
IL_0052: ldarg.0
IL_0053: ldarg.1
IL_0054: call System.Single Verse.Pawn::GetAcceptArrestChance(Verse.Pawn
arrester)
IL_0059: stloc.1
IL_005A: call static System.Single Verse.Rand::get_Value()
IL_005F: ldloc.1
IL_0060: bge.un => Label4
IL_0065: ldc.i4.1
IL_0066: br => Label9
IL_006B: Label4
IL_006B: ldstr "MessageRefusedArrest"
IL_0070: ldarg.0
IL_0071: callvirt virtual System.String Verse.Entity::get_LabelShort()
IL_0076: call static Verse.NamedArgument
Verse.NamedArgument::op_Implicit(System.String value)
IL_007B: ldarg.0
IL_007C: call static Verse.NamedArgument
Verse.NamedArgument::op_Implicit(Verse.Thing value)
IL_0081: call static Verse.TaggedString
Verse.TranslatorFormattedStringExtensions::Translate(System.String key,
Verse.NamedArgument arg1, Verse.NamedArgument arg2)
IL_0086: call static System.String
Verse.TaggedString::op_Implicit(Verse.TaggedString taggedString)
IL_008B: ldarg.0
IL_008C: call static Verse.LookTargets
Verse.LookTargets::op_Implicit(Verse.Thing t)
IL_0091: ldsfld Verse.MessageTypeDef RimWorld.MessageTypeDefOf::ThreatSmall
IL_0096: ldc.i4.1
IL_0097: call static System.Void Verse.Messages::Message(System.String text,
Verse.LookTargets lookTargets, Verse.MessageTypeDef def, System.Boolean historical)
IL_009C: ldarg.0
IL_009D: call virtual RimWorld.Faction Verse.Thing::get_Faction()
IL_00A2: brfalse => Label5
IL_00A7: ldarg.1
IL_00A8: ldarg.0
IL_00A9: call static System.Boolean
RimWorld.GenHostility::HostileTo(Verse.Thing a, Verse.Thing b)
IL_00AE: brtrue => Label6
IL_00B3: Label5
IL_00B3: ldarg.0
IL_00B4: ldfld Verse.AI.Pawn_MindState Verse.Pawn::mindState
IL_00B9: ldfld Verse.AI.MentalStateHandler
Verse.AI.Pawn_MindState::mentalStateHandler
IL_00BE: ldsfld Verse.MentalStateDef RimWorld.MentalStateDefOf::Berserk
IL_00C3: ldnull
IL_00C4: ldc.i4.0
IL_00C5: ldc.i4.0
IL_00C6: ldnull
IL_00C7: ldc.i4.0
IL_00C8: ldc.i4.0
IL_00C9: ldc.i4.0
IL_00CA: callvirt System.Boolean
Verse.AI.MentalStateHandler::TryStartMentalState(Verse.MentalStateDef stateDef,
System.String reason, System.Boolean forceWake, System.Boolean causedByMood,
Verse.Pawn otherPawn, System.Boolean transitionSilently, System.Boolean
causedByDamage, System.Boolean causedByPsycast)
IL_00CF: pop
IL_00D0: Label6
IL_00D0: ldc.i4.0
IL_00D1: // end original
IL_00D1: Label7
IL_00D1: Label8
IL_00D1: Label9
IL_00D1: stloc 2 (System.Boolean)
IL_00D5: ldarg.0
IL_00D6: ldloca 2 (System.Boolean)
IL_00DA: call static System.Void
VFECore.Misc.HireableSystemStaticInitialization::CheckAcceptArrestPostfix(Verse.Paw
n __instance, System.Boolean& __result)
IL_00DF: ldloc 2 (System.Boolean)
IL_00E3: ret
DONE

### Patch: static System.Boolean


RimWorld.BillUtility::IsSurgeryViolationOnExtraFactionMember(RimWorld.Bill_Medical
bill, Verse.Pawn billDoer)
### Replacement: static System.Boolean
RimWorld.BillUtility::RimWorld.BillUtility.IsSurgeryViolationOnExtraFactionMember_P
atch1(RimWorld.Bill_Medical bill, Verse.Pawn billDoer)
IL_0000: Local var 0: Verse.RecipeWorker
IL_0000: Local var 1: RimWorld.Faction
IL_0000: Local var 2: RimWorld.Faction
IL_0000: Local var 3: System.Boolean
IL_0000: ldc.i4 0
IL_0005: stloc 3 (System.Boolean)
IL_0009: // start original
IL_0009: ldarg.0
IL_000A: ldfld Verse.RecipeDef RimWorld.Bill::recipe
IL_000F: callvirt System.Boolean Verse.RecipeDef::get_IsSurgery()
IL_0014: brfalse => Label0
IL_0019: ldarg.0
IL_001A: ldfld Verse.RecipeDef RimWorld.Bill::recipe
IL_001F: callvirt Verse.RecipeWorker Verse.RecipeDef::get_Worker()
IL_0024: brfalse => Label1
IL_0029: ldarg.0
IL_002A: ldfld Verse.RecipeDef RimWorld.Bill::recipe
IL_002F: callvirt Verse.RecipeWorker Verse.RecipeDef::get_Worker()
IL_0034: stloc.0
IL_0035: ldarg.1
IL_0036: ldarg.0
IL_0037: callvirt Verse.Pawn RimWorld.Bill_Medical::get_GiverPawn()
IL_003C: ldc.i4.0
IL_003D: ldnull
IL_003E: call static RimWorld.Faction
RimWorld.QuestUtility::GetSharedExtraFaction(Verse.Pawn p, Verse.Pawn target,
RimWorld.ExtraFactionType type, RimWorld.Quest forQuest)
IL_0043: stloc.1
IL_0044: ldloc.1
IL_0045: brfalse => Label2
IL_004A: ldloc.0
IL_004B: ldarg.0
IL_004C: callvirt Verse.Pawn RimWorld.Bill_Medical::get_GiverPawn()
IL_0051: ldarg.0
IL_0052: callvirt Verse.BodyPartRecord RimWorld.Bill_Medical::get_Part()
IL_0057: ldloc.1
IL_0058: callvirt virtual System.Boolean
Verse.RecipeWorker::IsViolationOnPawn(Verse.Pawn pawn, Verse.BodyPartRecord part,
RimWorld.Faction billDoerFaction)
IL_005D: brfalse => Label3
IL_0062: ldc.i4.1
IL_0063: br => Label6
IL_0068: Label2
IL_0068: Label3
IL_0068: ldarg.1
IL_0069: ldarg.0
IL_006A: callvirt Verse.Pawn RimWorld.Bill_Medical::get_GiverPawn()
IL_006F: ldc.i4.2
IL_0070: ldnull
IL_0071: call static RimWorld.Faction
RimWorld.QuestUtility::GetSharedExtraFaction(Verse.Pawn p, Verse.Pawn target,
RimWorld.ExtraFactionType type, RimWorld.Quest forQuest)
IL_0076: stloc.2
IL_0077: ldloc.2
IL_0078: brfalse => Label4
IL_007D: ldloc.0
IL_007E: ldarg.0
IL_007F: callvirt Verse.Pawn RimWorld.Bill_Medical::get_GiverPawn()
IL_0084: ldarg.0
IL_0085: callvirt Verse.BodyPartRecord RimWorld.Bill_Medical::get_Part()
IL_008A: ldloc.2
IL_008B: callvirt virtual System.Boolean
Verse.RecipeWorker::IsViolationOnPawn(Verse.Pawn pawn, Verse.BodyPartRecord part,
RimWorld.Faction billDoerFaction)
IL_0090: brfalse => Label5
IL_0095: ldc.i4.1
IL_0096: br => Label7
IL_009B: Label0
IL_009B: Label1
IL_009B: Label4
IL_009B: Label5
IL_009B: ldc.i4.0
IL_009C: // end original
IL_009C: Label6
IL_009C: Label7
IL_009C: stloc 3 (System.Boolean)
IL_00A0: ldarg 0
IL_00A4: ldloca 3 (System.Boolean)
IL_00A8: call static System.Void
VFECore.Misc.HireableSystemStaticInitialization::IsSurgeryViolation_Postfix(RimWorl
d.Bill_Medical bill, System.Boolean& __result)
IL_00AD: ldloc 3 (System.Boolean)
IL_00B1: ret
DONE

### Patch: static System.Boolean


RimWorld.ForbidUtility::CaresAboutForbidden(Verse.Pawn pawn, System.Boolean
cellTarget)
### Replacement: static System.Boolean
RimWorld.ForbidUtility::RimWorld.ForbidUtility.CaresAboutForbidden_Patch1(Verse.Paw
n pawn, System.Boolean cellTarget)
IL_0000: Local var 0: System.Boolean
IL_0000: ldc.i4 0
IL_0005: stloc 0 (System.Boolean)
IL_0009: // start original
IL_0009: ldarg.0
IL_000A: callvirt RimWorld.Faction Verse.Pawn::get_HostFaction()
IL_000F: brfalse => Label0
IL_0014: ldarg.0
IL_0015: callvirt RimWorld.Faction Verse.Pawn::get_HostFaction()
IL_001A: call static RimWorld.Faction RimWorld.Faction::get_OfPlayer()
IL_001F: bne.un => Label1
IL_0024: ldarg.0
IL_0025: callvirt System.Boolean Verse.Thing::get_Spawned()
IL_002A: brfalse => Label2
IL_002F: ldarg.0
IL_0030: callvirt virtual Verse.Map Verse.Thing::get_Map()
IL_0035: callvirt System.Boolean Verse.Map::get_IsPlayerHome()
IL_003A: brtrue => Label3
IL_003F: ldarg.0
IL_0040: ldc.i4.s 15
IL_0042: call static Verse.Room Verse.RegionAndRoomQuery::GetRoom(Verse.Thing
thing, Verse.RegionType allowedRegionTypes)
IL_0047: brfalse => Label4
IL_004C: ldarg.0
IL_004D: ldc.i4.s 15
IL_004F: call static Verse.Room Verse.RegionAndRoomQuery::GetRoom(Verse.Thing
thing, Verse.RegionType allowedRegionTypes)
IL_0054: callvirt System.Boolean Verse.Room::get_IsPrisonCell()
IL_0059: brtrue => Label5
IL_005E: Label4
IL_005E: ldarg.0
IL_005F: callvirt System.Boolean Verse.Pawn::get_IsPrisoner()
IL_0064: brfalse => Label6
IL_0069: ldarg.0
IL_006A: ldfld RimWorld.Pawn_GuestTracker Verse.Pawn::guest
IL_006F: callvirt System.Boolean
RimWorld.Pawn_GuestTracker::get_PrisonerIsSecure()
IL_0074: br => Label7
IL_0079: Label6
IL_0079: ldc.i4.1
IL_007A: br => Label8
IL_007F: Label1
IL_007F: Label2
IL_007F: Label3
IL_007F: Label5
IL_007F: ldc.i4.0
IL_0080: Label7
IL_0080: Label8
IL_0080: brtrue => Label9
IL_0085: ldc.i4.0
IL_0086: br => Label15
IL_008B: Label0
IL_008B: Label9
IL_008B: ldarg.0
IL_008C: callvirt System.Boolean Verse.Pawn::get_InMentalState()
IL_0091: brfalse => Label10
IL_0096: ldc.i4.0
IL_0097: br => Label16
IL_009C: Label10
IL_009C: ldarg.0
IL_009D: call static System.Boolean
RimWorld.SlaveRebellionUtility::IsRebelling(Verse.Pawn pawn)
IL_00A2: brfalse => Label11
IL_00A7: ldc.i4.0
IL_00A8: br => Label17
IL_00AD: Label11
IL_00AD: ldarg.1
IL_00AE: brfalse => Label12
IL_00B3: ldarg.0
IL_00B4: call static System.Boolean
RimWorld.ThinkNode_ConditionalShouldFollowMaster::ShouldFollowMaster(Verse.Pawn
pawn)
IL_00B9: brfalse => Label13
IL_00BE: ldc.i4.0
IL_00BF: br => Label18
IL_00C4: Label12
IL_00C4: Label13
IL_00C4: ldarg.0
IL_00C5: call static System.Boolean
MechanitorUtility::IsColonyMechRequiringMechanitor(Verse.Pawn mech)
IL_00CA: brfalse => Label14
IL_00CF: ldc.i4.0
IL_00D0: br => Label19
IL_00D5: Label14
IL_00D5: ldc.i4.1
IL_00D6: // end original
IL_00D6: Label15
IL_00D6: Label16
IL_00D6: Label17
IL_00D6: Label18
IL_00D6: Label19
IL_00D6: stloc 0 (System.Boolean)
IL_00DA: ldarg 0
IL_00DE: ldloca 0 (System.Boolean)
IL_00E2: call static System.Void
VFECore.Misc.HireableSystemStaticInitialization::CaresAboutForbidden_Postfix(Verse.
Pawn pawn, System.Boolean& __result)
IL_00E7: ldloc 0 (System.Boolean)
IL_00EB: ret
DONE

### Harmony id=VanillaAnimalsExpandedEndangered.HarmonyInit, version=2.2.2.0,


location=C:\Program Files (x86)\Steam\steamapps\common\data-000002130553D010,
env/clr=4.0.30319.42000, platform=Win32NT, ptrsize:runtime/env=8/Bits64, Windows
### Started from static System.Void
VanillaAnimalsExpandedEndangered.HarmonyInit::.cctor(), location C:\Program Files
(x86)\Steam\steamapps\common\data-0000021309B64C30
### At 2023-02-17 06.57.43
### Patch: virtual System.Collections.Generic.IEnumerable`1<Verse.Gizmo>
Verse.Pawn::GetGizmos()
### Replacement: static System.Collections.Generic.IEnumerable`1<Verse.Gizmo>
Verse.Pawn::Verse.Pawn.GetGizmos_Patch11(Verse.Pawn this)
IL_0000: Local var 0: System.Collections.Generic.IEnumerable`1<Verse.Gizmo>
IL_0000: ldnull
IL_0001: stloc 0 (System.Collections.Generic.IEnumerable`1[Verse.Gizmo])
IL_0005: // start original
IL_0005: ldc.i4.s -2
IL_0007: newobj System.Void Verse.<GetGizmos>d__274::.ctor(System.Int32
<>1__state)
IL_000C: dup
IL_000D: ldarg.0
IL_000E: stfld Verse.Pawn Verse.<GetGizmos>d__274::<>4__this
IL_0013: // end original
IL_0013: stloc 0 (System.Collections.Generic.IEnumerable`1[Verse.Gizmo])
IL_0017: ldarg.0
IL_0018: ldloca 0 (System.Collections.Generic.IEnumerable`1[Verse.Gizmo])
IL_001C: call static System.Void
AllowTool.Patches.Pawn_GetGizmos_Patch::InsertPartyHuntGizmo(Verse.Pawn __instance,
System.Collections.Generic.IEnumerable`1& __result)
IL_0021: ldloca 0 (System.Collections.Generic.IEnumerable`1[Verse.Gizmo])
IL_0025: ldarg.0
IL_0026: call static System.Void
TD_Enhancement_Pack.StopGizmo::Postfix(System.Collections.Generic.IEnumerable`1&
__result, Verse.Pawn __instance)
IL_002B: ldloca 0 (System.Collections.Generic.IEnumerable`1[Verse.Gizmo])
IL_002F: ldarg.0
IL_0030: call static System.Void
UseBedrolls.PickBackUpBedGizmo::Postfix(System.Collections.Generic.IEnumerable`1&
__result, Verse.Pawn __instance)
IL_0035: ldarg.0
IL_0036: ldloca 0 (System.Collections.Generic.IEnumerable`1[Verse.Gizmo])
IL_003A: call static System.Void
VanillaWeaponsExpandedLaser.HarmonyPatches.VWEL_Pawn_GetGizmos_WeaponGizmoGetter_Pa
tch::GetGizmos_PostFix(Verse.Pawn __instance,
System.Collections.Generic.IEnumerable`1& __result)
IL_003F: ldloca 0 (System.Collections.Generic.IEnumerable`1[Verse.Gizmo])
IL_0043: ldarg.0
IL_0044: call static System.Void
VanillaAnimalsExpandedEndangered.Pawn_GetGizmos_Patch::Postfix(System.Collections.G
eneric.IEnumerable`1& __result, Verse.Pawn __instance)
IL_0049: ldloc 0 (System.Collections.Generic.IEnumerable`1[Verse.Gizmo])
IL_004D: ldarg.0
IL_004E: call static System.Collections.Generic.IEnumerable`1<Verse.Gizmo>
AnimalTab.Patch_InjectTrainerSettingsGizmo::Postfix(System.Collections.Generic.IEnu
merable`1<Verse.Gizmo> __result, Verse.Pawn __instance)
IL_0053: ldarg.0
IL_0054: call static System.Collections.Generic.IEnumerable`1<Verse.Gizmo>
PeteTimesSix.SimpleSidearms.Intercepts.Pawn_GetGizmos_Postfix::Postfix(System.Colle
ctions.Generic.IEnumerable`1<Verse.Gizmo> __result, Verse.Pawn __instance)
IL_0059: ldarg.0
IL_005A: call static System.Collections.Generic.IEnumerable`1<Verse.Gizmo>
AnimalBehaviours.Pawn_GetGizmos_Patch::Postfix(System.Collections.Generic.IEnumerab
le`1<Verse.Gizmo> __result, Verse.Pawn __instance)
IL_005F: ldarg.0
IL_0060: call static System.Collections.Generic.IEnumerable`1<Verse.Gizmo>
VFEAncients.HarmonyPatches.AbilityPatches::AddGizmos(System.Collections.Generic.IEn
umerable`1<Verse.Gizmo> gizmos, Verse.Pawn __instance)
IL_0065: ldarg.0
IL_0066: call static System.Collections.Generic.IEnumerable`1<Verse.Gizmo>
CONN.Pawn_GetGizmos::Postfix(System.Collections.Generic.IEnumerable`1<Verse.Gizmo>
list, Verse.Pawn __instance)
IL_006B: ldarg.0
IL_006C: call static System.Collections.Generic.IEnumerable`1<Verse.Gizmo>
MoreDryads.Pawn_GetGizmos_Patch::Postfix(System.Collections.Generic.IEnumerable`1<V
erse.Gizmo> __result, Verse.Pawn __instance)
IL_0071: ret
DONE

### Harmony id=VanillaApparelExpanded.Accessories, version=2.2.2.0, location=C:\


Program Files (x86)\Steam\steamapps\common\data-000002130553D010,
env/clr=4.0.30319.42000, platform=Win32NT, ptrsize:runtime/env=8/Bits64, Windows
### Started from static System.Void VAE_Accessories.HarmonyPatches::.cctor(),
location C:\Program Files (x86)\Steam\steamapps\common\data-0000021309B81A50
### At 2023-02-17 06.57.43
### Patch: static System.Single RimWorld.MassUtility::Capacity(Verse.Pawn p,
System.Text.StringBuilder explanation)
### Replacement: static System.Single
RimWorld.MassUtility::RimWorld.MassUtility.Capacity_Patch6(Verse.Pawn p,
System.Text.StringBuilder explanation)
IL_0000: Local var 0: System.Single
IL_0000: Local var 1: System.Single
IL_0000: ldc.r4 0
IL_0005: stloc 1 (System.Single)
IL_0009: // start original
IL_0009: ldarg.0
IL_000A: call static System.Boolean
RimWorld.MassUtility::CanEverCarryAnything(Verse.Pawn p)
IL_000F: brtrue => Label0
IL_0014: ldc.r4 0
IL_0019: br => Label3
IL_001E: Label0
IL_001E: ldarg.0
IL_001F: callvirt System.Single Verse.Pawn::get_BodySize()
IL_0024: ldc.r4 35
IL_0029: mul
IL_002A: stloc.0
IL_002B: ldarg.1
IL_002C: brfalse => Label1
IL_0031: ldarg.1
IL_0032: callvirt System.Int32 System.Text.StringBuilder::get_Length()
IL_0037: ldc.i4.0
IL_0038: ble => Label2
IL_003D: ldarg.1
IL_003E: callvirt System.Text.StringBuilder
System.Text.StringBuilder::AppendLine()
IL_0043: pop
IL_0044: Label2
IL_0044: ldarg.1
IL_0045: ldstr " - "
IL_004A: ldarg.0
IL_004B: callvirt virtual System.String Verse.Entity::get_LabelShortCap()
IL_0050: ldstr ": "
IL_0055: ldloc.0
IL_0056: call static System.String
Verse.GenText::ToStringMassOffset(System.Single mass)
IL_005B: call static System.String System.String::Concat(System.String str0,
System.String str1, System.String str2, System.String str3)
IL_0060: callvirt System.Text.StringBuilder
System.Text.StringBuilder::Append(System.String value)
IL_0065: pop
IL_0066: Label1
IL_0066: ldloc.0
IL_0067: // end original
IL_0067: Label3
IL_0067: stloc 1 (System.Single)
IL_006B: ldarg 0
IL_006F: ldarga 1
IL_0073: ldloca 1 (System.Single)
IL_0077: call static System.Void CF.Capacity::Postfix(Verse.Pawn p,
System.Text.StringBuilder& explanation, System.Single& __result)
IL_007C: ldarg 0
IL_0080: ldloca 1 (System.Single)
IL_0084: call static System.Void
VanillaGenesExpanded.VanillaGenesExpanded_MassUtility_Capacity_Patch::GenesAffectCa
rryCapacity(Verse.Pawn p, System.Single& __result)
IL_0089: ldarg 0
IL_008D: ldloca 1 (System.Single)
IL_0091: call static System.Void
AnimalBehaviours.VanillaExpandedFramework_MassUtility_Capacity_Patch::MakeGigantelo
pesCarryMore(Verse.Pawn p, System.Single& __result)
IL_0096: ldarg 0
IL_009A: ldarg 1
IL_009E: ldloca 1 (System.Single)
IL_00A2: call static System.Void
VFECore.MassUtility_Capacity_Patch::Postfix(Verse.Pawn p, System.Text.StringBuilder
explanation, System.Single& __result)
IL_00A7: ldarg 0
IL_00AB: ldarg 1
IL_00AF: ldloca 1 (System.Single)
IL_00B3: call static System.Void
VAE_Accessories.HarmonyPatches::ApparelMassCapacity(Verse.Pawn p,
System.Text.StringBuilder explanation, System.Single& __result)
IL_00B8: ldarg 0
IL_00BC: ldloca 1 (System.Single)
IL_00C0: ldarg 1
IL_00C4: call static System.Void
VFEAncients.PowerWorker_Strong::AddCapacity(Verse.Pawn p, System.Single& __result,
System.Text.StringBuilder explanation)
IL_00C9: ldloc 1 (System.Single)
IL_00CD: ret
DONE

### Patch: virtual System.Void Verse.Pawn::Kill(System.Nullable`1<Verse.DamageInfo>


dinfo, Verse.Hediff exactCulprit)
### Replacement: static System.Void Verse.Pawn::Verse.Pawn.Kill_Patch9(Verse.Pawn
this, System.Nullable`1<Verse.DamageInfo> dinfo, Verse.Hediff exactCulprit)
IL_0000: Local var 0: System.Int32
IL_0000: Local var 1: Verse.IntVec3
IL_0000: Local var 2: Verse.Map
IL_0000: Local var 3: Verse.Map
IL_0000: Local var 4: System.Boolean
IL_0000: Local var 5: System.Boolean
IL_0000: Local var 6: System.Boolean
IL_0000: Local var 7: System.Nullable`1<System.Boolean>
IL_0000: Local var 8: RimWorld.Planet.Caravan
IL_0000: Local var 9: RimWorld.Building_Grave
IL_0000: Local var 10: RimWorld.Building_Bed
IL_0000: Local var 11: Verse.ThingOwner
IL_0000: Local var 12: System.Boolean
IL_0000: Local var 13: System.Boolean
IL_0000: Local var 14: System.Boolean
IL_0000: Local var 15: System.Boolean
IL_0000: Local var 16: System.Boolean
IL_0000: Local var 17: System.Single
IL_0000: Local var 18: Verse.Thing
IL_0000: Local var 19: Verse.AI.Group.Lord
IL_0000: Local var 20: Verse.Corpse
IL_0000: Local var 21: RimWorld.Faction
IL_0000: Local var 22: System.Nullable`1<System.Boolean>
IL_0000: Local var 23:
System.Collections.Generic.List`1/Enumerator<Verse.AI.Group.Lord>
IL_0000: Local var 24: RimWorld.LordJob_Ritual
IL_0000: Local var 25: Verse.DamageInfo
IL_0000: Local var 26: Verse.Rot4
IL_0000: Local var 27: Verse.Hediff
IL_0000: Local var 28: Verse.Hediff
IL_0000: Local var 29: RimWorld.CompRottable
IL_0000: Local var 30: System.Boolean
IL_0000: Local var 31: System.Exception
IL_0000: Local var 32: System.Exception
IL_0000: Local var 33: System.Boolean
IL_0000: ldc.i4 0
IL_0005: stloc 33 (System.Boolean)
IL_0009: ldc.i4.1
IL_000A: stloc 33 (System.Boolean)
IL_000E: ldloc 33 (System.Boolean)
IL_0012: brfalse => Label1
IL_0017: ldarg.0
IL_0018: call static System.Boolean VFECore.Patch_Kill::Prefix(Verse.Pawn
__instance)
IL_001D: stloc 33 (System.Boolean)
IL_0021: Label1
IL_0021: nop
IL_0022: ldloc 33 (System.Boolean)
IL_0026: brfalse => Label2
IL_002B: ldarga 0
IL_002F: ldarg 1
IL_0033: ldarg 2
IL_0037: call static System.Boolean
ATReforged.Kill_Patch::Listener(Verse.Pawn& __instance,
System.Nullable`1<Verse.DamageInfo> dinfo, Verse.Hediff exactCulprit)
IL_003C: stloc 33 (System.Boolean)
IL_0040: Label2
IL_0040: nop
IL_0041: ldloc 33 (System.Boolean)
IL_0045: brfalse => Label3
IL_004A: ldarg.0
IL_004B: ldarg 1
IL_004F: ldarg 2
IL_0053: call static System.Void
VanillaStorytellersExpanded.Patch_Kill::Prefix(Verse.Pawn __instance,
System.Nullable`1<Verse.DamageInfo> dinfo, Verse.Hediff exactCulprit)
IL_0058: Label3
IL_0058: nop
IL_0059: ldloc 33 (System.Boolean)
IL_005D: brfalse => Label4
IL_0062: ldarg 1
IL_0066: ldarg 2
IL_006A: ldarg.0
IL_006B: call static System.Boolean
VAE_Accessories.HarmonyPatches::BeltsOnDeath(System.Nullable`1<Verse.DamageInfo>
dinfo, Verse.Hediff exactCulprit, Verse.Pawn __instance)
IL_0070: stloc 33 (System.Boolean)
IL_0074: Label4
IL_0074: nop
IL_0075: ldloc 33 (System.Boolean)
IL_0079: brfalse => Label0
IL_007E: // start original
IL_007E: ldc.i4.0
IL_007F: stloc.0
.try
{
IL_0080: ldc.i4.1
IL_0081: stloc.0
IL_0082: ldarg.0
IL_0083: call Verse.IntVec3 Verse.Thing::get_PositionHeld()
IL_0088: stloc.1
IL_0089: ldarg.0
IL_008A: call virtual Verse.Map Verse.Thing::get_Map()
IL_008F: stloc.2
IL_0090: ldarg.0
IL_0091: call Verse.Map Verse.Thing::get_MapHeld()
IL_0096: stloc.3
IL_0097: ldarg.0
IL_0098: call System.Boolean Verse.Thing::get_Spawned()
IL_009D: stloc.s 4 (System.Boolean)
IL_009F: ldarg.0
IL_00A0: call System.Boolean
Verse.Thing::get_SpawnedOrAnyParentSpawned()
IL_00A5: stloc.s 5 (System.Boolean)
IL_00A7: ldarg.0
IL_00A8: call static System.Boolean
RimWorld.Planet.WorldPawnsUtility::IsWorldPawn(Verse.Pawn p)
IL_00AD: stloc.s 6 (System.Boolean)
IL_00AF: ldarg.0
IL_00B0: ldfld RimWorld.Pawn_GuiltTracker Verse.Pawn::guilt
IL_00B5: dup
IL_00B6: brtrue => Label5
IL_00BB: pop
IL_00BC: ldloca.s 22 (System.Nullable`1[System.Boolean])
IL_00BE: initobj System.Nullable`1[System.Boolean]
IL_00C4: ldloc.s 22 (System.Nullable`1[System.Boolean])
IL_00C6: br => Label6
IL_00CB: Label5
IL_00CB: call System.Boolean RimWorld.Pawn_GuiltTracker::get_IsGuilty()
IL_00D0: newobj System.Void
System.Nullable`1<System.Boolean>::.ctor(System.Boolean value)
IL_00D5: Label6
IL_00D5: stloc.s 7 (System.Nullable`1[System.Boolean])
IL_00D7: ldarg.0
IL_00D8: call static RimWorld.Planet.Caravan
RimWorld.Planet.CaravanUtility::GetCaravan(Verse.Pawn pawn)
IL_00DD: stloc.s 8 (RimWorld.Planet.Caravan)
IL_00DF: ldnull
IL_00E0: stloc.s 9 (RimWorld.Building_Grave)
IL_00E2: ldarg.0
IL_00E3: ldfld RimWorld.Pawn_Ownership Verse.Pawn::ownership
IL_00E8: brfalse => Label7
IL_00ED: ldarg.0
IL_00EE: ldfld RimWorld.Pawn_Ownership Verse.Pawn::ownership
IL_00F3: callvirt RimWorld.Building_Grave
RimWorld.Pawn_Ownership::get_AssignedGrave()
IL_00F8: stloc.s 9 (RimWorld.Building_Grave)
IL_00FA: Label7
IL_00FA: ldarg.0
IL_00FB: call static RimWorld.Building_Bed
RimWorld.RestUtility::CurrentBed(Verse.Pawn p)
IL_0100: stloc.s 10 (RimWorld.Building_Bed)
IL_0102: ldnull
IL_0103: stloc.s 11 (Verse.ThingOwner)
IL_0105: ldarg.0
IL_0106: call System.Boolean Verse.Pawn::get_InContainerEnclosed()
IL_010B: stloc.s 12 (System.Boolean)
IL_010D: ldloc.s 12 (System.Boolean)
IL_010F: brfalse => Label8
IL_0114: ldarg.0
IL_0115: ldfld Verse.ThingOwner Verse.Thing::holdingOwner
IL_011A: stloc.s 11 (Verse.ThingOwner)
IL_011C: ldloc.s 11 (Verse.ThingOwner)
IL_011E: ldarg.0
IL_011F: callvirt abstract virtual System.Boolean
Verse.ThingOwner::Remove(Verse.Thing item)
IL_0124: pop
IL_0125: Label8
IL_0125: ldc.i4.0
IL_0126: stloc.s 13 (System.Boolean)
IL_0128: ldc.i4.0
IL_0129: stloc.s 14 (System.Boolean)
IL_012B: ldc.i4.0
IL_012C: stloc.s 15 (System.Boolean)
IL_012E: call static Verse.ProgramState
Verse.Current::get_ProgramState()
IL_0133: ldc.i4.2
IL_0134: bne.un => Label9
IL_0139: ldloc.2
IL_013A: brfalse => Label10
IL_013F: ldloc.2
IL_0140: ldfld Verse.DesignationManager Verse.Map::designationManager
IL_0145: ldarg.0
IL_0146: ldsfld Verse.DesignationDef RimWorld.DesignationDefOf::Hunt
IL_014B: callvirt Verse.Designation
Verse.DesignationManager::DesignationOn(Verse.Thing t, Verse.DesignationDef def)
IL_0150: ldnull
IL_0151: cgt.un
IL_0153: stloc.s 13 (System.Boolean)
IL_0155: ldarg.0
IL_0156: call static System.Boolean
RimWorld.PawnUtility::ShouldBeSlaughtered(Verse.Pawn pawn)
IL_015B: stloc.s 14 (System.Boolean)
IL_015D: ldloc.2
IL_015E: ldfld Verse.AI.Group.LordManager Verse.Map::lordManager
IL_0163: ldfld System.Collections.Generic.List`1<Verse.AI.Group.Lord>
Verse.AI.Group.LordManager::lords
IL_0168: callvirt
System.Collections.Generic.Enumerator<Verse.AI.Group.Lord>
System.Collections.Generic.List`1<Verse.AI.Group.Lord>::GetEnumerator()
IL_016D: stloc.s 23
(System.Collections.Generic.List`1+Enumerator[Verse.AI.Group.Lord])
.try
{
IL_016F: br => Label11
IL_0174: Label15
IL_0174: ldloca.s 23
(System.Collections.Generic.List`1+Enumerator[Verse.AI.Group.Lord])
IL_0176: call virtual Verse.AI.Group.Lord
System.Collections.Generic.Enumerator<Verse.AI.Group.Lord>::get_Current()
IL_017B: callvirt Verse.AI.Group.LordJob
Verse.AI.Group.Lord::get_LordJob()
IL_0180: isinst RimWorld.LordJob_Ritual
IL_0185: dup
IL_0186: stloc.s 24 (RimWorld.LordJob_Ritual)
IL_0188: brfalse => Label12
IL_018D: ldloc.s 24 (RimWorld.LordJob_Ritual)
IL_018F: ldfld System.Collections.Generic.List`1<Verse.Pawn>
RimWorld.LordJob_Ritual::pawnsDeathIgnored
IL_0194: ldarg.0
IL_0195: callvirt virtual System.Boolean
System.Collections.Generic.List`1<Verse.Pawn>::Contains(Verse.Pawn item)
IL_019A: brfalse => Label13
IL_019F: ldc.i4.1
IL_01A0: stloc.s 15 (System.Boolean)
IL_01A2: br => Label14
IL_01A7: Label11
IL_01A7: Label12
IL_01A7: Label13
IL_01A7: ldloca.s 23
(System.Collections.Generic.List`1+Enumerator[Verse.AI.Group.Lord])
IL_01A9: call virtual System.Boolean
System.Collections.Generic.Enumerator<Verse.AI.Group.Lord>::MoveNext()
IL_01AE: brtrue => Label15
IL_01B3: Label14
IL_01B3: leave => Label16
IL_01B8: leave => (autogenerated)
} // end try
.finally
{
IL_01BD: ldloca.s 23
(System.Collections.Generic.List`1+Enumerator[Verse.AI.Group.Lord])
IL_01BF: constrained.
System.Collections.Generic.List`1+Enumerator[Verse.AI.Group.Lord]
IL_01C5: callvirt abstract virtual System.Void
System.IDisposable::Dispose()
IL_01CA: endfinally
IL_01CB: leave => (autogenerated)
} // end handler
IL_01CC: Label9
IL_01CC: Label10
IL_01CC: Label16
IL_01CC: ldarg.0
IL_01CD: call static System.Boolean
RimWorld.PawnUtility::ShouldSendNotificationAbout(Verse.Pawn p)
IL_01D2: brfalse => Label17
IL_01D7: ldloc.s 14 (System.Boolean)
IL_01D9: ldloc.s 15 (System.Boolean)
IL_01DB: or
IL_01DC: brfalse => Label18
IL_01E1: ldarga.s 1
IL_01E3: call System.Boolean
System.Nullable`1<Verse.DamageInfo>::get_HasValue()
IL_01E8: brfalse => Label19
IL_01ED: ldarga.s 1
IL_01EF: call Verse.DamageInfo
System.Nullable`1<Verse.DamageInfo>::get_Value()
IL_01F4: stloc.s 25 (Verse.DamageInfo)
IL_01F6: ldloca.s 25 (Verse.DamageInfo)
IL_01F8: call Verse.DamageDef Verse.DamageInfo::get_Def()
IL_01FD: ldsfld Verse.DamageDef RimWorld.DamageDefOf::ExecutionCut
IL_0202: beq => Label20
IL_0207: Label18
IL_0207: Label19
IL_0207: ldarg.0
IL_0208: call System.Boolean Verse.Pawn::get_ForceNoDeathNotification()
IL_020D: ldc.i4.0
IL_020E: ceq
IL_0210: br => Label21
IL_0215: Label17
IL_0215: Label20
IL_0215: ldc.i4.0
IL_0216: Label21
IL_0216: stloc.s 16 (System.Boolean)
IL_0218: ldc.r4 0
IL_021D: stloc.s 17 (System.Single)
IL_021F: ldarg.0
IL_0220: ldsfld Verse.ThingDef RimWorld.ThingDefOf::Fire
IL_0225: call static Verse.Thing
Verse.AttachmentUtility::GetAttachment(Verse.Thing t, Verse.ThingDef def)
IL_022A: stloc.s 18 (Verse.Thing)
IL_022C: ldloc.s 18 (Verse.Thing)
IL_022E: brfalse => Label22
IL_0233: ldloc.s 18 (Verse.Thing)
IL_0235: castclass RimWorld.Fire
IL_023A: callvirt virtual System.Single RimWorld.Fire::CurrentSize()
IL_023F: stloc.s 17 (System.Single)
IL_0241: Label22
IL_0241: ldc.i4.2
IL_0242: stloc.0
IL_0243: ldarg.0
IL_0244: ldarg.1
IL_0245: ldarg.2
IL_0246: ldloc.s 4 (System.Boolean)
IL_0248: call System.Void
Verse.Pawn::DoKillSideEffects(System.Nullable`1<Verse.DamageInfo> dinfo,
Verse.Hediff exactCulprit, System.Boolean spawned)
IL_024D: ldc.i4.3
IL_024E: stloc.0
IL_024F: ldarg.0
IL_0250: ldarg.1
IL_0251: ldloc.2
IL_0252: call System.Void
Verse.Pawn::PreDeathPawnModifications(System.Nullable`1<Verse.DamageInfo> dinfo,
Verse.Map map)
IL_0257: ldc.i4.4
IL_0258: stloc.0
IL_0259: ldarg.0
IL_025A: ldarg.1
IL_025B: ldloca.s 2 (Verse.Map)
IL_025D: ldloca.s 4 (System.Boolean)
IL_025F: call System.Void
Verse.Pawn::DropBeforeDying(System.Nullable`1<Verse.DamageInfo> dinfo, Verse.Map&
map, System.Boolean& spawned)
IL_0264: ldc.i4.5
IL_0265: stloc.0
IL_0266: ldarg.0
IL_0267: ldfld Verse.Pawn_HealthTracker Verse.Pawn::health
IL_026C: callvirt System.Void Verse.Pawn_HealthTracker::SetDead()
IL_0271: ldarg.0
IL_0272: ldfld Verse.Pawn_HealthTracker Verse.Pawn::health
IL_0277: ldfld Verse.Effecter
Verse.Pawn_HealthTracker::deflectionEffecter
IL_027C: brfalse => Label23
IL_0281: ldarg.0
IL_0282: ldfld Verse.Pawn_HealthTracker Verse.Pawn::health
IL_0287: ldfld Verse.Effecter
Verse.Pawn_HealthTracker::deflectionEffecter
IL_028C: callvirt System.Void Verse.Effecter::Cleanup()
IL_0291: ldarg.0
IL_0292: ldfld Verse.Pawn_HealthTracker Verse.Pawn::health
IL_0297: ldnull
IL_0298: stfld Verse.Effecter
Verse.Pawn_HealthTracker::deflectionEffecter
IL_029D: Label23
IL_029D: ldarg.0
IL_029E: ldfld Verse.Pawn_HealthTracker Verse.Pawn::health
IL_02A3: ldfld Verse.Effecter Verse.Pawn_HealthTracker::woundedEffecter
IL_02A8: brfalse => Label24
IL_02AD: ldarg.0
IL_02AE: ldfld Verse.Pawn_HealthTracker Verse.Pawn::health
IL_02B3: ldfld Verse.Effecter Verse.Pawn_HealthTracker::woundedEffecter
IL_02B8: callvirt System.Void Verse.Effecter::Cleanup()
IL_02BD: ldarg.0
IL_02BE: ldfld Verse.Pawn_HealthTracker Verse.Pawn::health
IL_02C3: ldnull
IL_02C4: stfld Verse.Effecter Verse.Pawn_HealthTracker::woundedEffecter
IL_02C9: Label24
IL_02C9: ldloc.s 8 (RimWorld.Planet.Caravan)
IL_02CB: brfalse => Label25
IL_02D0: ldloc.s 8 (RimWorld.Planet.Caravan)
IL_02D2: ldarg.0
IL_02D3: callvirt virtual System.Void
RimWorld.Planet.Caravan::Notify_MemberDied(Verse.Pawn member)
IL_02D8: Label25
IL_02D8: ldarg.0
IL_02D9: call static Verse.AI.Group.Lord
Verse.AI.Group.LordUtility::GetLord(Verse.Pawn p)
IL_02DE: stloc.s 19 (Verse.AI.Group.Lord)
IL_02E0: ldloc.s 19 (Verse.AI.Group.Lord)
IL_02E2: brfalse => Label26
IL_02E7: ldloc.s 19 (Verse.AI.Group.Lord)
IL_02E9: ldarg.0
IL_02EA: ldc.i4.3
IL_02EB: ldarg.1
IL_02EC: callvirt System.Void
Verse.AI.Group.Lord::Notify_PawnLost(Verse.Pawn pawn,
Verse.AI.Group.PawnLostCondition cond, System.Nullable`1<Verse.DamageInfo> dinfo)
IL_02F1: Label26
IL_02F1: ldloc.s 4 (System.Boolean)
IL_02F3: brfalse => Label27
IL_02F8: ldarg.0
IL_02F9: ldc.i4.0
IL_02FA: ldc.i4.0
IL_02FB: call System.Void
Verse.Pawn::DropAndForbidEverything(System.Boolean
keepInventoryAndEquipmentIfInBed, System.Boolean rememberPrimary)
IL_0300: Label27
IL_0300: ldloc.s 4 (System.Boolean)
IL_0302: brfalse => Label28
IL_0307: ldarg.0
IL_0308: ldloc.2
IL_0309: ldc.i4.2
IL_030A: ldnull
IL_030B: call static System.Void
RimWorld.GenLeaving::DoLeavingsFor(Verse.Thing diedThing, Verse.Map map,
Verse.DestroyMode mode, System.Collections.Generic.List`1<Verse.Thing>
listOfLeavingsOut)
IL_0310: Label28
IL_0310: ldarg.0
IL_0311: ldc.i4.0
IL_0312: call System.Boolean
Verse.Thing::DeSpawnOrDeselect(Verse.DestroyMode mode)
IL_0317: ldarg.0
IL_0318: ldfld RimWorld.Pawn_RoyaltyTracker Verse.Pawn::royalty
IL_031D: brfalse => Label29
IL_0322: ldarg.0
IL_0323: ldfld RimWorld.Pawn_RoyaltyTracker Verse.Pawn::royalty
IL_0328: callvirt System.Void
RimWorld.Pawn_RoyaltyTracker::Notify_PawnKilled()
IL_032D: Label29
IL_032D: ldnull
IL_032E: stloc.s 20 (Verse.Corpse)
IL_0330: ldarg.0
IL_0331: call static System.Boolean
Verse.PawnGenerator::IsPawnBeingGeneratedAndNotAllowsDead(Verse.Pawn pawn)
IL_0336: brtrue => Label30
IL_033B: ldloc.s 12 (System.Boolean)
IL_033D: brfalse => Label31
IL_0342: ldarg.0
IL_0343: ldloc.s 9 (RimWorld.Building_Grave)
IL_0345: ldloc.s 10 (RimWorld.Building_Bed)
IL_0347: call Verse.Corpse
Verse.Pawn::MakeCorpse(RimWorld.Building_Grave assignedGrave, RimWorld.Building_Bed
currentBed)
IL_034C: stloc.s 20 (Verse.Corpse)
IL_034E: ldloc.s 11 (Verse.ThingOwner)
IL_0350: ldloc.s 20 (Verse.Corpse)
IL_0352: ldc.i4.1
IL_0353: callvirt abstract virtual System.Boolean
Verse.ThingOwner::TryAdd(Verse.Thing item, System.Boolean
canMergeWithExistingStacks)
IL_0358: brtrue => Label32
IL_035D: ldloc.s 20 (Verse.Corpse)
IL_035F: ldc.i4.0
IL_0360: callvirt virtual System.Void
Verse.Thing::Destroy(Verse.DestroyMode mode)
IL_0365: ldnull
IL_0366: stloc.s 20 (Verse.Corpse)
IL_0368: br => Label33
IL_036D: Label31
IL_036D: ldloc.s 5 (System.Boolean)
IL_036F: brfalse => Label34
IL_0374: ldarg.0
IL_0375: ldfld Verse.ThingOwner Verse.Thing::holdingOwner
IL_037A: brfalse => Label35
IL_037F: ldarg.0
IL_0380: ldfld Verse.ThingOwner Verse.Thing::holdingOwner
IL_0385: ldarg.0
IL_0386: callvirt abstract virtual System.Boolean
Verse.ThingOwner::Remove(Verse.Thing item)
IL_038B: pop
IL_038C: Label35
IL_038C: ldarg.0
IL_038D: ldloc.s 9 (RimWorld.Building_Grave)
IL_038F: ldloc.s 10 (RimWorld.Building_Bed)
IL_0391: call Verse.Corpse
Verse.Pawn::MakeCorpse(RimWorld.Building_Grave assignedGrave, RimWorld.Building_Bed
currentBed)
IL_0396: stloc.s 20 (Verse.Corpse)
IL_0398: ldloc.s 20 (Verse.Corpse)
IL_039A: ldloc.1
IL_039B: ldloc.3
IL_039C: ldc.i4.0
IL_039D: ldnull
IL_039E: ldnull
IL_039F: ldloca.s 26 (Verse.Rot4)
IL_03A1: initobj Verse.Rot4
IL_03A7: ldloc.s 26 (Verse.Rot4)
IL_03A9: call static System.Boolean
Verse.GenPlace::TryPlaceThing(Verse.Thing thing, Verse.IntVec3 center, Verse.Map
map, Verse.ThingPlaceMode mode, System.Action`2<Verse.Thing, System.Int32>
placedAction, System.Predicate`1<Verse.IntVec3> nearPlaceValidator, Verse.Rot4 rot)
IL_03AE: brfalse => Label36
IL_03B3: ldloc.s 20 (Verse.Corpse)
IL_03B5: ldarg.0
IL_03B6: call Verse.Rot4 Verse.Thing::get_Rotation()
IL_03BB: callvirt System.Void Verse.Thing::set_Rotation(Verse.Rot4 value)
IL_03C0: ldarg.0
IL_03C1: ldarg.1
IL_03C2: call static System.Boolean
RimWorld.HuntJobUtility::WasKilledByHunter(Verse.Pawn pawn,
System.Nullable`1<Verse.DamageInfo> dinfo)
IL_03C7: brfalse => Label37
IL_03CC: ldarga.s 1
IL_03CE: call Verse.DamageInfo
System.Nullable`1<Verse.DamageInfo>::get_Value()
IL_03D3: stloc.s 25 (Verse.DamageInfo)
IL_03D5: ldloca.s 25 (Verse.DamageInfo)
IL_03D7: call Verse.Thing Verse.DamageInfo::get_Instigator()
IL_03DC: castclass Verse.Pawn
IL_03E1: ldloc.s 20 (Verse.Corpse)
IL_03E3: call static Verse.LocalTargetInfo
Verse.LocalTargetInfo::op_Implicit(Verse.Thing t)
IL_03E8: ldarga.s 1
IL_03EA: call Verse.DamageInfo
System.Nullable`1<Verse.DamageInfo>::get_Value()
IL_03EF: stloc.s 25 (Verse.DamageInfo)
IL_03F1: ldloca.s 25 (Verse.DamageInfo)
IL_03F3: call Verse.Thing Verse.DamageInfo::get_Instigator()
IL_03F8: castclass Verse.Pawn
IL_03FD: callvirt Verse.AI.Job Verse.Pawn::get_CurJob()
IL_0402: ldc.i4.1
IL_0403: ldc.i4.m1
IL_0404: ldnull
IL_0405: ldc.i4.1
IL_0406: call static System.Boolean
Verse.AI.ReservationUtility::Reserve(Verse.Pawn p, Verse.LocalTargetInfo target,
Verse.AI.Job job, System.Int32 maxPawns, System.Int32 stackCount,
Verse.ReservationLayerDef layer, System.Boolean errorOnFailed)
IL_040B: pop
IL_040C: br => Label38
IL_0411: Label37
IL_0411: ldloc.s 13 (System.Boolean)
IL_0413: brtrue => Label39
IL_0418: ldloc.s 14 (System.Boolean)
IL_041A: brtrue => Label40
IL_041F: ldloc.s 20 (Verse.Corpse)
IL_0421: call static System.Void
RimWorld.ForbidUtility::SetForbiddenIfOutsideHomeArea(Verse.Thing t)
IL_0426: Label38
IL_0426: Label39
IL_0426: Label40
IL_0426: ldloc.s 17 (System.Single)
IL_0428: ldc.r4 0
IL_042D: ble.un => Label41
IL_0432: ldloc.s 20 (Verse.Corpse)
IL_0434: callvirt virtual Verse.IntVec3 Verse.Thing::get_Position()
IL_0439: ldloc.s 20 (Verse.Corpse)
IL_043B: callvirt virtual Verse.Map Verse.Thing::get_Map()
IL_0440: ldloc.s 17 (System.Single)
IL_0442: call static System.Boolean
RimWorld.FireUtility::TryStartFireIn(Verse.IntVec3 c, Verse.Map map, System.Single
fireSize)
IL_0447: pop
IL_0448: br => Label42
IL_044D: Label36
IL_044D: ldloc.s 20 (Verse.Corpse)
IL_044F: ldc.i4.0
IL_0450: callvirt virtual System.Void
Verse.Thing::Destroy(Verse.DestroyMode mode)
IL_0455: ldnull
IL_0456: stloc.s 20 (Verse.Corpse)
IL_0458: br => Label43
IL_045D: Label34
IL_045D: ldloc.s 8 (RimWorld.Planet.Caravan)
IL_045F: brfalse => Label44
IL_0464: ldloc.s 8 (RimWorld.Planet.Caravan)
IL_0466: callvirt System.Boolean RimWorld.Planet.WorldObject::get_Spawned()
IL_046B: brfalse => Label45
IL_0470: ldarg.0
IL_0471: ldloc.s 9 (RimWorld.Building_Grave)
IL_0473: ldloc.s 10 (RimWorld.Building_Bed)
IL_0475: call Verse.Corpse
Verse.Pawn::MakeCorpse(RimWorld.Building_Grave assignedGrave, RimWorld.Building_Bed
currentBed)
IL_047A: stloc.s 20 (Verse.Corpse)
IL_047C: ldloc.s 8 (RimWorld.Planet.Caravan)
IL_047E: ldloc.s 20 (Verse.Corpse)
IL_0480: ldc.i4.1
IL_0481: callvirt System.Void
RimWorld.Planet.Caravan::AddPawnOrItem(Verse.Thing thing, System.Boolean
addCarriedPawnToWorldPawnsIfAny)
IL_0486: br => Label46
IL_048B: Label44
IL_048B: Label45
IL_048B: ldarg.0
IL_048C: ldfld Verse.ThingOwner Verse.Thing::holdingOwner
IL_0491: brtrue => Label47
IL_0496: ldarg.0
IL_0497: call static System.Boolean
RimWorld.Planet.WorldPawnsUtility::IsWorldPawn(Verse.Pawn p)
IL_049C: brfalse => Label48
IL_04A1: Label47
IL_04A1: ldarg.0
IL_04A2: call static System.Void
Verse.Corpse::PostCorpseDestroy(Verse.Pawn pawn)
IL_04A7: br => Label49
IL_04AC: Label48
IL_04AC: ldarg.0
IL_04AD: ldloc.s 9 (RimWorld.Building_Grave)
IL_04AF: ldloc.s 10 (RimWorld.Building_Bed)
IL_04B1: call Verse.Corpse
Verse.Pawn::MakeCorpse(RimWorld.Building_Grave assignedGrave, RimWorld.Building_Bed
currentBed)
IL_04B6: stloc.s 20 (Verse.Corpse)
IL_04B8: Label30
IL_04B8: Label32
IL_04B8: Label33
IL_04B8: Label41
IL_04B8: Label42
IL_04B8: Label43
IL_04B8: Label46
IL_04B8: Label49
IL_04B8: ldloc.s 20 (Verse.Corpse)
IL_04BA: brfalse => Label50
IL_04BF: ldarg.0
IL_04C0: ldfld Verse.Pawn_HealthTracker Verse.Pawn::health
IL_04C5: ldfld Verse.HediffSet Verse.Pawn_HealthTracker::hediffSet
IL_04CA: ldsfld Verse.HediffDef RimWorld.HediffDefOf::ToxicBuildup
IL_04CF: ldc.i4.0
IL_04D0: callvirt Verse.Hediff
Verse.HediffSet::GetFirstHediffOfDef(Verse.HediffDef def, System.Boolean
mustBeVisible)
IL_04D5: stloc.s 27 (Verse.Hediff)
IL_04D7: ldarg.0
IL_04D8: ldfld Verse.Pawn_HealthTracker Verse.Pawn::health
IL_04DD: ldfld Verse.HediffSet Verse.Pawn_HealthTracker::hediffSet
IL_04E2: ldsfld Verse.HediffDef RimWorld.HediffDefOf::Scaria
IL_04E7: ldc.i4.0
IL_04E8: callvirt Verse.Hediff
Verse.HediffSet::GetFirstHediffOfDef(Verse.HediffDef def, System.Boolean
mustBeVisible)
IL_04ED: stloc.s 28 (Verse.Hediff)
IL_04EF: ldloc.s 20 (Verse.Corpse)
IL_04F1: callvirt RimWorld.CompRottable Verse.ThingWithComps::GetComp()
IL_04F6: dup
IL_04F7: stloc.s 29 (RimWorld.CompRottable)
IL_04F9: brfalse => Label51
IL_04FE: ldloc.s 27 (Verse.Hediff)
IL_0500: brfalse => Label52
IL_0505: call static System.Single Verse.Rand::get_Value()
IL_050A: ldloc.s 27 (Verse.Hediff)
IL_050C: callvirt virtual System.Single Verse.Hediff::get_Severity()
IL_0511: blt => Label53
IL_0516: Label52
IL_0516: ldloc.s 28 (Verse.Hediff)
IL_0518: brfalse => Label54
IL_051D: call static RimWorld.Storyteller Verse.Find::get_Storyteller()
IL_0522: ldfld RimWorld.Difficulty RimWorld.Storyteller::difficulty
IL_0527: ldfld System.Single RimWorld.Difficulty::scariaRotChance
IL_052C: call static System.Boolean Verse.Rand::Chance(System.Single
chance)
IL_0531: brfalse => Label55
IL_0536: Label53
IL_0536: ldloc.s 29 (RimWorld.CompRottable)
IL_0538: callvirt System.Void RimWorld.CompRottable::RotImmediately()
IL_053D: Label50
IL_053D: Label51
IL_053D: Label54
IL_053D: Label55
IL_053D: ldarg.0
IL_053E: call System.Boolean Verse.Thing::get_Destroyed()
IL_0543: brtrue => Label56
IL_0548: ldarg.0
IL_0549: ldc.i4.2
IL_054A: callvirt virtual System.Void
Verse.Thing::Destroy(Verse.DestroyMode mode)
IL_054F: Label56
IL_054F: ldarg.0
IL_0550: call static System.Void
RimWorld.PawnComponentsUtility::RemoveComponentsOnKilled(Verse.Pawn pawn)
IL_0555: ldarg.0
IL_0556: ldfld Verse.Pawn_HealthTracker Verse.Pawn::health
IL_055B: ldfld Verse.HediffSet Verse.Pawn_HealthTracker::hediffSet
IL_0560: callvirt System.Void Verse.HediffSet::DirtyCache()
IL_0565: ldarg.0
IL_0566: call static System.Void
RimWorld.PortraitsCache::SetDirty(Verse.Pawn pawn)
IL_056B: ldarg.0
IL_056C: call static System.Boolean
Verse.GlobalTextureAtlasManager::TryMarkPawnFrameSetDirty(Verse.Pawn pawn)
IL_0571: pop
IL_0572: brfalse => Label57
IL_0577: ldloc.s 20 (Verse.Corpse)
IL_0579: brfalse => Label58
IL_057E: call static RimWorld.Selector Verse.Find::get_Selector()
IL_0583: ldloc.s 20 (Verse.Corpse)
IL_0585: ldc.i4.0
IL_0586: ldc.i4.0
IL_0587: callvirt System.Void RimWorld.Selector::Select(System.Object obj,
System.Boolean playSound, System.Boolean forceDesignatorDeselect)
IL_058C: Label57
IL_058C: Label58
IL_058C: ldc.i4.6
IL_058D: stloc.0
IL_058E: ldarg.0
IL_058F: ldfld Verse.Pawn_HealthTracker Verse.Pawn::health
IL_0594: ldfld Verse.HediffSet Verse.Pawn_HealthTracker::hediffSet
IL_0599: callvirt System.Void Verse.HediffSet::Notify_PawnDied()
IL_059E: ldarg.0
IL_059F: ldfld RimWorld.Pawn_GeneTracker Verse.Pawn::genes
IL_05A4: dup
IL_05A5: brtrue => Label59
IL_05AA: pop
IL_05AB: br => Label60
IL_05B0: Label59
IL_05B0: call System.Void RimWorld.Pawn_GeneTracker::Notify_PawnDied()
IL_05B5: Label60
IL_05B5: ldarg.0
IL_05B6: call RimWorld.Faction Verse.Pawn::get_HomeFaction()
IL_05BB: stloc.s 21 (RimWorld.Faction)
IL_05BD: ldloc.s 21 (RimWorld.Faction)
IL_05BF: brfalse => Label61
IL_05C4: ldloc.s 21 (RimWorld.Faction)
IL_05C6: ldarg.0
IL_05C7: ldarg.1
IL_05C8: ldloc.s 6 (System.Boolean)
IL_05CA: ldloc.s 7 (System.Nullable`1[System.Boolean])
IL_05CC: stloc.s 22 (System.Nullable`1[System.Boolean])
IL_05CE: ldc.i4.1
IL_05CF: stloc.s 30 (System.Boolean)
IL_05D1: ldloca.s 22 (System.Nullable`1[System.Boolean])
IL_05D3: call System.Boolean
System.Nullable`1<System.Boolean>::GetValueOrDefault()
IL_05D8: ldloc.s 30 (System.Boolean)
IL_05DA: ceq
IL_05DC: ldloca.s 22 (System.Nullable`1[System.Boolean])
IL_05DE: call System.Boolean
System.Nullable`1<System.Boolean>::get_HasValue()
IL_05E3: and
IL_05E4: ldloc.3
IL_05E5: callvirt System.Void
RimWorld.Faction::Notify_MemberDied(Verse.Pawn member,
System.Nullable`1<Verse.DamageInfo> dinfo, System.Boolean wasWorldPawn,
System.Boolean wasGuilty, Verse.Map map)
IL_05EA: Label61
IL_05EA: ldloc.s 20 (Verse.Corpse)
IL_05EC: brfalse => Label62
IL_05F1: ldarg.0
IL_05F2: call Verse.RaceProperties Verse.Pawn::get_RaceProps()
IL_05F7: callvirt Verse.DeathActionWorker
Verse.RaceProperties::get_DeathActionWorker()
IL_05FC: ldnull
IL_05FD: cgt.un
IL_05FF: ldloc.s 4 (System.Boolean)
IL_0601: and
IL_0602: brfalse => Label63
IL_0607: ldarg.0
IL_0608: call Verse.RaceProperties Verse.Pawn::get_RaceProps()
IL_060D: callvirt Verse.DeathActionWorker
Verse.RaceProperties::get_DeathActionWorker()
IL_0612: ldloc.s 20 (Verse.Corpse)
IL_0614: callvirt abstract virtual System.Void
Verse.DeathActionWorker::PawnDied(Verse.Corpse corpse)
IL_0619: Label63
IL_0619: call static RimWorld.Scenario Verse.Find::get_Scenario()
IL_061E: brfalse => Label64
IL_0623: call static RimWorld.Scenario Verse.Find::get_Scenario()
IL_0628: ldloc.s 20 (Verse.Corpse)
IL_062A: callvirt System.Void
RimWorld.Scenario::Notify_PawnDied(Verse.Corpse corpse)
IL_062F: Label62
IL_062F: Label64
IL_062F: ldarg.0
IL_0630: call virtual RimWorld.Faction Verse.Thing::get_Faction()
IL_0635: brfalse => Label65
IL_063A: ldarg.0
IL_063B: call virtual RimWorld.Faction Verse.Thing::get_Faction()
IL_0640: callvirt System.Boolean RimWorld.Faction::get_IsPlayer()
IL_0645: brfalse => Label66
IL_064A: ldarg.0
IL_064B: call static System.Void
RimWorld.BillUtility::Notify_ColonistUnavailable(Verse.Pawn pawn)
IL_0650: Label65
IL_0650: Label66
IL_0650: ldloc.s 5 (System.Boolean)
IL_0652: brfalse => Label67
IL_0657: ldarg.0
IL_0658: ldloc.3
IL_0659: call static System.Void
RimWorld.GenHostility::Notify_PawnLostForTutor(Verse.Pawn pawn, Verse.Map map)
IL_065E: Label67
IL_065E: ldarg.0
IL_065F: call virtual RimWorld.Faction Verse.Thing::get_Faction()
IL_0664: brfalse => Label68
IL_0669: ldarg.0
IL_066A: call virtual RimWorld.Faction Verse.Thing::get_Faction()
IL_066F: callvirt System.Boolean RimWorld.Faction::get_IsPlayer()
IL_0674: brfalse => Label69
IL_0679: call static Verse.ProgramState
Verse.Current::get_ProgramState()
IL_067E: ldc.i4.2
IL_067F: bne.un => Label70
IL_0684: call static RimWorld.ColonistBar Verse.Find::get_ColonistBar()
IL_0689: callvirt System.Void RimWorld.ColonistBar::MarkColonistsDirty()
IL_068E: Label68
IL_068E: Label69
IL_068E: Label70
IL_068E: ldarg.0
IL_068F: ldfld RimWorld.Pawn_PsychicEntropyTracker
Verse.Pawn::psychicEntropy
IL_0694: dup
IL_0695: brtrue => Label71
IL_069A: pop
IL_069B: br => Label72
IL_06A0: Label71
IL_06A0: call System.Void
RimWorld.Pawn_PsychicEntropyTracker::Notify_PawnDied()
IL_06A5: Label72
IL_06A5: nop
.try
{
IL_06A6: ldarg.0
IL_06A7: call RimWorld.Ideo Verse.Pawn::get_Ideo()
IL_06AC: dup
IL_06AD: brtrue => Label73
IL_06B2: pop
IL_06B3: br => Label74
IL_06B8: Label73
IL_06B8: ldarg.0
IL_06B9: call System.Void
RimWorld.Ideo::Notify_MemberDied(Verse.Pawn member)
IL_06BE: Label74
IL_06BE: ldarg.0
IL_06BF: call RimWorld.Ideo Verse.Pawn::get_Ideo()
IL_06C4: dup
IL_06C5: brtrue => Label75
IL_06CA: pop
IL_06CB: br => Label76
IL_06D0: Label75
IL_06D0: ldarg.0
IL_06D1: ldloc.2
IL_06D2: call System.Void
RimWorld.Ideo::Notify_MemberLost(Verse.Pawn member, Verse.Map map)
IL_06D7: Label76
IL_06D7: leave => Label77
IL_06DC: leave => (autogenerated)
} // end try
.catch System.Exception
{
IL_06E1: stloc.s 31 (System.Exception)
IL_06E3: ldstr "Error while notifying ideo of pawn death: "
IL_06E8: ldloc.s 31 (System.Exception)
IL_06EA: call static System.String
System.String::Concat(System.Object arg0, System.Object arg1)
IL_06EF: call static System.Void Verse.Log::Error(System.String
text)
IL_06F4: leave => Label78
IL_06F9: leave => (autogenerated)
} // end handler
IL_06FE: Label77
IL_06FE: Label78
IL_06FE: ldloc.s 16 (System.Boolean)
IL_0700: brfalse => Label79
IL_0705: ldarg.0
IL_0706: ldfld Verse.Pawn_HealthTracker Verse.Pawn::health
IL_070B: ldarg.1
IL_070C: ldarg.2
IL_070D: ldloc.s 8 (RimWorld.Planet.Caravan)
IL_070F: callvirt System.Void
Verse.Pawn_HealthTracker::NotifyPlayerOfKilled(System.Nullable`1<Verse.DamageInfo>
dinfo, Verse.Hediff hediff, RimWorld.Planet.Caravan caravan)
IL_0714: Label79
IL_0714: call static RimWorld.QuestManager
Verse.Find::get_QuestManager()
IL_0719: ldarg.0
IL_071A: ldarg.1
IL_071B: callvirt System.Void
RimWorld.QuestManager::Notify_PawnKilled(Verse.Pawn pawn,
System.Nullable`1<Verse.DamageInfo> dinfo)
IL_0720: call static RimWorld.FactionManager
Verse.Find::get_FactionManager()
IL_0725: ldarg.0
IL_0726: callvirt System.Void
RimWorld.FactionManager::Notify_PawnKilled(Verse.Pawn pawn)
IL_072B: call static RimWorld.IdeoManager Verse.Find::get_IdeoManager()
IL_0730: ldarg.0
IL_0731: callvirt System.Void
RimWorld.IdeoManager::Notify_PawnKilled(Verse.Pawn pawn)
IL_0736: call static System.Boolean
Verse.ModsConfig::get_BiotechActive()
IL_073B: brfalse => Label80
IL_0740: ldarg.0
IL_0741: call static System.Boolean
MechanitorUtility::IsMechanitor(Verse.Pawn pawn)
IL_0746: brfalse => Label81
IL_074B: call static RimWorld.History Verse.Find::get_History()
IL_0750: callvirt System.Void RimWorld.History::Notify_MechanitorDied()
IL_0755: Label80
IL_0755: Label81
IL_0755: call static RimWorld.GameComponent_Bossgroup
Verse.Find::get_BossgroupManager()
IL_075A: ldarg.0
IL_075B: callvirt virtual System.Void
RimWorld.GameComponent_Bossgroup::Notify_PawnKilled(Verse.Pawn pawn)
IL_0760: leave => Label82
IL_0765: leave => (autogenerated)
} // end try
.catch System.Exception
{
IL_076A: stloc.s 32 (System.Exception)
IL_076C: ldstr "Error while killing {0} during phase {1}: {2}"
IL_0771: ldarg.0
IL_0772: call static System.String Verse.Gen::ToStringSafe(Verse.Pawn
obj)
IL_0777: ldloc.0
IL_0778: box System.Int32
IL_077D: ldloc.s 32 (System.Exception)
IL_077F: call static System.String System.String::Format(System.String
format, System.Object arg0, System.Object arg1, System.Object arg2)
IL_0784: call static System.Void Verse.Log::Error(System.String text)
IL_0789: leave => Label83
IL_078E: leave => (autogenerated)
} // end handler
IL_0793: // end original
IL_0793: Label82
IL_0793: Label83
IL_0793: Label0
IL_0793: ldarg.0
IL_0794: call static System.Void
AnimalTab.Patch_Pawn_Kill::Postfix(Verse.Pawn __instance)
IL_0799: ldarg.0
IL_079A: ldarg 1
IL_079E: call static System.Void
AllowTool.Patches.Pawn_Kill_Patch::UnforbidDraftedHuntBody(Verse.Pawn __instance,
System.Nullable`1<Verse.DamageInfo> dinfo)
IL_07A3: ldarg.0
IL_07A4: call static System.Void
VFE.Mechanoids.HarmonyPatches.MachinesDie::Postfix(Verse.Pawn __instance)
IL_07A9: ldarg.0
IL_07AA: call static System.Void VFECore.Patch_Kill::Postfix(Verse.Pawn
__instance)
IL_07AF: ldarga 1
IL_07B3: call static System.Void
Rimatomics.Harmony_Pawn_Kill::Postfix(System.Nullable`1& dinfo)
IL_07B8: ret
DONE

### Harmony id=Vanilla.BookExpanded, version=2.2.2.0, location=C:\Program Files


(x86)\Steam\steamapps\common\data-000002130553D010, env/clr=4.0.30319.42000,
platform=Win32NT, ptrsize:runtime/env=8/Bits64, Windows
### Started from static System.Void VanillaBooksExpanded.HarmonyPatches::.cctor(),
location C:\Program Files (x86)\Steam\steamapps\common\data-0000021309B8C670
### At 2023-02-17 06.57.43
### Patch: static Verse.Thing Verse.GenRecipe::PostProcessProduct(Verse.Thing
product, Verse.RecipeDef recipeDef, Verse.Pawn worker, RimWorld.Precept_ThingStyle
precept, Verse.ThingStyleDef style, System.Nullable`1<System.Int32>
overrideGraphicIndex)
### Replacement: static Verse.Thing
Verse.GenRecipe::Verse.GenRecipe.PostProcessProduct_Patch2(Verse.Thing product,
Verse.RecipeDef recipeDef, Verse.Pawn worker, RimWorld.Precept_ThingStyle precept,
Verse.ThingStyleDef style, System.Nullable`1<System.Int32> overrideGraphicIndex)
IL_0000: Local var 0: RimWorld.CompQuality
IL_0000: Local var 1: RimWorld.CompArt
IL_0000: Local var 2: RimWorld.QualityCategory
IL_0000: Local var 3: Verse.Thing
IL_0000: ldnull
IL_0001: stloc 3 (Verse.Thing)
IL_0005: // start original
IL_0005: ldarg.0
IL_0006: call static RimWorld.CompQuality
Verse.ThingCompUtility::TryGetComp(Verse.Thing thing)
IL_000B: stloc.0
IL_000C: ldloc.0
IL_000D: brfalse => Label0
IL_0012: ldarg.1
IL_0013: ldfld RimWorld.SkillDef Verse.RecipeDef::workSkill
IL_0018: brtrue => Label1
IL_001D: ldarg.1
IL_001E: ldstr " needs workSkill because it creates a product with a quality."
IL_0023: call static System.String System.String::Concat(System.Object arg0,
System.Object arg1)
IL_0028: call static System.Void Verse.Log::Error(System.String text)
IL_002D: Label1
IL_002D: ldarg.2
IL_002E: ldarg.1
IL_002F: ldfld RimWorld.SkillDef Verse.RecipeDef::workSkill
IL_0034: ldarg.0
IL_0035: call static RimWorld.QualityCategory
VSE.Stats.QualityUtility::GenerateQuality(Verse.Pawn worker, RimWorld.SkillDef
workSkill, Verse.Thing thing)
IL_003A: ldarg.0
IL_003B: ldarg.1
IL_003C: ldarg.2
IL_003D: call static RimWorld.QualityCategory
PeteTimesSix.ResearchReinvented.HarmonyPatches.Prototypes.PrototypeUtilities::DoPro
totypeQualityDecreaseRecipe(RimWorld.QualityCategory category, Verse.Thing product,
Verse.RecipeDef recipe, Verse.Pawn worker)
IL_0042: stloc.2
IL_0043: ldloc.0
IL_0044: ldloc.2
IL_0045: ldc.i4.1
IL_0046: callvirt System.Void
RimWorld.CompQuality::SetQuality(RimWorld.QualityCategory q,
RimWorld.ArtGenerationContext source)
IL_004B: ldarg.0
IL_004C: ldarg.2
IL_004D: call static System.Void
RimWorld.QualityUtility::SendCraftNotification(Verse.Thing thing, Verse.Pawn
worker)
IL_0052: Label0
IL_0052: ldarg.0
IL_0053: call static RimWorld.CompArt
Verse.ThingCompUtility::TryGetComp(Verse.Thing thing)
IL_0058: stloc.1
IL_0059: ldloc.1
IL_005A: brfalse => Label2
IL_005F: ldloc.1
IL_0060: ldarg.2
IL_0061: callvirt System.Void RimWorld.CompArt::JustCreatedBy(Verse.Pawn pawn)
IL_0066: ldloc.0
IL_0067: brfalse => Label3
IL_006C: ldloc.0
IL_006D: callvirt RimWorld.QualityCategory RimWorld.CompQuality::get_Quality()
IL_0072: ldc.i4.4
IL_0073: blt => Label4
IL_0078: ldsfld RimWorld.TaleDef RimWorld.TaleDefOf::CraftedArt
IL_007D: ldc.i4.2
IL_007E: newarr System.Object
IL_0083: dup
IL_0084: ldc.i4.0
IL_0085: ldarg.2
IL_0086: stelem.ref
IL_0087: dup
IL_0088: ldc.i4.1
IL_0089: ldarg.0
IL_008A: stelem.ref
IL_008B: call static RimWorld.Tale
RimWorld.TaleRecorder::RecordTale(RimWorld.TaleDef def, System.Object[] args)
IL_0090: pop
IL_0091: Label2
IL_0091: Label3
IL_0091: Label4
IL_0091: ldarg.2
IL_0092: callvirt RimWorld.Ideo Verse.Pawn::get_Ideo()
IL_0097: brfalse => Label5
IL_009C: ldarg.0
IL_009D: ldarg.2
IL_009E: callvirt RimWorld.Ideo Verse.Pawn::get_Ideo()
IL_00A3: ldarg.0
IL_00A4: ldfld Verse.ThingDef Verse.Thing::def
IL_00A9: callvirt Verse.ThingStyleDef RimWorld.Ideo::GetStyleFor(Verse.ThingDef
thingDef)
IL_00AE: callvirt System.Void Verse.Thing::set_StyleDef(Verse.ThingStyleDef
value)
IL_00B3: Label5
IL_00B3: ldarg.3
IL_00B4: brfalse => Label6
IL_00B9: ldarg.0
IL_00BA: ldarg.3
IL_00BB: callvirt System.Void
Verse.Thing::set_StyleSourcePrecept(RimWorld.Precept_ThingStyle value)
IL_00C0: br => Label7
IL_00C5: Label6
IL_00C5: ldarg.s 4
IL_00C7: brfalse => Label8
IL_00CC: ldarg.0
IL_00CD: ldarg.s 4
IL_00CF: callvirt System.Void Verse.Thing::set_StyleDef(Verse.ThingStyleDef
value)
IL_00D4: Label7
IL_00D4: Label8
IL_00D4: ldarg.0
IL_00D5: ldarg.s 5
IL_00D7: stfld System.Nullable`1<System.Int32>
Verse.Thing::overrideGraphicIndex
IL_00DC: ldarg.0
IL_00DD: ldfld Verse.ThingDef Verse.Thing::def
IL_00E2: callvirt System.Boolean Verse.ThingDef::get_Minifiable()
IL_00E7: brfalse => Label9
IL_00EC: ldarg.0
IL_00ED: call static RimWorld.MinifiedThing
RimWorld.MinifyUtility::MakeMinified(Verse.Thing thing)
IL_00F2: starg.s 0
IL_00F4: Label9
IL_00F4: ldarg.0
IL_00F5: // end original
IL_00F5: stloc 3 (Verse.Thing)
IL_00F9: ldarg 0
IL_00FD: ldarg 1
IL_0101: ldarg 2
IL_0105: ldarg 3
IL_0109: call static System.Void
PeteTimesSix.ResearchReinvented.HarmonyPatches.Prototypes.GenRecipe_PostProcessProd
uct_Patches::Postfix(Verse.Thing product, Verse.RecipeDef recipeDef, Verse.Pawn
worker, RimWorld.Precept_ThingStyle precept)
IL_010E: ldarga 0
IL_0112: ldarg 1
IL_0116: ldarg 2
IL_011A: call static System.Void
VanillaBooksExpanded.Patch_PostProcessProduct::Postfix(Verse.Thing& product,
Verse.RecipeDef recipeDef, Verse.Pawn worker)
IL_011F: ldloc 3 (Verse.Thing)
IL_0123: ret
DONE

### Patch: static System.Collections.Generic.IEnumerable`1<Verse.Thing>


RimWorld.StockGeneratorUtility::TryMakeForStock(Verse.ThingDef thingDef,
System.Int32 count, RimWorld.Faction faction)
### Replacement: static System.Collections.Generic.IEnumerable`1<Verse.Thing>
RimWorld.StockGeneratorUtility::RimWorld.StockGeneratorUtility.TryMakeForStock_Patc
h1(Verse.ThingDef thingDef, System.Int32 count, RimWorld.Faction faction)
IL_0000: Local var 0: System.Collections.Generic.IEnumerable`1<Verse.Thing>
IL_0000: ldnull
IL_0001: stloc 0 (System.Collections.Generic.IEnumerable`1[Verse.Thing])
IL_0005: // start original
IL_0005: ldc.i4.s -2
IL_0007: newobj System.Void RimWorld.<TryMakeForStock>d__0::.ctor(System.Int32
<>1__state)
IL_000C: dup
IL_000D: ldarg.0
IL_000E: stfld Verse.ThingDef RimWorld.<TryMakeForStock>d__0::<>3__thingDef
IL_0013: dup
IL_0014: ldarg.1
IL_0015: stfld System.Int32 RimWorld.<TryMakeForStock>d__0::<>3__count
IL_001A: dup
IL_001B: ldarg.2
IL_001C: stfld RimWorld.Faction RimWorld.<TryMakeForStock>d__0::<>3__faction
IL_0021: // end original
IL_0021: stloc 0 (System.Collections.Generic.IEnumerable`1[Verse.Thing])
IL_0025: ldloc 0 (System.Collections.Generic.IEnumerable`1[Verse.Thing])
IL_0029: ldarg 0
IL_002D: ldarg 1
IL_0031: ldarg 2
IL_0035: call static System.Collections.Generic.IEnumerable`1<Verse.Thing>
VanillaBooksExpanded.Patch_TryMakeForStock::Postfix(System.Collections.Generic.IEnu
merable`1<Verse.Thing> __result, Verse.ThingDef thingDef, System.Int32 count,
RimWorld.Faction faction)
IL_003A: ret
DONE

### Patch: virtual System.Void


RimWorld.SitePartWorker::Notify_GeneratedByQuestGen(RimWorld.Planet.SitePart part,
RimWorld.QuestGen.Slate slate,
System.Collections.Generic.List`1<Verse.Grammar.Rule> outExtraDescriptionRules,
System.Collections.Generic.Dictionary`2<System.String, System.String>
outExtraDescriptionConstants)
### Replacement: static System.Void
RimWorld.SitePartWorker::RimWorld.SitePartWorker.Notify_GeneratedByQuestGen_Patch1(
RimWorld.SitePartWorker this, RimWorld.Planet.SitePart part,
RimWorld.QuestGen.Slate slate,
System.Collections.Generic.List`1<Verse.Grammar.Rule> outExtraDescriptionRules,
System.Collections.Generic.Dictionary`2<System.String, System.String>
outExtraDescriptionConstants)
IL_0000: Local var 0: System.Boolean
IL_0000: ldc.i4 0
IL_0005: stloc 0 (System.Boolean)
IL_0009: ldc.i4.1
IL_000A: stloc 0 (System.Boolean)
IL_000E: ldloc 0 (System.Boolean)
IL_0012: brfalse => Label1
IL_0017: ldarg 1
IL_001B: ldarg 2
IL_001F: ldarg 3
IL_0023: ldarg 4
IL_0027: call static System.Void
VanillaBooksExpanded.HarmonyPatches::Notify_GeneratedByQuestGenPrefix(RimWorld.Plan
et.SitePart part, RimWorld.QuestGen.Slate slate,
System.Collections.Generic.List`1<Verse.Grammar.Rule> outExtraDescriptionRules,
System.Collections.Generic.Dictionary`2<System.String, System.String>
outExtraDescriptionConstants)
IL_002C: Label1
IL_002C: nop
IL_002D: ldloc 0 (System.Boolean)
IL_0031: brfalse => Label0
IL_0036: // start original
IL_0036: ldarg.3
IL_0037: ldstr ""
IL_003C: ldarg.1
IL_003D: ldfld RimWorld.SitePartDef RimWorld.Planet.SitePart::def
IL_0042: call static
System.Collections.Generic.IEnumerable`1<Verse.Grammar.Rule>
Verse.Grammar.GrammarUtility::RulesForDef(System.String prefix, Verse.Def def)
IL_0047: callvirt System.Void
System.Collections.Generic.List`1<Verse.Grammar.Rule>::AddRange(System.Collections.
Generic.IEnumerable`1<Verse.Grammar.Rule> collection)
IL_004C: ldarg.s 4
IL_004E: ldstr "sitePart"
IL_0053: ldarg.1
IL_0054: ldfld RimWorld.SitePartDef RimWorld.Planet.SitePart::def
IL_0059: ldfld System.String Verse.Def::defName
IL_005E: callvirt virtual System.Void
System.Collections.Generic.Dictionary`2<System.String,
System.String>::Add(System.String key, System.String value)
IL_0063: // end original
IL_0063: Label0
IL_0063: ret
DONE

### Patch: virtual System.Void


RimWorld.SitePartWorker_ConditionCauser::Notify_GeneratedByQuestGen(RimWorld.Planet
.SitePart part, RimWorld.QuestGen.Slate slate,
System.Collections.Generic.List`1<Verse.Grammar.Rule> outExtraDescriptionRules,
System.Collections.Generic.Dictionary`2<System.String, System.String>
outExtraDescriptionConstants)
### Replacement: static System.Void
RimWorld.SitePartWorker_ConditionCauser::RimWorld.SitePartWorker_ConditionCauser.No
tify_GeneratedByQuestGen_Patch1(RimWorld.SitePartWorker_ConditionCauser this,
RimWorld.Planet.SitePart part, RimWorld.QuestGen.Slate slate,
System.Collections.Generic.List`1<Verse.Grammar.Rule> outExtraDescriptionRules,
System.Collections.Generic.Dictionary`2<System.String, System.String>
outExtraDescriptionConstants)
IL_0000: Local var 0: System.Boolean
IL_0000: ldc.i4 0
IL_0005: stloc 0 (System.Boolean)
IL_0009: ldc.i4.1
IL_000A: stloc 0 (System.Boolean)
IL_000E: ldloc 0 (System.Boolean)
IL_0012: brfalse => Label1
IL_0017: ldarg 1
IL_001B: ldarg 2
IL_001F: ldarg 3
IL_0023: ldarg 4
IL_0027: call static System.Void
VanillaBooksExpanded.HarmonyPatches::Notify_GeneratedByQuestGenPrefix(RimWorld.Plan
et.SitePart part, RimWorld.QuestGen.Slate slate,
System.Collections.Generic.List`1<Verse.Grammar.Rule> outExtraDescriptionRules,
System.Collections.Generic.Dictionary`2<System.String, System.String>
outExtraDescriptionConstants)
IL_002C: Label1
IL_002C: nop
IL_002D: ldloc 0 (System.Boolean)
IL_0031: brfalse => Label0
IL_0036: // start original
IL_0036: ldarg.0
IL_0037: ldarg.1
IL_0038: ldarg.2
IL_0039: ldarg.3
IL_003A: ldarg.s 4
IL_003C: call virtual System.Void
RimWorld.SitePartWorker::Notify_GeneratedByQuestGen(RimWorld.Planet.SitePart part,
RimWorld.QuestGen.Slate slate,
System.Collections.Generic.List`1<Verse.Grammar.Rule> outExtraDescriptionRules,
System.Collections.Generic.Dictionary`2<System.String, System.String>
outExtraDescriptionConstants)
IL_0041: ldarg.2
IL_0042: ldstr "conditionCauser"
IL_0047: ldarg.1
IL_0048: ldfld Verse.Thing RimWorld.Planet.SitePart::conditionCauser
IL_004D: ldc.i4.0
IL_004E: callvirt System.Void RimWorld.QuestGen.Slate::Set(System.String name,
Verse.Thing var, System.Boolean isAbsoluteName)
IL_0053: ldarg.3
IL_0054: ldstr "problemCauserLabel"
IL_0059: ldarg.1
IL_005A: ldfld Verse.Thing RimWorld.Planet.SitePart::conditionCauser
IL_005F: callvirt abstract virtual System.String Verse.Entity::get_Label()
IL_0064: newobj System.Void Verse.Grammar.Rule_String::.ctor(System.String
keyword, System.String output)
IL_0069: callvirt virtual System.Void
System.Collections.Generic.List`1<Verse.Grammar.Rule>::Add(Verse.Grammar.Rule item)
IL_006E: // end original
IL_006E: Label0
IL_006E: ret
DONE

### Patch: virtual System.Void


RimWorld.SitePartWorker_ConditionCauser_WeatherController::Notify_GeneratedByQuestG
en(RimWorld.Planet.SitePart part, RimWorld.QuestGen.Slate slate,
System.Collections.Generic.List`1<Verse.Grammar.Rule> outExtraDescriptionRules,
System.Collections.Generic.Dictionary`2<System.String, System.String>
outExtraDescriptionConstants)
### Replacement: static System.Void
RimWorld.SitePartWorker_ConditionCauser_WeatherController::RimWorld.SitePartWorker_
ConditionCauser_WeatherController.Notify_GeneratedByQuestGen_Patch1(RimWorld.SitePa
rtWorker_ConditionCauser_WeatherController this, RimWorld.Planet.SitePart part,
RimWorld.QuestGen.Slate slate,
System.Collections.Generic.List`1<Verse.Grammar.Rule> outExtraDescriptionRules,
System.Collections.Generic.Dictionary`2<System.String, System.String>
outExtraDescriptionConstants)
IL_0000: Local var 0: Verse.WeatherDef
IL_0000: Local var 1: System.Boolean
IL_0000: ldc.i4 0
IL_0005: stloc 1 (System.Boolean)
IL_0009: ldc.i4.1
IL_000A: stloc 1 (System.Boolean)
IL_000E: ldloc 1 (System.Boolean)
IL_0012: brfalse => Label1
IL_0017: ldarg 1
IL_001B: ldarg 2
IL_001F: ldarg 3
IL_0023: ldarg 4
IL_0027: call static System.Void
VanillaBooksExpanded.HarmonyPatches::Notify_GeneratedByQuestGenPrefix(RimWorld.Plan
et.SitePart part, RimWorld.QuestGen.Slate slate,
System.Collections.Generic.List`1<Verse.Grammar.Rule> outExtraDescriptionRules,
System.Collections.Generic.Dictionary`2<System.String, System.String>
outExtraDescriptionConstants)
IL_002C: Label1
IL_002C: nop
IL_002D: ldloc 1 (System.Boolean)
IL_0031: brfalse => Label0
IL_0036: // start original
IL_0036: ldarg.0
IL_0037: ldarg.1
IL_0038: ldarg.2
IL_0039: ldarg.3
IL_003A: ldarg.s 4
IL_003C: call virtual System.Void
RimWorld.SitePartWorker_ConditionCauser::Notify_GeneratedByQuestGen(RimWorld.Planet
.SitePart part, RimWorld.QuestGen.Slate slate,
System.Collections.Generic.List`1<Verse.Grammar.Rule> outExtraDescriptionRules,
System.Collections.Generic.Dictionary`2<System.String, System.String>
outExtraDescriptionConstants)
IL_0041: ldarg.1
IL_0042: ldfld Verse.Thing RimWorld.Planet.SitePart::conditionCauser
IL_0047: call static RimWorld.CompCauseGameCondition_ForceWeather
Verse.ThingCompUtility::TryGetComp(Verse.Thing thing)
IL_004C: ldfld Verse.WeatherDef
RimWorld.CompCauseGameCondition_ForceWeather::weather
IL_0051: stloc.0
IL_0052: ldarg.3
IL_0053: ldstr "weather"
IL_0058: ldloc.0
IL_0059: call static
System.Collections.Generic.IEnumerable`1<Verse.Grammar.Rule>
Verse.Grammar.GrammarUtility::RulesForDef(System.String prefix, Verse.Def def)
IL_005E: callvirt System.Void
System.Collections.Generic.List`1<Verse.Grammar.Rule>::AddRange(System.Collections.
Generic.IEnumerable`1<Verse.Grammar.Rule> collection)
IL_0063: // end original
IL_0063: Label0
IL_0063: ret
DONE

### Patch: virtual System.Void


RimWorld.SitePartWorker_ConditionCauser_ClimateAdjuster::Notify_GeneratedByQuestGen
(RimWorld.Planet.SitePart part, RimWorld.QuestGen.Slate slate,
System.Collections.Generic.List`1<Verse.Grammar.Rule> outExtraDescriptionRules,
System.Collections.Generic.Dictionary`2<System.String, System.String>
outExtraDescriptionConstants)
### Replacement: static System.Void
RimWorld.SitePartWorker_ConditionCauser_ClimateAdjuster::RimWorld.SitePartWorker_Co
nditionCauser_ClimateAdjuster.Notify_GeneratedByQuestGen_Patch1(RimWorld.SitePartWo
rker_ConditionCauser_ClimateAdjuster this, RimWorld.Planet.SitePart part,
RimWorld.QuestGen.Slate slate,
System.Collections.Generic.List`1<Verse.Grammar.Rule> outExtraDescriptionRules,
System.Collections.Generic.Dictionary`2<System.String, System.String>
outExtraDescriptionConstants)
IL_0000: Local var 0: System.String
IL_0000: Local var 1: System.Boolean
IL_0000: ldc.i4 0
IL_0005: stloc 1 (System.Boolean)
IL_0009: ldc.i4.1
IL_000A: stloc 1 (System.Boolean)
IL_000E: ldloc 1 (System.Boolean)
IL_0012: brfalse => Label1
IL_0017: ldarg 1
IL_001B: ldarg 2
IL_001F: ldarg 3
IL_0023: ldarg 4
IL_0027: call static System.Void
VanillaBooksExpanded.HarmonyPatches::Notify_GeneratedByQuestGenPrefix(RimWorld.Plan
et.SitePart part, RimWorld.QuestGen.Slate slate,
System.Collections.Generic.List`1<Verse.Grammar.Rule> outExtraDescriptionRules,
System.Collections.Generic.Dictionary`2<System.String, System.String>
outExtraDescriptionConstants)
IL_002C: Label1
IL_002C: nop
IL_002D: ldloc 1 (System.Boolean)
IL_0031: brfalse => Label0
IL_0036: // start original
IL_0036: ldarg.0
IL_0037: ldarg.1
IL_0038: ldarg.2
IL_0039: ldarg.3
IL_003A: ldarg.s 4
IL_003C: call virtual System.Void
RimWorld.SitePartWorker_ConditionCauser::Notify_GeneratedByQuestGen(RimWorld.Planet
.SitePart part, RimWorld.QuestGen.Slate slate,
System.Collections.Generic.List`1<Verse.Grammar.Rule> outExtraDescriptionRules,
System.Collections.Generic.Dictionary`2<System.String, System.String>
outExtraDescriptionConstants)
IL_0041: ldarg.1
IL_0042: ldfld Verse.Thing RimWorld.Planet.SitePart::conditionCauser
IL_0047: call static RimWorld.CompCauseGameCondition_TemperatureOffset
Verse.ThingCompUtility::TryGetComp(Verse.Thing thing)
IL_004C: ldfld System.Single
RimWorld.CompCauseGameCondition_TemperatureOffset::temperatureOffset
IL_0051: ldstr "F1"
IL_0056: call static System.String
Verse.GenText::ToStringTemperatureOffset(System.Single celsiusTemp, System.String
format)
IL_005B: stloc.0
IL_005C: ldarg.3
IL_005D: ldstr "temperatureOffset"
IL_0062: ldloc.0
IL_0063: newobj System.Void Verse.Grammar.Rule_String::.ctor(System.String
keyword, System.String output)
IL_0068: callvirt virtual System.Void
System.Collections.Generic.List`1<Verse.Grammar.Rule>::Add(Verse.Grammar.Rule item)
IL_006D: // end original
IL_006D: Label0
IL_006D: ret
DONE

### Patch: virtual System.Void


RimWorld.SitePartWorker_ConditionCauser_PsychicDroner::Notify_GeneratedByQuestGen(R
imWorld.Planet.SitePart part, RimWorld.QuestGen.Slate slate,
System.Collections.Generic.List`1<Verse.Grammar.Rule> outExtraDescriptionRules,
System.Collections.Generic.Dictionary`2<System.String, System.String>
outExtraDescriptionConstants)
### Replacement: static System.Void
RimWorld.SitePartWorker_ConditionCauser_PsychicDroner::RimWorld.SitePartWorker_Cond
itionCauser_PsychicDroner.Notify_GeneratedByQuestGen_Patch1(RimWorld.SitePartWorker
_ConditionCauser_PsychicDroner this, RimWorld.Planet.SitePart part,
RimWorld.QuestGen.Slate slate,
System.Collections.Generic.List`1<Verse.Grammar.Rule> outExtraDescriptionRules,
System.Collections.Generic.Dictionary`2<System.String, System.String>
outExtraDescriptionConstants)
IL_0000: Local var 0: System.String
IL_0000: Local var 1: System.Boolean
IL_0000: ldc.i4 0
IL_0005: stloc 1 (System.Boolean)
IL_0009: ldc.i4.1
IL_000A: stloc 1 (System.Boolean)
IL_000E: ldloc 1 (System.Boolean)
IL_0012: brfalse => Label1
IL_0017: ldarg 1
IL_001B: ldarg 2
IL_001F: ldarg 3
IL_0023: ldarg 4
IL_0027: call static System.Void
VanillaBooksExpanded.HarmonyPatches::Notify_GeneratedByQuestGenPrefix(RimWorld.Plan
et.SitePart part, RimWorld.QuestGen.Slate slate,
System.Collections.Generic.List`1<Verse.Grammar.Rule> outExtraDescriptionRules,
System.Collections.Generic.Dictionary`2<System.String, System.String>
outExtraDescriptionConstants)
IL_002C: Label1
IL_002C: nop
IL_002D: ldloc 1 (System.Boolean)
IL_0031: brfalse => Label0
IL_0036: // start original
IL_0036: ldarg.0
IL_0037: ldarg.1
IL_0038: ldarg.2
IL_0039: ldarg.3
IL_003A: ldarg.s 4
IL_003C: call virtual System.Void
RimWorld.SitePartWorker_ConditionCauser::Notify_GeneratedByQuestGen(RimWorld.Planet
.SitePart part, RimWorld.QuestGen.Slate slate,
System.Collections.Generic.List`1<Verse.Grammar.Rule> outExtraDescriptionRules,
System.Collections.Generic.Dictionary`2<System.String, System.String>
outExtraDescriptionConstants)
IL_0041: ldarg.1
IL_0042: ldfld Verse.Thing RimWorld.Planet.SitePart::conditionCauser
IL_0047: call static RimWorld.CompCauseGameCondition_PsychicEmanation
Verse.ThingCompUtility::TryGetComp(Verse.Thing thing)
IL_004C: ldfld Verse.Gender
RimWorld.CompCauseGameCondition_PsychicEmanation::gender
IL_0051: ldc.i4.0
IL_0052: call static System.String Verse.GenderUtility::GetLabel(Verse.Gender
gender, System.Boolean animal)
IL_0057: stloc.0
IL_0058: ldarg.3
IL_0059: ldstr "affectedGender"
IL_005E: ldloc.0
IL_005F: newobj System.Void Verse.Grammar.Rule_String::.ctor(System.String
keyword, System.String output)
IL_0064: callvirt virtual System.Void
System.Collections.Generic.List`1<Verse.Grammar.Rule>::Add(Verse.Grammar.Rule item)
IL_0069: // end original
IL_0069: Label0
IL_0069: ret
DONE

### Patch: virtual System.Void


RimWorld.SitePartWorker_ConditionCauser_PsychicSuppressor::Notify_GeneratedByQuestG
en(RimWorld.Planet.SitePart part, RimWorld.QuestGen.Slate slate,
System.Collections.Generic.List`1<Verse.Grammar.Rule> outExtraDescriptionRules,
System.Collections.Generic.Dictionary`2<System.String, System.String>
outExtraDescriptionConstants)
### Replacement: static System.Void
RimWorld.SitePartWorker_ConditionCauser_PsychicSuppressor::RimWorld.SitePartWorker_
ConditionCauser_PsychicSuppressor.Notify_GeneratedByQuestGen_Patch1(RimWorld.SitePa
rtWorker_ConditionCauser_PsychicSuppressor this, RimWorld.Planet.SitePart part,
RimWorld.QuestGen.Slate slate,
System.Collections.Generic.List`1<Verse.Grammar.Rule> outExtraDescriptionRules,
System.Collections.Generic.Dictionary`2<System.String, System.String>
outExtraDescriptionConstants)
IL_0000: Local var 0: System.String
IL_0000: Local var 1: System.Boolean
IL_0000: ldc.i4 0
IL_0005: stloc 1 (System.Boolean)
IL_0009: ldc.i4.1
IL_000A: stloc 1 (System.Boolean)
IL_000E: ldloc 1 (System.Boolean)
IL_0012: brfalse => Label1
IL_0017: ldarg 1
IL_001B: ldarg 2
IL_001F: ldarg 3
IL_0023: ldarg 4
IL_0027: call static System.Void
VanillaBooksExpanded.HarmonyPatches::Notify_GeneratedByQuestGenPrefix(RimWorld.Plan
et.SitePart part, RimWorld.QuestGen.Slate slate,
System.Collections.Generic.List`1<Verse.Grammar.Rule> outExtraDescriptionRules,
System.Collections.Generic.Dictionary`2<System.String, System.String>
outExtraDescriptionConstants)
IL_002C: Label1
IL_002C: nop
IL_002D: ldloc 1 (System.Boolean)
IL_0031: brfalse => Label0
IL_0036: // start original
IL_0036: ldarg.0
IL_0037: ldarg.1
IL_0038: ldarg.2
IL_0039: ldarg.3
IL_003A: ldarg.s 4
IL_003C: call virtual System.Void
RimWorld.SitePartWorker_ConditionCauser::Notify_GeneratedByQuestGen(RimWorld.Planet
.SitePart part, RimWorld.QuestGen.Slate slate,
System.Collections.Generic.List`1<Verse.Grammar.Rule> outExtraDescriptionRules,
System.Collections.Generic.Dictionary`2<System.String, System.String>
outExtraDescriptionConstants)
IL_0041: ldarg.1
IL_0042: ldfld Verse.Thing RimWorld.Planet.SitePart::conditionCauser
IL_0047: call static RimWorld.CompCauseGameCondition_PsychicSuppression
Verse.ThingCompUtility::TryGetComp(Verse.Thing thing)
IL_004C: ldfld Verse.Gender
RimWorld.CompCauseGameCondition_PsychicSuppression::gender
IL_0051: ldc.i4.0
IL_0052: call static System.String Verse.GenderUtility::GetLabel(Verse.Gender
gender, System.Boolean animal)
IL_0057: stloc.0
IL_0058: ldarg.3
IL_0059: ldstr "affectedGender"
IL_005E: ldloc.0
IL_005F: newobj System.Void Verse.Grammar.Rule_String::.ctor(System.String
keyword, System.String output)
IL_0064: callvirt virtual System.Void
System.Collections.Generic.List`1<Verse.Grammar.Rule>::Add(Verse.Grammar.Rule item)
IL_0069: // end original
IL_0069: Label0
IL_0069: ret
DONE

### Patch: virtual System.Void


RimWorld.SitePartWorker_Manhunters::Notify_GeneratedByQuestGen(RimWorld.Planet.Site
Part part, RimWorld.QuestGen.Slate slate,
System.Collections.Generic.List`1<Verse.Grammar.Rule> outExtraDescriptionRules,
System.Collections.Generic.Dictionary`2<System.String, System.String>
outExtraDescriptionConstants)
### Replacement: static System.Void
RimWorld.SitePartWorker_Manhunters::RimWorld.SitePartWorker_Manhunters.Notify_Gener
atedByQuestGen_Patch1(RimWorld.SitePartWorker_Manhunters this,
RimWorld.Planet.SitePart part, RimWorld.QuestGen.Slate slate,
System.Collections.Generic.List`1<Verse.Grammar.Rule> outExtraDescriptionRules,
System.Collections.Generic.Dictionary`2<System.String, System.String>
outExtraDescriptionConstants)
IL_0000: Local var 0: System.Int32
IL_0000: Local var 1: System.String
IL_0000: Local var 2: System.Boolean
IL_0000: ldc.i4 0
IL_0005: stloc 2 (System.Boolean)
IL_0009: ldc.i4.1
IL_000A: stloc 2 (System.Boolean)
IL_000E: ldloc 2 (System.Boolean)
IL_0012: brfalse => Label1
IL_0017: ldarg 1
IL_001B: ldarg 2
IL_001F: ldarg 3
IL_0023: ldarg 4
IL_0027: call static System.Void
VanillaBooksExpanded.HarmonyPatches::Notify_GeneratedByQuestGenPrefix(RimWorld.Plan
et.SitePart part, RimWorld.QuestGen.Slate slate,
System.Collections.Generic.List`1<Verse.Grammar.Rule> outExtraDescriptionRules,
System.Collections.Generic.Dictionary`2<System.String, System.String>
outExtraDescriptionConstants)
IL_002C: Label1
IL_002C: nop
IL_002D: ldloc 2 (System.Boolean)
IL_0031: brfalse => Label0
IL_0036: // start original
IL_0036: ldarg.0
IL_0037: ldarg.1
IL_0038: ldarg.2
IL_0039: ldarg.3
IL_003A: ldarg.s 4
IL_003C: call virtual System.Void
RimWorld.SitePartWorker::Notify_GeneratedByQuestGen(RimWorld.Planet.SitePart part,
RimWorld.QuestGen.Slate slate,
System.Collections.Generic.List`1<Verse.Grammar.Rule> outExtraDescriptionRules,
System.Collections.Generic.Dictionary`2<System.String, System.String>
outExtraDescriptionConstants)
IL_0041: ldarg.0
IL_0042: ldarg.1
IL_0043: ldfld RimWorld.Planet.SitePartParams RimWorld.Planet.SitePart::parms
IL_0048: call System.Int32
RimWorld.SitePartWorker_Manhunters::GetAnimalsCount(RimWorld.Planet.SitePartParams
parms)
IL_004D: stloc.0
IL_004E: ldarg.1
IL_004F: ldfld RimWorld.Planet.SitePartParams RimWorld.Planet.SitePart::parms
IL_0054: ldfld Verse.PawnKindDef RimWorld.Planet.SitePartParams::animalKind
IL_0059: ldc.i4.0
IL_005A: ldc.i4.1
IL_005B: ldloc.0
IL_005C: call static System.String
RimWorld.GenLabel::BestKindLabel(Verse.PawnKindDef kindDef, Verse.Gender gender,
System.Boolean plural, System.Int32 pluralCount)
IL_0061: stloc.1
IL_0062: ldarg.3
IL_0063: ldstr "count"
IL_0068: ldloca.s 0 (System.Int32)
IL_006A: call virtual System.String System.Int32::ToString()
IL_006F: newobj System.Void Verse.Grammar.Rule_String::.ctor(System.String
keyword, System.String output)
IL_0074: callvirt virtual System.Void
System.Collections.Generic.List`1<Verse.Grammar.Rule>::Add(Verse.Grammar.Rule item)
IL_0079: ldarg.3
IL_007A: ldstr "kindLabel"
IL_007F: ldloc.1
IL_0080: newobj System.Void Verse.Grammar.Rule_String::.ctor(System.String
keyword, System.String output)
IL_0085: callvirt virtual System.Void
System.Collections.Generic.List`1<Verse.Grammar.Rule>::Add(Verse.Grammar.Rule item)
IL_008A: ldarg.s 4
IL_008C: ldstr "count"
IL_0091: ldloca.s 0 (System.Int32)
IL_0093: call virtual System.String System.Int32::ToString()
IL_0098: callvirt virtual System.Void
System.Collections.Generic.Dictionary`2<System.String,
System.String>::Add(System.String key, System.String value)
IL_009D: // end original
IL_009D: Label0
IL_009D: ret
DONE

### Patch: virtual System.Void


RimWorld.SitePartWorker_Outpost::Notify_GeneratedByQuestGen(RimWorld.Planet.SitePar
t part, RimWorld.QuestGen.Slate slate,
System.Collections.Generic.List`1<Verse.Grammar.Rule> outExtraDescriptionRules,
System.Collections.Generic.Dictionary`2<System.String, System.String>
outExtraDescriptionConstants)
### Replacement: static System.Void
RimWorld.SitePartWorker_Outpost::RimWorld.SitePartWorker_Outpost.Notify_GeneratedBy
QuestGen_Patch1(RimWorld.SitePartWorker_Outpost this, RimWorld.Planet.SitePart
part, RimWorld.QuestGen.Slate slate,
System.Collections.Generic.List`1<Verse.Grammar.Rule> outExtraDescriptionRules,
System.Collections.Generic.Dictionary`2<System.String, System.String>
outExtraDescriptionConstants)
IL_0000: Local var 0: System.Int32
IL_0000: Local var 1: System.Boolean
IL_0000: ldc.i4 0
IL_0005: stloc 1 (System.Boolean)
IL_0009: ldc.i4.1
IL_000A: stloc 1 (System.Boolean)
IL_000E: ldloc 1 (System.Boolean)
IL_0012: brfalse => Label1
IL_0017: ldarg 1
IL_001B: ldarg 2
IL_001F: ldarg 3
IL_0023: ldarg 4
IL_0027: call static System.Void
VanillaBooksExpanded.HarmonyPatches::Notify_GeneratedByQuestGenPrefix(RimWorld.Plan
et.SitePart part, RimWorld.QuestGen.Slate slate,
System.Collections.Generic.List`1<Verse.Grammar.Rule> outExtraDescriptionRules,
System.Collections.Generic.Dictionary`2<System.String, System.String>
outExtraDescriptionConstants)
IL_002C: Label1
IL_002C: nop
IL_002D: ldloc 1 (System.Boolean)
IL_0031: brfalse => Label0
IL_0036: // start original
IL_0036: ldarg.0
IL_0037: ldarg.1
IL_0038: ldarg.2
IL_0039: ldarg.3
IL_003A: ldarg.s 4
IL_003C: call virtual System.Void
RimWorld.SitePartWorker::Notify_GeneratedByQuestGen(RimWorld.Planet.SitePart part,
RimWorld.QuestGen.Slate slate,
System.Collections.Generic.List`1<Verse.Grammar.Rule> outExtraDescriptionRules,
System.Collections.Generic.Dictionary`2<System.String, System.String>
outExtraDescriptionConstants)
IL_0041: ldarg.0
IL_0042: ldarg.1
IL_0043: ldfld RimWorld.Planet.Site RimWorld.Planet.SitePart::site
IL_0048: ldarg.1
IL_0049: ldfld RimWorld.Planet.SitePartParams RimWorld.Planet.SitePart::parms
IL_004E: call System.Int32
RimWorld.SitePartWorker_Outpost::GetEnemiesCount(RimWorld.Planet.Site site,
RimWorld.Planet.SitePartParams parms)
IL_0053: stloc.0
IL_0054: ldarg.3
IL_0055: ldstr "enemiesCount"
IL_005A: ldloca.s 0 (System.Int32)
IL_005C: call virtual System.String System.Int32::ToString()
IL_0061: newobj System.Void Verse.Grammar.Rule_String::.ctor(System.String
keyword, System.String output)
IL_0066: callvirt virtual System.Void
System.Collections.Generic.List`1<Verse.Grammar.Rule>::Add(Verse.Grammar.Rule item)
IL_006B: ldarg.3
IL_006C: ldstr "enemiesLabel"
IL_0071: ldarg.0
IL_0072: ldarg.1
IL_0073: ldfld RimWorld.Planet.Site RimWorld.Planet.SitePart::site
IL_0078: ldloc.0
IL_0079: call System.String
RimWorld.SitePartWorker_Outpost::GetEnemiesLabel(RimWorld.Planet.Site site,
System.Int32 enemiesCount)
IL_007E: newobj System.Void Verse.Grammar.Rule_String::.ctor(System.String
keyword, System.String output)
IL_0083: callvirt virtual System.Void
System.Collections.Generic.List`1<Verse.Grammar.Rule>::Add(Verse.Grammar.Rule item)
IL_0088: // end original
IL_0088: Label0
IL_0088: ret
DONE

### Patch: virtual System.Void


RimWorld.SitePartWorker_RaidSource::Notify_GeneratedByQuestGen(RimWorld.Planet.Site
Part part, RimWorld.QuestGen.Slate slate,
System.Collections.Generic.List`1<Verse.Grammar.Rule> outExtraDescriptionRules,
System.Collections.Generic.Dictionary`2<System.String, System.String>
outExtraDescriptionConstants)
### Replacement: static System.Void
RimWorld.SitePartWorker_RaidSource::RimWorld.SitePartWorker_RaidSource.Notify_Gener
atedByQuestGen_Patch1(RimWorld.SitePartWorker_RaidSource this,
RimWorld.Planet.SitePart part, RimWorld.QuestGen.Slate slate,
System.Collections.Generic.List`1<Verse.Grammar.Rule> outExtraDescriptionRules,
System.Collections.Generic.Dictionary`2<System.String, System.String>
outExtraDescriptionConstants)
IL_0000: Local var 0: System.Int32
IL_0000: Local var 1: System.Single
IL_0000: Local var 2: System.Boolean
IL_0000: ldc.i4 0
IL_0005: stloc 2 (System.Boolean)
IL_0009: ldc.i4.1
IL_000A: stloc 2 (System.Boolean)
IL_000E: ldloc 2 (System.Boolean)
IL_0012: brfalse => Label1
IL_0017: ldarg 1
IL_001B: ldarg 2
IL_001F: ldarg 3
IL_0023: ldarg 4
IL_0027: call static System.Void
VanillaBooksExpanded.HarmonyPatches::Notify_GeneratedByQuestGenPrefix(RimWorld.Plan
et.SitePart part, RimWorld.QuestGen.Slate slate,
System.Collections.Generic.List`1<Verse.Grammar.Rule> outExtraDescriptionRules,
System.Collections.Generic.Dictionary`2<System.String, System.String>
outExtraDescriptionConstants)
IL_002C: Label1
IL_002C: nop
IL_002D: ldloc 2 (System.Boolean)
IL_0031: brfalse => Label0
IL_0036: // start original
IL_0036: ldarg.0
IL_0037: ldarg.1
IL_0038: ldarg.2
IL_0039: ldarg.3
IL_003A: ldarg.s 4
IL_003C: call virtual System.Void
RimWorld.SitePartWorker_Outpost::Notify_GeneratedByQuestGen(RimWorld.Planet.SitePar
t part, RimWorld.QuestGen.Slate slate,
System.Collections.Generic.List`1<Verse.Grammar.Rule> outExtraDescriptionRules,
System.Collections.Generic.Dictionary`2<System.String, System.String>
outExtraDescriptionConstants)
IL_0041: ldarg.0
IL_0042: ldarg.1
IL_0043: ldfld RimWorld.Planet.Site RimWorld.Planet.SitePart::site
IL_0048: ldarg.1
IL_0049: ldfld RimWorld.Planet.SitePartParams RimWorld.Planet.SitePart::parms
IL_004E: call System.Int32
RimWorld.SitePartWorker_Outpost::GetEnemiesCount(RimWorld.Planet.Site site,
RimWorld.Planet.SitePartParams parms)
IL_0053: stloc.0
IL_0054: ldsfld Verse.SimpleCurve
RimWorld.QuestTuning::PointsToRaidSourceRaidsMTBDaysCurve
IL_0059: ldarg.1
IL_005A: ldfld RimWorld.Planet.SitePartParams RimWorld.Planet.SitePart::parms
IL_005F: ldfld System.Single RimWorld.Planet.SitePartParams::threatPoints
IL_0064: callvirt System.Single Verse.SimpleCurve::Evaluate(System.Single x)
IL_0069: stloc.1
IL_006A: ldarg.3
IL_006B: ldstr "enemiesCount"
IL_0070: ldloca.s 0 (System.Int32)
IL_0072: call virtual System.String System.Int32::ToString()
IL_0077: newobj System.Void Verse.Grammar.Rule_String::.ctor(System.String
keyword, System.String output)
IL_007C: callvirt virtual System.Void
System.Collections.Generic.List`1<Verse.Grammar.Rule>::Add(Verse.Grammar.Rule item)
IL_0081: ldarg.3
IL_0082: ldstr "mtbDays"
IL_0087: ldloc.1
IL_0088: ldc.r4 60000
IL_008D: mul
IL_008E: conv.i4
IL_008F: ldc.i4.1
IL_0090: ldc.i4.0
IL_0091: ldc.i4.0
IL_0092: ldc.i4.1
IL_0093: ldc.i4.0
IL_0094: call static System.String
RimWorld.GenDate::ToStringTicksToPeriod(System.Int32 numTicks, System.Boolean
allowSeconds, System.Boolean shortForm, System.Boolean canUseDecimals,
System.Boolean allowYears, System.Boolean canUseDecimalsShortForm)
IL_0099: newobj System.Void Verse.Grammar.Rule_String::.ctor(System.String
keyword, System.String output)
IL_009E: callvirt virtual System.Void
System.Collections.Generic.List`1<Verse.Grammar.Rule>::Add(Verse.Grammar.Rule item)
IL_00A3: ldarg.3
IL_00A4: ldstr "enemiesLabel"
IL_00A9: ldarg.0
IL_00AA: ldarg.1
IL_00AB: ldfld RimWorld.Planet.Site RimWorld.Planet.SitePart::site
IL_00B0: ldloc.0
IL_00B1: call System.String
RimWorld.SitePartWorker_Outpost::GetEnemiesLabel(RimWorld.Planet.Site site,
System.Int32 enemiesCount)
IL_00B6: newobj System.Void Verse.Grammar.Rule_String::.ctor(System.String
keyword, System.String output)
IL_00BB: callvirt virtual System.Void
System.Collections.Generic.List`1<Verse.Grammar.Rule>::Add(Verse.Grammar.Rule item)
IL_00C0: // end original
IL_00C0: Label0
IL_00C0: ret
DONE

### Patch: virtual System.Void


RimWorld.SitePartWorker_SleepingMechanoids::Notify_GeneratedByQuestGen(RimWorld.Pla
net.SitePart part, RimWorld.QuestGen.Slate slate,
System.Collections.Generic.List`1<Verse.Grammar.Rule> outExtraDescriptionRules,
System.Collections.Generic.Dictionary`2<System.String, System.String>
outExtraDescriptionConstants)
### Replacement: static System.Void
RimWorld.SitePartWorker_SleepingMechanoids::RimWorld.SitePartWorker_SleepingMechano
ids.Notify_GeneratedByQuestGen_Patch1(RimWorld.SitePartWorker_SleepingMechanoids
this, RimWorld.Planet.SitePart part, RimWorld.QuestGen.Slate slate,
System.Collections.Generic.List`1<Verse.Grammar.Rule> outExtraDescriptionRules,
System.Collections.Generic.Dictionary`2<System.String, System.String>
outExtraDescriptionConstants)
IL_0000: Local var 0: System.Int32
IL_0000: Local var 1: System.Boolean
IL_0000: ldc.i4 0
IL_0005: stloc 1 (System.Boolean)
IL_0009: ldc.i4.1
IL_000A: stloc 1 (System.Boolean)
IL_000E: ldloc 1 (System.Boolean)
IL_0012: brfalse => Label1
IL_0017: ldarg 1
IL_001B: ldarg 2
IL_001F: ldarg 3
IL_0023: ldarg 4
IL_0027: call static System.Void
VanillaBooksExpanded.HarmonyPatches::Notify_GeneratedByQuestGenPrefix(RimWorld.Plan
et.SitePart part, RimWorld.QuestGen.Slate slate,
System.Collections.Generic.List`1<Verse.Grammar.Rule> outExtraDescriptionRules,
System.Collections.Generic.Dictionary`2<System.String, System.String>
outExtraDescriptionConstants)
IL_002C: Label1
IL_002C: nop
IL_002D: ldloc 1 (System.Boolean)
IL_0031: brfalse => Label0
IL_0036: // start original
IL_0036: ldarg.0
IL_0037: ldarg.1
IL_0038: ldarg.2
IL_0039: ldarg.3
IL_003A: ldarg.s 4
IL_003C: call virtual System.Void
RimWorld.SitePartWorker::Notify_GeneratedByQuestGen(RimWorld.Planet.SitePart part,
RimWorld.QuestGen.Slate slate,
System.Collections.Generic.List`1<Verse.Grammar.Rule> outExtraDescriptionRules,
System.Collections.Generic.Dictionary`2<System.String, System.String>
outExtraDescriptionConstants)
IL_0041: ldarg.0
IL_0042: ldarg.1
IL_0043: ldfld RimWorld.Planet.Site RimWorld.Planet.SitePart::site
IL_0048: ldarg.1
IL_0049: ldfld RimWorld.Planet.SitePartParams RimWorld.Planet.SitePart::parms
IL_004E: call System.Int32
RimWorld.SitePartWorker_SleepingMechanoids::GetMechanoidsCount(RimWorld.Planet.Site
site, RimWorld.Planet.SitePartParams parms)
IL_0053: stloc.0
IL_0054: ldarg.3
IL_0055: ldstr "count"
IL_005A: ldloca.s 0 (System.Int32)
IL_005C: call virtual System.String System.Int32::ToString()
IL_0061: newobj System.Void Verse.Grammar.Rule_String::.ctor(System.String
keyword, System.String output)
IL_0066: callvirt virtual System.Void
System.Collections.Generic.List`1<Verse.Grammar.Rule>::Add(Verse.Grammar.Rule item)
IL_006B: ldarg.s 4
IL_006D: ldstr "count"
IL_0072: ldloca.s 0 (System.Int32)
IL_0074: call virtual System.String System.Int32::ToString()
IL_0079: callvirt virtual System.Void
System.Collections.Generic.Dictionary`2<System.String,
System.String>::Add(System.String key, System.String value)
IL_007E: // end original
IL_007E: Label0
IL_007E: ret
DONE

### Patch: virtual System.Void


RimWorld.SitePartWorker_Turrets::Notify_GeneratedByQuestGen(RimWorld.Planet.SitePar
t part, RimWorld.QuestGen.Slate slate,
System.Collections.Generic.List`1<Verse.Grammar.Rule> outExtraDescriptionRules,
System.Collections.Generic.Dictionary`2<System.String, System.String>
outExtraDescriptionConstants)
### Replacement: static System.Void
RimWorld.SitePartWorker_Turrets::RimWorld.SitePartWorker_Turrets.Notify_GeneratedBy
QuestGen_Patch1(RimWorld.SitePartWorker_Turrets this, RimWorld.Planet.SitePart
part, RimWorld.QuestGen.Slate slate,
System.Collections.Generic.List`1<Verse.Grammar.Rule> outExtraDescriptionRules,
System.Collections.Generic.Dictionary`2<System.String, System.String>
outExtraDescriptionConstants)
IL_0000: Local var 0: System.String
IL_0000: Local var 1: System.Boolean
IL_0000: ldc.i4 0
IL_0005: stloc 1 (System.Boolean)
IL_0009: ldc.i4.1
IL_000A: stloc 1 (System.Boolean)
IL_000E: ldloc 1 (System.Boolean)
IL_0012: brfalse => Label1
IL_0017: ldarg 1
IL_001B: ldarg 2
IL_001F: ldarg 3
IL_0023: ldarg 4
IL_0027: call static System.Void
VanillaBooksExpanded.HarmonyPatches::Notify_GeneratedByQuestGenPrefix(RimWorld.Plan
et.SitePart part, RimWorld.QuestGen.Slate slate,
System.Collections.Generic.List`1<Verse.Grammar.Rule> outExtraDescriptionRules,
System.Collections.Generic.Dictionary`2<System.String, System.String>
outExtraDescriptionConstants)
IL_002C: Label1
IL_002C: nop
IL_002D: ldloc 1 (System.Boolean)
IL_0031: brfalse => Label0
IL_0036: // start original
IL_0036: ldarg.0
IL_0037: ldarg.1
IL_0038: ldarg.2
IL_0039: ldarg.3
IL_003A: ldarg.s 4
IL_003C: call virtual System.Void
RimWorld.SitePartWorker::Notify_GeneratedByQuestGen(RimWorld.Planet.SitePart part,
RimWorld.QuestGen.Slate slate,
System.Collections.Generic.List`1<Verse.Grammar.Rule> outExtraDescriptionRules,
System.Collections.Generic.Dictionary`2<System.String, System.String>
outExtraDescriptionConstants)
IL_0041: ldarg.0
IL_0042: ldarg.1
IL_0043: ldfld RimWorld.Planet.SitePartParams RimWorld.Planet.SitePart::parms
IL_0048: ldarg.1
IL_0049: ldfld RimWorld.Planet.Site RimWorld.Planet.SitePart::site
IL_004E: callvirt virtual RimWorld.Faction
RimWorld.Planet.WorldObject::get_Faction()
IL_0053: call System.String
RimWorld.SitePartWorker_Turrets::GetThreatsInfo(RimWorld.Planet.SitePartParams
parms, RimWorld.Faction faction)
IL_0058: stloc.0
IL_0059: ldarg.3
IL_005A: ldstr "threatsInfo"
IL_005F: ldloc.0
IL_0060: newobj System.Void Verse.Grammar.Rule_String::.ctor(System.String
keyword, System.String output)
IL_0065: callvirt virtual System.Void
System.Collections.Generic.List`1<Verse.Grammar.Rule>::Add(Verse.Grammar.Rule item)
IL_006A: // end original
IL_006A: Label0
IL_006A: ret
DONE

### Patch: virtual System.Void


RimWorld.Planet.SitePartWorker_DownedRefugee::Notify_GeneratedByQuestGen(RimWorld.P
lanet.SitePart part, RimWorld.QuestGen.Slate slate,
System.Collections.Generic.List`1<Verse.Grammar.Rule> outExtraDescriptionRules,
System.Collections.Generic.Dictionary`2<System.String, System.String>
outExtraDescriptionConstants)
### Replacement: static System.Void
RimWorld.Planet.SitePartWorker_DownedRefugee::RimWorld.Planet.SitePartWorker_Downed
Refugee.Notify_GeneratedByQuestGen_Patch1(RimWorld.Planet.SitePartWorker_DownedRefu
gee this, RimWorld.Planet.SitePart part, RimWorld.QuestGen.Slate slate,
System.Collections.Generic.List`1<Verse.Grammar.Rule> outExtraDescriptionRules,
System.Collections.Generic.Dictionary`2<System.String, System.String>
outExtraDescriptionConstants)
IL_0000: Local var 0: Verse.PawnKindDef
IL_0000: Local var 1: System.Single
IL_0000: Local var 2: Verse.Pawn
IL_0000: Local var 3: Verse.Pawn
IL_0000: Local var 4: RimWorld.PawnRelationDef
IL_0000: Local var 5: Verse.TaggedString
IL_0000: Local var 6: Verse.TaggedString
IL_0000: Local var 7: System.Boolean
IL_0000: ldc.i4 0
IL_0005: stloc 7 (System.Boolean)
IL_0009: ldc.i4.1
IL_000A: stloc 7 (System.Boolean)
IL_000E: ldloc 7 (System.Boolean)
IL_0012: brfalse => Label1
IL_0017: ldarg 1
IL_001B: ldarg 2
IL_001F: ldarg 3
IL_0023: ldarg 4
IL_0027: call static System.Void
VanillaBooksExpanded.HarmonyPatches::Notify_GeneratedByQuestGenPrefix(RimWorld.Plan
et.SitePart part, RimWorld.QuestGen.Slate slate,
System.Collections.Generic.List`1<Verse.Grammar.Rule> outExtraDescriptionRules,
System.Collections.Generic.Dictionary`2<System.String, System.String>
outExtraDescriptionConstants)
IL_002C: Label1
IL_002C: nop
IL_002D: ldloc 7 (System.Boolean)
IL_0031: brfalse => Label0
IL_0036: // start original
IL_0036: ldarg.0
IL_0037: ldarg.1
IL_0038: ldarg.2
IL_0039: ldarg.3
IL_003A: ldarg.s 4
IL_003C: call virtual System.Void
RimWorld.SitePartWorker::Notify_GeneratedByQuestGen(RimWorld.Planet.SitePart part,
RimWorld.QuestGen.Slate slate,
System.Collections.Generic.List`1<Verse.Grammar.Rule> outExtraDescriptionRules,
System.Collections.Generic.Dictionary`2<System.String, System.String>
outExtraDescriptionConstants)
IL_0041: ldarg.2
IL_0042: ldstr "refugeeKind"
IL_0047: ldnull
IL_0048: ldc.i4.0
IL_0049: callvirt Verse.PawnKindDef RimWorld.QuestGen.Slate::Get(System.String
name, Verse.PawnKindDef defaultValue, System.Boolean isAbsoluteName)
IL_004E: stloc.0
IL_004F: ldarg.2
IL_0050: ldstr "refugeeFactionChance"
IL_0055: ldc.i4.0
IL_0056: callvirt System.Boolean RimWorld.QuestGen.Slate::Exists(System.String
name, System.Boolean isAbsoluteName)
IL_005B: brtrue => Label2
IL_0060: ldarg.2
IL_0061: ldstr "refugeeFactionChance"
IL_0066: ldc.r4 0
IL_006B: ldc.i4.0
IL_006C: callvirt System.Single RimWorld.QuestGen.Slate::Get(System.String name,
System.Single defaultValue, System.Boolean isAbsoluteName)
IL_0071: br => Label3
IL_0076: Label2
IL_0076: ldc.r4 0.6
IL_007B: Label3
IL_007B: stloc.1
IL_007C: ldarg.1
IL_007D: ldfld RimWorld.Planet.Site RimWorld.Planet.SitePart::site
IL_0082: callvirt virtual System.Int32 RimWorld.Planet.WorldObject::get_Tile()
IL_0087: ldloc.0
IL_0088: ldloc.1
IL_0089: call static Verse.Pawn
RimWorld.DownedRefugeeQuestUtility::GenerateRefugee(System.Int32 tile,
Verse.PawnKindDef pawnKind, System.Single chanceForFaction)
IL_008E: stloc.2
IL_008F: ldarg.1
IL_0090: ldarg.1
IL_0091: ldc.i4.1
IL_0092: ldc.i4.2
IL_0093: newobj System.Void
Verse.ThingOwner`1<Verse.Pawn>::.ctor(Verse.IThingHolder owner, System.Boolean
oneStackOnly, Verse.LookMode contentsLookMode)
IL_0098: stfld Verse.ThingOwner RimWorld.Planet.SitePart::things
IL_009D: ldarg.1
IL_009E: ldfld Verse.ThingOwner RimWorld.Planet.SitePart::things
IL_00A3: ldloc.2
IL_00A4: ldc.i4.1
IL_00A5: callvirt abstract virtual System.Boolean
Verse.ThingOwner::TryAdd(Verse.Thing item, System.Boolean
canMergeWithExistingStacks)
IL_00AA: pop
IL_00AB: ldloc.2
IL_00AC: ldfld RimWorld.Pawn_RelationsTracker Verse.Pawn::relations
IL_00B1: brfalse => Label4
IL_00B6: ldloc.2
IL_00B7: ldfld RimWorld.Pawn_RelationsTracker Verse.Pawn::relations
IL_00BC: ldc.i4.1
IL_00BD: stfld System.Boolean RimWorld.Pawn_RelationsTracker::everSeenByPlayer
IL_00C2: Label4
IL_00C2: ldloc.2
IL_00C3: call static Verse.Pawn
RimWorld.PawnRelationUtility::GetMostImportantColonyRelative(Verse.Pawn pawn)
IL_00C8: stloc.3
IL_00C9: ldloc.3
IL_00CA: brfalse => Label5
IL_00CF: ldloc.3
IL_00D0: ldloc.2
IL_00D1: call static RimWorld.PawnRelationDef
RimWorld.PawnRelationUtility::GetMostImportantRelation(Verse.Pawn me, Verse.Pawn
other)
IL_00D6: stloc.s 4 (RimWorld.PawnRelationDef)
IL_00D8: ldstr ""
IL_00DD: call static Verse.TaggedString
Verse.TaggedString::op_Implicit(System.String str)
IL_00E2: stloc.s 5 (Verse.TaggedString)
IL_00E4: ldloc.s 4 (RimWorld.PawnRelationDef)
IL_00E6: brfalse => Label6
IL_00EB: ldloc.s 4 (RimWorld.PawnRelationDef)
IL_00ED: ldfld System.Int32 RimWorld.PawnRelationDef::opinionOffset
IL_00F2: ldc.i4.0
IL_00F3: ble => Label7
IL_00F8: ldloc.2
IL_00F9: ldfld RimWorld.Pawn_RelationsTracker Verse.Pawn::relations
IL_00FE: ldloc.3
IL_00FF: stfld Verse.Pawn
RimWorld.Pawn_RelationsTracker::relativeInvolvedInRescueQuest
IL_0104: ldstr "\n\n"
IL_0109: ldstr "RelatedPawnInvolvedInQuest"
IL_010E: ldloc.3
IL_010F: callvirt virtual System.String Verse.Entity::get_LabelShort()
IL_0114: call static Verse.NamedArgument
Verse.NamedArgument::op_Implicit(System.String value)
IL_0119: ldloc.s 4 (RimWorld.PawnRelationDef)
IL_011B: ldloc.2
IL_011C: callvirt System.String
RimWorld.PawnRelationDef::GetGenderSpecificLabel(Verse.Pawn pawn)
IL_0121: call static Verse.NamedArgument
Verse.NamedArgument::op_Implicit(System.String value)
IL_0126: ldloc.3
IL_0127: ldstr "RELATIVE"
IL_012C: call static Verse.NamedArgument
Verse.NamedArgumentUtility::Named(System.Object arg, System.String label)
IL_0131: ldloc.2
IL_0132: ldstr "PAWN"
IL_0137: call static Verse.NamedArgument
Verse.NamedArgumentUtility::Named(System.Object arg, System.String label)
IL_013C: call static Verse.TaggedString
Verse.TranslatorFormattedStringExtensions::Translate(System.String key,
Verse.NamedArgument arg1, Verse.NamedArgument arg2, Verse.NamedArgument arg3,
Verse.NamedArgument arg4)
IL_0141: stloc.s 6 (Verse.TaggedString)
IL_0143: ldloca.s 6 (Verse.TaggedString)
IL_0145: ldloc.2
IL_0146: ldstr "PAWN"
IL_014B: ldc.i4.1
IL_014C: call Verse.TaggedString Verse.TaggedString::AdjustedFor(Verse.Pawn
p, System.String pawnSymbol, System.Boolean addRelationInfoSymbol)
IL_0151: call static Verse.TaggedString
Verse.TaggedString::op_Addition(System.String t1, Verse.TaggedString t2)
IL_0156: stloc.s 5 (Verse.TaggedString)
IL_0158: br => Label8
IL_015D: Label6
IL_015D: Label7
IL_015D: ldloca.s 5 (Verse.TaggedString)
IL_015F: ldloc.2
IL_0160: call static System.Boolean
RimWorld.PawnRelationUtility::TryAppendRelationsWithColonistsInfo(Verse.TaggedStrin
g& text, Verse.Pawn pawn)
IL_0165: pop
IL_0166: Label8
IL_0166: ldarg.3
IL_0167: ldstr "pawnInvolvedInQuestInfo"
IL_016C: ldloc.s 5 (Verse.TaggedString)
IL_016E: call static System.String
Verse.TaggedString::op_Implicit(Verse.TaggedString taggedString)
IL_0173: newobj System.Void Verse.Grammar.Rule_String::.ctor(System.String
keyword, System.String output)
IL_0178: callvirt virtual System.Void
System.Collections.Generic.List`1<Verse.Grammar.Rule>::Add(Verse.Grammar.Rule item)
IL_017D: Label5
IL_017D: ldarg.2
IL_017E: ldstr "refugee"
IL_0183: ldloc.2
IL_0184: ldc.i4.0
IL_0185: callvirt System.Void RimWorld.QuestGen.Slate::Set(System.String name,
Verse.Pawn var, System.Boolean isAbsoluteName)
IL_018A: // end original
IL_018A: Label0
IL_018A: ret
DONE

### Patch: virtual System.Void


RimWorld.Planet.SitePartWorker_ItemStash::Notify_GeneratedByQuestGen(RimWorld.Plane
t.SitePart part, RimWorld.QuestGen.Slate slate,
System.Collections.Generic.List`1<Verse.Grammar.Rule> outExtraDescriptionRules,
System.Collections.Generic.Dictionary`2<System.String, System.String>
outExtraDescriptionConstants)
### Replacement: static System.Void
RimWorld.Planet.SitePartWorker_ItemStash::RimWorld.Planet.SitePartWorker_ItemStash.
Notify_GeneratedByQuestGen_Patch1(RimWorld.Planet.SitePartWorker_ItemStash this,
RimWorld.Planet.SitePart part, RimWorld.QuestGen.Slate slate,
System.Collections.Generic.List`1<Verse.Grammar.Rule> outExtraDescriptionRules,
System.Collections.Generic.Dictionary`2<System.String, System.String>
outExtraDescriptionConstants)
IL_0000: Local var 0: System.Collections.Generic.List`1<Verse.Thing>
IL_0000: Local var 1: Verse.ThingDef
IL_0000: Local var 2: System.Collections.Generic.IEnumerable`1<Verse.ThingDef>
IL_0000: Local var 3: System.Collections.Generic.IEnumerator`1<Verse.ThingDef>
IL_0000: Local var 4: Verse.ThingDef
IL_0000: Local var 5: System.Single
IL_0000: Local var 6: RimWorld.ThingSetMakerParams
IL_0000: Local var 7: System.Boolean
IL_0000: ldc.i4 0
IL_0005: stloc 7 (System.Boolean)
IL_0009: ldc.i4.1
IL_000A: stloc 7 (System.Boolean)
IL_000E: ldloc 7 (System.Boolean)
IL_0012: brfalse => Label1
IL_0017: ldarg 1
IL_001B: ldarg 2
IL_001F: ldarg 3
IL_0023: ldarg 4
IL_0027: call static System.Void
VanillaBooksExpanded.HarmonyPatches::Notify_GeneratedByQuestGenPrefix(RimWorld.Plan
et.SitePart part, RimWorld.QuestGen.Slate slate,
System.Collections.Generic.List`1<Verse.Grammar.Rule> outExtraDescriptionRules,
System.Collections.Generic.Dictionary`2<System.String, System.String>
outExtraDescriptionConstants)
IL_002C: Label1
IL_002C: nop
IL_002D: ldloc 7 (System.Boolean)
IL_0031: brfalse => Label0
IL_0036: // start original
IL_0036: ldarg.0
IL_0037: ldarg.1
IL_0038: ldarg.2
IL_0039: ldarg.3
IL_003A: ldarg.s 4
IL_003C: call virtual System.Void
RimWorld.SitePartWorker::Notify_GeneratedByQuestGen(RimWorld.Planet.SitePart part,
RimWorld.QuestGen.Slate slate,
System.Collections.Generic.List`1<Verse.Grammar.Rule> outExtraDescriptionRules,
System.Collections.Generic.Dictionary`2<System.String, System.String>
outExtraDescriptionConstants)
IL_0041: ldarg.2
IL_0042: ldstr "itemStashSingleThing"
IL_0047: ldnull
IL_0048: ldc.i4.0
IL_0049: callvirt Verse.ThingDef RimWorld.QuestGen.Slate::Get(System.String name,
Verse.ThingDef defaultValue, System.Boolean isAbsoluteName)
IL_004E: stloc.1
IL_004F: ldarg.2
IL_0050: ldstr "itemStashThings"
IL_0055: ldnull
IL_0056: ldc.i4.0
IL_0057: callvirt System.Collections.Generic.IEnumerable`1<Verse.ThingDef>
RimWorld.QuestGen.Slate::Get(System.String name,
System.Collections.Generic.IEnumerable`1<Verse.ThingDef> defaultValue,
System.Boolean isAbsoluteName)
IL_005C: stloc.2
IL_005D: ldloc.1
IL_005E: brfalse => Label2
IL_0063: newobj System.Void
System.Collections.Generic.List`1<Verse.Thing>::.ctor()
IL_0068: stloc.0
IL_0069: ldloc.0
IL_006A: ldloc.1
IL_006B: ldnull
IL_006C: call static Verse.Thing Verse.ThingMaker::MakeThing(Verse.ThingDef
def, Verse.ThingDef stuff)
IL_0071: callvirt virtual System.Void
System.Collections.Generic.List`1<Verse.Thing>::Add(Verse.Thing item)
IL_0076: br => Label3
IL_007B: Label2
IL_007B: ldloc.2
IL_007C: brfalse => Label4
IL_0081: newobj System.Void
System.Collections.Generic.List`1<Verse.Thing>::.ctor()
IL_0086: stloc.0
IL_0087: ldloc.2
IL_0088: callvirt abstract virtual
System.Collections.Generic.IEnumerator`1<Verse.ThingDef>
System.Collections.Generic.IEnumerable`1<Verse.ThingDef>::GetEnumerator()
IL_008D: stloc.3
.try
{
IL_008E: br => Label5
IL_0093: Label6
IL_0093: ldloc.3
IL_0094: callvirt abstract virtual Verse.ThingDef
System.Collections.Generic.IEnumerator`1<Verse.ThingDef>::get_Current()
IL_0099: stloc.s 4 (Verse.ThingDef)
IL_009B: ldloc.0
IL_009C: ldloc.s 4 (Verse.ThingDef)
IL_009E: ldnull
IL_009F: call static Verse.Thing
Verse.ThingMaker::MakeThing(Verse.ThingDef def, Verse.ThingDef stuff)
IL_00A4: callvirt virtual System.Void
System.Collections.Generic.List`1<Verse.Thing>::Add(Verse.Thing item)
IL_00A9: Label5
IL_00A9: ldloc.3
IL_00AA: callvirt abstract virtual System.Boolean
System.Collections.IEnumerator::MoveNext()
IL_00AF: brtrue => Label6
IL_00B4: leave => Label7
IL_00B9: leave => (autogenerated)
} // end try
.finally
{
IL_00BE: ldloc.3
IL_00BF: brfalse => Label8
IL_00C4: ldloc.3
IL_00C5: callvirt abstract virtual System.Void
System.IDisposable::Dispose()
IL_00CA: Label8
IL_00CA: endfinally
IL_00CB: leave => (autogenerated)
} // end handler
IL_00CC: Label4
IL_00CC: ldarg.2
IL_00CD: ldstr "points"
IL_00D2: ldc.r4 0
IL_00D7: ldc.i4.0
IL_00D8: callvirt System.Single RimWorld.QuestGen.Slate::Get(System.String name,
System.Single defaultValue, System.Boolean isAbsoluteName)
IL_00DD: stloc.s 5 (System.Single)
IL_00DF: ldloca.s 6 (RimWorld.ThingSetMakerParams)
IL_00E1: initobj RimWorld.ThingSetMakerParams
IL_00E7: ldloca.s 6 (RimWorld.ThingSetMakerParams)
IL_00E9: ldc.r4 0.7
IL_00EE: ldc.r4 1.3
IL_00F3: newobj System.Void Verse.FloatRange::.ctor(System.Single min,
System.Single max)
IL_00F8: ldsfld Verse.SimpleCurve
RimWorld.QuestTuning::PointsToRewardMarketValueCurve
IL_00FD: ldloc.s 5 (System.Single)
IL_00FF: callvirt System.Single Verse.SimpleCurve::Evaluate(System.Single x)
IL_0104: call static Verse.FloatRange
Verse.FloatRange::op_Multiply(Verse.FloatRange r, System.Single val)
IL_0109: newobj System.Void
System.Nullable`1<Verse.FloatRange>::.ctor(Verse.FloatRange value)
IL_010E: stfld System.Nullable`1<Verse.FloatRange>
RimWorld.ThingSetMakerParams::totalMarketValueRange
IL_0113: ldsfld RimWorld.ThingSetMakerDef
RimWorld.ThingSetMakerDefOf::Reward_ItemsStandard
IL_0118: ldfld RimWorld.ThingSetMaker RimWorld.ThingSetMakerDef::root
IL_011D: ldloc.s 6 (RimWorld.ThingSetMakerParams)
IL_011F: callvirt System.Collections.Generic.List`1<Verse.Thing>
RimWorld.ThingSetMaker::Generate(RimWorld.ThingSetMakerParams parms)
IL_0124: stloc.0
IL_0125: Label3
IL_0125: Label7
IL_0125: ldarg.1
IL_0126: ldarg.1
IL_0127: ldc.i4.0
IL_0128: ldc.i4.2
IL_0129: newobj System.Void
Verse.ThingOwner`1<Verse.Thing>::.ctor(Verse.IThingHolder owner, System.Boolean
oneStackOnly, Verse.LookMode contentsLookMode)
IL_012E: stfld Verse.ThingOwner RimWorld.Planet.SitePart::things
IL_0133: ldarg.1
IL_0134: ldfld Verse.ThingOwner RimWorld.Planet.SitePart::things
IL_0139: ldloc.0
IL_013A: ldc.i4.0
IL_013B: ldc.i4.0
IL_013C: callvirt System.Void
Verse.ThingOwner::TryAddRangeOrTransfer(System.Collections.Generic.IEnumerable`1<Ve
rse.Thing> things, System.Boolean canMergeWithExistingStacks, System.Boolean
destroyLeftover)
IL_0141: ldarg.2
IL_0142: ldstr "generatedItemStashThings"
IL_0147: ldloc.0
IL_0148: ldc.i4.0
IL_0149: callvirt System.Void RimWorld.QuestGen.Slate::Set(System.String name,
System.Collections.Generic.List`1<Verse.Thing> var, System.Boolean isAbsoluteName)
IL_014E: ldarg.3
IL_014F: ldstr "itemStashContents"
IL_0154: ldloc.0
IL_0155: ldstr " - "
IL_015A: call static System.String
RimWorld.GenLabel::ThingsLabel(System.Collections.Generic.IEnumerable`1<Verse.Thing
> things, System.String prefix)
IL_015F: newobj System.Void Verse.Grammar.Rule_String::.ctor(System.String
keyword, System.String output)
IL_0164: callvirt virtual System.Void
System.Collections.Generic.List`1<Verse.Grammar.Rule>::Add(Verse.Grammar.Rule item)
IL_0169: ldarg.3
IL_016A: ldstr "itemStashContentsValue"
IL_016F: ldloc.0
IL_0170: call static System.Single
RimWorld.GenThing::GetMarketValue(System.Collections.Generic.IList`1<Verse.Thing>
things)
IL_0175: ldnull
IL_0176: call static System.String Verse.GenText::ToStringMoney(System.Single
f, System.String format)
IL_017B: newobj System.Void Verse.Grammar.Rule_String::.ctor(System.String
keyword, System.String output)
IL_0180: callvirt virtual System.Void
System.Collections.Generic.List`1<Verse.Grammar.Rule>::Add(Verse.Grammar.Rule item)
IL_0185: // end original
IL_0185: Label0
IL_0185: ret
DONE

### Patch: virtual System.Void


RimWorld.Planet.SitePartWorker_PreciousLump::Notify_GeneratedByQuestGen(RimWorld.Pl
anet.SitePart part, RimWorld.QuestGen.Slate slate,
System.Collections.Generic.List`1<Verse.Grammar.Rule> outExtraDescriptionRules,
System.Collections.Generic.Dictionary`2<System.String, System.String>
outExtraDescriptionConstants)
### Replacement: static System.Void
RimWorld.Planet.SitePartWorker_PreciousLump::RimWorld.Planet.SitePartWorker_Preciou
sLump.Notify_GeneratedByQuestGen_Patch1(RimWorld.Planet.SitePartWorker_PreciousLump
this, RimWorld.Planet.SitePart part, RimWorld.QuestGen.Slate slate,
System.Collections.Generic.List`1<Verse.Grammar.Rule> outExtraDescriptionRules,
System.Collections.Generic.Dictionary`2<System.String, System.String>
outExtraDescriptionConstants)
IL_0000: Local var 0: System.Boolean
IL_0000: ldc.i4 0
IL_0005: stloc 0 (System.Boolean)
IL_0009: ldc.i4.1
IL_000A: stloc 0 (System.Boolean)
IL_000E: ldloc 0 (System.Boolean)
IL_0012: brfalse => Label1
IL_0017: ldarg 1
IL_001B: ldarg 2
IL_001F: ldarg 3
IL_0023: ldarg 4
IL_0027: call static System.Void
VanillaBooksExpanded.HarmonyPatches::Notify_GeneratedByQuestGenPrefix(RimWorld.Plan
et.SitePart part, RimWorld.QuestGen.Slate slate,
System.Collections.Generic.List`1<Verse.Grammar.Rule> outExtraDescriptionRules,
System.Collections.Generic.Dictionary`2<System.String, System.String>
outExtraDescriptionConstants)
IL_002C: Label1
IL_002C: nop
IL_002D: ldloc 0 (System.Boolean)
IL_0031: brfalse => Label0
IL_0036: // start original
IL_0036: ldarg.0
IL_0037: ldarg.1
IL_0038: ldarg.2
IL_0039: ldarg.3
IL_003A: ldarg.s 4
IL_003C: call virtual System.Void
RimWorld.SitePartWorker::Notify_GeneratedByQuestGen(RimWorld.Planet.SitePart part,
RimWorld.QuestGen.Slate slate,
System.Collections.Generic.List`1<Verse.Grammar.Rule> outExtraDescriptionRules,
System.Collections.Generic.Dictionary`2<System.String, System.String>
outExtraDescriptionConstants)
IL_0041: ldarg.1
IL_0042: ldfld RimWorld.Planet.Site RimWorld.Planet.SitePart::site
IL_0047: callvirt System.Single RimWorld.Planet.Site::get_ActualThreatPoints()
IL_004C: ldc.r4 0
IL_0051: ble.un => Label2
IL_0056: ldarg.3
IL_0057: ldstr "lumpThreatDescription"
IL_005C: ldstr "\n\n"
IL_0061: ldstr "PreciousLumpHostileThreat"
IL_0066: call static Verse.TaggedString
Verse.Translator::Translate(System.String key)
IL_006B: call static Verse.TaggedString
Verse.TaggedString::op_Addition(System.String t1, Verse.TaggedString t2)
IL_0070: call static System.String
Verse.TaggedString::op_Implicit(Verse.TaggedString taggedString)
IL_0075: newobj System.Void Verse.Grammar.Rule_String::.ctor(System.String
keyword, System.String output)
IL_007A: callvirt virtual System.Void
System.Collections.Generic.List`1<Verse.Grammar.Rule>::Add(Verse.Grammar.Rule item)
IL_007F: br => Label3
IL_0084: Label2
IL_0084: ldarg.3
IL_0085: ldstr "lumpThreatDescription"
IL_008A: ldstr ""
IL_008F: newobj System.Void Verse.Grammar.Rule_String::.ctor(System.String
keyword, System.String output)
IL_0094: callvirt virtual System.Void
System.Collections.Generic.List`1<Verse.Grammar.Rule>::Add(Verse.Grammar.Rule item)
IL_0099: // end original
IL_0099: Label3
IL_0099: Label0
IL_0099: ret
DONE

### Patch: virtual System.Void


RimWorld.Planet.SitePartWorker_PrisonerWillingToJoin::Notify_GeneratedByQuestGen(Ri
mWorld.Planet.SitePart part, RimWorld.QuestGen.Slate slate,
System.Collections.Generic.List`1<Verse.Grammar.Rule> outExtraDescriptionRules,
System.Collections.Generic.Dictionary`2<System.String, System.String>
outExtraDescriptionConstants)
### Replacement: static System.Void
RimWorld.Planet.SitePartWorker_PrisonerWillingToJoin::RimWorld.Planet.SitePartWorke
r_PrisonerWillingToJoin.Notify_GeneratedByQuestGen_Patch1(RimWorld.Planet.SitePartW
orker_PrisonerWillingToJoin this, RimWorld.Planet.SitePart part,
RimWorld.QuestGen.Slate slate,
System.Collections.Generic.List`1<Verse.Grammar.Rule> outExtraDescriptionRules,
System.Collections.Generic.Dictionary`2<System.String, System.String>
outExtraDescriptionConstants)
IL_0000: Local var 0: Verse.Pawn
IL_0000: Local var 1: System.String
IL_0000: Local var 2: System.String
IL_0000: Local var 3: System.Boolean
IL_0000: ldc.i4 0
IL_0005: stloc 3 (System.Boolean)
IL_0009: ldc.i4.1
IL_000A: stloc 3 (System.Boolean)
IL_000E: ldloc 3 (System.Boolean)
IL_0012: brfalse => Label1
IL_0017: ldarg 1
IL_001B: ldarg 2
IL_001F: ldarg 3
IL_0023: ldarg 4
IL_0027: call static System.Void
VanillaBooksExpanded.HarmonyPatches::Notify_GeneratedByQuestGenPrefix(RimWorld.Plan
et.SitePart part, RimWorld.QuestGen.Slate slate,
System.Collections.Generic.List`1<Verse.Grammar.Rule> outExtraDescriptionRules,
System.Collections.Generic.Dictionary`2<System.String, System.String>
outExtraDescriptionConstants)
IL_002C: Label1
IL_002C: nop
IL_002D: ldloc 3 (System.Boolean)
IL_0031: brfalse => Label0
IL_0036: // start original
IL_0036: ldarg.0
IL_0037: ldarg.1
IL_0038: ldarg.2
IL_0039: ldarg.3
IL_003A: ldarg.s 4
IL_003C: call virtual System.Void
RimWorld.SitePartWorker::Notify_GeneratedByQuestGen(RimWorld.Planet.SitePart part,
RimWorld.QuestGen.Slate slate,
System.Collections.Generic.List`1<Verse.Grammar.Rule> outExtraDescriptionRules,
System.Collections.Generic.Dictionary`2<System.String, System.String>
outExtraDescriptionConstants)
IL_0041: ldarg.1
IL_0042: ldfld RimWorld.Planet.Site RimWorld.Planet.SitePart::site
IL_0047: callvirt virtual System.Int32 RimWorld.Planet.WorldObject::get_Tile()
IL_004C: ldarg.1
IL_004D: ldfld RimWorld.Planet.Site RimWorld.Planet.SitePart::site
IL_0052: callvirt virtual RimWorld.Faction
RimWorld.Planet.WorldObject::get_Faction()
IL_0057: call static Verse.Pawn
RimWorld.PrisonerWillingToJoinQuestUtility::GeneratePrisoner(System.Int32 tile,
RimWorld.Faction hostFaction)
IL_005C: stloc.0
IL_005D: ldarg.1
IL_005E: ldarg.1
IL_005F: ldc.i4.1
IL_0060: ldc.i4.2
IL_0061: newobj System.Void
Verse.ThingOwner`1<Verse.Pawn>::.ctor(Verse.IThingHolder owner, System.Boolean
oneStackOnly, Verse.LookMode contentsLookMode)
IL_0066: stfld Verse.ThingOwner RimWorld.Planet.SitePart::things
IL_006B: ldarg.1
IL_006C: ldfld Verse.ThingOwner RimWorld.Planet.SitePart::things
IL_0071: ldloc.0
IL_0072: ldc.i4.1
IL_0073: callvirt abstract virtual System.Boolean
Verse.ThingOwner::TryAdd(Verse.Thing item, System.Boolean
canMergeWithExistingStacks)
IL_0078: pop
IL_0079: ldloc.0
IL_007A: call static System.Collections.Generic.IEnumerable`1<Verse.Pawn>
Verse.Gen::YieldSingle(Verse.Pawn val)
IL_007F: ldloca.s 1 (System.String)
IL_0081: ldc.i4.1
IL_0082: ldc.i4.0
IL_0083: call static System.Void
RimWorld.PawnRelationUtility::Notify_PawnsSeenByPlayer(System.Collections.Generic.I
Enumerable`1<Verse.Pawn> seenPawns, System.String& pawnRelationsInfo,
System.Boolean informEvenIfSeenBefore, System.Boolean writeSeenPawnsNames)
IL_0088: ldloc.1
IL_0089: call static System.Boolean Verse.GenText::NullOrEmpty(System.String
str)
IL_008E: brtrue => Label2
IL_0093: ldstr "\n\n"
IL_0098: ldstr "PawnHasTheseRelationshipsWithColonists"
IL_009D: ldloc.0
IL_009E: callvirt virtual System.String Verse.Entity::get_LabelShort()
IL_00A3: call static Verse.NamedArgument
Verse.NamedArgument::op_Implicit(System.String value)
IL_00A8: ldloc.0
IL_00A9: call static Verse.NamedArgument
Verse.NamedArgument::op_Implicit(Verse.Thing value)
IL_00AE: call static Verse.TaggedString
Verse.TranslatorFormattedStringExtensions::Translate(System.String key,
Verse.NamedArgument arg1, Verse.NamedArgument arg2)
IL_00B3: call static Verse.TaggedString
Verse.TaggedString::op_Addition(System.String t1, Verse.TaggedString t2)
IL_00B8: ldstr "\n\n"
IL_00BD: call static Verse.TaggedString
Verse.TaggedString::op_Addition(Verse.TaggedString t1, System.String t2)
IL_00C2: ldloc.1
IL_00C3: call static Verse.TaggedString
Verse.TaggedString::op_Addition(Verse.TaggedString t1, System.String t2)
IL_00C8: call static System.String
Verse.TaggedString::op_Implicit(Verse.TaggedString taggedString)
IL_00CD: stloc.2
IL_00CE: br => Label3
IL_00D3: Label2
IL_00D3: ldstr ""
IL_00D8: stloc.2
IL_00D9: Label3
IL_00D9: ldarg.2
IL_00DA: ldstr "prisoner"
IL_00DF: ldloc.0
IL_00E0: ldc.i4.0
IL_00E1: callvirt System.Void RimWorld.QuestGen.Slate::Set(System.String name,
Verse.Pawn var, System.Boolean isAbsoluteName)
IL_00E6: ldarg.3
IL_00E7: ldstr "prisonerFullRelationInfo"
IL_00EC: ldloc.2
IL_00ED: newobj System.Void Verse.Grammar.Rule_String::.ctor(System.String
keyword, System.String output)
IL_00F2: callvirt virtual System.Void
System.Collections.Generic.List`1<Verse.Grammar.Rule>::Add(Verse.Grammar.Rule item)
IL_00F7: // end original
IL_00F7: Label0
IL_00F7: ret
DONE

### Patch: virtual System.Void


VFE_Settlers.SitePartWorkers.SitePartWorker_SpawnWanted::Notify_GeneratedByQuestGen
(RimWorld.Planet.SitePart part, RimWorld.QuestGen.Slate slate,
System.Collections.Generic.List`1<Verse.Grammar.Rule> outExtraDescriptionRules,
System.Collections.Generic.Dictionary`2<System.String, System.String>
outExtraDescriptionConstants)
### Replacement: static System.Void
VFE_Settlers.SitePartWorkers.SitePartWorker_SpawnWanted::VFE_Settlers.SitePartWorke
rs.SitePartWorker_SpawnWanted.Notify_GeneratedByQuestGen_Patch1(VFE_Settlers.SitePa
rtWorkers.SitePartWorker_SpawnWanted this, RimWorld.Planet.SitePart part,
RimWorld.QuestGen.Slate slate,
System.Collections.Generic.List`1<Verse.Grammar.Rule> outExtraDescriptionRules,
System.Collections.Generic.Dictionary`2<System.String, System.String>
outExtraDescriptionConstants)
IL_0000: Local var 0: Verse.Pawn
IL_0000: Local var 1: Verse.Pawn
IL_0000: Local var 2: VFE_Settlers.Hediffs.HediffComp_Wanted
IL_0000: Local var 3: Verse.NameTriple
IL_0000: Local var 4: System.Int32
IL_0000: Local var 5: System.String
IL_0000: Local var 6: System.Boolean
IL_0000: ldc.i4 0
IL_0005: stloc 6 (System.Boolean)
IL_0009: ldc.i4.1
IL_000A: stloc 6 (System.Boolean)
IL_000E: ldloc 6 (System.Boolean)
IL_0012: brfalse => Label1
IL_0017: ldarg 1
IL_001B: ldarg 2
IL_001F: ldarg 3
IL_0023: ldarg 4
IL_0027: call static System.Void
VanillaBooksExpanded.HarmonyPatches::Notify_GeneratedByQuestGenPrefix(RimWorld.Plan
et.SitePart part, RimWorld.QuestGen.Slate slate,
System.Collections.Generic.List`1<Verse.Grammar.Rule> outExtraDescriptionRules,
System.Collections.Generic.Dictionary`2<System.String, System.String>
outExtraDescriptionConstants)
IL_002C: Label1
IL_002C: nop
IL_002D: ldloc 6 (System.Boolean)
IL_0031: brfalse => Label0
IL_0036: // start original
IL_0036: nop
IL_0037: ldarg.0
IL_0038: ldarg.1
IL_0039: ldarg.2
IL_003A: ldarg.3
IL_003B: ldarg.s 4
IL_003D: call virtual System.Void
RimWorld.SitePartWorker::Notify_GeneratedByQuestGen(RimWorld.Planet.SitePart part,
RimWorld.QuestGen.Slate slate,
System.Collections.Generic.List`1<Verse.Grammar.Rule> outExtraDescriptionRules,
System.Collections.Generic.Dictionary`2<System.String, System.String>
outExtraDescriptionConstants)
IL_0042: nop
IL_0043: ldarg.2
IL_0044: ldstr "asker"
IL_0049: ldloca.s 0 (Verse.Pawn)
IL_004B: ldc.i4.0
IL_004C: callvirt System.Boolean RimWorld.QuestGen.Slate::TryGet(System.String
name, Verse.Pawn& var, System.Boolean isAbsoluteName)
IL_0051: pop
IL_0052: ldloc.0
IL_0053: callvirt virtual RimWorld.Faction Verse.Thing::get_Faction()
IL_0058: ldarg.1
IL_0059: ldfld RimWorld.Planet.Site RimWorld.Planet.SitePart::site
IL_005E: callvirt virtual RimWorld.Faction
RimWorld.Planet.WorldObject::get_Faction()
IL_0063: ldsfld VFE_Settlers.VFESModSettings VFE_Settlers.VFESMod::settings
IL_0068: ldfld System.Int32 VFE_Settlers.VFESModSettings::MinReward
IL_006D: ldsfld VFE_Settlers.VFESModSettings VFE_Settlers.VFESMod::settings
IL_0072: ldfld System.Int32 VFE_Settlers.VFESModSettings::MaxReward
IL_0077: call static System.Int32 Verse.Rand::Range(System.Int32 min,
System.Int32 max)
IL_007C: ldc.i4.2
IL_007D: mul
IL_007E: ldloca.s 2 (VFE_Settlers.Hediffs.HediffComp_Wanted)
IL_0080: call static Verse.Pawn
VFE_Settlers.Utilities.UtilityPawn::GenerateWanted(RimWorld.Faction alliedFaction,
RimWorld.Faction enemyFaction, System.Int32 reward,
VFE_Settlers.Hediffs.HediffComp_Wanted& wan)
IL_0085: stloc.1
IL_0086: ldloc.1
IL_0087: callvirt Verse.Name Verse.Pawn::get_Name()
IL_008C: isinst Verse.NameTriple
IL_0091: stloc.3
IL_0092: ldarg.2
IL_0093: ldstr "criminal"
IL_0098: ldloc.1
IL_0099: ldc.i4.0
IL_009A: callvirt System.Void RimWorld.QuestGen.Slate::Set(System.String name,
Verse.Pawn var, System.Boolean isAbsoluteName)
IL_009F: nop
IL_00A0: ldarg.2
IL_00A1: ldstr "bounty"
IL_00A6: ldloc.2
IL_00A7: ldfld System.Int32 VFE_Settlers.Hediffs.HediffComp_Wanted::Reward
IL_00AC: ldc.i4.s 10
IL_00AE: mul
IL_00AF: stloc.s 4 (System.Int32)
IL_00B1: ldloca.s 4 (System.Int32)
IL_00B3: call virtual System.String System.Int32::ToString()
IL_00B8: ldc.i4.0
IL_00B9: callvirt System.Void RimWorld.QuestGen.Slate::Set(System.String name,
System.String var, System.Boolean isAbsoluteName)
IL_00BE: nop
IL_00BF: ldarg.2
IL_00C0: ldstr "nickname"
IL_00C5: ldloc.3
IL_00C6: callvirt System.String Verse.NameTriple::get_Nick()
IL_00CB: ldc.i4.0
IL_00CC: callvirt System.Void RimWorld.QuestGen.Slate::Set(System.String name,
System.String var, System.Boolean isAbsoluteName)
IL_00D1: nop
IL_00D2: ldarg.1
IL_00D3: ldarg.1
IL_00D4: ldc.i4.1
IL_00D5: ldc.i4.2
IL_00D6: newobj System.Void
Verse.ThingOwner`1<Verse.Pawn>::.ctor(Verse.IThingHolder owner, System.Boolean
oneStackOnly, Verse.LookMode contentsLookMode)
IL_00DB: stfld Verse.ThingOwner RimWorld.Planet.SitePart::things
IL_00E0: ldarg.1
IL_00E1: ldfld Verse.ThingOwner RimWorld.Planet.SitePart::things
IL_00E6: ldloc.1
IL_00E7: ldc.i4.0
IL_00E8: callvirt abstract virtual System.Boolean
Verse.ThingOwner::TryAdd(Verse.Thing item, System.Boolean
canMergeWithExistingStacks)
IL_00ED: pop
IL_00EE: ldloc.1
IL_00EF: call static System.Collections.Generic.IEnumerable`1<Verse.Pawn>
Verse.Gen::YieldSingle(Verse.Pawn val)
IL_00F4: ldloca.s 5 (System.String)
IL_00F6: ldc.i4.1
IL_00F7: ldc.i4.0
IL_00F8: call static System.Void
RimWorld.PawnRelationUtility::Notify_PawnsSeenByPlayer(System.Collections.Generic.I
Enumerable`1<Verse.Pawn> seenPawns, System.String& pawnRelationsInfo,
System.Boolean informEvenIfSeenBefore, System.Boolean writeSeenPawnsNames)
IL_00FD: nop
IL_00FE: // end original
IL_00FE: Label0
IL_00FE: ret
DONE

### Patch: virtual System.Void


VFEMech.SitePartWorker_MechanoidShipLanding::Notify_GeneratedByQuestGen(RimWorld.Pl
anet.SitePart part, RimWorld.QuestGen.Slate slate,
System.Collections.Generic.List`1<Verse.Grammar.Rule> outExtraDescriptionRules,
System.Collections.Generic.Dictionary`2<System.String, System.String>
outExtraDescriptionConstants)
### Replacement: static System.Void
VFEMech.SitePartWorker_MechanoidShipLanding::VFEMech.SitePartWorker_MechanoidShipLa
nding.Notify_GeneratedByQuestGen_Patch1(VFEMech.SitePartWorker_MechanoidShipLanding
this, RimWorld.Planet.SitePart part, RimWorld.QuestGen.Slate slate,
System.Collections.Generic.List`1<Verse.Grammar.Rule> outExtraDescriptionRules,
System.Collections.Generic.Dictionary`2<System.String, System.String>
outExtraDescriptionConstants)
IL_0000: Local var 0: RimWorld.Faction
IL_0000: Local var 1: RimWorld.Planet.Site
IL_0000: Local var 2: System.Boolean
IL_0000: ldc.i4 0
IL_0005: stloc 2 (System.Boolean)
IL_0009: ldc.i4.1
IL_000A: stloc 2 (System.Boolean)
IL_000E: ldloc 2 (System.Boolean)
IL_0012: brfalse => Label1
IL_0017: ldarg 1
IL_001B: ldarg 2
IL_001F: ldarg 3
IL_0023: ldarg 4
IL_0027: call static System.Void
VanillaBooksExpanded.HarmonyPatches::Notify_GeneratedByQuestGenPrefix(RimWorld.Plan
et.SitePart part, RimWorld.QuestGen.Slate slate,
System.Collections.Generic.List`1<Verse.Grammar.Rule> outExtraDescriptionRules,
System.Collections.Generic.Dictionary`2<System.String, System.String>
outExtraDescriptionConstants)
IL_002C: Label1
IL_002C: nop
IL_002D: ldloc 2 (System.Boolean)
IL_0031: brfalse => Label0
IL_0036: // start original
IL_0036: nop
IL_0037: ldarg.0
IL_0038: ldarg.1
IL_0039: ldarg.2
IL_003A: ldarg.3
IL_003B: ldarg.s 4
IL_003D: call virtual System.Void
RimWorld.SitePartWorker::Notify_GeneratedByQuestGen(RimWorld.Planet.SitePart part,
RimWorld.QuestGen.Slate slate,
System.Collections.Generic.List`1<Verse.Grammar.Rule> outExtraDescriptionRules,
System.Collections.Generic.Dictionary`2<System.String, System.String>
outExtraDescriptionConstants)
IL_0042: nop
IL_0043: call static RimWorld.FactionManager Verse.Find::get_FactionManager()
IL_0048: ldsfld RimWorld.FactionDef VFEMech.VFEMDefOf::VFE_Mechanoid
IL_004D: callvirt RimWorld.Faction
RimWorld.FactionManager::FirstFactionOfDef(RimWorld.FactionDef facDef)
IL_0052: stloc.0
IL_0053: ldarg.1
IL_0054: callvirt virtual Verse.IThingHolder
RimWorld.Planet.SitePart::get_ParentHolder()
IL_0059: isinst RimWorld.Planet.Site
IL_005E: stloc.1
IL_005F: ldloc.1
IL_0060: ldloc.0
IL_0061: callvirt virtual System.Void
RimWorld.Planet.WorldObject::SetFaction(RimWorld.Faction newFaction)
IL_0066: nop
IL_0067: ldloc.1
IL_0068: ldarg.2
IL_0069: ldstr "points"
IL_006E: ldc.r4 1000
IL_0073: ldc.i4.0
IL_0074: callvirt System.Single RimWorld.QuestGen.Slate::Get(System.String name,
System.Single defaultValue, System.Boolean isAbsoluteName)
IL_0079: stfld System.Single RimWorld.Planet.Site::desiredThreatPoints
IL_007E: // end original
IL_007E: Label0
IL_007E: ret
DONE

### Patch: virtual System.Void


VFEMech.SitePartWorker_MechanoidAttackParty::Notify_GeneratedByQuestGen(RimWorld.Pl
anet.SitePart part, RimWorld.QuestGen.Slate slate,
System.Collections.Generic.List`1<Verse.Grammar.Rule> outExtraDescriptionRules,
System.Collections.Generic.Dictionary`2<System.String, System.String>
outExtraDescriptionConstants)
### Replacement: static System.Void
VFEMech.SitePartWorker_MechanoidAttackParty::VFEMech.SitePartWorker_MechanoidAttack
Party.Notify_GeneratedByQuestGen_Patch1(VFEMech.SitePartWorker_MechanoidAttackParty
this, RimWorld.Planet.SitePart part, RimWorld.QuestGen.Slate slate,
System.Collections.Generic.List`1<Verse.Grammar.Rule> outExtraDescriptionRules,
System.Collections.Generic.Dictionary`2<System.String, System.String>
outExtraDescriptionConstants)
IL_0000: Local var 0: Verse.Pawn
IL_0000: Local var 1: RimWorld.Planet.Site
IL_0000: Local var 2: System.Boolean
IL_0000: ldc.i4 0
IL_0005: stloc 2 (System.Boolean)
IL_0009: ldc.i4.1
IL_000A: stloc 2 (System.Boolean)
IL_000E: ldloc 2 (System.Boolean)
IL_0012: brfalse => Label1
IL_0017: ldarg 1
IL_001B: ldarg 2
IL_001F: ldarg 3
IL_0023: ldarg 4
IL_0027: call static System.Void
VanillaBooksExpanded.HarmonyPatches::Notify_GeneratedByQuestGenPrefix(RimWorld.Plan
et.SitePart part, RimWorld.QuestGen.Slate slate,
System.Collections.Generic.List`1<Verse.Grammar.Rule> outExtraDescriptionRules,
System.Collections.Generic.Dictionary`2<System.String, System.String>
outExtraDescriptionConstants)
IL_002C: Label1
IL_002C: nop
IL_002D: ldloc 2 (System.Boolean)
IL_0031: brfalse => Label0
IL_0036: // start original
IL_0036: nop
IL_0037: ldarg.0
IL_0038: ldarg.1
IL_0039: ldarg.2
IL_003A: ldarg.3
IL_003B: ldarg.s 4
IL_003D: call virtual System.Void
RimWorld.SitePartWorker::Notify_GeneratedByQuestGen(RimWorld.Planet.SitePart part,
RimWorld.QuestGen.Slate slate,
System.Collections.Generic.List`1<Verse.Grammar.Rule> outExtraDescriptionRules,
System.Collections.Generic.Dictionary`2<System.String, System.String>
outExtraDescriptionConstants)
IL_0042: nop
IL_0043: ldarg.2
IL_0044: ldstr "asker"
IL_0049: ldnull
IL_004A: ldc.i4.0
IL_004B: callvirt Verse.Pawn RimWorld.QuestGen.Slate::Get(System.String name,
Verse.Pawn defaultValue, System.Boolean isAbsoluteName)
IL_0050: stloc.0
IL_0051: ldarg.1
IL_0052: callvirt virtual Verse.IThingHolder
RimWorld.Planet.SitePart::get_ParentHolder()
IL_0057: isinst RimWorld.Planet.Site
IL_005C: stloc.1
IL_005D: ldloc.1
IL_005E: ldloc.0
IL_005F: callvirt virtual RimWorld.Faction Verse.Thing::get_Faction()
IL_0064: callvirt virtual System.Void
RimWorld.Planet.WorldObject::SetFaction(RimWorld.Faction newFaction)
IL_0069: nop
IL_006A: // end original
IL_006A: Label0
IL_006A: ret
DONE

### Patch: virtual System.Void


VFEMech.SitePartWorker_MechanoidStorage::Notify_GeneratedByQuestGen(RimWorld.Planet
.SitePart part, RimWorld.QuestGen.Slate slate,
System.Collections.Generic.List`1<Verse.Grammar.Rule> outExtraDescriptionRules,
System.Collections.Generic.Dictionary`2<System.String, System.String>
outExtraDescriptionConstants)
### Replacement: static System.Void
VFEMech.SitePartWorker_MechanoidStorage::VFEMech.SitePartWorker_MechanoidStorage.No
tify_GeneratedByQuestGen_Patch1(VFEMech.SitePartWorker_MechanoidStorage this,
RimWorld.Planet.SitePart part, RimWorld.QuestGen.Slate slate,
System.Collections.Generic.List`1<Verse.Grammar.Rule> outExtraDescriptionRules,
System.Collections.Generic.Dictionary`2<System.String, System.String>
outExtraDescriptionConstants)
IL_0000: Local var 0: Verse.ThingDef
IL_0000: Local var 1: System.Collections.Generic.IEnumerable`1<Verse.ThingDef>
IL_0000: Local var 2: System.Collections.Generic.List`1<Verse.Thing>
IL_0000: Local var 3: System.Boolean
IL_0000: Local var 4: System.Boolean
IL_0000: Local var 5: System.Collections.Generic.IEnumerator`1<Verse.ThingDef>
IL_0000: Local var 6: Verse.ThingDef
IL_0000: Local var 7: System.Single
IL_0000: Local var 8: RimWorld.ThingSetMakerParams
IL_0000: Local var 9: System.Boolean
IL_0000: ldc.i4 0
IL_0005: stloc 9 (System.Boolean)
IL_0009: ldc.i4.1
IL_000A: stloc 9 (System.Boolean)
IL_000E: ldloc 9 (System.Boolean)
IL_0012: brfalse => Label1
IL_0017: ldarg 1
IL_001B: ldarg 2
IL_001F: ldarg 3
IL_0023: ldarg 4
IL_0027: call static System.Void
VanillaBooksExpanded.HarmonyPatches::Notify_GeneratedByQuestGenPrefix(RimWorld.Plan
et.SitePart part, RimWorld.QuestGen.Slate slate,
System.Collections.Generic.List`1<Verse.Grammar.Rule> outExtraDescriptionRules,
System.Collections.Generic.Dictionary`2<System.String, System.String>
outExtraDescriptionConstants)
IL_002C: Label1
IL_002C: nop
IL_002D: ldloc 9 (System.Boolean)
IL_0031: brfalse => Label0
IL_0036: // start original
IL_0036: nop
IL_0037: ldarg.0
IL_0038: ldarg.1
IL_0039: ldarg.2
IL_003A: ldarg.3
IL_003B: ldarg.s 4
IL_003D: call virtual System.Void
RimWorld.SitePartWorker::Notify_GeneratedByQuestGen(RimWorld.Planet.SitePart part,
RimWorld.QuestGen.Slate slate,
System.Collections.Generic.List`1<Verse.Grammar.Rule> outExtraDescriptionRules,
System.Collections.Generic.Dictionary`2<System.String, System.String>
outExtraDescriptionConstants)
IL_0042: nop
IL_0043: ldarg.2
IL_0044: ldstr "itemStashSingleThing"
IL_0049: ldnull
IL_004A: ldc.i4.0
IL_004B: callvirt Verse.ThingDef RimWorld.QuestGen.Slate::Get(System.String name,
Verse.ThingDef defaultValue, System.Boolean isAbsoluteName)
IL_0050: stloc.0
IL_0051: ldarg.2
IL_0052: ldstr "itemStashThings"
IL_0057: ldnull
IL_0058: ldc.i4.0
IL_0059: callvirt System.Collections.Generic.IEnumerable`1<Verse.ThingDef>
RimWorld.QuestGen.Slate::Get(System.String name,
System.Collections.Generic.IEnumerable`1<Verse.ThingDef> defaultValue,
System.Boolean isAbsoluteName)
IL_005E: stloc.1
IL_005F: ldloc.0
IL_0060: ldnull
IL_0061: cgt.un
IL_0063: stloc.3
IL_0064: ldloc.3
IL_0065: brfalse => Label2
IL_006A: nop
IL_006B: newobj System.Void
System.Collections.Generic.List`1<Verse.Thing>::.ctor()
IL_0070: stloc.2
IL_0071: ldloc.2
IL_0072: ldloc.0
IL_0073: ldnull
IL_0074: call static Verse.Thing Verse.ThingMaker::MakeThing(Verse.ThingDef
def, Verse.ThingDef stuff)
IL_0079: callvirt virtual System.Void
System.Collections.Generic.List`1<Verse.Thing>::Add(Verse.Thing item)
IL_007E: nop
IL_007F: nop
IL_0080: br => Label3
IL_0085: Label2
IL_0085: ldloc.1
IL_0086: ldnull
IL_0087: cgt.un
IL_0089: stloc.s 4 (System.Boolean)
IL_008B: ldloc.s 4 (System.Boolean)
IL_008D: brfalse => Label4
IL_0092: nop
IL_0093: newobj System.Void
System.Collections.Generic.List`1<Verse.Thing>::.ctor()
IL_0098: stloc.2
IL_0099: nop
IL_009A: ldloc.1
IL_009B: callvirt abstract virtual
System.Collections.Generic.IEnumerator`1<Verse.ThingDef>
System.Collections.Generic.IEnumerable`1<Verse.ThingDef>::GetEnumerator()
IL_00A0: stloc.s 5 (System.Collections.Generic.IEnumerator`1[Verse.ThingDef])
.try
{
IL_00A2: br => Label5
IL_00A7: Label6
IL_00A7: ldloc.s 5
(System.Collections.Generic.IEnumerator`1[Verse.ThingDef])
IL_00A9: callvirt abstract virtual Verse.ThingDef
System.Collections.Generic.IEnumerator`1<Verse.ThingDef>::get_Current()
IL_00AE: stloc.s 6 (Verse.ThingDef)
IL_00B0: nop
IL_00B1: ldloc.2
IL_00B2: ldloc.s 6 (Verse.ThingDef)
IL_00B4: ldnull
IL_00B5: call static Verse.Thing
Verse.ThingMaker::MakeThing(Verse.ThingDef def, Verse.ThingDef stuff)
IL_00BA: callvirt virtual System.Void
System.Collections.Generic.List`1<Verse.Thing>::Add(Verse.Thing item)
IL_00BF: nop
IL_00C0: nop
IL_00C1: Label5
IL_00C1: ldloc.s 5
(System.Collections.Generic.IEnumerator`1[Verse.ThingDef])
IL_00C3: callvirt abstract virtual System.Boolean
System.Collections.IEnumerator::MoveNext()
IL_00C8: brtrue => Label6
IL_00CD: leave => Label7
IL_00D2: leave => (autogenerated)
} // end try
.finally
{
IL_00D7: ldloc.s 5
(System.Collections.Generic.IEnumerator`1[Verse.ThingDef])
IL_00D9: brfalse => Label8
IL_00DE: ldloc.s 5
(System.Collections.Generic.IEnumerator`1[Verse.ThingDef])
IL_00E0: callvirt abstract virtual System.Void
System.IDisposable::Dispose()
IL_00E5: nop
IL_00E6: Label8
IL_00E6: endfinally
IL_00E7: leave => (autogenerated)
} // end handler
IL_00E8: Label7
IL_00E8: nop
IL_00E9: br => Label9
IL_00EE: Label4
IL_00EE: nop
IL_00EF: ldarg.2
IL_00F0: ldstr "points"
IL_00F5: ldc.r4 0
IL_00FA: ldc.i4.0
IL_00FB: callvirt System.Single RimWorld.QuestGen.Slate::Get(System.String name,
System.Single defaultValue, System.Boolean isAbsoluteName)
IL_0100: stloc.s 7 (System.Single)
IL_0102: ldloca.s 8 (RimWorld.ThingSetMakerParams)
IL_0104: initobj RimWorld.ThingSetMakerParams
IL_010A: ldloca.s 8 (RimWorld.ThingSetMakerParams)
IL_010C: ldc.r4 0.7
IL_0111: ldc.r4 1.3
IL_0116: newobj System.Void Verse.FloatRange::.ctor(System.Single min,
System.Single max)
IL_011B: ldsfld Verse.SimpleCurve
RimWorld.QuestTuning::PointsToRewardMarketValueCurve
IL_0120: ldloc.s 7 (System.Single)
IL_0122: callvirt System.Single Verse.SimpleCurve::Evaluate(System.Single x)
IL_0127: call static Verse.FloatRange
Verse.FloatRange::op_Multiply(Verse.FloatRange r, System.Single val)
IL_012C: newobj System.Void
System.Nullable`1<Verse.FloatRange>::.ctor(Verse.FloatRange value)
IL_0131: stfld System.Nullable`1<Verse.FloatRange>
RimWorld.ThingSetMakerParams::totalMarketValueRange
IL_0136: ldsfld RimWorld.ThingSetMakerDef
VFEMech.VFEMDefOf::VFEMech_MechanoidStorageContent
IL_013B: ldfld RimWorld.ThingSetMaker RimWorld.ThingSetMakerDef::root
IL_0140: ldloc.s 8 (RimWorld.ThingSetMakerParams)
IL_0142: callvirt System.Collections.Generic.List`1<Verse.Thing>
RimWorld.ThingSetMaker::Generate(RimWorld.ThingSetMakerParams parms)
IL_0147: stloc.2
IL_0148: nop
IL_0149: Label3
IL_0149: Label9
IL_0149: ldarg.1
IL_014A: ldarg.1
IL_014B: ldc.i4.0
IL_014C: ldc.i4.2
IL_014D: newobj System.Void
Verse.ThingOwner`1<Verse.Thing>::.ctor(Verse.IThingHolder owner, System.Boolean
oneStackOnly, Verse.LookMode contentsLookMode)
IL_0152: stfld Verse.ThingOwner RimWorld.Planet.SitePart::things
IL_0157: ldarg.1
IL_0158: ldfld Verse.ThingOwner RimWorld.Planet.SitePart::things
IL_015D: ldloc.2
IL_015E: ldc.i4.0
IL_015F: ldc.i4.0
IL_0160: callvirt System.Void
Verse.ThingOwner::TryAddRangeOrTransfer(System.Collections.Generic.IEnumerable`1<Ve
rse.Thing> things, System.Boolean canMergeWithExistingStacks, System.Boolean
destroyLeftover)
IL_0165: nop
IL_0166: ldarg.2
IL_0167: ldstr "generatedItemStashThings"
IL_016C: ldloc.2
IL_016D: ldc.i4.0
IL_016E: callvirt System.Void RimWorld.QuestGen.Slate::Set(System.String name,
System.Collections.Generic.List`1<Verse.Thing> var, System.Boolean isAbsoluteName)
IL_0173: nop
IL_0174: ldarg.3
IL_0175: ldstr "itemStashContents"
IL_017A: ldloc.2
IL_017B: ldstr " - "
IL_0180: call static System.String
RimWorld.GenLabel::ThingsLabel(System.Collections.Generic.IEnumerable`1<Verse.Thing
> things, System.String prefix)
IL_0185: newobj System.Void Verse.Grammar.Rule_String::.ctor(System.String
keyword, System.String output)
IL_018A: callvirt virtual System.Void
System.Collections.Generic.List`1<Verse.Grammar.Rule>::Add(Verse.Grammar.Rule item)
IL_018F: nop
IL_0190: ldarg.3
IL_0191: ldstr "itemStashContentsValue"
IL_0196: ldloc.2
IL_0197: call static System.Single
RimWorld.GenThing::GetMarketValue(System.Collections.Generic.IList`1<Verse.Thing>
things)
IL_019C: ldnull
IL_019D: call static System.String Verse.GenText::ToStringMoney(System.Single
f, System.String format)
IL_01A2: newobj System.Void Verse.Grammar.Rule_String::.ctor(System.String
keyword, System.String output)
IL_01A7: callvirt virtual System.Void
System.Collections.Generic.List`1<Verse.Grammar.Rule>::Add(Verse.Grammar.Rule item)
IL_01AC: nop
IL_01AD: // end original
IL_01AD: Label0
IL_01AD: ret
DONE

### Patch: virtual System.Void


VFEMedieval.SitePartWorker_Skirmish::Notify_GeneratedByQuestGen(RimWorld.Planet.Sit
ePart part, RimWorld.QuestGen.Slate slate,
System.Collections.Generic.List`1<Verse.Grammar.Rule> outExtraDescriptionRules,
System.Collections.Generic.Dictionary`2<System.String, System.String>
outExtraDescriptionConstants)
### Replacement: static System.Void
VFEMedieval.SitePartWorker_Skirmish::VFEMedieval.SitePartWorker_Skirmish.Notify_Gen
eratedByQuestGen_Patch1(VFEMedieval.SitePartWorker_Skirmish this,
RimWorld.Planet.SitePart part, RimWorld.QuestGen.Slate slate,
System.Collections.Generic.List`1<Verse.Grammar.Rule> outExtraDescriptionRules,
System.Collections.Generic.Dictionary`2<System.String, System.String>
outExtraDescriptionConstants)
IL_0000: Local var 0: Verse.Pawn
IL_0000: Local var 1: RimWorld.Planet.Site
IL_0000: Local var 2: System.Boolean
IL_0000: ldc.i4 0
IL_0005: stloc 2 (System.Boolean)
IL_0009: ldc.i4.1
IL_000A: stloc 2 (System.Boolean)
IL_000E: ldloc 2 (System.Boolean)
IL_0012: brfalse => Label1
IL_0017: ldarg 1
IL_001B: ldarg 2
IL_001F: ldarg 3
IL_0023: ldarg 4
IL_0027: call static System.Void
VanillaBooksExpanded.HarmonyPatches::Notify_GeneratedByQuestGenPrefix(RimWorld.Plan
et.SitePart part, RimWorld.QuestGen.Slate slate,
System.Collections.Generic.List`1<Verse.Grammar.Rule> outExtraDescriptionRules,
System.Collections.Generic.Dictionary`2<System.String, System.String>
outExtraDescriptionConstants)
IL_002C: Label1
IL_002C: nop
IL_002D: ldloc 2 (System.Boolean)
IL_0031: brfalse => Label0
IL_0036: // start original
IL_0036: nop
IL_0037: ldarg.0
IL_0038: ldarg.1
IL_0039: ldarg.2
IL_003A: ldarg.3
IL_003B: ldarg.s 4
IL_003D: call virtual System.Void
RimWorld.SitePartWorker::Notify_GeneratedByQuestGen(RimWorld.Planet.SitePart part,
RimWorld.QuestGen.Slate slate,
System.Collections.Generic.List`1<Verse.Grammar.Rule> outExtraDescriptionRules,
System.Collections.Generic.Dictionary`2<System.String, System.String>
outExtraDescriptionConstants)
IL_0042: nop
IL_0043: ldarg.2
IL_0044: ldstr "asker"
IL_0049: ldnull
IL_004A: ldc.i4.0
IL_004B: callvirt Verse.Pawn RimWorld.QuestGen.Slate::Get(System.String name,
Verse.Pawn defaultValue, System.Boolean isAbsoluteName)
IL_0050: stloc.0
IL_0051: ldarg.1
IL_0052: callvirt virtual Verse.IThingHolder
RimWorld.Planet.SitePart::get_ParentHolder()
IL_0057: isinst RimWorld.Planet.Site
IL_005C: stloc.1
IL_005D: ldloc.1
IL_005E: ldloc.0
IL_005F: callvirt virtual RimWorld.Faction Verse.Thing::get_Faction()
IL_0064: callvirt virtual System.Void
RimWorld.Planet.WorldObject::SetFaction(RimWorld.Faction newFaction)
IL_0069: nop
IL_006A: // end original
IL_006A: Label0
IL_006A: ret
DONE

### Patch: virtual System.Void


VFEV.SitePartWorker_LegendaryGrave::Notify_GeneratedByQuestGen(RimWorld.Planet.Site
Part part, RimWorld.QuestGen.Slate slate,
System.Collections.Generic.List`1<Verse.Grammar.Rule> outExtraDescriptionRules,
System.Collections.Generic.Dictionary`2<System.String, System.String>
outExtraDescriptionConstants)
### Replacement: static System.Void
VFEV.SitePartWorker_LegendaryGrave::VFEV.SitePartWorker_LegendaryGrave.Notify_Gener
atedByQuestGen_Patch1(VFEV.SitePartWorker_LegendaryGrave this,
RimWorld.Planet.SitePart part, RimWorld.QuestGen.Slate slate,
System.Collections.Generic.List`1<Verse.Grammar.Rule> outExtraDescriptionRules,
System.Collections.Generic.Dictionary`2<System.String, System.String>
outExtraDescriptionConstants)
IL_0000: Local var 0: RimWorld.Faction
IL_0000: Local var 1: System.Boolean
IL_0000: Local var 2: System.Boolean
IL_0000: ldc.i4 0
IL_0005: stloc 2 (System.Boolean)
IL_0009: ldc.i4.1
IL_000A: stloc 2 (System.Boolean)
IL_000E: ldloc 2 (System.Boolean)
IL_0012: brfalse => Label1
IL_0017: ldarg 1
IL_001B: ldarg 2
IL_001F: ldarg 3
IL_0023: ldarg 4
IL_0027: call static System.Void
VanillaBooksExpanded.HarmonyPatches::Notify_GeneratedByQuestGenPrefix(RimWorld.Plan
et.SitePart part, RimWorld.QuestGen.Slate slate,
System.Collections.Generic.List`1<Verse.Grammar.Rule> outExtraDescriptionRules,
System.Collections.Generic.Dictionary`2<System.String, System.String>
outExtraDescriptionConstants)
IL_002C: Label1
IL_002C: nop
IL_002D: ldloc 2 (System.Boolean)
IL_0031: brfalse => Label0
IL_0036: // start original
IL_0036: nop
IL_0037: ldarg.0
IL_0038: ldarg.1
IL_0039: ldarg.2
IL_003A: ldarg.3
IL_003B: ldarg.s 4
IL_003D: call virtual System.Void
RimWorld.SitePartWorker::Notify_GeneratedByQuestGen(RimWorld.Planet.SitePart part,
RimWorld.QuestGen.Slate slate,
System.Collections.Generic.List`1<Verse.Grammar.Rule> outExtraDescriptionRules,
System.Collections.Generic.Dictionary`2<System.String, System.String>
outExtraDescriptionConstants)
IL_0042: nop
IL_0043: call static RimWorld.FactionManager Verse.Find::get_FactionManager()
IL_0048: callvirt System.Collections.Generic.List`1<RimWorld.Faction>
RimWorld.FactionManager::get_AllFactionsListForReading()
IL_004D: ldsfld System.Predicate`1<RimWorld.Faction> VFEV.<>c::<>9__0_0
IL_0052: dup
IL_0053: brtrue => Label2
IL_0058: pop
IL_0059: ldsfld VFEV.<>c VFEV.<>c::<>9
IL_005E: ldftn System.Boolean
VFEV.<>c::<Notify_GeneratedByQuestGen>b__0_0(RimWorld.Faction f)
IL_0064: newobj System.Void
System.Predicate`1<RimWorld.Faction>::.ctor(System.Object object, System.IntPtr
method)
IL_0069: dup
IL_006A: stsfld System.Predicate`1<RimWorld.Faction> VFEV.<>c::<>9__0_0
IL_006F: Label2
IL_006F: callvirt RimWorld.Faction
System.Collections.Generic.List`1<RimWorld.Faction>::Find(System.Predicate`1<RimWor
ld.Faction> match)
IL_0074: stloc.0
IL_0075: ldloc.0
IL_0076: ldnull
IL_0077: ceq
IL_0079: stloc.1
IL_007A: ldloc.1
IL_007B: brfalse => Label3
IL_0080: call static RimWorld.FactionManager Verse.Find::get_FactionManager()
IL_0085: ldc.i4.0
IL_0086: ldc.i4.0
IL_0087: ldc.i4.1
IL_0088: ldc.i4.2
IL_0089: callvirt RimWorld.Faction
RimWorld.FactionManager::RandomEnemyFaction(System.Boolean allowHidden,
System.Boolean allowDefeated, System.Boolean allowNonHumanlike, RimWorld.TechLevel
minTechLevel)
IL_008E: stloc.0
IL_008F: Label3
IL_008F: ldarg.1
IL_0090: ldfld RimWorld.Planet.Site RimWorld.Planet.SitePart::site
IL_0095: ldloc.0
IL_0096: callvirt virtual System.Void
RimWorld.Planet.WorldObject::SetFaction(RimWorld.Faction newFaction)
IL_009B: nop
IL_009C: // end original
IL_009C: Label0
IL_009C: ret
DONE

### Patch: virtual System.Void


ATReforged.SitePartWorker_ArchotechArrival::Notify_GeneratedByQuestGen(RimWorld.Pla
net.SitePart part, RimWorld.QuestGen.Slate slate,
System.Collections.Generic.List`1<Verse.Grammar.Rule> outExtraDescriptionRules,
System.Collections.Generic.Dictionary`2<System.String, System.String>
outExtraDescriptionConstants)
### Replacement: static System.Void
ATReforged.SitePartWorker_ArchotechArrival::ATReforged.SitePartWorker_ArchotechArri
val.Notify_GeneratedByQuestGen_Patch1(ATReforged.SitePartWorker_ArchotechArrival
this, RimWorld.Planet.SitePart part, RimWorld.QuestGen.Slate slate,
System.Collections.Generic.List`1<Verse.Grammar.Rule> outExtraDescriptionRules,
System.Collections.Generic.Dictionary`2<System.String, System.String>
outExtraDescriptionConstants)
IL_0000: Local var 0: Verse.Pawn
IL_0000: Local var 1: Verse.Pawn
IL_0000: Local var 2: System.Nullable`1<System.Single>
IL_0000: Local var 3: System.Nullable`1<Verse.Gender>
IL_0000: Local var 4: System.Nullable`1<Verse.FloatRange>
IL_0000: Local var 5: RimWorld.PawnRelationDef
IL_0000: Local var 6: Verse.TaggedString
IL_0000: Local var 7: Verse.TaggedString
IL_0000: Local var 8: System.Boolean
IL_0000: ldc.i4 0
IL_0005: stloc 8 (System.Boolean)
IL_0009: ldc.i4.1
IL_000A: stloc 8 (System.Boolean)
IL_000E: ldloc 8 (System.Boolean)
IL_0012: brfalse => Label1
IL_0017: ldarg 1
IL_001B: ldarg 2
IL_001F: ldarg 3
IL_0023: ldarg 4
IL_0027: call static System.Void
VanillaBooksExpanded.HarmonyPatches::Notify_GeneratedByQuestGenPrefix(RimWorld.Plan
et.SitePart part, RimWorld.QuestGen.Slate slate,
System.Collections.Generic.List`1<Verse.Grammar.Rule> outExtraDescriptionRules,
System.Collections.Generic.Dictionary`2<System.String, System.String>
outExtraDescriptionConstants)
IL_002C: Label1
IL_002C: nop
IL_002D: ldloc 8 (System.Boolean)
IL_0031: brfalse => Label0
IL_0036: // start original
IL_0036: ldarg.0
IL_0037: ldarg.1
IL_0038: ldarg.2
IL_0039: ldarg.3
IL_003A: ldarg.s 4
IL_003C: call virtual System.Void
RimWorld.Planet.SitePartWorker_DownedRefugee::Notify_GeneratedByQuestGen(RimWorld.P
lanet.SitePart part, RimWorld.QuestGen.Slate slate,
System.Collections.Generic.List`1<Verse.Grammar.Rule> outExtraDescriptionRules,
System.Collections.Generic.Dictionary`2<System.String, System.String>
outExtraDescriptionConstants)
IL_0041: ldsfld Verse.PawnKindDef ATReforged.ATR_PawnKindDefOf::ATR_T5Colonist
IL_0046: call static RimWorld.Faction RimWorld.Faction::get_OfAncients()
IL_004B: ldc.i4.2
IL_004C: ldarg.1
IL_004D: ldfld RimWorld.Planet.Site RimWorld.Planet.SitePart::site
IL_0052: callvirt virtual System.Int32 RimWorld.Planet.WorldObject::get_Tile()
IL_0057: ldc.i4.1
IL_0058: ldc.i4.0
IL_0059: ldc.i4.0
IL_005A: ldc.i4.0
IL_005B: ldc.i4.0
IL_005C: ldc.r4 1
IL_0061: ldc.i4.0
IL_0062: ldc.i4.1
IL_0063: ldc.i4.0
IL_0064: ldc.i4.0
IL_0065: ldc.i4.0
IL_0066: ldc.i4.0
IL_0067: ldc.i4.0
IL_0068: ldc.i4.0
IL_0069: ldc.i4.0
IL_006A: ldc.r4 0
IL_006F: ldc.r4 0
IL_0074: ldnull
IL_0075: ldc.r4 1
IL_007A: ldnull
IL_007B: ldnull
IL_007C: ldnull
IL_007D: ldnull
IL_007E: ldloca.s 2 (System.Nullable`1[System.Single])
IL_0080: initobj System.Nullable`1[System.Single]
IL_0086: ldloc.2
IL_0087: ldloca.s 2 (System.Nullable`1[System.Single])
IL_0089: initobj System.Nullable`1[System.Single]
IL_008F: ldloc.2
IL_0090: ldloca.s 2 (System.Nullable`1[System.Single])
IL_0092: initobj System.Nullable`1[System.Single]
IL_0098: ldloc.2
IL_0099: ldloca.s 3 (System.Nullable`1[Verse.Gender])
IL_009B: initobj System.Nullable`1[Verse.Gender]
IL_00A1: ldloc.3
IL_00A2: ldnull
IL_00A3: ldnull
IL_00A4: ldnull
IL_00A5: ldnull
IL_00A6: ldc.i4.0
IL_00A7: ldc.i4.0
IL_00A8: ldc.i4.0
IL_00A9: ldc.i4.0
IL_00AA: ldnull
IL_00AB: ldnull
IL_00AC: ldnull
IL_00AD: ldnull
IL_00AE: ldnull
IL_00AF: ldc.r4 0
IL_00B4: ldc.i4.8
IL_00B5: ldnull
IL_00B6: ldloca.s 4 (System.Nullable`1[Verse.FloatRange])
IL_00B8: initobj System.Nullable`1[Verse.FloatRange]
IL_00BE: ldloc.s 4 (System.Nullable`1[Verse.FloatRange])
IL_00C0: ldloca.s 4 (System.Nullable`1[Verse.FloatRange])
IL_00C2: initobj System.Nullable`1[Verse.FloatRange]
IL_00C8: ldloc.s 4 (System.Nullable`1[Verse.FloatRange])
IL_00CA: ldc.i4.0
IL_00CB: newobj System.Void
Verse.PawnGenerationRequest::.ctor(Verse.PawnKindDef kind, RimWorld.Faction
faction, RimWorld.PawnGenerationContext context, System.Int32 tile, System.Boolean
forceGenerateNewPawn, System.Boolean allowDead, System.Boolean allowDowned,
System.Boolean canGeneratePawnRelations, System.Boolean mustBeCapableOfViolence,
System.Single colonistRelationChanceFactor, System.Boolean
forceAddFreeWarmLayerIfNeeded, System.Boolean allowGay, System.Boolean
allowPregnant, System.Boolean allowFood, System.Boolean allowAddictions,
System.Boolean inhabitant, System.Boolean certainlyBeenInCryptosleep,
System.Boolean forceRedressWorldPawnIfFormerColonist, System.Boolean
worldPawnFactionDoesntMatter, System.Single biocodeWeaponChance, System.Single
biocodeApparelChance, Verse.Pawn extraPawnForExtraRelationChance, System.Single
relationWithExtraPawnChanceFactor, System.Predicate`1<Verse.Pawn> validatorPreGear,
System.Predicate`1<Verse.Pawn> validatorPostGear,
System.Collections.Generic.IEnumerable`1<RimWorld.TraitDef> forcedTraits,
System.Collections.Generic.IEnumerable`1<RimWorld.TraitDef> prohibitedTraits,
System.Nullable`1<System.Single> minChanceToRedressWorldPawn,
System.Nullable`1<System.Single> fixedBiologicalAge,
System.Nullable`1<System.Single> fixedChronologicalAge,
System.Nullable`1<Verse.Gender> fixedGender, System.String fixedLastName,
System.String fixedBirthName, RimWorld.RoyalTitleDef fixedTitle, RimWorld.Ideo
fixedIdeo, System.Boolean forceNoIdeo, System.Boolean forceNoBackstory,
System.Boolean forbidAnyTitle, System.Boolean forceDead,
System.Collections.Generic.List`1<Verse.GeneDef> forcedXenogenes,
System.Collections.Generic.List`1<Verse.GeneDef> forcedEndogenes,
RimWorld.XenotypeDef forcedXenotype, RimWorld.CustomXenotype forcedCustomXenotype,
System.Collections.Generic.List`1<RimWorld.XenotypeDef> allowedXenotypes,
System.Single forceBaselinerChance, Verse.DevelopmentalStage developmentalStages,
System.Func`2<RimWorld.XenotypeDef, Verse.PawnKindDef> pawnKindDefGetter,
System.Nullable`1<Verse.FloatRange> excludeBiologicalAgeRange,
System.Nullable`1<Verse.FloatRange> biologicalAgeRange, System.Boolean
forceRecruitable)
IL_00D0: call static Verse.Pawn
Verse.PawnGenerator::GeneratePawn(Verse.PawnGenerationRequest request)
IL_00D5: stloc.0
IL_00D6: ldarg.1
IL_00D7: ldarg.1
IL_00D8: ldc.i4.1
IL_00D9: ldc.i4.2
IL_00DA: newobj System.Void
Verse.ThingOwner`1<Verse.Pawn>::.ctor(Verse.IThingHolder owner, System.Boolean
oneStackOnly, Verse.LookMode contentsLookMode)
IL_00DF: stfld Verse.ThingOwner RimWorld.Planet.SitePart::things
IL_00E4: ldarg.1
IL_00E5: ldfld Verse.ThingOwner RimWorld.Planet.SitePart::things
IL_00EA: ldloc.0
IL_00EB: ldc.i4.1
IL_00EC: callvirt abstract virtual System.Boolean
Verse.ThingOwner::TryAdd(Verse.Thing item, System.Boolean
canMergeWithExistingStacks)
IL_00F1: pop
IL_00F2: ldloc.0
IL_00F3: ldfld RimWorld.Pawn_RelationsTracker Verse.Pawn::relations
IL_00F8: brfalse => Label2
IL_00FD: ldloc.0
IL_00FE: ldfld RimWorld.Pawn_RelationsTracker Verse.Pawn::relations
IL_0103: ldc.i4.1
IL_0104: stfld System.Boolean RimWorld.Pawn_RelationsTracker::everSeenByPlayer
IL_0109: Label2
IL_0109: ldloc.0
IL_010A: call static Verse.Pawn
RimWorld.PawnRelationUtility::GetMostImportantColonyRelative(Verse.Pawn pawn)
IL_010F: stloc.1
IL_0110: ldloc.1
IL_0111: brfalse => Label3
IL_0116: ldloc.1
IL_0117: ldloc.0
IL_0118: call static RimWorld.PawnRelationDef
RimWorld.PawnRelationUtility::GetMostImportantRelation(Verse.Pawn me, Verse.Pawn
other)
IL_011D: stloc.s 5 (RimWorld.PawnRelationDef)
IL_011F: ldstr ""
IL_0124: call static Verse.TaggedString
Verse.TaggedString::op_Implicit(System.String str)
IL_0129: stloc.s 6 (Verse.TaggedString)
IL_012B: ldloc.s 5 (RimWorld.PawnRelationDef)
IL_012D: brfalse => Label4
IL_0132: ldloc.s 5 (RimWorld.PawnRelationDef)
IL_0134: ldfld System.Int32 RimWorld.PawnRelationDef::opinionOffset
IL_0139: ldc.i4.0
IL_013A: ble => Label5
IL_013F: ldloc.0
IL_0140: ldfld RimWorld.Pawn_RelationsTracker Verse.Pawn::relations
IL_0145: ldloc.1
IL_0146: stfld Verse.Pawn
RimWorld.Pawn_RelationsTracker::relativeInvolvedInRescueQuest
IL_014B: ldstr "\n\n"
IL_0150: ldstr "RelatedPawnInvolvedInQuest"
IL_0155: ldloc.1
IL_0156: callvirt virtual System.String Verse.Entity::get_LabelShort()
IL_015B: call static Verse.NamedArgument
Verse.NamedArgument::op_Implicit(System.String value)
IL_0160: ldloc.s 5 (RimWorld.PawnRelationDef)
IL_0162: ldloc.0
IL_0163: callvirt System.String
RimWorld.PawnRelationDef::GetGenderSpecificLabel(Verse.Pawn pawn)
IL_0168: call static Verse.NamedArgument
Verse.NamedArgument::op_Implicit(System.String value)
IL_016D: ldloc.1
IL_016E: ldstr "RELATIVE"
IL_0173: call static Verse.NamedArgument
Verse.NamedArgumentUtility::Named(System.Object arg, System.String label)
IL_0178: ldloc.0
IL_0179: ldstr "PAWN"
IL_017E: call static Verse.NamedArgument
Verse.NamedArgumentUtility::Named(System.Object arg, System.String label)
IL_0183: call static Verse.TaggedString
Verse.TranslatorFormattedStringExtensions::Translate(System.String key,
Verse.NamedArgument arg1, Verse.NamedArgument arg2, Verse.NamedArgument arg3,
Verse.NamedArgument arg4)
IL_0188: stloc.s 7 (Verse.TaggedString)
IL_018A: ldloca.s 7 (Verse.TaggedString)
IL_018C: ldloc.0
IL_018D: ldstr "PAWN"
IL_0192: ldc.i4.1
IL_0193: call Verse.TaggedString Verse.TaggedString::AdjustedFor(Verse.Pawn
p, System.String pawnSymbol, System.Boolean addRelationInfoSymbol)
IL_0198: call static Verse.TaggedString
Verse.TaggedString::op_Addition(System.String t1, Verse.TaggedString t2)
IL_019D: stloc.s 6 (Verse.TaggedString)
IL_019F: br => Label6
IL_01A4: Label4
IL_01A4: Label5
IL_01A4: ldloca.s 6 (Verse.TaggedString)
IL_01A6: ldloc.0
IL_01A7: call static System.Boolean
RimWorld.PawnRelationUtility::TryAppendRelationsWithColonistsInfo(Verse.TaggedStrin
g& text, Verse.Pawn pawn)
IL_01AC: pop
IL_01AD: Label6
IL_01AD: ldarg.3
IL_01AE: ldstr "pawnInvolvedInQuestInfo"
IL_01B3: ldloc.s 6 (Verse.TaggedString)
IL_01B5: call static System.String
Verse.TaggedString::op_Implicit(Verse.TaggedString taggedString)
IL_01BA: newobj System.Void Verse.Grammar.Rule_String::.ctor(System.String
keyword, System.String output)
IL_01BF: callvirt virtual System.Void
System.Collections.Generic.List`1<Verse.Grammar.Rule>::Add(Verse.Grammar.Rule item)
IL_01C4: Label3
IL_01C4: ldarg.2
IL_01C5: ldstr "archotech"
IL_01CA: ldloc.0
IL_01CB: ldc.i4.0
IL_01CC: callvirt System.Void RimWorld.QuestGen.Slate::Set(System.String name,
Verse.Pawn var, System.Boolean isAbsoluteName)
IL_01D1: // end original
IL_01D1: Label0
IL_01D1: ret
DONE

### Harmony id=VanillaCookingExpanded, version=2.2.2.0, location=C:\Program Files


(x86)\Steam\steamapps\common\data-000002130553D010, env/clr=4.0.30319.42000,
platform=Win32NT, ptrsize:runtime/env=8/Bits64, Windows
### Started from static System.Void
VanillaCookingExpanded.Utils.HarmonyUtility::.cctor(), location C:\Program Files
(x86)\Steam\steamapps\common\data-0000021309BD40E0
### At 2023-02-17 06.57.43
### Patch: static Verse.Thing
RimWorld.FoodUtility::BestFoodInInventory_NewTemp(Verse.Pawn holder, Verse.Pawn
eater, RimWorld.FoodPreferability minFoodPref, RimWorld.FoodPreferability
maxFoodPref, System.Single minStackNutrition, System.Boolean allowDrug,
System.Boolean allowVenerated)
### Replacement: static Verse.Thing
RimWorld.FoodUtility::RimWorld.FoodUtility.BestFoodInInventory_NewTemp_Patch0(Verse
.Pawn holder, Verse.Pawn eater, RimWorld.FoodPreferability minFoodPref,
RimWorld.FoodPreferability maxFoodPref, System.Single minStackNutrition,
System.Boolean allowDrug, System.Boolean allowVenerated)
IL_0000: Local var 0: Verse.ThingOwner`1<Verse.Thing>
IL_0000: Local var 1: System.Int32
IL_0000: Local var 2: Verse.Thing
IL_0000: Local var 3: System.Boolean
IL_0000: // start original
IL_0000: ldarg.0
IL_0001: ldfld Verse.Pawn_InventoryTracker Verse.Pawn::inventory
IL_0006: brtrue => Label0
IL_000B: ldnull
IL_000C: br => Label13
IL_0011: Label0
IL_0011: ldarg.1
IL_0012: brtrue => Label1
IL_0017: ldarg.0
IL_0018: starg.s 1
IL_001A: Label1
IL_001A: ldarg.0
IL_001B: ldfld Verse.Pawn_InventoryTracker Verse.Pawn::inventory
IL_0020: ldfld Verse.ThingOwner`1<Verse.Thing>
Verse.Pawn_InventoryTracker::innerContainer
IL_0025: stloc.0
IL_0026: ldc.i4.0
IL_0027: stloc.1
IL_0028: br => Label2
IL_002D: ldarg.1
IL_002E: call static System.Boolean
VanillaCookingExpanded.PawnUtility::IsDesperateForFood(Verse.Pawn pawn)
IL_0033: stloc 3
IL_0037: Label11
IL_0037: ldloc.0
IL_0038: ldloc.1
IL_0039: callvirt Verse.Thing
Verse.ThingOwner`1<Verse.Thing>::get_Item(System.Int32 index)
IL_003E: stloc.2
IL_003F: ldloc.2
IL_0040: ldloc 3
IL_0044: ldarg.1
IL_0045: call static System.Boolean
VanillaCookingExpanded.PawnUtility::PawnNotHaveActiveCondimentAsFood(Verse.Thing t,
System.Boolean desperate, Verse.Pawn pawn)
IL_004A: brfalse => Label12
IL_004F: ldloc.2
IL_0050: ldfld Verse.ThingDef Verse.Thing::def
IL_0055: callvirt System.Boolean
Verse.ThingDef::get_IsNutritionGivingIngestible()
IL_005A: brfalse => Label3
IL_005F: ldloc.2
IL_0060: callvirt virtual System.Boolean Verse.Thing::get_IngestibleNow()
IL_0065: brfalse => Label4
IL_006A: ldarg.1
IL_006B: ldloc.2
IL_006C: ldarg.0
IL_006D: ldc.i4.1
IL_006E: ldarg.s 6
IL_0070: call static System.Boolean
RimWorld.FoodUtility::WillEat_NewTemp(Verse.Pawn p, Verse.Thing food, Verse.Pawn
getter, System.Boolean careIfNotAcceptableForTitle, System.Boolean allowVenerated)
IL_0075: brfalse => Label5
IL_007A: ldloc.2
IL_007B: ldfld Verse.ThingDef Verse.Thing::def
IL_0080: ldfld RimWorld.IngestibleProperties Verse.ThingDef::ingestible
IL_0085: ldfld RimWorld.FoodPreferability
RimWorld.IngestibleProperties::preferability
IL_008A: ldarg.2
IL_008B: blt => Label6
IL_0090: ldloc.2
IL_0091: ldfld Verse.ThingDef Verse.Thing::def
IL_0096: ldfld RimWorld.IngestibleProperties Verse.ThingDef::ingestible
IL_009B: ldfld RimWorld.FoodPreferability
RimWorld.IngestibleProperties::preferability
IL_00A0: ldarg.3
IL_00A1: bgt => Label7
IL_00A6: ldarg.s 5
IL_00A8: brtrue => Label8
IL_00AD: ldloc.2
IL_00AE: ldfld Verse.ThingDef Verse.Thing::def
IL_00B3: callvirt System.Boolean Verse.ThingDef::get_IsDrug()
IL_00B8: brtrue => Label9
IL_00BD: Label8
IL_00BD: ldarg.1
IL_00BE: ldloc.2
IL_00BF: call static System.Single
RimWorld.FoodUtility::NutritionForEater(Verse.Pawn eater, Verse.Thing food)
IL_00C4: ldloc.2
IL_00C5: ldfld System.Int32 Verse.Thing::stackCount
IL_00CA: conv.r4
IL_00CB: mul
IL_00CC: ldarg.s 4
IL_00CE: blt.un => Label10
IL_00D3: ldloc.2
IL_00D4: br => Label14
IL_00D9: Label3
IL_00D9: Label4
IL_00D9: Label5
IL_00D9: Label6
IL_00D9: Label7
IL_00D9: Label9
IL_00D9: Label10
IL_00D9: Label12
IL_00D9: ldloc.1
IL_00DA: ldc.i4.1
IL_00DB: add
IL_00DC: stloc.1
IL_00DD: Label2
IL_00DD: ldloc.1
IL_00DE: ldloc.0
IL_00DF: callvirt abstract virtual System.Int32 Verse.ThingOwner::get_Count()
IL_00E4: blt => Label11
IL_00E9: ldnull
IL_00EA: // end original
IL_00EA: Label13
IL_00EA: Label14
IL_00EA: ret
DONE

### Patch: System.Boolean


RimWorld.<>c__DisplayClass19_0::<BestFoodSourceOnMap_NewTemp>b__0(Verse.Thing t)
### Replacement: static System.Boolean
RimWorld.FoodUtility+<>c__DisplayClass19_0::RimWorld.FoodUtility+c__DisplayClass19_
0.<BestFoodSourceOnMap_NewTemp>b__0_Patch0(RimWorld.<>c__DisplayClass19_0 this,
Verse.Thing t)
IL_0000: Local var 0: Verse.IntVec3
IL_0000: Local var 1: RimWorld.Building_NutrientPasteDispenser
IL_0000: Local var 2: System.Int32
IL_0000: Local var 3: System.Single
IL_0000: Local var 4: Verse.LocalTargetInfo
IL_0000: // start original
IL_0000: ldarg.1
IL_0001: isinst RimWorld.Building_NutrientPasteDispenser
IL_0006: stloc.1
IL_0007: ldloc.1
IL_0008: brfalse => Label0
IL_000D: ldarg.0
IL_000E: ldfld System.Boolean
RimWorld.<>c__DisplayClass19_0::allowDispenserFull
IL_0013: brfalse => Label1
IL_0018: ldarg.0
IL_0019: ldfld System.Boolean
RimWorld.<>c__DisplayClass19_0::getterCanManipulate
IL_001E: brfalse => Label2
IL_0023: ldsfld Verse.ThingDef RimWorld.ThingDefOf::MealNutrientPaste
IL_0028: ldfld RimWorld.IngestibleProperties Verse.ThingDef::ingestible
IL_002D: ldfld RimWorld.FoodPreferability
RimWorld.IngestibleProperties::preferability
IL_0032: ldarg.0
IL_0033: ldfld RimWorld.FoodPreferability
RimWorld.<>c__DisplayClass19_0::minPref
IL_0038: blt => Label3
IL_003D: ldsfld Verse.ThingDef RimWorld.ThingDefOf::MealNutrientPaste
IL_0042: ldfld RimWorld.IngestibleProperties Verse.ThingDef::ingestible
IL_0047: ldfld RimWorld.FoodPreferability
RimWorld.IngestibleProperties::preferability
IL_004C: ldarg.0
IL_004D: ldfld RimWorld.FoodPreferability
RimWorld.<>c__DisplayClass19_0::maxPref
IL_0052: bgt => Label4
IL_0057: ldarg.0
IL_0058: ldfld Verse.Pawn RimWorld.<>c__DisplayClass19_0::eater
IL_005D: ldsfld Verse.ThingDef RimWorld.ThingDefOf::MealNutrientPaste
IL_0062: ldarg.0
IL_0063: ldfld Verse.Pawn RimWorld.<>c__DisplayClass19_0::getter
IL_0068: ldc.i4.1
IL_0069: ldarg.0
IL_006A: ldfld System.Boolean RimWorld.<>c__DisplayClass19_0::allowVenerated
IL_006F: call static System.Boolean
RimWorld.FoodUtility::WillEat_NewTemp(Verse.Pawn p, Verse.ThingDef food, Verse.Pawn
getter, System.Boolean careIfNotAcceptableForTitle, System.Boolean allowVenerated)
IL_0074: brfalse => Label5
IL_0079: ldarg.1
IL_007A: callvirt virtual RimWorld.Faction Verse.Thing::get_Faction()
IL_007F: ldarg.0
IL_0080: ldfld Verse.Pawn RimWorld.<>c__DisplayClass19_0::getter
IL_0085: callvirt virtual RimWorld.Faction Verse.Thing::get_Faction()
IL_008A: beq => Label6
IL_008F: ldarg.1
IL_0090: callvirt virtual RimWorld.Faction Verse.Thing::get_Faction()
IL_0095: ldarg.0
IL_0096: ldfld Verse.Pawn RimWorld.<>c__DisplayClass19_0::getter
IL_009B: callvirt RimWorld.Faction Verse.Pawn::get_HostFaction()
IL_00A0: bne.un => Label7
IL_00A5: Label6
IL_00A5: ldarg.0
IL_00A6: ldfld System.Boolean RimWorld.<>c__DisplayClass19_0::allowForbidden
IL_00AB: brtrue => Label8
IL_00B0: ldarg.1
IL_00B1: ldarg.0
IL_00B2: ldfld Verse.Pawn RimWorld.<>c__DisplayClass19_0::getter
IL_00B7: call static System.Boolean
RimWorld.ForbidUtility::IsForbidden(Verse.Thing t, Verse.Pawn pawn)
IL_00BC: brtrue => Label9
IL_00C1: Label8
IL_00C1: ldloc.1
IL_00C2: ldfld RimWorld.CompPowerTrader
RimWorld.Building_NutrientPasteDispenser::powerComp
IL_00C7: callvirt System.Boolean RimWorld.CompPowerTrader::get_PowerOn()
IL_00CC: brfalse => Label10
IL_00D1: ldarg.0
IL_00D2: ldfld System.Boolean
RimWorld.<>c__DisplayClass19_0::allowDispenserEmpty
IL_00D7: brtrue => Label11
IL_00DC: ldloc.1
IL_00DD: callvirt virtual System.Boolean
RimWorld.Building_NutrientPasteDispenser::HasEnoughFeedstockInHoppers()
IL_00E2: brfalse => Label12
IL_00E7: Label11
IL_00E7: ldarg.1
IL_00E8: callvirt virtual Verse.IntVec3 Verse.Thing::get_InteractionCell()
IL_00ED: ldarg.1
IL_00EE: callvirt virtual Verse.Map Verse.Thing::get_Map()
IL_00F3: call static System.Boolean Verse.GenGrid::Standable(Verse.IntVec3 c,
Verse.Map map)
IL_00F8: brfalse => Label13
IL_00FD: ldarg.1
IL_00FE: ldarg.0
IL_00FF: ldfld Verse.Pawn RimWorld.<>c__DisplayClass19_0::getter
IL_0104: ldarg.0
IL_0105: ldfld Verse.Pawn RimWorld.<>c__DisplayClass19_0::eater
IL_010A: ldarg.0
IL_010B: ldfld System.Boolean
RimWorld.<>c__DisplayClass19_0::allowSociallyImproper
IL_0110: call static System.Boolean
RimWorld.FoodUtility::IsFoodSourceOnMapSociallyProper(Verse.Thing t, Verse.Pawn
getter, Verse.Pawn eater, System.Boolean allowSociallyImproper)
IL_0115: brfalse => Label14
IL_011A: ldarg.0
IL_011B: ldfld Verse.Pawn RimWorld.<>c__DisplayClass19_0::getter
IL_0120: callvirt virtual Verse.Map Verse.Thing::get_Map()
IL_0125: ldfld Verse.Reachability Verse.Map::reachability
IL_012A: ldarg.0
IL_012B: ldfld Verse.Pawn RimWorld.<>c__DisplayClass19_0::getter
IL_0130: callvirt virtual Verse.IntVec3 Verse.Thing::get_Position()
IL_0135: ldarg.1
IL_0136: callvirt virtual Verse.IntVec3 Verse.Thing::get_InteractionCell()
IL_013B: ldarg.1
IL_013C: callvirt virtual Verse.Map Verse.Thing::get_Map()
IL_0141: ldc.i4.0
IL_0142: newobj System.Void Verse.TargetInfo::.ctor(Verse.IntVec3 cell,
Verse.Map map, System.Boolean allowNullMap)
IL_0147: ldc.i4.1
IL_0148: ldarg.0
IL_0149: ldfld Verse.Pawn RimWorld.<>c__DisplayClass19_0::getter
IL_014E: ldc.i4.2
IL_014F: ldc.i4.0
IL_0150: ldc.i4.0
IL_0151: ldc.i4.0
IL_0152: ldc.i4.0
IL_0153: call static Verse.TraverseParms Verse.TraverseParms::For(Verse.Pawn
pawn, Verse.Danger maxDanger, Verse.TraverseMode mode, System.Boolean canBashDoors,
System.Boolean alwaysUseAvoidGrid, System.Boolean canBashFences)
IL_0158: callvirt System.Boolean
Verse.Reachability::CanReachNonLocal(Verse.IntVec3 start, Verse.TargetInfo dest,
Verse.AI.PathEndMode peMode, Verse.TraverseParms traverseParams)
IL_015D: brtrue => Label15
IL_0162: Label1
IL_0162: Label2
IL_0162: Label3
IL_0162: Label4
IL_0162: Label5
IL_0162: Label7
IL_0162: Label9
IL_0162: Label10
IL_0162: Label12
IL_0162: Label13
IL_0162: Label14
IL_0162: ldc.i4.0
IL_0163: br => Label41
IL_0168: Label15
IL_0168: ldloc.1
IL_0169: callvirt virtual Verse.IntVec3 Verse.Thing::get_InteractionCell()
IL_016E: stloc.0
IL_016F: br => Label16
IL_0174: Label0
IL_0174: ldc.i4.1
IL_0175: stloc.2
IL_0176: ldarg.0
IL_0177: ldfld Verse.Pawn RimWorld.<>c__DisplayClass19_0::eater
IL_017C: ldarg.1
IL_017D: call static System.Single
RimWorld.FoodUtility::NutritionForEater(Verse.Pawn eater, Verse.Thing food)
IL_0182: stloc.3
IL_0183: ldarg.0
IL_0184: ldflda System.Nullable`1<System.Single>
RimWorld.<>c__DisplayClass19_0::minNutrition
IL_0189: call System.Boolean System.Nullable`1<System.Single>::get_HasValue()
IL_018E: brfalse => Label17
IL_0193: ldarg.0
IL_0194: ldflda System.Nullable`1<System.Single>
RimWorld.<>c__DisplayClass19_0::minNutrition
IL_0199: call System.Single System.Nullable`1<System.Single>::get_Value()
IL_019E: ldloc.3
IL_019F: call static System.Int32
RimWorld.FoodUtility::StackCountForNutrition(System.Single wantedNutrition,
System.Single singleFoodNutrition)
IL_01A4: stloc.2
IL_01A5: br => Label18
IL_01AA: Label17
IL_01AA: ldarg.0
IL_01AB: ldfld System.Boolean
RimWorld.<>c__DisplayClass19_0::calculateWantedStackCount
IL_01B0: brfalse => Label19
IL_01B5: ldarg.0
IL_01B6: ldfld Verse.Pawn RimWorld.<>c__DisplayClass19_0::eater
IL_01BB: ldarg.1
IL_01BC: ldfld Verse.ThingDef Verse.Thing::def
IL_01C1: ldloc.3
IL_01C2: call static System.Int32
RimWorld.FoodUtility::WillIngestStackCountOf(Verse.Pawn ingester, Verse.ThingDef
def, System.Single singleFoodNutrition)
IL_01C7: stloc.2
IL_01C8: Label18
IL_01C8: Label19
IL_01C8: ldarg.1
IL_01C9: ldfld Verse.ThingDef Verse.Thing::def
IL_01CE: ldfld RimWorld.IngestibleProperties Verse.ThingDef::ingestible
IL_01D3: ldfld RimWorld.FoodPreferability
RimWorld.IngestibleProperties::preferability
IL_01D8: ldarg.0
IL_01D9: ldfld RimWorld.FoodPreferability
RimWorld.<>c__DisplayClass19_0::minPref
IL_01DE: blt => Label20
IL_01E3: ldarg.1
IL_01E4: ldfld Verse.ThingDef Verse.Thing::def
IL_01E9: ldfld RimWorld.IngestibleProperties Verse.ThingDef::ingestible
IL_01EE: ldfld RimWorld.FoodPreferability
RimWorld.IngestibleProperties::preferability
IL_01F3: ldarg.0
IL_01F4: ldfld RimWorld.FoodPreferability
RimWorld.<>c__DisplayClass19_0::maxPref
IL_01F9: bgt => Label21
IL_01FE: ldarg.0
IL_01FF: ldfld Verse.Pawn RimWorld.<>c__DisplayClass19_0::eater
IL_0204: ldarg.1
IL_0205: ldarg.0
IL_0206: ldfld Verse.Pawn RimWorld.<>c__DisplayClass19_0::getter
IL_020B: ldc.i4.1
IL_020C: ldarg.0
IL_020D: ldfld System.Boolean RimWorld.<>c__DisplayClass19_0::allowVenerated
IL_0212: call static System.Boolean
RimWorld.FoodUtility::WillEat_NewTemp(Verse.Pawn p, Verse.Thing food, Verse.Pawn
getter, System.Boolean careIfNotAcceptableForTitle, System.Boolean allowVenerated)
IL_0217: brfalse => Label22
IL_021C: ldarg.1
IL_021D: ldfld Verse.ThingDef Verse.Thing::def
IL_0222: callvirt System.Boolean
Verse.ThingDef::get_IsNutritionGivingIngestible()
IL_0227: brfalse => Label23
IL_022C: ldarg.1
IL_022D: callvirt virtual System.Boolean Verse.Thing::get_IngestibleNow()
IL_0232: brfalse => Label24
IL_0237: ldarg.0
IL_0238: ldfld System.Boolean RimWorld.<>c__DisplayClass19_0::allowCorpse
IL_023D: brtrue => Label25
IL_0242: ldarg.1
IL_0243: isinst Verse.Corpse
IL_0248: brtrue => Label26
IL_024D: Label25
IL_024D: ldarg.0
IL_024E: ldfld System.Boolean RimWorld.<>c__DisplayClass19_0::allowDrug
IL_0253: brtrue => Label27
IL_0258: ldarg.1
IL_0259: ldfld Verse.ThingDef Verse.Thing::def
IL_025E: callvirt System.Boolean Verse.ThingDef::get_IsDrug()
IL_0263: brtrue => Label28
IL_0268: Label27
IL_0268: ldarg.0
IL_0269: ldfld System.Boolean RimWorld.<>c__DisplayClass19_0::allowForbidden
IL_026E: brtrue => Label29
IL_0273: ldarg.1
IL_0274: ldarg.0
IL_0275: ldfld Verse.Pawn RimWorld.<>c__DisplayClass19_0::getter
IL_027A: call static System.Boolean
RimWorld.ForbidUtility::IsForbidden(Verse.Thing t, Verse.Pawn pawn)
IL_027F: brtrue => Label30
IL_0284: Label29
IL_0284: ldarg.0
IL_0285: ldfld System.Boolean RimWorld.<>c__DisplayClass19_0::desperate
IL_028A: brtrue => Label31
IL_028F: ldarg.1
IL_0290: call static System.Boolean
RimWorld.RottableUtility::IsNotFresh(Verse.Thing t)
IL_0295: brtrue => Label32
IL_029A: Label31
IL_029A: ldarg.1
IL_029B: call static System.Boolean
RimWorld.RottableUtility::IsDessicated(Verse.Thing t)
IL_02A0: brtrue => Label33
IL_02A5: ldarg.1
IL_02A6: ldarg.0
IL_02A7: ldfld Verse.Pawn RimWorld.<>c__DisplayClass19_0::getter
IL_02AC: ldarg.0
IL_02AD: ldfld Verse.Pawn RimWorld.<>c__DisplayClass19_0::eater
IL_02B2: ldarg.0
IL_02B3: ldfld System.Boolean
RimWorld.<>c__DisplayClass19_0::allowSociallyImproper
IL_02B8: call static System.Boolean
RimWorld.FoodUtility::IsFoodSourceOnMapSociallyProper(Verse.Thing t, Verse.Pawn
getter, Verse.Pawn eater, System.Boolean allowSociallyImproper)
IL_02BD: brfalse => Label34
IL_02C2: ldarg.0
IL_02C3: ldfld Verse.Pawn RimWorld.<>c__DisplayClass19_0::getter
IL_02C8: ldarg.1
IL_02C9: call static System.Boolean
Verse.AI.PawnLocalAwareness::AnimalAwareOf(Verse.Pawn p, Verse.Thing t)
IL_02CE: brtrue => Label35
IL_02D3: ldarg.0
IL_02D4: ldfld System.Boolean
RimWorld.<>c__DisplayClass19_0::forceScanWholeMap
IL_02D9: brfalse => Label36
IL_02DE: Label35
IL_02DE: ldarg.0
IL_02DF: ldfld System.Boolean
RimWorld.<>c__DisplayClass19_0::ignoreReservations
IL_02E4: brtrue => Label37
IL_02E9: ldarg.0
IL_02EA: ldfld Verse.Pawn RimWorld.<>c__DisplayClass19_0::getter
IL_02EF: ldarg.1
IL_02F0: call static Verse.LocalTargetInfo
Verse.LocalTargetInfo::op_Implicit(Verse.Thing t)
IL_02F5: ldc.i4.s 10
IL_02F7: ldloc.2
IL_02F8: ldnull
IL_02F9: ldc.i4.0
IL_02FA: call static System.Boolean
Verse.AI.ReservationUtility::CanReserve(Verse.Pawn p, Verse.LocalTargetInfo target,
System.Int32 maxPawns, System.Int32 stackCount, Verse.ReservationLayerDef layer,
System.Boolean ignoreOtherReservations)
IL_02FF: brtrue => Label38
IL_0304: Label20
IL_0304: Label21
IL_0304: Label22
IL_0304: Label23
IL_0304: Label24
IL_0304: Label26
IL_0304: Label28
IL_0304: Label30
IL_0304: Label32
IL_0304: Label33
IL_0304: Label34
IL_0304: Label36
IL_0304: ldc.i4.0
IL_0305: br => Label42
IL_030A: Label37
IL_030A: Label38
IL_030A: ldarg.1
IL_030B: callvirt Verse.IntVec3 Verse.Thing::get_PositionHeld()
IL_0310: stloc.0
IL_0311: Label16
IL_0311: ldarg.0
IL_0312: ldfld Verse.Pawn RimWorld.<>c__DisplayClass19_0::getter
IL_0317: ldfld RimWorld.Pawn_RopeTracker Verse.Pawn::roping
IL_031C: callvirt System.Boolean RimWorld.Pawn_RopeTracker::get_IsRoped()
IL_0321: brfalse => Label39
IL_0326: ldloca.s 0 (Verse.IntVec3)
IL_0328: ldarg.0
IL_0329: ldfld Verse.Pawn RimWorld.<>c__DisplayClass19_0::getter
IL_032E: ldfld RimWorld.Pawn_RopeTracker Verse.Pawn::roping
IL_0333: callvirt Verse.LocalTargetInfo RimWorld.Pawn_RopeTracker::get_RopedTo()
IL_0338: stloc.s 4 (Verse.LocalTargetInfo)
IL_033A: ldloca.s 4 (Verse.LocalTargetInfo)
IL_033C: call Verse.IntVec3 Verse.LocalTargetInfo::get_Cell()
IL_0341: ldc.r4 8
IL_0346: call System.Boolean Verse.IntVec3::InHorDistOf(Verse.IntVec3
otherLoc, System.Single maxDist)
IL_034B: brtrue => Label40
IL_0350: ldc.i4.0
IL_0351: br => Label43
IL_0356: Label39
IL_0356: Label40
IL_0356: ldarg.1
IL_0357: ldarg.0
IL_0358: ldfld Verse.Pawn RimWorld.<>c__DisplayClass19_0::eater
IL_035D: call static System.Boolean
VanillaCookingExpanded.PawnUtility::IsDesperateForFood(Verse.Pawn pawn)
IL_0362: ldarg.0
IL_0363: ldfld Verse.Pawn RimWorld.<>c__DisplayClass19_0::eater
IL_0368: call static System.Boolean
VanillaCookingExpanded.PawnUtility::PawnNotHaveActiveCondimentAsFood(Verse.Thing t,
System.Boolean desperate, Verse.Pawn pawn)
IL_036D: // end original
IL_036D: Label41
IL_036D: Label42
IL_036D: Label43
IL_036D: ret
DONE

### Patch: System.Boolean


RimWorld.<>c__DisplayClass19_0::<BestFoodSourceOnMap_NewTemp>b__1(Verse.Thing x)
### Replacement: static System.Boolean
RimWorld.FoodUtility+<>c__DisplayClass19_0::RimWorld.FoodUtility+c__DisplayClass19_
0.<BestFoodSourceOnMap_NewTemp>b__1_Patch0(RimWorld.<>c__DisplayClass19_0 this,
Verse.Thing x)
IL_0000: Local var 0: RimWorld.Plant
IL_0000: Local var 1: Verse.ThingDef
IL_0000: // start original
IL_0000: ldarg.1
IL_0001: castclass RimWorld.Plant
IL_0006: stloc.0
IL_0007: ldloc.0
IL_0008: callvirt virtual System.Boolean RimWorld.Plant::get_HarvestableNow()
IL_000D: brtrue => Label0
IL_0012: ldc.i4.0
IL_0013: br => Label8
IL_0018: Label0
IL_0018: ldloc.0
IL_0019: ldfld Verse.ThingDef Verse.Thing::def
IL_001E: ldfld RimWorld.PlantProperties Verse.ThingDef::plant
IL_0023: ldfld Verse.ThingDef RimWorld.PlantProperties::harvestedThingDef
IL_0028: stloc.1
IL_0029: ldloc.1
IL_002A: callvirt System.Boolean
Verse.ThingDef::get_IsNutritionGivingIngestible()
IL_002F: brtrue => Label1
IL_0034: ldc.i4.0
IL_0035: br => Label9
IL_003A: Label1
IL_003A: ldarg.0
IL_003B: ldfld Verse.Pawn RimWorld.<>c__DisplayClass19_0::eater
IL_0040: ldloc.1
IL_0041: ldarg.0
IL_0042: ldfld Verse.Pawn RimWorld.<>c__DisplayClass19_0::getter
IL_0047: ldc.i4.1
IL_0048: ldarg.0
IL_0049: ldfld System.Boolean RimWorld.<>c__DisplayClass19_0::allowVenerated
IL_004E: call static System.Boolean
RimWorld.FoodUtility::WillEat_NewTemp(Verse.Pawn p, Verse.ThingDef food, Verse.Pawn
getter, System.Boolean careIfNotAcceptableForTitle, System.Boolean allowVenerated)
IL_0053: brtrue => Label2
IL_0058: ldc.i4.0
IL_0059: br => Label10
IL_005E: Label2
IL_005E: ldarg.0
IL_005F: ldfld Verse.Pawn RimWorld.<>c__DisplayClass19_0::getter
IL_0064: ldloc.0
IL_0065: call static Verse.LocalTargetInfo
Verse.LocalTargetInfo::op_Implicit(Verse.Thing t)
IL_006A: ldc.i4.1
IL_006B: ldc.i4.m1
IL_006C: ldnull
IL_006D: ldc.i4.0
IL_006E: call static System.Boolean
Verse.AI.ReservationUtility::CanReserve(Verse.Pawn p, Verse.LocalTargetInfo target,
System.Int32 maxPawns, System.Int32 stackCount, Verse.ReservationLayerDef layer,
System.Boolean ignoreOtherReservations)
IL_0073: brtrue => Label3
IL_0078: ldc.i4.0
IL_0079: br => Label11
IL_007E: Label3
IL_007E: ldarg.0
IL_007F: ldfld System.Boolean RimWorld.<>c__DisplayClass19_0::allowForbidden
IL_0084: brtrue => Label4
IL_0089: ldloc.0
IL_008A: ldarg.0
IL_008B: ldfld Verse.Pawn RimWorld.<>c__DisplayClass19_0::getter
IL_0090: call static System.Boolean
RimWorld.ForbidUtility::IsForbidden(Verse.Thing t, Verse.Pawn pawn)
IL_0095: brfalse => Label5
IL_009A: ldc.i4.0
IL_009B: br => Label12
IL_00A0: Label4
IL_00A0: Label5
IL_00A0: ldarg.0
IL_00A1: ldfld Verse.Thing RimWorld.<>c__DisplayClass19_0::bestThing
IL_00A6: brfalse => Label6
IL_00AB: ldarg.0
IL_00AC: ldfld Verse.Thing RimWorld.<>c__DisplayClass19_0::bestThing
IL_00B1: ldc.i4.0
IL_00B2: call static Verse.ThingDef
RimWorld.FoodUtility::GetFinalIngestibleDef(Verse.Thing foodSource, System.Boolean
harvest)
IL_00B7: ldfld RimWorld.IngestibleProperties Verse.ThingDef::ingestible
IL_00BC: ldfld RimWorld.FoodPreferability
RimWorld.IngestibleProperties::preferability
IL_00C1: ldloc.1
IL_00C2: ldfld RimWorld.IngestibleProperties Verse.ThingDef::ingestible
IL_00C7: ldfld RimWorld.FoodPreferability
RimWorld.IngestibleProperties::preferability
IL_00CC: blt => Label7
IL_00D1: ldc.i4.0
IL_00D2: br => Label13
IL_00D7: Label6
IL_00D7: Label7
IL_00D7: ldc.i4.1
IL_00D8: // end original
IL_00D8: Label8
IL_00D8: Label9
IL_00D8: Label10
IL_00D8: Label11
IL_00D8: Label12
IL_00D8: Label13
IL_00D8: ret
DONE

### Patch: System.Boolean


RimWorld.<>c__DisplayClass19_0::<BestFoodSourceOnMap_NewTemp>b__2(Verse.Thing t)
### Replacement: static System.Boolean
RimWorld.FoodUtility+<>c__DisplayClass19_0::RimWorld.FoodUtility+c__DisplayClass19_
0.<BestFoodSourceOnMap_NewTemp>b__2_Patch0(RimWorld.<>c__DisplayClass19_0 this,
Verse.Thing t)
IL_0000: // start original
IL_0000: ldarg.0
IL_0001: ldfld System.Predicate`1<Verse.Thing>
RimWorld.<>c__DisplayClass19_0::foodValidator
IL_0006: ldarg.1
IL_0007: callvirt virtual System.Boolean
System.Predicate`1<Verse.Thing>::Invoke(Verse.Thing obj)
IL_000C: brtrue => Label0
IL_0011: ldc.i4.0
IL_0012: br => Label5
IL_0017: Label0
IL_0017: ldsfld System.Collections.Generic.HashSet`1<Verse.Thing>
RimWorld.FoodUtility::filtered
IL_001C: ldarg.1
IL_001D: callvirt virtual System.Boolean
System.Collections.Generic.HashSet`1<Verse.Thing>::Contains(Verse.Thing item)
IL_0022: brfalse => Label1
IL_0027: ldc.i4.0
IL_0028: br => Label6
IL_002D: Label1
IL_002D: ldarg.1
IL_002E: isinst RimWorld.Building_NutrientPasteDispenser
IL_0033: brtrue => Label2
IL_0038: ldarg.1
IL_0039: ldfld Verse.ThingDef Verse.Thing::def
IL_003E: ldfld RimWorld.IngestibleProperties Verse.ThingDef::ingestible
IL_0043: ldfld RimWorld.FoodPreferability
RimWorld.IngestibleProperties::preferability
IL_0048: ldc.i4.2
IL_0049: bgt => Label3
IL_004E: ldc.i4.0
IL_004F: br => Label7
IL_0054: Label2
IL_0054: Label3
IL_0054: ldarg.1
IL_0055: call static System.Boolean
RimWorld.RottableUtility::IsNotFresh(Verse.Thing t)
IL_005A: brfalse => Label4
IL_005F: ldc.i4.0
IL_0060: br => Label8
IL_0065: Label4
IL_0065: ldc.i4.1
IL_0066: // end original
IL_0066: Label5
IL_0066: Label6
IL_0066: Label7
IL_0066: Label8
IL_0066: ret
DONE

### Harmony id=Kikohi.VanillaEventExpanded, version=2.2.2.0, location=C:\Program


Files (x86)\Steam\steamapps\common\data-000002130553D010, env/clr=4.0.30319.42000,
platform=Win32NT, ptrsize:runtime/env=8/Bits64, Windows
### Started from static System.Void VEE.HarmonyInit::.cctor(), location C:\Program
Files (x86)\Steam\steamapps\common\data-0000021309BDAB00
### At 2023-02-17 06.57.43
### Patch: static System.Boolean
Verse.AI.JobGiver_WanderInRoofedCellsInPen::ShouldSeekRoofedCells(Verse.Pawn pawn)
### Replacement: static System.Boolean
Verse.AI.JobGiver_WanderInRoofedCellsInPen::Verse.AI.JobGiver_WanderInRoofedCellsIn
Pen.ShouldSeekRoofedCells_Patch1(Verse.Pawn pawn)
IL_0000: Local var 0: System.Boolean
IL_0000: ldc.i4 0
IL_0005: stloc 0 (System.Boolean)
IL_0009: // start original
IL_0009: ldarg.0
IL_000A: callvirt virtual Verse.Map Verse.Thing::get_Map()
IL_000F: ldfld RimWorld.GameConditionManager Verse.Map::gameConditionManager
IL_0014: ldsfld Verse.GameConditionDef
RimWorld.GameConditionDefOf::ToxicFallout
IL_0019: callvirt System.Boolean
RimWorld.GameConditionManager::ConditionIsActive(Verse.GameConditionDef def)
IL_001E: brtrue => Label0
IL_0023: call static System.Boolean Verse.ModsConfig::get_BiotechActive()
IL_0028: brfalse => Label1
IL_002D: ldarg.0
IL_002E: callvirt virtual Verse.Map Verse.Thing::get_Map()
IL_0033: ldfld RimWorld.GameConditionManager Verse.Map::gameConditionManager
IL_0038: ldsfld Verse.GameConditionDef RimWorld.GameConditionDefOf::NoxiousHaze
IL_003D: callvirt System.Boolean
RimWorld.GameConditionManager::ConditionIsActive(Verse.GameConditionDef def)
IL_0042: br => Label2
IL_0047: Label1
IL_0047: ldc.i4.0
IL_0048: br => Label3
IL_004D: Label0
IL_004D: ldc.i4.1
IL_004E: // end original
IL_004E: Label2
IL_004E: Label3
IL_004E: stloc 0 (System.Boolean)
IL_0052: ldarg 0
IL_0056: ldloca 0 (System.Boolean)
IL_005A: call static System.Void
VEE.JobGiver_WanderInRoofedCellsInPen_Patch::Postfix(Verse.Pawn pawn,
System.Boolean& __result)
IL_005F: ldloc 0 (System.Boolean)
IL_0063: ret
DONE

### Patch: System.Single RimWorld.FertilityGrid::CalculateFertilityAt(Verse.IntVec3


loc)
### Replacement: static System.Single
RimWorld.FertilityGrid::RimWorld.FertilityGrid.CalculateFertilityAt_Patch2(RimWorld
.FertilityGrid this, Verse.IntVec3 loc)
IL_0000: Local var 0: Verse.Thing
IL_0000: Local var 1: System.Single
IL_0000: Local var 2: System.Single
IL_0000: ldc.r4 0
IL_0005: stloc 2 (System.Single)
IL_0009: // start original
IL_0009: ldarg.1
IL_000A: ldarg.0
IL_000B: ldfld Verse.Map RimWorld.FertilityGrid::map
IL_0010: call static Verse.Building
Verse.GridsUtility::GetEdifice(Verse.IntVec3 c, Verse.Map map)
IL_0015: stloc.0
IL_0016: ldloc.0
IL_0017: brfalse => Label0
IL_001C: ldloc.0
IL_001D: ldfld Verse.ThingDef Verse.Thing::def
IL_0022: callvirt System.Boolean Verse.BuildableDef::get_AffectsFertility()
IL_0027: brfalse => Label1
IL_002C: ldloc.0
IL_002D: ldfld Verse.ThingDef Verse.Thing::def
IL_0032: ldfld System.Single Verse.BuildableDef::fertility
IL_0037: br => Label4
IL_003C: Label0
IL_003C: Label1
IL_003C: ldarg.0
IL_003D: ldfld Verse.Map RimWorld.FertilityGrid::map
IL_0042: ldfld Verse.TerrainGrid Verse.Map::terrainGrid
IL_0047: ldarg.1
IL_0048: callvirt Verse.TerrainDef Verse.TerrainGrid::TerrainAt(Verse.IntVec3 c)
IL_004D: ldfld System.Single Verse.BuildableDef::fertility
IL_0052: stloc.1
IL_0053: call static System.Boolean Verse.ModsConfig::get_BiotechActive()
IL_0058: brfalse => Label2
IL_005D: ldarg.0
IL_005E: ldfld Verse.Map RimWorld.FertilityGrid::map
IL_0063: ldfld Verse.PollutionGrid Verse.Map::pollutionGrid
IL_0068: ldarg.1
IL_0069: callvirt System.Boolean Verse.PollutionGrid::IsPolluted(Verse.IntVec3
cell)
IL_006E: brfalse => Label3
IL_0073: ldloc.1
IL_0074: ldc.r4 0.5
IL_0079: call static System.Single UnityEngine.Mathf::Min(System.Single a,
System.Single b)
IL_007E: stloc.1
IL_007F: Label2
IL_007F: Label3
IL_007F: ldloc.1
IL_0080: // end original
IL_0080: Label4
IL_0080: stloc 2 (System.Single)
IL_0084: ldarg.0
IL_0085: ldarg 1
IL_0089: ldloca 2 (System.Single)
IL_008D: call static System.Void
DubsBadHygiene.Patches.H_CalculateFertilityAt::PostFix(RimWorld.FertilityGrid
__instance, Verse.IntVec3 loc, System.Single& __result)
IL_0092: ldarg 1
IL_0096: ldarg.0
IL_0097: ldflda Verse.Map RimWorld.FertilityGrid::map
IL_009C: ldloca 2 (System.Single)
IL_00A0: call static System.Void
VEE.FertilityGrid_Patch::Postfix(Verse.IntVec3 loc, Verse.Map& ___map,
System.Single& __result)
IL_00A5: ldloc 2 (System.Single)
IL_00A9: ret
DONE

### Patch: virtual System.Void RimWorld.Plant::TickLong()


### Replacement: static System.Void
RimWorld.Plant::RimWorld.Plant.TickLong_Patch1(RimWorld.Plant this)
IL_0000: Local var 0: System.Single
IL_0000: Local var 1: Verse.Map
IL_0000: Local var 2: System.Boolean
IL_0000: Local var 3: System.Boolean
IL_0000: Local var 4: System.Boolean
IL_0000: Local var 5: System.Int32
IL_0000: Local var 6: System.String
IL_0000: Local var 7: Verse.MoteLeaf
IL_0000: Local var 8: System.Single
IL_0000: Local var 9: System.Single
IL_0000: Local var 10: UnityEngine.Vector3
IL_0000: Local var 11: Verse.IntVec3
IL_0000: // start original
IL_0000: ldarg.0
IL_0001: callvirt virtual System.Void RimWorld.Plant::CheckMakeLeafless()
IL_0006: ldarg.0
IL_0007: call System.Boolean Verse.Thing::get_Destroyed()
IL_000C: brfalse => Label0
IL_0011: br => Label21
IL_0016: Label0
IL_0016: ldarg.0
IL_0017: call virtual System.Void Verse.ThingWithComps::TickLong()
IL_001C: ldarg.0
IL_001D: call virtual Verse.IntVec3 Verse.Thing::get_Position()
IL_0022: ldarg.0
IL_0023: call virtual Verse.Map Verse.Thing::get_Map()
IL_0028: ldc.i4.0
IL_0029: call static System.Boolean
RimWorld.PlantUtility::GrowthSeasonNow(Verse.IntVec3 c, Verse.Map map,
System.Boolean forSowing)
IL_002E: brfalse => Label1
IL_0033: ldarg.0
IL_0034: ldfld System.Single RimWorld.Plant::growthInt
IL_0039: stloc.0
IL_003A: ldarg.0
IL_003B: callvirt virtual RimWorld.PlantLifeStage RimWorld.Plant::get_LifeStage()
IL_0040: ldc.i4.2
IL_0041: ceq
IL_0043: ldarg.0
IL_0044: ldarg.0
IL_0045: ldfld System.Single RimWorld.Plant::growthInt
IL_004A: ldarg.0
IL_004B: call System.Single RimWorld.Plant::get_GrowthPerTick()
IL_0050: ldc.r4 2000
IL_0055: mul
IL_0056: add
IL_0057: stfld System.Single RimWorld.Plant::growthInt
IL_005C: ldarg.0
IL_005D: ldfld System.Single RimWorld.Plant::growthInt
IL_0062: ldc.r4 1
IL_0067: ble.un => Label2
IL_006C: ldarg.0
IL_006D: ldc.r4 1
IL_0072: stfld System.Single RimWorld.Plant::growthInt
IL_0077: Label2
IL_0077: brtrue => Label3
IL_007C: ldarg.0
IL_007D: callvirt virtual RimWorld.PlantLifeStage RimWorld.Plant::get_LifeStage()
IL_0082: ldc.i4.2
IL_0083: beq => Label4
IL_0088: Label3
IL_0088: ldloc.0
IL_0089: ldc.r4 10
IL_008E: mul
IL_008F: conv.i4
IL_0090: ldarg.0
IL_0091: ldfld System.Single RimWorld.Plant::growthInt
IL_0096: ldc.r4 10
IL_009B: mul
IL_009C: conv.i4
IL_009D: beq => Label5
IL_00A2: Label4
IL_00A2: ldarg.0
IL_00A3: callvirt virtual System.Boolean RimWorld.Plant::CurrentlyCultivated()
IL_00A8: brfalse => Label6
IL_00AD: ldarg.0
IL_00AE: call virtual Verse.Map Verse.Thing::get_Map()
IL_00B3: ldfld Verse.MapDrawer Verse.Map::mapDrawer
IL_00B8: ldarg.0
IL_00B9: call virtual Verse.IntVec3 Verse.Thing::get_Position()
IL_00BE: ldc.i4.1
IL_00BF: callvirt System.Void Verse.MapDrawer::MapMeshDirty(Verse.IntVec3 loc,
Verse.MapMeshFlag dirtyFlags)
IL_00C4: Label1
IL_00C4: Label5
IL_00C4: Label6
IL_00C4: ldarg.0
IL_00C5: callvirt virtual System.Boolean
RimWorld.Plant::get_HasEnoughLightToGrow()
IL_00CA: brtrue => Label7
IL_00CF: ldarg.0
IL_00D0: ldarg.0
IL_00D1: ldfld System.Int32 RimWorld.Plant::unlitTicks
IL_00D6: ldc.i4 2000
IL_00DB: add
IL_00DC: stfld System.Int32 RimWorld.Plant::unlitTicks
IL_00E1: br => Label8
IL_00E6: Label7
IL_00E6: ldarg.0
IL_00E7: ldc.i4.0
IL_00E8: stfld System.Int32 RimWorld.Plant::unlitTicks
IL_00ED: Label8
IL_00ED: ldarg.0
IL_00EE: ldarg.0
IL_00EF: ldfld System.Int32 RimWorld.Plant::ageInt
IL_00F4: ldc.i4 2000
IL_00F9: add
IL_00FA: stfld System.Int32 RimWorld.Plant::ageInt
IL_00FF: ldarg.0
IL_0100: call System.Boolean RimWorld.Plant::get_Dying()
IL_0105: brfalse => Label9
IL_010A: ldarg.0
IL_010B: call virtual Verse.Map Verse.Thing::get_Map()
IL_0110: stloc.1
IL_0111: ldarg.0
IL_0112: call System.Boolean RimWorld.Plant::get_IsCrop()
IL_0117: stloc.2
IL_0118: ldarg.0
IL_0119: callvirt virtual System.Boolean RimWorld.Plant::get_HarvestableNow()
IL_011E: stloc.3
IL_011F: ldarg.0
IL_0120: callvirt virtual System.Boolean
RimWorld.Plant::get_DyingBecauseExposedToLight()
IL_0125: stloc.s 4 (System.Boolean)
IL_0127: ldarg.0
IL_0128: callvirt virtual System.Single
RimWorld.Plant::get_CurrentDyingDamagePerTick()
IL_012D: ldc.r4 2000
IL_0132: mul
IL_0133: call static System.Int32 UnityEngine.Mathf::CeilToInt(System.Single
f)
IL_0138: stloc.s 5 (System.Int32)
IL_013A: ldarg.0
IL_013B: ldsfld Verse.DamageDef RimWorld.DamageDefOf::Rotting
IL_0140: ldloc.s 5 (System.Int32)
IL_0142: conv.r4
IL_0143: ldc.r4 0
IL_0148: ldc.r4 -1
IL_014D: ldnull
IL_014E: ldnull
IL_014F: ldnull
IL_0150: ldc.i4.0
IL_0151: ldnull
IL_0152: ldc.i4.1
IL_0153: ldc.i4.1
IL_0154: newobj System.Void Verse.DamageInfo::.ctor(Verse.DamageDef def,
System.Single amount, System.Single armorPenetration, System.Single angle,
Verse.Thing instigator, Verse.BodyPartRecord hitPart, Verse.ThingDef weapon,
Verse.SourceCategory category, Verse.Thing intendedTarget, System.Boolean
instigatorGuilty, System.Boolean spawnFilth)
IL_0159: call Verse.DamageResult Verse.Thing::TakeDamage(Verse.DamageInfo
dinfo)
IL_015E: pop
IL_015F: ldarg.0
IL_0160: call System.Boolean Verse.Thing::get_Destroyed()
IL_0165: brfalse => Label10
IL_016A: ldarg.0
IL_016B: ldfld Verse.ThingDef Verse.Thing::def
IL_0170: ldfld RimWorld.PlantProperties Verse.ThingDef::plant
IL_0175: ldfld System.Boolean
RimWorld.PlantProperties::skipDeteriorationMessage
IL_017A: brtrue => Label11
IL_017F: ldloc.2
IL_0180: brfalse => Label12
IL_0185: ldarg.0
IL_0186: ldfld Verse.ThingDef Verse.Thing::def
IL_018B: ldfld RimWorld.PlantProperties Verse.ThingDef::plant
IL_0190: callvirt System.Boolean RimWorld.PlantProperties::get_Harvestable()
IL_0195: brfalse => Label13
IL_019A: ldstr "MessagePlantDiedOfRot-"
IL_019F: ldarg.0
IL_01A0: ldfld Verse.ThingDef Verse.Thing::def
IL_01A5: ldfld System.String Verse.Def::defName
IL_01AA: call static System.String System.String::Concat(System.String str0,
System.String str1)
IL_01AF: ldc.r4 240
IL_01B4: call static System.Boolean
Verse.MessagesRepeatAvoider::MessageShowAllowed(System.String tag, System.Single
minSecondsSinceLastShow)
IL_01B9: brfalse => Label14
IL_01BE: ldloc.3
IL_01BF: brfalse => Label15
IL_01C4: ldstr "MessagePlantDiedOfRot_LeftUnharvested"
IL_01C9: stloc.s 6 (System.String)
IL_01CB: br => Label16
IL_01D0: Label15
IL_01D0: ldloc.s 4 (System.Boolean)
IL_01D2: brfalse => Label17
IL_01D7: ldstr "MessagePlantDiedOfRot_ExposedToLight"
IL_01DC: stloc.s 6 (System.String)
IL_01DE: br => Label18
IL_01E3: Label17
IL_01E3: ldstr "MessagePlantDiedOfRot"
IL_01E8: stloc.s 6 (System.String)
IL_01EA: Label16
IL_01EA: Label18
IL_01EA: ldloc.s 6 (System.String)
IL_01EC: ldarg.0
IL_01ED: ldc.i4.0
IL_01EE: callvirt virtual System.String
Verse.Thing::GetCustomLabelNoCount(System.Boolean includeHp)
IL_01F3: call static Verse.NamedArgument
Verse.NamedArgument::op_Implicit(System.String value)
IL_01F8: call static Verse.TaggedString
Verse.TranslatorFormattedStringExtensions::Translate(System.String key,
Verse.NamedArgument arg1)
IL_01FD: call static System.String
Verse.TaggedString::op_Implicit(Verse.TaggedString taggedString)
IL_0202: ldarg.0
IL_0203: call virtual Verse.IntVec3 Verse.Thing::get_Position()
IL_0208: ldloc.1
IL_0209: ldc.i4.0
IL_020A: newobj System.Void Verse.TargetInfo::.ctor(Verse.IntVec3 cell,
Verse.Map map, System.Boolean allowNullMap)
IL_020F: call static Verse.LookTargets
Verse.LookTargets::op_Implicit(Verse.TargetInfo target)
IL_0214: ldsfld Verse.MessageTypeDef RimWorld.MessageTypeDefOf::NegativeEvent
IL_0219: ldc.i4.1
IL_021A: call static System.Void Verse.Messages::Message(System.String text,
Verse.LookTargets lookTargets, Verse.MessageTypeDef def, System.Boolean historical)
IL_021F: Label12
IL_021F: Label13
IL_021F: Label14
IL_021F: br => Label22
IL_0224: Label9
IL_0224: Label10
IL_0224: Label11
IL_0224: ldarg.0
IL_0225: ldnull
IL_0226: stfld System.String RimWorld.Plant::cachedLabelMouseover
IL_022B: ldarg.0
IL_022C: ldfld Verse.ThingDef Verse.Thing::def
IL_0231: ldfld RimWorld.PlantProperties Verse.ThingDef::plant
IL_0236: ldfld System.Boolean RimWorld.PlantProperties::dropLeaves
IL_023B: brfalse => Label19
IL_0240: call static UnityEngine.Vector3 UnityEngine.Vector3::get_zero()
IL_0245: ldarg.0
IL_0246: call virtual Verse.Map Verse.Thing::get_Map()
IL_024B: ldsfld Verse.ThingDef RimWorld.ThingDefOf::Mote_Leaf
IL_0250: ldc.r4 1
IL_0255: ldc.i4.0
IL_0256: call static Verse.Mote
RimWorld.MoteMaker::MakeStaticMote(UnityEngine.Vector3 loc, Verse.Map map,
Verse.ThingDef moteDef, System.Single scale, System.Boolean makeOffscreen)
IL_025B: isinst Verse.MoteLeaf
IL_0260: stloc.s 7 (Verse.MoteLeaf)
IL_0262: ldloc.s 7 (Verse.MoteLeaf)
IL_0264: brfalse => Label20
IL_0269: ldarg.0
IL_026A: ldfld Verse.ThingDef Verse.Thing::def
IL_026F: ldfld RimWorld.PlantProperties Verse.ThingDef::plant
IL_0274: ldflda Verse.FloatRange RimWorld.PlantProperties::visualSizeRange
IL_0279: ldarg.0
IL_027A: ldfld System.Single RimWorld.Plant::growthInt
IL_027F: call System.Single Verse.FloatRange::LerpThroughRange(System.Single
lerpPct)
IL_0284: stloc.s 8 (System.Single)
IL_0286: ldarg.0
IL_0287: ldfld Verse.ThingDef Verse.Thing::def
IL_028C: ldfld Verse.GraphicData Verse.ThingDef::graphicData
IL_0291: ldflda UnityEngine.Vector2 Verse.GraphicData::drawSize
IL_0296: ldfld System.Single UnityEngine.Vector2::x
IL_029B: ldloc.s 8 (System.Single)
IL_029D: mul
IL_029E: stloc.s 9 (System.Single)
IL_02A0: call static UnityEngine.Vector3
Verse.Rand::get_InsideUnitCircleVec3()
IL_02A5: ldsfld System.Single RimWorld.Plant::LeafSpawnRadius
IL_02AA: call static UnityEngine.Vector3
UnityEngine.Vector3::op_Multiply(UnityEngine.Vector3 a, System.Single d)
IL_02AF: stloc.s 10 (UnityEngine.Vector3)
IL_02B1: ldloc.s 7 (Verse.MoteLeaf)
IL_02B3: ldarg.0
IL_02B4: call virtual Verse.IntVec3 Verse.Thing::get_Position()
IL_02B9: stloc.s 11 (Verse.IntVec3)
IL_02BB: ldloca.s 11 (Verse.IntVec3)
IL_02BD: call UnityEngine.Vector3 Verse.IntVec3::ToVector3Shifted()
IL_02C2: call static UnityEngine.Vector3 UnityEngine.Vector3::get_up()
IL_02C7: ldsfld System.Single RimWorld.Plant::LeafSpawnYMin
IL_02CC: ldsfld System.Single RimWorld.Plant::LeafSpawnYMax
IL_02D1: call static System.Single Verse.Rand::Range(System.Single min,
System.Single max)
IL_02D6: call static UnityEngine.Vector3
UnityEngine.Vector3::op_Multiply(UnityEngine.Vector3 a, System.Single d)
IL_02DB: call static UnityEngine.Vector3
UnityEngine.Vector3::op_Addition(UnityEngine.Vector3 a, UnityEngine.Vector3 b)
IL_02E0: ldloc.s 10 (UnityEngine.Vector3)
IL_02E2: call static UnityEngine.Vector3
UnityEngine.Vector3::op_Addition(UnityEngine.Vector3 a, UnityEngine.Vector3 b)
IL_02E7: call static UnityEngine.Vector3 UnityEngine.Vector3::get_forward()
IL_02EC: ldarg.0
IL_02ED: ldfld Verse.ThingDef Verse.Thing::def
IL_02F2: ldfld Verse.GraphicData Verse.ThingDef::graphicData
IL_02F7: ldfld Verse.ShadowData Verse.GraphicData::shadowData
IL_02FC: ldflda UnityEngine.Vector3 Verse.ShadowData::offset
IL_0301: ldfld System.Single UnityEngine.Vector3::z
IL_0306: call static UnityEngine.Vector3
UnityEngine.Vector3::op_Multiply(UnityEngine.Vector3 a, System.Single d)
IL_030B: call static UnityEngine.Vector3
UnityEngine.Vector3::op_Addition(UnityEngine.Vector3 a, UnityEngine.Vector3 b)
IL_0310: call static System.Single Verse.Rand::get_Value()
IL_0315: ldc.i4 2000
IL_031A: call static System.Single
Verse.GenTicks::TicksToSeconds(System.Int32 numTicks)
IL_031F: mul
IL_0320: ldloc.s 10 (UnityEngine.Vector3)
IL_0322: ldfld System.Single UnityEngine.Vector3::z
IL_0327: ldc.r4 0
IL_032C: cgt
IL_032E: ldloc.s 9 (System.Single)
IL_0330: callvirt System.Void Verse.MoteLeaf::Initialize(UnityEngine.Vector3
position, System.Single spawnDelay, System.Boolean front, System.Single treeHeight)
IL_0335: // end original
IL_0335: Label19
IL_0335: Label20
IL_0335: Label21
IL_0335: Label22
IL_0335: ldarga 0
IL_0339: ldarg.0
IL_033A: ldflda System.Int32 RimWorld.Plant::madeLeaflessTick
IL_033F: call static System.Void
VEE.Plant_TickLong_Patch::Postfix(RimWorld.Plant& __instance, System.Int32&
___madeLeaflessTick)
IL_0344: ret
DONE

### Patch: virtual System.Single RimWorld.Plant::get_GrowthRate()


### Replacement: static System.Single
RimWorld.Plant::RimWorld.Plant.get_GrowthRate_Patch1(RimWorld.Plant this)
IL_0000: Local var 0: System.Single
IL_0000: ldc.r4 0
IL_0005: stloc 0 (System.Single)
IL_0009: // start original
IL_0009: ldarg.0
IL_000A: call System.Boolean RimWorld.Plant::get_Blighted()
IL_000F: brfalse => Label0
IL_0014: ldc.r4 0
IL_0019: br => Label3
IL_001E: Label0
IL_001E: ldarg.0
IL_001F: call System.Boolean Verse.Thing::get_Spawned()
IL_0024: brfalse => Label1
IL_0029: ldarg.0
IL_002A: call virtual Verse.IntVec3 Verse.Thing::get_Position()
IL_002F: ldarg.0
IL_0030: call virtual Verse.Map Verse.Thing::get_Map()
IL_0035: ldc.i4.0
IL_0036: call static System.Boolean
RimWorld.PlantUtility::GrowthSeasonNow(Verse.IntVec3 c, Verse.Map map,
System.Boolean forSowing)
IL_003B: brtrue => Label2
IL_0040: ldc.r4 0
IL_0045: br => Label4
IL_004A: Label1
IL_004A: Label2
IL_004A: ldarg.0
IL_004B: call System.Single RimWorld.Plant::get_GrowthRateFactor_Fertility()
IL_0050: ldarg.0
IL_0051: call System.Single
RimWorld.Plant::get_GrowthRateFactor_Temperature()
IL_0056: mul
IL_0057: ldarg.0
IL_0058: call System.Single RimWorld.Plant::get_GrowthRateFactor_Light()
IL_005D: mul
IL_005E: ldarg.0
IL_005F: call System.Single
RimWorld.Plant::get_GrowthRateFactor_NoxiousHaze()
IL_0064: mul
IL_0065: // end original
IL_0065: Label3
IL_0065: Label4
IL_0065: stloc 0 (System.Single)
IL_0069: ldarga 0
IL_006D: ldloca 0 (System.Single)
IL_0071: call static System.Void
VEE.Plant_GrowthRate_Patch::Postfix(RimWorld.Plant& __instance, System.Single&
__result)
IL_0076: ldloc 0 (System.Single)
IL_007A: ret
DONE

### Patch: virtual System.Void RimWorld.Plant::PostMapInit()


### Replacement: static System.Void
RimWorld.Plant::RimWorld.Plant.PostMapInit_Patch1(RimWorld.Plant this)
IL_0000: // start original
IL_0000: ldarg.0
IL_0001: callvirt virtual System.Void RimWorld.Plant::CheckMakeLeafless()
IL_0006: // end original
IL_0006: ldarga 0
IL_000A: ldarg.0
IL_000B: ldflda System.Int32 RimWorld.Plant::madeLeaflessTick
IL_0010: call static System.Void
VEE.Plant_PostMapInit_Patch::Postfix(RimWorld.Plant& __instance, System.Int32&
___madeLeaflessTick)
IL_0015: ret
DONE

### Patch: System.Void Verse.MouseoverReadout::MouseoverReadoutOnGUI()


### Replacement: static System.Void
Verse.MouseoverReadout::Verse.MouseoverReadout.MouseoverReadoutOnGUI_Patch1(Verse.M
ouseoverReadout this)
IL_0000: Local var 0: Verse.IntVec3
IL_0000: Local var 1: System.Single
IL_0000: Local var 2: Verse.Zone
IL_0000: Local var 3: System.Single
IL_0000: Local var 4: System.Collections.Generic.List`1<Verse.Thing>
IL_0000: Local var 5: Verse.RoofDef
IL_0000: Local var 6: Verse.TerrainDef
IL_0000: Local var 7: System.Boolean
IL_0000: Local var 8: System.Single
IL_0000: Local var 9: System.String
IL_0000: Local var 10: System.String
IL_0000: Local var 11: Verse.TaggedString
IL_0000: Local var 12: System.String
IL_0000: Local var 13: Verse.SnowCategory
IL_0000: Local var 14: System.String
IL_0000: Local var 15: System.Int32
IL_0000: Local var 16: Verse.Thing
IL_0000: Local var 17: System.String
IL_0000: // start original
IL_0000: call static UnityEngine.Event UnityEngine.Event::get_current()
IL_0005: callvirt UnityEngine.EventType UnityEngine.Event::get_type()
IL_000A: ldc.i4.7
IL_000B: beq => Label0
IL_0010: br => Label19
IL_0015: Label0
IL_0015: call static RimWorld.MainTabsRoot Verse.Find::get_MainTabsRoot()
IL_001A: callvirt RimWorld.MainButtonDef RimWorld.MainTabsRoot::get_OpenTab()
IL_001F: call static RimWorld.MainButtonDef
TD_Enhancement_Pack.MouseoverOnTopRight::FilterForOpenTab(RimWorld.MainButtonDef
def)
IL_0024: brfalse => Label1
IL_0029: br => Label20
IL_002E: Label1
IL_002E: ldc.r4 256
IL_0033: ldsfld System.Int32 Verse.UI::screenHeight
IL_0038: ldc.i4 256
IL_003D: sub
IL_003E: conv.r4
IL_003F: ldc.r4 -256
IL_0044: ldc.r4 256
IL_0049: newobj System.Void UnityEngine.Rect::.ctor(System.Single x,
System.Single y, System.Single width, System.Single height)
IL_004E: call static System.Void
TD_Enhancement_Pack.MouseoverOnTopRight::DrawTextWinterShadowTR(UnityEngine.Rect
badRect)
IL_0053: ldc.i4.1
IL_0054: call static System.Void Verse.Text::set_Font(Verse.GameFont value)
IL_0059: ldc.r4 1
IL_005E: ldc.r4 1
IL_0063: ldc.r4 1
IL_0068: ldc.r4 0.8
IL_006D: newobj System.Void UnityEngine.Color::.ctor(System.Single r,
System.Single g, System.Single b, System.Single a)
IL_0072: call static System.Void UnityEngine.GUI::set_color(UnityEngine.Color
value)
IL_0077: call static Verse.IntVec3 Verse.UI::MouseCell()
IL_007C: stloc.0
IL_007D: ldloc.0
IL_007E: call static Verse.Map Verse.Find::get_CurrentMap()
IL_0083: call static System.Boolean Verse.GenGrid::InBounds(Verse.IntVec3 c,
Verse.Map map)
IL_0088: brtrue => Label2
IL_008D: br => Label21
IL_0092: Label2
IL_0092: ldc.r4 0
IL_0097: stloc.1
IL_0098: ldloc.0
IL_0099: call static Verse.Map Verse.Find::get_CurrentMap()
IL_009E: call static System.Boolean Verse.GridsUtility::Fogged(Verse.IntVec3
c, Verse.Map map)
IL_00A3: brfalse => Label3
IL_00A8: ldsflda UnityEngine.Vector2 Verse.MouseoverReadout::BotLeft
IL_00AD: ldfld System.Single UnityEngine.Vector2::x
IL_00B2: ldsfld System.Int32 Verse.UI::screenHeight
IL_00B7: conv.r4
IL_00B8: ldsflda UnityEngine.Vector2 Verse.MouseoverReadout::BotLeft
IL_00BD: ldfld System.Single UnityEngine.Vector2::y
IL_00C2: sub
IL_00C3: ldloc.1
IL_00C4: sub
IL_00C5: ldc.r4 999
IL_00CA: ldc.r4 999
IL_00CF: newobj System.Void UnityEngine.Rect::.ctor(System.Single x,
System.Single y, System.Single width, System.Single height)
IL_00D4: ldstr "Undiscovered"
IL_00D9: call static Verse.TaggedString
Verse.Translator::Translate(System.String key)
IL_00DE: call static System.Void
TD_Enhancement_Pack.MouseoverOnTopRight::LabelTaggedTransform(UnityEngine.Rect
rect, Verse.TaggedString label)
IL_00E3: call static UnityEngine.Color UnityEngine.Color::get_white()
IL_00E8: call static System.Void UnityEngine.GUI::set_color(UnityEngine.Color
value)
IL_00ED: br => Label22
IL_00F2: Label3
IL_00F2: ldsflda UnityEngine.Vector2 Verse.MouseoverReadout::BotLeft
IL_00F7: ldfld System.Single UnityEngine.Vector2::x
IL_00FC: ldsfld System.Int32 Verse.UI::screenHeight
IL_0101: conv.r4
IL_0102: ldsflda UnityEngine.Vector2 Verse.MouseoverReadout::BotLeft
IL_0107: ldfld System.Single UnityEngine.Vector2::y
IL_010C: sub
IL_010D: ldloc.1
IL_010E: sub
IL_010F: ldc.r4 999
IL_0114: ldc.r4 999
IL_0119: newobj System.Void UnityEngine.Rect::.ctor(System.Single x,
System.Single y, System.Single width, System.Single height)
IL_011E: call static Verse.Map Verse.Find::get_CurrentMap()
IL_0123: ldfld Verse.GlowGrid Verse.Map::glowGrid
IL_0128: ldloc.0
IL_0129: ldc.i4.0
IL_012A: callvirt System.Single Verse.GlowGrid::GameGlowAt(Verse.IntVec3 c,
System.Boolean ignoreCavePlants)
IL_012F: call static System.String
Verse.MouseoverUtility::GetGlowLabelByValue(System.Single value)
IL_0134: call static System.Void
TD_Enhancement_Pack.MouseoverOnTopRight::LabelTransform(UnityEngine.Rect rect,
System.String label)
IL_0139: ldloc.1
IL_013A: ldc.r4 19
IL_013F: add
IL_0140: stloc.1
IL_0141: ldsflda UnityEngine.Vector2 Verse.MouseoverReadout::BotLeft
IL_0146: ldfld System.Single UnityEngine.Vector2::x
IL_014B: ldsfld System.Int32 Verse.UI::screenHeight
IL_0150: conv.r4
IL_0151: ldsflda UnityEngine.Vector2 Verse.MouseoverReadout::BotLeft
IL_0156: ldfld System.Single UnityEngine.Vector2::y
IL_015B: sub
IL_015C: ldloc.1
IL_015D: sub
IL_015E: ldc.r4 999
IL_0163: ldc.r4 999
IL_0168: newobj System.Void UnityEngine.Rect::.ctor(System.Single x,
System.Single y, System.Single width, System.Single height)
IL_016D: ldloc.0
IL_016E: call static Verse.Map Verse.Find::get_CurrentMap()
IL_0173: call static Verse.TerrainDef
Verse.GridsUtility::GetTerrain(Verse.IntVec3 c, Verse.Map map)
IL_0178: dup
IL_0179: ldloc.0
IL_017A: call static System.Void
DubsBadHygiene.Patches.H_MouseoverReadoutOnGUI::AdjFert(Verse.TerrainDef def,
Verse.IntVec3 c)
IL_017F: stloc.s 6 (Verse.TerrainDef)
IL_0181: ldloc.0
IL_0182: call static Verse.Map Verse.Find::get_CurrentMap()
IL_0187: call static System.Boolean
Verse.GridsUtility::IsPolluted(Verse.IntVec3 c, Verse.Map map)
IL_018C: stloc.s 7 (System.Boolean)
IL_018E: ldloc.s 6 (Verse.TerrainDef)
IL_0190: ldarg.0
IL_0191: ldfld Verse.TerrainDef Verse.MouseoverReadout::cachedTerrain
IL_0196: bne.un => Label4
IL_019B: ldloc.s 7 (System.Boolean)
IL_019D: ldarg.0
IL_019E: ldfld System.Boolean Verse.MouseoverReadout::cachedPolluted
IL_01A3: beq => Label5
IL_01A8: Label4
IL_01A8: ldloc.0
IL_01A9: call static Verse.Map Verse.Find::get_CurrentMap()
IL_01AE: call static System.Single
Verse.GridsUtility::GetFertility(Verse.IntVec3 c, Verse.Map map)
IL_01B3: stloc.s 8 (System.Single)
IL_01B5: ldloc.s 8 (System.Single)
IL_01B7: conv.r8
IL_01B8: ldc.r8 0.0001
IL_01C1: bgt => Label6
IL_01C6: ldstr ""
IL_01CB: br => Label7
IL_01D0: Label6
IL_01D0: ldstr " "
IL_01D5: ldstr "FertShort"
IL_01DA: call static System.String
Verse.Translator::TranslateSimple(System.String key)
IL_01DF: ldstr " "
IL_01E4: ldloc.s 8 (System.Single)
IL_01E6: call static System.String
Verse.GenText::ToStringPercent(System.Single f)
IL_01EB: call static System.String System.String::Concat(System.String str0,
System.String str1, System.String str2, System.String str3)
IL_01F0: Label7
IL_01F0: stloc.s 9 (System.String)
IL_01F2: ldloc.s 7 (System.Boolean)
IL_01F4: brtrue => Label8
IL_01F9: ldloc.s 6 (Verse.TerrainDef)
IL_01FB: callvirt virtual Verse.TaggedString Verse.Def::get_LabelCap()
IL_0200: br => Label9
IL_0205: Label8
IL_0205: ldstr "PollutedTerrain"
IL_020A: ldloc.s 6 (Verse.TerrainDef)
IL_020C: ldfld System.String Verse.Def::label
IL_0211: call static Verse.NamedArgument
Verse.NamedArgument::op_Implicit(System.String value)
IL_0216: call static Verse.TaggedString
Verse.TranslatorFormattedStringExtensions::Translate(System.String key,
Verse.NamedArgument arg1)
IL_021B: stloc.s 11 (Verse.TaggedString)
IL_021D: ldloca.s 11 (Verse.TaggedString)
IL_021F: call Verse.TaggedString Verse.TaggedString::CapitalizeFirst()
IL_0224: Label9
IL_0224: call static System.String
Verse.TaggedString::op_Implicit(Verse.TaggedString taggedString)
IL_0229: stloc.s 10 (System.String)
IL_022B: ldarg.0
IL_022C: ldloc.s 10 (System.String)
IL_022E: ldloc.s 6 (Verse.TerrainDef)
IL_0230: ldfld Verse.Traversability Verse.BuildableDef::passability
IL_0235: ldc.i4.2
IL_0236: bne.un => Label10
IL_023B: ldnull
IL_023C: call static Verse.TaggedString
Verse.TaggedString::op_Implicit(System.String str)
IL_0241: br => Label11
IL_0246: Label10
IL_0246: ldstr " ("
IL_024B: ldstr "WalkSpeed"
IL_0250: ldloc.s 6 (Verse.TerrainDef)
IL_0252: ldfld System.Int32 Verse.BuildableDef::pathCost
IL_0257: conv.r4
IL_0258: call static System.String
Verse.AI.GenPath::SpeedPercentString(System.Single extraPathTicks)
IL_025D: call static Verse.NamedArgument
Verse.NamedArgument::op_Implicit(System.String value)
IL_0262: call static Verse.TaggedString
Verse.TranslatorFormattedStringExtensions::Translate(System.String key,
Verse.NamedArgument arg1)
IL_0267: call static Verse.TaggedString
Verse.TaggedString::op_Addition(System.String t1, Verse.TaggedString t2)
IL_026C: ldloc.s 9 (System.String)
IL_026E: call static Verse.TaggedString
Verse.TaggedString::op_Addition(Verse.TaggedString t1, System.String t2)
IL_0273: ldstr ")"
IL_0278: call static Verse.TaggedString
Verse.TaggedString::op_Addition(Verse.TaggedString t1, System.String t2)
IL_027D: Label11
IL_027D: call static Verse.TaggedString
Verse.TaggedString::op_Addition(System.String t1, Verse.TaggedString t2)
IL_0282: call static System.String
Verse.TaggedString::op_Implicit(Verse.TaggedString taggedString)
IL_0287: stfld System.String Verse.MouseoverReadout::cachedTerrainString
IL_028C: ldarg.0
IL_028D: ldloc.s 6 (Verse.TerrainDef)
IL_028F: stfld Verse.TerrainDef Verse.MouseoverReadout::cachedTerrain
IL_0294: ldarg.0
IL_0295: ldloc.s 7 (System.Boolean)
IL_0297: stfld System.Boolean Verse.MouseoverReadout::cachedPolluted
IL_029C: Label5
IL_029C: ldarg.0
IL_029D: ldfld System.String Verse.MouseoverReadout::cachedTerrainString
IL_02A2: call static System.Void
TD_Enhancement_Pack.MouseoverOnTopRight::LabelTransform(UnityEngine.Rect rect,
System.String label)
IL_02A7: ldloc.1
IL_02A8: ldc.r4 19
IL_02AD: add
IL_02AE: stloc.1
IL_02AF: ldloc.0
IL_02B0: call static Verse.Map Verse.Find::get_CurrentMap()
IL_02B5: call static Verse.Zone Verse.GridsUtility::GetZone(Verse.IntVec3 c,
Verse.Map map)
IL_02BA: stloc.2
IL_02BB: ldloc.2
IL_02BC: brfalse => Label12
IL_02C1: ldsflda UnityEngine.Vector2 Verse.MouseoverReadout::BotLeft
IL_02C6: ldfld System.Single UnityEngine.Vector2::x
IL_02CB: ldsfld System.Int32 Verse.UI::screenHeight
IL_02D0: conv.r4
IL_02D1: ldsflda UnityEngine.Vector2 Verse.MouseoverReadout::BotLeft
IL_02D6: ldfld System.Single UnityEngine.Vector2::y
IL_02DB: sub
IL_02DC: ldloc.1
IL_02DD: sub
IL_02DE: ldc.r4 999
IL_02E3: ldc.r4 999
IL_02E8: newobj System.Void UnityEngine.Rect::.ctor(System.Single x,
System.Single y, System.Single width, System.Single height)
IL_02ED: ldloc.2
IL_02EE: ldfld System.String Verse.Zone::label
IL_02F3: stloc.s 12 (System.String)
IL_02F5: ldloc.s 12 (System.String)
IL_02F7: call static System.Void
TD_Enhancement_Pack.MouseoverOnTopRight::LabelTransform(UnityEngine.Rect rect,
System.String label)
IL_02FC: ldloc.1
IL_02FD: ldc.r4 19
IL_0302: add
IL_0303: stloc.1
IL_0304: Label12
IL_0304: call static Verse.Map Verse.Find::get_CurrentMap()
IL_0309: ldfld Verse.SnowGrid Verse.Map::snowGrid
IL_030E: ldloc.0
IL_030F: callvirt System.Single Verse.SnowGrid::GetDepth(Verse.IntVec3 c)
IL_0314: stloc.3
IL_0315: ldloc.3
IL_0316: ldc.r4 0.03
IL_031B: ble.un => Label13
IL_0320: ldsflda UnityEngine.Vector2 Verse.MouseoverReadout::BotLeft
IL_0325: ldfld System.Single UnityEngine.Vector2::x
IL_032A: ldsfld System.Int32 Verse.UI::screenHeight
IL_032F: conv.r4
IL_0330: ldsflda UnityEngine.Vector2 Verse.MouseoverReadout::BotLeft
IL_0335: ldfld System.Single UnityEngine.Vector2::y
IL_033A: sub
IL_033B: ldloc.1
IL_033C: sub
IL_033D: ldc.r4 999
IL_0342: ldc.r4 999
IL_0347: newobj System.Void UnityEngine.Rect::.ctor(System.Single x,
System.Single y, System.Single width, System.Single height)
IL_034C: ldloc.3
IL_034D: call static Verse.SnowCategory
Verse.SnowUtility::GetSnowCategory(System.Single snowDepth)
IL_0352: stloc.s 13 (Verse.SnowCategory)
IL_0354: ldstr "Snow"
IL_0359: call static Verse.TaggedString
Verse.Translator::Translate(System.String key)
IL_035E: ldstr "("
IL_0363: call static Verse.TaggedString
Verse.TaggedString::op_Addition(Verse.TaggedString t1, System.String t2)
IL_0368: ldloc.s 13 (Verse.SnowCategory)
IL_036A: call static System.String
Verse.SnowUtility::GetDescription(Verse.SnowCategory category)
IL_036F: call static Verse.TaggedString
Verse.TaggedString::op_Addition(Verse.TaggedString t1, System.String t2)
IL_0374: ldstr ")"
IL_0379: call static Verse.TaggedString
Verse.TaggedString::op_Addition(Verse.TaggedString t1, System.String t2)
IL_037E: ldstr " ("
IL_0383: call static Verse.TaggedString
Verse.TaggedString::op_Addition(Verse.TaggedString t1, System.String t2)
IL_0388: ldstr "WalkSpeed"
IL_038D: ldloc.s 13 (Verse.SnowCategory)
IL_038F: call static System.Int32
Verse.SnowUtility::MovementTicksAddOn(Verse.SnowCategory category)
IL_0394: conv.r4
IL_0395: call static System.String
Verse.AI.GenPath::SpeedPercentString(System.Single extraPathTicks)
IL_039A: call static Verse.NamedArgument
Verse.NamedArgument::op_Implicit(System.String value)
IL_039F: call static Verse.TaggedString
Verse.TranslatorFormattedStringExtensions::Translate(System.String key,
Verse.NamedArgument arg1)
IL_03A4: call static Verse.TaggedString
Verse.TaggedString::op_Addition(Verse.TaggedString t1, Verse.TaggedString t2)
IL_03A9: ldstr ")"
IL_03AE: call static Verse.TaggedString
Verse.TaggedString::op_Addition(Verse.TaggedString t1, System.String t2)
IL_03B3: call static System.String
Verse.TaggedString::op_Implicit(Verse.TaggedString taggedString)
IL_03B8: stloc.s 14 (System.String)
IL_03BA: ldloc.s 14 (System.String)
IL_03BC: call static System.Void
TD_Enhancement_Pack.MouseoverOnTopRight::LabelTransform(UnityEngine.Rect rect,
System.String label)
IL_03C1: ldloc.1
IL_03C2: ldc.r4 19
IL_03C7: add
IL_03C8: stloc.1
IL_03C9: Label13
IL_03C9: ldloc.0
IL_03CA: call static Verse.Map Verse.Find::get_CurrentMap()
IL_03CF: call static System.Collections.Generic.List`1<Verse.Thing>
Verse.GridsUtility::GetThingList(Verse.IntVec3 c, Verse.Map map)
IL_03D4: stloc.s 4 (System.Collections.Generic.List`1[Verse.Thing])
IL_03D6: ldc.i4.0
IL_03D7: stloc.s 15 (System.Int32)
IL_03D9: br => Label14
IL_03DE: Label16
IL_03DE: ldloc.s 4 (System.Collections.Generic.List`1[Verse.Thing])
IL_03E0: ldloc.s 15 (System.Int32)
IL_03E2: callvirt virtual Verse.Thing
System.Collections.Generic.List`1<Verse.Thing>::get_Item(System.Int32 index)
IL_03E7: stloc.s 16 (Verse.Thing)
IL_03E9: ldloc.s 16 (Verse.Thing)
IL_03EB: ldfld Verse.ThingDef Verse.Thing::def
IL_03F0: ldfld Verse.ThingCategory Verse.ThingDef::category
IL_03F5: ldc.i4.s 9
IL_03F7: beq => Label15
IL_03FC: ldloc 16 (Verse.Thing)
IL_0400: callvirt virtual System.String Verse.Entity::get_LabelMouseover()
IL_0405: call static System.Boolean
System.String::IsNullOrEmpty(System.String value)
IL_040A: brtrue => Label15
IL_040F: ldsflda UnityEngine.Vector2 Verse.MouseoverReadout::BotLeft
IL_0414: ldfld System.Single UnityEngine.Vector2::x
IL_0419: ldsfld System.Int32 Verse.UI::screenHeight
IL_041E: conv.r4
IL_041F: ldsflda UnityEngine.Vector2 Verse.MouseoverReadout::BotLeft
IL_0424: ldfld System.Single UnityEngine.Vector2::y
IL_0429: sub
IL_042A: ldloc.1
IL_042B: sub
IL_042C: ldc.r4 999
IL_0431: ldc.r4 999
IL_0436: newobj System.Void UnityEngine.Rect::.ctor(System.Single x,
System.Single y, System.Single width, System.Single height)
IL_043B: ldloc.s 16 (Verse.Thing)
IL_043D: callvirt virtual System.String Verse.Entity::get_LabelMouseover()
IL_0442: stloc.s 17 (System.String)
IL_0444: ldloc.s 17 (System.String)
IL_0446: call static System.Void
TD_Enhancement_Pack.MouseoverOnTopRight::LabelTransform(UnityEngine.Rect rect,
System.String label)
IL_044B: ldloc.1
IL_044C: ldc.r4 19
IL_0451: add
IL_0452: stloc.1
IL_0453: Label15
IL_0453: ldloc.s 15 (System.Int32)
IL_0455: ldc.i4.1
IL_0456: add
IL_0457: stloc.s 15 (System.Int32)
IL_0459: Label14
IL_0459: ldloc.s 15 (System.Int32)
IL_045B: ldloc.s 4 (System.Collections.Generic.List`1[Verse.Thing])
IL_045D: callvirt virtual System.Int32
System.Collections.Generic.List`1<Verse.Thing>::get_Count()
IL_0462: blt => Label16
IL_0467: ldloc.0
IL_0468: call static Verse.Map Verse.Find::get_CurrentMap()
IL_046D: call static Verse.RoofDef Verse.GridsUtility::GetRoof(Verse.IntVec3
c, Verse.Map map)
IL_0472: stloc.s 5 (Verse.RoofDef)
IL_0474: ldloc.s 5 (Verse.RoofDef)
IL_0476: brfalse => Label17
IL_047B: ldsflda UnityEngine.Vector2 Verse.MouseoverReadout::BotLeft
IL_0480: ldfld System.Single UnityEngine.Vector2::x
IL_0485: ldsfld System.Int32 Verse.UI::screenHeight
IL_048A: conv.r4
IL_048B: ldsflda UnityEngine.Vector2 Verse.MouseoverReadout::BotLeft
IL_0490: ldfld System.Single UnityEngine.Vector2::y
IL_0495: sub
IL_0496: ldloc.1
IL_0497: sub
IL_0498: ldc.r4 999
IL_049D: ldc.r4 999
IL_04A2: newobj System.Void UnityEngine.Rect::.ctor(System.Single x,
System.Single y, System.Single width, System.Single height)
IL_04A7: ldloc.s 5 (Verse.RoofDef)
IL_04A9: callvirt virtual Verse.TaggedString Verse.Def::get_LabelCap()
IL_04AE: call static System.Void
TD_Enhancement_Pack.MouseoverOnTopRight::LabelTaggedTransform(UnityEngine.Rect
rect, Verse.TaggedString label)
IL_04B3: ldloc.1
IL_04B4: ldc.r4 19
IL_04B9: add
IL_04BA: stloc.1
IL_04BB: Label17
IL_04BB: call static Verse.Map Verse.Find::get_CurrentMap()
IL_04C0: ldfld Verse.GasGrid Verse.Map::gasGrid
IL_04C5: ldloc.0
IL_04C6: callvirt System.Boolean Verse.GasGrid::AnyGasAt(Verse.IntVec3 cell)
IL_04CB: brfalse => Label18
IL_04D0: ldarg.0
IL_04D1: ldc.i4.0
IL_04D2: call static Verse.Map Verse.Find::get_CurrentMap()
IL_04D7: ldfld Verse.GasGrid Verse.Map::gasGrid
IL_04DC: ldloc.0
IL_04DD: ldc.i4.0
IL_04DE: callvirt System.Byte Verse.GasGrid::DensityAt(Verse.IntVec3 cell,
Verse.GasType gasType)
IL_04E3: ldloca.s 1 (System.Single)
IL_04E5: call System.Void Verse.MouseoverReadout::DrawGas(Verse.GasType
gasType, System.Byte density, System.Single& curYOffset)
IL_04EA: ldarg.0
IL_04EB: ldc.i4.8
IL_04EC: call static Verse.Map Verse.Find::get_CurrentMap()
IL_04F1: ldfld Verse.GasGrid Verse.Map::gasGrid
IL_04F6: ldloc.0
IL_04F7: ldc.i4.8
IL_04F8: callvirt System.Byte Verse.GasGrid::DensityAt(Verse.IntVec3 cell,
Verse.GasType gasType)
IL_04FD: ldloca.s 1 (System.Single)
IL_04FF: call System.Void Verse.MouseoverReadout::DrawGas(Verse.GasType
gasType, System.Byte density, System.Single& curYOffset)
IL_0504: ldarg.0
IL_0505: ldc.i4.s 16
IL_0507: call static Verse.Map Verse.Find::get_CurrentMap()
IL_050C: ldfld Verse.GasGrid Verse.Map::gasGrid
IL_0511: ldloc.0
IL_0512: ldc.i4.s 16
IL_0514: callvirt System.Byte Verse.GasGrid::DensityAt(Verse.IntVec3 cell,
Verse.GasType gasType)
IL_0519: ldloca.s 1 (System.Single)
IL_051B: call System.Void Verse.MouseoverReadout::DrawGas(Verse.GasType
gasType, System.Byte density, System.Single& curYOffset)
IL_0520: Label18
IL_0520: call static UnityEngine.Color UnityEngine.Color::get_white()
IL_0525: call static System.Void UnityEngine.GUI::set_color(UnityEngine.Color
value)
IL_052A: ldloc.0
IL_052B: ldloc.1
IL_052C: call static System.Single
DubsBadHygiene.Patches.H_MouseoverReadoutOnGUI::AddSewageLine(Verse.IntVec3 cell,
System.Single num)
IL_0531: stloc.1
IL_0532: ldloc.0
IL_0533: ldloc.1
IL_0534: call static System.Single
VEE.HarmonyInit::AddDroughtLine(Verse.IntVec3 cell, System.Single num)
IL_0539: stloc.1
IL_053A: // end original
IL_053A: Label19
IL_053A: Label20
IL_053A: Label21
IL_053A: Label22
IL_053A: ldarga 0
IL_053E: call static System.Void
DubsBadHygiene.Patches.H_MouseoverReadoutOnGUI::Postfix(Verse.MouseoverReadout&
__instance)
IL_0543: ret
DONE

### Patch: System.Void RimWorld.Faction::Notify_MemberDied(Verse.Pawn member,


System.Nullable`1<Verse.DamageInfo> dinfo, System.Boolean wasWorldPawn,
System.Boolean wasGuilty, Verse.Map map)
### Replacement: static System.Void
RimWorld.Faction::RimWorld.Faction.Notify_MemberDied_Patch1(RimWorld.Faction this,
Verse.Pawn member, System.Nullable`1<Verse.DamageInfo> dinfo, System.Boolean
wasWorldPawn, System.Boolean wasGuilty, Verse.Map map)
IL_0000: Local var 0: Verse.DamageInfo
IL_0000: Local var 1: System.Boolean
IL_0000: Local var 2: System.Int32
IL_0000: Local var 3: Verse.Pawn
IL_0000: Local var 4: System.Int32
IL_0000: Local var 5: System.Nullable`1<RimWorld.Planet.GlobalTargetInfo>
IL_0000: Local var 6: System.Boolean
IL_0000: ldc.i4 0
IL_0005: stloc 6 (System.Boolean)
IL_0009: ldc.i4.1
IL_000A: stloc 6 (System.Boolean)
IL_000E: ldloc 6 (System.Boolean)
IL_0012: brfalse => Label1
IL_0017: ldarg 1
IL_001B: call static System.Boolean
VEE.Faction_Notify_MemberDied::Prefix(Verse.Pawn member)
IL_0020: stloc 6 (System.Boolean)
IL_0024: Label1
IL_0024: nop
IL_0025: ldloc 6 (System.Boolean)
IL_0029: brfalse => Label0
IL_002E: // start original
IL_002E: ldarg.0
IL_002F: ldfld RimWorld.FactionIdeosTracker RimWorld.Faction::ideos
IL_0034: brfalse => Label2
IL_0039: ldarg.0
IL_003A: ldfld RimWorld.FactionIdeosTracker RimWorld.Faction::ideos
IL_003F: callvirt System.Void
RimWorld.FactionIdeosTracker::Notify_MemberGainedOrLost()
IL_0044: Label2
IL_0044: ldarg.0
IL_0045: call System.Boolean RimWorld.Faction::get_IsPlayer()
IL_004A: brfalse => Label3
IL_004F: call static System.Boolean Verse.ModsConfig::get_BiotechActive()
IL_0054: brfalse => Label4
IL_0059: ldarg.s 5
IL_005B: brfalse => Label5
IL_0060: ldarg.1
IL_0061: call static System.Boolean
RimWorld.GeneUtility::IsBloodfeeder(Verse.Pawn pawn)
IL_0066: brfalse => Label6
IL_006B: ldarg.0
IL_006C: ldarg.s 5
IL_006E: ldarg.1
IL_006F: call System.Void
RimWorld.Faction::CheckForPrisonersAssignedToBloodfeederInteractionMode(Verse.Map
map, Verse.Pawn member)
IL_0074: Label4
IL_0074: Label5
IL_0074: Label6
IL_0074: br => Label35
IL_0079: Label3
IL_0079: ldarg.3
IL_007A: brtrue => Label7
IL_007F: ldarg.1
IL_0080: call static System.Boolean
Verse.PawnGenerator::IsBeingGenerated(Verse.Pawn pawn)
IL_0085: brtrue => Label8
IL_008A: call static Verse.ProgramState Verse.Current::get_ProgramState()
IL_008F: ldc.i4.2
IL_0090: bne.un => Label9
IL_0095: ldarg.s 5
IL_0097: brfalse => Label10
IL_009C: ldarg.1
IL_009D: callvirt System.Boolean Verse.Pawn::get_IsSlaveOfColony()
IL_00A2: brtrue => Label11
IL_00A7: ldarg.s 5
IL_00A9: callvirt System.Boolean Verse.Map::get_IsPlayerHome()
IL_00AE: brfalse => Label12
IL_00B3: ldarg.0
IL_00B4: call static RimWorld.Faction RimWorld.Faction::get_OfPlayer()
IL_00B9: call static System.Boolean
RimWorld.FactionUtility::HostileTo(RimWorld.Faction fac, RimWorld.Faction other)
IL_00BE: brtrue => Label13
IL_00C3: ldarga.s 2
IL_00C5: call System.Boolean
System.Nullable`1<Verse.DamageInfo>::get_HasValue()
IL_00CA: brfalse => Label14
IL_00CF: ldarga.s 2
IL_00D1: call Verse.DamageInfo
System.Nullable`1<Verse.DamageInfo>::get_Value()
IL_00D6: stloc.0
IL_00D7: ldloca.s 0 (Verse.DamageInfo)
IL_00D9: call Verse.SourceCategory Verse.DamageInfo::get_Category()
IL_00DE: ldc.i4.1
IL_00DF: bne.un => Label15
IL_00E4: ldstr "FactionRelationAdjustmentCrushed-"
IL_00E9: ldarg.0
IL_00EA: call System.String RimWorld.Faction::get_Name()
IL_00EF: call static System.String System.String::Concat(System.String str0,
System.String str1)
IL_00F4: ldc.r4 5
IL_00F9: call static System.Boolean
Verse.MessagesRepeatAvoider::MessageShowAllowed(System.String tag, System.Single
minSecondsSinceLastShow)
IL_00FE: stloc.1
IL_00FF: ldarg.1
IL_0100: callvirt Verse.RaceProperties Verse.Pawn::get_RaceProps()
IL_0105: callvirt System.Boolean Verse.RaceProperties::get_Humanlike()
IL_010A: brtrue => Label16
IL_010F: ldc.i4.s -15
IL_0111: br => Label17
IL_0116: Label16
IL_0116: ldc.i4.s -25
IL_0118: Label17
IL_0118: stloc.2
IL_0119: call static RimWorld.Faction RimWorld.Faction::get_OfPlayer()
IL_011E: ldarg.0
IL_011F: ldloc.2
IL_0120: ldloc.1
IL_0121: ldarg.0
IL_0122: ldfld System.Boolean RimWorld.Faction::temporary
IL_0127: ldc.i4.0
IL_0128: ceq
IL_012A: ldsfld RimWorld.HistoryEventDef
RimWorld.HistoryEventDefOf::MemberCrushed
IL_012F: ldarg.1
IL_0130: callvirt virtual Verse.IntVec3 Verse.Thing::get_Position()
IL_0135: ldarg.s 5
IL_0137: ldc.i4.0
IL_0138: newobj System.Void Verse.TargetInfo::.ctor(Verse.IntVec3 cell,
Verse.Map map, System.Boolean allowNullMap)
IL_013D: call static RimWorld.Planet.GlobalTargetInfo
RimWorld.Planet.GlobalTargetInfo::op_Implicit(Verse.TargetInfo target)
IL_0142: newobj System.Void
System.Nullable`1<RimWorld.Planet.GlobalTargetInfo>::.ctor(RimWorld.Planet.GlobalTa
rgetInfo value)
IL_0147: callvirt System.Boolean
RimWorld.Faction::TryAffectGoodwillWith(RimWorld.Faction other, System.Int32
goodwillChange, System.Boolean canSendMessage, System.Boolean
canSendHostilityLetter, RimWorld.HistoryEventDef reason,
System.Nullable`1<RimWorld.Planet.GlobalTargetInfo> lookTarget)
IL_014C: pop
IL_014D: br => Label18
IL_0152: Label14
IL_0152: Label15
IL_0152: ldarga.s 2
IL_0154: call System.Boolean
System.Nullable`1<Verse.DamageInfo>::get_HasValue()
IL_0159: brfalse => Label19
IL_015E: ldarga.s 2
IL_0160: call Verse.DamageInfo
System.Nullable`1<Verse.DamageInfo>::get_Value()
IL_0165: stloc.0
IL_0166: ldloca.s 0 (Verse.DamageInfo)
IL_0168: call Verse.Thing Verse.DamageInfo::get_Instigator()
IL_016D: brfalse => Label20
IL_0172: ldarga.s 2
IL_0174: call Verse.DamageInfo
System.Nullable`1<Verse.DamageInfo>::get_Value()
IL_0179: stloc.0
IL_017A: ldloca.s 0 (Verse.DamageInfo)
IL_017C: call Verse.Thing Verse.DamageInfo::get_Instigator()
IL_0181: callvirt virtual RimWorld.Faction Verse.Thing::get_Faction()
IL_0186: brtrue => Label21
IL_018B: Label20
IL_018B: ldarga.s 2
IL_018D: call Verse.DamageInfo
System.Nullable`1<Verse.DamageInfo>::get_Value()
IL_0192: stloc.0
IL_0193: ldloca.s 0 (Verse.DamageInfo)
IL_0195: call Verse.Thing Verse.DamageInfo::get_Instigator()
IL_019A: isinst Verse.Pawn
IL_019F: stloc.3
IL_01A0: ldloc.3
IL_01A1: brfalse => Label22
IL_01A6: ldloc.3
IL_01A7: callvirt Verse.RaceProperties Verse.Pawn::get_RaceProps()
IL_01AC: callvirt System.Boolean Verse.RaceProperties::get_Animal()
IL_01B1: brfalse => Label23
IL_01B6: ldloc.3
IL_01B7: ldfld Verse.AI.Pawn_MindState Verse.Pawn::mindState
IL_01BC: ldfld Verse.AI.MentalStateHandler
Verse.AI.Pawn_MindState::mentalStateHandler
IL_01C1: callvirt Verse.MentalStateDef
Verse.AI.MentalStateHandler::get_CurStateDef()
IL_01C6: ldsfld Verse.MentalStateDef
RimWorld.MentalStateDefOf::ManhunterPermanent
IL_01CB: beq => Label24
IL_01D0: Label22
IL_01D0: Label23
IL_01D0: ldarg.1
IL_01D1: callvirt Verse.RaceProperties Verse.Pawn::get_RaceProps()
IL_01D6: callvirt System.Boolean Verse.RaceProperties::get_Humanlike()
IL_01DB: brtrue => Label25
IL_01E0: ldc.i4.s -3
IL_01E2: br => Label26
IL_01E7: Label25
IL_01E7: ldc.i4.s -5
IL_01E9: Label26
IL_01E9: stloc.s 4 (System.Int32)
IL_01EB: call static RimWorld.Faction RimWorld.Faction::get_OfPlayer()
IL_01F0: ldarg.0
IL_01F1: ldloc.s 4 (System.Int32)
IL_01F3: ldc.i4.1
IL_01F4: ldarg.0
IL_01F5: ldfld System.Boolean RimWorld.Faction::temporary
IL_01FA: ldc.i4.0
IL_01FB: ceq
IL_01FD: ldsfld RimWorld.HistoryEventDef
RimWorld.HistoryEventDefOf::MemberNeutrallyDied
IL_0202: ldarg.1
IL_0203: call static RimWorld.Planet.GlobalTargetInfo
RimWorld.Planet.GlobalTargetInfo::op_Implicit(Verse.Thing t)
IL_0208: newobj System.Void
System.Nullable`1<RimWorld.Planet.GlobalTargetInfo>::.ctor(RimWorld.Planet.GlobalTa
rgetInfo value)
IL_020D: callvirt System.Boolean
RimWorld.Faction::TryAffectGoodwillWith(RimWorld.Faction other, System.Int32
goodwillChange, System.Boolean canSendMessage, System.Boolean
canSendHostilityLetter, RimWorld.HistoryEventDef reason,
System.Nullable`1<RimWorld.Planet.GlobalTargetInfo> lookTarget)
IL_0212: pop
IL_0213: br => Label27
IL_0218: Label19
IL_0218: Label21
IL_0218: ldarg.1
IL_0219: ldfld Verse.PawnKindDef Verse.Pawn::kindDef
IL_021E: ldfld System.Boolean Verse.PawnKindDef::factionHostileOnDeath
IL_0223: brtrue => Label28
IL_0228: ldarg.1
IL_0229: ldfld Verse.PawnKindDef Verse.Pawn::kindDef
IL_022E: ldfld System.Boolean Verse.PawnKindDef::factionHostileOnKill
IL_0233: brfalse => Label29
IL_0238: ldarga.s 2
IL_023A: call System.Boolean
System.Nullable`1<Verse.DamageInfo>::get_HasValue()
IL_023F: brfalse => Label30
IL_0244: ldarga.s 2
IL_0246: call Verse.DamageInfo
System.Nullable`1<Verse.DamageInfo>::get_Value()
IL_024B: stloc.0
IL_024C: ldloca.s 0 (Verse.DamageInfo)
IL_024E: call Verse.Thing Verse.DamageInfo::get_Instigator()
IL_0253: brfalse => Label31
IL_0258: ldarga.s 2
IL_025A: call Verse.DamageInfo
System.Nullable`1<Verse.DamageInfo>::get_Value()
IL_025F: stloc.0
IL_0260: ldloca.s 0 (Verse.DamageInfo)
IL_0262: call Verse.Thing Verse.DamageInfo::get_Instigator()
IL_0267: callvirt virtual RimWorld.Faction Verse.Thing::get_Faction()
IL_026C: call static RimWorld.Faction RimWorld.Faction::get_OfPlayer()
IL_0271: bne.un => Label32
IL_0276: Label28
IL_0276: ldarg.s 4
IL_0278: brtrue => Label33
IL_027D: call static RimWorld.Faction RimWorld.Faction::get_OfPlayer()
IL_0282: ldarg.0
IL_0283: call static RimWorld.Faction RimWorld.Faction::get_OfPlayer()
IL_0288: ldarg.0
IL_0289: callvirt System.Int32
RimWorld.Faction::GoodwillToMakeHostile(RimWorld.Faction other)
IL_028E: ldc.i4.1
IL_028F: ldarg.0
IL_0290: ldfld System.Boolean RimWorld.Faction::temporary
IL_0295: ldc.i4.0
IL_0296: ceq
IL_0298: ldsfld RimWorld.HistoryEventDef
RimWorld.HistoryEventDefOf::MemberKilled
IL_029D: ldloca.s 5 (System.Nullable`1[RimWorld.Planet.GlobalTargetInfo])
IL_029F: initobj System.Nullable`1[RimWorld.Planet.GlobalTargetInfo]
IL_02A5: ldloc.s 5 (System.Nullable`1[RimWorld.Planet.GlobalTargetInfo])
IL_02A7: callvirt System.Boolean
RimWorld.Faction::TryAffectGoodwillWith(RimWorld.Faction other, System.Int32
goodwillChange, System.Boolean canSendMessage, System.Boolean
canSendHostilityLetter, RimWorld.HistoryEventDef reason,
System.Nullable`1<RimWorld.Planet.GlobalTargetInfo> lookTarget)
IL_02AC: pop
IL_02AD: Label7
IL_02AD: Label8
IL_02AD: Label9
IL_02AD: Label10
IL_02AD: Label11
IL_02AD: Label12
IL_02AD: Label13
IL_02AD: Label18
IL_02AD: Label24
IL_02AD: Label27
IL_02AD: Label29
IL_02AD: Label30
IL_02AD: Label31
IL_02AD: Label32
IL_02AD: Label33
IL_02AD: ldarg.1
IL_02AE: ldarg.0
IL_02AF: ldfld Verse.Pawn RimWorld.Faction::leader
IL_02B4: bne.un => Label34
IL_02B9: ldarg.0
IL_02BA: call System.Void RimWorld.Faction::Notify_LeaderDied()
IL_02BF: // end original
IL_02BF: Label34
IL_02BF: Label35
IL_02BF: Label0
IL_02BF: ret
DONE

### Harmony id=vanillafactionsexpanded.settlers, version=2.2.2.0, location=C:\


Program Files (x86)\Steam\steamapps\common\data-000002130553D010,
env/clr=4.0.30319.42000, platform=Win32NT, ptrsize:runtime/env=8/Bits64, Windows
### Started from static System.Void VFE_Settlers.Utilities.Harmony::.cctor(),
location C:\Program Files (x86)\Steam\steamapps\common\data-0000021309BECD10
### At 2023-02-17 06.57.43
### Patch: virtual System.Void RimWorld.GenStep_Settlement::ScatterAt(Verse.IntVec3
c, Verse.Map map, Verse.GenStepParams parms, System.Int32 stackCount)
### Replacement: static System.Void
RimWorld.GenStep_Settlement::RimWorld.GenStep_Settlement.ScatterAt_Patch1(RimWorld.
GenStep_Settlement this, Verse.IntVec3 c, Verse.Map map, Verse.GenStepParams parms,
System.Int32 stackCount)
IL_0000: Local var 0: System.Int32
IL_0000: Local var 1: System.Int32
IL_0000: Local var 2: Verse.CellRect
IL_0000: Local var 3: RimWorld.Faction
IL_0000: Local var 4: RimWorld.BaseGen.ResolveParams
IL_0000: Local var 5: Verse.IntRange
IL_0000: Local var 6: Verse.CellRect
IL_0000: Local var 7: System.Boolean
IL_0000: ldc.i4 0
IL_0005: stloc 7 (System.Boolean)
IL_0009: ldc.i4.1
IL_000A: stloc 7 (System.Boolean)
IL_000E: ldloc 7 (System.Boolean)
IL_0012: brfalse => Label1
IL_0017: ldarg 1
IL_001B: ldarg 2
IL_001F: ldarg 4
IL_0023: call static System.Boolean
VFE_Settlers.Utilities.GenStep_SettlementScatterAt_Patch::PreFix(Verse.IntVec3 c,
Verse.Map map, System.Int32 stackCount)
IL_0028: stloc 7 (System.Boolean)
IL_002C: Label1
IL_002C: nop
IL_002D: ldloc 7 (System.Boolean)
IL_0031: brfalse => Label0
IL_0036: // start original
IL_0036: ldsfld Verse.IntRange RimWorld.GenStep_Settlement::SettlementSizeRange
IL_003B: stloc.s 5 (Verse.IntRange)
IL_003D: ldloca.s 5 (Verse.IntRange)
IL_003F: call System.Int32 Verse.IntRange::get_RandomInRange()
IL_0044: stloc.0
IL_0045: ldsfld Verse.IntRange RimWorld.GenStep_Settlement::SettlementSizeRange
IL_004A: stloc.s 5 (Verse.IntRange)
IL_004C: ldloca.s 5 (Verse.IntRange)
IL_004E: call System.Int32 Verse.IntRange::get_RandomInRange()
IL_0053: stloc.1
IL_0054: ldloca.s 2 (Verse.CellRect)
IL_0056: ldarg.1
IL_0057: ldfld System.Int32 Verse.IntVec3::x
IL_005C: ldloc.0
IL_005D: ldc.i4.2
IL_005E: div
IL_005F: sub
IL_0060: ldarg.1
IL_0061: ldfld System.Int32 Verse.IntVec3::z
IL_0066: ldloc.1
IL_0067: ldc.i4.2
IL_0068: div
IL_0069: sub
IL_006A: ldloc.0
IL_006B: ldloc.1
IL_006C: call System.Void Verse.CellRect::.ctor(System.Int32 minX,
System.Int32 minZ, System.Int32 width, System.Int32 height)
IL_0071: ldarg.2
IL_0072: callvirt RimWorld.Faction Verse.Map::get_ParentFaction()
IL_0077: brfalse => Label2
IL_007C: ldarg.2
IL_007D: callvirt RimWorld.Faction Verse.Map::get_ParentFaction()
IL_0082: call static RimWorld.Faction RimWorld.Faction::get_OfPlayer()
IL_0087: bne.un => Label3
IL_008C: Label2
IL_008C: call static RimWorld.FactionManager Verse.Find::get_FactionManager()
IL_0091: ldc.i4.0
IL_0092: ldc.i4.0
IL_0093: ldc.i4.1
IL_0094: ldc.i4.0
IL_0095: callvirt RimWorld.Faction
RimWorld.FactionManager::RandomEnemyFaction(System.Boolean allowHidden,
System.Boolean allowDefeated, System.Boolean allowNonHumanlike, RimWorld.TechLevel
minTechLevel)
IL_009A: stloc.3
IL_009B: br => Label4
IL_00A0: Label3
IL_00A0: ldarg.2
IL_00A1: callvirt RimWorld.Faction Verse.Map::get_ParentFaction()
IL_00A6: stloc.3
IL_00A7: Label4
IL_00A7: ldloca.s 2 (Verse.CellRect)
IL_00A9: ldarg.2
IL_00AA: call Verse.CellRect Verse.CellRect::ClipInsideMap(Verse.Map map)
IL_00AF: pop
IL_00B0: ldloca.s 4 (RimWorld.BaseGen.ResolveParams)
IL_00B2: initobj RimWorld.BaseGen.ResolveParams
IL_00B8: ldloca.s 4 (RimWorld.BaseGen.ResolveParams)
IL_00BA: ldloc.2
IL_00BB: stfld Verse.CellRect RimWorld.BaseGen.ResolveParams::rect
IL_00C0: ldloca.s 4 (RimWorld.BaseGen.ResolveParams)
IL_00C2: ldloc.3
IL_00C3: stfld RimWorld.Faction RimWorld.BaseGen.ResolveParams::faction
IL_00C8: ldsfld RimWorld.BaseGen.GlobalSettings
RimWorld.BaseGen.BaseGen::globalSettings
IL_00CD: ldarg.2
IL_00CE: stfld Verse.Map RimWorld.BaseGen.GlobalSettings::map
IL_00D3: ldsfld RimWorld.BaseGen.GlobalSettings
RimWorld.BaseGen.BaseGen::globalSettings
IL_00D8: ldc.i4.1
IL_00D9: stfld System.Int32 RimWorld.BaseGen.GlobalSettings::minBuildings
IL_00DE: ldsfld RimWorld.BaseGen.GlobalSettings
RimWorld.BaseGen.BaseGen::globalSettings
IL_00E3: ldc.i4.1
IL_00E4: stfld System.Int32 RimWorld.BaseGen.GlobalSettings::minBarracks
IL_00E9: ldsfld RimWorld.BaseGen.SymbolStack
RimWorld.BaseGen.BaseGen::symbolStack
IL_00EE: ldstr "settlement"
IL_00F3: ldloc.3
IL_00F4: call static System.String
VFECore.GenStep_Settlement_ScatterAt_Patch::SettlementGenerationSymbol(System.Strin
g original, RimWorld.Faction faction)
IL_00F9: ldloc.s 4 (RimWorld.BaseGen.ResolveParams)
IL_00FB: ldnull
IL_00FC: callvirt System.Void RimWorld.BaseGen.SymbolStack::Push(System.String
symbol, RimWorld.BaseGen.ResolveParams resolveParams, System.String
customNameForPath)
IL_0101: ldloc.3
IL_0102: brfalse => Label5
IL_0107: ldloc.3
IL_0108: call static RimWorld.Faction RimWorld.Faction::get_OfEmpire()
IL_010D: bne.un => Label6
IL_0112: ldsfld RimWorld.BaseGen.GlobalSettings
RimWorld.BaseGen.BaseGen::globalSettings
IL_0117: ldc.i4.1
IL_0118: stfld System.Int32 RimWorld.BaseGen.GlobalSettings::minThroneRooms
IL_011D: ldsfld RimWorld.BaseGen.GlobalSettings
RimWorld.BaseGen.BaseGen::globalSettings
IL_0122: ldc.i4.1
IL_0123: stfld System.Int32 RimWorld.BaseGen.GlobalSettings::minLandingPads
IL_0128: Label5
IL_0128: Label6
IL_0128: call static System.Void RimWorld.BaseGen.BaseGen::Generate()
IL_012D: ldloc.3
IL_012E: brfalse => Label7
IL_0133: ldloc.3
IL_0134: call static RimWorld.Faction RimWorld.Faction::get_OfEmpire()
IL_0139: bne.un => Label8
IL_013E: ldsfld RimWorld.BaseGen.GlobalSettings
RimWorld.BaseGen.BaseGen::globalSettings
IL_0143: ldfld System.Int32
RimWorld.BaseGen.GlobalSettings::landingPadsGenerated
IL_0148: brtrue => Label9
IL_014D: ldloc.s 4 (RimWorld.BaseGen.ResolveParams)
IL_014F: ldfld Verse.CellRect RimWorld.BaseGen.ResolveParams::rect
IL_0154: ldarg.2
IL_0155: ldloc.3
IL_0156: ldloca.s 6 (Verse.CellRect)
IL_0158: call static System.Void
RimWorld.GenStep_Settlement::GenerateLandingPadNearby(Verse.CellRect rect,
Verse.Map map, RimWorld.Faction faction, Verse.CellRect& usedRect)
IL_015D: // end original
IL_015D: Label7
IL_015D: Label8
IL_015D: Label9
IL_015D: Label0
IL_015D: ret
DONE

### Patch: virtual System.Void Verse.Pawn::Kill(System.Nullable`1<Verse.DamageInfo>


dinfo, Verse.Hediff exactCulprit)
### Replacement: static System.Void Verse.Pawn::Verse.Pawn.Kill_Patch10(Verse.Pawn
this, System.Nullable`1<Verse.DamageInfo> dinfo, Verse.Hediff exactCulprit)
IL_0000: Local var 0: System.Int32
IL_0000: Local var 1: Verse.IntVec3
IL_0000: Local var 2: Verse.Map
IL_0000: Local var 3: Verse.Map
IL_0000: Local var 4: System.Boolean
IL_0000: Local var 5: System.Boolean
IL_0000: Local var 6: System.Boolean
IL_0000: Local var 7: System.Nullable`1<System.Boolean>
IL_0000: Local var 8: RimWorld.Planet.Caravan
IL_0000: Local var 9: RimWorld.Building_Grave
IL_0000: Local var 10: RimWorld.Building_Bed
IL_0000: Local var 11: Verse.ThingOwner
IL_0000: Local var 12: System.Boolean
IL_0000: Local var 13: System.Boolean
IL_0000: Local var 14: System.Boolean
IL_0000: Local var 15: System.Boolean
IL_0000: Local var 16: System.Boolean
IL_0000: Local var 17: System.Single
IL_0000: Local var 18: Verse.Thing
IL_0000: Local var 19: Verse.AI.Group.Lord
IL_0000: Local var 20: Verse.Corpse
IL_0000: Local var 21: RimWorld.Faction
IL_0000: Local var 22: System.Nullable`1<System.Boolean>
IL_0000: Local var 23:
System.Collections.Generic.List`1/Enumerator<Verse.AI.Group.Lord>
IL_0000: Local var 24: RimWorld.LordJob_Ritual
IL_0000: Local var 25: Verse.DamageInfo
IL_0000: Local var 26: Verse.Rot4
IL_0000: Local var 27: Verse.Hediff
IL_0000: Local var 28: Verse.Hediff
IL_0000: Local var 29: RimWorld.CompRottable
IL_0000: Local var 30: System.Boolean
IL_0000: Local var 31: System.Exception
IL_0000: Local var 32: System.Exception
IL_0000: Local var 33: System.Boolean
IL_0000: ldc.i4 0
IL_0005: stloc 33 (System.Boolean)
IL_0009: ldc.i4.1
IL_000A: stloc 33 (System.Boolean)
IL_000E: ldloc 33 (System.Boolean)
IL_0012: brfalse => Label1
IL_0017: ldarg.0
IL_0018: call static System.Boolean VFECore.Patch_Kill::Prefix(Verse.Pawn
__instance)
IL_001D: stloc 33 (System.Boolean)
IL_0021: Label1
IL_0021: nop
IL_0022: ldloc 33 (System.Boolean)
IL_0026: brfalse => Label2
IL_002B: ldarga 0
IL_002F: ldarg 1
IL_0033: ldarg 2
IL_0037: call static System.Boolean
ATReforged.Kill_Patch::Listener(Verse.Pawn& __instance,
System.Nullable`1<Verse.DamageInfo> dinfo, Verse.Hediff exactCulprit)
IL_003C: stloc 33 (System.Boolean)
IL_0040: Label2
IL_0040: nop
IL_0041: ldloc 33 (System.Boolean)
IL_0045: brfalse => Label3
IL_004A: ldarg.0
IL_004B: ldarg 1
IL_004F: ldarg 2
IL_0053: call static System.Void
VanillaStorytellersExpanded.Patch_Kill::Prefix(Verse.Pawn __instance,
System.Nullable`1<Verse.DamageInfo> dinfo, Verse.Hediff exactCulprit)
IL_0058: Label3
IL_0058: nop
IL_0059: ldloc 33 (System.Boolean)
IL_005D: brfalse => Label4
IL_0062: ldarg 1
IL_0066: ldarg 2
IL_006A: ldarg.0
IL_006B: call static System.Boolean
VAE_Accessories.HarmonyPatches::BeltsOnDeath(System.Nullable`1<Verse.DamageInfo>
dinfo, Verse.Hediff exactCulprit, Verse.Pawn __instance)
IL_0070: stloc 33 (System.Boolean)
IL_0074: Label4
IL_0074: nop
IL_0075: ldarg.0
IL_0076: call static System.Void
VFE_Settlers.Utilities.PawnKill_Patch::PreFix(Verse.Pawn __instance)
IL_007B: ldloc 33 (System.Boolean)
IL_007F: brfalse => Label0
IL_0084: // start original
IL_0084: ldc.i4.0
IL_0085: stloc.0
.try
{
IL_0086: ldc.i4.1
IL_0087: stloc.0
IL_0088: ldarg.0
IL_0089: call Verse.IntVec3 Verse.Thing::get_PositionHeld()
IL_008E: stloc.1
IL_008F: ldarg.0
IL_0090: call virtual Verse.Map Verse.Thing::get_Map()
IL_0095: stloc.2
IL_0096: ldarg.0
IL_0097: call Verse.Map Verse.Thing::get_MapHeld()
IL_009C: stloc.3
IL_009D: ldarg.0
IL_009E: call System.Boolean Verse.Thing::get_Spawned()
IL_00A3: stloc.s 4 (System.Boolean)
IL_00A5: ldarg.0
IL_00A6: call System.Boolean
Verse.Thing::get_SpawnedOrAnyParentSpawned()
IL_00AB: stloc.s 5 (System.Boolean)
IL_00AD: ldarg.0
IL_00AE: call static System.Boolean
RimWorld.Planet.WorldPawnsUtility::IsWorldPawn(Verse.Pawn p)
IL_00B3: stloc.s 6 (System.Boolean)
IL_00B5: ldarg.0
IL_00B6: ldfld RimWorld.Pawn_GuiltTracker Verse.Pawn::guilt
IL_00BB: dup
IL_00BC: brtrue => Label5
IL_00C1: pop
IL_00C2: ldloca.s 22 (System.Nullable`1[System.Boolean])
IL_00C4: initobj System.Nullable`1[System.Boolean]
IL_00CA: ldloc.s 22 (System.Nullable`1[System.Boolean])
IL_00CC: br => Label6
IL_00D1: Label5
IL_00D1: call System.Boolean RimWorld.Pawn_GuiltTracker::get_IsGuilty()
IL_00D6: newobj System.Void
System.Nullable`1<System.Boolean>::.ctor(System.Boolean value)
IL_00DB: Label6
IL_00DB: stloc.s 7 (System.Nullable`1[System.Boolean])
IL_00DD: ldarg.0
IL_00DE: call static RimWorld.Planet.Caravan
RimWorld.Planet.CaravanUtility::GetCaravan(Verse.Pawn pawn)
IL_00E3: stloc.s 8 (RimWorld.Planet.Caravan)
IL_00E5: ldnull
IL_00E6: stloc.s 9 (RimWorld.Building_Grave)
IL_00E8: ldarg.0
IL_00E9: ldfld RimWorld.Pawn_Ownership Verse.Pawn::ownership
IL_00EE: brfalse => Label7
IL_00F3: ldarg.0
IL_00F4: ldfld RimWorld.Pawn_Ownership Verse.Pawn::ownership
IL_00F9: callvirt RimWorld.Building_Grave
RimWorld.Pawn_Ownership::get_AssignedGrave()
IL_00FE: stloc.s 9 (RimWorld.Building_Grave)
IL_0100: Label7
IL_0100: ldarg.0
IL_0101: call static RimWorld.Building_Bed
RimWorld.RestUtility::CurrentBed(Verse.Pawn p)
IL_0106: stloc.s 10 (RimWorld.Building_Bed)
IL_0108: ldnull
IL_0109: stloc.s 11 (Verse.ThingOwner)
IL_010B: ldarg.0
IL_010C: call System.Boolean Verse.Pawn::get_InContainerEnclosed()
IL_0111: stloc.s 12 (System.Boolean)
IL_0113: ldloc.s 12 (System.Boolean)
IL_0115: brfalse => Label8
IL_011A: ldarg.0
IL_011B: ldfld Verse.ThingOwner Verse.Thing::holdingOwner
IL_0120: stloc.s 11 (Verse.ThingOwner)
IL_0122: ldloc.s 11 (Verse.ThingOwner)
IL_0124: ldarg.0
IL_0125: callvirt abstract virtual System.Boolean
Verse.ThingOwner::Remove(Verse.Thing item)
IL_012A: pop
IL_012B: Label8
IL_012B: ldc.i4.0
IL_012C: stloc.s 13 (System.Boolean)
IL_012E: ldc.i4.0
IL_012F: stloc.s 14 (System.Boolean)
IL_0131: ldc.i4.0
IL_0132: stloc.s 15 (System.Boolean)
IL_0134: call static Verse.ProgramState
Verse.Current::get_ProgramState()
IL_0139: ldc.i4.2
IL_013A: bne.un => Label9
IL_013F: ldloc.2
IL_0140: brfalse => Label10
IL_0145: ldloc.2
IL_0146: ldfld Verse.DesignationManager Verse.Map::designationManager
IL_014B: ldarg.0
IL_014C: ldsfld Verse.DesignationDef RimWorld.DesignationDefOf::Hunt
IL_0151: callvirt Verse.Designation
Verse.DesignationManager::DesignationOn(Verse.Thing t, Verse.DesignationDef def)
IL_0156: ldnull
IL_0157: cgt.un
IL_0159: stloc.s 13 (System.Boolean)
IL_015B: ldarg.0
IL_015C: call static System.Boolean
RimWorld.PawnUtility::ShouldBeSlaughtered(Verse.Pawn pawn)
IL_0161: stloc.s 14 (System.Boolean)
IL_0163: ldloc.2
IL_0164: ldfld Verse.AI.Group.LordManager Verse.Map::lordManager
IL_0169: ldfld System.Collections.Generic.List`1<Verse.AI.Group.Lord>
Verse.AI.Group.LordManager::lords
IL_016E: callvirt
System.Collections.Generic.Enumerator<Verse.AI.Group.Lord>
System.Collections.Generic.List`1<Verse.AI.Group.Lord>::GetEnumerator()
IL_0173: stloc.s 23
(System.Collections.Generic.List`1+Enumerator[Verse.AI.Group.Lord])
.try
{
IL_0175: br => Label11
IL_017A: Label15
IL_017A: ldloca.s 23
(System.Collections.Generic.List`1+Enumerator[Verse.AI.Group.Lord])
IL_017C: call virtual Verse.AI.Group.Lord
System.Collections.Generic.Enumerator<Verse.AI.Group.Lord>::get_Current()
IL_0181: callvirt Verse.AI.Group.LordJob
Verse.AI.Group.Lord::get_LordJob()
IL_0186: isinst RimWorld.LordJob_Ritual
IL_018B: dup
IL_018C: stloc.s 24 (RimWorld.LordJob_Ritual)
IL_018E: brfalse => Label12
IL_0193: ldloc.s 24 (RimWorld.LordJob_Ritual)
IL_0195: ldfld System.Collections.Generic.List`1<Verse.Pawn>
RimWorld.LordJob_Ritual::pawnsDeathIgnored
IL_019A: ldarg.0
IL_019B: callvirt virtual System.Boolean
System.Collections.Generic.List`1<Verse.Pawn>::Contains(Verse.Pawn item)
IL_01A0: brfalse => Label13
IL_01A5: ldc.i4.1
IL_01A6: stloc.s 15 (System.Boolean)
IL_01A8: br => Label14
IL_01AD: Label11
IL_01AD: Label12
IL_01AD: Label13
IL_01AD: ldloca.s 23
(System.Collections.Generic.List`1+Enumerator[Verse.AI.Group.Lord])
IL_01AF: call virtual System.Boolean
System.Collections.Generic.Enumerator<Verse.AI.Group.Lord>::MoveNext()
IL_01B4: brtrue => Label15
IL_01B9: Label14
IL_01B9: leave => Label16
IL_01BE: leave => (autogenerated)
} // end try
.finally
{
IL_01C3: ldloca.s 23
(System.Collections.Generic.List`1+Enumerator[Verse.AI.Group.Lord])
IL_01C5: constrained.
System.Collections.Generic.List`1+Enumerator[Verse.AI.Group.Lord]
IL_01CB: callvirt abstract virtual System.Void
System.IDisposable::Dispose()
IL_01D0: endfinally
IL_01D1: leave => (autogenerated)
} // end handler
IL_01D2: Label9
IL_01D2: Label10
IL_01D2: Label16
IL_01D2: ldarg.0
IL_01D3: call static System.Boolean
RimWorld.PawnUtility::ShouldSendNotificationAbout(Verse.Pawn p)
IL_01D8: brfalse => Label17
IL_01DD: ldloc.s 14 (System.Boolean)
IL_01DF: ldloc.s 15 (System.Boolean)
IL_01E1: or
IL_01E2: brfalse => Label18
IL_01E7: ldarga.s 1
IL_01E9: call System.Boolean
System.Nullable`1<Verse.DamageInfo>::get_HasValue()
IL_01EE: brfalse => Label19
IL_01F3: ldarga.s 1
IL_01F5: call Verse.DamageInfo
System.Nullable`1<Verse.DamageInfo>::get_Value()
IL_01FA: stloc.s 25 (Verse.DamageInfo)
IL_01FC: ldloca.s 25 (Verse.DamageInfo)
IL_01FE: call Verse.DamageDef Verse.DamageInfo::get_Def()
IL_0203: ldsfld Verse.DamageDef RimWorld.DamageDefOf::ExecutionCut
IL_0208: beq => Label20
IL_020D: Label18
IL_020D: Label19
IL_020D: ldarg.0
IL_020E: call System.Boolean Verse.Pawn::get_ForceNoDeathNotification()
IL_0213: ldc.i4.0
IL_0214: ceq
IL_0216: br => Label21
IL_021B: Label17
IL_021B: Label20
IL_021B: ldc.i4.0
IL_021C: Label21
IL_021C: stloc.s 16 (System.Boolean)
IL_021E: ldc.r4 0
IL_0223: stloc.s 17 (System.Single)
IL_0225: ldarg.0
IL_0226: ldsfld Verse.ThingDef RimWorld.ThingDefOf::Fire
IL_022B: call static Verse.Thing
Verse.AttachmentUtility::GetAttachment(Verse.Thing t, Verse.ThingDef def)
IL_0230: stloc.s 18 (Verse.Thing)
IL_0232: ldloc.s 18 (Verse.Thing)
IL_0234: brfalse => Label22
IL_0239: ldloc.s 18 (Verse.Thing)
IL_023B: castclass RimWorld.Fire
IL_0240: callvirt virtual System.Single RimWorld.Fire::CurrentSize()
IL_0245: stloc.s 17 (System.Single)
IL_0247: Label22
IL_0247: ldc.i4.2
IL_0248: stloc.0
IL_0249: ldarg.0
IL_024A: ldarg.1
IL_024B: ldarg.2
IL_024C: ldloc.s 4 (System.Boolean)
IL_024E: call System.Void
Verse.Pawn::DoKillSideEffects(System.Nullable`1<Verse.DamageInfo> dinfo,
Verse.Hediff exactCulprit, System.Boolean spawned)
IL_0253: ldc.i4.3
IL_0254: stloc.0
IL_0255: ldarg.0
IL_0256: ldarg.1
IL_0257: ldloc.2
IL_0258: call System.Void
Verse.Pawn::PreDeathPawnModifications(System.Nullable`1<Verse.DamageInfo> dinfo,
Verse.Map map)
IL_025D: ldc.i4.4
IL_025E: stloc.0
IL_025F: ldarg.0
IL_0260: ldarg.1
IL_0261: ldloca.s 2 (Verse.Map)
IL_0263: ldloca.s 4 (System.Boolean)
IL_0265: call System.Void
Verse.Pawn::DropBeforeDying(System.Nullable`1<Verse.DamageInfo> dinfo, Verse.Map&
map, System.Boolean& spawned)
IL_026A: ldc.i4.5
IL_026B: stloc.0
IL_026C: ldarg.0
IL_026D: ldfld Verse.Pawn_HealthTracker Verse.Pawn::health
IL_0272: callvirt System.Void Verse.Pawn_HealthTracker::SetDead()
IL_0277: ldarg.0
IL_0278: ldfld Verse.Pawn_HealthTracker Verse.Pawn::health
IL_027D: ldfld Verse.Effecter
Verse.Pawn_HealthTracker::deflectionEffecter
IL_0282: brfalse => Label23
IL_0287: ldarg.0
IL_0288: ldfld Verse.Pawn_HealthTracker Verse.Pawn::health
IL_028D: ldfld Verse.Effecter
Verse.Pawn_HealthTracker::deflectionEffecter
IL_0292: callvirt System.Void Verse.Effecter::Cleanup()
IL_0297: ldarg.0
IL_0298: ldfld Verse.Pawn_HealthTracker Verse.Pawn::health
IL_029D: ldnull
IL_029E: stfld Verse.Effecter
Verse.Pawn_HealthTracker::deflectionEffecter
IL_02A3: Label23
IL_02A3: ldarg.0
IL_02A4: ldfld Verse.Pawn_HealthTracker Verse.Pawn::health
IL_02A9: ldfld Verse.Effecter Verse.Pawn_HealthTracker::woundedEffecter
IL_02AE: brfalse => Label24
IL_02B3: ldarg.0
IL_02B4: ldfld Verse.Pawn_HealthTracker Verse.Pawn::health
IL_02B9: ldfld Verse.Effecter Verse.Pawn_HealthTracker::woundedEffecter
IL_02BE: callvirt System.Void Verse.Effecter::Cleanup()
IL_02C3: ldarg.0
IL_02C4: ldfld Verse.Pawn_HealthTracker Verse.Pawn::health
IL_02C9: ldnull
IL_02CA: stfld Verse.Effecter Verse.Pawn_HealthTracker::woundedEffecter
IL_02CF: Label24
IL_02CF: ldloc.s 8 (RimWorld.Planet.Caravan)
IL_02D1: brfalse => Label25
IL_02D6: ldloc.s 8 (RimWorld.Planet.Caravan)
IL_02D8: ldarg.0
IL_02D9: callvirt virtual System.Void
RimWorld.Planet.Caravan::Notify_MemberDied(Verse.Pawn member)
IL_02DE: Label25
IL_02DE: ldarg.0
IL_02DF: call static Verse.AI.Group.Lord
Verse.AI.Group.LordUtility::GetLord(Verse.Pawn p)
IL_02E4: stloc.s 19 (Verse.AI.Group.Lord)
IL_02E6: ldloc.s 19 (Verse.AI.Group.Lord)
IL_02E8: brfalse => Label26
IL_02ED: ldloc.s 19 (Verse.AI.Group.Lord)
IL_02EF: ldarg.0
IL_02F0: ldc.i4.3
IL_02F1: ldarg.1
IL_02F2: callvirt System.Void
Verse.AI.Group.Lord::Notify_PawnLost(Verse.Pawn pawn,
Verse.AI.Group.PawnLostCondition cond, System.Nullable`1<Verse.DamageInfo> dinfo)
IL_02F7: Label26
IL_02F7: ldloc.s 4 (System.Boolean)
IL_02F9: brfalse => Label27
IL_02FE: ldarg.0
IL_02FF: ldc.i4.0
IL_0300: ldc.i4.0
IL_0301: call System.Void
Verse.Pawn::DropAndForbidEverything(System.Boolean
keepInventoryAndEquipmentIfInBed, System.Boolean rememberPrimary)
IL_0306: Label27
IL_0306: ldloc.s 4 (System.Boolean)
IL_0308: brfalse => Label28
IL_030D: ldarg.0
IL_030E: ldloc.2
IL_030F: ldc.i4.2
IL_0310: ldnull
IL_0311: call static System.Void
RimWorld.GenLeaving::DoLeavingsFor(Verse.Thing diedThing, Verse.Map map,
Verse.DestroyMode mode, System.Collections.Generic.List`1<Verse.Thing>
listOfLeavingsOut)
IL_0316: Label28
IL_0316: ldarg.0
IL_0317: ldc.i4.0
IL_0318: call System.Boolean
Verse.Thing::DeSpawnOrDeselect(Verse.DestroyMode mode)
IL_031D: ldarg.0
IL_031E: ldfld RimWorld.Pawn_RoyaltyTracker Verse.Pawn::royalty
IL_0323: brfalse => Label29
IL_0328: ldarg.0
IL_0329: ldfld RimWorld.Pawn_RoyaltyTracker Verse.Pawn::royalty
IL_032E: callvirt System.Void
RimWorld.Pawn_RoyaltyTracker::Notify_PawnKilled()
IL_0333: Label29
IL_0333: ldnull
IL_0334: stloc.s 20 (Verse.Corpse)
IL_0336: ldarg.0
IL_0337: call static System.Boolean
Verse.PawnGenerator::IsPawnBeingGeneratedAndNotAllowsDead(Verse.Pawn pawn)
IL_033C: brtrue => Label30
IL_0341: ldloc.s 12 (System.Boolean)
IL_0343: brfalse => Label31
IL_0348: ldarg.0
IL_0349: ldloc.s 9 (RimWorld.Building_Grave)
IL_034B: ldloc.s 10 (RimWorld.Building_Bed)
IL_034D: call Verse.Corpse
Verse.Pawn::MakeCorpse(RimWorld.Building_Grave assignedGrave, RimWorld.Building_Bed
currentBed)
IL_0352: stloc.s 20 (Verse.Corpse)
IL_0354: ldloc.s 11 (Verse.ThingOwner)
IL_0356: ldloc.s 20 (Verse.Corpse)
IL_0358: ldc.i4.1
IL_0359: callvirt abstract virtual System.Boolean
Verse.ThingOwner::TryAdd(Verse.Thing item, System.Boolean
canMergeWithExistingStacks)
IL_035E: brtrue => Label32
IL_0363: ldloc.s 20 (Verse.Corpse)
IL_0365: ldc.i4.0
IL_0366: callvirt virtual System.Void
Verse.Thing::Destroy(Verse.DestroyMode mode)
IL_036B: ldnull
IL_036C: stloc.s 20 (Verse.Corpse)
IL_036E: br => Label33
IL_0373: Label31
IL_0373: ldloc.s 5 (System.Boolean)
IL_0375: brfalse => Label34
IL_037A: ldarg.0
IL_037B: ldfld Verse.ThingOwner Verse.Thing::holdingOwner
IL_0380: brfalse => Label35
IL_0385: ldarg.0
IL_0386: ldfld Verse.ThingOwner Verse.Thing::holdingOwner
IL_038B: ldarg.0
IL_038C: callvirt abstract virtual System.Boolean
Verse.ThingOwner::Remove(Verse.Thing item)
IL_0391: pop
IL_0392: Label35
IL_0392: ldarg.0
IL_0393: ldloc.s 9 (RimWorld.Building_Grave)
IL_0395: ldloc.s 10 (RimWorld.Building_Bed)
IL_0397: call Verse.Corpse
Verse.Pawn::MakeCorpse(RimWorld.Building_Grave assignedGrave, RimWorld.Building_Bed
currentBed)
IL_039C: stloc.s 20 (Verse.Corpse)
IL_039E: ldloc.s 20 (Verse.Corpse)
IL_03A0: ldloc.1
IL_03A1: ldloc.3
IL_03A2: ldc.i4.0
IL_03A3: ldnull
IL_03A4: ldnull
IL_03A5: ldloca.s 26 (Verse.Rot4)
IL_03A7: initobj Verse.Rot4
IL_03AD: ldloc.s 26 (Verse.Rot4)
IL_03AF: call static System.Boolean
Verse.GenPlace::TryPlaceThing(Verse.Thing thing, Verse.IntVec3 center, Verse.Map
map, Verse.ThingPlaceMode mode, System.Action`2<Verse.Thing, System.Int32>
placedAction, System.Predicate`1<Verse.IntVec3> nearPlaceValidator, Verse.Rot4 rot)
IL_03B4: brfalse => Label36
IL_03B9: ldloc.s 20 (Verse.Corpse)
IL_03BB: ldarg.0
IL_03BC: call Verse.Rot4 Verse.Thing::get_Rotation()
IL_03C1: callvirt System.Void Verse.Thing::set_Rotation(Verse.Rot4 value)
IL_03C6: ldarg.0
IL_03C7: ldarg.1
IL_03C8: call static System.Boolean
RimWorld.HuntJobUtility::WasKilledByHunter(Verse.Pawn pawn,
System.Nullable`1<Verse.DamageInfo> dinfo)
IL_03CD: brfalse => Label37
IL_03D2: ldarga.s 1
IL_03D4: call Verse.DamageInfo
System.Nullable`1<Verse.DamageInfo>::get_Value()
IL_03D9: stloc.s 25 (Verse.DamageInfo)
IL_03DB: ldloca.s 25 (Verse.DamageInfo)
IL_03DD: call Verse.Thing Verse.DamageInfo::get_Instigator()
IL_03E2: castclass Verse.Pawn
IL_03E7: ldloc.s 20 (Verse.Corpse)
IL_03E9: call static Verse.LocalTargetInfo
Verse.LocalTargetInfo::op_Implicit(Verse.Thing t)
IL_03EE: ldarga.s 1
IL_03F0: call Verse.DamageInfo
System.Nullable`1<Verse.DamageInfo>::get_Value()
IL_03F5: stloc.s 25 (Verse.DamageInfo)
IL_03F7: ldloca.s 25 (Verse.DamageInfo)
IL_03F9: call Verse.Thing Verse.DamageInfo::get_Instigator()
IL_03FE: castclass Verse.Pawn
IL_0403: callvirt Verse.AI.Job Verse.Pawn::get_CurJob()
IL_0408: ldc.i4.1
IL_0409: ldc.i4.m1
IL_040A: ldnull
IL_040B: ldc.i4.1
IL_040C: call static System.Boolean
Verse.AI.ReservationUtility::Reserve(Verse.Pawn p, Verse.LocalTargetInfo target,
Verse.AI.Job job, System.Int32 maxPawns, System.Int32 stackCount,
Verse.ReservationLayerDef layer, System.Boolean errorOnFailed)
IL_0411: pop
IL_0412: br => Label38
IL_0417: Label37
IL_0417: ldloc.s 13 (System.Boolean)
IL_0419: brtrue => Label39
IL_041E: ldloc.s 14 (System.Boolean)
IL_0420: brtrue => Label40
IL_0425: ldloc.s 20 (Verse.Corpse)
IL_0427: call static System.Void
RimWorld.ForbidUtility::SetForbiddenIfOutsideHomeArea(Verse.Thing t)
IL_042C: Label38
IL_042C: Label39
IL_042C: Label40
IL_042C: ldloc.s 17 (System.Single)
IL_042E: ldc.r4 0
IL_0433: ble.un => Label41
IL_0438: ldloc.s 20 (Verse.Corpse)
IL_043A: callvirt virtual Verse.IntVec3 Verse.Thing::get_Position()
IL_043F: ldloc.s 20 (Verse.Corpse)
IL_0441: callvirt virtual Verse.Map Verse.Thing::get_Map()
IL_0446: ldloc.s 17 (System.Single)
IL_0448: call static System.Boolean
RimWorld.FireUtility::TryStartFireIn(Verse.IntVec3 c, Verse.Map map, System.Single
fireSize)
IL_044D: pop
IL_044E: br => Label42
IL_0453: Label36
IL_0453: ldloc.s 20 (Verse.Corpse)
IL_0455: ldc.i4.0
IL_0456: callvirt virtual System.Void
Verse.Thing::Destroy(Verse.DestroyMode mode)
IL_045B: ldnull
IL_045C: stloc.s 20 (Verse.Corpse)
IL_045E: br => Label43
IL_0463: Label34
IL_0463: ldloc.s 8 (RimWorld.Planet.Caravan)
IL_0465: brfalse => Label44
IL_046A: ldloc.s 8 (RimWorld.Planet.Caravan)
IL_046C: callvirt System.Boolean RimWorld.Planet.WorldObject::get_Spawned()
IL_0471: brfalse => Label45
IL_0476: ldarg.0
IL_0477: ldloc.s 9 (RimWorld.Building_Grave)
IL_0479: ldloc.s 10 (RimWorld.Building_Bed)
IL_047B: call Verse.Corpse
Verse.Pawn::MakeCorpse(RimWorld.Building_Grave assignedGrave, RimWorld.Building_Bed
currentBed)
IL_0480: stloc.s 20 (Verse.Corpse)
IL_0482: ldloc.s 8 (RimWorld.Planet.Caravan)
IL_0484: ldloc.s 20 (Verse.Corpse)
IL_0486: ldc.i4.1
IL_0487: callvirt System.Void
RimWorld.Planet.Caravan::AddPawnOrItem(Verse.Thing thing, System.Boolean
addCarriedPawnToWorldPawnsIfAny)
IL_048C: br => Label46
IL_0491: Label44
IL_0491: Label45
IL_0491: ldarg.0
IL_0492: ldfld Verse.ThingOwner Verse.Thing::holdingOwner
IL_0497: brtrue => Label47
IL_049C: ldarg.0
IL_049D: call static System.Boolean
RimWorld.Planet.WorldPawnsUtility::IsWorldPawn(Verse.Pawn p)
IL_04A2: brfalse => Label48
IL_04A7: Label47
IL_04A7: ldarg.0
IL_04A8: call static System.Void
Verse.Corpse::PostCorpseDestroy(Verse.Pawn pawn)
IL_04AD: br => Label49
IL_04B2: Label48
IL_04B2: ldarg.0
IL_04B3: ldloc.s 9 (RimWorld.Building_Grave)
IL_04B5: ldloc.s 10 (RimWorld.Building_Bed)
IL_04B7: call Verse.Corpse
Verse.Pawn::MakeCorpse(RimWorld.Building_Grave assignedGrave, RimWorld.Building_Bed
currentBed)
IL_04BC: stloc.s 20 (Verse.Corpse)
IL_04BE: Label30
IL_04BE: Label32
IL_04BE: Label33
IL_04BE: Label41
IL_04BE: Label42
IL_04BE: Label43
IL_04BE: Label46
IL_04BE: Label49
IL_04BE: ldloc.s 20 (Verse.Corpse)
IL_04C0: brfalse => Label50
IL_04C5: ldarg.0
IL_04C6: ldfld Verse.Pawn_HealthTracker Verse.Pawn::health
IL_04CB: ldfld Verse.HediffSet Verse.Pawn_HealthTracker::hediffSet
IL_04D0: ldsfld Verse.HediffDef RimWorld.HediffDefOf::ToxicBuildup
IL_04D5: ldc.i4.0
IL_04D6: callvirt Verse.Hediff
Verse.HediffSet::GetFirstHediffOfDef(Verse.HediffDef def, System.Boolean
mustBeVisible)
IL_04DB: stloc.s 27 (Verse.Hediff)
IL_04DD: ldarg.0
IL_04DE: ldfld Verse.Pawn_HealthTracker Verse.Pawn::health
IL_04E3: ldfld Verse.HediffSet Verse.Pawn_HealthTracker::hediffSet
IL_04E8: ldsfld Verse.HediffDef RimWorld.HediffDefOf::Scaria
IL_04ED: ldc.i4.0
IL_04EE: callvirt Verse.Hediff
Verse.HediffSet::GetFirstHediffOfDef(Verse.HediffDef def, System.Boolean
mustBeVisible)
IL_04F3: stloc.s 28 (Verse.Hediff)
IL_04F5: ldloc.s 20 (Verse.Corpse)
IL_04F7: callvirt RimWorld.CompRottable Verse.ThingWithComps::GetComp()
IL_04FC: dup
IL_04FD: stloc.s 29 (RimWorld.CompRottable)
IL_04FF: brfalse => Label51
IL_0504: ldloc.s 27 (Verse.Hediff)
IL_0506: brfalse => Label52
IL_050B: call static System.Single Verse.Rand::get_Value()
IL_0510: ldloc.s 27 (Verse.Hediff)
IL_0512: callvirt virtual System.Single Verse.Hediff::get_Severity()
IL_0517: blt => Label53
IL_051C: Label52
IL_051C: ldloc.s 28 (Verse.Hediff)
IL_051E: brfalse => Label54
IL_0523: call static RimWorld.Storyteller Verse.Find::get_Storyteller()
IL_0528: ldfld RimWorld.Difficulty RimWorld.Storyteller::difficulty
IL_052D: ldfld System.Single RimWorld.Difficulty::scariaRotChance
IL_0532: call static System.Boolean Verse.Rand::Chance(System.Single
chance)
IL_0537: brfalse => Label55
IL_053C: Label53
IL_053C: ldloc.s 29 (RimWorld.CompRottable)
IL_053E: callvirt System.Void RimWorld.CompRottable::RotImmediately()
IL_0543: Label50
IL_0543: Label51
IL_0543: Label54
IL_0543: Label55
IL_0543: ldarg.0
IL_0544: call System.Boolean Verse.Thing::get_Destroyed()
IL_0549: brtrue => Label56
IL_054E: ldarg.0
IL_054F: ldc.i4.2
IL_0550: callvirt virtual System.Void
Verse.Thing::Destroy(Verse.DestroyMode mode)
IL_0555: Label56
IL_0555: ldarg.0
IL_0556: call static System.Void
RimWorld.PawnComponentsUtility::RemoveComponentsOnKilled(Verse.Pawn pawn)
IL_055B: ldarg.0
IL_055C: ldfld Verse.Pawn_HealthTracker Verse.Pawn::health
IL_0561: ldfld Verse.HediffSet Verse.Pawn_HealthTracker::hediffSet
IL_0566: callvirt System.Void Verse.HediffSet::DirtyCache()
IL_056B: ldarg.0
IL_056C: call static System.Void
RimWorld.PortraitsCache::SetDirty(Verse.Pawn pawn)
IL_0571: ldarg.0
IL_0572: call static System.Boolean
Verse.GlobalTextureAtlasManager::TryMarkPawnFrameSetDirty(Verse.Pawn pawn)
IL_0577: pop
IL_0578: brfalse => Label57
IL_057D: ldloc.s 20 (Verse.Corpse)
IL_057F: brfalse => Label58
IL_0584: call static RimWorld.Selector Verse.Find::get_Selector()
IL_0589: ldloc.s 20 (Verse.Corpse)
IL_058B: ldc.i4.0
IL_058C: ldc.i4.0
IL_058D: callvirt System.Void RimWorld.Selector::Select(System.Object obj,
System.Boolean playSound, System.Boolean forceDesignatorDeselect)
IL_0592: Label57
IL_0592: Label58
IL_0592: ldc.i4.6
IL_0593: stloc.0
IL_0594: ldarg.0
IL_0595: ldfld Verse.Pawn_HealthTracker Verse.Pawn::health
IL_059A: ldfld Verse.HediffSet Verse.Pawn_HealthTracker::hediffSet
IL_059F: callvirt System.Void Verse.HediffSet::Notify_PawnDied()
IL_05A4: ldarg.0
IL_05A5: ldfld RimWorld.Pawn_GeneTracker Verse.Pawn::genes
IL_05AA: dup
IL_05AB: brtrue => Label59
IL_05B0: pop
IL_05B1: br => Label60
IL_05B6: Label59
IL_05B6: call System.Void RimWorld.Pawn_GeneTracker::Notify_PawnDied()
IL_05BB: Label60
IL_05BB: ldarg.0
IL_05BC: call RimWorld.Faction Verse.Pawn::get_HomeFaction()
IL_05C1: stloc.s 21 (RimWorld.Faction)
IL_05C3: ldloc.s 21 (RimWorld.Faction)
IL_05C5: brfalse => Label61
IL_05CA: ldloc.s 21 (RimWorld.Faction)
IL_05CC: ldarg.0
IL_05CD: ldarg.1
IL_05CE: ldloc.s 6 (System.Boolean)
IL_05D0: ldloc.s 7 (System.Nullable`1[System.Boolean])
IL_05D2: stloc.s 22 (System.Nullable`1[System.Boolean])
IL_05D4: ldc.i4.1
IL_05D5: stloc.s 30 (System.Boolean)
IL_05D7: ldloca.s 22 (System.Nullable`1[System.Boolean])
IL_05D9: call System.Boolean
System.Nullable`1<System.Boolean>::GetValueOrDefault()
IL_05DE: ldloc.s 30 (System.Boolean)
IL_05E0: ceq
IL_05E2: ldloca.s 22 (System.Nullable`1[System.Boolean])
IL_05E4: call System.Boolean
System.Nullable`1<System.Boolean>::get_HasValue()
IL_05E9: and
IL_05EA: ldloc.3
IL_05EB: callvirt System.Void
RimWorld.Faction::Notify_MemberDied(Verse.Pawn member,
System.Nullable`1<Verse.DamageInfo> dinfo, System.Boolean wasWorldPawn,
System.Boolean wasGuilty, Verse.Map map)
IL_05F0: Label61
IL_05F0: ldloc.s 20 (Verse.Corpse)
IL_05F2: brfalse => Label62
IL_05F7: ldarg.0
IL_05F8: call Verse.RaceProperties Verse.Pawn::get_RaceProps()
IL_05FD: callvirt Verse.DeathActionWorker
Verse.RaceProperties::get_DeathActionWorker()
IL_0602: ldnull
IL_0603: cgt.un
IL_0605: ldloc.s 4 (System.Boolean)
IL_0607: and
IL_0608: brfalse => Label63
IL_060D: ldarg.0
IL_060E: call Verse.RaceProperties Verse.Pawn::get_RaceProps()
IL_0613: callvirt Verse.DeathActionWorker
Verse.RaceProperties::get_DeathActionWorker()
IL_0618: ldloc.s 20 (Verse.Corpse)
IL_061A: callvirt abstract virtual System.Void
Verse.DeathActionWorker::PawnDied(Verse.Corpse corpse)
IL_061F: Label63
IL_061F: call static RimWorld.Scenario Verse.Find::get_Scenario()
IL_0624: brfalse => Label64
IL_0629: call static RimWorld.Scenario Verse.Find::get_Scenario()
IL_062E: ldloc.s 20 (Verse.Corpse)
IL_0630: callvirt System.Void
RimWorld.Scenario::Notify_PawnDied(Verse.Corpse corpse)
IL_0635: Label62
IL_0635: Label64
IL_0635: ldarg.0
IL_0636: call virtual RimWorld.Faction Verse.Thing::get_Faction()
IL_063B: brfalse => Label65
IL_0640: ldarg.0
IL_0641: call virtual RimWorld.Faction Verse.Thing::get_Faction()
IL_0646: callvirt System.Boolean RimWorld.Faction::get_IsPlayer()
IL_064B: brfalse => Label66
IL_0650: ldarg.0
IL_0651: call static System.Void
RimWorld.BillUtility::Notify_ColonistUnavailable(Verse.Pawn pawn)
IL_0656: Label65
IL_0656: Label66
IL_0656: ldloc.s 5 (System.Boolean)
IL_0658: brfalse => Label67
IL_065D: ldarg.0
IL_065E: ldloc.3
IL_065F: call static System.Void
RimWorld.GenHostility::Notify_PawnLostForTutor(Verse.Pawn pawn, Verse.Map map)
IL_0664: Label67
IL_0664: ldarg.0
IL_0665: call virtual RimWorld.Faction Verse.Thing::get_Faction()
IL_066A: brfalse => Label68
IL_066F: ldarg.0
IL_0670: call virtual RimWorld.Faction Verse.Thing::get_Faction()
IL_0675: callvirt System.Boolean RimWorld.Faction::get_IsPlayer()
IL_067A: brfalse => Label69
IL_067F: call static Verse.ProgramState
Verse.Current::get_ProgramState()
IL_0684: ldc.i4.2
IL_0685: bne.un => Label70
IL_068A: call static RimWorld.ColonistBar Verse.Find::get_ColonistBar()
IL_068F: callvirt System.Void RimWorld.ColonistBar::MarkColonistsDirty()
IL_0694: Label68
IL_0694: Label69
IL_0694: Label70
IL_0694: ldarg.0
IL_0695: ldfld RimWorld.Pawn_PsychicEntropyTracker
Verse.Pawn::psychicEntropy
IL_069A: dup
IL_069B: brtrue => Label71
IL_06A0: pop
IL_06A1: br => Label72
IL_06A6: Label71
IL_06A6: call System.Void
RimWorld.Pawn_PsychicEntropyTracker::Notify_PawnDied()
IL_06AB: Label72
IL_06AB: nop
.try
{
IL_06AC: ldarg.0
IL_06AD: call RimWorld.Ideo Verse.Pawn::get_Ideo()
IL_06B2: dup
IL_06B3: brtrue => Label73
IL_06B8: pop
IL_06B9: br => Label74
IL_06BE: Label73
IL_06BE: ldarg.0
IL_06BF: call System.Void
RimWorld.Ideo::Notify_MemberDied(Verse.Pawn member)
IL_06C4: Label74
IL_06C4: ldarg.0
IL_06C5: call RimWorld.Ideo Verse.Pawn::get_Ideo()
IL_06CA: dup
IL_06CB: brtrue => Label75
IL_06D0: pop
IL_06D1: br => Label76
IL_06D6: Label75
IL_06D6: ldarg.0
IL_06D7: ldloc.2
IL_06D8: call System.Void
RimWorld.Ideo::Notify_MemberLost(Verse.Pawn member, Verse.Map map)
IL_06DD: Label76
IL_06DD: leave => Label77
IL_06E2: leave => (autogenerated)
} // end try
.catch System.Exception
{
IL_06E7: stloc.s 31 (System.Exception)
IL_06E9: ldstr "Error while notifying ideo of pawn death: "
IL_06EE: ldloc.s 31 (System.Exception)
IL_06F0: call static System.String
System.String::Concat(System.Object arg0, System.Object arg1)
IL_06F5: call static System.Void Verse.Log::Error(System.String
text)
IL_06FA: leave => Label78
IL_06FF: leave => (autogenerated)
} // end handler
IL_0704: Label77
IL_0704: Label78
IL_0704: ldloc.s 16 (System.Boolean)
IL_0706: brfalse => Label79
IL_070B: ldarg.0
IL_070C: ldfld Verse.Pawn_HealthTracker Verse.Pawn::health
IL_0711: ldarg.1
IL_0712: ldarg.2
IL_0713: ldloc.s 8 (RimWorld.Planet.Caravan)
IL_0715: callvirt System.Void
Verse.Pawn_HealthTracker::NotifyPlayerOfKilled(System.Nullable`1<Verse.DamageInfo>
dinfo, Verse.Hediff hediff, RimWorld.Planet.Caravan caravan)
IL_071A: Label79
IL_071A: call static RimWorld.QuestManager
Verse.Find::get_QuestManager()
IL_071F: ldarg.0
IL_0720: ldarg.1
IL_0721: callvirt System.Void
RimWorld.QuestManager::Notify_PawnKilled(Verse.Pawn pawn,
System.Nullable`1<Verse.DamageInfo> dinfo)
IL_0726: call static RimWorld.FactionManager
Verse.Find::get_FactionManager()
IL_072B: ldarg.0
IL_072C: callvirt System.Void
RimWorld.FactionManager::Notify_PawnKilled(Verse.Pawn pawn)
IL_0731: call static RimWorld.IdeoManager Verse.Find::get_IdeoManager()
IL_0736: ldarg.0
IL_0737: callvirt System.Void
RimWorld.IdeoManager::Notify_PawnKilled(Verse.Pawn pawn)
IL_073C: call static System.Boolean
Verse.ModsConfig::get_BiotechActive()
IL_0741: brfalse => Label80
IL_0746: ldarg.0
IL_0747: call static System.Boolean
MechanitorUtility::IsMechanitor(Verse.Pawn pawn)
IL_074C: brfalse => Label81
IL_0751: call static RimWorld.History Verse.Find::get_History()
IL_0756: callvirt System.Void RimWorld.History::Notify_MechanitorDied()
IL_075B: Label80
IL_075B: Label81
IL_075B: call static RimWorld.GameComponent_Bossgroup
Verse.Find::get_BossgroupManager()
IL_0760: ldarg.0
IL_0761: callvirt virtual System.Void
RimWorld.GameComponent_Bossgroup::Notify_PawnKilled(Verse.Pawn pawn)
IL_0766: leave => Label82
IL_076B: leave => (autogenerated)
} // end try
.catch System.Exception
{
IL_0770: stloc.s 32 (System.Exception)
IL_0772: ldstr "Error while killing {0} during phase {1}: {2}"
IL_0777: ldarg.0
IL_0778: call static System.String Verse.Gen::ToStringSafe(Verse.Pawn
obj)
IL_077D: ldloc.0
IL_077E: box System.Int32
IL_0783: ldloc.s 32 (System.Exception)
IL_0785: call static System.String System.String::Format(System.String
format, System.Object arg0, System.Object arg1, System.Object arg2)
IL_078A: call static System.Void Verse.Log::Error(System.String text)
IL_078F: leave => Label83
IL_0794: leave => (autogenerated)
} // end handler
IL_0799: // end original
IL_0799: Label82
IL_0799: Label83
IL_0799: Label0
IL_0799: ldarg.0
IL_079A: call static System.Void
AnimalTab.Patch_Pawn_Kill::Postfix(Verse.Pawn __instance)
IL_079F: ldarg.0
IL_07A0: ldarg 1
IL_07A4: call static System.Void
AllowTool.Patches.Pawn_Kill_Patch::UnforbidDraftedHuntBody(Verse.Pawn __instance,
System.Nullable`1<Verse.DamageInfo> dinfo)
IL_07A9: ldarg.0
IL_07AA: call static System.Void
VFE.Mechanoids.HarmonyPatches.MachinesDie::Postfix(Verse.Pawn __instance)
IL_07AF: ldarg.0
IL_07B0: call static System.Void VFECore.Patch_Kill::Postfix(Verse.Pawn
__instance)
IL_07B5: ldarga 1
IL_07B9: call static System.Void
Rimatomics.Harmony_Pawn_Kill::Postfix(System.Nullable`1& dinfo)
IL_07BE: ret
DONE

### Patch: virtual System.Void Verse.Pawn::TickRare()


### Replacement: static System.Void
Verse.Pawn::Verse.Pawn.TickRare_Patch1(Verse.Pawn this)
IL_0000: // start original
IL_0000: ldarg.0
IL_0001: call virtual System.Void Verse.ThingWithComps::TickRare()
IL_0006: ldarg.0
IL_0007: callvirt virtual System.Boolean Verse.Thing::get_Suspended()
IL_000C: brtrue => Label0
IL_0011: ldarg.0
IL_0012: ldfld RimWorld.Pawn_ApparelTracker Verse.Pawn::apparel
IL_0017: brfalse => Label1
IL_001C: ldarg.0
IL_001D: ldfld RimWorld.Pawn_ApparelTracker Verse.Pawn::apparel
IL_0022: callvirt System.Void
RimWorld.Pawn_ApparelTracker::ApparelTrackerTickRare()
IL_0027: Label1
IL_0027: ldarg.0
IL_0028: ldfld Verse.Pawn_InventoryTracker Verse.Pawn::inventory
IL_002D: callvirt System.Void
Verse.Pawn_InventoryTracker::InventoryTrackerTickRare()
IL_0032: Label0
IL_0032: ldarg.0
IL_0033: ldfld RimWorld.Pawn_TrainingTracker Verse.Pawn::training
IL_0038: brfalse => Label2
IL_003D: ldarg.0
IL_003E: ldfld RimWorld.Pawn_TrainingTracker Verse.Pawn::training
IL_0043: callvirt System.Void
RimWorld.Pawn_TrainingTracker::TrainingTrackerTickRare()
IL_0048: Label2
IL_0048: ldarg.0
IL_0049: call System.Boolean Verse.Thing::get_Spawned()
IL_004E: brfalse => Label3
IL_0053: ldarg.0
IL_0054: call Verse.RaceProperties Verse.Pawn::get_RaceProps()
IL_0059: callvirt System.Boolean Verse.RaceProperties::get_IsFlesh()
IL_005E: brfalse => Label4
IL_0063: ldarg.0
IL_0064: ldc.r4 0.3
IL_0069: ldarg.0
IL_006A: call System.Single Verse.Pawn::get_BodySize()
IL_006F: mul
IL_0070: ldc.r4 4.166667
IL_0075: mul
IL_0076: ldarg.0
IL_0077: ldfld Verse.ThingDef Verse.Thing::def
IL_007C: ldfld Verse.RaceProperties Verse.ThingDef::race
IL_0081: callvirt System.Boolean Verse.RaceProperties::get_Humanlike()
IL_0086: brtrue => Label5
IL_008B: ldc.r4 0.6
IL_0090: br => Label6
IL_0095: Label5
IL_0095: ldc.r4 1
IL_009A: Label6
IL_009A: mul
IL_009B: call static System.Void Verse.GenTemperature::PushHeat(Verse.Thing
t, System.Single energy)
IL_00A0: // end original
IL_00A0: Label3
IL_00A0: Label4
IL_00A0: ldarg.0
IL_00A1: call static System.Void
VFE_Settlers.Utilities.PawnTickRare_Patch::PostFix(Verse.Pawn __instance)
IL_00A6: ret
DONE
### Patch: virtual System.Collections.Generic.IEnumerable`1<Verse.Gizmo>
RimWorld.Planet.Settlement::GetCaravanGizmos(RimWorld.Planet.Caravan caravan)
### Replacement: static System.Collections.Generic.IEnumerable`1<Verse.Gizmo>
RimWorld.Planet.Settlement::RimWorld.Planet.Settlement.GetCaravanGizmos_Patch1(RimW
orld.Planet.Settlement this, RimWorld.Planet.Caravan caravan)
IL_0000: Local var 0: System.Collections.Generic.IEnumerable`1<Verse.Gizmo>
IL_0000: ldnull
IL_0001: stloc 0 (System.Collections.Generic.IEnumerable`1[Verse.Gizmo])
IL_0005: // start original
IL_0005: ldc.i4.s -2
IL_0007: newobj System.Void
RimWorld.Planet.<GetCaravanGizmos>d__62::.ctor(System.Int32 <>1__state)
IL_000C: dup
IL_000D: ldarg.0
IL_000E: stfld RimWorld.Planet.Settlement
RimWorld.Planet.<GetCaravanGizmos>d__62::<>4__this
IL_0013: dup
IL_0014: ldarg.1
IL_0015: stfld RimWorld.Planet.Caravan
RimWorld.Planet.<GetCaravanGizmos>d__62::<>3__caravan
IL_001A: // end original
IL_001A: stloc 0 (System.Collections.Generic.IEnumerable`1[Verse.Gizmo])
IL_001E: ldarga 1
IL_0022: ldloca 0 (System.Collections.Generic.IEnumerable`1[Verse.Gizmo])
IL_0026: call static System.Void
VFE_Settlers.Utilities.SettlementGetCaravanGizmos_Patch::PostFix(RimWorld.Planet.Ca
ravan& caravan, System.Collections.Generic.IEnumerable`1& __result)
IL_002B: ldloc 0 (System.Collections.Generic.IEnumerable`1[Verse.Gizmo])
IL_002F: ret
DONE

### Harmony id=warmup, version=2.2.2.0, location=C:\Program Files (x86)\Steam\


steamapps\common\data-000002130553D010, env/clr=4.0.30319.42000, platform=Win32NT,
ptrsize:runtime/env=8/Bits64, Windows
### Started from static System.Void Warmup.HarmonyInit::.cctor(), location C:\
Program Files (x86)\Steam\steamapps\common\data-0000021308FB5440
### At 2023-02-17 06.57.43
### Patch: System.Single RimWorld.Building_TurretGun::BurstCooldownTime()
### Replacement: static System.Single
RimWorld.Building_TurretGun::RimWorld.Building_TurretGun.BurstCooldownTime_Patch1(R
imWorld.Building_TurretGun this)
IL_0000: Local var 0: System.Single
IL_0000: ldc.r4 0
IL_0005: stloc 0 (System.Single)
IL_0009: // start original
IL_0009: ldarg.0
IL_000A: ldfld Verse.ThingDef Verse.Thing::def
IL_000F: ldfld RimWorld.BuildingProperties Verse.ThingDef::building
IL_0014: ldfld System.Single
RimWorld.BuildingProperties::turretBurstCooldownTime
IL_0019: ldc.r4 0
IL_001E: blt.un => Label0
IL_0023: ldarg.0
IL_0024: ldfld Verse.ThingDef Verse.Thing::def
IL_0029: ldfld RimWorld.BuildingProperties Verse.ThingDef::building
IL_002E: ldfld System.Single
RimWorld.BuildingProperties::turretBurstCooldownTime
IL_0033: br => Label1
IL_0038: Label0
IL_0038: ldarg.0
IL_0039: callvirt abstract virtual Verse.Verb
RimWorld.Building_Turret::get_AttackVerb()
IL_003E: ldfld Verse.VerbProperties Verse.Verb::verbProps
IL_0043: ldfld System.Single Verse.VerbProperties::defaultCooldownTime
IL_0048: // end original
IL_0048: Label1
IL_0048: stloc 0 (System.Single)
IL_004C: ldarga 0
IL_0050: ldloca 0 (System.Single)
IL_0054: call static System.Void
Warmup.Patch_TurretGun::BurstCooldownTime_RapidFire_Postfix(RimWorld.Building_Turre
tGun& __instance, System.Single& __result)
IL_0059: ldloc 0 (System.Single)
IL_005D: ret
DONE

### Patch: virtual System.Boolean Verse.Verb::TryStartCastOn(Verse.LocalTargetInfo


castTarg, Verse.LocalTargetInfo destTarg, System.Boolean surpriseAttack,
System.Boolean canHitNonTargetPawns, System.Boolean preventFriendlyFire,
System.Boolean nonInterruptingSelfCast)
### Replacement: static System.Boolean
Verse.Verb::Verse.Verb.TryStartCastOn_Patch3(Verse.Verb this, Verse.LocalTargetInfo
castTarg, Verse.LocalTargetInfo destTarg, System.Boolean surpriseAttack,
System.Boolean canHitNonTargetPawns, System.Boolean preventFriendlyFire,
System.Boolean nonInterruptingSelfCast)
IL_0000: Local var 0: Verse.ShootLine
IL_0000: Local var 1: System.Single
IL_0000: Local var 2: System.Int32
IL_0000: Local var 3: System.Boolean
IL_0000: Local var 4: System.Single
IL_0000: ldc.i4 0
IL_0005: stloc 3 (System.Boolean)
IL_0009: ldc.r4 0
IL_000E: stloc 4 (System.Single)
IL_0012: ldarga 0
IL_0016: ldarg 1
IL_001A: call static System.Void
VanillaWeaponsExpandedLaser.HarmonyPatches.VWEL_Verb_Shoot_TryStartCastOn_RapidFire
_Patch::TryStartCastOn_RapidFire_Prefix(Verse.Verb& __instance,
Verse.LocalTargetInfo castTarg)
IL_001F: ldarga 0
IL_0023: ldarg 1
IL_0027: call static System.Void Warmup.Patch_Verb_Shoot::Prefix(Verse.Verb&
__instance, Verse.LocalTargetInfo castTarg)
IL_002C: // start original
IL_002C: ldarg.0
IL_002D: ldfld Verse.Thing Verse.Verb::caster
IL_0032: brtrue => Label0
IL_0037: ldstr "Verb "
IL_003C: ldarg.0
IL_003D: call virtual System.String Verse.Verb::GetUniqueLoadID()
IL_0042: ldstr " needs caster to work (possibly lost during saving/loading)."
IL_0047: call static System.String System.String::Concat(System.String str0,
System.String str1, System.String str2)
IL_004C: call static System.Void Verse.Log::Error(System.String text)
IL_0051: ldc.i4.0
IL_0052: br => Label11
IL_0057: Label0
IL_0057: ldarg.0
IL_0058: ldfld Verse.Thing Verse.Verb::caster
IL_005D: callvirt System.Boolean Verse.Thing::get_Spawned()
IL_0062: brtrue => Label1
IL_0067: ldc.i4.0
IL_0068: br => Label12
IL_006D: Label1
IL_006D: ldarg.0
IL_006E: ldfld Verse.VerbState Verse.Verb::state
IL_0073: ldc.i4.1
IL_0074: beq => Label2
IL_0079: ldarg.0
IL_007A: ldarg.1
IL_007B: callvirt virtual System.Boolean
Verse.Verb::CanHitTarget(Verse.LocalTargetInfo targ)
IL_0080: brtrue => Label3
IL_0085: Label2
IL_0085: ldc.i4.0
IL_0086: br => Label13
IL_008B: Label3
IL_008B: ldarg.0
IL_008C: ldarg.1
IL_008D: call System.Boolean
Verse.Verb::CausesTimeSlowdown(Verse.LocalTargetInfo castTarg)
IL_0092: brfalse => Label4
IL_0097: call static Verse.TickManager Verse.Find::get_TickManager()
IL_009C: ldfld Verse.TimeSlower Verse.TickManager::slower
IL_00A1: callvirt System.Void Verse.TimeSlower::SignalForceNormalSpeed()
IL_00A6: Label4
IL_00A6: ldarg.0
IL_00A7: ldarg.3
IL_00A8: stfld System.Boolean Verse.Verb::surpriseAttack
IL_00AD: ldarg.0
IL_00AE: ldarg.s 4
IL_00B0: stfld System.Boolean Verse.Verb::canHitNonTargetPawnsNow
IL_00B5: ldarg.0
IL_00B6: ldarg.s 5
IL_00B8: stfld System.Boolean Verse.Verb::preventFriendlyFire
IL_00BD: ldarg.0
IL_00BE: ldarg.s 6
IL_00C0: stfld System.Boolean Verse.Verb::nonInterruptingSelfCast
IL_00C5: ldarg.0
IL_00C6: ldarg.1
IL_00C7: stfld Verse.LocalTargetInfo Verse.Verb::currentTarget
IL_00CC: ldarg.0
IL_00CD: ldarg.2
IL_00CE: stfld Verse.LocalTargetInfo Verse.Verb::currentDestination
IL_00D3: ldarg.0
IL_00D4: callvirt virtual System.Boolean Verse.Verb::get_CasterIsPawn()
IL_00D9: brfalse => Label5
IL_00DE: ldarg.0
IL_00DF: ldfld Verse.VerbProperties Verse.Verb::verbProps
IL_00E4: ldfld System.Single Verse.VerbProperties::warmupTime
IL_00E9: ldc.r4 0
IL_00EE: ble.un => Label6
IL_00F3: ldarg.0
IL_00F4: ldarg.0
IL_00F5: ldfld Verse.Thing Verse.Verb::caster
IL_00FA: callvirt virtual Verse.IntVec3 Verse.Thing::get_Position()
IL_00FF: ldarg.1
IL_0100: ldloca.s 0 (Verse.ShootLine)
IL_0102: call System.Boolean Verse.Verb::TryFindShootLineFromTo(Verse.IntVec3
root, Verse.LocalTargetInfo targ, Verse.ShootLine& resultingLine)
IL_0107: brfalse => Label7
IL_010C: ldarg.0
IL_010D: callvirt virtual Verse.Pawn Verse.Verb::get_CasterPawn()
IL_0112: callvirt Verse.Pawn_DrawTracker Verse.Pawn::get_Drawer()
IL_0117: ldloc.0
IL_0118: ldarg.0
IL_0119: ldfld Verse.Thing Verse.Verb::caster
IL_011E: callvirt virtual Verse.IntVec3 Verse.Thing::get_Position()
IL_0123: callvirt System.Void
Verse.Pawn_DrawTracker::Notify_WarmingCastAlongLine(Verse.ShootLine newShootLine,
Verse.IntVec3 ShootPosition)
IL_0128: ldarg.0
IL_0129: callvirt virtual Verse.Pawn Verse.Verb::get_CasterPawn()
IL_012E: ldsfld RimWorld.StatDef RimWorld.StatDefOf::AimingDelayFactor
IL_0133: ldc.i4.1
IL_0134: ldc.i4.m1
IL_0135: call static System.Single
RimWorld.StatExtension::GetStatValue(Verse.Thing thing, RimWorld.StatDef stat,
System.Boolean applyPostProcess, System.Int32 cacheStaleAfterTicks)
IL_013A: stloc.1
IL_013B: ldarg.0
IL_013C: ldfld Verse.VerbProperties Verse.Verb::verbProps
IL_0141: ldfld System.Single Verse.VerbProperties::warmupTime
IL_0146: ldloc.1
IL_0147: mul
IL_0148: call static System.Int32
Verse.GenTicks::SecondsToTicks(System.Single numSeconds)
IL_014D: stloc.2
IL_014E: ldarg.0
IL_014F: callvirt virtual Verse.Pawn Verse.Verb::get_CasterPawn()
IL_0154: ldfld Verse.Pawn_StanceTracker Verse.Pawn::stances
IL_0159: ldloc.2
IL_015A: ldarg.1
IL_015B: ldarg.0
IL_015C: newobj System.Void Verse.Stance_Warmup::.ctor(System.Int32 ticks,
Verse.LocalTargetInfo focusTarg, Verse.Verb verb)
IL_0161: callvirt System.Void Verse.Pawn_StanceTracker::SetStance(Verse.Stance
newStance)
IL_0166: ldarg.0
IL_0167: ldfld Verse.VerbProperties Verse.Verb::verbProps
IL_016C: ldfld System.Boolean Verse.VerbProperties::stunTargetOnCastStart
IL_0171: brfalse => Label8
IL_0176: ldarga.s 1
IL_0178: call Verse.Pawn Verse.LocalTargetInfo::get_Pawn()
IL_017D: brfalse => Label9
IL_0182: ldarga.s 1
IL_0184: call Verse.Pawn Verse.LocalTargetInfo::get_Pawn()
IL_0189: ldfld Verse.Pawn_StanceTracker Verse.Pawn::stances
IL_018E: ldfld RimWorld.StunHandler Verse.Pawn_StanceTracker::stunner
IL_0193: ldloc.2
IL_0194: ldnull
IL_0195: ldc.i4.0
IL_0196: ldc.i4.1
IL_0197: callvirt System.Void RimWorld.StunHandler::StunFor(System.Int32 ticks,
Verse.Thing instigator, System.Boolean addBattleLog, System.Boolean showMote)
IL_019C: br => Label10
IL_01A1: Label7
IL_01A1: ldc.i4.0
IL_01A2: br => Label14
IL_01A7: Label5
IL_01A7: Label6
IL_01A7: ldarg.0
IL_01A8: callvirt virtual System.Void Verse.Verb::WarmupComplete()
IL_01AD: Label8
IL_01AD: Label9
IL_01AD: Label10
IL_01AD: ldc.i4.1
IL_01AE: // end original
IL_01AE: Label11
IL_01AE: Label12
IL_01AE: Label13
IL_01AE: Label14
IL_01AE: stloc 3 (System.Boolean)
IL_01B2: ldarga 0
IL_01B6: ldarg 1
IL_01BA: ldloc 4 (System.Single)
IL_01BE: call static System.Void
VanillaWeaponsExpandedLaser.HarmonyPatches.VWEL_Verb_Shoot_TryStartCastOn_RapidFire
_Patch::TryStartCastOn_RapidFire_Postfix(Verse.Verb& __instance,
Verse.LocalTargetInfo castTarg, System.Single __state)
IL_01C3: ldloc 3 (System.Boolean)
IL_01C7: ret
DONE

AccessTools.TypeByName: Could not find type named


PerformanceOptimizer.ComponentCache
AccessTools.Method: type is null
### Harmony id=kikohi.vfe.insectoid, version=2.2.2.0, location=C:\Program Files
(x86)\Steam\steamapps\common\data-000002130553D010, env/clr=4.0.30319.42000,
platform=Win32NT, ptrsize:runtime/env=8/Bits64, Windows
### Started from static System.Void VFEI.HarmonyInit::.cctor(), location C:\Program
Files (x86)\Steam\steamapps\common\data-0000021309D3B9A0
### At 2023-02-17 06.57.44
### Patch: System.Single Verse.BodyPartDef::GetMaxHealth(Verse.Pawn pawn)
### Replacement: static System.Single
Verse.BodyPartDef::Verse.BodyPartDef.GetMaxHealth_Patch2(Verse.BodyPartDef this,
Verse.Pawn pawn)
IL_0000: Local var 0: System.Single
IL_0000: ldc.r4 0
IL_0005: stloc 0 (System.Single)
IL_0009: // start original
IL_0009: ldarg.0
IL_000A: ldfld System.Int32 Verse.BodyPartDef::hitPoints
IL_000F: conv.r4
IL_0010: ldarg.1
IL_0011: callvirt System.Single Verse.Pawn::get_HealthScale()
IL_0016: mul
IL_0017: call static System.Int32 UnityEngine.Mathf::CeilToInt(System.Single
f)
IL_001C: conv.r4
IL_001D: // end original
IL_001D: stloc 0 (System.Single)
IL_0021: ldarg.0
IL_0022: ldloca 0 (System.Single)
IL_0026: ldarg 1
IL_002A: call static System.Void
CONN.BodyPartDef_GetMaxHealthPatch::BodyPartDef_GetMaxHealth_PostFix(Verse.BodyPart
Def __instance, System.Single& __result, Verse.Pawn pawn)
IL_002F: ldarg.0
IL_0030: ldloca 0 (System.Single)
IL_0034: ldarg 1
IL_0038: call static System.Void
VFEI.BodyPartDef_GetMaxHealth_Postfix::PostFix(Verse.BodyPartDef __instance,
System.Single& __result, Verse.Pawn pawn)
IL_003D: ldloc 0 (System.Single)
IL_0041: ret
DONE

### Patch: static System.Single RimWorld.FoodUtility::NutritionForEater(Verse.Pawn


eater, Verse.Thing food)
### Replacement: static System.Single
RimWorld.FoodUtility::RimWorld.FoodUtility.NutritionForEater_Patch1(Verse.Pawn
eater, Verse.Thing food)
IL_0000: Local var 0: System.Single
IL_0000: Local var 1: System.Single
IL_0000: ldc.r4 0
IL_0005: stloc 1 (System.Single)
IL_0009: // start original
IL_0009: ldarg.1
IL_000A: ldsfld RimWorld.StatDef RimWorld.StatDefOf::Nutrition
IL_000F: ldc.i4.1
IL_0010: ldc.i4.m1
IL_0011: call static System.Single
RimWorld.StatExtension::GetStatValue(Verse.Thing thing, RimWorld.StatDef stat,
System.Boolean applyPostProcess, System.Int32 cacheStaleAfterTicks)
IL_0016: stloc.0
IL_0017: ldarg.0
IL_0018: brfalse => Label0
IL_001D: call static System.Boolean Verse.ModsConfig::get_BiotechActive()
IL_0022: brfalse => Label1
IL_0027: ldarg.1
IL_0028: ldfld Verse.ThingDef Verse.Thing::def
IL_002D: call static System.Boolean
RimWorld.FoodUtility::IsRawFood(Verse.ThingDef thingDef)
IL_0032: brfalse => Label2
IL_0037: ldloc.0
IL_0038: ldarg.0
IL_0039: ldsfld RimWorld.StatDef RimWorld.StatDefOf::RawNutritionFactor
IL_003E: ldc.i4.1
IL_003F: ldc.i4.m1
IL_0040: call static System.Single
RimWorld.StatExtension::GetStatValue(Verse.Thing thing, RimWorld.StatDef stat,
System.Boolean applyPostProcess, System.Int32 cacheStaleAfterTicks)
IL_0045: mul
IL_0046: stloc.0
IL_0047: Label0
IL_0047: Label1
IL_0047: Label2
IL_0047: ldloc.0
IL_0048: // end original
IL_0048: stloc 1 (System.Single)
IL_004C: ldarg 0
IL_0050: ldarg 1
IL_0054: ldloca 1 (System.Single)
IL_0058: call static System.Void
VFEI.VFEI_FoodUtility_NutritionForEater_Postfix::PostFix(Verse.Pawn eater,
Verse.Thing food, System.Single& __result)
IL_005D: ldloc 1 (System.Single)
IL_0061: ret
DONE

### Patch: virtual System.Void RimWorld.GenStep_Settlement::ScatterAt(Verse.IntVec3


c, Verse.Map map, Verse.GenStepParams parms, System.Int32 stackCount)
### Replacement: static System.Void
RimWorld.GenStep_Settlement::RimWorld.GenStep_Settlement.ScatterAt_Patch2(RimWorld.
GenStep_Settlement this, Verse.IntVec3 c, Verse.Map map, Verse.GenStepParams parms,
System.Int32 stackCount)
IL_0000: Local var 0: System.Int32
IL_0000: Local var 1: System.Int32
IL_0000: Local var 2: Verse.CellRect
IL_0000: Local var 3: RimWorld.Faction
IL_0000: Local var 4: RimWorld.BaseGen.ResolveParams
IL_0000: Local var 5: Verse.IntRange
IL_0000: Local var 6: Verse.CellRect
IL_0000: Local var 7: System.Boolean
IL_0000: ldc.i4 0
IL_0005: stloc 7 (System.Boolean)
IL_0009: ldc.i4.1
IL_000A: stloc 7 (System.Boolean)
IL_000E: ldloc 7 (System.Boolean)
IL_0012: brfalse => Label1
IL_0017: ldarg 1
IL_001B: ldarg 2
IL_001F: ldarg 4
IL_0023: call static System.Boolean
VFE_Settlers.Utilities.GenStep_SettlementScatterAt_Patch::PreFix(Verse.IntVec3 c,
Verse.Map map, System.Int32 stackCount)
IL_0028: stloc 7 (System.Boolean)
IL_002C: Label1
IL_002C: nop
IL_002D: ldloc 7 (System.Boolean)
IL_0031: brfalse => Label2
IL_0036: ldarg 1
IL_003A: ldarg 2
IL_003E: ldarg 3
IL_0042: call static System.Boolean
VFEI.GenStep_Settlement_ScatterAt_Prefix::Prefix(Verse.IntVec3 c, Verse.Map map,
Verse.GenStepParams parms)
IL_0047: stloc 7 (System.Boolean)
IL_004B: Label2
IL_004B: nop
IL_004C: ldloc 7 (System.Boolean)
IL_0050: brfalse => Label0
IL_0055: // start original
IL_0055: ldsfld Verse.IntRange RimWorld.GenStep_Settlement::SettlementSizeRange
IL_005A: stloc.s 5 (Verse.IntRange)
IL_005C: ldloca.s 5 (Verse.IntRange)
IL_005E: call System.Int32 Verse.IntRange::get_RandomInRange()
IL_0063: stloc.0
IL_0064: ldsfld Verse.IntRange RimWorld.GenStep_Settlement::SettlementSizeRange
IL_0069: stloc.s 5 (Verse.IntRange)
IL_006B: ldloca.s 5 (Verse.IntRange)
IL_006D: call System.Int32 Verse.IntRange::get_RandomInRange()
IL_0072: stloc.1
IL_0073: ldloca.s 2 (Verse.CellRect)
IL_0075: ldarg.1
IL_0076: ldfld System.Int32 Verse.IntVec3::x
IL_007B: ldloc.0
IL_007C: ldc.i4.2
IL_007D: div
IL_007E: sub
IL_007F: ldarg.1
IL_0080: ldfld System.Int32 Verse.IntVec3::z
IL_0085: ldloc.1
IL_0086: ldc.i4.2
IL_0087: div
IL_0088: sub
IL_0089: ldloc.0
IL_008A: ldloc.1
IL_008B: call System.Void Verse.CellRect::.ctor(System.Int32 minX,
System.Int32 minZ, System.Int32 width, System.Int32 height)
IL_0090: ldarg.2
IL_0091: callvirt RimWorld.Faction Verse.Map::get_ParentFaction()
IL_0096: brfalse => Label3
IL_009B: ldarg.2
IL_009C: callvirt RimWorld.Faction Verse.Map::get_ParentFaction()
IL_00A1: call static RimWorld.Faction RimWorld.Faction::get_OfPlayer()
IL_00A6: bne.un => Label4
IL_00AB: Label3
IL_00AB: call static RimWorld.FactionManager Verse.Find::get_FactionManager()
IL_00B0: ldc.i4.0
IL_00B1: ldc.i4.0
IL_00B2: ldc.i4.1
IL_00B3: ldc.i4.0
IL_00B4: callvirt RimWorld.Faction
RimWorld.FactionManager::RandomEnemyFaction(System.Boolean allowHidden,
System.Boolean allowDefeated, System.Boolean allowNonHumanlike, RimWorld.TechLevel
minTechLevel)
IL_00B9: stloc.3
IL_00BA: br => Label5
IL_00BF: Label4
IL_00BF: ldarg.2
IL_00C0: callvirt RimWorld.Faction Verse.Map::get_ParentFaction()
IL_00C5: stloc.3
IL_00C6: Label5
IL_00C6: ldloca.s 2 (Verse.CellRect)
IL_00C8: ldarg.2
IL_00C9: call Verse.CellRect Verse.CellRect::ClipInsideMap(Verse.Map map)
IL_00CE: pop
IL_00CF: ldloca.s 4 (RimWorld.BaseGen.ResolveParams)
IL_00D1: initobj RimWorld.BaseGen.ResolveParams
IL_00D7: ldloca.s 4 (RimWorld.BaseGen.ResolveParams)
IL_00D9: ldloc.2
IL_00DA: stfld Verse.CellRect RimWorld.BaseGen.ResolveParams::rect
IL_00DF: ldloca.s 4 (RimWorld.BaseGen.ResolveParams)
IL_00E1: ldloc.3
IL_00E2: stfld RimWorld.Faction RimWorld.BaseGen.ResolveParams::faction
IL_00E7: ldsfld RimWorld.BaseGen.GlobalSettings
RimWorld.BaseGen.BaseGen::globalSettings
IL_00EC: ldarg.2
IL_00ED: stfld Verse.Map RimWorld.BaseGen.GlobalSettings::map
IL_00F2: ldsfld RimWorld.BaseGen.GlobalSettings
RimWorld.BaseGen.BaseGen::globalSettings
IL_00F7: ldc.i4.1
IL_00F8: stfld System.Int32 RimWorld.BaseGen.GlobalSettings::minBuildings
IL_00FD: ldsfld RimWorld.BaseGen.GlobalSettings
RimWorld.BaseGen.BaseGen::globalSettings
IL_0102: ldc.i4.1
IL_0103: stfld System.Int32 RimWorld.BaseGen.GlobalSettings::minBarracks
IL_0108: ldsfld RimWorld.BaseGen.SymbolStack
RimWorld.BaseGen.BaseGen::symbolStack
IL_010D: ldstr "settlement"
IL_0112: ldloc.3
IL_0113: call static System.String
VFECore.GenStep_Settlement_ScatterAt_Patch::SettlementGenerationSymbol(System.Strin
g original, RimWorld.Faction faction)
IL_0118: ldloc.s 4 (RimWorld.BaseGen.ResolveParams)
IL_011A: ldnull
IL_011B: callvirt System.Void RimWorld.BaseGen.SymbolStack::Push(System.String
symbol, RimWorld.BaseGen.ResolveParams resolveParams, System.String
customNameForPath)
IL_0120: ldloc.3
IL_0121: brfalse => Label6
IL_0126: ldloc.3
IL_0127: call static RimWorld.Faction RimWorld.Faction::get_OfEmpire()
IL_012C: bne.un => Label7
IL_0131: ldsfld RimWorld.BaseGen.GlobalSettings
RimWorld.BaseGen.BaseGen::globalSettings
IL_0136: ldc.i4.1
IL_0137: stfld System.Int32 RimWorld.BaseGen.GlobalSettings::minThroneRooms
IL_013C: ldsfld RimWorld.BaseGen.GlobalSettings
RimWorld.BaseGen.BaseGen::globalSettings
IL_0141: ldc.i4.1
IL_0142: stfld System.Int32 RimWorld.BaseGen.GlobalSettings::minLandingPads
IL_0147: Label6
IL_0147: Label7
IL_0147: call static System.Void RimWorld.BaseGen.BaseGen::Generate()
IL_014C: ldloc.3
IL_014D: brfalse => Label8
IL_0152: ldloc.3
IL_0153: call static RimWorld.Faction RimWorld.Faction::get_OfEmpire()
IL_0158: bne.un => Label9
IL_015D: ldsfld RimWorld.BaseGen.GlobalSettings
RimWorld.BaseGen.BaseGen::globalSettings
IL_0162: ldfld System.Int32
RimWorld.BaseGen.GlobalSettings::landingPadsGenerated
IL_0167: brtrue => Label10
IL_016C: ldloc.s 4 (RimWorld.BaseGen.ResolveParams)
IL_016E: ldfld Verse.CellRect RimWorld.BaseGen.ResolveParams::rect
IL_0173: ldarg.2
IL_0174: ldloc.3
IL_0175: ldloca.s 6 (Verse.CellRect)
IL_0177: call static System.Void
RimWorld.GenStep_Settlement::GenerateLandingPadNearby(Verse.CellRect rect,
Verse.Map map, RimWorld.Faction faction, Verse.CellRect& usedRect)
IL_017C: // end original
IL_017C: Label8
IL_017C: Label9
IL_017C: Label10
IL_017C: Label0
IL_017C: ret
DONE

### Patch: virtual System.Boolean


RimWorld.IncidentWorker_Raid::TryExecuteWorker(RimWorld.IncidentParms parms)
### Replacement: static System.Boolean
RimWorld.IncidentWorker_Raid::RimWorld.IncidentWorker_Raid.TryExecuteWorker_Patch2(
RimWorld.IncidentWorker_Raid this, RimWorld.IncidentParms parms)
IL_0000: Local var 0: System.Collections.Generic.List`1<Verse.Pawn>
IL_0000: Local var 1: Verse.TaggedString
IL_0000: Local var 2: Verse.TaggedString
IL_0000: Local var 3: System.Collections.Generic.List`1<Verse.TargetInfo>
IL_0000: Local var 4:
System.Collections.Generic.List`1<System.Collections.Generic.List`1<Verse.Pawn>>
IL_0000: Local var 5: System.Collections.Generic.List`1<Verse.Pawn>
IL_0000: Local var 6: System.Int32
IL_0000: Local var 7: System.Collections.Generic.List`1/Enumerator<Verse.Pawn>
IL_0000: Local var 8: Verse.Pawn
IL_0000: Local var 9: System.Int32
IL_0000: Local var 10: Verse.Pawn
IL_0000: Local var 11: System.Boolean
IL_0000: Local var 12: System.Boolean
IL_0000: ldc.i4 0
IL_0005: stloc 11 (System.Boolean)
IL_0009: ldc.i4 0
IL_000E: stloc 12 (System.Boolean)
IL_0012: ldc.i4.1
IL_0013: stloc 12 (System.Boolean)
IL_0017: ldloc 12 (System.Boolean)
IL_001B: brfalse => Label1
IL_0020: ldarg.0
IL_0021: ldarg 1
IL_0025: call static System.Boolean
VanillaStorytellersExpanded.Patch_TryExecuteWorker::Prefix(RimWorld.IncidentWorker_
Raid __instance, RimWorld.IncidentParms parms)
IL_002A: stloc 12 (System.Boolean)
IL_002E: Label1
IL_002E: nop
IL_002F: ldloc 12 (System.Boolean)
IL_0033: brfalse => Label2
IL_0038: ldarg 1
IL_003C: ldarga 0
IL_0040: ldloca 11 (System.Boolean)
IL_0044: call static System.Boolean
VFEI.IncidentWorker_Raid_TryExecuteWorker_Prefix::Prefix(RimWorld.IncidentParms
parms, RimWorld.IncidentWorker_Raid& __instance, System.Boolean& __result)
IL_0049: stloc 12 (System.Boolean)
IL_004D: Label2
IL_004D: nop
IL_004E: ldloc 12 (System.Boolean)
IL_0052: brfalse => Label0
IL_0057: // start original
IL_0057: ldarg.0
IL_0058: ldarg.1
IL_0059: ldloca.s 0 (System.Collections.Generic.List`1[Verse.Pawn])
IL_005B: ldc.i4.0
IL_005C: call System.Boolean
RimWorld.IncidentWorker_Raid::TryGenerateRaidInfo(RimWorld.IncidentParms parms,
System.Collections.Generic.List`1& pawns, System.Boolean debugTest)
IL_0061: brtrue => Label3
IL_0066: ldc.i4.0
IL_0067: br => Label26
IL_006C: Label3
IL_006C: ldarg.0
IL_006D: ldarg.1
IL_006E: callvirt abstract virtual System.String
RimWorld.IncidentWorker_Raid::GetLetterLabel(RimWorld.IncidentParms parms)
IL_0073: call static Verse.TaggedString
Verse.TaggedString::op_Implicit(System.String str)
IL_0078: stloc.1
IL_0079: ldarg.0
IL_007A: ldarg.1
IL_007B: ldloc.0
IL_007C: callvirt abstract virtual System.String
RimWorld.IncidentWorker_Raid::GetLetterText(RimWorld.IncidentParms parms,
System.Collections.Generic.List`1<Verse.Pawn> pawns)
IL_0081: call static Verse.TaggedString
Verse.TaggedString::op_Implicit(System.String str)
IL_0086: stloc.2
IL_0087: ldloc.0
IL_0088: ldloca.s 1 (Verse.TaggedString)
IL_008A: ldloca.s 2 (Verse.TaggedString)
IL_008C: ldarg.0
IL_008D: ldarg.1
IL_008E: callvirt abstract virtual System.String
RimWorld.IncidentWorker_Raid::GetRelatedPawnsInfoLetterText(RimWorld.IncidentParms
parms)
IL_0093: ldc.i4.1
IL_0094: ldc.i4.1
IL_0095: call static System.Void
RimWorld.PawnRelationUtility::Notify_PawnsSeenByPlayer_Letter(System.Collections.Ge
neric.IEnumerable`1<Verse.Pawn> seenPawns, Verse.TaggedString& letterLabel,
Verse.TaggedString& letterText, System.String relationsInfoHeader, System.Boolean
informEvenIfSeenBefore, System.Boolean writeSeenPawnsNames)
IL_009A: newobj System.Void
System.Collections.Generic.List`1<Verse.TargetInfo>::.ctor()
IL_009F: stloc.3
IL_00A0: ldarg.1
IL_00A1: ldfld System.Collections.Generic.Dictionary`2<Verse.Pawn,
System.Int32> RimWorld.IncidentParms::pawnGroups
IL_00A6: brfalse => Label4
IL_00AB: ldloc.0
IL_00AC: ldarg.1
IL_00AD: ldfld System.Collections.Generic.Dictionary`2<Verse.Pawn,
System.Int32> RimWorld.IncidentParms::pawnGroups
IL_00B2: call static
System.Collections.Generic.List`1<System.Collections.Generic.List`1<Verse.Pawn>>
RimWorld.IncidentParmsUtility::SplitIntoGroups(System.Collections.Generic.List`1<Ve
rse.Pawn> pawns, System.Collections.Generic.Dictionary`2<Verse.Pawn, System.Int32>
groups)
IL_00B7: stloc.s 4
(System.Collections.Generic.List`1[System.Collections.Generic.List`1[Verse.Pawn]])
IL_00B9: ldloc.s 4
(System.Collections.Generic.List`1[System.Collections.Generic.List`1[Verse.Pawn]])
IL_00BB: ldsfld System.Func`2<System.Collections.Generic.List`1<Verse.Pawn>,
System.Int32> RimWorld.<>c::<>9__11_0
IL_00C0: dup
IL_00C1: brtrue => Label5
IL_00C6: pop
IL_00C7: ldsfld RimWorld.<>c RimWorld.<>c::<>9
IL_00CC: ldftn System.Int32
RimWorld.<>c::<TryExecuteWorker>b__11_0(System.Collections.Generic.List`1<Verse.Paw
n> x)
IL_00D2: newobj System.Void
System.Func`2<System.Collections.Generic.List`1<Verse.Pawn>,
System.Int32>::.ctor(System.Object object, System.IntPtr method)
IL_00D7: dup
IL_00D8: stsfld System.Func`2<System.Collections.Generic.List`1<Verse.Pawn>,
System.Int32> RimWorld.<>c::<>9__11_0
IL_00DD: Label5
IL_00DD: call static System.Collections.Generic.List`1<Verse.Pawn>
Verse.GenCollection::MaxBy(System.Collections.Generic.IEnumerable`1<System.Collecti
ons.Generic.List`1<Verse.Pawn>> source,
System.Func`2<System.Collections.Generic.List`1<Verse.Pawn>, System.Int32>
selector)
IL_00E2: stloc.s 5 (System.Collections.Generic.List`1[Verse.Pawn])
IL_00E4: ldloc.s 5 (System.Collections.Generic.List`1[Verse.Pawn])
IL_00E6: call static System.Boolean
Verse.GenCollection::Any(System.Collections.Generic.List`1<Verse.Pawn> list)
IL_00EB: brfalse => Label6
IL_00F0: ldloc.3
IL_00F1: ldloc.s 5 (System.Collections.Generic.List`1[Verse.Pawn])
IL_00F3: ldc.i4.0
IL_00F4: callvirt virtual Verse.Pawn
System.Collections.Generic.List`1<Verse.Pawn>::get_Item(System.Int32 index)
IL_00F9: call static Verse.TargetInfo
Verse.TargetInfo::op_Implicit(Verse.Thing t)
IL_00FE: callvirt virtual System.Void
System.Collections.Generic.List`1<Verse.TargetInfo>::Add(Verse.TargetInfo item)
IL_0103: Label6
IL_0103: ldc.i4.0
IL_0104: stloc.s 6 (System.Int32)
IL_0106: br => Label7
IL_010B: Label10
IL_010B: ldloc.s 4
(System.Collections.Generic.List`1[System.Collections.Generic.List`1[Verse.Pawn]])
IL_010D: ldloc.s 6 (System.Int32)
IL_010F: callvirt virtual System.Collections.Generic.List`1<Verse.Pawn>
System.Collections.Generic.List`1<System.Collections.Generic.List`1<Verse.Pawn>>::g
et_Item(System.Int32 index)
IL_0114: ldloc.s 5 (System.Collections.Generic.List`1[Verse.Pawn])
IL_0116: beq => Label8
IL_011B: ldloc.s 4
(System.Collections.Generic.List`1[System.Collections.Generic.List`1[Verse.Pawn]])
IL_011D: ldloc.s 6 (System.Int32)
IL_011F: callvirt virtual System.Collections.Generic.List`1<Verse.Pawn>
System.Collections.Generic.List`1<System.Collections.Generic.List`1<Verse.Pawn>>::g
et_Item(System.Int32 index)
IL_0124: call static System.Boolean
Verse.GenCollection::Any(System.Collections.Generic.List`1<Verse.Pawn> list)
IL_0129: brfalse => Label9
IL_012E: ldloc.3
IL_012F: ldloc.s 4
(System.Collections.Generic.List`1[System.Collections.Generic.List`1[Verse.Pawn]])
IL_0131: ldloc.s 6 (System.Int32)
IL_0133: callvirt virtual System.Collections.Generic.List`1<Verse.Pawn>
System.Collections.Generic.List`1<System.Collections.Generic.List`1<Verse.Pawn>>::g
et_Item(System.Int32 index)
IL_0138: ldc.i4.0
IL_0139: callvirt virtual Verse.Pawn
System.Collections.Generic.List`1<Verse.Pawn>::get_Item(System.Int32 index)
IL_013E: call static Verse.TargetInfo
Verse.TargetInfo::op_Implicit(Verse.Thing t)
IL_0143: callvirt virtual System.Void
System.Collections.Generic.List`1<Verse.TargetInfo>::Add(Verse.TargetInfo item)
IL_0148: Label8
IL_0148: Label9
IL_0148: ldloc.s 6 (System.Int32)
IL_014A: ldc.i4.1
IL_014B: add
IL_014C: stloc.s 6 (System.Int32)
IL_014E: Label7
IL_014E: ldloc.s 6 (System.Int32)
IL_0150: ldloc.s 4
(System.Collections.Generic.List`1[System.Collections.Generic.List`1[Verse.Pawn]])
IL_0152: callvirt virtual System.Int32
System.Collections.Generic.List`1<System.Collections.Generic.List`1<Verse.Pawn>>::g
et_Count()
IL_0157: blt => Label10
IL_015C: br => Label11
IL_0161: Label4
IL_0161: ldloc.0
IL_0162: call static System.Boolean
Verse.GenCollection::Any(System.Collections.Generic.List`1<Verse.Pawn> list)
IL_0167: brfalse => Label12
IL_016C: ldloc.0
IL_016D: callvirt System.Collections.Generic.Enumerator<Verse.Pawn>
System.Collections.Generic.List`1<Verse.Pawn>::GetEnumerator()
IL_0172: stloc.s 7 (System.Collections.Generic.List`1+Enumerator[Verse.Pawn])
.try
{
IL_0174: br => Label13
IL_0179: Label14
IL_0179: ldloca.s 7
(System.Collections.Generic.List`1+Enumerator[Verse.Pawn])
IL_017B: call virtual Verse.Pawn
System.Collections.Generic.Enumerator<Verse.Pawn>::get_Current()
IL_0180: stloc.s 8 (Verse.Pawn)
IL_0182: ldloc.3
IL_0183: ldloc.s 8 (Verse.Pawn)
IL_0185: call static Verse.TargetInfo
Verse.TargetInfo::op_Implicit(Verse.Thing t)
IL_018A: callvirt virtual System.Void
System.Collections.Generic.List`1<Verse.TargetInfo>::Add(Verse.TargetInfo item)
IL_018F: Label13
IL_018F: ldloca.s 7
(System.Collections.Generic.List`1+Enumerator[Verse.Pawn])
IL_0191: call virtual System.Boolean
System.Collections.Generic.Enumerator<Verse.Pawn>::MoveNext()
IL_0196: brtrue => Label14
IL_019B: leave => Label15
IL_01A0: leave => (autogenerated)
} // end try
.finally
{
IL_01A5: ldloca.s 7
(System.Collections.Generic.List`1+Enumerator[Verse.Pawn])
IL_01A7: constrained.
System.Collections.Generic.List`1+Enumerator[Verse.Pawn]
IL_01AD: callvirt abstract virtual System.Void
System.IDisposable::Dispose()
IL_01B2: endfinally
IL_01B3: leave => (autogenerated)
} // end handler
IL_01B4: Label11
IL_01B4: Label12
IL_01B4: Label15
IL_01B4: ldarg.0
IL_01B5: ldloc.1
IL_01B6: ldloc.2
IL_01B7: ldarg.0
IL_01B8: callvirt abstract virtual Verse.LetterDef
RimWorld.IncidentWorker_Raid::GetLetterDef()
IL_01BD: ldarg.1
IL_01BE: ldloc.3
IL_01BF: call static Verse.LookTargets
Verse.LookTargets::op_Implicit(System.Collections.Generic.List`1<Verse.TargetInfo>
targets)
IL_01C4: call static Verse.NamedArgument[] System.Array::Empty()
IL_01C9: call System.Void
RimWorld.IncidentWorker::SendStandardLetter(Verse.TaggedString baseLetterLabel,
Verse.TaggedString baseLetterText, Verse.LetterDef baseLetterDef,
RimWorld.IncidentParms parms, Verse.LookTargets lookTargets, Verse.NamedArgument[]
textArgs)
IL_01CE: ldarg.1
IL_01CF: ldfld Verse.Pawn RimWorld.IncidentParms::controllerPawn
IL_01D4: brfalse => Label16
IL_01D9: ldarg.1
IL_01DA: ldfld Verse.Pawn RimWorld.IncidentParms::controllerPawn
IL_01DF: callvirt virtual RimWorld.Faction Verse.Thing::get_Faction()
IL_01E4: call static RimWorld.Faction RimWorld.Faction::get_OfPlayer()
IL_01E9: beq => Label17
IL_01EE: Label16
IL_01EE: ldarg.1
IL_01EF: ldfld RimWorld.RaidStrategyDef RimWorld.IncidentParms::raidStrategy
IL_01F4: callvirt RimWorld.RaidStrategyWorker
RimWorld.RaidStrategyDef::get_Worker()
IL_01F9: ldarg.1
IL_01FA: ldloc.0
IL_01FB: callvirt virtual System.Void
RimWorld.RaidStrategyWorker::MakeLords(RimWorld.IncidentParms parms,
System.Collections.Generic.List`1<Verse.Pawn> pawns)
IL_0200: Label17
IL_0200: ldsfld RimWorld.ConceptDef RimWorld.ConceptDefOf::EquippingWeapons
IL_0205: ldc.i4.2
IL_0206: call static System.Void
RimWorld.LessonAutoActivator::TeachOpportunity(RimWorld.ConceptDef conc,
RimWorld.OpportunityType opp)
IL_020B: ldsfld RimWorld.ConceptDef RimWorld.ConceptDefOf::ShieldBelts
IL_0210: call static System.Boolean
RimWorld.PlayerKnowledgeDatabase::IsComplete(RimWorld.ConceptDef conc)
IL_0215: brtrue => Label18
IL_021A: ldc.i4.0
IL_021B: stloc.s 9 (System.Int32)
IL_021D: br => Label19
IL_0222: Label24
IL_0222: ldloc.0
IL_0223: ldloc.s 9 (System.Int32)
IL_0225: callvirt virtual Verse.Pawn
System.Collections.Generic.List`1<Verse.Pawn>::get_Item(System.Int32 index)
IL_022A: stloc.s 10 (Verse.Pawn)
IL_022C: ldloc.s 10 (Verse.Pawn)
IL_022E: ldfld RimWorld.Pawn_ApparelTracker Verse.Pawn::apparel
IL_0233: brfalse => Label20
IL_0238: ldloc.s 10 (Verse.Pawn)
IL_023A: ldfld RimWorld.Pawn_ApparelTracker Verse.Pawn::apparel
IL_023F: callvirt System.Collections.Generic.List`1<RimWorld.Apparel>
RimWorld.Pawn_ApparelTracker::get_WornApparel()
IL_0244: ldsfld System.Predicate`1<RimWorld.Apparel> RimWorld.<>c::<>9__11_1
IL_0249: dup
IL_024A: brtrue => Label21
IL_024F: pop
IL_0250: ldsfld RimWorld.<>c RimWorld.<>c::<>9
IL_0255: ldftn System.Boolean
RimWorld.<>c::<TryExecuteWorker>b__11_1(RimWorld.Apparel ap)
IL_025B: newobj System.Void
System.Predicate`1<RimWorld.Apparel>::.ctor(System.Object object, System.IntPtr
method)
IL_0260: dup
IL_0261: stsfld System.Predicate`1<RimWorld.Apparel> RimWorld.<>c::<>9__11_1
IL_0266: Label21
IL_0266: call static System.Boolean
Verse.GenCollection::Any(System.Collections.Generic.List`1<RimWorld.Apparel> list,
System.Predicate`1<RimWorld.Apparel> predicate)
IL_026B: brfalse => Label22
IL_0270: ldsfld RimWorld.ConceptDef RimWorld.ConceptDefOf::ShieldBelts
IL_0275: ldc.i4.2
IL_0276: call static System.Void
RimWorld.LessonAutoActivator::TeachOpportunity(RimWorld.ConceptDef conc,
RimWorld.OpportunityType opp)
IL_027B: br => Label23
IL_0280: Label20
IL_0280: Label22
IL_0280: ldloc.s 9 (System.Int32)
IL_0282: ldc.i4.1
IL_0283: add
IL_0284: stloc.s 9 (System.Int32)
IL_0286: Label19
IL_0286: ldloc.s 9 (System.Int32)
IL_0288: ldloc.0
IL_0289: callvirt virtual System.Int32
System.Collections.Generic.List`1<Verse.Pawn>::get_Count()
IL_028E: blt => Label24
IL_0293: Label18
IL_0293: Label23
IL_0293: ldsfld System.Boolean Verse.DebugSettings::logRaidInfo
IL_0298: brfalse => Label25
IL_029D: ldstr "Raid: {0} ({1}) {2} {3} c={4} p={5}"
IL_02A2: ldc.i4.6
IL_02A3: newarr System.Object
IL_02A8: dup
IL_02A9: ldc.i4.0
IL_02AA: ldarg.1
IL_02AB: ldfld RimWorld.Faction RimWorld.IncidentParms::faction
IL_02B0: callvirt System.String RimWorld.Faction::get_Name()
IL_02B5: stelem.ref
IL_02B6: dup
IL_02B7: ldc.i4.1
IL_02B8: ldarg.1
IL_02B9: ldfld RimWorld.Faction RimWorld.IncidentParms::faction
IL_02BE: ldfld RimWorld.FactionDef RimWorld.Faction::def
IL_02C3: ldfld System.String Verse.Def::defName
IL_02C8: stelem.ref
IL_02C9: dup
IL_02CA: ldc.i4.2
IL_02CB: ldarg.1
IL_02CC: ldfld RimWorld.PawnsArrivalModeDef
RimWorld.IncidentParms::raidArrivalMode
IL_02D1: ldfld System.String Verse.Def::defName
IL_02D6: stelem.ref
IL_02D7: dup
IL_02D8: ldc.i4.3
IL_02D9: ldarg.1
IL_02DA: ldfld RimWorld.RaidStrategyDef RimWorld.IncidentParms::raidStrategy
IL_02DF: ldfld System.String Verse.Def::defName
IL_02E4: stelem.ref
IL_02E5: dup
IL_02E6: ldc.i4.4
IL_02E7: ldarg.1
IL_02E8: ldfld Verse.IntVec3 RimWorld.IncidentParms::spawnCenter
IL_02ED: box Verse.IntVec3
IL_02F2: stelem.ref
IL_02F3: dup
IL_02F4: ldc.i4.5
IL_02F5: ldarg.1
IL_02F6: ldfld System.Single RimWorld.IncidentParms::points
IL_02FB: box System.Single
IL_0300: stelem.ref
IL_0301: call static System.String System.String::Format(System.String
format, System.Object[] args)
IL_0306: call static System.Void Verse.Log::Message(System.String text)
IL_030B: Label25
IL_030B: ldc.i4.1
IL_030C: // end original
IL_030C: Label26
IL_030C: stloc 11 (System.Boolean)
IL_0310: Label0
IL_0310: ldloc 11 (System.Boolean)
IL_0314: ret
DONE

### Patch: RimWorld.Hive RimWorld.LordToil_HiveRelated::FindClosestHive(Verse.Pawn


pawn)
### Replacement: static RimWorld.Hive
RimWorld.LordToil_HiveRelated::RimWorld.LordToil_HiveRelated.FindClosestHive_Patch1
(RimWorld.LordToil_HiveRelated this, Verse.Pawn pawn)
IL_0000: Local var 0: RimWorld.LordToil_HiveRelated/<>c__DisplayClass5_0
IL_0000: Local var 1: RimWorld.Hive
IL_0000: ldnull
IL_0001: stloc 1 (RimWorld.Hive)
IL_0005: // start original
IL_0005: newobj System.Void RimWorld.<>c__DisplayClass5_0::.ctor()
IL_000A: stloc.0
IL_000B: ldloc.0
IL_000C: ldarg.1
IL_000D: stfld Verse.Pawn RimWorld.<>c__DisplayClass5_0::pawn
IL_0012: ldloc.0
IL_0013: ldfld Verse.Pawn RimWorld.<>c__DisplayClass5_0::pawn
IL_0018: callvirt virtual Verse.IntVec3 Verse.Thing::get_Position()
IL_001D: ldloc.0
IL_001E: ldfld Verse.Pawn RimWorld.<>c__DisplayClass5_0::pawn
IL_0023: callvirt virtual Verse.Map Verse.Thing::get_Map()
IL_0028: ldsfld Verse.ThingDef RimWorld.ThingDefOf::Hive
IL_002D: call static Verse.ThingRequest
Verse.ThingRequest::ForDef(Verse.ThingDef singleDef)
IL_0032: ldc.i4.2
IL_0033: ldloc.0
IL_0034: ldfld Verse.Pawn RimWorld.<>c__DisplayClass5_0::pawn
IL_0039: ldc.i4.3
IL_003A: ldc.i4.0
IL_003B: ldc.i4.0
IL_003C: ldc.i4.0
IL_003D: ldc.i4.0
IL_003E: call static Verse.TraverseParms Verse.TraverseParms::For(Verse.Pawn
pawn, Verse.Danger maxDanger, Verse.TraverseMode mode, System.Boolean canBashDoors,
System.Boolean alwaysUseAvoidGrid, System.Boolean canBashFences)
IL_0043: ldc.r4 30
IL_0048: ldloc.0
IL_0049: ldftn System.Boolean
RimWorld.<>c__DisplayClass5_0::<FindClosestHive>b__0(Verse.Thing x)
IL_004F: newobj System.Void
System.Predicate`1<Verse.Thing>::.ctor(System.Object object, System.IntPtr method)
IL_0054: ldnull
IL_0055: ldc.i4.0
IL_0056: ldc.i4.s 30
IL_0058: ldc.i4.0
IL_0059: ldc.i4.s 14
IL_005B: ldc.i4.0
IL_005C: call static Verse.Thing
Verse.GenClosest::ClosestThingReachable(Verse.IntVec3 root, Verse.Map map,
Verse.ThingRequest thingReq, Verse.AI.PathEndMode peMode, Verse.TraverseParms
traverseParams, System.Single maxDistance, System.Predicate`1<Verse.Thing>
validator, System.Collections.Generic.IEnumerable`1<Verse.Thing>
customGlobalSearchSet, System.Int32 searchRegionsMin, System.Int32
searchRegionsMax, System.Boolean forceAllowGlobalSearch, Verse.RegionType
traversableRegionTypes, System.Boolean ignoreEntirelyForbiddenRegions)
IL_0061: castclass RimWorld.Hive
IL_0066: // end original
IL_0066: stloc 1 (RimWorld.Hive)
IL_006A: ldarg.0
IL_006B: ldloca 1 (RimWorld.Hive)
IL_006F: ldarg 1
IL_0073: call static System.Void
VFEI.LordToil_HiveRelated_FindClosestHive_Postfix::PostFix(RimWorld.LordToil_HiveRe
lated __instance, RimWorld.Hive& __result, Verse.Pawn pawn)
IL_0078: ldloc 1 (RimWorld.Hive)
IL_007C: ret
DONE

### Patch: System.Boolean RimWorld.Faction::get_HasGoodwill()


### Replacement: static System.Boolean
RimWorld.Faction::RimWorld.Faction.get_HasGoodwill_Patch1(RimWorld.Faction this)
IL_0000: Local var 0: System.Boolean
IL_0000: ldc.i4 0
IL_0005: stloc 0 (System.Boolean)
IL_0009: // start original
IL_0009: ldarg.0
IL_000A: call System.Boolean RimWorld.Faction::get_Hidden()
IL_000F: brtrue => Label0
IL_0014: ldarg.0
IL_0015: ldfld System.Boolean RimWorld.Faction::temporary
IL_001A: ldc.i4.0
IL_001B: ceq
IL_001D: br => Label1
IL_0022: Label0
IL_0022: ldc.i4.0
IL_0023: // end original
IL_0023: Label1
IL_0023: stloc 0 (System.Boolean)
IL_0027: ldarga 0
IL_002B: ldloca 0 (System.Boolean)
IL_002F: call static System.Void
VFEI.Faction_HasGoodwill_Postfix::PostFix(RimWorld.Faction& __instance,
System.Boolean& __result)
IL_0034: ldloc 0 (System.Boolean)
IL_0038: ret
DONE

### Patch: virtual System.Void Verse.CompGlower::PostSpawnSetup(System.Boolean


respawningAfterLoad)
### Replacement: static System.Void
Verse.CompGlower::Verse.CompGlower.PostSpawnSetup_Patch1(Verse.CompGlower this,
System.Boolean respawningAfterLoad)
IL_0000: Local var 0: System.Boolean
IL_0000: ldc.i4 0
IL_0005: stloc 0 (System.Boolean)
IL_0009: ldc.i4.1
IL_000A: stloc 0 (System.Boolean)
IL_000E: ldloc 0 (System.Boolean)
IL_0012: brfalse => Label1
IL_0017: ldarga 0
IL_001B: call static System.Boolean
VFEI.CompGlower_PostSpawnSetup_Prefix::Prefix(Verse.CompGlower& __instance)
IL_0020: stloc 0 (System.Boolean)
IL_0024: Label1
IL_0024: nop
IL_0025: ldloc 0 (System.Boolean)
IL_0029: brfalse => Label0
IL_002E: // start original
IL_002E: ldarg.0
IL_002F: callvirt virtual System.Boolean Verse.CompGlower::get_ShouldBeLitNow()
IL_0034: brfalse => Label2
IL_0039: ldarg.0
IL_003A: ldarg.0
IL_003B: ldfld Verse.ThingWithComps Verse.ThingComp::parent
IL_0040: callvirt virtual Verse.Map Verse.Thing::get_Map()
IL_0045: call System.Void Verse.CompGlower::UpdateLit(Verse.Map map)
IL_004A: ldarg.0
IL_004B: ldfld Verse.ThingWithComps Verse.ThingComp::parent
IL_0050: callvirt virtual Verse.Map Verse.Thing::get_Map()
IL_0055: ldfld Verse.GlowGrid Verse.Map::glowGrid
IL_005A: ldarg.0
IL_005B: callvirt System.Void Verse.GlowGrid::RegisterGlower(Verse.CompGlower
newGlow)
IL_0060: br => Label3
IL_0065: Label2
IL_0065: ldarg.0
IL_0066: ldarg.0
IL_0067: ldfld Verse.ThingWithComps Verse.ThingComp::parent
IL_006C: callvirt virtual Verse.Map Verse.Thing::get_Map()
IL_0071: call System.Void Verse.CompGlower::UpdateLit(Verse.Map map)
IL_0076: // end original
IL_0076: Label3
IL_0076: Label0
IL_0076: ret
DONE

### Patch: virtual System.Void Verse.CompGlower::ReceiveCompSignal(System.String


signal)
### Replacement: static System.Void
Verse.CompGlower::Verse.CompGlower.ReceiveCompSignal_Patch2(Verse.CompGlower this,
System.String signal)
IL_0000: // start original
IL_0000: ldarg.1
IL_0001: ldstr "PowerTurnedOn"
IL_0006: call static System.Boolean System.String::op_Equality(System.String
a, System.String b)
IL_000B: brtrue => Label0
IL_0010: ldarg.1
IL_0011: ldstr "PowerTurnedOff"
IL_0016: call static System.Boolean System.String::op_Equality(System.String
a, System.String b)
IL_001B: brtrue => Label1
IL_0020: ldarg.1
IL_0021: ldstr "FlickedOn"
IL_0026: call static System.Boolean System.String::op_Equality(System.String
a, System.String b)
IL_002B: brtrue => Label2
IL_0030: ldarg.1
IL_0031: ldstr "FlickedOff"
IL_0036: call static System.Boolean System.String::op_Equality(System.String
a, System.String b)
IL_003B: brtrue => Label3
IL_0040: ldarg.1
IL_0041: ldstr "Refueled"
IL_0046: call static System.Boolean System.String::op_Equality(System.String
a, System.String b)
IL_004B: brtrue => Label4
IL_0050: ldarg.1
IL_0051: ldstr "RanOutOfFuel"
IL_0056: call static System.Boolean System.String::op_Equality(System.String
a, System.String b)
IL_005B: brtrue => Label5
IL_0060: ldarg.1
IL_0061: ldstr "ScheduledOn"
IL_0066: call static System.Boolean System.String::op_Equality(System.String
a, System.String b)
IL_006B: brtrue => Label6
IL_0070: ldarg.1
IL_0071: ldstr "ScheduledOff"
IL_0076: call static System.Boolean System.String::op_Equality(System.String
a, System.String b)
IL_007B: brtrue => Label7
IL_0080: ldarg.1
IL_0081: ldstr "MechClusterDefeated"
IL_0086: call static System.Boolean System.String::op_Equality(System.String
a, System.String b)
IL_008B: brtrue => Label8
IL_0090: ldarg.1
IL_0091: ldstr "Hackend"
IL_0096: call static System.Boolean System.String::op_Equality(System.String
a, System.String b)
IL_009B: brtrue => Label9
IL_00A0: ldarg.1
IL_00A1: ldstr "RitualTargetChanged"
IL_00A6: call static System.Boolean System.String::op_Equality(System.String
a, System.String b)
IL_00AB: brtrue => Label10
IL_00B0: ldarg.1
IL_00B1: ldstr "CrateContentsChanged"
IL_00B6: call static System.Boolean System.String::op_Equality(System.String
a, System.String b)
IL_00BB: brfalse => Label11
IL_00C0: Label0
IL_00C0: Label1
IL_00C0: Label2
IL_00C0: Label3
IL_00C0: Label4
IL_00C0: Label5
IL_00C0: Label6
IL_00C0: Label7
IL_00C0: Label8
IL_00C0: Label9
IL_00C0: Label10
IL_00C0: ldarg.0
IL_00C1: ldarg.0
IL_00C2: ldfld Verse.ThingWithComps Verse.ThingComp::parent
IL_00C7: callvirt virtual Verse.Map Verse.Thing::get_Map()
IL_00CC: call System.Void Verse.CompGlower::UpdateLit(Verse.Map map)
IL_00D1: // end original
IL_00D1: Label11
IL_00D1: ldarg 1
IL_00D5: ldarg.0
IL_00D6: ldfld Verse.ThingWithComps Verse.ThingComp::parent
IL_00DB: ldarg.0
IL_00DC: call static System.Void
PipeSystem.ReceiveCompSignal_Postfix::Postfix(System.String signal,
Verse.ThingWithComps ___parent, Verse.CompGlower __instance)
IL_00E1: ldarg 1
IL_00E5: ldarga 0
IL_00E9: call static System.Void
VFEI.CompGlower_ReceiveCompSignal_Postfix::PostFix(System.String signal,
Verse.CompGlower& __instance)
IL_00EE: ret
DONE

### Patch: virtual System.Boolean


RimWorld.IncidentWorker_Infestation::TryExecuteWorker(RimWorld.IncidentParms parms)
### Replacement: static System.Boolean
RimWorld.IncidentWorker_Infestation::RimWorld.IncidentWorker_Infestation.TryExecute
Worker_Patch1(RimWorld.IncidentWorker_Infestation this, RimWorld.IncidentParms
parms)
IL_0000: Local var 0: Verse.Map
IL_0000: Local var 1: Verse.Thing
IL_0000: Local var 2: System.Nullable`1<System.Single>
IL_0000: Local var 3: System.Boolean
IL_0000: Local var 4: System.Boolean
IL_0000: ldc.i4 0
IL_0005: stloc 3 (System.Boolean)
IL_0009: ldc.i4 0
IL_000E: stloc 4 (System.Boolean)
IL_0012: ldc.i4.1
IL_0013: stloc 4 (System.Boolean)
IL_0017: ldloc 4 (System.Boolean)
IL_001B: brfalse => Label1
IL_0020: ldarg 1
IL_0024: ldloca 3 (System.Boolean)
IL_0028: call static System.Boolean
VFEI.IncidentWorker_Infestation_TryExecuteWorker_Prefix::Prefix(RimWorld.IncidentPa
rms parms, System.Boolean& __result)
IL_002D: stloc 4 (System.Boolean)
IL_0031: Label1
IL_0031: nop
IL_0032: ldloc 4 (System.Boolean)
IL_0036: brfalse => Label0
IL_003B: // start original
IL_003B: ldarg.1
IL_003C: ldfld RimWorld.IIncidentTarget RimWorld.IncidentParms::target
IL_0041: castclass Verse.Map
IL_0046: stloc.0
IL_0047: ldarg.1
IL_0048: dup
IL_0049: ldfld System.Single RimWorld.IncidentParms::points
IL_004E: ldsfld Verse.SimpleCurve
RimWorld.IncidentWorker_Infestation::PointsFactorCurve
IL_0053: ldarg.1
IL_0054: ldfld System.Single RimWorld.IncidentParms::points
IL_0059: callvirt System.Single Verse.SimpleCurve::Evaluate(System.Single x)
IL_005E: mul
IL_005F: stfld System.Single RimWorld.IncidentParms::points
IL_0064: ldarg.1
IL_0065: ldfld System.Single RimWorld.IncidentParms::points
IL_006A: ldc.r4 220
IL_006F: div
IL_0070: call static System.Int32 Verse.GenMath::RoundRandom(System.Single f)
IL_0075: ldc.i4.1
IL_0076: call static System.Int32 UnityEngine.Mathf::Max(System.Int32 a,
System.Int32 b)
IL_007B: ldloc.0
IL_007C: ldc.i4.0
IL_007D: ldarg.1
IL_007E: ldflda System.Nullable`1<Verse.IntVec3>
RimWorld.IncidentParms::infestationLocOverride
IL_0083: call System.Boolean System.Nullable`1<Verse.IntVec3>::get_HasValue()
IL_0088: ldnull
IL_0089: ldarg.1
IL_008A: ldfld System.Nullable`1<Verse.IntVec3>
RimWorld.IncidentParms::infestationLocOverride
IL_008F: ldloca.s 2 (System.Nullable`1[System.Single])
IL_0091: initobj System.Nullable`1[System.Single]
IL_0097: ldloc.2
IL_0098: call static Verse.Thing
RimWorld.InfestationUtility::SpawnTunnels(System.Int32 hiveCount, Verse.Map map,
System.Boolean spawnAnywhereIfNoGoodCell, System.Boolean ignoreRoofedRequirement,
System.String questTag, System.Nullable`1<Verse.IntVec3> overrideLoc,
System.Nullable`1<System.Single> insectsPoints)
IL_009D: stloc.1
IL_009E: ldarg.0
IL_009F: ldarg.1
IL_00A0: ldloc.1
IL_00A1: call static Verse.LookTargets
Verse.LookTargets::op_Implicit(Verse.Thing t)
IL_00A6: call static Verse.NamedArgument[] System.Array::Empty()
IL_00AB: call System.Void
RimWorld.IncidentWorker::SendStandardLetter(RimWorld.IncidentParms parms,
Verse.LookTargets lookTargets, Verse.NamedArgument[] textArgs)
IL_00B0: call static Verse.TickManager Verse.Find::get_TickManager()
IL_00B5: ldfld Verse.TimeSlower Verse.TickManager::slower
IL_00BA: callvirt System.Void Verse.TimeSlower::SignalForceNormalSpeedShort()
IL_00BF: ldc.i4.1
IL_00C0: // end original
IL_00C0: stloc 3 (System.Boolean)
IL_00C4: Label0
IL_00C4: ldloc 3 (System.Boolean)
IL_00C8: ret
DONE

### Patch: virtual Verse.AI.Job


RimWorld.JobGiver_MaintainHives::TryGiveJob(Verse.Pawn pawn)
### Replacement: static Verse.AI.Job
RimWorld.JobGiver_MaintainHives::RimWorld.JobGiver_MaintainHives.TryGiveJob_Patch0(
RimWorld.JobGiver_MaintainHives this, Verse.Pawn pawn)
IL_0000: Local var 0: Verse.Room
IL_0000: Local var 1: System.Int32
IL_0000: Local var 2: Verse.IntVec3
IL_0000: Local var 3: RimWorld.Hive
IL_0000: Local var 4: RimWorld.CompMaintainable
IL_0000: // start original
IL_0000: ldarg.1
IL_0001: ldc.i4.s 15
IL_0003: call static Verse.Room Verse.RegionAndRoomQuery::GetRoom(Verse.Thing
thing, Verse.RegionType allowedRegionTypes)
IL_0008: stloc.0
IL_0009: ldc.i4.0
IL_000A: stloc.1
IL_000B: br => Label0
IL_0010: Label8
IL_0010: ldarg.1
IL_0011: callvirt virtual Verse.IntVec3 Verse.Thing::get_Position()
IL_0016: ldsfld Verse.IntVec3[] Verse.GenRadial::RadialPattern
IL_001B: ldloc.1
IL_001C: ldelem Verse.IntVec3
IL_0021: call static Verse.IntVec3 Verse.IntVec3::op_Addition(Verse.IntVec3
a, Verse.IntVec3 b)
IL_0026: stloc.2
IL_0027: ldloc.2
IL_0028: ldarg.1
IL_0029: callvirt virtual Verse.Map Verse.Thing::get_Map()
IL_002E: call static System.Boolean Verse.GenGrid::InBounds(Verse.IntVec3 c,
Verse.Map map)
IL_0033: brfalse => Label1
IL_0038: ldloc.2
IL_0039: ldarg.1
IL_003A: callvirt virtual Verse.Map Verse.Thing::get_Map()
IL_003F: call static Verse.Room Verse.GridsUtility::GetRoom(Verse.IntVec3
loc, Verse.Map map)
IL_0044: ldloc.0
IL_0045: bne.un => Label2
IL_004A: ldarg.1
IL_004B: callvirt virtual Verse.Map Verse.Thing::get_Map()
IL_0050: ldfld Verse.ThingGrid Verse.Map::thingGrid
IL_0055: ldloc.2
IL_0056: ldsfld Verse.ThingDef RimWorld.ThingDefOf::Hive
IL_005B: callvirt Verse.Thing Verse.ThingGrid::ThingAt(Verse.IntVec3 c,
Verse.ThingDef def)
IL_0060: castclass RimWorld.Hive
IL_0065: stloc.3
IL_0066: ldarg.1
IL_0067: ldloc.2
IL_0068: call static RimWorld.Hive
VFEI.HarmonyInit::TryFindLargeHive(Verse.Pawn pawn, Verse.IntVec3 intVec3)
IL_006D: stloc.3
IL_006E: ldloc.3
IL_006F: brfalse => Label3
IL_0074: ldarg.1
IL_0075: ldloc.3
IL_0076: call static Verse.LocalTargetInfo
Verse.LocalTargetInfo::op_Implicit(Verse.Thing t)
IL_007B: ldc.i4.1
IL_007C: ldc.i4.m1
IL_007D: ldnull
IL_007E: ldc.i4.0
IL_007F: call static System.Boolean
Verse.AI.ReservationUtility::CanReserve(Verse.Pawn p, Verse.LocalTargetInfo target,
System.Int32 maxPawns, System.Int32 stackCount, Verse.ReservationLayerDef layer,
System.Boolean ignoreOtherReservations)
IL_0084: brfalse => Label4
IL_0089: ldloc.3
IL_008A: call static RimWorld.CompMaintainable
Verse.ThingCompUtility::TryGetComp(Verse.Thing thing)
IL_008F: stloc.s 4 (RimWorld.CompMaintainable)
IL_0091: ldloc.s 4 (RimWorld.CompMaintainable)
IL_0093: callvirt RimWorld.MaintainableStage
RimWorld.CompMaintainable::get_CurStage()
IL_0098: brfalse => Label5
IL_009D: ldarg.0
IL_009E: ldfld System.Boolean
RimWorld.JobGiver_MaintainHives::onlyIfDamagingState
IL_00A3: brfalse => Label6
IL_00A8: ldloc.s 4 (RimWorld.CompMaintainable)
IL_00AA: callvirt RimWorld.MaintainableStage
RimWorld.CompMaintainable::get_CurStage()
IL_00AF: ldc.i4.2
IL_00B0: bne.un => Label7
IL_00B5: Label6
IL_00B5: ldsfld Verse.JobDef RimWorld.JobDefOf::Maintain
IL_00BA: ldloc.3
IL_00BB: call static Verse.LocalTargetInfo
Verse.LocalTargetInfo::op_Implicit(Verse.Thing t)
IL_00C0: call static Verse.AI.Job Verse.JobMaker::MakeJob(Verse.JobDef def,
Verse.LocalTargetInfo targetA)
IL_00C5: br => Label9
IL_00CA: Label1
IL_00CA: Label2
IL_00CA: Label3
IL_00CA: Label4
IL_00CA: Label5
IL_00CA: Label7
IL_00CA: ldloc.1
IL_00CB: ldc.i4.1
IL_00CC: add
IL_00CD: stloc.1
IL_00CE: Label0
IL_00CE: ldloc.1
IL_00CF: conv.r4
IL_00D0: ldsfld System.Single
RimWorld.JobGiver_MaintainHives::CellsInScanRadius
IL_00D5: blt => Label8
IL_00DA: ldnull
IL_00DB: // end original
IL_00DB: Label9
IL_00DB: ret
DONE

### Patch: static System.Collections.Generic.List`1<RimWorld.ThoughtFromIngesting>


RimWorld.FoodUtility::ThoughtsFromIngesting(Verse.Pawn ingester, Verse.Thing
foodSource, Verse.ThingDef foodDef)
### Replacement: static
System.Collections.Generic.List`1<RimWorld.ThoughtFromIngesting>
RimWorld.FoodUtility::RimWorld.FoodUtility.ThoughtsFromIngesting_Patch2(Verse.Pawn
ingester, Verse.Thing foodSource, Verse.ThingDef foodDef)
IL_0000: Local var 0: RimWorld.MeatSourceCategory
IL_0000: Local var 1: RimWorld.CompIngredients
IL_0000: Local var 2: RimWorld.Building_NutrientPasteDispenser
IL_0000: Local var 3: System.Int32
IL_0000: Local var 4: System.Boolean
IL_0000: Local var 5: System.Boolean
IL_0000: Local var 6: System.Int32
IL_0000: Local var 7: System.Boolean
IL_0000: Local var 8: System.Boolean
IL_0000: Local var 9: Verse.Thing
IL_0000: Local var 10: System.Boolean
IL_0000: Local var 11: System.Boolean
IL_0000: Local var 12: System.Boolean
IL_0000: Local var 13: System.Boolean
IL_0000: Local var 14: RimWorld.FoodKind
IL_0000: Local var 15: RimWorld.FoodKind
IL_0000: Local var 16:
System.Collections.Generic.List`1<RimWorld.FoodUtility/ThoughtFromIngesting>
IL_0000: ldnull
IL_0001: stloc 16
(System.Collections.Generic.List`1[RimWorld.FoodUtility+ThoughtFromIngesting])
IL_0005: // start original
IL_0005: ldsfld
System.Collections.Generic.List`1<RimWorld.ThoughtFromIngesting>
RimWorld.FoodUtility::ingestThoughts
IL_000A: callvirt virtual System.Void
System.Collections.Generic.List`1<RimWorld.ThoughtFromIngesting>::Clear()
IL_000F: ldsfld System.Collections.Generic.List`1<RimWorld.ThoughtDef>
RimWorld.FoodUtility::extraIngestThoughtsFromTraits
IL_0014: callvirt virtual System.Void
System.Collections.Generic.List`1<RimWorld.ThoughtDef>::Clear()
IL_0019: ldarg.0
IL_001A: ldfld RimWorld.Pawn_NeedsTracker Verse.Pawn::needs
IL_001F: brfalse => Label0
IL_0024: ldarg.0
IL_0025: ldfld RimWorld.Pawn_NeedsTracker Verse.Pawn::needs
IL_002A: ldfld RimWorld.Need_Mood RimWorld.Pawn_NeedsTracker::mood
IL_002F: brtrue => Label1
IL_0034: Label0
IL_0034: ldsfld
System.Collections.Generic.List`1<RimWorld.ThoughtFromIngesting>
RimWorld.FoodUtility::ingestThoughts
IL_0039: br => Label44
IL_003E: Label1
IL_003E: ldc.i4.0
IL_003F: stloc.0
IL_0040: ldarg.1
IL_0041: ldfld Verse.ThingDef Verse.Thing::def
IL_0046: callvirt System.Boolean Verse.ThingDef::get_IsCorpse()
IL_004B: brfalse => Label2
IL_0050: ldarg.1
IL_0051: call static RimWorld.MeatSourceCategory
RimWorld.FoodUtility::GetMeatSourceCategoryFromCorpse(Verse.Thing thing)
IL_0056: stloc.0
IL_0057: br => Label3
IL_005C: Label2
IL_005C: ldarg.2
IL_005D: call static RimWorld.MeatSourceCategory
RimWorld.FoodUtility::GetMeatSourceCategory(Verse.ThingDef source)
IL_0062: stloc.0
IL_0063: Label3
IL_0063: ldarg.0
IL_0064: ldfld RimWorld.Pawn_StoryTracker Verse.Pawn::story
IL_0069: dup
IL_006A: brtrue => Label4
IL_006F: pop
IL_0070: br => Label5
IL_0075: Label4
IL_0075: ldfld RimWorld.TraitSet RimWorld.Pawn_StoryTracker::traits
IL_007A: dup
IL_007B: brtrue => Label6
IL_0080: pop
IL_0081: br => Label7
IL_0086: Label6
IL_0086: ldsfld System.Collections.Generic.List`1<RimWorld.ThoughtDef>
RimWorld.FoodUtility::extraIngestThoughtsFromTraits
IL_008B: ldarg.2
IL_008C: ldloc.0
IL_008D: ldc.i4.1
IL_008E: call System.Void
RimWorld.TraitSet::GetExtraThoughtsFromIngestion(System.Collections.Generic.List`1<
RimWorld.ThoughtDef> buffer, Verse.ThingDef ingestible, RimWorld.MeatSourceCategory
meatSourceCategory, System.Boolean direct)
IL_0093: Label5
IL_0093: Label7
IL_0093: ldarg.0
IL_0094: ldfld RimWorld.Pawn_StoryTracker Verse.Pawn::story
IL_0099: ldfld RimWorld.TraitSet RimWorld.Pawn_StoryTracker::traits
IL_009E: ldsfld RimWorld.TraitDef RimWorld.TraitDefOf::Ascetic
IL_00A3: callvirt System.Boolean RimWorld.TraitSet::HasTrait(RimWorld.TraitDef
tDef)
IL_00A8: brtrue => Label8
IL_00AD: ldarg.2
IL_00AE: ldfld RimWorld.IngestibleProperties Verse.ThingDef::ingestible
IL_00B3: ldfld RimWorld.ThoughtDef RimWorld.IngestibleProperties::tasteThought
IL_00B8: brfalse => Label9
IL_00BD: ldarg.0
IL_00BE: ldarg.2
IL_00BF: ldfld RimWorld.IngestibleProperties Verse.ThingDef::ingestible
IL_00C4: ldfld RimWorld.ThoughtDef RimWorld.IngestibleProperties::tasteThought
IL_00C9: ldnull
IL_00CA: ldsfld
System.Collections.Generic.List`1<RimWorld.ThoughtFromIngesting>
RimWorld.FoodUtility::ingestThoughts
IL_00CF: ldarg.2
IL_00D0: ldloc.0
IL_00D1: call static System.Void
RimWorld.FoodUtility::TryAddIngestThought(Verse.Pawn ingester, RimWorld.ThoughtDef
def, RimWorld.Precept fromPrecept,
System.Collections.Generic.List`1<RimWorld.ThoughtFromIngesting> ingestThoughts,
Verse.ThingDef foodDef, RimWorld.MeatSourceCategory meatSourceCategory)
IL_00D6: Label8
IL_00D6: Label9
IL_00D6: ldarg.1
IL_00D7: call static RimWorld.CompIngredients
Verse.ThingCompUtility::TryGetComp(Verse.Thing thing)
IL_00DC: stloc.1
IL_00DD: ldarg.1
IL_00DE: isinst RimWorld.Building_NutrientPasteDispenser
IL_00E3: stloc.2
IL_00E4: ldc.i4.0
IL_00E5: stloc.3
IL_00E6: br => Label10
IL_00EB: Label11
IL_00EB: ldarg.0
IL_00EC: ldsfld System.Collections.Generic.List`1<RimWorld.ThoughtDef>
RimWorld.FoodUtility::extraIngestThoughtsFromTraits
IL_00F1: ldloc.3
IL_00F2: callvirt virtual RimWorld.ThoughtDef
System.Collections.Generic.List`1<RimWorld.ThoughtDef>::get_Item(System.Int32
index)
IL_00F7: ldnull
IL_00F8: ldsfld
System.Collections.Generic.List`1<RimWorld.ThoughtFromIngesting>
RimWorld.FoodUtility::ingestThoughts
IL_00FD: ldarg.2
IL_00FE: ldloc.0
IL_00FF: call static System.Void
RimWorld.FoodUtility::TryAddIngestThought(Verse.Pawn ingester, RimWorld.ThoughtDef
def, RimWorld.Precept fromPrecept,
System.Collections.Generic.List`1<RimWorld.ThoughtFromIngesting> ingestThoughts,
Verse.ThingDef foodDef, RimWorld.MeatSourceCategory meatSourceCategory)
IL_0104: ldloc.3
IL_0105: ldc.i4.1
IL_0106: add
IL_0107: stloc.3
IL_0108: Label10
IL_0108: ldloc.3
IL_0109: ldsfld System.Collections.Generic.List`1<RimWorld.ThoughtDef>
RimWorld.FoodUtility::extraIngestThoughtsFromTraits
IL_010E: callvirt virtual System.Int32
System.Collections.Generic.List`1<RimWorld.ThoughtDef>::get_Count()
IL_0113: blt => Label11
IL_0118: ldloc.1
IL_0119: brfalse => Label12
IL_011E: ldc.i4.0
IL_011F: stloc.s 4 (System.Boolean)
IL_0121: ldc.i4.0
IL_0122: stloc.s 5 (System.Boolean)
IL_0124: ldc.i4.0
IL_0125: stloc.s 6 (System.Int32)
IL_0127: br => Label13
IL_012C: Label16
IL_012C: ldloc.1
IL_012D: ldfld System.Collections.Generic.List`1<Verse.ThingDef>
RimWorld.CompIngredients::ingredients
IL_0132: ldloc.s 6 (System.Int32)
IL_0134: callvirt virtual Verse.ThingDef
System.Collections.Generic.List`1<Verse.ThingDef>::get_Item(System.Int32 index)
IL_0139: ldarg.0
IL_013A: ldsfld
System.Collections.Generic.List`1<RimWorld.ThoughtFromIngesting>
RimWorld.FoodUtility::ingestThoughts
IL_013F: ldloca.s 7 (System.Boolean)
IL_0141: ldloca.s 8 (System.Boolean)
IL_0143: call static System.Void
RimWorld.FoodUtility::AddIngestThoughtsFromIngredient(Verse.ThingDef ingredient,
Verse.Pawn ingester,
System.Collections.Generic.List`1<RimWorld.ThoughtFromIngesting> ingestThoughts,
System.Boolean& ateFungus, System.Boolean& ateNonFungusRawPlant)
IL_0148: ldloc.s 7 (System.Boolean)
IL_014A: brfalse => Label14
IL_014F: ldc.i4.1
IL_0150: stloc.s 4 (System.Boolean)
IL_0152: Label14
IL_0152: ldloc.s 8 (System.Boolean)
IL_0154: brfalse => Label15
IL_0159: ldc.i4.1
IL_015A: stloc.s 5 (System.Boolean)
IL_015C: Label15
IL_015C: ldloc.s 6 (System.Int32)
IL_015E: ldc.i4.1
IL_015F: add
IL_0160: stloc.s 6 (System.Int32)
IL_0162: Label13
IL_0162: ldloc.s 6 (System.Int32)
IL_0164: ldloc.1
IL_0165: ldfld System.Collections.Generic.List`1<Verse.ThingDef>
RimWorld.CompIngredients::ingredients
IL_016A: callvirt virtual System.Int32
System.Collections.Generic.List`1<Verse.ThingDef>::get_Count()
IL_016F: blt => Label16
IL_0174: call static System.Boolean Verse.ModsConfig::get_IdeologyActive()
IL_0179: ldloc.s 5 (System.Boolean)
IL_017B: and
IL_017C: brfalse => Label17
IL_0181: ldloc.s 4 (System.Boolean)
IL_0183: brtrue => Label18
IL_0188: ldsfld RimWorld.HistoryEventDef
RimWorld.HistoryEventDefOf::AteNonFungusMealWithPlants
IL_018D: ldarg.0
IL_018E: ldarg.2
IL_018F: ldloc.0
IL_0190: call static System.Void
RimWorld.FoodUtility::AddThoughtsFromIdeo(RimWorld.HistoryEventDef eventDef,
Verse.Pawn ingester, Verse.ThingDef foodDef, RimWorld.MeatSourceCategory
meatSourceCategory)
IL_0195: br => Label19
IL_019A: Label12
IL_019A: ldloc.2
IL_019B: brfalse => Label20
IL_01A0: ldloc.2
IL_01A1: callvirt virtual Verse.Thing
RimWorld.Building_NutrientPasteDispenser::FindFeedInAnyHopper()
IL_01A6: stloc.s 9 (Verse.Thing)
IL_01A8: ldloc.s 9 (Verse.Thing)
IL_01AA: brfalse => Label21
IL_01AF: ldloc.s 9 (Verse.Thing)
IL_01B1: ldfld Verse.ThingDef Verse.Thing::def
IL_01B6: ldarg.0
IL_01B7: ldsfld
System.Collections.Generic.List`1<RimWorld.ThoughtFromIngesting>
RimWorld.FoodUtility::ingestThoughts
IL_01BC: ldloca.s 10 (System.Boolean)
IL_01BE: ldloca.s 11 (System.Boolean)
IL_01C0: call static System.Void
RimWorld.FoodUtility::AddIngestThoughtsFromIngredient(Verse.ThingDef ingredient,
Verse.Pawn ingester,
System.Collections.Generic.List`1<RimWorld.ThoughtFromIngesting> ingestThoughts,
System.Boolean& ateFungus, System.Boolean& ateNonFungusRawPlant)
IL_01C5: Label17
IL_01C5: Label18
IL_01C5: Label19
IL_01C5: Label20
IL_01C5: Label21
IL_01C5: ldarg.2
IL_01C6: ldfld RimWorld.IngestibleProperties Verse.ThingDef::ingestible
IL_01CB: ldfld RimWorld.ThoughtDef
RimWorld.IngestibleProperties::specialThoughtDirect
IL_01D0: brfalse => Label22
IL_01D5: ldarg.0
IL_01D6: ldarg.2
IL_01D7: ldfld RimWorld.IngestibleProperties Verse.ThingDef::ingestible
IL_01DC: ldfld RimWorld.ThoughtDef
RimWorld.IngestibleProperties::specialThoughtDirect
IL_01E1: ldnull
IL_01E2: ldsfld
System.Collections.Generic.List`1<RimWorld.ThoughtFromIngesting>
RimWorld.FoodUtility::ingestThoughts
IL_01E7: ldarg.2
IL_01E8: ldloc.0
IL_01E9: call static System.Void
RimWorld.FoodUtility::TryAddIngestThought(Verse.Pawn ingester, RimWorld.ThoughtDef
def, RimWorld.Precept fromPrecept,
System.Collections.Generic.List`1<RimWorld.ThoughtFromIngesting> ingestThoughts,
Verse.ThingDef foodDef, RimWorld.MeatSourceCategory meatSourceCategory)
IL_01EE: Label22
IL_01EE: ldarg.1
IL_01EF: call static System.Boolean
RimWorld.RottableUtility::IsNotFresh(Verse.Thing t)
IL_01F4: brfalse => Label23
IL_01F9: ldarg.0
IL_01FA: ldsfld RimWorld.ThoughtDef RimWorld.ThoughtDefOf::AteRottenFood
IL_01FF: ldnull
IL_0200: ldsfld
System.Collections.Generic.List`1<RimWorld.ThoughtFromIngesting>
RimWorld.FoodUtility::ingestThoughts
IL_0205: ldarg.2
IL_0206: ldloc.0
IL_0207: call static System.Void
RimWorld.FoodUtility::TryAddIngestThought(Verse.Pawn ingester, RimWorld.ThoughtDef
def, RimWorld.Precept fromPrecept,
System.Collections.Generic.List`1<RimWorld.ThoughtFromIngesting> ingestThoughts,
Verse.ThingDef foodDef, RimWorld.MeatSourceCategory meatSourceCategory)
IL_020C: Label23
IL_020C: call static System.Boolean Verse.ModsConfig::get_RoyaltyActive()
IL_0211: brfalse => Label24
IL_0216: ldarg.2
IL_0217: ldarg.0
IL_0218: ldc.i4.0
IL_0219: call static System.Boolean
RimWorld.FoodUtility::InappropriateForTitle(Verse.ThingDef food, Verse.Pawn p,
System.Boolean allowIfStarving)
IL_021E: brfalse => Label25
IL_0223: ldarg.0
IL_0224: ldsfld RimWorld.ThoughtDef
RimWorld.ThoughtDefOf::AteFoodInappropriateForTitle
IL_0229: ldnull
IL_022A: ldsfld
System.Collections.Generic.List`1<RimWorld.ThoughtFromIngesting>
RimWorld.FoodUtility::ingestThoughts
IL_022F: ldarg.2
IL_0230: ldloc.0
IL_0231: call static System.Void
RimWorld.FoodUtility::TryAddIngestThought(Verse.Pawn ingester, RimWorld.ThoughtDef
def, RimWorld.Precept fromPrecept,
System.Collections.Generic.List`1<RimWorld.ThoughtFromIngesting> ingestThoughts,
Verse.ThingDef foodDef, RimWorld.MeatSourceCategory meatSourceCategory)
IL_0236: Label24
IL_0236: Label25
IL_0236: ldarg.0
IL_0237: callvirt RimWorld.Ideo Verse.Pawn::get_Ideo()
IL_023C: brfalse => Label26
IL_0241: ldarg.1
IL_0242: ldarg.2
IL_0243: call static System.Boolean
RimWorld.FoodUtility::IsHumanlikeCorpseOrHumanlikeMeat(Verse.Thing source,
Verse.ThingDef foodDef)
IL_0248: stloc.s 12 (System.Boolean)
IL_024A: ldarg.1
IL_024B: call static System.Boolean
RimWorld.FoodUtility::IsHumanlikeCorpseOrHumanlikeMeatOrIngredient(Verse.Thing
food)
IL_0250: stloc.s 13 (System.Boolean)
IL_0252: ldloc.s 13 (System.Boolean)
IL_0254: brfalse => Label27
IL_0259: ldsfld RimWorld.HistoryEventDef
RimWorld.HistoryEventDefOf::AteHumanMeat
IL_025E: ldarg.0
IL_025F: ldarg.2
IL_0260: ldloc.0
IL_0261: call static System.Void
RimWorld.FoodUtility::AddThoughtsFromIdeo(RimWorld.HistoryEventDef eventDef,
Verse.Pawn ingester, Verse.ThingDef foodDef, RimWorld.MeatSourceCategory
meatSourceCategory)
IL_0266: ldloc.s 12 (System.Boolean)
IL_0268: brfalse => Label28
IL_026D: ldsfld RimWorld.HistoryEventDef
RimWorld.HistoryEventDefOf::AteHumanMeatDirect
IL_0272: ldarg.0
IL_0273: ldarg.2
IL_0274: ldloc.0
IL_0275: call static System.Void
RimWorld.FoodUtility::AddThoughtsFromIdeo(RimWorld.HistoryEventDef eventDef,
Verse.Pawn ingester, Verse.ThingDef foodDef, RimWorld.MeatSourceCategory
meatSourceCategory)
IL_027A: br => Label29
IL_027F: Label27
IL_027F: ldarg.2
IL_0280: call static System.Boolean
RimWorld.FoodUtility::AcceptableCannibalNonHumanlikeMeatFood(Verse.ThingDef
foodDef)
IL_0285: brtrue => Label30
IL_028A: ldsfld RimWorld.HistoryEventDef
RimWorld.HistoryEventDefOf::AteNonCannibalFood
IL_028F: ldarg.0
IL_0290: ldarg.2
IL_0291: ldloc.0
IL_0292: call static System.Void
RimWorld.FoodUtility::AddThoughtsFromIdeo(RimWorld.HistoryEventDef eventDef,
Verse.Pawn ingester, Verse.ThingDef foodDef, RimWorld.MeatSourceCategory
meatSourceCategory)
IL_0297: Label28
IL_0297: Label29
IL_0297: Label30
IL_0297: ldarg.1
IL_0298: call static RimWorld.FoodKind
RimWorld.FoodUtility::GetFoodKind(Verse.Thing food)
IL_029D: stloc.s 14 (RimWorld.FoodKind)
IL_029F: ldarg.2
IL_02A0: call static RimWorld.FoodKind
RimWorld.FoodUtility::GetFoodKind(Verse.ThingDef foodDef)
IL_02A5: stloc.s 15 (RimWorld.FoodKind)
IL_02A7: ldarg.2
IL_02A8: ldloc.s 14 (RimWorld.FoodKind)
IL_02AA: ldloc.s 15 (RimWorld.FoodKind)
IL_02AC: call static System.Boolean
RimWorld.FoodUtility::AcceptableVegetarian(Verse.ThingDef def, RimWorld.FoodKind
sourceKind, RimWorld.FoodKind defKind)
IL_02B1: brtrue => Label31
IL_02B6: ldloc.s 13 (System.Boolean)
IL_02B8: brtrue => Label32
IL_02BD: ldloc.s 14 (RimWorld.FoodKind)
IL_02BF: ldc.i4.1
IL_02C0: beq => Label33
IL_02C5: ldsfld RimWorld.HistoryEventDef RimWorld.HistoryEventDefOf::AteMeat
IL_02CA: ldarg.0
IL_02CB: ldarg.2
IL_02CC: ldloc.0
IL_02CD: call static System.Void
RimWorld.FoodUtility::AddThoughtsFromIdeo(RimWorld.HistoryEventDef eventDef,
Verse.Pawn ingester, Verse.ThingDef foodDef, RimWorld.MeatSourceCategory
meatSourceCategory)
IL_02D2: br => Label34
IL_02D7: Label31
IL_02D7: ldarg.2
IL_02D8: ldloc.s 14 (RimWorld.FoodKind)
IL_02DA: ldloc.s 15 (RimWorld.FoodKind)
IL_02DC: call static System.Boolean
RimWorld.FoodUtility::AcceptableCarnivore(Verse.ThingDef def, RimWorld.FoodKind
sourceKind, RimWorld.FoodKind defKind)
IL_02E1: brtrue => Label35
IL_02E6: ldsfld RimWorld.HistoryEventDef RimWorld.HistoryEventDefOf::AteNonMeat
IL_02EB: ldarg.0
IL_02EC: ldarg.2
IL_02ED: ldloc.0
IL_02EE: call static System.Void
RimWorld.FoodUtility::AddThoughtsFromIdeo(RimWorld.HistoryEventDef eventDef,
Verse.Pawn ingester, Verse.ThingDef foodDef, RimWorld.MeatSourceCategory
meatSourceCategory)
IL_02F3: Label32
IL_02F3: Label33
IL_02F3: Label34
IL_02F3: Label35
IL_02F3: ldarg.2
IL_02F4: ldarg.0
IL_02F5: ldarg.1
IL_02F6: call static System.Boolean
RimWorld.FoodUtility::IsVeneratedAnimalMeatOrCorpse(Verse.ThingDef foodDef,
Verse.Pawn ingester, Verse.Thing source)
IL_02FB: brfalse => Label36
IL_0300: ldsfld RimWorld.HistoryEventDef
RimWorld.HistoryEventDefOf::AteVeneratedAnimalMeat
IL_0305: ldarg.0
IL_0306: ldarg.2
IL_0307: ldloc.0
IL_0308: call static System.Void
RimWorld.FoodUtility::AddThoughtsFromIdeo(RimWorld.HistoryEventDef eventDef,
Verse.Pawn ingester, Verse.ThingDef foodDef, RimWorld.MeatSourceCategory
meatSourceCategory)
IL_030D: Label36
IL_030D: ldloc.0
IL_030E: ldc.i4.2
IL_030F: bne.un => Label37
IL_0314: ldsfld RimWorld.HistoryEventDef
RimWorld.HistoryEventDefOf::AteInsectMeatDirect
IL_0319: ldarg.0
IL_031A: ldarg.2
IL_031B: ldloc.0
IL_031C: call static System.Void
RimWorld.FoodUtility::AddThoughtsFromIdeo(RimWorld.HistoryEventDef eventDef,
Verse.Pawn ingester, Verse.ThingDef foodDef, RimWorld.MeatSourceCategory
meatSourceCategory)
IL_0321: Label37
IL_0321: call static System.Boolean Verse.ModsConfig::get_IdeologyActive()
IL_0326: brfalse => Label38
IL_032B: ldarg.2
IL_032C: ldfld System.Collections.Generic.List`1<Verse.ThingCategoryDef>
Verse.ThingDef::thingCategories
IL_0331: brfalse => Label39
IL_0336: ldarg.2
IL_0337: ldfld System.Collections.Generic.List`1<Verse.ThingCategoryDef>
Verse.ThingDef::thingCategories
IL_033C: ldsfld Verse.ThingCategoryDef
RimWorld.ThingCategoryDefOf::PlantFoodRaw
IL_0341: callvirt virtual System.Boolean
System.Collections.Generic.List`1<Verse.ThingCategoryDef>::Contains(Verse.ThingCate
goryDef item)
IL_0346: brfalse => Label40
IL_034B: ldarg.2
IL_034C: callvirt System.Boolean Verse.ThingDef::get_IsFungus()
IL_0351: brfalse => Label41
IL_0356: ldsfld RimWorld.HistoryEventDef RimWorld.HistoryEventDefOf::AteFungus
IL_035B: ldarg.0
IL_035C: ldarg.2
IL_035D: ldloc.0
IL_035E: call static System.Void
RimWorld.FoodUtility::AddThoughtsFromIdeo(RimWorld.HistoryEventDef eventDef,
Verse.Pawn ingester, Verse.ThingDef foodDef, RimWorld.MeatSourceCategory
meatSourceCategory)
IL_0363: br => Label42
IL_0368: Label41
IL_0368: ldsfld RimWorld.HistoryEventDef
RimWorld.HistoryEventDefOf::AteNonFungusPlant
IL_036D: ldarg.0
IL_036E: ldarg.2
IL_036F: ldloc.0
IL_0370: call static System.Void
RimWorld.FoodUtility::AddThoughtsFromIdeo(RimWorld.HistoryEventDef eventDef,
Verse.Pawn ingester, Verse.ThingDef foodDef, RimWorld.MeatSourceCategory
meatSourceCategory)
IL_0375: Label38
IL_0375: Label39
IL_0375: Label40
IL_0375: Label42
IL_0375: ldarg.2
IL_0376: ldfld RimWorld.IngestibleProperties Verse.ThingDef::ingestible
IL_037B: ldfld RimWorld.HistoryEventDef
RimWorld.IngestibleProperties::ateEvent
IL_0380: brfalse => Label43
IL_0385: ldarg.2
IL_0386: ldfld RimWorld.IngestibleProperties Verse.ThingDef::ingestible
IL_038B: ldfld RimWorld.HistoryEventDef
RimWorld.IngestibleProperties::ateEvent
IL_0390: ldarg.0
IL_0391: ldarg.2
IL_0392: ldloc.0
IL_0393: call static System.Void
RimWorld.FoodUtility::AddThoughtsFromIdeo(RimWorld.HistoryEventDef eventDef,
Verse.Pawn ingester, Verse.ThingDef foodDef, RimWorld.MeatSourceCategory
meatSourceCategory)
IL_0398: Label26
IL_0398: Label43
IL_0398: ldsfld
System.Collections.Generic.List`1<RimWorld.ThoughtFromIngesting>
RimWorld.FoodUtility::ingestThoughts
IL_039D: // end original
IL_039D: Label44
IL_039D: stloc 16
(System.Collections.Generic.List`1[RimWorld.FoodUtility+ThoughtFromIngesting])
IL_03A1: ldarg 0
IL_03A5: ldarg 1
IL_03A9: ldarg 2
IL_03AD: ldloca 16
(System.Collections.Generic.List`1[RimWorld.FoodUtility+ThoughtFromIngesting])
IL_03B1: call static System.Void
AlienRace.HarmonyPatches::ThoughtsFromIngestingPostfix(Verse.Pawn ingester,
Verse.Thing foodSource, Verse.ThingDef foodDef, System.Collections.Generic.List`1&
__result)
IL_03B6: ldarg 0
IL_03BA: ldloca 16
(System.Collections.Generic.List`1[RimWorld.FoodUtility+ThoughtFromIngesting])
IL_03BE: call static System.Void
VFEI.FoodUtility_ThoughtsFromIngesting_Postfix::PostFix(Verse.Pawn ingester,
System.Collections.Generic.List`1& __result)
IL_03C3: ldloc 16
(System.Collections.Generic.List`1[RimWorld.FoodUtility+ThoughtFromIngesting])
IL_03C7: ret
DONE

### Patch: static System.Boolean


RimWorld.Planet.SettlementDefeatUtility::IsDefeated(Verse.Map map, RimWorld.Faction
faction)
### Replacement: static System.Boolean
RimWorld.Planet.SettlementDefeatUtility::RimWorld.Planet.SettlementDefeatUtility.Is
Defeated_Patch2(Verse.Map map, RimWorld.Faction faction)
IL_0000: Local var 0: System.Collections.Generic.List`1<Verse.Pawn>
IL_0000: Local var 1: System.Int32
IL_0000: Local var 2: Verse.Pawn
IL_0000: Local var 3: System.Boolean
IL_0000: ldc.i4 0
IL_0005: stloc 3 (System.Boolean)
IL_0009: // start original
IL_0009: ldarg.0
IL_000A: ldfld Verse.MapPawns Verse.Map::mapPawns
IL_000F: ldarg.1
IL_0010: callvirt System.Collections.Generic.List`1<Verse.Pawn>
Verse.MapPawns::SpawnedPawnsInFaction(RimWorld.Faction faction)
IL_0015: stloc.0
IL_0016: ldc.i4.0
IL_0017: stloc.1
IL_0018: br => Label0
IL_001D: Label3
IL_001D: ldloc.0
IL_001E: ldloc.1
IL_001F: callvirt virtual Verse.Pawn
System.Collections.Generic.List`1<Verse.Pawn>::get_Item(System.Int32 index)
IL_0024: stloc.2
IL_0025: ldloc.2
IL_0026: callvirt Verse.RaceProperties Verse.Pawn::get_RaceProps()
IL_002B: callvirt System.Boolean Verse.RaceProperties::get_Humanlike()
IL_0030: brfalse => Label1
IL_0035: ldloc.2
IL_0036: call static System.Boolean
RimWorld.GenHostility::IsActiveThreatToPlayer(Verse.AI.IAttackTarget target)
IL_003B: brfalse => Label2
IL_0040: ldc.i4.0
IL_0041: br => Label4
IL_0046: Label1
IL_0046: Label2
IL_0046: ldloc.1
IL_0047: ldc.i4.1
IL_0048: add
IL_0049: stloc.1
IL_004A: Label0
IL_004A: ldloc.1
IL_004B: ldloc.0
IL_004C: callvirt virtual System.Int32
System.Collections.Generic.List`1<Verse.Pawn>::get_Count()
IL_0051: blt => Label3
IL_0056: ldc.i4.1
IL_0057: // end original
IL_0057: Label4
IL_0057: stloc 3 (System.Boolean)
IL_005B: ldarg 0
IL_005F: ldarg 1
IL_0063: ldloc 3 (System.Boolean)
IL_0067: call static System.Void
VanillaStorytellersExpanded.Patch_IsDefeated::Postfix(Verse.Map map,
RimWorld.Faction faction, System.Boolean __result)
IL_006C: ldarg 0
IL_0070: ldarg 1
IL_0074: ldloca 3 (System.Boolean)
IL_0078: call static System.Void
VFEI.SettlementDefeatUtility_IsDefeated_Postfix::PostFix(Verse.Map map,
RimWorld.Faction faction, System.Boolean& __result)
IL_007D: ldloc 3 (System.Boolean)
IL_0081: ret
DONE

### Patch: virtual RimWorld.ThoughtState


RimWorld.ThoughtWorker_Dark::CurrentStateInternal(Verse.Pawn p)
### Replacement: static RimWorld.ThoughtState
RimWorld.ThoughtWorker_Dark::RimWorld.ThoughtWorker_Dark.CurrentStateInternal_Patch
3(RimWorld.ThoughtWorker_Dark this, Verse.Pawn p)
IL_0000: Local var 0: RimWorld.ThoughtState
IL_0000: ldloca 0 (RimWorld.ThoughtState)
IL_0004: initobj RimWorld.ThoughtState
IL_000A: // start original
IL_000A: ldarg.1
IL_000B: call static System.Boolean RimWorld.RestUtility::Awake(Verse.Pawn p)
IL_0010: brfalse => Label0
IL_0015: ldarg.1
IL_0016: ldfld RimWorld.Pawn_NeedsTracker Verse.Pawn::needs
IL_001B: ldfld RimWorld.Need_Mood RimWorld.Pawn_NeedsTracker::mood
IL_0020: ldfld RimWorld.PawnRecentMemory RimWorld.Need_Mood::recentMemory
IL_0025: callvirt System.Int32
RimWorld.PawnRecentMemory::get_TicksSinceLastLight()
IL_002A: ldc.i4 240
IL_002F: ble => Label1
IL_0034: ldarg.1
IL_0035: call static System.Boolean
RimWorld.PawnUtility::IsBiologicallyOrArtificiallyBlind(Verse.Pawn pawn)
IL_003A: brtrue => Label2
IL_003F: ldarg.1
IL_0040: callvirt RimWorld.Ideo Verse.Pawn::get_Ideo()
IL_0045: brfalse => Label3
IL_004A: ldarg.1
IL_004B: callvirt RimWorld.Ideo Verse.Pawn::get_Ideo()
IL_0050: call static System.Boolean
RimWorld.IdeoUtility::IdeoPrefersDarkness(RimWorld.Ideo ideo)
IL_0055: ldc.i4.0
IL_0056: ceq
IL_0058: br => Label4
IL_005D: Label3
IL_005D: ldc.i4.1
IL_005E: br => Label5
IL_0063: Label0
IL_0063: Label1
IL_0063: Label2
IL_0063: ldc.i4.0
IL_0064: Label4
IL_0064: Label5
IL_0064: call static RimWorld.ThoughtState
RimWorld.ThoughtState::op_Implicit(System.Boolean value)
IL_0069: // end original
IL_0069: stloc 0 (RimWorld.ThoughtState)
IL_006D: ldarg 1
IL_0071: ldloca 0 (RimWorld.ThoughtState)
IL_0075: call static System.Void
ATReforged.CurrentStateInternal_Patch::Listener(Verse.Pawn p,
RimWorld.ThoughtState& __result)
IL_007A: ldarg 1
IL_007E: ldloca 0 (RimWorld.ThoughtState)
IL_0082: call static System.Void
CONN.ThoughtWorker_Dark_CurrentStateInternal::Postfix(Verse.Pawn p,
RimWorld.ThoughtState& __result)
IL_0087: ldarg 1
IL_008B: ldloca 0 (RimWorld.ThoughtState)
IL_008F: call static System.Void
VFEI.ThoughtWorker_Dark_CurrentStateInternal_Postfix::PostFix(Verse.Pawn p,
RimWorld.ThoughtState& __result)
IL_0094: ldloc 0 (RimWorld.ThoughtState)
IL_0098: ret
DONE

### Harmony id=OskarPotocki.VanillaFactionsExpandedMechanoids, version=2.2.2.0,


location=C:\Program Files (x86)\Steam\steamapps\common\data-000002130553D010,
env/clr=4.0.30319.42000, platform=Win32NT, ptrsize:runtime/env=8/Bits64, Windows
### Started from static System.Void VFEMech.HarmonyInit::.cctor(), location C:\
Program Files (x86)\Steam\steamapps\common\data-0000021309D5C3B0
### At 2023-02-17 06.57.44
### Patch: static System.Int32 Verse.GenRadial::NumCellsInRadius(System.Single
radius)
### Replacement: static System.Int32
Verse.GenRadial::Verse.GenRadial.NumCellsInRadius_Patch0(System.Single radius)
IL_0000: Local var 0: System.Single
IL_0000: Local var 1: System.Int32
IL_0000: Local var 2: System.Int32
IL_0000: // start original
IL_0000: ldarg.0
IL_0001: call static System.Single
Verse.GenRadial::get_MaxRadialPatternRadius()
IL_0006: blt.un => Label0
IL_000B: ldc.i4.4
IL_000C: newarr System.Object
IL_0011: dup
IL_0012: ldc.i4.0
IL_0013: ldstr "Not enough squares to get to radius "
IL_0018: stelem.ref
IL_0019: dup
IL_001A: ldc.i4.1
IL_001B: ldarg.0
IL_001C: box System.Single
IL_0021: stelem.ref
IL_0022: dup
IL_0023: ldc.i4.2
IL_0024: ldstr ". Max is "
IL_0029: stelem.ref
IL_002A: dup
IL_002B: ldc.i4.3
IL_002C: call static System.Single
Verse.GenRadial::get_MaxRadialPatternRadius()
IL_0031: box System.Single
IL_0036: stelem.ref
IL_0037: call static System.String System.String::Concat(System.Object[]
args)
IL_003C: call static System.Void Verse.Log::Error(System.String text)
IL_0041: ldc.i4 160000
IL_0046: br => Label5
IL_004B: Label0
IL_004B: ldarg.0
IL_004C: ldc.r4 1.401298E-45
IL_0051: add
IL_0052: stloc.0
IL_0053: ldsfld System.Single[] Verse.GenRadial::RadialPatternRadii
IL_0058: ldloc.0
IL_0059: call static System.Int32 System.Array::BinarySearch(System.Single[]
array, System.Single value)
IL_005E: stloc.1
IL_005F: ldloc.1
IL_0060: ldc.i4.0
IL_0061: bge => Label1
IL_0066: ldloc.1
IL_0067: not
IL_0068: br => Label6
IL_006D: Label1
IL_006D: ldloc.1
IL_006E: stloc.2
IL_006F: br => Label2
IL_0074: Label4
IL_0074: ldsfld System.Single[] Verse.GenRadial::RadialPatternRadii
IL_0079: ldloc.2
IL_007A: ldelem.r4
IL_007B: ldloc.0
IL_007C: ble.un => Label3
IL_0081: ldloc.2
IL_0082: br => Label7
IL_0087: Label3
IL_0087: ldloc.2
IL_0088: ldc.i4.1
IL_0089: add
IL_008A: stloc.2
IL_008B: Label2
IL_008B: ldloc.2
IL_008C: ldc.i4 160000
IL_0091: blt => Label4
IL_0096: ldc.i4 160000
IL_009B: // end original
IL_009B: Label5
IL_009B: Label6
IL_009B: Label7
IL_009B: ret
DONE

### Patch: virtual System.Boolean


RimWorld.Planet.Site::ShouldRemoveMapNow(System.Boolean& alsoRemoveWorldObject)
### Replacement: static System.Boolean
RimWorld.Planet.Site::RimWorld.Planet.Site.ShouldRemoveMapNow_Patch2(RimWorld.Plane
t.Site this, System.Boolean& alsoRemoveWorldObject)
IL_0000: Local var 0: System.Boolean
IL_0000: ldc.i4 0
IL_0005: stloc 0 (System.Boolean)
IL_0009: // start original
IL_0009: ldarg.0
IL_000A: call Verse.Map RimWorld.Planet.MapParent::get_Map()
IL_000F: ldfld Verse.MapPawns Verse.Map::mapPawns
IL_0014: callvirt System.Boolean Verse.MapPawns::get_AnyPawnBlockingMapRemoval()
IL_0019: brtrue => Label0
IL_001E: ldarg.1
IL_001F: ldarg.0
IL_0020: ldfld System.Collections.Generic.List`1<RimWorld.Planet.SitePart>
RimWorld.Planet.Site::parts
IL_0025: ldsfld System.Predicate`1<RimWorld.Planet.SitePart>
RimWorld.Planet.<>c::<>9__50_0
IL_002A: dup
IL_002B: brtrue => Label1
IL_0030: pop
IL_0031: ldsfld RimWorld.Planet.<>c RimWorld.Planet.<>c::<>9
IL_0036: ldftn System.Boolean
RimWorld.Planet.<>c::<ShouldRemoveMapNow>b__50_0(RimWorld.Planet.SitePart x)
IL_003C: newobj System.Void
System.Predicate`1<RimWorld.Planet.SitePart>::.ctor(System.Object object,
System.IntPtr method)
IL_0041: dup
IL_0042: stsfld System.Predicate`1<RimWorld.Planet.SitePart>
RimWorld.Planet.<>c::<>9__50_0
IL_0047: Label1
IL_0047: call static System.Boolean
Verse.GenCollection::Any(System.Collections.Generic.List`1<RimWorld.Planet.SitePart
> list, System.Predicate`1<RimWorld.Planet.SitePart> predicate)
IL_004C: ldc.i4.0
IL_004D: ceq
IL_004F: stind.i1
IL_0050: ldarg.0
IL_0051: ldfld System.Collections.Generic.List`1<RimWorld.Planet.SitePart>
RimWorld.Planet.Site::parts
IL_0056: ldsfld System.Predicate`1<RimWorld.Planet.SitePart>
RimWorld.Planet.<>c::<>9__50_1
IL_005B: dup
IL_005C: brtrue => Label2
IL_0061: pop
IL_0062: ldsfld RimWorld.Planet.<>c RimWorld.Planet.<>c::<>9
IL_0067: ldftn System.Boolean
RimWorld.Planet.<>c::<ShouldRemoveMapNow>b__50_1(RimWorld.Planet.SitePart x)
IL_006D: newobj System.Void
System.Predicate`1<RimWorld.Planet.SitePart>::.ctor(System.Object object,
System.IntPtr method)
IL_0072: dup
IL_0073: stsfld System.Predicate`1<RimWorld.Planet.SitePart>
RimWorld.Planet.<>c::<>9__50_1
IL_0078: Label2
IL_0078: call static System.Boolean
Verse.GenCollection::Any(System.Collections.Generic.List`1<RimWorld.Planet.SitePart
> list, System.Predicate`1<RimWorld.Planet.SitePart> predicate)
IL_007D: brfalse => Label3
IL_0082: ldarg.1
IL_0083: ldc.i4.0
IL_0084: stind.i1
IL_0085: Label3
IL_0085: ldc.i4.1
IL_0086: br => Label4
IL_008B: Label0
IL_008B: ldarg.1
IL_008C: ldc.i4.0
IL_008D: stind.i1
IL_008E: ldc.i4.0
IL_008F: // end original
IL_008F: Label4
IL_008F: stloc 0 (System.Boolean)
IL_0093: ldarg.0
IL_0094: ldloca 0 (System.Boolean)
IL_0098: call static System.Void
Rimatomics.Harmony_Site_ShouldRemoveMapNow::Postfix(RimWorld.Planet.DestroyedSettle
ment __instance, System.Boolean& __result)
IL_009D: ldarg.0
IL_009E: ldloca 0 (System.Boolean)
IL_00A2: call static System.Void
VFEM.HarmonyPatches.ShouldRemoveMapNow_Patch::Postfix(RimWorld.Planet.Site
__instance, System.Boolean& __result)
IL_00A7: ldloc 0 (System.Boolean)
IL_00AB: ret
DONE

### Patch: static System.Boolean


RimWorld.GenHostility::AnyHostileActiveThreatTo(Verse.Map map, RimWorld.Faction
faction, Verse.AI.IAttackTarget& threat, System.Boolean countDormantPawnsAsHostile,
System.Boolean canBeFogged)
### Replacement: static System.Boolean
RimWorld.GenHostility::RimWorld.GenHostility.AnyHostileActiveThreatTo_Patch1(Verse.
Map map, RimWorld.Faction faction, Verse.AI.IAttackTarget& threat, System.Boolean
countDormantPawnsAsHostile, System.Boolean canBeFogged)
IL_0000: Local var 0:
System.Collections.Generic.HashSet`1/Enumerator<Verse.AI.IAttackTarget>
IL_0000: Local var 1: Verse.AI.IAttackTarget
IL_0000: Local var 2: Verse.Pawn
IL_0000: Local var 3: System.Boolean
IL_0000: Local var 4: RimWorld.CompCanBeDormant
IL_0000: Local var 5: System.Boolean
IL_0000: ldc.i4 0
IL_0005: stloc 5 (System.Boolean)
IL_0009: // start original
IL_0009: ldarg.0
IL_000A: ldfld Verse.AI.AttackTargetsCache Verse.Map::attackTargetsCache
IL_000F: ldarg.1
IL_0010: callvirt System.Collections.Generic.HashSet`1<Verse.AI.IAttackTarget>
Verse.AI.AttackTargetsCache::TargetsHostileToFaction(RimWorld.Faction f)
IL_0015: callvirt System.Collections.Generic.Enumerator<Verse.AI.IAttackTarget>
System.Collections.Generic.HashSet`1<Verse.AI.IAttackTarget>::GetEnumerator()
IL_001A: stloc.0
.try
{
IL_001B: br => Label0
IL_0020: Label12
IL_0020: ldloca.s 0
(System.Collections.Generic.HashSet`1+Enumerator[Verse.AI.IAttackTarget])
IL_0022: call virtual Verse.AI.IAttackTarget
System.Collections.Generic.Enumerator<Verse.AI.IAttackTarget>::get_Current()
IL_0027: stloc.1
IL_0028: ldloc.1
IL_0029: ldarg.1
IL_002A: call static System.Boolean
RimWorld.GenHostility::IsActiveThreatTo(Verse.AI.IAttackTarget target,
RimWorld.Faction faction)
IL_002F: brfalse => Label1
IL_0034: ldarg.2
IL_0035: ldloc.1
IL_0036: stind.ref
IL_0037: ldc.i4.1
IL_0038: stloc.3
IL_0039: leave => Label2
IL_003E: Label1
IL_003E: ldarg.3
IL_003F: brfalse => Label3
IL_0044: ldloc.1
IL_0045: callvirt abstract virtual Verse.Thing
Verse.AI.IAttackTarget::get_Thing()
IL_004A: ldarg.1
IL_004B: call static System.Boolean
RimWorld.GenHostility::HostileTo(Verse.Thing t, RimWorld.Faction fac)
IL_0050: brfalse => Label4
IL_0055: ldarg.s 4
IL_0057: brtrue => Label5
IL_005C: ldloc.1
IL_005D: callvirt abstract virtual Verse.Thing
Verse.AI.IAttackTarget::get_Thing()
IL_0062: call static System.Boolean
Verse.GridsUtility::Fogged(Verse.Thing t)
IL_0067: brtrue => Label6
IL_006C: Label5
IL_006C: ldloc.1
IL_006D: ldnull
IL_006E: callvirt abstract virtual System.Boolean
Verse.AI.IAttackTarget::ThreatDisabled(Verse.AI.IAttackTargetSearcher disabledFor)
IL_0073: brtrue => Label7
IL_0078: ldloc.1
IL_0079: callvirt abstract virtual Verse.Thing
Verse.AI.IAttackTarget::get_Thing()
IL_007E: isinst Verse.Pawn
IL_0083: dup
IL_0084: stloc.2
IL_0085: brfalse => Label8
IL_008A: ldloc.2
IL_008B: callvirt RimWorld.CompCanBeDormant Verse.ThingWithComps::GetComp()
IL_0090: stloc.s 4 (RimWorld.CompCanBeDormant)
IL_0092: ldloc.s 4 (RimWorld.CompCanBeDormant)
IL_0094: brfalse => Label9
IL_0099: ldloc.s 4 (RimWorld.CompCanBeDormant)
IL_009B: callvirt System.Boolean RimWorld.CompCanBeDormant::get_Awake()
IL_00A0: brtrue => Label10
IL_00A5: ldarg.2
IL_00A6: ldloc.1
IL_00A7: stind.ref
IL_00A8: ldc.i4.1
IL_00A9: stloc.3
IL_00AA: leave => Label11
IL_00AF: Label0
IL_00AF: Label3
IL_00AF: Label4
IL_00AF: Label6
IL_00AF: Label7
IL_00AF: Label8
IL_00AF: Label9
IL_00AF: Label10
IL_00AF: ldloca.s 0
(System.Collections.Generic.HashSet`1+Enumerator[Verse.AI.IAttackTarget])
IL_00B1: call virtual System.Boolean
System.Collections.Generic.Enumerator<Verse.AI.IAttackTarget>::MoveNext()
IL_00B6: brtrue => Label12
IL_00BB: leave => Label13
IL_00C0: leave => (autogenerated)
} // end try
.finally
{
IL_00C5: ldloca.s 0
(System.Collections.Generic.HashSet`1+Enumerator[Verse.AI.IAttackTarget])
IL_00C7: constrained.
System.Collections.Generic.HashSet`1+Enumerator[Verse.AI.IAttackTarget]
IL_00CD: callvirt abstract virtual System.Void
System.IDisposable::Dispose()
IL_00D2: endfinally
IL_00D3: leave => (autogenerated)
} // end handler
IL_00D4: Label13
IL_00D4: ldarg.2
IL_00D5: ldnull
IL_00D6: stind.ref
IL_00D7: ldc.i4.0
IL_00D8: br => Label18
IL_00DD: Label2
IL_00DD: Label11
IL_00DD: ldloc.3
IL_00DE: // end original
IL_00DE: Label18
IL_00DE: stloc 5 (System.Boolean)
IL_00E2: ldloca 5 (System.Boolean)
IL_00E6: ldarg 0
IL_00EA: ldarg 1
IL_00EE: ldarg 2
IL_00F2: call static System.Void
VFEM.HarmonyPatches.AnyHostileActiveThreatTo_Patch::Postfix(System.Boolean&
__result, Verse.Map map, RimWorld.Faction faction, Verse.AI.IAttackTarget& threat)
IL_00F7: ldloc 5 (System.Boolean)
IL_00FB: ret
DONE

### Patch: static System.Boolean


RimWorld.Planet.SettlementDefeatUtility::IsDefeated(Verse.Map map, RimWorld.Faction
faction)
### Replacement: static System.Boolean
RimWorld.Planet.SettlementDefeatUtility::RimWorld.Planet.SettlementDefeatUtility.Is
Defeated_Patch3(Verse.Map map, RimWorld.Faction faction)
IL_0000: Local var 0: System.Collections.Generic.List`1<Verse.Pawn>
IL_0000: Local var 1: System.Int32
IL_0000: Local var 2: Verse.Pawn
IL_0000: Local var 3: System.Boolean
IL_0000: ldc.i4 0
IL_0005: stloc 3 (System.Boolean)
IL_0009: // start original
IL_0009: ldarg.0
IL_000A: ldfld Verse.MapPawns Verse.Map::mapPawns
IL_000F: ldarg.1
IL_0010: callvirt System.Collections.Generic.List`1<Verse.Pawn>
Verse.MapPawns::SpawnedPawnsInFaction(RimWorld.Faction faction)
IL_0015: stloc.0
IL_0016: ldc.i4.0
IL_0017: stloc.1
IL_0018: br => Label0
IL_001D: Label3
IL_001D: ldloc.0
IL_001E: ldloc.1
IL_001F: callvirt virtual Verse.Pawn
System.Collections.Generic.List`1<Verse.Pawn>::get_Item(System.Int32 index)
IL_0024: stloc.2
IL_0025: ldloc.2
IL_0026: callvirt Verse.RaceProperties Verse.Pawn::get_RaceProps()
IL_002B: callvirt System.Boolean Verse.RaceProperties::get_Humanlike()
IL_0030: brfalse => Label1
IL_0035: ldloc.2
IL_0036: call static System.Boolean
RimWorld.GenHostility::IsActiveThreatToPlayer(Verse.AI.IAttackTarget target)
IL_003B: brfalse => Label2
IL_0040: ldc.i4.0
IL_0041: br => Label4
IL_0046: Label1
IL_0046: Label2
IL_0046: ldloc.1
IL_0047: ldc.i4.1
IL_0048: add
IL_0049: stloc.1
IL_004A: Label0
IL_004A: ldloc.1
IL_004B: ldloc.0
IL_004C: callvirt virtual System.Int32
System.Collections.Generic.List`1<Verse.Pawn>::get_Count()
IL_0051: blt => Label3
IL_0056: ldc.i4.1
IL_0057: // end original
IL_0057: Label4
IL_0057: stloc 3 (System.Boolean)
IL_005B: ldarg 0
IL_005F: ldarg 1
IL_0063: ldloc 3 (System.Boolean)
IL_0067: call static System.Void
VanillaStorytellersExpanded.Patch_IsDefeated::Postfix(Verse.Map map,
RimWorld.Faction faction, System.Boolean __result)
IL_006C: ldarg 0
IL_0070: ldarg 1
IL_0074: ldloca 3 (System.Boolean)
IL_0078: call static System.Void
VFEI.SettlementDefeatUtility_IsDefeated_Postfix::PostFix(Verse.Map map,
RimWorld.Faction faction, System.Boolean& __result)
IL_007D: ldarg 0
IL_0081: ldarg 1
IL_0085: ldloca 3 (System.Boolean)
IL_0089: call static System.Void
VFEM.HarmonyPatches.SettlementDefeatedUtility_Patch::Postfix(Verse.Map map,
RimWorld.Faction faction, System.Boolean& __result)
IL_008E: ldloc 3 (System.Boolean)
IL_0092: ret
DONE

### Patch: static System.Void


RimWorld.Planet.SettlementDefeatUtility::CheckDefeated(RimWorld.Planet.Settlement
factionBase)
### Replacement: static System.Void
RimWorld.Planet.SettlementDefeatUtility::RimWorld.Planet.SettlementDefeatUtility.Ch
eckDefeated_Patch1(RimWorld.Planet.Settlement factionBase)
IL_0000: Local var 0: Verse.Map
IL_0000: Local var 1: RimWorld.Planet.DestroyedSettlement
IL_0000: Local var 2: RimWorld.Planet.TimedDetectionRaids
IL_0000: Local var 3: System.Text.StringBuilder
IL_0000: Local var 4: System.Collections.Generic.IEnumerator`1<RimWorld.Faction>
IL_0000: Local var 5: RimWorld.Faction
IL_0000: Local var 6: RimWorld.FactionRelationKind
IL_0000: Local var 7: System.Nullable`1<RimWorld.Planet.GlobalTargetInfo>
IL_0000: Local var 8: System.Boolean
IL_0000: ldc.i4 0
IL_0005: stloc 8 (System.Boolean)
IL_0009: ldc.i4.1
IL_000A: stloc 8 (System.Boolean)
IL_000E: ldloc 8 (System.Boolean)
IL_0012: brfalse => Label1
IL_0017: ldarg 0
IL_001B: call static System.Boolean
VFEM.HarmonyPatches.Faction_Patch::Prefix(RimWorld.Planet.Settlement factionBase)
IL_0020: stloc 8 (System.Boolean)
IL_0024: Label1
IL_0024: nop
IL_0025: ldloc 8 (System.Boolean)
IL_0029: brfalse => Label0
IL_002E: // start original
IL_002E: ldarg.0
IL_002F: callvirt virtual RimWorld.Faction
RimWorld.Planet.WorldObject::get_Faction()
IL_0034: call static RimWorld.Faction RimWorld.Faction::get_OfPlayer()
IL_0039: bne.un => Label2
IL_003E: br => Label14
IL_0043: Label2
IL_0043: ldarg.0
IL_0044: callvirt Verse.Map RimWorld.Planet.MapParent::get_Map()
IL_0049: stloc.0
IL_004A: ldloc.0
IL_004B: brfalse => Label3
IL_0050: ldloc.0
IL_0051: ldarg.0
IL_0052: callvirt virtual RimWorld.Faction
RimWorld.Planet.WorldObject::get_Faction()
IL_0057: call static System.Boolean
RimWorld.Planet.SettlementDefeatUtility::IsDefeated(Verse.Map map, RimWorld.Faction
faction)
IL_005C: brtrue => Label4
IL_0061: Label3
IL_0061: br => Label15
IL_0066: Label4
IL_0066: ldloc.0
IL_0067: ldfld Verse.MapPawns Verse.Map::mapPawns
IL_006C: callvirt System.Collections.Generic.List`1<Verse.Pawn>
Verse.MapPawns::get_FreeColonistsSpawned()
IL_0071: call static System.Void
RimWorld.IdeoUtility::Notify_PlayerRaidedSomeone(System.Collections.Generic.IEnumer
able`1<Verse.Pawn> allRaiders)
IL_0076: ldsfld RimWorld.WorldObjectDef
RimWorld.WorldObjectDefOf::DestroyedSettlement
IL_007B: call static RimWorld.Planet.WorldObject
RimWorld.Planet.WorldObjectMaker::MakeWorldObject(RimWorld.WorldObjectDef def)
IL_0080: castclass RimWorld.Planet.DestroyedSettlement
IL_0085: stloc.1
IL_0086: ldloc.1
IL_0087: ldarg.0
IL_0088: callvirt virtual System.Int32 RimWorld.Planet.WorldObject::get_Tile()
IL_008D: callvirt System.Void RimWorld.Planet.WorldObject::set_Tile(System.Int32
value)
IL_0092: ldloc.1
IL_0093: ldarg.0
IL_0094: callvirt virtual RimWorld.Faction
RimWorld.Planet.WorldObject::get_Faction()
IL_0099: callvirt virtual System.Void
RimWorld.Planet.WorldObject::SetFaction(RimWorld.Faction newFaction)
IL_009E: call static RimWorld.Planet.WorldObjectsHolder
Verse.Find::get_WorldObjects()
IL_00A3: ldloc.1
IL_00A4: callvirt System.Void
RimWorld.Planet.WorldObjectsHolder::Add(RimWorld.Planet.WorldObject o)
IL_00A9: ldloc.1
IL_00AA: callvirt RimWorld.Planet.TimedDetectionRaids
RimWorld.Planet.WorldObject::GetComponent()
IL_00AF: stloc.2
IL_00B0: ldloc.2
IL_00B1: ldarg.0
IL_00B2: callvirt RimWorld.Planet.TimedDetectionRaids
RimWorld.Planet.WorldObject::GetComponent()
IL_00B7: callvirt System.Void
RimWorld.Planet.TimedDetectionRaids::CopyFrom(RimWorld.Planet.TimedDetectionRaids
other)
IL_00BC: ldloc.2
IL_00BD: callvirt System.Void
RimWorld.Planet.TimedDetectionRaids::SetNotifiedSilently()
IL_00C2: newobj System.Void System.Text.StringBuilder::.ctor()
IL_00C7: stloc.3
IL_00C8: ldloc.3
IL_00C9: ldstr "LetterFactionBaseDefeated"
IL_00CE: ldarg.0
IL_00CF: callvirt virtual System.String RimWorld.Planet.WorldObject::get_Label()
IL_00D4: call static Verse.NamedArgument
Verse.NamedArgument::op_Implicit(System.String value)
IL_00D9: ldloc.2
IL_00DA: callvirt System.String
RimWorld.Planet.TimedDetectionRaids::get_DetectionCountdownTimeLeftString()
IL_00DF: call static Verse.NamedArgument
Verse.NamedArgument::op_Implicit(System.String value)
IL_00E4: call static Verse.TaggedString
Verse.TranslatorFormattedStringExtensions::Translate(System.String key,
Verse.NamedArgument arg1, Verse.NamedArgument arg2)
IL_00E9: call static System.String
Verse.TaggedString::op_Implicit(Verse.TaggedString taggedString)
IL_00EE: callvirt System.Text.StringBuilder
System.Text.StringBuilder::Append(System.String value)
IL_00F3: pop
IL_00F4: ldarg.0
IL_00F5: call static System.Boolean
RimWorld.Planet.SettlementDefeatUtility::HasAnyOtherBase(RimWorld.Planet.Settlement
defeatedFactionBase)
IL_00FA: brtrue => Label5
IL_00FF: ldarg.0
IL_0100: callvirt virtual RimWorld.Faction
RimWorld.Planet.WorldObject::get_Faction()
IL_0105: ldc.i4.1
IL_0106: stfld System.Boolean RimWorld.Faction::defeated
IL_010B: ldloc.3
IL_010C: callvirt System.Text.StringBuilder
System.Text.StringBuilder::AppendLine()
IL_0111: pop
IL_0112: ldloc.3
IL_0113: callvirt System.Text.StringBuilder
System.Text.StringBuilder::AppendLine()
IL_0118: pop
IL_0119: ldloc.3
IL_011A: ldstr "LetterFactionBaseDefeated_FactionDestroyed"
IL_011F: ldarg.0
IL_0120: callvirt virtual RimWorld.Faction
RimWorld.Planet.WorldObject::get_Faction()
IL_0125: callvirt System.String RimWorld.Faction::get_Name()
IL_012A: call static Verse.NamedArgument
Verse.NamedArgument::op_Implicit(System.String value)
IL_012F: call static Verse.TaggedString
Verse.TranslatorFormattedStringExtensions::Translate(System.String key,
Verse.NamedArgument arg1)
IL_0134: call static System.String
Verse.TaggedString::op_Implicit(Verse.TaggedString taggedString)
IL_0139: callvirt System.Text.StringBuilder
System.Text.StringBuilder::Append(System.String value)
IL_013E: pop
IL_013F: Label5
IL_013F: call static RimWorld.FactionManager Verse.Find::get_FactionManager()
IL_0144: callvirt System.Collections.Generic.IEnumerable`1<RimWorld.Faction>
RimWorld.FactionManager::get_AllFactions()
IL_0149: callvirt abstract virtual
System.Collections.Generic.IEnumerator`1<RimWorld.Faction>
System.Collections.Generic.IEnumerable`1<RimWorld.Faction>::GetEnumerator()
IL_014E: stloc.s 4 (System.Collections.Generic.IEnumerator`1[RimWorld.Faction])
.try
{
IL_0150: br => Label6
IL_0155: Label11
IL_0155: ldloc.s 4
(System.Collections.Generic.IEnumerator`1[RimWorld.Faction])
IL_0157: callvirt abstract virtual RimWorld.Faction
System.Collections.Generic.IEnumerator`1<RimWorld.Faction>::get_Current()
IL_015C: stloc.s 5 (RimWorld.Faction)
IL_015E: ldloc.s 5 (RimWorld.Faction)
IL_0160: callvirt System.Boolean RimWorld.Faction::get_Hidden()
IL_0165: brtrue => Label7
IL_016A: ldloc.s 5 (RimWorld.Faction)
IL_016C: callvirt System.Boolean RimWorld.Faction::get_IsPlayer()
IL_0171: brtrue => Label8
IL_0176: ldloc.s 5 (RimWorld.Faction)
IL_0178: ldarg.0
IL_0179: callvirt virtual RimWorld.Faction
RimWorld.Planet.WorldObject::get_Faction()
IL_017E: beq => Label9
IL_0183: ldloc.s 5 (RimWorld.Faction)
IL_0185: ldarg.0
IL_0186: callvirt virtual RimWorld.Faction
RimWorld.Planet.WorldObject::get_Faction()
IL_018B: call static System.Boolean
RimWorld.FactionUtility::HostileTo(RimWorld.Faction fac, RimWorld.Faction other)
IL_0190: brfalse => Label10
IL_0195: ldloc.s 5 (RimWorld.Faction)
IL_0197: callvirt RimWorld.FactionRelationKind
RimWorld.Faction::get_PlayerRelationKind()
IL_019C: stloc.s 6 (RimWorld.FactionRelationKind)
IL_019E: call static RimWorld.Faction RimWorld.Faction::get_OfPlayer()
IL_01A3: ldloc.s 5 (RimWorld.Faction)
IL_01A5: ldc.i4.s 20
IL_01A7: ldc.i4.0
IL_01A8: ldc.i4.0
IL_01A9: ldsfld RimWorld.HistoryEventDef
RimWorld.HistoryEventDefOf::DestroyedEnemyBase
IL_01AE: ldloca.s 7 (System.Nullable`1[RimWorld.Planet.GlobalTargetInfo])
IL_01B0: initobj System.Nullable`1[RimWorld.Planet.GlobalTargetInfo]
IL_01B6: ldloc.s 7 (System.Nullable`1[RimWorld.Planet.GlobalTargetInfo])
IL_01B8: callvirt System.Boolean
RimWorld.Faction::TryAffectGoodwillWith(RimWorld.Faction other, System.Int32
goodwillChange, System.Boolean canSendMessage, System.Boolean
canSendHostilityLetter, RimWorld.HistoryEventDef reason,
System.Nullable`1<RimWorld.Planet.GlobalTargetInfo> lookTarget)
IL_01BD: pop
IL_01BE: ldloc.3
IL_01BF: callvirt System.Text.StringBuilder
System.Text.StringBuilder::AppendLine()
IL_01C4: pop
IL_01C5: ldloc.3
IL_01C6: callvirt System.Text.StringBuilder
System.Text.StringBuilder::AppendLine()
IL_01CB: pop
IL_01CC: ldloc.3
IL_01CD: ldstr "RelationsWith"
IL_01D2: ldloc.s 5 (RimWorld.Faction)
IL_01D4: callvirt System.String RimWorld.Faction::get_Name()
IL_01D9: call static Verse.NamedArgument
Verse.NamedArgument::op_Implicit(System.String value)
IL_01DE: call static Verse.TaggedString
Verse.TranslatorFormattedStringExtensions::Translate(System.String key,
Verse.NamedArgument arg1)
IL_01E3: ldstr ": "
IL_01E8: call static Verse.TaggedString
Verse.TaggedString::op_Addition(Verse.TaggedString t1, System.String t2)
IL_01ED: ldc.i4.s 20
IL_01EF: call static System.String
Verse.GenText::ToStringWithSign(System.Int32 i)
IL_01F4: call static Verse.TaggedString
Verse.TaggedString::op_Addition(Verse.TaggedString t1, System.String t2)
IL_01F9: call static System.String
Verse.TaggedString::op_Implicit(Verse.TaggedString taggedString)
IL_01FE: callvirt System.Text.StringBuilder
System.Text.StringBuilder::Append(System.String value)
IL_0203: pop
IL_0204: ldloc.s 5 (RimWorld.Faction)
IL_0206: ldloc.3
IL_0207: ldloc.s 6 (RimWorld.FactionRelationKind)
IL_0209: ldloc.s 5 (RimWorld.Faction)
IL_020B: callvirt RimWorld.FactionRelationKind
RimWorld.Faction::get_PlayerRelationKind()
IL_0210: ldnull
IL_0211: callvirt System.Void
RimWorld.Faction::TryAppendRelationKindChangedInfo(System.Text.StringBuilder text,
RimWorld.FactionRelationKind previousKind, RimWorld.FactionRelationKind newKind,
System.String reason)
IL_0216: Label6
IL_0216: Label7
IL_0216: Label8
IL_0216: Label9
IL_0216: Label10
IL_0216: ldloc.s 4
(System.Collections.Generic.IEnumerator`1[RimWorld.Faction])
IL_0218: callvirt abstract virtual System.Boolean
System.Collections.IEnumerator::MoveNext()
IL_021D: brtrue => Label11
IL_0222: leave => Label12
IL_0227: leave => (autogenerated)
} // end try
.finally
{
IL_022C: ldloc.s 4
(System.Collections.Generic.IEnumerator`1[RimWorld.Faction])
IL_022E: brfalse => Label13
IL_0233: ldloc.s 4
(System.Collections.Generic.IEnumerator`1[RimWorld.Faction])
IL_0235: callvirt abstract virtual System.Void
System.IDisposable::Dispose()
IL_023A: Label13
IL_023A: endfinally
IL_023B: leave => (autogenerated)
} // end handler
IL_023C: Label12
IL_023C: call static Verse.LetterStack Verse.Find::get_LetterStack()
IL_0241: ldstr "LetterLabelFactionBaseDefeated"
IL_0246: call static Verse.TaggedString
Verse.Translator::Translate(System.String key)
IL_024B: ldloc.3
IL_024C: callvirt virtual System.String System.Object::ToString()
IL_0251: call static Verse.TaggedString
Verse.TaggedString::op_Implicit(System.String str)
IL_0256: ldsfld Verse.LetterDef RimWorld.LetterDefOf::PositiveEvent
IL_025B: ldarg.0
IL_025C: callvirt virtual System.Int32 RimWorld.Planet.WorldObject::get_Tile()
IL_0261: newobj System.Void
RimWorld.Planet.GlobalTargetInfo::.ctor(System.Int32 tile)
IL_0266: call static Verse.LookTargets
Verse.LookTargets::op_Implicit(RimWorld.Planet.GlobalTargetInfo target)
IL_026B: ldarg.0
IL_026C: callvirt virtual RimWorld.Faction
RimWorld.Planet.WorldObject::get_Faction()
IL_0271: ldnull
IL_0272: ldnull
IL_0273: ldnull
IL_0274: callvirt System.Void Verse.LetterStack::ReceiveLetter(Verse.TaggedString
label, Verse.TaggedString text, Verse.LetterDef textLetterDef, Verse.LookTargets
lookTargets, RimWorld.Faction relatedFaction, RimWorld.Quest quest,
System.Collections.Generic.List`1<Verse.ThingDef> hyperlinkThingDefs, System.String
debugInfo)
IL_0279: ldloc.0
IL_027A: ldfld Verse.MapInfo Verse.Map::info
IL_027F: ldloc.1
IL_0280: stfld RimWorld.Planet.MapParent Verse.MapInfo::parent
IL_0285: ldarg.0
IL_0286: callvirt virtual System.Void RimWorld.Planet.WorldObject::Destroy()
IL_028B: ldsfld RimWorld.TaleDef RimWorld.TaleDefOf::CaravanAssaultSuccessful
IL_0290: ldc.i4.1
IL_0291: newarr System.Object
IL_0296: dup
IL_0297: ldc.i4.0
IL_0298: ldloc.0
IL_0299: ldfld Verse.MapPawns Verse.Map::mapPawns
IL_029E: callvirt System.Collections.Generic.List`1<Verse.Pawn>
Verse.MapPawns::get_FreeColonists()
IL_02A3: call static Verse.Pawn
Verse.GenCollection::RandomElement(System.Collections.Generic.IEnumerable`1<Verse.P
awn> source)
IL_02A8: stelem.ref
IL_02A9: call static RimWorld.Tale
RimWorld.TaleRecorder::RecordTale(RimWorld.TaleDef def, System.Object[] args)
IL_02AE: pop
IL_02AF: // end original
IL_02AF: Label14
IL_02AF: Label15
IL_02AF: Label0
IL_02AF: ret
DONE

### Patch: Verse.DamageResult Verse.Thing::TakeDamage(Verse.DamageInfo dinfo)


### Replacement: static Verse.DamageResult
Verse.Thing::Verse.Thing.TakeDamage_Patch6(Verse.Thing this, Verse.DamageInfo
dinfo)
IL_0000: Local var 0: System.Boolean
IL_0000: Local var 1: System.Boolean
IL_0000: Local var 2: Verse.Map
IL_0000: Local var 3: Verse.DamageWorker/DamageResult
IL_0000: Local var 4: System.Int32
IL_0000: Local var 5: System.Int32
IL_0000: Local var 6: Verse.Pawn
IL_0000: Local var 7: Verse.DamageWorker/DamageResult
IL_0000: Local var 8: System.Boolean
IL_0000: ldnull
IL_0001: stloc 7 (Verse.DamageWorker+DamageResult)
IL_0005: ldc.i4 0
IL_000A: stloc 8 (System.Boolean)
IL_000E: ldc.i4.1
IL_000F: stloc 8 (System.Boolean)
IL_0013: ldarg.0
IL_0014: ldarg 1
IL_0018: call static System.Void
AnimalBehaviours.Patch_TakeDamage::Prefix(Verse.Thing __instance, Verse.DamageInfo
dinfo)
IL_001D: ldloc 8 (System.Boolean)
IL_0021: brfalse => Label1
IL_0026: ldarga 1
IL_002A: ldarg.0
IL_002B: call static System.Void
VFEAncients.PowerWorker_Damages::ChangeDamage(Verse.DamageInfo& dinfo, Verse.Thing
__instance)
IL_0030: Label1
IL_0030: nop
IL_0031: ldloc 8 (System.Boolean)
IL_0035: brfalse => Label2
IL_003A: ldarg.0
IL_003B: ldloca 7 (Verse.DamageWorker+DamageResult)
IL_003F: ldarg 1
IL_0043: call static System.Boolean
BiomesCore.Patches.DI_TakeDamage_Patch::DI_TakeDamage(Verse.Thing __instance,
Verse.DamageResult& __result, Verse.DamageInfo dinfo)
IL_0048: stloc 8 (System.Boolean)
IL_004C: Label2
IL_004C: nop
IL_004D: ldloc 8 (System.Boolean)
IL_0051: brfalse => Label3
IL_0056: ldarg.0
IL_0057: ldarga 1
IL_005B: call static System.Void
VFEMech.Thing_TakeDamage_Patch::Prefix(Verse.Thing __instance, Verse.DamageInfo&
dinfo)
IL_0060: Label3
IL_0060: nop
IL_0061: ldloc 8 (System.Boolean)
IL_0065: brfalse => Label0
IL_006A: // start original
IL_006A: ldarg.0
IL_006B: call System.Boolean Verse.Thing::get_Destroyed()
IL_0070: brfalse => Label4
IL_0075: newobj System.Void Verse.DamageResult::.ctor()
IL_007A: br => Label17
IL_007F: Label4
IL_007F: ldarga.s 1
IL_0081: call System.Single Verse.DamageInfo::get_Amount()
IL_0086: ldc.r4 0
IL_008B: bne.un => Label5
IL_0090: newobj System.Void Verse.DamageResult::.ctor()
IL_0095: br => Label18
IL_009A: Label5
IL_009A: ldarg.0
IL_009B: ldfld Verse.ThingDef Verse.Thing::def
IL_00A0: ldfld System.Collections.Generic.List`1<Verse.DamageMultiplier>
Verse.ThingDef::damageMultipliers
IL_00A5: brfalse => Label6
IL_00AA: ldc.i4.0
IL_00AB: stloc.s 4 (System.Int32)
IL_00AD: br => Label7
IL_00B2: Label9
IL_00B2: ldarg.0
IL_00B3: ldfld Verse.ThingDef Verse.Thing::def
IL_00B8: ldfld System.Collections.Generic.List`1<Verse.DamageMultiplier>
Verse.ThingDef::damageMultipliers
IL_00BD: ldloc.s 4 (System.Int32)
IL_00BF: callvirt virtual Verse.DamageMultiplier
System.Collections.Generic.List`1<Verse.DamageMultiplier>::get_Item(System.Int32
index)
IL_00C4: ldfld Verse.DamageDef Verse.DamageMultiplier::damageDef
IL_00C9: ldarga.s 1
IL_00CB: call Verse.DamageDef Verse.DamageInfo::get_Def()
IL_00D0: bne.un => Label8
IL_00D5: ldarga.s 1
IL_00D7: call System.Single Verse.DamageInfo::get_Amount()
IL_00DC: ldarg.0
IL_00DD: ldfld Verse.ThingDef Verse.Thing::def
IL_00E2: ldfld System.Collections.Generic.List`1<Verse.DamageMultiplier>
Verse.ThingDef::damageMultipliers
IL_00E7: ldloc.s 4 (System.Int32)
IL_00E9: callvirt virtual Verse.DamageMultiplier
System.Collections.Generic.List`1<Verse.DamageMultiplier>::get_Item(System.Int32
index)
IL_00EE: ldfld System.Single Verse.DamageMultiplier::multiplier
IL_00F3: mul
IL_00F4: call static System.Int32 UnityEngine.Mathf::RoundToInt(System.Single
f)
IL_00F9: stloc.s 5 (System.Int32)
IL_00FB: ldarga.s 1
IL_00FD: ldloc.s 5 (System.Int32)
IL_00FF: conv.r4
IL_0100: call System.Void Verse.DamageInfo::SetAmount(System.Single
newAmount)
IL_0105: Label8
IL_0105: ldloc.s 4 (System.Int32)
IL_0107: ldc.i4.1
IL_0108: add
IL_0109: stloc.s 4 (System.Int32)
IL_010B: Label7
IL_010B: ldloc.s 4 (System.Int32)
IL_010D: ldarg.0
IL_010E: ldfld Verse.ThingDef Verse.Thing::def
IL_0113: ldfld System.Collections.Generic.List`1<Verse.DamageMultiplier>
Verse.ThingDef::damageMultipliers
IL_0118: callvirt virtual System.Int32
System.Collections.Generic.List`1<Verse.DamageMultiplier>::get_Count()
IL_011D: blt => Label9
IL_0122: Label6
IL_0122: ldarg.0
IL_0123: ldarga.s 1
IL_0125: ldloca.s 0 (System.Boolean)
IL_0127: callvirt virtual System.Void
Verse.Thing::PreApplyDamage(Verse.DamageInfo& dinfo, System.Boolean& absorbed)
IL_012C: ldloc.0
IL_012D: brfalse => Label10
IL_0132: newobj System.Void Verse.DamageResult::.ctor()
IL_0137: br => Label19
IL_013C: Label10
IL_013C: ldarg.0
IL_013D: call System.Boolean Verse.Thing::get_SpawnedOrAnyParentSpawned()
IL_0142: stloc.1
IL_0143: ldarg.0
IL_0144: call Verse.Map Verse.Thing::get_MapHeld()
IL_0149: stloc.2
IL_014A: ldarga.s 1
IL_014C: call Verse.DamageDef Verse.DamageInfo::get_Def()
IL_0151: callvirt Verse.DamageWorker Verse.DamageDef::get_Worker()
IL_0156: ldarg.1
IL_0157: ldarg.0
IL_0158: callvirt virtual Verse.DamageResult
Verse.DamageWorker::Apply(Verse.DamageInfo dinfo, Verse.Thing victim)
IL_015D: stloc.3
IL_015E: ldarga.s 1
IL_0160: call Verse.DamageDef Verse.DamageInfo::get_Def()
IL_0165: ldfld System.Boolean Verse.DamageDef::harmsHealth
IL_016A: ldloc.1
IL_016B: and
IL_016C: brfalse => Label11
IL_0171: ldloc.2
IL_0172: ldfld RimWorld.DamageWatcher Verse.Map::damageWatcher
IL_0177: ldarg.0
IL_0178: ldloc.3
IL_0179: ldfld System.Single Verse.DamageResult::totalDamageDealt
IL_017E: callvirt System.Void
RimWorld.DamageWatcher::Notify_DamageTaken(Verse.Thing damagee, System.Single
amount)
IL_0183: Label11
IL_0183: ldarga.s 1
IL_0185: call Verse.DamageDef Verse.DamageInfo::get_Def()
IL_018A: ldarg.0
IL_018B: callvirt System.Boolean Verse.DamageDef::ExternalViolenceFor(Verse.Thing
thing)
IL_0190: brfalse => Label12
IL_0195: ldarga.s 1
IL_0197: call System.Boolean Verse.DamageInfo::get_SpawnFilth()
IL_019C: brfalse => Label13
IL_01A1: ldarg.0
IL_01A2: ldloc.3
IL_01A3: ldfld System.Single Verse.DamageResult::totalDamageDealt
IL_01A8: call static System.Void
RimWorld.GenLeaving::DropFilthDueToDamage(Verse.Thing t, System.Single damageDealt)
IL_01AD: Label13
IL_01AD: ldarga.s 1
IL_01AF: call Verse.Thing Verse.DamageInfo::get_Instigator()
IL_01B4: brfalse => Label14
IL_01B9: ldarga.s 1
IL_01BB: call Verse.Thing Verse.DamageInfo::get_Instigator()
IL_01C0: isinst Verse.Pawn
IL_01C5: stloc.s 6 (Verse.Pawn)
IL_01C7: ldloc.s 6 (Verse.Pawn)
IL_01C9: brfalse => Label15
IL_01CE: ldloc.s 6 (Verse.Pawn)
IL_01D0: ldfld RimWorld.Pawn_RecordsTracker Verse.Pawn::records
IL_01D5: ldsfld RimWorld.RecordDef RimWorld.RecordDefOf::DamageDealt
IL_01DA: ldloc.3
IL_01DB: ldfld System.Single Verse.DamageResult::totalDamageDealt
IL_01E0: callvirt System.Void
RimWorld.Pawn_RecordsTracker::AddTo(RimWorld.RecordDef def, System.Single value)
IL_01E5: Label15
IL_01E5: ldarga.s 1
IL_01E7: call Verse.Thing Verse.DamageInfo::get_Instigator()
IL_01EC: callvirt virtual RimWorld.Faction Verse.Thing::get_Faction()
IL_01F1: call static RimWorld.Faction RimWorld.Faction::get_OfPlayer()
IL_01F6: bne.un => Label16
IL_01FB: ldarg.0
IL_01FC: ldfld System.Collections.Generic.List`1<System.String>
Verse.Thing::questTags
IL_0201: ldstr "TookDamageFromPlayer"
IL_0206: ldarg.0
IL_0207: ldstr "SUBJECT"
IL_020C: call static Verse.NamedArgument
Verse.NamedArgumentUtility::Named(System.Object arg, System.String label)
IL_0211: call static System.Void
RimWorld.QuestUtility::SendQuestTargetSignals(System.Collections.Generic.List`1<Sys
tem.String> questTags, System.String signalPart, Verse.NamedArgument arg1)
IL_0216: Label12
IL_0216: Label14
IL_0216: Label16
IL_0216: ldarg.0
IL_0217: ldarg.1
IL_0218: ldloc.3
IL_0219: ldfld System.Single Verse.DamageResult::totalDamageDealt
IL_021E: callvirt virtual System.Void
Verse.Thing::PostApplyDamage(Verse.DamageInfo dinfo, System.Single
totalDamageDealt)
IL_0223: ldloc.3
IL_0224: // end original
IL_0224: Label17
IL_0224: Label18
IL_0224: Label19
IL_0224: stloc 7 (Verse.DamageWorker+DamageResult)
IL_0228: Label0
IL_0228: ldarg.0
IL_0229: ldarg 1
IL_022D: call static System.Void
VFECore.Patch_Thing_TakeDamage::Postfix(Verse.Thing __instance, Verse.DamageInfo
dinfo)
IL_0232: ldarg 1
IL_0236: ldarg.0
IL_0237: ldloc 7 (Verse.DamageWorker+DamageResult)
IL_023B: call static System.Void
DamageMotes.DamageMotes_Patch::Postfix(Verse.DamageInfo dinfo, Verse.Thing
__instance, Verse.DamageResult __result)
IL_0240: ldloc 7 (Verse.DamageWorker+DamageResult)
IL_0244: ret
DONE

### Patch: static System.Boolean


Verse.RoofCollapseUtility::WithinRangeOfRoofHolder(Verse.IntVec3 c, Verse.Map map,
System.Boolean assumeNonNoRoofCellsAreRoofed)
### Replacement: static System.Boolean
Verse.RoofCollapseUtility::Verse.RoofCollapseUtility.WithinRangeOfRoofHolder_Patch1
(Verse.IntVec3 c, Verse.Map map, System.Boolean assumeNonNoRoofCellsAreRoofed)
IL_0000: Local var 0: Verse.RoofCollapseUtility/<>c__DisplayClass2_0
IL_0000: Local var 1: System.Boolean
IL_0000: ldc.i4 0
IL_0005: stloc 1 (System.Boolean)
IL_0009: // start original
IL_0009: newobj System.Void Verse.<>c__DisplayClass2_0::.ctor()
IL_000E: stloc.0
IL_000F: ldloc.0
IL_0010: ldarg.1
IL_0011: stfld Verse.Map Verse.<>c__DisplayClass2_0::map
IL_0016: ldloc.0
IL_0017: ldarg.0
IL_0018: stfld Verse.IntVec3 Verse.<>c__DisplayClass2_0::c
IL_001D: ldloc.0
IL_001E: ldarg.2
IL_001F: stfld System.Boolean
Verse.<>c__DisplayClass2_0::assumeNonNoRoofCellsAreRoofed
IL_0024: ldloc.0
IL_0025: ldc.i4.0
IL_0026: stfld System.Boolean Verse.<>c__DisplayClass2_0::connected
IL_002B: ldloc.0
IL_002C: ldfld Verse.Map Verse.<>c__DisplayClass2_0::map
IL_0031: ldfld Verse.FloodFiller Verse.Map::floodFiller
IL_0036: ldloc.0
IL_0037: ldfld Verse.IntVec3 Verse.<>c__DisplayClass2_0::c
IL_003C: ldloc.0
IL_003D: ldftn System.Boolean
Verse.<>c__DisplayClass2_0::<WithinRangeOfRoofHolder>b__0(Verse.IntVec3 x)
IL_0043: newobj System.Void
System.Predicate`1<Verse.IntVec3>::.ctor(System.Object object, System.IntPtr
method)
IL_0048: ldloc.0
IL_0049: ldftn System.Boolean
Verse.<>c__DisplayClass2_0::<WithinRangeOfRoofHolder>b__1(Verse.IntVec3 x)
IL_004F: newobj System.Void System.Func`2<Verse.IntVec3,
System.Boolean>::.ctor(System.Object object, System.IntPtr method)
IL_0054: ldc.i4 2147483647
IL_0059: ldc.i4.0
IL_005A: ldnull
IL_005B: callvirt System.Void Verse.FloodFiller::FloodFill(Verse.IntVec3 root,
System.Predicate`1<Verse.IntVec3> passCheck, System.Func`2<Verse.IntVec3,
System.Boolean> processor, System.Int32 maxCellsToProcess, System.Boolean
rememberParents, System.Collections.Generic.IEnumerable`1<Verse.IntVec3>
extraRoots)
IL_0060: ldloc.0
IL_0061: ldfld System.Boolean Verse.<>c__DisplayClass2_0::connected
IL_0066: // end original
IL_0066: stloc 1 (System.Boolean)
IL_006A: ldloca 1 (System.Boolean)
IL_006E: ldarg 0
IL_0072: ldarg 1
IL_0076: ldarg 2
IL_007A: call static System.Void
VFEMech.WithinRangeOfRoofHolder_Patch::Postfix(System.Boolean& __result,
Verse.IntVec3 c, Verse.Map map, System.Boolean assumeNonNoRoofCellsAreRoofed)
IL_007F: ldloc 1 (System.Boolean)
IL_0083: ret
DONE

### Patch: static System.Boolean


Verse.RoofCollapseCellsFinder::ConnectsToRoofHolder(Verse.IntVec3 c, Verse.Map map,
System.Collections.Generic.HashSet`1<Verse.IntVec3> visitedCells)
### Replacement: static System.Boolean
Verse.RoofCollapseCellsFinder::Verse.RoofCollapseCellsFinder.ConnectsToRoofHolder_P
atch1(Verse.IntVec3 c, Verse.Map map,
System.Collections.Generic.HashSet`1<Verse.IntVec3> visitedCells)
IL_0000: Local var 0: Verse.RoofCollapseCellsFinder/<>c__DisplayClass8_0
IL_0000: Local var 1: System.Boolean
IL_0000: ldc.i4 0
IL_0005: stloc 1 (System.Boolean)
IL_0009: // start original
IL_0009: newobj System.Void Verse.<>c__DisplayClass8_0::.ctor()
IL_000E: stloc.0
IL_000F: ldloc.0
IL_0010: ldarg.1
IL_0011: stfld Verse.Map Verse.<>c__DisplayClass8_0::map
IL_0016: ldloc.0
IL_0017: ldarg.2
IL_0018: stfld System.Collections.Generic.HashSet`1<Verse.IntVec3>
Verse.<>c__DisplayClass8_0::visitedCells
IL_001D: ldloc.0
IL_001E: ldc.i4.0
IL_001F: stfld System.Boolean Verse.<>c__DisplayClass8_0::connected
IL_0024: ldloc.0
IL_0025: ldfld Verse.Map Verse.<>c__DisplayClass8_0::map
IL_002A: ldfld Verse.FloodFiller Verse.Map::floodFiller
IL_002F: ldarg.0
IL_0030: ldloc.0
IL_0031: ldftn System.Boolean
Verse.<>c__DisplayClass8_0::<ConnectsToRoofHolder>b__0(Verse.IntVec3 x)
IL_0037: newobj System.Void
System.Predicate`1<Verse.IntVec3>::.ctor(System.Object object, System.IntPtr
method)
IL_003C: ldloc.0
IL_003D: ldftn System.Void
Verse.<>c__DisplayClass8_0::<ConnectsToRoofHolder>b__1(Verse.IntVec3 x)
IL_0043: newobj System.Void System.Action`1<Verse.IntVec3>::.ctor(System.Object
object, System.IntPtr method)
IL_0048: ldc.i4 2147483647
IL_004D: ldc.i4.0
IL_004E: ldnull
IL_004F: callvirt System.Void Verse.FloodFiller::FloodFill(Verse.IntVec3 root,
System.Predicate`1<Verse.IntVec3> passCheck, System.Action`1<Verse.IntVec3>
processor, System.Int32 maxCellsToProcess, System.Boolean rememberParents,
System.Collections.Generic.IEnumerable`1<Verse.IntVec3> extraRoots)
IL_0054: ldloc.0
IL_0055: ldfld System.Boolean Verse.<>c__DisplayClass8_0::connected
IL_005A: // end original
IL_005A: stloc 1 (System.Boolean)
IL_005E: ldloca 1 (System.Boolean)
IL_0062: ldarg 0
IL_0066: ldarg 1
IL_006A: ldarg 2
IL_006E: call static System.Void
VFEMech.ConnectsToRoofHolder_Patch::Postfix(System.Boolean& __result, Verse.IntVec3
c, Verse.Map map, System.Collections.Generic.HashSet`1<Verse.IntVec3> visitedCells)
IL_0073: ldloc 1 (System.Boolean)
IL_0077: ret
DONE

### Patch: System.Void Verse.AutoBuildRoofAreaSetter::TryGenerateAreaNow(Verse.Room


room)
### Replacement: static System.Void
Verse.AutoBuildRoofAreaSetter::Verse.AutoBuildRoofAreaSetter.TryGenerateAreaNow_Pat
ch1(Verse.AutoBuildRoofAreaSetter this, Verse.Room room)
IL_0000: Local var 0: System.Boolean
IL_0000: Local var 1: System.Collections.Generic.IEnumerator`1<Verse.IntVec3>
IL_0000: Local var 2: Verse.Thing
IL_0000: Local var 3: Verse.IntVec3
IL_0000: Local var 4: System.Int32
IL_0000: Local var 5: Verse.IntVec3
IL_0000: Local var 6: Verse.Thing
IL_0000: Local var 7: Verse.CellRect
IL_0000: Local var 8: System.Int32
IL_0000: Local var 9: System.Int32
IL_0000: Local var 10: Verse.IntVec3
IL_0000: Local var 11:
System.Collections.Generic.HashSet`1/Enumerator<Verse.IntVec3>
IL_0000: Local var 12: Verse.IntVec3
IL_0000: Local var 13: System.Int32
IL_0000: Local var 14: Verse.IntVec3
IL_0000: Local var 15: Verse.IntVec3
IL_0000: // start original
IL_0000: ldarg.1
IL_0001: callvirt System.Boolean Verse.Room::get_Dereferenced()
IL_0006: brtrue => Label0
IL_000B: ldarg.1
IL_000C: callvirt System.Boolean Verse.Room::get_TouchesMapEdge()
IL_0011: brfalse => Label1
IL_0016: Label0
IL_0016: br => Label50
IL_001B: Label1
IL_001B: ldarg.1
IL_001C: callvirt System.Int32 Verse.Room::get_RegionCount()
IL_0021: ldc.i4.s 26
IL_0023: bgt => Label2
IL_0028: ldarg.1
IL_0029: callvirt System.Int32 Verse.Room::get_CellCount()
IL_002E: ldc.i4 320
IL_0033: ble => Label3
IL_0038: Label2
IL_0038: br => Label51
IL_003D: Label3
IL_003D: ldarg.1
IL_003E: callvirt System.Boolean Verse.Room::get_IsDoorway()
IL_0043: brfalse => Label4
IL_0048: br => Label52
IL_004D: Label4
IL_004D: ldc.i4.0
IL_004E: stloc.0
IL_004F: ldarg.1
IL_0050: callvirt System.Collections.Generic.IEnumerable`1<Verse.IntVec3>
Verse.Room::get_BorderCells()
IL_0055: callvirt abstract virtual
System.Collections.Generic.IEnumerator`1<Verse.IntVec3>
System.Collections.Generic.IEnumerable`1<Verse.IntVec3>::GetEnumerator()
IL_005A: stloc.1
.try
{
IL_005B: br => Label5
IL_0060: Label14
IL_0060: ldloc.1
IL_0061: callvirt abstract virtual Verse.IntVec3
System.Collections.Generic.IEnumerator`1<Verse.IntVec3>::get_Current()
IL_0066: ldarg.0
IL_0067: ldfld Verse.Map Verse.AutoBuildRoofAreaSetter::map
IL_006C: call static Verse.Thing
Verse.GridsUtility::GetRoofHolderOrImpassable(Verse.IntVec3 c, Verse.Map map)
IL_0071: stloc.2
IL_0072: ldloc.2
IL_0073: brfalse => Label6
IL_0078: ldloc.2
IL_0079: callvirt virtual RimWorld.Faction Verse.Thing::get_Faction()
IL_007E: brfalse => Label7
IL_0083: ldloc.2
IL_0084: callvirt virtual RimWorld.Faction Verse.Thing::get_Faction()
IL_0089: call static RimWorld.Faction RimWorld.Faction::get_OfPlayer()
IL_008E: beq => Label8
IL_0093: leave => Label9
IL_0098: Label7
IL_0098: Label8
IL_0098: ldloc.2
IL_0099: ldfld Verse.ThingDef Verse.Thing::def
IL_009E: ldfld RimWorld.BuildingProperties Verse.ThingDef::building
IL_00A3: brfalse => Label10
IL_00A8: ldloc.2
IL_00A9: ldfld Verse.ThingDef Verse.Thing::def
IL_00AE: ldfld RimWorld.BuildingProperties Verse.ThingDef::building
IL_00B3: ldfld System.Boolean RimWorld.BuildingProperties::allowAutoroof
IL_00B8: brtrue => Label11
IL_00BD: leave => Label12
IL_00C2: Label10
IL_00C2: Label11
IL_00C2: ldloc.2
IL_00C3: callvirt virtual RimWorld.Faction Verse.Thing::get_Faction()
IL_00C8: call static RimWorld.Faction RimWorld.Faction::get_OfPlayer()
IL_00CD: bne.un => Label13
IL_00D2: ldc.i4.1
IL_00D3: stloc.0
IL_00D4: Label5
IL_00D4: Label6
IL_00D4: Label13
IL_00D4: ldloc.1
IL_00D5: callvirt abstract virtual System.Boolean
System.Collections.IEnumerator::MoveNext()
IL_00DA: brtrue => Label14
IL_00DF: leave => Label15
IL_00E4: leave => (autogenerated)
} // end try
.finally
{
IL_00E9: ldloc.1
IL_00EA: brfalse => Label16
IL_00EF: ldloc.1
IL_00F0: callvirt abstract virtual System.Void
System.IDisposable::Dispose()
IL_00F5: Label16
IL_00F5: endfinally
IL_00F6: leave => (autogenerated)
} // end handler
IL_00F7: Label15
IL_00F7: ldloc.0
IL_00F8: brtrue => Label17
IL_00FD: br => Label57
IL_0102: Label17
IL_0102: ldarg.0
IL_0103: ldfld System.Collections.Generic.HashSet`1<Verse.IntVec3>
Verse.AutoBuildRoofAreaSetter::innerCells
IL_0108: callvirt virtual System.Void
System.Collections.Generic.HashSet`1<Verse.IntVec3>::Clear()
IL_010D: ldarg.1
IL_010E: callvirt System.Collections.Generic.IEnumerable`1<Verse.IntVec3>
Verse.Room::get_Cells()
IL_0113: callvirt abstract virtual
System.Collections.Generic.IEnumerator`1<Verse.IntVec3>
System.Collections.Generic.IEnumerable`1<Verse.IntVec3>::GetEnumerator()
IL_0118: stloc.1
.try
{
IL_0119: br => Label18
IL_011E: Label31
IL_011E: ldloc.1
IL_011F: callvirt abstract virtual Verse.IntVec3
System.Collections.Generic.IEnumerator`1<Verse.IntVec3>::get_Current()
IL_0124: stloc.3
IL_0125: ldarg.0
IL_0126: ldfld System.Collections.Generic.HashSet`1<Verse.IntVec3>
Verse.AutoBuildRoofAreaSetter::innerCells
IL_012B: ldloc.3
IL_012C: callvirt virtual System.Boolean
System.Collections.Generic.HashSet`1<Verse.IntVec3>::Contains(Verse.IntVec3 item)
IL_0131: brtrue => Label19
IL_0136: ldarg.0
IL_0137: ldfld System.Collections.Generic.HashSet`1<Verse.IntVec3>
Verse.AutoBuildRoofAreaSetter::innerCells
IL_013C: ldloc.3
IL_013D: callvirt virtual System.Boolean
System.Collections.Generic.HashSet`1<Verse.IntVec3>::Add(Verse.IntVec3 item)
IL_0142: pop
IL_0143: Label19
IL_0143: ldc.i4.0
IL_0144: stloc.s 4 (System.Int32)
IL_0146: br => Label20
IL_014B: Label30
IL_014B: ldloc.3
IL_014C: ldsfld Verse.IntVec3[] Verse.GenAdj::AdjacentCells
IL_0151: ldloc.s 4 (System.Int32)
IL_0153: ldelem Verse.IntVec3
IL_0158: call static Verse.IntVec3
Verse.IntVec3::op_Addition(Verse.IntVec3 a, Verse.IntVec3 b)
IL_015D: stloc.s 5 (Verse.IntVec3)
IL_015F: ldloc.s 5 (Verse.IntVec3)
IL_0161: ldarg.0
IL_0162: ldfld Verse.Map Verse.AutoBuildRoofAreaSetter::map
IL_0167: call static System.Boolean
Verse.GenGrid::InBounds(Verse.IntVec3 c, Verse.Map map)
IL_016C: brfalse => Label21
IL_0171: ldloc.s 5 (Verse.IntVec3)
IL_0173: ldarg.0
IL_0174: ldfld Verse.Map Verse.AutoBuildRoofAreaSetter::map
IL_0179: call static Verse.Thing
Verse.GridsUtility::GetRoofHolderOrImpassable(Verse.IntVec3 c, Verse.Map map)
IL_017E: stloc.s 6 (Verse.Thing)
IL_0180: ldloc.s 6 (Verse.Thing)
IL_0182: brfalse => Label22
IL_0187: ldloc.s 6 (Verse.Thing)
IL_0189: ldfld Verse.ThingDef Verse.Thing::def
IL_018E: ldflda Verse.IntVec2 Verse.ThingDef::size
IL_0193: ldfld System.Int32 Verse.IntVec2::x
IL_0198: ldc.i4.1
IL_0199: bgt => Label23
IL_019E: ldloc.s 6 (Verse.Thing)
IL_01A0: ldfld Verse.ThingDef Verse.Thing::def
IL_01A5: ldflda Verse.IntVec2 Verse.ThingDef::size
IL_01AA: ldfld System.Int32 Verse.IntVec2::z
IL_01AF: ldc.i4.1
IL_01B0: ble => Label24
IL_01B5: Label23
IL_01B5: ldloc.s 6 (Verse.Thing)
IL_01B7: call static Verse.CellRect
Verse.GenAdj::OccupiedRect(Verse.Thing t)
IL_01BC: stloc.s 7 (Verse.CellRect)
IL_01BE: ldloca.s 7 (Verse.CellRect)
IL_01C0: ldarg.0
IL_01C1: ldfld Verse.Map Verse.AutoBuildRoofAreaSetter::map
IL_01C6: call Verse.CellRect Verse.CellRect::ClipInsideMap(Verse.Map
map)
IL_01CB: pop
IL_01CC: ldloc.s 7 (Verse.CellRect)
IL_01CE: ldfld System.Int32 Verse.CellRect::minZ
IL_01D3: stloc.s 8 (System.Int32)
IL_01D5: br => Label25
IL_01DA: Label29
IL_01DA: ldloc.s 7 (Verse.CellRect)
IL_01DC: ldfld System.Int32 Verse.CellRect::minX
IL_01E1: stloc.s 9 (System.Int32)
IL_01E3: br => Label26
IL_01E8: Label28
IL_01E8: ldloca.s 10 (Verse.IntVec3)
IL_01EA: ldloc.s 9 (System.Int32)
IL_01EC: ldc.i4.0
IL_01ED: ldloc.s 8 (System.Int32)
IL_01EF: call System.Void Verse.IntVec3::.ctor(System.Int32 newX,
System.Int32 newY, System.Int32 newZ)
IL_01F4: ldarg.0
IL_01F5: ldfld System.Collections.Generic.HashSet`1<Verse.IntVec3>
Verse.AutoBuildRoofAreaSetter::innerCells
IL_01FA: ldloc.s 10 (Verse.IntVec3)
IL_01FC: callvirt virtual System.Boolean
System.Collections.Generic.HashSet`1<Verse.IntVec3>::Contains(Verse.IntVec3 item)
IL_0201: brtrue => Label27
IL_0206: ldarg.0
IL_0207: ldfld System.Collections.Generic.HashSet`1<Verse.IntVec3>
Verse.AutoBuildRoofAreaSetter::innerCells
IL_020C: ldloc.s 10 (Verse.IntVec3)
IL_020E: callvirt virtual System.Boolean
System.Collections.Generic.HashSet`1<Verse.IntVec3>::Add(Verse.IntVec3 item)
IL_0213: pop
IL_0214: Label27
IL_0214: ldloc.s 9 (System.Int32)
IL_0216: ldc.i4.1
IL_0217: add
IL_0218: stloc.s 9 (System.Int32)
IL_021A: Label26
IL_021A: ldloc.s 9 (System.Int32)
IL_021C: ldloc.s 7 (Verse.CellRect)
IL_021E: ldfld System.Int32 Verse.CellRect::maxX
IL_0223: ble => Label28
IL_0228: ldloc.s 8 (System.Int32)
IL_022A: ldc.i4.1
IL_022B: add
IL_022C: stloc.s 8 (System.Int32)
IL_022E: Label25
IL_022E: ldloc.s 8 (System.Int32)
IL_0230: ldloc.s 7 (Verse.CellRect)
IL_0232: ldfld System.Int32 Verse.CellRect::maxZ
IL_0237: ble => Label29
IL_023C: Label21
IL_023C: Label22
IL_023C: Label24
IL_023C: ldloc.s 4 (System.Int32)
IL_023E: ldc.i4.1
IL_023F: add
IL_0240: stloc.s 4 (System.Int32)
IL_0242: Label20
IL_0242: ldloc.s 4 (System.Int32)
IL_0244: ldc.i4.8
IL_0245: blt => Label30
IL_024A: Label18
IL_024A: ldloc.1
IL_024B: callvirt abstract virtual System.Boolean
System.Collections.IEnumerator::MoveNext()
IL_0250: brtrue => Label31
IL_0255: leave => Label32
IL_025A: leave => (autogenerated)
} // end try
.finally
{
IL_025F: ldloc.1
IL_0260: brfalse => Label33
IL_0265: ldloc.1
IL_0266: callvirt abstract virtual System.Void
System.IDisposable::Dispose()
IL_026B: Label33
IL_026B: endfinally
IL_026C: leave => (autogenerated)
} // end handler
IL_026D: Label32
IL_026D: ldarg.0
IL_026E: ldfld System.Collections.Generic.HashSet`1<Verse.IntVec3>
Verse.AutoBuildRoofAreaSetter::cellsToRoof
IL_0273: callvirt virtual System.Void
System.Collections.Generic.HashSet`1<Verse.IntVec3>::Clear()
IL_0278: ldarg.0
IL_0279: ldfld System.Collections.Generic.HashSet`1<Verse.IntVec3>
Verse.AutoBuildRoofAreaSetter::innerCells
IL_027E: callvirt System.Collections.Generic.Enumerator<Verse.IntVec3>
System.Collections.Generic.HashSet`1<Verse.IntVec3>::GetEnumerator()
IL_0283: stloc.s 11
(System.Collections.Generic.HashSet`1+Enumerator[Verse.IntVec3])
.try
{
IL_0285: br => Label34
IL_028A: Label41
IL_028A: ldloca.s 11
(System.Collections.Generic.HashSet`1+Enumerator[Verse.IntVec3])
IL_028C: call virtual Verse.IntVec3
System.Collections.Generic.Enumerator<Verse.IntVec3>::get_Current()
IL_0291: stloc.s 12 (Verse.IntVec3)
IL_0293: ldc.i4.0
IL_0294: stloc.s 13 (System.Int32)
IL_0296: br => Label35
IL_029B: Label40
IL_029B: ldloc.s 12 (Verse.IntVec3)
IL_029D: ldsfld Verse.IntVec3[] Verse.GenAdj::AdjacentCellsAndInside
IL_02A2: ldloc.s 13 (System.Int32)
IL_02A4: ldelem Verse.IntVec3
IL_02A9: call static Verse.IntVec3
Verse.IntVec3::op_Addition(Verse.IntVec3 a, Verse.IntVec3 b)
IL_02AE: stloc.s 14 (Verse.IntVec3)
IL_02B0: ldloc.s 14 (Verse.IntVec3)
IL_02B2: ldarg.0
IL_02B3: ldfld Verse.Map Verse.AutoBuildRoofAreaSetter::map
IL_02B8: call static System.Boolean
Verse.GenGrid::InBounds(Verse.IntVec3 c, Verse.Map map)
IL_02BD: brfalse => Label36
IL_02C2: ldloc.s 13 (System.Int32)
IL_02C4: ldc.i4.8
IL_02C5: beq => Label37
IL_02CA: ldloc.s 14 (Verse.IntVec3)
IL_02CC: ldarg.0
IL_02CD: ldfld Verse.Map Verse.AutoBuildRoofAreaSetter::map
IL_02D2: call static Verse.Thing
Verse.GridsUtility::GetRoofHolderOrImpassable(Verse.IntVec3 c, Verse.Map map)
IL_02D7: brfalse => Label38
IL_02DC: Label37
IL_02DC: ldarg.0
IL_02DD: ldfld System.Collections.Generic.HashSet`1<Verse.IntVec3>
Verse.AutoBuildRoofAreaSetter::cellsToRoof
IL_02E2: ldloc.s 14 (Verse.IntVec3)
IL_02E4: callvirt virtual System.Boolean
System.Collections.Generic.HashSet`1<Verse.IntVec3>::Contains(Verse.IntVec3 item)
IL_02E9: brtrue => Label39
IL_02EE: ldarg.0
IL_02EF: ldfld System.Collections.Generic.HashSet`1<Verse.IntVec3>
Verse.AutoBuildRoofAreaSetter::cellsToRoof
IL_02F4: ldloc.s 14 (Verse.IntVec3)
IL_02F6: callvirt virtual System.Boolean
System.Collections.Generic.HashSet`1<Verse.IntVec3>::Add(Verse.IntVec3 item)
IL_02FB: pop
IL_02FC: Label36
IL_02FC: Label38
IL_02FC: Label39
IL_02FC: ldloc.s 13 (System.Int32)
IL_02FE: ldc.i4.1
IL_02FF: add
IL_0300: stloc.s 13 (System.Int32)
IL_0302: Label35
IL_0302: ldloc.s 13 (System.Int32)
IL_0304: ldc.i4.s 9
IL_0306: blt => Label40
IL_030B: Label34
IL_030B: ldloca.s 11
(System.Collections.Generic.HashSet`1+Enumerator[Verse.IntVec3])
IL_030D: call virtual System.Boolean
System.Collections.Generic.Enumerator<Verse.IntVec3>::MoveNext()
IL_0312: brtrue => Label41
IL_0317: leave => Label42
IL_031C: leave => (autogenerated)
} // end try
.finally
{
IL_0321: ldloca.s 11
(System.Collections.Generic.HashSet`1+Enumerator[Verse.IntVec3])
IL_0323: constrained.
System.Collections.Generic.HashSet`1+Enumerator[Verse.IntVec3]
IL_0329: callvirt abstract virtual System.Void
System.IDisposable::Dispose()
IL_032E: endfinally
IL_032F: leave => (autogenerated)
} // end handler
IL_0330: Label42
IL_0330: ldarg.0
IL_0331: ldfld System.Collections.Generic.List`1<Verse.IntVec3>
Verse.AutoBuildRoofAreaSetter::justRoofedCells
IL_0336: callvirt virtual System.Void
System.Collections.Generic.List`1<Verse.IntVec3>::Clear()
IL_033B: ldarg.0
IL_033C: ldfld System.Collections.Generic.HashSet`1<Verse.IntVec3>
Verse.AutoBuildRoofAreaSetter::cellsToRoof
IL_0341: callvirt System.Collections.Generic.Enumerator<Verse.IntVec3>
System.Collections.Generic.HashSet`1<Verse.IntVec3>::GetEnumerator()
IL_0346: stloc.s 11
(System.Collections.Generic.HashSet`1+Enumerator[Verse.IntVec3])
.try
{
IL_0348: br => Label43
IL_034D: Label48
IL_034D: ldloca.s 11
(System.Collections.Generic.HashSet`1+Enumerator[Verse.IntVec3])
IL_034F: call virtual Verse.IntVec3
System.Collections.Generic.Enumerator<Verse.IntVec3>::get_Current()
IL_0354: stloc.s 15 (Verse.IntVec3)
IL_0356: ldarg.0
IL_0357: ldfld Verse.Map Verse.AutoBuildRoofAreaSetter::map
IL_035C: ldfld Verse.RoofGrid Verse.Map::roofGrid
IL_0361: ldloc.s 15 (Verse.IntVec3)
IL_0363: callvirt Verse.RoofDef Verse.RoofGrid::RoofAt(Verse.IntVec3 c)
IL_0368: brtrue => Label44
IL_036D: ldarg.0
IL_036E: ldfld System.Collections.Generic.List`1<Verse.IntVec3>
Verse.AutoBuildRoofAreaSetter::justRoofedCells
IL_0373: ldloc.s 15 (Verse.IntVec3)
IL_0375: callvirt virtual System.Boolean
System.Collections.Generic.List`1<Verse.IntVec3>::Contains(Verse.IntVec3 item)
IL_037A: brtrue => Label45
IL_037F: ldarg.0
IL_0380: ldfld Verse.Map Verse.AutoBuildRoofAreaSetter::map
IL_0385: ldfld Verse.AreaManager Verse.Map::areaManager
IL_038A: callvirt RimWorld.Area_NoRoof Verse.AreaManager::get_NoRoof()
IL_038F: ldloc.s 15 (Verse.IntVec3)
IL_0391: callvirt System.Boolean Verse.Area::get_Item(Verse.IntVec3 c)
IL_0396: brtrue => Label46
IL_039B: ldloc.s 15 (Verse.IntVec3)
IL_039D: ldarg.0
IL_039E: ldfld Verse.Map Verse.AutoBuildRoofAreaSetter::map
IL_03A3: ldc.i4.1
IL_03A4: call static System.Boolean
Verse.RoofCollapseUtility::WithinRangeOfRoofHolder(Verse.IntVec3 c, Verse.Map map,
System.Boolean assumeNonNoRoofCellsAreRoofed)
IL_03A9: brfalse => Label47
IL_03AE: ldarg.0
IL_03AF: ldfld Verse.Map Verse.AutoBuildRoofAreaSetter::map
IL_03B4: ldfld Verse.AreaManager Verse.Map::areaManager
IL_03B9: callvirt RimWorld.Area_BuildRoof
Verse.AreaManager::get_BuildRoof()
IL_03BE: ldloc.s 15 (Verse.IntVec3)
IL_03C0: ldc.i4.1
IL_03C1: callvirt System.Void Verse.Area::set_Item(Verse.IntVec3 c,
System.Boolean value)
IL_03C6: ldarg.0
IL_03C7: ldfld System.Collections.Generic.List`1<Verse.IntVec3>
Verse.AutoBuildRoofAreaSetter::justRoofedCells
IL_03CC: ldloc.s 15 (Verse.IntVec3)
IL_03CE: callvirt virtual System.Void
System.Collections.Generic.List`1<Verse.IntVec3>::Add(Verse.IntVec3 item)
IL_03D3: Label43
IL_03D3: Label44
IL_03D3: Label45
IL_03D3: Label46
IL_03D3: Label47
IL_03D3: ldloca.s 11
(System.Collections.Generic.HashSet`1+Enumerator[Verse.IntVec3])
IL_03D5: call virtual System.Boolean
System.Collections.Generic.Enumerator<Verse.IntVec3>::MoveNext()
IL_03DA: brtrue => Label48
IL_03DF: leave => Label49
IL_03E4: leave => (autogenerated)
} // end try
.finally
{
IL_03E9: ldloca.s 11
(System.Collections.Generic.HashSet`1+Enumerator[Verse.IntVec3])
IL_03EB: constrained.
System.Collections.Generic.HashSet`1+Enumerator[Verse.IntVec3]
IL_03F1: callvirt abstract virtual System.Void
System.IDisposable::Dispose()
IL_03F6: endfinally
IL_03F7: leave => (autogenerated)
} // end handler
IL_03F8: // end original
IL_03F8: Label9
IL_03F8: Label12
IL_03F8: Label49
IL_03F8: Label50
IL_03F8: Label51
IL_03F8: Label52
IL_03F8: Label57
IL_03F8: ldarg 1
IL_03FC: call static System.Void
VFEMech.AutoBuildRoofAreaSetter_TryGenerateAreaNow::Postfix(Verse.Room room)
IL_0401: ret
DONE

### Patch: virtual System.Void


RimWorld.Planet.TransportPodsArrivalAction_VisitSite::Arrived(System.Collections.Ge
neric.List`1<RimWorld.ActiveDropPodInfo> pods, System.Int32 tile)
### Replacement: static System.Void
RimWorld.Planet.TransportPodsArrivalAction_VisitSite::RimWorld.Planet.TransportPods
ArrivalAction_VisitSite.Arrived_Patch1(RimWorld.Planet.TransportPodsArrivalAction_V
isitSite this, System.Collections.Generic.List`1<RimWorld.ActiveDropPodInfo> pods,
System.Int32 tile)
IL_0000: Local var 0: Verse.Thing
IL_0000: Local var 1: Verse.Map
IL_0000: Local var 2: System.Nullable`1<RimWorld.Planet.GlobalTargetInfo>
IL_0000: Local var 3: System.Boolean
IL_0000: ldc.i4 0
IL_0005: stloc 3 (System.Boolean)
IL_0009: ldc.i4.1
IL_000A: stloc 3 (System.Boolean)
IL_000E: ldloc 3 (System.Boolean)
IL_0012: brfalse => Label1
IL_0017: ldarg.0
IL_0018: ldfld RimWorld.Planet.Site
RimWorld.Planet.TransportPodsArrivalAction_VisitSite::site
IL_001D: ldarg.0
IL_001E: ldfld RimWorld.PawnsArrivalModeDef
RimWorld.Planet.TransportPodsArrivalAction_VisitSite::arrivalMode
IL_0023: ldarg 1
IL_0027: ldarg 2
IL_002B: call static System.Boolean
VFEMech.Patch_Arrived::Prefix(RimWorld.Planet.Site ___site,
RimWorld.PawnsArrivalModeDef ___arrivalMode,
System.Collections.Generic.List`1<RimWorld.ActiveDropPodInfo> pods, System.Int32
tile)
IL_0030: stloc 3 (System.Boolean)
IL_0034: Label1
IL_0034: nop
IL_0035: ldloc 3 (System.Boolean)
IL_0039: brfalse => Label0
IL_003E: // start original
IL_003E: ldarg.1
IL_003F: call static Verse.Thing
RimWorld.Planet.TransportPodsArrivalActionUtility::GetLookTarget(System.Collections
.Generic.List`1<RimWorld.ActiveDropPodInfo> pods)
IL_0044: stloc.0
IL_0045: ldarg.0
IL_0046: ldfld RimWorld.Planet.Site
RimWorld.Planet.TransportPodsArrivalAction_VisitSite::site
IL_004B: callvirt System.Boolean RimWorld.Planet.MapParent::get_HasMap()
IL_0050: ldc.i4.0
IL_0051: ceq
IL_0053: ldarg.0
IL_0054: ldfld RimWorld.Planet.Site
RimWorld.Planet.TransportPodsArrivalAction_VisitSite::site
IL_0059: callvirt virtual System.Int32 RimWorld.Planet.WorldObject::get_Tile()
IL_005E: ldarg.0
IL_005F: ldfld RimWorld.Planet.Site
RimWorld.Planet.TransportPodsArrivalAction_VisitSite::site
IL_0064: callvirt Verse.IntVec3 RimWorld.Planet.Site::get_PreferredMapSize()
IL_0069: ldnull
IL_006A: call static Verse.Map
Verse.GetOrGenerateMapUtility::GetOrGenerateMap(System.Int32 tile, Verse.IntVec3
size, RimWorld.WorldObjectDef suggestedMapParentDef)
IL_006F: stloc.1
IL_0070: brfalse => Label2
IL_0075: call static Verse.TickManager Verse.Find::get_TickManager()
IL_007A: callvirt System.Void
Verse.TickManager::Notify_GeneratedPotentiallyHostileMap()
IL_007F: ldloc.1
IL_0080: ldfld Verse.MapPawns Verse.Map::mapPawns
IL_0085: callvirt System.Collections.Generic.List`1<Verse.Pawn>
Verse.MapPawns::get_AllPawns()
IL_008A: ldstr "LetterRelatedPawnsInMapWherePlayerLanded"
IL_008F: call static RimWorld.Faction RimWorld.Faction::get_OfPlayer()
IL_0094: ldfld RimWorld.FactionDef RimWorld.Faction::def
IL_0099: ldfld System.String RimWorld.FactionDef::pawnsPlural
IL_009E: call static Verse.NamedArgument
Verse.NamedArgument::op_Implicit(System.String value)
IL_00A3: call static Verse.TaggedString
Verse.TranslatorFormattedStringExtensions::Translate(System.String key,
Verse.NamedArgument arg1)
IL_00A8: call static System.String
Verse.TaggedString::op_Implicit(Verse.TaggedString taggedString)
IL_00AD: ldsfld Verse.LetterDef RimWorld.LetterDefOf::NeutralEvent
IL_00B2: ldc.i4.1
IL_00B3: ldc.i4.1
IL_00B4: call static System.Void
RimWorld.PawnRelationUtility::Notify_PawnsSeenByPlayer_Letter_Send(System.Collectio
ns.Generic.IEnumerable`1<Verse.Pawn> seenPawns, System.String relationsInfoHeader,
Verse.LetterDef letterDef, System.Boolean informEvenIfSeenBefore, System.Boolean
writeSeenPawnsNames)
IL_00B9: Label2
IL_00B9: ldarg.0
IL_00BA: ldfld RimWorld.Planet.Site
RimWorld.Planet.TransportPodsArrivalAction_VisitSite::site
IL_00BF: callvirt virtual RimWorld.Faction
RimWorld.Planet.WorldObject::get_Faction()
IL_00C4: brfalse => Label3
IL_00C9: ldarg.0
IL_00CA: ldfld RimWorld.Planet.Site
RimWorld.Planet.TransportPodsArrivalAction_VisitSite::site
IL_00CF: callvirt virtual RimWorld.Faction
RimWorld.Planet.WorldObject::get_Faction()
IL_00D4: call static RimWorld.Faction RimWorld.Faction::get_OfPlayer()
IL_00D9: beq => Label4
IL_00DE: call static RimWorld.Faction RimWorld.Faction::get_OfPlayer()
IL_00E3: ldarg.0
IL_00E4: ldfld RimWorld.Planet.Site
RimWorld.Planet.TransportPodsArrivalAction_VisitSite::site
IL_00E9: callvirt virtual RimWorld.Faction
RimWorld.Planet.WorldObject::get_Faction()
IL_00EE: call static RimWorld.Faction RimWorld.Faction::get_OfPlayer()
IL_00F3: ldarg.0
IL_00F4: ldfld RimWorld.Planet.Site
RimWorld.Planet.TransportPodsArrivalAction_VisitSite::site
IL_00F9: callvirt virtual RimWorld.Faction
RimWorld.Planet.WorldObject::get_Faction()
IL_00FE: callvirt System.Int32
RimWorld.Faction::GoodwillToMakeHostile(RimWorld.Faction other)
IL_0103: ldc.i4.1
IL_0104: ldc.i4.1
IL_0105: ldsfld RimWorld.HistoryEventDef
RimWorld.HistoryEventDefOf::AttackedSettlement
IL_010A: ldloca.s 2 (System.Nullable`1[RimWorld.Planet.GlobalTargetInfo])
IL_010C: initobj System.Nullable`1[RimWorld.Planet.GlobalTargetInfo]
IL_0112: ldloc.2
IL_0113: callvirt System.Boolean
RimWorld.Faction::TryAffectGoodwillWith(RimWorld.Faction other, System.Int32
goodwillChange, System.Boolean canSendMessage, System.Boolean
canSendHostilityLetter, RimWorld.HistoryEventDef reason,
System.Nullable`1<RimWorld.Planet.GlobalTargetInfo> lookTarget)
IL_0118: pop
IL_0119: Label3
IL_0119: Label4
IL_0119: ldstr "MessageTransportPodsArrived"
IL_011E: call static Verse.TaggedString
Verse.Translator::Translate(System.String key)
IL_0123: call static System.String
Verse.TaggedString::op_Implicit(Verse.TaggedString taggedString)
IL_0128: ldloc.0
IL_0129: call static Verse.LookTargets
Verse.LookTargets::op_Implicit(Verse.Thing t)
IL_012E: ldsfld Verse.MessageTypeDef RimWorld.MessageTypeDefOf::TaskCompletion
IL_0133: ldc.i4.1
IL_0134: call static System.Void Verse.Messages::Message(System.String text,
Verse.LookTargets lookTargets, Verse.MessageTypeDef def, System.Boolean historical)
IL_0139: ldarg.0
IL_013A: ldfld RimWorld.PawnsArrivalModeDef
RimWorld.Planet.TransportPodsArrivalAction_VisitSite::arrivalMode
IL_013F: callvirt RimWorld.PawnsArrivalModeWorker
RimWorld.PawnsArrivalModeDef::get_Worker()
IL_0144: ldarg.1
IL_0145: ldloc.1
IL_0146: callvirt virtual System.Void
RimWorld.PawnsArrivalModeWorker::TravelingTransportPodsArrived(System.Collections.G
eneric.List`1<RimWorld.ActiveDropPodInfo> dropPods, Verse.Map map)
IL_014B: // end original
IL_014B: Label0
IL_014B: ret
DONE

### Patch: static System.Void


RimWorld.Planet.SettlementUtility::AffectRelationsOnAttacked(RimWorld.Planet.MapPar
ent mapParent, Verse.TaggedString& letterText)
### Replacement: static System.Void
RimWorld.Planet.SettlementUtility::RimWorld.Planet.SettlementUtility.AffectRelation
sOnAttacked_Patch1(RimWorld.Planet.MapParent mapParent, Verse.TaggedString&
letterText)
IL_0000: Local var 0: RimWorld.FactionRelationKind
IL_0000: Local var 1: System.Nullable`1<RimWorld.Planet.GlobalTargetInfo>
IL_0000: Local var 2: System.Boolean
IL_0000: ldc.i4 0
IL_0005: stloc 2 (System.Boolean)
IL_0009: ldc.i4.1
IL_000A: stloc 2 (System.Boolean)
IL_000E: ldloc 2 (System.Boolean)
IL_0012: brfalse => Label1
IL_0017: ldarg 0
IL_001B: ldarg 1
IL_001F: call static System.Boolean
VFEMech.Patch_AffectRelationsOnAttacked::Prefix(RimWorld.Planet.MapParent
mapParent, Verse.TaggedString& letterText)
IL_0024: stloc 2 (System.Boolean)
IL_0028: Label1
IL_0028: nop
IL_0029: ldloc 2 (System.Boolean)
IL_002D: brfalse => Label0
IL_0032: // start original
IL_0032: ldarg.0
IL_0033: callvirt virtual RimWorld.Faction
RimWorld.Planet.WorldObject::get_Faction()
IL_0038: brfalse => Label2
IL_003D: ldarg.0
IL_003E: callvirt virtual RimWorld.Faction
RimWorld.Planet.WorldObject::get_Faction()
IL_0043: call static RimWorld.Faction RimWorld.Faction::get_OfPlayer()
IL_0048: beq => Label3
IL_004D: ldarg.0
IL_004E: callvirt virtual RimWorld.Faction
RimWorld.Planet.WorldObject::get_Faction()
IL_0053: callvirt RimWorld.FactionRelationKind
RimWorld.Faction::get_PlayerRelationKind()
IL_0058: stloc.0
IL_0059: call static RimWorld.Faction RimWorld.Faction::get_OfPlayer()
IL_005E: ldarg.0
IL_005F: callvirt virtual RimWorld.Faction
RimWorld.Planet.WorldObject::get_Faction()
IL_0064: call static RimWorld.Faction RimWorld.Faction::get_OfPlayer()
IL_0069: ldarg.0
IL_006A: callvirt virtual RimWorld.Faction
RimWorld.Planet.WorldObject::get_Faction()
IL_006F: callvirt System.Int32
RimWorld.Faction::GoodwillToMakeHostile(RimWorld.Faction other)
IL_0074: ldc.i4.0
IL_0075: ldc.i4.0
IL_0076: ldsfld RimWorld.HistoryEventDef
RimWorld.HistoryEventDefOf::AttackedSettlement
IL_007B: ldloca.s 1 (System.Nullable`1[RimWorld.Planet.GlobalTargetInfo])
IL_007D: initobj System.Nullable`1[RimWorld.Planet.GlobalTargetInfo]
IL_0083: ldloc.1
IL_0084: callvirt System.Boolean
RimWorld.Faction::TryAffectGoodwillWith(RimWorld.Faction other, System.Int32
goodwillChange, System.Boolean canSendMessage, System.Boolean
canSendHostilityLetter, RimWorld.HistoryEventDef reason,
System.Nullable`1<RimWorld.Planet.GlobalTargetInfo> lookTarget)
IL_0089: pop
IL_008A: ldarg.0
IL_008B: callvirt virtual RimWorld.Faction
RimWorld.Planet.WorldObject::get_Faction()
IL_0090: ldarg.1
IL_0091: ldloc.0
IL_0092: ldarg.0
IL_0093: callvirt virtual RimWorld.Faction
RimWorld.Planet.WorldObject::get_Faction()
IL_0098: callvirt RimWorld.FactionRelationKind
RimWorld.Faction::get_PlayerRelationKind()
IL_009D: ldnull
IL_009E: callvirt System.Void
RimWorld.Faction::TryAppendRelationKindChangedInfo(Verse.TaggedString& text,
RimWorld.FactionRelationKind previousKind, RimWorld.FactionRelationKind newKind,
System.String reason)
IL_00A3: // end original
IL_00A3: Label2
IL_00A3: Label3
IL_00A3: Label0
IL_00A3: ret
DONE

### Patch: System.Boolean RimWorld.Building_TurretGun::IsValidTarget(Verse.Thing t)


### Replacement: static System.Boolean
RimWorld.Building_TurretGun::RimWorld.Building_TurretGun.IsValidTarget_Patch2(RimWo
rld.Building_TurretGun this, Verse.Thing t)
IL_0000: Local var 0: Verse.Pawn
IL_0000: Local var 1: Verse.RoofDef
IL_0000: Local var 2: System.Boolean
IL_0000: ldc.i4 0
IL_0005: stloc 2 (System.Boolean)
IL_0009: // start original
IL_0009: ldarg.1
IL_000A: isinst Verse.Pawn
IL_000F: stloc.0
IL_0010: ldloc.0
IL_0011: brfalse => Label0
IL_0016: ldarg.0
IL_0017: call virtual RimWorld.Faction Verse.Thing::get_Faction()
IL_001C: call static RimWorld.Faction RimWorld.Faction::get_OfPlayer()
IL_0021: bne.un => Label1
IL_0026: ldloc.0
IL_0027: callvirt System.Boolean Verse.Pawn::get_IsPrisoner()
IL_002C: brfalse => Label2
IL_0031: ldc.i4.0
IL_0032: br => Label9
IL_0037: Label1
IL_0037: Label2
IL_0037: ldarg.0
IL_0038: callvirt abstract virtual Verse.Verb
RimWorld.Building_Turret::get_AttackVerb()
IL_003D: call static System.Boolean
Verse.VerbUtility::ProjectileFliesOverhead(Verse.Verb verb)
IL_0042: brfalse => Label3
IL_0047: ldarg.0
IL_0048: call virtual Verse.Map Verse.Thing::get_Map()
IL_004D: ldfld Verse.RoofGrid Verse.Map::roofGrid
IL_0052: ldarg.1
IL_0053: callvirt virtual Verse.IntVec3 Verse.Thing::get_Position()
IL_0058: callvirt Verse.RoofDef Verse.RoofGrid::RoofAt(Verse.IntVec3 c)
IL_005D: stloc.1
IL_005E: ldloc.1
IL_005F: brfalse => Label4
IL_0064: ldloc.1
IL_0065: ldfld System.Boolean Verse.RoofDef::isThickRoof
IL_006A: brfalse => Label5
IL_006F: ldc.i4.0
IL_0070: br => Label10
IL_0075: Label3
IL_0075: Label4
IL_0075: Label5
IL_0075: ldarg.0
IL_0076: ldfld RimWorld.CompMannable RimWorld.Building_TurretGun::mannableComp
IL_007B: brtrue => Label6
IL_0080: ldarg.0
IL_0081: call virtual RimWorld.Faction Verse.Thing::get_Faction()
IL_0086: ldloc.0
IL_0087: call static System.Boolean
Verse.AI.GenAI::MachinesLike(RimWorld.Faction machineFaction, Verse.Pawn p)
IL_008C: ldc.i4.0
IL_008D: ceq
IL_008F: br => Label11
IL_0094: Label6
IL_0094: ldloc.0
IL_0095: callvirt Verse.RaceProperties Verse.Pawn::get_RaceProps()
IL_009A: callvirt System.Boolean Verse.RaceProperties::get_Animal()
IL_009F: brfalse => Label7
IL_00A4: ldloc.0
IL_00A5: callvirt virtual RimWorld.Faction Verse.Thing::get_Faction()
IL_00AA: call static RimWorld.Faction RimWorld.Faction::get_OfPlayer()
IL_00AF: bne.un => Label8
IL_00B4: ldc.i4.0
IL_00B5: br => Label12
IL_00BA: Label0
IL_00BA: Label7
IL_00BA: Label8
IL_00BA: ldc.i4.1
IL_00BB: // end original
IL_00BB: Label9
IL_00BB: Label10
IL_00BB: Label11
IL_00BB: Label12
IL_00BB: stloc 2 (System.Boolean)
IL_00BF: ldarg 1
IL_00C3: ldarg.0
IL_00C4: ldloca 2 (System.Boolean)
IL_00C8: call static System.Void
VFECore.Building_TurretGun_IsValidTarget_Patch::Postfix(Verse.Thing t,
RimWorld.Building_TurretGun __instance, System.Boolean& __result)
IL_00CD: ldarg.0
IL_00CE: ldloca 2 (System.Boolean)
IL_00D2: ldarg 1
IL_00D6: call static System.Void
VFEMech.Building_TurretGun_IsValidTarget::Postfix(RimWorld.Building_TurretGun
__instance, System.Boolean& __result, Verse.Thing t)
IL_00DB: ldloc 2 (System.Boolean)
IL_00DF: ret
DONE

### Patch: virtual System.Void Verse.Thing::SpawnSetup(Verse.Map map,


System.Boolean respawningAfterLoad)
### Replacement: static System.Void
Verse.Thing::Verse.Thing.SpawnSetup_Patch0(Verse.Thing this, Verse.Map map,
System.Boolean respawningAfterLoad)
IL_0000: Local var 0: System.Int32
IL_0000: Local var 1: Verse.Region
IL_0000: Local var 2: Verse.Room
IL_0000: Local var 3: RimWorld.IHaulDestination
IL_0000: Local var 4: RimWorld.SlotGroup
IL_0000: // start original
IL_0000: ldarg.0
IL_0001: call System.Boolean Verse.Thing::get_Destroyed()
IL_0006: brfalse => Label0
IL_000B: ldc.i4.5
IL_000C: newarr System.Object
IL_0011: dup
IL_0012: ldc.i4.0
IL_0013: ldstr "Spawning destroyed thing "
IL_0018: stelem.ref
IL_0019: dup
IL_001A: ldc.i4.1
IL_001B: ldarg.0
IL_001C: stelem.ref
IL_001D: dup
IL_001E: ldc.i4.2
IL_001F: ldstr " at "
IL_0024: stelem.ref
IL_0025: dup
IL_0026: ldc.i4.3
IL_0027: ldarg.0
IL_0028: call virtual Verse.IntVec3 Verse.Thing::get_Position()
IL_002D: box Verse.IntVec3
IL_0032: stelem.ref
IL_0033: dup
IL_0034: ldc.i4.4
IL_0035: ldstr ". Correcting."
IL_003A: stelem.ref
IL_003B: call static System.String System.String::Concat(System.Object[]
args)
IL_0040: call static System.Void Verse.Log::Error(System.String text)
IL_0045: ldarg.0
IL_0046: ldc.i4.m1
IL_0047: stfld System.SByte Verse.Thing::mapIndexOrState
IL_004C: ldarg.0
IL_004D: callvirt virtual System.Int32 Verse.Thing::get_HitPoints()
IL_0052: ldc.i4.0
IL_0053: bgt => Label1
IL_0058: ldarg.0
IL_0059: ldfld Verse.ThingDef Verse.Thing::def
IL_005E: ldfld System.Boolean Verse.ThingDef::useHitPoints
IL_0063: brfalse => Label2
IL_0068: ldarg.0
IL_0069: ldc.i4.1
IL_006A: callvirt virtual System.Void Verse.Thing::set_HitPoints(System.Int32
value)
IL_006F: Label0
IL_006F: Label1
IL_006F: Label2
IL_006F: ldarg.0
IL_0070: call System.Boolean Verse.Thing::get_Spawned()
IL_0075: brfalse => Label3
IL_007A: ldc.i4.4
IL_007B: newarr System.Object
IL_0080: dup
IL_0081: ldc.i4.0
IL_0082: ldstr "Tried to spawn already-spawned thing "
IL_0087: stelem.ref
IL_0088: dup
IL_0089: ldc.i4.1
IL_008A: ldarg.0
IL_008B: stelem.ref
IL_008C: dup
IL_008D: ldc.i4.2
IL_008E: ldstr " at "
IL_0093: stelem.ref
IL_0094: dup
IL_0095: ldc.i4.3
IL_0096: ldarg.0
IL_0097: call virtual Verse.IntVec3 Verse.Thing::get_Position()
IL_009C: box Verse.IntVec3
IL_00A1: stelem.ref
IL_00A2: call static System.String System.String::Concat(System.Object[]
args)
IL_00A7: call static System.Void Verse.Log::Error(System.String text)
IL_00AC: br => Label28
IL_00B1: Label3
IL_00B1: call static System.Collections.Generic.List`1<Verse.Map>
Verse.Find::get_Maps()
IL_00B6: ldarg.1
IL_00B7: callvirt virtual System.Int32
System.Collections.Generic.List`1<Verse.Map>::IndexOf(Verse.Map item)
IL_00BC: stloc.0
IL_00BD: ldloc.0
IL_00BE: ldc.i4.0
IL_00BF: bge => Label4
IL_00C4: ldstr "Tried to spawn thing "
IL_00C9: ldarg.0
IL_00CA: ldstr ", but the map provided does not exist."
IL_00CF: call static System.String System.String::Concat(System.Object arg0,
System.Object arg1, System.Object arg2)
IL_00D4: call static System.Void Verse.Log::Error(System.String text)
IL_00D9: br => Label29
IL_00DE: Label4
IL_00DE: ldarg.0
IL_00DF: ldarg.1
IL_00E0: call static System.Boolean
VFEMech.ThingSpawnSetup_Patch::SpawnSetupHelper(Verse.Thing thing, Verse.Map map)
IL_00E5: brtrue => Label5
IL_00EA: ldc.i4.7
IL_00EB: newarr System.Object
IL_00F0: dup
IL_00F1: ldc.i4.0
IL_00F2: ldstr "Spawned "
IL_00F7: stelem.ref
IL_00F8: dup
IL_00F9: ldc.i4.1
IL_00FA: ldarg.0
IL_00FB: stelem.ref
IL_00FC: dup
IL_00FD: ldc.i4.2
IL_00FE: ldstr " with stackCount "
IL_0103: stelem.ref
IL_0104: dup
IL_0105: ldc.i4.3
IL_0106: ldarg.0
IL_0107: ldfld System.Int32 Verse.Thing::stackCount
IL_010C: box System.Int32
IL_0111: stelem.ref
IL_0112: dup
IL_0113: ldc.i4.4
IL_0114: ldstr " but stackLimit is "
IL_0119: stelem.ref
IL_011A: dup
IL_011B: ldc.i4.5
IL_011C: ldarg.0
IL_011D: ldfld Verse.ThingDef Verse.Thing::def
IL_0122: ldfld System.Int32 Verse.ThingDef::stackLimit
IL_0127: box System.Int32
IL_012C: stelem.ref
IL_012D: dup
IL_012E: ldc.i4.6
IL_012F: ldstr ". Truncating."
IL_0134: stelem.ref
IL_0135: call static System.String System.String::Concat(System.Object[]
args)
IL_013A: call static System.Void Verse.Log::Error(System.String text)
IL_013F: ldarg.0
IL_0140: ldarg.0
IL_0141: ldfld Verse.ThingDef Verse.Thing::def
IL_0146: ldfld System.Int32 Verse.ThingDef::stackLimit
IL_014B: stfld System.Int32 Verse.Thing::stackCount
IL_0150: Label5
IL_0150: ldarg.0
IL_0151: ldloc.0
IL_0152: conv.i1
IL_0153: stfld System.SByte Verse.Thing::mapIndexOrState
IL_0158: ldarg.0
IL_0159: ldarg.1
IL_015A: call static System.Void
Verse.RegionListersUpdater::RegisterInRegions(Verse.Thing thing, Verse.Map map)
IL_015F: ldarg.1
IL_0160: ldfld Verse.ThingOwner Verse.Map::spawnedThings
IL_0165: ldarg.0
IL_0166: ldc.i4.0
IL_0167: callvirt abstract virtual System.Boolean
Verse.ThingOwner::TryAdd(Verse.Thing item, System.Boolean
canMergeWithExistingStacks)
IL_016C: brtrue => Label6
IL_0171: ldstr "Couldn\'t add thing "
IL_0176: ldarg.0
IL_0177: ldstr " to spawned things."
IL_017C: call static System.String System.String::Concat(System.Object arg0,
System.Object arg1, System.Object arg2)
IL_0181: call static System.Void Verse.Log::Error(System.String text)
IL_0186: Label6
IL_0186: ldarg.1
IL_0187: ldfld Verse.ListerThings Verse.Map::listerThings
IL_018C: ldarg.0
IL_018D: callvirt System.Void Verse.ListerThings::Add(Verse.Thing t)
IL_0192: ldarg.1
IL_0193: ldfld Verse.ThingGrid Verse.Map::thingGrid
IL_0198: ldarg.0
IL_0199: callvirt System.Void Verse.ThingGrid::Register(Verse.Thing t)
IL_019E: ldarg.1
IL_019F: ldfld Verse.GasGrid Verse.Map::gasGrid
IL_01A4: ldarg.0
IL_01A5: callvirt System.Void Verse.GasGrid::Notify_ThingSpawned(Verse.Thing
thing)
IL_01AA: ldarg.1
IL_01AB: ldfld Verse.MapTemperature Verse.Map::mapTemperature
IL_01B0: ldarg.0
IL_01B1: callvirt System.Void
Verse.MapTemperature::Notify_ThingSpawned(Verse.Thing thing)
IL_01B6: ldarg.1
IL_01B7: callvirt System.Boolean Verse.Map::get_IsPlayerHome()
IL_01BC: brfalse => Label7
IL_01C1: ldarg.0
IL_01C2: ldc.i4.1
IL_01C3: call System.Void Verse.Thing::set_EverSeenByPlayer(System.Boolean
value)
IL_01C8: Label7
IL_01C8: call static Verse.TickManager Verse.Find::get_TickManager()
IL_01CD: brfalse => Label8
IL_01D2: call static Verse.TickManager Verse.Find::get_TickManager()
IL_01D7: ldarg.0
IL_01D8: callvirt System.Void
Verse.TickManager::RegisterAllTickabilityFor(Verse.Thing t)
IL_01DD: Label8
IL_01DD: ldarg.0
IL_01DE: ldarg.1
IL_01DF: call System.Void Verse.Thing::DirtyMapMesh(Verse.Map map)
IL_01E4: ldarg.0
IL_01E5: ldfld Verse.ThingDef Verse.Thing::def
IL_01EA: ldfld Verse.DrawerType Verse.ThingDef::drawerType
IL_01EF: ldc.i4.2
IL_01F0: beq => Label9
IL_01F5: ldarg.1
IL_01F6: ldfld Verse.DynamicDrawManager Verse.Map::dynamicDrawManager
IL_01FB: ldarg.0
IL_01FC: callvirt System.Void
Verse.DynamicDrawManager::RegisterDrawable(Verse.Thing t)
IL_0201: Label9
IL_0201: ldarg.1
IL_0202: ldfld Verse.TooltipGiverList Verse.Map::tooltipGiverList
IL_0207: ldarg.0
IL_0208: callvirt System.Void
Verse.TooltipGiverList::Notify_ThingSpawned(Verse.Thing t)
IL_020D: ldarg.0
IL_020E: ldfld Verse.ThingDef Verse.Thing::def
IL_0213: callvirt System.Boolean Verse.ThingDef::get_CanAffectLinker()
IL_0218: brfalse => Label10
IL_021D: ldarg.1
IL_021E: ldfld Verse.LinkGrid Verse.Map::linkGrid
IL_0223: ldarg.0
IL_0224: callvirt System.Void
Verse.LinkGrid::Notify_LinkerCreatedOrDestroyed(Verse.Thing linker)
IL_0229: ldarg.1
IL_022A: ldfld Verse.MapDrawer Verse.Map::mapDrawer
IL_022F: ldarg.0
IL_0230: call virtual Verse.IntVec3 Verse.Thing::get_Position()
IL_0235: ldc.i4.1
IL_0236: ldc.i4.1
IL_0237: ldc.i4.0
IL_0238: callvirt System.Void Verse.MapDrawer::MapMeshDirty(Verse.IntVec3 loc,
Verse.MapMeshFlag dirtyFlags, System.Boolean regenAdjacentCells, System.Boolean
regenAdjacentSections)
IL_023D: Label10
IL_023D: ldarg.0
IL_023E: ldfld Verse.ThingDef Verse.Thing::def
IL_0243: callvirt System.Boolean Verse.ThingDef::get_CanOverlapZones()
IL_0248: brtrue => Label11
IL_024D: ldarg.1
IL_024E: ldfld Verse.ZoneManager Verse.Map::zoneManager
IL_0253: ldarg.0
IL_0254: callvirt System.Void
Verse.ZoneManager::Notify_NoZoneOverlapThingSpawned(Verse.Thing thing)
IL_0259: Label11
IL_0259: ldarg.0
IL_025A: ldfld Verse.ThingDef Verse.Thing::def
IL_025F: callvirt System.Boolean Verse.ThingDef::get_AffectsRegions()
IL_0264: brfalse => Label12
IL_0269: ldarg.1
IL_026A: ldfld Verse.RegionDirtyer Verse.Map::regionDirtyer
IL_026F: ldarg.0
IL_0270: callvirt System.Void
Verse.RegionDirtyer::Notify_ThingAffectingRegionsSpawned(Verse.Thing b)
IL_0275: Label12
IL_0275: ldarg.0
IL_0276: ldfld Verse.ThingDef Verse.Thing::def
IL_027B: ldfld System.Int32 Verse.BuildableDef::pathCost
IL_0280: brtrue => Label13
IL_0285: ldarg.0
IL_0286: ldfld Verse.ThingDef Verse.Thing::def
IL_028B: ldfld Verse.Traversability Verse.BuildableDef::passability
IL_0290: ldc.i4.2
IL_0291: bne.un => Label14
IL_0296: Label13
IL_0296: ldarg.1
IL_0297: ldfld Verse.AI.Pathing Verse.Map::pathing
IL_029C: ldarg.0
IL_029D: callvirt System.Void
Verse.AI.Pathing::RecalculatePerceivedPathCostUnderThing(Verse.Thing thing)
IL_02A2: Label14
IL_02A2: ldarg.0
IL_02A3: ldfld Verse.ThingDef Verse.Thing::def
IL_02A8: callvirt System.Boolean Verse.ThingDef::get_AffectsReachability()
IL_02AD: brfalse => Label15
IL_02B2: ldarg.1
IL_02B3: ldfld Verse.Reachability Verse.Map::reachability
IL_02B8: callvirt System.Void Verse.Reachability::ClearCache()
IL_02BD: Label15
IL_02BD: ldarg.1
IL_02BE: ldfld Verse.CoverGrid Verse.Map::coverGrid
IL_02C3: ldarg.0
IL_02C4: callvirt System.Void Verse.CoverGrid::Register(Verse.Thing t)
IL_02C9: ldarg.0
IL_02CA: ldfld Verse.ThingDef Verse.Thing::def
IL_02CF: ldfld Verse.ThingCategory Verse.ThingDef::category
IL_02D4: ldc.i4.2
IL_02D5: bne.un => Label16
IL_02DA: ldarg.1
IL_02DB: ldfld RimWorld.ListerHaulables Verse.Map::listerHaulables
IL_02E0: ldarg.0
IL_02E1: callvirt System.Void
RimWorld.ListerHaulables::Notify_Spawned(Verse.Thing t)
IL_02E6: ldarg.1
IL_02E7: ldfld RimWorld.ListerMergeables Verse.Map::listerMergeables
IL_02EC: ldarg.0
IL_02ED: callvirt System.Void
RimWorld.ListerMergeables::Notify_Spawned(Verse.Thing t)
IL_02F2: Label16
IL_02F2: ldarg.1
IL_02F3: ldfld Verse.AI.AttackTargetsCache Verse.Map::attackTargetsCache
IL_02F8: ldarg.0
IL_02F9: callvirt System.Void
Verse.AI.AttackTargetsCache::Notify_ThingSpawned(Verse.Thing th)
IL_02FE: ldarg.1
IL_02FF: ldfld Verse.RegionGrid Verse.Map::regionGrid
IL_0304: ldarg.0
IL_0305: call virtual Verse.IntVec3 Verse.Thing::get_Position()
IL_030A: callvirt Verse.Region
Verse.RegionGrid::GetValidRegionAt_NoRebuild(Verse.IntVec3 c)
IL_030F: stloc.1
IL_0310: ldloc.1
IL_0311: brfalse => Label17
IL_0316: ldloc.1
IL_0317: callvirt Verse.Room Verse.Region::get_Room()
IL_031C: br => Label18
IL_0321: Label17
IL_0321: ldnull
IL_0322: Label18
IL_0322: stloc.2
IL_0323: ldloc.2
IL_0324: brfalse => Label19
IL_0329: ldloc.2
IL_032A: ldarg.0
IL_032B: callvirt System.Void
Verse.Room::Notify_ContainedThingSpawnedOrDespawned(Verse.Thing th)
IL_0330: Label19
IL_0330: ldarg.0
IL_0331: call static System.Void
RimWorld.StealAIDebugDrawer::Notify_ThingChanged(Verse.Thing thing)
IL_0336: ldarg.0
IL_0337: isinst RimWorld.IHaulDestination
IL_033C: stloc.3
IL_033D: ldloc.3
IL_033E: brfalse => Label20
IL_0343: ldarg.1
IL_0344: ldfld RimWorld.HaulDestinationManager
Verse.Map::haulDestinationManager
IL_0349: ldloc.3
IL_034A: callvirt System.Void
RimWorld.HaulDestinationManager::AddHaulDestination(RimWorld.IHaulDestination
haulDestination)
IL_034F: Label20
IL_034F: ldarg.0
IL_0350: isinst Verse.IThingHolder
IL_0355: brfalse => Label21
IL_035A: call static RimWorld.ColonistBar Verse.Find::get_ColonistBar()
IL_035F: brfalse => Label22
IL_0364: call static RimWorld.ColonistBar Verse.Find::get_ColonistBar()
IL_0369: callvirt System.Void RimWorld.ColonistBar::MarkColonistsDirty()
IL_036E: Label21
IL_036E: Label22
IL_036E: ldarg.0
IL_036F: ldfld Verse.ThingDef Verse.Thing::def
IL_0374: ldfld Verse.ThingCategory Verse.ThingDef::category
IL_0379: ldc.i4.2
IL_037A: bne.un => Label23
IL_037F: ldarg.0
IL_0380: call virtual Verse.IntVec3 Verse.Thing::get_Position()
IL_0385: ldarg.1
IL_0386: call static RimWorld.SlotGroup
RimWorld.StoreUtility::GetSlotGroup(Verse.IntVec3 c, Verse.Map map)
IL_038B: stloc.s 4 (RimWorld.SlotGroup)
IL_038D: ldloc.s 4 (RimWorld.SlotGroup)
IL_038F: brfalse => Label24
IL_0394: ldloc.s 4 (RimWorld.SlotGroup)
IL_0396: ldfld RimWorld.ISlotGroupParent RimWorld.SlotGroup::parent
IL_039B: brfalse => Label25
IL_03A0: ldloc.s 4 (RimWorld.SlotGroup)
IL_03A2: ldfld RimWorld.ISlotGroupParent RimWorld.SlotGroup::parent
IL_03A7: ldarg.0
IL_03A8: callvirt abstract virtual System.Void
RimWorld.ISlotGroupParent::Notify_ReceivedThing(Verse.Thing newItem)
IL_03AD: Label23
IL_03AD: Label24
IL_03AD: Label25
IL_03AD: ldarg.0
IL_03AE: ldfld Verse.ThingDef Verse.Thing::def
IL_03B3: ldfld System.Boolean Verse.ThingDef::receivesSignals
IL_03B8: brfalse => Label26
IL_03BD: call static RimWorld.SignalManager Verse.Find::get_SignalManager()
IL_03C2: ldarg.0
IL_03C3: callvirt System.Void
RimWorld.SignalManager::RegisterReceiver(RimWorld.ISignalReceiver receiver)
IL_03C8: Label26
IL_03C8: ldarg.2
IL_03C9: brtrue => Label27
IL_03CE: ldarg.0
IL_03CF: ldfld System.Collections.Generic.List`1<System.String>
Verse.Thing::questTags
IL_03D4: ldstr "Spawned"
IL_03D9: ldarg.0
IL_03DA: ldstr "SUBJECT"
IL_03DF: call static Verse.NamedArgument
Verse.NamedArgumentUtility::Named(System.Object arg, System.String label)
IL_03E4: call static System.Void
RimWorld.QuestUtility::SendQuestTargetSignals(System.Collections.Generic.List`1<Sys
tem.String> questTags, System.String signalPart, Verse.NamedArgument arg1)
IL_03E9: // end original
IL_03E9: Label27
IL_03E9: Label28
IL_03E9: Label29
IL_03E9: ret
DONE

### Patch: virtual System.Void Verse.Thing::PostMapInit()


### Replacement: static System.Void
Verse.Thing::Verse.Thing.PostMapInit_Patch1(Verse.Thing this)
IL_0000: ldarg.0
IL_0001: call static System.Void
VFEMech.ThingPostInit_Patch::Prefix(Verse.Thing __instance)
IL_0006: // start original
IL_0006: // end original
IL_0006: ret
DONE

### Patch: System.Void


RimWorld.SteadyEnvironmentEffects::TryDoDeteriorate(Verse.Thing t, System.Boolean
roofed, System.Boolean roomUsesOutdoorTemperature, Verse.TerrainDef terrain)
### Replacement: static System.Void
RimWorld.SteadyEnvironmentEffects::RimWorld.SteadyEnvironmentEffects.TryDoDeteriora
te_Patch2(RimWorld.SteadyEnvironmentEffects this, Verse.Thing t, System.Boolean
roofed, System.Boolean roomUsesOutdoorTemperature, Verse.TerrainDef terrain)
IL_0000: Local var 0: Verse.Corpse
IL_0000: Local var 1: System.Single
IL_0000: Local var 2: System.Collections.Generic.List`1<RimWorld.Apparel>
IL_0000: Local var 3: System.Int32
IL_0000: Local var 4: Verse.IntVec3
IL_0000: Local var 5: Verse.Map
IL_0000: Local var 6: System.Boolean
IL_0000: Local var 7: System.Boolean
IL_0000: ldc.i4 0
IL_0005: stloc 7 (System.Boolean)
IL_0009: ldc.i4.1
IL_000A: stloc 7 (System.Boolean)
IL_000E: ldloc 7 (System.Boolean)
IL_0012: brfalse => Label1
IL_0017: ldarg 1
IL_001B: call static System.Boolean
ItemTeleporter.TryDoDeteriorate_Patch::Prefix(Verse.Thing t)
IL_0020: stloc 7 (System.Boolean)
IL_0024: Label1
IL_0024: nop
IL_0025: ldloc 7 (System.Boolean)
IL_0029: brfalse => Label2
IL_002E: ldarg 1
IL_0032: call static System.Boolean
VFEMech.TryDoDeteriorate_Patch::Prefix(Verse.Thing t)
IL_0037: stloc 7 (System.Boolean)
IL_003B: Label2
IL_003B: nop
IL_003C: ldloc 7 (System.Boolean)
IL_0040: brfalse => Label0
IL_0045: // start original
IL_0045: ldarg.1
IL_0046: isinst Verse.Corpse
IL_004B: stloc.0
IL_004C: ldloc.0
IL_004D: brfalse => Label3
IL_0052: ldloc.0
IL_0053: callvirt Verse.Pawn Verse.Corpse::get_InnerPawn()
IL_0058: ldfld RimWorld.Pawn_ApparelTracker Verse.Pawn::apparel
IL_005D: brfalse => Label4
IL_0062: ldloc.0
IL_0063: callvirt Verse.Pawn Verse.Corpse::get_InnerPawn()
IL_0068: ldfld RimWorld.Pawn_ApparelTracker Verse.Pawn::apparel
IL_006D: callvirt System.Collections.Generic.List`1<RimWorld.Apparel>
RimWorld.Pawn_ApparelTracker::get_WornApparel()
IL_0072: stloc.2
IL_0073: ldc.i4.0
IL_0074: stloc.3
IL_0075: br => Label5
IL_007A: Label6
IL_007A: ldarg.0
IL_007B: ldloc.2
IL_007C: ldloc.3
IL_007D: callvirt virtual RimWorld.Apparel
System.Collections.Generic.List`1<RimWorld.Apparel>::get_Item(System.Int32 index)
IL_0082: ldarg.2
IL_0083: ldarg.3
IL_0084: ldarg.s 4
IL_0086: call System.Void
RimWorld.SteadyEnvironmentEffects::TryDoDeteriorate(Verse.Thing t, System.Boolean
roofed, System.Boolean roomUsesOutdoorTemperature, Verse.TerrainDef terrain)
IL_008B: ldloc.3
IL_008C: ldc.i4.1
IL_008D: add
IL_008E: stloc.3
IL_008F: Label5
IL_008F: ldloc.3
IL_0090: ldloc.2
IL_0091: callvirt virtual System.Int32
System.Collections.Generic.List`1<RimWorld.Apparel>::get_Count()
IL_0096: blt => Label6
IL_009B: Label3
IL_009B: Label4
IL_009B: ldarg.1
IL_009C: ldarg.2
IL_009D: ldarg.3
IL_009E: ldarg.s 4
IL_00A0: ldnull
IL_00A1: call static System.Single
RimWorld.SteadyEnvironmentEffects::FinalDeteriorationRate(Verse.Thing t,
System.Boolean roofed, System.Boolean roomUsesOutdoorTemperature, Verse.TerrainDef
terrain, System.Collections.Generic.List`1<System.String> reasons)
IL_00A6: stloc.1
IL_00A7: ldloc.1
IL_00A8: ldc.r4 0.001
IL_00AD: bge.un => Label7
IL_00B2: br => Label9
IL_00B7: Label7
IL_00B7: ldloc.1
IL_00B8: ldc.r4 36
IL_00BD: div
IL_00BE: call static System.Boolean Verse.Rand::Chance(System.Single chance)
IL_00C3: brfalse => Label8
IL_00C8: ldarg.1
IL_00C9: callvirt virtual Verse.IntVec3 Verse.Thing::get_Position()
IL_00CE: stloc.s 4 (Verse.IntVec3)
IL_00D0: ldarg.1
IL_00D1: callvirt virtual Verse.Map Verse.Thing::get_Map()
IL_00D6: stloc.s 5 (Verse.Map)
IL_00D8: ldarg.1
IL_00D9: call static System.Boolean
RimWorld.StoreUtility::IsInAnyStorage(Verse.Thing t)
IL_00DE: stloc.s 6 (System.Boolean)
IL_00E0: ldarg.1
IL_00E1: ldloc.s 4 (Verse.IntVec3)
IL_00E3: ldloc.s 5 (Verse.Map)
IL_00E5: ldloc.s 6 (System.Boolean)
IL_00E7: call static System.Void
RimWorld.SteadyEnvironmentEffects::DoDeteriorationDamage(Verse.Thing t,
Verse.IntVec3 pos, Verse.Map map, System.Boolean sendMessage)
IL_00EC: // end original
IL_00EC: Label8
IL_00EC: Label9
IL_00EC: Label0
IL_00EC: ret
DONE

### Patch: System.Boolean RimWorld.CompRottable::get_Active()


### Replacement: static System.Boolean
RimWorld.CompRottable::RimWorld.CompRottable.get_Active_Patch2(RimWorld.CompRottabl
e this)
IL_0000: Local var 0: RimWorld.CompHatcher
IL_0000: Local var 1: System.Boolean
IL_0000: Local var 2: System.Boolean
IL_0000: ldc.i4 0
IL_0005: stloc 1 (System.Boolean)
IL_0009: ldc.i4 0
IL_000E: stloc 2 (System.Boolean)
IL_0012: ldc.i4.1
IL_0013: stloc 2 (System.Boolean)
IL_0017: ldloc 2 (System.Boolean)
IL_001B: brfalse => Label1
IL_0020: ldarg.0
IL_0021: ldloca 1 (System.Boolean)
IL_0025: call static System.Boolean
ItemTeleporter.Active_Patch::Prefix(RimWorld.CompRottable __instance,
System.Boolean& __result)
IL_002A: stloc 2 (System.Boolean)
IL_002E: Label1
IL_002E: nop
IL_002F: ldloc 2 (System.Boolean)
IL_0033: brfalse => Label2
IL_0038: ldarg.0
IL_0039: ldloca 1 (System.Boolean)
IL_003D: call static System.Boolean
VFEMech.Active_Patch::Prefix(RimWorld.CompRottable __instance, System.Boolean&
__result)
IL_0042: stloc 2 (System.Boolean)
IL_0046: Label2
IL_0046: nop
IL_0047: ldloc 2 (System.Boolean)
IL_004B: brfalse => Label0
IL_0050: // start original
IL_0050: ldarg.0
IL_0051: call RimWorld.CompProperties_Rottable
RimWorld.CompRottable::get_PropsRot()
IL_0056: ldfld System.Boolean
RimWorld.CompProperties_Rottable::disableIfHatcher
IL_005B: brfalse => Label3
IL_0060: ldarg.0
IL_0061: ldfld Verse.ThingWithComps Verse.ThingComp::parent
IL_0066: call static RimWorld.CompHatcher
Verse.ThingCompUtility::TryGetComp(Verse.Thing thing)
IL_006B: stloc.0
IL_006C: ldloc.0
IL_006D: brfalse => Label4
IL_0072: ldloc.0
IL_0073: callvirt System.Boolean RimWorld.CompHatcher::get_TemperatureDamaged()
IL_0078: brtrue => Label5
IL_007D: ldc.i4.0
IL_007E: br => Label6
IL_0083: Label3
IL_0083: Label4
IL_0083: Label5
IL_0083: ldc.i4.1
IL_0084: // end original
IL_0084: Label6
IL_0084: stloc 1 (System.Boolean)
IL_0088: Label0
IL_0088: ldloc 1 (System.Boolean)
IL_008C: ret
DONE

### Patch: static System.Collections.Generic.IEnumerable`1<RimWorld.CompPower>


RimWorld.PowerConnectionMaker::PotentialConnectorsForTransmitter(RimWorld.CompPower
b)
### Replacement: static
System.Collections.Generic.IEnumerable`1<RimWorld.CompPower>
RimWorld.PowerConnectionMaker::RimWorld.PowerConnectionMaker.PotentialConnectorsFor
Transmitter_Patch1(RimWorld.CompPower b)
IL_0000: Local var 0: System.Collections.Generic.IEnumerable`1<RimWorld.CompPower>
IL_0000: ldnull
IL_0001: stloc 0
(System.Collections.Generic.IEnumerable`1[RimWorld.CompPower])
IL_0005: // start original
IL_0005: ldc.i4.s -2
IL_0007: newobj System.Void
RimWorld.<PotentialConnectorsForTransmitter>d__5::.ctor(System.Int32 <>1__state)
IL_000C: dup
IL_000D: ldarg.0
IL_000E: stfld RimWorld.CompPower
RimWorld.<PotentialConnectorsForTransmitter>d__5::<>3__b
IL_0013: // end original
IL_0013: stloc 0
(System.Collections.Generic.IEnumerable`1[RimWorld.CompPower])
IL_0017: ldloca 0
(System.Collections.Generic.IEnumerable`1[RimWorld.CompPower])
IL_001B: ldarg 0
IL_001F: call static System.Void
VFEMech.PotentialConnectorsForTransmitter_Patch::Postfix(System.Collections.Generic
.IEnumerable`1& __result, RimWorld.CompPower b)
IL_0024: ldloc 0
(System.Collections.Generic.IEnumerable`1[RimWorld.CompPower])
IL_0028: ret
DONE

### Patch: static RimWorld.CompPower


RimWorld.PowerConnectionMaker::BestTransmitterForConnector(Verse.IntVec3
connectorPos, Verse.Map map, System.Collections.Generic.List`1<RimWorld.PowerNet>
disallowedNets)
### Replacement: static RimWorld.CompPower
RimWorld.PowerConnectionMaker::RimWorld.PowerConnectionMaker.BestTransmitterForConn
ector_Patch1(Verse.IntVec3 connectorPos, Verse.Map map,
System.Collections.Generic.List`1<RimWorld.PowerNet> disallowedNets)
IL_0000: Local var 0: Verse.CellRect
IL_0000: Local var 1: System.Single
IL_0000: Local var 2: RimWorld.CompPower
IL_0000: Local var 3: Verse.CellRect
IL_0000: Local var 4: System.Int32
IL_0000: Local var 5: System.Int32
IL_0000: Local var 6: Verse.Building
IL_0000: Local var 7: RimWorld.CompPower
IL_0000: Local var 8: System.Single
IL_0000: Local var 9: Verse.IntVec3
IL_0000: Local var 10: RimWorld.CompPower
IL_0000: ldnull
IL_0001: stloc 10 (RimWorld.CompPower)
IL_0005: // start original
IL_0005: ldarg.0
IL_0006: call static Verse.CellRect Verse.CellRect::SingleCell(Verse.IntVec3
c)
IL_000B: stloc.3
IL_000C: ldloca.s 3 (Verse.CellRect)
IL_000E: ldc.i4.6
IL_000F: call Verse.CellRect Verse.CellRect::ExpandedBy(System.Int32 dist)
IL_0014: stloc.3
IL_0015: ldloca.s 3 (Verse.CellRect)
IL_0017: ldarg.1
IL_0018: call Verse.CellRect Verse.CellRect::ClipInsideMap(Verse.Map map)
IL_001D: stloc.0
IL_001E: ldloca.s 0 (Verse.CellRect)
IL_0020: ldarg.1
IL_0021: call Verse.CellRect Verse.CellRect::ClipInsideMap(Verse.Map map)
IL_0026: pop
IL_0027: ldc.r4 999999
IL_002C: stloc.1
IL_002D: ldnull
IL_002E: stloc.2
IL_002F: ldloc.0
IL_0030: ldfld System.Int32 Verse.CellRect::minZ
IL_0035: stloc.s 4 (System.Int32)
IL_0037: br => Label0
IL_003C: Label12
IL_003C: ldloc.0
IL_003D: ldfld System.Int32 Verse.CellRect::minX
IL_0042: stloc.s 5 (System.Int32)
IL_0044: br => Label1
IL_0049: Label11
IL_0049: ldloc.s 5 (System.Int32)
IL_004B: ldc.i4.0
IL_004C: ldloc.s 4 (System.Int32)
IL_004E: newobj System.Void Verse.IntVec3::.ctor(System.Int32 newX,
System.Int32 newY, System.Int32 newZ)
IL_0053: ldarg.1
IL_0054: call static Verse.Building
Verse.GridsUtility::GetTransmitter(Verse.IntVec3 c, Verse.Map map)
IL_0059: stloc.s 6 (Verse.Building)
IL_005B: ldloc.s 6 (Verse.Building)
IL_005D: brfalse => Label2
IL_0062: ldloc.s 6 (Verse.Building)
IL_0064: callvirt System.Boolean Verse.Thing::get_Destroyed()
IL_0069: brtrue => Label3
IL_006E: ldloc.s 6 (Verse.Building)
IL_0070: callvirt RimWorld.CompPower Verse.Building::get_PowerComp()
IL_0075: stloc.s 7 (RimWorld.CompPower)
IL_0077: ldloc.s 7 (RimWorld.CompPower)
IL_0079: brfalse => Label4
IL_007E: ldloc.s 7 (RimWorld.CompPower)
IL_0080: callvirt System.Boolean RimWorld.CompPower::get_TransmitsPowerNow()
IL_0085: brfalse => Label5
IL_008A: ldloc.s 6 (Verse.Building)
IL_008C: ldfld Verse.ThingDef Verse.Thing::def
IL_0091: ldfld RimWorld.BuildingProperties Verse.ThingDef::building
IL_0096: brfalse => Label6
IL_009B: ldloc.s 6 (Verse.Building)
IL_009D: ldfld Verse.ThingDef Verse.Thing::def
IL_00A2: ldfld RimWorld.BuildingProperties Verse.ThingDef::building
IL_00A7: ldfld System.Boolean RimWorld.BuildingProperties::allowWireConnection
IL_00AC: brfalse => Label7
IL_00B1: Label6
IL_00B1: ldarg.2
IL_00B2: brfalse => Label8
IL_00B7: ldarg.2
IL_00B8: ldloc.s 7 (RimWorld.CompPower)
IL_00BA: ldfld RimWorld.PowerNet RimWorld.CompPower::transNet
IL_00BF: callvirt virtual System.Boolean
System.Collections.Generic.List`1<RimWorld.PowerNet>::Contains(RimWorld.PowerNet
item)
IL_00C4: brtrue => Label9
IL_00C9: Label8
IL_00C9: ldloc.s 6 (Verse.Building)
IL_00CB: callvirt virtual Verse.IntVec3 Verse.Thing::get_Position()
IL_00D0: ldarg.0
IL_00D1: call static Verse.IntVec3
Verse.IntVec3::op_Subtraction(Verse.IntVec3 a, Verse.IntVec3 b)
IL_00D6: stloc.s 9 (Verse.IntVec3)
IL_00D8: ldloca.s 9 (Verse.IntVec3)
IL_00DA: call System.Int32 Verse.IntVec3::get_LengthHorizontalSquared()
IL_00DF: conv.r4
IL_00E0: stloc.s 8 (System.Single)
IL_00E2: ldloc.s 8 (System.Single)
IL_00E4: ldloc.1
IL_00E5: bge.un => Label10
IL_00EA: ldloc.s 8 (System.Single)
IL_00EC: stloc.1
IL_00ED: ldloc.s 7 (RimWorld.CompPower)
IL_00EF: stloc.2
IL_00F0: Label2
IL_00F0: Label3
IL_00F0: Label4
IL_00F0: Label5
IL_00F0: Label7
IL_00F0: Label9
IL_00F0: Label10
IL_00F0: ldloc.s 5 (System.Int32)
IL_00F2: ldc.i4.1
IL_00F3: add
IL_00F4: stloc.s 5 (System.Int32)
IL_00F6: Label1
IL_00F6: ldloc.s 5 (System.Int32)
IL_00F8: ldloc.0
IL_00F9: ldfld System.Int32 Verse.CellRect::maxX
IL_00FE: ble => Label11
IL_0103: ldloc.s 4 (System.Int32)
IL_0105: ldc.i4.1
IL_0106: add
IL_0107: stloc.s 4 (System.Int32)
IL_0109: Label0
IL_0109: ldloc.s 4 (System.Int32)
IL_010B: ldloc.0
IL_010C: ldfld System.Int32 Verse.CellRect::maxZ
IL_0111: ble => Label12
IL_0116: ldloc.2
IL_0117: // end original
IL_0117: stloc 10 (RimWorld.CompPower)
IL_011B: ldloca 10 (RimWorld.CompPower)
IL_011F: ldarg 0
IL_0123: ldarg 1
IL_0127: ldarg 2
IL_012B: call static System.Void
VFEMech.BestTransmitterForConnector_Patch::Postfix(RimWorld.CompPower& __result,
Verse.IntVec3 connectorPos, Verse.Map map,
System.Collections.Generic.List`1<RimWorld.PowerNet> disallowedNets)
IL_0130: ldloc 10 (RimWorld.CompPower)
IL_0134: ret
DONE

### Patch: System.Void RimWorld.CompPowerTrader::set_PowerOn(System.Boolean value)


### Replacement: static System.Void
RimWorld.CompPowerTrader::RimWorld.CompPowerTrader.set_PowerOn_Patch1(RimWorld.Comp
PowerTrader this, System.Boolean value)
IL_0000: Local var 0: Verse.SoundDef
IL_0000: Local var 1: Verse.SoundDef
IL_0000: // start original
IL_0000: ldarg.0
IL_0001: ldfld System.Boolean RimWorld.CompPowerTrader::powerOnInt
IL_0006: ldarg.1
IL_0007: bne.un => Label0
IL_000C: br => Label10
IL_0011: Label0
IL_0011: ldarg.0
IL_0012: ldarg.1
IL_0013: stfld System.Boolean RimWorld.CompPowerTrader::powerOnInt
IL_0018: ldarg.0
IL_0019: ldfld System.Boolean RimWorld.CompPowerTrader::powerOnInt
IL_001E: brfalse => Label1
IL_0023: ldarg.0
IL_0024: ldfld Verse.ThingWithComps Verse.ThingComp::parent
IL_0029: call static System.Boolean
RimWorld.FlickUtility::WantsToBeOn(Verse.Thing t)
IL_002E: brtrue => Label2
IL_0033: ldstr "Tried to power on "
IL_0038: ldarg.0
IL_0039: ldfld Verse.ThingWithComps Verse.ThingComp::parent
IL_003E: ldstr " which did not desire it."
IL_0043: call static System.String System.String::Concat(System.Object arg0,
System.Object arg1, System.Object arg2)
IL_0048: call static System.Void Verse.Log::Warning(System.String text)
IL_004D: br => Label11
IL_0052: Label2
IL_0052: ldarg.0
IL_0053: ldfld Verse.ThingWithComps Verse.ThingComp::parent
IL_0058: call static System.Boolean
RimWorld.BreakdownableUtility::IsBrokenDown(Verse.Thing t)
IL_005D: brfalse => Label3
IL_0062: ldstr "Tried to power on "
IL_0067: ldarg.0
IL_0068: ldfld Verse.ThingWithComps Verse.ThingComp::parent
IL_006D: ldstr " which is broken down."
IL_0072: call static System.String System.String::Concat(System.Object arg0,
System.Object arg1, System.Object arg2)
IL_0077: call static System.Void Verse.Log::Warning(System.String text)
IL_007C: br => Label12
IL_0081: Label3
IL_0081: ldarg.0
IL_0082: ldfld System.Action RimWorld.CompPowerTrader::powerStartedAction
IL_0087: brfalse => Label4
IL_008C: ldarg.0
IL_008D: ldfld System.Action RimWorld.CompPowerTrader::powerStartedAction
IL_0092: callvirt virtual System.Void System.Action::Invoke()
IL_0097: Label4
IL_0097: ldarg.0
IL_0098: ldfld Verse.ThingWithComps Verse.ThingComp::parent
IL_009D: ldstr "PowerTurnedOn"
IL_00A2: callvirt System.Void
Verse.ThingWithComps::BroadcastCompSignal(System.String signal)
IL_00A7: ldarg.0
IL_00A8: ldfld Verse.ThingWithComps Verse.ThingComp::parent
IL_00AD: ldfld Verse.ThingDef Verse.Thing::def
IL_00B2: callvirt Verse.CompProperties Verse.ThingDef::CompDefForAssignableFrom()
IL_00B7: castclass RimWorld.CompProperties_Power
IL_00BC: ldfld Verse.SoundDef RimWorld.CompProperties_Power::soundPowerOn
IL_00C1: stloc.0
IL_00C2: ldloc.0
IL_00C3: call static System.Boolean
Verse.SoundDefHelper::NullOrUndefined(Verse.SoundDef def)
IL_00C8: brfalse => Label5
IL_00CD: ldsfld Verse.SoundDef RimWorld.SoundDefOf::Power_OnSmall
IL_00D2: stloc.0
IL_00D3: Label5
IL_00D3: ldloc.0
IL_00D4: ldarg.0
IL_00D5: ldfld Verse.ThingWithComps Verse.ThingComp::parent
IL_00DA: callvirt virtual Verse.IntVec3 Verse.Thing::get_Position()
IL_00DF: ldarg.0
IL_00E0: ldfld Verse.ThingWithComps Verse.ThingComp::parent
IL_00E5: callvirt virtual Verse.Map Verse.Thing::get_Map()
IL_00EA: ldc.i4.0
IL_00EB: newobj System.Void Verse.TargetInfo::.ctor(Verse.IntVec3 cell,
Verse.Map map, System.Boolean allowNullMap)
IL_00F0: call static Verse.Sound.SoundInfo
Verse.Sound.SoundInfo::op_Implicit(Verse.TargetInfo source)
IL_00F5: call static System.Void
Verse.Sound.SoundStarter::PlayOneShot(Verse.SoundDef soundDef,
Verse.Sound.SoundInfo info)
IL_00FA: ldarg.0
IL_00FB: call System.Void
RimWorld.CompPowerTrader::StartSustainerPoweredIfInactive()
IL_0100: br => Label6
IL_0105: Label1
IL_0105: ldarg.0
IL_0106: ldfld System.Action RimWorld.CompPowerTrader::powerStoppedAction
IL_010B: brfalse => Label7
IL_0110: ldarg.0
IL_0111: ldfld System.Action RimWorld.CompPowerTrader::powerStoppedAction
IL_0116: callvirt virtual System.Void System.Action::Invoke()
IL_011B: Label7
IL_011B: ldarg.0
IL_011C: ldfld Verse.ThingWithComps Verse.ThingComp::parent
IL_0121: ldstr "PowerTurnedOff"
IL_0126: callvirt System.Void
Verse.ThingWithComps::BroadcastCompSignal(System.String signal)
IL_012B: ldarg.0
IL_012C: ldfld Verse.ThingWithComps Verse.ThingComp::parent
IL_0131: ldfld Verse.ThingDef Verse.Thing::def
IL_0136: callvirt Verse.CompProperties Verse.ThingDef::CompDefForAssignableFrom()
IL_013B: castclass RimWorld.CompProperties_Power
IL_0140: ldfld Verse.SoundDef RimWorld.CompProperties_Power::soundPowerOff
IL_0145: stloc.1
IL_0146: ldloc.1
IL_0147: call static System.Boolean
Verse.SoundDefHelper::NullOrUndefined(Verse.SoundDef def)
IL_014C: brfalse => Label8
IL_0151: ldsfld Verse.SoundDef RimWorld.SoundDefOf::Power_OffSmall
IL_0156: stloc.1
IL_0157: Label8
IL_0157: ldarg.0
IL_0158: ldfld Verse.ThingWithComps Verse.ThingComp::parent
IL_015D: callvirt System.Boolean Verse.Thing::get_Spawned()
IL_0162: brfalse => Label9
IL_0167: ldloc.1
IL_0168: ldarg.0
IL_0169: ldfld Verse.ThingWithComps Verse.ThingComp::parent
IL_016E: callvirt virtual Verse.IntVec3 Verse.Thing::get_Position()
IL_0173: ldarg.0
IL_0174: ldfld Verse.ThingWithComps Verse.ThingComp::parent
IL_0179: callvirt virtual Verse.Map Verse.Thing::get_Map()
IL_017E: ldc.i4.0
IL_017F: newobj System.Void Verse.TargetInfo::.ctor(Verse.IntVec3 cell,
Verse.Map map, System.Boolean allowNullMap)
IL_0184: call static Verse.Sound.SoundInfo
Verse.Sound.SoundInfo::op_Implicit(Verse.TargetInfo source)
IL_0189: call static System.Void
Verse.Sound.SoundStarter::PlayOneShot(Verse.SoundDef soundDef,
Verse.Sound.SoundInfo info)
IL_018E: Label9
IL_018E: ldarg.0
IL_018F: call System.Void
RimWorld.CompPowerTrader::EndSustainerPoweredIfActive()
IL_0194: Label6
IL_0194: ldarg.0
IL_0195: call System.Void RimWorld.CompPowerTrader::UpdateOverlays()
IL_019A: // end original
IL_019A: Label10
IL_019A: Label11
IL_019A: Label12
IL_019A: ldarg.0
IL_019B: call static System.Void
VFEMech.PowerOn_Patch::Postfix(RimWorld.CompPowerTrader __instance)
IL_01A0: ret
DONE

### Patch: static System.Single


Verse.AI.CastPositionFinder::CastPositionPreference(Verse.IntVec3 c)
### Replacement: static System.Single
Verse.AI.CastPositionFinder::Verse.AI.CastPositionFinder.CastPositionPreference_Pat
ch0(Verse.IntVec3 c)
IL_0000: Local var 0: System.Boolean
IL_0000: Local var 1: System.Collections.Generic.List`1<Verse.Thing>
IL_0000: Local var 2: System.Single
IL_0000: Local var 3: System.Int32
IL_0000: Local var 4: Verse.Thing
IL_0000: Local var 5: RimWorld.Fire
IL_0000: Local var 6: System.Single
IL_0000: Local var 7: Verse.IntVec3
IL_0000: Local var 8: System.Single
IL_0000: Local var 9: System.Single
IL_0000: // start original
IL_0000: ldc.i4.1
IL_0001: stloc.0
IL_0002: ldsflda Verse.AI.CastPositionRequest Verse.AI.CastPositionFinder::req
IL_0007: ldfld Verse.Pawn Verse.AI.CastPositionRequest::caster
IL_000C: callvirt virtual Verse.Map Verse.Thing::get_Map()
IL_0011: ldfld Verse.ThingGrid Verse.Map::thingGrid
IL_0016: ldarg.0
IL_0017: callvirt System.Collections.Generic.List`1<Verse.Thing>
Verse.ThingGrid::ThingsListAtFast(Verse.IntVec3 c)
IL_001C: stloc.1
IL_001D: ldc.i4.0
IL_001E: stloc.3
IL_001F: br => Label0
IL_0024: Label4
IL_0024: ldloc.1
IL_0025: ldloc.3
IL_0026: callvirt virtual Verse.Thing
System.Collections.Generic.List`1<Verse.Thing>::get_Item(System.Int32 index)
IL_002B: stloc.s 4 (Verse.Thing)
IL_002D: ldloc.s 4 (Verse.Thing)
IL_002F: isinst RimWorld.Fire
IL_0034: stloc.s 5 (RimWorld.Fire)
IL_0036: ldloc.s 5 (RimWorld.Fire)
IL_0038: brfalse => Label1
IL_003D: ldloc.s 5 (RimWorld.Fire)
IL_003F: ldfld Verse.Thing Verse.AttachableThing::parent
IL_0044: brtrue => Label2
IL_0049: ldc.r4 -1
IL_004E: br => Label12
IL_0053: Label1
IL_0053: Label2
IL_0053: ldloc.s 4 (Verse.Thing)
IL_0055: ldfld Verse.ThingDef Verse.Thing::def
IL_005A: ldfld Verse.Traversability Verse.BuildableDef::passability
IL_005F: ldc.i4.1
IL_0060: bne.un => Label3
IL_0065: ldc.i4.0
IL_0066: stloc.0
IL_0067: Label3
IL_0067: ldloc.3
IL_0068: ldc.i4.1
IL_0069: add
IL_006A: stloc.3
IL_006B: Label0
IL_006B: ldloc.3
IL_006C: ldloc.1
IL_006D: callvirt virtual System.Int32
System.Collections.Generic.List`1<Verse.Thing>::get_Count()
IL_0072: blt => Label4
IL_0077: ldc.r4 0.3
IL_007C: stloc.2
IL_007D: ldsflda Verse.AI.CastPositionRequest Verse.AI.CastPositionFinder::req
IL_0082: ldfld Verse.Pawn Verse.AI.CastPositionRequest::caster
IL_0087: call static System.Boolean
VFEMech.AvoidGrid_Patch::AvoidCover(Verse.Pawn pawn)
IL_008C: brfalse => Label5
IL_0091: ldloc.2
IL_0092: ldc.r4 8
IL_0097: ldarg.0
IL_0098: ldsflda Verse.AI.CastPositionRequest Verse.AI.CastPositionFinder::req
IL_009D: ldfld Verse.Pawn Verse.AI.CastPositionRequest::caster
IL_00A2: callvirt virtual Verse.Map Verse.Thing::get_Map()
IL_00A7: call static System.Single
Verse.CoverUtility::TotalSurroundingCoverScore(Verse.IntVec3 c, Verse.Map map)
IL_00AC: sub
IL_00AD: add
IL_00AE: stloc.2
IL_00AF: Label5
IL_00AF: ldsflda Verse.AI.CastPositionRequest Verse.AI.CastPositionFinder::req
IL_00B4: ldfld System.Boolean
Verse.AI.CastPositionRequest::wantCoverFromTarget
IL_00B9: brfalse => Label6
IL_00BE: ldloc.2
IL_00BF: ldarg.0
IL_00C0: call static Verse.LocalTargetInfo
Verse.LocalTargetInfo::op_Implicit(Verse.IntVec3 c)
IL_00C5: ldsflda Verse.AI.CastPositionRequest Verse.AI.CastPositionFinder::req
IL_00CA: ldfld Verse.Thing Verse.AI.CastPositionRequest::target
IL_00CF: callvirt virtual Verse.IntVec3 Verse.Thing::get_Position()
IL_00D4: ldsflda Verse.AI.CastPositionRequest Verse.AI.CastPositionFinder::req
IL_00D9: ldfld Verse.Pawn Verse.AI.CastPositionRequest::caster
IL_00DE: callvirt virtual Verse.Map Verse.Thing::get_Map()
IL_00E3: call static System.Single
Verse.CoverUtility::CalculateOverallBlockChance(Verse.LocalTargetInfo target,
Verse.IntVec3 shooterLoc, Verse.Map map)
IL_00E8: ldc.r4 0.55
IL_00ED: mul
IL_00EE: add
IL_00EF: stloc.2
IL_00F0: Label6
IL_00F0: ldsflda Verse.AI.CastPositionRequest Verse.AI.CastPositionFinder::req
IL_00F5: ldfld Verse.Pawn Verse.AI.CastPositionRequest::caster
IL_00FA: callvirt virtual Verse.IntVec3 Verse.Thing::get_Position()
IL_00FF: ldarg.0
IL_0100: call static Verse.IntVec3
Verse.IntVec3::op_Subtraction(Verse.IntVec3 a, Verse.IntVec3 b)
IL_0105: stloc.s 7 (Verse.IntVec3)
IL_0107: ldloca.s 7 (Verse.IntVec3)
IL_0109: call System.Single Verse.IntVec3::get_LengthHorizontal()
IL_010E: stloc.s 6 (System.Single)
IL_0110: ldsfld System.Single Verse.AI.CastPositionFinder::rangeFromTarget
IL_0115: ldc.r4 100
IL_011A: ble.un => Label7
IL_011F: ldloc.s 6 (System.Single)
IL_0121: ldsfld System.Single Verse.AI.CastPositionFinder::rangeFromTarget
IL_0126: ldc.r4 100
IL_012B: sub
IL_012C: sub
IL_012D: stloc.s 6 (System.Single)
IL_012F: ldloc.s 6 (System.Single)
IL_0131: ldc.r4 0
IL_0136: bge.un => Label8
IL_013B: ldc.r4 0
IL_0140: stloc.s 6 (System.Single)
IL_0142: Label7
IL_0142: Label8
IL_0142: ldloc.2
IL_0143: ldc.r4 0.967
IL_0148: ldloc.s 6 (System.Single)
IL_014A: call static System.Single UnityEngine.Mathf::Pow(System.Single f,
System.Single p)
IL_014F: mul
IL_0150: stloc.2
IL_0151: ldc.r4 1
IL_0156: stloc.s 8 (System.Single)
IL_0158: ldarg.0
IL_0159: ldsflda Verse.AI.CastPositionRequest Verse.AI.CastPositionFinder::req
IL_015E: ldfld Verse.Thing Verse.AI.CastPositionRequest::target
IL_0163: callvirt virtual Verse.IntVec3 Verse.Thing::get_Position()
IL_0168: call static Verse.IntVec3
Verse.IntVec3::op_Subtraction(Verse.IntVec3 a, Verse.IntVec3 b)
IL_016D: stloc.s 7 (Verse.IntVec3)
IL_016F: ldloca.s 7 (Verse.IntVec3)
IL_0171: call System.Int32 Verse.IntVec3::get_LengthHorizontalSquared()
IL_0176: conv.r4
IL_0177: stsfld System.Single
Verse.AI.CastPositionFinder::rangeFromTargetToCellSquared
IL_017C: ldsfld System.Single
Verse.AI.CastPositionFinder::rangeFromTargetToCellSquared
IL_0181: ldsfld System.Single Verse.AI.CastPositionFinder::optimalRangeSquared
IL_0186: sub
IL_0187: call static System.Single UnityEngine.Mathf::Abs(System.Single f)
IL_018C: ldsfld System.Single Verse.AI.CastPositionFinder::optimalRangeSquared
IL_0191: div
IL_0192: stloc.s 9 (System.Single)
IL_0194: ldc.r4 1
IL_0199: ldloc.s 9 (System.Single)
IL_019B: sub
IL_019C: stloc.s 9 (System.Single)
IL_019E: ldc.r4 0.7
IL_01A3: ldc.r4 0.3
IL_01A8: ldloc.s 9 (System.Single)
IL_01AA: mul
IL_01AB: add
IL_01AC: stloc.s 9 (System.Single)
IL_01AE: ldloc.s 8 (System.Single)
IL_01B0: ldloc.s 9 (System.Single)
IL_01B2: mul
IL_01B3: stloc.s 8 (System.Single)
IL_01B5: ldsfld System.Single
Verse.AI.CastPositionFinder::rangeFromTargetToCellSquared
IL_01BA: ldc.r4 25
IL_01BF: bge.un => Label9
IL_01C4: ldloc.s 8 (System.Single)
IL_01C6: ldc.r4 0.5
IL_01CB: mul
IL_01CC: stloc.s 8 (System.Single)
IL_01CE: Label9
IL_01CE: ldloc.2
IL_01CF: ldloc.s 8 (System.Single)
IL_01D1: mul
IL_01D2: stloc.2
IL_01D3: ldsfld System.Single
Verse.AI.CastPositionFinder::rangeFromCasterToCellSquared
IL_01D8: ldsfld System.Single
Verse.AI.CastPositionFinder::rangeFromTargetSquared
IL_01DD: ble.un => Label10
IL_01E2: ldloc.2
IL_01E3: ldc.r4 0.4
IL_01E8: mul
IL_01E9: stloc.2
IL_01EA: Label10
IL_01EA: ldloc.0
IL_01EB: brtrue => Label11
IL_01F0: ldloc.2
IL_01F1: ldc.r4 0.2
IL_01F6: mul
IL_01F7: stloc.2
IL_01F8: Label11
IL_01F8: ldloc.2
IL_01F9: // end original
IL_01F9: Label12
IL_01F9: ret
DONE

### Patch: System.Single


RimWorld.<>c__DisplayClass14_0::<TryGetRandomFactionForCombatPawnGroup>b__0(RimWorl
d.Faction f)
### Replacement: static System.Single
RimWorld.PawnGroupMakerUtility+<>c__DisplayClass14_0::RimWorld.PawnGroupMakerUtilit
y+c__DisplayClass14_0.<TryGetRandomFactionForCombatPawnGroup>b__0_Patch1(RimWorld.<
>c__DisplayClass14_0 this, RimWorld.Faction f)
IL_0000: Local var 0: System.Single
IL_0000: Local var 1: System.Boolean
IL_0000: ldc.r4 0
IL_0005: stloc 0 (System.Single)
IL_0009: ldc.i4 0
IL_000E: stloc 1 (System.Boolean)
IL_0012: ldc.i4.1
IL_0013: stloc 1 (System.Boolean)
IL_0017: ldloc 1 (System.Boolean)
IL_001B: brfalse => Label1
IL_0020: ldarg 1
IL_0024: ldloca 0 (System.Single)
IL_0028: call static System.Boolean
VFEM.HarmonyPatches.FactionForCombatGroup_Patch::Prefix(RimWorld.Faction f,
System.Single& __result)
IL_002D: stloc 1 (System.Boolean)
IL_0031: Label1
IL_0031: nop
IL_0032: ldloc 1 (System.Boolean)
IL_0036: brfalse => Label0
IL_003B: // start original
IL_003B: ldarg.1
IL_003C: ldfld RimWorld.FactionDef RimWorld.Faction::def
IL_0041: ldarg.0
IL_0042: ldfld System.Single RimWorld.<>c__DisplayClass14_0::points
IL_0047: callvirt System.Single
RimWorld.FactionDef::RaidCommonalityFromPoints(System.Single points)
IL_004C: // end original
IL_004C: stloc 0 (System.Single)
IL_0050: Label0
IL_0050: ldloc 0 (System.Single)
IL_0054: ret
DONE

### Patch: virtual System.Boolean


RimWorld.IncidentWorker_RaidEnemy::TryResolveRaidFaction(RimWorld.IncidentParms
parms)
### Replacement: static System.Boolean
RimWorld.IncidentWorker_RaidEnemy::RimWorld.IncidentWorker_RaidEnemy.TryResolveRaid
Faction_Patch2(RimWorld.IncidentWorker_RaidEnemy this, RimWorld.IncidentParms
parms)
IL_0000: Local var 0: RimWorld.IncidentWorker_RaidEnemy/<>c__DisplayClass2_0
IL_0000: Local var 1: System.Boolean
IL_0000: Local var 2: System.Boolean
IL_0000: ldc.i4 0
IL_0005: stloc 1 (System.Boolean)
IL_0009: ldc.i4 0
IL_000E: stloc 2 (System.Boolean)
IL_0012: ldc.i4.1
IL_0013: stloc 2 (System.Boolean)
IL_0017: ldloc 2 (System.Boolean)
IL_001B: brfalse => Label1
IL_0020: ldarga 1
IL_0024: call static System.Void
VFEM.HarmonyPatches.RaidEnemyResolveFaction_Patch::Prefix(RimWorld.IncidentParms&
parms)
IL_0029: Label1
IL_0029: nop
IL_002A: ldloc 2 (System.Boolean)
IL_002E: brfalse => Label0
IL_0033: // start original
IL_0033: newobj System.Void RimWorld.<>c__DisplayClass2_0::.ctor()
IL_0038: stloc.0
IL_0039: ldloc.0
IL_003A: ldarg.0
IL_003B: stfld RimWorld.IncidentWorker_RaidEnemy
RimWorld.<>c__DisplayClass2_0::<>4__this
IL_0040: ldloc.0
IL_0041: ldarg.1
IL_0042: ldfld RimWorld.IIncidentTarget RimWorld.IncidentParms::target
IL_0047: castclass Verse.Map
IL_004C: stfld Verse.Map RimWorld.<>c__DisplayClass2_0::map
IL_0051: ldarg.1
IL_0052: ldfld RimWorld.Faction RimWorld.IncidentParms::faction
IL_0057: brfalse => Label2
IL_005C: ldarg.1
IL_005D: ldfld RimWorld.Faction RimWorld.IncidentParms::faction
IL_0062: call static RimWorld.Faction RimWorld.Faction::get_OfPlayer()
IL_0067: call static System.Boolean
RimWorld.FactionUtility::HostileTo(RimWorld.Faction fac, RimWorld.Faction other)
IL_006C: brfalse => Label3
IL_0071: ldc.i4.1
IL_0072: br => Label6
IL_0077: Label2
IL_0077: Label3
IL_0077: ldarg.1
IL_0078: ldarg.1
IL_0079: ldflda RimWorld.Faction RimWorld.IncidentParms::faction
IL_007E: ldloc.0
IL_007F: ldftn System.Boolean
RimWorld.<>c__DisplayClass2_0::<TryResolveRaidFaction>b__0(RimWorld.Faction f)
IL_0085: newobj System.Void
System.Predicate`1<RimWorld.Faction>::.ctor(System.Object object, System.IntPtr
method)
IL_008A: ldc.i4.1
IL_008B: ldc.i4.1
IL_008C: ldc.i4.1
IL_008D: ldc.i4.1
IL_008E: call static System.Boolean
RimWorld.PawnGroupMakerUtility::TryGetRandomFactionForCombatPawnGroupWeighted(RimWo
rld.IncidentParms parms, RimWorld.Faction& faction,
System.Predicate`1<RimWorld.Faction> validator, System.Boolean
allowNonHostileToPlayer, System.Boolean allowHidden, System.Boolean allowDefeated,
System.Boolean allowNonHumanlike)
IL_0093: brfalse => Label4
IL_0098: ldc.i4.1
IL_0099: br => Label7
IL_009E: Label4
IL_009E: ldarg.1
IL_009F: ldarg.1
IL_00A0: ldflda RimWorld.Faction RimWorld.IncidentParms::faction
IL_00A5: ldloc.0
IL_00A6: ldftn System.Boolean
RimWorld.<>c__DisplayClass2_0::<TryResolveRaidFaction>b__1(RimWorld.Faction f)
IL_00AC: newobj System.Void
System.Predicate`1<RimWorld.Faction>::.ctor(System.Object object, System.IntPtr
method)
IL_00B1: ldc.i4.1
IL_00B2: ldc.i4.1
IL_00B3: ldc.i4.1
IL_00B4: ldc.i4.1
IL_00B5: call static System.Boolean
RimWorld.PawnGroupMakerUtility::TryGetRandomFactionForCombatPawnGroupWeighted(RimWo
rld.IncidentParms parms, RimWorld.Faction& faction,
System.Predicate`1<RimWorld.Faction> validator, System.Boolean
allowNonHostileToPlayer, System.Boolean allowHidden, System.Boolean allowDefeated,
System.Boolean allowNonHumanlike)
IL_00BA: brfalse => Label5
IL_00BF: ldc.i4.1
IL_00C0: br => Label8
IL_00C5: Label5
IL_00C5: ldc.i4.0
IL_00C6: // end original
IL_00C6: Label6
IL_00C6: Label7
IL_00C6: Label8
IL_00C6: stloc 1 (System.Boolean)
IL_00CA: Label0
IL_00CA: ldarga 1
IL_00CE: call static System.Void
VFEM.HarmonyPatches.RaidEnemyResolveFaction_Patch::Postfix(RimWorld.IncidentParms&
parms)
IL_00D3: ldloc 1 (System.Boolean)
IL_00D7: ret
DONE

### Patch: System.Boolean


RimWorld.PawnGroupMaker::CanGenerateFrom(RimWorld.PawnGroupMakerParms parms)
### Replacement: static System.Boolean
RimWorld.PawnGroupMaker::RimWorld.PawnGroupMaker.CanGenerateFrom_Patch1(RimWorld.Pa
wnGroupMaker this, RimWorld.PawnGroupMakerParms parms)
IL_0000: Local var 0: RimWorld.RaidStrategyWorker_WithRequiredPawnKinds
IL_0000: Local var 1: System.Boolean
IL_0000: ldc.i4 0
IL_0005: stloc 1 (System.Boolean)
IL_0009: // start original
IL_0009: ldarg.1
IL_000A: ldfld System.Single RimWorld.PawnGroupMakerParms::points
IL_000F: ldarg.0
IL_0010: ldfld System.Single RimWorld.PawnGroupMaker::maxTotalPoints
IL_0015: ble.un => Label0
IL_001A: ldc.i4.0
IL_001B: br => Label6
IL_0020: Label0
IL_0020: ldarg.0
IL_0021: ldfld System.Collections.Generic.List`1<RimWorld.RaidStrategyDef>
RimWorld.PawnGroupMaker::disallowedStrategies
IL_0026: brfalse => Label1
IL_002B: ldarg.0
IL_002C: ldfld System.Collections.Generic.List`1<RimWorld.RaidStrategyDef>
RimWorld.PawnGroupMaker::disallowedStrategies
IL_0031: ldarg.1
IL_0032: ldfld RimWorld.RaidStrategyDef
RimWorld.PawnGroupMakerParms::raidStrategy
IL_0037: callvirt virtual System.Boolean
System.Collections.Generic.List`1<RimWorld.RaidStrategyDef>::Contains(RimWorld.Raid
StrategyDef item)
IL_003C: brfalse => Label2
IL_0041: ldc.i4.0
IL_0042: br => Label7
IL_0047: Label1
IL_0047: Label2
IL_0047: ldarg.1
IL_0048: ldfld RimWorld.RaidStrategyDef
RimWorld.PawnGroupMakerParms::raidStrategy
IL_004D: brfalse => Label3
IL_0052: ldarg.1
IL_0053: ldfld RimWorld.RaidStrategyDef
RimWorld.PawnGroupMakerParms::raidStrategy
IL_0058: callvirt RimWorld.RaidStrategyWorker
RimWorld.RaidStrategyDef::get_Worker()
IL_005D: isinst RimWorld.RaidStrategyWorker_WithRequiredPawnKinds
IL_0062: dup
IL_0063: stloc.0
IL_0064: brfalse => Label4
IL_0069: ldloc.0
IL_006A: ldarg.0
IL_006B: callvirt System.Boolean
RimWorld.RaidStrategyWorker_WithRequiredPawnKinds::CanUseWithGroupMaker(RimWorld.Pa
wnGroupMaker groupMaker)
IL_0070: brtrue => Label5
IL_0075: ldc.i4.0
IL_0076: br => Label8
IL_007B: Label3
IL_007B: Label4
IL_007B: Label5
IL_007B: ldarg.0
IL_007C: ldfld RimWorld.PawnGroupKindDef RimWorld.PawnGroupMaker::kindDef
IL_0081: callvirt RimWorld.PawnGroupKindWorker
RimWorld.PawnGroupKindDef::get_Worker()
IL_0086: ldarg.1
IL_0087: ldarg.0
IL_0088: callvirt virtual System.Boolean
RimWorld.PawnGroupKindWorker::CanGenerateFrom(RimWorld.PawnGroupMakerParms parms,
RimWorld.PawnGroupMaker groupMaker)
IL_008D: // end original
IL_008D: Label6
IL_008D: Label7
IL_008D: Label8
IL_008D: stloc 1 (System.Boolean)
IL_0091: ldarg.0
IL_0092: ldarg 1
IL_0096: ldloca 1 (System.Boolean)
IL_009A: call static System.Void
VFEM.HarmonyPatches.GetRandomPawnGroupMaker_Patch::Postfix(RimWorld.PawnGroupMaker
__instance, RimWorld.PawnGroupMakerParms parms, System.Boolean& __result)
IL_009F: ldloc 1 (System.Boolean)
IL_00A3: ret
DONE

### Patch: System.Void RimWorld.Pawn_IdeoTracker::SetIdeo(RimWorld.Ideo ideo)


### Replacement: static System.Void
RimWorld.Pawn_IdeoTracker::RimWorld.Pawn_IdeoTracker.SetIdeo_Patch2(RimWorld.Pawn_I
deoTracker this, RimWorld.Ideo ideo)
IL_0000: Local var 0: RimWorld.Ideo
IL_0000: Local var 1: Verse.FloatRange
IL_0000: Local var 2: System.Collections.Generic.List`1<Verse.Pawn>
IL_0000: Local var 3:
System.Collections.Generic.List`1<RimWorld.DirectPawnRelation>
IL_0000: Local var 4: System.Int32
IL_0000: Local var 5: RimWorld.DirectPawnRelation
IL_0000: // start original
IL_0000: ldarg.0
IL_0001: ldfld RimWorld.Ideo RimWorld.Pawn_IdeoTracker::ideo
IL_0006: ldarg.1
IL_0007: beq => Label0
IL_000C: ldarg.0
IL_000D: ldfld Verse.Pawn RimWorld.Pawn_IdeoTracker::pawn
IL_0012: callvirt Verse.DevelopmentalStage Verse.Pawn::get_DevelopmentalStage()
IL_0017: call static System.Boolean
Verse.DevelopmentalStageExtensions::Baby(Verse.DevelopmentalStage
developmentalStage)
IL_001C: brfalse => Label1
IL_0021: Label0
IL_0021: br => Label38
IL_0026: Label1
IL_0026: ldarg.0
IL_0027: ldfld RimWorld.Ideo RimWorld.Pawn_IdeoTracker::ideo
IL_002C: brfalse => Label2
IL_0031: call static RimWorld.HistoryEventsManager
Verse.Find::get_HistoryEventsManager()
IL_0036: ldsfld RimWorld.HistoryEventDef
RimWorld.HistoryEventDefOf::ChangedIdeo
IL_003B: ldarg.0
IL_003C: ldfld Verse.Pawn RimWorld.Pawn_IdeoTracker::pawn
IL_0041: ldsfld System.String RimWorld.HistoryEventArgsNames::Doer
IL_0046: call static Verse.NamedArgument
Verse.NamedArgumentUtility::Named(System.Object arg, System.String label)
IL_004B: newobj System.Void
RimWorld.HistoryEvent::.ctor(RimWorld.HistoryEventDef def, Verse.NamedArgument
arg1)
IL_0050: ldc.i4.1
IL_0051: callvirt System.Void
RimWorld.HistoryEventsManager::RecordEvent(RimWorld.HistoryEvent historyEvent,
System.Boolean canApplySelfTookThoughts)
IL_0056: Label2
IL_0056: ldarg.0
IL_0057: ldfld System.Collections.Generic.List`1<RimWorld.Ideo>
RimWorld.Pawn_IdeoTracker::previousIdeos
IL_005C: ldarg.1
IL_005D: callvirt virtual System.Boolean
System.Collections.Generic.List`1<RimWorld.Ideo>::Contains(RimWorld.Ideo item)
IL_0062: brfalse => Label3
IL_0067: ldarg.0
IL_0068: ldfld System.Collections.Generic.List`1<RimWorld.Ideo>
RimWorld.Pawn_IdeoTracker::previousIdeos
IL_006D: ldarg.1
IL_006E: callvirt virtual System.Boolean
System.Collections.Generic.List`1<RimWorld.Ideo>::Remove(RimWorld.Ideo item)
IL_0073: pop
IL_0074: Label3
IL_0074: ldarg.0
IL_0075: ldfld RimWorld.Ideo RimWorld.Pawn_IdeoTracker::ideo
IL_007A: brfalse => Label4
IL_007F: ldarg.0
IL_0080: ldfld System.Collections.Generic.List`1<RimWorld.Ideo>
RimWorld.Pawn_IdeoTracker::previousIdeos
IL_0085: ldarg.0
IL_0086: ldfld RimWorld.Ideo RimWorld.Pawn_IdeoTracker::ideo
IL_008B: callvirt virtual System.Void
System.Collections.Generic.List`1<RimWorld.Ideo>::Add(RimWorld.Ideo item)
IL_0090: Label4
IL_0090: ldarg.0
IL_0091: ldfld RimWorld.Ideo RimWorld.Pawn_IdeoTracker::ideo
IL_0096: stloc.0
IL_0097: ldarg.0
IL_0098: ldfld Verse.Pawn RimWorld.Pawn_IdeoTracker::pawn
IL_009D: callvirt virtual RimWorld.Faction Verse.Thing::get_Faction()
IL_00A2: brfalse => Label5
IL_00A7: ldarg.0
IL_00A8: ldfld Verse.Pawn RimWorld.Pawn_IdeoTracker::pawn
IL_00AD: callvirt virtual RimWorld.Faction Verse.Thing::get_Faction()
IL_00B2: callvirt System.Boolean RimWorld.Faction::get_IsPlayer()
IL_00B7: brfalse => Label6
IL_00BC: ldarg.0
IL_00BD: ldfld RimWorld.Ideo RimWorld.Pawn_IdeoTracker::ideo
IL_00C2: dup
IL_00C3: brtrue => Label7
IL_00C8: pop
IL_00C9: br => Label8
IL_00CE: Label7
IL_00CE: ldarg.0
IL_00CF: ldfld Verse.Pawn RimWorld.Pawn_IdeoTracker::pawn
IL_00D4: ldarg.0
IL_00D5: ldfld Verse.Pawn RimWorld.Pawn_IdeoTracker::pawn
IL_00DA: callvirt virtual Verse.Map Verse.Thing::get_Map()
IL_00DF: call System.Void RimWorld.Ideo::Notify_MemberLost(Verse.Pawn member,
Verse.Map map)
IL_00E4: Label8
IL_00E4: ldarg.0
IL_00E5: ldfld RimWorld.Ideo RimWorld.Pawn_IdeoTracker::ideo
IL_00EA: dup
IL_00EB: brtrue => Label9
IL_00F0: pop
IL_00F1: br => Label10
IL_00F6: Label9
IL_00F6: call System.Int32 RimWorld.Ideo::RecacheColonistBelieverCount()
IL_00FB: pop
IL_00FC: Label5
IL_00FC: Label6
IL_00FC: Label10
IL_00FC: ldarg.0
IL_00FD: ldarg.1
IL_00FE: stfld RimWorld.Ideo RimWorld.Pawn_IdeoTracker::ideo
IL_0103: ldarg.0
IL_0104: ldsfld Verse.FloatRange
RimWorld.ConversionTuning::InitialCertaintyRange
IL_0109: stloc.1
IL_010A: ldloca.s 1 (Verse.FloatRange)
IL_010C: call System.Single Verse.FloatRange::get_RandomInRange()
IL_0111: call static System.Single UnityEngine.Mathf::Clamp01(System.Single
value)
IL_0116: call System.Void
RimWorld.Pawn_IdeoTracker::set_Certainty(System.Single value)
IL_011B: ldarg.0
IL_011C: ldfld Verse.Pawn RimWorld.Pawn_IdeoTracker::pawn
IL_0121: callvirt virtual RimWorld.Faction Verse.Thing::get_Faction()
IL_0126: brfalse => Label11
IL_012B: ldarg.0
IL_012C: ldfld Verse.Pawn RimWorld.Pawn_IdeoTracker::pawn
IL_0131: callvirt virtual RimWorld.Faction Verse.Thing::get_Faction()
IL_0136: callvirt System.Boolean RimWorld.Faction::get_IsPlayer()
IL_013B: brfalse => Label12
IL_0140: ldarg.0
IL_0141: ldfld Verse.Pawn RimWorld.Pawn_IdeoTracker::pawn
IL_0146: callvirt virtual RimWorld.Faction Verse.Thing::get_Faction()
IL_014B: ldfld RimWorld.FactionIdeosTracker RimWorld.Faction::ideos
IL_0150: callvirt System.Void
RimWorld.FactionIdeosTracker::Notify_ColonistChangedIdeo()
IL_0155: ldloc.0
IL_0156: brfalse => Label13
IL_015B: ldloc.0
IL_015C: call System.Int32 RimWorld.Ideo::RecacheColonistBelieverCount()
IL_0161: pop
IL_0162: Label13
IL_0162: ldarg.0
IL_0163: ldfld RimWorld.Ideo RimWorld.Pawn_IdeoTracker::ideo
IL_0168: dup
IL_0169: brtrue => Label14
IL_016E: pop
IL_016F: br => Label15
IL_0174: Label14
IL_0174: call System.Int32 RimWorld.Ideo::RecacheColonistBelieverCount()
IL_0179: pop
IL_017A: Label11
IL_017A: Label12
IL_017A: Label15
IL_017A: ldarg.0
IL_017B: ldfld RimWorld.Ideo RimWorld.Pawn_IdeoTracker::ideo
IL_0180: dup
IL_0181: brtrue => Label16
IL_0186: pop
IL_0187: br => Label17
IL_018C: Label16
IL_018C: ldarg.0
IL_018D: ldfld Verse.Pawn RimWorld.Pawn_IdeoTracker::pawn
IL_0192: call System.Void RimWorld.Ideo::Notify_MemberGained(Verse.Pawn
member)
IL_0197: Label17
IL_0197: ldarg.0
IL_0198: ldfld Verse.Pawn RimWorld.Pawn_IdeoTracker::pawn
IL_019D: ldfld RimWorld.Pawn_Ownership Verse.Pawn::ownership
IL_01A2: callvirt RimWorld.Building_Bed RimWorld.Pawn_Ownership::get_OwnedBed()
IL_01A7: brfalse => Label18
IL_01AC: ldarg.0
IL_01AD: ldfld Verse.Pawn RimWorld.Pawn_IdeoTracker::pawn
IL_01B2: ldfld RimWorld.Pawn_Ownership Verse.Pawn::ownership
IL_01B7: callvirt RimWorld.Building_Bed RimWorld.Pawn_Ownership::get_OwnedBed()
IL_01BC: callvirt RimWorld.CompAssignableToPawn
RimWorld.Building_Bed::get_CompAssignableToPawn()
IL_01C1: ldarg.0
IL_01C2: ldfld Verse.Pawn RimWorld.Pawn_IdeoTracker::pawn
IL_01C7: callvirt virtual System.Boolean
RimWorld.CompAssignableToPawn::IdeoligionForbids(Verse.Pawn pawn)
IL_01CC: brfalse => Label19
IL_01D1: ldarg.0
IL_01D2: ldfld Verse.Pawn RimWorld.Pawn_IdeoTracker::pawn
IL_01D7: ldfld RimWorld.Pawn_Ownership Verse.Pawn::ownership
IL_01DC: callvirt System.Boolean RimWorld.Pawn_Ownership::UnclaimBed()
IL_01E1: pop
IL_01E2: Label18
IL_01E2: Label19
IL_01E2: ldarg.0
IL_01E3: ldfld Verse.Pawn RimWorld.Pawn_IdeoTracker::pawn
IL_01E8: call static System.Void
RimWorld.SpouseRelationUtility::RemoveSpousesAsForbiddenByIdeo(Verse.Pawn pawn)
IL_01ED: ldarg.1
IL_01EE: brfalse => Label20
IL_01F3: ldarg.1
IL_01F4: ldsfld RimWorld.HistoryEventDef RimWorld.HistoryEventDefOf::Bonded
IL_01F9: newobj System.Void
RimWorld.HistoryEvent::.ctor(RimWorld.HistoryEventDef def)
IL_01FE: callvirt System.Boolean
RimWorld.Ideo::MemberWillingToDo(RimWorld.HistoryEvent ev)
IL_0203: brtrue => Label21
IL_0208: newobj System.Void
System.Collections.Generic.List`1<Verse.Pawn>::.ctor()
IL_020D: stloc.2
IL_020E: ldarg.0
IL_020F: ldfld Verse.Pawn RimWorld.Pawn_IdeoTracker::pawn
IL_0214: ldfld RimWorld.Pawn_RelationsTracker Verse.Pawn::relations
IL_0219: callvirt System.Collections.Generic.List`1<RimWorld.DirectPawnRelation>
RimWorld.Pawn_RelationsTracker::get_DirectRelations()
IL_021E: stloc.3
IL_021F: ldloc.3
IL_0220: callvirt virtual System.Int32
System.Collections.Generic.List`1<RimWorld.DirectPawnRelation>::get_Count()
IL_0225: ldc.i4.1
IL_0226: sub
IL_0227: stloc.s 4 (System.Int32)
IL_0229: br => Label22
IL_022E: Label24
IL_022E: ldloc.3
IL_022F: ldloc.s 4 (System.Int32)
IL_0231: callvirt virtual RimWorld.DirectPawnRelation
System.Collections.Generic.List`1<RimWorld.DirectPawnRelation>::get_Item(System.Int
32 index)
IL_0236: stloc.s 5 (RimWorld.DirectPawnRelation)
IL_0238: ldloc.s 5 (RimWorld.DirectPawnRelation)
IL_023A: ldfld RimWorld.PawnRelationDef RimWorld.DirectPawnRelation::def
IL_023F: ldsfld RimWorld.PawnRelationDef RimWorld.PawnRelationDefOf::Bond
IL_0244: bne.un => Label23
IL_0249: ldloc.2
IL_024A: ldloc.s 5 (RimWorld.DirectPawnRelation)
IL_024C: ldfld Verse.Pawn RimWorld.DirectPawnRelation::otherPawn
IL_0251: callvirt virtual System.Void
System.Collections.Generic.List`1<Verse.Pawn>::Add(Verse.Pawn item)
IL_0256: ldarg.0
IL_0257: ldfld Verse.Pawn RimWorld.Pawn_IdeoTracker::pawn
IL_025C: ldfld RimWorld.Pawn_RelationsTracker Verse.Pawn::relations
IL_0261: ldloc.s 5 (RimWorld.DirectPawnRelation)
IL_0263: callvirt System.Void
RimWorld.Pawn_RelationsTracker::RemoveDirectRelation(RimWorld.DirectPawnRelation
relation)
IL_0268: Label23
IL_0268: ldloc.s 4 (System.Int32)
IL_026A: ldc.i4.1
IL_026B: sub
IL_026C: stloc.s 4 (System.Int32)
IL_026E: Label22
IL_026E: ldloc.s 4 (System.Int32)
IL_0270: ldc.i4.0
IL_0271: bge => Label24
IL_0276: ldloc.2
IL_0277: callvirt virtual System.Int32
System.Collections.Generic.List`1<Verse.Pawn>::get_Count()
IL_027C: ldc.i4.0
IL_027D: ble => Label25
IL_0282: call static Verse.LetterStack Verse.Find::get_LetterStack()
IL_0287: ldstr "LetterBondRemoved"
IL_028C: call static Verse.TaggedString
Verse.Translator::Translate(System.String key)
IL_0291: ldstr "LetterBondRemovedDesc"
IL_0296: ldarg.1
IL_0297: ldstr "IDEO"
IL_029C: call static Verse.NamedArgument
Verse.NamedArgumentUtility::Named(System.Object arg, System.String label)
IL_02A1: ldarg.0
IL_02A2: ldfld Verse.Pawn RimWorld.Pawn_IdeoTracker::pawn
IL_02A7: ldstr "PAWN"
IL_02AC: call static Verse.NamedArgument
Verse.NamedArgumentUtility::Named(System.Object arg, System.String label)
IL_02B1: ldloc.2
IL_02B2: ldsfld System.Func`2<Verse.Pawn, System.String>
RimWorld.<>c::<>9__30_0
IL_02B7: dup
IL_02B8: brtrue => Label26
IL_02BD: pop
IL_02BE: ldsfld RimWorld.<>c RimWorld.<>c::<>9
IL_02C3: ldftn System.String RimWorld.<>c::<SetIdeo>b__30_0(Verse.Pawn b)
IL_02C9: newobj System.Void System.Func`2<Verse.Pawn,
System.String>::.ctor(System.Object object, System.IntPtr method)
IL_02CE: dup
IL_02CF: stsfld System.Func`2<Verse.Pawn, System.String>
RimWorld.<>c::<>9__30_0
IL_02D4: Label26
IL_02D4: call static System.Collections.Generic.IEnumerable`1<System.String>
System.Linq.Enumerable::Select(System.Collections.Generic.IEnumerable`1<Verse.Pawn>
source, System.Func`2<Verse.Pawn, System.String> selector)
IL_02D9: ldnull
IL_02DA: ldc.i4.0
IL_02DB: call static System.String
Verse.GenText::ToLineList(System.Collections.Generic.IEnumerable`1<System.String>
entries, System.String prefix, System.Boolean capitalizeItems)
IL_02E0: ldstr "BONDS"
IL_02E5: call static Verse.NamedArgument
Verse.NamedArgumentUtility::Named(System.Object arg, System.String label)
IL_02EA: call static Verse.TaggedString
Verse.TranslatorFormattedStringExtensions::Translate(System.String key,
Verse.NamedArgument arg1, Verse.NamedArgument arg2, Verse.NamedArgument arg3)
IL_02EF: ldsfld Verse.LetterDef RimWorld.LetterDefOf::NeutralEvent
IL_02F4: ldloc.2
IL_02F5: ldc.i4.1
IL_02F6: newarr Verse.Pawn
IL_02FB: dup
IL_02FC: ldc.i4.0
IL_02FD: ldarg.0
IL_02FE: ldfld Verse.Pawn RimWorld.Pawn_IdeoTracker::pawn
IL_0303: stelem.ref
IL_0304: call static System.Collections.Generic.IEnumerable`1<Verse.Pawn>
System.Linq.Enumerable::Concat(System.Collections.Generic.IEnumerable`1<Verse.Pawn>
first, System.Collections.Generic.IEnumerable`1<Verse.Pawn> second)
IL_0309: newobj System.Void
Verse.LookTargets::.ctor(System.Collections.Generic.IEnumerable`1<Verse.Pawn>
targets)
IL_030E: ldnull
IL_030F: ldnull
IL_0310: ldnull
IL_0311: ldnull
IL_0312: callvirt System.Void Verse.LetterStack::ReceiveLetter(Verse.TaggedString
label, Verse.TaggedString text, Verse.LetterDef textLetterDef, Verse.LookTargets
lookTargets, RimWorld.Faction relatedFaction, RimWorld.Quest quest,
System.Collections.Generic.List`1<Verse.ThingDef> hyperlinkThingDefs, System.String
debugInfo)
IL_0317: Label20
IL_0317: Label21
IL_0317: Label25
IL_0317: ldarg.0
IL_0318: call static Verse.TickManager Verse.Find::get_TickManager()
IL_031D: callvirt System.Int32 Verse.TickManager::get_TicksGame()
IL_0322: stfld System.Int32 RimWorld.Pawn_IdeoTracker::joinTick
IL_0327: ldarg.0
IL_0328: ldfld Verse.Pawn RimWorld.Pawn_IdeoTracker::pawn
IL_032D: ldfld RimWorld.Pawn_NeedsTracker Verse.Pawn::needs
IL_0332: dup
IL_0333: brtrue => Label27
IL_0338: pop
IL_0339: br => Label28
IL_033E: Label27
IL_033E: ldfld RimWorld.Need_Mood RimWorld.Pawn_NeedsTracker::mood
IL_0343: dup
IL_0344: brtrue => Label29
IL_0349: pop
IL_034A: br => Label30
IL_034F: Label29
IL_034F: ldfld RimWorld.ThoughtHandler RimWorld.Need_Mood::thoughts
IL_0354: ldfld RimWorld.SituationalThoughtHandler
RimWorld.ThoughtHandler::situational
IL_0359: callvirt System.Void
RimWorld.SituationalThoughtHandler::Notify_SituationalThoughtsDirty()
IL_035E: Label28
IL_035E: Label30
IL_035E: ldarg.0
IL_035F: ldfld Verse.Pawn RimWorld.Pawn_IdeoTracker::pawn
IL_0364: ldfld RimWorld.Pawn_NeedsTracker Verse.Pawn::needs
IL_0369: dup
IL_036A: brtrue => Label31
IL_036F: pop
IL_0370: br => Label32
IL_0375: Label31
IL_0375: call System.Void
RimWorld.Pawn_NeedsTracker::AddOrRemoveNeedsAsAppropriate()
IL_037A: Label32
IL_037A: ldarg.0
IL_037B: ldfld Verse.Pawn RimWorld.Pawn_IdeoTracker::pawn
IL_0380: ldfld RimWorld.Pawn_ApparelTracker Verse.Pawn::apparel
IL_0385: dup
IL_0386: brtrue => Label33
IL_038B: pop
IL_038C: br => Label34
IL_0391: Label33
IL_0391: call System.Void RimWorld.Pawn_ApparelTracker::Notify_IdeoChanged()
IL_0396: Label34
IL_0396: ldarg.0
IL_0397: ldfld Verse.Pawn RimWorld.Pawn_IdeoTracker::pawn
IL_039C: ldfld RimWorld.Pawn_AbilityTracker Verse.Pawn::abilities
IL_03A1: dup
IL_03A2: brtrue => Label35
IL_03A7: pop
IL_03A8: br => Label36
IL_03AD: Label35
IL_03AD: call System.Void
RimWorld.Pawn_AbilityTracker::Notify_TemporaryAbilitiesChanged()
IL_03B2: Label36
IL_03B2: ldarg.0
IL_03B3: ldfld Verse.Pawn RimWorld.Pawn_IdeoTracker::pawn
IL_03B8: ldfld Verse.Pawn_AgeTracker Verse.Pawn::ageTracker
IL_03BD: dup
IL_03BE: brtrue => Label37
IL_03C3: pop
IL_03C4: br => Label39
IL_03C9: Label37
IL_03C9: call System.Void Verse.Pawn_AgeTracker::Notify_IdeoChanged()
IL_03CE: // end original
IL_03CE: Label38
IL_03CE: Label39
IL_03CE: ldarg 1
IL_03D2: ldarg.0
IL_03D3: ldfld Verse.Pawn RimWorld.Pawn_IdeoTracker::pawn
IL_03D8: call static System.Void
VanillaMemesExpanded.VanillaMemesExpanded_Pawn_IdeoTracker_SetIdeo_Patch::ForceTrai
t(RimWorld.Ideo ideo, Verse.Pawn ___pawn)
IL_03DD: ldarg.0
IL_03DE: ldfld Verse.Pawn RimWorld.Pawn_IdeoTracker::pawn
IL_03E3: call static System.Void VFEMech.SetIdeo_Patch::Postfix(Verse.Pawn
___pawn)
IL_03E8: ret
DONE

### Patch: System.Void Verse.TerrainGrid::RemoveTopLayer(Verse.IntVec3 c,


System.Boolean doLeavings)
### Replacement: static System.Void
Verse.TerrainGrid::Verse.TerrainGrid.RemoveTopLayer_Patch4(Verse.TerrainGrid this,
Verse.IntVec3 c, System.Boolean doLeavings)
IL_0000: Local var 0: System.Int32
IL_0000: Local var 1: System.Boolean
IL_0000: ldc.i4 0
IL_0005: stloc 1 (System.Boolean)
IL_0009: ldc.i4.1
IL_000A: stloc 1 (System.Boolean)
IL_000E: ldloc 1 (System.Boolean)
IL_0012: brfalse => Label1
IL_0017: ldarg.0
IL_0018: ldarg 1
IL_001C: ldarg.0
IL_001D: ldfld Verse.Map Verse.TerrainGrid::map
IL_0022: call static System.Void
Replace_Stuff.PlaceBridges.DestroyedTerrain::Prefix(Verse.TerrainGrid __instance,
Verse.IntVec3 c, Verse.Map ___map)
IL_0027: Label1
IL_0027: nop
IL_0028: ldloc 1 (System.Boolean)
IL_002C: brfalse => Label2
IL_0031: ldarg 1
IL_0035: ldarg.0
IL_0036: ldarg.0
IL_0037: ldfld Verse.Map Verse.TerrainGrid::map
IL_003C: call static System.Void VFECore.__TerrainGrid::Prefix(Verse.IntVec3
c, Verse.TerrainGrid __instance, Verse.Map ___map)
IL_0041: Label2
IL_0041: nop
IL_0042: ldloc 1 (System.Boolean)
IL_0046: brfalse => Label3
IL_004B: ldarg 1
IL_004F: ldarg.0
IL_0050: ldarg.0
IL_0051: ldfld Verse.Map Verse.TerrainGrid::map
IL_0056: call static System.Void
BiomesCore.__TerrainGrid::Prefix(Verse.IntVec3 c, Verse.TerrainGrid __instance,
Verse.Map ___map)
IL_005B: Label3
IL_005B: nop
IL_005C: ldloc 1 (System.Boolean)
IL_0060: brfalse => Label4
IL_0065: ldarg 1
IL_0069: ldarg.0
IL_006A: ldfld Verse.Map Verse.TerrainGrid::map
IL_006F: ldarg 2
IL_0073: call static System.Void
VFEMech.RemoveTopLayer_Patch::Prefix(Verse.IntVec3 c, Verse.Map ___map,
System.Boolean doLeavings)
IL_0078: Label4
IL_0078: nop
IL_0079: ldloc 1 (System.Boolean)
IL_007D: brfalse => Label0
IL_0082: // start original
IL_0082: ldarg.0
IL_0083: ldfld Verse.Map Verse.TerrainGrid::map
IL_0088: ldfld Verse.CellIndices Verse.Map::cellIndices
IL_008D: ldarg.1
IL_008E: callvirt System.Int32 Verse.CellIndices::CellToIndex(Verse.IntVec3 c)
IL_0093: stloc.0
IL_0094: ldarg.2
IL_0095: brfalse => Label5
IL_009A: ldarg.0
IL_009B: ldfld Verse.TerrainDef[] Verse.TerrainGrid::topGrid
IL_00A0: ldloc.0
IL_00A1: ldelem.ref
IL_00A2: ldarg.1
IL_00A3: ldarg.0
IL_00A4: ldfld Verse.Map Verse.TerrainGrid::map
IL_00A9: call static System.Void
RimWorld.GenLeaving::DoLeavingsFor(Verse.TerrainDef terrain, Verse.IntVec3 cell,
Verse.Map map)
IL_00AE: Label5
IL_00AE: ldarg.0
IL_00AF: ldfld Verse.TerrainDef[] Verse.TerrainGrid::underGrid
IL_00B4: ldloc.0
IL_00B5: ldelem.ref
IL_00B6: brfalse => Label6
IL_00BB: ldarg.0
IL_00BC: ldfld Verse.TerrainDef[] Verse.TerrainGrid::topGrid
IL_00C1: ldloc.0
IL_00C2: ldarg.0
IL_00C3: ldfld Verse.TerrainDef[] Verse.TerrainGrid::underGrid
IL_00C8: ldloc.0
IL_00C9: ldelem.ref
IL_00CA: stelem.ref
IL_00CB: ldarg.0
IL_00CC: ldfld Verse.TerrainDef[] Verse.TerrainGrid::underGrid
IL_00D1: ldloc.0
IL_00D2: ldnull
IL_00D3: stelem.ref
IL_00D4: ldarg.0
IL_00D5: ldfld RimWorld.ColorDef[] Verse.TerrainGrid::colorGrid
IL_00DA: ldloc.0
IL_00DB: ldnull
IL_00DC: stelem.ref
IL_00DD: ldarg.0
IL_00DE: ldarg.1
IL_00DF: call System.Void
Verse.TerrainGrid::DoTerrainChangedEffects(Verse.IntVec3 c)
IL_00E4: // end original
IL_00E4: Label6
IL_00E4: Label0
IL_00E4: ret
DONE

### Patch: System.Void Verse.TerrainGrid::SetTerrain(Verse.IntVec3 c,


Verse.TerrainDef newTerr)
### Replacement: static System.Void
Verse.TerrainGrid::Verse.TerrainGrid.SetTerrain_Patch6(Verse.TerrainGrid this,
Verse.IntVec3 c, Verse.TerrainDef newTerr)
IL_0000: Local var 0: System.Int32
IL_0000: Local var 1: Verse.Designation
IL_0000: Local var 2: System.Boolean
IL_0000: ldc.i4 0
IL_0005: stloc 2 (System.Boolean)
IL_0009: ldc.i4.1
IL_000A: stloc 2 (System.Boolean)
IL_000E: ldloc 2 (System.Boolean)
IL_0012: brfalse => Label1
IL_0017: ldarg 1
IL_001B: ldarg 2
IL_001F: ldarg.0
IL_0020: ldarg.0
IL_0021: ldfld Verse.Map Verse.TerrainGrid::map
IL_0026: call static System.Void VFECore._TerrainGrid::Prefix(Verse.IntVec3
c, Verse.TerrainDef newTerr, Verse.TerrainGrid __instance, Verse.Map ___map)
IL_002B: Label1
IL_002B: nop
IL_002C: ldloc 2 (System.Boolean)
IL_0030: brfalse => Label2
IL_0035: ldarg 1
IL_0039: ldarg 2
IL_003D: ldarg.0
IL_003E: ldarg.0
IL_003F: ldfld Verse.Map Verse.TerrainGrid::map
IL_0044: call static System.Void
BiomesCore._TerrainGrid::Prefix(Verse.IntVec3 c, Verse.TerrainDef newTerr,
Verse.TerrainGrid __instance, Verse.Map ___map)
IL_0049: Label2
IL_0049: nop
IL_004A: ldloc 2 (System.Boolean)
IL_004E: brfalse => Label0
IL_0053: // start original
IL_0053: ldarg.2
IL_0054: brtrue => Label3
IL_0059: ldstr "Tried to set terrain at "
IL_005E: ldarg.1
IL_005F: box Verse.IntVec3
IL_0064: ldstr " to null."
IL_0069: call static System.String System.String::Concat(System.Object arg0,
System.Object arg1, System.Object arg2)
IL_006E: call static System.Void Verse.Log::Error(System.String text)
IL_0073: br => Label11
IL_0078: Label3
IL_0078: call static Verse.ProgramState Verse.Current::get_ProgramState()
IL_007D: ldc.i4.2
IL_007E: bne.un => Label4
IL_0083: ldarg.0
IL_0084: ldfld Verse.Map Verse.TerrainGrid::map
IL_0089: ldfld Verse.DesignationManager Verse.Map::designationManager
IL_008E: ldarg.1
IL_008F: ldsfld Verse.DesignationDef RimWorld.DesignationDefOf::SmoothFloor
IL_0094: callvirt Verse.Designation
Verse.DesignationManager::DesignationAt(Verse.IntVec3 c, Verse.DesignationDef def)
IL_0099: stloc.1
IL_009A: ldloc.1
IL_009B: brfalse => Label5
IL_00A0: ldloc.1
IL_00A1: callvirt System.Void Verse.Designation::Delete()
IL_00A6: Label4
IL_00A6: Label5
IL_00A6: ldarg.0
IL_00A7: ldfld Verse.Map Verse.TerrainGrid::map
IL_00AC: ldfld Verse.CellIndices Verse.Map::cellIndices
IL_00B1: ldarg.1
IL_00B2: callvirt System.Int32 Verse.CellIndices::CellToIndex(Verse.IntVec3 c)
IL_00B7: stloc.0
IL_00B8: ldarg.2
IL_00B9: ldfld System.Boolean Verse.TerrainDef::layerable
IL_00BE: brfalse => Label6
IL_00C3: ldarg.0
IL_00C4: ldfld Verse.TerrainDef[] Verse.TerrainGrid::underGrid
IL_00C9: ldloc.0
IL_00CA: ldelem.ref
IL_00CB: brtrue => Label7
IL_00D0: ldarg.0
IL_00D1: ldfld Verse.TerrainDef[] Verse.TerrainGrid::topGrid
IL_00D6: ldloc.0
IL_00D7: ldelem.ref
IL_00D8: ldfld Verse.Traversability Verse.BuildableDef::passability
IL_00DD: ldc.i4.2
IL_00DE: beq => Label8
IL_00E3: ldarg.0
IL_00E4: ldfld Verse.TerrainDef[] Verse.TerrainGrid::underGrid
IL_00E9: ldloc.0
IL_00EA: ldarg.0
IL_00EB: ldfld Verse.TerrainDef[] Verse.TerrainGrid::topGrid
IL_00F0: ldloc.0
IL_00F1: ldelem.ref
IL_00F2: stelem.ref
IL_00F3: br => Label9
IL_00F8: Label8
IL_00F8: ldarg.0
IL_00F9: ldfld Verse.TerrainDef[] Verse.TerrainGrid::underGrid
IL_00FE: ldloc.0
IL_00FF: ldsfld Verse.TerrainDef RimWorld.TerrainDefOf::Sand
IL_0104: stelem.ref
IL_0105: br => Label10
IL_010A: Label6
IL_010A: ldarg.0
IL_010B: ldfld Verse.TerrainDef[] Verse.TerrainGrid::underGrid
IL_0110: ldloc.0
IL_0111: ldnull
IL_0112: stelem.ref
IL_0113: Label7
IL_0113: Label9
IL_0113: Label10
IL_0113: ldarg.0
IL_0114: ldfld Verse.TerrainDef[] Verse.TerrainGrid::topGrid
IL_0119: ldloc.0
IL_011A: ldarg.2
IL_011B: stelem.ref
IL_011C: ldarg.0
IL_011D: ldfld RimWorld.ColorDef[] Verse.TerrainGrid::colorGrid
IL_0122: ldloc.0
IL_0123: ldnull
IL_0124: stelem.ref
IL_0125: ldarg.0
IL_0126: ldarg.1
IL_0127: call System.Void
Verse.TerrainGrid::DoTerrainChangedEffects(Verse.IntVec3 c)
IL_012C: // end original
IL_012C: Label11
IL_012C: Label0
IL_012C: ldarg 1
IL_0130: ldarg 2
IL_0134: ldarg.0
IL_0135: ldarg.0
IL_0136: ldfld Verse.Map Verse.TerrainGrid::map
IL_013B: call static System.Void VFECore._TerrainGrid::Postfix(Verse.IntVec3
c, Verse.TerrainDef newTerr, Verse.TerrainGrid __instance, Verse.Map ___map)
IL_0140: ldarg 1
IL_0144: ldarg 2
IL_0148: ldarg.0
IL_0149: ldarg.0
IL_014A: ldfld Verse.Map Verse.TerrainGrid::map
IL_014F: call static System.Void
BiomesCore._TerrainGrid::Postfix(Verse.IntVec3 c, Verse.TerrainDef newTerr,
Verse.TerrainGrid __instance, Verse.Map ___map)
IL_0154: ldarg 1
IL_0158: ldarg 2
IL_015C: ldarg.0
IL_015D: ldfld Verse.Map Verse.TerrainGrid::map
IL_0162: call static System.Void
BiomesCore.Patches.SetTerrain_UpdateCommonality::Postfix(Verse.IntVec3 c,
Verse.TerrainDef newTerr, Verse.Map ___map)
IL_0167: ldarg 1
IL_016B: ldarg 2
IL_016F: ldarg.0
IL_0170: ldfld Verse.Map Verse.TerrainGrid::map
IL_0175: call static System.Void
VFEMech.Patch_SetTerrain::Postfix(Verse.IntVec3 c, Verse.TerrainDef newTerr,
Verse.Map ___map)
IL_017A: ret
DONE

### Patch: System.Boolean


RimWorld.Pawn_InteractionsTracker::CanInteractNowWith(Verse.Pawn recipient,
RimWorld.InteractionDef interactionDef)
### Replacement: static System.Boolean
RimWorld.Pawn_InteractionsTracker::RimWorld.Pawn_InteractionsTracker.CanInteractNow
With_Patch2(RimWorld.Pawn_InteractionsTracker this, Verse.Pawn recipient,
RimWorld.InteractionDef interactionDef)
IL_0000: Local var 0: System.Boolean
IL_0000: ldc.i4 0
IL_0005: stloc 0 (System.Boolean)
IL_0009: // start original
IL_0009: ldarg.0
IL_000A: ldfld Verse.Pawn RimWorld.Pawn_InteractionsTracker::pawn
IL_000F: ldarg.1
IL_0010: call static System.Boolean
RimWorld.PawnUtility::IsCarryingPawn(Verse.Pawn pawn, Verse.Pawn carryPawn)
IL_0015: brtrue => Label0
IL_001A: ldarg.1
IL_001B: callvirt System.Boolean Verse.Thing::get_Spawned()
IL_0020: brtrue => Label1
IL_0025: ldc.i4.0
IL_0026: br => Label5
IL_002B: Label1
IL_002B: ldarg.0
IL_002C: ldfld Verse.Pawn RimWorld.Pawn_InteractionsTracker::pawn
IL_0031: ldarg.1
IL_0032: call static System.Boolean
RimWorld.InteractionUtility::IsGoodPositionForInteraction(Verse.Pawn p, Verse.Pawn
recipient)
IL_0037: brtrue => Label2
IL_003C: ldc.i4.0
IL_003D: br => Label6
IL_0042: Label0
IL_0042: Label2
IL_0042: ldarg.0
IL_0043: ldfld Verse.Pawn RimWorld.Pawn_InteractionsTracker::pawn
IL_0048: ldarg.2
IL_0049: call static System.Boolean
RimWorld.InteractionUtility::CanInitiateInteraction(Verse.Pawn pawn,
RimWorld.InteractionDef interactionDef)
IL_004E: brfalse => Label3
IL_0053: ldarg.1
IL_0054: ldarg.2
IL_0055: call static System.Boolean
RimWorld.InteractionUtility::CanReceiveInteraction(Verse.Pawn pawn,
RimWorld.InteractionDef interactionDef)
IL_005A: brtrue => Label4
IL_005F: Label3
IL_005F: ldc.i4.0
IL_0060: br => Label7
IL_0065: Label4
IL_0065: ldc.i4.1
IL_0066: // end original
IL_0066: Label5
IL_0066: Label6
IL_0066: Label7
IL_0066: stloc 0 (System.Boolean)
IL_006A: ldarg.0
IL_006B: ldfld Verse.Pawn RimWorld.Pawn_InteractionsTracker::pawn
IL_0070: ldarg 1
IL_0074: ldloca 0 (System.Boolean)
IL_0078: ldarg 2
IL_007C: call static System.Void
ATReforged.CanInteractNowWith_Patch::Listener(Verse.Pawn ___pawn, Verse.Pawn
recipient, System.Boolean& __result, RimWorld.InteractionDef interactionDef)
IL_0081: ldloca 0 (System.Boolean)
IL_0085: ldarg.0
IL_0086: ldfld Verse.Pawn RimWorld.Pawn_InteractionsTracker::pawn
IL_008B: ldarg 1
IL_008F: call static System.Void
VFEMedieval.CanInteractNowWith_Patch::Postfix(System.Boolean& __result, Verse.Pawn
___pawn, Verse.Pawn recipient)
IL_0094: ldloc 0 (System.Boolean)
IL_0098: ret
DONE

### Patch: System.Void Verse.PawnRenderer::DrawEquipment(UnityEngine.Vector3


rootLoc, Verse.Rot4 pawnRotation, Verse.PawnRenderFlags flags)
### Replacement: static System.Void
Verse.PawnRenderer::Verse.PawnRenderer.DrawEquipment_Patch4(Verse.PawnRenderer
this, UnityEngine.Vector3 rootLoc, Verse.Rot4 pawnRotation, Verse.PawnRenderFlags
flags)
IL_0000: Local var 0: UnityEngine.Vector3
IL_0000: Local var 1: Verse.Stance_Busy
IL_0000: Local var 2: System.Single
IL_0000: Local var 3: UnityEngine.Vector3
IL_0000: Local var 4: System.Single
IL_0000: Local var 5: Verse.Verb
IL_0000: Local var 6: Verse.IntVec3
IL_0000: Local var 7: System.Nullable`1<System.Single>
IL_0000: Local var 8: System.Boolean
IL_0000: ldc.i4 0
IL_0005: stloc 8 (System.Boolean)
IL_0009: ldc.i4.1
IL_000A: stloc 8 (System.Boolean)
IL_000E: ldloc 8 (System.Boolean)
IL_0012: brfalse => Label1
IL_0017: ldarg.0
IL_0018: ldfld Verse.Pawn Verse.PawnRenderer::pawn
IL_001D: ldarg 1
IL_0021: ldarg 2
IL_0025: ldarg 3
IL_0029: call static System.Boolean
VFEMedieval.DrawEquipment_Patch::Prefix(Verse.Pawn ___pawn, UnityEngine.Vector3
rootLoc, Verse.Rot4 pawnRotation, Verse.PawnRenderFlags flags)
IL_002E: stloc 8 (System.Boolean)
IL_0032: Label1
IL_0032: nop
IL_0033: ldloc 8 (System.Boolean)
IL_0037: brfalse => Label2
IL_003C: ldarg.0
IL_003D: ldarg.0
IL_003E: ldfld Verse.Pawn Verse.PawnRenderer::pawn
IL_0043: ldarg 1
IL_0047: ldarg 2
IL_004B: ldarg 3
IL_004F: call static System.Boolean
VFEPirates.HarmonyPatches.PawnRenderer_DrawEquipment_Patch::Prefix(Verse.PawnRender
er __instance, Verse.Pawn ___pawn, UnityEngine.Vector3 rootLoc, Verse.Rot4
pawnRotation, Verse.PawnRenderFlags flags)
IL_0054: stloc 8 (System.Boolean)
IL_0058: Label2
IL_0058: nop
IL_0059: ldloc 8 (System.Boolean)
IL_005D: brfalse => Label3
IL_0062: ldarg.0
IL_0063: ldfld Verse.Pawn Verse.PawnRenderer::pawn
IL_0068: call static System.Void
AutoToolSwitcher.Patch_DrawEquipment::Prefix(Verse.Pawn ___pawn)
IL_006D: Label3
IL_006D: nop
IL_006E: ldloc 8 (System.Boolean)
IL_0072: brfalse => Label0
IL_0077: // start original
IL_0077: ldarg.0
IL_0078: ldfld Verse.Pawn Verse.PawnRenderer::pawn
IL_007D: callvirt System.Boolean Verse.Pawn::get_Dead()
IL_0082: brtrue => Label4
IL_0087: ldarg.0
IL_0088: ldfld Verse.Pawn Verse.PawnRenderer::pawn
IL_008D: callvirt System.Boolean Verse.Thing::get_Spawned()
IL_0092: brtrue => Label5
IL_0097: Label4
IL_0097: br => Label26
IL_009C: Label5
IL_009C: ldarg.0
IL_009D: ldfld Verse.Pawn Verse.PawnRenderer::pawn
IL_00A2: ldfld Verse.Pawn_EquipmentTracker Verse.Pawn::equipment
IL_00A7: brfalse => Label6
IL_00AC: ldarg.0
IL_00AD: ldfld Verse.Pawn Verse.PawnRenderer::pawn
IL_00B2: ldfld Verse.Pawn_EquipmentTracker Verse.Pawn::equipment
IL_00B7: callvirt Verse.ThingWithComps Verse.Pawn_EquipmentTracker::get_Primary()
IL_00BC: brtrue => Label7
IL_00C1: Label6
IL_00C1: br => Label27
IL_00C6: Label7
IL_00C6: ldarg.0
IL_00C7: ldfld Verse.Pawn Verse.PawnRenderer::pawn
IL_00CC: callvirt Verse.AI.Job Verse.Pawn::get_CurJob()
IL_00D1: brfalse => Label8
IL_00D6: ldarg.0
IL_00D7: ldfld Verse.Pawn Verse.PawnRenderer::pawn
IL_00DC: callvirt Verse.AI.Job Verse.Pawn::get_CurJob()
IL_00E1: ldfld Verse.JobDef Verse.AI.Job::def
IL_00E6: ldfld System.Boolean Verse.JobDef::neverShowWeapon
IL_00EB: brfalse => Label9
IL_00F0: br => Label28
IL_00F5: Label8
IL_00F5: Label9
IL_00F5: ldloca.s 0 (UnityEngine.Vector3)
IL_00F7: ldc.r4 0
IL_00FC: ldarg.2
IL_00FD: ldsfld Verse.Rot4 Verse.Rot4::North
IL_0102: call static System.Boolean Verse.Rot4::op_Equality(Verse.Rot4 a,
Verse.Rot4 b)
IL_0107: brtrue => Label10
IL_010C: ldc.r4 0.03474903
IL_0111: br => Label11
IL_0116: Label10
IL_0116: ldc.r4 -0.002895753
IL_011B: Label11
IL_011B: ldc.r4 0
IL_0120: call System.Void UnityEngine.Vector3::.ctor(System.Single x,
System.Single y, System.Single z)
IL_0125: ldarg.0
IL_0126: ldfld Verse.Pawn Verse.PawnRenderer::pawn
IL_012B: ldfld Verse.Pawn_StanceTracker Verse.Pawn::stances
IL_0130: ldfld Verse.Stance Verse.Pawn_StanceTracker::curStance
IL_0135: isinst Verse.Stance_Busy
IL_013A: stloc.1
IL_013B: ldarg.0
IL_013C: ldfld Verse.Pawn Verse.PawnRenderer::pawn
IL_0141: ldfld Verse.Pawn_AgeTracker Verse.Pawn::ageTracker
IL_0146: callvirt RimWorld.LifeStageDef Verse.Pawn_AgeTracker::get_CurLifeStage()
IL_014B: ldfld System.Single
RimWorld.LifeStageDef::equipmentDrawDistanceFactor
IL_0150: stloc.2
IL_0151: ldloc.1
IL_0152: brfalse => Label12
IL_0157: ldloc.1
IL_0158: ldfld System.Boolean Verse.Stance_Busy::neverAimWeapon
IL_015D: brtrue => Label13
IL_0162: ldloc.1
IL_0163: ldflda Verse.LocalTargetInfo Verse.Stance_Busy::focusTarg
IL_0168: call System.Boolean Verse.LocalTargetInfo::get_IsValid()
IL_016D: brfalse => Label14
IL_0172: ldarg.3
IL_0173: ldc.i4 128
IL_0178: and
IL_0179: brtrue => Label15
IL_017E: ldloc.1
IL_017F: ldflda Verse.LocalTargetInfo Verse.Stance_Busy::focusTarg
IL_0184: call System.Boolean Verse.LocalTargetInfo::get_HasThing()
IL_0189: brfalse => Label16
IL_018E: ldloc.1
IL_018F: ldflda Verse.LocalTargetInfo Verse.Stance_Busy::focusTarg
IL_0194: call Verse.Thing Verse.LocalTargetInfo::get_Thing()
IL_0199: callvirt virtual UnityEngine.Vector3 Verse.Thing::get_DrawPos()
IL_019E: stloc.3
IL_019F: br => Label17
IL_01A4: Label16
IL_01A4: ldloc.1
IL_01A5: ldflda Verse.LocalTargetInfo Verse.Stance_Busy::focusTarg
IL_01AA: call Verse.IntVec3 Verse.LocalTargetInfo::get_Cell()
IL_01AF: stloc.s 6 (Verse.IntVec3)
IL_01B1: ldloca.s 6 (Verse.IntVec3)
IL_01B3: call UnityEngine.Vector3 Verse.IntVec3::ToVector3Shifted()
IL_01B8: stloc.3
IL_01B9: Label17
IL_01B9: ldc.r4 0
IL_01BE: stloc.s 4 (System.Single)
IL_01C0: ldloc.3
IL_01C1: ldarg.0
IL_01C2: ldfld Verse.Pawn Verse.PawnRenderer::pawn
IL_01C7: callvirt virtual UnityEngine.Vector3 Verse.Thing::get_DrawPos()
IL_01CC: call static UnityEngine.Vector3
UnityEngine.Vector3::op_Subtraction(UnityEngine.Vector3 a, UnityEngine.Vector3 b)
IL_01D1: call static System.Single
Verse.GenGeo::MagnitudeHorizontalSquared(UnityEngine.Vector3 v)
IL_01D6: ldc.r4 0.001
IL_01DB: ble.un => Label18
IL_01E0: ldloc.3
IL_01E1: ldarg.0
IL_01E2: ldfld Verse.Pawn Verse.PawnRenderer::pawn
IL_01E7: callvirt virtual UnityEngine.Vector3 Verse.Thing::get_DrawPos()
IL_01EC: call static UnityEngine.Vector3
UnityEngine.Vector3::op_Subtraction(UnityEngine.Vector3 a, UnityEngine.Vector3 b)
IL_01F1: call static System.Single
Verse.Vector3Utility::AngleFlat(UnityEngine.Vector3 v)
IL_01F6: stloc.s 4 (System.Single)
IL_01F8: Label18
IL_01F8: ldarg.0
IL_01F9: ldfld Verse.Pawn Verse.PawnRenderer::pawn
IL_01FE: callvirt virtual Verse.Verb Verse.Pawn::get_CurrentEffectiveVerb()
IL_0203: stloc.s 5 (Verse.Verb)
IL_0205: ldloc.s 5 (Verse.Verb)
IL_0207: brfalse => Label19
IL_020C: ldloc.s 5 (Verse.Verb)
IL_020E: callvirt virtual System.Nullable`1<System.Single>
Verse.Verb::get_AimAngleOverride()
IL_0213: stloc.s 7 (System.Nullable`1[System.Single])
IL_0215: ldloca.s 7 (System.Nullable`1[System.Single])
IL_0217: call System.Boolean System.Nullable`1<System.Single>::get_HasValue()
IL_021C: brfalse => Label20
IL_0221: ldloc.s 5 (Verse.Verb)
IL_0223: callvirt virtual System.Nullable`1<System.Single>
Verse.Verb::get_AimAngleOverride()
IL_0228: stloc.s 7 (System.Nullable`1[System.Single])
IL_022A: ldloca.s 7 (System.Nullable`1[System.Single])
IL_022C: call System.Single System.Nullable`1<System.Single>::get_Value()
IL_0231: stloc.s 4 (System.Single)
IL_0233: Label19
IL_0233: Label20
IL_0233: ldloc.0
IL_0234: ldarg.1
IL_0235: ldc.r4 0
IL_023A: ldc.r4 0
IL_023F: ldc.r4 0.4
IL_0244: ldarg.0
IL_0245: ldfld Verse.Pawn Verse.PawnRenderer::pawn
IL_024A: ldfld Verse.Pawn_EquipmentTracker Verse.Pawn::equipment
IL_024F: callvirt Verse.ThingWithComps Verse.Pawn_EquipmentTracker::get_Primary()
IL_0254: ldfld Verse.ThingDef Verse.Thing::def
IL_0259: ldfld System.Single Verse.ThingDef::equippedDistanceOffset
IL_025E: add
IL_025F: newobj System.Void UnityEngine.Vector3::.ctor(System.Single x,
System.Single y, System.Single z)
IL_0264: ldloc.s 4 (System.Single)
IL_0266: call static UnityEngine.Vector3
Verse.Vector3Utility::RotatedBy(UnityEngine.Vector3 v3, System.Single angle)
IL_026B: ldloc.2
IL_026C: call static UnityEngine.Vector3
UnityEngine.Vector3::op_Multiply(UnityEngine.Vector3 a, System.Single d)
IL_0271: call static UnityEngine.Vector3
UnityEngine.Vector3::op_Addition(UnityEngine.Vector3 a, UnityEngine.Vector3 b)
IL_0276: call static UnityEngine.Vector3
UnityEngine.Vector3::op_Addition(UnityEngine.Vector3 a, UnityEngine.Vector3 b)
IL_027B: stloc.0
IL_027C: ldarg.0
IL_027D: ldarg.0
IL_027E: ldfld Verse.Pawn Verse.PawnRenderer::pawn
IL_0283: ldfld Verse.Pawn_EquipmentTracker Verse.Pawn::equipment
IL_0288: callvirt Verse.ThingWithComps Verse.Pawn_EquipmentTracker::get_Primary()
IL_028D: ldloc.0
IL_028E: ldloc.s 4 (System.Single)
IL_0290: call System.Void Verse.PawnRenderer::DrawEquipmentAiming(Verse.Thing
eq, UnityEngine.Vector3 drawLoc, System.Single aimAngle)
IL_0295: br => Label29
IL_029A: Label12
IL_029A: Label13
IL_029A: Label14
IL_029A: Label15
IL_029A: ldarg.0
IL_029B: call System.Boolean Verse.PawnRenderer::CarryWeaponOpenly()
IL_02A0: brfalse => Label21
IL_02A5: ldarg.2
IL_02A6: ldsfld Verse.Rot4 Verse.Rot4::South
IL_02AB: call static System.Boolean Verse.Rot4::op_Equality(Verse.Rot4 a,
Verse.Rot4 b)
IL_02B0: brfalse => Label22
IL_02B5: ldloc.0
IL_02B6: ldarg.1
IL_02B7: ldc.r4 0
IL_02BC: ldc.r4 0
IL_02C1: ldc.r4 -0.22
IL_02C6: newobj System.Void UnityEngine.Vector3::.ctor(System.Single x,
System.Single y, System.Single z)
IL_02CB: ldloc.2
IL_02CC: call static UnityEngine.Vector3
UnityEngine.Vector3::op_Multiply(UnityEngine.Vector3 a, System.Single d)
IL_02D1: call static UnityEngine.Vector3
UnityEngine.Vector3::op_Addition(UnityEngine.Vector3 a, UnityEngine.Vector3 b)
IL_02D6: call static UnityEngine.Vector3
UnityEngine.Vector3::op_Addition(UnityEngine.Vector3 a, UnityEngine.Vector3 b)
IL_02DB: stloc.0
IL_02DC: ldarg.0
IL_02DD: ldarg.0
IL_02DE: ldfld Verse.Pawn Verse.PawnRenderer::pawn
IL_02E3: ldfld Verse.Pawn_EquipmentTracker Verse.Pawn::equipment
IL_02E8: callvirt Verse.ThingWithComps Verse.Pawn_EquipmentTracker::get_Primary()
IL_02ED: ldloc.0
IL_02EE: ldc.r4 143
IL_02F3: call System.Void Verse.PawnRenderer::DrawEquipmentAiming(Verse.Thing
eq, UnityEngine.Vector3 drawLoc, System.Single aimAngle)
IL_02F8: br => Label30
IL_02FD: Label22
IL_02FD: ldarg.2
IL_02FE: ldsfld Verse.Rot4 Verse.Rot4::North
IL_0303: call static System.Boolean Verse.Rot4::op_Equality(Verse.Rot4 a,
Verse.Rot4 b)
IL_0308: brfalse => Label23
IL_030D: ldloc.0
IL_030E: ldarg.1
IL_030F: ldc.r4 0
IL_0314: ldc.r4 0
IL_0319: ldc.r4 -0.11
IL_031E: newobj System.Void UnityEngine.Vector3::.ctor(System.Single x,
System.Single y, System.Single z)
IL_0323: ldloc.2
IL_0324: call static UnityEngine.Vector3
UnityEngine.Vector3::op_Multiply(UnityEngine.Vector3 a, System.Single d)
IL_0329: call static UnityEngine.Vector3
UnityEngine.Vector3::op_Addition(UnityEngine.Vector3 a, UnityEngine.Vector3 b)
IL_032E: call static UnityEngine.Vector3
UnityEngine.Vector3::op_Addition(UnityEngine.Vector3 a, UnityEngine.Vector3 b)
IL_0333: stloc.0
IL_0334: ldarg.0
IL_0335: ldarg.0
IL_0336: ldfld Verse.Pawn Verse.PawnRenderer::pawn
IL_033B: ldfld Verse.Pawn_EquipmentTracker Verse.Pawn::equipment
IL_0340: callvirt Verse.ThingWithComps Verse.Pawn_EquipmentTracker::get_Primary()
IL_0345: ldloc.0
IL_0346: ldc.r4 143
IL_034B: call System.Void Verse.PawnRenderer::DrawEquipmentAiming(Verse.Thing
eq, UnityEngine.Vector3 drawLoc, System.Single aimAngle)
IL_0350: br => Label31
IL_0355: Label23
IL_0355: ldarg.2
IL_0356: ldsfld Verse.Rot4 Verse.Rot4::East
IL_035B: call static System.Boolean Verse.Rot4::op_Equality(Verse.Rot4 a,
Verse.Rot4 b)
IL_0360: brfalse => Label24
IL_0365: ldloc.0
IL_0366: ldarg.1
IL_0367: ldc.r4 0.2
IL_036C: ldc.r4 0
IL_0371: ldc.r4 -0.22
IL_0376: newobj System.Void UnityEngine.Vector3::.ctor(System.Single x,
System.Single y, System.Single z)
IL_037B: ldloc.2
IL_037C: call static UnityEngine.Vector3
UnityEngine.Vector3::op_Multiply(UnityEngine.Vector3 a, System.Single d)
IL_0381: call static UnityEngine.Vector3
UnityEngine.Vector3::op_Addition(UnityEngine.Vector3 a, UnityEngine.Vector3 b)
IL_0386: call static UnityEngine.Vector3
UnityEngine.Vector3::op_Addition(UnityEngine.Vector3 a, UnityEngine.Vector3 b)
IL_038B: stloc.0
IL_038C: ldarg.0
IL_038D: ldarg.0
IL_038E: ldfld Verse.Pawn Verse.PawnRenderer::pawn
IL_0393: ldfld Verse.Pawn_EquipmentTracker Verse.Pawn::equipment
IL_0398: callvirt Verse.ThingWithComps Verse.Pawn_EquipmentTracker::get_Primary()
IL_039D: ldloc.0
IL_039E: ldc.r4 143
IL_03A3: call System.Void Verse.PawnRenderer::DrawEquipmentAiming(Verse.Thing
eq, UnityEngine.Vector3 drawLoc, System.Single aimAngle)
IL_03A8: br => Label32
IL_03AD: Label24
IL_03AD: ldarg.2
IL_03AE: ldsfld Verse.Rot4 Verse.Rot4::West
IL_03B3: call static System.Boolean Verse.Rot4::op_Equality(Verse.Rot4 a,
Verse.Rot4 b)
IL_03B8: brfalse => Label25
IL_03BD: ldloc.0
IL_03BE: ldarg.1
IL_03BF: ldc.r4 -0.2
IL_03C4: ldc.r4 0
IL_03C9: ldc.r4 -0.22
IL_03CE: newobj System.Void UnityEngine.Vector3::.ctor(System.Single x,
System.Single y, System.Single z)
IL_03D3: ldloc.2
IL_03D4: call static UnityEngine.Vector3
UnityEngine.Vector3::op_Multiply(UnityEngine.Vector3 a, System.Single d)
IL_03D9: call static UnityEngine.Vector3
UnityEngine.Vector3::op_Addition(UnityEngine.Vector3 a, UnityEngine.Vector3 b)
IL_03DE: call static UnityEngine.Vector3
UnityEngine.Vector3::op_Addition(UnityEngine.Vector3 a, UnityEngine.Vector3 b)
IL_03E3: stloc.0
IL_03E4: ldarg.0
IL_03E5: ldarg.0
IL_03E6: ldfld Verse.Pawn Verse.PawnRenderer::pawn
IL_03EB: ldfld Verse.Pawn_EquipmentTracker Verse.Pawn::equipment
IL_03F0: callvirt Verse.ThingWithComps Verse.Pawn_EquipmentTracker::get_Primary()
IL_03F5: ldloc.0
IL_03F6: ldc.r4 217
IL_03FB: call System.Void Verse.PawnRenderer::DrawEquipmentAiming(Verse.Thing
eq, UnityEngine.Vector3 drawLoc, System.Single aimAngle)
IL_0400: // end original
IL_0400: Label21
IL_0400: Label25
IL_0400: Label26
IL_0400: Label27
IL_0400: Label28
IL_0400: Label29
IL_0400: Label30
IL_0400: Label31
IL_0400: Label32
IL_0400: Label0
IL_0400: call static System.Void
AutoToolSwitcher.Patch_DrawEquipment::Postfix()
IL_0405: ret
DONE

### Patch: static System.Boolean


RimWorld.WatchBuildingUtility::EverPossibleToWatchFrom(Verse.IntVec3 watchCell,
Verse.IntVec3 buildingCenter, Verse.Map map, System.Boolean bedAllowed,
Verse.ThingDef def)
### Replacement: static System.Boolean
RimWorld.WatchBuildingUtility::RimWorld.WatchBuildingUtility.EverPossibleToWatchFro
m_Patch1(Verse.IntVec3 watchCell, Verse.IntVec3 buildingCenter, Verse.Map map,
System.Boolean bedAllowed, Verse.ThingDef def)
IL_0000: Local var 0: Verse.Room
IL_0000: Local var 1: System.Boolean
IL_0000: ldc.i4 0
IL_0005: stloc 1 (System.Boolean)
IL_0009: // start original
IL_0009: ldarg.0
IL_000A: ldarg.2
IL_000B: call static System.Boolean Verse.GenGrid::InBounds(Verse.IntVec3 c,
Verse.Map map)
IL_0010: brtrue => Label0
IL_0015: ldc.i4.0
IL_0016: br => Label9
IL_001B: Label0
IL_001B: ldarg.s 4
IL_001D: ldfld RimWorld.BuildingProperties Verse.ThingDef::building
IL_0022: brfalse => Label1
IL_0027: ldarg.s 4
IL_0029: ldfld RimWorld.BuildingProperties Verse.ThingDef::building
IL_002E: ldfld System.Boolean
RimWorld.BuildingProperties::watchBuildingInSameRoom
IL_0033: brtrue => Label2
IL_0038: Label1
IL_0038: ldnull
IL_0039: br => Label3
IL_003E: Label2
IL_003E: ldarg.1
IL_003F: ldarg.2
IL_0040: call static Verse.Room Verse.GridsUtility::GetRoom(Verse.IntVec3
loc, Verse.Map map)
IL_0045: Label3
IL_0045: stloc.0
IL_0046: ldloc.0
IL_0047: brfalse => Label4
IL_004C: ldloc.0
IL_004D: ldarg.0
IL_004E: callvirt System.Boolean Verse.Room::ContainsCell(Verse.IntVec3 cell)
IL_0053: brfalse => Label5
IL_0058: Label4
IL_0058: ldarg.0
IL_0059: ldarg.2
IL_005A: call static System.Boolean Verse.GenGrid::Standable(Verse.IntVec3 c,
Verse.Map map)
IL_005F: brtrue => Label6
IL_0064: ldarg.3
IL_0065: brfalse => Label7
IL_006A: ldarg.0
IL_006B: ldarg.2
IL_006C: call static Verse.Building
Verse.GridsUtility::GetEdifice(Verse.IntVec3 c, Verse.Map map)
IL_0071: isinst RimWorld.Building_Bed
IL_0076: brfalse => Label8
IL_007B: Label6
IL_007B: ldarg.1
IL_007C: ldarg.0
IL_007D: ldarg.2
IL_007E: ldc.i4.1
IL_007F: ldnull
IL_0080: ldc.i4.0
IL_0081: ldc.i4.0
IL_0082: call static System.Boolean Verse.GenSight::LineOfSight(Verse.IntVec3
start, Verse.IntVec3 end, Verse.Map map, System.Boolean skipFirstCell,
System.Func`2<Verse.IntVec3, System.Boolean> validator, System.Int32 halfXOffset,
System.Int32 halfZOffset)
IL_0087: br => Label10
IL_008C: Label5
IL_008C: Label7
IL_008C: Label8
IL_008C: ldc.i4.0
IL_008D: // end original
IL_008D: Label9
IL_008D: Label10
IL_008D: stloc 1 (System.Boolean)
IL_0091: ldloca 1 (System.Boolean)
IL_0095: ldarg 0
IL_0099: ldarg 1
IL_009D: ldarg 2
IL_00A1: ldarg 3
IL_00A5: ldarg 4
IL_00A9: call static System.Void
VFEMedieval.WatchBuildingUtility_EverPossibleToWatchFrom_Patch::Postfix(System.Bool
ean& __result, Verse.IntVec3 watchCell, Verse.IntVec3 buildingCenter, Verse.Map
map, System.Boolean bedAllowed, Verse.ThingDef def)
IL_00AE: ldloc 1 (System.Boolean)
IL_00B2: ret
DONE

### Patch: static System.Void


RimWorld.Planet.SettlementUtility::AffectRelationsOnAttacked(RimWorld.Planet.MapPar
ent mapParent, Verse.TaggedString& letterText)
### Replacement: static System.Void
RimWorld.Planet.SettlementUtility::RimWorld.Planet.SettlementUtility.AffectRelation
sOnAttacked_Patch2(RimWorld.Planet.MapParent mapParent, Verse.TaggedString&
letterText)
IL_0000: Local var 0: RimWorld.FactionRelationKind
IL_0000: Local var 1: System.Nullable`1<RimWorld.Planet.GlobalTargetInfo>
IL_0000: Local var 2: System.Boolean
IL_0000: ldc.i4 0
IL_0005: stloc 2 (System.Boolean)
IL_0009: ldc.i4.1
IL_000A: stloc 2 (System.Boolean)
IL_000E: ldloc 2 (System.Boolean)
IL_0012: brfalse => Label1
IL_0017: ldarg 0
IL_001B: ldarg 1
IL_001F: call static System.Boolean
VFEMech.Patch_AffectRelationsOnAttacked::Prefix(RimWorld.Planet.MapParent
mapParent, Verse.TaggedString& letterText)
IL_0024: stloc 2 (System.Boolean)
IL_0028: Label1
IL_0028: nop
IL_0029: ldloc 2 (System.Boolean)
IL_002D: brfalse => Label2
IL_0032: ldarg 0
IL_0036: ldarg 1
IL_003A: call static System.Boolean
VFEMedieval.Patch_AffectRelationsOnAttacked::Prefix(RimWorld.Planet.MapParent
mapParent, Verse.TaggedString& letterText)
IL_003F: stloc 2 (System.Boolean)
IL_0043: Label2
IL_0043: nop
IL_0044: ldloc 2 (System.Boolean)
IL_0048: brfalse => Label0
IL_004D: // start original
IL_004D: ldarg.0
IL_004E: callvirt virtual RimWorld.Faction
RimWorld.Planet.WorldObject::get_Faction()
IL_0053: brfalse => Label3
IL_0058: ldarg.0
IL_0059: callvirt virtual RimWorld.Faction
RimWorld.Planet.WorldObject::get_Faction()
IL_005E: call static RimWorld.Faction RimWorld.Faction::get_OfPlayer()
IL_0063: beq => Label4
IL_0068: ldarg.0
IL_0069: callvirt virtual RimWorld.Faction
RimWorld.Planet.WorldObject::get_Faction()
IL_006E: callvirt RimWorld.FactionRelationKind
RimWorld.Faction::get_PlayerRelationKind()
IL_0073: stloc.0
IL_0074: call static RimWorld.Faction RimWorld.Faction::get_OfPlayer()
IL_0079: ldarg.0
IL_007A: callvirt virtual RimWorld.Faction
RimWorld.Planet.WorldObject::get_Faction()
IL_007F: call static RimWorld.Faction RimWorld.Faction::get_OfPlayer()
IL_0084: ldarg.0
IL_0085: callvirt virtual RimWorld.Faction
RimWorld.Planet.WorldObject::get_Faction()
IL_008A: callvirt System.Int32
RimWorld.Faction::GoodwillToMakeHostile(RimWorld.Faction other)
IL_008F: ldc.i4.0
IL_0090: ldc.i4.0
IL_0091: ldsfld RimWorld.HistoryEventDef
RimWorld.HistoryEventDefOf::AttackedSettlement
IL_0096: ldloca.s 1 (System.Nullable`1[RimWorld.Planet.GlobalTargetInfo])
IL_0098: initobj System.Nullable`1[RimWorld.Planet.GlobalTargetInfo]
IL_009E: ldloc.1
IL_009F: callvirt System.Boolean
RimWorld.Faction::TryAffectGoodwillWith(RimWorld.Faction other, System.Int32
goodwillChange, System.Boolean canSendMessage, System.Boolean
canSendHostilityLetter, RimWorld.HistoryEventDef reason,
System.Nullable`1<RimWorld.Planet.GlobalTargetInfo> lookTarget)
IL_00A4: pop
IL_00A5: ldarg.0
IL_00A6: callvirt virtual RimWorld.Faction
RimWorld.Planet.WorldObject::get_Faction()
IL_00AB: ldarg.1
IL_00AC: ldloc.0
IL_00AD: ldarg.0
IL_00AE: callvirt virtual RimWorld.Faction
RimWorld.Planet.WorldObject::get_Faction()
IL_00B3: callvirt RimWorld.FactionRelationKind
RimWorld.Faction::get_PlayerRelationKind()
IL_00B8: ldnull
IL_00B9: callvirt System.Void
RimWorld.Faction::TryAppendRelationKindChangedInfo(Verse.TaggedString& text,
RimWorld.FactionRelationKind previousKind, RimWorld.FactionRelationKind newKind,
System.String reason)
IL_00BE: // end original
IL_00BE: Label3
IL_00BE: Label4
IL_00BE: Label0
IL_00BE: ret
DONE

### Patch: static System.String


Verse.BackCompatibility::BackCompatibleDefName(System.Type defType, System.String
defName, System.Boolean forDefInjections, System.Xml.XmlNode node)
### Replacement: static System.String
Verse.BackCompatibility::Verse.BackCompatibility.BackCompatibleDefName_Patch3(Syste
m.Type defType, System.String defName, System.Boolean forDefInjections,
System.Xml.XmlNode node)
IL_0000: Local var 0: System.String
IL_0000: Local var 1: System.Int32
IL_0000: Local var 2: System.String
IL_0000: Local var 3: System.Exception
IL_0000: Local var 4: System.String
IL_0000: Local var 5: System.Boolean
IL_0000: ldnull
IL_0001: stloc 4 (System.String)
IL_0005: ldc.i4 0
IL_000A: stloc 5 (System.Boolean)
IL_000E: ldc.i4.1
IL_000F: stloc 5 (System.Boolean)
IL_0013: ldloc 5 (System.Boolean)
IL_0017: brfalse => Label1
IL_001C: ldarg 0
IL_0020: ldarg 1
IL_0024: ldloca 4 (System.String)
IL_0028: call static System.Boolean
DubsBadHygiene.Patches.H_BackCompatibleDefName::Prefix(System.Type defType,
System.String defName, System.String& __result)
IL_002D: stloc 5 (System.Boolean)
IL_0031: Label1
IL_0031: nop
IL_0032: ldloc 5 (System.Boolean)
IL_0036: brfalse => Label2
IL_003B: ldarg 0
IL_003F: ldarga 1
IL_0043: call static System.Void
VFEMedieval.BackCompatibleDefName::Prefix(System.Type defType, System.String&
defName)
IL_0048: Label2
IL_0048: nop
IL_0049: ldloc 5 (System.Boolean)
IL_004D: brfalse => Label0
IL_0052: // start original
IL_0052: ldsfld Verse.LoadSaveMode Verse.Scribe::mode
IL_0057: brfalse => Label3
IL_005C: call static System.Int32 RimWorld.VersionControl::get_CurrentBuild()
IL_0061: ldsfld System.Int32
Verse.ScribeMetaHeaderUtility::loadedGameVersionBuild
IL_0066: bne.un => Label4
IL_006B: ldarg.1
IL_006C: br => Label13
IL_0071: Label3
IL_0071: Label4
IL_0071: ldarg.0
IL_0072: ldarg.1
IL_0073: ldc.i4.0
IL_0074: call static Verse.Def
Verse.GenDefDatabase::GetDefSilentFail(System.Type type, System.String
targetDefName, System.Boolean specialCaseForSoundDefs)
IL_0079: brfalse => Label5
IL_007E: ldarg.1
IL_007F: br => Label14
IL_0084: Label5
IL_0084: ldarg.1
IL_0085: stloc.0
IL_0086: ldc.i4.0
IL_0087: stloc.1
IL_0088: br => Label6
IL_008D: Label12
IL_008D: ldsfld Verse.LoadSaveMode Verse.Scribe::mode
IL_0092: brfalse => Label7
IL_0097: ldsfld
System.Collections.Generic.List`1<Verse.BackCompatibilityConverter>
Verse.BackCompatibility::conversionChain
IL_009C: ldloc.1
IL_009D: callvirt virtual Verse.BackCompatibilityConverter
System.Collections.Generic.List`1<Verse.BackCompatibilityConverter>::get_Item(Syste
m.Int32 index)
IL_00A2: ldc.i4.0
IL_00A3: callvirt System.Boolean
Verse.BackCompatibilityConverter::AppliesToLoadedGameVersion(System.Boolean
allowInactiveScribe)
IL_00A8: brfalse => Label8
IL_00AD: Label7
IL_00AD: nop
.try
{
IL_00AE: ldsfld
System.Collections.Generic.List`1<Verse.BackCompatibilityConverter>
Verse.BackCompatibility::conversionChain
IL_00B3: ldloc.1
IL_00B4: callvirt virtual Verse.BackCompatibilityConverter
System.Collections.Generic.List`1<Verse.BackCompatibilityConverter>::get_Item(Syste
m.Int32 index)
IL_00B9: ldarg.0
IL_00BA: ldloc.0
IL_00BB: ldarg.2
IL_00BC: ldarg.3
IL_00BD: callvirt abstract virtual System.String
Verse.BackCompatibilityConverter::BackCompatibleDefName(System.Type defType,
System.String defName, System.Boolean forDefInjections, System.Xml.XmlNode node)
IL_00C2: stloc.2
IL_00C3: ldloc.2
IL_00C4: brfalse => Label9
IL_00C9: ldloc.2
IL_00CA: stloc.0
IL_00CB: Label9
IL_00CB: leave => Label10
IL_00D0: leave => (autogenerated)
} // end try
.catch System.Exception
{
IL_00D5: stloc.3
IL_00D6: ldc.i4.4
IL_00D7: newarr System.Object
IL_00DC: dup
IL_00DD: ldc.i4.0
IL_00DE: ldstr "Error in BackCompatibleDefName of "
IL_00E3: stelem.ref
IL_00E4: dup
IL_00E5: ldc.i4.1
IL_00E6: ldsfld
System.Collections.Generic.List`1<Verse.BackCompatibilityConverter>
Verse.BackCompatibility::conversionChain
IL_00EB: ldloc.1
IL_00EC: callvirt virtual Verse.BackCompatibilityConverter
System.Collections.Generic.List`1<Verse.BackCompatibilityConverter>::get_Item(Syste
m.Int32 index)
IL_00F1: callvirt System.Type System.Object::GetType()
IL_00F6: stelem.ref
IL_00F7: dup
IL_00F8: ldc.i4.2
IL_00F9: ldstr "\n"
IL_00FE: stelem.ref
IL_00FF: dup
IL_0100: ldc.i4.3
IL_0101: ldloc.3
IL_0102: stelem.ref
IL_0103: call static System.String
System.String::Concat(System.Object[] args)
IL_0108: call static System.Void Verse.Log::Error(System.String text)
IL_010D: leave => Label11
IL_0112: leave => (autogenerated)
} // end handler
IL_0117: Label8
IL_0117: Label10
IL_0117: Label11
IL_0117: ldloc.1
IL_0118: ldc.i4.1
IL_0119: add
IL_011A: stloc.1
IL_011B: Label6
IL_011B: ldloc.1
IL_011C: ldsfld
System.Collections.Generic.List`1<Verse.BackCompatibilityConverter>
Verse.BackCompatibility::conversionChain
IL_0121: callvirt virtual System.Int32
System.Collections.Generic.List`1<Verse.BackCompatibilityConverter>::get_Count()
IL_0126: blt => Label12
IL_012B: ldloc.0
IL_012C: // end original
IL_012C: Label13
IL_012C: Label14
IL_012C: stloc 4 (System.String)
IL_0130: Label0
IL_0130: ldarg 0
IL_0134: ldarg 1
IL_0138: ldloca 4 (System.String)
IL_013C: call static System.Void
ResourceDictionary.BackCompatibility_BackCompatibleDefName::Postfix(System.Type
defType, System.String defName, System.String& __result)
IL_0141: ldloc 4 (System.String)
IL_0145: ret
DONE

### Patch: System.Void RimWorld.DrugPolicyDatabase::GenerateStartingDrugPolicies()


### Replacement: static System.Void
RimWorld.DrugPolicyDatabase::RimWorld.DrugPolicyDatabase.GenerateStartingDrugPolici
es_Patch1(RimWorld.DrugPolicyDatabase this)
IL_0000: Local var 0:
System.Collections.Generic.IEnumerator`1<RimWorld.DrugPolicyDef>
IL_0000: Local var 1: RimWorld.DrugPolicyDef
IL_0000: // start original
IL_0000: call static
System.Collections.Generic.IEnumerable`1<RimWorld.DrugPolicyDef>
Verse.DefDatabase`1<RimWorld.DrugPolicyDef>::get_AllDefs()
IL_0005: callvirt abstract virtual
System.Collections.Generic.IEnumerator`1<RimWorld.DrugPolicyDef>
System.Collections.Generic.IEnumerable`1<RimWorld.DrugPolicyDef>::GetEnumerator()
IL_000A: stloc.0
.try
{
IL_000B: br => Label0
IL_0010: Label1
IL_0010: ldloc.0
IL_0011: callvirt abstract virtual RimWorld.DrugPolicyDef
System.Collections.Generic.IEnumerator`1<RimWorld.DrugPolicyDef>::get_Current()
IL_0016: stloc.1
IL_0017: ldarg.0
IL_0018: ldloc.1
IL_0019: call RimWorld.DrugPolicy
RimWorld.DrugPolicyDatabase::NewDrugPolicyFromDef(RimWorld.DrugPolicyDef def)
IL_001E: pop
IL_001F: Label0
IL_001F: ldloc.0
IL_0020: callvirt abstract virtual System.Boolean
System.Collections.IEnumerator::MoveNext()
IL_0025: brtrue => Label1
IL_002A: leave => Label2
IL_002F: leave => (autogenerated)
} // end try
.finally
{
IL_0034: ldloc.0
IL_0035: brfalse => Label3
IL_003A: ldloc.0
IL_003B: callvirt abstract virtual System.Void
System.IDisposable::Dispose()
IL_0040: Label3
IL_0040: endfinally
IL_0041: leave => (autogenerated)
} // end handler
IL_0042: // end original
IL_0042: Label2
IL_0042: ldarg.0
IL_0043: ldflda System.Collections.Generic.List`1<RimWorld.DrugPolicy>
RimWorld.DrugPolicyDatabase::policies
IL_0048: call static System.Void
VFEMedieval.GenerateStartingDrugPolicies::Postfix(System.Collections.Generic.List`1
& ___policies)
IL_004D: ret
DONE

### Patch: System.Boolean


RimWorld.Planet.WITab_Caravan_Gear::IsVisibleWeapon(Verse.ThingDef t)
### Replacement: static System.Boolean
RimWorld.Planet.WITab_Caravan_Gear::RimWorld.Planet.WITab_Caravan_Gear.IsVisibleWea
pon_Patch1(RimWorld.Planet.WITab_Caravan_Gear this, Verse.ThingDef t)
IL_0000: Local var 0: System.Boolean
IL_0000: ldc.i4 0
IL_0005: stloc 0 (System.Boolean)
IL_0009: // start original
IL_0009: ldarg.1
IL_000A: callvirt System.Boolean Verse.ThingDef::get_IsWeapon()
IL_000F: brfalse => Label0
IL_0014: ldarg.1
IL_0015: ldsfld Verse.ThingDef RimWorld.ThingDefOf::WoodLog
IL_001A: beq => Label1
IL_001F: ldarg.1
IL_0020: ldsfld Verse.ThingDef RimWorld.ThingDefOf::Beer
IL_0025: ceq
IL_0027: ldc.i4.0
IL_0028: ceq
IL_002A: br => Label2
IL_002F: Label0
IL_002F: Label1
IL_002F: ldc.i4.0
IL_0030: // end original
IL_0030: Label2
IL_0030: stloc 0 (System.Boolean)
IL_0034: ldarg 1
IL_0038: ldloca 0 (System.Boolean)
IL_003C: call static System.Void
VFEMedieval.IsVisibleWeapon::Postfix(Verse.ThingDef t, System.Boolean& __result)
IL_0041: ldloc 0 (System.Boolean)
IL_0045: ret
DONE

### Patch: static Verse.Pawn


Verse.PawnGenerator::GeneratePawn(Verse.PawnGenerationRequest request)
### Replacement: static Verse.Pawn
Verse.PawnGenerator::Verse.PawnGenerator.GeneratePawn_Patch4(Verse.PawnGenerationRe
quest request)
IL_0000: Local var 0: Verse.Pawn
IL_0000: Local var 1: System.Boolean
IL_0000: Local var 2: System.Boolean
IL_0000: Local var 3: System.Nullable`1<Verse.DamageInfo>
IL_0000: Local var 4: System.Boolean
IL_0000: Local var 5: Verse.Pawn
IL_0000: Local var 6: System.Exception
IL_0000: Local var 7: Verse.Pawn
IL_0000: Local var 8: System.Boolean
IL_0000: ldnull
IL_0001: stloc 7 (Verse.Pawn)
IL_0005: ldc.i4 0
IL_000A: stloc 8 (System.Boolean)
IL_000E: ldc.i4.1
IL_000F: stloc 8 (System.Boolean)
IL_0013: ldloc 8 (System.Boolean)
IL_0017: brfalse => Label1
IL_001C: ldarga 0
IL_0020: call static System.Boolean
ATReforged.GeneratePawn_Prefix::Prefix(Verse.PawnGenerationRequest& request)
IL_0025: stloc 8 (System.Boolean)
IL_0029: Label1
IL_0029: nop
IL_002A: ldloc 8 (System.Boolean)
IL_002E: brfalse => Label2
IL_0033: ldarga 0
IL_0037: call static System.Void
AlienRace.HarmonyPatches::GeneratePawnPrefix(Verse.PawnGenerationRequest& request)
IL_003C: Label2
IL_003C: nop
IL_003D: ldloc 8 (System.Boolean)
IL_0041: brfalse => Label0
IL_0046: // start original
IL_0046: ldarga.s 0
IL_0048: call System.Void Verse.PawnGenerationRequest::ValidateAndFix()
.try
{
.try
{
IL_004D: ldarg.0
IL_004E: call static Verse.Pawn
Verse.PawnGenerator::GenerateOrRedressPawnInternal(Verse.PawnGenerationRequest
request)
IL_0053: stloc.0
IL_0054: ldloc.0
IL_0055: brfalse => Label3
IL_005A: ldarga.s 0
IL_005C: call System.Boolean
Verse.PawnGenerationRequest::get_AllowDead()
IL_0061: brtrue => Label4
IL_0066: ldarga.s 0
IL_0068: call System.Boolean
Verse.PawnGenerationRequest::get_ForceDead()
IL_006D: brtrue => Label5
IL_0072: ldloc.0
IL_0073: ldfld Verse.Pawn_HealthTracker Verse.Pawn::health
IL_0078: ldfld Verse.HediffSet Verse.Pawn_HealthTracker::hediffSet
IL_007D: ldfld System.Collections.Generic.List`1<Verse.Hediff>
Verse.HediffSet::hediffs
IL_0082: call static System.Boolean
Verse.GenCollection::Any(System.Collections.Generic.List`1<Verse.Hediff> list)
IL_0087: brfalse => Label6
IL_008C: ldloc.0
IL_008D: callvirt System.Boolean Verse.Pawn::get_Dead()
IL_0092: stloc.1
IL_0093: ldloc.0
IL_0094: callvirt System.Boolean Verse.Pawn::get_Downed()
IL_0099: stloc.2
IL_009A: ldloc.0
IL_009B: ldfld Verse.Pawn_HealthTracker Verse.Pawn::health
IL_00A0: ldfld Verse.HediffSet Verse.Pawn_HealthTracker::hediffSet
IL_00A5: callvirt System.Void Verse.HediffSet::DirtyCache()
IL_00AA: ldloc.0
IL_00AB: ldfld Verse.Pawn_HealthTracker Verse.Pawn::health
IL_00B0: ldloca.s 3 (System.Nullable`1[Verse.DamageInfo])
IL_00B2: initobj System.Nullable`1[Verse.DamageInfo]
IL_00B8: ldloc.3
IL_00B9: ldnull
IL_00BA: callvirt System.Void
Verse.Pawn_HealthTracker::CheckForStateChange(System.Nullable`1<Verse.DamageInfo>
dinfo, Verse.Hediff hediff)
IL_00BF: ldloc.0
IL_00C0: callvirt System.Boolean Verse.Pawn::get_Dead()
IL_00C5: brfalse => Label7
IL_00CA: ldc.i4.s 10
IL_00CC: newarr System.Object
IL_00D1: dup
IL_00D2: ldc.i4.0
IL_00D3: ldstr "Pawn was generated dead but the pawn generation
request specified the pawn must be alive. This shouldn\'t ever happen even if we
ran out of tries because null pawn should have been returned instead in this case.
Resetting health...\npawn.Dead="
IL_00D8: stelem.ref
IL_00D9: dup
IL_00DA: ldc.i4.1
IL_00DB: ldloc.0
IL_00DC: callvirt System.Boolean Verse.Pawn::get_Dead()
IL_00E1: stloc.s 4 (System.Boolean)
IL_00E3: ldloca.s 4 (System.Boolean)
IL_00E5: call virtual System.String System.Boolean::ToString()
IL_00EA: stelem.ref
IL_00EB: dup
IL_00EC: ldc.i4.2
IL_00ED: ldstr " pawn.Downed="
IL_00F2: stelem.ref
IL_00F3: dup
IL_00F4: ldc.i4.3
IL_00F5: ldloc.0
IL_00F6: callvirt System.Boolean Verse.Pawn::get_Downed()
IL_00FB: stloc.s 4 (System.Boolean)
IL_00FD: ldloca.s 4 (System.Boolean)
IL_00FF: call virtual System.String System.Boolean::ToString()
IL_0104: stelem.ref
IL_0105: dup
IL_0106: ldc.i4.4
IL_0107: ldstr " deadBefore="
IL_010C: stelem.ref
IL_010D: dup
IL_010E: ldc.i4.5
IL_010F: ldloca.s 1 (System.Boolean)
IL_0111: call virtual System.String System.Boolean::ToString()
IL_0116: stelem.ref
IL_0117: dup
IL_0118: ldc.i4.6
IL_0119: ldstr " downedBefore="
IL_011E: stelem.ref
IL_011F: dup
IL_0120: ldc.i4.7
IL_0121: ldloca.s 2 (System.Boolean)
IL_0123: call virtual System.String System.Boolean::ToString()
IL_0128: stelem.ref
IL_0129: dup
IL_012A: ldc.i4.8
IL_012B: ldstr "\nrequest="
IL_0130: stelem.ref
IL_0131: dup
IL_0132: ldc.i4.s 9
IL_0134: ldarg.0
IL_0135: box Verse.PawnGenerationRequest
IL_013A: stelem.ref
IL_013B: call static System.String
System.String::Concat(System.Object[] args)
IL_0140: call static System.Void Verse.Log::Error(System.String
text)
IL_0145: ldloc.0
IL_0146: ldfld Verse.Pawn_HealthTracker Verse.Pawn::health
IL_014B: callvirt System.Void Verse.Pawn_HealthTracker::Reset()
IL_0150: Label3
IL_0150: Label4
IL_0150: Label5
IL_0150: Label6
IL_0150: Label7
IL_0150: ldloc.0
IL_0151: ldfld RimWorld.Pawn_GuestTracker Verse.Pawn::guest
IL_0156: brfalse => Label8
IL_015B: ldarga.s 0
IL_015D: call System.Boolean
Verse.PawnGenerationRequest::get_ForceRecruitable()
IL_0162: brfalse => Label9
IL_0167: ldloc.0
IL_0168: ldfld RimWorld.Pawn_GuestTracker Verse.Pawn::guest
IL_016D: ldc.i4.1
IL_016E: callvirt System.Void
RimWorld.Pawn_GuestTracker::set_Recruitable(System.Boolean value)
IL_0173: br => Label10
IL_0178: Label9
IL_0178: ldloc.0
IL_0179: ldfld RimWorld.Pawn_GuestTracker Verse.Pawn::guest
IL_017E: callvirt System.Void
RimWorld.Pawn_GuestTracker::SetupRecruitable()
IL_0183: Label8
IL_0183: Label10
IL_0183: ldloc.0
IL_0184: callvirt virtual RimWorld.Faction Verse.Thing::get_Faction()
IL_0189: call static RimWorld.Faction
RimWorld.Faction::get_OfPlayerSilentFail()
IL_018E: bne.un => Label11
IL_0193: ldloc.0
IL_0194: call static System.Boolean
RimWorld.QuestUtility::IsQuestLodger(Verse.Pawn p)
IL_0199: brtrue => Label12
IL_019E: call static RimWorld.StoryWatcher
Verse.Find::get_StoryWatcher()
IL_01A3: ldfld RimWorld.StoryWatcher_PopAdaptation
RimWorld.StoryWatcher::watcherPopAdaptation
IL_01A8: ldloc.0
IL_01A9: ldc.i4.0
IL_01AA: callvirt System.Void
RimWorld.StoryWatcher_PopAdaptation::Notify_PawnEvent(Verse.Pawn p,
RimWorld.PopAdaptationEvent ev)
IL_01AF: Label11
IL_01AF: Label12
IL_01AF: ldloc.0
IL_01B0: stloc.s 5 (Verse.Pawn)
IL_01B2: leave => Label13
IL_01B7: leave => (autogenerated)
} // end try
.catch System.Exception
{
IL_01BC: stloc.s 6 (System.Exception)
IL_01BE: ldstr "Error while generating pawn. Rethrowing.
Exception: "
IL_01C3: ldloc.s 6 (System.Exception)
IL_01C5: call static System.String
System.String::Concat(System.Object arg0, System.Object arg1)
IL_01CA: call static System.Void Verse.Log::Error(System.String
text)
IL_01CF: rethrow
IL_01D1: leave => (autogenerated)
} // end handler
IL_01D6: leave => (autogenerated)
} // end try
.finally
{
IL_01DB: endfinally
IL_01DC: leave => (autogenerated)
} // end handler
IL_01DD: Label13
IL_01DD: ldloc.s 5 (Verse.Pawn)
IL_01DF: // end original
IL_01DF: stloc 7 (Verse.Pawn)
IL_01E3: Label0
IL_01E3: ldloca 7 (Verse.Pawn)
IL_01E7: call static System.Void
ATReforged.GeneratePawn_Patch::Listener(Verse.Pawn& __result)
IL_01EC: ldloc 7 (Verse.Pawn)
IL_01F0: call static System.Void
VFEPirates.PawnGenerator_GeneratePawn_Patch::Postfix(Verse.Pawn __result)
IL_01F5: ldloc 7 (Verse.Pawn)
IL_01F9: ret
DONE

### Harmony id=VFEV.OskarPotocki, version=2.2.2.0, location=C:\Program Files (x86)\


Steam\steamapps\common\data-000002130553D010, env/clr=4.0.30319.42000,
platform=Win32NT, ptrsize:runtime/env=8/Bits64, Windows
### Started from static System.Void VFEV.HarmonyInit::.cctor(), location C:\Program
Files (x86)\Steam\steamapps\common\data-0000021309DBA5E0
### At 2023-02-17 06.57.44
### Patch: System.Single Verse.Tool::AdjustedCooldown(Verse.Thing ownerEquipment)
### Replacement: static System.Single
Verse.Tool::Verse.Tool.AdjustedCooldown_Patch2(Verse.Tool this, Verse.Thing
ownerEquipment)
IL_0000: Local var 0: System.Single
IL_0000: ldc.r4 0
IL_0005: stloc 0 (System.Single)
IL_0009: // start original
IL_0009: ldarg.0
IL_000A: ldfld System.Single Verse.Tool::cooldownTime
IL_000F: ldarg.1
IL_0010: brfalse => Label0
IL_0015: ldarg.1
IL_0016: ldsfld RimWorld.StatDef
RimWorld.StatDefOf::MeleeWeapon_CooldownMultiplier
IL_001B: ldc.i4.1
IL_001C: ldc.i4.m1
IL_001D: call static System.Single
RimWorld.StatExtension::GetStatValue(Verse.Thing thing, RimWorld.StatDef stat,
System.Boolean applyPostProcess, System.Int32 cacheStaleAfterTicks)
IL_0022: br => Label1
IL_0027: Label0
IL_0027: ldc.r4 1
IL_002C: Label1
IL_002C: mul
IL_002D: // end original
IL_002D: stloc 0 (System.Single)
IL_0031: ldarg 1
IL_0035: ldloca 0 (System.Single)
IL_0039: call static System.Void
VFECore.Tool_AdjustedCooldown_Patch::Postfix(Verse.Thing ownerEquipment,
System.Single& __result)
IL_003E: ldarg 1
IL_0042: ldloca 0 (System.Single)
IL_0046: call static System.Void
VFEV.AdjustedCooldown_Patch::Postfix(Verse.Thing ownerEquipment, System.Single&
__result)
IL_004B: ldloc 0 (System.Single)
IL_004F: ret
DONE

### Patch: static System.Void RimWorld.Toils_LayDown::ApplyBedThoughts(Verse.Pawn


actor, RimWorld.Building_Bed bed)
### Replacement: static System.Void
RimWorld.Toils_LayDown::RimWorld.Toils_LayDown.ApplyBedThoughts_Patch1(Verse.Pawn
actor, RimWorld.Building_Bed bed)
IL_0000: Local var 0: System.Single
IL_0000: Local var 1: System.Single
IL_0000: Local var 2: System.Single
IL_0000: Local var 3: System.Collections.Generic.List`1/Enumerator<Verse.Gene>
IL_0000: Local var 4: Verse.Gene
IL_0000: Local var 5: RimWorld.ThoughtDef
IL_0000: Local var 6: System.Int32
IL_0000: // start original
IL_0000: ldarg.0
IL_0001: ldfld RimWorld.Pawn_NeedsTracker Verse.Pawn::needs
IL_0006: ldfld RimWorld.Need_Mood RimWorld.Pawn_NeedsTracker::mood
IL_000B: brtrue => Label0
IL_0010: br => Label22
IL_0015: Label0
IL_0015: ldarg.0
IL_0016: ldfld RimWorld.Pawn_NeedsTracker Verse.Pawn::needs
IL_001B: ldfld RimWorld.Need_Mood RimWorld.Pawn_NeedsTracker::mood
IL_0020: ldfld RimWorld.ThoughtHandler RimWorld.Need_Mood::thoughts
IL_0025: ldfld RimWorld.MemoryThoughtHandler RimWorld.ThoughtHandler::memories
IL_002A: ldsfld RimWorld.ThoughtDef RimWorld.ThoughtDefOf::SleptInBedroom
IL_002F: callvirt System.Void
RimWorld.MemoryThoughtHandler::RemoveMemoriesOfDef(RimWorld.ThoughtDef def)
IL_0034: ldarg.0
IL_0035: ldfld RimWorld.Pawn_NeedsTracker Verse.Pawn::needs
IL_003A: ldfld RimWorld.Need_Mood RimWorld.Pawn_NeedsTracker::mood
IL_003F: ldfld RimWorld.ThoughtHandler RimWorld.Need_Mood::thoughts
IL_0044: ldfld RimWorld.MemoryThoughtHandler RimWorld.ThoughtHandler::memories
IL_0049: ldsfld RimWorld.ThoughtDef RimWorld.ThoughtDefOf::SleptInBarracks
IL_004E: callvirt System.Void
RimWorld.MemoryThoughtHandler::RemoveMemoriesOfDef(RimWorld.ThoughtDef def)
IL_0053: ldarg.0
IL_0054: ldfld RimWorld.Pawn_NeedsTracker Verse.Pawn::needs
IL_0059: ldfld RimWorld.Need_Mood RimWorld.Pawn_NeedsTracker::mood
IL_005E: ldfld RimWorld.ThoughtHandler RimWorld.Need_Mood::thoughts
IL_0063: ldfld RimWorld.MemoryThoughtHandler RimWorld.ThoughtHandler::memories
IL_0068: ldsfld RimWorld.ThoughtDef RimWorld.ThoughtDefOf::SleptOutside
IL_006D: callvirt System.Void
RimWorld.MemoryThoughtHandler::RemoveMemoriesOfDef(RimWorld.ThoughtDef def)
IL_0072: ldarg.0
IL_0073: ldfld RimWorld.Pawn_NeedsTracker Verse.Pawn::needs
IL_0078: ldfld RimWorld.Need_Mood RimWorld.Pawn_NeedsTracker::mood
IL_007D: ldfld RimWorld.ThoughtHandler RimWorld.Need_Mood::thoughts
IL_0082: ldfld RimWorld.MemoryThoughtHandler RimWorld.ThoughtHandler::memories
IL_0087: ldsfld RimWorld.ThoughtDef RimWorld.ThoughtDefOf::SleptOnGround
IL_008C: callvirt System.Void
RimWorld.MemoryThoughtHandler::RemoveMemoriesOfDef(RimWorld.ThoughtDef def)
IL_0091: ldarg.0
IL_0092: ldfld RimWorld.Pawn_NeedsTracker Verse.Pawn::needs
IL_0097: ldfld RimWorld.Need_Mood RimWorld.Pawn_NeedsTracker::mood
IL_009C: ldfld RimWorld.ThoughtHandler RimWorld.Need_Mood::thoughts
IL_00A1: ldfld RimWorld.MemoryThoughtHandler RimWorld.ThoughtHandler::memories
IL_00A6: ldsfld RimWorld.ThoughtDef RimWorld.ThoughtDefOf::SleptInCold
IL_00AB: callvirt System.Void
RimWorld.MemoryThoughtHandler::RemoveMemoriesOfDef(RimWorld.ThoughtDef def)
IL_00B0: ldarg.0
IL_00B1: ldfld RimWorld.Pawn_NeedsTracker Verse.Pawn::needs
IL_00B6: ldfld RimWorld.Need_Mood RimWorld.Pawn_NeedsTracker::mood
IL_00BB: ldfld RimWorld.ThoughtHandler RimWorld.Need_Mood::thoughts
IL_00C0: ldfld RimWorld.MemoryThoughtHandler RimWorld.ThoughtHandler::memories
IL_00C5: ldsfld RimWorld.ThoughtDef RimWorld.ThoughtDefOf::SleptInHeat
IL_00CA: callvirt System.Void
RimWorld.MemoryThoughtHandler::RemoveMemoriesOfDef(RimWorld.ThoughtDef def)
IL_00CF: ldarg.0
IL_00D0: callvirt System.Single Verse.Thing::get_AmbientTemperature()
IL_00D5: stloc.0
IL_00D6: ldarg.0
IL_00D7: ldfld Verse.ThingDef Verse.Thing::def
IL_00DC: ldsfld RimWorld.StatDef RimWorld.StatDefOf::ComfyTemperatureMin
IL_00E1: ldnull
IL_00E2: call static System.Single
RimWorld.StatExtension::GetStatValueAbstract(Verse.BuildableDef def,
RimWorld.StatDef stat, Verse.ThingDef stuff)
IL_00E7: stloc.1
IL_00E8: ldarg.0
IL_00E9: ldfld Verse.ThingDef Verse.Thing::def
IL_00EE: ldsfld RimWorld.StatDef RimWorld.StatDefOf::ComfyTemperatureMax
IL_00F3: ldnull
IL_00F4: call static System.Single
RimWorld.StatExtension::GetStatValueAbstract(Verse.BuildableDef def,
RimWorld.StatDef stat, Verse.ThingDef stuff)
IL_00F9: stloc.2
IL_00FA: call static System.Boolean Verse.ModsConfig::get_BiotechActive()
IL_00FF: brfalse => Label1
IL_0104: ldarg.0
IL_0105: ldfld RimWorld.Pawn_GeneTracker Verse.Pawn::genes
IL_010A: brfalse => Label2
IL_010F: ldarg.0
IL_0110: ldfld RimWorld.Pawn_GeneTracker Verse.Pawn::genes
IL_0115: callvirt System.Collections.Generic.List`1<Verse.Gene>
RimWorld.Pawn_GeneTracker::get_GenesListForReading()
IL_011A: callvirt System.Collections.Generic.Enumerator<Verse.Gene>
System.Collections.Generic.List`1<Verse.Gene>::GetEnumerator()
IL_011F: stloc.3
.try
{
IL_0120: br => Label3
IL_0125: Label5
IL_0125: ldloca.s 3
(System.Collections.Generic.List`1+Enumerator[Verse.Gene])
IL_0127: call virtual Verse.Gene
System.Collections.Generic.Enumerator<Verse.Gene>::get_Current()
IL_012C: stloc.s 4 (Verse.Gene)
IL_012E: ldloc.s 4 (Verse.Gene)
IL_0130: callvirt virtual System.Boolean Verse.Gene::get_Active()
IL_0135: brfalse => Label4
IL_013A: ldloc.1
IL_013B: ldloc.s 4 (Verse.Gene)
IL_013D: ldfld Verse.GeneDef Verse.Gene::def
IL_0142: ldfld System.Collections.Generic.List`1<RimWorld.StatModifier>
Verse.GeneDef::statOffsets
IL_0147: ldsfld RimWorld.StatDef RimWorld.StatDefOf::ComfyTemperatureMin
IL_014C: call static System.Single
RimWorld.StatUtility::GetStatOffsetFromList(System.Collections.Generic.List`1<RimWo
rld.StatModifier> modList, RimWorld.StatDef stat)
IL_0151: add
IL_0152: stloc.1
IL_0153: ldloc.2
IL_0154: ldloc.s 4 (Verse.Gene)
IL_0156: ldfld Verse.GeneDef Verse.Gene::def
IL_015B: ldfld System.Collections.Generic.List`1<RimWorld.StatModifier>
Verse.GeneDef::statOffsets
IL_0160: ldsfld RimWorld.StatDef RimWorld.StatDefOf::ComfyTemperatureMax
IL_0165: call static System.Single
RimWorld.StatUtility::GetStatOffsetFromList(System.Collections.Generic.List`1<RimWo
rld.StatModifier> modList, RimWorld.StatDef stat)
IL_016A: add
IL_016B: stloc.2
IL_016C: Label3
IL_016C: Label4
IL_016C: ldloca.s 3
(System.Collections.Generic.List`1+Enumerator[Verse.Gene])
IL_016E: call virtual System.Boolean
System.Collections.Generic.Enumerator<Verse.Gene>::MoveNext()
IL_0173: brtrue => Label5
IL_0178: leave => Label6
IL_017D: leave => (autogenerated)
} // end try
.finally
{
IL_0182: ldloca.s 3
(System.Collections.Generic.List`1+Enumerator[Verse.Gene])
IL_0184: constrained.
System.Collections.Generic.List`1+Enumerator[Verse.Gene]
IL_018A: callvirt abstract virtual System.Void
System.IDisposable::Dispose()
IL_018F: endfinally
IL_0190: leave => (autogenerated)
} // end handler
IL_0191: Label1
IL_0191: Label2
IL_0191: Label6
IL_0191: ldloc.0
IL_0192: ldloc.1
IL_0193: bge.un => Label7
IL_0198: ldarg.0
IL_0199: ldfld RimWorld.Pawn_NeedsTracker Verse.Pawn::needs
IL_019E: ldfld RimWorld.Need_Mood RimWorld.Pawn_NeedsTracker::mood
IL_01A3: ldfld RimWorld.ThoughtHandler RimWorld.Need_Mood::thoughts
IL_01A8: ldfld RimWorld.MemoryThoughtHandler RimWorld.ThoughtHandler::memories
IL_01AD: ldsfld RimWorld.ThoughtDef RimWorld.ThoughtDefOf::SleptInCold
IL_01B2: ldnull
IL_01B3: ldnull
IL_01B4: callvirt System.Void
RimWorld.MemoryThoughtHandler::TryGainMemory(RimWorld.ThoughtDef def, Verse.Pawn
otherPawn, RimWorld.Precept sourcePrecept)
IL_01B9: Label7
IL_01B9: ldloc.0
IL_01BA: ldloc.2
IL_01BB: ble.un => Label8
IL_01C0: ldarg.0
IL_01C1: ldfld RimWorld.Pawn_NeedsTracker Verse.Pawn::needs
IL_01C6: ldfld RimWorld.Need_Mood RimWorld.Pawn_NeedsTracker::mood
IL_01CB: ldfld RimWorld.ThoughtHandler RimWorld.Need_Mood::thoughts
IL_01D0: ldfld RimWorld.MemoryThoughtHandler RimWorld.ThoughtHandler::memories
IL_01D5: ldsfld RimWorld.ThoughtDef RimWorld.ThoughtDefOf::SleptInHeat
IL_01DA: ldnull
IL_01DB: ldnull
IL_01DC: callvirt System.Void
RimWorld.MemoryThoughtHandler::TryGainMemory(RimWorld.ThoughtDef def, Verse.Pawn
otherPawn, RimWorld.Precept sourcePrecept)
IL_01E1: Label8
IL_01E1: ldarg.0
IL_01E2: call static System.Boolean
Verse.WildManUtility::IsWildMan(Verse.Pawn p)
IL_01E7: brtrue => Label9
IL_01EC: ldarg.0
IL_01ED: ldc.i4.s 15
IL_01EF: call static Verse.Room Verse.RegionAndRoomQuery::GetRoom(Verse.Thing
thing, Verse.RegionType allowedRegionTypes)
IL_01F4: callvirt System.Boolean Verse.Room::get_PsychologicallyOutdoors()
IL_01F9: brfalse => Label10
IL_01FE: ldarg.0
IL_01FF: ldfld RimWorld.Pawn_NeedsTracker Verse.Pawn::needs
IL_0204: ldfld RimWorld.Need_Mood RimWorld.Pawn_NeedsTracker::mood
IL_0209: ldfld RimWorld.ThoughtHandler RimWorld.Need_Mood::thoughts
IL_020E: ldfld RimWorld.MemoryThoughtHandler RimWorld.ThoughtHandler::memories
IL_0213: ldsfld RimWorld.ThoughtDef RimWorld.ThoughtDefOf::SleptOutside
IL_0218: ldnull
IL_0219: ldnull
IL_021A: callvirt System.Void
RimWorld.MemoryThoughtHandler::TryGainMemory(RimWorld.ThoughtDef def, Verse.Pawn
otherPawn, RimWorld.Precept sourcePrecept)
IL_021F: Label10
IL_021F: ldarg.1
IL_0220: brfalse => Label11
IL_0225: ldarg.1
IL_0226: call static
System.Collections.Generic.List`1<Verse.ThingDefCountClass>
RimWorld.CostListCalculator::CostListAdjusted(Verse.Thing thing)
IL_022B: callvirt virtual System.Int32
System.Collections.Generic.List`1<Verse.ThingDefCountClass>::get_Count()
IL_0230: brtrue => Label12
IL_0235: Label11
IL_0235: ldarg.0
IL_0236: ldfld RimWorld.Pawn_NeedsTracker Verse.Pawn::needs
IL_023B: ldfld RimWorld.Need_Mood RimWorld.Pawn_NeedsTracker::mood
IL_0240: ldfld RimWorld.ThoughtHandler RimWorld.Need_Mood::thoughts
IL_0245: ldfld RimWorld.MemoryThoughtHandler RimWorld.ThoughtHandler::memories
IL_024A: ldsfld RimWorld.ThoughtDef RimWorld.ThoughtDefOf::SleptOnGround
IL_024F: ldnull
IL_0250: ldnull
IL_0251: callvirt System.Void
RimWorld.MemoryThoughtHandler::TryGainMemory(RimWorld.ThoughtDef def, Verse.Pawn
otherPawn, RimWorld.Precept sourcePrecept)
IL_0256: Label9
IL_0256: Label12
IL_0256: ldarg.1
IL_0257: brfalse => Label13
IL_025C: ldarg.1
IL_025D: ldarg.0
IL_025E: ldfld RimWorld.Pawn_Ownership Verse.Pawn::ownership
IL_0263: callvirt RimWorld.Building_Bed RimWorld.Pawn_Ownership::get_OwnedBed()
IL_0268: bne.un => Label14
IL_026D: ldarg.1
IL_026E: callvirt System.Boolean RimWorld.Building_Bed::get_ForPrisoners()
IL_0273: brtrue => Label15
IL_0278: ldarg.0
IL_0279: ldfld RimWorld.Pawn_StoryTracker Verse.Pawn::story
IL_027E: ldfld RimWorld.TraitSet RimWorld.Pawn_StoryTracker::traits
IL_0283: ldsfld RimWorld.TraitDef RimWorld.TraitDefOf::Ascetic
IL_0288: callvirt System.Boolean RimWorld.TraitSet::HasTrait(RimWorld.TraitDef
tDef)
IL_028D: brtrue => Label16
IL_0292: ldnull
IL_0293: stloc.s 5 (RimWorld.ThoughtDef)
IL_0295: ldarg.1
IL_0296: ldc.i4.s 15
IL_0298: call static Verse.Room Verse.RegionAndRoomQuery::GetRoom(Verse.Thing
thing, Verse.RegionType allowedRegionTypes)
IL_029D: callvirt Verse.RoomRoleDef Verse.Room::get_Role()
IL_02A2: ldsfld Verse.RoomRoleDef RimWorld.RoomRoleDefOf::Bedroom
IL_02A7: bne.un => Label17
IL_02AC: ldsfld RimWorld.ThoughtDef RimWorld.ThoughtDefOf::SleptInBedroom
IL_02B1: stloc.s 5 (RimWorld.ThoughtDef)
IL_02B3: br => Label18
IL_02B8: Label17
IL_02B8: ldarg.1
IL_02B9: ldc.i4.s 15
IL_02BB: call static Verse.Room Verse.RegionAndRoomQuery::GetRoom(Verse.Thing
thing, Verse.RegionType allowedRegionTypes)
IL_02C0: callvirt Verse.RoomRoleDef Verse.Room::get_Role()
IL_02C5: ldsfld Verse.RoomRoleDef RimWorld.RoomRoleDefOf::Barracks
IL_02CA: bne.un => Label19
IL_02CF: ldsfld RimWorld.ThoughtDef RimWorld.ThoughtDefOf::SleptInBarracks
IL_02D4: stloc.s 5 (RimWorld.ThoughtDef)
IL_02D6: Label18
IL_02D6: Label19
IL_02D6: ldloc.s 5 (RimWorld.ThoughtDef)
IL_02D8: brfalse => Label20
IL_02DD: ldsfld Verse.RoomStatDef RimWorld.RoomStatDefOf::Impressiveness
IL_02E2: ldarg.1
IL_02E3: ldc.i4.s 15
IL_02E5: call static Verse.Room Verse.RegionAndRoomQuery::GetRoom(Verse.Thing
thing, Verse.RegionType allowedRegionTypes)
IL_02EA: ldsfld Verse.RoomStatDef RimWorld.RoomStatDefOf::Impressiveness
IL_02EF: callvirt System.Single Verse.Room::GetStat(Verse.RoomStatDef roomStat)
IL_02F4: callvirt System.Int32
Verse.RoomStatDef::GetScoreStageIndex(System.Single score)
IL_02F9: stloc.s 6 (System.Int32)
IL_02FB: ldloc.s 5 (RimWorld.ThoughtDef)
IL_02FD: ldfld System.Collections.Generic.List`1<RimWorld.ThoughtStage>
RimWorld.ThoughtDef::stages
IL_0302: ldloc.s 6 (System.Int32)
IL_0304: callvirt virtual RimWorld.ThoughtStage
System.Collections.Generic.List`1<RimWorld.ThoughtStage>::get_Item(System.Int32
index)
IL_0309: brfalse => Label21
IL_030E: ldarg.0
IL_030F: ldfld RimWorld.Pawn_NeedsTracker Verse.Pawn::needs
IL_0314: ldfld RimWorld.Need_Mood RimWorld.Pawn_NeedsTracker::mood
IL_0319: ldfld RimWorld.ThoughtHandler RimWorld.Need_Mood::thoughts
IL_031E: ldfld RimWorld.MemoryThoughtHandler RimWorld.ThoughtHandler::memories
IL_0323: ldloc.s 5 (RimWorld.ThoughtDef)
IL_0325: ldloc.s 6 (System.Int32)
IL_0327: call static RimWorld.Thought_Memory
RimWorld.ThoughtMaker::MakeThought(RimWorld.ThoughtDef def, System.Int32
forcedStage)
IL_032C: ldnull
IL_032D: callvirt System.Void
RimWorld.MemoryThoughtHandler::TryGainMemory(RimWorld.Thought_Memory newThought,
Verse.Pawn otherPawn)
IL_0332: Label13
IL_0332: Label14
IL_0332: Label15
IL_0332: Label16
IL_0332: Label20
IL_0332: Label21
IL_0332: ldarg.0
IL_0333: callvirt System.Void Verse.Pawn::Notify_AddBedThoughts()
IL_0338: // end original
IL_0338: Label22
IL_0338: ldarg 0
IL_033C: call static System.Void VFEV.PatchToils_LayDown::PostFix(Verse.Pawn
actor)
IL_0341: ret
DONE

### Patch: System.Boolean Verse.RaceProperties::get_IsMechanoid()


### Replacement: static System.Boolean
Verse.RaceProperties::Verse.RaceProperties.get_IsMechanoid_Patch1(Verse.RacePropert
ies this)
IL_0000: Local var 0: System.Boolean
IL_0000: ldc.i4 0
IL_0005: stloc 0 (System.Boolean)
IL_0009: // start original
IL_0009: ldarg.0
IL_000A: call RimWorld.FleshTypeDef Verse.RaceProperties::get_FleshType()
IL_000F: ldsfld RimWorld.FleshTypeDef RimWorld.FleshTypeDefOf::Mechanoid
IL_0014: ceq
IL_0016: // end original
IL_0016: stloc 0 (System.Boolean)
IL_001A: ldarga 0
IL_001E: ldloca 0 (System.Boolean)
IL_0022: call static System.Void
VFEV.PatchIsMechanoid::PostFix(Verse.RaceProperties& __instance, System.Boolean&
__result)
IL_0027: ldloc 0 (System.Boolean)
IL_002B: ret
DONE

### Patch: System.Boolean Verse.ThingDef::get_IsShell()


### Replacement: static System.Boolean
Verse.ThingDef::Verse.ThingDef.get_IsShell_Patch1(Verse.ThingDef this)
IL_0000: Local var 0: System.Boolean
IL_0000: ldc.i4 0
IL_0005: stloc 0 (System.Boolean)
IL_0009: // start original
IL_0009: ldarg.0
IL_000A: ldfld Verse.ThingDef Verse.ThingDef::projectileWhenLoaded
IL_000F: ldnull
IL_0010: cgt.un
IL_0012: // end original
IL_0012: stloc 0 (System.Boolean)
IL_0016: ldloca 0 (System.Boolean)
IL_001A: ldarg.0
IL_001B: call static System.Void
VFESecurity.Patch_IsShell::Postfix(System.Boolean& __result, Verse.ThingDef
__instance)
IL_0020: ldloc 0 (System.Boolean)
IL_0024: ret
DONE

### Patch: static


System.Collections.Generic.IEnumerable`1<RimWorld.Blueprint_Build>
RimWorld.SiegeBlueprintPlacer::PlaceArtilleryBlueprints(System.Single points,
Verse.Map map)
### Replacement: static
System.Collections.Generic.IEnumerable`1<RimWorld.Blueprint_Build>
RimWorld.SiegeBlueprintPlacer::RimWorld.SiegeBlueprintPlacer.PlaceArtilleryBlueprin
ts_Patch1(System.Single points, Verse.Map map)
IL_0000: Local var 0:
System.Collections.Generic.IEnumerable`1<RimWorld.Blueprint_Build>
IL_0000: ldnull
IL_0001: stloc 0
(System.Collections.Generic.IEnumerable`1[RimWorld.Blueprint_Build])
IL_0005: // start original
IL_0005: ldc.i4.s -2
IL_0007: newobj System.Void
RimWorld.<PlaceArtilleryBlueprints>d__12::.ctor(System.Int32 <>1__state)
IL_000C: dup
IL_000D: ldarg.0
IL_000E: stfld System.Single
RimWorld.<PlaceArtilleryBlueprints>d__12::<>3__points
IL_0013: dup
IL_0014: ldarg.1
IL_0015: stfld Verse.Map RimWorld.<PlaceArtilleryBlueprints>d__12::<>3__map
IL_001A: // end original
IL_001A: stloc 0
(System.Collections.Generic.IEnumerable`1[RimWorld.Blueprint_Build])
IL_001E: ldloc 0
(System.Collections.Generic.IEnumerable`1[RimWorld.Blueprint_Build])
IL_0022: ldarg 0
IL_0026: ldarg 1
IL_002A: ldsfld RimWorld.Faction RimWorld.SiegeBlueprintPlacer::faction
IL_002F: call static
System.Collections.Generic.IEnumerable`1<RimWorld.Blueprint_Build>
VFESecurity.Patch_PlaceArtilleryBlueprints::Postfix(System.Collections.Generic.IEnu
merable`1<RimWorld.Blueprint_Build> __result, System.Single points, Verse.Map map,
RimWorld.Faction ___faction)
IL_0034: ret
DONE

### Patch: static Verse.Thing


RimWorld.JobDriver_ManTurret::FindAmmoForTurret(Verse.Pawn pawn,
RimWorld.Building_TurretGun gun)
### Replacement: static Verse.Thing
RimWorld.JobDriver_ManTurret::RimWorld.JobDriver_ManTurret.FindAmmoForTurret_Patch1
(Verse.Pawn pawn, RimWorld.Building_TurretGun gun)
IL_0000: Local var 0: RimWorld.JobDriver_ManTurret/<>c__DisplayClass4_0
IL_0000: Local var 1: System.Predicate`1<Verse.Thing>
IL_0000: Local var 2: Verse.Thing
IL_0000: Local var 3: System.Boolean
IL_0000: ldnull
IL_0001: stloc 2 (Verse.Thing)
IL_0005: ldc.i4 0
IL_000A: stloc 3 (System.Boolean)
IL_000E: ldc.i4.1
IL_000F: stloc 3 (System.Boolean)
IL_0013: ldloc 3 (System.Boolean)
IL_0017: brfalse => Label1
IL_001C: ldarg 0
IL_0020: ldarg 1
IL_0024: ldloca 2 (Verse.Thing)
IL_0028: call static System.Boolean
VFESecurity.Patch_TryFindRandomShellDef::Prefix(Verse.Pawn pawn,
RimWorld.Building_TurretGun gun, Verse.Thing& __result)
IL_002D: stloc 3 (System.Boolean)
IL_0031: Label1
IL_0031: nop
IL_0032: ldloc 3 (System.Boolean)
IL_0036: brfalse => Label0
IL_003B: // start original
IL_003B: newobj System.Void RimWorld.<>c__DisplayClass4_0::.ctor()
IL_0040: stloc.0
IL_0041: ldloc.0
IL_0042: ldarg.0
IL_0043: stfld Verse.Pawn RimWorld.<>c__DisplayClass4_0::pawn
IL_0048: ldloc.0
IL_0049: ldloc.0
IL_004A: ldfld Verse.Pawn RimWorld.<>c__DisplayClass4_0::pawn
IL_004F: callvirt System.Boolean Verse.Pawn::get_IsColonist()
IL_0054: brtrue => Label2
IL_0059: ldnull
IL_005A: br => Label3
IL_005F: Label2
IL_005F: ldarg.1
IL_0060: ldfld Verse.Thing RimWorld.Building_TurretGun::gun
IL_0065: call static RimWorld.CompChangeableProjectile
Verse.ThingCompUtility::TryGetComp(Verse.Thing thing)
IL_006A: ldfld RimWorld.StorageSettings
RimWorld.CompChangeableProjectile::allowedShellsSettings
IL_006F: Label3
IL_006F: stfld RimWorld.StorageSettings
RimWorld.<>c__DisplayClass4_0::allowedShellsSettings
IL_0074: ldloc.0
IL_0075: ldftn System.Boolean
RimWorld.<>c__DisplayClass4_0::<FindAmmoForTurret>b__0(Verse.Thing t)
IL_007B: newobj System.Void
System.Predicate`1<Verse.Thing>::.ctor(System.Object object, System.IntPtr method)
IL_0080: stloc.1
IL_0081: ldarg.1
IL_0082: callvirt virtual Verse.IntVec3 Verse.Thing::get_Position()
IL_0087: ldarg.1
IL_0088: callvirt virtual Verse.Map Verse.Thing::get_Map()
IL_008D: ldc.i4.s 23
IL_008F: call static Verse.ThingRequest
Verse.ThingRequest::ForGroup(Verse.ThingRequestGroup group)
IL_0094: ldc.i4.1
IL_0095: ldloc.0
IL_0096: ldfld Verse.Pawn RimWorld.<>c__DisplayClass4_0::pawn
IL_009B: ldc.i4.3
IL_009C: ldc.i4.0
IL_009D: ldc.i4.0
IL_009E: ldc.i4.0
IL_009F: ldc.i4.0
IL_00A0: call static Verse.TraverseParms Verse.TraverseParms::For(Verse.Pawn
pawn, Verse.Danger maxDanger, Verse.TraverseMode mode, System.Boolean canBashDoors,
System.Boolean alwaysUseAvoidGrid, System.Boolean canBashFences)
IL_00A5: ldc.r4 40
IL_00AA: ldloc.1
IL_00AB: ldnull
IL_00AC: ldc.i4.0
IL_00AD: ldc.i4.m1
IL_00AE: ldc.i4.0
IL_00AF: ldc.i4.s 14
IL_00B1: ldc.i4.0
IL_00B2: call static Verse.Thing
Verse.GenClosest::ClosestThingReachable(Verse.IntVec3 root, Verse.Map map,
Verse.ThingRequest thingReq, Verse.AI.PathEndMode peMode, Verse.TraverseParms
traverseParams, System.Single maxDistance, System.Predicate`1<Verse.Thing>
validator, System.Collections.Generic.IEnumerable`1<Verse.Thing>
customGlobalSearchSet, System.Int32 searchRegionsMin, System.Int32
searchRegionsMax, System.Boolean forceAllowGlobalSearch, Verse.RegionType
traversableRegionTypes, System.Boolean ignoreEntirelyForbiddenRegions)
IL_00B7: // end original
IL_00B7: stloc 2 (Verse.Thing)
IL_00BB: Label0
IL_00BB: ldloc 2 (Verse.Thing)
IL_00BF: ret
DONE

### Patch: virtual System.Void Verse.Building::PreApplyDamage(Verse.DamageInfo&


dinfo, System.Boolean& absorbed)
### Replacement: static System.Void
Verse.Building::Verse.Building.PreApplyDamage_Patch1(Verse.Building this,
Verse.DamageInfo& dinfo, System.Boolean& absorbed)
IL_0000: Local var 0: System.Int32
IL_0000: Local var 1: Verse.AI.Group.Lord
IL_0000: // start original
IL_0000: ldarg.0
IL_0001: call virtual RimWorld.Faction Verse.Thing::get_Faction()
IL_0006: brfalse => Label0
IL_000B: ldarg.0
IL_000C: call System.Boolean Verse.Thing::get_Spawned()
IL_0011: brfalse => Label1
IL_0016: ldarg.0
IL_0017: call virtual RimWorld.Faction Verse.Thing::get_Faction()
IL_001C: call static RimWorld.Faction RimWorld.Faction::get_OfPlayer()
IL_0021: beq => Label2
IL_0026: ldc.i4.0
IL_0027: stloc.0
IL_0028: br => Label3
IL_002D: Label5
IL_002D: ldarg.0
IL_002E: call virtual Verse.Map Verse.Thing::get_Map()
IL_0033: ldfld Verse.AI.Group.LordManager Verse.Map::lordManager
IL_0038: ldfld System.Collections.Generic.List`1<Verse.AI.Group.Lord>
Verse.AI.Group.LordManager::lords
IL_003D: ldloc.0
IL_003E: callvirt virtual Verse.AI.Group.Lord
System.Collections.Generic.List`1<Verse.AI.Group.Lord>::get_Item(System.Int32
index)
IL_0043: stloc.1
IL_0044: ldloc.1
IL_0045: ldfld RimWorld.Faction Verse.AI.Group.Lord::faction
IL_004A: ldarg.0
IL_004B: call virtual RimWorld.Faction Verse.Thing::get_Faction()
IL_0050: bne.un => Label4
IL_0055: ldloc.1
IL_0056: ldarg.0
IL_0057: ldarg.1
IL_0058: ldobj Verse.DamageInfo
IL_005D: callvirt System.Void
Verse.AI.Group.Lord::Notify_BuildingDamaged(Verse.Building building,
Verse.DamageInfo dinfo)
IL_0062: Label4
IL_0062: ldloc.0
IL_0063: ldc.i4.1
IL_0064: add
IL_0065: stloc.0
IL_0066: Label3
IL_0066: ldloc.0
IL_0067: ldarg.0
IL_0068: call virtual Verse.Map Verse.Thing::get_Map()
IL_006D: ldfld Verse.AI.Group.LordManager Verse.Map::lordManager
IL_0072: ldfld System.Collections.Generic.List`1<Verse.AI.Group.Lord>
Verse.AI.Group.LordManager::lords
IL_0077: callvirt virtual System.Int32
System.Collections.Generic.List`1<Verse.AI.Group.Lord>::get_Count()
IL_007C: blt => Label5
IL_0081: Label0
IL_0081: Label1
IL_0081: Label2
IL_0081: ldarg.0
IL_0082: ldarg.1
IL_0083: ldarg.2
IL_0084: call virtual System.Void
Verse.ThingWithComps::PreApplyDamage(Verse.DamageInfo& dinfo, System.Boolean&
absorbed)
IL_0089: ldarg.2
IL_008A: ldind.u1
IL_008B: brtrue => Label6
IL_0090: ldarg.0
IL_0091: call virtual RimWorld.Faction Verse.Thing::get_Faction()
IL_0096: brfalse => Label7
IL_009B: ldarg.0
IL_009C: call virtual RimWorld.Faction Verse.Thing::get_Faction()
IL_00A1: ldarg.0
IL_00A2: ldarg.1
IL_00A3: ldobj Verse.DamageInfo
IL_00A8: callvirt System.Void
RimWorld.Faction::Notify_BuildingTookDamage(Verse.Building building,
Verse.DamageInfo dinfo)
IL_00AD: // end original
IL_00AD: Label6
IL_00AD: Label7
IL_00AD: ldarg.0
IL_00AE: ldarg 1
IL_00B2: call static System.Void
VFESecurity.PreApplyDamage::Postfix(Verse.Building __instance, Verse.DamageInfo&
dinfo)
IL_00B7: ret
DONE

### Patch: System.Void RimWorld.Building_Trap::Spring(Verse.Pawn p)


### Replacement: static System.Void
RimWorld.Building_Trap::RimWorld.Building_Trap.Spring_Patch0(RimWorld.Building_Trap
this, Verse.Pawn p)
IL_0000: Local var 0: System.Boolean
IL_0000: Local var 1: Verse.Map
IL_0000: // start original
IL_0000: ldarg.0
IL_0001: call System.Boolean Verse.Thing::get_Spawned()
IL_0006: stloc.0
IL_0007: ldarg.0
IL_0008: call virtual Verse.Map Verse.Thing::get_Map()
IL_000D: stloc.1
IL_000E: ldarg.0
IL_000F: ldarg.1
IL_0010: callvirt abstract virtual System.Void
RimWorld.Building_Trap::SpringSub(Verse.Pawn p)
IL_0015: ldarg.0
IL_0016: ldfld Verse.ThingDef Verse.Thing::def
IL_001B: ldfld RimWorld.BuildingProperties Verse.ThingDef::building
IL_0020: ldfld System.Boolean RimWorld.BuildingProperties::trapDestroyOnSpring
IL_0025: ldarg.0
IL_0026: call static System.Boolean
VFESecurity.Spring::ShouldDestroy(System.Boolean original, RimWorld.Building_Trap
instance)
IL_002B: brfalse => Label0
IL_0030: ldarg.0
IL_0031: call System.Boolean Verse.Thing::get_Destroyed()
IL_0036: brtrue => Label1
IL_003B: ldarg.0
IL_003C: ldc.i4.0
IL_003D: callvirt virtual System.Void Verse.Thing::Destroy(Verse.DestroyMode
mode)
IL_0042: Label1
IL_0042: ldloc.0
IL_0043: brfalse => Label2
IL_0048: ldarg.0
IL_0049: ldloc.1
IL_004A: call System.Void RimWorld.Building_Trap::CheckAutoRebuild(Verse.Map
map)
IL_004F: // end original
IL_004F: Label0
IL_004F: Label2
IL_004F: ret
DONE

### Patch: static System.Boolean


Verse.AI.CastPositionFinder::TryFindCastPosition(Verse.AI.CastPositionRequest
newReq, Verse.IntVec3& dest)
### Replacement: static System.Boolean
Verse.AI.CastPositionFinder::Verse.AI.CastPositionFinder.TryFindCastPosition_Patch0
(Verse.AI.CastPositionRequest newReq, Verse.IntVec3& dest)
IL_0000: Local var 0: Verse.CellRect
IL_0000: Local var 1: System.Int32
IL_0000: Local var 2: Verse.CellRect
IL_0000: Local var 3: System.Single
IL_0000: Local var 4: Verse.CellLine
IL_0000: Local var 5: System.Boolean
IL_0000: Local var 6: Verse.Region
IL_0000: Local var 7: Verse.AI.CastPositionFinder/<>c__DisplayClass16_0
IL_0000: Local var 8: System.Int32
IL_0000: Local var 9: Verse.CellRect
IL_0000: Local var 10: System.Int32
IL_0000: Local var 11: Verse.CellRect
IL_0000: Local var 12: Verse.IntVec3
IL_0000: Local var 13: Verse.CellLine
IL_0000: Local var 14: Verse.CellRect/Enumerator
IL_0000: Local var 15: Verse.IntVec3
IL_0000: Local var 16: Verse.IntVec3
IL_0000: // start original
IL_0000: ldarg.0
IL_0001: stsfld Verse.AI.CastPositionRequest Verse.AI.CastPositionFinder::req
IL_0006: ldsflda Verse.AI.CastPositionRequest Verse.AI.CastPositionFinder::req
IL_000B: ldfld Verse.Pawn Verse.AI.CastPositionRequest::caster
IL_0010: callvirt virtual Verse.IntVec3 Verse.Thing::get_Position()
IL_0015: stsfld Verse.IntVec3 Verse.AI.CastPositionFinder::casterLoc
IL_001A: ldsflda Verse.AI.CastPositionRequest Verse.AI.CastPositionFinder::req
IL_001F: ldfld Verse.Thing Verse.AI.CastPositionRequest::target
IL_0024: callvirt virtual Verse.IntVec3 Verse.Thing::get_Position()
IL_0029: stsfld Verse.IntVec3 Verse.AI.CastPositionFinder::targetLoc
IL_002E: ldsflda Verse.AI.CastPositionRequest Verse.AI.CastPositionFinder::req
IL_0033: ldfld Verse.Verb Verse.AI.CastPositionRequest::verb
IL_0038: stsfld Verse.Verb Verse.AI.CastPositionFinder::verb
IL_003D: ldarg.0
IL_003E: ldfld Verse.Pawn Verse.AI.CastPositionRequest::caster
IL_0043: ldc.i4.0
IL_0044: call static Verse.ByteGrid
RimWorld.PawnUtility::GetAvoidGrid(Verse.Pawn p, System.Boolean onlyIfLordAllows)
IL_0049: stsfld Verse.ByteGrid Verse.AI.CastPositionFinder::avoidGrid
IL_004E: ldsfld Verse.Verb Verse.AI.CastPositionFinder::verb
IL_0053: brtrue => Label0
IL_0058: ldsflda Verse.AI.CastPositionRequest Verse.AI.CastPositionFinder::req
IL_005D: ldfld Verse.Pawn Verse.AI.CastPositionRequest::caster
IL_0062: ldstr " tried to find casting position without a verb."
IL_0067: call static System.String System.String::Concat(System.Object arg0,
System.Object arg1)
IL_006C: call static System.Void Verse.Log::Error(System.String text)
IL_0071: ldarg.1
IL_0072: ldsfld Verse.IntVec3 Verse.IntVec3::Invalid
IL_0077: stobj Verse.IntVec3
IL_007C: ldc.i4.0
IL_007D: br => Label26
IL_0082: Label0
IL_0082: ldsflda Verse.AI.CastPositionRequest Verse.AI.CastPositionFinder::req
IL_0087: ldfld System.Int32 Verse.AI.CastPositionRequest::maxRegions
IL_008C: ldc.i4.0
IL_008D: ble => Label1
IL_0092: ldsfld Verse.IntVec3 Verse.AI.CastPositionFinder::casterLoc
IL_0097: ldsflda Verse.AI.CastPositionRequest Verse.AI.CastPositionFinder::req
IL_009C: ldfld Verse.Pawn Verse.AI.CastPositionRequest::caster
IL_00A1: callvirt virtual Verse.Map Verse.Thing::get_Map()
IL_00A6: ldc.i4.s 14
IL_00A8: call static Verse.Region Verse.GridsUtility::GetRegion(Verse.IntVec3
loc, Verse.Map map, Verse.RegionType allowedRegionTypes)
IL_00AD: stloc.s 6 (Verse.Region)
IL_00AF: ldloc.s 6 (Verse.Region)
IL_00B1: brtrue => Label2
IL_00B6: ldstr "TryFindCastPosition requiring region traversal but root region
is null."
IL_00BB: call static System.Void Verse.Log::Error(System.String text)
IL_00C0: ldarg.1
IL_00C1: ldsfld Verse.IntVec3 Verse.IntVec3::Invalid
IL_00C6: stobj Verse.IntVec3
IL_00CB: ldc.i4.0
IL_00CC: br => Label27
IL_00D1: Label2
IL_00D1: call static System.Int32 Verse.Rand::get_Int()
IL_00D6: stsfld System.Int32 Verse.AI.CastPositionFinder::inRadiusMark
IL_00DB: ldloc.s 6 (Verse.Region)
IL_00DD: ldnull
IL_00DE: ldarg.0
IL_00DF: ldfld System.Int32 Verse.AI.CastPositionRequest::maxRegions
IL_00E4: ldsfld System.Int32 Verse.AI.CastPositionFinder::inRadiusMark
IL_00E9: ldc.i4.s 14
IL_00EB: call static System.Void
Verse.RegionTraverser::MarkRegionsBFS(Verse.Region root, Verse.RegionEntryPredicate
entryCondition, System.Int32 maxRegions, System.Int32 inRadiusMark,
Verse.RegionType traversableRegionTypes)
IL_00F0: ldsflda Verse.AI.CastPositionRequest Verse.AI.CastPositionFinder::req
IL_00F5: ldfld System.Single Verse.AI.CastPositionRequest::maxRangeFromLocus
IL_00FA: ldc.r4 0.01
IL_00FF: ble.un => Label3
IL_0104: newobj System.Void Verse.AI.<>c__DisplayClass16_0::.ctor()
IL_0109: stloc.s 7 (Verse.AI.CastPositionFinder+<>c__DisplayClass16_0)
IL_010B: ldloc.s 7 (Verse.AI.CastPositionFinder+<>c__DisplayClass16_0)
IL_010D: ldsflda Verse.AI.CastPositionRequest Verse.AI.CastPositionFinder::req
IL_0112: ldfld Verse.IntVec3 Verse.AI.CastPositionRequest::locus
IL_0117: ldsflda Verse.AI.CastPositionRequest Verse.AI.CastPositionFinder::req
IL_011C: ldfld Verse.Pawn Verse.AI.CastPositionRequest::caster
IL_0121: callvirt virtual Verse.Map Verse.Thing::get_Map()
IL_0126: ldc.i4.s 14
IL_0128: call static Verse.Region Verse.GridsUtility::GetRegion(Verse.IntVec3
loc, Verse.Map map, Verse.RegionType allowedRegionTypes)
IL_012D: stfld Verse.Region Verse.AI.<>c__DisplayClass16_0::locusReg
IL_0132: ldloc.s 7 (Verse.AI.CastPositionFinder+<>c__DisplayClass16_0)
IL_0134: ldfld Verse.Region Verse.AI.<>c__DisplayClass16_0::locusReg
IL_0139: brtrue => Label4
IL_013E: ldstr "locus "
IL_0143: ldsflda Verse.AI.CastPositionRequest Verse.AI.CastPositionFinder::req
IL_0148: ldfld Verse.IntVec3 Verse.AI.CastPositionRequest::locus
IL_014D: box Verse.IntVec3
IL_0152: ldstr " has no region"
IL_0157: call static System.String System.String::Concat(System.Object arg0,
System.Object arg1, System.Object arg2)
IL_015C: call static System.Void Verse.Log::Error(System.String text)
IL_0161: ldarg.1
IL_0162: ldsfld Verse.IntVec3 Verse.IntVec3::Invalid
IL_0167: stobj Verse.IntVec3
IL_016C: ldc.i4.0
IL_016D: br => Label28
IL_0172: Label4
IL_0172: ldloc.s 7 (Verse.AI.CastPositionFinder+<>c__DisplayClass16_0)
IL_0174: ldfld Verse.Region Verse.AI.<>c__DisplayClass16_0::locusReg
IL_0179: ldfld System.Int32 Verse.Region::mark
IL_017E: ldsfld System.Int32 Verse.AI.CastPositionFinder::inRadiusMark
IL_0183: beq => Label5
IL_0188: call static System.Int32 Verse.Rand::get_Int()
IL_018D: stsfld System.Int32 Verse.AI.CastPositionFinder::inRadiusMark
IL_0192: ldloc.s 6 (Verse.Region)
IL_0194: ldnull
IL_0195: ldloc.s 7 (Verse.AI.CastPositionFinder+<>c__DisplayClass16_0)
IL_0197: ldftn System.Boolean
Verse.AI.<>c__DisplayClass16_0::<TryFindCastPosition>b__0(Verse.Region r)
IL_019D: newobj System.Void Verse.RegionProcessor::.ctor(System.Object object,
System.IntPtr method)
IL_01A2: ldc.i4 999999
IL_01A7: ldc.i4.s 14
IL_01A9: call static System.Void
Verse.RegionTraverser::BreadthFirstTraverse(Verse.Region root,
Verse.RegionEntryPredicate entryCondition, Verse.RegionProcessor regionProcessor,
System.Int32 maxRegions, Verse.RegionType traversableRegionTypes)
IL_01AE: Label1
IL_01AE: Label3
IL_01AE: Label5
IL_01AE: ldsflda Verse.AI.CastPositionRequest Verse.AI.CastPositionFinder::req
IL_01B3: ldfld Verse.Pawn Verse.AI.CastPositionRequest::caster
IL_01B8: callvirt virtual Verse.Map Verse.Thing::get_Map()
IL_01BD: call static Verse.CellRect Verse.CellRect::WholeMap(Verse.Map map)
IL_01C2: stloc.0
IL_01C3: ldsflda Verse.AI.CastPositionRequest Verse.AI.CastPositionFinder::req
IL_01C8: ldfld System.Single Verse.AI.CastPositionRequest::maxRangeFromCaster
IL_01CD: ldc.r4 0.01
IL_01D2: ble.un => Label6
IL_01D7: ldsflda Verse.AI.CastPositionRequest Verse.AI.CastPositionFinder::req
IL_01DC: ldfld System.Single Verse.AI.CastPositionRequest::maxRangeFromCaster
IL_01E1: call static System.Int32 UnityEngine.Mathf::CeilToInt(System.Single
f)
IL_01E6: stloc.s 8 (System.Int32)
IL_01E8: ldloca.s 9 (Verse.CellRect)
IL_01EA: ldsflda Verse.IntVec3 Verse.AI.CastPositionFinder::casterLoc
IL_01EF: ldfld System.Int32 Verse.IntVec3::x
IL_01F4: ldloc.s 8 (System.Int32)
IL_01F6: sub
IL_01F7: ldsflda Verse.IntVec3 Verse.AI.CastPositionFinder::casterLoc
IL_01FC: ldfld System.Int32 Verse.IntVec3::z
IL_0201: ldloc.s 8 (System.Int32)
IL_0203: sub
IL_0204: ldloc.s 8 (System.Int32)
IL_0206: ldc.i4.2
IL_0207: mul
IL_0208: ldc.i4.1
IL_0209: add
IL_020A: ldloc.s 8 (System.Int32)
IL_020C: ldc.i4.2
IL_020D: mul
IL_020E: ldc.i4.1
IL_020F: add
IL_0210: call System.Void Verse.CellRect::.ctor(System.Int32 minX,
System.Int32 minZ, System.Int32 width, System.Int32 height)
IL_0215: ldloca.s 0 (Verse.CellRect)
IL_0217: ldloc.s 9 (Verse.CellRect)
IL_0219: call Verse.CellRect Verse.CellRect::ClipInsideRect(Verse.CellRect
otherRect)
IL_021E: pop
IL_021F: Label6
IL_021F: ldsflda Verse.AI.CastPositionRequest Verse.AI.CastPositionFinder::req
IL_0224: ldfld System.Single Verse.AI.CastPositionRequest::maxRangeFromTarget
IL_0229: call static System.Int32 UnityEngine.Mathf::CeilToInt(System.Single
f)
IL_022E: stloc.1
IL_022F: ldloca.s 2 (Verse.CellRect)
IL_0231: ldsflda Verse.IntVec3 Verse.AI.CastPositionFinder::targetLoc
IL_0236: ldfld System.Int32 Verse.IntVec3::x
IL_023B: ldloc.1
IL_023C: sub
IL_023D: ldsflda Verse.IntVec3 Verse.AI.CastPositionFinder::targetLoc
IL_0242: ldfld System.Int32 Verse.IntVec3::z
IL_0247: ldloc.1
IL_0248: sub
IL_0249: ldloc.1
IL_024A: ldc.i4.2
IL_024B: mul
IL_024C: ldc.i4.1
IL_024D: add
IL_024E: ldloc.1
IL_024F: ldc.i4.2
IL_0250: mul
IL_0251: ldc.i4.1
IL_0252: add
IL_0253: call System.Void Verse.CellRect::.ctor(System.Int32 minX,
System.Int32 minZ, System.Int32 width, System.Int32 height)
IL_0258: ldloca.s 0 (Verse.CellRect)
IL_025A: ldloc.2
IL_025B: call Verse.CellRect Verse.CellRect::ClipInsideRect(Verse.CellRect
otherRect)
IL_0260: pop
IL_0261: ldsflda Verse.AI.CastPositionRequest Verse.AI.CastPositionFinder::req
IL_0266: ldfld System.Single Verse.AI.CastPositionRequest::maxRangeFromLocus
IL_026B: ldc.r4 0.01
IL_0270: ble.un => Label7
IL_0275: ldsflda Verse.AI.CastPositionRequest Verse.AI.CastPositionFinder::req
IL_027A: ldfld System.Single Verse.AI.CastPositionRequest::maxRangeFromLocus
IL_027F: call static System.Int32 UnityEngine.Mathf::CeilToInt(System.Single
f)
IL_0284: stloc.s 10 (System.Int32)
IL_0286: ldloca.s 11 (Verse.CellRect)
IL_0288: ldsflda Verse.IntVec3 Verse.AI.CastPositionFinder::targetLoc
IL_028D: ldfld System.Int32 Verse.IntVec3::x
IL_0292: ldloc.s 10 (System.Int32)
IL_0294: sub
IL_0295: ldsflda Verse.IntVec3 Verse.AI.CastPositionFinder::targetLoc
IL_029A: ldfld System.Int32 Verse.IntVec3::z
IL_029F: ldloc.s 10 (System.Int32)
IL_02A1: sub
IL_02A2: ldloc.s 10 (System.Int32)
IL_02A4: ldc.i4.2
IL_02A5: mul
IL_02A6: ldc.i4.1
IL_02A7: add
IL_02A8: ldloc.s 10 (System.Int32)
IL_02AA: ldc.i4.2
IL_02AB: mul
IL_02AC: ldc.i4.1
IL_02AD: add
IL_02AE: call System.Void Verse.CellRect::.ctor(System.Int32 minX,
System.Int32 minZ, System.Int32 width, System.Int32 height)
IL_02B3: ldloca.s 0 (Verse.CellRect)
IL_02B5: ldloc.s 11 (Verse.CellRect)
IL_02B7: call Verse.CellRect Verse.CellRect::ClipInsideRect(Verse.CellRect
otherRect)
IL_02BC: pop
IL_02BD: Label7
IL_02BD: ldsfld Verse.IntVec3 Verse.IntVec3::Invalid
IL_02C2: stsfld Verse.IntVec3 Verse.AI.CastPositionFinder::bestSpot
IL_02C7: ldc.r4 0.001
IL_02CC: stsfld System.Single Verse.AI.CastPositionFinder::bestSpotPref
IL_02D1: ldsflda Verse.AI.CastPositionRequest Verse.AI.CastPositionFinder::req
IL_02D6: ldfld System.Single Verse.AI.CastPositionRequest::maxRangeFromCaster
IL_02DB: ldsflda Verse.AI.CastPositionRequest Verse.AI.CastPositionFinder::req
IL_02E0: ldfld System.Single Verse.AI.CastPositionRequest::maxRangeFromCaster
IL_02E5: mul
IL_02E6: stsfld System.Single
Verse.AI.CastPositionFinder::maxRangeFromCasterSquared
IL_02EB: ldsflda Verse.AI.CastPositionRequest Verse.AI.CastPositionFinder::req
IL_02F0: ldfld System.Single Verse.AI.CastPositionRequest::maxRangeFromTarget
IL_02F5: ldsflda Verse.AI.CastPositionRequest Verse.AI.CastPositionFinder::req
IL_02FA: ldfld System.Single Verse.AI.CastPositionRequest::maxRangeFromTarget
IL_02FF: mul
IL_0300: stsfld System.Single
Verse.AI.CastPositionFinder::maxRangeFromTargetSquared
IL_0305: ldsflda Verse.AI.CastPositionRequest Verse.AI.CastPositionFinder::req
IL_030A: ldfld System.Single Verse.AI.CastPositionRequest::maxRangeFromLocus
IL_030F: ldsflda Verse.AI.CastPositionRequest Verse.AI.CastPositionFinder::req
IL_0314: ldfld System.Single Verse.AI.CastPositionRequest::maxRangeFromLocus
IL_0319: mul
IL_031A: stsfld System.Single
Verse.AI.CastPositionFinder::maxRangeFromLocusSquared
IL_031F: ldsflda Verse.AI.CastPositionRequest Verse.AI.CastPositionFinder::req
IL_0324: ldfld Verse.Pawn Verse.AI.CastPositionRequest::caster
IL_0329: callvirt virtual Verse.IntVec3 Verse.Thing::get_Position()
IL_032E: ldsflda Verse.AI.CastPositionRequest Verse.AI.CastPositionFinder::req
IL_0333: ldfld Verse.Thing Verse.AI.CastPositionRequest::target
IL_0338: callvirt virtual Verse.IntVec3 Verse.Thing::get_Position()
IL_033D: call static Verse.IntVec3
Verse.IntVec3::op_Subtraction(Verse.IntVec3 a, Verse.IntVec3 b)
IL_0342: stloc.s 12 (Verse.IntVec3)
IL_0344: ldloca.s 12 (Verse.IntVec3)
IL_0346: call System.Single Verse.IntVec3::get_LengthHorizontal()
IL_034B: stsfld System.Single Verse.AI.CastPositionFinder::rangeFromTarget
IL_0350: ldsflda Verse.AI.CastPositionRequest Verse.AI.CastPositionFinder::req
IL_0355: ldfld Verse.Pawn Verse.AI.CastPositionRequest::caster
IL_035A: callvirt virtual Verse.IntVec3 Verse.Thing::get_Position()
IL_035F: ldsflda Verse.AI.CastPositionRequest Verse.AI.CastPositionFinder::req
IL_0364: ldfld Verse.Thing Verse.AI.CastPositionRequest::target
IL_0369: callvirt virtual Verse.IntVec3 Verse.Thing::get_Position()
IL_036E: call static Verse.IntVec3
Verse.IntVec3::op_Subtraction(Verse.IntVec3 a, Verse.IntVec3 b)
IL_0373: stloc.s 12 (Verse.IntVec3)
IL_0375: ldloca.s 12 (Verse.IntVec3)
IL_0377: call System.Int32 Verse.IntVec3::get_LengthHorizontalSquared()
IL_037C: conv.r4
IL_037D: stsfld System.Single
Verse.AI.CastPositionFinder::rangeFromTargetSquared
IL_0382: ldsfld Verse.Verb Verse.AI.CastPositionFinder::verb
IL_0387: ldfld Verse.VerbProperties Verse.Verb::verbProps
IL_038C: ldfld System.Single Verse.VerbProperties::range
IL_0391: ldsfld Verse.Verb Verse.AI.CastPositionFinder::verb
IL_0396: call static System.Single
VFESecurity.TrenchUtility::FinalAdjustedRangeFromTerrain(System.Single range,
Verse.Verb verb)
IL_039B: ldc.r4 0.8
IL_03A0: mul
IL_03A1: ldsfld Verse.Verb Verse.AI.CastPositionFinder::verb
IL_03A6: ldfld Verse.VerbProperties Verse.Verb::verbProps
IL_03AB: ldfld System.Single Verse.VerbProperties::range
IL_03B0: ldsfld Verse.Verb Verse.AI.CastPositionFinder::verb
IL_03B5: call static System.Single
VFESecurity.TrenchUtility::FinalAdjustedRangeFromTerrain(System.Single range,
Verse.Verb verb)
IL_03BA: ldc.r4 0.8
IL_03BF: mul
IL_03C0: mul
IL_03C1: stsfld System.Single Verse.AI.CastPositionFinder::optimalRangeSquared
IL_03C6: ldsflda Verse.AI.CastPositionRequest Verse.AI.CastPositionFinder::req
IL_03CB: ldflda System.Nullable`1<Verse.IntVec3>
Verse.AI.CastPositionRequest::preferredCastPosition
IL_03D0: call System.Boolean System.Nullable`1<Verse.IntVec3>::get_HasValue()
IL_03D5: brfalse => Label8
IL_03DA: ldsflda Verse.AI.CastPositionRequest Verse.AI.CastPositionFinder::req
IL_03DF: ldflda System.Nullable`1<Verse.IntVec3>
Verse.AI.CastPositionRequest::preferredCastPosition
IL_03E4: call Verse.IntVec3 System.Nullable`1<Verse.IntVec3>::get_Value()
IL_03E9: stloc.s 12 (Verse.IntVec3)
IL_03EB: ldloca.s 12 (Verse.IntVec3)
IL_03ED: call System.Boolean Verse.IntVec3::get_IsValid()
IL_03F2: brfalse => Label9
IL_03F7: ldsflda Verse.AI.CastPositionRequest Verse.AI.CastPositionFinder::req
IL_03FC: ldflda System.Nullable`1<Verse.IntVec3>
Verse.AI.CastPositionRequest::preferredCastPosition
IL_0401: call Verse.IntVec3 System.Nullable`1<Verse.IntVec3>::get_Value()
IL_0406: call static System.Void
Verse.AI.CastPositionFinder::EvaluateCell(Verse.IntVec3 c)
IL_040B: ldsflda Verse.IntVec3 Verse.AI.CastPositionFinder::bestSpot
IL_0410: call System.Boolean Verse.IntVec3::get_IsValid()
IL_0415: brfalse => Label10
IL_041A: ldsfld System.Single Verse.AI.CastPositionFinder::bestSpotPref
IL_041F: ldc.r4 0.001
IL_0424: ble.un => Label11
IL_0429: ldarg.1
IL_042A: ldsflda Verse.AI.CastPositionRequest Verse.AI.CastPositionFinder::req
IL_042F: ldflda System.Nullable`1<Verse.IntVec3>
Verse.AI.CastPositionRequest::preferredCastPosition
IL_0434: call Verse.IntVec3 System.Nullable`1<Verse.IntVec3>::get_Value()
IL_0439: stobj Verse.IntVec3
IL_043E: ldc.i4.1
IL_043F: br => Label29
IL_0444: Label8
IL_0444: Label9
IL_0444: Label10
IL_0444: Label11
IL_0444: ldsflda Verse.AI.CastPositionRequest Verse.AI.CastPositionFinder::req
IL_0449: ldfld Verse.Pawn Verse.AI.CastPositionRequest::caster
IL_044E: callvirt virtual Verse.IntVec3 Verse.Thing::get_Position()
IL_0453: call static System.Void
Verse.AI.CastPositionFinder::EvaluateCell(Verse.IntVec3 c)
IL_0458: ldsfld System.Single Verse.AI.CastPositionFinder::bestSpotPref
IL_045D: conv.r8
IL_045E: ldc.r8 1
IL_0467: blt.un => Label12
IL_046C: ldarg.1
IL_046D: ldsflda Verse.AI.CastPositionRequest Verse.AI.CastPositionFinder::req
IL_0472: ldfld Verse.Pawn Verse.AI.CastPositionRequest::caster
IL_0477: callvirt virtual Verse.IntVec3 Verse.Thing::get_Position()
IL_047C: stobj Verse.IntVec3
IL_0481: ldc.i4.1
IL_0482: br => Label30
IL_0487: Label12
IL_0487: ldc.r4 -1
IL_048C: ldsflda Verse.AI.CastPositionRequest Verse.AI.CastPositionFinder::req
IL_0491: ldfld Verse.Thing Verse.AI.CastPositionRequest::target
IL_0496: callvirt virtual Verse.IntVec3 Verse.Thing::get_Position()
IL_049B: ldsflda Verse.AI.CastPositionRequest Verse.AI.CastPositionFinder::req
IL_04A0: ldfld Verse.Pawn Verse.AI.CastPositionRequest::caster
IL_04A5: callvirt virtual Verse.IntVec3 Verse.Thing::get_Position()
IL_04AA: call static Verse.CellLine Verse.CellLine::Between(Verse.IntVec3 a,
Verse.IntVec3 b)
IL_04AF: stloc.s 13 (Verse.CellLine)
IL_04B1: ldloca.s 13 (Verse.CellLine)
IL_04B3: call System.Single Verse.CellLine::get_Slope()
IL_04B8: div
IL_04B9: stloc.3
IL_04BA: ldloca.s 4 (Verse.CellLine)
IL_04BC: ldsflda Verse.AI.CastPositionRequest Verse.AI.CastPositionFinder::req
IL_04C1: ldfld Verse.Thing Verse.AI.CastPositionRequest::target
IL_04C6: callvirt virtual Verse.IntVec3 Verse.Thing::get_Position()
IL_04CB: ldloc.3
IL_04CC: call System.Void Verse.CellLine::.ctor(Verse.IntVec3 cell,
System.Single slope)
IL_04D1: ldloca.s 4 (Verse.CellLine)
IL_04D3: ldsflda Verse.AI.CastPositionRequest Verse.AI.CastPositionFinder::req
IL_04D8: ldfld Verse.Pawn Verse.AI.CastPositionRequest::caster
IL_04DD: callvirt virtual Verse.IntVec3 Verse.Thing::get_Position()
IL_04E2: call System.Boolean Verse.CellLine::CellIsAbove(Verse.IntVec3 c)
IL_04E7: stloc.s 5 (System.Boolean)
IL_04E9: ldloca.s 0 (Verse.CellRect)
IL_04EB: call Verse.Enumerator Verse.CellRect::GetEnumerator()
IL_04F0: stloc.s 14 (Verse.CellRect+Enumerator)
.try
{
IL_04F2: br => Label13
IL_04F7: Label16
IL_04F7: ldloca.s 14 (Verse.CellRect+Enumerator)
IL_04F9: call virtual Verse.IntVec3 Verse.Enumerator::get_Current()
IL_04FE: stloc.s 15 (Verse.IntVec3)
IL_0500: ldloca.s 4 (Verse.CellLine)
IL_0502: ldloc.s 15 (Verse.IntVec3)
IL_0504: call System.Boolean Verse.CellLine::CellIsAbove(Verse.IntVec3
c)
IL_0509: ldloc.s 5 (System.Boolean)
IL_050B: bne.un => Label14
IL_0510: ldloca.s 0 (Verse.CellRect)
IL_0512: ldloc.s 15 (Verse.IntVec3)
IL_0514: call System.Boolean Verse.CellRect::Contains(Verse.IntVec3 c)
IL_0519: brfalse => Label15
IL_051E: ldloc.s 15 (Verse.IntVec3)
IL_0520: call static System.Void
Verse.AI.CastPositionFinder::EvaluateCell(Verse.IntVec3 c)
IL_0525: Label13
IL_0525: Label14
IL_0525: Label15
IL_0525: ldloca.s 14 (Verse.CellRect+Enumerator)
IL_0527: call virtual System.Boolean Verse.Enumerator::MoveNext()
IL_052C: brtrue => Label16
IL_0531: leave => Label17
IL_0536: leave => (autogenerated)
} // end try
.finally
{
IL_053B: ldloca.s 14 (Verse.CellRect+Enumerator)
IL_053D: constrained. Verse.CellRect+Enumerator
IL_0543: callvirt abstract virtual System.Void
System.IDisposable::Dispose()
IL_0548: endfinally
IL_0549: leave => (autogenerated)
} // end handler
IL_054A: Label17
IL_054A: ldsflda Verse.IntVec3 Verse.AI.CastPositionFinder::bestSpot
IL_054F: call System.Boolean Verse.IntVec3::get_IsValid()
IL_0554: brfalse => Label18
IL_0559: ldsfld System.Single Verse.AI.CastPositionFinder::bestSpotPref
IL_055E: ldc.r4 0.33
IL_0563: ble.un => Label19
IL_0568: ldarg.1
IL_0569: ldsfld Verse.IntVec3 Verse.AI.CastPositionFinder::bestSpot
IL_056E: stobj Verse.IntVec3
IL_0573: ldc.i4.1
IL_0574: br => Label35
IL_0579: Label18
IL_0579: Label19
IL_0579: ldloca.s 0 (Verse.CellRect)
IL_057B: call Verse.Enumerator Verse.CellRect::GetEnumerator()
IL_0580: stloc.s 14 (Verse.CellRect+Enumerator)
.try
{
IL_0582: br => Label20
IL_0587: Label23
IL_0587: ldloca.s 14 (Verse.CellRect+Enumerator)
IL_0589: call virtual Verse.IntVec3 Verse.Enumerator::get_Current()
IL_058E: stloc.s 16 (Verse.IntVec3)
IL_0590: ldloca.s 4 (Verse.CellLine)
IL_0592: ldloc.s 16 (Verse.IntVec3)
IL_0594: call System.Boolean Verse.CellLine::CellIsAbove(Verse.IntVec3
c)
IL_0599: ldloc.s 5 (System.Boolean)
IL_059B: beq => Label21
IL_05A0: ldloca.s 0 (Verse.CellRect)
IL_05A2: ldloc.s 16 (Verse.IntVec3)
IL_05A4: call System.Boolean Verse.CellRect::Contains(Verse.IntVec3 c)
IL_05A9: brfalse => Label22
IL_05AE: ldloc.s 16 (Verse.IntVec3)
IL_05B0: call static System.Void
Verse.AI.CastPositionFinder::EvaluateCell(Verse.IntVec3 c)
IL_05B5: Label20
IL_05B5: Label21
IL_05B5: Label22
IL_05B5: ldloca.s 14 (Verse.CellRect+Enumerator)
IL_05B7: call virtual System.Boolean Verse.Enumerator::MoveNext()
IL_05BC: brtrue => Label23
IL_05C1: leave => Label24
IL_05C6: leave => (autogenerated)
} // end try
.finally
{
IL_05CB: ldloca.s 14 (Verse.CellRect+Enumerator)
IL_05CD: constrained. Verse.CellRect+Enumerator
IL_05D3: callvirt abstract virtual System.Void
System.IDisposable::Dispose()
IL_05D8: endfinally
IL_05D9: leave => (autogenerated)
} // end handler
IL_05DA: Label24
IL_05DA: ldsflda Verse.IntVec3 Verse.AI.CastPositionFinder::bestSpot
IL_05DF: call System.Boolean Verse.IntVec3::get_IsValid()
IL_05E4: brfalse => Label25
IL_05E9: ldarg.1
IL_05EA: ldsfld Verse.IntVec3 Verse.AI.CastPositionFinder::bestSpot
IL_05EF: stobj Verse.IntVec3
IL_05F4: ldc.i4.1
IL_05F5: br => Label40
IL_05FA: Label25
IL_05FA: ldarg.1
IL_05FB: ldsfld Verse.IntVec3 Verse.AI.CastPositionFinder::casterLoc
IL_0600: stobj Verse.IntVec3
IL_0605: ldc.i4.0
IL_0606: // end original
IL_0606: Label26
IL_0606: Label27
IL_0606: Label28
IL_0606: Label29
IL_0606: Label30
IL_0606: Label35
IL_0606: Label40
IL_0606: ret
DONE

### Patch: static Verse.AI.IAttackTarget


Verse.AI.AttackTargetFinder::BestShootTargetFromCurrentPosition(Verse.AI.IAttackTar
getSearcher searcher, Verse.AI.TargetScanFlags flags,
System.Predicate`1<Verse.Thing> validator, System.Single minDistance, System.Single
maxDistance)
### Replacement: static Verse.AI.IAttackTarget
Verse.AI.AttackTargetFinder::Verse.AI.AttackTargetFinder.BestShootTargetFromCurrent
Position_Patch0(Verse.AI.IAttackTargetSearcher searcher, Verse.AI.TargetScanFlags
flags, System.Predicate`1<Verse.Thing> validator, System.Single minDistance,
System.Single maxDistance)
IL_0000: Local var 0: Verse.Verb
IL_0000: Local var 1: Verse.IntVec3
IL_0000: // start original
IL_0000: ldarg.0
IL_0001: callvirt abstract virtual Verse.Verb
Verse.AI.IAttackTargetSearcher::get_CurrentEffectiveVerb()
IL_0006: stloc.0
IL_0007: ldloc.0
IL_0008: brtrue => Label0
IL_000D: ldstr "BestShootTargetFromCurrentPosition with "
IL_0012: ldarg.0
IL_0013: call static System.String
Verse.Gen::ToStringSafe(Verse.AI.IAttackTargetSearcher obj)
IL_0018: ldstr " who has no attack verb."
IL_001D: call static System.String System.String::Concat(System.String str0,
System.String str1, System.String str2)
IL_0022: call static System.Void Verse.Log::Error(System.String text)
IL_0027: ldnull
IL_0028: br => Label1
IL_002D: Label0
IL_002D: ldarg.0
IL_002E: ldarg.1
IL_002F: ldarg.2
IL_0030: ldarg.3
IL_0031: ldloc.0
IL_0032: ldfld Verse.VerbProperties Verse.Verb::verbProps
IL_0037: ldfld System.Single Verse.VerbProperties::minRange
IL_003C: call static System.Single UnityEngine.Mathf::Max(System.Single a,
System.Single b)
IL_0041: ldarg.s 4
IL_0043: ldloc.0
IL_0044: ldfld Verse.VerbProperties Verse.Verb::verbProps
IL_0049: ldfld System.Single Verse.VerbProperties::range
IL_004E: ldloc.0
IL_004F: ldarg.0
IL_0050: call static System.Single
VFESecurity.BestShootTargetFromCurrentPosition::AdjustedRange(System.Single
original, Verse.Verb verb, Verse.AI.IAttackTargetSearcher searcher)
IL_0055: call static System.Single UnityEngine.Mathf::Min(System.Single a,
System.Single b)
IL_005A: ldloca.s 1 (Verse.IntVec3)
IL_005C: initobj Verse.IntVec3
IL_0062: ldloc.1
IL_0063: ldc.r4 3.402823E+38
IL_0068: ldc.i4.0
IL_0069: ldc.i4.0
IL_006A: ldc.i4.0
IL_006B: call static Verse.AI.IAttackTarget
Verse.AI.AttackTargetFinder::BestAttackTarget(Verse.AI.IAttackTargetSearcher
searcher, Verse.AI.TargetScanFlags flags, System.Predicate`1<Verse.Thing>
validator, System.Single minDist, System.Single maxDist, Verse.IntVec3 locus,
System.Single maxTravelRadiusFromLocus, System.Boolean canBashDoors, System.Boolean
canTakeTargetsCloserThanEffectiveMinRange, System.Boolean canBashFences)
IL_0070: // end original
IL_0070: Label1
IL_0070: ret
DONE

### Patch: Verse.AI.Job


RimWorld.JobGiver_ConfigurableHostilityResponse::TryGetAttackNearbyEnemyJob(Verse.P
awn pawn)
### Replacement: static Verse.AI.Job
RimWorld.JobGiver_ConfigurableHostilityResponse::RimWorld.JobGiver_ConfigurableHost
ilityResponse.TryGetAttackNearbyEnemyJob_Patch0(RimWorld.JobGiver_ConfigurableHosti
lityResponse this, Verse.Pawn pawn)
IL_0000: Local var 0: System.Boolean
IL_0000: Local var 1: System.Single
IL_0000: Local var 2: Verse.Thing
IL_0000: Local var 3: Verse.IntVec3
IL_0000: Local var 4: Verse.Verb
IL_0000: // start original
IL_0000: ldarg.1
IL_0001: ldc.i4.8
IL_0002: callvirt System.Boolean Verse.Pawn::WorkTagIsDisabled(Verse.WorkTags w)
IL_0007: brfalse => Label0
IL_000C: ldnull
IL_000D: br => Label7
IL_0012: Label0
IL_0012: ldarg.1
IL_0013: callvirt virtual Verse.Verb Verse.Pawn::get_CurrentEffectiveVerb()
IL_0018: callvirt virtual System.Boolean Verse.Verb::get_IsMeleeAttack()
IL_001D: stloc.0
IL_001E: ldc.r4 8
IL_0023: stloc.1
IL_0024: ldloc.0
IL_0025: brtrue => Label1
IL_002A: ldarg.1
IL_002B: callvirt virtual Verse.Verb Verse.Pawn::get_CurrentEffectiveVerb()
IL_0030: ldfld Verse.VerbProperties Verse.Verb::verbProps
IL_0035: ldfld System.Single Verse.VerbProperties::range
IL_003A: ldarg.1
IL_003B: call static System.Single
VFESecurity.TryGetAttackNearbyEnemyJob::AdjustedRange(System.Single original,
Verse.Pawn pawn)
IL_0040: ldc.r4 0.66
IL_0045: mul
IL_0046: ldc.r4 2
IL_004B: ldc.r4 20
IL_0050: call static System.Single UnityEngine.Mathf::Clamp(System.Single
value, System.Single min, System.Single max)
IL_0055: stloc.1
IL_0056: Label1
IL_0056: ldarg.1
IL_0057: ldc.i4 299
IL_005C: ldnull
IL_005D: ldc.r4 0
IL_0062: ldloc.1
IL_0063: ldloca.s 3 (Verse.IntVec3)
IL_0065: initobj Verse.IntVec3
IL_006B: ldloc.3
IL_006C: ldc.r4 3.402823E+38
IL_0071: ldc.i4.0
IL_0072: ldc.i4.1
IL_0073: ldc.i4.0
IL_0074: call static Verse.AI.IAttackTarget
TD_Enhancement_Pack.NotSoHostile::BetterAttackTarget(Verse.AI.IAttackTargetSearcher
searcher, Verse.AI.TargetScanFlags flags, System.Predicate`1<Verse.Thing>
validator, System.Single minDist, System.Single maxDist, Verse.IntVec3 locus,
System.Single maxTravelRadiusFromLocus, System.Boolean canBash, System.Boolean
canTakeTargetsCloserThanEffectiveMinRange, System.Boolean canBashFance)
IL_0079: castclass Verse.Thing
IL_007E: stloc.2
IL_007F: ldloc.2
IL_0080: brtrue => Label2
IL_0085: ldnull
IL_0086: br => Label8
IL_008B: Label2
IL_008B: ldloc.0
IL_008C: brtrue => Label3
IL_0091: ldarg.1
IL_0092: ldloc.2
IL_0093: call static Verse.LocalTargetInfo
Verse.LocalTargetInfo::op_Implicit(Verse.Thing t)
IL_0098: ldc.i4.2
IL_0099: call static System.Boolean
Verse.ReachabilityImmediate::CanReachImmediate(Verse.Pawn pawn,
Verse.LocalTargetInfo target, Verse.AI.PathEndMode peMode)
IL_009E: brfalse => Label4
IL_00A3: Label3
IL_00A3: ldsfld Verse.JobDef RimWorld.JobDefOf::AttackMelee
IL_00A8: ldloc.2
IL_00A9: call static Verse.LocalTargetInfo
Verse.LocalTargetInfo::op_Implicit(Verse.Thing t)
IL_00AE: call static Verse.AI.Job Verse.JobMaker::MakeJob(Verse.JobDef def,
Verse.LocalTargetInfo targetA)
IL_00B3: br => Label9
IL_00B8: Label4
IL_00B8: ldarg.1
IL_00B9: ldloc.2
IL_00BA: ldarg.1
IL_00BB: callvirt System.Boolean Verse.Pawn::get_IsColonist()
IL_00C0: ldc.i4.0
IL_00C1: ceq
IL_00C3: ldc.i4.0
IL_00C4: callvirt Verse.Verb Verse.Pawn::TryGetAttackVerb(Verse.Thing target,
System.Boolean allowManualCastWeapons, System.Boolean allowTurrets)
IL_00C9: stloc.s 4 (Verse.Verb)
IL_00CB: ldloc.s 4 (Verse.Verb)
IL_00CD: brfalse => Label5
IL_00D2: ldloc.s 4 (Verse.Verb)
IL_00D4: callvirt System.Boolean Verse.Verb::ApparelPreventsShooting()
IL_00D9: brfalse => Label6
IL_00DE: Label5
IL_00DE: ldnull
IL_00DF: br => Label10
IL_00E4: Label6
IL_00E4: ldsfld Verse.JobDef RimWorld.JobDefOf::AttackStatic
IL_00E9: ldloc.2
IL_00EA: call static Verse.LocalTargetInfo
Verse.LocalTargetInfo::op_Implicit(Verse.Thing t)
IL_00EF: call static Verse.AI.Job Verse.JobMaker::MakeJob(Verse.JobDef def,
Verse.LocalTargetInfo targetA)
IL_00F4: dup
IL_00F5: ldc.i4.2
IL_00F6: stfld System.Int32 Verse.AI.Job::maxNumStaticAttacks
IL_00FB: dup
IL_00FC: ldc.i4 2000
IL_0101: stfld System.Int32 Verse.AI.Job::expiryInterval
IL_0106: dup
IL_0107: ldc.i4.1
IL_0108: stfld System.Boolean Verse.AI.Job::endIfCantShootTargetFromCurPos
IL_010D: // end original
IL_010D: Label7
IL_010D: Label8
IL_010D: Label9
IL_010D: Label10
IL_010D: ret
DONE

### Patch: virtual System.Boolean


RimWorld.JobGiver_AIFightEnemies::TryFindShootingPosition(Verse.Pawn pawn,
Verse.IntVec3& dest, Verse.Verb verbToUse)
### Replacement: static System.Boolean
RimWorld.JobGiver_AIFightEnemies::RimWorld.JobGiver_AIFightEnemies.TryFindShootingP
osition_Patch0(RimWorld.JobGiver_AIFightEnemies this, Verse.Pawn pawn,
Verse.IntVec3& dest, Verse.Verb verbToUse)
IL_0000: Local var 0: Verse.Thing
IL_0000: Local var 1: System.Boolean
IL_0000: Local var 2: Verse.Verb
IL_0000: Local var 3: Verse.AI.CastPositionRequest
IL_0000: // start original
IL_0000: ldarg.1
IL_0001: ldfld Verse.AI.Pawn_MindState Verse.Pawn::mindState
IL_0006: ldfld Verse.Thing Verse.AI.Pawn_MindState::enemyTarget
IL_000B: stloc.0
IL_000C: ldarg.1
IL_000D: callvirt System.Boolean Verse.Pawn::get_IsColonist()
IL_0012: ldc.i4.0
IL_0013: ceq
IL_0015: stloc.1
IL_0016: ldarg.3
IL_0017: dup
IL_0018: brtrue => Label0
IL_001D: pop
IL_001E: ldarg.1
IL_001F: ldloc.0
IL_0020: ldloc.1
IL_0021: ldarg.0
IL_0022: ldfld System.Boolean RimWorld.JobGiver_AIFightEnemy::allowTurrets
IL_0027: callvirt Verse.Verb Verse.Pawn::TryGetAttackVerb(Verse.Thing target,
System.Boolean allowManualCastWeapons, System.Boolean allowTurrets)
IL_002C: Label0
IL_002C: stloc.2
IL_002D: ldloc.2
IL_002E: brtrue => Label1
IL_0033: ldarg.2
IL_0034: ldsfld Verse.IntVec3 Verse.IntVec3::Invalid
IL_0039: stobj Verse.IntVec3
IL_003E: ldc.i4.0
IL_003F: br => Label2
IL_0044: Label1
IL_0044: ldloca.s 3 (Verse.AI.CastPositionRequest)
IL_0046: initobj Verse.AI.CastPositionRequest
IL_004C: ldloca.s 3 (Verse.AI.CastPositionRequest)
IL_004E: ldarg.1
IL_004F: stfld Verse.Pawn Verse.AI.CastPositionRequest::caster
IL_0054: ldloca.s 3 (Verse.AI.CastPositionRequest)
IL_0056: ldloc.0
IL_0057: stfld Verse.Thing Verse.AI.CastPositionRequest::target
IL_005C: ldloca.s 3 (Verse.AI.CastPositionRequest)
IL_005E: ldloc.2
IL_005F: stfld Verse.Verb Verse.AI.CastPositionRequest::verb
IL_0064: ldloca.s 3 (Verse.AI.CastPositionRequest)
IL_0066: ldloc.2
IL_0067: ldfld Verse.VerbProperties Verse.Verb::verbProps
IL_006C: ldfld System.Single Verse.VerbProperties::range
IL_0071: ldloc.2
IL_0072: ldarg.1
IL_0073: call static System.Single
VFESecurity.TrenchUtility::FinalAdjustedRangeFromTerrain(System.Single range,
Verse.Verb verb, Verse.Thing thing)
IL_0078: stfld System.Single Verse.AI.CastPositionRequest::maxRangeFromTarget
IL_007D: ldloca.s 3 (Verse.AI.CastPositionRequest)
IL_007F: ldloc.2
IL_0080: ldfld Verse.VerbProperties Verse.Verb::verbProps
IL_0085: ldfld System.Single Verse.VerbProperties::range
IL_008A: ldloc.2
IL_008B: ldarg.1
IL_008C: call static System.Single
VFESecurity.TrenchUtility::FinalAdjustedRangeFromTerrain(System.Single range,
Verse.Verb verb, Verse.Thing thing)
IL_0091: ldc.r4 5
IL_0096: cgt
IL_0098: stfld System.Boolean
Verse.AI.CastPositionRequest::wantCoverFromTarget
IL_009D: ldloc.3
IL_009E: ldarg.2
IL_009F: call static System.Boolean
Verse.AI.CastPositionFinder::TryFindCastPosition(Verse.AI.CastPositionRequest
newReq, Verse.IntVec3& dest)
IL_00A4: // end original
IL_00A4: Label2
IL_00A4: ret
DONE

### Patch: virtual System.Boolean


RimWorld.JobGiver_AIDefendPoint::TryFindShootingPosition(Verse.Pawn pawn,
Verse.IntVec3& dest, Verse.Verb verbToUse)
### Replacement: static System.Boolean
RimWorld.JobGiver_AIDefendPoint::RimWorld.JobGiver_AIDefendPoint.TryFindShootingPos
ition_Patch0(RimWorld.JobGiver_AIDefendPoint this, Verse.Pawn pawn, Verse.IntVec3&
dest, Verse.Verb verbToUse)
IL_0000: Local var 0: Verse.Thing
IL_0000: Local var 1: Verse.Verb
IL_0000: Local var 2: Verse.AI.CastPositionRequest
IL_0000: // start original
IL_0000: ldarg.1
IL_0001: ldfld Verse.AI.Pawn_MindState Verse.Pawn::mindState
IL_0006: ldfld Verse.Thing Verse.AI.Pawn_MindState::enemyTarget
IL_000B: stloc.0
IL_000C: ldarg.3
IL_000D: dup
IL_000E: brtrue => Label0
IL_0013: pop
IL_0014: ldarg.1
IL_0015: ldloc.0
IL_0016: ldarg.1
IL_0017: callvirt System.Boolean Verse.Pawn::get_IsColonist()
IL_001C: ldc.i4.0
IL_001D: ceq
IL_001F: ldc.i4.0
IL_0020: callvirt Verse.Verb Verse.Pawn::TryGetAttackVerb(Verse.Thing target,
System.Boolean allowManualCastWeapons, System.Boolean allowTurrets)
IL_0025: Label0
IL_0025: stloc.1
IL_0026: ldloc.1
IL_0027: brtrue => Label1
IL_002C: ldarg.2
IL_002D: ldsfld Verse.IntVec3 Verse.IntVec3::Invalid
IL_0032: stobj Verse.IntVec3
IL_0037: ldc.i4.0
IL_0038: br => Label2
IL_003D: Label1
IL_003D: ldloca.s 2 (Verse.AI.CastPositionRequest)
IL_003F: initobj Verse.AI.CastPositionRequest
IL_0045: ldloca.s 2 (Verse.AI.CastPositionRequest)
IL_0047: ldarg.1
IL_0048: stfld Verse.Pawn Verse.AI.CastPositionRequest::caster
IL_004D: ldloca.s 2 (Verse.AI.CastPositionRequest)
IL_004F: ldloc.0
IL_0050: stfld Verse.Thing Verse.AI.CastPositionRequest::target
IL_0055: ldloca.s 2 (Verse.AI.CastPositionRequest)
IL_0057: ldloc.1
IL_0058: stfld Verse.Verb Verse.AI.CastPositionRequest::verb
IL_005D: ldloca.s 2 (Verse.AI.CastPositionRequest)
IL_005F: ldc.r4 9999
IL_0064: stfld System.Single Verse.AI.CastPositionRequest::maxRangeFromTarget
IL_0069: ldloca.s 2 (Verse.AI.CastPositionRequest)
IL_006B: ldarg.1
IL_006C: ldfld Verse.AI.Pawn_MindState Verse.Pawn::mindState
IL_0071: ldfld Verse.AI.PawnDuty Verse.AI.Pawn_MindState::duty
IL_0076: ldfld Verse.LocalTargetInfo Verse.AI.PawnDuty::focus
IL_007B: call static Verse.IntVec3
Verse.LocalTargetInfo::op_Explicit(Verse.LocalTargetInfo targ)
IL_0080: stfld Verse.IntVec3 Verse.AI.CastPositionRequest::locus
IL_0085: ldloca.s 2 (Verse.AI.CastPositionRequest)
IL_0087: ldarg.1
IL_0088: ldfld Verse.AI.Pawn_MindState Verse.Pawn::mindState
IL_008D: ldfld Verse.AI.PawnDuty Verse.AI.Pawn_MindState::duty
IL_0092: ldfld System.Single Verse.AI.PawnDuty::radius
IL_0097: stfld System.Single Verse.AI.CastPositionRequest::maxRangeFromLocus
IL_009C: ldloca.s 2 (Verse.AI.CastPositionRequest)
IL_009E: ldloc.1
IL_009F: ldfld Verse.VerbProperties Verse.Verb::verbProps
IL_00A4: ldfld System.Single Verse.VerbProperties::range
IL_00A9: ldloc.1
IL_00AA: ldarg.1
IL_00AB: call static System.Single
VFESecurity.TrenchUtility::FinalAdjustedRangeFromTerrain(System.Single range,
Verse.Verb verb, Verse.Thing thing)
IL_00B0: ldc.r4 7
IL_00B5: cgt
IL_00B7: stfld System.Boolean
Verse.AI.CastPositionRequest::wantCoverFromTarget
IL_00BC: ldloc.2
IL_00BD: ldarg.2
IL_00BE: call static System.Boolean
Verse.AI.CastPositionFinder::TryFindCastPosition(Verse.AI.CastPositionRequest
newReq, Verse.IntVec3& dest)
IL_00C3: // end original
IL_00C3: Label2
IL_00C3: ret
DONE

### Patch: Verse.AI.PawnPath Verse.AI.PathFinder::FindPath(Verse.IntVec3 start,


Verse.LocalTargetInfo dest, Verse.TraverseParms traverseParms, Verse.AI.PathEndMode
peMode, Verse.AI.PathFinderCostTuning tuning)
### Replacement: static Verse.AI.PawnPath
Verse.AI.PathFinder::Verse.AI.PathFinder.FindPath_Patch0(Verse.AI.PathFinder this,
Verse.IntVec3 start, Verse.LocalTargetInfo dest, Verse.TraverseParms traverseParms,
Verse.AI.PathEndMode peMode, Verse.AI.PathFinderCostTuning tuning)
IL_0000: Local var 0: Verse.Pawn
IL_0000: Local var 1: System.Int32
IL_0000: Local var 2: System.Int32
IL_0000: Local var 3: System.Int32
IL_0000: Local var 4: System.Int32
IL_0000: Local var 5: Verse.ByteGrid
IL_0000: Local var 6: System.Boolean
IL_0000: Local var 7: System.Boolean
IL_0000: Local var 8: System.Boolean
IL_0000: Local var 9: Verse.CellRect
IL_0000: Local var 10: System.Boolean
IL_0000: Local var 11: System.Int32[]
IL_0000: Local var 12: Verse.TerrainDef[]
IL_0000: Local var 13: Verse.EdificeGrid
IL_0000: Local var 14: System.Int32
IL_0000: Local var 15: System.Int32
IL_0000: Local var 16: Verse.Area
IL_0000: Local var 17: Verse.BoolGrid
IL_0000: Local var 18: System.Boolean
IL_0000: Local var 19: System.Boolean
IL_0000: Local var 20: System.Boolean
IL_0000: Local var 21: System.Boolean
IL_0000: Local var 22: System.Boolean
IL_0000: Local var 23: System.Int32
IL_0000: Local var 24: System.Int32
IL_0000: Local var 25: System.Single
IL_0000: Local var 26: System.Int32
IL_0000: Local var 27: System.Int32
IL_0000: Local var 28: System.Int32
IL_0000: Local var 29: System.Int32
IL_0000: Local var 30: System.Single
IL_0000: Local var 31: System.Int32
IL_0000: Local var 32: System.Int32
IL_0000: Local var 33: System.Int32
IL_0000: Local var 34: System.Int32
IL_0000: Local var 35: Verse.IntVec3
IL_0000: Local var 36: System.Int32
IL_0000: Local var 37: System.Int32
IL_0000: Local var 38: System.String
IL_0000: Local var 39: System.String
IL_0000: Local var 40: System.Int32
IL_0000: Local var 41: System.UInt32
IL_0000: Local var 42: System.UInt32
IL_0000: Local var 43: System.Int32
IL_0000: Local var 44: System.Int32
IL_0000: Local var 45: System.Int32
IL_0000: Local var 46: System.Int32
IL_0000: Local var 47: System.Boolean
IL_0000: Local var 48: System.Int32
IL_0000: Local var 49: System.Int32
IL_0000: Local var 50: System.UInt16
IL_0000: Local var 51: System.Int32
IL_0000: Local var 52: Verse.Building
IL_0000: Local var 53: Verse.Building
IL_0000: Local var 54: System.Int32
IL_0000: Local var 55: System.Collections.Generic.List`1<RimWorld.Blueprint>
IL_0000: Local var 56: System.Int32
IL_0000: Local var 57: System.Int32
IL_0000: Local var 58: System.Int32
IL_0000: Local var 59: System.Int32
IL_0000: Local var 60: System.Int32
IL_0000: // start original
IL_0000: ldsfld System.Boolean Verse.DebugSettings::pathThroughWalls
IL_0005: brfalse => Label0
IL_000A: ldarga.s 3
IL_000C: ldc.i4.3
IL_000D: stfld Verse.TraverseMode Verse.TraverseParms::mode
IL_0012: Label0
IL_0012: ldarg.3
IL_0013: ldfld Verse.Pawn Verse.TraverseParms::pawn
IL_0018: stloc.0
IL_0019: ldloc.0
IL_001A: brfalse => Label1
IL_001F: ldloc.0
IL_0020: callvirt virtual Verse.Map Verse.Thing::get_Map()
IL_0025: ldarg.0
IL_0026: ldfld Verse.Map Verse.AI.PathFinder::map
IL_002B: beq => Label2
IL_0030: ldc.i4.6
IL_0031: newarr System.Object
IL_0036: dup
IL_0037: ldc.i4.0
IL_0038: ldstr "Tried to FindPath for pawn which is spawned in another map.
His map PathFinder should have been used, not this one. pawn="
IL_003D: stelem.ref
IL_003E: dup
IL_003F: ldc.i4.1
IL_0040: ldloc.0
IL_0041: stelem.ref
IL_0042: dup
IL_0043: ldc.i4.2
IL_0044: ldstr " pawn.Map="
IL_0049: stelem.ref
IL_004A: dup
IL_004B: ldc.i4.3
IL_004C: ldloc.0
IL_004D: callvirt virtual Verse.Map Verse.Thing::get_Map()
IL_0052: stelem.ref
IL_0053: dup
IL_0054: ldc.i4.4
IL_0055: ldstr " map="
IL_005A: stelem.ref
IL_005B: dup
IL_005C: ldc.i4.5
IL_005D: ldarg.0
IL_005E: ldfld Verse.Map Verse.AI.PathFinder::map
IL_0063: stelem.ref
IL_0064: call static System.String System.String::Concat(System.Object[]
args)
IL_0069: call static System.Void Verse.Log::Error(System.String text)
IL_006E: call static Verse.AI.PawnPath Verse.AI.PawnPath::get_NotFound()
IL_0073: br => Label123
IL_0078: Label1
IL_0078: Label2
IL_0078: ldarga.s 1
IL_007A: call System.Boolean Verse.IntVec3::get_IsValid()
IL_007F: brtrue => Label3
IL_0084: ldc.i4.4
IL_0085: newarr System.Object
IL_008A: dup
IL_008B: ldc.i4.0
IL_008C: ldstr "Tried to FindPath with invalid start "
IL_0091: stelem.ref
IL_0092: dup
IL_0093: ldc.i4.1
IL_0094: ldarg.1
IL_0095: box Verse.IntVec3
IL_009A: stelem.ref
IL_009B: dup
IL_009C: ldc.i4.2
IL_009D: ldstr ", pawn= "
IL_00A2: stelem.ref
IL_00A3: dup
IL_00A4: ldc.i4.3
IL_00A5: ldloc.0
IL_00A6: stelem.ref
IL_00A7: call static System.String System.String::Concat(System.Object[]
args)
IL_00AC: call static System.Void Verse.Log::Error(System.String text)
IL_00B1: call static Verse.AI.PawnPath Verse.AI.PawnPath::get_NotFound()
IL_00B6: br => Label124
IL_00BB: Label3
IL_00BB: ldarga.s 2
IL_00BD: call System.Boolean Verse.LocalTargetInfo::get_IsValid()
IL_00C2: brtrue => Label4
IL_00C7: ldc.i4.4
IL_00C8: newarr System.Object
IL_00CD: dup
IL_00CE: ldc.i4.0
IL_00CF: ldstr "Tried to FindPath with invalid dest "
IL_00D4: stelem.ref
IL_00D5: dup
IL_00D6: ldc.i4.1
IL_00D7: ldarg.2
IL_00D8: box Verse.LocalTargetInfo
IL_00DD: stelem.ref
IL_00DE: dup
IL_00DF: ldc.i4.2
IL_00E0: ldstr ", pawn= "
IL_00E5: stelem.ref
IL_00E6: dup
IL_00E7: ldc.i4.3
IL_00E8: ldloc.0
IL_00E9: stelem.ref
IL_00EA: call static System.String System.String::Concat(System.Object[]
args)
IL_00EF: call static System.Void Verse.Log::Error(System.String text)
IL_00F4: call static Verse.AI.PawnPath Verse.AI.PawnPath::get_NotFound()
IL_00F9: br => Label125
IL_00FE: Label4
IL_00FE: ldarg.3
IL_00FF: ldfld Verse.TraverseMode Verse.TraverseParms::mode
IL_0104: brtrue => Label5
IL_0109: ldloc.0
IL_010A: ldarg.2
IL_010B: ldarg.s 4
IL_010D: ldc.i4.3
IL_010E: ldarg.3
IL_010F: ldfld System.Boolean Verse.TraverseParms::canBashDoors
IL_0114: ldarg.3
IL_0115: ldfld System.Boolean Verse.TraverseParms::canBashFences
IL_011A: ldarg.3
IL_011B: ldfld Verse.TraverseMode Verse.TraverseParms::mode
IL_0120: call static System.Boolean
Verse.ReachabilityUtility::CanReach(Verse.Pawn pawn, Verse.LocalTargetInfo dest,
Verse.AI.PathEndMode peMode, Verse.Danger maxDanger, System.Boolean canBashDoors,
System.Boolean canBashFences, Verse.TraverseMode mode)
IL_0125: brtrue => Label6
IL_012A: call static Verse.AI.PawnPath Verse.AI.PawnPath::get_NotFound()
IL_012F: br => Label126
IL_0134: Label5
IL_0134: ldarg.0
IL_0135: ldfld Verse.Map Verse.AI.PathFinder::map
IL_013A: ldfld Verse.Reachability Verse.Map::reachability
IL_013F: ldarg.1
IL_0140: ldarg.2
IL_0141: ldarg.s 4
IL_0143: ldarg.3
IL_0144: callvirt System.Boolean Verse.Reachability::CanReach(Verse.IntVec3
start, Verse.LocalTargetInfo dest, Verse.AI.PathEndMode peMode, Verse.TraverseParms
traverseParams)
IL_0149: brtrue => Label7
IL_014E: call static Verse.AI.PawnPath Verse.AI.PawnPath::get_NotFound()
IL_0153: br => Label127
IL_0158: Label6
IL_0158: Label7
IL_0158: ldarg.0
IL_0159: ldc.i4.7
IL_015A: newarr System.Object
IL_015F: dup
IL_0160: ldc.i4.0
IL_0161: ldstr "FindPath for "
IL_0166: stelem.ref
IL_0167: dup
IL_0168: ldc.i4.1
IL_0169: ldloc.0
IL_016A: stelem.ref
IL_016B: dup
IL_016C: ldc.i4.2
IL_016D: ldstr " from "
IL_0172: stelem.ref
IL_0173: dup
IL_0174: ldc.i4.3
IL_0175: ldarg.1
IL_0176: box Verse.IntVec3
IL_017B: stelem.ref
IL_017C: dup
IL_017D: ldc.i4.4
IL_017E: ldstr " to "
IL_0183: stelem.ref
IL_0184: dup
IL_0185: ldc.i4.5
IL_0186: ldarg.2
IL_0187: box Verse.LocalTargetInfo
IL_018C: stelem.ref
IL_018D: dup
IL_018E: ldc.i4.6
IL_018F: ldarga.s 2
IL_0191: call System.Boolean Verse.LocalTargetInfo::get_HasThing()
IL_0196: brtrue => Label8
IL_019B: ldstr ""
IL_01A0: br => Label9
IL_01A5: Label8
IL_01A5: ldstr " at "
IL_01AA: ldarga.s 2
IL_01AC: call Verse.IntVec3 Verse.LocalTargetInfo::get_Cell()
IL_01B1: box Verse.IntVec3
IL_01B6: call static System.String System.String::Concat(System.Object arg0,
System.Object arg1)
IL_01BB: Label9
IL_01BB: stelem.ref
IL_01BC: call static System.String System.String::Concat(System.Object[]
args)
IL_01C1: call System.Void
Verse.AI.PathFinder::PfProfilerBeginSample(System.String s)
IL_01C6: ldarg.0
IL_01C7: ldarg.0
IL_01C8: ldfld Verse.Map Verse.AI.PathFinder::map
IL_01CD: ldfld Verse.CellIndices Verse.Map::cellIndices
IL_01D2: stfld Verse.CellIndices Verse.AI.PathFinder::cellIndices
IL_01D7: ldarg.0
IL_01D8: ldarg.0
IL_01D9: ldfld Verse.Map Verse.AI.PathFinder::map
IL_01DE: ldfld Verse.AI.Pathing Verse.Map::pathing
IL_01E3: ldarg.3
IL_01E4: callvirt Verse.AI.PathingContext
Verse.AI.Pathing::For(Verse.TraverseParms parms)
IL_01E9: stfld Verse.AI.PathingContext Verse.AI.PathFinder::pathingContext
IL_01EE: ldarg.0
IL_01EF: ldarg.0
IL_01F0: ldfld Verse.AI.PathingContext Verse.AI.PathFinder::pathingContext
IL_01F5: ldfld Verse.AI.PathGrid Verse.AI.PathingContext::pathGrid
IL_01FA: stfld Verse.AI.PathGrid Verse.AI.PathFinder::pathGrid
IL_01FF: ldarg.0
IL_0200: ldarg.3
IL_0201: stfld Verse.TraverseParms Verse.AI.PathFinder::traverseParms
IL_0206: ldarg.0
IL_0207: ldarg.0
IL_0208: ldfld Verse.Map Verse.AI.PathFinder::map
IL_020D: ldfld Verse.EdificeGrid Verse.Map::edificeGrid
IL_0212: callvirt Verse.Building[] Verse.EdificeGrid::get_InnerArray()
IL_0217: stfld Verse.Building[] Verse.AI.PathFinder::edificeGrid
IL_021C: ldarg.0
IL_021D: ldarg.0
IL_021E: ldfld Verse.Map Verse.AI.PathFinder::map
IL_0223: ldfld Verse.BlueprintGrid Verse.Map::blueprintGrid
IL_0228: callvirt System.Collections.Generic.List`1[]
Verse.BlueprintGrid::get_InnerArray()
IL_022D: stfld System.Collections.Generic.List`1[]
Verse.AI.PathFinder::blueprintGrid
IL_0232: ldarga.s 2
IL_0234: call Verse.IntVec3 Verse.LocalTargetInfo::get_Cell()
IL_0239: ldfld System.Int32 Verse.IntVec3::x
IL_023E: stloc.1
IL_023F: ldarga.s 2
IL_0241: call Verse.IntVec3 Verse.LocalTargetInfo::get_Cell()
IL_0246: ldfld System.Int32 Verse.IntVec3::z
IL_024B: stloc.2
IL_024C: ldarg.0
IL_024D: ldfld Verse.CellIndices Verse.AI.PathFinder::cellIndices
IL_0252: ldarg.1
IL_0253: callvirt System.Int32 Verse.CellIndices::CellToIndex(Verse.IntVec3 c)
IL_0258: stloc.3
IL_0259: ldarg.0
IL_025A: ldfld Verse.CellIndices Verse.AI.PathFinder::cellIndices
IL_025F: ldarga.s 2
IL_0261: call Verse.IntVec3 Verse.LocalTargetInfo::get_Cell()
IL_0266: callvirt System.Int32 Verse.CellIndices::CellToIndex(Verse.IntVec3 c)
IL_026B: stloc.s 4 (System.Int32)
IL_026D: ldarg.3
IL_026E: ldfld System.Boolean Verse.TraverseParms::alwaysUseAvoidGrid
IL_0273: brtrue => Label10
IL_0278: ldloc.0
IL_0279: brtrue => Label11
IL_027E: ldnull
IL_027F: br => Label12
IL_0284: Label11
IL_0284: ldloc.0
IL_0285: ldc.i4.1
IL_0286: call static Verse.ByteGrid
RimWorld.PawnUtility::GetAvoidGrid(Verse.Pawn p, System.Boolean onlyIfLordAllows)
IL_028B: br => Label13
IL_0290: Label10
IL_0290: ldarg.0
IL_0291: ldfld Verse.Map Verse.AI.PathFinder::map
IL_0296: ldfld Verse.AI.AvoidGrid Verse.Map::avoidGrid
IL_029B: callvirt Verse.ByteGrid Verse.AI.AvoidGrid::get_Grid()
IL_02A0: Label12
IL_02A0: Label13
IL_02A0: stloc.s 5 (Verse.ByteGrid)
IL_02A2: ldarg.3
IL_02A3: ldfld Verse.TraverseMode Verse.TraverseParms::mode
IL_02A8: ldc.i4.3
IL_02A9: beq => Label14
IL_02AE: ldarg.3
IL_02AF: ldfld Verse.TraverseMode Verse.TraverseParms::mode
IL_02B4: ldc.i4.5
IL_02B5: ceq
IL_02B7: br => Label15
IL_02BC: Label14
IL_02BC: ldc.i4.1
IL_02BD: Label15
IL_02BD: stloc.s 6 (System.Boolean)
IL_02BF: ldarg.3
IL_02C0: ldfld Verse.TraverseMode Verse.TraverseParms::mode
IL_02C5: ldc.i4.4
IL_02C6: beq => Label16
IL_02CB: ldarg.3
IL_02CC: ldfld Verse.TraverseMode Verse.TraverseParms::mode
IL_02D1: ldc.i4.5
IL_02D2: ceq
IL_02D4: ldc.i4.0
IL_02D5: ceq
IL_02D7: br => Label17
IL_02DC: Label16
IL_02DC: ldc.i4.0
IL_02DD: Label17
IL_02DD: stloc.s 7 (System.Boolean)
IL_02DF: ldloc.s 6 (System.Boolean)
IL_02E1: ldc.i4.0
IL_02E2: ceq
IL_02E4: stloc.s 8 (System.Boolean)
IL_02E6: ldarg.0
IL_02E7: ldarg.2
IL_02E8: ldarg.s 4
IL_02EA: call Verse.CellRect
Verse.AI.PathFinder::CalculateDestinationRect(Verse.LocalTargetInfo dest,
Verse.AI.PathEndMode peMode)
IL_02EF: stloc.s 9 (Verse.CellRect)
IL_02F1: ldloca.s 9 (Verse.CellRect)
IL_02F3: call System.Int32 Verse.CellRect::get_Width()
IL_02F8: ldc.i4.1
IL_02F9: bne.un => Label18
IL_02FE: ldloca.s 9 (Verse.CellRect)
IL_0300: call System.Int32 Verse.CellRect::get_Height()
IL_0305: ldc.i4.1
IL_0306: ceq
IL_0308: br => Label19
IL_030D: Label18
IL_030D: ldc.i4.0
IL_030E: Label19
IL_030E: stloc.s 10 (System.Boolean)
IL_0310: ldarg.0
IL_0311: ldfld Verse.AI.PathGrid Verse.AI.PathFinder::pathGrid
IL_0316: ldfld System.Int32[] Verse.AI.PathGrid::pathGrid
IL_031B: stloc.s 11 (System.Int32[])
IL_031D: ldarg.0
IL_031E: ldfld Verse.Map Verse.AI.PathFinder::map
IL_0323: ldfld Verse.TerrainGrid Verse.Map::terrainGrid
IL_0328: ldfld Verse.TerrainDef[] Verse.TerrainGrid::topGrid
IL_032D: stloc.s 12 (Verse.TerrainDef[])
IL_032F: ldarg.0
IL_0330: ldfld Verse.Map Verse.AI.PathFinder::map
IL_0335: ldfld Verse.EdificeGrid Verse.Map::edificeGrid
IL_033A: stloc.s 13 (Verse.EdificeGrid)
IL_033C: ldc.i4.0
IL_033D: stloc.s 14 (System.Int32)
IL_033F: ldc.i4.0
IL_0340: stloc.s 15 (System.Int32)
IL_0342: ldarg.0
IL_0343: ldloc.0
IL_0344: call Verse.Area Verse.AI.PathFinder::GetAllowedArea(Verse.Pawn pawn)
IL_0349: stloc.s 16 (Verse.Area)
IL_034B: ldarg.0
IL_034C: ldloc.0
IL_034D: call Verse.BoolGrid Verse.AI.PathFinder::GetLordWalkGrid(Verse.Pawn
pawn)
IL_0352: stloc.s 17 (Verse.BoolGrid)
IL_0354: ldloc.0
IL_0355: brtrue => Label20
IL_035A: ldc.i4.0
IL_035B: br => Label21
IL_0360: Label20
IL_0360: ldloc.0
IL_0361: call static System.Boolean
RimWorld.PawnUtility::ShouldCollideWithPawns(Verse.Pawn p)
IL_0366: Label21
IL_0366: stloc.s 18 (System.Boolean)
IL_0368: ldloc.s 6 (System.Boolean)
IL_036A: brtrue => Label22
IL_036F: ldarg.1
IL_0370: ldarg.0
IL_0371: ldfld Verse.Map Verse.AI.PathFinder::map
IL_0376: ldc.i4.s 14
IL_0378: call static Verse.Region Verse.GridsUtility::GetRegion(Verse.IntVec3
loc, Verse.Map map, Verse.RegionType allowedRegionTypes)
IL_037D: ldnull
IL_037E: cgt.un
IL_0380: br => Label23
IL_0385: Label22
IL_0385: ldc.i4.0
IL_0386: Label23
IL_0386: ldloc.s 7 (System.Boolean)
IL_0388: and
IL_0389: stloc.s 19 (System.Boolean)
IL_038B: ldloc.s 6 (System.Boolean)
IL_038D: brfalse => Label24
IL_0392: ldloc.s 8 (System.Boolean)
IL_0394: ldc.i4.0
IL_0395: ceq
IL_0397: br => Label25
IL_039C: Label24
IL_039C: ldc.i4.1
IL_039D: Label25
IL_039D: stloc.s 20 (System.Boolean)
IL_039F: ldc.i4.0
IL_03A0: stloc.s 21 (System.Boolean)
IL_03A2: ldloc.0
IL_03A3: brtrue => Label26
IL_03A8: ldc.i4.0
IL_03A9: br => Label27
IL_03AE: Label26
IL_03AE: ldloc.0
IL_03AF: callvirt System.Boolean Verse.Pawn::get_Drafted()
IL_03B4: Label27
IL_03B4: stloc.s 22 (System.Boolean)
IL_03B6: ldloc.0
IL_03B7: brtrue => Label28
IL_03BC: ldc.i4.0
IL_03BD: br => Label29
IL_03C2: Label28
IL_03C2: ldloc.0
IL_03C3: callvirt System.Boolean Verse.Pawn::get_IsColonist()
IL_03C8: Label29
IL_03C8: brtrue => Label30
IL_03CD: ldc.i4 2000
IL_03D2: br => Label31
IL_03D7: Label30
IL_03D7: ldc.i4 100000
IL_03DC: Label31
IL_03DC: stloc.s 23 (System.Int32)
IL_03DE: ldarg.s 5
IL_03E0: dup
IL_03E1: brtrue => Label32
IL_03E6: pop
IL_03E7: ldsfld Verse.AI.PathFinderCostTuning
Verse.AI.PathFinderCostTuning::DefaultTuning
IL_03EC: Label32
IL_03EC: starg.s 5
IL_03EE: ldarg.s 5
IL_03F0: ldfld System.Int32 Verse.AI.PathFinderCostTuning::costBlockedWallBase
IL_03F5: stloc.s 24 (System.Int32)
IL_03F7: ldarg.s 5
IL_03F9: ldfld System.Single
Verse.AI.PathFinderCostTuning::costBlockedWallExtraPerHitPoint
IL_03FE: stloc.s 25 (System.Single)
IL_0400: ldarg.s 5
IL_0402: ldfld System.Int32
Verse.AI.PathFinderCostTuning::costBlockedWallExtraForNaturalWalls
IL_0407: stloc.s 26 (System.Int32)
IL_0409: ldarg.s 5
IL_040B: ldfld System.Int32 Verse.AI.PathFinderCostTuning::costOffLordWalkGrid
IL_0410: stloc.s 27 (System.Int32)
IL_0412: ldc.i4.0
IL_0413: stloc.s 28 (System.Int32)
IL_0415: ldc.i4.0
IL_0416: stloc.s 29 (System.Int32)
IL_0418: ldarg.0
IL_0419: ldloc.0
IL_041A: ldarg.1
IL_041B: ldarg.2
IL_041C: call System.Single
Verse.AI.PathFinder::DetermineHeuristicStrength(Verse.Pawn pawn, Verse.IntVec3
start, Verse.LocalTargetInfo dest)
IL_0421: stloc.s 30 (System.Single)
IL_0423: ldloc.0
IL_0424: brfalse => Label33
IL_0429: ldloc.0
IL_042A: callvirt System.Int32 Verse.Pawn::get_TicksPerMoveCardinal()
IL_042F: stloc.s 31 (System.Int32)
IL_0431: ldloc.0
IL_0432: callvirt System.Int32 Verse.Pawn::get_TicksPerMoveDiagonal()
IL_0437: stloc.s 32 (System.Int32)
IL_0439: br => Label34
IL_043E: Label33
IL_043E: ldc.i4.s 13
IL_0440: stloc.s 31 (System.Int32)
IL_0442: ldc.i4.s 18
IL_0444: stloc.s 32 (System.Int32)
IL_0446: Label34
IL_0446: ldarg.0
IL_0447: ldarg.s 4
IL_0449: ldloc.s 9 (Verse.CellRect)
IL_044B: call System.Void
Verse.AI.PathFinder::CalculateAndAddDisallowedCorners(Verse.AI.PathEndMode peMode,
Verse.CellRect destinationRect)
IL_0450: ldarg.0
IL_0451: ldloca.s 3 (System.Int32)
IL_0453: ldarg.1
IL_0454: call System.Void
Verse.AI.PathFinder::InitStatusesAndPushStartNode(System.Int32& curIndex,
Verse.IntVec3 start)
IL_0459: Label43
IL_0459: Label45
IL_0459: Label120
IL_0459: Label121
IL_0459: Label122
IL_0459: ldarg.0
IL_045A: ldstr "Open cell"
IL_045F: call System.Void
Verse.AI.PathFinder::PfProfilerBeginSample(System.String s)
IL_0464: ldarg.0
IL_0465: ldfld System.Collections.Generic.PriorityQueue`2<System.Int32,
System.Int32> Verse.AI.PathFinder::openList
IL_046A: ldloca.s 33 (System.Int32)
IL_046C: ldloca.s 34 (System.Int32)
IL_046E: callvirt System.Boolean
System.Collections.Generic.PriorityQueue`2<System.Int32,
System.Int32>::TryDequeue(System.Int32& element, System.Int32& priority)
IL_0473: brtrue => Label35
IL_0478: ldloc.0
IL_0479: brfalse => Label36
IL_047E: ldloc.0
IL_047F: callvirt Verse.AI.Job Verse.Pawn::get_CurJob()
IL_0484: brtrue => Label37
IL_0489: Label36
IL_0489: ldstr "null"
IL_048E: br => Label38
IL_0493: Label37
IL_0493: ldloc.0
IL_0494: callvirt Verse.AI.Job Verse.Pawn::get_CurJob()
IL_0499: callvirt virtual System.String System.Object::ToString()
IL_049E: Label38
IL_049E: stloc.s 38 (System.String)
IL_04A0: ldloc.0
IL_04A1: brfalse => Label39
IL_04A6: ldloc.0
IL_04A7: callvirt virtual RimWorld.Faction Verse.Thing::get_Faction()
IL_04AC: brtrue => Label40
IL_04B1: Label39
IL_04B1: ldstr "null"
IL_04B6: br => Label41
IL_04BB: Label40
IL_04BB: ldloc.0
IL_04BC: callvirt virtual RimWorld.Faction Verse.Thing::get_Faction()
IL_04C1: callvirt virtual System.String System.Object::ToString()
IL_04C6: Label41
IL_04C6: stloc.s 39 (System.String)
IL_04C8: ldc.i4.s 9
IL_04CA: newarr System.Object
IL_04CF: dup
IL_04D0: ldc.i4.0
IL_04D1: ldloc.0
IL_04D2: stelem.ref
IL_04D3: dup
IL_04D4: ldc.i4.1
IL_04D5: ldstr " pathing from "
IL_04DA: stelem.ref
IL_04DB: dup
IL_04DC: ldc.i4.2
IL_04DD: ldarg.1
IL_04DE: box Verse.IntVec3
IL_04E3: stelem.ref
IL_04E4: dup
IL_04E5: ldc.i4.3
IL_04E6: ldstr " to "
IL_04EB: stelem.ref
IL_04EC: dup
IL_04ED: ldc.i4.4
IL_04EE: ldarg.2
IL_04EF: box Verse.LocalTargetInfo
IL_04F4: stelem.ref
IL_04F5: dup
IL_04F6: ldc.i4.5
IL_04F7: ldstr " ran out of cells to process.\nJob:"
IL_04FC: stelem.ref
IL_04FD: dup
IL_04FE: ldc.i4.6
IL_04FF: ldloc.s 38 (System.String)
IL_0501: stelem.ref
IL_0502: dup
IL_0503: ldc.i4.7
IL_0504: ldstr "\nFaction: "
IL_0509: stelem.ref
IL_050A: dup
IL_050B: ldc.i4.8
IL_050C: ldloc.s 39 (System.String)
IL_050E: stelem.ref
IL_050F: call static System.String System.String::Concat(System.Object[]
args)
IL_0514: call static System.Void Verse.Log::Warning(System.String text)
IL_0519: ldarg.0
IL_051A: call System.Void Verse.AI.PathFinder::DebugDrawRichData()
IL_051F: ldarg.0
IL_0520: call System.Void Verse.AI.PathFinder::PfProfilerEndSample()
IL_0525: ldarg.0
IL_0526: call System.Void Verse.AI.PathFinder::PfProfilerEndSample()
IL_052B: call static Verse.AI.PawnPath Verse.AI.PawnPath::get_NotFound()
IL_0530: br => Label128
IL_0535: Label35
IL_0535: ldloc.s 28 (System.Int32)
IL_0537: ldarg.0
IL_0538: ldfld System.Collections.Generic.PriorityQueue`2<System.Int32,
System.Int32> Verse.AI.PathFinder::openList
IL_053D: callvirt System.Int32
System.Collections.Generic.PriorityQueue`2<System.Int32, System.Int32>::get_Count()
IL_0542: add
IL_0543: stloc.s 28 (System.Int32)
IL_0545: ldloc.s 29 (System.Int32)
IL_0547: ldc.i4.1
IL_0548: add
IL_0549: stloc.s 29 (System.Int32)
IL_054B: ldloc.s 33 (System.Int32)
IL_054D: stloc.3
IL_054E: ldloc.s 34 (System.Int32)
IL_0550: ldsfld PathFinderNodeFast[] Verse.AI.PathFinder::calcGrid
IL_0555: ldloc.3
IL_0556: ldelema Verse.AI.PathFinder+PathFinderNodeFast
IL_055B: ldfld System.Int32 Verse.AI.PathFinderNodeFast::costNodeCost
IL_0560: beq => Label42
IL_0565: ldarg.0
IL_0566: call System.Void Verse.AI.PathFinder::PfProfilerEndSample()
IL_056B: br => Label43
IL_0570: Label42
IL_0570: ldsfld PathFinderNodeFast[] Verse.AI.PathFinder::calcGrid
IL_0575: ldloc.3
IL_0576: ldelema Verse.AI.PathFinder+PathFinderNodeFast
IL_057B: ldfld System.UInt16 Verse.AI.PathFinderNodeFast::status
IL_0580: ldsfld System.UInt16 Verse.AI.PathFinder::statusClosedValue
IL_0585: bne.un => Label44
IL_058A: ldarg.0
IL_058B: call System.Void Verse.AI.PathFinder::PfProfilerEndSample()
IL_0590: br => Label45
IL_0595: Label44
IL_0595: ldarg.0
IL_0596: ldfld Verse.CellIndices Verse.AI.PathFinder::cellIndices
IL_059B: ldloc.3
IL_059C: callvirt Verse.IntVec3 Verse.CellIndices::IndexToCell(System.Int32 ind)
IL_05A1: stloc.s 35 (Verse.IntVec3)
IL_05A3: ldloc.s 35 (Verse.IntVec3)
IL_05A5: ldfld System.Int32 Verse.IntVec3::x
IL_05AA: stloc.s 36 (System.Int32)
IL_05AC: ldloc.s 35 (Verse.IntVec3)
IL_05AE: ldfld System.Int32 Verse.IntVec3::z
IL_05B3: stloc.s 37 (System.Int32)
IL_05B5: ldloc.s 10 (System.Boolean)
IL_05B7: brfalse => Label46
IL_05BC: ldloc.3
IL_05BD: ldloc.s 4 (System.Int32)
IL_05BF: bne.un => Label47
IL_05C4: ldarg.0
IL_05C5: call System.Void Verse.AI.PathFinder::PfProfilerEndSample()
IL_05CA: ldarg.0
IL_05CB: ldloc.3
IL_05CC: ldloc.s 21 (System.Boolean)
IL_05CE: call Verse.AI.PawnPath
Verse.AI.PathFinder::FinalizedPath(System.Int32 finalIndex, System.Boolean
usedRegionHeuristics)
IL_05D3: ldarg.0
IL_05D4: call System.Void Verse.AI.PathFinder::PfProfilerEndSample()
IL_05D9: br => Label129
IL_05DE: Label46
IL_05DE: ldloca.s 9 (Verse.CellRect)
IL_05E0: ldloc.s 35 (Verse.IntVec3)
IL_05E2: call System.Boolean Verse.CellRect::Contains(Verse.IntVec3 c)
IL_05E7: brfalse => Label48
IL_05EC: ldarg.0
IL_05ED: ldfld System.Collections.Generic.List`1<System.Int32>
Verse.AI.PathFinder::disallowedCornerIndices
IL_05F2: ldloc.3
IL_05F3: callvirt virtual System.Boolean
System.Collections.Generic.List`1<System.Int32>::Contains(System.Int32 item)
IL_05F8: brtrue => Label49
IL_05FD: ldarg.0
IL_05FE: call System.Void Verse.AI.PathFinder::PfProfilerEndSample()
IL_0603: ldarg.0
IL_0604: ldloc.3
IL_0605: ldloc.s 21 (System.Boolean)
IL_0607: call Verse.AI.PawnPath
Verse.AI.PathFinder::FinalizedPath(System.Int32 finalIndex, System.Boolean
usedRegionHeuristics)
IL_060C: ldarg.0
IL_060D: call System.Void Verse.AI.PathFinder::PfProfilerEndSample()
IL_0612: br => Label130
IL_0617: Label47
IL_0617: Label48
IL_0617: Label49
IL_0617: ldloc.s 14 (System.Int32)
IL_0619: ldc.i4 160000
IL_061E: ble => Label50
IL_0623: ldc.i4.8
IL_0624: newarr System.Object
IL_0629: dup
IL_062A: ldc.i4.0
IL_062B: ldloc.0
IL_062C: stelem.ref
IL_062D: dup
IL_062E: ldc.i4.1
IL_062F: ldstr " pathing from "
IL_0634: stelem.ref
IL_0635: dup
IL_0636: ldc.i4.2
IL_0637: ldarg.1
IL_0638: box Verse.IntVec3
IL_063D: stelem.ref
IL_063E: dup
IL_063F: ldc.i4.3
IL_0640: ldstr " to "
IL_0645: stelem.ref
IL_0646: dup
IL_0647: ldc.i4.4
IL_0648: ldarg.2
IL_0649: box Verse.LocalTargetInfo
IL_064E: stelem.ref
IL_064F: dup
IL_0650: ldc.i4.5
IL_0651: ldstr " hit search limit of "
IL_0656: stelem.ref
IL_0657: dup
IL_0658: ldc.i4.6
IL_0659: ldc.i4 160000
IL_065E: box System.Int32
IL_0663: stelem.ref
IL_0664: dup
IL_0665: ldc.i4.7
IL_0666: ldstr " cells."
IL_066B: stelem.ref
IL_066C: call static System.String System.String::Concat(System.Object[]
args)
IL_0671: call static System.Void Verse.Log::Warning(System.String text)
IL_0676: ldarg.0
IL_0677: call System.Void Verse.AI.PathFinder::DebugDrawRichData()
IL_067C: ldarg.0
IL_067D: call System.Void Verse.AI.PathFinder::PfProfilerEndSample()
IL_0682: ldarg.0
IL_0683: call System.Void Verse.AI.PathFinder::PfProfilerEndSample()
IL_0688: call static Verse.AI.PawnPath Verse.AI.PawnPath::get_NotFound()
IL_068D: br => Label131
IL_0692: Label50
IL_0692: ldarg.0
IL_0693: call System.Void Verse.AI.PathFinder::PfProfilerEndSample()
IL_0698: ldarg.0
IL_0699: ldstr "Neighbor consideration"
IL_069E: call System.Void
Verse.AI.PathFinder::PfProfilerBeginSample(System.String s)
IL_06A3: ldc.i4.0
IL_06A4: stloc.s 40 (System.Int32)
IL_06A6: br => Label51
IL_06AB: Label119
IL_06AB: ldloc.s 36 (System.Int32)
IL_06AD: ldsfld System.Int32[] Verse.AI.PathFinder::Directions
IL_06B2: ldloc.s 40 (System.Int32)
IL_06B4: ldelem.i4
IL_06B5: add
IL_06B6: stloc.s 41 (System.UInt32)
IL_06B8: ldloc.s 37 (System.Int32)
IL_06BA: ldsfld System.Int32[] Verse.AI.PathFinder::Directions
IL_06BF: ldloc.s 40 (System.Int32)
IL_06C1: ldc.i4.8
IL_06C2: add
IL_06C3: ldelem.i4
IL_06C4: add
IL_06C5: stloc.s 42 (System.UInt32)
IL_06C7: ldloc.s 41 (System.UInt32)
IL_06C9: conv.u8
IL_06CA: ldarg.0
IL_06CB: ldfld System.Int32 Verse.AI.PathFinder::mapSizeX
IL_06D0: conv.i8
IL_06D1: bge => Label52
IL_06D6: ldloc.s 42 (System.UInt32)
IL_06D8: conv.u8
IL_06D9: ldarg.0
IL_06DA: ldfld System.Int32 Verse.AI.PathFinder::mapSizeZ
IL_06DF: conv.i8
IL_06E0: bge => Label53
IL_06E5: ldloc.s 41 (System.UInt32)
IL_06E7: stloc.s 43 (System.Int32)
IL_06E9: ldloc.s 42 (System.UInt32)
IL_06EB: stloc.s 44 (System.Int32)
IL_06ED: ldarg.0
IL_06EE: ldfld Verse.CellIndices Verse.AI.PathFinder::cellIndices
IL_06F3: ldloc.s 43 (System.Int32)
IL_06F5: ldloc.s 44 (System.Int32)
IL_06F7: callvirt System.Int32 Verse.CellIndices::CellToIndex(System.Int32 x,
System.Int32 z)
IL_06FC: stloc.s 45 (System.Int32)
IL_06FE: ldsfld PathFinderNodeFast[] Verse.AI.PathFinder::calcGrid
IL_0703: ldloc.s 45 (System.Int32)
IL_0705: ldelema Verse.AI.PathFinder+PathFinderNodeFast
IL_070A: ldfld System.UInt16 Verse.AI.PathFinderNodeFast::status
IL_070F: ldsfld System.UInt16 Verse.AI.PathFinder::statusClosedValue
IL_0714: bne.un => Label54
IL_0719: ldloc.s 21 (System.Boolean)
IL_071B: brfalse => Label55
IL_0720: Label54
IL_0720: ldc.i4.0
IL_0721: stloc.s 46 (System.Int32)
IL_0723: ldc.i4.0
IL_0724: stloc.s 47 (System.Boolean)
IL_0726: ldloc.s 7 (System.Boolean)
IL_0728: brtrue => Label56
IL_072D: ldloc.s 43 (System.Int32)
IL_072F: ldc.i4.0
IL_0730: ldloc.s 44 (System.Int32)
IL_0732: newobj System.Void Verse.IntVec3::.ctor(System.Int32 newX,
System.Int32 newY, System.Int32 newZ)
IL_0737: ldarg.0
IL_0738: ldfld Verse.Map Verse.AI.PathFinder::map
IL_073D: call static Verse.TerrainDef
Verse.GridsUtility::GetTerrain(Verse.IntVec3 c, Verse.Map map)
IL_0742: ldstr "Water"
IL_0747: callvirt System.Boolean Verse.TerrainDef::HasTag(System.String tag)
IL_074C: brtrue => Label57
IL_0751: Label56
IL_0751: ldarg.0
IL_0752: ldfld Verse.AI.PathGrid Verse.AI.PathFinder::pathGrid
IL_0757: ldloc.s 45 (System.Int32)
IL_0759: callvirt System.Boolean Verse.AI.PathGrid::WalkableFast(System.Int32
index)
IL_075E: brtrue => Label58
IL_0763: ldloc.s 6 (System.Boolean)
IL_0765: brfalse => Label59
IL_076A: ldc.i4.1
IL_076B: stloc.s 47 (System.Boolean)
IL_076D: ldloc.s 46 (System.Int32)
IL_076F: ldloc.s 24 (System.Int32)
IL_0771: add
IL_0772: stloc.s 46 (System.Int32)
IL_0774: ldloc.s 13 (Verse.EdificeGrid)
IL_0776: ldloc.s 45 (System.Int32)
IL_0778: callvirt Verse.Building Verse.EdificeGrid::get_Item(System.Int32 index)
IL_077D: stloc.s 52 (Verse.Building)
IL_077F: ldloc.s 52 (Verse.Building)
IL_0781: brfalse => Label60
IL_0786: ldloc.s 52 (Verse.Building)
IL_0788: call static System.Boolean
Verse.AI.PathFinder::IsDestroyable(Verse.Thing th)
IL_078D: brfalse => Label61
IL_0792: ldloc.s 46 (System.Int32)
IL_0794: ldloc.s 52 (Verse.Building)
IL_0796: callvirt virtual System.Int32 Verse.Thing::get_HitPoints()
IL_079B: conv.r4
IL_079C: ldloc.s 25 (System.Single)
IL_079E: mul
IL_079F: conv.i4
IL_07A0: add
IL_07A1: stloc.s 46 (System.Int32)
IL_07A3: ldloc.s 52 (Verse.Building)
IL_07A5: ldfld Verse.ThingDef Verse.Thing::def
IL_07AA: callvirt System.Boolean Verse.ThingDef::get_IsBuildingArtificial()
IL_07AF: brtrue => Label62
IL_07B4: ldloc.s 46 (System.Int32)
IL_07B6: ldloc.s 26 (System.Int32)
IL_07B8: add
IL_07B9: stloc.s 46 (System.Int32)
IL_07BB: Label58
IL_07BB: Label62
IL_07BB: ldloc.s 40 (System.Int32)
IL_07BD: ldc.i4.3
IL_07BE: ble => Label63
IL_07C3: ldloc.s 40 (System.Int32)
IL_07C5: ldc.i4.4
IL_07C6: sub
IL_07C7: switch => Labels64,65,66,67
IL_07DC: br => Label68
IL_07E1: Label64
IL_07E1: ldarg.0
IL_07E2: ldloc.3
IL_07E3: ldarg.0
IL_07E4: ldfld System.Int32 Verse.AI.PathFinder::mapSizeX
IL_07E9: sub
IL_07EA: call System.Boolean
Verse.AI.PathFinder::BlocksDiagonalMovement(System.Int32 index)
IL_07EF: brfalse => Label69
IL_07F4: ldloc.s 20 (System.Boolean)
IL_07F6: brtrue => Label70
IL_07FB: ldloc.s 46 (System.Int32)
IL_07FD: ldloc.s 24 (System.Int32)
IL_07FF: add
IL_0800: stloc.s 46 (System.Int32)
IL_0802: Label69
IL_0802: ldarg.0
IL_0803: ldloc.3
IL_0804: ldc.i4.1
IL_0805: add
IL_0806: call System.Boolean
Verse.AI.PathFinder::BlocksDiagonalMovement(System.Int32 index)
IL_080B: brfalse => Label71
IL_0810: ldloc.s 20 (System.Boolean)
IL_0812: brtrue => Label72
IL_0817: ldloc.s 46 (System.Int32)
IL_0819: ldloc.s 24 (System.Int32)
IL_081B: add
IL_081C: stloc.s 46 (System.Int32)
IL_081E: br => Label73
IL_0823: Label65
IL_0823: ldarg.0
IL_0824: ldloc.3
IL_0825: ldarg.0
IL_0826: ldfld System.Int32 Verse.AI.PathFinder::mapSizeX
IL_082B: add
IL_082C: call System.Boolean
Verse.AI.PathFinder::BlocksDiagonalMovement(System.Int32 index)
IL_0831: brfalse => Label74
IL_0836: ldloc.s 20 (System.Boolean)
IL_0838: brtrue => Label75
IL_083D: ldloc.s 46 (System.Int32)
IL_083F: ldloc.s 24 (System.Int32)
IL_0841: add
IL_0842: stloc.s 46 (System.Int32)
IL_0844: Label74
IL_0844: ldarg.0
IL_0845: ldloc.3
IL_0846: ldc.i4.1
IL_0847: add
IL_0848: call System.Boolean
Verse.AI.PathFinder::BlocksDiagonalMovement(System.Int32 index)
IL_084D: brfalse => Label76
IL_0852: ldloc.s 20 (System.Boolean)
IL_0854: brtrue => Label77
IL_0859: ldloc.s 46 (System.Int32)
IL_085B: ldloc.s 24 (System.Int32)
IL_085D: add
IL_085E: stloc.s 46 (System.Int32)
IL_0860: br => Label78
IL_0865: Label66
IL_0865: ldarg.0
IL_0866: ldloc.3
IL_0867: ldarg.0
IL_0868: ldfld System.Int32 Verse.AI.PathFinder::mapSizeX
IL_086D: add
IL_086E: call System.Boolean
Verse.AI.PathFinder::BlocksDiagonalMovement(System.Int32 index)
IL_0873: brfalse => Label79
IL_0878: ldloc.s 20 (System.Boolean)
IL_087A: brtrue => Label80
IL_087F: ldloc.s 46 (System.Int32)
IL_0881: ldloc.s 24 (System.Int32)
IL_0883: add
IL_0884: stloc.s 46 (System.Int32)
IL_0886: Label79
IL_0886: ldarg.0
IL_0887: ldloc.3
IL_0888: ldc.i4.1
IL_0889: sub
IL_088A: call System.Boolean
Verse.AI.PathFinder::BlocksDiagonalMovement(System.Int32 index)
IL_088F: brfalse => Label81
IL_0894: ldloc.s 20 (System.Boolean)
IL_0896: brtrue => Label82
IL_089B: ldloc.s 46 (System.Int32)
IL_089D: ldloc.s 24 (System.Int32)
IL_089F: add
IL_08A0: stloc.s 46 (System.Int32)
IL_08A2: br => Label83
IL_08A7: Label67
IL_08A7: ldarg.0
IL_08A8: ldloc.3
IL_08A9: ldarg.0
IL_08AA: ldfld System.Int32 Verse.AI.PathFinder::mapSizeX
IL_08AF: sub
IL_08B0: call System.Boolean
Verse.AI.PathFinder::BlocksDiagonalMovement(System.Int32 index)
IL_08B5: brfalse => Label84
IL_08BA: ldloc.s 20 (System.Boolean)
IL_08BC: brtrue => Label85
IL_08C1: ldloc.s 46 (System.Int32)
IL_08C3: ldloc.s 24 (System.Int32)
IL_08C5: add
IL_08C6: stloc.s 46 (System.Int32)
IL_08C8: Label84
IL_08C8: ldarg.0
IL_08C9: ldloc.3
IL_08CA: ldc.i4.1
IL_08CB: sub
IL_08CC: call System.Boolean
Verse.AI.PathFinder::BlocksDiagonalMovement(System.Int32 index)
IL_08D1: brfalse => Label86
IL_08D6: ldloc.s 20 (System.Boolean)
IL_08D8: brtrue => Label87
IL_08DD: ldloc.s 46 (System.Int32)
IL_08DF: ldloc.s 24 (System.Int32)
IL_08E1: add
IL_08E2: stloc.s 46 (System.Int32)
IL_08E4: Label63
IL_08E4: Label68
IL_08E4: Label71
IL_08E4: Label73
IL_08E4: Label76
IL_08E4: Label78
IL_08E4: Label81
IL_08E4: Label83
IL_08E4: Label86
IL_08E4: ldloc.s 40 (System.Int32)
IL_08E6: ldc.i4.3
IL_08E7: bgt => Label88
IL_08EC: ldloc.s 31 (System.Int32)
IL_08EE: br => Label89
IL_08F3: Label88
IL_08F3: ldloc.s 32 (System.Int32)
IL_08F5: Label89
IL_08F5: stloc.s 48 (System.Int32)
IL_08F7: ldloc.s 48 (System.Int32)
IL_08F9: ldloc.s 46 (System.Int32)
IL_08FB: add
IL_08FC: stloc.s 48 (System.Int32)
IL_08FE: ldloc.s 47 (System.Boolean)
IL_0900: brtrue => Label90
IL_0905: ldloc.s 48 (System.Int32)
IL_0907: ldloc.s 11 (System.Int32[])
IL_0909: ldloc.s 45 (System.Int32)
IL_090B: ldelem.i4
IL_090C: add
IL_090D: stloc.s 48 (System.Int32)
IL_090F: ldloc.s 48
IL_0911: ldloc.s 45
IL_0913: ldloc.3
IL_0914: ldloc.s 12
IL_0916: ldarg.3
IL_0917: call static System.Int32
VFESecurity.FindPath::AdjustedTerrainCost(System.Int32 cost, System.Int32
nextIndex, System.Int32 curIndex, Verse.TerrainDef[] terrainGrid,
Verse.TraverseParms parms)
IL_091C: stloc.s 48 (System.Int32)
IL_091E: ldloc.s 22 (System.Boolean)
IL_0920: brfalse => Label91
IL_0925: ldloc.s 48 (System.Int32)
IL_0927: ldloc.s 12 (Verse.TerrainDef[])
IL_0929: ldloc.s 45 (System.Int32)
IL_092B: ldelem.ref
IL_092C: ldfld System.Int32 Verse.TerrainDef::extraDraftedPerceivedPathCost
IL_0931: add
IL_0932: stloc.s 48 (System.Int32)
IL_0934: br => Label92
IL_0939: Label91
IL_0939: ldloc.s 48 (System.Int32)
IL_093B: ldloc.s 12 (Verse.TerrainDef[])
IL_093D: ldloc.s 45 (System.Int32)
IL_093F: ldelem.ref
IL_0940: ldfld System.Int32 Verse.TerrainDef::extraNonDraftedPerceivedPathCost
IL_0945: add
IL_0946: stloc.s 48 (System.Int32)
IL_0948: Label90
IL_0948: Label92
IL_0948: ldloc.s 5 (Verse.ByteGrid)
IL_094A: brfalse => Label93
IL_094F: ldloc.s 48 (System.Int32)
IL_0951: ldloc.s 5 (Verse.ByteGrid)
IL_0953: ldloc.s 45 (System.Int32)
IL_0955: callvirt System.Byte Verse.ByteGrid::get_Item(System.Int32 index)
IL_095A: ldc.i4.8
IL_095B: mul
IL_095C: add
IL_095D: stloc.s 48 (System.Int32)
IL_095F: Label93
IL_095F: ldloc.s 16 (Verse.Area)
IL_0961: brfalse => Label94
IL_0966: ldloc.s 16 (Verse.Area)
IL_0968: ldloc.s 45 (System.Int32)
IL_096A: callvirt System.Boolean Verse.Area::get_Item(System.Int32 index)
IL_096F: brtrue => Label95
IL_0974: ldloc.s 48 (System.Int32)
IL_0976: ldc.i4 600
IL_097B: add
IL_097C: stloc.s 48 (System.Int32)
IL_097E: Label94
IL_097E: Label95
IL_097E: ldloc.s 18 (System.Boolean)
IL_0980: brfalse => Label96
IL_0985: ldloc.s 43 (System.Int32)
IL_0987: ldc.i4.0
IL_0988: ldloc.s 44 (System.Int32)
IL_098A: newobj System.Void Verse.IntVec3::.ctor(System.Int32 newX,
System.Int32 newY, System.Int32 newZ)
IL_098F: ldloc.0
IL_0990: ldc.i4.0
IL_0991: ldc.i4.0
IL_0992: ldc.i4.1
IL_0993: call static System.Boolean
RimWorld.PawnUtility::AnyPawnBlockingPathAt(Verse.IntVec3 c, Verse.Pawn forPawn,
System.Boolean actAsIfHadCollideWithPawnsJob, System.Boolean
collideOnlyWithStandingPawns, System.Boolean forPathFinder)
IL_0998: brfalse => Label97
IL_099D: ldloc.s 48 (System.Int32)
IL_099F: ldc.i4 175
IL_09A4: add
IL_09A5: stloc.s 48 (System.Int32)
IL_09A7: Label96
IL_09A7: Label97
IL_09A7: ldarg.0
IL_09A8: ldfld Verse.Building[] Verse.AI.PathFinder::edificeGrid
IL_09AD: ldloc.s 45 (System.Int32)
IL_09AF: ldelem.ref
IL_09B0: stloc.s 53 (Verse.Building)
IL_09B2: ldloc.s 53 (Verse.Building)
IL_09B4: brfalse => Label98
IL_09B9: ldarg.0
IL_09BA: ldstr "Edifices"
IL_09BF: call System.Void
Verse.AI.PathFinder::PfProfilerBeginSample(System.String s)
IL_09C4: ldloc.s 53 (Verse.Building)
IL_09C6: ldarg.3
IL_09C7: ldloc.0
IL_09C8: ldarg.s 5
IL_09CA: call static System.Int32
Verse.AI.PathFinder::GetBuildingCost(Verse.Building b, Verse.TraverseParms
traverseParms, Verse.Pawn pawn, Verse.AI.PathFinderCostTuning tuning)
IL_09CF: stloc.s 54 (System.Int32)
IL_09D1: ldloc.s 54 (System.Int32)
IL_09D3: ldc.i4 2147483647
IL_09D8: bne.un => Label99
IL_09DD: ldarg.0
IL_09DE: call System.Void Verse.AI.PathFinder::PfProfilerEndSample()
IL_09E3: br => Label100
IL_09E8: Label99
IL_09E8: ldloc.s 48 (System.Int32)
IL_09EA: ldloc.s 54 (System.Int32)
IL_09EC: add
IL_09ED: stloc.s 48 (System.Int32)
IL_09EF: ldarg.0
IL_09F0: call System.Void Verse.AI.PathFinder::PfProfilerEndSample()
IL_09F5: Label98
IL_09F5: ldarg.0
IL_09F6: ldfld System.Collections.Generic.List`1[]
Verse.AI.PathFinder::blueprintGrid
IL_09FB: ldloc.s 45 (System.Int32)
IL_09FD: ldelem.ref
IL_09FE: stloc.s 55 (System.Collections.Generic.List`1[RimWorld.Blueprint])
IL_0A00: ldloc.s 55 (System.Collections.Generic.List`1[RimWorld.Blueprint])
IL_0A02: brfalse => Label101
IL_0A07: ldarg.0
IL_0A08: ldstr "Blueprints"
IL_0A0D: call System.Void
Verse.AI.PathFinder::PfProfilerBeginSample(System.String s)
IL_0A12: ldc.i4.0
IL_0A13: stloc.s 56 (System.Int32)
IL_0A15: ldc.i4.0
IL_0A16: stloc.s 57 (System.Int32)
IL_0A18: br => Label102
IL_0A1D: Label103
IL_0A1D: ldloc.s 56 (System.Int32)
IL_0A1F: ldloc.s 55 (System.Collections.Generic.List`1[RimWorld.Blueprint])
IL_0A21: ldloc.s 57 (System.Int32)
IL_0A23: callvirt virtual RimWorld.Blueprint
System.Collections.Generic.List`1<RimWorld.Blueprint>::get_Item(System.Int32 index)
IL_0A28: ldloc.0
IL_0A29: call static System.Int32
Verse.AI.PathFinder::GetBlueprintCost(RimWorld.Blueprint b, Verse.Pawn pawn)
IL_0A2E: call static System.Int32 UnityEngine.Mathf::Max(System.Int32 a,
System.Int32 b)
IL_0A33: stloc.s 56 (System.Int32)
IL_0A35: ldloc.s 57 (System.Int32)
IL_0A37: ldc.i4.1
IL_0A38: add
IL_0A39: stloc.s 57 (System.Int32)
IL_0A3B: Label102
IL_0A3B: ldloc.s 57 (System.Int32)
IL_0A3D: ldloc.s 55 (System.Collections.Generic.List`1[RimWorld.Blueprint])
IL_0A3F: callvirt virtual System.Int32
System.Collections.Generic.List`1<RimWorld.Blueprint>::get_Count()
IL_0A44: blt => Label103
IL_0A49: ldloc.s 56 (System.Int32)
IL_0A4B: ldc.i4 2147483647
IL_0A50: bne.un => Label104
IL_0A55: ldarg.0
IL_0A56: call System.Void Verse.AI.PathFinder::PfProfilerEndSample()
IL_0A5B: br => Label105
IL_0A60: Label104
IL_0A60: ldloc.s 48 (System.Int32)
IL_0A62: ldloc.s 56 (System.Int32)
IL_0A64: add
IL_0A65: stloc.s 48 (System.Int32)
IL_0A67: ldarg.0
IL_0A68: call System.Void Verse.AI.PathFinder::PfProfilerEndSample()
IL_0A6D: Label101
IL_0A6D: ldarg.s 5
IL_0A6F: ldfld Verse.AI.ICustomizer Verse.AI.PathFinderCostTuning::custom
IL_0A74: brfalse => Label106
IL_0A79: ldloc.s 48 (System.Int32)
IL_0A7B: ldarg.s 5
IL_0A7D: ldfld Verse.AI.ICustomizer Verse.AI.PathFinderCostTuning::custom
IL_0A82: ldloc.s 35 (Verse.IntVec3)
IL_0A84: ldloc.s 43 (System.Int32)
IL_0A86: ldc.i4.0
IL_0A87: ldloc.s 44 (System.Int32)
IL_0A89: newobj System.Void Verse.IntVec3::.ctor(System.Int32 newX,
System.Int32 newY, System.Int32 newZ)
IL_0A8E: callvirt abstract virtual System.Int32
Verse.AI.ICustomizer::CostOffset(Verse.IntVec3 from, Verse.IntVec3 to)
IL_0A93: add
IL_0A94: stloc.s 48 (System.Int32)
IL_0A96: Label106
IL_0A96: ldloc.s 17 (Verse.BoolGrid)
IL_0A98: brfalse => Label107
IL_0A9D: ldloc.s 17 (Verse.BoolGrid)
IL_0A9F: ldloc.s 43 (System.Int32)
IL_0AA1: ldc.i4.0
IL_0AA2: ldloc.s 44 (System.Int32)
IL_0AA4: newobj System.Void Verse.IntVec3::.ctor(System.Int32 newX,
System.Int32 newY, System.Int32 newZ)
IL_0AA9: callvirt System.Boolean Verse.BoolGrid::get_Item(Verse.IntVec3 c)
IL_0AAE: brtrue => Label108
IL_0AB3: ldloc.s 48 (System.Int32)
IL_0AB5: ldloc.s 27 (System.Int32)
IL_0AB7: add
IL_0AB8: stloc.s 48 (System.Int32)
IL_0ABA: Label107
IL_0ABA: Label108
IL_0ABA: ldloc.s 48 (System.Int32)
IL_0ABC: ldsfld PathFinderNodeFast[] Verse.AI.PathFinder::calcGrid
IL_0AC1: ldloc.3
IL_0AC2: ldelema Verse.AI.PathFinder+PathFinderNodeFast
IL_0AC7: ldfld System.Int32 Verse.AI.PathFinderNodeFast::knownCost
IL_0ACC: add
IL_0ACD: stloc.s 49 (System.Int32)
IL_0ACF: ldsfld PathFinderNodeFast[] Verse.AI.PathFinder::calcGrid
IL_0AD4: ldloc.s 45 (System.Int32)
IL_0AD6: ldelema Verse.AI.PathFinder+PathFinderNodeFast
IL_0ADB: ldfld System.UInt16 Verse.AI.PathFinderNodeFast::status
IL_0AE0: stloc.s 50 (System.UInt16)
IL_0AE2: ldloc.s 50 (System.UInt16)
IL_0AE4: ldsfld System.UInt16 Verse.AI.PathFinder::statusClosedValue
IL_0AE9: beq => Label109
IL_0AEE: ldloc.s 50 (System.UInt16)
IL_0AF0: ldsfld System.UInt16 Verse.AI.PathFinder::statusOpenValue
IL_0AF5: bne.un => Label110
IL_0AFA: Label109
IL_0AFA: ldc.i4.0
IL_0AFB: stloc.s 58 (System.Int32)
IL_0AFD: ldloc.s 50 (System.UInt16)
IL_0AFF: ldsfld System.UInt16 Verse.AI.PathFinder::statusClosedValue
IL_0B04: bne.un => Label111
IL_0B09: ldloc.s 31 (System.Int32)
IL_0B0B: stloc.s 58 (System.Int32)
IL_0B0D: Label111
IL_0B0D: ldsfld PathFinderNodeFast[] Verse.AI.PathFinder::calcGrid
IL_0B12: ldloc.s 45 (System.Int32)
IL_0B14: ldelema Verse.AI.PathFinder+PathFinderNodeFast
IL_0B19: ldfld System.Int32 Verse.AI.PathFinderNodeFast::knownCost
IL_0B1E: ldloc.s 49 (System.Int32)
IL_0B20: ldloc.s 58 (System.Int32)
IL_0B22: add
IL_0B23: ble => Label112
IL_0B28: Label110
IL_0B28: ldloc.s 21 (System.Boolean)
IL_0B2A: brfalse => Label113
IL_0B2F: ldsfld PathFinderNodeFast[] Verse.AI.PathFinder::calcGrid
IL_0B34: ldloc.s 45 (System.Int32)
IL_0B36: ldelema Verse.AI.PathFinder+PathFinderNodeFast
IL_0B3B: ldarg.0
IL_0B3C: ldfld Verse.AI.RegionCostCalculatorWrapper
Verse.AI.PathFinder::regionCostCalculator
IL_0B41: ldloc.s 45 (System.Int32)
IL_0B43: callvirt System.Int32
Verse.AI.RegionCostCalculatorWrapper::GetPathCostFromDestToRegion(System.Int32
cellIndex)
IL_0B48: conv.r4
IL_0B49: ldsfld Verse.SimpleCurve
Verse.AI.PathFinder::RegionHeuristicWeightByNodesOpened
IL_0B4E: ldloc.s 15 (System.Int32)
IL_0B50: conv.r4
IL_0B51: callvirt System.Single Verse.SimpleCurve::Evaluate(System.Single x)
IL_0B56: mul
IL_0B57: call static System.Int32 UnityEngine.Mathf::RoundToInt(System.Single
f)
IL_0B5C: stfld System.Int32 Verse.AI.PathFinderNodeFast::heuristicCost
IL_0B61: ldsfld PathFinderNodeFast[] Verse.AI.PathFinder::calcGrid
IL_0B66: ldloc.s 45 (System.Int32)
IL_0B68: ldelema Verse.AI.PathFinder+PathFinderNodeFast
IL_0B6D: ldfld System.Int32 Verse.AI.PathFinderNodeFast::heuristicCost
IL_0B72: ldc.i4.0
IL_0B73: bge => Label114
IL_0B78: ldc.i4.7
IL_0B79: newarr System.Object
IL_0B7E: dup
IL_0B7F: ldc.i4.0
IL_0B80: ldstr "Heuristic cost overflow for "
IL_0B85: stelem.ref
IL_0B86: dup
IL_0B87: ldc.i4.1
IL_0B88: ldloc.0
IL_0B89: call static System.String Verse.Gen::ToStringSafe(Verse.Pawn obj)
IL_0B8E: stelem.ref
IL_0B8F: dup
IL_0B90: ldc.i4.2
IL_0B91: ldstr " pathing from "
IL_0B96: stelem.ref
IL_0B97: dup
IL_0B98: ldc.i4.3
IL_0B99: ldarg.1
IL_0B9A: box Verse.IntVec3
IL_0B9F: stelem.ref
IL_0BA0: dup
IL_0BA1: ldc.i4.4
IL_0BA2: ldstr " to "
IL_0BA7: stelem.ref
IL_0BA8: dup
IL_0BA9: ldc.i4.5
IL_0BAA: ldarg.2
IL_0BAB: box Verse.LocalTargetInfo
IL_0BB0: stelem.ref
IL_0BB1: dup
IL_0BB2: ldc.i4.6
IL_0BB3: ldstr "."
IL_0BB8: stelem.ref
IL_0BB9: call static System.String System.String::Concat(System.Object[]
args)
IL_0BBE: ldloc.0
IL_0BBF: callvirt virtual System.Int32 System.Object::GetHashCode()
IL_0BC4: ldc.i4 193840009
IL_0BC9: xor
IL_0BCA: call static System.Void Verse.Log::ErrorOnce(System.String text,
System.Int32 key)
IL_0BCF: ldsfld PathFinderNodeFast[] Verse.AI.PathFinder::calcGrid
IL_0BD4: ldloc.s 45 (System.Int32)
IL_0BD6: ldelema Verse.AI.PathFinder+PathFinderNodeFast
IL_0BDB: ldc.i4.0
IL_0BDC: stfld System.Int32 Verse.AI.PathFinderNodeFast::heuristicCost
IL_0BE1: br => Label115
IL_0BE6: Label113
IL_0BE6: ldloc.s 50 (System.UInt16)
IL_0BE8: ldsfld System.UInt16 Verse.AI.PathFinder::statusClosedValue
IL_0BED: beq => Label116
IL_0BF2: ldloc.s 50 (System.UInt16)
IL_0BF4: ldsfld System.UInt16 Verse.AI.PathFinder::statusOpenValue
IL_0BF9: beq => Label117
IL_0BFE: ldloc.s 43 (System.Int32)
IL_0C00: ldloc.1
IL_0C01: sub
IL_0C02: call static System.Int32 System.Math::Abs(System.Int32 value)
IL_0C07: ldloc.s 44 (System.Int32)
IL_0C09: ldloc.2
IL_0C0A: sub
IL_0C0B: call static System.Int32 System.Math::Abs(System.Int32 value)
IL_0C10: stloc.s 59 (System.Int32)
IL_0C12: ldloc.s 59 (System.Int32)
IL_0C14: ldloc.s 31 (System.Int32)
IL_0C16: ldloc.s 32 (System.Int32)
IL_0C18: call static System.Int32 Verse.GenMath::OctileDistance(System.Int32
dx, System.Int32 dz, System.Int32 cardinal, System.Int32 diagonal)
IL_0C1D: stloc.s 60 (System.Int32)
IL_0C1F: ldsfld PathFinderNodeFast[] Verse.AI.PathFinder::calcGrid
IL_0C24: ldloc.s 45 (System.Int32)
IL_0C26: ldelema Verse.AI.PathFinder+PathFinderNodeFast
IL_0C2B: ldloc.s 60 (System.Int32)
IL_0C2D: conv.r4
IL_0C2E: ldloc.s 30 (System.Single)
IL_0C30: mul
IL_0C31: call static System.Int32 UnityEngine.Mathf::RoundToInt(System.Single
f)
IL_0C36: stfld System.Int32 Verse.AI.PathFinderNodeFast::heuristicCost
IL_0C3B: Label114
IL_0C3B: Label115
IL_0C3B: Label116
IL_0C3B: Label117
IL_0C3B: ldloc.s 49 (System.Int32)
IL_0C3D: ldsfld PathFinderNodeFast[] Verse.AI.PathFinder::calcGrid
IL_0C42: ldloc.s 45 (System.Int32)
IL_0C44: ldelema Verse.AI.PathFinder+PathFinderNodeFast
IL_0C49: ldfld System.Int32 Verse.AI.PathFinderNodeFast::heuristicCost
IL_0C4E: add
IL_0C4F: stloc.s 51 (System.Int32)
IL_0C51: ldloc.s 51 (System.Int32)
IL_0C53: ldc.i4.0
IL_0C54: bge => Label118
IL_0C59: ldc.i4.7
IL_0C5A: newarr System.Object
IL_0C5F: dup
IL_0C60: ldc.i4.0
IL_0C61: ldstr "Node cost overflow for "
IL_0C66: stelem.ref
IL_0C67: dup
IL_0C68: ldc.i4.1
IL_0C69: ldloc.0
IL_0C6A: call static System.String Verse.Gen::ToStringSafe(Verse.Pawn obj)
IL_0C6F: stelem.ref
IL_0C70: dup
IL_0C71: ldc.i4.2
IL_0C72: ldstr " pathing from "
IL_0C77: stelem.ref
IL_0C78: dup
IL_0C79: ldc.i4.3
IL_0C7A: ldarg.1
IL_0C7B: box Verse.IntVec3
IL_0C80: stelem.ref
IL_0C81: dup
IL_0C82: ldc.i4.4
IL_0C83: ldstr " to "
IL_0C88: stelem.ref
IL_0C89: dup
IL_0C8A: ldc.i4.5
IL_0C8B: ldarg.2
IL_0C8C: box Verse.LocalTargetInfo
IL_0C91: stelem.ref
IL_0C92: dup
IL_0C93: ldc.i4.6
IL_0C94: ldstr "."
IL_0C99: stelem.ref
IL_0C9A: call static System.String System.String::Concat(System.Object[]
args)
IL_0C9F: ldloc.0
IL_0CA0: callvirt virtual System.Int32 System.Object::GetHashCode()
IL_0CA5: ldc.i4 87865822
IL_0CAA: xor
IL_0CAB: call static System.Void Verse.Log::ErrorOnce(System.String text,
System.Int32 key)
IL_0CB0: ldc.i4.0
IL_0CB1: stloc.s 51 (System.Int32)
IL_0CB3: Label118
IL_0CB3: ldsfld PathFinderNodeFast[] Verse.AI.PathFinder::calcGrid
IL_0CB8: ldloc.s 45 (System.Int32)
IL_0CBA: ldelema Verse.AI.PathFinder+PathFinderNodeFast
IL_0CBF: ldloc.3
IL_0CC0: stfld System.Int32 Verse.AI.PathFinderNodeFast::parentIndex
IL_0CC5: ldsfld PathFinderNodeFast[] Verse.AI.PathFinder::calcGrid
IL_0CCA: ldloc.s 45 (System.Int32)
IL_0CCC: ldelema Verse.AI.PathFinder+PathFinderNodeFast
IL_0CD1: ldloc.s 49 (System.Int32)
IL_0CD3: stfld System.Int32 Verse.AI.PathFinderNodeFast::knownCost
IL_0CD8: ldsfld PathFinderNodeFast[] Verse.AI.PathFinder::calcGrid
IL_0CDD: ldloc.s 45 (System.Int32)
IL_0CDF: ldelema Verse.AI.PathFinder+PathFinderNodeFast
IL_0CE4: ldsfld System.UInt16 Verse.AI.PathFinder::statusOpenValue
IL_0CE9: stfld System.UInt16 Verse.AI.PathFinderNodeFast::status
IL_0CEE: ldsfld PathFinderNodeFast[] Verse.AI.PathFinder::calcGrid
IL_0CF3: ldloc.s 45 (System.Int32)
IL_0CF5: ldelema Verse.AI.PathFinder+PathFinderNodeFast
IL_0CFA: ldloc.s 51 (System.Int32)
IL_0CFC: stfld System.Int32 Verse.AI.PathFinderNodeFast::costNodeCost
IL_0D01: ldloc.s 15 (System.Int32)
IL_0D03: ldc.i4.1
IL_0D04: add
IL_0D05: stloc.s 15 (System.Int32)
IL_0D07: ldarg.0
IL_0D08: ldfld System.Collections.Generic.PriorityQueue`2<System.Int32,
System.Int32> Verse.AI.PathFinder::openList
IL_0D0D: ldloc.s 45 (System.Int32)
IL_0D0F: ldloc.s 51 (System.Int32)
IL_0D11: callvirt System.Void
System.Collections.Generic.PriorityQueue`2<System.Int32,
System.Int32>::Enqueue(System.Int32 element, System.Int32 priority)
IL_0D16: Label52
IL_0D16: Label53
IL_0D16: Label55
IL_0D16: Label57
IL_0D16: Label59
IL_0D16: Label60
IL_0D16: Label61
IL_0D16: Label70
IL_0D16: Label72
IL_0D16: Label75
IL_0D16: Label77
IL_0D16: Label80
IL_0D16: Label82
IL_0D16: Label85
IL_0D16: Label87
IL_0D16: Label100
IL_0D16: Label105
IL_0D16: Label112
IL_0D16: ldloc.s 40 (System.Int32)
IL_0D18: ldc.i4.1
IL_0D19: add
IL_0D1A: stloc.s 40 (System.Int32)
IL_0D1C: Label51
IL_0D1C: ldloc.s 40 (System.Int32)
IL_0D1E: ldc.i4.8
IL_0D1F: blt => Label119
IL_0D24: ldarg.0
IL_0D25: call System.Void Verse.AI.PathFinder::PfProfilerEndSample()
IL_0D2A: ldloc.s 14 (System.Int32)
IL_0D2C: ldc.i4.1
IL_0D2D: add
IL_0D2E: stloc.s 14 (System.Int32)
IL_0D30: ldsfld PathFinderNodeFast[] Verse.AI.PathFinder::calcGrid
IL_0D35: ldloc.3
IL_0D36: ldelema Verse.AI.PathFinder+PathFinderNodeFast
IL_0D3B: ldsfld System.UInt16 Verse.AI.PathFinder::statusClosedValue
IL_0D40: stfld System.UInt16 Verse.AI.PathFinderNodeFast::status
IL_0D45: ldloc.s 15 (System.Int32)
IL_0D47: ldloc.s 23 (System.Int32)
IL_0D49: clt
IL_0D4B: ldc.i4.0
IL_0D4C: ceq
IL_0D4E: ldloc.s 19 (System.Boolean)
IL_0D50: and
IL_0D51: brfalse => Label120
IL_0D56: ldloc.s 21 (System.Boolean)
IL_0D58: brtrue => Label121
IL_0D5D: ldc.i4.1
IL_0D5E: stloc.s 21 (System.Boolean)
IL_0D60: ldarg.0
IL_0D61: ldfld Verse.AI.RegionCostCalculatorWrapper
Verse.AI.PathFinder::regionCostCalculator
IL_0D66: ldloc.s 9 (Verse.CellRect)
IL_0D68: ldarg.3
IL_0D69: ldloc.s 31 (System.Int32)
IL_0D6B: ldloc.s 32 (System.Int32)
IL_0D6D: ldloc.s 5 (Verse.ByteGrid)
IL_0D6F: ldloc.s 16 (Verse.Area)
IL_0D71: ldloc.s 22 (System.Boolean)
IL_0D73: ldarg.0
IL_0D74: ldfld System.Collections.Generic.List`1<System.Int32>
Verse.AI.PathFinder::disallowedCornerIndices
IL_0D79: callvirt System.Void
Verse.AI.RegionCostCalculatorWrapper::Init(Verse.CellRect end, Verse.TraverseParms
traverseParms, System.Int32 moveTicksCardinal, System.Int32 moveTicksDiagonal,
Verse.ByteGrid avoidGrid, Verse.Area allowedArea, System.Boolean drafted,
System.Collections.Generic.List`1<System.Int32> disallowedCorners)
IL_0D7E: ldarg.0
IL_0D7F: ldloca.s 3 (System.Int32)
IL_0D81: ldarg.1
IL_0D82: call System.Void
Verse.AI.PathFinder::InitStatusesAndPushStartNode(System.Int32& curIndex,
Verse.IntVec3 start)
IL_0D87: ldc.i4.0
IL_0D88: stloc.s 15 (System.Int32)
IL_0D8A: ldc.i4.0
IL_0D8B: stloc.s 14 (System.Int32)
IL_0D8D: br => Label122
IL_0D92: // end original
IL_0D92: Label123
IL_0D92: Label124
IL_0D92: Label125
IL_0D92: Label126
IL_0D92: Label127
IL_0D92: Label128
IL_0D92: Label129
IL_0D92: Label130
IL_0D92: Label131
IL_0D92: ret
DONE

### Patch: virtual System.Void RimWorld.Skyfaller::Tick()


### Replacement: static System.Void
RimWorld.Skyfaller::RimWorld.Skyfaller.Tick_Patch2(RimWorld.Skyfaller this)
IL_0000: Local var 0: Verse.CellRect
IL_0000: Local var 1: System.Int32
IL_0000: Local var 2: Verse.TargetInfo
IL_0000: Local var 3: Verse.TargetInfo
IL_0000: ldarg.0
IL_0001: call static System.Void
VFECore.Patch_Tick::Prefix(RimWorld.Skyfaller __instance)
IL_0006: ldarg.0
IL_0007: call static System.Void
VFESecurity.Patch_Tick::Prefix(RimWorld.Skyfaller __instance)
IL_000C: // start original
IL_000C: ldarg.0
IL_000D: call virtual System.Void Verse.ThingWithComps::Tick()
IL_0012: ldarg.0
IL_0013: ldfld Verse.ThingOwner RimWorld.Skyfaller::innerContainer
IL_0018: ldc.i4.1
IL_0019: callvirt System.Void Verse.ThingOwner::ThingOwnerTick(System.Boolean
removeIfDestroyed)
IL_001E: ldarg.0
IL_001F: call System.Boolean RimWorld.Skyfaller::get_SpawnTimedMotes()
IL_0024: brfalse => Label0
IL_0029: ldarg.0
IL_002A: call static Verse.CellRect Verse.GenAdj::OccupiedRect(Verse.Thing t)
IL_002F: stloc.0
IL_0030: ldc.i4.0
IL_0031: stloc.1
IL_0032: br => Label1
IL_0037: Label2
IL_0037: ldloca.s 0 (Verse.CellRect)
IL_0039: call UnityEngine.Vector3 Verse.CellRect::get_RandomVector3()
IL_003E: ldarg.0
IL_003F: call virtual Verse.Map Verse.Thing::get_Map()
IL_0044: ldc.r4 2
IL_0049: call static System.Void
RimWorld.FleckMaker::ThrowDustPuff(UnityEngine.Vector3 loc, Verse.Map map,
System.Single scale)
IL_004E: ldloc.1
IL_004F: ldc.i4.1
IL_0050: add
IL_0051: stloc.1
IL_0052: Label1
IL_0052: ldloc.1
IL_0053: ldloca.s 0 (Verse.CellRect)
IL_0055: call System.Int32 Verse.CellRect::get_Area()
IL_005A: ldarg.0
IL_005B: ldfld Verse.ThingDef Verse.Thing::def
IL_0060: ldfld Verse.SkyfallerProperties Verse.ThingDef::skyfaller
IL_0065: ldfld System.Int32 Verse.SkyfallerProperties::motesPerCell
IL_006A: mul
IL_006B: blt => Label2
IL_0070: Label0
IL_0070: ldarg.0
IL_0071: ldfld Verse.ThingDef Verse.Thing::def
IL_0076: ldfld Verse.SkyfallerProperties Verse.ThingDef::skyfaller
IL_007B: ldfld Verse.SoundDef Verse.SkyfallerProperties::floatingSound
IL_0080: brfalse => Label3
IL_0085: ldarg.0
IL_0086: ldfld Verse.Sound.Sustainer RimWorld.Skyfaller::floatingSoundPlaying
IL_008B: brfalse => Label4
IL_0090: ldarg.0
IL_0091: ldfld Verse.Sound.Sustainer RimWorld.Skyfaller::floatingSoundPlaying
IL_0096: callvirt System.Boolean Verse.Sound.Sustainer::get_Ended()
IL_009B: brfalse => Label5
IL_00A0: Label4
IL_00A0: ldarg.0
IL_00A1: ldarg.0
IL_00A2: ldfld Verse.ThingDef Verse.Thing::def
IL_00A7: ldfld Verse.SkyfallerProperties Verse.ThingDef::skyfaller
IL_00AC: ldfld Verse.SoundDef Verse.SkyfallerProperties::floatingSound
IL_00B1: ldarg.0
IL_00B2: newobj System.Void Verse.TargetInfo::.ctor(Verse.Thing thing)
IL_00B7: ldc.i4.1
IL_00B8: call static Verse.Sound.SoundInfo
Verse.Sound.SoundInfo::InMap(Verse.TargetInfo maker, Verse.Sound.MaintenanceType
maint)
IL_00BD: call static Verse.Sound.Sustainer
Verse.Sound.SoundStarter::TrySpawnSustainer(Verse.SoundDef soundDef,
Verse.Sound.SoundInfo info)
IL_00C2: stfld Verse.Sound.Sustainer RimWorld.Skyfaller::floatingSoundPlaying
IL_00C7: Label3
IL_00C7: Label5
IL_00C7: ldarg.0
IL_00C8: ldfld Verse.Sound.Sustainer RimWorld.Skyfaller::floatingSoundPlaying
IL_00CD: dup
IL_00CE: brtrue => Label6
IL_00D3: pop
IL_00D4: br => Label7
IL_00D9: Label6
IL_00D9: call System.Void Verse.Sound.Sustainer::Maintain()
IL_00DE: Label7
IL_00DE: ldarg.0
IL_00DF: ldfld Verse.ThingDef Verse.Thing::def
IL_00E4: ldfld Verse.SkyfallerProperties Verse.ThingDef::skyfaller
IL_00E9: ldfld System.Boolean Verse.SkyfallerProperties::reversed
IL_00EE: brfalse => Label8
IL_00F3: ldarg.0
IL_00F4: ldarg.0
IL_00F5: ldfld System.Int32 RimWorld.Skyfaller::ticksToImpact
IL_00FA: ldc.i4.1
IL_00FB: add
IL_00FC: stfld System.Int32 RimWorld.Skyfaller::ticksToImpact
IL_0101: ldarg.0
IL_0102: ldfld System.Boolean RimWorld.Skyfaller::anticipationSoundPlayed
IL_0107: brtrue => Label9
IL_010C: ldarg.0
IL_010D: ldfld Verse.ThingDef Verse.Thing::def
IL_0112: ldfld Verse.SkyfallerProperties Verse.ThingDef::skyfaller
IL_0117: ldfld Verse.SoundDef Verse.SkyfallerProperties::anticipationSound
IL_011C: brfalse => Label10
IL_0121: ldarg.0
IL_0122: ldfld System.Int32 RimWorld.Skyfaller::ticksToImpact
IL_0127: ldarg.0
IL_0128: ldfld Verse.ThingDef Verse.Thing::def
IL_012D: ldfld Verse.SkyfallerProperties Verse.ThingDef::skyfaller
IL_0132: ldfld System.Int32 Verse.SkyfallerProperties::anticipationSoundTicks
IL_0137: ble => Label11
IL_013C: ldarg.0
IL_013D: ldc.i4.1
IL_013E: stfld System.Boolean RimWorld.Skyfaller::anticipationSoundPlayed
IL_0143: ldloca.s 2 (Verse.TargetInfo)
IL_0145: ldarg.0
IL_0146: call virtual Verse.IntVec3 Verse.Thing::get_Position()
IL_014B: ldarg.0
IL_014C: call virtual Verse.Map Verse.Thing::get_Map()
IL_0151: ldc.i4.0
IL_0152: call System.Void Verse.TargetInfo::.ctor(Verse.IntVec3 cell,
Verse.Map map, System.Boolean allowNullMap)
IL_0157: ldarg.0
IL_0158: ldfld Verse.ThingDef Verse.Thing::def
IL_015D: ldfld Verse.SkyfallerProperties Verse.ThingDef::skyfaller
IL_0162: ldfld Verse.SoundDef Verse.SkyfallerProperties::anticipationSound
IL_0167: ldfld System.Boolean Verse.SoundDef::sustain
IL_016C: brfalse => Label12
IL_0171: ldarg.0
IL_0172: ldarg.0
IL_0173: ldfld Verse.ThingDef Verse.Thing::def
IL_0178: ldfld Verse.SkyfallerProperties Verse.ThingDef::skyfaller
IL_017D: ldfld Verse.SoundDef Verse.SkyfallerProperties::anticipationSound
IL_0182: ldloc.2
IL_0183: call static Verse.Sound.SoundInfo
Verse.Sound.SoundInfo::op_Implicit(Verse.TargetInfo source)
IL_0188: call static Verse.Sound.Sustainer
Verse.Sound.SoundStarter::TrySpawnSustainer(Verse.SoundDef soundDef,
Verse.Sound.SoundInfo info)
IL_018D: stfld Verse.Sound.Sustainer
RimWorld.Skyfaller::anticipationSoundPlaying
IL_0192: br => Label13
IL_0197: Label12
IL_0197: ldarg.0
IL_0198: ldfld Verse.ThingDef Verse.Thing::def
IL_019D: ldfld Verse.SkyfallerProperties Verse.ThingDef::skyfaller
IL_01A2: ldfld Verse.SoundDef Verse.SkyfallerProperties::anticipationSound
IL_01A7: ldloc.2
IL_01A8: call static Verse.Sound.SoundInfo
Verse.Sound.SoundInfo::op_Implicit(Verse.TargetInfo source)
IL_01AD: call static System.Void
Verse.Sound.SoundStarter::PlayOneShot(Verse.SoundDef soundDef,
Verse.Sound.SoundInfo info)
IL_01B2: Label9
IL_01B2: Label10
IL_01B2: Label11
IL_01B2: Label13
IL_01B2: ldarg.0
IL_01B3: ldfld System.Int32 RimWorld.Skyfaller::ticksToImpact
IL_01B8: ldarg.0
IL_01B9: call System.Int32 RimWorld.Skyfaller::get_LeaveMapAfterTicks()
IL_01BE: bne.un => Label14
IL_01C3: ldarg.0
IL_01C4: callvirt virtual System.Void RimWorld.Skyfaller::LeaveMap()
IL_01C9: br => Label15
IL_01CE: Label14
IL_01CE: ldarg.0
IL_01CF: ldfld System.Int32 RimWorld.Skyfaller::ticksToImpact
IL_01D4: ldarg.0
IL_01D5: call System.Int32 RimWorld.Skyfaller::get_LeaveMapAfterTicks()
IL_01DA: ble => Label16
IL_01DF: ldstr "ticksToImpact > LeaveMapAfterTicks. Was there an exception?
Destroying skyfaller."
IL_01E4: call static System.Void Verse.Log::Error(System.String text)
IL_01E9: ldarg.0
IL_01EA: ldc.i4.0
IL_01EB: callvirt virtual System.Void Verse.Thing::Destroy(Verse.DestroyMode
mode)
IL_01F0: br => Label17
IL_01F5: Label8
IL_01F5: ldarg.0
IL_01F6: ldarg.0
IL_01F7: ldfld System.Int32 RimWorld.Skyfaller::ticksToImpact
IL_01FC: ldc.i4.1
IL_01FD: sub
IL_01FE: stfld System.Int32 RimWorld.Skyfaller::ticksToImpact
IL_0203: ldarg.0
IL_0204: ldfld System.Int32 RimWorld.Skyfaller::ticksToImpact
IL_0209: ldc.i4.s 15
IL_020B: bne.un => Label18
IL_0210: ldarg.0
IL_0211: callvirt virtual System.Void RimWorld.Skyfaller::HitRoof()
IL_0216: Label18
IL_0216: ldarg.0
IL_0217: ldfld System.Boolean RimWorld.Skyfaller::anticipationSoundPlayed
IL_021C: brtrue => Label19
IL_0221: ldarg.0
IL_0222: ldfld Verse.ThingDef Verse.Thing::def
IL_0227: ldfld Verse.SkyfallerProperties Verse.ThingDef::skyfaller
IL_022C: ldfld Verse.SoundDef Verse.SkyfallerProperties::anticipationSound
IL_0231: brfalse => Label20
IL_0236: ldarg.0
IL_0237: ldfld System.Int32 RimWorld.Skyfaller::ticksToImpact
IL_023C: ldarg.0
IL_023D: ldfld Verse.ThingDef Verse.Thing::def
IL_0242: ldfld Verse.SkyfallerProperties Verse.ThingDef::skyfaller
IL_0247: ldfld System.Int32 Verse.SkyfallerProperties::anticipationSoundTicks
IL_024C: bge => Label21
IL_0251: ldarg.0
IL_0252: ldc.i4.1
IL_0253: stfld System.Boolean RimWorld.Skyfaller::anticipationSoundPlayed
IL_0258: ldloca.s 3 (Verse.TargetInfo)
IL_025A: ldarg.0
IL_025B: call virtual Verse.IntVec3 Verse.Thing::get_Position()
IL_0260: ldarg.0
IL_0261: call virtual Verse.Map Verse.Thing::get_Map()
IL_0266: ldc.i4.0
IL_0267: call System.Void Verse.TargetInfo::.ctor(Verse.IntVec3 cell,
Verse.Map map, System.Boolean allowNullMap)
IL_026C: ldarg.0
IL_026D: ldfld Verse.ThingDef Verse.Thing::def
IL_0272: ldfld Verse.SkyfallerProperties Verse.ThingDef::skyfaller
IL_0277: ldfld Verse.SoundDef Verse.SkyfallerProperties::anticipationSound
IL_027C: ldfld System.Boolean Verse.SoundDef::sustain
IL_0281: brfalse => Label22
IL_0286: ldarg.0
IL_0287: ldarg.0
IL_0288: ldfld Verse.ThingDef Verse.Thing::def
IL_028D: ldfld Verse.SkyfallerProperties Verse.ThingDef::skyfaller
IL_0292: ldfld Verse.SoundDef Verse.SkyfallerProperties::anticipationSound
IL_0297: ldloc.3
IL_0298: call static Verse.Sound.SoundInfo
Verse.Sound.SoundInfo::op_Implicit(Verse.TargetInfo source)
IL_029D: call static Verse.Sound.Sustainer
Verse.Sound.SoundStarter::TrySpawnSustainer(Verse.SoundDef soundDef,
Verse.Sound.SoundInfo info)
IL_02A2: stfld Verse.Sound.Sustainer
RimWorld.Skyfaller::anticipationSoundPlaying
IL_02A7: br => Label23
IL_02AC: Label22
IL_02AC: ldarg.0
IL_02AD: ldfld Verse.ThingDef Verse.Thing::def
IL_02B2: ldfld Verse.SkyfallerProperties Verse.ThingDef::skyfaller
IL_02B7: ldfld Verse.SoundDef Verse.SkyfallerProperties::anticipationSound
IL_02BC: ldloc.3
IL_02BD: call static Verse.Sound.SoundInfo
Verse.Sound.SoundInfo::op_Implicit(Verse.TargetInfo source)
IL_02C2: call static System.Void
Verse.Sound.SoundStarter::PlayOneShot(Verse.SoundDef soundDef,
Verse.Sound.SoundInfo info)
IL_02C7: Label19
IL_02C7: Label20
IL_02C7: Label21
IL_02C7: Label23
IL_02C7: ldarg.0
IL_02C8: ldfld Verse.Sound.Sustainer
RimWorld.Skyfaller::anticipationSoundPlaying
IL_02CD: dup
IL_02CE: brtrue => Label24
IL_02D3: pop
IL_02D4: br => Label25
IL_02D9: Label24
IL_02D9: call System.Void Verse.Sound.Sustainer::Maintain()
IL_02DE: Label25
IL_02DE: ldarg.0
IL_02DF: ldfld System.Int32 RimWorld.Skyfaller::ticksToImpact
IL_02E4: brtrue => Label26
IL_02E9: ldarg.0
IL_02EA: callvirt virtual System.Void RimWorld.Skyfaller::Impact()
IL_02EF: br => Label27
IL_02F4: Label26
IL_02F4: ldarg.0
IL_02F5: ldfld System.Int32 RimWorld.Skyfaller::ticksToImpact
IL_02FA: ldc.i4.0
IL_02FB: bge => Label28
IL_0300: ldstr "ticksToImpact < 0. Was there an exception? Destroying
skyfaller."
IL_0305: call static System.Void Verse.Log::Error(System.String text)
IL_030A: ldarg.0
IL_030B: ldc.i4.0
IL_030C: callvirt virtual System.Void Verse.Thing::Destroy(Verse.DestroyMode
mode)
IL_0311: Label15
IL_0311: Label16
IL_0311: Label17
IL_0311: Label27
IL_0311: Label28
IL_0311: ldarg.0
IL_0312: ldarg.0
IL_0313: ldfld System.Int32 RimWorld.Skyfaller::ageTicks
IL_0318: ldc.i4.1
IL_0319: add
IL_031A: stfld System.Int32 RimWorld.Skyfaller::ageTicks
IL_031F: // end original
IL_031F: ret
DONE

### Patch: virtual System.Boolean


RimWorld.JobGiver_AIDefendPawn::TryFindShootingPosition(Verse.Pawn pawn,
Verse.IntVec3& dest, Verse.Verb verbToUse)
### Replacement: static System.Boolean
RimWorld.JobGiver_AIDefendPawn::RimWorld.JobGiver_AIDefendPawn.TryFindShootingPosit
ion_Patch0(RimWorld.JobGiver_AIDefendPawn this, Verse.Pawn pawn, Verse.IntVec3&
dest, Verse.Verb verbToUse)
IL_0000: Local var 0: Verse.Verb
IL_0000: Local var 1: Verse.AI.CastPositionRequest
IL_0000: // start original
IL_0000: ldarg.3
IL_0001: dup
IL_0002: brtrue => Label0
IL_0007: pop
IL_0008: ldarg.1
IL_0009: ldnull
IL_000A: ldarg.1
IL_000B: callvirt System.Boolean Verse.Pawn::get_IsColonist()
IL_0010: ldc.i4.0
IL_0011: ceq
IL_0013: ldc.i4.0
IL_0014: callvirt Verse.Verb Verse.Pawn::TryGetAttackVerb(Verse.Thing target,
System.Boolean allowManualCastWeapons, System.Boolean allowTurrets)
IL_0019: Label0
IL_0019: stloc.0
IL_001A: ldloc.0
IL_001B: brtrue => Label1
IL_0020: ldarg.2
IL_0021: ldsfld Verse.IntVec3 Verse.IntVec3::Invalid
IL_0026: stobj Verse.IntVec3
IL_002B: ldc.i4.0
IL_002C: br => Label2
IL_0031: Label1
IL_0031: ldloca.s 1 (Verse.AI.CastPositionRequest)
IL_0033: initobj Verse.AI.CastPositionRequest
IL_0039: ldloca.s 1 (Verse.AI.CastPositionRequest)
IL_003B: ldarg.1
IL_003C: stfld Verse.Pawn Verse.AI.CastPositionRequest::caster
IL_0041: ldloca.s 1 (Verse.AI.CastPositionRequest)
IL_0043: ldarg.1
IL_0044: ldfld Verse.AI.Pawn_MindState Verse.Pawn::mindState
IL_0049: ldfld Verse.Thing Verse.AI.Pawn_MindState::enemyTarget
IL_004E: stfld Verse.Thing Verse.AI.CastPositionRequest::target
IL_0053: ldloca.s 1 (Verse.AI.CastPositionRequest)
IL_0055: ldloc.0
IL_0056: stfld Verse.Verb Verse.AI.CastPositionRequest::verb
IL_005B: ldloca.s 1 (Verse.AI.CastPositionRequest)
IL_005D: ldc.r4 9999
IL_0062: stfld System.Single Verse.AI.CastPositionRequest::maxRangeFromTarget
IL_0067: ldloca.s 1 (Verse.AI.CastPositionRequest)
IL_0069: ldarg.0
IL_006A: ldarg.1
IL_006B: callvirt abstract virtual Verse.Pawn
RimWorld.JobGiver_AIDefendPawn::GetDefendee(Verse.Pawn pawn)
IL_0070: callvirt Verse.IntVec3 Verse.Thing::get_PositionHeld()
IL_0075: stfld Verse.IntVec3 Verse.AI.CastPositionRequest::locus
IL_007A: ldloca.s 1 (Verse.AI.CastPositionRequest)
IL_007C: ldarg.0
IL_007D: ldarg.1
IL_007E: callvirt virtual System.Single
RimWorld.JobGiver_AIFightEnemy::GetFlagRadius(Verse.Pawn pawn)
IL_0083: stfld System.Single Verse.AI.CastPositionRequest::maxRangeFromLocus
IL_0088: ldloca.s 1 (Verse.AI.CastPositionRequest)
IL_008A: ldloc.0
IL_008B: ldfld Verse.VerbProperties Verse.Verb::verbProps
IL_0090: ldfld System.Single Verse.VerbProperties::range
IL_0095: ldloc.0
IL_0096: ldarg.1
IL_0097: call static System.Single
VFESecurity.TrenchUtility::FinalAdjustedRangeFromTerrain(System.Single range,
Verse.Verb verb, Verse.Thing thing)
IL_009C: ldc.r4 7
IL_00A1: cgt
IL_00A3: stfld System.Boolean
Verse.AI.CastPositionRequest::wantCoverFromTarget
IL_00A8: ldloca.s 1 (Verse.AI.CastPositionRequest)
IL_00AA: ldc.i4.s 50
IL_00AC: stfld System.Int32 Verse.AI.CastPositionRequest::maxRegions
IL_00B1: ldloc.1
IL_00B2: ldarg.2
IL_00B3: call static System.Boolean
Verse.AI.CastPositionFinder::TryFindCastPosition(Verse.AI.CastPositionRequest
newReq, Verse.IntVec3& dest)
IL_00B8: // end original
IL_00B8: Label2
IL_00B8: ret
DONE

### Patch: System.Void Verse.ReverseDesignatorDatabase::InitDesignators()


### Replacement: static System.Void
Verse.ReverseDesignatorDatabase::Verse.ReverseDesignatorDatabase.InitDesignators_Pa
tch2(Verse.ReverseDesignatorDatabase this)
IL_0000: // start original
IL_0000: ldarg.0
IL_0001: newobj System.Void
System.Collections.Generic.List`1<Verse.Designator>::.ctor()
IL_0006: stfld System.Collections.Generic.List`1<Verse.Designator>
Verse.ReverseDesignatorDatabase::desList
IL_000B: ldarg.0
IL_000C: ldfld System.Collections.Generic.List`1<Verse.Designator>
Verse.ReverseDesignatorDatabase::desList
IL_0011: newobj System.Void RimWorld.Designator_Cancel::.ctor()
IL_0016: callvirt virtual System.Void
System.Collections.Generic.List`1<Verse.Designator>::Add(Verse.Designator item)
IL_001B: ldarg.0
IL_001C: ldfld System.Collections.Generic.List`1<Verse.Designator>
Verse.ReverseDesignatorDatabase::desList
IL_0021: newobj System.Void RimWorld.Designator_Claim::.ctor()
IL_0026: callvirt virtual System.Void
System.Collections.Generic.List`1<Verse.Designator>::Add(Verse.Designator item)
IL_002B: ldarg.0
IL_002C: ldfld System.Collections.Generic.List`1<Verse.Designator>
Verse.ReverseDesignatorDatabase::desList
IL_0031: newobj System.Void RimWorld.Designator_Deconstruct::.ctor()
IL_0036: callvirt virtual System.Void
System.Collections.Generic.List`1<Verse.Designator>::Add(Verse.Designator item)
IL_003B: ldarg.0
IL_003C: ldfld System.Collections.Generic.List`1<Verse.Designator>
Verse.ReverseDesignatorDatabase::desList
IL_0041: newobj System.Void RimWorld.Designator_Uninstall::.ctor()
IL_0046: callvirt virtual System.Void
System.Collections.Generic.List`1<Verse.Designator>::Add(Verse.Designator item)
IL_004B: ldarg.0
IL_004C: ldfld System.Collections.Generic.List`1<Verse.Designator>
Verse.ReverseDesignatorDatabase::desList
IL_0051: newobj System.Void RimWorld.Designator_Haul::.ctor()
IL_0056: callvirt virtual System.Void
System.Collections.Generic.List`1<Verse.Designator>::Add(Verse.Designator item)
IL_005B: ldarg.0
IL_005C: ldfld System.Collections.Generic.List`1<Verse.Designator>
Verse.ReverseDesignatorDatabase::desList
IL_0061: newobj System.Void RimWorld.Designator_Hunt::.ctor()
IL_0066: callvirt virtual System.Void
System.Collections.Generic.List`1<Verse.Designator>::Add(Verse.Designator item)
IL_006B: ldarg.0
IL_006C: ldfld System.Collections.Generic.List`1<Verse.Designator>
Verse.ReverseDesignatorDatabase::desList
IL_0071: newobj System.Void RimWorld.Designator_Slaughter::.ctor()
IL_0076: callvirt virtual System.Void
System.Collections.Generic.List`1<Verse.Designator>::Add(Verse.Designator item)
IL_007B: ldarg.0
IL_007C: ldfld System.Collections.Generic.List`1<Verse.Designator>
Verse.ReverseDesignatorDatabase::desList
IL_0081: newobj System.Void RimWorld.Designator_Tame::.ctor()
IL_0086: callvirt virtual System.Void
System.Collections.Generic.List`1<Verse.Designator>::Add(Verse.Designator item)
IL_008B: ldarg.0
IL_008C: ldfld System.Collections.Generic.List`1<Verse.Designator>
Verse.ReverseDesignatorDatabase::desList
IL_0091: newobj System.Void RimWorld.Designator_PlantsCut::.ctor()
IL_0096: callvirt virtual System.Void
System.Collections.Generic.List`1<Verse.Designator>::Add(Verse.Designator item)
IL_009B: ldarg.0
IL_009C: ldfld System.Collections.Generic.List`1<Verse.Designator>
Verse.ReverseDesignatorDatabase::desList
IL_00A1: newobj System.Void RimWorld.Designator_PlantsHarvest::.ctor()
IL_00A6: callvirt virtual System.Void
System.Collections.Generic.List`1<Verse.Designator>::Add(Verse.Designator item)
IL_00AB: ldarg.0
IL_00AC: ldfld System.Collections.Generic.List`1<Verse.Designator>
Verse.ReverseDesignatorDatabase::desList
IL_00B1: newobj System.Void RimWorld.Designator_PlantsHarvestWood::.ctor()
IL_00B6: callvirt virtual System.Void
System.Collections.Generic.List`1<Verse.Designator>::Add(Verse.Designator item)
IL_00BB: ldarg.0
IL_00BC: ldfld System.Collections.Generic.List`1<Verse.Designator>
Verse.ReverseDesignatorDatabase::desList
IL_00C1: newobj System.Void RimWorld.Designator_Mine::.ctor()
IL_00C6: callvirt virtual System.Void
System.Collections.Generic.List`1<Verse.Designator>::Add(Verse.Designator item)
IL_00CB: ldarg.0
IL_00CC: ldfld System.Collections.Generic.List`1<Verse.Designator>
Verse.ReverseDesignatorDatabase::desList
IL_00D1: newobj System.Void RimWorld.Designator_Strip::.ctor()
IL_00D6: callvirt virtual System.Void
System.Collections.Generic.List`1<Verse.Designator>::Add(Verse.Designator item)
IL_00DB: ldarg.0
IL_00DC: ldfld System.Collections.Generic.List`1<Verse.Designator>
Verse.ReverseDesignatorDatabase::desList
IL_00E1: newobj System.Void RimWorld.Designator_Open::.ctor()
IL_00E6: callvirt virtual System.Void
System.Collections.Generic.List`1<Verse.Designator>::Add(Verse.Designator item)
IL_00EB: ldarg.0
IL_00EC: ldfld System.Collections.Generic.List`1<Verse.Designator>
Verse.ReverseDesignatorDatabase::desList
IL_00F1: newobj System.Void RimWorld.Designator_SmoothSurface::.ctor()
IL_00F6: callvirt virtual System.Void
System.Collections.Generic.List`1<Verse.Designator>::Add(Verse.Designator item)
IL_00FB: ldarg.0
IL_00FC: ldfld System.Collections.Generic.List`1<Verse.Designator>
Verse.ReverseDesignatorDatabase::desList
IL_0101: newobj System.Void RimWorld.Designator_ReleaseAnimalToWild::.ctor()
IL_0106: callvirt virtual System.Void
System.Collections.Generic.List`1<Verse.Designator>::Add(Verse.Designator item)
IL_010B: ldarg.0
IL_010C: ldfld System.Collections.Generic.List`1<Verse.Designator>
Verse.ReverseDesignatorDatabase::desList
IL_0111: newobj System.Void RimWorld.Designator_ExtractTree::.ctor()
IL_0116: callvirt virtual System.Void
System.Collections.Generic.List`1<Verse.Designator>::Add(Verse.Designator item)
IL_011B: ldarg.0
IL_011C: ldfld System.Collections.Generic.List`1<Verse.Designator>
Verse.ReverseDesignatorDatabase::desList
IL_0121: newobj System.Void RimWorld.Designator_Study::.ctor()
IL_0126: callvirt virtual System.Void
System.Collections.Generic.List`1<Verse.Designator>::Add(Verse.Designator item)
IL_012B: ldarg.0
IL_012C: ldfld System.Collections.Generic.List`1<Verse.Designator>
Verse.ReverseDesignatorDatabase::desList
IL_0131: newobj System.Void RimWorld.Designator_RemovePaint::.ctor()
IL_0136: callvirt virtual System.Void
System.Collections.Generic.List`1<Verse.Designator>::Add(Verse.Designator item)
IL_013B: call static System.Boolean Verse.ModsConfig::get_BiotechActive()
IL_0140: brfalse => Label0
IL_0145: ldarg.0
IL_0146: ldfld System.Collections.Generic.List`1<Verse.Designator>
Verse.ReverseDesignatorDatabase::desList
IL_014B: newobj System.Void RimWorld.Designator_MechControlGroup::.ctor()
IL_0150: callvirt virtual System.Void
System.Collections.Generic.List`1<Verse.Designator>::Add(Verse.Designator item)
IL_0155: ldarg.0
IL_0156: ldfld System.Collections.Generic.List`1<Verse.Designator>
Verse.ReverseDesignatorDatabase::desList
IL_015B: newobj System.Void RimWorld.Designator_Adopt::.ctor()
IL_0160: callvirt virtual System.Void
System.Collections.Generic.List`1<Verse.Designator>::Add(Verse.Designator item)
IL_0165: Label0
IL_0165: call static System.Boolean Verse.ModsConfig::get_IdeologyActive()
IL_016A: brfalse => Label1
IL_016F: ldarg.0
IL_0170: ldfld System.Collections.Generic.List`1<Verse.Designator>
Verse.ReverseDesignatorDatabase::desList
IL_0175: newobj System.Void RimWorld.Designator_ExtractSkull::.ctor()
IL_017A: callvirt virtual System.Void
System.Collections.Generic.List`1<Verse.Designator>::Add(Verse.Designator item)
IL_017F: Label1
IL_017F: ldarg.0
IL_0180: ldfld System.Collections.Generic.List`1<Verse.Designator>
Verse.ReverseDesignatorDatabase::desList
IL_0185: ldsfld System.Predicate`1<Verse.Designator> Verse.<>c::<>9__5_0
IL_018A: dup
IL_018B: brtrue => Label2
IL_0190: pop
IL_0191: ldsfld Verse.<>c Verse.<>c::<>9
IL_0196: ldftn System.Boolean
Verse.<>c::<InitDesignators>b__5_0(Verse.Designator des)
IL_019C: newobj System.Void
System.Predicate`1<Verse.Designator>::.ctor(System.Object object, System.IntPtr
method)
IL_01A1: dup
IL_01A2: stsfld System.Predicate`1<Verse.Designator> Verse.<>c::<>9__5_0
IL_01A7: Label2
IL_01A7: callvirt System.Int32
System.Collections.Generic.List`1<Verse.Designator>::RemoveAll(System.Predicate`1<V
erse.Designator> match)
IL_01AC: pop
IL_01AD: // end original
IL_01AD: ldarg.0
IL_01AE: call static System.Void
AllowTool.Patches.ReverseDesignatorDatabase_Init_Patch::InjectReverseDesignators(Ve
rse.ReverseDesignatorDatabase __instance)
IL_01B3: ldarg.0
IL_01B4: ldflda System.Collections.Generic.List`1<Verse.Designator>
Verse.ReverseDesignatorDatabase::desList
IL_01B9: call static System.Void
VFESecurity.InitDesignators::Postfix(System.Collections.Generic.List`1& ___desList)
IL_01BE: ret
DONE

### Patch: System.Void Verse.VerbProperties::DrawRadiusRing(Verse.IntVec3 center)


### Replacement: static System.Void
Verse.VerbProperties::Verse.VerbProperties.DrawRadiusRing_Patch0(Verse.VerbProperti
es this, Verse.IntVec3 center)
IL_0000: Local var 0: Verse.VerbProperties/<>c__DisplayClass141_0
IL_0000: Local var 1: System.Single
IL_0000: Local var 2: System.Func`2<Verse.IntVec3,System.Boolean>
IL_0000: // start original
IL_0000: newobj System.Void Verse.<>c__DisplayClass141_0::.ctor()
IL_0005: stloc.0
IL_0006: ldloc.0
IL_0007: ldarg.1
IL_0008: stfld Verse.IntVec3 Verse.<>c__DisplayClass141_0::center
IL_000D: call static Verse.Map Verse.Find::get_CurrentMap()
IL_0012: brtrue => Label0
IL_0017: br => Label8
IL_001C: Label0
IL_001C: ldarg.0
IL_001D: call System.Boolean Verse.VerbProperties::get_IsMeleeAttack()
IL_0022: brtrue => Label1
IL_0027: ldarg.0
IL_0028: ldfld System.Boolean Verse.VerbProperties::targetable
IL_002D: brfalse => Label2
IL_0032: ldarg.0
IL_0033: ldc.i4.1
IL_0034: call System.Single
Verse.VerbProperties::EffectiveMinRange(System.Boolean allowAdjacentShot)
IL_0039: stloc.1
IL_003A: ldloc.1
IL_003B: ldc.r4 0
IL_0040: ble.un => Label3
IL_0045: ldloc.1
IL_0046: call static System.Single
Verse.GenRadial::get_MaxRadialPatternRadius()
IL_004B: bge.un => Label4
IL_0050: ldloc.0
IL_0051: ldfld Verse.IntVec3 Verse.<>c__DisplayClass141_0::center
IL_0056: ldloc.1
IL_0057: call static System.Void Verse.GenDraw::DrawRadiusRing(Verse.IntVec3
center, System.Single radius)
IL_005C: Label3
IL_005C: Label4
IL_005C: ldarg.0
IL_005D: ldfld System.Single Verse.VerbProperties::range
IL_0062: ldarg.0
IL_0063: ldfld System.Single Verse.VerbProperties::minRange
IL_0068: ldarg.1
IL_0069: call static System.Single
VFESecurity.TrenchUtility::FinalAdjustedRangeFromTerrain(System.Single range,
System.Single minRange, Verse.IntVec3 pos)
IL_006E: call static Verse.Map Verse.Find::get_CurrentMap()
IL_0073: callvirt Verse.IntVec3 Verse.Map::get_Size()
IL_0078: ldfld System.Int32 Verse.IntVec3::x
IL_007D: call static Verse.Map Verse.Find::get_CurrentMap()
IL_0082: callvirt Verse.IntVec3 Verse.Map::get_Size()
IL_0087: ldfld System.Int32 Verse.IntVec3::z
IL_008C: add
IL_008D: conv.r4
IL_008E: bge.un => Label5
IL_0093: ldarg.0
IL_0094: ldfld System.Single Verse.VerbProperties::range
IL_0099: ldarg.0
IL_009A: ldfld System.Single Verse.VerbProperties::minRange
IL_009F: ldarg.1
IL_00A0: call static System.Single
VFESecurity.TrenchUtility::FinalAdjustedRangeFromTerrain(System.Single range,
System.Single minRange, Verse.IntVec3 pos)
IL_00A5: call static System.Single
Verse.GenRadial::get_MaxRadialPatternRadius()
IL_00AA: bge.un => Label6
IL_00AF: ldnull
IL_00B0: stloc.2
IL_00B1: ldarg.0
IL_00B2: ldfld System.Boolean
Verse.VerbProperties::drawHighlightWithLineOfSight
IL_00B7: brfalse => Label7
IL_00BC: ldloc.0
IL_00BD: ldftn System.Boolean
Verse.<>c__DisplayClass141_0::<DrawRadiusRing>b__0(Verse.IntVec3 c)
IL_00C3: newobj System.Void System.Func`2<Verse.IntVec3,
System.Boolean>::.ctor(System.Object object, System.IntPtr method)
IL_00C8: stloc.2
IL_00C9: Label7
IL_00C9: ldloc.0
IL_00CA: ldfld Verse.IntVec3 Verse.<>c__DisplayClass141_0::center
IL_00CF: ldarg.0
IL_00D0: ldfld System.Single Verse.VerbProperties::range
IL_00D5: ldarg.0
IL_00D6: ldfld System.Single Verse.VerbProperties::minRange
IL_00DB: ldarg.1
IL_00DC: call static System.Single
VFESecurity.TrenchUtility::FinalAdjustedRangeFromTerrain(System.Single range,
System.Single minRange, Verse.IntVec3 pos)
IL_00E1: call static UnityEngine.Color UnityEngine.Color::get_white()
IL_00E6: ldloc.2
IL_00E7: call static System.Void Verse.GenDraw::DrawRadiusRing(Verse.IntVec3
center, System.Single radius, UnityEngine.Color color, System.Func`2<Verse.IntVec3,
System.Boolean> predicate)
IL_00EC: // end original
IL_00EC: Label1
IL_00EC: Label2
IL_00EC: Label5
IL_00EC: Label6
IL_00EC: Label8
IL_00EC: ret
DONE

### Patch: virtual System.Boolean Verse.Verb::Available()


### Replacement: static System.Boolean
Verse.Verb::Verse.Verb.Available_Patch2(Verse.Verb this)
IL_0000: Local var 0: RimWorld.CompReloadable
IL_0000: Local var 1: RimWorld.CompRefuelable
IL_0000: Local var 2: System.String
IL_0000: Local var 3: System.Boolean
IL_0000: ldc.i4 0
IL_0005: stloc 3 (System.Boolean)
IL_0009: // start original
IL_0009: ldarg.0
IL_000A: ldfld Verse.VerbProperties Verse.Verb::verbProps
IL_000F: ldfld System.Single Verse.VerbProperties::consumeFuelPerShot
IL_0014: ldc.r4 0
IL_0019: ble.un => Label0
IL_001E: ldarg.0
IL_001F: ldfld Verse.Thing Verse.Verb::caster
IL_0024: call static RimWorld.CompRefuelable
Verse.ThingCompUtility::TryGetComp(Verse.Thing thing)
IL_0029: stloc.1
IL_002A: ldloc.1
IL_002B: brfalse => Label1
IL_0030: ldloc.1
IL_0031: callvirt System.Single RimWorld.CompRefuelable::get_Fuel()
IL_0036: ldarg.0
IL_0037: ldfld Verse.VerbProperties Verse.Verb::verbProps
IL_003C: ldfld System.Single Verse.VerbProperties::consumeFuelPerShot
IL_0041: bge.un => Label2
IL_0046: ldc.i4.0
IL_0047: br => Label10
IL_004C: Label0
IL_004C: Label1
IL_004C: Label2
IL_004C: ldarg.0
IL_004D: call Verse.ThingWithComps Verse.Verb::get_EquipmentSource()
IL_0052: dup
IL_0053: brtrue => Label3
IL_0058: pop
IL_0059: ldnull
IL_005A: br => Label4
IL_005F: Label3
IL_005F: call RimWorld.CompReloadable Verse.ThingWithComps::GetComp()
IL_0064: Label4
IL_0064: stloc.0
IL_0065: ldloc.0
IL_0066: brfalse => Label5
IL_006B: ldloc.0
IL_006C: callvirt System.Boolean RimWorld.CompReloadable::get_CanBeUsed()
IL_0071: brtrue => Label6
IL_0076: ldc.i4.0
IL_0077: br => Label11
IL_007C: Label5
IL_007C: Label6
IL_007C: ldarg.0
IL_007D: callvirt virtual System.Boolean Verse.Verb::get_CasterIsPawn()
IL_0082: brfalse => Label7
IL_0087: ldarg.0
IL_0088: call Verse.ThingWithComps Verse.Verb::get_EquipmentSource()
IL_008D: brfalse => Label8
IL_0092: ldarg.0
IL_0093: callvirt virtual Verse.Pawn Verse.Verb::get_CasterPawn()
IL_0098: ldarg.0
IL_0099: call Verse.ThingWithComps Verse.Verb::get_EquipmentSource()
IL_009E: ldloca.s 2 (System.String)
IL_00A0: call static System.Boolean
RimWorld.EquipmentUtility::RolePreventsFromUsing(Verse.Pawn pawn, Verse.Thing
thing, System.String& reason)
IL_00A5: brfalse => Label9
IL_00AA: ldc.i4.0
IL_00AB: br => Label12
IL_00B0: Label7
IL_00B0: Label8
IL_00B0: Label9
IL_00B0: ldc.i4.1
IL_00B1: // end original
IL_00B1: Label10
IL_00B1: Label11
IL_00B1: Label12
IL_00B1: stloc 3 (System.Boolean)
IL_00B5: ldarg.0
IL_00B6: ldloca 3 (System.Boolean)
IL_00BA: call static System.Void VFECore.Available::Postfix(Verse.Verb
__instance, System.Boolean& __result)
IL_00BF: ldarg.0
IL_00C0: ldloca 3 (System.Boolean)
IL_00C4: call static System.Void VFESecurity.Available::Postfix(Verse.Verb
__instance, System.Boolean& __result)
IL_00C9: ldloc 3 (System.Boolean)
IL_00CD: ret
DONE

### Patch: System.Boolean Verse.Verb::TryFindShootLineFromTo(Verse.IntVec3 root,


Verse.LocalTargetInfo targ, Verse.ShootLine& resultingLine)
### Replacement: static System.Boolean
Verse.Verb::Verse.Verb.TryFindShootLineFromTo_Patch0(Verse.Verb this, Verse.IntVec3
root, Verse.LocalTargetInfo targ, Verse.ShootLine& resultingLine)
IL_0000: Local var 0: Verse.CellRect
IL_0000: Local var 1: Verse.IntVec3
IL_0000: Local var 2: System.Int32
IL_0000: Local var 3: Verse.IntVec3
IL_0000: Local var 4: Verse.CellRect/Enumerator
IL_0000: Local var 5: Verse.CellRect
IL_0000: Local var 6: Verse.IntVec3
IL_0000: Local var 7: System.Boolean
IL_0000: // start original
IL_0000: ldarga.s 2
IL_0002: call System.Boolean Verse.LocalTargetInfo::get_HasThing()
IL_0007: brfalse => Label0
IL_000C: ldarga.s 2
IL_000E: call Verse.Thing Verse.LocalTargetInfo::get_Thing()
IL_0013: callvirt virtual Verse.Map Verse.Thing::get_Map()
IL_0018: ldarg.0
IL_0019: ldfld Verse.Thing Verse.Verb::caster
IL_001E: callvirt virtual Verse.Map Verse.Thing::get_Map()
IL_0023: beq => Label1
IL_0028: ldarg.3
IL_0029: initobj Verse.ShootLine
IL_002F: ldc.i4.0
IL_0030: br => Label19
IL_0035: Label0
IL_0035: Label1
IL_0035: ldarg.0
IL_0036: ldfld Verse.VerbProperties Verse.Verb::verbProps
IL_003B: callvirt System.Boolean Verse.VerbProperties::get_IsMeleeAttack()
IL_0040: brtrue => Label2
IL_0045: ldarg.0
IL_0046: callvirt virtual System.Single Verse.Verb::get_EffectiveRange()
IL_004B: ldc.r4 1.42
IL_0050: bgt.un => Label3
IL_0055: Label2
IL_0055: ldarg.3
IL_0056: ldarg.1
IL_0057: ldarga.s 2
IL_0059: call Verse.IntVec3 Verse.LocalTargetInfo::get_Cell()
IL_005E: newobj System.Void Verse.ShootLine::.ctor(Verse.IntVec3 source,
Verse.IntVec3 dest)
IL_0063: stobj Verse.ShootLine
IL_0068: ldarg.1
IL_0069: ldarg.2
IL_006A: ldarg.0
IL_006B: ldfld Verse.Thing Verse.Verb::caster
IL_0070: callvirt virtual Verse.Map Verse.Thing::get_Map()
IL_0075: ldc.i4.2
IL_0076: ldnull
IL_0077: call static System.Boolean
Verse.ReachabilityImmediate::CanReachImmediate(Verse.IntVec3 start,
Verse.LocalTargetInfo target, Verse.Map map, Verse.AI.PathEndMode peMode,
Verse.Pawn pawn)
IL_007C: br => Label20
IL_0081: Label3
IL_0081: ldarga.s 2
IL_0083: call System.Boolean Verse.LocalTargetInfo::get_HasThing()
IL_0088: brtrue => Label4
IL_008D: ldarga.s 2
IL_008F: call Verse.IntVec3 Verse.LocalTargetInfo::get_Cell()
IL_0094: call static Verse.CellRect Verse.CellRect::SingleCell(Verse.IntVec3
c)
IL_0099: br => Label5
IL_009E: Label4
IL_009E: ldarga.s 2
IL_00A0: call Verse.Thing Verse.LocalTargetInfo::get_Thing()
IL_00A5: call static Verse.CellRect Verse.GenAdj::OccupiedRect(Verse.Thing t)
IL_00AA: Label5
IL_00AA: stloc.0
IL_00AB: ldarg.0
IL_00AC: ldarg.1
IL_00AD: ldarg.2
IL_00AE: ldloc.0
IL_00AF: call System.Boolean Verse.Verb::OutOfRange(Verse.IntVec3 root,
Verse.LocalTargetInfo targ, Verse.CellRect occupiedRect)
IL_00B4: brfalse => Label6
IL_00B9: ldarg.3
IL_00BA: ldarg.1
IL_00BB: ldarga.s 2
IL_00BD: call Verse.IntVec3 Verse.LocalTargetInfo::get_Cell()
IL_00C2: newobj System.Void Verse.ShootLine::.ctor(Verse.IntVec3 source,
Verse.IntVec3 dest)
IL_00C7: stobj Verse.ShootLine
IL_00CC: ldc.i4.0
IL_00CD: br => Label21
IL_00D2: Label6
IL_00D2: ldarg.0
IL_00D3: ldfld Verse.VerbProperties Verse.Verb::verbProps
IL_00D8: ldfld System.Boolean Verse.VerbProperties::requireLineOfSight
IL_00DD: brtrue => Label7
IL_00E2: ldarg.3
IL_00E3: ldarg.1
IL_00E4: ldarga.s 2
IL_00E6: call Verse.IntVec3 Verse.LocalTargetInfo::get_Cell()
IL_00EB: newobj System.Void Verse.ShootLine::.ctor(Verse.IntVec3 source,
Verse.IntVec3 dest)
IL_00F0: stobj Verse.ShootLine
IL_00F5: ldc.i4.1
IL_00F6: br => Label22
IL_00FB: Label7
IL_00FB: ldarg.0
IL_00FC: callvirt virtual System.Boolean Verse.Verb::get_CasterIsPawn()
IL_0101: brfalse => Label8
IL_0106: ldarg.0
IL_0107: ldarg.1
IL_0108: ldarg.2
IL_0109: ldloca.s 1 (Verse.IntVec3)
IL_010B: call System.Boolean
Verse.Verb::CanHitFromCellIgnoringRange(Verse.IntVec3 sourceCell,
Verse.LocalTargetInfo targ, Verse.IntVec3& goodDest)
IL_0110: brfalse => Label9
IL_0115: ldarg.3
IL_0116: ldarg.1
IL_0117: ldloc.1
IL_0118: newobj System.Void Verse.ShootLine::.ctor(Verse.IntVec3 source,
Verse.IntVec3 dest)
IL_011D: stobj Verse.ShootLine
IL_0122: ldc.i4.1
IL_0123: br => Label23
IL_0128: Label9
IL_0128: ldarg.1
IL_0129: ldloca.s 0 (Verse.CellRect)
IL_012B: ldarg.1
IL_012C: call Verse.IntVec3 Verse.CellRect::ClosestCellTo(Verse.IntVec3 c)
IL_0131: ldarg.0
IL_0132: ldfld Verse.Thing Verse.Verb::caster
IL_0137: callvirt virtual Verse.Map Verse.Thing::get_Map()
IL_013C: ldsfld System.Collections.Generic.List`1<Verse.IntVec3>
Verse.Verb::tempLeanShootSources
IL_0141: call static System.Void
Verse.ShootLeanUtility::LeanShootingSourcesFromTo(Verse.IntVec3 shooterLoc,
Verse.IntVec3 targetPos, Verse.Map map,
System.Collections.Generic.List`1<Verse.IntVec3> listToFill)
IL_0146: ldc.i4.0
IL_0147: stloc.2
IL_0148: br => Label10
IL_014D: Label12
IL_014D: ldsfld System.Collections.Generic.List`1<Verse.IntVec3>
Verse.Verb::tempLeanShootSources
IL_0152: ldloc.2
IL_0153: callvirt virtual Verse.IntVec3
System.Collections.Generic.List`1<Verse.IntVec3>::get_Item(System.Int32 index)
IL_0158: stloc.3
IL_0159: ldarg.0
IL_015A: ldloc.3
IL_015B: ldarg.2
IL_015C: ldloca.s 1 (Verse.IntVec3)
IL_015E: call System.Boolean
Verse.Verb::CanHitFromCellIgnoringRange(Verse.IntVec3 sourceCell,
Verse.LocalTargetInfo targ, Verse.IntVec3& goodDest)
IL_0163: brfalse => Label11
IL_0168: ldarg.3
IL_0169: ldloc.3
IL_016A: ldloc.1
IL_016B: newobj System.Void Verse.ShootLine::.ctor(Verse.IntVec3 source,
Verse.IntVec3 dest)
IL_0170: stobj Verse.ShootLine
IL_0175: ldc.i4.1
IL_0176: br => Label24
IL_017B: Label11
IL_017B: ldloc.2
IL_017C: ldc.i4.1
IL_017D: add
IL_017E: stloc.2
IL_017F: Label10
IL_017F: ldloc.2
IL_0180: ldsfld System.Collections.Generic.List`1<Verse.IntVec3>
Verse.Verb::tempLeanShootSources
IL_0185: callvirt virtual System.Int32
System.Collections.Generic.List`1<Verse.IntVec3>::get_Count()
IL_018A: blt => Label12
IL_018F: br => Label13
IL_0194: Label8
IL_0194: ldarg.0
IL_0195: ldfld Verse.Thing Verse.Verb::caster
IL_019A: call static Verse.CellRect Verse.GenAdj::OccupiedRect(Verse.Thing t)
IL_019F: stloc.s 5 (Verse.CellRect)
IL_01A1: ldloca.s 5 (Verse.CellRect)
IL_01A3: call Verse.Enumerator Verse.CellRect::GetEnumerator()
IL_01A8: stloc.s 4 (Verse.CellRect+Enumerator)
.try
{
IL_01AA: br => Label14
IL_01AF: Label17
IL_01AF: ldloca.s 4 (Verse.CellRect+Enumerator)
IL_01B1: call virtual Verse.IntVec3 Verse.Enumerator::get_Current()
IL_01B6: stloc.s 6 (Verse.IntVec3)
IL_01B8: ldarg.0
IL_01B9: ldloc.s 6 (Verse.IntVec3)
IL_01BB: ldarg.2
IL_01BC: ldloca.s 1 (Verse.IntVec3)
IL_01BE: call System.Boolean
Verse.Verb::CanHitFromCellIgnoringRange(Verse.IntVec3 sourceCell,
Verse.LocalTargetInfo targ, Verse.IntVec3& goodDest)
IL_01C3: brfalse => Label15
IL_01C8: ldarg.3
IL_01C9: ldloc.s 6 (Verse.IntVec3)
IL_01CB: ldloc.1
IL_01CC: newobj System.Void Verse.ShootLine::.ctor(Verse.IntVec3 source,
Verse.IntVec3 dest)
IL_01D1: stobj Verse.ShootLine
IL_01D6: ldc.i4.1
IL_01D7: stloc.s 7 (System.Boolean)
IL_01D9: leave => Label16
IL_01DE: Label14
IL_01DE: Label15
IL_01DE: ldloca.s 4 (Verse.CellRect+Enumerator)
IL_01E0: call virtual System.Boolean Verse.Enumerator::MoveNext()
IL_01E5: brtrue => Label17
IL_01EA: leave => Label18
IL_01EF: leave => (autogenerated)
} // end try
.finally
{
IL_01F4: ldloca.s 4 (Verse.CellRect+Enumerator)
IL_01F6: constrained. Verse.CellRect+Enumerator
IL_01FC: callvirt abstract virtual System.Void
System.IDisposable::Dispose()
IL_0201: endfinally
IL_0202: leave => (autogenerated)
} // end handler
IL_0203: Label13
IL_0203: Label18
IL_0203: ldarg.3
IL_0204: ldarg.1
IL_0205: ldarga.s 2
IL_0207: call Verse.IntVec3 Verse.LocalTargetInfo::get_Cell()
IL_020C: newobj System.Void Verse.ShootLine::.ctor(Verse.IntVec3 source,
Verse.IntVec3 dest)
IL_0211: stobj Verse.ShootLine
IL_0216: ldc.i4.0
IL_0217: br => Label29
IL_021C: Label16
IL_021C: ldloc.s 7 (System.Boolean)
IL_021E: // end original
IL_021E: Label19
IL_021E: Label20
IL_021E: Label21
IL_021E: Label22
IL_021E: Label23
IL_021E: Label24
IL_021E: Label29
IL_021E: ret
DONE

### Patch: System.Boolean RimWorld.Tornado::CellImmuneToDamage(Verse.IntVec3 c)


### Replacement: static System.Boolean
RimWorld.Tornado::RimWorld.Tornado.CellImmuneToDamage_Patch2(RimWorld.Tornado this,
Verse.IntVec3 c)
IL_0000: Local var 0: Verse.Building
IL_0000: Local var 1: System.Boolean
IL_0000: ldc.i4 0
IL_0005: stloc 1 (System.Boolean)
IL_0009: // start original
IL_0009: ldarg.1
IL_000A: ldarg.0
IL_000B: call virtual Verse.Map Verse.Thing::get_Map()
IL_0010: call static System.Boolean Verse.GridsUtility::Roofed(Verse.IntVec3
c, Verse.Map map)
IL_0015: brfalse => Label0
IL_001A: ldarg.1
IL_001B: ldarg.0
IL_001C: call virtual Verse.Map Verse.Thing::get_Map()
IL_0021: call static Verse.RoofDef Verse.GridsUtility::GetRoof(Verse.IntVec3
c, Verse.Map map)
IL_0026: ldfld System.Boolean Verse.RoofDef::isThickRoof
IL_002B: brfalse => Label1
IL_0030: ldc.i4.1
IL_0031: br => Label7
IL_0036: Label0
IL_0036: Label1
IL_0036: ldarg.1
IL_0037: ldarg.0
IL_0038: call virtual Verse.Map Verse.Thing::get_Map()
IL_003D: call static Verse.Building
Verse.GridsUtility::GetEdifice(Verse.IntVec3 c, Verse.Map map)
IL_0042: stloc.0
IL_0043: ldloc.0
IL_0044: brfalse => Label2
IL_0049: ldloc.0
IL_004A: ldfld Verse.ThingDef Verse.Thing::def
IL_004F: ldfld Verse.ThingCategory Verse.ThingDef::category
IL_0054: ldc.i4.3
IL_0055: bne.un => Label3
IL_005A: ldloc.0
IL_005B: ldfld Verse.ThingDef Verse.Thing::def
IL_0060: ldfld RimWorld.BuildingProperties Verse.ThingDef::building
IL_0065: ldfld System.Boolean RimWorld.BuildingProperties::isNaturalRock
IL_006A: brtrue => Label4
IL_006F: ldloc.0
IL_0070: ldfld Verse.ThingDef Verse.Thing::def
IL_0075: ldsfld Verse.ThingDef RimWorld.ThingDefOf::Wall
IL_007A: bne.un => Label5
IL_007F: ldloc.0
IL_0080: callvirt virtual RimWorld.Faction Verse.Thing::get_Faction()
IL_0085: brtrue => Label6
IL_008A: Label4
IL_008A: ldc.i4.1
IL_008B: br => Label8
IL_0090: Label2
IL_0090: Label3
IL_0090: Label5
IL_0090: Label6
IL_0090: ldc.i4.0
IL_0091: // end original
IL_0091: Label7
IL_0091: Label8
IL_0091: stloc 1 (System.Boolean)
IL_0095: ldarg.0
IL_0096: ldarg 1
IL_009A: ldloca 1 (System.Boolean)
IL_009E: call static System.Void
VFECore.CellImmuneToDamage::Postfix(RimWorld.Tornado __instance, Verse.IntVec3 c,
System.Boolean& __result)
IL_00A3: ldarg.0
IL_00A4: ldarg 1
IL_00A8: ldloca 1 (System.Boolean)
IL_00AC: call static System.Void
VFESecurity.CellImmuneToDamage::Postfix(RimWorld.Tornado __instance, Verse.IntVec3
c, System.Boolean& __result)
IL_00B1: ldloc 1 (System.Boolean)
IL_00B5: ret
DONE

### Patch: System.Boolean Verse.TerrainGrid::CanRemoveTopLayerAt(Verse.IntVec3 c)


### Replacement: static System.Boolean
Verse.TerrainGrid::Verse.TerrainGrid.CanRemoveTopLayerAt_Patch1(Verse.TerrainGrid
this, Verse.IntVec3 c)
IL_0000: Local var 0: System.Int32
IL_0000: Local var 1: System.Boolean
IL_0000: ldc.i4 0
IL_0005: stloc 1 (System.Boolean)
IL_0009: // start original
IL_0009: ldarg.0
IL_000A: ldfld Verse.Map Verse.TerrainGrid::map
IL_000F: ldfld Verse.CellIndices Verse.Map::cellIndices
IL_0014: ldarg.1
IL_0015: callvirt System.Int32 Verse.CellIndices::CellToIndex(Verse.IntVec3 c)
IL_001A: stloc.0
IL_001B: ldarg.0
IL_001C: ldfld Verse.TerrainDef[] Verse.TerrainGrid::topGrid
IL_0021: ldloc.0
IL_0022: ldelem.ref
IL_0023: callvirt System.Boolean Verse.TerrainDef::get_Removable()
IL_0028: brfalse => Label0
IL_002D: ldarg.0
IL_002E: ldfld Verse.TerrainDef[] Verse.TerrainGrid::underGrid
IL_0033: ldloc.0
IL_0034: ldelem.ref
IL_0035: ldnull
IL_0036: cgt.un
IL_0038: br => Label1
IL_003D: Label0
IL_003D: ldc.i4.0
IL_003E: // end original
IL_003E: Label1
IL_003E: stloc 1 (System.Boolean)
IL_0042: ldarg.0
IL_0043: ldfld Verse.Map Verse.TerrainGrid::map
IL_0048: ldarg 1
IL_004C: ldloca 1 (System.Boolean)
IL_0050: call static System.Void
VFESecurity.CanRemoveTopLayerAt::Postfix(Verse.Map ___map, Verse.IntVec3 c,
System.Boolean& __result)
IL_0055: ldloc 1 (System.Boolean)
IL_0059: ret
DONE

### Patch: System.Int32 Verse.AI.PathGrid::CalculatedCostAt(Verse.IntVec3 c,


System.Boolean perceivedStatic, Verse.IntVec3 prevCell)
### Replacement: static System.Int32
Verse.AI.PathGrid::Verse.AI.PathGrid.CalculatedCostAt_Patch0(Verse.AI.PathGrid
this, Verse.IntVec3 c, System.Boolean perceivedStatic, Verse.IntVec3 prevCell)
IL_0000: Local var 0: System.Int32
IL_0000: Local var 1: System.Boolean
IL_0000: Local var 2: Verse.TerrainDef
IL_0000: Local var 3: System.Collections.Generic.List`1<Verse.Thing>
IL_0000: Local var 4: System.Int32
IL_0000: Local var 5: System.Int32
IL_0000: Local var 6: Verse.Thing
IL_0000: Local var 7: System.Int32
IL_0000: Local var 8: Verse.Building
IL_0000: Local var 9: System.Int32
IL_0000: Local var 10: Verse.IntVec3
IL_0000: Local var 11: Verse.IntVec3
IL_0000: Local var 12: RimWorld.Fire
IL_0000: Local var 13: System.Int32
IL_0000: // start original
IL_0000: ldc.i4.0
IL_0001: stloc.0
IL_0002: ldc.i4.0
IL_0003: stloc.1
IL_0004: ldarg.0
IL_0005: ldfld Verse.Map Verse.AI.PathGrid::map
IL_000A: ldfld Verse.TerrainGrid Verse.Map::terrainGrid
IL_000F: ldarg.1
IL_0010: callvirt Verse.TerrainDef Verse.TerrainGrid::TerrainAt(Verse.IntVec3 c)
IL_0015: stloc.2
IL_0016: ldloc.2
IL_0017: brfalse => Label0
IL_001C: ldloc.2
IL_001D: ldfld Verse.Traversability Verse.BuildableDef::passability
IL_0022: ldc.i4.2
IL_0023: bne.un => Label1
IL_0028: Label0
IL_0028: ldc.i4 10000
IL_002D: br => Label30
IL_0032: Label1
IL_0032: ldloc.2
IL_0033: ldfld System.Int32 Verse.BuildableDef::pathCost
IL_0038: ldloc.2
IL_0039: ldarg.3
IL_003A: ldarg.0
IL_003B: ldfld Verse.Map Verse.AI.PathGrid::map
IL_0040: call static System.Int32
VFESecurity.CalculatedCostAt::FinalTerrainPathCost(System.Int32 original,
Verse.TerrainDef terrain, Verse.IntVec3 prevCell, Verse.Map map)
IL_0045: stloc.0
IL_0046: ldarg.0
IL_0047: ldfld Verse.Map Verse.AI.PathGrid::map
IL_004C: ldfld Verse.ThingGrid Verse.Map::thingGrid
IL_0051: ldarg.1
IL_0052: callvirt System.Collections.Generic.List`1<Verse.Thing>
Verse.ThingGrid::ThingsListAt(Verse.IntVec3 c)
IL_0057: stloc.3
IL_0058: ldc.i4.0
IL_0059: stloc.s 5 (System.Int32)
IL_005B: br => Label2
IL_0060: Label15
IL_0060: ldloc.3
IL_0061: ldloc.s 5 (System.Int32)
IL_0063: callvirt virtual Verse.Thing
System.Collections.Generic.List`1<Verse.Thing>::get_Item(System.Int32 index)
IL_0068: stloc.s 6 (Verse.Thing)
IL_006A: ldloc.s 6 (Verse.Thing)
IL_006C: ldfld Verse.ThingDef Verse.Thing::def
IL_0071: ldfld Verse.Traversability Verse.BuildableDef::passability
IL_0076: ldc.i4.2
IL_0077: bne.un => Label3
IL_007C: ldc.i4 10000
IL_0081: br => Label31
IL_0086: Label3
IL_0086: ldarg.0
IL_0087: ldfld System.Boolean Verse.AI.PathGrid::fenceArePassable
IL_008C: brtrue => Label4
IL_0091: ldloc.s 6 (Verse.Thing)
IL_0093: ldfld Verse.ThingDef Verse.Thing::def
IL_0098: ldfld RimWorld.BuildingProperties Verse.ThingDef::building
IL_009D: brfalse => Label5
IL_00A2: ldloc.s 6 (Verse.Thing)
IL_00A4: ldfld Verse.ThingDef Verse.Thing::def
IL_00A9: ldfld RimWorld.BuildingProperties Verse.ThingDef::building
IL_00AE: ldfld System.Boolean RimWorld.BuildingProperties::isFence
IL_00B3: brfalse => Label6
IL_00B8: ldc.i4 10000
IL_00BD: br => Label32
IL_00C2: Label4
IL_00C2: Label5
IL_00C2: Label6
IL_00C2: ldloc.s 6 (Verse.Thing)
IL_00C4: ldfld Verse.ThingDef Verse.Thing::def
IL_00C9: call static System.Boolean
Verse.AI.PathGrid::IsPathCostIgnoreRepeater(Verse.ThingDef def)
IL_00CE: brfalse => Label7
IL_00D3: ldarga.s 3
IL_00D5: call System.Boolean Verse.IntVec3::get_IsValid()
IL_00DA: brfalse => Label8
IL_00DF: ldarg.0
IL_00E0: ldarg.3
IL_00E1: call System.Boolean
Verse.AI.PathGrid::ContainsPathCostIgnoreRepeater(Verse.IntVec3 c)
IL_00E6: brtrue => Label9
IL_00EB: Label7
IL_00EB: Label8
IL_00EB: ldloc.s 6 (Verse.Thing)
IL_00ED: ldfld Verse.ThingDef Verse.Thing::def
IL_00F2: ldfld System.Int32 Verse.BuildableDef::pathCost
IL_00F7: ldloc.s 6 (Verse.Thing)
IL_00F9: call static System.Int32
VFESecurity.CalculatedCostAt::FinalThingPathCost(System.Int32 original, Verse.Thing
t)
IL_00FE: stloc.s 7 (System.Int32)
IL_0100: ldloc.s 7 (System.Int32)
IL_0102: ldloc.0
IL_0103: ble => Label10
IL_0108: ldloc.s 7 (System.Int32)
IL_010A: stloc.0
IL_010B: Label9
IL_010B: Label10
IL_010B: ldloc.s 6 (Verse.Thing)
IL_010D: isinst RimWorld.Building_Door
IL_0112: brfalse => Label11
IL_0117: ldarga.s 3
IL_0119: call System.Boolean Verse.IntVec3::get_IsValid()
IL_011E: brfalse => Label12
IL_0123: ldarg.3
IL_0124: ldarg.0
IL_0125: ldfld Verse.Map Verse.AI.PathGrid::map
IL_012A: call static Verse.Building
Verse.GridsUtility::GetEdifice(Verse.IntVec3 c, Verse.Map map)
IL_012F: stloc.s 8 (Verse.Building)
IL_0131: ldloc.s 8 (Verse.Building)
IL_0133: brfalse => Label13
IL_0138: ldloc.s 8 (Verse.Building)
IL_013A: isinst RimWorld.Building_Door
IL_013F: brfalse => Label14
IL_0144: ldloc 6 (Verse.Thing)
IL_0148: call static Verse.Thing
DoorsExpanded.HarmonyPatches::GetActualDoor(Verse.Thing thing)
IL_014D: ldloc 8 (Verse.Building)
IL_0151: call static Verse.Thing
DoorsExpanded.HarmonyPatches::GetActualDoor(Verse.Thing thing)
IL_0156: beq => Label14
IL_015B: ldc.i4.1
IL_015C: stloc.1
IL_015D: Label11
IL_015D: Label12
IL_015D: Label13
IL_015D: Label14
IL_015D: ldloc.s 5 (System.Int32)
IL_015F: ldc.i4.1
IL_0160: add
IL_0161: stloc.s 5 (System.Int32)
IL_0163: Label2
IL_0163: ldloc.s 5 (System.Int32)
IL_0165: ldloc.3
IL_0166: callvirt virtual System.Int32
System.Collections.Generic.List`1<Verse.Thing>::get_Count()
IL_016B: blt => Label15
IL_0170: ldarg.0
IL_0171: ldfld Verse.Map Verse.AI.PathGrid::map
IL_0176: ldfld Verse.SnowGrid Verse.Map::snowGrid
IL_017B: ldarg.1
IL_017C: callvirt Verse.SnowCategory Verse.SnowGrid::GetCategory(Verse.IntVec3 c)
IL_0181: call static System.Int32
Verse.SnowUtility::MovementTicksAddOn(Verse.SnowCategory category)
IL_0186: stloc.s 4 (System.Int32)
IL_0188: ldloc.s 4 (System.Int32)
IL_018A: ldloc.0
IL_018B: ble => Label16
IL_0190: ldloc.s 4 (System.Int32)
IL_0192: stloc.0
IL_0193: Label16
IL_0193: ldloc.1
IL_0194: brfalse => Label17
IL_0199: ldloc.0
IL_019A: ldc.i4.s 45
IL_019C: add
IL_019D: stloc.0
IL_019E: Label17
IL_019E: ldarg.2
IL_019F: brfalse => Label18
IL_01A4: ldc.i4.0
IL_01A5: stloc.s 9 (System.Int32)
IL_01A7: br => Label19
IL_01AC: Label29
IL_01AC: ldsfld Verse.IntVec3[] Verse.GenAdj::AdjacentCellsAndInside
IL_01B1: ldloc.s 9 (System.Int32)
IL_01B3: ldelem Verse.IntVec3
IL_01B8: stloc.s 10 (Verse.IntVec3)
IL_01BA: ldarg.1
IL_01BB: ldloc.s 10 (Verse.IntVec3)
IL_01BD: call static Verse.IntVec3 Verse.IntVec3::op_Addition(Verse.IntVec3
a, Verse.IntVec3 b)
IL_01C2: stloc.s 11 (Verse.IntVec3)
IL_01C4: ldloc.s 11 (Verse.IntVec3)
IL_01C6: ldarg.0
IL_01C7: ldfld Verse.Map Verse.AI.PathGrid::map
IL_01CC: call static System.Boolean Verse.GenGrid::InBounds(Verse.IntVec3 c,
Verse.Map map)
IL_01D1: brfalse => Label20
IL_01D6: ldnull
IL_01D7: stloc.s 12 (RimWorld.Fire)
IL_01D9: ldarg.0
IL_01DA: ldfld Verse.Map Verse.AI.PathGrid::map
IL_01DF: ldfld Verse.ThingGrid Verse.Map::thingGrid
IL_01E4: ldloc.s 11 (Verse.IntVec3)
IL_01E6: callvirt System.Collections.Generic.List`1<Verse.Thing>
Verse.ThingGrid::ThingsListAtFast(Verse.IntVec3 c)
IL_01EB: stloc.3
IL_01EC: ldc.i4.0
IL_01ED: stloc.s 13 (System.Int32)
IL_01EF: br => Label21
IL_01F4: Label23
IL_01F4: ldloc.3
IL_01F5: ldloc.s 13 (System.Int32)
IL_01F7: callvirt virtual Verse.Thing
System.Collections.Generic.List`1<Verse.Thing>::get_Item(System.Int32 index)
IL_01FC: isinst RimWorld.Fire
IL_0201: stloc.s 12 (RimWorld.Fire)
IL_0203: ldloc.s 12 (RimWorld.Fire)
IL_0205: brtrue => Label22
IL_020A: ldloc.s 13 (System.Int32)
IL_020C: ldc.i4.1
IL_020D: add
IL_020E: stloc.s 13 (System.Int32)
IL_0210: Label21
IL_0210: ldloc.s 13 (System.Int32)
IL_0212: ldloc.3
IL_0213: callvirt virtual System.Int32
System.Collections.Generic.List`1<Verse.Thing>::get_Count()
IL_0218: blt => Label23
IL_021D: Label22
IL_021D: ldloc.s 12 (RimWorld.Fire)
IL_021F: brfalse => Label24
IL_0224: ldloc.s 12 (RimWorld.Fire)
IL_0226: ldfld Verse.Thing Verse.AttachableThing::parent
IL_022B: brtrue => Label25
IL_0230: ldloc.s 10 (Verse.IntVec3)
IL_0232: ldfld System.Int32 Verse.IntVec3::x
IL_0237: brtrue => Label26
IL_023C: ldloc.s 10 (Verse.IntVec3)
IL_023E: ldfld System.Int32 Verse.IntVec3::z
IL_0243: brtrue => Label27
IL_0248: ldloc.0
IL_0249: ldc.i4 1000
IL_024E: add
IL_024F: stloc.0
IL_0250: br => Label28
IL_0255: Label26
IL_0255: Label27
IL_0255: ldloc.0
IL_0256: ldc.i4 150
IL_025B: add
IL_025C: stloc.0
IL_025D: Label20
IL_025D: Label24
IL_025D: Label25
IL_025D: Label28
IL_025D: ldloc.s 9 (System.Int32)
IL_025F: ldc.i4.1
IL_0260: add
IL_0261: stloc.s 9 (System.Int32)
IL_0263: Label19
IL_0263: ldloc.s 9 (System.Int32)
IL_0265: ldc.i4.s 9
IL_0267: blt => Label29
IL_026C: Label18
IL_026C: ldloc.0
IL_026D: // end original
IL_026D: Label30
IL_026D: Label31
IL_026D: Label32
IL_026D: ret
DONE

### Patch: static System.Single Verse.CoverUtility::BaseBlockChance(Verse.Thing


thing)
### Replacement: static System.Single
Verse.CoverUtility::Verse.CoverUtility.BaseBlockChance_Patch1(Verse.Thing thing)
IL_0000: Local var 0: RimWorld.Building_Door
IL_0000: Local var 1: System.Single
IL_0000: ldc.r4 0
IL_0005: stloc 1 (System.Single)
IL_0009: // start original
IL_0009: ldarg.0
IL_000A: call static System.Boolean
DoorsExpanded.HarmonyPatches::IsOpenDoor(Verse.Thing thing)
IL_000F: brfalse => Label1
IL_0014: ldc.r4 0
IL_0019: br => Label2
IL_001E: Label0
IL_001E: Label1
IL_001E: ldarg.0
IL_001F: ldfld Verse.ThingDef Verse.Thing::def
IL_0024: call static System.Single
Verse.CoverUtility::BaseBlockChance(Verse.ThingDef def)
IL_0029: // end original
IL_0029: Label2
IL_0029: stloc 1 (System.Single)
IL_002D: ldarg 0
IL_0031: ldloca 1 (System.Single)
IL_0035: call static System.Void
VFESecurity.BaseBlockChance_Thing::Postfix(Verse.Thing thing, System.Single&
__result)
IL_003A: ldloc 1 (System.Single)
IL_003E: ret
DONE

### Patch: static System.Collections.Generic.List`1<Verse.CoverInfo>


Verse.CoverUtility::CalculateCoverGiverSet(Verse.LocalTargetInfo target,
Verse.IntVec3 shooterLoc, Verse.Map map)
### Replacement: static System.Collections.Generic.List`1<Verse.CoverInfo>
Verse.CoverUtility::Verse.CoverUtility.CalculateCoverGiverSet_Patch1(Verse.LocalTar
getInfo target, Verse.IntVec3 shooterLoc, Verse.Map map)
IL_0000: Local var 0: Verse.IntVec3
IL_0000: Local var 1: System.Collections.Generic.List`1<Verse.CoverInfo>
IL_0000: Local var 2: System.Int32
IL_0000: Local var 3: Verse.IntVec3
IL_0000: Local var 4: Verse.CoverInfo
IL_0000: Local var 5: System.Collections.Generic.List`1<Verse.CoverInfo>
IL_0000: ldnull
IL_0001: stloc 5 (System.Collections.Generic.List`1[Verse.CoverInfo])
IL_0005: // start original
IL_0005: ldarga.s 0
IL_0007: call Verse.IntVec3 Verse.LocalTargetInfo::get_Cell()
IL_000C: stloc.0
IL_000D: newobj System.Void
System.Collections.Generic.List`1<Verse.CoverInfo>::.ctor()
IL_0012: stloc.1
IL_0013: ldarga.s 0
IL_0015: call System.Boolean Verse.LocalTargetInfo::get_HasThing()
IL_001A: brfalse => Label0
IL_001F: ldarga.s 0
IL_0021: call Verse.Thing Verse.LocalTargetInfo::get_Thing()
IL_0026: ldfld Verse.ThingDef Verse.Thing::def
IL_002B: callvirt System.Boolean Verse.ThingDef::get_CanBenefitFromCover()
IL_0030: brtrue => Label1
IL_0035: ldloc.1
IL_0036: br => Label7
IL_003B: Label0
IL_003B: Label1
IL_003B: ldc.i4.0
IL_003C: stloc.2
IL_003D: br => Label2
IL_0042: Label6
IL_0042: ldloc.0
IL_0043: ldsfld Verse.IntVec3[] Verse.GenAdj::AdjacentCells
IL_0048: ldloc.2
IL_0049: ldelem Verse.IntVec3
IL_004E: call static Verse.IntVec3 Verse.IntVec3::op_Addition(Verse.IntVec3
a, Verse.IntVec3 b)
IL_0053: stloc.3
IL_0054: ldloc.3
IL_0055: ldarg.2
IL_0056: call static System.Boolean Verse.GenGrid::InBounds(Verse.IntVec3 c,
Verse.Map map)
IL_005B: brfalse => Label3
IL_0060: ldarg.1
IL_0061: ldarg.0
IL_0062: ldloc.3
IL_0063: ldarg.2
IL_0064: ldloca.s 4 (Verse.CoverInfo)
IL_0066: call static System.Boolean
Verse.CoverUtility::TryFindAdjustedCoverInCell(Verse.IntVec3 shooterLoc,
Verse.LocalTargetInfo target, Verse.IntVec3 adjCell, Verse.Map map,
Verse.CoverInfo& result)
IL_006B: brfalse => Label4
IL_00

You might also like