Assets to actors button
I added a button to create an actor from an asset on a character sheet. It looks like this:
This is for assets that are meant to be placed or move around on a map.
When you click it, it creates an asset type actor can copies in the name (format: "[asset name] ([character name])"), img, quality, and notes from the asset item. The permissions are copied from the character sheet. Once created it saves the actor id to a flag on the asset and the button switches to just open the actor asset sheet.
It only shows if the current logged in user has create actor permissions.
If the asset actor was deleted, clicking the view button shows an error and clears the flag, turning it back in to a create button (or shows nothing if the user doesn't have permission).
The new asset just shows up in the root, so I guess it's on GMs to keep things tidy, which isn't great, but I dunno how better to handle it.
I also poked at the actor sheet a little bit so it looks this:
If this is something you want for the system and there's changes you would want, please do not hesitate to ask.