This commit is contained in:
BianLzhaoMin 2025-06-11 16:54:09 +08:00
parent a7591a11fb
commit 73fd3a478e
1 changed files with 22 additions and 7 deletions

View File

@ -988,19 +988,34 @@ function addMapLine() {
let lineColor = ""; let lineColor = "";
let lineStyle = ""; let lineStyle = "";
if ( if (
(startPoint.towerProgress === 8 && // (startPoint.towerProgress === 8 &&
endPoint.towerProgress === 7) || // endPoint.towerProgress === 9) ||
(startPoint.towerProgress === 8 && endPoint.towerProgress === 8) // (startPoint.towerProgress === 8 &&
// endPoint.towerProgress === 8) ||
// (startPoint.towerProgress === 9 && endPoint.towerProgress === 8)
startPoint.towerProgress === 8 &&
endPoint.towerProgress === 8
) { ) {
lineColor = "#FFFF00"; lineColor = "#FFFF00";
lineStyle = "solid"; lineStyle = "solid";
} else if (endPoint.existSpan === 1 && startPoint.existSpan === 1) { } else if (
endPoint.existSpan === 1 &&
startPoint.existSpan === 1 &&
startPoint.towerProgress != 9 &&
endPoint.towerProgress != 9 &&
startPoint.towerProgress != 8 &&
endPoint.towerProgress != 8 &&
startPoint.towerProgress != 10 &&
endPoint.towerProgress != 10
) {
lineColor = "#d81e06"; lineColor = "#d81e06";
lineStyle = "dashed"; lineStyle = "dashed";
} else if ( } else if (
(startPoint.towerProgress === 8 && (startPoint.towerProgress === 9 &&
endPoint.towerProgress === 8) || endPoint.towerProgress === 9) ||
(startPoint.towerProgress === 9 && endPoint.towerProgress === 8) (startPoint.towerProgress === 10 &&
endPoint.towerProgress === 10)
) { ) {
lineColor = "#d81e06"; // 黄色 lineColor = "#d81e06"; // 黄色
lineStyle = "solid"; lineStyle = "solid";