Foundry v12 dropped support for setting the img and scale fields on a token, instead these are now in the texture sub-field. Looks like this was introduced in v11, but v12 deprecated the old method.
[x] Update to the new method of setting token image and scale
[x] Verify this works in v11
[x] Verify this works in v12
Validation
Gonna just drag in a Bugbear Scout (token is a string) and a Giant Scorpion (token is an object with img and scale) onto the map.
Foundry v12 dropped support for setting the
img
andscale
fields on a token, instead these are now in thetexture
sub-field. Looks like this was introduced in v11, but v12 deprecated the old method.Validation
Gonna just drag in a Bugbear Scout (
token
is a string) and a Giant Scorpion (token
is an object withimg
andscale
) onto the map.v11:
https://github.com/user-attachments/assets/3249fe41-dadb-47b7-a0a5-0f3f82344736
v12:
https://github.com/user-attachments/assets/71001735-fa9c-4651-8ee7-1bdb319eb400