示例#1
0
        public static DamageEffect FromHealEffectData(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);
        }
示例#2
0
        public static DamageEffect FromHealEffectData(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;
        }