internal static void RunNonDestructivePatches()
        {
            Type original = typeof(PathFinder);
            Type patched  = typeof(PathFinder_Transpile);

            RimThreadedHarmony.Transpile(original, patched, "FindPath", new Type[] { typeof(IntVec3), typeof(LocalTargetInfo), typeof(TraverseParms), typeof(PathEndMode) });
        }
Beispiel #2
0
        internal static void RunNonDestructivePatches()
        {
            Type original = typeof(HediffGiver_Hypothermia);
            Type patched  = typeof(HediffGiver_Hypothermia_Transpile);

            RimThreadedHarmony.Transpile(original, patched, "OnIntervalPassed");
        }
Beispiel #3
0
        internal static void RunNonDestructivePatches()
        {
            Type original = typeof(CompSpawnSubplant);
            Type patched  = typeof(CompSpawnSubplant_Transpile);

            RimThreadedHarmony.Transpile(original, patched, "DoGrowSubplant");
        }
        internal static void RunNonDestructivePatches()
        {
            Type original = typeof(BattleLog);
            Type patched  = typeof(BattleLog_Transpile);

            RimThreadedHarmony.Transpile(original, patched, "Add");
        }
Beispiel #5
0
        internal static void RunNonDestructivePatches()
        {
            Type original = typeof(Map);
            Type patched  = typeof(Map_Transpile);

            RimThreadedHarmony.Transpile(original, patched, "MapUpdate");
        }
Beispiel #6
0
        internal static void RunNonDestructivePatches()
        {
            Type original = typeof(PawnCapacitiesHandler);
            Type patched  = typeof(PawnCapacitiesHandler_Transpile);

            RimThreadedHarmony.Transpile(original, patched, "GetLevel");
        }
Beispiel #7
0
        internal static void RunNonDestructivePatches()
        {
            Type original = typeof(Corpse);
            Type patched  = typeof(Corpse_Patch);

            RimThreadedHarmony.Transpile(original, patched, nameof(SpawnSetup));
        }
        internal static void RunNonDestructivePatches()
        {
            Type original = typeof(WorkGiver_ConstructDeliverResources);
            Type patched  = typeof(WorkGiver_ConstructDeliverResources_Transpile);

            RimThreadedHarmony.Transpile(original, patched, "ResourceDeliverJobFor", null, new string[] { "CodeOptimist.JobsOfOpportunity" });
        }
Beispiel #9
0
        internal static void RunNonDestructivePatches()
        {
            Type original = typeof(Plant);
            Type patched  = typeof(Plant_Patch);

            RimThreadedHarmony.Postfix(original, patched, nameof(set_Growth));
            RimThreadedHarmony.Transpile(original, patched, nameof(TickLong));
        }
        internal static void RunNonDestructivePatches()
        {
            Type original = typeof(ThingOwner <Thing>);
            Type patched  = typeof(ThingOwnerThing_Transpile);

            RimThreadedHarmony.TranspileLockAdd3(original, "TryAdd", new Type[] { typeof(Thing), typeof(bool) });
            RimThreadedHarmony.Transpile(original, patched, "Remove");
        }
Beispiel #11
0
        internal static void RunNonDestructivePatches()
        {
            Type original = typeof(WorkGiver_DoBill);
            Type patched  = typeof(WorkGiver_DoBill_Transpile);

            RimThreadedHarmony.Transpile(original, patched, "TryFindBestBillIngredients");
            RimThreadedHarmony.Transpile(original, patched, "AddEveryMedicineToRelevantThings");
        }
        internal static void RunDestructivePatches()
        {
            Type original = typeof(Pawn_ApparelTracker);
            Type patched  = typeof(Pawn_ApparelTracker_Patch);

            //RimThreadedHarmony.Prefix(original, patched, nameof(Notify_LostBodyPart));
            RimThreadedHarmony.Transpile(original, patched, nameof(Notify_LostBodyPart));
        }
Beispiel #13
0
        public static void RunNonDestructivePatches()
        {
            Type original = typeof(TickList);
            Type patched  = typeof(TickList_Patch);

            RimThreadedHarmony.TranspileMethodLock(original, "RegisterThing");
            RimThreadedHarmony.TranspileMethodLock(original, "DeregisterThing");
            RimThreadedHarmony.Transpile(original, patched, "Tick");
            RimThreadedHarmony.Postfix(original, patched, "Tick", "TickPostfix");
        }
Beispiel #14
0
        internal static void RunNonDestructivePatches()
        {
            Type original = typeof(Rand);
            Type patched  = typeof(Rand_Patch);

            RimThreadedHarmony.AddAllMatchingFields(original, patched);
            RimThreadedHarmony.TranspileFieldReplacements(original, "TryRangeInclusiveWhere");
            RimThreadedHarmony.Transpile(original, patched, "PushState", Type.EmptyTypes);
            RimThreadedHarmony.Transpile(original, patched, "PopState");
        }
Beispiel #15
0
        internal static void RunNonDestructivePatches()
        {
            Type original = typeof(FloatMenuMakerMap);
            Type patched  = typeof(FloatMenuMakerMap_Patch);

            RimThreadedHarmony.AddAllMatchingFields(original, patched);
            RimThreadedHarmony.TranspileFieldReplacements(original, "TryMakeMultiSelectFloatMenu");
            patched = typeof(FloatMenuMakerMap_Transpile);
            RimThreadedHarmony.Transpile(original, patched, "AddHumanlikeOrders");
        }
Beispiel #16
0
        internal static void RunNonDestructivePatches()
        {
            Type original = typeof(GrammarResolver);
            Type patched  = typeof(GrammarResolver_Transpile);

            RimThreadedHarmony.Transpile(original, patched, "AddRule");
            RimThreadedHarmony.Transpile(original, patched, "RandomPossiblyResolvableEntry");
            original = AccessTools.TypeByName("Verse.Grammar.GrammarResolver+<>c__DisplayClass17_0");
            MethodInfo oMethod = AccessTools.Method(original, "<RandomPossiblyResolvableEntry>b__0");
            MethodInfo pMethod = AccessTools.Method(patched, "RandomPossiblyResolvableEntryb__0");

            RimThreadedHarmony.harmony.Patch(oMethod, transpiler: new HarmonyMethod(pMethod));
        }
		internal static void RunNonDestructivePatches()
		{
			Type original = typeof(GrammarResolverSimple);
			Type patched = typeof(GrammarResolverSimple_Transpile);
			RimThreadedHarmony.Transpile(original, patched, "Formatted");
		}
Beispiel #18
0
 internal static void RunNonDestructivePatches()
 {
     //RimThreadedHarmony.Transpile(original, patched, "GetLevel"); //wrap method in lock to protect CacheStatus changes
     RimThreadedHarmony.Transpile(original, patched, "Notify_CapacityLevelsDirty"); //wrap method in lock to protect CacheStatus changes
 }