This updates the _resolveHiddenToken() and _resolvePCToken() functions to work correctly with Foundry 0.8.x. The main change is that those functions now receive a ChatMessage object instead of a ChatMessageData. You must use the .data member to get to the ChatMessageData object, and use .update() to make any changes to the object.
I also changed the behaviour of non-roll chat messages for hidden tokens. These now appear as OOC messages by the DM, rather than hidden messages by the selected (hidden) actor. Even though they were messages in the chat log were hidden, the tokens were still displaying the speech bubble on the grid.
This updates the
_resolveHiddenToken()
and_resolvePCToken()
functions to work correctly with Foundry 0.8.x. The main change is that those functions now receive aChatMessage
object instead of aChatMessageData
. You must use the.data
member to get to theChatMessageData
object, and use.update()
to make any changes to the object.I also changed the behaviour of non-roll chat messages for hidden tokens. These now appear as OOC messages by the DM, rather than hidden messages by the selected (hidden) actor. Even though they were messages in the chat log were hidden, the tokens were still displaying the speech bubble on the grid.