调整角色多流派的一些细节

This commit is contained in:
yoimiya-kokomi 2022-09-14 02:47:14 +08:00
parent 3aa2456e8f
commit 1477d7e9c2
32 changed files with 97 additions and 180 deletions

View File

@ -11,11 +11,10 @@ async function init () {
if (fs.existsSync(`${charPath}/${char}/artis.js`)) {
charCfg[char] = await Data.importModule(`resources/meta/character/${char}/artis.js`)
}
// 允许自定义配置文件,会覆盖喵喵版评分规则
if (fs.existsSync(`${charPath}/${char}/artis_user.js`)) {
charCfg[char] = await Data.importModule(`resources/meta/character/${char}/artis_user.js`)
}
}
}
@ -35,7 +34,7 @@ const CharArtis = {
let title = '通用'
let weight = attrWeight || usefulAttr[char.name] || { atk: 75, cp: 100, cd: 100 }
if (artis.is('绝缘4') && weight.recharge < 75) {
weight.recharge += 25
weight.recharge = 75
title = '绝缘4'
}
return {
@ -49,7 +48,7 @@ const CharArtis = {
}
if (charRule) {
return charRule({ attr, artis, rule, def, weapon: profile.weapon,cons:profile.cons })
return charRule({ attr, artis, rule, def, weapon: profile.weapon, cons: profile.cons })
}
}
}

View File

@ -0,0 +1,6 @@
export default function ({ attr, artis, rule, def }) {
if (artis.is('dmg', 4) && artis.is('cpct,cdmg,def,atk', 5) && attr.cp * 2 + attr.cd > 180) {
return rule('云堇-输出', { def: 100, cp: 100, cd: 100, dmg: 100, recharge: 75 })
}
return def({ def: 100, cp: 50, cd: 50, recharge: 90 })
}

View File

@ -1,7 +0,0 @@
export default function ({ attr, weapon, rule, def }) {
// 辅助精通雷神,具体数值待定
if (weapon.name === '西风长枪' && weapon.affix >= 1) {
return rule('云堇-西风', { hp: 0, atk: 0, def: 100, cp: 100, cd: 0, mastery: 0, dmg: 25, phy: 0, recharge: 90, heal: 0 })
}
return def({ hp: 0, atk: 0, def: 100, cp: 75, cd: 0, mastery: 0, dmg: 25, phy: 0, recharge: 90, heal: 0 })
}

View File

@ -0,0 +1,7 @@
export default function ({ attr, rule, def }) {
// 优菈核爆
if (attr.cpct < 30 && attr.cdmg > 150) {
return rule('优菈-核爆', { atk: 100, cd: 100, phy: 100 })
}
return def({ atk: 75, cp: 100, cd: 100, phy: 100, recharge: 55 })
}

View File

@ -1,7 +0,0 @@
export default function ({ attr, weapon, rule, def }) {
// 优菈核爆
if (attr.cpct < 30) {
return rule('优菈-核爆', { atk: 75, cp: 0, cd: 100, mastery: 0, dmg: 100, recharge: 0 })
}
return def({ hp: 0, atk: 75, def: 0, cp: 100, cd: 100, mastery: 0, dmg: 40, phy: 100, recharge: 40, heal: 0 })
}

View File

@ -0,0 +1,3 @@
export default function ({ def }) {
return def({ atk: 75, cp: 100, cd: 100, mastery: 75, dmg: 100, recharge: 55 })
}

View File

@ -1,16 +0,0 @@
export default function ({ attr, weapon, rule, def }) {
// 辅助精通雷神,具体数值待定
let mastery_score = 0
if (attr.mastery > 100) {
mastery_score = 75
if (weapon.name === '神乐之真意' && weapon.affix >= 3) {
return rule('八重-高精', { atk: 75, cp: 100, cd: 100, mastery: mastery_score ,dmg: 80, recharge: 0 })
}
return rule('八重-激化', { atk: 75, cp: 100, cd: 100, mastery: 75, dmg: 100, recharge: 0 })
}
if (weapon.name === '神乐之真意' && weapon.affix >= 3) {
return rule('八重-高精', { atk: 75, cp: 100, cd: 100, mastery: mastery_score ,dmg: 80, recharge: 0 })
}
return def({ hp: 0, atk: 75, def: 0, cp: 100, cd: 100, mastery: 75, dmg: 100, phy: 0, recharge: 0, heal: 0 })
}

View File

@ -0,0 +1,7 @@
export default function ({ attr, rule, def }) {
// 激化精通璃月雷神,具体数值待定
if (attr.mastery > 80) {
return rule('刻晴-精通', { atk: 75, cp: 100, cd: 100, mastery: 75, dmg: 100 })
}
return def({ atk: 75, cp: 100, cd: 100, dmg: 100, phy: 100 })
}

View File

@ -1,11 +0,0 @@
export default function ({ attr, weapon, rule, def }) {
// 激化精通璃月雷神,具体数值待定
if (attr.mastery > 80) {
return rule('刻晴-激化', { atk: 60, cp: 100, cd: 100, mastery: 40, dmg: 100, recharge: 0 })
}
if (weapon.name === '磐岩结绿' && weapon.affix >= 1) {
let temp = 35 + 5*weapon.affix
return rule('刻晴-绿剑', { hp: temp, atk: 60, cp: 100, cd: 100, mastery: 40, dmg: 100, recharge: 0 })
}
return def({ hp: 0, atk: 75, def: 0, cp: 100, cd: 100, mastery: 0, dmg: 100, phy: 100, recharge: 0, heal: 0 })
}

View File

@ -0,0 +1,7 @@
export default function ({ attr, weapon, rule, def }) {
// 蒸发可莉,具体数值待定
if (attr.mastery < 80) {
return rule('可莉-纯火', { atk: 75, cp: 100, cd: 100, dmg: 100, recharge: 30 })
}
return def({ atk: 75, cp: 100, cd: 100, mastery: 75, dmg: 100, recharge: 30 })
}

View File

@ -1,7 +0,0 @@
export default function ({ attr, weapon, rule, def }) {
// 蒸发可莉,具体数值待定
if (attr.mastery < 80) {
return rule('可莉-纯火', { hp: 0, atk: 75, def: 0, cp: 100, cd: 100, mastery: 0, dmg: 100, phy: 0, recharge: 0, heal: 0 })
}
return def({ hp: 0, atk: 75, def: 0, cp: 100, cd: 100, mastery: 75, dmg: 100, phy: 0, recharge: 0, heal: 0 })
}

View File

@ -0,0 +1,17 @@
export default function ({ attr, weapon, rule, def }) {
let title = []
let mastery = 0
let hp = 80
if (attr.mastery > 120) {
title.push('精通')
mastery = 75
}
if (weapon.name === '若水') {
title.push('若水')
hp = 100
}
if (title.length > 0) {
return rule(`夜兰-${title.join('')}`, { hp, cp: 100, cd: 100, mastery, dmg: 100, recharge: 55 })
}
return def({ hp: 80, cp: 100, cd: 100, dmg: 100, recharge: 55 })
}

View File

@ -1,13 +0,0 @@
export default function ({ attr, weapon, rule, def }) {
// 小蒸一下夜兰
if (attr.mastery > 100 && weapon.name === '若水') {
return rule('夜兰-蒸发', { hp: 100, cp: 100, cd: 100, mastery: 75, dmg: 100, recharge: 35 })
}
if (weapon.name === '若水') {
return rule('夜兰-若水', { hp: 100, cp: 100, cd: 100, dmg: 100, recharge: 35 })
}
if (weapon.name === '西风猎弓') {
return rule('夜兰-西风', { hp: 80, cp: 100, cd: 100, dmg: 100, recharge: 55 })
}
return def({ hp: 80, cp: 100, cd: 100, dmg: 100, recharge: 35 })
}

View File

@ -0,0 +1,10 @@
export default function ({ attr, rule, def }) {
// 宵宫纯色流派
if (attr.mastery < 80) {
return rule('宵宫-纯色', { atk: 75, cp: 100, cd: 100, dmg: 100 })
}
if (attr.mastery > 200) {
return rule('宵宫-精通', { atk: 75, cp: 100, cd: 100, mastery: 100, dmg: 100 })
}
return def({ atk: 75, cp: 100, cd: 100, mastery: 75, dmg: 100 })
}

View File

@ -1,10 +0,0 @@
export default function ({ attr, weapon, rule, def }) {
// 宵宫纯色流派
if (attr.mastery < 80) {
return rule('宵宫-纯色', { hp: 0, atk: 75, def: 0, cp: 100, cd: 100, mastery: 0, dmg: 100, phy: 0, recharge: 0, heal: 0 })
}
if (attr.mastery > 300) {
return rule('宵宫-凹蒸发', { hp: 0, atk: 75, def: 0, cp: 100, cd: 100, mastery: 100, dmg: 100, phy: 0, recharge: 0, heal: 0 })
}
return def({ hp: 0, atk: 75, def: 0, cp: 100, cd: 100, mastery: 75, dmg: 100, phy: 0, recharge: 0, heal: 0 })
}

View File

