fix星铁伤害排名

This commit is contained in:
Aluxes 2023-09-23 05:44:45 +08:00
parent b23c94bf6f
commit 42c876eb4a
20 changed files with 106 additions and 20 deletions

View File

@ -4,7 +4,7 @@
import lodash from 'lodash' import lodash from 'lodash'
import Base from './Base.js' import Base from './Base.js'
import { abbr, artiMap, artiSetMap, calc as artisBuffs } from '../resources/meta/artifact/index.js' import { abbr, artiMap, artiSetMap, calc as artisBuffs } from '../resources/meta/artifact/index.js'
import { artiMap as artiMapSR, artisBuffs as artisBuffsSR, artiSetMap as artiSetMapSR } from '../resources/meta-sr/artifact/index.js' import { abbr as abbrSR, artiMap as artiMapSR, artisBuffs as artisBuffsSR, artiSetMap as artiSetMapSR } from '../resources/meta-sr/artifact/index.js'
import { Artifact } from './index.js' import { Artifact } from './index.js'
@ -30,12 +30,12 @@ class ArtifactSet extends Base {
} }
get img () { get img () {
let arti = Artifact.get(this.sets[1]) let arti = Artifact.get(this.sets[1] || this.sets[5], this.game)
return arti ? arti.img : '' return arti ? arti.img : ''
} }
get abbr () { get abbr () {
return abbr[this.name] || this.name return this.game === 'gs' ? (abbr[this.name] || this.name) : (abbrSR[this.name] || this.name)
} }
static getByArti (name) { static getByArti (name) {

View File

@ -302,8 +302,8 @@ export default class AvatarArtis extends Base {
names, names,
imgs, imgs,
abbrs: [...abbrs, ...abbrs2], abbrs: [...abbrs, ...abbrs2],
name: (abbrs.length > 1 || abbrs2[0]?.length > 7) ? abbrs.join('+') : abbrs2[0], name: (abbrs.length > 1 || abbrs2[0]?.length > 7) ? abbrs.slice(0, 2).join('+') : abbrs2[0],
sName: abbrs.join('+') sName: abbrs.slice(0, 2).join('+')
} }
} }

Binary file not shown.

After

Width:  |  Height:  |  Size: 35 KiB

View File

@ -257,6 +257,18 @@ body {
top: 0; top: 0;
margin-left: -14px; margin-left: -14px;
} }
.talent-icon.talent-destiny:after {
content: "";
display: block;
width: 37px;
height: 37px;
background: url("../character/imgs/destiny.webp") no-repeat;
background-size: contain;
position: absolute;
left: 50%;
top: 0;
margin-left: -14px;
}
.char-talents { .char-talents {
display: flex; display: flex;
width: 300px; width: 300px;

View File

@ -29,7 +29,8 @@
<div class="talent-item"> <div class="talent-item">
<div class="talent-icon <div class="talent-icon
{{talent.level > talent.original ? `talent-plus`:``}} {{talent.level > talent.original ? `talent-plus`:``}}
{{talent.original >= 10 ? `talent-crown`:``}}"> {{talent.original >= 10 && game === 'gs' ? `talent-crown`:``}}
{{talent.original >= 10 && game === 'sr' ? `talent-destiny`:``}}">
<div class="talent-icon-img" <div class="talent-icon-img"
style="background-image:url({{_res_path}}{{imgs[key]}})"></div> style="background-image:url({{_res_path}}{{imgs[key]}})"></div>
<span>{{talent.level}}</span> <span>{{talent.level}}</span>

View File

@ -306,6 +306,19 @@ body {
top: 0; top: 0;
margin-left: -14px; margin-left: -14px;
} }
&.talent-destiny:after {
content: "";
display: block;
width: 37px;
height: 37px;
background: url("../character/imgs/destiny.webp") no-repeat;
background-size: contain;
position: absolute;
left: 50%;
top: 0;
margin-left: -14px;
}
} }
.char-talents { .char-talents {

View File

@ -197,6 +197,18 @@ body {
top: -2px; top: -2px;
margin-left: -9px; margin-left: -9px;
} }
.char-talent .talent-icon.talent-destiny:after {
content: "";
display: block;
width: 22px;
height: 22px;
background: url("../character/imgs/destiny.webp") no-repeat;
background-size: contain;
position: absolute;
left: 50%;
top: -2px;
margin-left: -9px;
}
.char-item { .char-item {
vertical-align: middle; vertical-align: middle;
height: 50px; height: 50px;

View File

@ -86,7 +86,8 @@
<div class="talent-item"> <div class="talent-item">
<div class="talent-icon <div class="talent-icon
{{talent.level > talent.original ? `talent-plus`:``}} {{talent.level > talent.original ? `talent-plus`:``}}
{{talent.original >= 10 ? `talent-crown`:``}}"> {{talent.original >= 10 && game === 'gs' ? `talent-crown`:``}}
{{talent.original >= 10 && game === 'sr' ? `talent-destiny`:``}}">
<div class="talent-icon-img" <div class="talent-icon-img"
style="background-image:url({{_res_path}}{{ds.imgs[key]}})"></div> style="background-image:url({{_res_path}}{{ds.imgs[key]}})"></div>
<span>{{talent.level}}</span> <span>{{talent.level}}</span>
@ -116,9 +117,11 @@
{{set aImgs = ds?.artisSet?.imgs || []}} {{set aImgs = ds?.artisSet?.imgs || []}}
<div class="char-item char-artis class-{{mark?.markClass||'D'}}"> <div class="char-item char-artis class-{{mark?.markClass||'D'}}">
<div <div
class="item artis item-icon avatar-artis {{aImgs.length>0?'star5':'no-artis'}} artis{{aImgs.length}}"> class="item artis item-icon avatar-artis {{aImgs.length>0?'star5':'no-artis'}} artis{{aImgs.length>2 ? 2 : aImgs.length}}">
{{each aImgs img}} {{each aImgs img idx}}
{{if idx < 2}}
<div class="img" style="background-image:url({{_res_path}}{{img}})"></div> <div class="img" style="background-image:url({{_res_path}}{{img}})"></div>
{{/if}}
{{/each}} {{/each}}
{{if aImgs.length === 0}} {{if aImgs.length === 0}}
<span class="img no-artis"></span> <span class="img no-artis"></span>

View File

@ -222,6 +222,19 @@ body {
top: -2px; top: -2px;
margin-left: -9px; margin-left: -9px;
} }
&.talent-destiny:after {
content: "";
display: block;
width: 22px;
height: 22px;
background: url("../character/imgs/destiny.webp") no-repeat;
background-size: contain;
position: absolute;
left: 50%;
top: -2px;
margin-left: -9px;
}
} }
} }

