Ejemplo n.º 1
0
        public override void SerializeEffect <T>(T effect, DM_Effect holder)
        {
            var puncDamage = effect as PunctualDamage;

            Knockback             = puncDamage.Knockback;
            HitInventory          = puncDamage.HitInventory;
            Damage                = Damages.ParseDamageArray(puncDamage.Damages);
            Damages_AI            = Damages.ParseDamageArray(puncDamage.DamagesAI);
            IgnoreHalfResistances = puncDamage.IgnoreHalfResistances;
        }
Ejemplo n.º 2
0
 public override void SerializeEffect <T>(EffectCondition component, T template)
 {
     this.RequiredDamages = Damages.ParseDamageArray((component as DealtDamageCondition).DealtDamages);
 }