metadata update

This commit is contained in:
Chr1Z93 2023-09-21 13:02:28 +02:00
parent 616d58218d
commit a0b8dc6d87
17 changed files with 132 additions and 29 deletions

View File

@ -6,5 +6,12 @@
"level": 0,
"traits": "Item. Occult. Tome.",
"intellectIcons": 1,
"uses": [
{
"count": 0,
"type": "Secret",
"token": "resource"
}
],
"cycle": "The Path to Carcosa"
}

View File

@ -6,5 +6,12 @@
"level": 0,
"traits": "Item. Tome. Occult.",
"wildIcons": 1,
"uses": [
{
"count": 0,
"type": "Leyline",
"token": "resource"
}
],
"cycle": "Edge of the Earth"
}

View File

@ -7,5 +7,12 @@
"traits": "Ritual.",
"willpowerIcons": 1,
"agilityIcons": 1,
"uses": [
{
"count": 0,
"type": "Click",
"token": "resource"
}
],
"cycle": "The Forgotten Age"
}

View File

@ -7,5 +7,12 @@
"traits": "Item. Tome. Blessed.",
"willpowerIcons": 1,
"intellectIcons": 1,
"uses": [
{
"count": 0,
"type": "Secret",
"token": "resource"
}
],
"cycle": "The Innsmouth Conspiracy"
}

View File

@ -7,5 +7,12 @@
"traits": "Item. Tome. Cursed.",
"intellectIcons": 1,
"agilityIcons": 1,
"uses": [
{
"count": 0,
"type": "Secret",
"token": "resource"
}
],
"cycle": "The Innsmouth Conspiracy"
}

View File

@ -8,5 +8,12 @@
"intellectIcons": 1,
"agilityIcons": 1,
"wildIcons": 1,
"uses": [
{
"count": 0,
"type": "Evidence",
"token": "resource"
}
],
"cycle": "The Scarlet Keys"
}

View File

@ -6,5 +6,12 @@
"level": 0,
"traits": "Item. Tool. Science.",
"agilityIcons": 1,
"uses": [
{
"count": 0,
"type": "Evidence",
"token": "resource"
}
],
"cycle": "The Scarlet Keys"
}

View File

@ -6,6 +6,13 @@
"level": 0,
"traits": "Talent. Science.",
"intellectIcons": 1,
"uses": [
{
"count": 0,
"type": "Evidence",
"token": "resource"
}
],
"customizations": [
{
"name": "Pessimistic Outlook",

View File

@ -5,5 +5,12 @@
"cost": 1,
"traits": "Item. Relic.",
"wildIcons": 2,
"uses": [
{
"count": 0,
"type": "Offering",
"token": "resource"
}
],
"cycle": "Promo"
}

View File

@ -6,5 +6,12 @@
"level": 0,
"traits": "Item. Tool.",
"willpowerIcons": 1,
"uses": [
{
"count": 0,
"type": "Evidence",
"token": "resource"
}
],
"cycle": "The Circle Undone"
}

View File

@ -8,5 +8,12 @@
"intellectIcons": 1,
"combatIcons": 1,
"wildIcons": 1,
"uses": [
{
"count": 0,
"type": "Evidence",
"token": "resource"
}
],
"cycle": "Edge of the Earth"
}

View File

@ -6,5 +6,13 @@
"level": 4,
"traits": "Ritual. Blessed. Cursed.",
"wildIcons": 1,
"uses": [
{
"count": 0,
"type": "Corruption",
"token": "resource"
}
],
"cycle": "The Innsmouth Conspiracy"
}

View File

@ -6,5 +6,12 @@
"level": 0,
"traits": "Item. Tome. Science.",
"intellectIcons": 1,
"uses": [
{
"count": 0,
"type": "Evidence",
"token": "resource"
}
],
"cycle": "The Scarlet Keys"
}

View File

@ -5,5 +5,12 @@
"level": 3,
"traits": "Ritual.",
"permanent": true,
"uses": [
{
"count": 0,
"type": "Offering",
"token": "resource"
}
],
"cycle": "The Scarlet Keys"
}

View File

@ -12,5 +12,12 @@
}
],
"combatIcons": 1,
"uses": [
{
"count": 0,
"type": "Offering",
"token": "resource"
}
],
"cycle": "The Dream-Eaters"
}

View File

@ -1 +1 @@
{"acknowledgedUpgradeVersions":[],"optionPanel":{"cardLanguage":"en","playAreaSnapTags":true,"showAttachmentHelper":false,"showCleanUpHelper":false,"showCustomPlaymatImages":false,"showCYOA":false,"showDisplacementTool":false,"showDrawButton":false,"showHandHelper":[],"showSearchAssistant":[],"showTitleSplash":true,"useClueClickers":false,"useSnapTags":true}}
{"acknowledgedUpgradeVersions":[],"optionPanel":{"cardLanguage":"en","playAreaSnapTags":true,"showAttachmentHelper":false,"showCleanUpHelper":false,"showCustomPlaymatImages":false,"showCYOA":false,"showDisplacementTool":false,"showDrawButton":false,"showHandHelper":[],"showSearchAssistant":[],"showTitleSplash":true,"useClueClickers":false,"useResourceCounters":"disabled","useSnapTags":true}}

View File

@ -1,3 +1,13 @@
local blessCurseManagerApi = require("chaosbag/BlessCurseManagerApi")
local mythosAreaApi = require("core/MythosAreaApi")
local navigationOverlayApi = require("core/NavigationOverlayApi")
local playAreaApi = require("core/PlayAreaApi")
local playmatApi = require("playermat/PlaymatApi")
local soundCubeApi = require("core/SoundCubeApi")
local tokenArrangerApi = require("accessories/TokenArrangerApi")
local tokenChecker = require("core/token/TokenChecker")
local tokenManager = require("core/token/TokenManager")
---------------------------------------------------------
-- general setup
---------------------------------------------------------
@ -5,9 +15,6 @@
ENCOUNTER_DECK_POS = {-3.93, 1, 5.76}
ENCOUNTER_DECK_DISCARD_POSITION = {-3.85, 1, 10.38}
-- optionPanel data
optionPanel = {}
-- GUID of data helper
DATA_HELPER_GUID = "708279"
@ -31,15 +38,6 @@ local IS_RESHUFFLING = false
local bagSearchers = {}
local MAT_COLORS = {"White", "Orange", "Green", "Red"}
local hideTitleSplashWaitFunctionId = nil
local playmatApi = require("playermat/PlaymatApi")
local tokenManager = require("core/token/TokenManager")
local playAreaAPI = require("core/PlayAreaApi")
local soundCubeApi = require("core/SoundCubeApi")
local mythosAreaApi = require("core/MythosAreaApi")
local tokenArrangerApi = require("accessories/TokenArrangerApi")
local blessCurseManagerApi = require("chaosbag/BlessCurseManagerApi")
local navigationOverlayApi = require("core/NavigationOverlayApi")
local tokenChecker = require("core/token/TokenChecker")
-- online functionality related variables
local MOD_VERSION = "3.2.0"
@ -47,6 +45,8 @@ local SOURCE_REPO = 'https://raw.githubusercontent.com/chr1z93/loadable-objects/
local library, requestObj, modMeta, notificationVisible
local acknowledgedUpgradeVersions = {}
-- optionPanel data
optionPanel = {}
local LANGUAGES = {
{ code = "zh_CN", name = "简体中文" },
{ code = "zh_TW", name = "繁體中文" },
@ -56,6 +56,11 @@ local LANGUAGES = {
{ code = "fr", name = "Français" },
{ code = "it", name = "Italiano" }
}
local RESOURCE_OPTIONS = {
"enabled",
"custom",
"disabled"
}
---------------------------------------------------------
-- data for tokens
@ -170,7 +175,7 @@ end
-- This requires the try method as cards won't exist any more after they enter a deck, so the lines
-- can't be cleared.
function tryObjectEnterContainer(container, object)
playAreaAPI.tryObjectEnterContainer(container, object)
playAreaApi.tryObjectEnterContainer(container, object)
return true
end
@ -902,22 +907,12 @@ end
-- called by the resource counter selection dropdown
function resourceCounterSelected(_, selectedIndex, id)
local optionList = {
"enabled",
"custom",
"disabled"
}
optionPanel[id] = optionList[tonumber(selectedIndex) + 1]
print(optionPanel[id])
optionPanel[id] = RESOURCE_OPTIONS[tonumber(selectedIndex) + 1]
end
-- returns the ID for the provided option name
function returnResourceCounterId(name)
local optionList = {
"enabled",
"custom",
"disabled"
}
for index, optionName in ipairs(optionList) do
for index, optionName in ipairs(RESOURCE_OPTIONS) do
if optionName == name then
return index
end
@ -967,7 +962,7 @@ function applyOptionPanelChange(id, state)
-- option: Play area snap tags
elseif id == "playAreaSnapTags" then
playAreaAPI.setLimitSnapsByType(state)
playAreaApi.setLimitSnapsByType(state)
optionPanel[id] = state
-- option: Show Title on placing scenarios
@ -1109,8 +1104,9 @@ function onClick_defaultSettings()
applyOptionPanelChange(id, state)
end
-- clean reset of variable
-- clean reset of variables
optionPanel = {
cardLanguage = "en",
playAreaSnapTags = true,
showAttachmentHelper = false,
showCleanUpHelper = false,
@ -1122,6 +1118,7 @@ function onClick_defaultSettings()
showSearchAssistant = {},
showTitleSplash = true,
useClueClickers = false,
useResourceCounters = "disabled",
useSnapTags = true
}