View File

@ -1,6 +1,5 @@
import lodash from 'lodash' import lodash from 'lodash'
import { Format } from '#miao' import { Format } from '#miao'
import { attrPct, basicNum } from '../../meta/artifact/index.js'
export const mainAttr = { export const mainAttr = {
3: 'atk,def,hp,cpct,cdmg,heal,effPct'.split(','), 3: 'atk,def,hp,cpct,cdmg,heal,effPct'.split(','),
@ -50,7 +49,6 @@ lodash.forEach(attrMap, (attr, key) => {
// 设置展示文字 // 设置展示文字
attr.text = Format[attr.format](attr.value, 2) attr.text = Format[attr.format](attr.value, 2)
}) })
export { attrMap } export { attrMap }
@ -78,8 +76,33 @@ export const abbr = {
塔利亚的裸皮电线: '塔利亚的电线', 塔利亚的裸皮电线: '塔利亚的电线',
翁瓦克的诞生之岛: '翁瓦克的诞生岛', 翁瓦克的诞生之岛: '翁瓦克的诞生岛',
翁瓦克的环岛海岸: '翁瓦克的海岸', 翁瓦克的环岛海岸: '翁瓦克的海岸',
泰科铵的镭射球场:'泰科铵的球场', 泰科铵的镭射球场: '泰科铵的球场',
泰科铵的弧光赛道:'泰科铵的赛道', 泰科铵的弧光赛道: '泰科铵的赛道',
伊须磨洲的残船鲸落:'伊须磨洲的鲸落', 伊须磨洲的残船鲸落: '伊须磨洲的鲸落',
伊须磨洲的坼裂缆索:'伊须磨洲的缆索' 伊须磨洲的坼裂缆索: '伊须磨洲的缆索',
盗匪荒漠的废土客: '虚数套',
繁星璀璨的天才: '繁星',
激奏雷电的乐队: '雷套',
熔岩锻铸的火匠: '火套',
晨昏交界的翔鹰: '风套',
野穗伴行的快枪手: '快枪手',
密林卧雪的猎人: '冰套',
流星追迹的怪盗: '怪盗',
街头出身的拳王: '拳王',
云无留迹的过客: '过客',
戍卫风雪的铁卫: '铁卫',
净庭教宗的圣骑士: '圣骑士',
筑城者的贝洛伯格: '筑城者',
星体差分机: '差分机',
停转的萨尔索图: '停转',
不老者的仙舟: '仙舟',
盗贼公国塔利亚: '盗贼',
泛银河商业公司: '泛银河',
太空封印站: '太空',
生命的翁瓦克: '翁瓦克',
繁星竞技场: '竞技场',
折断的龙骨: '龙骨',
宝命长存的莳者: '莳者',
骇域漫游的信使: '信使'
} }

