增加地下城增强的内容显示
This commit is contained in:
parent
42ce89e9fc
commit
a98788691e
|
@ -79,6 +79,7 @@ var formation = new Formation(teamsCount,5);
|
|||
</div>
|
||||
<div class="formation-box">
|
||||
<div class="title-box edit"><input type="text" class="title" placeholder="输入队伍标题" /><h1 class="title-display"></h1></div>
|
||||
<div class="dungeon-enchance"></div>
|
||||
<div class="formation-total-info">
|
||||
<div class="tIf-total-hp">
|
||||
<span class="general"></span>
|
||||
|
|
|
@ -729,7 +729,7 @@ function countTeamHp(memberArr, leader1id, leader2id, solo, noAwoken = false) {
|
|||
let hp2 = hp = Math.round(hp * memberHpMul(card, ls1, memberArr, solo)); //我方队长技
|
||||
|
||||
//演示用代码
|
||||
console.log("%s 第1次倍率血量:%s,第2次倍率血量:%s",Cards[m.id].otLangName["chs"],hp1,hp2);
|
||||
//console.log("%s 第1次倍率血量:%s,第2次倍率血量:%s",Cards[m.id].otLangName["chs"],hp1,hp2);
|
||||
|
||||
return hp;
|
||||
|
||||
|
|
20
script.js
20
script.js
|
@ -3717,10 +3717,11 @@ function editBoxChangeMonId(id) {
|
|||
//刷新整个队伍
|
||||
function refreshAll(formationData) {
|
||||
let fragment = document.createDocumentFragment(); //创建节点用的临时空间
|
||||
const titleBox = fragment.appendChild(formationBox.querySelector(".title-box"));
|
||||
const titleBox = formationBox.querySelector(".title-box");
|
||||
const detailBox = formationBox.querySelector(".detail-box");
|
||||
const formationTotalInfoDom = formationBox.querySelector(".formation-total-info"); //所有队伍能力值合计
|
||||
const formationAwokenDom = formationBox.querySelector(".formation-awoken"); //所有队伍觉醒合计
|
||||
const dungeonEnchanceDom = formationBox.querySelector(".dungeon-enchance"); //地下城强化
|
||||
|
||||
while (formationBox.childNodes.length > 0) {
|
||||
fragment.appendChild(formationBox.childNodes[0]);
|
||||
|
@ -3744,6 +3745,23 @@ function refreshAll(formationData) {
|
|||
detailBox.classList.add("edit");
|
||||
else
|
||||
detailBox.classList.remove("edit");
|
||||
|
||||
let dge = formationData.dungeonEnchance;
|
||||
if (dge.rate !== 1)
|
||||
{
|
||||
dungeonEnchanceDom.innerHTML = '';
|
||||
//if (formationData.dungeonEnchance.attrs.length) dungeonEnchanceDom.appendChild(renderAttrs(formationData.dungeonEnchance.attrs));
|
||||
//if (formationData.dungeonEnchance.types.length) dungeonEnchanceDom.appendChild(renderTypes(formationData.dungeonEnchance.types));
|
||||
let rate = dge.rate * 100;
|
||||
let skill = powerUp(dge.attrs, dge.types, p.mul({hp: rate, atk: rate, rcv: rate}));
|
||||
dungeonEnchanceDom.appendChild(renderSkill(skill));
|
||||
//tsp.skill.reduce_damage(dict)
|
||||
//dungeonEnchanceDom.appendChild(renderTypes(formationData.dungeonEnchance.types));
|
||||
dungeonEnchanceDom.classList.remove(className_displayNone);
|
||||
}else
|
||||
{
|
||||
dungeonEnchanceDom.classList.add(className_displayNone);
|
||||
}
|
||||
|
||||
teamBigBoxs.forEach((teamBigBox, teamNum) => {
|
||||
const teamBox = teamBigBox.querySelector(".team-box");
|
||||
|
|
|
@ -59,6 +59,7 @@ var formation = new Formation(teamsCount,6);
|
|||
</div>
|
||||
<div class="formation-box">
|
||||
<div class="title-box edit"><input type="text" class="title" placeholder="输入队伍标题" /><h1 class="title-display"></h1></div>
|
||||
<div class="dungeon-enchance"></div>
|
||||
<ul class="teams">
|
||||
<li class="team-bigbox team-1">
|
||||
<ul class="team-badge">
|
||||
|
|
|
@ -74,6 +74,7 @@ var formation = new Formation(teamsCount,6);
|
|||
</div>
|
||||
<div class="formation-box">
|
||||
<div class="title-box edit"><input type="text" class="title" placeholder="输入队伍标题" /><h1 class="title-display"></h1></div>
|
||||
<div class="dungeon-enchance"></div>
|
||||
<ul class="teams">
|
||||
<li class="team-bigbox team-1 show-team-name-right">
|
||||
<ul class="team-badge">
|
||||
|
|
Loading…
Reference in New Issue