From 59d5d633561f64ca11853ab43c9d119b7bdf96b6 Mon Sep 17 00:00:00 2001 From: Scrim <105956702+scrim-dev@users.noreply.github.com> Date: Fri, 6 Dec 2024 23:44:49 -0400 Subject: [PATCH] Quick fix --- CatalyssMod/CatalyssMonoMod.cs | 18 +++++++++++++++++- CatalyssMod/ExtraGUIs.cs | 5 ++++- CatalyssMod/Utils.cs | 19 +++++++++++++++++++ 3 files changed, 40 insertions(+), 2 deletions(-) diff --git a/CatalyssMod/CatalyssMonoMod.cs b/CatalyssMod/CatalyssMonoMod.cs index 8078e53..caa97ad 100644 --- a/CatalyssMod/CatalyssMonoMod.cs +++ b/CatalyssMod/CatalyssMonoMod.cs @@ -67,7 +67,10 @@ private void OnGUI() private bool IsAutoPActive { get; set; } = false; private string AutoPText = "OFF"; - private int ExpPointAmount { get; set; } = 20; + private int ExpPointAmount { get; set; } = 10; + + public static bool InfManaTog { get; set; } = false; + public string InfManaText = "OFF"; public static int MenuPage = 1; void ModGUI(int WindowId) @@ -483,6 +486,19 @@ void ModGUI(int WindowId) } } + if (GUI.Button(new Rect(20, 150, 300, 30), $"Inf Mana [{InfManaText}]")) + { + InfManaTog = !InfManaTog; + if (InfManaTog) + { + InfManaText = "ON"; + } + else + { + InfManaText = "OFF"; + } + } + break; } diff --git a/CatalyssMod/ExtraGUIs.cs b/CatalyssMod/ExtraGUIs.cs index 675a2c8..6ecd705 100644 --- a/CatalyssMod/ExtraGUIs.cs +++ b/CatalyssMod/ExtraGUIs.cs @@ -9,6 +9,9 @@ namespace CatalyssMod { internal class ExtraGUIs : MonoBehaviour { - public void OnGUI() { /*Uhh to do lol*/ } + public void OnGUI() + { + + } } } diff --git a/CatalyssMod/Utils.cs b/CatalyssMod/Utils.cs index 78a8eeb..1b16dc0 100644 --- a/CatalyssMod/Utils.cs +++ b/CatalyssMod/Utils.cs @@ -72,6 +72,12 @@ private void Update() GetPlayer().GetComponentInChildren()._inIFrame = false; GetPlayer().GetComponentInChildren().Set_IFrame(0); } + + if(CatalyssMonoMod.InfManaTog) + { + GetPlayer().GetComponentInChildren().Change_Mana(9999); + GetPlayer().GetComponentInChildren()._manaRegenRate = 9999; + } } public static void Spin(float speed_val) @@ -82,6 +88,19 @@ public static void Spin(float speed_val) } } + public static void JoinPlyrByID() + { + try + { + string s = File.ReadAllText($"{Directory.GetCurrentDirectory}\\PlayerSteamID.txt"); + if (s.Length > 0) + { + + } + } + catch { return; } + } + private void OnGUI() { GUI.Label(new Rect(15, 10, 2000, 30), $"{Application.unityVersion}"); } } } \ No newline at end of file