From 297cacf0da2cc3c9890f3f71b8ccdf82c974e367 Mon Sep 17 00:00:00 2001 From: dscarpac Date: Mon, 16 Sep 2024 11:13:14 -0500 Subject: [PATCH] playermat token updates --- objects/Damage.1f5a0a.json | 2 +- objects/Damage.591a45.json | 2 +- objects/Damage.e64eec.json | 2 +- objects/Damage.eb08d6.json | 2 +- objects/Horror.0257d9.json | 2 +- objects/Horror.468e88.json | 2 +- objects/Horror.7b5729.json | 2 +- objects/Horror.beb964.json | 2 +- src/core/GenericCounter.ttslua | 11 ++++++++--- 9 files changed, 16 insertions(+), 11 deletions(-) diff --git a/objects/Damage.1f5a0a.json b/objects/Damage.1f5a0a.json index 2609e481..2ec2e7fc 100644 --- a/objects/Damage.1f5a0a.json +++ b/objects/Damage.1f5a0a.json @@ -48,7 +48,7 @@ "posZ": 29.089, "rotX": 0, "rotY": 10, - "rotZ": 1, + "rotZ": 180, "scaleX": 0.3, "scaleY": 1, "scaleZ": 0.3 diff --git a/objects/Damage.591a45.json b/objects/Damage.591a45.json index 29f84032..2efd3ffe 100644 --- a/objects/Damage.591a45.json +++ b/objects/Damage.591a45.json @@ -48,7 +48,7 @@ "posZ": -29.078, "rotX": 0, "rotY": 190, - "rotZ": 0, + "rotZ": 180, "scaleX": 0.3, "scaleY": 1, "scaleZ": 0.3 diff --git a/objects/Damage.e64eec.json b/objects/Damage.e64eec.json index 3f8ad52c..eaa4b84b 100644 --- a/objects/Damage.e64eec.json +++ b/objects/Damage.e64eec.json @@ -48,7 +48,7 @@ "posZ": -22.894, "rotX": 0, "rotY": 280, - "rotZ": 0, + "rotZ": 180, "scaleX": 0.3, "scaleY": 1, "scaleZ": 0.3 diff --git a/objects/Damage.eb08d6.json b/objects/Damage.eb08d6.json index 073d717d..ad333bb3 100644 --- a/objects/Damage.eb08d6.json +++ b/objects/Damage.eb08d6.json @@ -48,7 +48,7 @@ "posZ": 9.273, "rotX": 0, "rotY": 280, - "rotZ": 0, + "rotZ": 180, "scaleX": 0.3, "scaleY": 1, "scaleZ": 0.3 diff --git a/objects/Horror.0257d9.json b/objects/Horror.0257d9.json index 8d8e9ce1..972e159d 100644 --- a/objects/Horror.0257d9.json +++ b/objects/Horror.0257d9.json @@ -48,7 +48,7 @@ "posZ": -24.928, "rotX": 0, "rotY": 280, - "rotZ": 0, + "rotZ": 180, "scaleX": 0.3, "scaleY": 1, "scaleZ": 0.3 diff --git a/objects/Horror.468e88.json b/objects/Horror.468e88.json index 40084821..6ab6621a 100644 --- a/objects/Horror.468e88.json +++ b/objects/Horror.468e88.json @@ -48,7 +48,7 @@ "posZ": 7.229, "rotX": 0, "rotY": 280, - "rotZ": 0, + "rotZ": 180, "scaleX": 0.3, "scaleY": 1, "scaleZ": 0.3 diff --git a/objects/Horror.7b5729.json b/objects/Horror.7b5729.json index 0eb1f7d7..0555b8e9 100644 --- a/objects/Horror.7b5729.json +++ b/objects/Horror.7b5729.json @@ -48,7 +48,7 @@ "posZ": 29.487, "rotX": 0, "rotY": 10, - "rotZ": 1, + "rotZ": 180, "scaleX": 0.3, "scaleY": 1, "scaleZ": 0.3 diff --git a/objects/Horror.beb964.json b/objects/Horror.beb964.json index 296e7197..d01e3979 100644 --- a/objects/Horror.beb964.json +++ b/objects/Horror.beb964.json @@ -48,7 +48,7 @@ "posZ": -29.42, "rotX": 0, "rotY": 190, - "rotZ": 0, + "rotZ": 180, "scaleX": 0.3, "scaleY": 1, "scaleZ": 0.3 diff --git a/src/core/GenericCounter.ttslua b/src/core/GenericCounter.ttslua index 67841e58..78e6d0ca 100644 --- a/src/core/GenericCounter.ttslua +++ b/src/core/GenericCounter.ttslua @@ -14,10 +14,14 @@ function onLoad(savedData) local position = { 0, 0.06, 0 } -- set position of label depending on object - if tokenType == "damage" or tokenType == "resource" or tokenType == "resourceCounter" then - position = { 0, 0.06, 0.1 } + if tokenType == "damage" then + position = { 0.1, -0.07, 0.1 } + rotation = { 180, 180, 0} elseif tokenType == "horror" then - position = { -0.025, 0.06, -0.025 } + position = { -0.025, -0.07, 0.025 } + rotation = { 180, 180, 0} + elseif tokenType == "resource" or tokenType == "resourceCounter" then + position = { 0, 0.06, 0.1 } elseif tokenType == "ElderSignCounter" or tokenType == "AutofailCounter" then position = { 0, 0.1, 0 } end @@ -27,6 +31,7 @@ function onLoad(savedData) click_function = "addOrSubtract", function_owner = self, position = position, + rotation = rotation or { 0, 0, 0 }, height = 600, width = 1000, scale = { 1.5, 1.5, 1.5 },