Skip to content

Commit

Permalink
Infinite oxygen + stamina
Browse files Browse the repository at this point in the history
  • Loading branch information
grape-lol committed Nov 15, 2024
1 parent 2a004b6 commit 213643a
Showing 1 changed file with 21 additions and 2 deletions.
23 changes: 21 additions & 2 deletions SpookPanel/Cheats.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ internal class Cheats : MonoBehaviour
private Color tabActiveColor = new Color(0.25f, 0.25f, 0.25f);
private Color textColor = Color.white;
public bool staminaBool = false;
public bool oxygenBool = false;

public void OnGUI()
{
Expand Down Expand Up @@ -92,14 +93,32 @@ private void DrawPlayerTab()
MetaProgressionHandler.ClearAllUnlockedHatsHats();
}

oxygenBool = GUILayout.Toggle(oxygenBool, "Infinite Oxygen", GUILayout.Height(30));
{
if (oxygenBool == true)
{
if (Player.localPlayer != null)
{
Player.localPlayer.data.remainingOxygen = Player.localPlayer.data.maxOxygen;
}
}
}

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;
Player.localPlayer.data.staminaDepleated = false;
Player.localPlayer.data.currentStamina = 10f;
}
else
{
if(Player.localPlayer != null)
{
Player.localPlayer.data.staminaDepleated = true;
}
}
}
}
Expand Down

0 comments on commit 213643a

Please sign in to comment.