Skip to content

Commit

Permalink
Infinite oxygen
Browse files Browse the repository at this point in the history
  • Loading branch information
grape-lol committed Nov 15, 2024
1 parent 3377842 commit 2a004b6
Showing 1 changed file with 16 additions and 2 deletions.
18 changes: 16 additions & 2 deletions SpookPanel/Cheats.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using Photon.Realtime;
using UnityEngine;
using UnityEngine;
using Zorro.Core.CLI;
using Vector2 = UnityEngine.Vector2;

namespace SpookPanel
{
Expand All @@ -15,6 +15,7 @@ internal class Cheats : MonoBehaviour
private Color backgroundColor = new Color(0.12f, 0.12f, 0.12f);
private Color tabActiveColor = new Color(0.25f, 0.25f, 0.25f);
private Color textColor = Color.white;
public bool staminaBool = false;

public void OnGUI()
{
Expand Down Expand Up @@ -85,10 +86,23 @@ private void DrawPlayerTab()
{
MetaProgressionHandler.UnlockAllHats();
}

if (GUILayout.Button("Clear All Hats", GUILayout.Height(30)))
{
MetaProgressionHandler.ClearAllUnlockedHatsHats();
}

staminaBool = GUILayout.Toggle(staminaBool, "Infinite Stamina", GUILayout.Height(30));
{
if (staminaBool == true)
{
if (Player.localPlayer != null)
{
Player.localPlayer.data.remainingOxygen = Player.localPlayer.data.maxOxygen;
// Player.localPlayer.data.staminaDepleated = false;
}
}
}
}

private void DrawMiscTab()
Expand Down

0 comments on commit 2a004b6

Please sign in to comment.