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:
2025-07-11 22:09:15 +02:00
parent 9261b9f00f
commit 57896441ab
6 changed files with 31 additions and 18 deletions

View File

@@ -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);
}
}
}