miao-plugin/tools/dmg-calc-tool.js
2022-08-18 18:13:42 +08:00

10 lines
374 B
JavaScript

import Calc from '../models/profile-lib/Calc.js'
import { Character } from '../models/index.js'
import Miao from '../components/profile-data/miao.js'
export async function calcDmg (inputData, enemyLv = 86) {
let profile = Miao.getAvatarDetail(inputData)
console.log(profile)
let char = Character.get(profile)
return await Calc.calcData({ profile, char, enemyLv })
}