优化增加伤害上限技能新模式文字显示
This commit is contained in:
parent
198d655651
commit
dfd36b15e3
File diff suppressed because one or more lines are too long
|
@ -1,9 +1,9 @@
|
|||
{
|
||||
"dependencies": {
|
||||
"@html2canvas/html2canvas": "^1.6.3",
|
||||
"@xmldom/xmldom": "^0.9.3",
|
||||
"@xmldom/xmldom": "^0.9.5",
|
||||
"@zxing/library": "^0.21.3",
|
||||
"core-js-bundle": "^3.38.1",
|
||||
"core-js-bundle": "^3.39.0",
|
||||
"mime": "^4.0.4",
|
||||
"opencc-js": "^1.0.5",
|
||||
"xml-formatter": "^3.6.3"
|
||||
|
|
|
@ -2551,9 +2551,8 @@ function renderSkill(skill, option = {})
|
|||
if (attrs_types.length)
|
||||
{
|
||||
targetDict.attrs_types = attrs_types.nodeJoin(tsp.word.slight_pause());
|
||||
dict.targets = tsp.skill.power_up_targets(targetDict);
|
||||
}
|
||||
|
||||
if (attrs_types.length) dict.targets = tsp.skill.power_up_targets(targetDict);
|
||||
|
||||
if (value){
|
||||
/*if (attrs?.includes(5) && value.kind == SkillPowerUpKind.Multiplier)
|
||||
|
@ -2588,7 +2587,7 @@ function renderSkill(skill, option = {})
|
|||
frg.ap(tsp.skill.power_up(dict));
|
||||
break;
|
||||
}
|
||||
case SkillKinds.SlotPowerUp: { //增加伤害上限
|
||||
case SkillKinds.SlotPowerUp: { //增加卡槽伤害倍率
|
||||
const {value, targets} = skill;
|
||||
|
||||
let dict = {
|
||||
|
@ -2696,17 +2695,39 @@ function renderSkill(skill, option = {})
|
|||
targets: document.createDocumentFragment(),
|
||||
cap: cap.bigNumberToString(),
|
||||
};
|
||||
if (targets?.length) {
|
||||
dict.targets.append(createTeamFlags(targets));
|
||||
dict.targets.append(targets.map(target=>
|
||||
|
||||
let targetDict = {}, attrs_types = [];
|
||||
if (attrs?.length && !isEqual(attrs, Attributes.all()))
|
||||
{
|
||||
targetDict.attrs = renderAttrs(attrs || [], {affix: attrs?.filter(attr=> attr !== 5)?.length});
|
||||
attrs_types.push(targetDict.attrs);
|
||||
}
|
||||
if (types?.length)
|
||||
{
|
||||
targetDict.types = renderTypes(types || [], {affix: true});
|
||||
attrs_types.push(targetDict.types);
|
||||
}
|
||||
if (targets != undefined)
|
||||
{
|
||||
targetDict.target = document.createDocumentFragment();
|
||||
|
||||
//增加队员伤害的技能的目标,删选出来,其他的目标则不显示
|
||||
const targetTypes = ["self","leader-self","leader-helper","sub-members"];
|
||||
let atkUpTarget = targets.filter(n=>targetTypes.includes(n));
|
||||
if (atkUpTarget.length) {
|
||||
targetDict.target.appendChild(createTeamFlags(atkUpTarget));
|
||||
}
|
||||
|
||||
targetDict.target.appendChild(targets.map(target=>
|
||||
tsp?.target[target.replaceAll("-","_")]?.())
|
||||
.nodeJoin(tsp.word.slight_pause()));
|
||||
|
||||
attrs_types.push(targetDict.target);
|
||||
}
|
||||
if (attrs?.length) {
|
||||
dict.targets.append(renderAttrs(attrs));
|
||||
}
|
||||
if (types?.length) {
|
||||
dict.targets.append(renderTypes(types));
|
||||
if (attrs_types.length)
|
||||
{
|
||||
targetDict.attrs_types = attrs_types.nodeJoin(tsp.word.slight_pause());
|
||||
dict.targets = tsp.skill.power_up_targets(targetDict);
|
||||
}
|
||||
|
||||
frg.ap(tsp.skill.increase_damage_cap(dict));
|
||||
|
|
|
@ -37343,7 +37343,7 @@ const cachesMap = new Map([
|
|||
],
|
||||
[
|
||||
"script-skill-parser.js",
|
||||
"64aced0baa3b08776e7cf22775be353a"
|
||||
"611d6dbe1cb34e394b466d5548413bb5"
|
||||
],
|
||||
[
|
||||
"script-universal_function.js",
|
||||
|
@ -37351,7 +37351,7 @@ const cachesMap = new Map([
|
|||
],
|
||||
[
|
||||
"script.js",
|
||||
"8da1354a3aa3f9bf66bed1a453f6a855"
|
||||
"7e8e7d901aafcf1b204d42b87eaba41d"
|
||||
],
|
||||
[
|
||||
"solo.html",
|
||||
|
@ -37595,7 +37595,7 @@ const cachesMap = new Map([
|
|||
],
|
||||
[
|
||||
"library/core-js.min.js",
|
||||
"c54a2cfc5c515e908a81db4704fbe204"
|
||||
"a650d77560070956aae8559c8cc62f21"
|
||||
],
|
||||
[
|
||||
"library/html2canvas.min.js",
|
||||
|
|
Loading…
Reference in New Issue