@ -0,0 +1,6 @@
export default function ({ attr, rule, def }) {
if (attr.recharge > 240) {
return rule('温迪-充能', { atk: 75, cp: 100, cd: 100, mastery: 75, dmg: 100, recharge: 100 })
}
return def({ atk: 75, cp: 100, cd: 100, mastery: 75, dmg: 100, recharge: 75 })
}

View File

@ -1,7 +0,0 @@
export default function ({ attr, weapon, rule, def }) {
if (attr.recharge > 240) {
return rule('温迪-工具人', { atk: 75, cp:100, cd: 100, mastery: 75, dmg: 100, recharge: 100 })
}
return def({ hp: 0, atk: 75, def: 0, cp: 100, cd: 100, mastery: 75, dmg: 100, phy: 0, recharge: 75, heal: 0 })
}

View File

@ -1,6 +1,6 @@
export default function ({ artis, rule, def }) {
if (artis.is('冰套4')) {
return rule('永冻甘雨', { atk: 75, cp: 100, cd: 100, dmg: 100, recharge: 75 })
return rule('甘雨-永冻', { atk: 75, cp: 100, cd: 100, dmg: 100, recharge: 75 })
}
return def({ atk: 75, cp: 100, cd: 100, mastery: 75, dmg: 100 })
}

View File

@ -1,9 +0,0 @@
export default function ({ attr,artis, rule, def }) {
if (artis.is('冰套4')) {
return rule('永冻甘雨', { atk: 75, cp: 100, cd: 100, dmg: 100, recharge: 0 })
}
if (attr.cpct < 20) {
return rule('甘雨-核爆', { atk: 75, cp: 0, cd: 100, mastery: 75, dmg: 100, recharge: 0 })
}
return def({ atk: 75, cp: 100, cd: 100, mastery: 75, dmg: 100 })
}

View File

@ -0,0 +1,7 @@
export default function ({ attr, rule, def }) {
// 蒸发绫人,具体数值待定
if (attr.mastery > 120) {
return rule('绫人-精通', { hp: 45, atk: 60, cp: 100, cd: 100, mastery: 60, dmg: 100, recharge: 30 })
}
return def({ hp: 50, atk: 75, cp: 100, cd: 100, dmg: 100, recharge: 30 })
}

View File

@ -1,17 +0,0 @@
export default function ({ attr, weapon, rule, def }) {
//蒸发绿剑绫人
if (weapon.name === '磐岩结绿' && weapon.affix >= 1 && attr.mastery > 60) {
let temp = 35 + 5*weapon.affix
return rule('绫人-绿剑', { hp: temp, atk: 60, cp: 100, cd: 100, mastery: 60, dmg: 100, recharge: 0 })
}
// 蒸发绫人,具体数值待定
if (attr.mastery > 60) {
return rule('绫人-蒸发', { hp: 45,atk: 60, cp: 100, cd: 100, mastery: 60, dmg: 100, recharge: 0 })
}
//
if (weapon.name === '磐岩结绿' && weapon.affix >= 1) {
let temp = 35 + 5*weapon.affix
return rule('绫人-绿剑', { hp: temp, atk: 60, cp: 100, cd: 100, mastery: 0, dmg: 100, recharge: 0 })
}
return def({ hp: 45, atk: 75, def: 0, cp: 100, cd: 100, mastery: 0, dmg: 100})
}

View File

@ -0,0 +1,6 @@
export default function ({ attr, rule, def }) {
if (attr.mastery > 120) {
return rule('神里-精通', { atk: 75, cp: 100, cd: 100, mastery: 75, dmg: 100, recharge: 30 })
}
return def({ atk: 75, cp: 100, cd: 100, dmg: 100, phy: 100, recharge: 30 })
}

View File

@ -1,14 +0,0 @@
export default function ({ attr, weapon, rule, def }) {
// 傻逼的融化神里,具体数值待定
if (attr.mastery > 100) {
return rule('神里-融化', { atk: 75, cp: 100, cd: 100, mastery: 40, dmg: 100, recharge: 0 })
}
if (weapon.name === '磐岩结绿' && weapon.affix >= 1) {
let temp = 15 + 5*weapon.affix
return rule('神里-绿剑', { hp: temp, atk: 75, cp: 100, cd: 100, mastery: 0, dmg: 100, recharge: 0 })
}
if (attr.recharge > 120) {
return rule('神里-充能', { atk: 75, cp: 100, cd: 100, mastery: 0, dmg: 100, recharge: 30 })
}
return def({ hp: 0, atk: 75, def: 0, cp: 100, cd: 100, mastery: 0, dmg: 100, phy: 100, recharge: 0, heal: 0 })
}

View File

