mirror of
https://github.com/yoimiya-kokomi/miao-plugin.git
synced 2024-11-22 06:58:24 +00:00
parent
cb1d2eb41d
commit
5b1b99a5aa
@ -20,7 +20,11 @@ export default class ProfileDmg extends Base {
|
||||
|
||||
static dmgRulePath (name) {
|
||||
const _path = process.cwd()
|
||||
let path = `${_path}/plugins/miao-plugin/resources/meta/character/${name}/calc_auto.js`
|
||||
let path = `${_path}/plugins/miao-plugin/resources/meta/character/${name}/calc_user.js`
|
||||
if (fs.existsSync(path)) {
|
||||
return path
|
||||
}
|
||||
path = `${_path}/plugins/miao-plugin/resources/meta/character/${name}/calc_auto.js`
|
||||
if (fs.existsSync(path) && Common.cfg('teamCalc')) {
|
||||
return path
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user