Skip to content

Commit

Permalink
Quick fix
Browse files Browse the repository at this point in the history
  • Loading branch information
scrim-dev committed Dec 7, 2024
1 parent aaf0a97 commit 59d5d63
Show file tree
Hide file tree
Showing 3 changed files with 40 additions and 2 deletions.
18 changes: 17 additions & 1 deletion CatalyssMod/CatalyssMonoMod.cs
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,10 @@ private void OnGUI()
private bool IsAutoPActive { get; set; } = false;
private string AutoPText = "<color=red>OFF</color>";

private int ExpPointAmount { get; set; } = 20;
private int ExpPointAmount { get; set; } = 10;

public static bool InfManaTog { get; set; } = false;
public string InfManaText = "<color=red>OFF</color>";

public static int MenuPage = 1;
void ModGUI(int WindowId)
Expand Down Expand Up @@ -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 = "<color=green>ON</color>";
}
else
{
InfManaText = "<color=red>OFF</color>";
}
}

break;
}

Expand Down
5 changes: 4 additions & 1 deletion CatalyssMod/ExtraGUIs.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ namespace CatalyssMod
{
internal class ExtraGUIs : MonoBehaviour
{
public void OnGUI() { /*Uhh to do lol*/ }
public void OnGUI()
{

}
}
}
19 changes: 19 additions & 0 deletions CatalyssMod/Utils.cs
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,12 @@ private void Update()
GetPlayer().GetComponentInChildren<Player>()._inIFrame = false;
GetPlayer().GetComponentInChildren<Player>().Set_IFrame(0);
}

if(CatalyssMonoMod.InfManaTog)
{
GetPlayer().GetComponentInChildren<StatusEntity>().Change_Mana(9999);
GetPlayer().GetComponentInChildren<StatusEntity>()._manaRegenRate = 9999;
}
}

public static void Spin(float speed_val)
Expand All @@ -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}"); }
}
}

0 comments on commit 59d5d63

Please sign in to comment.