From 96d4f5a9bd4a2943c0e9d6cd378be7654ef16e68 Mon Sep 17 00:00:00 2001 From: Chr1Z93 Date: Fri, 17 Mar 2023 10:41:36 +0100 Subject: [PATCH 1/3] uncomment deprecated tables for tokenmanager --- src/core/DataHelper.ttslua | 30 +++++++++++------------------- 1 file changed, 11 insertions(+), 19 deletions(-) diff --git a/src/core/DataHelper.ttslua b/src/core/DataHelper.ttslua index f2aa0b10..1c0a8cb4 100644 --- a/src/core/DataHelper.ttslua +++ b/src/core/DataHelper.ttslua @@ -526,10 +526,6 @@ function setSpawnedPlayerCardGuid(params) end end --- deprecated, use metadata (GM Notes) instead (still used by custom data helpers) --- Encounter Cards with "Hidden." -HIDDEN_CARD_DATA = {} - -- called by "Global" during encounter card drawing function checkHiddenCard(name) for _, n in ipairs(HIDDEN_CARD_DATA) do @@ -550,28 +546,24 @@ function updateHiddenCards(args) end -------------------------------------------------------------------------- --- deprecated code (commented out) +-- deprecated code -------------------------------------------------------------------------- -- deprecated, use metadata (GM Notes) instead -- Known locations and clues. We check this to determine if we should atttempt to spawn clues, -- first we look for _ and if we find nothing we look for -- format is [location_guid -> clueCount] --- LOCATIONS_DATA = JSON.decode([[{ --- "XXXX": {"type": "fixed", "value": 2, "clueSide": "back"}, --- "xxx": {"type": "perPlayer", "value": 2, "clueSide": "back"} --- }]]) +LOCATIONS_DATA = JSON.decode([[{ + "XXXX": {"type": "fixed", "value": 2, "clueSide": "back"}, + "xxx": {"type": "perPlayer", "value": 2, "clueSide": "back"} +}]]) -- deprecated, use metadata (GM Notes) instead -- Player cards with token counts and types --- PLAYER_CARD_DATA = JSON.decode([[{ --- "xxx": { --- "tokenType": "resource", --- "tokenCount": 3 --- } --- }]]) +PLAYER_CARD_DATA = JSON.decode([[{ + "xxx": {"tokenType": "resource", "tokenCount": 3} +}]]) --- deprecated, included in TokenManager --- PLAYER_CARD_TOKEN_OFFSETS = { --- [1] = {{ 0, 3, -0.2 }} --- } \ No newline at end of file +-- deprecated, use metadata (GM Notes) instead (still used by custom data helpers) +-- Encounter Cards with "Hidden." (List of names) +HIDDEN_CARD_DATA = {} \ No newline at end of file From f02b8a434bb1760e2f9072bf575a43f7c086a8f3 Mon Sep 17 00:00:00 2001 From: Chr1Z93 Date: Mon, 20 Mar 2023 23:34:45 +0100 Subject: [PATCH 2/3] emptied tables and added examples to comments --- src/core/DataHelper.ttslua | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/src/core/DataHelper.ttslua b/src/core/DataHelper.ttslua index 1c0a8cb4..9de4bdc3 100644 --- a/src/core/DataHelper.ttslua +++ b/src/core/DataHelper.ttslua @@ -546,24 +546,22 @@ function updateHiddenCards(args) end -------------------------------------------------------------------------- --- deprecated code +-- deprecated code, kept here for existing calls -------------------------------------------------------------------------- -- deprecated, use metadata (GM Notes) instead -- Known locations and clues. We check this to determine if we should atttempt to spawn clues, -- first we look for _ and if we find nothing we look for -- format is [location_guid -> clueCount] -LOCATIONS_DATA = JSON.decode([[{ - "XXXX": {"type": "fixed", "value": 2, "clueSide": "back"}, - "xxx": {"type": "perPlayer", "value": 2, "clueSide": "back"} -}]]) +-- Example 1: XXXX= {type="fixed", value=2, clueSide= "back"} +-- Example 2: XXX= {type="perPlayer", value= 2, clueSide= "back"} +LOCATIONS_DATA = {} -- deprecated, use metadata (GM Notes) instead -- Player cards with token counts and types -PLAYER_CARD_DATA = JSON.decode([[{ - "xxx": {"tokenType": "resource", "tokenCount": 3} -}]]) +-- Example: XXX= {tokenType= "resource", tokenCount= 3} +PLAYER_CARD_DATA = {} -- deprecated, use metadata (GM Notes) instead (still used by custom data helpers) -- Encounter Cards with "Hidden." (List of names) -HIDDEN_CARD_DATA = {} \ No newline at end of file +HIDDEN_CARD_DATA = {} From a43afc800703f87d3216227419eb0897396c3fa7 Mon Sep 17 00:00:00 2001 From: Chr1Z93 Date: Mon, 20 Mar 2023 23:57:56 +0100 Subject: [PATCH 3/3] better examples --- src/core/DataHelper.ttslua | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/src/core/DataHelper.ttslua b/src/core/DataHelper.ttslua index 9de4bdc3..bbb584bf 100644 --- a/src/core/DataHelper.ttslua +++ b/src/core/DataHelper.ttslua @@ -553,15 +553,24 @@ end -- Known locations and clues. We check this to determine if we should atttempt to spawn clues, -- first we look for _ and if we find nothing we look for -- format is [location_guid -> clueCount] --- Example 1: XXXX= {type="fixed", value=2, clueSide= "back"} --- Example 2: XXX= {type="perPlayer", value= 2, clueSide= "back"} + +-- Example 1: "Study" from Core Set (https://arkhamdb.com/card/01111) +-- ["Study"]= {type="perPlayer", value=2, clueSide= "back"} + +-- Example 2: "Student Union" from Dunwich Legacy (https://arkhamdb.com/card/02051) +-- ["Student Union"]= {type="fixed", value= 2, clueSide= "back"} LOCATIONS_DATA = {} -- deprecated, use metadata (GM Notes) instead -- Player cards with token counts and types --- Example: XXX= {tokenType= "resource", tokenCount= 3} + +-- Example: "Flashlight" from Core Set (https://arkhamdb.com/card/01087) +-- ["Flashlight"]= {tokenType= "resource", tokenCount= 3} PLAYER_CARD_DATA = {} -- deprecated, use metadata (GM Notes) instead (still used by custom data helpers) -- Encounter Cards with "Hidden." (List of names) + +-- Example: "Possession (Murderous)" from Path to Carcosa (https://arkhamdb.com/card/03342) +-- ..., "Possession (Murderous)", ... HIDDEN_CARD_DATA = {}