Please disclose if your mod was created primarily using AI tools by adding the 'AI Generated' category. Failing to do so may result in the mod being removed from Thunderstore.
Decompiled source of Feather Cape Rebuff v1.0.0
FeatherCapeReBuff.dll
Decompiled 2 years agousing System.Collections.Generic; using System.Diagnostics; using System.Linq; using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.Versioning; using System.Security; using System.Security.Permissions; using BepInEx; using BepInEx.Logging; using HarmonyLib; using UnityEngine; [assembly: CompilationRelaxations(8)] [assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)] [assembly: Debuggable(DebuggableAttribute.DebuggingModes.Default | DebuggableAttribute.DebuggingModes.DisableOptimizations | DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints | DebuggableAttribute.DebuggingModes.EnableEditAndContinue)] [assembly: TargetFramework(".NETStandard,Version=v2.1", FrameworkDisplayName = "")] [assembly: AssemblyCompany("FeatherCapeReBuff")] [assembly: AssemblyConfiguration("Debug")] [assembly: AssemblyDescription("Re-buffs feather cape to remove its ashlands downsides")] [assembly: AssemblyFileVersion("1.0.0.0")] [assembly: AssemblyInformationalVersion("1.0.0")] [assembly: AssemblyProduct("FeatherCapeReBuff")] [assembly: AssemblyTitle("FeatherCapeReBuff")] [assembly: SecurityPermission(SecurityAction.RequestMinimum, SkipVerification = true)] [assembly: AssemblyVersion("1.0.0.0")] [module: UnverifiableCode] namespace FeatherCapeReBuff; [BepInPlugin("FeatherCapeReBuff", "FeatherCapeReBuff", "1.0.0")] public class FeatherBuff : BaseUnityPlugin { private static ManualLogSource Logger = Logger.CreateLogSource("FeatherCapeReBuff"); private void Awake() { Harmony.CreateAndPatchAll(typeof(FeatherBuff), (string)null); } [HarmonyPatch(typeof(ObjectDB), "Awake")] [HarmonyPostfix] private static void Patch(ObjectDB __instance) { //IL_00ca: Unknown result type (might be due to invalid IL or missing references) //IL_00cf: Unknown result type (might be due to invalid IL or missing references) //IL_00e1: Unknown result type (might be due to invalid IL or missing references) IEnumerable<ItemDrop> enumerable = from itm in __instance.GetAllItems((ItemType)17, "") where ((Object)itm).name.ToLower().Contains("cape") select itm; if (enumerable.Count() == 0 || enumerable == null) { return; } ItemDrop val = enumerable.First((ItemDrop itm) => ((Object)itm).name.ToLower().Contains("lox")); ItemDrop val2 = enumerable.First((ItemDrop itm) => ((Object)itm).name.ToLower().Contains("feather")); val2.m_itemData.m_shared.m_damageModifiers.Clear(); foreach (DamageModPair damageModifier in val.m_itemData.m_shared.m_damageModifiers) { val2.m_itemData.m_shared.m_damageModifiers.Add(damageModifier); } } } public static class PluginInfo { public const string PLUGIN_GUID = "FeatherCapeReBuff"; public const string PLUGIN_NAME = "FeatherCapeReBuff"; public const string PLUGIN_VERSION = "1.0.0"; }