feat(combat): 디버프 시스템 추가
- CombatEventType.playerDebuff 추가 - CombatState에 activeDebuffs 목록 추가 - SkillService.useDebuffSkill() 구현 - 스킬 자동 선택에 디버프 우선순위 추가 - 밸런스 상수 업데이트
This commit is contained in:
@@ -27,6 +27,9 @@ enum CombatEventType {
|
||||
/// 플레이어 버프
|
||||
playerBuff,
|
||||
|
||||
/// 플레이어 디버프 (적에게 적용)
|
||||
playerDebuff,
|
||||
|
||||
/// DOT 틱 데미지
|
||||
dotTick,
|
||||
|
||||
@@ -209,6 +212,20 @@ class CombatEvent {
|
||||
);
|
||||
}
|
||||
|
||||
/// 디버프 이벤트 생성 (적에게 디버프 적용)
|
||||
factory CombatEvent.playerDebuff({
|
||||
required int timestamp,
|
||||
required String skillName,
|
||||
required String targetName,
|
||||
}) {
|
||||
return CombatEvent(
|
||||
type: CombatEventType.playerDebuff,
|
||||
timestamp: timestamp,
|
||||
skillName: skillName,
|
||||
targetName: targetName,
|
||||
);
|
||||
}
|
||||
|
||||
/// DOT 틱 이벤트 생성
|
||||
factory CombatEvent.dotTick({
|
||||
required int timestamp,
|
||||
|
||||
Reference in New Issue
Block a user