mirror of
https://github.com/yoimiya-kokomi/miao-plugin.git
synced 2024-11-16 04:35:42 +00:00
更改圣遗物配置路径
This commit is contained in:
parent
8935bd57b8
commit
31dc8f190b
97
resources/meta/artifact/artis-mark.js
Normal file
97
resources/meta/artifact/artis-mark.js
Normal file
@ -0,0 +1,97 @@
|
||||
export const attrValue = {
|
||||
cp: 3.89,
|
||||
cd: 7.77,
|
||||
mastery: 23.31,
|
||||
atk: 5.83,
|
||||
hp: 5.83,
|
||||
def: 7.29,
|
||||
recharge: 6.48,
|
||||
dmg: 5.825,
|
||||
phy: 7.288,
|
||||
heal: 4.487
|
||||
}
|
||||
export const attrMap = {
|
||||
atk: { title: '大攻击', format: 'pct', type: 'normal', value: 5.83, text: '5.83%' },
|
||||
atkPlus: { title: '小攻击', format: 'comma', type: 'plus', base: 'atk', value: 15.56 },
|
||||
def: { title: '大防御', format: 'pct', type: 'normal', value: 7.29, text: '7.29%' },
|
||||
defPlus: { title: '小防御', format: 'comma', type: 'plus', base: 'def', value: 18.52 },
|
||||
hp: { title: '大生命', format: 'pct', type: 'normal', value: 5.83, text: '5.83%' },
|
||||
hpPlus: { title: '小生命', format: 'comma', type: 'plus', base: 'hp', value: 239.0 },
|
||||
cp: { title: '暴击率', format: 'pct', type: 'normal', value: 3.89, text: '3.89%' },
|
||||
cd: { title: '暴击伤害', format: 'pct', type: 'normal', value: 7.77, text: '7.77%' },
|
||||
mastery: { title: '元素精通', format: 'comma', type: 'normal', value: 23.31, text: '23.31' },
|
||||
recharge: { title: '充能效率', format: 'pct', type: 'normal', value: 6.48, text: '6.48%' },
|
||||
dmg: { title: '元素伤害', format: 'pct', type: 'normal', value: 5.825, text: '5.83%' },
|
||||
phy: { title: '物伤加成', format: 'pct', type: 'normal', value: 7.288, text: '7.29%' },
|
||||
heal: { title: '治疗加成', format: 'pct', type: 'normal', value: 4.487, text: '4.49%' }
|
||||
}
|
||||
|
||||
let anMap = {}
|
||||
for (let attr in attrMap) {
|
||||
anMap[attrMap[attr].title] = attr
|
||||
}
|
||||
|
||||
export const attrNameMap = anMap
|
||||
|
||||
export const mainAttr = {
|
||||
3: 'atk,def,hp,mastery,recharge'.split(','),
|
||||
4: 'atk,def,hp,mastery,dmg,phy'.split(','),
|
||||
5: 'atk,def,hp,mastery,heal,cp,cd'.split(',')
|
||||
}
|
||||
|
||||
export const subAttr = 'atk,def,hp,mastery,recharge,cp,cd'.split(',')
|
||||
|
||||
export const usefulAttr = {
|
||||
神里绫人: { hp: 50, atk: 75, def: 0, cp: 100, cd: 100, mastery: 0, dmg: 100, phy: 0, recharge: 30, heal: 0 },
|
||||
八重神子: { hp: 0, atk: 75, def: 0, cp: 100, cd: 100, mastery: 75, dmg: 100, phy: 0, recharge: 55, heal: 0 },
|
||||
申鹤: { hp: 0, atk: 100, def: 0, cp: 100, cd: 100, mastery: 0, dmg: 100, phy: 0, recharge: 55, heal: 0 },
|
||||
云堇: { hp: 0, atk: 0, def: 100, cp: 50, cd: 50, mastery: 0, dmg: 40, phy: 0, recharge: 90, heal: 0 },
|
||||
荒泷一斗: { hp: 0, atk: 50, def: 100, cp: 100, cd: 100, mastery: 0, dmg: 100, phy: 0, recharge: 30, heal: 0 },
|
||||
五郎: { hp: 0, atk: 50, def: 100, cp: 50, cd: 50, mastery: 0, dmg: 25, phy: 0, recharge: 90, heal: 0 },
|
||||
班尼特: { hp: 100, atk: 50, def: 0, cp: 100, cd: 100, mastery: 0, dmg: 80, phy: 0, recharge: 55, heal: 100 },
|
||||
枫原万叶: { hp: 0, atk: 75, def: 0, cp: 100, cd: 100, mastery: 100, dmg: 100, phy: 0, recharge: 55, heal: 0 },
|
||||
行秋: { hp: 0, atk: 75, def: 0, cp: 100, cd: 100, mastery: 0, dmg: 100, phy: 0, recharge: 75, heal: 0 },
|
||||
钟离: { hp: 80, atk: 75, def: 0, cp: 100, cd: 100, mastery: 0, dmg: 100, phy: 50, recharge: 55, heal: 0 },
|
||||
神里绫华: { hp: 0, atk: 75, def: 0, cp: 100, cd: 100, mastery: 0, dmg: 100, phy: 0, recharge: 30, heal: 0 },
|
||||
香菱: { hp: 0, atk: 75, def: 0, cp: 100, cd: 100, mastery: 75, dmg: 100, phy: 0, recharge: 55, heal: 0 },
|
||||
胡桃: { hp: 80, atk: 50, def: 0, cp: 100, cd: 100, mastery: 75, dmg: 100, phy: 0, recharge: 0, heal: 0 },
|
||||
温迪: { hp: 0, atk: 75, def: 0, cp: 100, cd: 100, mastery: 75, dmg: 100, phy: 0, recharge: 55, heal: 0 },
|
||||
珊瑚宫心海: { hp: 100, atk: 50, def: 0, cp: 0, cd: 0, mastery: 0, dmg: 100, phy: 0, recharge: 55, heal: 100 },
|
||||
莫娜: { hp: 0, atk: 75, def: 0, cp: 100, cd: 100, mastery: 75, dmg: 100, phy: 0, recharge: 75, heal: 0 },
|
||||
阿贝多: { hp: 0, atk: 0, def: 100, cp: 100, cd: 100, mastery: 0, dmg: 100, phy: 0, recharge: 0, heal: 0 },
|
||||
迪奥娜: { hp: 100, atk: 50, def: 0, cp: 50, cd: 50, mastery: 0, dmg: 100, phy: 0, recharge: 90, heal: 100 },
|
||||
优菈: { hp: 0, atk: 75, def: 0, cp: 100, cd: 100, mastery: 0, dmg: 40, phy: 100, recharge: 55, heal: 0 },
|
||||
达达利亚: { hp: 0, atk: 75, def: 0, cp: 100, cd: 100, mastery: 75, dmg: 100, phy: 0, recharge: 30, heal: 0 },
|
||||
魈: { hp: 0, atk: 75, def: 0, cp: 100, cd: 100, mastery: 0, dmg: 100, phy: 0, recharge: 55, heal: 0 },
|
||||
宵宫: { hp: 0, atk: 75, def: 0, cp: 100, cd: 100, mastery: 75, dmg: 100, phy: 0, recharge: 0, heal: 0 },
|
||||
九条裟罗: { hp: 0, atk: 75, def: 0, cp: 100, cd: 100, mastery: 0, dmg: 100, phy: 0, recharge: 55, heal: 0 },
|
||||
琴: { hp: 0, atk: 75, def: 0, cp: 100, cd: 100, mastery: 0, dmg: 100, phy: 100, recharge: 55, heal: 100 },
|
||||
菲谢尔: { hp: 0, atk: 75, def: 0, cp: 100, cd: 100, mastery: 75, dmg: 100, phy: 60, recharge: 0, heal: 0 },
|
||||
罗莎莉亚: { hp: 0, atk: 75, def: 0, cp: 100, cd: 100, mastery: 0, dmg: 70, phy: 80, recharge: 30, heal: 0 },
|
||||
可莉: { hp: 0, atk: 75, def: 0, cp: 100, cd: 100, mastery: 75, dmg: 100, phy: 0, recharge: 30, heal: 0 },
|
||||
凝光: { hp: 0, atk: 75, def: 0, cp: 100, cd: 100, mastery: 0, dmg: 100, phy: 0, recharge: 30, heal: 0 },
|
||||
北斗: { hp: 0, atk: 75, def: 0, cp: 100, cd: 100, mastery: 75, dmg: 100, phy: 0, recharge: 55, heal: 0 },
|
||||
刻晴: { hp: 0, atk: 75, def: 0, cp: 100, cd: 100, mastery: 75, dmg: 100, phy: 100, recharge: 0, heal: 0 },
|
||||
托马: { hp: 100, atk: 50, def: 0, cp: 50, cd: 50, mastery: 0, dmg: 75, phy: 0, recharge: 90, heal: 0 },
|
||||
迪卢克: { hp: 0, atk: 75, def: 0, cp: 100, cd: 100, mastery: 75, dmg: 100, phy: 0, recharge: 0, heal: 0 },
|
||||
诺艾尔: { hp: 0, atk: 50, def: 90, cp: 100, cd: 100, mastery: 0, dmg: 100, phy: 0, recharge: 70, heal: 0 },
|
||||
旅行者: { hp: 0, atk: 75, def: 0, cp: 100, cd: 100, mastery: 0, dmg: 100, phy: 0, recharge: 55, heal: 0 },
|
||||
重云: { hp: 0, atk: 75, def: 0, cp: 100, cd: 100, mastery: 75, dmg: 100, phy: 0, recharge: 55, heal: 0 },
|
||||
七七: { hp: 0, atk: 100, def: 0, cp: 100, cd: 100, mastery: 0, dmg: 60, phy: 70, recharge: 55, heal: 100 },
|
||||
凯亚: { hp: 0, atk: 75, def: 0, cp: 100, cd: 100, mastery: 0, dmg: 100, phy: 100, recharge: 30, heal: 0 },
|
||||
烟绯: { hp: 0, atk: 75, def: 0, cp: 100, cd: 100, mastery: 75, dmg: 100, phy: 0, recharge: 30, heal: 0 },
|
||||
早柚: { hp: 0, atk: 50, def: 0, cp: 50, cd: 50, mastery: 100, dmg: 80, phy: 0, recharge: 55, heal: 100 },
|
||||
安柏: { hp: 0, atk: 75, def: 0, cp: 100, cd: 100, mastery: 75, dmg: 100, phy: 100, recharge: 0, heal: 0 },
|
||||
丽莎: { hp: 0, atk: 75, def: 0, cp: 100, cd: 100, mastery: 75, dmg: 100, phy: 0, recharge: 0, heal: 0 },
|
||||
埃洛伊: { hp: 0, atk: 75, def: 0, cp: 100, cd: 100, mastery: 0, dmg: 100, phy: 0, recharge: 0, heal: 0 },
|
||||
辛焱: { hp: 0, atk: 75, def: 0, cp: 100, cd: 100, mastery: 0, dmg: 50, phy: 100, recharge: 0, heal: 0 },
|
||||
砂糖: { hp: 0, atk: 75, def: 0, cp: 100, cd: 100, mastery: 100, dmg: 50, phy: 0, recharge: 55, heal: 0 },
|
||||
雷泽: { hp: 0, atk: 75, def: 0, cp: 100, cd: 100, mastery: 0, dmg: 50, phy: 100, recharge: 0, heal: 0 },
|
||||
夜兰: { hp: 80, atk: 0, def: 0, cp: 100, cd: 100, mastery: 0, dmg: 100, phy: 0, recharge: 55, heal: 0 },
|
||||
久岐忍: { hp: 100, atk: 50, def: 0, cp: 100, cd: 100, mastery: 75, dmg: 100, phy: 0, recharge: 55, heal: 100 },
|
||||
鹿野院平藏: { hp: 0, atk: 75, def: 0, cp: 100, cd: 100, mastery: 75, dmg: 100, phy: 0, recharge: 30, heal: 0 },
|
||||
提纳里: { hp: 0, atk: 75, def: 0, cp: 100, cd: 100, mastery: 90, dmg: 100, phy: 0, recharge: 30, heal: 0 },
|
||||
柯莱: { hp: 0, atk: 75, def: 0, cp: 100, cd: 100, mastery: 75, dmg: 100, phy: 0, recharge: 30, heal: 0 },
|
||||
空: { hp: 0, atk: 75, def: 0, cp: 100, cd: 100, mastery: 75, dmg: 100, phy: 0, recharge: 55, heal: 0 },
|
||||
荧: { hp: 0, atk: 75, def: 0, cp: 100, cd: 100, mastery: 75, dmg: 100, phy: 0, recharge: 55, heal: 0 }
|
||||
}
|
220
resources/meta/artifact/calc.js
Normal file
220
resources/meta/artifact/calc.js
Normal file
@ -0,0 +1,220 @@
|
||||
export const buffs = {
|
||||
行者之心4: {
|
||||
title: '行者4:重击的暴击率提高30%',
|
||||
data: {
|
||||
a2Cpct: 30
|
||||
}
|
||||
},
|
||||
勇士之心4: {
|
||||
title: '勇士4:对生命值高于50%的敌人,造成的伤害增加30%',
|
||||
data: {
|
||||
dmg: 30
|
||||
}
|
||||
},
|
||||
武人2: {
|
||||
title: '武人2: 普攻与重击造成的伤害提高15%',
|
||||
data: {
|
||||
aDmg: 15,
|
||||
a2Dmg: 15
|
||||
}
|
||||
},
|
||||
武人4: {
|
||||
title: '武人4:施放元素战技后的8秒内,普攻和重击伤害提升25%',
|
||||
data: {
|
||||
aDmg: 25,
|
||||
a2Dmg: 25
|
||||
}
|
||||
},
|
||||
战狂4: {
|
||||
title: '战狂4:生命值低于70%时,暴击率提升24%',
|
||||
data: {
|
||||
cpct: 24
|
||||
}
|
||||
},
|
||||
染血的骑士道4: {
|
||||
title: '染血4:击败敌人后的10秒内,重击造成的伤害提升50%',
|
||||
data: {
|
||||
a2Dmg: 50
|
||||
}
|
||||
},
|
||||
角斗士的终幕礼4: {
|
||||
check: ({ weaponType }) => ['单手剑', '双手剑', '长柄武器'].includes(weaponType),
|
||||
title: '角斗4:角色普通攻击造成的伤害提高35%',
|
||||
data: {
|
||||
aDmg: 35
|
||||
}
|
||||
},
|
||||
流浪大地的乐团4: {
|
||||
check: ({ weaponType }) => ['法器', '弓'].includes(weaponType),
|
||||
title: '乐团4:角色重击造成的伤害提高35%',
|
||||
data: {
|
||||
a2Dmg: 35
|
||||
}
|
||||
},
|
||||
苍白之火4: {
|
||||
title: '苍白4:2层提高18%攻击力,物理伤害额外提高25%',
|
||||
data: {
|
||||
atkPct: 18,
|
||||
phy: 25
|
||||
}
|
||||
},
|
||||
赌徒2: {
|
||||
title: '赌徒2:元素战技造成的伤害提升20%',
|
||||
data: {
|
||||
eDmg: 20
|
||||
}
|
||||
},
|
||||
悠古的磐岩4: {
|
||||
title: '磐岩4:获得元素反应晶片,对应元素伤害提高35%',
|
||||
data: {
|
||||
dmg: 35
|
||||
}
|
||||
},
|
||||
炽烈的炎之魔女4: {
|
||||
check: ({ element }) => element === '火',
|
||||
title: '魔女4:蒸发、融化伤害提高15%,[buffCount]层额外提高[dmg]%火元素伤害加成',
|
||||
data: {
|
||||
zf: 15,
|
||||
rh: 15,
|
||||
dmg: ({ params }) => (params.monv || 1) * 7.5,
|
||||
buffCount: ({ params }) => params.monv || 1
|
||||
}
|
||||
},
|
||||
昔日宗室之仪2: {
|
||||
title: '宗室2:元素爆发造成的伤害提升20%',
|
||||
data: {
|
||||
qDmg: 20
|
||||
}
|
||||
},
|
||||
昔日宗室之仪4: {
|
||||
title: '宗室4:施放元素爆发后,攻击力提升20%',
|
||||
check: ({ currentTalent }) => !currentTalent || currentTalent === 'q',
|
||||
data: {
|
||||
atkPct: 20
|
||||
}
|
||||
},
|
||||
冰风迷途的勇士4: {
|
||||
check: ({ element }) => element === '冰',
|
||||
title: '冰套4:攻击处于冰元素影响下的敌人时,暴击率提高20%',
|
||||
data: {
|
||||
cpct: 20
|
||||
}
|
||||
},
|
||||
沉沦之心4: {
|
||||
title: '水套4:施放元素战技后,普攻与重击伤害提高30%',
|
||||
data: {
|
||||
aDmg: 30,
|
||||
a2Dmg: 30
|
||||
}
|
||||
},
|
||||
冰之川与雪之砂4: {
|
||||
title: '冰雪4:融化加成提高15%,释放元素爆发后,冰伤提高30%',
|
||||
data: {
|
||||
rh: 15,
|
||||
dmg: 30
|
||||
}
|
||||
},
|
||||
追忆之注连4: {
|
||||
title: '追忆4:施放元素战技后,普通攻击、重击、下落攻击造成的伤害提高50%',
|
||||
data: {
|
||||
aDmg: 50,
|
||||
a2Dmg: 50,
|
||||
a3Dmg: 50
|
||||
}
|
||||
},
|
||||
逆飞的流星4: {
|
||||
title: '逆飞4:处于护盾庇护下时,获得40%普攻和重击伤害加成',
|
||||
data: {
|
||||
aDmg: 40,
|
||||
a2Dmg: 40
|
||||
}
|
||||
},
|
||||
平息鸣雷的尊者4: {
|
||||
check: ({ element }) => element === '雷',
|
||||
title: '平雷4:对处于雷元素影响下的敌人造成的伤害提升35%',
|
||||
data: {
|
||||
dmg: 35
|
||||
}
|
||||
},
|
||||
渡过烈火的贤人4: {
|
||||
check: ({ element }) => element === '火',
|
||||
title: '渡火4:对处于火元素影响下的敌人造成的伤害提升35%',
|
||||
data: {
|
||||
dmg: 35
|
||||
}
|
||||
},
|
||||
教官4: {
|
||||
title: '教官4:触发元素反应后,队伍中所有角色的元素精通提高120点',
|
||||
data: {
|
||||
mastery: 120,
|
||||
masteryInc: 120
|
||||
}
|
||||
},
|
||||
千岩牢固4: {
|
||||
title: '千岩4:元素战技命中敌人后,攻击力提升20%',
|
||||
data: {
|
||||
atkPct: 20
|
||||
}
|
||||
},
|
||||
绝缘之旗印4: {
|
||||
title: '绝缘4:基于元素充能效率提高元素爆发[qDmg]%伤害',
|
||||
data: {
|
||||
qDmg: ({ attr }) => Math.min(75, (attr.recharge.base + attr.recharge.plus) * 0.25)
|
||||
}
|
||||
},
|
||||
华馆梦醒形骸记4: {
|
||||
title: '华馆4:满层获得24%防御及24%岩伤加成',
|
||||
sort: 0,
|
||||
data: {
|
||||
defPct: 24,
|
||||
dmg: 24
|
||||
}
|
||||
},
|
||||
辰砂往生录4: {
|
||||
title: '辰砂4:满层提高48%攻击力',
|
||||
|
||||
data: {
|
||||
atkPct: 48
|
||||
}
|
||||
},
|
||||
来歆余响4: {
|
||||
title: '余响4:触发提高普攻[aPlus]伤害',
|
||||
data: {
|
||||
aPlus: ({ attr }) => (attr.atk.base + attr.atk.plus + attr.atk.pct * attr.atk.base / 100) * 0.7
|
||||
}
|
||||
},
|
||||
被怜爱的少女4: {
|
||||
title: '少女4:施放元素战技或元素爆发后,受治疗效果加成提高20%',
|
||||
data: {
|
||||
healInc: 20
|
||||
}
|
||||
},
|
||||
翠绿之影4: {
|
||||
title: '翠绿4:扩散反应造成的伤害提升60%,降低对应元素抗性40%',
|
||||
sort: 5,
|
||||
data: {
|
||||
ks: 60,
|
||||
fykx: 40
|
||||
}
|
||||
},
|
||||
如雷的盛怒4: {
|
||||
title: '如雷4:超载、感电、超导反应造成的伤害提升40%',
|
||||
data: {
|
||||
cz: 40,
|
||||
gd: 40,
|
||||
cd: 40
|
||||
}
|
||||
},
|
||||
深林的记忆4: {
|
||||
title: '元素战技或元素爆发命中敌人后,使命中目标的草元素抗性降低30%',
|
||||
data: {
|
||||
kx: 30
|
||||
}
|
||||
},
|
||||
饰金之梦4: {
|
||||
title: '队伍存在其他3个不同元素类型角色时,精通提高150',
|
||||
data: {
|
||||
mastery: 150
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user