emptied tables and added examples to comments

This commit is contained in:
Chr1Z93 2023-03-20 23:34:45 +01:00
parent 96d4f5a9bd
commit f02b8a434b

View File

@ -546,24 +546,22 @@ function updateHiddenCards(args)
end end
-------------------------------------------------------------------------- --------------------------------------------------------------------------
-- deprecated code -- deprecated code, kept here for existing calls
-------------------------------------------------------------------------- --------------------------------------------------------------------------
-- deprecated, use metadata (GM Notes) instead -- deprecated, use metadata (GM Notes) instead
-- Known locations and clues. We check this to determine if we should atttempt to spawn clues, -- Known locations and clues. We check this to determine if we should atttempt to spawn clues,
-- first we look for <LOCATION_NAME>_<GUID> and if we find nothing we look for <LOCATION_NAME> -- first we look for <LOCATION_NAME>_<GUID> and if we find nothing we look for <LOCATION_NAME>
-- format is [location_guid -> clueCount] -- format is [location_guid -> clueCount]
LOCATIONS_DATA = JSON.decode([[{ -- Example 1: XXXX= {type="fixed", value=2, clueSide= "back"}
"XXXX": {"type": "fixed", "value": 2, "clueSide": "back"}, -- Example 2: XXX= {type="perPlayer", value= 2, clueSide= "back"}
"xxx": {"type": "perPlayer", "value": 2, "clueSide": "back"} LOCATIONS_DATA = {}
}]])
-- deprecated, use metadata (GM Notes) instead -- deprecated, use metadata (GM Notes) instead
-- Player cards with token counts and types -- Player cards with token counts and types
PLAYER_CARD_DATA = JSON.decode([[{ -- Example: XXX= {tokenType= "resource", tokenCount= 3}
"xxx": {"tokenType": "resource", "tokenCount": 3} PLAYER_CARD_DATA = {}
}]])
-- deprecated, use metadata (GM Notes) instead (still used by custom data helpers) -- deprecated, use metadata (GM Notes) instead (still used by custom data helpers)
-- Encounter Cards with "Hidden." (List of names) -- Encounter Cards with "Hidden." (List of names)
HIDDEN_CARD_DATA = {} HIDDEN_CARD_DATA = {}