This commit is contained in:
33333-33333 2026-07-16 22:12:03 +09:00
commit 2cc2f003df
71 changed files with 3359 additions and 1027 deletions

View file

@ -150,6 +150,13 @@
if (!it || it.dead || it.type === "splat") continue;
if ((this.tool === "rope" || this.tool === "rod" || this.tool === "spring") && global.TarinaiPhysicsSoftClear.isSoftPlacementType(it.type)) continue;
if (wireTool && ["rope", "rod", "spring", "wire", "insulated_wire"].includes(it.type)) continue;
if (wireTool && it.type === "circuit_board") {
const portHit = global.TarinaiCircuitBoardSystem?.nearestPort?.(it, x, y, 30);
if (!portHit || portHit.distance >= bestD) continue;
best = { kind: "item", id: it.id, type: it.type, label: `${toolLabel(it.type)} ${portHit.port.label}`, x: portHit.x, y: portHit.y, localX: portHit.localX, localY: portHit.localY, center: false, portId: portHit.port.portId };
bestD = portHit.distance;
continue;
}
const isMechanism = Boolean(global.TarinaiMechanicalSystem.isMechanicalType(it.type));
const isFence = this.isFenceType?.(it.type) || false;
const isConstraint = ["rope", "rod", "spring", "wire", "insulated_wire"].includes(it.type);