Exemplo n.º 1
0
 public Debuff(float duration, int procChance, Enemy target, GameManager.typeOfDamage debuffType)
 {
     this.duration   = duration;
     this.procChance = procChance;
     this.target     = target;
     type            = debuffType;
 }
Exemplo n.º 2
0
    public void TakeDamage(float damage, GameManager.typeOfDamage projectileDamageType)
    {
        if (enemyStats.DamageResistance == projectileDamageType)
        {
            damage *= 0.8f;
        }

        CalculateDamage(damage);
    }
Exemplo n.º 3
0
 public BulletDebuff(float multiplier, float duration, int procChance, Enemy target, GameManager.typeOfDamage debuffType) : base(duration, procChance, target, debuffType)
 {
     multiplierShieldRecovery = multiplier;
     defaultRecoveryTime      = target.GetTimeToShieldRecovery();
 }
Exemplo n.º 4
0
    // stun for duration time

    public CanonDebuff(float duration, int procChance, Enemy target, GameManager.typeOfDamage debuffType) : base(duration, procChance, target, debuffType)
    {
    }
Exemplo n.º 5
0
 public RocketDebuff(float duration, int procChance, float damagePerSecond, Enemy target, GameManager.typeOfDamage debuffType) : base(duration, procChance, target, debuffType)
 {
     this.damagePerSecond = damagePerSecond;
 }