Exemplo n.º 1
0
        public void UpdateActionPoints(long Tick)
        {
            if (Tick >= NextApRegen)
            {
                if (AbtInterface.IsOnGlobalCooldown())
                {
                    NextApRegen = Tick + 300;
                    return;
                }

                NextApRegen = Tick + ACTION_REGEN_TIME;

                if (ActionPoints < MaxActionPoints)
                {
                    ActionPoints += 25;

                    if (ActionPoints > MaxActionPoints)
                    {
                        ActionPoints = MaxActionPoints;
                    }
                }
            }
        }