mirror of
https://github.com/ZZZure/ZZZ-Plugin.git
synced 2025-12-17 05:37:46 +00:00
优化命破角色展柜更新面板数据处理;更新命破角色默认评分规则
This commit is contained in:
parent
82ce98d425
commit
6d50740004
5 changed files with 50 additions and 62 deletions
|
|
@ -410,6 +410,26 @@ export class Property {
|
||||||
property.final = property.base + property.add;
|
property.final = property.base + property.add;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if (this.info.avatar_profession === 6) {
|
||||||
|
delete properties[231], delete properties[232];
|
||||||
|
delete properties[305];
|
||||||
|
const sheerForce = Math.trunc(properties[111].final * 1 / 10) +
|
||||||
|
Math.trunc(properties[121].final * 3 / 10);
|
||||||
|
properties[19] = {
|
||||||
|
property_name: '贯穿力',
|
||||||
|
property_id: 19,
|
||||||
|
base: 0,
|
||||||
|
add: sheerForce,
|
||||||
|
final: sheerForce
|
||||||
|
};
|
||||||
|
properties[20] = {
|
||||||
|
property_name: '闪能自动累积',
|
||||||
|
property_id: 20,
|
||||||
|
base: 2,
|
||||||
|
add: 0,
|
||||||
|
final: 2
|
||||||
|
};
|
||||||
|
}
|
||||||
if (sp && sp.initial_after_format) {
|
if (sp && sp.initial_after_format) {
|
||||||
sp.initial_after_format(properties, this);
|
sp.initial_after_format(properties, this);
|
||||||
}
|
}
|
||||||
|
|
@ -496,35 +516,10 @@ const special = {
|
||||||
properties[121].add += Math.trunc(value);
|
properties[121].add += Math.trunc(value);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
1371: {
|
|
||||||
id: 1371,
|
|
||||||
name: '仪玄',
|
|
||||||
initial_after_format: (properties) => {
|
|
||||||
delete properties[231], delete properties[232];
|
|
||||||
delete properties[305];
|
|
||||||
const sheerForce = Math.trunc(properties[111].final * 1 / 10) +
|
|
||||||
Math.trunc(properties[121].final * 3 / 10);
|
|
||||||
properties[19] = {
|
|
||||||
property_name: '贯穿力',
|
|
||||||
property_id: 19,
|
|
||||||
base: 0,
|
|
||||||
add: sheerForce,
|
|
||||||
final: sheerForce
|
|
||||||
};
|
|
||||||
properties[20] = {
|
|
||||||
property_name: '闪能自动累积',
|
|
||||||
property_id: 20,
|
|
||||||
base: 2,
|
|
||||||
add: 0,
|
|
||||||
final: 2
|
|
||||||
};
|
|
||||||
}
|
|
||||||
},
|
|
||||||
1441: {
|
1441: {
|
||||||
id: 1441,
|
id: 1441,
|
||||||
name: '狛野真斗',
|
name: '狛野真斗',
|
||||||
initial_after_format: (properties) => {
|
initial_after_format: (properties) => {
|
||||||
special[1371].initial_after_format(properties, {});
|
|
||||||
properties[20] = {
|
properties[20] = {
|
||||||
property_name: '闪能自动累积',
|
property_name: '闪能自动累积',
|
||||||
property_id: 20,
|
property_id: 20,
|
||||||
|
|
@ -533,5 +528,5 @@ const special = {
|
||||||
final: 0
|
final: 0
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
}
|
},
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -474,6 +474,28 @@ export class Property {
|
||||||
property.final = property.base + property.add
|
property.final = property.base + property.add
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
// 命破特殊处理
|
||||||
|
if (this.info.avatar_profession === 6) {
|
||||||
|
delete properties[231], delete properties[232]
|
||||||
|
delete properties[305]
|
||||||
|
const sheerForce =
|
||||||
|
Math.trunc(properties[111].final * 1 / 10) +
|
||||||
|
Math.trunc(properties[121].final * 3 / 10)
|
||||||
|
properties[19] = {
|
||||||
|
property_name: '贯穿力',
|
||||||
|
property_id: 19,
|
||||||
|
base: 0,
|
||||||
|
add: sheerForce,
|
||||||
|
final: sheerForce
|
||||||
|
}
|
||||||
|
properties[20] = {
|
||||||
|
property_name: '闪能自动累积',
|
||||||
|
property_id: 20,
|
||||||
|
base: 2,
|
||||||
|
add: 0,
|
||||||
|
final: 2
|
||||||
|
}
|
||||||
|
}
|
||||||
// 格式化后特殊处理
|
// 格式化后特殊处理
|
||||||
if (sp && sp.initial_after_format) {
|
if (sp && sp.initial_after_format) {
|
||||||
sp.initial_after_format(properties, this)
|
sp.initial_after_format(properties, this)
|
||||||
|
|
@ -579,37 +601,10 @@ const special: Record<number, {
|
||||||
properties[121].add += Math.trunc(value)
|
properties[121].add += Math.trunc(value)
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
1371: {
|
|
||||||
id: 1371,
|
|
||||||
name: '仪玄',
|
|
||||||
initial_after_format: (properties) => {
|
|
||||||
delete properties[231], delete properties[232]
|
|
||||||
delete properties[305]
|
|
||||||
const sheerForce =
|
|
||||||
Math.trunc(properties[111].final * 1 / 10) +
|
|
||||||
Math.trunc(properties[121].final * 3 / 10)
|
|
||||||
properties[19] = {
|
|
||||||
property_name: '贯穿力',
|
|
||||||
property_id: 19,
|
|
||||||
base: 0,
|
|
||||||
add: sheerForce,
|
|
||||||
final: sheerForce
|
|
||||||
}
|
|
||||||
properties[20] = {
|
|
||||||
property_name: '闪能自动累积',
|
|
||||||
property_id: 20,
|
|
||||||
base: 2,
|
|
||||||
add: 0,
|
|
||||||
final: 2
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
1441: {
|
1441: {
|
||||||
id: 1441,
|
id: 1441,
|
||||||
name: '狛野真斗',
|
name: '狛野真斗',
|
||||||
initial_after_format: (properties) => {
|
initial_after_format: (properties) => {
|
||||||
// 贯穿力处理与仪玄相同
|
|
||||||
special[1371].initial_after_format!(properties, {} as any)
|
|
||||||
properties[20] = {
|
properties[20] = {
|
||||||
property_name: '闪能自动累积',
|
property_name: '闪能自动累积',
|
||||||
property_id: 20,
|
property_id: 20,
|
||||||
|
|
@ -618,5 +613,5 @@ const special: Record<number, {
|
||||||
final: 0
|
final: 0
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
},
|
||||||
}
|
}
|
||||||
|
|
@ -237,7 +237,7 @@ const predefinedWeights = {
|
||||||
return true;
|
return true;
|
||||||
},
|
},
|
||||||
value: {
|
value: {
|
||||||
"生命值百分比": 0,
|
"生命值百分比": 0.5,
|
||||||
"攻击力百分比": 0.25,
|
"攻击力百分比": 0.25,
|
||||||
"防御力百分比": 0,
|
"防御力百分比": 0,
|
||||||
"冲击力": 0,
|
"冲击力": 0,
|
||||||
|
|
|
||||||
|
|
@ -261,7 +261,7 @@ const predefinedWeights: Record<string, {
|
||||||
return true
|
return true
|
||||||
},
|
},
|
||||||
value: {
|
value: {
|
||||||
"生命值百分比": 0,
|
"生命值百分比": 0.5,
|
||||||
"攻击力百分比": 0.25,
|
"攻击力百分比": 0.25,
|
||||||
"防御力百分比": 0,
|
"防御力百分比": 0,
|
||||||
"冲击力": 0,
|
"冲击力": 0,
|
||||||
|
|
|
||||||
|
|
@ -50,10 +50,7 @@
|
||||||
"「扳机」": ["冲击·双爆"],
|
"「扳机」": ["冲击·双爆"],
|
||||||
"薇薇安": ["辅助·异常"],
|
"薇薇安": ["辅助·异常"],
|
||||||
"雨果": ["主C·双爆"],
|
"雨果": ["主C·双爆"],
|
||||||
"仪玄": {
|
"仪玄": ["命破·双爆"],
|
||||||
"rules": ["命破·双爆"],
|
|
||||||
"生命值百分比": 0.5
|
|
||||||
},
|
|
||||||
"潘引壶": ["辅助·攻击"],
|
"潘引壶": ["辅助·攻击"],
|
||||||
"橘福福": ["冲击·攻击"],
|
"橘福福": ["冲击·攻击"],
|
||||||
"浮波柚叶": {
|
"浮波柚叶": {
|
||||||
|
|
@ -77,8 +74,9 @@
|
||||||
"异常掌控": 0,
|
"异常掌控": 0,
|
||||||
"属性伤害加成": 0
|
"属性伤害加成": 0
|
||||||
},
|
},
|
||||||
"狛野真斗": {
|
"狛野真斗": ["命破·双爆"],
|
||||||
|
"伊德海莉": {
|
||||||
"rules": ["命破·双爆"],
|
"rules": ["命破·双爆"],
|
||||||
"生命值百分比": 0.5
|
"生命值百分比": 0.75
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue