天赋抽取 #12

Merged
Ghost merged 1 commits from why_ga into main 2026-08-28 18:43:25 +08:00
+7 -2
View File
@@ -7079,9 +7079,14 @@ if (typeof fitWorld === 'function') fitWorld();
tdDeck.forEach((t, i) => {
const card = document.createElement('div');
card.className = 'td-card dealt';
card.style.animationDelay = (i * 0.06) + 's';
card.style.animationDelay = (i * 0.16) + 's';
card.style.setProperty('--rz', (Math.random()*18 - 9).toFixed(1) + 'deg');
setTimeout(() => playTalentSfx('deal'), i * 120);
// 每张牌“出来”进入视野(td-deal 动画开始)时立即播一声发牌“啪”,与出场锁帧同步
card.addEventListener('animationstart', function onDealStart(e){
if(e.animationName !== 'td-deal') return;
playTalentSfx('deal');
card.removeEventListener('animationstart', onDealStart);
});
card.innerHTML =
'<div class="td-inner">' +
'<div class="td-face td-back">🌟</div>' +