@ -0,0 +1,7 @@
export default function ({ attr, rule, def }) {
// 核爆胡桃,具体数值待定
if (attr.cpct < 30 && attr.cdmg > 200) {
return rule('胡桃-核爆', { hp: 85, atk: 50, cd: 100, mastery: 85, dmg: 100 })
}
return def({ hp: 80, atk: 50, cp: 100, cd: 100, mastery: 75, dmg: 100 })
}

View File

@ -1,15 +0,0 @@
export default function ({ attr, weapon, rule, def, cons }) {
// 核爆胡桃,具体数值待定
let hp_base = 75
if (weapon.name === '护摩之杖' && weapon.affix >= 1){
hp_base = hp_base + (weapon.affix-1)*2.5
}
if (cons>=3){
hp_base = hp_base + 5
}
if (attr.cpct < 30) {
return rule('胡桃-核爆', { hp: hp_base, atk: 25, def: 0, cp: 0, cd: 100, mastery: 80, dmg: 100, phy: 0, recharge: 0, heal: 0 })
}
return def({ hp: hp_base, atk: 30, def: 0, cp: 100, cd: 100, mastery: 75, dmg: 100, phy: 0, recharge: 0, heal: 0 })
}

View File

@ -0,0 +1,6 @@
export default function ({ attr, rule, def }) {
if (attr.mastery > 120) {
return rule('行秋-蒸发', { atk: 75, cp: 100, cd: 100, mastery: 75, dmg: 100, recharge: 75 })
}
return def({ atk: 75, cp: 100, cd: 100, mastery: 0, dmg: 100, recharge: 75 })
}

View File

@ -1,18 +0,0 @@
export default function ({ attr, weapon, rule, def }) {
// 优菈核爆
if (attr.cpct < 30) {
return rule('行秋-核爆', { atk: 75, cp: 0, cd: 100, mastery: 75, dmg: 100, recharge: 0 })
}
if (attr.mastery > 100) {
return rule('行秋-蒸发', { atk: 60, cp: 100, cd: 100, mastery: 60, dmg: 100, recharge: 0 })
}
if (weapon.name === '磐岩结绿' && weapon.affix >= 1 &&attr.mastery > 100) {
let temp = 15 + 5*weapon.affix
return rule('行秋-绿剑', { hp: temp, atk: 60, cp: 100, cd: 100, mastery: 40, dmg: 100, recharge: 0 })
}
if (weapon.name === '磐岩结绿' && weapon.affix >= 1) {
let temp = 15 + 5*weapon.affix
return rule('行秋-绿剑', { hp: temp, atk: 60, cp: 100, cd: 100, mastery: 0, dmg: 100, recharge: 0 })
}
return def({ hp: 0, atk: 75, def: 0, cp: 100, cd: 100, mastery: 0, dmg: 100, phy: 100, recharge: 40, heal: 0 })
}

View File

@ -1,7 +0,0 @@
export default function ({ attr, weapon, rule, def }) {
// 公子核爆
if (attr.cpct < 30) {
return rule('公子-核爆', { atk: 75, cp: 0, cd: 100, mastery: 75, dmg: 100, recharge: 0 })
}
return def({ hp: 0, atk: 75, def: 0, cp: 100, cd: 100, mastery: 75, dmg: 100, phy: 0, recharge: 0, heal: 0 })
}

View File

@ -1,10 +0,0 @@
export default function ({ attr, weapon, rule, def }) {
// 辅助精通雷神,具体数值待定
if (attr.mastery > 500) {
return rule('雷神-精通', { atk: 75, cp: 90, cd: 90, mastery: 100, dmg: 75, recharge: 90 })
}
if (weapon.name === '薙草之稻光' && weapon.affix >= 3) {
return rule('雷神-高精', { atk: 80, cp: 100, cd: 100, dmg: 90, recharge: 80 })
}
return def({ atk: 75, cp: 100, cd: 100, mastery: 0, dmg: 75, recharge: 90 })
}

View File

@ -0,0 +1,3 @@
export default function ({ def }) {
return def({ atk: 75, cp: 100, cd: 100, mastery: 75, dmg: 100, recharge: 55 })
}

View File

@ -1,6 +0,0 @@
export default function ({ attr, weapon, rule, def }) {
if (weapon.name === '薙草之稻光' && weapon.affix >= 3) {
return rule('香菱-高精', { hp: 0, atk: 60, def: 0, cp: 100, cd: 100, mastery: 70, dmg: 100, phy: 0, recharge: 75, heal: 0 })
}
return def({ hp: 0, atk: 70, def: 0, cp: 100, cd: 100, mastery: 70, dmg: 100, phy: 0, recharge: 70, heal: 0 })
}