This commit is contained in:
33333-33333 2026-06-25 17:43:24 +09:00
commit 16074232aa
40 changed files with 1509 additions and 732 deletions

View file

@ -175,6 +175,14 @@
uiCache.grabLastWorldY = p.y;
uiCache.grabStartX = clientX || 0;
uiCache.grabStartY = clientY || 0;
target.playerHeld = true;
target._heldByPlayer = true;
target._playerGrabStartedAt = world.time || 0;
if (target.type === "duplicator") {
target.duplicatorLoadSuppressedUntil = Math.max(target.duplicatorLoadSuppressedUntil || 0, (world.time || 0) + 1.0);
target._duplicatorCandidateKey = "";
target._duplicatorCandidateSince = 0;
}
prepareGrabTarget(target);
if (options.touchMode) uiCache.touchMode = options.touchMode;
renderStats();
@ -237,6 +245,14 @@
target.prevX = target.x;
target.prevY = target.y;
}
target.playerHeld = false;
target._heldByPlayer = false;
target._lastPlayerReleasedAt = world.time || 0;
if (target.type === "duplicator") {
target.duplicatorLoadSuppressedUntil = Math.max(target.duplicatorLoadSuppressedUntil || 0, (world.time || 0) + 1.2);
target._duplicatorCandidateKey = "";
target._duplicatorCandidateSince = 0;
}
}
audio.drop?.();
uiCache.grabbing = false;