1.9
This commit is contained in:
parent
fc7c94bd69
commit
2cc2f003df
71 changed files with 3359 additions and 1027 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue