Ejemplo n.º 1
0
        /// <summary>
        /// Modifies the amount of received damage.
        /// </summary>
        private int ReceiveDamageModify(int receivedDamage)
        {
            int modifiedReceivedDamage = receivedDamage;

            if (NumberGenerator.BelowPercentage(ReceiveDamageModifyChance))
            {
                modifiedReceivedDamage = CalculateModifiedReceivedDamage(receivedDamage);
            }

            return(modifiedReceivedDamage);
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Modifies the amount of dealt damage.
        /// </summary>
        private int DealDamageModify(int dealtDamage)
        {
            int modifiedDealtDamage = dealtDamage;

            if (NumberGenerator.BelowPercentage(DealDamageModifyChance))
            {
                modifiedDealtDamage = CalculateModifiedDealDamage(dealtDamage);
            }

            return(modifiedDealtDamage);
        }