Esempio n. 1
0
        internal static void WaterLoop()
        {
            if (Water >= 2.0f && hinted)
            {
                hinted = false;
            }
            if (Water <= 2.0f && !hinted)
            {
                hinted = true;
                GameUI.DisplayHelp(Strings.WaterTooLow);
            }
            if (Water <= 1.5f && (Water > 0.5f))
            {
                Game.Player.Character.Health--;
            }
            if (Water <= 0.5f)
            {
                Game.Player.Character.Health -= 10;
            }

            if (Water != 0f)
            {
                if (Game.Player.Character.Health >= 100 && !Game.Player.Character.IsRunning && !Game.Player.Character.IsSprinting)
                {
                    MenuScript.ChangeWaterBarColor(Color.Aquamarine);
                    Water -= 0.01f;
                }
                else
                {
                    MenuScript.ChangeWaterBarColor(Color.OrangeRed);
                    Water -= 0.05f;
                }
            }
        }