shortening sideways check
This commit is contained in:
parent
f25cb59aeb
commit
7e0f7d651f
@ -108,9 +108,8 @@ Spawner.spawn = function(cardList, pos, rot, callback)
|
|||||||
local sidewaysDeck = true
|
local sidewaysDeck = true
|
||||||
for _, spawnCard in ipairs(cardList) do
|
for _, spawnCard in ipairs(cardList) do
|
||||||
Spawner.addCardToDeck(deck, spawnCard.data)
|
Spawner.addCardToDeck(deck, spawnCard.data)
|
||||||
if not spawnCard.data.SidewaysCard then
|
-- set sidewaysDeck to false if any card is not a sideways card
|
||||||
sidewaysDeck = false
|
sidewaysDeck = (sidewaysDeck and spawnCard.data.SidewaysCard)
|
||||||
end
|
|
||||||
end
|
end
|
||||||
-- set the alt view angle for sideway decks
|
-- set the alt view angle for sideway decks
|
||||||
if sidewaysDeck then
|
if sidewaysDeck then
|
||||||
|
Loading…
Reference in New Issue
Block a user