changed action token detection
This commit is contained in:
parent
083f6488fd
commit
3cc70983e4
@ -290,7 +290,7 @@ function tidyPlayerMatCoroutine()
|
|||||||
for _, obj in ipairs(objList) do
|
for _, obj in ipairs(objList) do
|
||||||
-- ignore these elements
|
-- ignore these elements
|
||||||
if obj.hasTag(IGNORE_TAG) == false
|
if obj.hasTag(IGNORE_TAG) == false
|
||||||
and obj.hasTag("ActionToken") == false
|
and obj.getDescription() ~= "Action Token"
|
||||||
and obj.hasTag("chaosBag") == false
|
and obj.hasTag("chaosBag") == false
|
||||||
and obj.locked == false
|
and obj.locked == false
|
||||||
and obj.interactable == true then
|
and obj.interactable == true then
|
||||||
@ -298,7 +298,7 @@ function tidyPlayerMatCoroutine()
|
|||||||
trash.putObject(obj)
|
trash.putObject(obj)
|
||||||
|
|
||||||
-- flip action tokens back to ready
|
-- flip action tokens back to ready
|
||||||
elseif obj.hasTag("ActionToken") == false and obj.is_face_down then
|
elseif obj.getDescription() == "Action Token" and obj.is_face_down then
|
||||||
obj.flip()
|
obj.flip()
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
@ -344,4 +344,3 @@ function searchMythosArea()
|
|||||||
end
|
end
|
||||||
return objList
|
return objList
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user