ShoyuVanilla / FoundryVTT-CGMP

4 stars 10 forks source link

Fixes for Foundry 0.8.x #25

Open cs96and opened 3 years ago

cs96and commented 3 years ago

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 the messages in the chat log were hidden, the tokens were still displaying the speech bubble on the grid.