Skip to content
This repository has been archived by the owner on Jul 2, 2021. It is now read-only.

Commit

Permalink
Merge pull request #2 from 2938137849/分支1
Browse files Browse the repository at this point in the history
修正大厅界面语音文本
  • Loading branch information
bin-tenkuu authored Feb 5, 2019
2 parents 0615584 + 19eb68b commit 17d6784
Show file tree
Hide file tree
Showing 2 changed files with 60 additions and 17 deletions.
12 changes: 5 additions & 7 deletions mod.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,9 @@
"description": "图片来源:mea设定,画师paryi\n神乐mea立绘图片",
"dir": "/files",
"preview": "preview.png",
"replace": [
{
"from": "/0/[^/]+/extendRes/charactor/yiji/(bighead|smallhead|full|half|waitingroom)\\.png",
"to": "/0/v0.4.1.w/extendRes/charactor/yiji/$1.png"
}
],
"entry": "script.js"
"replace": [],
"execute": {
"name": "一姬改神楽めあ台词插件",
"entry": "script.js"
}
}
65 changes: 55 additions & 10 deletions script.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,15 +48,60 @@ if (game) {
throw new Error()
}
console.log('Hacked所有语音')
Object.entries(cfg.voice.sound.groups_).forEach(
([soundID, soundGroup]) => {
soundGroup.forEach((soundObject, index) => {
soundObject.level_limit = 0
})
}
)
} catch (error) {
requestAnimationFrame(autoRun)
}
Object.entries(cfg.voice.sound.groups_).forEach(([soundID, soundGroup]) => {
if (soundID == 1) {
const changeMap = {
登录语音普通: {
words: '你好,我很可爱.'
},
登录语音满羁绊: {
words: '你好,我很可爱.'
},
大厅交互语音1: {
words: '你好,我很可爱.'
},
大厅交互语音2: {
words: '早上好'
},
大厅交互语音3: {
words: '你好,我很可爱.'
},
大厅交互语音4: {
words: 'money~~money~~money~~'
},
大厅交互语音5: {
words: '喂,你对我有什么意见吗,有的话就快说啊!'
},
大厅交互语音6: {
words: '早上好'
},
大厅交互语音7: {
words: '我加,我加,我加,我加,kaguramea'
},
大厅交互语音8: {
words: '喂,你对我有什么意见吗,有的话就快说啊!'
},
送礼物语音普通: {
words: '务必 plz plz money'
},
送礼物语音喜好: {
words: '请给我钱'
}
}
const keyArray = Object.keys(changeMap)
soundGroup.forEach((soundObject, index) => {
soundObject.level_limit = 0
if (keyArray.includes(soundObject.name)) {
soundGroup[index] = {
...soundObject,
...changeMap[soundObject.name]
}
}
})
}
})
} catch (error) {
raf = requestAnimationFrame(autoRun)
}
})
}

0 comments on commit 17d6784

Please sign in to comment.