스킬 데미지 계산 로직 반영

This commit is contained in:
aube.lee
2025-02-07 17:27:42 +09:00
parent 5968ae7a73
commit 5818ca2670
5 changed files with 60 additions and 19 deletions

View File

@@ -32,9 +32,9 @@ namespace TON
/// <summary>
/// 치명타 적용 (치명타 확률이 0보다 클 경우에만 적용)
/// </summary>
public float ApplyCriticalDamage(float damage, bool canCritical)
public float ApplyCriticalDamage(float damage)
{
if (canCritical && Random.value < criticalChance) // Random.value는 0.0 ~ 1.0 사이의 랜덤 값
if (Random.value < criticalChance) // Random.value는 0.0 ~ 1.0 사이의 랜덤 값
{
damage *= criticalMultiplier;
Debug.Log("💥 치명타 발생! 💥");