增加3.0相关的角色信息及配置

This commit is contained in:
yoimiya-kokomi 2022-08-23 06:21:56 +08:00
parent f8c03dffcc
commit 93e1e6b21f
4 changed files with 11 additions and 9 deletions

1
.gitignore vendored
View File

@ -1,5 +1,6 @@
*.psd
.idea
/tools/char-data-sprider.js
/components/cfg.json
/resources/miao-res-plus/
/components/setting.json

View File

@ -69,10 +69,9 @@ export const characters = {
10000066: ['神里绫人', 'Kamisato Ayato', 'Ayato', '绫人', '神里凌人', '凌人', '0人', '神人', '零人', '大舅哥'],
// 3.0
// ID暂无使用临时ID代替
10000100: ['提纳里', '提那里', '驴'],
10000101: ['柯莱', '柯来', '科莱', '科来', '小天使'],
10000102: ['多莉', '多利', '多力'],
10000069: ['提纳里', 'Tighnari', '提那里', '驴'],
10000067: ['柯莱', 'Collei', '柯来', '科莱', '科来', '小天使'],
10000068: ['多莉', 'Dori', '多利', '多力'],
// 以下为Miao新增自定义角色
paimon: ['派蒙', '应急食物', '应急食品', '吉祥物', '宠物', '外置器官', '会说话的动物', '矮堇瓜', '飞行矮堇瓜', '最好的伙伴'],

View File

@ -15,9 +15,6 @@ export default class ProfileDmg extends Base {
let { id } = profile
this.char = Character.get(id)
}
if (!this.char) {
return false
}
}
// 获取天赋数据

View File

@ -1,10 +1,15 @@
// eslint-disable-next-line no-unused-vars
import { Data } from '../components/index.js'
import { ProfileDmg } from '../models/index.js'
export async function calcDmg (inputData, enemyLv = 86) {
let dmg = new ProfileDmg(inputData)
let ret = await dmg.calcData({ enemyLv })
ret = Data.getData(ret, 'ret,msg,enemyName')
ret.enemyLevel = enemyLv
if (ret === false) {
return {}
} else {
ret = Data.getData(ret, 'ret,msg,enemyName')
ret.enemyLevel = enemyLv
}
return ret
}