mirror of
https://github.com/Shu-Ying/noname-shuying.git
synced 2026-10-05 03:21:04 +08:00
✨ 重构活动BOSS武将包并新增独立PVP武将包 ✨ 完善天书动态难度、过关奖励与羁绊系统 🎨 新增自定义技能选择、羁绊谱册及移动端适配 🔊 整理BOSS配音、图片与模块资源路径 🐛 修复天书关卡、伤害保护及武将包加载问题
19 lines
682 B
JavaScript
19 lines
682 B
JavaScript
import bossSets from "./sets.js";
|
|
|
|
// 技能语音按实际 ext 音频目录生成台词键;阵亡语音仍使用“#角色ID:die”。
|
|
const voices = {};
|
|
for (const [setName, set] of bossSets) {
|
|
for (const [key, text] of Object.entries(set.voices || {})) {
|
|
const voiceKey = key.endsWith(":die")
|
|
? key
|
|
: `#ext:术樱包/pve/audio/skill/${setName}/${key.replace(/^#/, "")}`;
|
|
if (Object.prototype.hasOwnProperty.call(voices, voiceKey)) {
|
|
console.warn(`活动BOSS:跳过${setName}中重复的语音台词 ID“${voiceKey}”`);
|
|
continue;
|
|
}
|
|
voices[voiceKey] = text;
|
|
}
|
|
}
|
|
|
|
export default voices;
|