Skip to content

Commit

Permalink
fixed TFA and added feedback message to Pallid Mask helper
Browse files Browse the repository at this point in the history
  • Loading branch information
Chr1Z93 committed Jan 23, 2025
1 parent 7f3fc51 commit db3ce1d
Show file tree
Hide file tree
Showing 2 changed files with 48 additions and 43 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -83,46 +83,46 @@
}
},
"DeckIDs": [
235935,
235734,
231634,
235937,
235939,
231632,
231628,
235735,
235736,
235934,
235725,
235736,
231632,
231629,
235735,
235727,
231632,
235936,
235725,
235937,
235936,
235726,
235938,
235938,
235938,
231629,
235936,
235727,
231629,
231629,
235725,
235725,
235725,
235936,
235936,
235936,
235743,
235743,
235727,
235727,
235736,
235736,
235736,
235935,
235734,
235734,
235937,
231633,
231628,
235938,
235937,
235937,
235934,
235743,
235725,
235939,
235934,
235938,
235736
235934,
231628,
231628,
235726,
231633,
235939,
235939,
231632,
231632,
231632,
231634
],
"Description": "",
"DragSelectable": true,
Expand Down
31 changes: 18 additions & 13 deletions src/ThePathToCarcosa/ThePallidMaskHelper.ttslua
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
local deckLib = require("util/DeckLib")
local tokenManagerApi = require("tokens/TokenManagerApi")


catacombsDeckGUID = "628da0"
tombAndPassageGUID = "99e693"
setAsideBoxGUID = "7a167a"
local deckLib = require("util/DeckLib")
local tokenManagerApi = require("tokens/TokenManagerApi")

local catacombsDeckGUID = "628da0"
local tombAndPassageGUID = "99e693"
local setAsideBoxGUID = "7a167a"

function onLoad()
self.createButton({
Expand Down Expand Up @@ -43,18 +41,18 @@ end

function setup(awoke)
catacombsDeck = getObjectFromGUID(catacombsDeckGUID)

if awoke then
removeExtraLocations()
end

-- if not shuffling, top card is always The Gate to Hell
local startingLocation = catacombsDeck.takeObject({
position = { -30.24, 1.53, 15.30 },
smooth = false
})
tokenManagerApi.spawnTokenGroup(startingLocation, "resource", 1)

if not awoke then
removeExtraLocations()
end
Expand All @@ -66,9 +64,16 @@ function setup(awoke)
newDecks[2].setRotation({ 0, 270, 0 })

local tombAndPassage = getObjectFromGUID(tombAndPassageGUID)
Wait.time(function() deckLib.placeOrMergeIntoDeck(tombAndPassage, { -17.12, 1.56, 11.46 }, {0, 270, 0}, false, true) end, 1) -- bottom 5 cards are shuffled together

-- bottom 5 cards are shuffled together
Wait.time(function() deckLib.placeOrMergeIntoDeck(tombAndPassage, { -17.12, 1.56, 11.46 }, { 0, 270, 0 }, false, true) end, 1)

Wait.time(function() deckLib.placeOrMergeIntoDeck(newDecks[2], { -17.12, 1.56, 11.46 }) end, 1)
Wait.time(function() startingLocation.flip() end, 1) --keeps resource token on top

-- keeps resource token on top
Wait.time(function() startingLocation.flip() end, 1)

printToAll("Successfully created catacombs deck.", { r = 0, g = 1, b = 0 })
self.destruct()
end

Expand All @@ -81,4 +86,4 @@ function removeExtraLocations()
setAsideBox.putObject(cutDecks[2])
catacombsDeck = cutDecks[1]
end
end
end

0 comments on commit db3ce1d

Please sign in to comment.