Performance Improvement

This commit is contained in:
Entrox-Licher 2024-01-08 17:37:47 -05:00
parent f53f7fdba0
commit 1bc78bd2a1

View File

@ -122,7 +122,7 @@ function createCampaignFromToken(importData)
if importData["additionalIndex"] then
findUniqueObjectWithTag("AllCardsHotfix").destruct()
spawnObjectData({data = importData["additionalIndex"]})
spawnObjectJSON({json = importData["additionalIndex"]})
end
chaosBagApi.setChaosBagState(importData["bag"])
@ -230,7 +230,7 @@ function createCampaignToken(_, playerColor, _)
playmat = playAreaApi.getSurface(),
options = optionPanelApi.getOptions(),
guide = campaignGuide.Book.getPage(),
additionalIndex = additionalIndex.getData()
additionalIndex = additionalIndex.getJSON()
}
campaignTokenData.GMNotes = JSON.encode(campaignData)
campaignTokenData.Nickname = os.date("%b %d ") .. campaignBox.getName() .. " Save"