diff --git a/src/playercards/CardsThatSealTokens.ttslua b/src/playercards/CardsThatSealTokens.ttslua index 0037530e..cbcc0a2b 100644 --- a/src/playercards/CardsThatSealTokens.ttslua +++ b/src/playercards/CardsThatSealTokens.ttslua @@ -7,6 +7,11 @@ UPDATE_ON_HOVER --@type: boolean - the "Read Bag" function reads the content of the chaos bag to update the context menu - example usage: "Unrelenting" (to only display valid tokens) +KEEP_OPEN --@type: boolean +- meant for cards that seal single tokens multiple times (one by one) +- makes the context menu stay open after selecting an option +- example usage: "Unrelenting" + SHOW_SINGLE_RELEASE --@type: boolean - enables an entry in the context menu - this entry allows releasing a single token @@ -94,7 +99,7 @@ function generateContextMenu() if not SHOW_MULTI_SEAL then self.addContextMenuItem("Seal " .. map.name, function(playerColor) sealToken(map.name, playerColor) - end) + end, KEEP_OPEN) else self.addContextMenuItem("Seal " .. SHOW_MULTI_SEAL .. " " .. map.name, function(playerColor) readBag() diff --git a/src/playercards/cards/DarkRitual.ttslua b/src/playercards/cards/DarkRitual.ttslua index 540513c1..c794a4c9 100644 --- a/src/playercards/cards/DarkRitual.ttslua +++ b/src/playercards/cards/DarkRitual.ttslua @@ -2,4 +2,6 @@ VALID_TOKENS = { ["Curse"] = true } +KEEP_OPEN = true + require("playercards/CardsThatSealTokens") diff --git a/src/playercards/cards/FavoroftheMoon1.ttslua b/src/playercards/cards/FavoroftheMoon1.ttslua index a1a7782a..004e4628 100644 --- a/src/playercards/cards/FavoroftheMoon1.ttslua +++ b/src/playercards/cards/FavoroftheMoon1.ttslua @@ -3,5 +3,6 @@ VALID_TOKENS = { } SHOW_SINGLE_RELEASE = true +KEEP_OPEN = true require("playercards/CardsThatSealTokens") diff --git a/src/playercards/cards/FavoroftheSun1.ttslua b/src/playercards/cards/FavoroftheSun1.ttslua index fe5a27fc..4bddf72c 100644 --- a/src/playercards/cards/FavoroftheSun1.ttslua +++ b/src/playercards/cards/FavoroftheSun1.ttslua @@ -3,5 +3,6 @@ VALID_TOKENS = { } SHOW_SINGLE_RELEASE = true +KEEP_OPEN = true require("playercards/CardsThatSealTokens") diff --git a/src/playercards/cards/FluteoftheOuterGods4.ttslua b/src/playercards/cards/FluteoftheOuterGods4.ttslua index a1a7782a..004e4628 100644 --- a/src/playercards/cards/FluteoftheOuterGods4.ttslua +++ b/src/playercards/cards/FluteoftheOuterGods4.ttslua @@ -3,5 +3,6 @@ VALID_TOKENS = { } SHOW_SINGLE_RELEASE = true +KEEP_OPEN = true require("playercards/CardsThatSealTokens") diff --git a/src/playercards/cards/RadiantSmite1.ttslua b/src/playercards/cards/RadiantSmite1.ttslua index 79219afc..aef3cd08 100644 --- a/src/playercards/cards/RadiantSmite1.ttslua +++ b/src/playercards/cards/RadiantSmite1.ttslua @@ -2,4 +2,6 @@ VALID_TOKENS = { ["Bless"] = true } +KEEP_OPEN = true + require("playercards/CardsThatSealTokens") diff --git a/src/playercards/cards/ShieldofFaith2.ttslua b/src/playercards/cards/ShieldofFaith2.ttslua index fe5a27fc..4bddf72c 100644 --- a/src/playercards/cards/ShieldofFaith2.ttslua +++ b/src/playercards/cards/ShieldofFaith2.ttslua @@ -3,5 +3,6 @@ VALID_TOKENS = { } SHOW_SINGLE_RELEASE = true +KEEP_OPEN = true require("playercards/CardsThatSealTokens") diff --git a/src/playercards/cards/Unrelenting1.ttslua b/src/playercards/cards/Unrelenting1.ttslua index 510c9fc4..013dd214 100644 --- a/src/playercards/cards/Unrelenting1.ttslua +++ b/src/playercards/cards/Unrelenting1.ttslua @@ -4,5 +4,6 @@ INVALID_TOKENS = { } UPDATE_ON_HOVER = true +KEEP_OPEN = true require("playercards/CardsThatSealTokens")