Beispiel #1
0
        public override void Use()
        {
            Player.instance.Hunger = (Player.instance.Hunger + HungerRecovery).Normalize(Player.instance.MaxHunger);
            Player.instance.Inventory.Remove(this);

            ScreenUpdater.OnHungerChanged();
            ScreenUpdater.OnInventoryChanged();
        }
Beispiel #2
0
 public static void SpendHunger()
 {
     if (instance.Hunger > 0)
     {
         instance.Hunger--;
         ScreenUpdater.OnHungerChanged();
     }
     else
     {
         ApplyDamage(1);
     }
 }