Skip to content

Commit

Permalink
InstantBeam
Browse files Browse the repository at this point in the history
  • Loading branch information
mathlover3 committed Apr 20, 2024
1 parent 19a20b9 commit acf4289
Showing 1 changed file with 41 additions and 0 deletions.
41 changes: 41 additions & 0 deletions InstantBeam/Plugin.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
using BepInEx;
using BoplFixedMath;
using HarmonyLib;
using System.Reflection;
using UnityEngine;
using Steamworks;
using Steamworks.Data;

namespace InstantBeam
{
[BepInPlugin("com.David_Loves_JellyCar_Worlds.InstantBeam", "InstantBeam", "1.0.0")]
public class Plugin : BaseUnityPlugin
{
private void Awake()
{
Logger.LogInfo("Plugin InstantBeam is loaded!");

Harmony harmony = new Harmony("com.David_Loves_JellyCar_Worlds.InstantBeam");

Logger.LogInfo("harmany created");
harmony.PatchAll();
Logger.LogInfo("InstantBeam Patch Compleate!");
}


[HarmonyPatch(typeof(Beam))]
public class myPatches
{
[HarmonyPatch("OnEnterAbility")]
[HarmonyPostfix]
private static void OnChatMessageCallback_InstantBeam_Plug(ref BeamState ___state)
{
if (___state == BeamState.enter)
{
___state = BeamState.loop;
}
}
}

}
}

0 comments on commit acf4289

Please sign in to comment.