Example #1
0
 public void AddProjectileSpeedMultiplier(float increase, float duration)
 {
     rangeMultiplier      += increase;
     rangeMultiplierTimer += duration;
     activeModifiers.Add(PropertyModifier.ProjectileSpeed);
     OnPropertyApplied?.Invoke(PropertyModifier.ProjectileSpeed);
 }
Example #2
0
 public void AddFireRateMultiplier(float increase, float duration)
 {
     fireRateMultiplier      += increase;
     fireRateMultiplierTimer += duration;
     activeModifiers.Add(PropertyModifier.FireRate);
     OnPropertyApplied?.Invoke(PropertyModifier.FireRate);
 }
Example #3
0
 public void AddProjectileDamageMultiplier(float increase, float duration)
 {
     projectileDamageMultiplier      += increase;
     projectileDamageMultiplierTimer += duration;
     activeModifiers.Add(PropertyModifier.Damage);
     OnPropertyApplied?.Invoke(PropertyModifier.Damage);
 }