Added warnings.cs

master
Mohammad Shoaib 2022-05-11 13:29:12 +05:30
parent eb25243377
commit 04ba44d045
1 changed files with 47 additions and 0 deletions

View File

@ -0,0 +1,47 @@
namespace stardew_access.Features
{
public class Warnings
{
public void update()
{
this.checkForHealth();
this.checkForStamina();
}
public void checkForStamina()
{
int stamina = CurrentPlayer.Stamina;
if (stamina <= 50)
{
// 50% stamina warning
}
else if (stamina <= 25)
{
// 25% stamina warning
}
else if (stamina <= 10)
{
// 10% stamina warning
}
}
public void checkForHealth()
{
int health = CurrentPlayer.Health;
if (health <= 50)
{
// 50% health warning
}
else if (health <= 25)
{
// 25% health warning
}
else if (health <= 10)
{
// 10% health warning
}
}
}
}