From 0fe45100058cde82a93f97de8d5eb7471b34b4f4 Mon Sep 17 00:00:00 2001 From: Adam Goldsmith Date: Sun, 28 Jul 2024 00:34:13 -0400 Subject: [PATCH] Spawn clues next to cards, instead of on them --- src/core/token/TokenManager.ttslua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/core/token/TokenManager.ttslua b/src/core/token/TokenManager.ttslua index c14c5490..f77e361e 100644 --- a/src/core/token/TokenManager.ttslua +++ b/src/core/token/TokenManager.ttslua @@ -473,11 +473,11 @@ do local localIndex = (i - 1) % 16 -- get row and column for this clue - local row = math.floor(localIndex / 4) + 1 - local column = localIndex % 4 + local column = math.floor(localIndex / 4) + local row = (localIndex) % 4 -- calculate local position - local localPos = Vector((-0.825 + 0.55 * column) * modifier, 0, -1.5 + 0.55 * row) + local localPos = Vector((1.4 + 0.55 * column) * modifier, 0, -1 + 0.55 * row) -- get the global clue position (higher y-position for each set) local cluePos = card.positionToWorld(localPos) + Vector(0, 0.03 + 0.103 * (set - 1), 0)