added new parameter

This commit is contained in:
Chr1Z93 2023-06-13 19:08:50 +02:00
parent 95ea1957dd
commit 1efd0c110a
8 changed files with 15 additions and 1 deletions

View File

@ -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, true)
end, KEEP_OPEN)
else
self.addContextMenuItem("Seal " .. SHOW_MULTI_SEAL .. " " .. map.name, function(playerColor)
readBag()

View File

@ -2,4 +2,6 @@ VALID_TOKENS = {
["Curse"] = true
}
KEEP_OPEN = true
require("playercards/CardsThatSealTokens")

View File

@ -3,5 +3,6 @@ VALID_TOKENS = {
}
SHOW_SINGLE_RELEASE = true
KEEP_OPEN = true
require("playercards/CardsThatSealTokens")

View File

@ -3,5 +3,6 @@ VALID_TOKENS = {
}
SHOW_SINGLE_RELEASE = true
KEEP_OPEN = true
require("playercards/CardsThatSealTokens")

View File

@ -3,5 +3,6 @@ VALID_TOKENS = {
}
SHOW_SINGLE_RELEASE = true
KEEP_OPEN = true
require("playercards/CardsThatSealTokens")

View File

@ -2,4 +2,6 @@ VALID_TOKENS = {
["Bless"] = true
}
KEEP_OPEN = true
require("playercards/CardsThatSealTokens")

View File

@ -3,5 +3,6 @@ VALID_TOKENS = {
}
SHOW_SINGLE_RELEASE = true
KEEP_OPEN = true
require("playercards/CardsThatSealTokens")

View File

@ -4,5 +4,6 @@ INVALID_TOKENS = {
}
UPDATE_ON_HOVER = true
KEEP_OPEN = true
require("playercards/CardsThatSealTokens")