敌人默认等级

This commit is contained in:
kaguramaisakuya 2024-10-01 21:38:53 +08:00
parent d92850ef5a
commit 89e308bf6f
4 changed files with 4 additions and 4 deletions

View File

@ -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
} }

View File

@ -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')

View File

@ -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
} }

View File

@ -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 {