Please disclose if any significant portion of your mod was created 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 RocketDash v1.1.0
UltimateReviveMod.dll
Decompiled a day agousing System; using System.Diagnostics; using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.Versioning; using BepInEx; using BepInEx.Configuration; using Microsoft.CodeAnalysis; 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 = ".NET Standard 2.1")] [assembly: AssemblyCompany("UltimateReviveMod")] [assembly: AssemblyConfiguration("Debug")] [assembly: AssemblyFileVersion("1.0.0.0")] [assembly: AssemblyInformationalVersion("1.0.0")] [assembly: AssemblyProduct("UltimateReviveMod")] [assembly: AssemblyTitle("UltimateReviveMod")] [assembly: AssemblyVersion("1.0.0.0")] namespace Microsoft.CodeAnalysis { [CompilerGenerated] [Microsoft.CodeAnalysis.Embedded] internal sealed class EmbeddedAttribute : Attribute { } } namespace System.Runtime.CompilerServices { [CompilerGenerated] [Microsoft.CodeAnalysis.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] [Microsoft.CodeAnalysis.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 RocketDashMod { [BepInPlugin("com.yuniverse.rocketdash", "Rocket Dash", "1.1.0")] public class Plugin : BaseUnityPlugin { public static ConfigEntry<string> DashKey; public static ConfigEntry<float> DashThrust; public static ConfigEntry<float> UpwardLift; private void Awake() { DashKey = ((BaseUnityPlugin)this).Config.Bind<string>("Controls", "Dash Key", "F", "觸發火箭衝刺的按鍵"); DashThrust = ((BaseUnityPlugin)this).Config.Bind<float>("Settings", "Dash Thrust", 100f, "衝刺的推力倍率 (預設 100,數值越大飛得越猛)"); UpwardLift = ((BaseUnityPlugin)this).Config.Bind<float>("Settings", "Upward Lift", 0.5f, "給予的額外向上浮力,避免低頭時直接撞地 (預設 0.5)"); ((BaseUnityPlugin)this).Logger.LogInfo((object)"火箭衝刺模組已載入!(支援自訂按鍵與推力設定)"); } private void Update() { //IL_0003: Unknown result type (might be due to invalid IL or missing references) //IL_0030: Unknown result type (might be due to invalid IL or missing references) //IL_0023: 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_0034: Unknown result type (might be due to invalid IL or missing references) //IL_005e: Unknown result type (might be due to invalid IL or missing references) //IL_0063: Unknown result type (might be due to invalid IL or missing references) //IL_0067: Unknown result type (might be due to invalid IL or missing references) //IL_0083: Unknown result type (might be due to invalid IL or missing references) //IL_008f: Unknown result type (might be due to invalid IL or missing references) KeyCode val = (KeyCode)102; try { val = (KeyCode)Enum.Parse(typeof(KeyCode), DashKey.Value.ToUpperInvariant()); } catch { val = (KeyCode)102; } if (Input.GetKeyDown(val)) { PlayerAvatar instance = PlayerAvatar.instance; if ((Object)(object)instance != (Object)null) { Vector3 forward = ((Component)Camera.main).transform.forward; forward.y = Mathf.Max(forward.y, UpwardLift.Value); instance.ForceImpulse(forward * DashThrust.Value); ((BaseUnityPlugin)this).Logger.LogInfo((object)$"噴射起飛!當前推力倍率: {DashThrust.Value}"); } } } } }