Simple Map Shade - Apply map shadow to characters (Ver.1.4.0)

Darkens the character when there is a map shadow under their feet.
Download
SimpleMapShade.js Ver.1.4.0
MIT License

How to Use
Basically, just plug it in and it will work.

Adding <shadeFlagOnly> to a map's notes will switch it into Single-Picture Map mode, allowing you to set only the shade flags, without displaying shadows.
It is also possible to make partial changes using a region and a terrain tag.

Specification
Conditions for characters to become dark
- When priority is "Same as characters" and there is a shadow at their feet.
- When priority is "Below characters" and there is a shadow around them.

Conditions for characters not to become dark
- When the priority is "Above characters".
- When the character is a tile and priority is "Below characters".
- The character is an object character (the file name starts with "$").
2024/07/28:Ver.1.1.3 Added <shadeFlagOnly> tag for single picture maps.
2024/07/30:Ver.1.2.0 It is now possible to specify areas where shadows will not be displayed using a region or a terrain tag.
2024/11/03:Ver.1.3.0 Processing has been reduced.
2025/01/31:Ver.1.4.0 Fixed the behavior.

Original thread: https://forums.rpgmakerweb.com/threads/simple-map-shade-apply-map-shadow-to-characters-ver-1-4-0.170381/