This commit is contained in:
WBHarry 2025-06-28 01:55:13 +02:00
parent 5a97755506
commit 210a093e49
2 changed files with 0 additions and 19 deletions

View file

@ -12,8 +12,6 @@ const { TextEditor } = foundry.applications.ux;
export default class CharacterSheet extends DaggerheartSheet(ActorSheetV2) {
constructor(options = {}) {
super(options);
this.contextMenu = null;
}
static DEFAULT_OPTIONS = {
@ -276,11 +274,6 @@ export default class CharacterSheet extends DaggerheartSheet(ActorSheetV2) {
},
callback: this.constructor.toggleVault.bind(this)
},
consumeItem: {
name: 'DAGGERHEART.Sheets.PC.ContextMenu.Consume',
icon: '<i class="fa-solid fa-bottle-droplet"></i>',
callback: this.constructor.useItem.bind(this)
},
sendToChat: {
name: 'DAGGERHEART.Sheets.PC.ContextMenu.SendToChat',
icon: '<i class="fa-regular fa-message"></i>',
@ -298,8 +291,6 @@ export default class CharacterSheet extends DaggerheartSheet(ActorSheetV2) {
case 'domainCard':
menuItems.push(...[allOptions.sendToLoadout, allOptions.sendToVault]);
break;
case 'consumable':
menuItems.push(...[allOptions.consumeItem]);
}
menuItems.push(...[allOptions.sendToChat, allOptions.edit, allOptions.delete]);

View file

@ -11,8 +11,6 @@ export default class RegisterHandlebarsHelpers {
includes: this.includes,
debug: this.debug,
signedNumber: this.signedNumber,
cleanClass: this.cleanClass,
tertiary: this.tertiary,
length: this.length,
switch: this.switch,
case: this.case,
@ -139,12 +137,4 @@ export default class RegisterHandlebarsHelpers {
console.log(a);
return a;
}
static cleanClass(className) {
return className.replaceAll('.', '-');
}
static tertiary(condition, a, b) {
return condition ? a : b;
}
}