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
|
||||
for _, spawnCard in ipairs(cardList) do
|
||||
Spawner.addCardToDeck(deck, spawnCard.data)
|
||||
if not spawnCard.data.SidewaysCard then
|
||||
sidewaysDeck = false
|
||||
end
|
||||
-- set sidewaysDeck to false if any card is not a sideways card
|
||||
sidewaysDeck = (sidewaysDeck and spawnCard.data.SidewaysCard)
|
||||
end
|
||||
-- set the alt view angle for sideway decks
|
||||
if sidewaysDeck then
|
||||
|
Loading…
Reference in New Issue
Block a user