mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-01-16 05:31:07 +01:00
Cleanup
This commit is contained in:
parent
5a97755506
commit
210a093e49
2 changed files with 0 additions and 19 deletions
|
|
@ -12,8 +12,6 @@ const { TextEditor } = foundry.applications.ux;
|
||||||
export default class CharacterSheet extends DaggerheartSheet(ActorSheetV2) {
|
export default class CharacterSheet extends DaggerheartSheet(ActorSheetV2) {
|
||||||
constructor(options = {}) {
|
constructor(options = {}) {
|
||||||
super(options);
|
super(options);
|
||||||
|
|
||||||
this.contextMenu = null;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static DEFAULT_OPTIONS = {
|
static DEFAULT_OPTIONS = {
|
||||||
|
|
@ -276,11 +274,6 @@ export default class CharacterSheet extends DaggerheartSheet(ActorSheetV2) {
|
||||||
},
|
},
|
||||||
callback: this.constructor.toggleVault.bind(this)
|
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: {
|
sendToChat: {
|
||||||
name: 'DAGGERHEART.Sheets.PC.ContextMenu.SendToChat',
|
name: 'DAGGERHEART.Sheets.PC.ContextMenu.SendToChat',
|
||||||
icon: '<i class="fa-regular fa-message"></i>',
|
icon: '<i class="fa-regular fa-message"></i>',
|
||||||
|
|
@ -298,8 +291,6 @@ export default class CharacterSheet extends DaggerheartSheet(ActorSheetV2) {
|
||||||
case 'domainCard':
|
case 'domainCard':
|
||||||
menuItems.push(...[allOptions.sendToLoadout, allOptions.sendToVault]);
|
menuItems.push(...[allOptions.sendToLoadout, allOptions.sendToVault]);
|
||||||
break;
|
break;
|
||||||
case 'consumable':
|
|
||||||
menuItems.push(...[allOptions.consumeItem]);
|
|
||||||
}
|
}
|
||||||
menuItems.push(...[allOptions.sendToChat, allOptions.edit, allOptions.delete]);
|
menuItems.push(...[allOptions.sendToChat, allOptions.edit, allOptions.delete]);
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -11,8 +11,6 @@ export default class RegisterHandlebarsHelpers {
|
||||||
includes: this.includes,
|
includes: this.includes,
|
||||||
debug: this.debug,
|
debug: this.debug,
|
||||||
signedNumber: this.signedNumber,
|
signedNumber: this.signedNumber,
|
||||||
cleanClass: this.cleanClass,
|
|
||||||
tertiary: this.tertiary,
|
|
||||||
length: this.length,
|
length: this.length,
|
||||||
switch: this.switch,
|
switch: this.switch,
|
||||||
case: this.case,
|
case: this.case,
|
||||||
|
|
@ -139,12 +137,4 @@ export default class RegisterHandlebarsHelpers {
|
||||||
console.log(a);
|
console.log(a);
|
||||||
return a;
|
return a;
|
||||||
}
|
}
|
||||||
|
|
||||||
static cleanClass(className) {
|
|
||||||
return className.replaceAll('.', '-');
|
|
||||||
}
|
|
||||||
|
|
||||||
static tertiary(condition, a, b) {
|
|
||||||
return condition ? a : b;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue