Rename other weakness list

This commit is contained in:
Buhallin 2023-01-05 01:32:53 -08:00
parent 9dcd53fbe0
commit fe6c8411a6
No known key found for this signature in database
GPG Key ID: DB3C362823852294

View File

@ -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,