Merge pull request #874 from argonui/playercardpanel-bugfix
PlayerCard Panel: spawn investigators even if there are no other cards
This commit is contained in:
commit
d768324896
@ -735,14 +735,14 @@ function spawnCycle(cycle)
|
||||
end
|
||||
local cardList = allCardsBagApi.getCardsByCycle(cycle, sortByMetadata, includeNoLevelCards)
|
||||
|
||||
prepareToPlaceCards()
|
||||
local rowCount = spawnInvestigators(cycle)
|
||||
|
||||
if #cardList == 0 then
|
||||
printToAll("Didn't find any cards for '" .. cycle .. "'.")
|
||||
return
|
||||
end
|
||||
|
||||
prepareToPlaceCards()
|
||||
local rowCount = spawnInvestigators(cycle)
|
||||
|
||||
-- need to shift the start position for cycle down if there are multiple rows of investigators
|
||||
local rowOffset = Vector((rowCount - 1) * investigatorPositionShiftRow)
|
||||
local cycleStartPos = Vector(startPositions.cycle):add(rowOffset)
|
||||
|
Loading…
Reference in New Issue
Block a user