Compare commits

...

2 commits

Author SHA1 Message Date
WBHarry
d3ebd30e59 . 2026-03-07 22:26:54 +01:00
WBHarry
c2807e0676 Added in the new v14 subtract changeMode type for ActiveEffects 2026-03-07 18:02:01 +01:00
2 changed files with 6 additions and 1 deletions

View file

@ -86,7 +86,7 @@ export default class DHContextMenu extends foundry.applications.ux.ContextMenu {
const element = event.target.closest('.context-item');
if (!element) return;
const item = this.menuItems.find(i => i.element === element);
item?.callback(this.#jQuery ? $(this.target) : this.target, event);
item?.onClick(event, this.#jQuery ? $(this.target) : this.target);
this.close();
}

View file

@ -870,6 +870,11 @@ export const activeEffectModes = {
priority: 20,
label: 'EFFECT.CHANGES.TYPES.add'
},
subtract: {
id: 'subtract',
priority: 20,
label: 'EFFECT.CHANGES.TYPES.subtract'
},
downgrade: {
id: 'downgrade',
priority: 30,