feat: 플레이어 탱킹 및 지원 스킬 1차 구현

- 도발, 방어 태세, 철벽 스킬과 위협 생성 배율 시스템을 추가

- 치유, 광역 치유, 보호막 스킬과 관련 이상상태/이펙트 자산을 구성

- 보호막 흡수 로직과 체력 HUD 보너스 표시를 PlayerNetworkController, PlayerHUD, StatBar에 반영

- 플레이어 프리팹 슬롯과 디버그 메뉴를 확장해 탱킹·지원 스킬 검증 경로를 추가

- Unity 컴파일과 런타임 테스트에서 도발, 치유, 광역 치유, 보호막 발동 및 보호막 수치 적용을 확인
This commit is contained in:
2026-03-24 19:17:16 +09:00
parent c4209855ab
commit 0c7c7b0c12
48 changed files with 1200 additions and 13 deletions

View File

@@ -0,0 +1,60 @@
using UnityEngine;
using Colosseum.Abnormalities;
using Colosseum.Combat;
namespace Colosseum.Skills.Effects
{
/// <summary>
/// 이상상태와 위협 생성 배율을 함께 적용하는 자기 강화 효과입니다.
/// 탱킹 스킬의 방어/위협 유지 용도로 사용합니다.
/// </summary>
[CreateAssetMenu(fileName = "CombatBuffEffect", menuName = "Colosseum/Skills/Effects/Combat Buff")]
public class CombatBuffEffect : SkillEffect
{
[Header("Buff")]
[Tooltip("적용할 이상상태 데이터")]
[SerializeField] private AbnormalityData abnormalityData;
[Tooltip("함께 적용할 위협 생성 배율")]
[Min(0f)] [SerializeField] private float threatMultiplier = 1f;
[Tooltip("위협 생성 배율 지속 시간")]
[Min(0f)] [SerializeField] private float threatMultiplierDuration = 0f;
protected override void ApplyEffect(GameObject caster, GameObject target)
{
if (target == null)
return;
ApplyAbnormality(target, caster);
ApplyThreatMultiplier(target);
}
private void ApplyAbnormality(GameObject target, GameObject caster)
{
if (abnormalityData == null)
return;
AbnormalityManager abnormalityManager = target.GetComponent<AbnormalityManager>();
if (abnormalityManager == null)
return;
abnormalityManager.ApplyAbnormality(abnormalityData, caster);
}
private void ApplyThreatMultiplier(GameObject target)
{
if (threatMultiplier <= 0f || threatMultiplierDuration <= 0f)
return;
ThreatController threatController = target.GetComponent<ThreatController>();
if (threatController == null)
{
threatController = target.AddComponent<ThreatController>();
}
threatController.ApplyThreatMultiplier(threatMultiplier, threatMultiplierDuration);
}
}
}