public static AttackInstance Attack(AbilityEffect origin, AbilityCaster attacker, EventHandler target,
                                            float amount, DamageType type, AbilitySFXPool sfx)
        {
            AttackInstance atkInst = new AttackInstance(origin, attacker, target, amount, type, sfx);

            atkInst.Execute();
            return(atkInst);
        }
Exemple #2
0
 public AbilityData(AbilityData other)
 {
     MainValue      = other.MainValue;
     SecondaryValue = other.SecondaryValue;
     TertiaryValue  = other.TertiaryValue;
     MainType       = other.MainType;
     SecondaryType  = other.SecondaryType;
     TertiaryType   = other.TertiaryType;
     Duration       = other.Duration;
     TickInterval   = other.TickInterval;
     SFX            = other.SFX;
     MiscFloatData  = new Dictionary <AbilityDataLabel, float>(other.MiscFloatData);
     MiscIntData    = new Dictionary <AbilityDataLabel, int>(other.MiscIntData);
     MiscTypeData   = new Dictionary <AbilityDataLabel, DamageType>(other.MiscTypeData);
 }
        AttackInstance(AbilityEffect origin, AbilityCaster attacker, EventHandler target,
                       float amount, DamageType type, AbilitySFXPool sfx)
        {
            OriginEffect = origin;
            Attacker     = attacker;
            Target       = target;
            Damage       = amount;
            Type         = type;
            SFX          = sfx;

            HitChance      = 1f;
            IsHit          = true;
            CritChance     = attacker.CritChance;
            CritMultiplier = attacker.CritMultiplier;
        }
Exemple #4
0
 public AbilityData(float mainValue, float secondaryValue, float tertiaryValue, float duration, float tickInterval,
                    DamageType mainType, DamageType secondaryType, DamageType tertiaryType, AbilitySFXPool sfx,
                    Dictionary <AbilityDataLabel, int> miscIntData,
                    Dictionary <AbilityDataLabel, float> miscFloatData,
                    Dictionary <AbilityDataLabel, DamageType> miscTypeData)
 {
     MainValue      = mainValue;
     SecondaryValue = secondaryValue;
     TertiaryValue  = tertiaryValue;
     Duration       = duration;
     TickInterval   = tickInterval;
     MainType       = mainType;
     SecondaryType  = secondaryType;
     TertiaryType   = tertiaryType;
     SFX            = sfx;
     MiscFloatData  = miscFloatData;
     MiscIntData    = miscIntData;
     MiscTypeData   = miscTypeData;
 }