🐞 fix(稷下学宫): 修改连线相交
This commit is contained in:
@@ -163,6 +163,9 @@ export function getLayerNodeLineRandom(retLayer: Map<number, CommonNode>) {
|
||||
|
||||
if (tempPreNodes[i - 1] && indexMap.get(tempPreNodes[i - 1].index)) {
|
||||
minDx = maxDx = indexMap.get(tempPreNodes[i - 1].index).dx
|
||||
for (let j = 0; j < tempCurNodes.length; j++) {
|
||||
if (tempPreNodes[i - 1] && tempCurNodes[j].preNodeIndexs.indexOf(tempPreNodes[i - 1].index) != -1) minDx = maxDx = Math.max(minDx, j);
|
||||
}
|
||||
tempMap.set(minDx, indexMap.get(tempPreNodes[i - 1].index).index);
|
||||
}
|
||||
if (tempPreNodes[i + 1] && indexMap.get(tempPreNodes[i + 1].index)) {
|
||||
@@ -616,7 +619,7 @@ export async function getPassiveCardPlan(passiveCardPlan: number, passiveCardRan
|
||||
if (isHolyAddWeight) {
|
||||
holyAddWeight = await getAddPassiveWeight(roleId, gameCode, type);
|
||||
}
|
||||
|
||||
|
||||
for (let obj of cards) {
|
||||
let weightRecord: { originalWight?: number, passiveRedWight?: number, holyAddWeight?: number, passiveLableNum?: number, authorAddWeight?: number, passiveLableNumAddWeight?: number, finalWeight?: number } = {};
|
||||
if (!obj) continue;
|
||||
|
||||
Reference in New Issue
Block a user