mirror of
https://gitgud.io/AbstractConcept/rimworld-animations-patch.git
synced 2024-08-15 00:43:27 +00:00
38 lines
1,014 B
C#
38 lines
1,014 B
C#
|
using System;
|
|||
|
using System.Collections.Generic;
|
|||
|
using System.Linq;
|
|||
|
using System.Text;
|
|||
|
using System.Threading.Tasks;
|
|||
|
using Verse;
|
|||
|
using HarmonyLib;
|
|||
|
using RimNudeWorld;
|
|||
|
|
|||
|
namespace Rimworld_Animations_Patch
|
|||
|
{
|
|||
|
[StaticConstructorOnStartup]
|
|||
|
public static class HarmonyPatch_RimNudeWorld
|
|||
|
{
|
|||
|
/*static HarmonyPatch_RimNudeWorld()
|
|||
|
{
|
|||
|
try
|
|||
|
{
|
|||
|
((Action)(() =>
|
|||
|
{
|
|||
|
if (LoadedModManager.RunningModsListForReading.Any(x => x.PackageIdPlayerFacing == "shauaputa.rimnudeworld"))
|
|||
|
{
|
|||
|
(new Harmony("Rimworld_Animations_Patch")).Patch(AccessTools.Method(AccessTools.TypeByName("RevealingApparel.HarmonyPatch_DrawAddons"), "Postfix"),
|
|||
|
prefix: new HarmonyMethod(AccessTools.Method(typeof(HarmonyPatch_RimNudeWorld), "Prefix_DrawAddons")));
|
|||
|
}
|
|||
|
}))();
|
|||
|
}
|
|||
|
catch (TypeLoadException) { }
|
|||
|
}
|
|||
|
|
|||
|
// Patch RimNudeWorld to override the revealing apparel feature; this task is handled by the new apparel settings system
|
|||
|
public static bool Prefix_DrawAddons()
|
|||
|
{
|
|||
|
return false;
|
|||
|
}*/
|
|||
|
}
|
|||
|
}
|