hhmm
This commit is contained in:
parent
434f07cc4e
commit
16074232aa
40 changed files with 1509 additions and 732 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue