From fe6c8411a6d514b6669587b550a84a7708137ccd Mon Sep 17 00:00:00 2001 From: Buhallin Date: Thu, 5 Jan 2023 01:32:53 -0800 Subject: [PATCH] Rename other weakness list --- src/playercards/PlayerCardPanel.ttslua | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/playercards/PlayerCardPanel.ttslua b/src/playercards/PlayerCardPanel.ttslua index 7e046add..0106352c 100644 --- a/src/playercards/PlayerCardPanel.ttslua +++ b/src/playercards/PlayerCardPanel.ttslua @@ -640,13 +640,13 @@ function spawnWeaknesses() end local weaknessIdList = allCardsBag.call("getUniqueWeaknesses") local basicWeaknessList = { } - local campaignWeaknessList = { } + local otherWeaknessList = { } for i, id in ipairs(weaknessIdList) do local cardMetadata = allCardsBag.call("getCardById", { id = id }).metadata if cardMetadata.basicWeaknessCount ~= nil and cardMetadata.basicWeaknessCount > 0 then table.insert(basicWeaknessList, id) elseif excludedNonBasicWeaknesses[id] == nil then - table.insert(campaignWeaknessList, id) + table.insert(otherWeaknessList, id) end end local groupPos = Vector(START_POSITIONS.classCards) @@ -669,8 +669,8 @@ function spawnWeaknesses() }) groupPos.x = groupPos.x - math.ceil(#EVOLVED_WEAKNESSES / 20) * CARD_ROW_OFFSET - CARD_GROUP_OFFSET spawnBag.spawn({ - name = "campaignWeaknesses", - cards = campaignWeaknessList, + name = "otherWeaknesses", + cards = otherWeaknessList, globalPos = groupPos, rotation = FACE_UP_ROTATION, spread = true,