-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
3a55bb2
commit b10259f
Showing
1 changed file
with
34 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
using BepInEx; | ||
using BoplFixedMath; | ||
using HarmonyLib; | ||
using System.Reflection; | ||
using UnityEngine; | ||
|
||
namespace BEAM | ||
{ | ||
[BepInPlugin("com.Melon.MegaBeam", "MegaBeam!", "1.0.0")] | ||
public class Plugin : BaseUnityPlugin | ||
{ | ||
private void Awake() | ||
{ | ||
Logger.LogInfo("MegaBeam has loaded!"); | ||
|
||
Harmony harmony = new Harmony("com.Melon.MegaBeam"); | ||
|
||
|
||
MethodInfo original = AccessTools.Method(typeof(Beam), "Awake"); | ||
MethodInfo patch = AccessTools.Method(typeof(myPatches), "MegaBeam"); | ||
harmony.Patch(original, new HarmonyMethod(patch)); | ||
} | ||
|
||
public class myPatches | ||
{ | ||
public static void MegaBeam(Beam __instance) | ||
{ | ||
__instance.angularAimSpeed = (Fix)100f; | ||
__instance.maxTime = (Fix)10000; | ||
__instance.maxTimeAir = (Fix)10000; | ||
} | ||
} | ||
} | ||
} |