尝试解决没有加载队伍的问题
This commit is contained in:
parent
dd07df92bd
commit
2b7e4b67fa
|
@ -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);
|
||||
|
|
25
script.js
25
script.js
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue