using System;
using System.Reflection;
using System.Runtime.CompilerServices;
using BepInEx;
using HarmonyLib;
using Landfall.TABS;
[assembly: CompilationRelaxations(8)]
[assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)]
[assembly: AssemblyVersion("0.0.0.0")]
namespace NoClothingFilter;
[BepInPlugin("dsh.tabs.noclothingfilter", "No Clothing Filter", "1.0.0")]
public class Plugin : BaseUnityPlugin
{
private void Awake()
{
//IL_0007: Unknown result type (might be due to invalid IL or missing references)
//IL_000d: Expected O, but got Unknown
try
{
Harmony val = new Harmony("dsh.tabs.noclothingfilter");
val.PatchAll(typeof(ClothingPatch));
((BaseUnityPlugin)this).Logger.LogInfo((object)"No Clothing Filter 已启用(服装不再按 unit base 过滤)");
}
catch (Exception ex)
{
((BaseUnityPlugin)this).Logger.LogError((object)("No Clothing Filter 失败: " + ex));
}
}
}
[HarmonyPatch(typeof(CharacterItem), "UnitbaseAllowed")]
internal static class ClothingPatch
{
private static bool Prefix(ref bool __result)
{
__result = true;
return false;
}
}