Rotate investigator cards 90 degrees when spawning, so they match the orientation of other cards

This commit is contained in:
Buhallin 2022-11-13 23:51:52 -08:00
parent 98469664a2
commit 258e8aec79
No known key found for this signature in database
GPG Key ID: DB3C362823852294

View File

@ -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
-- of the spawned deck
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
Spawner.spawn(standardCards, position, rot, callback)