Merge pull request #232 from argonui/data-helper-cleanup

Data Helper: removal of deprecated functionality
This commit is contained in:
BootleggerFinn 2023-03-12 14:51:27 -05:00 committed by GitHub
commit cfdd6831b6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 36 additions and 958 deletions

File diff suppressed because it is too large Load Diff

View File

@ -218,7 +218,8 @@ function actualEncounterCardDraw(card, params)
local alwaysFaceUp = params[3] local alwaysFaceUp = params[3]
local faceUpRotation = 0 local faceUpRotation = 0
if not alwaysFaceUp then if not alwaysFaceUp then
if getObjectFromGUID(DATA_HELPER_GUID).call('checkHiddenCard', card.getName()) then local metadata = JSON.decode(card.getGMNotes()) or {}
if metadata.hidden or getObjectFromGUID(DATA_HELPER_GUID).call('checkHiddenCard', card.getName()) then
faceUpRotation = 180 faceUpRotation = 180
end end
end end