修正伤害系数

This commit is contained in:
2025-04-07 19:10:45 +08:00
parent 9227b67915
commit 649e342a3b
8 changed files with 80 additions and 35 deletions
+1
View File
@@ -13,6 +13,7 @@ export interface IResultSkill {
ratio: number
cd: number
damage: number
mode: string
}
export interface IResultUserInfo {
@@ -2,21 +2,21 @@
<div class="bg-hex-000000/60 p-4 border-solid border-#FFFF/15" v-if="data && data.length > 0">
<div class="bg-hex-000000/40 text-white border-solid border-#FFFF/15 border-t-0">
<div class="flex px-1px gap-1px">
<div class="item-head w-150px">技能</div>
<div class="item-head w-200px">技能</div>
<div class="item-head w-80px">CD</div>
<div class="item-head w-150px">伤害</div>
<div class="item-head w-150px">秒伤</div>
</div>
<div class="overflow-y-auto max-h-600px">
<div class="flex px-1px gap-1px h-8.5" v-for="skill in data" :key="skill.name">
<div class="flex w-150px items-center gap-10px">
<div class="flex px-1px gap-1px h-8.5" v-for="(skill,_) in data" :key="_">
<div class="flex w-200px items-center gap-10px">
<div class="w-28px h-28px relative">
<img :src="getImageURL(skill.icon)" alt="" class="w-28px h-28px" />
<div v-if="skill.lv" class="skill-lv-min" :data-text="`Lv ${skill.lv}`">
Lv {{ skill.lv }}
</div>
</div>
<div>{{ skill.name }}</div>
<div>{{ skill.name }} {{ !skill.mode ? '' : `[${skill.mode}]` }}</div>
</div>
<div class="w-80px flex items-center justify-center">{{ skill.cd.toFixed(1) }}s</div>
<!-- <div class="flex">
+13 -10
View File
@@ -31,14 +31,14 @@ export interface IConfigEquip {
export interface IConfig {
skills: Record<string, { lv: number }>
equips: Record<
equips: Record<string, IConfigEquip>
jades: Record<
string,
IConfigEquip
{
id: number
value: number
}
>
jades: Record<string, {
id:number
value: number
}>
avatar: Record<
string,
{
@@ -81,6 +81,8 @@ export const useConfigStore = defineStore('configStore', () => {
avatar: {},
})
const skillCountConfig = ref<Record<string, { count: number }>>({})
const loadConfig = () => {
const infoStore = useInfoStore()
const alter = infoStore.infos?.alter
@@ -125,15 +127,16 @@ export const useConfigStore = defineStore('configStore', () => {
(config.value.skills[id] = {
lv: infoStore.skills.find((skill) => skill.id.toString() === id)?.maxLearnLv ?? 0,
})
});
})
(["0", "1", "2", "3"].filter((key) => !Object.keys(config.value.jades).includes(key)) ?? []).forEach((key) => {
;(
['0', '1', '2', '3'].filter((key) => !Object.keys(config.value.jades).includes(key)) ?? []
).forEach((key) => {
config.value.jades[key] = {
id: -1,
value: 0,
}
}
)
})
}
const saveConfig = () => {