From efe5c85cd540690bd1b6d52cc6f8a4e945d8d512 Mon Sep 17 00:00:00 2001 From: Chr1Z93 Date: Wed, 18 Sep 2024 14:35:54 +0200 Subject: [PATCH] spawn investigators even if there are no other cards --- src/playercards/PlayerCardPanel.ttslua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/playercards/PlayerCardPanel.ttslua b/src/playercards/PlayerCardPanel.ttslua index 6becb9e6..a404f8e9 100644 --- a/src/playercards/PlayerCardPanel.ttslua +++ b/src/playercards/PlayerCardPanel.ttslua @@ -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)