Rotate investigator cards 90 degrees when spawning, so they match the orientation of other cards
This commit is contained in:
parent
98469664a2
commit
258e8aec79
@ -30,7 +30,7 @@ Spawner.spawnCards = function(cardList, pos, rot, sort, callback)
|
|||||||
-- Spawn each of the three types individually. Each Y position shift accounts for the thickness
|
-- Spawn each of the three types individually. Each Y position shift accounts for the thickness
|
||||||
-- of the spawned deck
|
-- of the spawned deck
|
||||||
local position = { x = pos.x, y = pos.y, z = pos.z }
|
local position = { x = pos.x, y = pos.y, z = pos.z }
|
||||||
Spawner.spawn(investigatorCards, position, rot, callback)
|
Spawner.spawn(investigatorCards, position, { rot.x, rot.y - 90, rot.z}, callback)
|
||||||
|
|
||||||
position.y = position.y + (#investigatorCards + #standardCards) * 0.07
|
position.y = position.y + (#investigatorCards + #standardCards) * 0.07
|
||||||
Spawner.spawn(standardCards, position, rot, callback)
|
Spawner.spawn(standardCards, position, rot, callback)
|
||||||
|
Loading…
Reference in New Issue
Block a user