| @@ -686,32 +686,33 @@ var formation = new Formation(teamsCount,5); | |||
| <div class="setting-row"> | |||
| <div class="row-mon-awoken"> | |||
| <!--怪物觉醒--> | |||
| <ul class="awoken-ul"> | |||
| <li class="awoken-icon awoken-count"></li> | |||
| <li class="awoken-icon"></li> | |||
| <li class="awoken-icon"></li> | |||
| <li class="awoken-icon"></li> | |||
| <li class="awoken-icon"></li> | |||
| <li class="awoken-icon"></li> | |||
| <li class="awoken-icon"></li> | |||
| <li class="awoken-icon"></li> | |||
| <li class="awoken-icon"></li> | |||
| <li class="awoken-icon"></li> | |||
| </ul> | |||
| <div class="awoken-ul"> | |||
| <label for="awoken-number-0" class="awoken-icon awoken-count"></label><input type="radio" name="awoken-number" class="awoken-number" value="0" id="awoken-number-0" /> | |||
| <label for="awoken-number-1" class="awoken-icon"></label><input type="radio" name="awoken-number" class="awoken-number" value="1" id="awoken-number-1" /> | |||
| <label for="awoken-number-2" class="awoken-icon"></label><input type="radio" name="awoken-number" class="awoken-number" value="2" id="awoken-number-2" /> | |||
| <label for="awoken-number-3" class="awoken-icon"></label><input type="radio" name="awoken-number" class="awoken-number" value="3" id="awoken-number-3" /> | |||
| <label for="awoken-number-4" class="awoken-icon"></label><input type="radio" name="awoken-number" class="awoken-number" value="4" id="awoken-number-4" /> | |||
| <label for="awoken-number-5" class="awoken-icon"></label><input type="radio" name="awoken-number" class="awoken-number" value="5" id="awoken-number-5" /> | |||
| <label for="awoken-number-6" class="awoken-icon"></label><input type="radio" name="awoken-number" class="awoken-number" value="6" id="awoken-number-6" /> | |||
| <label for="awoken-number-7" class="awoken-icon"></label><input type="radio" name="awoken-number" class="awoken-number" value="7" id="awoken-number-7" /> | |||
| <label for="awoken-number-8" class="awoken-icon"></label><input type="radio" name="awoken-number" class="awoken-number" value="8" id="awoken-number-8" /> | |||
| <label for="awoken-number-9" class="awoken-icon"></label><input type="radio" name="awoken-number" class="awoken-number" value="9" id="awoken-number-9" /> | |||
| </div> | |||
| </div> | |||
| <div class="row-mon-super-awoken"> | |||
| <!--怪物超觉醒--> | |||
| <ul class="awoken-ul"> | |||
| <li class="awoken-icon"></li> | |||
| <li class="awoken-icon"></li> | |||
| <li class="awoken-icon"></li> | |||
| <li class="awoken-icon"></li> | |||
| <li class="awoken-icon"></li> | |||
| <li class="awoken-icon"></li> | |||
| <li class="awoken-icon"></li> | |||
| <li class="awoken-icon"></li> | |||
| <li class="awoken-icon"></li> | |||
| </ul> | |||
| <div class="awoken-ul"> | |||
| <input type="radio" name="sawoken-choice" class="sawoken-choice" value="-1" id="sawoken-choice--1" /> | |||
| <input type="radio" name="sawoken-choice" class="sawoken-choice" value="0" id="sawoken-choice-0" /><label for="sawoken-choice-0" class="awoken-icon"></label> | |||
| <input type="radio" name="sawoken-choice" class="sawoken-choice" value="1" id="sawoken-choice-1" /><label for="sawoken-choice-1" class="awoken-icon"></label> | |||
| <input type="radio" name="sawoken-choice" class="sawoken-choice" value="2" id="sawoken-choice-2" /><label for="sawoken-choice-2" class="awoken-icon"></label> | |||
| <input type="radio" name="sawoken-choice" class="sawoken-choice" value="3" id="sawoken-choice-3" /><label for="sawoken-choice-3" class="awoken-icon"></label> | |||
| <input type="radio" name="sawoken-choice" class="sawoken-choice" value="4" id="sawoken-choice-4" /><label for="sawoken-choice-4" class="awoken-icon"></label> | |||
| <input type="radio" name="sawoken-choice" class="sawoken-choice" value="5" id="sawoken-choice-5" /><label for="sawoken-choice-5" class="awoken-icon"></label> | |||
| <input type="radio" name="sawoken-choice" class="sawoken-choice" value="6" id="sawoken-choice-6" /><label for="sawoken-choice-6" class="awoken-icon"></label> | |||
| <input type="radio" name="sawoken-choice" class="sawoken-choice" value="7" id="sawoken-choice-7" /><label for="sawoken-choice-7" class="awoken-icon"></label> | |||
| <input type="radio" name="sawoken-choice" class="sawoken-choice" value="8" id="sawoken-choice-8" /><label for="sawoken-choice-8" class="awoken-icon"></label> | |||
| </div> | |||
| </div> | |||
| </div> | |||
| <div class="setting-row row-ability"> | |||
| @@ -740,7 +740,6 @@ function initialize() | |||
| //编辑框 | |||
| editBox.mid = null; //储存怪物id | |||
| editBox.awokenCount = 0; //储存怪物潜觉数量 | |||
| editBox.latent = []; //储存潜在觉醒 | |||
| editBox.isAssist = false; //储存是否为辅助宠物 | |||
| editBox.monsterHead = null; | |||
| @@ -1061,52 +1060,37 @@ function initialize() | |||
| }; | |||
| monstersID.oninput = monstersID.onchange; | |||
| //觉醒 | |||
| const monEditAwokens = Array.from(settingBox.querySelectorAll(".row-mon-awoken .awoken-ul .awoken-icon")); | |||
| monEditAwokens.forEach((akDom,idx)=>{ | |||
| akDom.onclick = function(){ | |||
| editBox.awokenCount = idx; | |||
| editBox.reCalculateAbility(); | |||
| editBox.refreshAwokens(); | |||
| }; | |||
| }); | |||
| //刷新觉醒 | |||
| editBox.refreshAwokens = ()=>{ | |||
| monEditAwokens[0].innerHTML = editBox.awokenCount; | |||
| if (editBox.awokenCount>0 && editBox.awokenCount==(Cards[editBox.mid].awakenings.length)) | |||
| monEditAwokens[0].classList.add("full-awoken"); | |||
| const monEditAwokensRow = settingBox.querySelector(".row-mon-awoken"); | |||
| const awokenCountLabel = monEditAwokensRow.querySelector(".awoken-count"); | |||
| const monEditAwokens = Array.from(monEditAwokensRow.querySelectorAll(".awoken-ul input[name='awoken-number']")); | |||
| function checkAwoken(){ | |||
| const value = parseInt(this.value,10); | |||
| awokenCountLabel.innerHTML = value; | |||
| if (value>0 && value==(Cards[editBox.mid].awakenings.length)) | |||
| awokenCountLabel.classList.add("full-awoken"); | |||
| else | |||
| monEditAwokens[0].classList.remove("full-awoken"); | |||
| for(let ai=1;ai<monEditAwokens.length;ai++) | |||
| { | |||
| if(ai<=editBox.awokenCount) | |||
| { | |||
| monEditAwokens[ai].classList.remove("unselected-awoken"); | |||
| } | |||
| else | |||
| { | |||
| monEditAwokens[ai].classList.add("unselected-awoken"); | |||
| } | |||
| } | |||
| }; | |||
| awokenCountLabel.classList.remove("full-awoken"); | |||
| reCalculateAbility(); | |||
| } | |||
| monEditAwokens.forEach(akDom=>akDom.onclick = checkAwoken); | |||
| //超觉醒 | |||
| let monEditSAwokens = Array.from(settingBox.querySelectorAll(".row-mon-super-awoken .awoken-ul .awoken-icon")); | |||
| monEditSAwokens.forEach((akDom,idx,domArr)=>{ | |||
| akDom.onclick = function(){ | |||
| for(var ai=0;ai<domArr.length;ai++) | |||
| { | |||
| if(ai==idx) | |||
| { | |||
| domArr[ai].classList.toggle("unselected-awoken"); | |||
| } | |||
| else | |||
| { | |||
| domArr[ai].classList.add("unselected-awoken"); | |||
| } | |||
| } | |||
| }; | |||
| const monEditSAwokensRow = settingBox.querySelector(".row-mon-super-awoken"); | |||
| monEditSAwokensRow.swaokenIndex = -1; | |||
| const monEditSAwokens = Array.from(monEditSAwokensRow.querySelectorAll(".awoken-ul input[name='sawoken-choice']")); | |||
| function notCheckMyself(){ | |||
| const value = parseInt(this.value,10); | |||
| if (value>=0 && monEditSAwokensRow.swaokenIndex === value) | |||
| { | |||
| monEditSAwokens[0].click(); | |||
| }else | |||
| { | |||
| monEditSAwokensRow.swaokenIndex = value; | |||
| } | |||
| } | |||
| monEditSAwokens.forEach(akDom=>{ | |||
| akDom.onclick = notCheckMyself; | |||
| }); | |||
| //3个快速设置this.ipt为自己的value | |||
| function setIptToMyValue() | |||
| { | |||
| @@ -1258,7 +1242,9 @@ function initialize() | |||
| function reCalculateAbility(){ | |||
| const monid = parseInt(monstersID.value || 0, 10); | |||
| const level = parseInt(monEditLv.value || 0, 10); | |||
| const awoken = editBox.awokenCount; | |||
| const mAwokenNumIpt = monEditAwokensRow.querySelector("input[name='awoken-number']:checked"); | |||
| const awoken = mAwokenNumIpt ? parseInt(mAwokenNumIpt.value,10) : 0; | |||
| const plus = [ | |||
| parseInt(monEditAddHp.value || 0, 10), | |||
| parseInt(monEditAddAtk.value || 0, 10), | |||
| @@ -1308,21 +1294,13 @@ function initialize() | |||
| const skill = Skills[card.activeSkillId]; | |||
| mon.level = parseInt(monEditLv.value,10); | |||
| mon.awoken = editBox.awokenCount; | |||
| const mAwokenNumIpt = monEditAwokensRow.querySelector("input[name='awoken-number']:checked"); | |||
| mon.awoken = mAwokenNumIpt ? parseInt(mAwokenNumIpt.value,10) : 0; | |||
| if (card.superAwakenings.length) //如果支持超觉醒 | |||
| { | |||
| mon.sawoken = -1; | |||
| for (var sai = 0;sai<monEditSAwokens.length;sai++) | |||
| { | |||
| if ( | |||
| !monEditSAwokens[sai].classList.contains("unselected-awoken") && | |||
| !monEditSAwokens[sai].classList.contains("display-none") | |||
| ) | |||
| { | |||
| mon.sawoken = sai; | |||
| break; | |||
| } | |||
| } | |||
| const mSAwokenChoIpt = monEditSAwokensRow.querySelector("input[name='sawoken-choice']:checked"); | |||
| mon.sawoken = mSAwokenChoIpt ? parseInt(mSAwokenChoIpt.value,10) : -1; | |||
| } | |||
| if (card.types.some(t=>{return t == 0 || t == 12 || t == 14 || t == 15;}) && | |||
| @@ -1803,7 +1781,7 @@ function editMon(teamNum,isAssist,indexInTeam) | |||
| monstersID.onchange(); | |||
| //觉醒 | |||
| const monEditAwokens = settingBox.querySelectorAll(".row-mon-awoken .awoken-ul .awoken-icon"); | |||
| if (mon.awoken > 0 && monEditAwokens[mon.awoken]) monEditAwokens[mon.awoken].onclick(); | |||
| if (mon.awoken > 0 && monEditAwokens[mon.awoken]) monEditAwokens[mon.awoken].click(); | |||
| //超觉醒 | |||
| const monEditSAwokens = settingBox.querySelectorAll(".row-mon-super-awoken .awoken-ul .awoken-icon"); | |||
| if (mon.sawoken >= 0 && monEditSAwokens[mon.sawoken] && monEditSAwokens[mon.sawoken].classList.contains("unselected-awoken")) monEditSAwokens[mon.sawoken].onclick(); | |||
| @@ -1941,41 +1919,46 @@ function editBoxChangeMonId(id) | |||
| } | |||
| } | |||
| const mAwoken = settingBox.querySelectorAll(".row-mon-awoken .awoken-ul li"); | |||
| editBox.awokenCount = card.awakenings.length; | |||
| mAwoken[0].innerHTML = editBox.awokenCount ? "★" : "0"; | |||
| const monEditAwokensRow = settingBox.querySelector(".row-mon-awoken"); | |||
| const mAwoken = monEditAwokensRow.querySelectorAll(".awoken-ul .awoken-icon"); | |||
| mAwoken[0].innerHTML = card.awakenings.length; | |||
| for (let ai=1;ai<mAwoken.length;ai++) | |||
| { | |||
| if (ai<=card.awakenings.length) | |||
| { | |||
| mAwoken[ai].className = "awoken-icon awoken-" + card.awakenings[ai-1]; | |||
| mAwoken[ai].classList.add(`awoken-${card.awakenings[ai-1]}`); | |||
| mAwoken[ai].classList.remove(`display-none`); | |||
| }else | |||
| { | |||
| mAwoken[ai].className = "display-none"; | |||
| mAwoken[ai].classList.add(`display-none`); | |||
| mAwoken[ai].className = mAwoken[ai].className.replace(/awoken\-\d+/,''); | |||
| } | |||
| } | |||
| //超觉醒 | |||
| const mSAwokenRow = settingBox.querySelector(".row-mon-super-awoken"); | |||
| const mSAwoken = mSAwokenRow.querySelectorAll(".awoken-ul li"); | |||
| const monEditSAwokensRow = settingBox.querySelector(".row-mon-super-awoken"); | |||
| monEditSAwokensRow.querySelector("#sawoken-choice--1").checked = true; //选中隐藏的空超觉 | |||
| const mSAwoken = monEditSAwokensRow.querySelectorAll(".awoken-ul .awoken-icon"); | |||
| //if (!editBox.isAssist && card.superAwakenings.length>0) | |||
| if (card.superAwakenings.length>0) //武器上也还是加入超觉醒吧 | |||
| if (card.superAwakenings.length>0) //辅助时也还是加入超觉醒吧 | |||
| { | |||
| for (let ai=0;ai<mSAwoken.length;ai++) | |||
| { | |||
| if (ai < card.superAwakenings.length) | |||
| { | |||
| mSAwoken[ai].className = "awoken-icon unselected-awoken awoken-" + card.superAwakenings[ai]; | |||
| mSAwoken[ai].classList.add(`awoken-${card.superAwakenings[ai]}`); | |||
| mSAwoken[ai].classList.remove(`display-none`); | |||
| } | |||
| else | |||
| { | |||
| mSAwoken[ai].className = "display-none"; | |||
| mSAwoken[ai].classList.add(`display-none`); | |||
| mSAwoken[ai].className = mSAwoken[ai].className.replace(/awoken\-\d+/,''); | |||
| } | |||
| } | |||
| mSAwokenRow.classList.remove("display-none"); | |||
| monEditSAwokensRow.classList.remove("display-none"); | |||
| }else | |||
| { | |||
| mSAwokenRow.classList.add("display-none"); | |||
| monEditSAwokensRow.classList.add("display-none"); | |||
| } | |||
| const monEditLvMax = settingBox.querySelector(".m-level-btn-max"); | |||
| @@ -638,32 +638,33 @@ var formation = new Formation(teamsCount,6); | |||
| <div class="setting-row"> | |||
| <div class="row-mon-awoken"> | |||
| <!--怪物觉醒--> | |||
| <ul class="awoken-ul"> | |||
| <li class="awoken-icon awoken-count"></li> | |||
| <li class="awoken-icon"></li> | |||
| <li class="awoken-icon"></li> | |||
| <li class="awoken-icon"></li> | |||
| <li class="awoken-icon"></li> | |||
| <li class="awoken-icon"></li> | |||
| <li class="awoken-icon"></li> | |||
| <li class="awoken-icon"></li> | |||
| <li class="awoken-icon"></li> | |||
| <li class="awoken-icon"></li> | |||
| </ul> | |||
| <div class="awoken-ul"> | |||
| <label for="awoken-number-0" class="awoken-icon awoken-count"></label><input type="radio" name="awoken-number" class="awoken-number" value="0" id="awoken-number-0" /> | |||
| <label for="awoken-number-1" class="awoken-icon"></label><input type="radio" name="awoken-number" class="awoken-number" value="1" id="awoken-number-1" /> | |||
| <label for="awoken-number-2" class="awoken-icon"></label><input type="radio" name="awoken-number" class="awoken-number" value="2" id="awoken-number-2" /> | |||
| <label for="awoken-number-3" class="awoken-icon"></label><input type="radio" name="awoken-number" class="awoken-number" value="3" id="awoken-number-3" /> | |||
| <label for="awoken-number-4" class="awoken-icon"></label><input type="radio" name="awoken-number" class="awoken-number" value="4" id="awoken-number-4" /> | |||
| <label for="awoken-number-5" class="awoken-icon"></label><input type="radio" name="awoken-number" class="awoken-number" value="5" id="awoken-number-5" /> | |||
| <label for="awoken-number-6" class="awoken-icon"></label><input type="radio" name="awoken-number" class="awoken-number" value="6" id="awoken-number-6" /> | |||
| <label for="awoken-number-7" class="awoken-icon"></label><input type="radio" name="awoken-number" class="awoken-number" value="7" id="awoken-number-7" /> | |||
| <label for="awoken-number-8" class="awoken-icon"></label><input type="radio" name="awoken-number" class="awoken-number" value="8" id="awoken-number-8" /> | |||
| <label for="awoken-number-9" class="awoken-icon"></label><input type="radio" name="awoken-number" class="awoken-number" value="9" id="awoken-number-9" /> | |||
| </div> | |||
| </div> | |||
| <div class="row-mon-super-awoken"> | |||
| <!--怪物超觉醒--> | |||
| <ul class="awoken-ul"> | |||
| <li class="awoken-icon"></li> | |||
| <li class="awoken-icon"></li> | |||
| <li class="awoken-icon"></li> | |||
| <li class="awoken-icon"></li> | |||
| <li class="awoken-icon"></li> | |||
| <li class="awoken-icon"></li> | |||
| <li class="awoken-icon"></li> | |||
| <li class="awoken-icon"></li> | |||
| <li class="awoken-icon"></li> | |||
| </ul> | |||
| <div class="awoken-ul"> | |||
| <input type="radio" name="sawoken-choice" class="sawoken-choice" value="-1" id="sawoken-choice--1" /> | |||
| <input type="radio" name="sawoken-choice" class="sawoken-choice" value="0" id="sawoken-choice-0" /><label for="sawoken-choice-0" class="awoken-icon"></label> | |||
| <input type="radio" name="sawoken-choice" class="sawoken-choice" value="1" id="sawoken-choice-1" /><label for="sawoken-choice-1" class="awoken-icon"></label> | |||
| <input type="radio" name="sawoken-choice" class="sawoken-choice" value="2" id="sawoken-choice-2" /><label for="sawoken-choice-2" class="awoken-icon"></label> | |||
| <input type="radio" name="sawoken-choice" class="sawoken-choice" value="3" id="sawoken-choice-3" /><label for="sawoken-choice-3" class="awoken-icon"></label> | |||
| <input type="radio" name="sawoken-choice" class="sawoken-choice" value="4" id="sawoken-choice-4" /><label for="sawoken-choice-4" class="awoken-icon"></label> | |||
| <input type="radio" name="sawoken-choice" class="sawoken-choice" value="5" id="sawoken-choice-5" /><label for="sawoken-choice-5" class="awoken-icon"></label> | |||
| <input type="radio" name="sawoken-choice" class="sawoken-choice" value="6" id="sawoken-choice-6" /><label for="sawoken-choice-6" class="awoken-icon"></label> | |||
| <input type="radio" name="sawoken-choice" class="sawoken-choice" value="7" id="sawoken-choice-7" /><label for="sawoken-choice-7" class="awoken-icon"></label> | |||
| <input type="radio" name="sawoken-choice" class="sawoken-choice" value="8" id="sawoken-choice-8" /><label for="sawoken-choice-8" class="awoken-icon"></label> | |||
| </div> | |||
| </div> | |||
| </div> | |||
| <div class="setting-row row-ability"> | |||
| @@ -637,6 +637,7 @@ ul{ | |||
| font-size: 2em; | |||
| font-weight: bold; | |||
| } | |||
| /*.edit-box .edit-box-title::before{ | |||
| content: "修改队员"; | |||
| } | |||
| @@ -835,6 +836,25 @@ ul{ | |||
| padding: 0; | |||
| float: right; | |||
| } | |||
| .awoken-ul .awoken-count | |||
| { | |||
| font-size: 16px; | |||
| line-height: 32px; | |||
| font-family: var(--game-font-family); | |||
| display: inline-block; | |||
| margin-right: 3px; | |||
| } | |||
| .awoken-ul .count | |||
| { | |||
| height: 32px; | |||
| width: 37px; | |||
| display: inline-block; | |||
| vertical-align: middle; | |||
| } | |||
| .awoken-ul .count::before{ | |||
| content: "×"; | |||
| } | |||
| .search-box .awoken-ul button{ | |||
| border: none; | |||
| background-color: unset; | |||
| @@ -992,20 +1012,11 @@ ul{ | |||
| font-size: 0; | |||
| height: 32px; | |||
| } | |||
| .awoken-ul li{ | |||
| margin-right: 5px; | |||
| } | |||
| .awoken-ul li:last-of-type{ | |||
| margin-right: 0; | |||
| } | |||
| .edit-box .awoken-ul .awoken-icon{ | |||
| cursor: pointer; | |||
| } | |||
| .awoken-ul .awoken-icon.unselected-awoken{ | |||
| opacity: var(--search-icon-unchecked); | |||
| } | |||
| .row-mon-awoken .awoken-icon.awoken-count, | |||
| .row-mon-awoken .awoken-icon.awoken-count.full-awoken::before | |||
| .row-mon-awoken .awoken-count, | |||
| .row-mon-awoken .awoken-count.full-awoken::before | |||
| { | |||
| color: yellow; | |||
| font-size: 22px; | |||
| @@ -1014,15 +1025,19 @@ ul{ | |||
| text-shadow: black 0 0 4px; | |||
| text-align: center; | |||
| } | |||
| .row-mon-awoken .awoken-icon.awoken-count.full-awoken{ | |||
| .row-mon-awoken .awoken-count.full-awoken{ | |||
| font-size: 0; | |||
| } | |||
| .row-mon-awoken .awoken-icon.awoken-count.full-awoken::before{ | |||
| .row-mon-awoken .awoken-count.full-awoken::before{ | |||
| content: "★"; | |||
| } | |||
| .row-mon-awoken .m-super-awoken-ul{ | |||
| margin-top: 5px; | |||
| /*选中的觉醒后面部分半透明,前面的不透明*/ | |||
| .row-mon-awoken .awoken-number{display:none;} | |||
| .row-mon-awoken .awoken-number:checked~label | |||
| { | |||
| opacity: var(--search-icon-unchecked); | |||
| } | |||
| /*.edit-box .setting-box .row-mon-super-awoken::before{ | |||
| content: "▼超觉醒"; | |||
| }*/ | |||
| @@ -1034,7 +1049,26 @@ ul{ | |||
| box-sizing: border-box; | |||
| vertical-align: top; | |||
| } | |||
| .row-mon-awoken .awoken-icon, | |||
| .row-mon-super-awoken .awoken-icon | |||
| { | |||
| margin-left: 5px; | |||
| } | |||
| .row-mon-awoken .awoken-icon:first-of-type, | |||
| .row-mon-super-awoken .awoken-icon:first-of-type | |||
| { | |||
| margin-left: unset; | |||
| } | |||
| /*未选中的超觉醒半透明,选中的不透明*/ | |||
| .row-mon-super-awoken .sawoken-choice{display:none;} | |||
| .row-mon-super-awoken .sawoken-choice+label | |||
| { | |||
| opacity: var(--search-icon-unchecked); | |||
| } | |||
| .row-mon-super-awoken .sawoken-choice:checked+label | |||
| { | |||
| opacity: unset; | |||
| } | |||
| /*怪物能力横条*/ | |||
| /*.row-ability{ | |||
| border-color: #D5AF5B; | |||
| @@ -1224,14 +1258,24 @@ ul{ | |||
| } | |||
| .m-latent-allowable-ul{ | |||
| margin-top: 5px; | |||
| font-size: 0; | |||
| } | |||
| .m-latent-allowable-ul .latent-icon{ | |||
| margin-right: 4.66px; | |||
| } | |||
| .m-latent-allowable-ul .latent-icon:last-of-type{ | |||
| margin-right: unset; | |||
| } | |||
| .m-latent-allowable-ul .latent-icon, | |||
| .m-latent-ul .latent-icon{ | |||
| cursor: pointer; | |||
| } | |||
| /*没有打觉醒的空格,没有手指*/ | |||
| .m-latent-ul .latent-icon[class="latent-icon"]{ | |||
| cursor: default; | |||
| } | |||
| /*不允许使用的潜觉,不是手指,半透明,灰度*/ | |||
| .m-latent-allowable-ul .latent-icon.unselected-latent{ | |||
| cursor: default; | |||
| opacity: var(--search-icon-unchecked); | |||
| @@ -1396,25 +1440,6 @@ ul{ | |||
| .detail-box{ | |||
| margin-top:5px; | |||
| } | |||
| .awoken-ul .awoken-count | |||
| { | |||
| font-size: 16px; | |||
| line-height: 32px; | |||
| font-family: var(--game-font-family); | |||
| display: inline-block; | |||
| margin-right: 3px; | |||
| } | |||
| .awoken-ul .count | |||
| { | |||
| height: 32px; | |||
| width: 37px; | |||
| display: inline-block; | |||
| vertical-align: middle; | |||
| } | |||
| .awoken-ul .count::before{ | |||
| content: "×"; | |||
| } | |||
| /*控制框*/ | |||
| .control-box{ | |||
| margin-bottom: 10px; | |||
| @@ -1272,32 +1272,33 @@ var formation = new Formation(teamsCount,6); | |||
| <div class="setting-row"> | |||
| <div class="row-mon-awoken"> | |||
| <!--怪物觉醒--> | |||
| <ul class="awoken-ul"> | |||
| <li class="awoken-icon awoken-count"></li> | |||
| <li class="awoken-icon"></li> | |||
| <li class="awoken-icon"></li> | |||
| <li class="awoken-icon"></li> | |||
| <li class="awoken-icon"></li> | |||
| <li class="awoken-icon"></li> | |||
| <li class="awoken-icon"></li> | |||
| <li class="awoken-icon"></li> | |||
| <li class="awoken-icon"></li> | |||
| <li class="awoken-icon"></li> | |||
| </ul> | |||
| <div class="awoken-ul"> | |||
| <label for="awoken-number-0" class="awoken-icon awoken-count"></label><input type="radio" name="awoken-number" class="awoken-number" value="0" id="awoken-number-0" /> | |||
| <label for="awoken-number-1" class="awoken-icon"></label><input type="radio" name="awoken-number" class="awoken-number" value="1" id="awoken-number-1" /> | |||
| <label for="awoken-number-2" class="awoken-icon"></label><input type="radio" name="awoken-number" class="awoken-number" value="2" id="awoken-number-2" /> | |||
| <label for="awoken-number-3" class="awoken-icon"></label><input type="radio" name="awoken-number" class="awoken-number" value="3" id="awoken-number-3" /> | |||
| <label for="awoken-number-4" class="awoken-icon"></label><input type="radio" name="awoken-number" class="awoken-number" value="4" id="awoken-number-4" /> | |||
| <label for="awoken-number-5" class="awoken-icon"></label><input type="radio" name="awoken-number" class="awoken-number" value="5" id="awoken-number-5" /> | |||
| <label for="awoken-number-6" class="awoken-icon"></label><input type="radio" name="awoken-number" class="awoken-number" value="6" id="awoken-number-6" /> | |||
| <label for="awoken-number-7" class="awoken-icon"></label><input type="radio" name="awoken-number" class="awoken-number" value="7" id="awoken-number-7" /> | |||
| <label for="awoken-number-8" class="awoken-icon"></label><input type="radio" name="awoken-number" class="awoken-number" value="8" id="awoken-number-8" /> | |||
| <label for="awoken-number-9" class="awoken-icon"></label><input type="radio" name="awoken-number" class="awoken-number" value="9" id="awoken-number-9" /> | |||
| </div> | |||
| </div> | |||
| <div class="row-mon-super-awoken"> | |||
| <!--怪物超觉醒--> | |||
| <ul class="awoken-ul"> | |||
| <li class="awoken-icon"></li> | |||
| <li class="awoken-icon"></li> | |||
| <li class="awoken-icon"></li> | |||
| <li class="awoken-icon"></li> | |||
| <li class="awoken-icon"></li> | |||
| <li class="awoken-icon"></li> | |||
| <li class="awoken-icon"></li> | |||
| <li class="awoken-icon"></li> | |||
| <li class="awoken-icon"></li> | |||
| </ul> | |||
| <div class="awoken-ul"> | |||
| <input type="radio" name="sawoken-choice" class="sawoken-choice" value="-1" id="sawoken-choice--1" /> | |||
| <input type="radio" name="sawoken-choice" class="sawoken-choice" value="0" id="sawoken-choice-0" /><label for="sawoken-choice-0" class="awoken-icon"></label> | |||
| <input type="radio" name="sawoken-choice" class="sawoken-choice" value="1" id="sawoken-choice-1" /><label for="sawoken-choice-1" class="awoken-icon"></label> | |||
| <input type="radio" name="sawoken-choice" class="sawoken-choice" value="2" id="sawoken-choice-2" /><label for="sawoken-choice-2" class="awoken-icon"></label> | |||
| <input type="radio" name="sawoken-choice" class="sawoken-choice" value="3" id="sawoken-choice-3" /><label for="sawoken-choice-3" class="awoken-icon"></label> | |||
| <input type="radio" name="sawoken-choice" class="sawoken-choice" value="4" id="sawoken-choice-4" /><label for="sawoken-choice-4" class="awoken-icon"></label> | |||
| <input type="radio" name="sawoken-choice" class="sawoken-choice" value="5" id="sawoken-choice-5" /><label for="sawoken-choice-5" class="awoken-icon"></label> | |||
| <input type="radio" name="sawoken-choice" class="sawoken-choice" value="6" id="sawoken-choice-6" /><label for="sawoken-choice-6" class="awoken-icon"></label> | |||
| <input type="radio" name="sawoken-choice" class="sawoken-choice" value="7" id="sawoken-choice-7" /><label for="sawoken-choice-7" class="awoken-icon"></label> | |||
| <input type="radio" name="sawoken-choice" class="sawoken-choice" value="8" id="sawoken-choice-8" /><label for="sawoken-choice-8" class="awoken-icon"></label> | |||
| </div> | |||
| </div> | |||
| </div> | |||
| <div class="setting-row row-ability"> | |||
| @@ -184,21 +184,10 @@ function calculateExp(member) | |||
| return [Math.round(v99Exp),v110Exp]; | |||
| } | |||
| //计算怪物的能力 | |||
| //function calculateAbility(monid = 0, level = 1, plus = [0,0,0], awoken = 0, latent = [], weaponId = null, weaponAwoken = null, solo = true) | |||
| function calculateAbility(member = null, assist = null, solo = true) | |||
| { | |||
| if (!member) return null; | |||
| /* | |||
| const monid = member.id || 0; | |||
| const level = member.level || 1; | |||
| const plus = member.plus || [0,0,0]; | |||
| const awoken = member.awoken || 0; | |||
| const latent = member.latent || []; | |||
| const sawoken = member.sawoken; | |||
| const weaponId = assist ? assist.id : null; | |||
| const weaponAwoken = assist ? assist.awoken : null; | |||
| const card = Cards[monid]; //怪物数据 | |||
| */ | |||
| const memberCard = Cards[member.id]; | |||
| const assistCard = assist ? Cards[assist.id] : null; | |||
| if (!memberCard || memberCard.id == 0 || !memberCard.enabled) return null; | |||
| @@ -407,7 +396,7 @@ function descriptionToHTML(str) | |||
| str = str.replace(/\%\{m([0-9]{1,4})\}/g,function (str, p1, offset, s){return cardN(parseInt(p1,10));}); //怪物头像 | |||
| return str; | |||
| } | |||
| //返回怪物名 | |||
| //返回怪物Card的纯HTML | |||
| function cardN(id){ | |||
| let card = Cards[id || 0]; | |||
| if (!card) | |||
| @@ -431,12 +420,5 @@ function parseSkillDescription(skill) | |||
| //大数字缩短长度,默认返回本地定义字符串 | |||
| function parseBigNumber(number) | |||
| { | |||
| /* //千位分隔符 | |||
| const res=number.toString().replace(/\d+/, function(n){ // 先提取整数部分 | |||
| return n.replace(/(\d)(?=(\d{3})+$)/g,function($1){ | |||
| return $1+","; | |||
| }); | |||
| }) | |||
| */ | |||
| return number.toLocaleString(); | |||
| } | |||