using System; using System.CodeDom.Compiler; using System.Diagnostics; using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.Versioning; using System.Security; using System.Security.Permissions; using Agents; using BepInEx; using BepInEx.Unity.IL2CPP; using HarmonyLib; using Il2CppSystem; using Microsoft.CodeAnalysis; using UnityEngine; [assembly: CompilationRelaxations(8)] [assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)] [assembly: Debuggable(DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints)] [assembly: TargetFramework(".NETCoreApp,Version=v6.0", FrameworkDisplayName = ".NET 6.0")] [assembly: AssemblyCompany("VorobeiDrop")] [assembly: AssemblyConfiguration("Release")] [assembly: AssemblyFileVersion("1.0.0")] [assembly: AssemblyInformationalVersion("1.0.0")] [assembly: AssemblyProduct("VorobeiDrop")] [assembly: AssemblyTitle("VorobeiDrop")] [assembly: SecurityPermission(SecurityAction.RequestMinimum, SkipVerification = true)] [assembly: AssemblyVersion("1.0.0.0")] [module: UnverifiableCode] namespace Microsoft.CodeAnalysis { [CompilerGenerated] [Embedded] internal sealed class EmbeddedAttribute : Attribute { } } namespace System.Runtime.CompilerServices { [CompilerGenerated] [Embedded] [AttributeUsage(AttributeTargets.Class | AttributeTargets.Property | AttributeTargets.Field | AttributeTargets.Event | AttributeTargets.Parameter | AttributeTargets.ReturnValue | AttributeTargets.GenericParameter, AllowMultiple = false, Inherited = false)] internal sealed class NullableAttribute : Attribute { public readonly byte[] NullableFlags; public NullableAttribute(byte P_0) { NullableFlags = new byte[1] { P_0 }; } public NullableAttribute(byte[] P_0) { NullableFlags = P_0; } } [CompilerGenerated] [Embedded] [AttributeUsage(AttributeTargets.Class | AttributeTargets.Struct | AttributeTargets.Method | AttributeTargets.Interface | AttributeTargets.Delegate, AllowMultiple = false, Inherited = false)] internal sealed class NullableContextAttribute : Attribute { public readonly byte Flag; public NullableContextAttribute(byte P_0) { Flag = P_0; } } } namespace VorobeiDrop { [BepInDependency(/*Could not decode attribute arguments.*/)] [BepInPlugin("VorobeiDrop", "VorobeiDrop", "0.0.2")] public class Plugin : BasePlugin { [HarmonyPatch] private class VorobeiPatches { [HarmonyPatch(typeof(PLOC_Fall), "Update")] [HarmonyPrefix] public static bool FallUpdate(PLOC_Fall __instance) { if (((Object)((Component)((Agent)((PLOC_Base)__instance).m_owner).CourseNode.m_area).GetComponentInParent()).name.Contains("geo_64x64_mining_refinery_X_HA_05_drop")) { __instance.CheckExitConditions(); return false; } return true; } [HarmonyPatch(typeof(PLOC_Fall), "Exit")] [HarmonyPrefix] public static bool LandUpdate(PLOC_Fall __instance) { //IL_0031: Unknown result type (might be due to invalid IL or missing references) //IL_0041: Unknown result type (might be due to invalid IL or missing references) //IL_0088: Unknown result type (might be due to invalid IL or missing references) //IL_008d: Unknown result type (might be due to invalid IL or missing references) LG_Geomorph componentInParent = ((Component)((Agent)((PLOC_Base)__instance).m_owner).CourseNode.m_area).GetComponentInParent(); if (((Object)componentInParent).name.Contains("geo_64x64_mining_refinery_X_HA_05_drop") && ((Agent)((PLOC_Base)__instance).m_owner).Position.y < ((Component)componentInParent).transform.position.y - 40f) { Debug.Log(Object.op_Implicit("VorobeiDrop debug: player " + ((PLOC_Base)__instance).m_owner.PlayerName + " kicks the buquet")); ((Dam_SyncedDamageBase)((PLOC_Base)__instance).m_owner.Damage).MeleeDamage(9000f, (Agent)null, Vector3.zero, Vector3.zero, 1f, 1f, 1f, 1f, 1f, false, (DamageNoiseLevel)0, 0u); return false; } return true; } } public override void Load() { //IL_0005: Unknown result type (might be due to invalid IL or missing references) new Harmony("vor").PatchAll(); } } [GeneratedCode("VersionInfoGenerator", "2.0.0+git50a4b1a-master")] [CompilerGenerated] internal static class VersionInfo { public const string RootNamespace = "VorobeiDrop"; public const string Version = "1.0.0"; public const string VersionPrerelease = null; public const string VersionMetadata = null; public const string SemVer = "1.0.0"; public const string GitRevShort = null; public const string GitRevLong = null; public const string GitBranch = null; public const string GitTag = null; public const bool GitIsDirty = false; } }