mirror of
https://github.com/yoimiya-kokomi/miao-plugin.git
synced 2024-11-21 22:48:13 +00:00
敌人默认等级
This commit is contained in:
parent
d92850ef5a
commit
89e308bf6f
@ -71,7 +71,7 @@ export async function enemyLv (e) {
|
|||||||
if (ret && ret[2]) {
|
if (ret && ret[2]) {
|
||||||
let lv = ret[2] * 1
|
let lv = ret[2] * 1
|
||||||
await selfUser.setCfg('char.enemyLv', lv)
|
await selfUser.setCfg('char.enemyLv', lv)
|
||||||
lv = await selfUser.getCfg('char.enemyLv', 91)
|
lv = await selfUser.getCfg('char.enemyLv', 103)
|
||||||
e.reply(`敌人等级已经设置为${lv}`)
|
e.reply(`敌人等级已经设置为${lv}`)
|
||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
|
@ -337,7 +337,7 @@ export default class Avatar extends Base {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// 计算当前profileData的伤害信息
|
// 计算当前profileData的伤害信息
|
||||||
async calcDmg ({ enemyLv = 91, mode = 'profile', dmgIdx = 0, idxIsInput = false }) {
|
async calcDmg ({ enemyLv = 103, mode = 'profile', dmgIdx = 0, idxIsInput = false }) {
|
||||||
if (!this.dmg || this.dmg._update !== this._update) {
|
if (!this.dmg || this.dmg._update !== this._update) {
|
||||||
let ds = this.getData('id,level,elem,attr,cons,artis:artis.sets,trees')
|
let ds = this.getData('id,level,elem,attr,cons,artis:artis.sets,trees')
|
||||||
ds.talent = lodash.mapValues(this.talent, 'level')
|
ds.talent = lodash.mapValues(this.talent, 'level')
|
||||||
|
@ -111,7 +111,7 @@ export default class ProfileDmg extends Base {
|
|||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
|
|
||||||
async calcData ({ enemyLv = 91, mode = 'profile', dmgIdx = 0, idxIsInput = false }) {
|
async calcData ({ enemyLv = 103, mode = 'profile', dmgIdx = 0, idxIsInput = false }) {
|
||||||
if (!this.char || !this.profile) {
|
if (!this.char || !this.profile) {
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
|
@ -422,7 +422,7 @@ export default class ProfileRank {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (type === 'dmg' && profile.hasDmg) {
|
if (type === 'dmg' && profile.hasDmg) {
|
||||||
let enemyLv = profile.game === 'gs' ? 91 : 80
|
let enemyLv = profile.game === 'gs' ? 103 : 80
|
||||||
let dmg = await profile.calcDmg({ enemyLv, mode: 'single' })
|
let dmg = await profile.calcDmg({ enemyLv, mode: 'single' })
|
||||||
if (dmg && dmg.avg) {
|
if (dmg && dmg.avg) {
|
||||||
return {
|
return {
|
||||||
|
Loading…
Reference in New Issue
Block a user