miao-plugin/components/calc/calc-meta.js
yoimiya-kokomi 89769be51a 增加扩散、感电的计算逻辑,感谢 **@49631073**的逻辑梳理
伤害计算增加 万叶ⁿᵉʷ、久岐忍ⁿᵉʷ,温迪增加扩散伤害计算
部分角色评分权重微调
2022-06-21 06:55:08 +08:00

123 lines
2.0 KiB
JavaScript

// 各等级精通基础伤害
export const eleBaseDmg = {
1: 20,
2: 22,
3: 23,
4: 24,
5: 27,
6: 29,
7: 31,
8: 34,
9: 37,
10: 40,
11: 44,
12: 48,
13: 53,
14: 58,
15: 64,
16: 70,
17: 77,
18: 83,
19: 90,
20: 97,
21: 103,
22: 110,
23: 117,
24: 123,
25: 130,
26: 136,
27: 141,
28: 147,
29: 156,
30: 163,
31: 171,
32: 178,
33: 186,
34: 193,
35: 202,
36: 211,
37: 220,
38: 230,
39: 239,
40: 248,
41: 258,
42: 269,
43: 280,
44: 291,
45: 307,
46: 322,
47: 338,
48: 353,
49: 370,
50: 388,
51: 403,
52: 420,
53: 437,
54: 453,
55: 478,
56: 499,
57: 521,
58: 543,
59: 567,
60: 591,
61: 616,
62: 647,
63: 678,
64: 710,
65: 749,
66: 781,
67: 814,
68: 849,
69: 883,
70: 918,
71: 953,
72: 989,
73: 1021,
74: 1052,
75: 1097,
76: 1136,
77: 1174,
78: 1213,
79: 1253,
80: 1292,
81: 1331,
82: 1371,
83: 1411,
84: 1451,
85: 1504,
86: 1547,
87: 1590,
88: 1636,
89: 1686,
90: 1736
};
export const eleMap = {
anemo: "风",
cryo: "冰",
electro: "雷",
geo: "岩",
hydro: "水",
pyro: "火"
};
// 元素反应类型及基数
// 暂无需考虑碎冰
export const erType = {
zf: { type: "pct", num: ({ element }) => element === "水" ? 2 : 1.5 },
rh: { type: "pct", num: ({ element }) => element === "火" ? 2 : 1.5 },
gd: { type: "fusion", num: () => 1 },
cz: { type: "fusion", num: () => 4 / 2.4 },
ks: { type: "fusion", num: () => 0.5 }
}
export const attrMap = {
atk: { type: "pct", val: 5.83, title: "大攻击", text: "5.8%" },
hp: { type: "pct", val: 5.83, title: "大生命", text: "5.8%" },
def: { type: "pct", val: 7.29, title: "大防御", text: "7.3%" },
recharge: { type: "plus", val: 6.48, title: "元素充能", text: "6.5%" },
mastery: { type: "plus", val: 23.31, title: "元素精通", text: "23.3" },
cpct: { type: "plus", val: 3.89, title: "暴击率", text: "3.9%" },
cdmg: { type: "plus", val: 7.77, title: "暴击伤害", text: "7.8%" },
};