turned "DoNotReady" into a tag

This commit is contained in:
Chr1Z93 2024-05-21 14:12:34 +02:00
parent dedd50aedd
commit 46f9eac631
2 changed files with 3 additions and 2 deletions

View File

@ -33,7 +33,7 @@
"IgnoreFoW": false,
"LayoutGroupSortIndex": 0,
"Locked": false,
"LuaScript": "do_not_ready = true",
"LuaScript": "",
"LuaScriptState": "",
"MeasureMovement": false,
"Name": "Card",
@ -43,6 +43,7 @@
"Sticky": true,
"Tags": [
"Asset",
"DoNotReady",
"PlayerCard"
],
"Tooltip": true,

View File

@ -295,7 +295,7 @@ function doUpkeep(_, clickedByColor, isRightClick)
obj.flip()
elseif obj.type == "Card" and not inArea(self.positionToLocal(obj.getPosition()), INVESTIGATOR_AREA) then
local cardMetadata = JSON.decode(obj.getGMNotes()) or {}
if not (obj.getVar("do_not_ready") or false) then
if not (obj.getVar("do_not_ready") or obj.hasTag("DoNotReady")) then
local cardRotation = round(obj.getRotation().y, 0) - rot.y
local yRotDiff = 0