Spawn clues next to cards, instead of on them
This commit is contained in:
parent
e35c5bdefd
commit
55b8c6cc11
@ -2550,11 +2550,11 @@ TokenManager.buildClueOffsets = function(card, count)
|
|||||||
local localIndex = (i - 1) % 16
|
local localIndex = (i - 1) % 16
|
||||||
|
|
||||||
-- get row and column for this clue
|
-- get row and column for this clue
|
||||||
local row = math.floor(localIndex / 4) + 1
|
local column = math.floor(localIndex / 4)
|
||||||
local column = localIndex % 4
|
local row = (localIndex) % 4
|
||||||
|
|
||||||
-- calculate local position
|
-- 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)
|
-- 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)
|
local cluePos = card.positionToWorld(localPos) + Vector(0, 0.03 + 0.103 * (set - 1), 0)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user