fixed formatting

This commit is contained in:
Chr1Z93 2024-06-23 22:10:39 +02:00
parent 1d8d91e3ef
commit fd62c91418

View File

@ -4,7 +4,7 @@ local deckImporterApi = require("arkhamdb/DeckImporterApi")
local guidReferenceApi = require("core/GUIDReferenceApi") local guidReferenceApi = require("core/GUIDReferenceApi")
local optionPanelApi = require("core/OptionPanelApi") local optionPanelApi = require("core/OptionPanelApi")
local playAreaApi = require("core/PlayAreaApi") local playAreaApi = require("core/PlayAreaApi")
local playermatApi = require("playermat/PlayermatApi") local playermatApi = require("playermat/PlayermatApi")
-- base data for token creation -- base data for token creation
local campaignTokenData = { local campaignTokenData = {
@ -95,7 +95,7 @@ function importFromToken(coin)
Wait.condition( Wait.condition(
function() function()
local campaignBox = getObjectFromGUID(importData["box"]) campaignBox = getObjectFromGUID(importData["box"])
if #campaignBox.getObjects() > 0 then if #campaignBox.getObjects() > 0 then
placeCampaignFromToken(importData, coin) placeCampaignFromToken(importData, coin)
else else
@ -103,11 +103,11 @@ function importFromToken(coin)
end end
end, end,
function() function()
local obj = getObjectFromGUID(importData["box"]) campaignBox = getObjectFromGUID(importData["box"])
if obj == nil then if campaignBox == nil then
return false return false
else else
return obj.type == "Bag" return campaignBox.type == "Bag"
end end
end, end,
2, 2,