feat: 무기 배율 시스템 통합
- DamageEffect: 무기 데미지 배율 적용 (GetDamageMultiplier) - PlayerSkillInput: 무기 마나 소모 배율 적용 (GetActualManaCost) - SkillEffect: 무기 사거리 배율 적용 (가상 메서드로 구현) Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-opencode) Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
This commit is contained in:
@@ -2,6 +2,7 @@ using UnityEngine;
|
||||
|
||||
using Colosseum.Stats;
|
||||
using Colosseum.Combat;
|
||||
using Colosseum.Weapons;
|
||||
|
||||
namespace Colosseum.Skills.Effects
|
||||
{
|
||||
@@ -68,7 +69,24 @@ namespace Colosseum.Skills.Effects
|
||||
_ => 0f,
|
||||
};
|
||||
|
||||
return baseDamage + (statDamage * statScaling);
|
||||
float baseTotal = baseDamage + (statDamage * statScaling);
|
||||
|
||||
// 무기 데미지 배율 적용
|
||||
float damageMultiplier = GetDamageMultiplier(caster);
|
||||
return baseTotal * damageMultiplier;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 시전자의 무기 데미지 배율 조회
|
||||
/// </summary>
|
||||
private float GetDamageMultiplier(GameObject caster)
|
||||
{
|
||||
var weaponEquipment = caster.GetComponent<WeaponEquipment>();
|
||||
if (weaponEquipment != null)
|
||||
{
|
||||
return weaponEquipment.DamageMultiplier;
|
||||
}
|
||||
return 1f;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user