尝试解决没有加载队伍的问题

This commit is contained in:
枫谷剑仙 2021-03-10 19:07:53 +08:00
parent dd07df92bd
commit 2b7e4b67fa
2 changed files with 21 additions and 5 deletions

View File

@ -235,7 +235,6 @@ function curve(c, level, maxLevel, limitBreakIncr, limitBreakIncr120) {
if (level > maxLevel) {
const exceed99 = Math.min(level - maxLevel, 11);
const exceed110 = Math.max(0, level - 110);
console.log(exceed99, level - 110)
value += c.max!==undefined ?
((c.max * (limitBreakIncr / 100) * (exceed99 / 11)) + (c.max * (limitBreakIncr120 / 100) * (exceed110 / 10))) :
(c.min * exceed99 + c.min * exceed110);

View File

@ -820,16 +820,33 @@ function loadData(force = false)
function dealSkillData()
{
if (controlBox)
//显示数据更新时间
let controlBoxHook = setInterval(checkControlBox, 500); //循环检测controlBox
checkControlBox();
function checkControlBox()
{
const updateTime = controlBox.querySelector(".datasource-updatetime");
updateTime.textContent = new Date(currentCkey.updateTime).toLocaleString(undefined, { hour12: false });
if (controlBox)
{
const updateTime = controlBox.querySelector(".datasource-updatetime");
updateTime.textContent = new Date(currentCkey.updateTime).toLocaleString(undefined, { hour12: false });
clearInterval(controlBoxHook);
}
}
//initialize(); //初始化
if (statusLine) statusLine.classList.remove("loading-skill-info");
//如果通过的话就载入URL中的怪物数据
reloadFormationData();
let formationBoxHook = setInterval(checkControlBox, 500); //循环检测formationBox
checkFormationBox();
function checkFormationBox()
{
if (controlBox)
{
reloadFormationData();
clearInterval(formationBoxHook);
}
}
}
}