Merge pull request #728 from argonui/minicard-scale

Set correct scale for spawning mini cards
This commit is contained in:
Chr1Z 2024-06-28 01:13:11 +02:00 committed by GitHub
commit a578688f5a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 9 additions and 6 deletions

View File

@ -89,12 +89,12 @@
], ],
"Tooltip": true, "Tooltip": true,
"Transform": { "Transform": {
"posX": 40.7253036, "posX": 40,
"posY": 1.29860592, "posY": 1.3,
"posZ": 66.7765656, "posZ": 66,
"rotX": 1.697304e-7, "rotX": 0,
"rotY": 270.0102, "rotY": 270,
"rotZ": 2.00479718e-7, "rotZ": 0,
"scaleX": 0.6, "scaleX": 0.6,
"scaleY": 1, "scaleY": 1,
"scaleZ": 0.6 "scaleZ": 0.6

View File

@ -28,6 +28,9 @@ Spawner.spawnCards = function(cardList, pos, rot, sort, callback)
if card.metadata.type == "Investigator" then if card.metadata.type == "Investigator" then
table.insert(investigatorCards, card) table.insert(investigatorCards, card)
elseif card.metadata.type == "Minicard" then elseif card.metadata.type == "Minicard" then
-- set proper scale for minicards
card.data.Transform.scaleX = 0.6
card.data.Transform.scaleZ = 0.6
table.insert(miniCards, card) table.insert(miniCards, card)
else else
table.insert(standardCards, card) table.insert(standardCards, card)