From 8ab7f13ce30716115d32f2297bd512b0dc1b9d46 Mon Sep 17 00:00:00 2001 From: Buhallin Date: Wed, 28 Dec 2022 03:09:40 -0800 Subject: [PATCH] Object commits for token spawn refactoring - Flips doom containers and the tokens in them. This is a no-op but ensures tokens come out correctly face up when accessed programatically - Adds token spawn tracker object --- config.json | 3 +- objects/Doomtokens.16724b.json | 2 +- .../Doomtokens.16724b/Custom_Tile.a3fb6c.json | 2 +- objects/Doomtokens.16fcd6.json | 2 +- .../Doomtokens.16fcd6/Custom_Tile.a3fb6c.json | 2 +- objects/Doomtokens.47ffc3.json | 2 +- .../Doomtokens.47ffc3/Custom_Tile.a3fb6c.json | 2 +- objects/Doomtokens.b015d8.json | 2 +- .../Doomtokens.b015d8/Custom_Tile.a3fb6c.json | 2 +- objects/LuaScriptState.luascriptstate | 2 +- objects/Playarea.721ba2.json | 2 +- objects/TokenSpawnTracker.e3ffc9.json | 45 +++++++++++++++++++ 12 files changed, 57 insertions(+), 11 deletions(-) create mode 100644 objects/TokenSpawnTracker.e3ffc9.json diff --git a/config.json b/config.json index 0fe8eb4d..dde0cd86 100644 --- a/config.json +++ b/config.json @@ -248,7 +248,8 @@ "TheScarletKeys.300fcc", "Search-A-Card.24051a", "PhaseTracker.d0c8fa", - "ArkhamSCED240Page1-12102022.1dd55c" + "ArkhamSCED240Page1-12102022.1dd55c", + "TokenSpawnTracker.e3ffc9" ], "PlayArea": 1, "PlayerCounts": [ diff --git a/objects/Doomtokens.16724b.json b/objects/Doomtokens.16724b.json index ff84df40..485ed82f 100644 --- a/objects/Doomtokens.16724b.json +++ b/objects/Doomtokens.16724b.json @@ -51,7 +51,7 @@ "posZ": 31.207, "rotX": 0, "rotY": 0, - "rotZ": 180, + "rotZ": 0, "scaleX": 0.8, "scaleY": 1, "scaleZ": 0.8 diff --git a/objects/Doomtokens.16724b/Custom_Tile.a3fb6c.json b/objects/Doomtokens.16724b/Custom_Tile.a3fb6c.json index d0d16098..766b90f0 100644 --- a/objects/Doomtokens.16724b/Custom_Tile.a3fb6c.json +++ b/objects/Doomtokens.16724b/Custom_Tile.a3fb6c.json @@ -47,7 +47,7 @@ "posZ": 31.125, "rotX": 0, "rotY": 0, - "rotZ": 0, + "rotZ": 180, "scaleX": 0.25, "scaleY": 1, "scaleZ": 0.25 diff --git a/objects/Doomtokens.16fcd6.json b/objects/Doomtokens.16fcd6.json index 528281c9..e2d3d901 100644 --- a/objects/Doomtokens.16fcd6.json +++ b/objects/Doomtokens.16fcd6.json @@ -51,7 +51,7 @@ "posZ": -31.182, "rotX": 0, "rotY": 180, - "rotZ": 180, + "rotZ": 0, "scaleX": 0.8, "scaleY": 1, "scaleZ": 0.8 diff --git a/objects/Doomtokens.16fcd6/Custom_Tile.a3fb6c.json b/objects/Doomtokens.16fcd6/Custom_Tile.a3fb6c.json index 69697213..c306d57e 100644 --- a/objects/Doomtokens.16fcd6/Custom_Tile.a3fb6c.json +++ b/objects/Doomtokens.16fcd6/Custom_Tile.a3fb6c.json @@ -47,7 +47,7 @@ "posZ": -31.294, "rotX": 0, "rotY": 0, - "rotZ": 0, + "rotZ": 180, "scaleX": 0.25, "scaleY": 1, "scaleZ": 0.25 diff --git a/objects/Doomtokens.47ffc3.json b/objects/Doomtokens.47ffc3.json index 7bdcb3e5..fd8cffec 100644 --- a/objects/Doomtokens.47ffc3.json +++ b/objects/Doomtokens.47ffc3.json @@ -51,7 +51,7 @@ "posZ": 1.12, "rotX": 0, "rotY": 270, - "rotZ": 180, + "rotZ": 0, "scaleX": 0.8, "scaleY": 1, "scaleZ": 0.8 diff --git a/objects/Doomtokens.47ffc3/Custom_Tile.a3fb6c.json b/objects/Doomtokens.47ffc3/Custom_Tile.a3fb6c.json index 064f7697..22f5c9ef 100644 --- a/objects/Doomtokens.47ffc3/Custom_Tile.a3fb6c.json +++ b/objects/Doomtokens.47ffc3/Custom_Tile.a3fb6c.json @@ -47,7 +47,7 @@ "posZ": 1.057, "rotX": 0, "rotY": 0, - "rotZ": 0, + "rotZ": 180, "scaleX": 0.25, "scaleY": 1, "scaleZ": 0.25 diff --git a/objects/Doomtokens.b015d8.json b/objects/Doomtokens.b015d8.json index ea7ce6a6..c4d4cd08 100644 --- a/objects/Doomtokens.b015d8.json +++ b/objects/Doomtokens.b015d8.json @@ -51,7 +51,7 @@ "posZ": 8.817, "rotX": 0, "rotY": 270, - "rotZ": 180, + "rotZ": 0, "scaleX": 1, "scaleY": 1, "scaleZ": 1 diff --git a/objects/Doomtokens.b015d8/Custom_Tile.a3fb6c.json b/objects/Doomtokens.b015d8/Custom_Tile.a3fb6c.json index a6abab4b..1ec3c713 100644 --- a/objects/Doomtokens.b015d8/Custom_Tile.a3fb6c.json +++ b/objects/Doomtokens.b015d8/Custom_Tile.a3fb6c.json @@ -47,7 +47,7 @@ "posZ": 8.88, "rotX": 0, "rotY": 0, - "rotZ": 0, + "rotZ": 180, "scaleX": 0.25, "scaleY": 1, "scaleZ": 0.25 diff --git a/objects/LuaScriptState.luascriptstate b/objects/LuaScriptState.luascriptstate index f685f165..277d64b4 100644 --- a/objects/LuaScriptState.luascriptstate +++ b/objects/LuaScriptState.luascriptstate @@ -1 +1 @@ -{"optionPanel":{"showChaosBagManager":false,"showCleanUpHelper":false,"showDrawButton":false,"showHandHelper":{},"showNavigationOverlay":false,"showTokenArranger":false,"useClueClickers":false,"useSnapTags":true}} +{"optionPanel":{"showChaosBagManager":false,"showCleanUpHelper":false,"showDrawButton":false,"showHandHelper":[],"showNavigationOverlay":false,"showTokenArranger":false,"useClueClickers":false,"useSnapTags":true}} diff --git a/objects/Playarea.721ba2.json b/objects/Playarea.721ba2.json index c248d019..17f0b18f 100644 --- a/objects/Playarea.721ba2.json +++ b/objects/Playarea.721ba2.json @@ -34,7 +34,7 @@ "LayoutGroupSortIndex": 0, "Locked": true, "LuaScript": "require(\"core/PlayArea\")", - "LuaScriptState": "{\"spawnedLocs\":[]}", + "LuaScriptState": "[]", "MeasureMovement": false, "Name": "Custom_Token", "Nickname": "Playarea", diff --git a/objects/TokenSpawnTracker.e3ffc9.json b/objects/TokenSpawnTracker.e3ffc9.json new file mode 100644 index 00000000..bd28f908 --- /dev/null +++ b/objects/TokenSpawnTracker.e3ffc9.json @@ -0,0 +1,45 @@ +{ + "AltLookAngle": { + "x": 0, + "y": 0, + "z": 0 + }, + "Autoraise": true, + "ColorDiffuse": { + "b": 0.33333, + "g": 0.33333, + "r": 0.35366 + }, + "Description": "", + "DragSelectable": true, + "GMNotes": "", + "GUID": "e3ffc9", + "Grid": true, + "GridProjection": false, + "Hands": false, + "HideWhenFaceDown": false, + "IgnoreFoW": false, + "LayoutGroupSortIndex": 0, + "Locked": true, + "LuaScript": "require(\"core/token/TokenSpawnTracker\")", + "LuaScriptState": "{\"cards\":[]}", + "MeasureMovement": false, + "Name": "Checker_white", + "Nickname": "Token Spawn Tracker", + "Snap": true, + "Sticky": true, + "Tooltip": true, + "Transform": { + "posX": 77.88, + "posY": 1.485, + "posZ": 1.875, + "rotX": 0, + "rotY": 0, + "rotZ": 180, + "scaleX": 1, + "scaleY": 1, + "scaleZ": 1 + }, + "Value": 0, + "XmlUI": "" +}