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;
}
}
}
}```