using System.Diagnostics; using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; 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: AssemblyTitle("OutwardModTemplate")] [assembly: AssemblyDescription("")] [assembly: AssemblyConfiguration("")] [assembly: AssemblyCompany("")] [assembly: AssemblyProduct("OutwardModTemplate")] [assembly: AssemblyCopyright("Copyright © 2021")] [assembly: AssemblyTrademark("")] [assembly: ComVisible(false)] [assembly: Guid("c5450fe0-edcf-483f-b9ea-4b1ef9d36da7")] [assembly: AssemblyFileVersion("1.0.0.0")] [assembly: TargetFramework(".NETFramework,Version=v4.7.2", FrameworkDisplayName = ".NET Framework 4.7.2")] [assembly: SecurityPermission(SecurityAction.RequestMinimum, SkipVerification = true)] [assembly: AssemblyVersion("1.0.0.0")] [module: UnverifiableCode] namespace OutwardModTemplate; [BepInPlugin("DubsMod.NoCombatMusic", "NoCombatMusic", "1.0.0")] public class DubsNoCombatMod : BaseUnityPlugin { public const string GUID = "DubsMod.NoCombatMusic"; public const string NAME = "NoCombatMusic"; public const string VERSION = "1.0.0"; internal static ManualLogSource Log; internal void Awake() { //IL_0011: Unknown result type (might be due to invalid IL or missing references) Log = ((BaseUnityPlugin)this).Logger; new Harmony("DubsMod.NoCombatMusic").PatchAll(); } } [HarmonyPatch(typeof(GlobalAudioManager), "CombatStarted")] public class GlobalAudioManagerNoCombatMusic { [HarmonyPrefix] private static bool Prefix(Character __instance) { return false; } } [BepInPlugin("com.outward.DubsPotions", "DubsPotions", "1.0")] public class DubsPotions : BaseUnityPlugin { [HarmonyPatch(typeof(Item), "StartEffectsCast")] private class Item_StartEffectsCast { [HarmonyPrefix] public static bool Prefix(Item __instance, Character _targetChar) { //IL_0020: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Unknown result type (might be due to invalid IL or missing references) //IL_0027: Unknown result type (might be due to invalid IL or missing references) //IL_0028: Unknown result type (might be due to invalid IL or missing references) //IL_002b: Invalid comparison between Unknown and I4 //IL_0030: Unknown result type (might be due to invalid IL or missing references) //IL_0037: Unknown result type (might be due to invalid IL or missing references) //IL_002e: Unknown result type (might be due to invalid IL or missing references) if (__instance.IsDrink) { int num = (int)methodGetCastSheathRequired.Invoke(__instance, new object[0]); SpellCastModifier val = (SpellCastModifier)1; SpellCastType val2 = __instance.ActivateEffectAnimType; if ((int)val2 == 28) { val2 = (SpellCastType)2; } _targetChar.CastSpell(val2, ((Component)__instance).gameObject, val, num, 0.6f); return false; } return true; } } private const string ID = "com.outward.DubsPotions"; private const string NAME = "DubsPotions"; private const string VERSION = "1.0"; private static MethodInfo methodGetCastSheathRequired; internal void Awake() { //IL_0023: Unknown result type (might be due to invalid IL or missing references) methodGetCastSheathRequired = typeof(Item).GetMethod("GetCastSheathRequired", AccessTools.all); new Harmony("com.outward.DubsPotions").PatchAll(Assembly.GetExecutingAssembly()); } } public class DubsSkillLearner { }