initial commit

This commit is contained in:
Chr1Z93 2024-08-11 20:27:15 +02:00
parent 7946ac4241
commit 33e7f0c28b
4 changed files with 40 additions and 4 deletions

View File

@ -6,5 +6,5 @@
"level": 3,
"traits": "Item. Clothing.",
"agilityIcons": 1,
"cycle": "Standalone"
"cycle": "Beta"
}

View File

@ -6,5 +6,5 @@
"level": 2,
"traits": "Item. Relic. Weapon. Melee.",
"combatIcons": 1,
"cycle": "Standalone"
"cycle": "Beta"
}

View File

@ -209,7 +209,7 @@ function buildSupplementalIndexes()
end
end
-- add to cycle index
-- start parsing the cycle data
local cycleName = card.metadata.cycle
-- if this is a minicard without cycle, check the parent card for cycle data
@ -232,6 +232,11 @@ function buildSupplementalIndexes()
else
-- track cards without defined cycle (should only be fan-made cards)
cycleName = "other"
end
-- check if card is not from an official cycle
log(cardId)
if OFFICIAL_CYCLE_LIST[cycleName] ~= true then
otherCardsDetected = true
-- maybe add to special investigator / minicard index
@ -254,7 +259,7 @@ function buildSupplementalIndexes()
end
end
-- maybe initialize table
-- add to cycle index
writeToNestedTable(cycleIndex, cycleName, cardId)
end
end

View File

@ -58,6 +58,37 @@ EVOLVED_WEAKNESSES = {
"53015",
}
OFFICIAL_CYCLE_LIST = {
-- campaigns
["Investigator Packs"] = true,
["Core"] = true,
["The Dunwich Legacy"] = true,
["The Path to Carcosa"] = true,
["The Forgotten Age"] = true,
["The Circle Undone"] = true,
["The Dream-Eaters"] = true,
["The Innsmouth Conspiracy"] = true,
["Edge of the Earth"] = true,
["The Scarlet Keys"] = true,
["The Feast of Hemlock Vale"] = true,
["The Drowned City"] = true,
-- standalones / parallels etc.
["Standalone"] = true,
["The Blob That Ate Everything ELSE"] = true,
["All or Nothing"] = true,
["Bad Blood"] = true,
["Read or Die"] = true,
["By the Book"] = true,
["Red Tide Rising"] = true,
["On the Road Again"] = true,
["Laid to Rest"] = true,
["Path of the Righteous"] = true,
["Relics of the Past"] = true,
["Hunting for Answers"] = true,
["Pistols and Pearls"] = true,
["Beta"] = true,
["Promo"] = true
}
------------------ START INVESTIGATOR DATA DEFINITION ------------------
INVESTIGATOR_GROUPS = {
["Guardian"] = {