Merge pull request #268 from argonui/mythos-exit
added removal of Mythos data onCollisionExit
This commit is contained in:
commit
ecfd765806
@ -77,6 +77,19 @@ function onCollisionEnter(collisionInfo)
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
-- TTS event handler. Handles scenario name event triggering
|
||||||
|
function onCollisionExit(collisionInfo)
|
||||||
|
if not collisionEnabled then return end
|
||||||
|
local object = collisionInfo.collision_object
|
||||||
|
|
||||||
|
-- reset token metadata if scenario reference card is removed
|
||||||
|
if object.getName() == "Scenario" then
|
||||||
|
tokenData = {}
|
||||||
|
useFrontData = nil
|
||||||
|
fireTokenDataChangedEvent()
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
-- Listens for cards entering the encounter deck or encounter discard, and resets the spawn state
|
-- Listens for cards entering the encounter deck or encounter discard, and resets the spawn state
|
||||||
-- for the cards when they do.
|
-- for the cards when they do.
|
||||||
function onObjectEnterContainer(container, object)
|
function onObjectEnterContainer(container, object)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user