Spawn clues next to cards, instead of on them

This commit is contained in:
Adam Goldsmith 2024-07-28 00:34:13 -04:00
parent cff3d8733e
commit 3d255714d5

View File

@ -2389,11 +2389,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)