Rename other weakness list
This commit is contained in:
parent
9dcd53fbe0
commit
fe6c8411a6
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user