From 2e6427edcd74fa9f04299be0170f124849a89297 Mon Sep 17 00:00:00 2001 From: Chr1Z93 Date: Tue, 5 Mar 2024 00:18:31 +0100 Subject: [PATCH 1/5] updated modversion --- src/core/Global.ttslua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/Global.ttslua b/src/core/Global.ttslua index c5d23006..a39fd2b9 100644 --- a/src/core/Global.ttslua +++ b/src/core/Global.ttslua @@ -40,7 +40,7 @@ local bagSearchers = {} local hideTitleSplashWaitFunctionId = nil -- online functionality related variables -local MOD_VERSION = "3.6.0" +local MOD_VERSION = "3.7.0" local SOURCE_REPO = 'https://raw.githubusercontent.com/chr1z93/loadable-objects/main' local library, requestObj, modMeta local acknowledgedUpgradeVersions = {} From 2d42fc4a826d0e97764879e57be63bfc91a92c30 Mon Sep 17 00:00:00 2001 From: Chr1Z93 Date: Wed, 6 Mar 2024 11:23:44 +0100 Subject: [PATCH 2/5] added player to parameters --- objects/EncounterSets.304ffc.ttslua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/objects/EncounterSets.304ffc.ttslua b/objects/EncounterSets.304ffc.ttslua index 0bbfbf9a..5211da94 100644 --- a/objects/EncounterSets.304ffc.ttslua +++ b/objects/EncounterSets.304ffc.ttslua @@ -2,6 +2,6 @@ function onLoad() self.addContextMenuItem("Download", download) end -function download() - Global.call('placeholder_download', { url = self.getGMNotes(), replace = self.guid }) +function download(_, playerColor) + Global.call('placeholder_download', { url = self.getGMNotes(), player = Player[playerColor], replace = self.guid }) end From 48e7588cf47d4dc473eb868b543cf2587f8d2569 Mon Sep 17 00:00:00 2001 From: Chr1Z93 Date: Fri, 8 Mar 2024 17:17:44 +0100 Subject: [PATCH 3/5] added "startsInPlay" to soul sanctification --- objects/AllPlayerCards.15bb07/SoulSanctification3.52f6d6.gmnotes | 1 + 1 file changed, 1 insertion(+) diff --git a/objects/AllPlayerCards.15bb07/SoulSanctification3.52f6d6.gmnotes b/objects/AllPlayerCards.15bb07/SoulSanctification3.52f6d6.gmnotes index 14244922..aa1f4a30 100644 --- a/objects/AllPlayerCards.15bb07/SoulSanctification3.52f6d6.gmnotes +++ b/objects/AllPlayerCards.15bb07/SoulSanctification3.52f6d6.gmnotes @@ -2,6 +2,7 @@ "id": "09123", "type": "Asset", "class": "Neutral", + "startsInPlay": true, "level": 3, "traits": "Ritual.", "permanent": true, From 532ae2ea8e83ced2227d22d3ecc023c7b5ebbe10 Mon Sep 17 00:00:00 2001 From: Entrox-Licher Date: Thu, 21 Mar 2024 09:41:22 -0400 Subject: [PATCH 4/5] Minor patch for Campaign Exporter --- src/core/Global.ttslua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/core/Global.ttslua b/src/core/Global.ttslua index a39fd2b9..e154deb9 100644 --- a/src/core/Global.ttslua +++ b/src/core/Global.ttslua @@ -784,7 +784,9 @@ function placeholder_download(params) UI.setAttribute('download_progress', 'active', false) -- hide download window - changeWindowVisibilityForColor(params.player.color, "downloadWindow", false) + if params.player then + changeWindowVisibilityForColor(params.player.color, "downloadWindow", false) + end return 1 end From aded108fef4864ee6ff2e2ad3c78e10c976c5984 Mon Sep 17 00:00:00 2001 From: Entrox-Licher Date: Thu, 21 Mar 2024 10:14:37 -0400 Subject: [PATCH 5/5] More Exporter Patching --- src/core/DownloadBox.ttslua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/DownloadBox.ttslua b/src/core/DownloadBox.ttslua index 27c8b1eb..21957367 100644 --- a/src/core/DownloadBox.ttslua +++ b/src/core/DownloadBox.ttslua @@ -37,5 +37,5 @@ function onLoad() end function buttonClick_download(_, playerColor) - Global.call('placeholder_download', { url = self.getGMNotes(), player = Player[playerColor], replace = self.guid }) + Global.call('placeholder_download', { url = self.getGMNotes(), player = playerColor and Player[playerColor] or nil, replace = self.guid }) end