feat: replace spell category by spell groups
This also allows to assign a spell to multiple spell groups, which is the case for many spells in the SRD. Additionally, this makes many small improvements and fixes to the provided spell compendium.
This commit is contained in:
parent
ab31450dd8
commit
9d7c570553
20 changed files with 3615 additions and 466 deletions
|
@ -13,8 +13,7 @@ export function disableOverriddenFields(
|
|||
const titleAddition = `(${getGame().i18n.localize("DS4.TooltipNotEditableDueToEffects")})`;
|
||||
|
||||
for (const key of Object.keys(foundry.utils.flattenObject(overrides))) {
|
||||
const sel = selector(key);
|
||||
const elements = form?.querySelectorAll(sel);
|
||||
const elements = form?.querySelectorAll(selector(key));
|
||||
elements?.forEach((element) => {
|
||||
if (inputs.includes(element.tagName)) {
|
||||
element.setAttribute("disabled", "");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue