Skip to content

FastMissile

Latest
Compare
Choose a tag to compare
@BanNinji BanNinji released this 18 Feb 17:28
87b3492

Makes the Bopl Battle Missile ability go too Fast

using HarmonyLib;
using System.Reflection;
using BoplFixedMath;
using UnityEngine;

namespace FastMissile
{
    [BepInPlugin("com.Bentley.FastMissile", "FastMissile", "1.0.0")]
    public class Plugin : BaseUnityPlugin
    {
        private void Awake()
        {

            Harmony harmony = new Harmony("com.Bentley.FastMissile");

            MethodInfo original = AccessTools.Method(typeof(Missile), "Awake");
            MethodInfo patch = AccessTools.Method(typeof(MoonJumpFix), "execute_FastMissile");
            harmony.Patch(original, new HarmonyMethod(patch));

        }
        public class MoonJumpFix
        {
            public static bool execute_FastMissile(Missile __instance)
            {
                __instance.minimumForwardsSpeed = (Fix)85f;
                return true;

            }
        }
    }
}```