feat: 翻牌与飞入天赋按钮音效改为蜘蛛纸牌纸张啪声(deal)

This commit is contained in:
李鹏宇
2026-08-28 16:28:25 +08:00
parent f109630595
commit f565f22fc2
+2 -2
View File
@@ -7188,7 +7188,7 @@ if (typeof fitWorld === 'function') fitWorld();
return; return;
} }
card.classList.add('flipped'); card.classList.add('flipped');
playTalentSfx('whoosh'); // 翻牌起手音 playTalentSfx('deal'); // 翻牌起手音(蜘蛛纸牌纸张啪声)
tdFlipped++; tdFlipped++;
tdNames.push(t.name); tdNames.push(t.name);
tdUpdateCount(); tdUpdateCount();
@@ -7264,7 +7264,7 @@ if (typeof fitWorld === 'function') fitWorld();
void clone.offsetWidth; // 强制 reflow,保证起始 transform 已渲染 void clone.offsetWidth; // 强制 reflow,保证起始 transform 已渲染
card.style.opacity = '0'; card.style.opacity = '0';
setTimeout(()=>{ setTimeout(()=>{
playTalentSfx('collect'); playTalentSfx('deal');
if(targetRect){ if(targetRect){
const tx = targetRect.left + targetRect.width/2 - (rect.left + rect.width/2); const tx = targetRect.left + targetRect.width/2 - (rect.left + rect.width/2);
const ty = targetRect.top + targetRect.height/2 - (rect.top + rect.height/2); const ty = targetRect.top + targetRect.height/2 - (rect.top + rect.height/2);