From 55b8c6cc1131d525e494078a64f00c9c1312bf5b 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/Global.ttslua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/core/Global.ttslua b/src/core/Global.ttslua index 8bb6ac04..c23c61c5 100644 --- a/src/core/Global.ttslua +++ b/src/core/Global.ttslua @@ -2550,11 +2550,11 @@ TokenManager.buildClueOffsets = function(card, count) 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)