feat(animation): 공격 속도 기반 동적 애니메이션 페이즈
- CombatEvent에 attackDelayMs 필드 추가 - ProgressService에서 전투 이벤트에 공격 속도 전달 - AsciiAnimationCard에서 공격 속도 기반 페이즈 프레임 수 계산 - 200ms tick 기준으로 동적 프레임 수 (최소 2, 최대 10)
This commit is contained in:
@@ -1118,6 +1118,7 @@ class ProgressService {
|
||||
skillName: selectedSkill.name,
|
||||
damage: skillResult.result.damage,
|
||||
targetName: monsterStats.name,
|
||||
attackDelayMs: playerStats.attackDelayMs,
|
||||
),
|
||||
);
|
||||
} else if (selectedSkill != null && selectedSkill.isDot) {
|
||||
@@ -1144,6 +1145,7 @@ class ProgressService {
|
||||
skillName: selectedSkill.name,
|
||||
damage: skillResult.result.damage,
|
||||
targetName: monsterStats.name,
|
||||
attackDelayMs: playerStats.attackDelayMs,
|
||||
),
|
||||
);
|
||||
} else if (selectedSkill != null && selectedSkill.isHeal) {
|
||||
@@ -1206,6 +1208,7 @@ class ProgressService {
|
||||
damage: result.damage,
|
||||
targetName: monsterStats.name,
|
||||
isCritical: result.isCritical,
|
||||
attackDelayMs: playerStats.attackDelayMs,
|
||||
),
|
||||
);
|
||||
}
|
||||
@@ -1257,6 +1260,7 @@ class ProgressService {
|
||||
timestamp: timestamp,
|
||||
damage: result.damage,
|
||||
attackerName: monsterStats.name,
|
||||
attackDelayMs: monsterStats.attackDelayMs,
|
||||
),
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user