Ejemplo n.º 1
0
        private void nbAbilityValue_ValueDecreased(UCEAbilityButton sender)
        {
            int value = (int)Ability.Value;

            value--;
            Ability.Value = value;
            AbilityMaxValue.RemainingValue++;
        }
Ejemplo n.º 2
0
        private void nbAbilityValue_ValueIncreased(UCEAbilityButton sender)
        {
            if (AbilityMaxValue.RemainingValue <= 0)
            {
                nbAbilityValue.Value--;
                return;
            }
            int value = (int)Ability.Value;

            value++;
            Ability.Value = value;
            AbilityMaxValue.RemainingValue--;
        }