View File

@ -12,6 +12,7 @@ export const details = [{
dmg: ({ talent }, dmg) => dmg(talent.q['技能伤害'] + talent.q['减速目标q伤害倍率提高'], 'q') dmg: ({ talent }, dmg) => dmg(talent.q['技能伤害'] + talent.q['减速目标q伤害倍率提高'], 'q')
}] }]
export const defDmgIdx = 2
export const mainAttr = 'atk,cpct,cdmg' export const mainAttr = 'atk,cpct,cdmg'
export const buffs = [{ export const buffs = [{

View File

@ -20,6 +20,7 @@ export const details = [{
} }
}] }]
export const defDmgIdx = 1
export const mainAttr = 'atk,cpct,cdmg' export const mainAttr = 'atk,cpct,cdmg'
export const buffs = [{ export const buffs = [{

View File

@ -12,6 +12,7 @@ export const details = [{
dmg: ({ talent }, dmg) => dmg(talent.t['技能伤害'], 't') dmg: ({ talent }, dmg) => dmg(talent.t['技能伤害'], 't')
}] }]
export const defDmgIdx = 2
export const mainAttr = 'atk,cpct,cdmg,speed' export const mainAttr = 'atk,cpct,cdmg,speed'
export const buffs = [{ export const buffs = [{

View File

@ -29,6 +29,7 @@ export const details = [{
} }
}] }]
export const defDmgIdx = 3
export const mainAttr = 'atk,cpct,cdmg' export const mainAttr = 'atk,cpct,cdmg'
export const buffs = [{ export const buffs = [{

View File

@ -9,6 +9,7 @@ export const details = [{
dmg: ({ talent }, dmg) => dmg(talent.q['技能伤害'], 'q') dmg: ({ talent }, dmg) => dmg(talent.q['技能伤害'], 'q')
}] }]
export const defDmgIdx = 2
export const mainAttr = 'atk,cpct,cdmg,speed' export const mainAttr = 'atk,cpct,cdmg,speed'
export const buffs = [{ export const buffs = [{

View File

@ -12,6 +12,7 @@ export const details = [{
dmg: ({ talent }, dmg) => dmg(talent.t['技能伤害'] * 10, 'a3') dmg: ({ talent }, dmg) => dmg(talent.t['技能伤害'] * 10, 'a3')
}] }]
export const defDmgIdx = 3
export const mainAttr = 'atk,cpct,cdmg,speed' export const mainAttr = 'atk,cpct,cdmg,speed'
export const buffs = [{ export const buffs = [{

View File

@ -9,9 +9,10 @@ export const details = [{
dmg: ({ attr, calc, talent }, { shield }) => shield(calc(attr.def) * talent.q['百分比防御力'] + talent.q['固定数值']) dmg: ({ attr, calc, talent }, { shield }) => shield(calc(attr.def) * talent.q['百分比防御力'] + talent.q['固定数值'])
}, { }, {
title: '秘技护盾量', title: '秘技护盾量',
dmg: ({ attr, calc, talent }, { shield }) => shield(calc(attr.def) * 0.24 + 150) dmg: ({ attr, calc }, { shield }) => shield(calc(attr.def) * 0.24 + 150)
}] }]
export const defDmgIdx = 2
export const mainAttr = 'atk,cpct,cdmg,def' export const mainAttr = 'atk,cpct,cdmg,def'
export const buffs = [{ export const buffs = [{

View File

@ -30,7 +30,7 @@ export const details = [{
} }
}] }]
export const defDmgIdx = 1 export const defDmgIdx = 4
export const mainAttr = 'atk,cpct,cdmg' export const mainAttr = 'atk,cpct,cdmg'
export const buffs = [{ export const buffs = [{

View File

@ -12,6 +12,7 @@ export const details = [{
dmg: ({ talent }, dmg) => dmg(talent.t['附加伤害'], 't') dmg: ({ talent }, dmg) => dmg(talent.t['附加伤害'], 't')
}] }]
export const defDmgIdx = 1
export const mainAttr = 'atk,cpct,cdmg' export const mainAttr = 'atk,cpct,cdmg'
export const buffs = [{ export const buffs = [{

View File

@ -19,7 +19,8 @@ export const details = [{
} }
}] }]
export const mainAttr = 'atk,cpct,cdmg,effPct' export const defDmgIdx = 2
export const mainAttr = 'atk,cpct,cdmg'
export const buffs = [{ export const buffs = [{
title: '银狼天赋:防御力缺陷降低敌方防御力[enemyDef]%', title: '银狼天赋:防御力缺陷降低敌方防御力[enemyDef]%',