From c412c3cfce1e45d191ebe5b704bc829daf38fa2d Mon Sep 17 00:00:00 2001 From: Adam Goldsmith Date: Sun, 4 Feb 2024 12:02:37 -0500 Subject: [PATCH] Fix encounter card drawing for new Mythos Area scripting --- unpacked/Custom_Tile Mythos Area 9f334f.ttslua | 16 ++-------------- 1 file changed, 2 insertions(+), 14 deletions(-) diff --git a/unpacked/Custom_Tile Mythos Area 9f334f.ttslua b/unpacked/Custom_Tile Mythos Area 9f334f.ttslua index 931723ea3..a23edce17 100644 --- a/unpacked/Custom_Tile Mythos Area 9f334f.ttslua +++ b/unpacked/Custom_Tile Mythos Area 9f334f.ttslua @@ -209,19 +209,7 @@ function drawEncounterCard(params) end function actualEncounterCardDraw(card, params) - local faceUpRotation = 0 - if not params.alwaysFaceUp then - local metadata = JSON.decode(card.getGMNotes()) or {} - if metadata.hidden or DATA_HELPER.call('checkHiddenCard', card.getName()) then - faceUpRotation = 180 - end - end - - local DRAWN_ENCOUNTER_CARD_OFFSET = {1.365, 0.5, -0.625} - local pos = params.mat.positionToWorld(DRAWN_ENCOUNTER_CARD_OFFSET) - local rotY = params.mat.getRotation().y - - deckLib.placeOrMergeIntoDeck(card, pos, { 0, rotY, faceUpRotation }) + card.deal(1, params.mat.getMemo()) end function reshuffleEncounterDeck() @@ -673,4 +661,4 @@ do return TokenSpawnTracker end end) -return __bundle_require("__root") \ No newline at end of file +return __bundle_require("__root")