Refactor WeaponStats and related classes to include attack speed, range, and damage type; update damage calculations for melee and ranged attacks
This commit is contained in:
@@ -12,8 +12,9 @@ namespace Weapons
|
||||
{
|
||||
var projectile = Instantiate(projectilePrefab, firePoint.position, firePoint.rotation);
|
||||
projectile.TryGetComponent<IDamageInflectorSetup>(out var inflector);
|
||||
|
||||
inflector?.Setup(character, weaponStats);
|
||||
|
||||
var finalDamage = GetFinalDamage();
|
||||
inflector?.Setup(character, finalDamage, weaponStats);
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user