fixed approach and updated horror token names

This commit is contained in:
Chr1Z93 2023-04-11 22:37:55 +02:00
parent c2e4fc8ca8
commit 9a8dd4aeb0
4 changed files with 28 additions and 30 deletions

View File

@ -38,7 +38,7 @@
"MeasureMovement": false,
"Memo": "horror",
"Name": "Custom_Token",
"Nickname": "Horror",
"Nickname": "",
"Snap": false,
"States": {
"2": {
@ -81,7 +81,7 @@
"MeasureMovement": false,
"Memo": "horror",
"Name": "Custom_Token",
"Nickname": "Horror",
"Nickname": "",
"Snap": false,
"Sticky": true,
"Tooltip": true,
@ -139,7 +139,7 @@
"MeasureMovement": false,
"Memo": "horror",
"Name": "Custom_Token",
"Nickname": "Horror",
"Nickname": "",
"Snap": false,
"Sticky": true,
"Tooltip": true,
@ -197,7 +197,7 @@
"MeasureMovement": false,
"Memo": "horror",
"Name": "Custom_Token",
"Nickname": "Horror",
"Nickname": "",
"Snap": false,
"Sticky": true,
"Tooltip": true,
@ -255,7 +255,7 @@
"MeasureMovement": false,
"Memo": "horror",
"Name": "Custom_Token",
"Nickname": "Horror",
"Nickname": "",
"Snap": false,
"Sticky": true,
"Tooltip": true,
@ -313,7 +313,7 @@
"MeasureMovement": false,
"Memo": "horror",
"Name": "Custom_Token",
"Nickname": "Horror",
"Nickname": "",
"Snap": false,
"Sticky": true,
"Tooltip": true,
@ -371,7 +371,7 @@
"MeasureMovement": false,
"Memo": "horror",
"Name": "Custom_Token",
"Nickname": "Horror",
"Nickname": "",
"Snap": false,
"Sticky": true,
"Tooltip": true,
@ -429,7 +429,7 @@
"MeasureMovement": false,
"Memo": "horror",
"Name": "Custom_Token",
"Nickname": "Horror",
"Nickname": "",
"Snap": false,
"Sticky": true,
"Tooltip": true,
@ -487,7 +487,7 @@
"MeasureMovement": false,
"Memo": "horror",
"Name": "Custom_Token",
"Nickname": "Horror",
"Nickname": "",
"Snap": false,
"Sticky": true,
"Tooltip": true,

View File

@ -38,7 +38,7 @@
"MeasureMovement": false,
"Memo": "horror",
"Name": "Custom_Token",
"Nickname": "Horror",
"Nickname": "",
"Snap": false,
"States": {
"2": {
@ -81,7 +81,7 @@
"MeasureMovement": false,
"Memo": "horror",
"Name": "Custom_Token",
"Nickname": "Horror",
"Nickname": "",
"Snap": false,
"Sticky": true,
"Tooltip": true,
@ -139,7 +139,7 @@
"MeasureMovement": false,
"Memo": "horror",
"Name": "Custom_Token",
"Nickname": "Horror",
"Nickname": "",
"Snap": false,
"Sticky": true,
"Tooltip": true,
@ -197,7 +197,7 @@
"MeasureMovement": false,
"Memo": "horror",
"Name": "Custom_Token",
"Nickname": "Horror",
"Nickname": "",
"Snap": false,
"Sticky": true,
"Tooltip": true,
@ -255,7 +255,7 @@
"MeasureMovement": false,
"Memo": "horror",
"Name": "Custom_Token",
"Nickname": "Horror",
"Nickname": "",
"Snap": false,
"Sticky": true,
"Tooltip": true,
@ -313,7 +313,7 @@
"MeasureMovement": false,
"Memo": "horror",
"Name": "Custom_Token",
"Nickname": "Horror",
"Nickname": "",
"Snap": false,
"Sticky": true,
"Tooltip": true,
@ -371,7 +371,7 @@
"MeasureMovement": false,
"Memo": "horror",
"Name": "Custom_Token",
"Nickname": "Horror",
"Nickname": "",
"Snap": false,
"Sticky": true,
"Tooltip": true,
@ -429,7 +429,7 @@
"MeasureMovement": false,
"Memo": "horror",
"Name": "Custom_Token",
"Nickname": "Horror",
"Nickname": "",
"Snap": false,
"Sticky": true,
"Tooltip": true,
@ -487,7 +487,7 @@
"MeasureMovement": false,
"Memo": "horror",
"Name": "Custom_Token",
"Nickname": "Horror",
"Nickname": "",
"Snap": false,
"Sticky": true,
"Tooltip": true,

View File

@ -38,7 +38,7 @@
"MeasureMovement": false,
"Memo": "horror",
"Name": "Custom_Token",
"Nickname": "Horror",
"Nickname": "",
"Snap": false,
"States": {
"2": {
@ -81,7 +81,7 @@
"MeasureMovement": false,
"Memo": "horror",
"Name": "Custom_Token",
"Nickname": "Horror",
"Nickname": "",
"Snap": false,
"Sticky": true,
"Tooltip": true,
@ -139,7 +139,7 @@
"MeasureMovement": false,
"Memo": "horror",
"Name": "Custom_Token",
"Nickname": "Horror",
"Nickname": "",
"Snap": false,
"Sticky": true,
"Tooltip": true,
@ -197,7 +197,7 @@
"MeasureMovement": false,
"Memo": "horror",
"Name": "Custom_Token",
"Nickname": "Horror",
"Nickname": "",
"Snap": false,
"Sticky": true,
"Tooltip": true,
@ -255,7 +255,7 @@
"MeasureMovement": false,
"Memo": "horror",
"Name": "Custom_Token",
"Nickname": "Horror",
"Nickname": "",
"Snap": false,
"Sticky": true,
"Tooltip": true,
@ -313,7 +313,7 @@
"MeasureMovement": false,
"Memo": "horror",
"Name": "Custom_Token",
"Nickname": "Horror",
"Nickname": "",
"Snap": false,
"Sticky": true,
"Tooltip": true,
@ -371,7 +371,7 @@
"MeasureMovement": false,
"Memo": "horror",
"Name": "Custom_Token",
"Nickname": "Horror",
"Nickname": "",
"Snap": false,
"Sticky": true,
"Tooltip": true,
@ -429,7 +429,7 @@
"MeasureMovement": false,
"Memo": "horror",
"Name": "Custom_Token",
"Nickname": "Horror",
"Nickname": "",
"Snap": false,
"Sticky": true,
"Tooltip": true,
@ -487,7 +487,7 @@
"MeasureMovement": false,
"Memo": "horror",
"Name": "Custom_Token",
"Nickname": "Horror",
"Nickname": "",
"Snap": false,
"Sticky": true,
"Tooltip": true,

View File

@ -689,14 +689,12 @@ end
function removeTokensFromObject(object)
for _, v in ipairs(searchArea(object.getPosition(), { 3, 1, 4 })) do
local obj = v.hit_object
local name = obj.getName()
if obj.getGUID() ~= "4ee1f2" and -- table
obj ~= self and
obj.type ~= "Deck" and
obj.type ~= "Card" and
name ~= "Horror" and
name ~= "Resources" and
obj.getLock() == false and
obj.getDescription() ~= "Action Token" and
not tokenChecker.isChaosToken(obj) then
TRASHCAN.putObject(obj)