Add WeaponStats class and update damage calculations for ranged and melee attacks

This commit is contained in:
2025-07-11 21:58:19 +02:00
parent 19c68fec3e
commit 9261b9f00f
10 changed files with 276 additions and 12 deletions

View File

@@ -19,7 +19,7 @@ namespace Weapons
hit.TryGetComponent<Health>(out var health);
if (hit.gameObject == character.gameObject) continue;
var damage = character.attributes.Damage * character.attributes.MeleeDamage;
var damage = weaponStats.Damage + character.attributes.Damage * character.attributes.MeleeDamage;
health.TakeDamage(damage);
}
}