Example #1
0
        public static DamageEffect FromDamageEffectData(DamageEffectData data)
        {
            DamageEffect effect = new DamageEffect();

            effect.damageType = data.DamageType;
            effect.attackType = data.AttackType;
            effect.dieType = data.DieType;
            effect.numberOfDice = data.NumberOfDice;
            effect.modifier = data.Modifier;

            return effect;
        }
Example #2
0
        public static DamageEffect FromDamageEffectData(DamageEffectData data)
        {
            DamageEffect effect = new DamageEffect();

            effect.damageType   = data.DamageType;
            effect.attackType   = data.AttackType;
            effect.dieType      = data.DieType;
            effect.numberOfDice = data.NumberOfDice;
            effect.modifier     = data.Modifier;

            return(effect);
        }
Example #3
0
        public static DamageEffect FromDamageEffectData(DamageEffectData data)
        {
            DamageEffect effect = new DamageEffect
            {
                damageType   = data.DamageType,
                attackType   = data.AttackType,
                dieType      = data.DieType,
                numberOfDice = data.NumberOfDice,
                modifier     = data.Modifier
            };

            return(effect);
        }