天赋抽取
This commit is contained in:
+7
-2
@@ -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>' +
|
||||
|
||||
Reference in New Issue
Block a user