There is currently no validation for counter keys to check whether it already exists. If this happens, it will cause breaking errors.
It would be useful to allow a character counter and an NPC counter to share a key where the function of the counter is the same, for example, an Exhaustion counter for both characters and NPCs.
Fix for 1. is to validate key against existing keys when the user clicks Save and Close and stop the form submission if the key is the same as an existing key. Fix for 2. is to allow duplicate keys across character and NPC counters and either add the actor type to the field name in the counters form or handle the arrays created.
Steps to reproduce
Edit the key for a character counter
Edit the key for an NPC counter to be the same key
Describe the bug
Fix for 1. is to validate key against existing keys when the user clicks Save and Close and stop the form submission if the key is the same as an existing key. Fix for 2. is to allow duplicate keys across character and NPC counters and either add the actor type to the field name in the counters form or handle the arrays created.
Steps to reproduce
Versions: